@seamapi/types 1.409.0 → 1.410.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 +101 -41
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +83 -14
- 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/models/events/access-grants.js +5 -5
- package/lib/seam/connect/models/events/access-methods.js +4 -4
- package/lib/seam/connect/models/partner/resources.d.ts +1 -0
- package/lib/seam/connect/openapi.d.ts +63 -11
- package/lib/seam/connect/openapi.js +72 -24
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +17 -3
- 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/models/events/access-grants.ts +5 -5
- package/src/lib/seam/connect/models/events/access-methods.ts +4 -4
- package/src/lib/seam/connect/models/partner/resources.ts +2 -0
- package/src/lib/seam/connect/openapi.ts +77 -24
- package/src/lib/seam/connect/route-types.ts +33 -7
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: {
|
|
@@ -35229,12 +35241,12 @@ declare const _default: {
|
|
|
35229
35241
|
})[];
|
|
35230
35242
|
summary: string;
|
|
35231
35243
|
tags: never[];
|
|
35244
|
+
'x-draft': string;
|
|
35232
35245
|
'x-fern-sdk-group-name': string[];
|
|
35233
35246
|
'x-fern-sdk-method-name': string;
|
|
35234
35247
|
'x-fern-sdk-return-value': string;
|
|
35235
35248
|
'x-response-key': string;
|
|
35236
35249
|
'x-title': string;
|
|
35237
|
-
'x-undocumented': string;
|
|
35238
35250
|
};
|
|
35239
35251
|
};
|
|
35240
35252
|
'/access_grants/delete': {
|
|
@@ -35305,11 +35317,11 @@ declare const _default: {
|
|
|
35305
35317
|
})[];
|
|
35306
35318
|
summary: string;
|
|
35307
35319
|
tags: never[];
|
|
35320
|
+
'x-draft': string;
|
|
35308
35321
|
'x-fern-sdk-group-name': string[];
|
|
35309
35322
|
'x-fern-sdk-method-name': string;
|
|
35310
35323
|
'x-response-key': null;
|
|
35311
35324
|
'x-title': string;
|
|
35312
|
-
'x-undocumented': string;
|
|
35313
35325
|
};
|
|
35314
35326
|
};
|
|
35315
35327
|
'/access_grants/get': {
|
|
@@ -35469,12 +35481,12 @@ declare const _default: {
|
|
|
35469
35481
|
})[];
|
|
35470
35482
|
summary: string;
|
|
35471
35483
|
tags: never[];
|
|
35484
|
+
'x-draft': string;
|
|
35472
35485
|
'x-fern-sdk-group-name': string[];
|
|
35473
35486
|
'x-fern-sdk-method-name': string;
|
|
35474
35487
|
'x-fern-sdk-return-value': string;
|
|
35475
35488
|
'x-response-key': string;
|
|
35476
35489
|
'x-title': string;
|
|
35477
|
-
'x-undocumented': string;
|
|
35478
35490
|
};
|
|
35479
35491
|
};
|
|
35480
35492
|
'/access_grants/list': {
|
|
@@ -35657,12 +35669,12 @@ declare const _default: {
|
|
|
35657
35669
|
})[];
|
|
35658
35670
|
summary: string;
|
|
35659
35671
|
tags: never[];
|
|
35672
|
+
'x-draft': string;
|
|
35660
35673
|
'x-fern-sdk-group-name': string[];
|
|
35661
35674
|
'x-fern-sdk-method-name': string;
|
|
35662
35675
|
'x-fern-sdk-return-value': string;
|
|
35663
35676
|
'x-response-key': string;
|
|
35664
35677
|
'x-title': string;
|
|
35665
|
-
'x-undocumented': string;
|
|
35666
35678
|
};
|
|
35667
35679
|
};
|
|
35668
35680
|
'/access_methods/delete': {
|
|
@@ -35725,11 +35737,11 @@ declare const _default: {
|
|
|
35725
35737
|
})[];
|
|
35726
35738
|
summary: string;
|
|
35727
35739
|
tags: never[];
|
|
35740
|
+
'x-draft': string;
|
|
35728
35741
|
'x-fern-sdk-group-name': string[];
|
|
35729
35742
|
'x-fern-sdk-method-name': string;
|
|
35730
35743
|
'x-response-key': null;
|
|
35731
35744
|
'x-title': string;
|
|
35732
|
-
'x-undocumented': string;
|
|
35733
35745
|
};
|
|
35734
35746
|
};
|
|
35735
35747
|
'/access_methods/get': {
|
|
@@ -35837,12 +35849,12 @@ declare const _default: {
|
|
|
35837
35849
|
})[];
|
|
35838
35850
|
summary: string;
|
|
35839
35851
|
tags: never[];
|
|
35852
|
+
'x-draft': string;
|
|
35840
35853
|
'x-fern-sdk-group-name': string[];
|
|
35841
35854
|
'x-fern-sdk-method-name': string;
|
|
35842
35855
|
'x-fern-sdk-return-value': string;
|
|
35843
35856
|
'x-response-key': string;
|
|
35844
35857
|
'x-title': string;
|
|
35845
|
-
'x-undocumented': string;
|
|
35846
35858
|
};
|
|
35847
35859
|
};
|
|
35848
35860
|
'/access_methods/list': {
|
|
@@ -35953,12 +35965,12 @@ declare const _default: {
|
|
|
35953
35965
|
})[];
|
|
35954
35966
|
summary: string;
|
|
35955
35967
|
tags: never[];
|
|
35968
|
+
'x-draft': string;
|
|
35956
35969
|
'x-fern-sdk-group-name': string[];
|
|
35957
35970
|
'x-fern-sdk-method-name': string;
|
|
35958
35971
|
'x-fern-sdk-return-value': string;
|
|
35959
35972
|
'x-response-key': string;
|
|
35960
35973
|
'x-title': string;
|
|
35961
|
-
'x-undocumented': string;
|
|
35962
35974
|
};
|
|
35963
35975
|
};
|
|
35964
35976
|
'/acs/access_groups/add_user': {
|
|
@@ -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: {
|
|
@@ -47882,6 +47903,7 @@ declare const _default: {
|
|
|
47882
47903
|
})[];
|
|
47883
47904
|
summary: string;
|
|
47884
47905
|
tags: never[];
|
|
47906
|
+
'x-draft': string;
|
|
47885
47907
|
'x-fern-sdk-group-name': string[];
|
|
47886
47908
|
'x-fern-sdk-method-name': string;
|
|
47887
47909
|
'x-response-key': null;
|
|
@@ -47953,6 +47975,7 @@ declare const _default: {
|
|
|
47953
47975
|
})[];
|
|
47954
47976
|
summary: string;
|
|
47955
47977
|
tags: never[];
|
|
47978
|
+
'x-draft': string;
|
|
47956
47979
|
'x-fern-ignore': boolean;
|
|
47957
47980
|
'x-response-key': null;
|
|
47958
47981
|
'x-title': string;
|
|
@@ -48025,6 +48048,7 @@ declare const _default: {
|
|
|
48025
48048
|
})[];
|
|
48026
48049
|
summary: string;
|
|
48027
48050
|
tags: never[];
|
|
48051
|
+
'x-draft': string;
|
|
48028
48052
|
'x-fern-sdk-group-name': string[];
|
|
48029
48053
|
'x-fern-sdk-method-name': string;
|
|
48030
48054
|
'x-response-key': null;
|
|
@@ -48096,6 +48120,7 @@ declare const _default: {
|
|
|
48096
48120
|
})[];
|
|
48097
48121
|
summary: string;
|
|
48098
48122
|
tags: never[];
|
|
48123
|
+
'x-draft': string;
|
|
48099
48124
|
'x-fern-ignore': boolean;
|
|
48100
48125
|
'x-response-key': null;
|
|
48101
48126
|
'x-title': string;
|
|
@@ -48176,6 +48201,7 @@ declare const _default: {
|
|
|
48176
48201
|
})[];
|
|
48177
48202
|
summary: string;
|
|
48178
48203
|
tags: never[];
|
|
48204
|
+
'x-draft': string;
|
|
48179
48205
|
'x-fern-sdk-group-name': string[];
|
|
48180
48206
|
'x-fern-sdk-method-name': string;
|
|
48181
48207
|
'x-fern-sdk-return-value': string;
|
|
@@ -48366,6 +48392,7 @@ declare const _default: {
|
|
|
48366
48392
|
})[];
|
|
48367
48393
|
summary: string;
|
|
48368
48394
|
tags: never[];
|
|
48395
|
+
'x-draft': string;
|
|
48369
48396
|
'x-fern-ignore': boolean;
|
|
48370
48397
|
'x-response-key': string;
|
|
48371
48398
|
'x-title': string;
|
|
@@ -48418,6 +48445,7 @@ declare const _default: {
|
|
|
48418
48445
|
})[];
|
|
48419
48446
|
summary: string;
|
|
48420
48447
|
tags: never[];
|
|
48448
|
+
'x-draft': string;
|
|
48421
48449
|
'x-fern-sdk-group-name': string[];
|
|
48422
48450
|
'x-fern-sdk-method-name': string;
|
|
48423
48451
|
'x-fern-sdk-return-value': string;
|
|
@@ -48491,6 +48519,7 @@ declare const _default: {
|
|
|
48491
48519
|
})[];
|
|
48492
48520
|
summary: string;
|
|
48493
48521
|
tags: never[];
|
|
48522
|
+
'x-draft': string;
|
|
48494
48523
|
'x-fern-sdk-group-name': string[];
|
|
48495
48524
|
'x-fern-sdk-method-name': string;
|
|
48496
48525
|
'x-response-key': null;
|
|
@@ -48563,6 +48592,7 @@ declare const _default: {
|
|
|
48563
48592
|
})[];
|
|
48564
48593
|
summary: string;
|
|
48565
48594
|
tags: never[];
|
|
48595
|
+
'x-draft': string;
|
|
48566
48596
|
'x-fern-sdk-group-name': string[];
|
|
48567
48597
|
'x-fern-sdk-method-name': string;
|
|
48568
48598
|
'x-response-key': null;
|
|
@@ -48634,6 +48664,7 @@ declare const _default: {
|
|
|
48634
48664
|
})[];
|
|
48635
48665
|
summary: string;
|
|
48636
48666
|
tags: never[];
|
|
48667
|
+
'x-draft': string;
|
|
48637
48668
|
'x-fern-ignore': boolean;
|
|
48638
48669
|
'x-response-key': string;
|
|
48639
48670
|
'x-title': string;
|
|
@@ -48702,6 +48733,7 @@ declare const _default: {
|
|
|
48702
48733
|
})[];
|
|
48703
48734
|
summary: string;
|
|
48704
48735
|
tags: never[];
|
|
48736
|
+
'x-draft': string;
|
|
48705
48737
|
'x-fern-sdk-group-name': string[];
|
|
48706
48738
|
'x-fern-sdk-method-name': string;
|
|
48707
48739
|
'x-fern-sdk-return-value': string;
|
|
@@ -54065,7 +54097,7 @@ declare const _default: {
|
|
|
54065
54097
|
customer_key: {
|
|
54066
54098
|
type: string;
|
|
54067
54099
|
};
|
|
54068
|
-
|
|
54100
|
+
partner_resources?: never;
|
|
54069
54101
|
};
|
|
54070
54102
|
required: string[];
|
|
54071
54103
|
type: string;
|
|
@@ -54075,10 +54107,34 @@ declare const _default: {
|
|
|
54075
54107
|
enum: string[];
|
|
54076
54108
|
type: string;
|
|
54077
54109
|
};
|
|
54078
|
-
|
|
54110
|
+
customer_key: {
|
|
54079
54111
|
type: string;
|
|
54080
54112
|
};
|
|
54081
|
-
|
|
54113
|
+
partner_resources: {
|
|
54114
|
+
description: string;
|
|
54115
|
+
items: {
|
|
54116
|
+
properties: {
|
|
54117
|
+
custom_metadata: {
|
|
54118
|
+
additionalProperties: {
|
|
54119
|
+
type: string;
|
|
54120
|
+
};
|
|
54121
|
+
type: string;
|
|
54122
|
+
};
|
|
54123
|
+
description: {
|
|
54124
|
+
type: string;
|
|
54125
|
+
};
|
|
54126
|
+
name: {
|
|
54127
|
+
type: string;
|
|
54128
|
+
};
|
|
54129
|
+
partner_resource_key: {
|
|
54130
|
+
type: string;
|
|
54131
|
+
};
|
|
54132
|
+
};
|
|
54133
|
+
required: string[];
|
|
54134
|
+
type: string;
|
|
54135
|
+
'x-route-path': string;
|
|
54136
|
+
'x-undocumented': string;
|
|
54137
|
+
};
|
|
54082
54138
|
type: string;
|
|
54083
54139
|
};
|
|
54084
54140
|
};
|
|
@@ -54244,7 +54300,6 @@ declare const _default: {
|
|
|
54244
54300
|
'x-route-path': string;
|
|
54245
54301
|
'x-undocumented': string;
|
|
54246
54302
|
};
|
|
54247
|
-
minItems: number;
|
|
54248
54303
|
type: string;
|
|
54249
54304
|
};
|
|
54250
54305
|
};
|
|
@@ -76135,6 +76190,8 @@ interface Routes {
|
|
|
76135
76190
|
automatically_manage_new_devices?: boolean;
|
|
76136
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). */
|
|
76137
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;
|
|
76138
76195
|
};
|
|
76139
76196
|
commonParams: {};
|
|
76140
76197
|
formData: {};
|
|
@@ -76164,6 +76221,8 @@ interface Routes {
|
|
|
76164
76221
|
device_selection_mode: 'none' | 'single' | 'multiple';
|
|
76165
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). */
|
|
76166
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'>;
|
|
76167
76226
|
/**
|
|
76168
76227
|
* @deprecated Unused. Will be removed. */
|
|
76169
76228
|
accepted_devices: string[];
|
|
@@ -76241,6 +76300,8 @@ interface Routes {
|
|
|
76241
76300
|
device_selection_mode: 'none' | 'single' | 'multiple';
|
|
76242
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). */
|
|
76243
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'>;
|
|
76244
76305
|
/**
|
|
76245
76306
|
* @deprecated Unused. Will be removed. */
|
|
76246
76307
|
accepted_devices: string[];
|
|
@@ -76300,6 +76361,8 @@ interface Routes {
|
|
|
76300
76361
|
device_selection_mode: 'none' | 'single' | 'multiple';
|
|
76301
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). */
|
|
76302
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'>;
|
|
76303
76366
|
/**
|
|
76304
76367
|
* @deprecated Unused. Will be removed. */
|
|
76305
76368
|
accepted_devices: string[];
|
|
@@ -113895,7 +113958,13 @@ interface Routes {
|
|
|
113895
113958
|
} | {
|
|
113896
113959
|
building_block_type: 'organize_spaces';
|
|
113897
113960
|
customer_key: string;
|
|
113898
|
-
|
|
113961
|
+
/** Optional list of partner resources to include in the magic link. */
|
|
113962
|
+
partner_resources?: Array<{
|
|
113963
|
+
partner_resource_key: string;
|
|
113964
|
+
name: string;
|
|
113965
|
+
description?: string | undefined;
|
|
113966
|
+
custom_metadata?: Record<string, string> | undefined;
|
|
113967
|
+
}> | undefined;
|
|
113899
113968
|
};
|
|
113900
113969
|
formData: {};
|
|
113901
113970
|
jsonResponse: {
|
|
@@ -113938,12 +114007,12 @@ interface Routes {
|
|
|
113938
114007
|
jsonBody: {};
|
|
113939
114008
|
commonParams: {
|
|
113940
114009
|
customer_key: string;
|
|
113941
|
-
partner_resources
|
|
114010
|
+
partner_resources?: Array<{
|
|
113942
114011
|
partner_resource_key: string;
|
|
113943
114012
|
name: string;
|
|
113944
114013
|
description?: string | undefined;
|
|
113945
114014
|
custom_metadata?: Record<string, string> | undefined;
|
|
113946
|
-
}
|
|
114015
|
+
}> | undefined;
|
|
113947
114016
|
};
|
|
113948
114017
|
formData: {};
|
|
113949
114018
|
jsonResponse: {
|
|
@@ -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,qCA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K,CAC3K;IACH,mBAAmB,EAAE,CAAC;SACnB,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,QAAQ,CACP,wPAAwP,CACzP;IACH,2BAA2B,EAAE,CAAC;SAC3B,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,QAAQ,CACP,mFAAmF,CACpF;IACH,eAAe;IACf,gCAAgC,EAAE,CAAC;SAChC,OAAO,EAAE;SACT,QAAQ,CACP,oRAAoR,CACrR;IACH,wBAAwB,EAAE,CAAC;SACxB,OAAO,EAAE;SACT,QAAQ,CACP,6PAA6P,CAC9P;IACH,aAAa,EAAE,CAAC;SACb,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CACP,2GAA2G,CAC5G;IACH,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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,EAAE;SACV,QAAQ,CACP,wPAAwP,CACzP;IACH,2BAA2B,EAAE,CAAC;SAC3B,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,QAAQ,CACP,mFAAmF,CACpF;IACH,eAAe;IACf,gCAAgC,EAAE,CAAC;SAChC,OAAO,EAAE;SACT,QAAQ,CACP,oRAAoR,CACrR;IACH,wBAAwB,EAAE,CAAC;SACxB,OAAO,EAAE;SACT,QAAQ,CACP,6PAA6P,CAC9P;IACH,aAAa,EAAE,CAAC;SACb,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CACP,2GAA2G,CAC5G;IACH,iBAAiB,EAAE,CAAC;SACjB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,yNAAyN,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"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAErD,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,mBAAmB,EAAE,qBAAqB;IAC1C,aAAa,EAAE,eAAe;IAC9B,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,eAAe;IAC9B,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,YAAY;IACxB,IAAI,EAAE,MAAM;IACZ,gBAAgB,EAAE,kBAAkB;IACpC,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,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E,gBAAgB,CAAC;CACxE,CAAA"}
|
|
@@ -10,7 +10,7 @@ export const access_grant_created_event = access_grant_event.extend({
|
|
|
10
10
|
event_type: z.literal('access_grant.created'),
|
|
11
11
|
}).describe(`
|
|
12
12
|
---
|
|
13
|
-
route_path: /
|
|
13
|
+
route_path: /access_grants
|
|
14
14
|
---
|
|
15
15
|
An access grant was created.
|
|
16
16
|
`);
|
|
@@ -18,7 +18,7 @@ export const access_grant_deleted_event = access_grant_event.extend({
|
|
|
18
18
|
event_type: z.literal('access_grant.deleted'),
|
|
19
19
|
}).describe(`
|
|
20
20
|
---
|
|
21
|
-
route_path: /
|
|
21
|
+
route_path: /access_grants
|
|
22
22
|
---
|
|
23
23
|
An access grant was deleted.
|
|
24
24
|
`);
|
|
@@ -26,7 +26,7 @@ export const access_grant_access_granted_to_all_doors_event = access_grant_event
|
|
|
26
26
|
event_type: z.literal('access_grant.access_granted_to_all_doors'),
|
|
27
27
|
}).describe(`
|
|
28
28
|
---
|
|
29
|
-
route_path: /
|
|
29
|
+
route_path: /access_grants
|
|
30
30
|
---
|
|
31
31
|
All access requested for an access grant was successfully granted.
|
|
32
32
|
`);
|
|
@@ -39,7 +39,7 @@ export const access_grant_access_granted_to_door_event = access_grant_event.exte
|
|
|
39
39
|
acs_entrance_id,
|
|
40
40
|
}).describe(`
|
|
41
41
|
---
|
|
42
|
-
route_path: /
|
|
42
|
+
route_path: /access_grants
|
|
43
43
|
---
|
|
44
44
|
Access requested as part of an access grant to a particular door was successfully granted.
|
|
45
45
|
`);
|
|
@@ -48,7 +48,7 @@ export const access_grant_access_to_door_lost_event = access_grant_event.extend(
|
|
|
48
48
|
acs_entrance_id,
|
|
49
49
|
}).describe(`
|
|
50
50
|
---
|
|
51
|
-
route_path: /
|
|
51
|
+
route_path: /access_grants
|
|
52
52
|
---
|
|
53
53
|
Access to a particular door that was requested as part of an access grant was lost.
|
|
54
54
|
`);
|
|
@@ -10,7 +10,7 @@ export const access_method_issued_event = access_method_event.extend({
|
|
|
10
10
|
event_type: z.literal('access_method.issued'),
|
|
11
11
|
}).describe(`
|
|
12
12
|
---
|
|
13
|
-
route_path: /
|
|
13
|
+
route_path: /access_methods
|
|
14
14
|
---
|
|
15
15
|
An access method was issued.
|
|
16
16
|
`);
|
|
@@ -18,7 +18,7 @@ export const access_method_card_encoding_required_event = access_method_event.ex
|
|
|
18
18
|
event_type: z.literal('access_method.card_encoding_required'),
|
|
19
19
|
}).describe(`
|
|
20
20
|
---
|
|
21
|
-
route_path: /
|
|
21
|
+
route_path: /access_methods
|
|
22
22
|
---
|
|
23
23
|
An access method representing a physical card requires encoding.
|
|
24
24
|
`);
|
|
@@ -26,7 +26,7 @@ export const access_method_revoked_event = access_method_event.extend({
|
|
|
26
26
|
event_type: z.literal('access_method.revoked'),
|
|
27
27
|
}).describe(`
|
|
28
28
|
---
|
|
29
|
-
route_path: /
|
|
29
|
+
route_path: /access_methods
|
|
30
30
|
---
|
|
31
31
|
An access method was revoked.
|
|
32
32
|
`);
|
|
@@ -34,7 +34,7 @@ export const access_method_deleted_event = access_method_event.extend({
|
|
|
34
34
|
event_type: z.literal('access_method.deleted'),
|
|
35
35
|
}).describe(`
|
|
36
36
|
---
|
|
37
|
-
route_path: /
|
|
37
|
+
route_path: /access_methods
|
|
38
38
|
---
|
|
39
39
|
An access method was deleted.
|
|
40
40
|
`);
|