@seamapi/types 1.734.0 → 1.736.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 +76 -35
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +81 -57
- package/dist/index.cjs +76 -35
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +10 -10
- package/lib/seam/connect/models/connect-webviews/connect-webview.d.ts +3 -3
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +3 -3
- package/lib/seam/connect/models/devices/device-provider.d.ts +5 -3
- package/lib/seam/connect/models/devices/device-provider.js +10 -1
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- package/lib/seam/connect/models/provider-capability.d.ts +1 -1
- package/lib/seam/connect/models/provider-capability.js +1 -0
- package/lib/seam/connect/models/provider-capability.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +35 -18
- package/lib/seam/connect/openapi.js +60 -22
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +26 -20
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/device-provider.ts +11 -1
- package/src/lib/seam/connect/models/provider-capability.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +62 -22
- package/src/lib/seam/connect/route-types.ts +44 -6
package/dist/connect.cjs
CHANGED
|
@@ -558,7 +558,8 @@ var provider_capability = zod.z.enum([
|
|
|
558
558
|
"lock",
|
|
559
559
|
"thermostat",
|
|
560
560
|
"noise_sensor",
|
|
561
|
-
"access_control"
|
|
561
|
+
"access_control",
|
|
562
|
+
"camera"
|
|
562
563
|
]).describe(`
|
|
563
564
|
High-level device capabilities that can be restricted in connect webviews.
|
|
564
565
|
These represent the main device categories that customers can opt into.
|
|
@@ -1939,7 +1940,8 @@ var DEVICE_PROVIDERS = {
|
|
|
1939
1940
|
KEYNEST: "keynest",
|
|
1940
1941
|
KORELOCK: "korelock",
|
|
1941
1942
|
DORMAKABA_AMBIANCE: "dormakaba_ambiance",
|
|
1942
|
-
ULTRALOQ: "ultraloq"
|
|
1943
|
+
ULTRALOQ: "ultraloq",
|
|
1944
|
+
RING: "ring"
|
|
1943
1945
|
};
|
|
1944
1946
|
var ALL_DEVICE_PROVIDERS = Object.values(DEVICE_PROVIDERS);
|
|
1945
1947
|
var PROVIDER_CATEGORY_MAP = {
|
|
@@ -2006,6 +2008,7 @@ var PROVIDER_CATEGORY_MAP = {
|
|
|
2006
2008
|
"legic_connect",
|
|
2007
2009
|
"hotek"
|
|
2008
2010
|
],
|
|
2011
|
+
cameras: ["ring"],
|
|
2009
2012
|
internal_beta: ALL_DEVICE_PROVIDERS
|
|
2010
2013
|
};
|
|
2011
2014
|
var PROVIDER_CATEGORIES = Object.keys(PROVIDER_CATEGORY_MAP);
|
|
@@ -14886,7 +14889,13 @@ var openapi_default = {
|
|
|
14886
14889
|
description: "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`.",
|
|
14887
14890
|
items: {
|
|
14888
14891
|
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",
|
|
14889
|
-
enum: [
|
|
14892
|
+
enum: [
|
|
14893
|
+
"lock",
|
|
14894
|
+
"thermostat",
|
|
14895
|
+
"noise_sensor",
|
|
14896
|
+
"access_control",
|
|
14897
|
+
"camera"
|
|
14898
|
+
],
|
|
14890
14899
|
type: "string"
|
|
14891
14900
|
},
|
|
14892
14901
|
type: "array"
|
|
@@ -15027,7 +15036,13 @@ var openapi_default = {
|
|
|
15027
15036
|
description: "List of capabilities that were accepted during the account connection process.",
|
|
15028
15037
|
items: {
|
|
15029
15038
|
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",
|
|
15030
|
-
enum: [
|
|
15039
|
+
enum: [
|
|
15040
|
+
"lock",
|
|
15041
|
+
"thermostat",
|
|
15042
|
+
"noise_sensor",
|
|
15043
|
+
"access_control",
|
|
15044
|
+
"camera"
|
|
15045
|
+
],
|
|
15031
15046
|
type: "string"
|
|
15032
15047
|
},
|
|
15033
15048
|
type: "array"
|
|
@@ -19156,7 +19171,8 @@ var openapi_default = {
|
|
|
19156
19171
|
"keynest",
|
|
19157
19172
|
"korelock",
|
|
19158
19173
|
"dormakaba_ambiance",
|
|
19159
|
-
"ultraloq"
|
|
19174
|
+
"ultraloq",
|
|
19175
|
+
"ring"
|
|
19160
19176
|
],
|
|
19161
19177
|
type: "string"
|
|
19162
19178
|
},
|
|
@@ -19170,7 +19186,8 @@ var openapi_default = {
|
|
|
19170
19186
|
"beta",
|
|
19171
19187
|
"thermostats",
|
|
19172
19188
|
"noise_sensors",
|
|
19173
|
-
"access_control_systems"
|
|
19189
|
+
"access_control_systems",
|
|
19190
|
+
"cameras"
|
|
19174
19191
|
],
|
|
19175
19192
|
type: "string"
|
|
19176
19193
|
},
|
|
@@ -39260,18 +39277,6 @@ var openapi_default = {
|
|
|
39260
39277
|
delete: {
|
|
39261
39278
|
description: "Deletes an access method.",
|
|
39262
39279
|
operationId: "accessMethodsDeleteDelete",
|
|
39263
|
-
parameters: [
|
|
39264
|
-
{
|
|
39265
|
-
in: "query",
|
|
39266
|
-
name: "access_method_id",
|
|
39267
|
-
required: true,
|
|
39268
|
-
schema: {
|
|
39269
|
-
description: "ID of access method to get.",
|
|
39270
|
-
format: "uuid",
|
|
39271
|
-
type: "string"
|
|
39272
|
-
}
|
|
39273
|
-
}
|
|
39274
|
-
],
|
|
39275
39280
|
responses: {
|
|
39276
39281
|
200: {
|
|
39277
39282
|
content: {
|
|
@@ -39309,15 +39314,40 @@ var openapi_default = {
|
|
|
39309
39314
|
content: {
|
|
39310
39315
|
"application/json": {
|
|
39311
39316
|
schema: {
|
|
39312
|
-
|
|
39313
|
-
|
|
39314
|
-
|
|
39315
|
-
|
|
39316
|
-
|
|
39317
|
+
oneOf: [
|
|
39318
|
+
{
|
|
39319
|
+
properties: {
|
|
39320
|
+
access_method_id: {
|
|
39321
|
+
description: "ID of access method to delete.",
|
|
39322
|
+
format: "uuid",
|
|
39323
|
+
type: "string"
|
|
39324
|
+
}
|
|
39325
|
+
},
|
|
39326
|
+
required: ["access_method_id"],
|
|
39327
|
+
type: "object"
|
|
39328
|
+
},
|
|
39329
|
+
{
|
|
39330
|
+
properties: {
|
|
39331
|
+
access_grant_id: {
|
|
39332
|
+
description: "ID of access grant whose access methods should be deleted.",
|
|
39333
|
+
format: "uuid",
|
|
39334
|
+
type: "string"
|
|
39335
|
+
}
|
|
39336
|
+
},
|
|
39337
|
+
required: ["access_grant_id"],
|
|
39338
|
+
type: "object"
|
|
39339
|
+
},
|
|
39340
|
+
{
|
|
39341
|
+
properties: {
|
|
39342
|
+
reservation_key: {
|
|
39343
|
+
description: "Reservation key of the access grant whose access methods should be deleted.",
|
|
39344
|
+
type: "string"
|
|
39345
|
+
}
|
|
39346
|
+
},
|
|
39347
|
+
required: ["reservation_key"],
|
|
39348
|
+
type: "object"
|
|
39317
39349
|
}
|
|
39318
|
-
|
|
39319
|
-
required: ["access_method_id"],
|
|
39320
|
-
type: "object"
|
|
39350
|
+
]
|
|
39321
39351
|
}
|
|
39322
39352
|
}
|
|
39323
39353
|
}
|
|
@@ -48738,7 +48768,8 @@ var openapi_default = {
|
|
|
48738
48768
|
"lock",
|
|
48739
48769
|
"thermostat",
|
|
48740
48770
|
"noise_sensor",
|
|
48741
|
-
"access_control"
|
|
48771
|
+
"access_control",
|
|
48772
|
+
"camera"
|
|
48742
48773
|
],
|
|
48743
48774
|
type: "string"
|
|
48744
48775
|
},
|
|
@@ -48796,6 +48827,7 @@ var openapi_default = {
|
|
|
48796
48827
|
"korelock",
|
|
48797
48828
|
"dormakaba_ambiance",
|
|
48798
48829
|
"ultraloq",
|
|
48830
|
+
"ring",
|
|
48799
48831
|
"yale_access",
|
|
48800
48832
|
"hid_cm",
|
|
48801
48833
|
"google_nest"
|
|
@@ -48851,6 +48883,7 @@ var openapi_default = {
|
|
|
48851
48883
|
"thermostats",
|
|
48852
48884
|
"noise_sensors",
|
|
48853
48885
|
"access_control_systems",
|
|
48886
|
+
"cameras",
|
|
48854
48887
|
"internal_beta"
|
|
48855
48888
|
],
|
|
48856
48889
|
type: "string"
|
|
@@ -49816,7 +49849,8 @@ var openapi_default = {
|
|
|
49816
49849
|
"lock",
|
|
49817
49850
|
"thermostat",
|
|
49818
49851
|
"noise_sensor",
|
|
49819
|
-
"access_control"
|
|
49852
|
+
"access_control",
|
|
49853
|
+
"camera"
|
|
49820
49854
|
],
|
|
49821
49855
|
type: "string"
|
|
49822
49856
|
},
|
|
@@ -49903,7 +49937,8 @@ var openapi_default = {
|
|
|
49903
49937
|
"lock",
|
|
49904
49938
|
"thermostat",
|
|
49905
49939
|
"noise_sensor",
|
|
49906
|
-
"access_control"
|
|
49940
|
+
"access_control",
|
|
49941
|
+
"camera"
|
|
49907
49942
|
],
|
|
49908
49943
|
type: "string"
|
|
49909
49944
|
},
|
|
@@ -52715,7 +52750,8 @@ var openapi_default = {
|
|
|
52715
52750
|
"sensi",
|
|
52716
52751
|
"smartthings",
|
|
52717
52752
|
"tado",
|
|
52718
|
-
"ultraloq"
|
|
52753
|
+
"ultraloq",
|
|
52754
|
+
"ring"
|
|
52719
52755
|
],
|
|
52720
52756
|
type: "string"
|
|
52721
52757
|
}
|
|
@@ -53200,7 +53236,8 @@ var openapi_default = {
|
|
|
53200
53236
|
"sensi",
|
|
53201
53237
|
"smartthings",
|
|
53202
53238
|
"tado",
|
|
53203
|
-
"ultraloq"
|
|
53239
|
+
"ultraloq",
|
|
53240
|
+
"ring"
|
|
53204
53241
|
],
|
|
53205
53242
|
type: "string"
|
|
53206
53243
|
},
|
|
@@ -53291,7 +53328,8 @@ var openapi_default = {
|
|
|
53291
53328
|
"beta",
|
|
53292
53329
|
"thermostats",
|
|
53293
53330
|
"noise_sensors",
|
|
53294
|
-
"access_control_systems"
|
|
53331
|
+
"access_control_systems",
|
|
53332
|
+
"cameras"
|
|
53295
53333
|
],
|
|
53296
53334
|
type: "string"
|
|
53297
53335
|
}
|
|
@@ -53349,7 +53387,8 @@ var openapi_default = {
|
|
|
53349
53387
|
"beta",
|
|
53350
53388
|
"thermostats",
|
|
53351
53389
|
"noise_sensors",
|
|
53352
|
-
"access_control_systems"
|
|
53390
|
+
"access_control_systems",
|
|
53391
|
+
"cameras"
|
|
53353
53392
|
],
|
|
53354
53393
|
type: "string"
|
|
53355
53394
|
}
|
|
@@ -54552,7 +54591,8 @@ var openapi_default = {
|
|
|
54552
54591
|
"sensi",
|
|
54553
54592
|
"smartthings",
|
|
54554
54593
|
"tado",
|
|
54555
|
-
"ultraloq"
|
|
54594
|
+
"ultraloq",
|
|
54595
|
+
"ring"
|
|
54556
54596
|
],
|
|
54557
54597
|
type: "string"
|
|
54558
54598
|
}
|
|
@@ -55036,7 +55076,8 @@ var openapi_default = {
|
|
|
55036
55076
|
"sensi",
|
|
55037
55077
|
"smartthings",
|
|
55038
55078
|
"tado",
|
|
55039
|
-
"ultraloq"
|
|
55079
|
+
"ultraloq",
|
|
55080
|
+
"ring"
|
|
55040
55081
|
],
|
|
55041
55082
|
type: "string"
|
|
55042
55083
|
},
|