@seamapi/types 1.406.4 → 1.406.6
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 +110 -58
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +120 -72
- package/lib/seam/connect/models/client-sessions/client-session.d.ts +3 -0
- package/lib/seam/connect/models/client-sessions/client-session.js +4 -3
- package/lib/seam/connect/models/client-sessions/client-session.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +89 -59
- package/lib/seam/connect/openapi.js +100 -49
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +28 -13
- package/package.json +1 -1
- package/src/lib/seam/connect/models/client-sessions/client-session.ts +4 -3
- package/src/lib/seam/connect/openapi.ts +111 -49
- package/src/lib/seam/connect/route-types.ts +28 -13
|
@@ -21,11 +21,11 @@ export interface Routes {
|
|
|
21
21
|
common_code_key?: string | undefined;
|
|
22
22
|
/** Indicates whether [native scheduling](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#native-scheduling) should be used for time-bound codes when supported by the provider. Default: `true`. */
|
|
23
23
|
prefer_native_scheduling?: boolean | undefined;
|
|
24
|
-
/** Indicates whether to use a [backup access code pool](https://docs.seam.co/latest/core-concepts/access-codes#backup-access-codes) provided by Seam. If `true`, you can use [`/access_codes/pull_backup_access_code`](https://docs.seam.co/latest/api
|
|
24
|
+
/** Indicates whether to use a [backup access code pool](https://docs.seam.co/latest/core-concepts/access-codes#backup-access-codes) provided by Seam. If `true`, you can use [`/access_codes/pull_backup_access_code`](https://docs.seam.co/latest/api/access_codes/pull_backup_access_code). */
|
|
25
25
|
use_backup_access_code_pool?: boolean | undefined;
|
|
26
|
-
/** Indicates whether [external modification](https://docs.seam.co/latest/
|
|
26
|
+
/** Indicates whether [external modification](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`. */
|
|
27
27
|
allow_external_modification?: boolean | undefined;
|
|
28
|
-
/** Indicates whether [external modification](https://docs.seam.co/latest/
|
|
28
|
+
/** Indicates whether [external modification](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`. */
|
|
29
29
|
is_external_modification_allowed?: boolean | undefined;
|
|
30
30
|
/** Preferred code length. Only applicable if you do not specify a `code`. If the affected device does not support the preferred code length, Seam reverts to using the shortest supported code length. */
|
|
31
31
|
preferred_code_length?: number | undefined;
|
|
@@ -1629,11 +1629,11 @@ export interface Routes {
|
|
|
1629
1629
|
attempt_for_offline_device?: boolean;
|
|
1630
1630
|
/** Indicates whether [native scheduling](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#native-scheduling) should be used for time-bound codes when supported by the provider. Default: `true`. */
|
|
1631
1631
|
prefer_native_scheduling?: boolean | undefined;
|
|
1632
|
-
/** Indicates whether to use a [backup access code pool](https://docs.seam.co/latest/core-concepts/access-codes#backup-access-codes) provided by Seam. If `true`, you can use [`/access_codes/pull_backup_access_code`](https://docs.seam.co/latest/api
|
|
1632
|
+
/** Indicates whether to use a [backup access code pool](https://docs.seam.co/latest/core-concepts/access-codes#backup-access-codes) provided by Seam. If `true`, you can use [`/access_codes/pull_backup_access_code`](https://docs.seam.co/latest/api/access_codes/pull_backup_access_code). */
|
|
1633
1633
|
use_backup_access_code_pool?: boolean | undefined;
|
|
1634
|
-
/** Indicates whether [external modification](https://docs.seam.co/latest/
|
|
1634
|
+
/** Indicates whether [external modification](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`. */
|
|
1635
1635
|
allow_external_modification?: boolean | undefined;
|
|
1636
|
-
/** Indicates whether [external modification](https://docs.seam.co/latest/
|
|
1636
|
+
/** Indicates whether [external modification](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`. */
|
|
1637
1637
|
is_external_modification_allowed?: boolean | undefined;
|
|
1638
1638
|
use_offline_access_code?: boolean | undefined;
|
|
1639
1639
|
/** Indicates whether the access code is an [offline access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/offline-access-codes). */
|
|
@@ -7716,11 +7716,11 @@ export interface Routes {
|
|
|
7716
7716
|
attempt_for_offline_device?: boolean;
|
|
7717
7717
|
/** Indicates whether [native scheduling](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#native-scheduling) should be used for time-bound codes when supported by the provider. Default: `true`. */
|
|
7718
7718
|
prefer_native_scheduling?: boolean | undefined;
|
|
7719
|
-
/** Indicates whether to use a [backup access code pool](https://docs.seam.co/latest/core-concepts/access-codes#backup-access-codes) provided by Seam. If `true`, you can use [`/access_codes/pull_backup_access_code`](https://docs.seam.co/latest/api
|
|
7719
|
+
/** Indicates whether to use a [backup access code pool](https://docs.seam.co/latest/core-concepts/access-codes#backup-access-codes) provided by Seam. If `true`, you can use [`/access_codes/pull_backup_access_code`](https://docs.seam.co/latest/api/access_codes/pull_backup_access_code). */
|
|
7720
7720
|
use_backup_access_code_pool?: boolean | undefined;
|
|
7721
|
-
/** Indicates whether [external modification](https://docs.seam.co/latest/
|
|
7721
|
+
/** Indicates whether [external modification](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`. */
|
|
7722
7722
|
allow_external_modification?: boolean | undefined;
|
|
7723
|
-
/** Indicates whether [external modification](https://docs.seam.co/latest/
|
|
7723
|
+
/** Indicates whether [external modification](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#external-modification) of the code is allowed. Default: `false`. */
|
|
7724
7724
|
is_external_modification_allowed?: boolean | undefined;
|
|
7725
7725
|
/** Preferred code length. Only applicable if you do not specify a `code`. If the affected device does not support the preferred code length, Seam reverts to using the shortest supported code length. */
|
|
7726
7726
|
preferred_code_length?: number | undefined;
|
|
@@ -18560,6 +18560,7 @@ export interface Routes {
|
|
|
18560
18560
|
token: string;
|
|
18561
18561
|
user_identifier_key: string | null;
|
|
18562
18562
|
device_count: number;
|
|
18563
|
+
customer_id?: string | undefined;
|
|
18563
18564
|
connected_account_ids: string[];
|
|
18564
18565
|
connect_webview_ids: string[];
|
|
18565
18566
|
user_identity_ids: string[];
|
|
@@ -18608,6 +18609,7 @@ export interface Routes {
|
|
|
18608
18609
|
token: string;
|
|
18609
18610
|
user_identifier_key: string | null;
|
|
18610
18611
|
device_count: number;
|
|
18612
|
+
customer_id?: string | undefined;
|
|
18611
18613
|
connected_account_ids: string[];
|
|
18612
18614
|
connect_webview_ids: string[];
|
|
18613
18615
|
user_identity_ids: string[];
|
|
@@ -18650,6 +18652,7 @@ export interface Routes {
|
|
|
18650
18652
|
token: string;
|
|
18651
18653
|
user_identifier_key: string | null;
|
|
18652
18654
|
device_count: number;
|
|
18655
|
+
customer_id?: string | undefined;
|
|
18653
18656
|
connected_account_ids: string[];
|
|
18654
18657
|
connect_webview_ids: string[];
|
|
18655
18658
|
user_identity_ids: string[];
|
|
@@ -18692,6 +18695,7 @@ export interface Routes {
|
|
|
18692
18695
|
token: string;
|
|
18693
18696
|
user_identifier_key: string | null;
|
|
18694
18697
|
device_count: number;
|
|
18698
|
+
customer_id?: string | undefined;
|
|
18695
18699
|
connected_account_ids: string[];
|
|
18696
18700
|
connect_webview_ids: string[];
|
|
18697
18701
|
user_identity_ids: string[];
|
|
@@ -18725,6 +18729,7 @@ export interface Routes {
|
|
|
18725
18729
|
token: string;
|
|
18726
18730
|
user_identifier_key: string | null;
|
|
18727
18731
|
device_count: number;
|
|
18732
|
+
customer_id?: string | undefined;
|
|
18728
18733
|
connected_account_ids: string[];
|
|
18729
18734
|
connect_webview_ids: string[];
|
|
18730
18735
|
user_identity_ids: string[];
|
|
@@ -18906,7 +18911,7 @@ export interface Routes {
|
|
|
18906
18911
|
queryParams: {};
|
|
18907
18912
|
jsonBody: {};
|
|
18908
18913
|
commonParams: {
|
|
18909
|
-
|
|
18914
|
+
customer_ids?: string[] | undefined;
|
|
18910
18915
|
/** Your user ID for the user by which you want to filter Connect Webviews. */
|
|
18911
18916
|
user_identifier_key?: string | undefined;
|
|
18912
18917
|
/** Custom metadata pairs by which you want to [filter Connect Webviews](https://docs.seam.co/latest/core-concepts/connect-webviews/filtering-connect-webviews-by-custom-metadata). Returns Connect Webviews with `custom_metadata` that contains all of the provided key:value pairs. */
|
|
@@ -25460,7 +25465,9 @@ export interface Routes {
|
|
|
25460
25465
|
queryParams: {};
|
|
25461
25466
|
jsonBody: {};
|
|
25462
25467
|
commonParams: {
|
|
25468
|
+
/** ID of the lock that you want to get. */
|
|
25463
25469
|
device_id?: string | undefined;
|
|
25470
|
+
/** Name of the lock that you want to get. */
|
|
25464
25471
|
name?: string | undefined;
|
|
25465
25472
|
};
|
|
25466
25473
|
formData: {};
|
|
@@ -27888,11 +27895,11 @@ export interface Routes {
|
|
|
27888
27895
|
connected_account_ids?: string[] | undefined;
|
|
27889
27896
|
/** ID of the Connect Webview for which you want to list devices. */
|
|
27890
27897
|
connect_webview_id?: string | undefined;
|
|
27891
|
-
/** Device type
|
|
27898
|
+
/** Device type of the locks that you want to list. */
|
|
27892
27899
|
device_type?: ('akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'avigilon_alta_entry' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'wyze_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock' | 'four_suites_door' | 'dormakaba_oracode_door' | 'tedee_lock' | 'akiles_lock') | undefined;
|
|
27893
|
-
/**
|
|
27900
|
+
/** Device types of the locks that you want to list. */
|
|
27894
27901
|
device_types?: Array<'akuvox_lock' | 'august_lock' | 'brivo_access_point' | 'butterflymx_panel' | 'avigilon_alta_entry' | 'doorking_lock' | 'genie_door' | 'igloo_lock' | 'linear_lock' | 'lockly_lock' | 'kwikset_lock' | 'nuki_lock' | 'salto_lock' | 'schlage_lock' | 'seam_relay' | 'smartthings_lock' | 'wyze_lock' | 'yale_lock' | 'two_n_intercom' | 'controlbyweb_device' | 'ttlock_lock' | 'igloohome_lock' | 'hubitat_lock' | 'four_suites_door' | 'dormakaba_oracode_door' | 'tedee_lock' | 'akiles_lock'> | undefined;
|
|
27895
|
-
/** Manufacturer
|
|
27902
|
+
/** Manufacturer of the locks that you want to list. */
|
|
27896
27903
|
manufacturer?: ('akuvox' | 'august' | 'brivo' | 'butterflymx' | 'avigilon_alta' | 'doorking' | 'genie' | 'igloo' | 'linear' | 'lockly' | 'kwikset' | 'nuki' | 'salto' | 'schlage' | 'seam' | 'wyze' | 'yale' | 'two_n' | 'controlbyweb' | 'ttlock' | 'igloohome' | 'hubitat' | 'four_suites' | 'dormakaba_oracode' | 'tedee' | 'akiles' | 'kwikset2' | 'smartthings') | undefined;
|
|
27897
27904
|
/** Array of device IDs for which you want to list devices. */
|
|
27898
27905
|
device_ids?: string[] | undefined;
|
|
@@ -30328,7 +30335,9 @@ export interface Routes {
|
|
|
30328
30335
|
method: 'POST';
|
|
30329
30336
|
queryParams: {};
|
|
30330
30337
|
jsonBody: {
|
|
30338
|
+
/** ID of the lock that you want to lock. */
|
|
30331
30339
|
device_id: string;
|
|
30340
|
+
/** */
|
|
30332
30341
|
sync?: boolean;
|
|
30333
30342
|
};
|
|
30334
30343
|
commonParams: {};
|
|
@@ -31444,7 +31453,9 @@ export interface Routes {
|
|
|
31444
31453
|
method: 'POST';
|
|
31445
31454
|
queryParams: {};
|
|
31446
31455
|
jsonBody: {
|
|
31456
|
+
/** ID of the device for which you want to simulate a keypad code entry. */
|
|
31447
31457
|
device_id: string;
|
|
31458
|
+
/** Code that you want to simulate entering on a keypad. */
|
|
31448
31459
|
code: string;
|
|
31449
31460
|
};
|
|
31450
31461
|
commonParams: {};
|
|
@@ -32560,6 +32571,7 @@ export interface Routes {
|
|
|
32560
32571
|
method: 'POST';
|
|
32561
32572
|
queryParams: {};
|
|
32562
32573
|
jsonBody: {
|
|
32574
|
+
/** ID of the device for which you want to simulate a manual lock action using a keypad. */
|
|
32563
32575
|
device_id: string;
|
|
32564
32576
|
};
|
|
32565
32577
|
commonParams: {};
|
|
@@ -33675,7 +33687,9 @@ export interface Routes {
|
|
|
33675
33687
|
method: 'POST';
|
|
33676
33688
|
queryParams: {};
|
|
33677
33689
|
jsonBody: {
|
|
33690
|
+
/** ID of the lock that you want to unlock. */
|
|
33678
33691
|
device_id: string;
|
|
33692
|
+
/** */
|
|
33679
33693
|
sync?: boolean;
|
|
33680
33694
|
};
|
|
33681
33695
|
commonParams: {};
|
|
@@ -41194,6 +41208,7 @@ export interface Routes {
|
|
|
41194
41208
|
token: string;
|
|
41195
41209
|
user_identifier_key: string | null;
|
|
41196
41210
|
device_count: number;
|
|
41211
|
+
customer_id?: string | undefined;
|
|
41197
41212
|
connected_account_ids: string[];
|
|
41198
41213
|
connect_webview_ids: string[];
|
|
41199
41214
|
user_identity_ids: string[];
|
package/package.json
CHANGED
|
@@ -8,6 +8,7 @@ export const client_session = z.object({
|
|
|
8
8
|
token: z.string(),
|
|
9
9
|
user_identifier_key: z.string().nullable(),
|
|
10
10
|
device_count: z.number(),
|
|
11
|
+
customer_id: z.string().uuid().optional(),
|
|
11
12
|
connected_account_ids: z.array(z.string().uuid()),
|
|
12
13
|
connect_webview_ids: z.array(z.string().uuid()),
|
|
13
14
|
user_identity_ids: z.array(z.string().uuid()),
|
|
@@ -16,11 +17,11 @@ export const client_session = z.object({
|
|
|
16
17
|
route_path: /client_sessions
|
|
17
18
|
---
|
|
18
19
|
Represents a [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens). If you want to restrict your users' access to their own devices, use client sessions.
|
|
19
|
-
|
|
20
|
+
|
|
20
21
|
You create each client session with a custom \`user_identifier_key\`. Normally, the \`user_identifier_key\` is a user ID that your application provides.
|
|
21
|
-
|
|
22
|
+
|
|
22
23
|
When calling the Seam API from your backend using an API key, you can pass the \`user_identifier_key\` as a parameter to limit results to the associated client session. For example, \`/devices/list?user_identifier_key=123\` only returns devices associated with the client session created with the \`user_identifier_key\` \`123\`.
|
|
23
|
-
|
|
24
|
+
|
|
24
25
|
A client session has a token that you can use with the Seam JavaScript SDK to make requests from the client (browser) directly to the Seam API. The token restricts the user's access to only the devices that they own.
|
|
25
26
|
|
|
26
27
|
See also [Get Started with React](https://docs.seam.co/latest/ui-components/overview/getting-started-with-seam-components/get-started-with-react-components-and-client-session-tokens).
|