Constructors

Properties

client: AxiosInstance
defaults: Required<SeamHttpRequestOptions>
ltsVersion: "1.0.0" = seamApiLtsVersion
ltsVersion: string = seamApiLtsVersion

Accessors

Methods

  • Parameters

    • Optionalparams: {}

      Returns SeamHttpRequest<void, undefined>

    • Parameters

      • Optionalparams: {
            device_id: string;
        }
        • device_id: string

          Device ID of the phone that you want to get.

      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

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

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

        • Optionalowner_user_identity_id?: string

          ID of the user identity that represents the owner by which you want 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>