@seamapi/types 1.400.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.
- package/dist/connect.cjs +652 -8
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +848 -73
- package/lib/seam/connect/internal/schemas.d.ts +1 -1
- package/lib/seam/connect/internal/schemas.js +1 -1
- package/lib/seam/connect/internal/schemas.js.map +1 -1
- package/lib/seam/connect/models/index.d.ts +1 -0
- package/lib/seam/connect/models/index.js +1 -0
- package/lib/seam/connect/models/index.js.map +1 -1
- package/lib/seam/connect/models/phones/index.d.ts +2 -0
- package/lib/seam/connect/models/phones/index.js +3 -0
- package/lib/seam/connect/models/phones/index.js.map +1 -0
- package/lib/seam/connect/models/phones/phone-registration.d.ts +18 -0
- package/lib/seam/connect/models/phones/phone-registration.js +13 -0
- package/lib/seam/connect/models/phones/phone-registration.js.map +1 -0
- package/lib/seam/connect/models/phones/phone-session.d.ts +2060 -0
- package/lib/seam/connect/models/phones/phone-session.js +21 -0
- package/lib/seam/connect/models/phones/phone-session.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +566 -0
- package/lib/seam/connect/openapi.js +652 -8
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +213 -4
- package/package.json +1 -1
- package/src/lib/seam/connect/internal/schemas.ts +2 -0
- package/src/lib/seam/connect/models/index.ts +1 -0
- package/src/lib/seam/connect/models/phones/index.ts +2 -0
- package/src/lib/seam/connect/models/phones/phone-registration.ts +15 -0
- package/src/lib/seam/connect/models/phones/phone-session.ts +27 -0
- package/src/lib/seam/connect/openapi.ts +720 -8
- package/src/lib/seam/connect/route-types.ts +267 -4
|
@@ -10790,8 +10790,10 @@ export interface Routes {
|
|
|
10790
10790
|
method: 'PATCH' | 'POST'
|
|
10791
10791
|
queryParams: {}
|
|
10792
10792
|
jsonBody: {
|
|
10793
|
-
/** ID of the access system user to whom you want to assign a credential. */
|
|
10794
|
-
acs_user_id
|
|
10793
|
+
/** ID of the access system user to whom you want to assign a credential. You can only provide one of acs_user_id or user_identity_id. */
|
|
10794
|
+
acs_user_id?: string | undefined
|
|
10795
|
+
/** ID of the user identity to whom you want to assign a credential. You can only provide one of acs_user_id or user_identity_id. If the ACS system contains an ACS user with the same `email_address` or `phone_number` as the user identity that you specify, they are linked, and the credential belongs to the ACS user. If the ACS system does not have a corresponding ACS user, one is created. */
|
|
10796
|
+
user_identity_id?: string | undefined
|
|
10795
10797
|
/** ID of the credential that you want to assign to an access system user. */
|
|
10796
10798
|
acs_credential_id: string
|
|
10797
10799
|
}
|
|
@@ -11768,8 +11770,10 @@ export interface Routes {
|
|
|
11768
11770
|
method: 'PATCH' | 'POST'
|
|
11769
11771
|
queryParams: {}
|
|
11770
11772
|
jsonBody: {
|
|
11771
|
-
/** ID of the access system user from which you want to unassign a credential. */
|
|
11772
|
-
acs_user_id
|
|
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
|
|
11773
11777
|
/** ID of the credential that you want to unassign from an access system user. */
|
|
11774
11778
|
acs_credential_id: string
|
|
11775
11779
|
}
|
|
@@ -44839,6 +44843,265 @@ export interface Routes {
|
|
|
44839
44843
|
}>
|
|
44840
44844
|
}
|
|
44841
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
|
+
}
|
|
44842
45105
|
'/thermostats/activate_climate_preset': {
|
|
44843
45106
|
route: '/thermostats/activate_climate_preset'
|
|
44844
45107
|
method: 'POST'
|