@seamapi/types 1.409.1 → 1.410.1
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 +38 -10
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +30 -1
- package/lib/seam/connect/models/connect-webviews/connect-webview.d.ts +5 -0
- package/lib/seam/connect/models/connect-webviews/connect-webview.js +12 -0
- package/lib/seam/connect/models/connect-webviews/connect-webview.js.map +1 -1
- package/lib/seam/connect/models/devices/device-provider.d.ts +2 -0
- package/lib/seam/connect/models/devices/device-provider.js +8 -0
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +18 -0
- package/lib/seam/connect/openapi.js +26 -10
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +9 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/models/connect-webviews/connect-webview.ts +20 -0
- package/src/lib/seam/connect/models/devices/device-provider.ts +13 -0
- package/src/lib/seam/connect/openapi.ts +30 -10
- package/src/lib/seam/connect/route-types.ts +17 -1
package/dist/connect.d.cts
CHANGED
|
@@ -10413,6 +10413,7 @@ declare const connect_webview: z.ZodObject<{
|
|
|
10413
10413
|
url: z.ZodString;
|
|
10414
10414
|
device_selection_mode: z.ZodEnum<["none", "single", "multiple"]>;
|
|
10415
10415
|
accepted_providers: z.ZodArray<z.ZodString, "many">;
|
|
10416
|
+
accepted_capabilities: z.ZodArray<z.ZodEnum<["lock", "thermostat", "noise_sensor", "access_control"]>, "many">;
|
|
10416
10417
|
accepted_devices: z.ZodArray<z.ZodString, "many">;
|
|
10417
10418
|
any_device_allowed: z.ZodBoolean;
|
|
10418
10419
|
any_provider_allowed: z.ZodBoolean;
|
|
@@ -10436,6 +10437,7 @@ declare const connect_webview: z.ZodObject<{
|
|
|
10436
10437
|
connect_webview_id: string;
|
|
10437
10438
|
device_selection_mode: "none" | "single" | "multiple";
|
|
10438
10439
|
accepted_providers: string[];
|
|
10440
|
+
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
10439
10441
|
accepted_devices: string[];
|
|
10440
10442
|
any_device_allowed: boolean;
|
|
10441
10443
|
any_provider_allowed: boolean;
|
|
@@ -10456,6 +10458,7 @@ declare const connect_webview: z.ZodObject<{
|
|
|
10456
10458
|
connect_webview_id: string;
|
|
10457
10459
|
device_selection_mode: "none" | "single" | "multiple";
|
|
10458
10460
|
accepted_providers: string[];
|
|
10461
|
+
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
10459
10462
|
accepted_devices: string[];
|
|
10460
10463
|
any_device_allowed: boolean;
|
|
10461
10464
|
any_provider_allowed: boolean;
|
|
@@ -24414,6 +24417,15 @@ declare const _default: {
|
|
|
24414
24417
|
connect_webview: {
|
|
24415
24418
|
description: string;
|
|
24416
24419
|
properties: {
|
|
24420
|
+
accepted_capabilities: {
|
|
24421
|
+
description: string;
|
|
24422
|
+
items: {
|
|
24423
|
+
description: string;
|
|
24424
|
+
enum: string[];
|
|
24425
|
+
type: string;
|
|
24426
|
+
};
|
|
24427
|
+
type: string;
|
|
24428
|
+
};
|
|
24417
24429
|
accepted_devices: {
|
|
24418
24430
|
deprecated: boolean;
|
|
24419
24431
|
items: {
|
|
@@ -41902,6 +41914,15 @@ declare const _default: {
|
|
|
41902
41914
|
'application/json': {
|
|
41903
41915
|
schema: {
|
|
41904
41916
|
properties: {
|
|
41917
|
+
accepted_capabilities: {
|
|
41918
|
+
description: string;
|
|
41919
|
+
items: {
|
|
41920
|
+
description: string;
|
|
41921
|
+
enum: string[];
|
|
41922
|
+
type: string;
|
|
41923
|
+
};
|
|
41924
|
+
type: string;
|
|
41925
|
+
};
|
|
41905
41926
|
accepted_providers: {
|
|
41906
41927
|
description: string;
|
|
41907
41928
|
items: {
|
|
@@ -76169,6 +76190,8 @@ interface Routes {
|
|
|
76169
76190
|
automatically_manage_new_devices?: boolean;
|
|
76170
76191
|
/** Indicates whether Seam should finish syncing all devices in a newly-connected account before completing the associated Connect Webview. See also: [Customize the Behavior Settings of Your Connect Webviews](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-behavior-settings-of-your-connect-webviews). */
|
|
76171
76192
|
wait_for_device_creation?: boolean;
|
|
76193
|
+
/** List of accepted device capabilities that restrict the types of devices that can be connected through the Connect Webview. If not provided, defaults will be determined based on the accepted providers. */
|
|
76194
|
+
accepted_capabilities?: Array<'lock' | 'thermostat' | 'noise_sensor' | 'access_control'> | undefined;
|
|
76172
76195
|
};
|
|
76173
76196
|
commonParams: {};
|
|
76174
76197
|
formData: {};
|
|
@@ -76198,6 +76221,8 @@ interface Routes {
|
|
|
76198
76221
|
device_selection_mode: 'none' | 'single' | 'multiple';
|
|
76199
76222
|
/** 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). */
|
|
76200
76223
|
accepted_providers: string[];
|
|
76224
|
+
/** List of accepted device capabilities that restrict the types of devices that can be connected through the Connect Webview. */
|
|
76225
|
+
accepted_capabilities: Array<'lock' | 'thermostat' | 'noise_sensor' | 'access_control'>;
|
|
76201
76226
|
/**
|
|
76202
76227
|
* @deprecated Unused. Will be removed. */
|
|
76203
76228
|
accepted_devices: string[];
|
|
@@ -76275,6 +76300,8 @@ interface Routes {
|
|
|
76275
76300
|
device_selection_mode: 'none' | 'single' | 'multiple';
|
|
76276
76301
|
/** 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). */
|
|
76277
76302
|
accepted_providers: string[];
|
|
76303
|
+
/** List of accepted device capabilities that restrict the types of devices that can be connected through the Connect Webview. */
|
|
76304
|
+
accepted_capabilities: Array<'lock' | 'thermostat' | 'noise_sensor' | 'access_control'>;
|
|
76278
76305
|
/**
|
|
76279
76306
|
* @deprecated Unused. Will be removed. */
|
|
76280
76307
|
accepted_devices: string[];
|
|
@@ -76334,6 +76361,8 @@ interface Routes {
|
|
|
76334
76361
|
device_selection_mode: 'none' | 'single' | 'multiple';
|
|
76335
76362
|
/** 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). */
|
|
76336
76363
|
accepted_providers: string[];
|
|
76364
|
+
/** List of accepted device capabilities that restrict the types of devices that can be connected through the Connect Webview. */
|
|
76365
|
+
accepted_capabilities: Array<'lock' | 'thermostat' | 'noise_sensor' | 'access_control'>;
|
|
76337
76366
|
/**
|
|
76338
76367
|
* @deprecated Unused. Will be removed. */
|
|
76339
76368
|
accepted_devices: string[];
|
|
@@ -112299,7 +112328,7 @@ interface Routes {
|
|
|
112299
112328
|
heating_set_point_fahrenheit?: number | undefined;
|
|
112300
112329
|
/** Indicates whether a person at the thermostat can change the thermostat's settings. See [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions).
|
|
112301
112330
|
* @deprecated Use 'thermostat_schedule.is_override_allowed' */
|
|
112302
|
-
manual_override_allowed
|
|
112331
|
+
manual_override_allowed?: boolean | undefined;
|
|
112303
112332
|
};
|
|
112304
112333
|
commonParams: {};
|
|
112305
112334
|
formData: {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const connect_webview_device_selection_mode: z.ZodEnum<["none", "single", "multiple"]>;
|
|
3
|
+
export declare const connect_webview_accepted_capabilities: z.ZodEnum<["lock", "thermostat", "noise_sensor", "access_control"]>;
|
|
4
|
+
export type ConnectWebviewAcceptedCapabilities = z.infer<typeof connect_webview_accepted_capabilities>;
|
|
3
5
|
export declare const connect_webview: z.ZodObject<{
|
|
4
6
|
connect_webview_id: z.ZodString;
|
|
5
7
|
workspace_id: z.ZodString;
|
|
@@ -8,6 +10,7 @@ export declare const connect_webview: z.ZodObject<{
|
|
|
8
10
|
url: z.ZodString;
|
|
9
11
|
device_selection_mode: z.ZodEnum<["none", "single", "multiple"]>;
|
|
10
12
|
accepted_providers: z.ZodArray<z.ZodString, "many">;
|
|
13
|
+
accepted_capabilities: z.ZodArray<z.ZodEnum<["lock", "thermostat", "noise_sensor", "access_control"]>, "many">;
|
|
11
14
|
accepted_devices: z.ZodArray<z.ZodString, "many">;
|
|
12
15
|
any_device_allowed: z.ZodBoolean;
|
|
13
16
|
any_provider_allowed: z.ZodBoolean;
|
|
@@ -31,6 +34,7 @@ export declare const connect_webview: z.ZodObject<{
|
|
|
31
34
|
connect_webview_id: string;
|
|
32
35
|
device_selection_mode: "none" | "multiple" | "single";
|
|
33
36
|
accepted_providers: string[];
|
|
37
|
+
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
34
38
|
accepted_devices: string[];
|
|
35
39
|
any_device_allowed: boolean;
|
|
36
40
|
any_provider_allowed: boolean;
|
|
@@ -51,6 +55,7 @@ export declare const connect_webview: z.ZodObject<{
|
|
|
51
55
|
connect_webview_id: string;
|
|
52
56
|
device_selection_mode: "none" | "multiple" | "single";
|
|
53
57
|
accepted_providers: string[];
|
|
58
|
+
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
54
59
|
accepted_devices: string[];
|
|
55
60
|
any_device_allowed: boolean;
|
|
56
61
|
any_provider_allowed: boolean;
|
|
@@ -5,6 +5,15 @@ export const connect_webview_device_selection_mode = z.enum([
|
|
|
5
5
|
'single',
|
|
6
6
|
'multiple',
|
|
7
7
|
]);
|
|
8
|
+
export const connect_webview_accepted_capabilities = z.enum([
|
|
9
|
+
'lock',
|
|
10
|
+
'thermostat',
|
|
11
|
+
'noise_sensor',
|
|
12
|
+
'access_control',
|
|
13
|
+
]).describe(`
|
|
14
|
+
High-level device capabilities that can be restricted in connect webviews.
|
|
15
|
+
These represent the main device categories that customers can opt into.
|
|
16
|
+
`);
|
|
8
17
|
export const connect_webview = z.object({
|
|
9
18
|
connect_webview_id: z.string().uuid().describe('ID of the Connect Webview.'),
|
|
10
19
|
workspace_id: z
|
|
@@ -29,6 +38,9 @@ export const connect_webview = z.object({
|
|
|
29
38
|
accepted_providers: z
|
|
30
39
|
.array(z.string())
|
|
31
40
|
.describe('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).'),
|
|
41
|
+
accepted_capabilities: z
|
|
42
|
+
.array(connect_webview_accepted_capabilities)
|
|
43
|
+
.describe('List of accepted device capabilities that restrict the types of devices that can be connected through the Connect Webview.'),
|
|
32
44
|
accepted_devices: z.array(z.string()).describe(`
|
|
33
45
|
---
|
|
34
46
|
undocumented: Unused. Will be removed.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect-webview.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/connect-webviews/connect-webview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAC,IAAI,CAAC;IAC1D,MAAM;IACN,QAAQ;IACR,UAAU;CACX,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAC5E,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,gHAAgH,CACjH;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;IACtE,oBAAoB,EAAE,CAAC;SACpB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,EAA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,iBAAiB,EAAE,CAAC;SACjB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,yNAAyN,CAC1N;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;;;;;;;;;;;CAeX,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"connect-webview.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/connect-webviews/connect-webview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAC,IAAI,CAAC;IAC1D,MAAM;IACN,QAAQ;IACR,UAAU;CACX,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAC,IAAI,CAAC;IAC1D,MAAM;IACN,YAAY;IACZ,cAAc;IACd,gBAAgB;CACjB,CAAC,CAAC,QAAQ,CAAC;;;CAGX,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAC5E,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,gHAAgH,CACjH;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;IACtE,oBAAoB,EAAE,CAAC;SACpB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,EAAE;SACV,QAAQ,CACP,kIAAkI,CACnI;IACH,GAAG,EAAE,CAAC;SACH,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,CACP,gGAAgG,CACjG;IACH,qBAAqB,EAAE,qCAAqC;IAE5D,wBAAwB;IACxB,kB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yN,CAC1N;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;;;;;;;;;;;CAeX,CAAC,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { ConnectWebviewAcceptedCapabilities } from '../connect-webviews/index.js';
|
|
2
3
|
export declare const DEVICE_PROVIDERS: {
|
|
3
4
|
readonly DORMAKABA_COMMUNITY: "dormakaba_community";
|
|
4
5
|
readonly LEGIC_CONNECT: "legic_connect";
|
|
@@ -116,3 +117,4 @@ export declare const device_provider: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
116
117
|
can_simulate_disconnection?: boolean | undefined;
|
|
117
118
|
}>;
|
|
118
119
|
export type DeviceProvider = z.infer<typeof device_provider>;
|
|
120
|
+
export declare const PROVIDER_CATEGORY_CAPABILITY_MAP: Record<ProviderCategory, ConnectWebviewAcceptedCapabilities[]>;
|
|
@@ -123,4 +123,12 @@ export const device_provider = z
|
|
|
123
123
|
route_path: /devices
|
|
124
124
|
---
|
|
125
125
|
`);
|
|
126
|
+
export const PROVIDER_CATEGORY_CAPABILITY_MAP = {
|
|
127
|
+
stable: ['lock', 'thermostat', 'noise_sensor', 'access_control'],
|
|
128
|
+
consumer_smartlocks: ['lock'],
|
|
129
|
+
thermostats: ['thermostat'],
|
|
130
|
+
noise_sensors: ['noise_sensor'],
|
|
131
|
+
access_control_systems: ['access_control'],
|
|
132
|
+
internal_beta: ['lock', 'thermostat', 'noise_sensor', 'access_control'],
|
|
133
|
+
};
|
|
126
134
|
//# sourceMappingURL=device-provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device-provider.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/devices/device-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"device-provider.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/devices/device-provider.ts"],"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Q,CAAA;AAE/E,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC;KAC7B,MAAM,CAAC;IACN,oBAAoB,EAAE,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC;IAClD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;CACjE,CAAC;KACD,MAAM,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC;;;;GAI/C,CAAC,CAAA;AAIJ,MAAM,CAAC,MAAM,gCAAgC,GAGzC;IACF,MAAM,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,gBAAgB,CAAC;IAChE,mBAAmB,EAAE,CAAC,MAAM,CAAC;IAC7B,WAAW,EAAE,CAAC,YAAY,CAAC;IAC3B,aAAa,EAAE,CAAC,cAAc,CAAC;IAC/B,sBAAsB,EAAE,CAAC,gBAAgB,CAAC;IAC1C,aAAa,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,gBAAgB,CAAC;CACxE,CAAA"}
|
|
@@ -2903,6 +2903,15 @@ declare const _default: {
|
|
|
2903
2903
|
connect_webview: {
|
|
2904
2904
|
description: string;
|
|
2905
2905
|
properties: {
|
|
2906
|
+
accepted_capabilities: {
|
|
2907
|
+
description: string;
|
|
2908
|
+
items: {
|
|
2909
|
+
description: string;
|
|
2910
|
+
enum: string[];
|
|
2911
|
+
type: string;
|
|
2912
|
+
};
|
|
2913
|
+
type: string;
|
|
2914
|
+
};
|
|
2906
2915
|
accepted_devices: {
|
|
2907
2916
|
deprecated: boolean;
|
|
2908
2917
|
items: {
|
|
@@ -20391,6 +20400,15 @@ declare const _default: {
|
|
|
20391
20400
|
'application/json': {
|
|
20392
20401
|
schema: {
|
|
20393
20402
|
properties: {
|
|
20403
|
+
accepted_capabilities: {
|
|
20404
|
+
description: string;
|
|
20405
|
+
items: {
|
|
20406
|
+
description: string;
|
|
20407
|
+
enum: string[];
|
|
20408
|
+
type: string;
|
|
20409
|
+
};
|
|
20410
|
+
type: string;
|
|
20411
|
+
};
|
|
20394
20412
|
accepted_providers: {
|
|
20395
20413
|
description: string;
|
|
20396
20414
|
items: {
|
|
@@ -6458,6 +6458,15 @@ export default {
|
|
|
6458
6458
|
connect_webview: {
|
|
6459
6459
|
description: 'Represents a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews).\n\nConnect Webviews are fully-embedded client-side components that you add to your app. Your users interact with your embedded Connect Webviews to link their IoT device or system accounts to Seam. That is, Connect Webviews walk your users through the process of logging in to their device or system accounts. Seam handles all the authentication steps, and—once your user has completed the authorization through your app—you can access and control their devices or systems using the Seam API.\n\nConnect Webviews perform credential validation, multifactor authentication (when applicable), and error handling for each brand that Seam supports. Further, Connect Webviews work across all modern browsers and platforms, including Chrome, Safari, and Firefox.\n\nTo enable a user to connect their device or system account to Seam through your app, first create a `connect_webview`. Once created, this `connect_webview` includes a URL that you can use to open an [iframe](https://www.w3schools.com/html/html_iframe.asp) or new window containing the Connect Webview for your user.\n\nWhen you create a Connect Webview, specify the desired provider category key in the `provider_category` parameter. Alternately, to specify a list of providers explicitly, use the `accepted_providers` parameter with a list of device provider keys.\n\nTo list all providers within a category, use `/devices/list_device_providers` with the desired `provider_category` filter. To list all provider keys, use `/devices/list_device_providers` with no filters.',
|
|
6460
6460
|
properties: {
|
|
6461
|
+
accepted_capabilities: {
|
|
6462
|
+
description: 'List of accepted device capabilities that restrict the types of devices that can be connected through the Connect Webview.',
|
|
6463
|
+
items: {
|
|
6464
|
+
description: '\n High-level device capabilities that can be restricted in connect webviews.\n These represent the main device categories that customers can opt into.\n',
|
|
6465
|
+
enum: ['lock', 'thermostat', 'noise_sensor', 'access_control'],
|
|
6466
|
+
type: 'string',
|
|
6467
|
+
},
|
|
6468
|
+
type: 'array',
|
|
6469
|
+
},
|
|
6461
6470
|
accepted_devices: {
|
|
6462
6471
|
deprecated: true,
|
|
6463
6472
|
items: { type: 'string' },
|
|
@@ -6566,6 +6575,7 @@ export default {
|
|
|
6566
6575
|
'url',
|
|
6567
6576
|
'device_selection_mode',
|
|
6568
6577
|
'accepted_providers',
|
|
6578
|
+
'accepted_capabilities',
|
|
6569
6579
|
'accepted_devices',
|
|
6570
6580
|
'any_device_allowed',
|
|
6571
6581
|
'any_provider_allowed',
|
|
@@ -26284,6 +26294,20 @@ export default {
|
|
|
26284
26294
|
'application/json': {
|
|
26285
26295
|
schema: {
|
|
26286
26296
|
properties: {
|
|
26297
|
+
accepted_capabilities: {
|
|
26298
|
+
description: 'List of accepted device capabilities that restrict the types of devices that can be connected through the Connect Webview. If not provided, defaults will be determined based on the accepted providers.',
|
|
26299
|
+
items: {
|
|
26300
|
+
description: '\n High-level device capabilities that can be restricted in connect webviews.\n These represent the main device categories that customers can opt into.\n',
|
|
26301
|
+
enum: [
|
|
26302
|
+
'lock',
|
|
26303
|
+
'thermostat',
|
|
26304
|
+
'noise_sensor',
|
|
26305
|
+
'access_control',
|
|
26306
|
+
],
|
|
26307
|
+
type: 'string',
|
|
26308
|
+
},
|
|
26309
|
+
type: 'array',
|
|
26310
|
+
},
|
|
26287
26311
|
accepted_providers: {
|
|
26288
26312
|
description: 'Accepted device provider keys as an alternative to `provider_category`. Use this parameter to specify accepted providers explicitly. See [Customize the Brands to Display in Your Connect Webviews](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews). To list all provider keys, use [`/devices/list_device_providers`](https://docs.seam.co/latest/api/devices/list_device_providers) with no filters.',
|
|
26289
26313
|
items: {
|
|
@@ -34608,11 +34632,7 @@ export default {
|
|
|
34608
34632
|
type: 'string',
|
|
34609
34633
|
},
|
|
34610
34634
|
},
|
|
34611
|
-
required: [
|
|
34612
|
-
'device_id',
|
|
34613
|
-
'climate_preset_key',
|
|
34614
|
-
'manual_override_allowed',
|
|
34615
|
-
],
|
|
34635
|
+
required: ['device_id', 'climate_preset_key'],
|
|
34616
34636
|
type: 'object',
|
|
34617
34637
|
},
|
|
34618
34638
|
},
|
|
@@ -34706,11 +34726,7 @@ export default {
|
|
|
34706
34726
|
type: 'string',
|
|
34707
34727
|
},
|
|
34708
34728
|
},
|
|
34709
|
-
required: [
|
|
34710
|
-
'device_id',
|
|
34711
|
-
'climate_preset_key',
|
|
34712
|
-
'manual_override_allowed',
|
|
34713
|
-
],
|
|
34729
|
+
required: ['device_id', 'climate_preset_key'],
|
|
34714
34730
|
type: 'object',
|
|
34715
34731
|
},
|
|
34716
34732
|
},
|