@seamapi/types 1.462.0 → 1.463.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 +122 -91
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +263 -37
- package/dist/index.cjs +122 -91
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/acs/acs-system.d.ts +7 -7
- package/lib/seam/connect/models/acs/acs-system.js +1 -0
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +266 -40
- package/lib/seam/connect/models/batch.js +3 -0
- package/lib/seam/connect/models/batch.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +2 -1
- package/lib/seam/connect/models/devices/device-provider.js +2 -0
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +24 -2
- package/lib/seam/connect/openapi.js +28 -2
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +109 -19
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-system.ts +1 -0
- package/src/lib/seam/connect/models/batch.ts +3 -0
- package/src/lib/seam/connect/models/devices/device-provider.ts +2 -0
- package/src/lib/seam/connect/openapi.ts +28 -2
- package/src/lib/seam/connect/route-types.ts +117 -1
|
@@ -13249,6 +13249,7 @@ export interface Routes {
|
|
|
13249
13249
|
| 'assa_abloy_credential_service'
|
|
13250
13250
|
| 'latch_building'
|
|
13251
13251
|
| 'dormakaba_community_site'
|
|
13252
|
+
| 'dormakaba_ambiance_site'
|
|
13252
13253
|
| 'legic_connect_credential_service'
|
|
13253
13254
|
| 'assa_abloy_vostio'
|
|
13254
13255
|
| 'assa_abloy_vostio_credential_service'
|
|
@@ -13282,6 +13283,7 @@ export interface Routes {
|
|
|
13282
13283
|
| 'assa_abloy_credential_service'
|
|
13283
13284
|
| 'latch_building'
|
|
13284
13285
|
| 'dormakaba_community_site'
|
|
13286
|
+
| 'dormakaba_ambiance_site'
|
|
13285
13287
|
| 'legic_connect_credential_service'
|
|
13286
13288
|
| 'assa_abloy_vostio'
|
|
13287
13289
|
| 'assa_abloy_vostio_credential_service'
|
|
@@ -13473,7 +13475,7 @@ export interface Routes {
|
|
|
13473
13475
|
/** ID of the Access Grant to update. */
|
|
13474
13476
|
access_grant_id: string
|
|
13475
13477
|
/** Date and time at which the validity of the grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */
|
|
13476
|
-
starts_at?:
|
|
13478
|
+
starts_at?: string | undefined
|
|
13477
13479
|
/** Date and time at which the validity of the grant 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`. */
|
|
13478
13480
|
ends_at?: (string | null) | undefined
|
|
13479
13481
|
}
|
|
@@ -16762,6 +16764,7 @@ export interface Routes {
|
|
|
16762
16764
|
| 'assa_abloy_credential_service'
|
|
16763
16765
|
| 'latch_building'
|
|
16764
16766
|
| 'dormakaba_community_site'
|
|
16767
|
+
| 'dormakaba_ambiance_site'
|
|
16765
16768
|
| 'legic_connect_credential_service'
|
|
16766
16769
|
| 'assa_abloy_vostio'
|
|
16767
16770
|
| 'assa_abloy_vostio_credential_service'
|
|
@@ -16795,6 +16798,7 @@ export interface Routes {
|
|
|
16795
16798
|
| 'assa_abloy_credential_service'
|
|
16796
16799
|
| 'latch_building'
|
|
16797
16800
|
| 'dormakaba_community_site'
|
|
16801
|
+
| 'dormakaba_ambiance_site'
|
|
16798
16802
|
| 'legic_connect_credential_service'
|
|
16799
16803
|
| 'assa_abloy_vostio'
|
|
16800
16804
|
| 'assa_abloy_vostio_credential_service'
|
|
@@ -19474,6 +19478,55 @@ export interface Routes {
|
|
|
19474
19478
|
can_unlock_with_code?: boolean | undefined
|
|
19475
19479
|
}>
|
|
19476
19480
|
| undefined
|
|
19481
|
+
connect_webviews?:
|
|
19482
|
+
| Array<{
|
|
19483
|
+
/** ID of the Connect Webview. */
|
|
19484
|
+
connect_webview_id: string
|
|
19485
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the Connect Webview. */
|
|
19486
|
+
workspace_id: string
|
|
19487
|
+
/** Date and time at which the Connect Webview was created. */
|
|
19488
|
+
created_at: string
|
|
19489
|
+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the Connect Webview. */
|
|
19490
|
+
connected_account_id: string | null
|
|
19491
|
+
/** URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user. */
|
|
19492
|
+
url: string
|
|
19493
|
+
device_selection_mode: 'none' | 'single' | 'multiple'
|
|
19494
|
+
/** List of accepted [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews). */
|
|
19495
|
+
accepted_providers: string[]
|
|
19496
|
+
/** High-level device capabilities that the Connect Webview can accept. When creating a Connect Webview, you can specify the types of devices that it can connect to Seam. If you do not set custom `accepted_capabilities`, Seam uses a default set of `accepted_capabilities` for each provider. For example, if you create a Connect Webview that accepts SmartThing devices, without specifying `accepted_capabilities`, Seam accepts only SmartThings locks. To connect SmartThings thermostats and locks to Seam, create a Connect Webview and include both `thermostat` and `lock` in the `accepted_capabilities`. */
|
|
19497
|
+
accepted_capabilities: Array<
|
|
19498
|
+
'lock' | 'thermostat' | 'noise_sensor' | 'access_control'
|
|
19499
|
+
>
|
|
19500
|
+
/**
|
|
19501
|
+
* @deprecated Unused. Will be removed. */
|
|
19502
|
+
accepted_devices: string[]
|
|
19503
|
+
/**
|
|
19504
|
+
* @deprecated Unused. Will be removed. */
|
|
19505
|
+
any_device_allowed: boolean
|
|
19506
|
+
/** Indicates whether any provider is allowed. */
|
|
19507
|
+
any_provider_allowed: boolean
|
|
19508
|
+
/** Indicates whether the user logged in successfully using the Connect Webview. */
|
|
19509
|
+
login_successful: boolean
|
|
19510
|
+
/** Status of the Connect Webview. `authorized` indicates that the user has successfully logged into their device or system account, thereby completing the Connect Webview. */
|
|
19511
|
+
status: 'pending' | 'failed' | 'authorized'
|
|
19512
|
+
/** URL to which the Connect Webview should redirect when the user successfully pairs a device or system. If you do not set the `custom_redirect_failure_url`, the Connect Webview redirects to the `custom_redirect_url` when an unexpected error occurs. */
|
|
19513
|
+
custom_redirect_url: string | null
|
|
19514
|
+
/** URL to which the Connect Webview should redirect when an unexpected error occurs. */
|
|
19515
|
+
custom_redirect_failure_url: string | null
|
|
19516
|
+
/** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
|
|
19517
|
+
custom_metadata: Record<string, string | boolean>
|
|
19518
|
+
/** Indicates whether Seam should [import all new devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#automatically_manage_new_devices) for the connected account to make these devices available for use and management by the Seam API. */
|
|
19519
|
+
automatically_manage_new_devices: boolean
|
|
19520
|
+
/** Indicates whether Seam should [finish syncing all devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#wait_for_device_creation) in a newly-connected account before completing the associated Connect Webview. */
|
|
19521
|
+
wait_for_device_creation: boolean
|
|
19522
|
+
/** Date and time at which the user authorized (through the Connect Webview) the management of their devices. */
|
|
19523
|
+
authorized_at: string | null
|
|
19524
|
+
/** Selected provider of the Connect Webview, one of the [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews). */
|
|
19525
|
+
selected_provider: string | null
|
|
19526
|
+
/** The customer key associated with this webview, if any. */
|
|
19527
|
+
customer_key?: string | undefined
|
|
19528
|
+
}>
|
|
19529
|
+
| undefined
|
|
19477
19530
|
}
|
|
19478
19531
|
}
|
|
19479
19532
|
}
|
|
@@ -25667,6 +25720,7 @@ export interface Routes {
|
|
|
25667
25720
|
| 'assa_abloy_credential_service'
|
|
25668
25721
|
| 'latch_building'
|
|
25669
25722
|
| 'dormakaba_community_site'
|
|
25723
|
+
| 'dormakaba_ambiance_site'
|
|
25670
25724
|
| 'legic_connect_credential_service'
|
|
25671
25725
|
| 'assa_abloy_vostio'
|
|
25672
25726
|
| 'assa_abloy_vostio_credential_service'
|
|
@@ -25700,6 +25754,7 @@ export interface Routes {
|
|
|
25700
25754
|
| 'assa_abloy_credential_service'
|
|
25701
25755
|
| 'latch_building'
|
|
25702
25756
|
| 'dormakaba_community_site'
|
|
25757
|
+
| 'dormakaba_ambiance_site'
|
|
25703
25758
|
| 'legic_connect_credential_service'
|
|
25704
25759
|
| 'assa_abloy_vostio'
|
|
25705
25760
|
| 'assa_abloy_vostio_credential_service'
|
|
@@ -25843,6 +25898,7 @@ export interface Routes {
|
|
|
25843
25898
|
| 'assa_abloy_credential_service'
|
|
25844
25899
|
| 'latch_building'
|
|
25845
25900
|
| 'dormakaba_community_site'
|
|
25901
|
+
| 'dormakaba_ambiance_site'
|
|
25846
25902
|
| 'legic_connect_credential_service'
|
|
25847
25903
|
| 'assa_abloy_vostio'
|
|
25848
25904
|
| 'assa_abloy_vostio_credential_service'
|
|
@@ -25876,6 +25932,7 @@ export interface Routes {
|
|
|
25876
25932
|
| 'assa_abloy_credential_service'
|
|
25877
25933
|
| 'latch_building'
|
|
25878
25934
|
| 'dormakaba_community_site'
|
|
25935
|
+
| 'dormakaba_ambiance_site'
|
|
25879
25936
|
| 'legic_connect_credential_service'
|
|
25880
25937
|
| 'assa_abloy_vostio'
|
|
25881
25938
|
| 'assa_abloy_vostio_credential_service'
|
|
@@ -26019,6 +26076,7 @@ export interface Routes {
|
|
|
26019
26076
|
| 'assa_abloy_credential_service'
|
|
26020
26077
|
| 'latch_building'
|
|
26021
26078
|
| 'dormakaba_community_site'
|
|
26079
|
+
| 'dormakaba_ambiance_site'
|
|
26022
26080
|
| 'legic_connect_credential_service'
|
|
26023
26081
|
| 'assa_abloy_vostio'
|
|
26024
26082
|
| 'assa_abloy_vostio_credential_service'
|
|
@@ -26052,6 +26110,7 @@ export interface Routes {
|
|
|
26052
26110
|
| 'assa_abloy_credential_service'
|
|
26053
26111
|
| 'latch_building'
|
|
26054
26112
|
| 'dormakaba_community_site'
|
|
26113
|
+
| 'dormakaba_ambiance_site'
|
|
26055
26114
|
| 'legic_connect_credential_service'
|
|
26056
26115
|
| 'assa_abloy_vostio'
|
|
26057
26116
|
| 'assa_abloy_vostio_credential_service'
|
|
@@ -31058,6 +31117,7 @@ export interface Routes {
|
|
|
31058
31117
|
| 'sensi'
|
|
31059
31118
|
| 'kwikset2'
|
|
31060
31119
|
| 'keynest'
|
|
31120
|
+
| 'dormakaba_ambiance'
|
|
31061
31121
|
| 'yale_access'
|
|
31062
31122
|
| 'hid_cm'
|
|
31063
31123
|
| 'google_nest'
|
|
@@ -35725,6 +35785,7 @@ export interface Routes {
|
|
|
35725
35785
|
| 'sensi'
|
|
35726
35786
|
| 'kwikset2'
|
|
35727
35787
|
| 'keynest'
|
|
35788
|
+
| 'dormakaba_ambiance'
|
|
35728
35789
|
display_name: string
|
|
35729
35790
|
image_url: string
|
|
35730
35791
|
provider_categories: Array<
|
|
@@ -64068,6 +64129,7 @@ export interface Routes {
|
|
|
64068
64129
|
| 'assa_abloy_credential_service'
|
|
64069
64130
|
| 'latch_building'
|
|
64070
64131
|
| 'dormakaba_community_site'
|
|
64132
|
+
| 'dormakaba_ambiance_site'
|
|
64071
64133
|
| 'legic_connect_credential_service'
|
|
64072
64134
|
| 'assa_abloy_vostio'
|
|
64073
64135
|
| 'assa_abloy_vostio_credential_service'
|
|
@@ -64101,6 +64163,7 @@ export interface Routes {
|
|
|
64101
64163
|
| 'assa_abloy_credential_service'
|
|
64102
64164
|
| 'latch_building'
|
|
64103
64165
|
| 'dormakaba_community_site'
|
|
64166
|
+
| 'dormakaba_ambiance_site'
|
|
64104
64167
|
| 'legic_connect_credential_service'
|
|
64105
64168
|
| 'assa_abloy_vostio'
|
|
64106
64169
|
| 'assa_abloy_vostio_credential_service'
|
|
@@ -86557,6 +86620,7 @@ export interface Routes {
|
|
|
86557
86620
|
| 'assa_abloy_credential_service'
|
|
86558
86621
|
| 'latch_building'
|
|
86559
86622
|
| 'dormakaba_community_site'
|
|
86623
|
+
| 'dormakaba_ambiance_site'
|
|
86560
86624
|
| 'legic_connect_credential_service'
|
|
86561
86625
|
| 'assa_abloy_vostio'
|
|
86562
86626
|
| 'assa_abloy_vostio_credential_service'
|
|
@@ -86590,6 +86654,7 @@ export interface Routes {
|
|
|
86590
86654
|
| 'assa_abloy_credential_service'
|
|
86591
86655
|
| 'latch_building'
|
|
86592
86656
|
| 'dormakaba_community_site'
|
|
86657
|
+
| 'dormakaba_ambiance_site'
|
|
86593
86658
|
| 'legic_connect_credential_service'
|
|
86594
86659
|
| 'assa_abloy_vostio'
|
|
86595
86660
|
| 'assa_abloy_vostio_credential_service'
|
|
@@ -88960,6 +89025,7 @@ export interface Routes {
|
|
|
88960
89025
|
| 'assa_abloy_credential_service'
|
|
88961
89026
|
| 'latch_building'
|
|
88962
89027
|
| 'dormakaba_community_site'
|
|
89028
|
+
| 'dormakaba_ambiance_site'
|
|
88963
89029
|
| 'legic_connect_credential_service'
|
|
88964
89030
|
| 'assa_abloy_vostio'
|
|
88965
89031
|
| 'assa_abloy_vostio_credential_service'
|
|
@@ -88993,6 +89059,7 @@ export interface Routes {
|
|
|
88993
89059
|
| 'assa_abloy_credential_service'
|
|
88994
89060
|
| 'latch_building'
|
|
88995
89061
|
| 'dormakaba_community_site'
|
|
89062
|
+
| 'dormakaba_ambiance_site'
|
|
88996
89063
|
| 'legic_connect_credential_service'
|
|
88997
89064
|
| 'assa_abloy_vostio'
|
|
88998
89065
|
| 'assa_abloy_vostio_credential_service'
|
|
@@ -91672,6 +91739,55 @@ export interface Routes {
|
|
|
91672
91739
|
can_unlock_with_code?: boolean | undefined
|
|
91673
91740
|
}>
|
|
91674
91741
|
| undefined
|
|
91742
|
+
connect_webviews?:
|
|
91743
|
+
| Array<{
|
|
91744
|
+
/** ID of the Connect Webview. */
|
|
91745
|
+
connect_webview_id: string
|
|
91746
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the Connect Webview. */
|
|
91747
|
+
workspace_id: string
|
|
91748
|
+
/** Date and time at which the Connect Webview was created. */
|
|
91749
|
+
created_at: string
|
|
91750
|
+
/** ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the Connect Webview. */
|
|
91751
|
+
connected_account_id: string | null
|
|
91752
|
+
/** URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user. */
|
|
91753
|
+
url: string
|
|
91754
|
+
device_selection_mode: 'none' | 'single' | 'multiple'
|
|
91755
|
+
/** List of accepted [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews). */
|
|
91756
|
+
accepted_providers: string[]
|
|
91757
|
+
/** High-level device capabilities that the Connect Webview can accept. When creating a Connect Webview, you can specify the types of devices that it can connect to Seam. If you do not set custom `accepted_capabilities`, Seam uses a default set of `accepted_capabilities` for each provider. For example, if you create a Connect Webview that accepts SmartThing devices, without specifying `accepted_capabilities`, Seam accepts only SmartThings locks. To connect SmartThings thermostats and locks to Seam, create a Connect Webview and include both `thermostat` and `lock` in the `accepted_capabilities`. */
|
|
91758
|
+
accepted_capabilities: Array<
|
|
91759
|
+
'lock' | 'thermostat' | 'noise_sensor' | 'access_control'
|
|
91760
|
+
>
|
|
91761
|
+
/**
|
|
91762
|
+
* @deprecated Unused. Will be removed. */
|
|
91763
|
+
accepted_devices: string[]
|
|
91764
|
+
/**
|
|
91765
|
+
* @deprecated Unused. Will be removed. */
|
|
91766
|
+
any_device_allowed: boolean
|
|
91767
|
+
/** Indicates whether any provider is allowed. */
|
|
91768
|
+
any_provider_allowed: boolean
|
|
91769
|
+
/** Indicates whether the user logged in successfully using the Connect Webview. */
|
|
91770
|
+
login_successful: boolean
|
|
91771
|
+
/** Status of the Connect Webview. `authorized` indicates that the user has successfully logged into their device or system account, thereby completing the Connect Webview. */
|
|
91772
|
+
status: 'pending' | 'failed' | 'authorized'
|
|
91773
|
+
/** URL to which the Connect Webview should redirect when the user successfully pairs a device or system. If you do not set the `custom_redirect_failure_url`, the Connect Webview redirects to the `custom_redirect_url` when an unexpected error occurs. */
|
|
91774
|
+
custom_redirect_url: string | null
|
|
91775
|
+
/** URL to which the Connect Webview should redirect when an unexpected error occurs. */
|
|
91776
|
+
custom_redirect_failure_url: string | null
|
|
91777
|
+
/** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
|
|
91778
|
+
custom_metadata: Record<string, string | boolean>
|
|
91779
|
+
/** Indicates whether Seam should [import all new devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#automatically_manage_new_devices) for the connected account to make these devices available for use and management by the Seam API. */
|
|
91780
|
+
automatically_manage_new_devices: boolean
|
|
91781
|
+
/** Indicates whether Seam should [finish syncing all devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#wait_for_device_creation) in a newly-connected account before completing the associated Connect Webview. */
|
|
91782
|
+
wait_for_device_creation: boolean
|
|
91783
|
+
/** Date and time at which the user authorized (through the Connect Webview) the management of their devices. */
|
|
91784
|
+
authorized_at: string | null
|
|
91785
|
+
/** Selected provider of the Connect Webview, one of the [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews). */
|
|
91786
|
+
selected_provider: string | null
|
|
91787
|
+
/** The customer key associated with this webview, if any. */
|
|
91788
|
+
customer_key?: string | undefined
|
|
91789
|
+
}>
|
|
91790
|
+
| undefined
|
|
91675
91791
|
}
|
|
91676
91792
|
}
|
|
91677
91793
|
}
|