@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 CHANGED
@@ -3908,6 +3908,15 @@ var connect_webview_device_selection_mode = zod.z.enum([
3908
3908
  "single",
3909
3909
  "multiple"
3910
3910
  ]);
3911
+ var connect_webview_accepted_capabilities = zod.z.enum([
3912
+ "lock",
3913
+ "thermostat",
3914
+ "noise_sensor",
3915
+ "access_control"
3916
+ ]).describe(`
3917
+ High-level device capabilities that can be restricted in connect webviews.
3918
+ These represent the main device categories that customers can opt into.
3919
+ `);
3911
3920
  var connect_webview = zod.z.object({
3912
3921
  connect_webview_id: zod.z.string().uuid().describe("ID of the Connect Webview."),
3913
3922
  workspace_id: zod.z.string().uuid().describe(
@@ -3925,6 +3934,9 @@ var connect_webview = zod.z.object({
3925
3934
  accepted_providers: zod.z.array(zod.z.string()).describe(
3926
3935
  "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)."
3927
3936
  ),
3937
+ accepted_capabilities: zod.z.array(connect_webview_accepted_capabilities).describe(
3938
+ "List of accepted device capabilities that restrict the types of devices that can be connected through the Connect Webview."
3939
+ ),
3928
3940
  accepted_devices: zod.z.array(zod.z.string()).describe(
3929
3941
  `
3930
3942
  ---
@@ -4163,7 +4175,7 @@ var access_grant_created_event = access_grant_event.extend({
4163
4175
  event_type: zod.z.literal("access_grant.created")
4164
4176
  }).describe(`
4165
4177
  ---
4166
- route_path: /unstable_access_grants
4178
+ route_path: /access_grants
4167
4179
  ---
4168
4180
  An access grant was created.
4169
4181
  `);
@@ -4171,7 +4183,7 @@ var access_grant_deleted_event = access_grant_event.extend({
4171
4183
  event_type: zod.z.literal("access_grant.deleted")
4172
4184
  }).describe(`
4173
4185
  ---
4174
- route_path: /unstable_access_grants
4186
+ route_path: /access_grants
4175
4187
  ---
4176
4188
  An access grant was deleted.
4177
4189
  `);
@@ -4179,7 +4191,7 @@ var access_grant_access_granted_to_all_doors_event = access_grant_event.extend({
4179
4191
  event_type: zod.z.literal("access_grant.access_granted_to_all_doors")
4180
4192
  }).describe(`
4181
4193
  ---
4182
- route_path: /unstable_access_grants
4194
+ route_path: /access_grants
4183
4195
  ---
4184
4196
  All access requested for an access grant was successfully granted.
4185
4197
  `);
@@ -4191,7 +4203,7 @@ var access_grant_access_granted_to_door_event = access_grant_event.extend({
4191
4203
  acs_entrance_id
4192
4204
  }).describe(`
4193
4205
  ---
4194
- route_path: /unstable_access_grants
4206
+ route_path: /access_grants
4195
4207
  ---
4196
4208
  Access requested as part of an access grant to a particular door was successfully granted.
4197
4209
  `);
@@ -4202,7 +4214,7 @@ var access_grant_access_to_door_lost_event = access_grant_event.extend(
4202
4214
  }
4203
4215
  ).describe(`
4204
4216
  ---
4205
- route_path: /unstable_access_grants
4217
+ route_path: /access_grants
4206
4218
  ---
4207
4219
  Access to a particular door that was requested as part of an access grant was lost.
4208
4220
  `);
@@ -4220,7 +4232,7 @@ var access_method_issued_event = access_method_event.extend({
4220
4232
  event_type: zod.z.literal("access_method.issued")
4221
4233
  }).describe(`
4222
4234
  ---
4223
- route_path: /unstable_access_methods
4235
+ route_path: /access_methods
4224
4236
  ---
4225
4237
  An access method was issued.
4226
4238
  `);
@@ -4228,7 +4240,7 @@ var access_method_card_encoding_required_event = access_method_event.extend({
4228
4240
  event_type: zod.z.literal("access_method.card_encoding_required")
4229
4241
  }).describe(`
4230
4242
  ---
4231
- route_path: /unstable_access_methods
4243
+ route_path: /access_methods
4232
4244
  ---
4233
4245
  An access method representing a physical card requires encoding.
4234
4246
  `);
@@ -4236,7 +4248,7 @@ var access_method_revoked_event = access_method_event.extend({
4236
4248
  event_type: zod.z.literal("access_method.revoked")
4237
4249
  }).describe(`
4238
4250
  ---
4239
- route_path: /unstable_access_methods
4251
+ route_path: /access_methods
4240
4252
  ---
4241
4253
  An access method was revoked.
4242
4254
  `);
@@ -4244,7 +4256,7 @@ var access_method_deleted_event = access_method_event.extend({
4244
4256
  event_type: zod.z.literal("access_method.deleted")
4245
4257
  }).describe(`
4246
4258
  ---
4247
- route_path: /unstable_access_methods
4259
+ route_path: /access_methods
4248
4260
  ---
4249
4261
  An access method was deleted.
4250
4262
  `);
@@ -11615,6 +11627,15 @@ var openapi_default = {
11615
11627
  connect_webview: {
11616
11628
  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\u2014once your user has completed the authorization through your app\u2014you 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.",
11617
11629
  properties: {
11630
+ accepted_capabilities: {
11631
+ description: "List of accepted device capabilities that restrict the types of devices that can be connected through the Connect Webview.",
11632
+ items: {
11633
+ 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",
11634
+ enum: ["lock", "thermostat", "noise_sensor", "access_control"],
11635
+ type: "string"
11636
+ },
11637
+ type: "array"
11638
+ },
11618
11639
  accepted_devices: {
11619
11640
  deprecated: true,
11620
11641
  items: { type: "string" },
@@ -11723,6 +11744,7 @@ var openapi_default = {
11723
11744
  "url",
11724
11745
  "device_selection_mode",
11725
11746
  "accepted_providers",
11747
+ "accepted_capabilities",
11726
11748
  "accepted_devices",
11727
11749
  "any_device_allowed",
11728
11750
  "any_provider_allowed",
@@ -15998,7 +16020,7 @@ var openapi_default = {
15998
16020
  "event_type"
15999
16021
  ],
16000
16022
  type: "object",
16001
- "x-route-path": "/unstable_access_grants"
16023
+ "x-route-path": "/access_grants"
16002
16024
  },
16003
16025
  {
16004
16026
  description: "An access grant was deleted.",
@@ -16039,7 +16061,7 @@ var openapi_default = {
16039
16061
  "event_type"
16040
16062
  ],
16041
16063
  type: "object",
16042
- "x-route-path": "/unstable_access_grants"
16064
+ "x-route-path": "/access_grants"
16043
16065
  },
16044
16066
  {
16045
16067
  description: "All access requested for an access grant was successfully granted.",
@@ -16083,7 +16105,7 @@ var openapi_default = {
16083
16105
  "event_type"
16084
16106
  ],
16085
16107
  type: "object",
16086
- "x-route-path": "/unstable_access_grants"
16108
+ "x-route-path": "/access_grants"
16087
16109
  },
16088
16110
  {
16089
16111
  description: "Access requested as part of an access grant to a particular door was successfully granted.",
@@ -16133,7 +16155,7 @@ var openapi_default = {
16133
16155
  "acs_entrance_id"
16134
16156
  ],
16135
16157
  type: "object",
16136
- "x-route-path": "/unstable_access_grants"
16158
+ "x-route-path": "/access_grants"
16137
16159
  },
16138
16160
  {
16139
16161
  description: "Access to a particular door that was requested as part of an access grant was lost.",
@@ -16183,7 +16205,7 @@ var openapi_default = {
16183
16205
  "acs_entrance_id"
16184
16206
  ],
16185
16207
  type: "object",
16186
- "x-route-path": "/unstable_access_grants"
16208
+ "x-route-path": "/access_grants"
16187
16209
  },
16188
16210
  {
16189
16211
  description: "An access method was issued.",
@@ -16224,7 +16246,7 @@ var openapi_default = {
16224
16246
  "event_type"
16225
16247
  ],
16226
16248
  type: "object",
16227
- "x-route-path": "/unstable_access_methods"
16249
+ "x-route-path": "/access_methods"
16228
16250
  },
16229
16251
  {
16230
16252
  description: "An access method was revoked.",
@@ -16265,7 +16287,7 @@ var openapi_default = {
16265
16287
  "event_type"
16266
16288
  ],
16267
16289
  type: "object",
16268
- "x-route-path": "/unstable_access_methods"
16290
+ "x-route-path": "/access_methods"
16269
16291
  },
16270
16292
  {
16271
16293
  description: "An access method representing a physical card requires encoding.",
@@ -16309,7 +16331,7 @@ var openapi_default = {
16309
16331
  "event_type"
16310
16332
  ],
16311
16333
  type: "object",
16312
- "x-route-path": "/unstable_access_methods"
16334
+ "x-route-path": "/access_methods"
16313
16335
  },
16314
16336
  {
16315
16337
  description: "An access method was deleted.",
@@ -16350,7 +16372,7 @@ var openapi_default = {
16350
16372
  "event_type"
16351
16373
  ],
16352
16374
  type: "object",
16353
- "x-route-path": "/unstable_access_methods"
16375
+ "x-route-path": "/access_methods"
16354
16376
  },
16355
16377
  {
16356
16378
  description: "An [access system](https://docs.seam.co/latest/capability-guides/access-systems) was connected.",
@@ -26074,12 +26096,12 @@ var openapi_default = {
26074
26096
  ],
26075
26097
  summary: "/access_grants/create",
26076
26098
  tags: [],
26099
+ "x-draft": "Early access.",
26077
26100
  "x-fern-sdk-group-name": ["access_grants"],
26078
26101
  "x-fern-sdk-method-name": "create",
26079
26102
  "x-fern-sdk-return-value": "access_grant",
26080
26103
  "x-response-key": "access_grant",
26081
- "x-title": "Create an Access Grant",
26082
- "x-undocumented": "Unreleased."
26104
+ "x-title": "Create an Access Grant"
26083
26105
  }
26084
26106
  },
26085
26107
  "/access_grants/delete": {
@@ -26127,11 +26149,11 @@ var openapi_default = {
26127
26149
  ],
26128
26150
  summary: "/access_grants/delete",
26129
26151
  tags: [],
26152
+ "x-draft": "Early access.",
26130
26153
  "x-fern-sdk-group-name": ["access_grants"],
26131
26154
  "x-fern-sdk-method-name": "delete",
26132
26155
  "x-response-key": null,
26133
- "x-title": "Delete an Access Grant",
26134
- "x-undocumented": "Unreleased."
26156
+ "x-title": "Delete an Access Grant"
26135
26157
  }
26136
26158
  },
26137
26159
  "/access_grants/get": {
@@ -26273,12 +26295,12 @@ var openapi_default = {
26273
26295
  ],
26274
26296
  summary: "/access_grants/get",
26275
26297
  tags: [],
26298
+ "x-draft": "Early access.",
26276
26299
  "x-fern-sdk-group-name": ["access_grants"],
26277
26300
  "x-fern-sdk-method-name": "get",
26278
26301
  "x-fern-sdk-return-value": "access_grant",
26279
26302
  "x-response-key": "access_grant",
26280
- "x-title": "Get an Access Grant",
26281
- "x-undocumented": "Unreleased."
26303
+ "x-title": "Get an Access Grant"
26282
26304
  }
26283
26305
  },
26284
26306
  "/access_grants/list": {
@@ -26443,12 +26465,12 @@ var openapi_default = {
26443
26465
  ],
26444
26466
  summary: "/access_grants/list",
26445
26467
  tags: [],
26468
+ "x-draft": "Early access.",
26446
26469
  "x-fern-sdk-group-name": ["access_grants"],
26447
26470
  "x-fern-sdk-method-name": "list",
26448
26471
  "x-fern-sdk-return-value": "access_grants",
26449
26472
  "x-response-key": "access_grants",
26450
- "x-title": "List Access Grants",
26451
- "x-undocumented": "Unreleased."
26473
+ "x-title": "List Access Grants"
26452
26474
  }
26453
26475
  },
26454
26476
  "/access_methods/delete": {
@@ -26495,11 +26517,11 @@ var openapi_default = {
26495
26517
  ],
26496
26518
  summary: "/access_methods/delete",
26497
26519
  tags: [],
26520
+ "x-draft": "Early access.",
26498
26521
  "x-fern-sdk-group-name": ["access_methods"],
26499
26522
  "x-fern-sdk-method-name": "delete",
26500
26523
  "x-response-key": null,
26501
- "x-title": "Delete an Access Method",
26502
- "x-undocumented": "Unreleased."
26524
+ "x-title": "Delete an Access Method"
26503
26525
  }
26504
26526
  },
26505
26527
  "/access_methods/get": {
@@ -26599,12 +26621,12 @@ var openapi_default = {
26599
26621
  ],
26600
26622
  summary: "/access_methods/get",
26601
26623
  tags: [],
26624
+ "x-draft": "Early access.",
26602
26625
  "x-fern-sdk-group-name": ["access_methods"],
26603
26626
  "x-fern-sdk-method-name": "get",
26604
26627
  "x-fern-sdk-return-value": "access_method",
26605
26628
  "x-response-key": "access_method",
26606
- "x-title": "Get an Access Method",
26607
- "x-undocumented": "Unreleased."
26629
+ "x-title": "Get an Access Method"
26608
26630
  }
26609
26631
  },
26610
26632
  "/access_methods/list": {
@@ -26707,12 +26729,12 @@ var openapi_default = {
26707
26729
  ],
26708
26730
  summary: "/access_methods/list",
26709
26731
  tags: [],
26732
+ "x-draft": "Early access.",
26710
26733
  "x-fern-sdk-group-name": ["access_methods"],
26711
26734
  "x-fern-sdk-method-name": "list",
26712
26735
  "x-fern-sdk-return-value": "access_methods",
26713
26736
  "x-response-key": "access_methods",
26714
- "x-title": "List Access Methods",
26715
- "x-undocumented": "Unreleased."
26737
+ "x-title": "List Access Methods"
26716
26738
  }
26717
26739
  },
26718
26740
  "/acs/access_groups/add_user": {
@@ -31441,6 +31463,20 @@ var openapi_default = {
31441
31463
  "application/json": {
31442
31464
  schema: {
31443
31465
  properties: {
31466
+ accepted_capabilities: {
31467
+ 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.",
31468
+ items: {
31469
+ 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",
31470
+ enum: [
31471
+ "lock",
31472
+ "thermostat",
31473
+ "noise_sensor",
31474
+ "access_control"
31475
+ ],
31476
+ type: "string"
31477
+ },
31478
+ type: "array"
31479
+ },
31444
31480
  accepted_providers: {
31445
31481
  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.",
31446
31482
  items: {
@@ -36957,6 +36993,7 @@ var openapi_default = {
36957
36993
  ],
36958
36994
  summary: "/spaces/add_acs_entrances",
36959
36995
  tags: [],
36996
+ "x-draft": "Early access.",
36960
36997
  "x-fern-sdk-group-name": ["spaces"],
36961
36998
  "x-fern-sdk-method-name": "add_acs_entrances",
36962
36999
  "x-response-key": null,
@@ -37006,6 +37043,7 @@ var openapi_default = {
37006
37043
  ],
37007
37044
  summary: "/spaces/add_acs_entrances",
37008
37045
  tags: [],
37046
+ "x-draft": "Early access.",
37009
37047
  "x-fern-ignore": true,
37010
37048
  "x-response-key": null,
37011
37049
  "x-title": "Add ACS Entrances"
@@ -37056,6 +37094,7 @@ var openapi_default = {
37056
37094
  ],
37057
37095
  summary: "/spaces/add_devices",
37058
37096
  tags: [],
37097
+ "x-draft": "Early access.",
37059
37098
  "x-fern-sdk-group-name": ["spaces"],
37060
37099
  "x-fern-sdk-method-name": "add_devices",
37061
37100
  "x-response-key": null,
@@ -37105,6 +37144,7 @@ var openapi_default = {
37105
37144
  ],
37106
37145
  summary: "/spaces/add_devices",
37107
37146
  tags: [],
37147
+ "x-draft": "Early access.",
37108
37148
  "x-fern-ignore": true,
37109
37149
  "x-response-key": null,
37110
37150
  "x-title": "Add Space Devices"
@@ -37161,6 +37201,7 @@ var openapi_default = {
37161
37201
  ],
37162
37202
  summary: "/spaces/create",
37163
37203
  tags: [],
37204
+ "x-draft": "Early access.",
37164
37205
  "x-fern-sdk-group-name": ["spaces"],
37165
37206
  "x-fern-sdk-method-name": "create",
37166
37207
  "x-fern-sdk-return-value": "space",
@@ -37293,6 +37334,7 @@ var openapi_default = {
37293
37334
  ],
37294
37335
  summary: "/spaces/list",
37295
37336
  tags: [],
37337
+ "x-draft": "Early access.",
37296
37338
  "x-fern-ignore": true,
37297
37339
  "x-response-key": "spaces",
37298
37340
  "x-title": "List Spaces"
@@ -37329,6 +37371,7 @@ var openapi_default = {
37329
37371
  ],
37330
37372
  summary: "/spaces/list",
37331
37373
  tags: [],
37374
+ "x-draft": "Early access.",
37332
37375
  "x-fern-sdk-group-name": ["spaces"],
37333
37376
  "x-fern-sdk-method-name": "list",
37334
37377
  "x-fern-sdk-return-value": "spaces",
@@ -37380,6 +37423,7 @@ var openapi_default = {
37380
37423
  ],
37381
37424
  summary: "/spaces/remove_acs_entrances",
37382
37425
  tags: [],
37426
+ "x-draft": "Early access.",
37383
37427
  "x-fern-sdk-group-name": ["spaces"],
37384
37428
  "x-fern-sdk-method-name": "remove_acs_entrances",
37385
37429
  "x-response-key": null,
@@ -37430,6 +37474,7 @@ var openapi_default = {
37430
37474
  ],
37431
37475
  summary: "/spaces/remove_devices",
37432
37476
  tags: [],
37477
+ "x-draft": "Early access.",
37433
37478
  "x-fern-sdk-group-name": ["spaces"],
37434
37479
  "x-fern-sdk-method-name": "remove_devices",
37435
37480
  "x-response-key": null,
@@ -37480,6 +37525,7 @@ var openapi_default = {
37480
37525
  ],
37481
37526
  summary: "/spaces/update",
37482
37527
  tags: [],
37528
+ "x-draft": "Early access.",
37483
37529
  "x-fern-ignore": true,
37484
37530
  "x-response-key": "space",
37485
37531
  "x-title": "Update Space"
@@ -37527,6 +37573,7 @@ var openapi_default = {
37527
37573
  ],
37528
37574
  summary: "/spaces/update",
37529
37575
  tags: [],
37576
+ "x-draft": "Early access.",
37530
37577
  "x-fern-sdk-group-name": ["spaces"],
37531
37578
  "x-fern-sdk-method-name": "update",
37532
37579
  "x-fern-sdk-return-value": "space",
@@ -41915,14 +41962,28 @@ var openapi_default = {
41915
41962
  enum: ["organize_spaces"],
41916
41963
  type: "string"
41917
41964
  },
41918
- collection_key: { type: "string" },
41919
- customer_key: { type: "string" }
41965
+ customer_key: { type: "string" },
41966
+ partner_resources: {
41967
+ description: "Optional list of partner resources to include in the magic link.",
41968
+ items: {
41969
+ properties: {
41970
+ custom_metadata: {
41971
+ additionalProperties: { type: "string" },
41972
+ type: "object"
41973
+ },
41974
+ description: { type: "string" },
41975
+ name: { type: "string" },
41976
+ partner_resource_key: { type: "string" }
41977
+ },
41978
+ required: ["partner_resource_key", "name"],
41979
+ type: "object",
41980
+ "x-route-path": "/unstable_partner/resources",
41981
+ "x-undocumented": "Unreleased."
41982
+ },
41983
+ type: "array"
41984
+ }
41920
41985
  },
41921
- required: [
41922
- "building_block_type",
41923
- "customer_key",
41924
- "collection_key"
41925
- ],
41986
+ required: ["building_block_type", "customer_key"],
41926
41987
  type: "object"
41927
41988
  }
41928
41989
  ]
@@ -42039,11 +42100,10 @@ var openapi_default = {
42039
42100
  "x-route-path": "/unstable_partner/resources",
42040
42101
  "x-undocumented": "Unreleased."
42041
42102
  },
42042
- minItems: 1,
42043
42103
  type: "array"
42044
42104
  }
42045
42105
  },
42046
- required: ["customer_key", "partner_resources"],
42106
+ required: ["customer_key"],
42047
42107
  type: "object"
42048
42108
  }
42049
42109
  }