@seamapi/types 1.401.0 → 1.402.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/connect.cjs +638 -4
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +834 -71
  4. package/lib/seam/connect/internal/schemas.d.ts +1 -1
  5. package/lib/seam/connect/internal/schemas.js +1 -1
  6. package/lib/seam/connect/internal/schemas.js.map +1 -1
  7. package/lib/seam/connect/models/index.d.ts +1 -0
  8. package/lib/seam/connect/models/index.js +1 -0
  9. package/lib/seam/connect/models/index.js.map +1 -1
  10. package/lib/seam/connect/models/phones/index.d.ts +2 -0
  11. package/lib/seam/connect/models/phones/index.js +3 -0
  12. package/lib/seam/connect/models/phones/index.js.map +1 -0
  13. package/lib/seam/connect/models/phones/phone-registration.d.ts +18 -0
  14. package/lib/seam/connect/models/phones/phone-registration.js +13 -0
  15. package/lib/seam/connect/models/phones/phone-registration.js.map +1 -0
  16. package/lib/seam/connect/models/phones/phone-session.d.ts +2060 -0
  17. package/lib/seam/connect/models/phones/phone-session.js +21 -0
  18. package/lib/seam/connect/models/phones/phone-session.js.map +1 -0
  19. package/lib/seam/connect/openapi.d.ts +556 -0
  20. package/lib/seam/connect/openapi.js +638 -4
  21. package/lib/seam/connect/openapi.js.map +1 -1
  22. package/lib/seam/connect/route-types.d.ts +209 -2
  23. package/package.json +1 -1
  24. package/src/lib/seam/connect/internal/schemas.ts +2 -0
  25. package/src/lib/seam/connect/models/index.ts +1 -0
  26. package/src/lib/seam/connect/models/phones/index.ts +2 -0
  27. package/src/lib/seam/connect/models/phones/phone-registration.ts +15 -0
  28. package/src/lib/seam/connect/models/phones/phone-session.ts +27 -0
  29. package/src/lib/seam/connect/openapi.ts +704 -4
  30. package/src/lib/seam/connect/route-types.ts +263 -2
@@ -11770,8 +11770,10 @@ export interface Routes {
11770
11770
  method: 'PATCH' | 'POST'
11771
11771
  queryParams: {}
11772
11772
  jsonBody: {
11773
- /** ID of the access system user from which you want to unassign a credential. */
11774
- acs_user_id: string
11773
+ /** ID of the access system user from which you want to unassign a credential. You can only provide one of acs_user_id or user_identity_id. */
11774
+ acs_user_id?: string | undefined
11775
+ /** ID of the user identity from which you want to unassign a credential. You can only provide one of acs_user_id or user_identity_id. */
11776
+ user_identity_id?: string | undefined
11775
11777
  /** ID of the credential that you want to unassign from an access system user. */
11776
11778
  acs_credential_id: string
11777
11779
  }
@@ -44841,6 +44843,265 @@ export interface Routes {
44841
44843
  }>
44842
44844
  }
44843
44845
  }
