@seamapi/types 1.401.0 → 1.403.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 -12
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +839 -69
- 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/devices/device-provider.d.ts +2 -2
- package/lib/seam/connect/models/devices/device-provider.js +2 -1
- package/lib/seam/connect/models/devices/device-provider.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 +561 -0
- package/lib/seam/connect/openapi.js +648 -9
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +215 -6
- package/package.json +2 -2
- package/src/lib/seam/connect/internal/schemas.ts +2 -0
- package/src/lib/seam/connect/models/devices/device-provider.ts +2 -1
- 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 +715 -9
- package/src/lib/seam/connect/route-types.ts +269 -6
|
@@ -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
|
|
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
|
}
|
|
@@ -16617,8 +16619,10 @@ export interface Routes {
|
|
|
16617
16619
|
jsonBody: {
|
|
16618
16620
|
/** ID of the entrance to which you want to grant an access system user access. */
|
|
16619
16621
|
acs_entrance_id: string
|
|
16620
|
-
/** ID of the
|
|
16621
|
-
|
|
16622
|
+
/** ID of the user identity to whom you want to grant access to an entrance. 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 access group membership belongs to the ACS user. If the ACS system does not have a corresponding ACS user, one is created. */
|
|
16623
|
+
user_identity_id?: string | undefined
|
|
16624
|
+
/** ID of the access system user to whom you want to grant access to an entrance. You can only provide one of acs_user_id or user_identity_id. */
|
|
16625
|
+
acs_user_id?: string | undefined
|
|
16622
16626
|
}
|
|
16623
16627
|
commonParams: {}
|
|
16624
16628
|
formData: {}
|
|
@@ -44841,6 +44845,265 @@ export interface Routes {
|
|
|
44841
44845
|
}>
|
|
44842
44846
|
}
|
|
44843
44847
|
}
|
|
44848
|
+
'/seam/mobile_sdk/v1/phone_sessions/get_or_create': {
|
|
44849
|
+
route: '/seam/mobile_sdk/v1/phone_sessions/get_or_create'
|
|
44850
|
+
method: 'POST'
|
|
44851
|
+
queryParams: {}
|
|
44852
|
+
jsonBody: {
|
|
44853
|
+
custom_sdk_installation_id: string
|
|
44854
|
+
phone_os: 'ios' | 'android'
|
|
44855
|
+
phone_device_metadata?:
|
|
44856
|
+
| {
|
|
44857
|
+
os_version?: string | undefined
|
|
44858
|
+
manufacturer?: string | undefined
|
|
44859
|
+
model?: string | undefined
|
|
44860
|
+
}
|
|
44861
|
+
| undefined
|
|
44862
|
+
}
|
|
44863
|
+
commonParams: {}
|
|
44864
|
+
formData: {}
|
|
44865
|
+
jsonResponse: {
|
|
44866
|
+
/** */
|
|
44867
|
+
phone_session: {
|
|
44868
|
+
provider_sessions: Array<{
|
|
44869
|
+
/** */
|
|
44870
|
+
phone_registration: {
|
|
44871
|
+
phone_registration_id: string
|
|
44872
|
+
provider_state?: any
|
|
44873
|
+
provider_name: string | null
|
|
44874
|
+
is_being_activated: boolean
|
|
44875
|
+
}
|
|
44876
|
+
acs_credentials: Array<{
|
|
44877
|
+
/** ID of the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
|
|
44878
|
+
acs_credential_id: string
|
|
44879
|
+
/** 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. */
|
|
44880
|
+
acs_user_id?: string | undefined
|
|
44881
|
+
acs_credential_pool_id?: string | undefined
|
|
44882
|
+
/** 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). */
|
|
44883
|
+
acs_system_id: string
|
|
44884
|
+
/** ID of the parent [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
|
|
44885
|
+
parent_acs_credential_id?: string | undefined
|
|
44886
|
+
/** Display name that corresponds to the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type. */
|
|
44887
|
+
display_name: string
|
|
44888
|
+
/** Access (PIN) code for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
|
|
44889
|
+
code?: (string | undefined) | null
|
|
44890
|
+
/** 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. */
|
|
44891
|
+
is_one_time_use?: boolean | undefined
|
|
44892
|
+
/** Number of the card associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
|
|
44893
|
+
card_number?: (string | undefined) | null
|
|
44894
|
+
/** Indicates whether the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) has been encoded onto a card. */
|
|
44895
|
+
is_issued?: boolean | undefined
|
|
44896
|
+
/** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was encoded onto a card. */
|
|
44897
|
+
issued_at?: (string | undefined) | null
|
|
44898
|
+
/** Access method for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`. */
|
|
44899
|
+
access_method: 'code' | 'card' | 'mobile_key'
|
|
44900
|
+
/** 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`. */
|
|
44901
|
+
external_type?:
|
|
44902
|
+
| (
|
|
44903
|
+
| 'pti_card'
|
|
44904
|
+
| 'brivo_credential'
|
|
44905
|
+
| 'hid_credential'
|
|
44906
|
+
| 'visionline_card'
|
|
44907
|
+
| 'salto_ks_credential'
|
|
44908
|
+
| 'assa_abloy_vostio_key'
|
|
44909
|
+
| 'salto_space_key'
|
|
44910
|
+
| 'latch_access'
|
|
44911
|
+
)
|
|
44912
|
+
| undefined
|
|
44913
|
+
/** Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) type. */
|
|
44914
|
+
external_type_display_name?: string | undefined
|
|
44915
|
+
/** Date and time at which the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) was created. */
|
|
44916
|
+
created_at: string
|
|
44917
|
+
/** 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). */
|
|
44918
|
+
workspace_id: string
|
|
44919
|
+
/** 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. */
|
|
44920
|
+
starts_at?: string | undefined
|
|
44921
|
+
/** 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`. */
|
|
44922
|
+
ends_at?: string | undefined
|
|
44923
|
+
/** Errors associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
|
|
44924
|
+
errors: Array<{
|
|
44925
|
+
error_code: string
|
|
44926
|
+
message: string
|
|
44927
|
+
}>
|
|
44928
|
+
/** Warnings associated with the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
|
|
44929
|
+
warnings: Array<
|
|
44930
|
+
| {
|
|
44931
|
+
/** Date and time at which Seam created the warning. */
|
|
44932
|
+
created_at: string
|
|
44933
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
44934
|
+
message: string
|
|
44935
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
44936
|
+
warning_code: 'waiting_to_be_issued'
|
|
44937
|
+
}
|
|
44938
|
+
| {
|
|
44939
|
+
/** Date and time at which Seam created the warning. */
|
|
44940
|
+
created_at: string
|
|
44941
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
44942
|
+
message: string
|
|
44943
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
44944
|
+
warning_code: 'schedule_externally_modified'
|
|
44945
|
+
}
|
|
44946
|
+
| {
|
|
44947
|
+
/** Date and time at which Seam created the warning. */
|
|
44948
|
+
created_at: string
|
|
44949
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
44950
|
+
message: string
|
|
44951
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
44952
|
+
warning_code: 'schedule_modified'
|
|
44953
|
+
}
|
|
44954
|
+
| {
|
|
44955
|
+
/** Date and time at which Seam created the warning. */
|
|
44956
|
+
created_at: string
|
|
44957
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
44958
|
+
message: string
|
|
44959
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
44960
|
+
warning_code: 'being_deleted'
|
|
44961
|
+
}
|
|
44962
|
+
| {
|
|
44963
|
+
/** Date and time at which Seam created the warning. */
|
|
44964
|
+
created_at: string
|
|
44965
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
44966
|
+
message: string
|
|
44967
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
44968
|
+
warning_code: 'unknown_issue_with_acs_credential'
|
|
44969
|
+
}
|
|
44970
|
+
| {
|
|
44971
|
+
/** Date and time at which Seam created the warning. */
|
|
44972
|
+
created_at: string
|
|
44973
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
44974
|
+
message: string
|
|
44975
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
44976
|
+
warning_code: 'needs_to_be_reissued'
|
|
44977
|
+
}
|
|
44978
|
+
>
|
|
44979
|
+
/** 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). */
|
|
44980
|
+
is_multi_phone_sync_credential?: boolean | undefined
|
|
44981
|
+
/** 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. */
|
|
44982
|
+
is_latest_desired_state_synced_with_provider?:
|
|
44983
|
+
| (boolean | null)
|
|
44984
|
+
| undefined
|
|
44985
|
+
/** 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. */
|
|
44986
|
+
latest_desired_state_synced_with_provider_at?:
|
|
44987
|
+
| (string | null)
|
|
44988
|
+
| undefined
|
|
44989
|
+
/** Visionline-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
|
|
44990
|
+
visionline_metadata?:
|
|
44991
|
+
| {
|
|
44992
|
+
card_function_type: 'guest' | 'staff'
|
|
44993
|
+
joiner_acs_credential_ids?: string[] | undefined
|
|
44994
|
+
guest_acs_entrance_ids?: string[] | undefined
|
|
44995
|
+
common_acs_entrance_ids?: string[] | undefined
|
|
44996
|
+
is_valid?: boolean | undefined
|
|
44997
|
+
auto_join?: boolean | undefined
|
|
44998
|
+
card_id?: string | undefined
|
|
44999
|
+
credential_id?: string | undefined
|
|
45000
|
+
}
|
|
45001
|
+
| undefined
|
|
45002
|
+
/** Vostio-specific metadata for the [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials). */
|
|
45003
|
+
assa_abloy_vostio_metadata?:
|
|
45004
|
+
| {
|
|
45005
|
+
auto_join?: boolean | undefined
|
|
45006
|
+
override_guest_acs_entrance_ids?: string[] | undefined
|
|
45007
|
+
key_id?: string | undefined
|
|
45008
|
+
key_issuing_request_id?: string | undefined
|
|
45009
|
+
door_names?: string[] | undefined
|
|
45010
|
+
endpoint_id?: string | undefined
|
|
45011
|
+
}
|
|
45012
|
+
| undefined
|
|
45013
|
+
is_managed: true
|
|
45014
|
+
acs_entrances: Array<{
|
|
45015
|
+
/** 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). */
|
|
45016
|
+
acs_system_id: string
|
|
45017
|
+
/** ID of the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
|
|
45018
|
+
acs_entrance_id: string
|
|
45019
|
+
/** Date and time at which the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details) was created. */
|
|
45020
|
+
created_at: string
|
|
45021
|
+
/** Display name for the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
|
|
45022
|
+
display_name: string
|
|
45023
|
+
/** Errors associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
|
|
45024
|
+
errors: Array<{
|
|
45025
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
45026
|
+
error_code: string
|
|
45027
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
45028
|
+
message: string
|
|
45029
|
+
}>
|
|
45030
|
+
/** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
|
|
45031
|
+
latch_metadata?:
|
|
45032
|
+
| {
|
|
45033
|
+
accessibility_type: string
|
|
45034
|
+
door_name: string
|
|
45035
|
+
door_type: string
|
|
45036
|
+
is_connected: boolean
|
|
45037
|
+
}
|
|
45038
|
+
| undefined
|
|
45039
|
+
/** Visionline-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
|
|
45040
|
+
visionline_metadata?:
|
|
45041
|
+
| {
|
|
45042
|
+
door_name: string
|
|
45043
|
+
door_category:
|
|
45044
|
+
| 'entrance'
|
|
45045
|
+
| 'guest'
|
|
45046
|
+
| 'elevator reader'
|
|
45047
|
+
| 'common'
|
|
45048
|
+
| 'common (PMS)'
|
|
45049
|
+
profiles?:
|
|
45050
|
+
| Array<{
|
|
45051
|
+
visionline_door_profile_id: string
|
|
45052
|
+
visionline_door_profile_type:
|
|
45053
|
+
| 'BLE'
|
|
45054
|
+
| 'commonDoor'
|
|
45055
|
+
| 'touch'
|
|
45056
|
+
}>
|
|
45057
|
+
| undefined
|
|
45058
|
+
}
|
|
45059
|
+
| undefined
|
|
45060
|
+
/** Salto KS-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
|
|
45061
|
+
salto_ks_metadata?:
|
|
45062
|
+
| {
|
|
45063
|
+
door_name: string
|
|
45064
|
+
locked_state: string
|
|
45065
|
+
lock_type: string
|
|
45066
|
+
online?: boolean | undefined
|
|
45067
|
+
battery_level: string
|
|
45068
|
+
left_open_alarm?: boolean | undefined
|
|
45069
|
+
intrusion_alarm?: boolean | undefined
|
|
45070
|
+
privacy_mode?: boolean | undefined
|
|
45071
|
+
}
|
|
45072
|
+
| undefined
|
|
45073
|
+
/** dormakaba Community-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
|
|
45074
|
+
dormakaba_community_metadata?:
|
|
45075
|
+
| {
|
|
45076
|
+
access_point_name: string
|
|
45077
|
+
}
|
|
45078
|
+
| undefined
|
|
45079
|
+
/** ASSA ABLOY Vostio-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
|
|
45080
|
+
assa_abloy_vostio_metadata?:
|
|
45081
|
+
| {
|
|
45082
|
+
door_type:
|
|
45083
|
+
| 'CommonDoor'
|
|
45084
|
+
| 'EntranceDoor'
|
|
45085
|
+
| 'GuestDoor'
|
|
45086
|
+
| 'Elevator'
|
|
45087
|
+
door_name: string
|
|
45088
|
+
door_number?: number | undefined
|
|
45089
|
+
stand_open?: boolean | undefined
|
|
45090
|
+
pms_id?: string | undefined
|
|
45091
|
+
}
|
|
45092
|
+
| undefined
|
|
45093
|
+
/** Salto Space-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
|
|
45094
|
+
salto_space_metadata?:
|
|
45095
|
+
| {
|
|
45096
|
+
door_name: string
|
|
45097
|
+
ext_door_id: string
|
|
45098
|
+
door_description?: string | undefined
|
|
45099
|
+
}
|
|
45100
|
+
| undefined
|
|
45101
|
+
}>
|
|
45102
|
+
}>
|
|
45103
|
+
}>
|
|
45104
|
+
}
|
|
45105
|
+
}
|
|
45106
|
+
}
|
|
44844
45107
|
'/thermostats/activate_climate_preset': {
|
|
44845
45108
|
route: '/thermostats/activate_climate_preset'
|
|
44846
45109
|
method: 'POST'
|
|
@@ -47498,7 +47761,7 @@ export interface Routes {
|
|
|
47498
47761
|
/** ID of the thermostat device for which you want to create a daily program. */
|
|
47499
47762
|
device_id: string
|
|
47500
47763
|
/** User-friendly name to identify the thermostat daily program. */
|
|
47501
|
-
name
|
|
47764
|
+
name: string
|
|
47502
47765
|
/** Array of thermostat daily program periods. */
|
|
47503
47766
|
periods: Array<{
|
|
47504
47767
|
/** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
@@ -47552,7 +47815,7 @@ export interface Routes {
|
|
|
47552
47815
|
/** ID of the thermostat daily program that you want to update. */
|
|
47553
47816
|
thermostat_daily_program_id: string
|
|
47554
47817
|
/** User-friendly name to identify the thermostat daily program that you want to update. */
|
|
47555
|
-
name
|
|
47818
|
+
name: string
|
|
47556
47819
|
/** Array of thermostat daily program periods. The periods that you specify overwrite any existing periods for the daily program. */
|
|
47557
47820
|
periods: Array<{
|
|
47558
47821
|
/** Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|