Constructors

Properties

client: AxiosInstance
defaults: Required<SeamHttpRequestOptions>

Accessors

Methods

  • Parameters

    • Optionalbody: {
          device_id: string;
      }
      • device_id: string

        Device ID of the desired phone.

    Returns SeamHttpRequest<void, undefined>

  • Parameters

    • Optionalbody: {
          device_id: string;
      }
      • device_id: string

        Device ID of the desired phone.

    Returns SeamHttpRequest<SetNonNullable<Required<{
        phone: {
            created_at: string;
            custom_metadata: Record<string, string | boolean>;
            device_id: string;
            device_type: "ios_phone" | "android_phone";
            display_name: string;
            errors: {
                error_code: string;
                message: string;
            }[];
            nickname?: string;
            properties: {
                assa_abloy_credential_service_metadata?: {
                    endpoints: {
                        endpoint_id: string;
                        is_active: boolean;
                    }[];
                    has_active_endpoint: boolean;
                };
                salto_space_credential_service_metadata?: {
                    has_active_phone: boolean;
                };
            };
            warnings: {
                message: string;
                warning_code: string;
            }[];
            workspace_id: string;
        };
    }>, "phone">, "phone">

  • Parameters

    • Optionalbody: {
          acs_credential_id?: string;
          owner_user_identity_id?: string;
      }
      • Optionalacs_credential_id?: string

        ID of the credential by which to filter the list of returned phones.

      • Optionalowner_user_identity_id?: string

        ID of the user identity that represents the owner by which to filter the list of returned phones.

    Returns SeamHttpRequest<SetNonNullable<Required<{
        phones: {
            created_at: string;
            custom_metadata: Record<string, string | boolean>;
            device_id: string;
            device_type: "ios_phone" | "android_phone";
            display_name: string;
            errors: {
                error_code: string;
                message: string;
            }[];
            nickname?: string;
            properties: {
                assa_abloy_credential_service_metadata?: {
                    endpoints: {
                        endpoint_id: ...;
                        is_active: ...;
                    }[];
                    has_active_endpoint: boolean;
                };
                salto_space_credential_service_metadata?: {
                    has_active_phone: boolean;
                };
            };
            warnings: {
                message: string;
                warning_code: string;
            }[];
            workspace_id: string;
        }[];
    }>, "phones">, "phones">

  • Parameters

    • clientSessionToken: string

    Returns Promise<void>