44846
+ '/seam/mobile_sdk/v1/phone_sessions/get_or_create': {
44847
+ route: '/seam/mobile_sdk/v1/phone_sessions/get_or_create'
44848
+ method: 'POST'
44849
+ queryParams: {}
44850
+ jsonBody: {
44851
+ custom_sdk_installation_id: string
44852
+ phone_os: 'ios' | 'android'
44853
+ phone_device_metadata?:
44854
+ | {
44855
+ os_version?: string | undefined
44856
+ manufacturer?: string | undefined
44857
+ model?: string | undefined
44858
+ }
44859
+ | undefined
44860
+ }
44861
+ commonParams: {}
44862
+ formData: {}
44863
+ jsonResponse: {
44864
+ /** */
44865
+ phone_session: {
44866
+ provider_sessions: Array<{
44867
+ /** */
44868
+ phone_registration: {
44869
+ phone_registration_id: string
44870
+ provider_state?: any
44871
+ provider_name: string | null
44872
+ is_being_activated: boolean
44873
+ }
44874
+ acs_credentials: Array<{
44875
+ /** ID of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
44876
+ acs_credential_id: string
44877
+ /** ID of the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) to whom the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) belongs. */
44878
+ acs_user_id?: string | undefined
44879
+ acs_credential_pool_id?: string | undefined
44880
+ /** ID of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
44881
+ acs_system_id: string
44882
+ /** ID of the parent [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
44883
+ parent_acs_credential_id?: string | undefined
44884
+ /** Display name that corresponds to the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type. */
44885
+ display_name: string
44886
+ /** Access (PIN) code for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
44887
+ code?: (string | undefined) | null
44888
+ /** Indicates whether the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) can only be used once. If `true`, the code becomes invalid after the first use. */
44889
+ is_one_time_use?: boolean | undefined
44890
+ /** Number of the card associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
44891
+ card_number?: (string | undefined) | null
44892
+ /** Indicates whether the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) has been encoded onto a card. */
44893
+ is_issued?: boolean | undefined
44894
+ /** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was encoded onto a card. */
44895
+ issued_at?: (string | undefined) | null
44896
+ /** Access method for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`. */
44897
+ access_method: 'code' | 'card' | 'mobile_key'
44898
+ /** Brand-specific terminology for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`. */
44899
+ external_type?:
44900
+ | (
44901
+ | 'pti_card'
44902
+ | 'brivo_credential'
44903
+ | 'hid_credential'
44904
+ | 'visionline_card'
44905
+ | 'salto_ks_credential'
44906
+ | 'assa_abloy_vostio_key'
44907
+ | 'salto_space_key'
44908
+ | 'latch_access'
44909
+ )
44910
+ | undefined
44911
+ /** Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type. */
44912
+ external_type_display_name?: string | undefined
44913
+ /** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was created. */
44914
+ created_at: string
44915
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
44916
+ workspace_id: string
44917
+ /** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
44918
+ starts_at?: string | undefined
44919
+ /** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) validity ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`. */
44920
+ ends_at?: string | undefined
44921
+ /** Errors associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
44922
+ errors: Array<{
44923
+ error_code: string
44924
+ message: string
44925
+ }>
44926
+ /** Warnings associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
44927
+ warnings: Array<
44928
+ | {
44929
+ /** Date and time at which Seam created the warning. */
44930
+ created_at: string
44931
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
44932
+ message: string
44933
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
44934
+ warning_code: 'waiting_to_be_issued'
44935
+ }
44936
+ | {
44937
+ /** Date and time at which Seam created the warning. */
44938
+ created_at: string
44939
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
44940
+ message: string
44941
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
44942
+ warning_code: 'schedule_externally_modified'
44943
+ }
44944
+ | {
44945
+ /** Date and time at which Seam created the warning. */
44946
+ created_at: string
44947
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
44948
+ message: string
44949
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
44950
+ warning_code: 'schedule_modified'
44951
+ }
44952
+ | {
44953
+ /** Date and time at which Seam created the warning. */
44954
+ created_at: string
44955
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
44956
+ message: string
44957
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
44958
+ warning_code: 'being_deleted'
44959
+ }
44960
+ | {
44961
+ /** Date and time at which Seam created the warning. */
44962
+ created_at: string
44963
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
44964
+ message: string
44965
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
44966
+ warning_code: 'unknown_issue_with_acs_credential'
44967
+ }
44968
+ | {
44969
+ /** Date and time at which Seam created the warning. */
44970
+ created_at: string
44971
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
44972
+ message: string
44973
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
44974
+ warning_code: 'needs_to_be_reissued'
44975
+ }
44976
+ >
44977
+ /** Indicates whether the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) is a [multi-phone sync credential](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials). */
44978
+ is_multi_phone_sync_credential?: boolean | undefined
44979
+ /** Indicates whether the latest state of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) has been synced from Seam to the provider. */
44980
+ is_latest_desired_state_synced_with_provider?:
44981
+ | (boolean | null)
44982
+ | undefined
44983
+ /** Date and time at which the state of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was most recently synced from Seam to the provider. */
44984
+ latest_desired_state_synced_with_provider_at?:
44985
+ | (string | null)
44986
+ | undefined
44987
+ /** Visionline-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
44988
+ visionline_metadata?:
44989
+ | {
44990
+ card_function_type: 'guest' | 'staff'
44991
+ joiner_acs_credential_ids?: string[] | undefined
44992
+ guest_acs_entrance_ids?: string[] | undefined
44993
+ common_acs_entrance_ids?: string[] | undefined
44994
+ is_valid?: boolean | undefined
44995
+ auto_join?: boolean | undefined
44996
+ card_id?: string | undefined
44997
+ credential_id?: string | undefined
44998
+ }
44999
+ | undefined
45000
+ /** Vostio-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
45001
+ assa_abloy_vostio_metadata?:
45002
+ | {
45003
+ auto_join?: boolean | undefined
45004
+ override_guest_acs_entrance_ids?: string[] | undefined
45005
+ key_id?: string | undefined
45006
+ key_issuing_request_id?: string | undefined
45007
+ door_names?: string[] | undefined
45008
+ endpoint_id?: string | undefined
45009
+ }
45010
+ | undefined
45011
+ is_managed: true
45012
+ acs_entrances: Array<{
45013
+ /** ID of the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
45014
+ acs_system_id: string
45015
+ /** ID of the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
45016
+ acs_entrance_id: string
45017
+ /** Date and time at which the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details) was created. */
45018
+ created_at: string
45019
+ /** Display name for the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
45020
+ display_name: string
45021
+ /** Errors associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
45022
+ errors: Array<{
45023
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
45024
+ error_code: string
45025
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
45026
+ message: string
45027
+ }>
45028
+ /** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
45029
+ latch_metadata?:
45030
+ | {
45031
+ accessibility_type: string
45032
+ door_name: string
45033
+ door_type: string
45034
+ is_connected: boolean
45035
+ }
45036
+ | undefined
45037
+ /** Visionline-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
45038
+ visionline_metadata?:
45039
+ | {
45040
+ door_name: string
45041
+ door_category:
45042
+ | 'entrance'
45043
+ | 'guest'
45044
+ | 'elevator reader'
45045
+ | 'common'
45046
+ | 'common (PMS)'
45047
+ profiles?:
45048
+ | Array<{
45049
+ visionline_door_profile_id: string
45050
+ visionline_door_profile_type:
45051
+ | 'BLE'
45052
+ | 'commonDoor'
45053
+ | 'touch'
45054
+ }>
45055
+ | undefined
45056
+ }
45057
+ | undefined
45058
+ /** Salto KS-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
45059
+ salto_ks_metadata?:
45060
+ | {
45061
+ door_name: string
45062
+ locked_state: string
45063
+ lock_type: string
45064
+ online?: boolean | undefined
45065
+ battery_level: string
45066
+ left_open_alarm?: boolean | undefined
45067
+ intrusion_alarm?: boolean | undefined
45068
+ privacy_mode?: boolean | undefined
45069
+ }
45070
+ | undefined
45071
+ /** dormakaba Community-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
45072
+ dormakaba_community_metadata?:
45073
+ | {
45074
+ access_point_name: string
45075
+ }
45076
+ | undefined
45077
+ /** ASSA ABLOY Vostio-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
45078
+ assa_abloy_vostio_metadata?:
45079
+ | {
45080
+ door_type:
45081
+ | 'CommonDoor'
45082
+ | 'EntranceDoor'
45083
+ | 'GuestDoor'
45084
+ | 'Elevator'
45085
+ door_name: string
45086
+ door_number?: number | undefined
45087
+ stand_open?: boolean | undefined
45088
+ pms_id?: string | undefined
45089
+ }
45090
+ | undefined
45091
+ /** Salto Space-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
45092
+ salto_space_metadata?:
45093
+ | {
45094
+ door_name: string
45095
+ ext_door_id: string
45096
+ door_description?: string | undefined
45097
+ }
45098
+ | undefined
45099
+ }>
45100
+ }>
45101
+ }>
45102
+ }
45103
+ }
45104
+ }
44844
45105
  '/thermostats/activate_climate_preset': {
44845
45106
  route: '/thermostats/activate_climate_preset'
44846
45107
  method: 'POST'