@seamapi/types 1.437.1 → 1.439.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.
Files changed (63) hide show
  1. package/dist/connect.cjs +1315 -190
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +8832 -319
  4. package/lib/seam/connect/internal/schemas.d.ts +1 -1
  5. package/lib/seam/connect/internal/schemas.js +1 -1
  6. package/lib/seam/connect/internal/schemas.js.map +1 -1
  7. package/lib/seam/connect/model-types.d.ts +1 -1
  8. package/lib/seam/connect/models/batches/batch.d.ts +5669 -0
  9. package/lib/seam/connect/models/batches/batch.js +8 -0
  10. package/lib/seam/connect/models/batches/batch.js.map +1 -0
  11. package/lib/seam/connect/models/batches/index.d.ts +2 -0
  12. package/lib/seam/connect/models/batches/index.js +3 -0
  13. package/lib/seam/connect/models/batches/index.js.map +1 -0
  14. package/lib/seam/connect/models/batches/spaces.d.ts +5669 -0
  15. package/lib/seam/connect/models/batches/spaces.js +13 -0
  16. package/lib/seam/connect/models/batches/spaces.js.map +1 -0
  17. package/lib/seam/connect/models/events/access-codes.d.ts +204 -0
  18. package/lib/seam/connect/models/events/access-codes.js +7 -0
  19. package/lib/seam/connect/models/events/access-codes.js.map +1 -1
  20. package/lib/seam/connect/models/events/connect-webviews.d.ts +6 -0
  21. package/lib/seam/connect/models/events/connect-webviews.js +5 -0
  22. package/lib/seam/connect/models/events/connect-webviews.js.map +1 -1
  23. package/lib/seam/connect/models/events/connected-accounts.d.ts +42 -0
  24. package/lib/seam/connect/models/events/connected-accounts.js +4 -0
  25. package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
  26. package/lib/seam/connect/models/events/devices.d.ts +396 -0
  27. package/lib/seam/connect/models/events/devices.js +7 -0
  28. package/lib/seam/connect/models/events/devices.js.map +1 -1
  29. package/lib/seam/connect/models/events/phones.d.ts +6 -0
  30. package/lib/seam/connect/models/events/phones.js +4 -0
  31. package/lib/seam/connect/models/events/phones.js.map +1 -1
  32. package/lib/seam/connect/models/events/seam-event.d.ts +327 -0
  33. package/lib/seam/connect/models/events/seam-event.js +1 -1
  34. package/lib/seam/connect/models/index.d.ts +1 -0
  35. package/lib/seam/connect/models/index.js +1 -0
  36. package/lib/seam/connect/models/index.js.map +1 -1
  37. package/lib/seam/connect/models/user-identities/user-identity.d.ts +3 -0
  38. package/lib/seam/connect/models/user-identities/user-identity.js +3 -0
  39. package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -1
  40. package/lib/seam/connect/openapi.d.ts +783 -25
  41. package/lib/seam/connect/openapi.js +1068 -0
  42. package/lib/seam/connect/openapi.js.map +1 -1
  43. package/lib/seam/connect/route-types.d.ts +1755 -0
  44. package/lib/seam/connect/schemas.d.ts +1 -1
  45. package/lib/seam/connect/schemas.js +1 -1
  46. package/lib/seam/connect/schemas.js.map +1 -1
  47. package/package.json +1 -1
  48. package/src/lib/seam/connect/internal/schemas.ts +1 -0
  49. package/src/lib/seam/connect/model-types.ts +1 -0
  50. package/src/lib/seam/connect/models/batches/batch.ts +12 -0
  51. package/src/lib/seam/connect/models/batches/index.ts +2 -0
  52. package/src/lib/seam/connect/models/batches/spaces.ts +16 -0
  53. package/src/lib/seam/connect/models/events/access-codes.ts +11 -0
  54. package/src/lib/seam/connect/models/events/connect-webviews.ts +8 -0
  55. package/src/lib/seam/connect/models/events/connected-accounts.ts +6 -0
  56. package/src/lib/seam/connect/models/events/devices.ts +11 -0
  57. package/src/lib/seam/connect/models/events/phones.ts +6 -0
  58. package/src/lib/seam/connect/models/events/seam-event.ts +1 -1
  59. package/src/lib/seam/connect/models/index.ts +1 -0
  60. package/src/lib/seam/connect/models/user-identities/user-identity.ts +5 -0
  61. package/src/lib/seam/connect/openapi.ts +1186 -0
  62. package/src/lib/seam/connect/route-types.ts +2536 -0
  63. package/src/lib/seam/connect/schemas.ts +1 -0
package/dist/connect.cjs CHANGED
@@ -19,6 +19,7 @@ __export(schemas_exports, {
19
19
  acs_system: () => acs_system,
20
20
  acs_user: () => acs_user,
21
21
  action_attempt: () => action_attempt,
22
+ batch: () => batch,
22
23
  bridge: () => bridge,
23
24
  bridge_client_session: () => bridge_client_session,
24
25
  building_block_type: () => building_block_type,
@@ -3960,6 +3961,37 @@ var action_attempt = zod.z.union([
3960
3961
 
3961
3962
  See also [Action Attempts](https://docs.seam.co/latest/core-concepts/action-attempts).
3962
3963
  `);
3964
+ var space = zod.z.object({
3965
+ space_id: zod.z.string().uuid().describe("ID of the space."),
3966
+ workspace_id: zod.z.string().uuid().describe(
3967
+ "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space."
3968
+ ),
3969
+ name: zod.z.string().describe("Name of the space."),
3970
+ display_name: zod.z.string().describe("Display name for the space."),
3971
+ created_at: zod.z.string().datetime().describe("Date and time at which the space was created.")
3972
+ }).describe(`
3973
+ ---
3974
+ draft: Early access.
3975
+ route_path: /spaces
3976
+ ---
3977
+ Represents a space that is a logical grouping of devices and entrances. You can assign access to an entire space, thereby making granting access more efficient.
3978
+ `);
3979
+
3980
+ // src/lib/seam/connect/models/batches/spaces.ts
3981
+ var spaces_batch = zod.z.object({
3982
+ batch_type: zod.z.literal("spaces"),
3983
+ spaces: space.array().optional(),
3984
+ devices: device.array().optional(),
3985
+ acs_entrances: acs_entrance.array().optional()
3986
+ }).describe("ID of the affected access system user.");
3987
+
3988
+ // src/lib/seam/connect/models/batches/batch.ts
3989
+ var batch = spaces_batch.describe(`
3990
+ ---
3991
+ route_path: /
3992
+ ---
3993
+ Represents a resource batch.
3994
+ `);
3963
3995
  var bridge = zod.z.object({
3964
3996
  bridge_id: zod.z.string().uuid().describe("ID of Seam Bridge."),
3965
3997
  workspace_id: zod.z.string().uuid().describe(
@@ -4187,6 +4219,12 @@ var access_code_event = common_event.extend({
4187
4219
  device_id: zod.z.string().uuid().describe("ID of the device associated with the affected access code."),
4188
4220
  connected_account_id: zod.z.string().uuid().describe(
4189
4221
  "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code."
4222
+ ),
4223
+ device_custom_metadata: custom_metadata.optional().describe(
4224
+ "Custom metadata of the device, present when device_id is provided."
4225
+ ),
4226
+ connected_account_custom_metadata: custom_metadata.optional().describe(
4227
+ "Custom metadata of the connected account, present when connected_account_id is provided."
4190
4228
  )
4191
4229
  });
4192
4230
  var code = zod.z.string().describe("Code for the affected access code.");
@@ -4688,9 +4726,13 @@ var connect_webview_event = common_event.extend({
4688
4726
  var connected_account_id = zod.z.string().uuid().describe(
4689
4727
  "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event."
4690
4728
  );
4729
+ var connected_account_custom_metadata = custom_metadata.optional().describe(
4730
+ "Custom metadata of the connected account; present when connected_account_id is provided."
4731
+ );
4691
4732
  var connect_webview_login_succeeded_event = connect_webview_event.extend({
4692
4733
  event_type: zod.z.literal("connect_webview.login_succeeded"),
4693
- connected_account_id
4734
+ connected_account_id,
4735
+ connected_account_custom_metadata
4694
4736
  }).describe(`
4695
4737
  ---
4696
4738
  route_path: /connect_webviews
@@ -4712,6 +4754,9 @@ var connect_webview_events = [
4712
4754
  var connected_account_event = common_event.extend({
4713
4755
  connected_account_id: zod.z.string().uuid().describe(
4714
4756
  "ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts)."
4757
+ ),
4758
+ connected_account_custom_metadata: custom_metadata.optional().describe(
4759
+ "Custom metadata of the connected account, present when connected_account_id is provided."
4715
4760
  )
4716
4761
  });
4717
4762
  var connect_webview_id = zod.z.string().uuid().describe(
@@ -4794,6 +4839,12 @@ var device_event = common_event.extend({
4794
4839
  device_id: zod.z.string().uuid().describe("ID of the affected device."),
4795
4840
  connected_account_id: zod.z.string().uuid().describe(
4796
4841
  "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event."
4842
+ ),
4843
+ device_custom_metadata: custom_metadata.optional().describe(
4844
+ "Custom metadata of the device, present when device_id is provided."
4845
+ ),
4846
+ connected_account_custom_metadata: custom_metadata.optional().describe(
4847
+ "Custom metadata of the connected account, present when connected_account_id is provided."
4797
4848
  )
4798
4849
  });
4799
4850
  var battery_level = zod.z.number().min(0).max(1).describe(
@@ -5200,7 +5251,10 @@ var enrollment_automation_events = [
5200
5251
  enrollment_automation_deleted_event
5201
5252
  ];
5202
5253
  var phone_event = common_event.extend({
5203
- device_id: zod.z.string().uuid().describe("ID of the affected phone device.")
5254
+ device_id: zod.z.string().uuid().describe("ID of the affected phone device."),
5255
+ device_custom_metadata: custom_metadata.optional().describe(
5256
+ "Custom metadata of the device; present when device_id is provided."
5257
+ )
5204
5258
  });
5205
5259
  var phone_deactivated_event = phone_event.extend({
5206
5260
  event_type: zod.z.literal("phone.deactivated")
@@ -5230,7 +5284,7 @@ var seam_event = zod.z.discriminatedUnion("event_type", [
5230
5284
  route_path: /events
5231
5285
  ---
5232
5286
  Represents an event. Events let you know when something interesting happens in your workspace. For example, when a lock is unlocked, Seam creates a \`lock.unlocked\` event. When a device's battery level is low, Seam creates a \`device.battery_low\` event.
5233
-
5287
+
5234
5288
  As with other API resources, you can retrieve an individual event or a list of events. Seam also provides a separate [webhook](https://docs.seam.co/latest/developer-tools/webhooks) system for sending the event objects directly to an endpoint on your sever. Manage webhooks through [Seam Console](https://console.seam.co). You can also use the webhooks sandbox in Seam Console to see the different payloads for each event and test them against your own endpoints.
5235
5289
  `);
5236
5290
  var event_types = seam_event.options.map(
@@ -5381,6 +5435,9 @@ var user_identity = zod.z.object({
5381
5435
  ),
5382
5436
  warnings: zod.z.array(user_identity_warnings).describe(
5383
5437
  'Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.'
5438
+ ),
5439
+ acs_user_ids: zod.z.array(zod.z.string().uuid()).describe(
5440
+ "Array of access system user IDs associated with the user identity."
5384
5441
  )
5385
5442
  }).describe(`
5386
5443
  ---
@@ -16913,6 +16970,13 @@ var openapi_default = {
16913
16970
  format: "uuid",
16914
16971
  type: "string"
16915
16972
  },
16973
+ connected_account_custom_metadata: {
16974
+ additionalProperties: {
16975
+ oneOf: [{ type: "string" }, { type: "boolean" }]
16976
+ },
16977
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
16978
+ type: "object"
16979
+ },
16916
16980
  connected_account_id: {
16917
16981
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code.",
16918
16982
  format: "uuid",
@@ -16923,6 +16987,13 @@ var openapi_default = {
16923
16987
  format: "date-time",
16924
16988
  type: "string"
16925
16989
  },
16990
+ device_custom_metadata: {
16991
+ additionalProperties: {
16992
+ oneOf: [{ type: "string" }, { type: "boolean" }]
16993
+ },
16994
+ description: "Custom metadata of the device, present when device_id is provided.",
16995
+ type: "object"
16996
+ },
16926
16997
  device_id: {
16927
16998
  description: "ID of the device associated with the affected access code.",
16928
16999
  format: "uuid",
@@ -16966,6 +17037,13 @@ var openapi_default = {
16966
17037
  format: "uuid",
16967
17038
  type: "string"
16968
17039
  },
17040
+ connected_account_custom_metadata: {
17041
+ additionalProperties: {
17042
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17043
+ },
17044
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
17045
+ type: "object"
17046
+ },
16969
17047
  connected_account_id: {
16970
17048
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code.",
16971
17049
  format: "uuid",
@@ -16976,6 +17054,13 @@ var openapi_default = {
16976
17054
  format: "date-time",
16977
17055
  type: "string"
16978
17056
  },
17057
+ device_custom_metadata: {
17058
+ additionalProperties: {
17059
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17060
+ },
17061
+ description: "Custom metadata of the device, present when device_id is provided.",
17062
+ type: "object"
17063
+ },
16979
17064
  device_id: {
16980
17065
  description: "ID of the device associated with the affected access code.",
16981
17066
  format: "uuid",
@@ -17023,6 +17108,13 @@ var openapi_default = {
17023
17108
  description: "Code for the affected access code.",
17024
17109
  type: "string"
17025
17110
  },
17111
+ connected_account_custom_metadata: {
17112
+ additionalProperties: {
17113
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17114
+ },
17115
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
17116
+ type: "object"
17117
+ },
17026
17118
  connected_account_id: {
17027
17119
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code.",
17028
17120
  format: "uuid",
@@ -17033,6 +17125,13 @@ var openapi_default = {
17033
17125
  format: "date-time",
17034
17126
  type: "string"
17035
17127
  },
17128
+ device_custom_metadata: {
17129
+ additionalProperties: {
17130
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17131
+ },
17132
+ description: "Custom metadata of the device, present when device_id is provided.",
17133
+ type: "object"
17134
+ },
17036
17135
  device_id: {
17037
17136
  description: "ID of the device associated with the affected access code.",
17038
17137
  format: "uuid",
@@ -17084,6 +17183,13 @@ var openapi_default = {
17084
17183
  description: "Code for the affected access code.",
17085
17184
  type: "string"
17086
17185
  },
17186
+ connected_account_custom_metadata: {
17187
+ additionalProperties: {
17188
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17189
+ },
17190
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
17191
+ type: "object"
17192
+ },
17087
17193
  connected_account_id: {
17088
17194
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code.",
17089
17195
  format: "uuid",
@@ -17094,6 +17200,13 @@ var openapi_default = {
17094
17200
  format: "date-time",
17095
17201
  type: "string"
17096
17202
  },
17203
+ device_custom_metadata: {
17204
+ additionalProperties: {
17205
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17206
+ },
17207
+ description: "Custom metadata of the device, present when device_id is provided.",
17208
+ type: "object"
17209
+ },
17097
17210
  device_id: {
17098
17211
  description: "ID of the device associated with the affected access code.",
17099
17212
  format: "uuid",
@@ -17141,6 +17254,13 @@ var openapi_default = {
17141
17254
  format: "uuid",
17142
17255
  type: "string"
17143
17256
  },
17257
+ connected_account_custom_metadata: {
17258
+ additionalProperties: {
17259
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17260
+ },
17261
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
17262
+ type: "object"
17263
+ },
17144
17264
  connected_account_id: {
17145
17265
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code.",
17146
17266
  format: "uuid",
@@ -17151,6 +17271,13 @@ var openapi_default = {
17151
17271
  format: "date-time",
17152
17272
  type: "string"
17153
17273
  },
17274
+ device_custom_metadata: {
17275
+ additionalProperties: {
17276
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17277
+ },
17278
+ description: "Custom metadata of the device, present when device_id is provided.",
17279
+ type: "object"
17280
+ },
17154
17281
  device_id: {
17155
17282
  description: "ID of the device associated with the affected access code.",
17156
17283
  format: "uuid",
@@ -17197,6 +17324,13 @@ var openapi_default = {
17197
17324
  format: "uuid",
17198
17325
  type: "string"
17199
17326
  },
17327
+ connected_account_custom_metadata: {
17328
+ additionalProperties: {
17329
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17330
+ },
17331
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
17332
+ type: "object"
17333
+ },
17200
17334
  connected_account_id: {
17201
17335
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code.",
17202
17336
  format: "uuid",
@@ -17207,6 +17341,13 @@ var openapi_default = {
17207
17341
  format: "date-time",
17208
17342
  type: "string"
17209
17343
  },
17344
+ device_custom_metadata: {
17345
+ additionalProperties: {
17346
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17347
+ },
17348
+ description: "Custom metadata of the device, present when device_id is provided.",
17349
+ type: "object"
17350
+ },
17210
17351
  device_id: {
17211
17352
  description: "ID of the device associated with the affected access code.",
17212
17353
  format: "uuid",
@@ -17253,6 +17394,13 @@ var openapi_default = {
17253
17394
  format: "uuid",
17254
17395
  type: "string"
17255
17396
  },
17397
+ connected_account_custom_metadata: {
17398
+ additionalProperties: {
17399
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17400
+ },
17401
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
17402
+ type: "object"
17403
+ },
17256
17404
  connected_account_id: {
17257
17405
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code.",
17258
17406
  format: "uuid",
@@ -17263,6 +17411,13 @@ var openapi_default = {
17263
17411
  format: "date-time",
17264
17412
  type: "string"
17265
17413
  },
17414
+ device_custom_metadata: {
17415
+ additionalProperties: {
17416
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17417
+ },
17418
+ description: "Custom metadata of the device, present when device_id is provided.",
17419
+ type: "object"
17420
+ },
17266
17421
  device_id: {
17267
17422
  description: "ID of the device associated with the affected access code.",
17268
17423
  format: "uuid",
@@ -17314,6 +17469,13 @@ var openapi_default = {
17314
17469
  nullable: true,
17315
17470
  type: "string"
17316
17471
  },
17472
+ connected_account_custom_metadata: {
17473
+ additionalProperties: {
17474
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17475
+ },
17476
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
17477
+ type: "object"
17478
+ },
17317
17479
  connected_account_id: {
17318
17480
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code.",
17319
17481
  format: "uuid",
@@ -17324,6 +17486,13 @@ var openapi_default = {
17324
17486
  format: "date-time",
17325
17487
  type: "string"
17326
17488
  },
17489
+ device_custom_metadata: {
17490
+ additionalProperties: {
17491
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17492
+ },
17493
+ description: "Custom metadata of the device, present when device_id is provided.",
17494
+ type: "object"
17495
+ },
17327
17496
  device_id: {
17328
17497
  description: "ID of the device associated with the affected access code.",
17329
17498
  format: "uuid",
@@ -17368,6 +17537,13 @@ var openapi_default = {
17368
17537
  format: "uuid",
17369
17538
  type: "string"
17370
17539
  },
17540
+ connected_account_custom_metadata: {
17541
+ additionalProperties: {
17542
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17543
+ },
17544
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
17545
+ type: "object"
17546
+ },
17371
17547
  connected_account_id: {
17372
17548
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code.",
17373
17549
  format: "uuid",
@@ -17378,6 +17554,13 @@ var openapi_default = {
17378
17554
  format: "date-time",
17379
17555
  type: "string"
17380
17556
  },
17557
+ device_custom_metadata: {
17558
+ additionalProperties: {
17559
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17560
+ },
17561
+ description: "Custom metadata of the device, present when device_id is provided.",
17562
+ type: "object"
17563
+ },
17381
17564
  device_id: {
17382
17565
  description: "ID of the device associated with the affected access code.",
17383
17566
  format: "uuid",
@@ -17424,6 +17607,13 @@ var openapi_default = {
17424
17607
  format: "uuid",
17425
17608
  type: "string"
17426
17609
  },
17610
+ connected_account_custom_metadata: {
17611
+ additionalProperties: {
17612
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17613
+ },
17614
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
17615
+ type: "object"
17616
+ },
17427
17617
  connected_account_id: {
17428
17618
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code.",
17429
17619
  format: "uuid",
@@ -17434,6 +17624,13 @@ var openapi_default = {
17434
17624
  format: "date-time",
17435
17625
  type: "string"
17436
17626
  },
17627
+ device_custom_metadata: {
17628
+ additionalProperties: {
17629
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17630
+ },
17631
+ description: "Custom metadata of the device, present when device_id is provided.",
17632
+ type: "object"
17633
+ },
17437
17634
  device_id: {
17438
17635
  description: "ID of the device associated with the affected access code.",
17439
17636
  format: "uuid",
@@ -17480,6 +17677,13 @@ var openapi_default = {
17480
17677
  format: "uuid",
17481
17678
  type: "string"
17482
17679
  },
17680
+ connected_account_custom_metadata: {
17681
+ additionalProperties: {
17682
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17683
+ },
17684
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
17685
+ type: "object"
17686
+ },
17483
17687
  connected_account_id: {
17484
17688
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code.",
17485
17689
  format: "uuid",
@@ -17490,6 +17694,13 @@ var openapi_default = {
17490
17694
  format: "date-time",
17491
17695
  type: "string"
17492
17696
  },
17697
+ device_custom_metadata: {
17698
+ additionalProperties: {
17699
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17700
+ },
17701
+ description: "Custom metadata of the device, present when device_id is provided.",
17702
+ type: "object"
17703
+ },
17493
17704
  device_id: {
17494
17705
  description: "ID of the device associated with the affected access code.",
17495
17706
  format: "uuid",
@@ -17536,6 +17747,13 @@ var openapi_default = {
17536
17747
  format: "uuid",
17537
17748
  type: "string"
17538
17749
  },
17750
+ connected_account_custom_metadata: {
17751
+ additionalProperties: {
17752
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17753
+ },
17754
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
17755
+ type: "object"
17756
+ },
17539
17757
  connected_account_id: {
17540
17758
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code.",
17541
17759
  format: "uuid",
@@ -17546,6 +17764,13 @@ var openapi_default = {
17546
17764
  format: "date-time",
17547
17765
  type: "string"
17548
17766
  },
17767
+ device_custom_metadata: {
17768
+ additionalProperties: {
17769
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17770
+ },
17771
+ description: "Custom metadata of the device, present when device_id is provided.",
17772
+ type: "object"
17773
+ },
17549
17774
  device_id: {
17550
17775
  description: "ID of the device associated with the affected access code.",
17551
17776
  format: "uuid",
@@ -17593,6 +17818,13 @@ var openapi_default = {
17593
17818
  type: "string"
17594
17819
  },
17595
17820
  backup_access_code_id: { type: "string" },
17821
+ connected_account_custom_metadata: {
17822
+ additionalProperties: {
17823
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17824
+ },
17825
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
17826
+ type: "object"
17827
+ },
17596
17828
  connected_account_id: {
17597
17829
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code.",
17598
17830
  format: "uuid",
@@ -17603,6 +17835,13 @@ var openapi_default = {
17603
17835
  format: "date-time",
17604
17836
  type: "string"
17605
17837
  },
17838
+ device_custom_metadata: {
17839
+ additionalProperties: {
17840
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17841
+ },
17842
+ description: "Custom metadata of the device, present when device_id is provided.",
17843
+ type: "object"
17844
+ },
17606
17845
  device_id: {
17607
17846
  description: "ID of the device associated with the affected access code.",
17608
17847
  format: "uuid",
@@ -17650,6 +17889,13 @@ var openapi_default = {
17650
17889
  format: "uuid",
17651
17890
  type: "string"
17652
17891
  },
17892
+ connected_account_custom_metadata: {
17893
+ additionalProperties: {
17894
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17895
+ },
17896
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
17897
+ type: "object"
17898
+ },
17653
17899
  connected_account_id: {
17654
17900
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code.",
17655
17901
  format: "uuid",
@@ -17660,6 +17906,13 @@ var openapi_default = {
17660
17906
  format: "date-time",
17661
17907
  type: "string"
17662
17908
  },
17909
+ device_custom_metadata: {
17910
+ additionalProperties: {
17911
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17912
+ },
17913
+ description: "Custom metadata of the device, present when device_id is provided.",
17914
+ type: "object"
17915
+ },
17663
17916
  device_id: {
17664
17917
  description: "ID of the device associated with the affected access code.",
17665
17918
  format: "uuid",
@@ -17706,6 +17959,13 @@ var openapi_default = {
17706
17959
  format: "uuid",
17707
17960
  type: "string"
17708
17961
  },
17962
+ connected_account_custom_metadata: {
17963
+ additionalProperties: {
17964
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17965
+ },
17966
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
17967
+ type: "object"
17968
+ },
17709
17969
  connected_account_id: {
17710
17970
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code.",
17711
17971
  format: "uuid",
@@ -17716,6 +17976,13 @@ var openapi_default = {
17716
17976
  format: "date-time",
17717
17977
  type: "string"
17718
17978
  },
17979
+ device_custom_metadata: {
17980
+ additionalProperties: {
17981
+ oneOf: [{ type: "string" }, { type: "boolean" }]
17982
+ },
17983
+ description: "Custom metadata of the device, present when device_id is provided.",
17984
+ type: "object"
17985
+ },
17719
17986
  device_id: {
17720
17987
  description: "ID of the device associated with the affected access code.",
17721
17988
  format: "uuid",
@@ -17762,6 +18029,13 @@ var openapi_default = {
17762
18029
  format: "uuid",
17763
18030
  type: "string"
17764
18031
  },
18032
+ connected_account_custom_metadata: {
18033
+ additionalProperties: {
18034
+ oneOf: [{ type: "string" }, { type: "boolean" }]
18035
+ },
18036
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
18037
+ type: "object"
18038
+ },
17765
18039
  connected_account_id: {
17766
18040
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code.",
17767
18041
  format: "uuid",
@@ -17772,6 +18046,13 @@ var openapi_default = {
17772
18046
  format: "date-time",
17773
18047
  type: "string"
17774
18048
  },
18049
+ device_custom_metadata: {
18050
+ additionalProperties: {
18051
+ oneOf: [{ type: "string" }, { type: "boolean" }]
18052
+ },
18053
+ description: "Custom metadata of the device, present when device_id is provided.",
18054
+ type: "object"
18055
+ },
17775
18056
  device_id: {
17776
18057
  description: "ID of the device associated with the affected access code.",
17777
18058
  format: "uuid",
@@ -17818,6 +18099,13 @@ var openapi_default = {
17818
18099
  format: "uuid",
17819
18100
  type: "string"
17820
18101
  },
18102
+ connected_account_custom_metadata: {
18103
+ additionalProperties: {
18104
+ oneOf: [{ type: "string" }, { type: "boolean" }]
18105
+ },
18106
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
18107
+ type: "object"
18108
+ },
17821
18109
  connected_account_id: {
17822
18110
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the affected access code.",
17823
18111
  format: "uuid",
@@ -17828,6 +18116,13 @@ var openapi_default = {
17828
18116
  format: "date-time",
17829
18117
  type: "string"
17830
18118
  },
18119
+ device_custom_metadata: {
18120
+ additionalProperties: {
18121
+ oneOf: [{ type: "string" }, { type: "boolean" }]
18122
+ },
18123
+ description: "Custom metadata of the device, present when device_id is provided.",
18124
+ type: "object"
18125
+ },
17831
18126
  device_id: {
17832
18127
  description: "ID of the device associated with the affected access code.",
17833
18128
  format: "uuid",
@@ -19049,6 +19344,13 @@ var openapi_default = {
19049
19344
  format: "uuid",
19050
19345
  type: "string"
19051
19346
  },
19347
+ connected_account_custom_metadata: {
19348
+ additionalProperties: {
19349
+ oneOf: [{ type: "string" }, { type: "boolean" }]
19350
+ },
19351
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
19352
+ type: "object"
19353
+ },
19052
19354
  connected_account_id: {
19053
19355
  description: "ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).",
19054
19356
  format: "uuid",
@@ -19099,6 +19401,13 @@ var openapi_default = {
19099
19401
  format: "uuid",
19100
19402
  type: "string"
19101
19403
  },
19404
+ connected_account_custom_metadata: {
19405
+ additionalProperties: {
19406
+ oneOf: [{ type: "string" }, { type: "boolean" }]
19407
+ },
19408
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
19409
+ type: "object"
19410
+ },
19102
19411
  connected_account_id: {
19103
19412
  description: "ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).",
19104
19413
  format: "uuid",
@@ -19150,6 +19459,13 @@ var openapi_default = {
19150
19459
  format: "uuid",
19151
19460
  type: "string"
19152
19461
  },
19462
+ connected_account_custom_metadata: {
19463
+ additionalProperties: {
19464
+ oneOf: [{ type: "string" }, { type: "boolean" }]
19465
+ },
19466
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
19467
+ type: "object"
19468
+ },
19153
19469
  connected_account_id: {
19154
19470
  description: "ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).",
19155
19471
  format: "uuid",
@@ -19196,6 +19512,13 @@ var openapi_default = {
19196
19512
  {
19197
19513
  description: "A [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) was disconnected.",
19198
19514
  properties: {
19515
+ connected_account_custom_metadata: {
19516
+ additionalProperties: {
19517
+ oneOf: [{ type: "string" }, { type: "boolean" }]
19518
+ },
19519
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
19520
+ type: "object"
19521
+ },
19199
19522
  connected_account_id: {
19200
19523
  description: "ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).",
19201
19524
  format: "uuid",
@@ -19240,6 +19563,13 @@ var openapi_default = {
19240
19563
  {
19241
19564
  description: "A [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) completed the first sync with Seam, and the corresponding devices or systems are now available.",
19242
19565
  properties: {
19566
+ connected_account_custom_metadata: {
19567
+ additionalProperties: {
19568
+ oneOf: [{ type: "string" }, { type: "boolean" }]
19569
+ },
19570
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
19571
+ type: "object"
19572
+ },
19243
19573
  connected_account_id: {
19244
19574
  description: "ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).",
19245
19575
  format: "uuid",
@@ -19284,6 +19614,13 @@ var openapi_default = {
19284
19614
  {
19285
19615
  description: "A [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) was deleted.",
19286
19616
  properties: {
19617
+ connected_account_custom_metadata: {
19618
+ additionalProperties: {
19619
+ oneOf: [{ type: "string" }, { type: "boolean" }]
19620
+ },
19621
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
19622
+ type: "object"
19623
+ },
19287
19624
  connected_account_id: {
19288
19625
  description: "ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).",
19289
19626
  format: "uuid",
@@ -19328,6 +19665,13 @@ var openapi_default = {
19328
19665
  {
19329
19666
  description: "A [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) completed the first sync after reconnection with Seam, and the corresponding devices or systems are now available.",
19330
19667
  properties: {
19668
+ connected_account_custom_metadata: {
19669
+ additionalProperties: {
19670
+ oneOf: [{ type: "string" }, { type: "boolean" }]
19671
+ },
19672
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
19673
+ type: "object"
19674
+ },
19331
19675
  connected_account_id: {
19332
19676
  description: "ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).",
19333
19677
  format: "uuid",
@@ -19583,6 +19927,13 @@ var openapi_default = {
19583
19927
  format: "uuid",
19584
19928
  type: "string"
19585
19929
  },
19930
+ connected_account_custom_metadata: {
19931
+ additionalProperties: {
19932
+ oneOf: [{ type: "string" }, { type: "boolean" }]
19933
+ },
19934
+ description: "Custom metadata of the connected account; present when connected_account_id is provided.",
19935
+ type: "object"
19936
+ },
19586
19937
  connected_account_id: {
19587
19938
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
19588
19939
  format: "uuid",
@@ -19672,6 +20023,13 @@ var openapi_default = {
19672
20023
  {
19673
20024
  description: "The status of a [device](https://docs.seam.co/latest/core-concepts/devices) changed from offline to online. That is, the `device.properties.online` property changed from `false` to `true`. Note that some devices operate entirely in offline mode, so Seam never emits a `device.connected` event for these devices.",
19674
20025
  properties: {
20026
+ connected_account_custom_metadata: {
20027
+ additionalProperties: {
20028
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20029
+ },
20030
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
20031
+ type: "object"
20032
+ },
19675
20033
  connected_account_id: {
19676
20034
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
19677
20035
  format: "uuid",
@@ -19682,6 +20040,13 @@ var openapi_default = {
19682
20040
  format: "date-time",
19683
20041
  type: "string"
19684
20042
  },
20043
+ device_custom_metadata: {
20044
+ additionalProperties: {
20045
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20046
+ },
20047
+ description: "Custom metadata of the device, present when device_id is provided.",
20048
+ type: "object"
20049
+ },
19685
20050
  device_id: {
19686
20051
  description: "ID of the affected device.",
19687
20052
  format: "uuid",
@@ -19719,53 +20084,13 @@ var openapi_default = {
19719
20084
  {
19720
20085
  description: "A [device](https://docs.seam.co/latest/core-concepts/devices) was added to Seam or was re-added to Seam after having been removed.",
19721
20086
  properties: {
19722
- connected_account_id: {
19723
- description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
19724
- format: "uuid",
19725
- type: "string"
19726
- },
19727
- created_at: {
19728
- description: "Date and time at which the event was created.",
19729
- format: "date-time",
19730
- type: "string"
19731
- },
19732
- device_id: {
19733
- description: "ID of the affected device.",
19734
- format: "uuid",
19735
- type: "string"
19736
- },
19737
- event_id: {
19738
- description: "ID of the event.",
19739
- format: "uuid",
19740
- type: "string"
19741
- },
19742
- event_type: { enum: ["device.added"], type: "string" },
19743
- occurred_at: {
19744
- description: "Date and time at which the event occurred.",
19745
- format: "date-time",
19746
- type: "string"
20087
+ connected_account_custom_metadata: {
20088
+ additionalProperties: {
20089
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20090
+ },
20091
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
20092
+ type: "object"
19747
20093
  },
19748
- workspace_id: {
19749
- description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.",
19750
- format: "uuid",
19751
- type: "string"
19752
- }
19753
- },
19754
- required: [
19755
- "event_id",
19756
- "workspace_id",
19757
- "created_at",
19758
- "occurred_at",
19759
- "device_id",
19760
- "connected_account_id",
19761
- "event_type"
19762
- ],
19763
- type: "object",
19764
- "x-route-path": "/devices"
19765
- },
19766
- {
19767
- description: "A managed device was successfully converted to an [unmanaged device](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices).",
19768
- properties: {
19769
20094
  connected_account_id: {
19770
20095
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
19771
20096
  format: "uuid",
@@ -19776,55 +20101,12 @@ var openapi_default = {
19776
20101
  format: "date-time",
19777
20102
  type: "string"
19778
20103
  },
19779
- device_id: {
19780
- description: "ID of the affected device.",
19781
- format: "uuid",
19782
- type: "string"
19783
- },
19784
- event_id: {
19785
- description: "ID of the event.",
19786
- format: "uuid",
19787
- type: "string"
19788
- },
19789
- event_type: {
19790
- enum: ["device.converted_to_unmanaged"],
19791
- type: "string"
19792
- },
19793
- occurred_at: {
19794
- description: "Date and time at which the event occurred.",
19795
- format: "date-time",
19796
- type: "string"
19797
- },
19798
- workspace_id: {
19799
- description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.",
19800
- format: "uuid",
19801
- type: "string"
19802
- }
19803
- },
19804
- required: [
19805
- "event_id",
19806
- "workspace_id",
19807
- "created_at",
19808
- "occurred_at",
19809
- "device_id",
19810
- "connected_account_id",
19811
- "event_type"
19812
- ],
19813
- type: "object",
19814
- "x-route-path": "/devices"
19815
- },
19816
- {
19817
- description: "An [unmanaged device](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices) was successfully converted to a managed device.",
19818
- properties: {
19819
- connected_account_id: {
19820
- description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
19821
- format: "uuid",
19822
- type: "string"
19823
- },
19824
- created_at: {
19825
- description: "Date and time at which the event was created.",
19826
- format: "date-time",
19827
- type: "string"
20104
+ device_custom_metadata: {
20105
+ additionalProperties: {
20106
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20107
+ },
20108
+ description: "Custom metadata of the device, present when device_id is provided.",
20109
+ type: "object"
19828
20110
  },
19829
20111
  device_id: {
19830
20112
  description: "ID of the affected device.",
@@ -19836,10 +20118,7 @@ var openapi_default = {
19836
20118
  format: "uuid",
19837
20119
  type: "string"
19838
20120
  },
19839
- event_type: {
19840
- enum: ["device.unmanaged.converted_to_managed"],
19841
- type: "string"
19842
- },
20121
+ event_type: { enum: ["device.added"], type: "string" },
19843
20122
  occurred_at: {
19844
20123
  description: "Date and time at which the event occurred.",
19845
20124
  format: "date-time",
@@ -19861,11 +20140,18 @@ var openapi_default = {
19861
20140
  "event_type"
19862
20141
  ],
19863
20142
  type: "object",
19864
- "x-route-path": "/devices/unmanaged"
20143
+ "x-route-path": "/devices"
19865
20144
  },
19866
20145
  {
19867
- description: "The status of an [unmanaged device](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices) changed from offline to online. That is, the `device.properties.online` property changed from `false` to `true`.",
20146
+ description: "A managed device was successfully converted to an [unmanaged device](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices).",
19868
20147
  properties: {
20148
+ connected_account_custom_metadata: {
20149
+ additionalProperties: {
20150
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20151
+ },
20152
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
20153
+ type: "object"
20154
+ },
19869
20155
  connected_account_id: {
19870
20156
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
19871
20157
  format: "uuid",
@@ -19876,6 +20162,13 @@ var openapi_default = {
19876
20162
  format: "date-time",
19877
20163
  type: "string"
19878
20164
  },
20165
+ device_custom_metadata: {
20166
+ additionalProperties: {
20167
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20168
+ },
20169
+ description: "Custom metadata of the device, present when device_id is provided.",
20170
+ type: "object"
20171
+ },
19879
20172
  device_id: {
19880
20173
  description: "ID of the affected device.",
19881
20174
  format: "uuid",
@@ -19887,7 +20180,7 @@ var openapi_default = {
19887
20180
  type: "string"
19888
20181
  },
19889
20182
  event_type: {
19890
- enum: ["device.unmanaged.connected"],
20183
+ enum: ["device.converted_to_unmanaged"],
19891
20184
  type: "string"
19892
20185
  },
19893
20186
  occurred_at: {
@@ -19911,11 +20204,18 @@ var openapi_default = {
19911
20204
  "event_type"
19912
20205
  ],
19913
20206
  type: "object",
19914
- "x-route-path": "/devices/unmanaged"
20207
+ "x-route-path": "/devices"
19915
20208
  },
19916
20209
  {
19917
- description: "The status of a [device](https://docs.seam.co/latest/core-concepts/devices) changed from online to offline. That is, the `device.properties.online` property changed from `true` to `false`.",
20210
+ description: "An [unmanaged device](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices) was successfully converted to a managed device.",
19918
20211
  properties: {
20212
+ connected_account_custom_metadata: {
20213
+ additionalProperties: {
20214
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20215
+ },
20216
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
20217
+ type: "object"
20218
+ },
19919
20219
  connected_account_id: {
19920
20220
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
19921
20221
  format: "uuid",
@@ -19926,26 +20226,27 @@ var openapi_default = {
19926
20226
  format: "date-time",
19927
20227
  type: "string"
19928
20228
  },
20229
+ device_custom_metadata: {
20230
+ additionalProperties: {
20231
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20232
+ },
20233
+ description: "Custom metadata of the device, present when device_id is provided.",
20234
+ type: "object"
20235
+ },
19929
20236
  device_id: {
19930
20237
  description: "ID of the affected device.",
19931
20238
  format: "uuid",
19932
20239
  type: "string"
19933
20240
  },
19934
- error_code: {
19935
- description: "Error code associated with the disconnection event, if any.",
19936
- enum: [
19937
- "account_disconnected",
19938
- "hub_disconnected",
19939
- "device_disconnected"
19940
- ],
19941
- type: "string"
19942
- },
19943
20241
  event_id: {
19944
20242
  description: "ID of the event.",
19945
20243
  format: "uuid",
19946
20244
  type: "string"
19947
20245
  },
19948
- event_type: { enum: ["device.disconnected"], type: "string" },
20246
+ event_type: {
20247
+ enum: ["device.unmanaged.converted_to_managed"],
20248
+ type: "string"
20249
+ },
19949
20250
  occurred_at: {
19950
20251
  description: "Date and time at which the event occurred.",
19951
20252
  format: "date-time",
@@ -19964,15 +20265,21 @@ var openapi_default = {
19964
20265
  "occurred_at",
19965
20266
  "device_id",
19966
20267
  "connected_account_id",
19967
- "event_type",
19968
- "error_code"
20268
+ "event_type"
19969
20269
  ],
19970
20270
  type: "object",
19971
- "x-route-path": "/devices"
20271
+ "x-route-path": "/devices/unmanaged"
19972
20272
  },
19973
20273
  {
19974
- description: "The status of an [unmanaged device](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices) changed from online to offline. That is, the `device.properties.online` property changed from `true` to `false`.",
20274
+ description: "The status of an [unmanaged device](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices) changed from offline to online. That is, the `device.properties.online` property changed from `false` to `true`.",
19975
20275
  properties: {
20276
+ connected_account_custom_metadata: {
20277
+ additionalProperties: {
20278
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20279
+ },
20280
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
20281
+ type: "object"
20282
+ },
19976
20283
  connected_account_id: {
19977
20284
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
19978
20285
  format: "uuid",
@@ -19983,27 +20290,25 @@ var openapi_default = {
19983
20290
  format: "date-time",
19984
20291
  type: "string"
19985
20292
  },
20293
+ device_custom_metadata: {
20294
+ additionalProperties: {
20295
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20296
+ },
20297
+ description: "Custom metadata of the device, present when device_id is provided.",
20298
+ type: "object"
20299
+ },
19986
20300
  device_id: {
19987
20301
  description: "ID of the affected device.",
19988
20302
  format: "uuid",
19989
20303
  type: "string"
19990
20304
  },
19991
- error_code: {
19992
- description: "Error code associated with the disconnection event, if any.",
19993
- enum: [
19994
- "account_disconnected",
19995
- "hub_disconnected",
19996
- "device_disconnected"
19997
- ],
19998
- type: "string"
19999
- },
20000
20305
  event_id: {
20001
20306
  description: "ID of the event.",
20002
20307
  format: "uuid",
20003
20308
  type: "string"
20004
20309
  },
20005
20310
  event_type: {
20006
- enum: ["device.unmanaged.disconnected"],
20311
+ enum: ["device.unmanaged.connected"],
20007
20312
  type: "string"
20008
20313
  },
20009
20314
  occurred_at: {
@@ -20024,15 +20329,21 @@ var openapi_default = {
20024
20329
  "occurred_at",
20025
20330
  "device_id",
20026
20331
  "connected_account_id",
20027
- "event_type",
20028
- "error_code"
20332
+ "event_type"
20029
20333
  ],
20030
20334
  type: "object",
20031
20335
  "x-route-path": "/devices/unmanaged"
20032
20336
  },
20033
20337
  {
20034
- description: "A [device](https://docs.seam.co/latest/core-concepts/devices) detected that it was tampered with, for example, opened or moved.",
20338
+ description: "The status of a [device](https://docs.seam.co/latest/core-concepts/devices) changed from online to offline. That is, the `device.properties.online` property changed from `true` to `false`.",
20035
20339
  properties: {
20340
+ connected_account_custom_metadata: {
20341
+ additionalProperties: {
20342
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20343
+ },
20344
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
20345
+ type: "object"
20346
+ },
20036
20347
  connected_account_id: {
20037
20348
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
20038
20349
  format: "uuid",
@@ -20043,17 +20354,33 @@ var openapi_default = {
20043
20354
  format: "date-time",
20044
20355
  type: "string"
20045
20356
  },
20357
+ device_custom_metadata: {
20358
+ additionalProperties: {
20359
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20360
+ },
20361
+ description: "Custom metadata of the device, present when device_id is provided.",
20362
+ type: "object"
20363
+ },
20046
20364
  device_id: {
20047
20365
  description: "ID of the affected device.",
20048
20366
  format: "uuid",
20049
20367
  type: "string"
20050
20368
  },
20369
+ error_code: {
20370
+ description: "Error code associated with the disconnection event, if any.",
20371
+ enum: [
20372
+ "account_disconnected",
20373
+ "hub_disconnected",
20374
+ "device_disconnected"
20375
+ ],
20376
+ type: "string"
20377
+ },
20051
20378
  event_id: {
20052
20379
  description: "ID of the event.",
20053
20380
  format: "uuid",
20054
20381
  type: "string"
20055
20382
  },
20056
- event_type: { enum: ["device.tampered"], type: "string" },
20383
+ event_type: { enum: ["device.disconnected"], type: "string" },
20057
20384
  occurred_at: {
20058
20385
  description: "Date and time at which the event occurred.",
20059
20386
  format: "date-time",
@@ -20072,20 +20399,21 @@ var openapi_default = {
20072
20399
  "occurred_at",
20073
20400
  "device_id",
20074
20401
  "connected_account_id",
20075
- "event_type"
20402
+ "event_type",
20403
+ "error_code"
20076
20404
  ],
20077
20405
  type: "object",
20078
20406
  "x-route-path": "/devices"
20079
20407
  },
20080
20408
  {
20081
- description: "A [device](https://docs.seam.co/latest/core-concepts/devices) battery level dropped below the low threshold.",
20409
+ description: "The status of an [unmanaged device](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices) changed from online to offline. That is, the `device.properties.online` property changed from `true` to `false`.",
20082
20410
  properties: {
20083
- battery_level: {
20084
- description: "Number in the range 0 to 1.0 indicating the amount of battery in the affected device, as reported by the device.",
20085
- format: "float",
20086
- maximum: 1,
20087
- minimum: 0,
20088
- type: "number"
20411
+ connected_account_custom_metadata: {
20412
+ additionalProperties: {
20413
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20414
+ },
20415
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
20416
+ type: "object"
20089
20417
  },
20090
20418
  connected_account_id: {
20091
20419
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
@@ -20097,17 +20425,36 @@ var openapi_default = {
20097
20425
  format: "date-time",
20098
20426
  type: "string"
20099
20427
  },
20428
+ device_custom_metadata: {
20429
+ additionalProperties: {
20430
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20431
+ },
20432
+ description: "Custom metadata of the device, present when device_id is provided.",
20433
+ type: "object"
20434
+ },
20100
20435
  device_id: {
20101
20436
  description: "ID of the affected device.",
20102
20437
  format: "uuid",
20103
20438
  type: "string"
20104
20439
  },
20440
+ error_code: {
20441
+ description: "Error code associated with the disconnection event, if any.",
20442
+ enum: [
20443
+ "account_disconnected",
20444
+ "hub_disconnected",
20445
+ "device_disconnected"
20446
+ ],
20447
+ type: "string"
20448
+ },
20105
20449
  event_id: {
20106
20450
  description: "ID of the event.",
20107
20451
  format: "uuid",
20108
20452
  type: "string"
20109
20453
  },
20110
- event_type: { enum: ["device.low_battery"], type: "string" },
20454
+ event_type: {
20455
+ enum: ["device.unmanaged.disconnected"],
20456
+ type: "string"
20457
+ },
20111
20458
  occurred_at: {
20112
20459
  description: "Date and time at which the event occurred.",
20113
20460
  format: "date-time",
@@ -20127,25 +20474,20 @@ var openapi_default = {
20127
20474
  "device_id",
20128
20475
  "connected_account_id",
20129
20476
  "event_type",
20130
- "battery_level"
20477
+ "error_code"
20131
20478
  ],
20132
20479
  type: "object",
20133
- "x-route-path": "/devices"
20480
+ "x-route-path": "/devices/unmanaged"
20134
20481
  },
20135
20482
  {
20136
- description: "A [device](https://docs.seam.co/latest/core-concepts/devices) battery status changed since the last `battery_status_changed` event.",
20483
+ description: "A [device](https://docs.seam.co/latest/core-concepts/devices) detected that it was tampered with, for example, opened or moved.",
20137
20484
  properties: {
20138
- battery_level: {
20139
- description: "Number in the range 0 to 1.0 indicating the amount of battery in the affected device, as reported by the device.",
20140
- format: "float",
20141
- maximum: 1,
20142
- minimum: 0,
20143
- type: "number"
20144
- },
20145
- battery_status: {
20146
- description: "Battery status of the affected device, calculated from the numeric `battery_level` value.",
20147
- enum: ["critical", "low", "good", "full"],
20148
- type: "string"
20485
+ connected_account_custom_metadata: {
20486
+ additionalProperties: {
20487
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20488
+ },
20489
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
20490
+ type: "object"
20149
20491
  },
20150
20492
  connected_account_id: {
20151
20493
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
@@ -20157,6 +20499,13 @@ var openapi_default = {
20157
20499
  format: "date-time",
20158
20500
  type: "string"
20159
20501
  },
20502
+ device_custom_metadata: {
20503
+ additionalProperties: {
20504
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20505
+ },
20506
+ description: "Custom metadata of the device, present when device_id is provided.",
20507
+ type: "object"
20508
+ },
20160
20509
  device_id: {
20161
20510
  description: "ID of the affected device.",
20162
20511
  format: "uuid",
@@ -20167,10 +20516,7 @@ var openapi_default = {
20167
20516
  format: "uuid",
20168
20517
  type: "string"
20169
20518
  },
20170
- event_type: {
20171
- enum: ["device.battery_status_changed"],
20172
- type: "string"
20173
- },
20519
+ event_type: { enum: ["device.tampered"], type: "string" },
20174
20520
  occurred_at: {
20175
20521
  description: "Date and time at which the event occurred.",
20176
20522
  format: "date-time",
@@ -20189,16 +20535,28 @@ var openapi_default = {
20189
20535
  "occurred_at",
20190
20536
  "device_id",
20191
20537
  "connected_account_id",
20192
- "event_type",
20193
- "battery_status",
20194
- "battery_level"
20538
+ "event_type"
20195
20539
  ],
20196
20540
  type: "object",
20197
20541
  "x-route-path": "/devices"
20198
20542
  },
20199
20543
  {
20200
- description: "A [device](https://docs.seam.co/latest/core-concepts/devices) was removed externally from the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).",
20544
+ description: "A [device](https://docs.seam.co/latest/core-concepts/devices) battery level dropped below the low threshold.",
20201
20545
  properties: {
20546
+ battery_level: {
20547
+ description: "Number in the range 0 to 1.0 indicating the amount of battery in the affected device, as reported by the device.",
20548
+ format: "float",
20549
+ maximum: 1,
20550
+ minimum: 0,
20551
+ type: "number"
20552
+ },
20553
+ connected_account_custom_metadata: {
20554
+ additionalProperties: {
20555
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20556
+ },
20557
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
20558
+ type: "object"
20559
+ },
20202
20560
  connected_account_id: {
20203
20561
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
20204
20562
  format: "uuid",
@@ -20209,6 +20567,13 @@ var openapi_default = {
20209
20567
  format: "date-time",
20210
20568
  type: "string"
20211
20569
  },
20570
+ device_custom_metadata: {
20571
+ additionalProperties: {
20572
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20573
+ },
20574
+ description: "Custom metadata of the device, present when device_id is provided.",
20575
+ type: "object"
20576
+ },
20212
20577
  device_id: {
20213
20578
  description: "ID of the affected device.",
20214
20579
  format: "uuid",
@@ -20219,7 +20584,7 @@ var openapi_default = {
20219
20584
  format: "uuid",
20220
20585
  type: "string"
20221
20586
  },
20222
- event_type: { enum: ["device.removed"], type: "string" },
20587
+ event_type: { enum: ["device.low_battery"], type: "string" },
20223
20588
  occurred_at: {
20224
20589
  description: "Date and time at which the event occurred.",
20225
20590
  format: "date-time",
@@ -20238,14 +20603,34 @@ var openapi_default = {
20238
20603
  "occurred_at",
20239
20604
  "device_id",
20240
20605
  "connected_account_id",
20241
- "event_type"
20606
+ "event_type",
20607
+ "battery_level"
20242
20608
  ],
20243
20609
  type: "object",
20244
20610
  "x-route-path": "/devices"
20245
20611
  },
20246
20612
  {
20247
- description: "A [device](https://docs.seam.co/latest/core-concepts/devices) was deleted.",
20613
+ description: "A [device](https://docs.seam.co/latest/core-concepts/devices) battery status changed since the last `battery_status_changed` event.",
20248
20614
  properties: {
20615
+ battery_level: {
20616
+ description: "Number in the range 0 to 1.0 indicating the amount of battery in the affected device, as reported by the device.",
20617
+ format: "float",
20618
+ maximum: 1,
20619
+ minimum: 0,
20620
+ type: "number"
20621
+ },
20622
+ battery_status: {
20623
+ description: "Battery status of the affected device, calculated from the numeric `battery_level` value.",
20624
+ enum: ["critical", "low", "good", "full"],
20625
+ type: "string"
20626
+ },
20627
+ connected_account_custom_metadata: {
20628
+ additionalProperties: {
20629
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20630
+ },
20631
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
20632
+ type: "object"
20633
+ },
20249
20634
  connected_account_id: {
20250
20635
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
20251
20636
  format: "uuid",
@@ -20256,6 +20641,13 @@ var openapi_default = {
20256
20641
  format: "date-time",
20257
20642
  type: "string"
20258
20643
  },
20644
+ device_custom_metadata: {
20645
+ additionalProperties: {
20646
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20647
+ },
20648
+ description: "Custom metadata of the device, present when device_id is provided.",
20649
+ type: "object"
20650
+ },
20259
20651
  device_id: {
20260
20652
  description: "ID of the affected device.",
20261
20653
  format: "uuid",
@@ -20266,7 +20658,10 @@ var openapi_default = {
20266
20658
  format: "uuid",
20267
20659
  type: "string"
20268
20660
  },
20269
- event_type: { enum: ["device.deleted"], type: "string" },
20661
+ event_type: {
20662
+ enum: ["device.battery_status_changed"],
20663
+ type: "string"
20664
+ },
20270
20665
  occurred_at: {
20271
20666
  description: "Date and time at which the event occurred.",
20272
20667
  format: "date-time",
@@ -20285,14 +20680,23 @@ var openapi_default = {
20285
20680
  "occurred_at",
20286
20681
  "device_id",
20287
20682
  "connected_account_id",
20288
- "event_type"
20683
+ "event_type",
20684
+ "battery_status",
20685
+ "battery_level"
20289
20686
  ],
20290
20687
  type: "object",
20291
20688
  "x-route-path": "/devices"
20292
20689
  },
20293
20690
  {
20294
- description: "Seam detected that a [device](https://docs.seam.co/latest/core-concepts/devices) is using a third-party integration that will interfere with Seam device management.",
20691
+ description: "A [device](https://docs.seam.co/latest/core-concepts/devices) was removed externally from the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).",
20295
20692
  properties: {
20693
+ connected_account_custom_metadata: {
20694
+ additionalProperties: {
20695
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20696
+ },
20697
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
20698
+ type: "object"
20699
+ },
20296
20700
  connected_account_id: {
20297
20701
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
20298
20702
  format: "uuid",
@@ -20303,6 +20707,13 @@ var openapi_default = {
20303
20707
  format: "date-time",
20304
20708
  type: "string"
20305
20709
  },
20710
+ device_custom_metadata: {
20711
+ additionalProperties: {
20712
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20713
+ },
20714
+ description: "Custom metadata of the device, present when device_id is provided.",
20715
+ type: "object"
20716
+ },
20306
20717
  device_id: {
20307
20718
  description: "ID of the affected device.",
20308
20719
  format: "uuid",
@@ -20313,10 +20724,7 @@ var openapi_default = {
20313
20724
  format: "uuid",
20314
20725
  type: "string"
20315
20726
  },
20316
- event_type: {
20317
- enum: ["device.third_party_integration_detected"],
20318
- type: "string"
20319
- },
20727
+ event_type: { enum: ["device.removed"], type: "string" },
20320
20728
  occurred_at: {
20321
20729
  description: "Date and time at which the event occurred.",
20322
20730
  format: "date-time",
@@ -20341,8 +20749,15 @@ var openapi_default = {
20341
20749
  "x-route-path": "/devices"
20342
20750
  },
20343
20751
  {
20344
- description: "Seam detected that a [device](https://docs.seam.co/latest/core-concepts/devices) is no longer using a third-party integration that was interfering with Seam device management.",
20752
+ description: "A [device](https://docs.seam.co/latest/core-concepts/devices) was deleted.",
20345
20753
  properties: {
20754
+ connected_account_custom_metadata: {
20755
+ additionalProperties: {
20756
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20757
+ },
20758
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
20759
+ type: "object"
20760
+ },
20346
20761
  connected_account_id: {
20347
20762
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
20348
20763
  format: "uuid",
@@ -20353,6 +20768,13 @@ var openapi_default = {
20353
20768
  format: "date-time",
20354
20769
  type: "string"
20355
20770
  },
20771
+ device_custom_metadata: {
20772
+ additionalProperties: {
20773
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20774
+ },
20775
+ description: "Custom metadata of the device, present when device_id is provided.",
20776
+ type: "object"
20777
+ },
20356
20778
  device_id: {
20357
20779
  description: "ID of the affected device.",
20358
20780
  format: "uuid",
@@ -20363,10 +20785,7 @@ var openapi_default = {
20363
20785
  format: "uuid",
20364
20786
  type: "string"
20365
20787
  },
20366
- event_type: {
20367
- enum: ["device.third_party_integration_no_longer_detected"],
20368
- type: "string"
20369
- },
20788
+ event_type: { enum: ["device.deleted"], type: "string" },
20370
20789
  occurred_at: {
20371
20790
  description: "Date and time at which the event occurred.",
20372
20791
  format: "date-time",
@@ -20391,8 +20810,15 @@ var openapi_default = {
20391
20810
  "x-route-path": "/devices"
20392
20811
  },
20393
20812
  {
20394
- description: "A [Salto device](https://docs.seam.co/latest/device-and-system-integration-guides/salto-locks) activated privacy mode.",
20813
+ description: "Seam detected that a [device](https://docs.seam.co/latest/core-concepts/devices) is using a third-party integration that will interfere with Seam device management.",
20395
20814
  properties: {
20815
+ connected_account_custom_metadata: {
20816
+ additionalProperties: {
20817
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20818
+ },
20819
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
20820
+ type: "object"
20821
+ },
20396
20822
  connected_account_id: {
20397
20823
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
20398
20824
  format: "uuid",
@@ -20403,6 +20829,13 @@ var openapi_default = {
20403
20829
  format: "date-time",
20404
20830
  type: "string"
20405
20831
  },
20832
+ device_custom_metadata: {
20833
+ additionalProperties: {
20834
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20835
+ },
20836
+ description: "Custom metadata of the device, present when device_id is provided.",
20837
+ type: "object"
20838
+ },
20406
20839
  device_id: {
20407
20840
  description: "ID of the affected device.",
20408
20841
  format: "uuid",
@@ -20414,7 +20847,7 @@ var openapi_default = {
20414
20847
  type: "string"
20415
20848
  },
20416
20849
  event_type: {
20417
- enum: ["device.salto.privacy_mode_activated"],
20850
+ enum: ["device.third_party_integration_detected"],
20418
20851
  type: "string"
20419
20852
  },
20420
20853
  occurred_at: {
@@ -20441,8 +20874,15 @@ var openapi_default = {
20441
20874
  "x-route-path": "/devices"
20442
20875
  },
20443
20876
  {
20444
- description: "A [Salto device](https://docs.seam.co/latest/device-and-system-integration-guides/salto-locks) deactivated privacy mode.",
20877
+ description: "Seam detected that a [device](https://docs.seam.co/latest/core-concepts/devices) is no longer using a third-party integration that was interfering with Seam device management.",
20445
20878
  properties: {
20879
+ connected_account_custom_metadata: {
20880
+ additionalProperties: {
20881
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20882
+ },
20883
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
20884
+ type: "object"
20885
+ },
20446
20886
  connected_account_id: {
20447
20887
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
20448
20888
  format: "uuid",
@@ -20453,6 +20893,13 @@ var openapi_default = {
20453
20893
  format: "date-time",
20454
20894
  type: "string"
20455
20895
  },
20896
+ device_custom_metadata: {
20897
+ additionalProperties: {
20898
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20899
+ },
20900
+ description: "Custom metadata of the device, present when device_id is provided.",
20901
+ type: "object"
20902
+ },
20456
20903
  device_id: {
20457
20904
  description: "ID of the affected device.",
20458
20905
  format: "uuid",
@@ -20464,7 +20911,7 @@ var openapi_default = {
20464
20911
  type: "string"
20465
20912
  },
20466
20913
  event_type: {
20467
- enum: ["device.salto.privacy_mode_deactivated"],
20914
+ enum: ["device.third_party_integration_no_longer_detected"],
20468
20915
  type: "string"
20469
20916
  },
20470
20917
  occurred_at: {
@@ -20491,8 +20938,15 @@ var openapi_default = {
20491
20938
  "x-route-path": "/devices"
20492
20939
  },
20493
20940
  {
20494
- description: "Seam detected a flaky [device](https://docs.seam.co/latest/core-concepts/devices) connection.",
20941
+ description: "A [Salto device](https://docs.seam.co/latest/device-and-system-integration-guides/salto-locks) activated privacy mode.",
20495
20942
  properties: {
20943
+ connected_account_custom_metadata: {
20944
+ additionalProperties: {
20945
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20946
+ },
20947
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
20948
+ type: "object"
20949
+ },
20496
20950
  connected_account_id: {
20497
20951
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
20498
20952
  format: "uuid",
@@ -20503,6 +20957,13 @@ var openapi_default = {
20503
20957
  format: "date-time",
20504
20958
  type: "string"
20505
20959
  },
20960
+ device_custom_metadata: {
20961
+ additionalProperties: {
20962
+ oneOf: [{ type: "string" }, { type: "boolean" }]
20963
+ },
20964
+ description: "Custom metadata of the device, present when device_id is provided.",
20965
+ type: "object"
20966
+ },
20506
20967
  device_id: {
20507
20968
  description: "ID of the affected device.",
20508
20969
  format: "uuid",
@@ -20514,7 +20975,7 @@ var openapi_default = {
20514
20975
  type: "string"
20515
20976
  },
20516
20977
  event_type: {
20517
- enum: ["device.connection_became_flaky"],
20978
+ enum: ["device.salto.privacy_mode_activated"],
20518
20979
  type: "string"
20519
20980
  },
20520
20981
  occurred_at: {
@@ -20541,8 +21002,15 @@ var openapi_default = {
20541
21002
  "x-route-path": "/devices"
20542
21003
  },
20543
21004
  {
20544
- description: "Seam detected that a previously-flaky [device](https://docs.seam.co/latest/core-concepts/devices) connection stabilized.",
21005
+ description: "A [Salto device](https://docs.seam.co/latest/device-and-system-integration-guides/salto-locks) deactivated privacy mode.",
20545
21006
  properties: {
21007
+ connected_account_custom_metadata: {
21008
+ additionalProperties: {
21009
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21010
+ },
21011
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
21012
+ type: "object"
21013
+ },
20546
21014
  connected_account_id: {
20547
21015
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
20548
21016
  format: "uuid",
@@ -20553,6 +21021,13 @@ var openapi_default = {
20553
21021
  format: "date-time",
20554
21022
  type: "string"
20555
21023
  },
21024
+ device_custom_metadata: {
21025
+ additionalProperties: {
21026
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21027
+ },
21028
+ description: "Custom metadata of the device, present when device_id is provided.",
21029
+ type: "object"
21030
+ },
20556
21031
  device_id: {
20557
21032
  description: "ID of the affected device.",
20558
21033
  format: "uuid",
@@ -20564,7 +21039,135 @@ var openapi_default = {
20564
21039
  type: "string"
20565
21040
  },
20566
21041
  event_type: {
20567
- enum: ["device.connection_stabilized"],
21042
+ enum: ["device.salto.privacy_mode_deactivated"],
21043
+ type: "string"
21044
+ },
21045
+ occurred_at: {
21046
+ description: "Date and time at which the event occurred.",
21047
+ format: "date-time",
21048
+ type: "string"
21049
+ },
21050
+ workspace_id: {
21051
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.",
21052
+ format: "uuid",
21053
+ type: "string"
21054
+ }
21055
+ },
21056
+ required: [
21057
+ "event_id",
21058
+ "workspace_id",
21059
+ "created_at",
21060
+ "occurred_at",
21061
+ "device_id",
21062
+ "connected_account_id",
21063
+ "event_type"
21064
+ ],
21065
+ type: "object",
21066
+ "x-route-path": "/devices"
21067
+ },
21068
+ {
21069
+ description: "Seam detected a flaky [device](https://docs.seam.co/latest/core-concepts/devices) connection.",
21070
+ properties: {
21071
+ connected_account_custom_metadata: {
21072
+ additionalProperties: {
21073
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21074
+ },
21075
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
21076
+ type: "object"
21077
+ },
21078
+ connected_account_id: {
21079
+ description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
21080
+ format: "uuid",
21081
+ type: "string"
21082
+ },
21083
+ created_at: {
21084
+ description: "Date and time at which the event was created.",
21085
+ format: "date-time",
21086
+ type: "string"
21087
+ },
21088
+ device_custom_metadata: {
21089
+ additionalProperties: {
21090
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21091
+ },
21092
+ description: "Custom metadata of the device, present when device_id is provided.",
21093
+ type: "object"
21094
+ },
21095
+ device_id: {
21096
+ description: "ID of the affected device.",
21097
+ format: "uuid",
21098
+ type: "string"
21099
+ },
21100
+ event_id: {
21101
+ description: "ID of the event.",
21102
+ format: "uuid",
21103
+ type: "string"
21104
+ },
21105
+ event_type: {
21106
+ enum: ["device.connection_became_flaky"],
21107
+ type: "string"
21108
+ },
21109
+ occurred_at: {
21110
+ description: "Date and time at which the event occurred.",
21111
+ format: "date-time",
21112
+ type: "string"
21113
+ },
21114
+ workspace_id: {
21115
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.",
21116
+ format: "uuid",
21117
+ type: "string"
21118
+ }
21119
+ },
21120
+ required: [
21121
+ "event_id",
21122
+ "workspace_id",
21123
+ "created_at",
21124
+ "occurred_at",
21125
+ "device_id",
21126
+ "connected_account_id",
21127
+ "event_type"
21128
+ ],
21129
+ type: "object",
21130
+ "x-route-path": "/devices"
21131
+ },
21132
+ {
21133
+ description: "Seam detected that a previously-flaky [device](https://docs.seam.co/latest/core-concepts/devices) connection stabilized.",
21134
+ properties: {
21135
+ connected_account_custom_metadata: {
21136
+ additionalProperties: {
21137
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21138
+ },
21139
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
21140
+ type: "object"
21141
+ },
21142
+ connected_account_id: {
21143
+ description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
21144
+ format: "uuid",
21145
+ type: "string"
21146
+ },
21147
+ created_at: {
21148
+ description: "Date and time at which the event was created.",
21149
+ format: "date-time",
21150
+ type: "string"
21151
+ },
21152
+ device_custom_metadata: {
21153
+ additionalProperties: {
21154
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21155
+ },
21156
+ description: "Custom metadata of the device, present when device_id is provided.",
21157
+ type: "object"
21158
+ },
21159
+ device_id: {
21160
+ description: "ID of the affected device.",
21161
+ format: "uuid",
21162
+ type: "string"
21163
+ },
21164
+ event_id: {
21165
+ description: "ID of the event.",
21166
+ format: "uuid",
21167
+ type: "string"
21168
+ },
21169
+ event_type: {
21170
+ enum: ["device.connection_stabilized"],
20568
21171
  type: "string"
20569
21172
  },
20570
21173
  occurred_at: {
@@ -20593,6 +21196,13 @@ var openapi_default = {
20593
21196
  {
20594
21197
  description: "A third-party subscription is required to use all [device](https://docs.seam.co/latest/core-concepts/devices) features.",
20595
21198
  properties: {
21199
+ connected_account_custom_metadata: {
21200
+ additionalProperties: {
21201
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21202
+ },
21203
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
21204
+ type: "object"
21205
+ },
20596
21206
  connected_account_id: {
20597
21207
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
20598
21208
  format: "uuid",
@@ -20603,6 +21213,13 @@ var openapi_default = {
20603
21213
  format: "date-time",
20604
21214
  type: "string"
20605
21215
  },
21216
+ device_custom_metadata: {
21217
+ additionalProperties: {
21218
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21219
+ },
21220
+ description: "Custom metadata of the device, present when device_id is provided.",
21221
+ type: "object"
21222
+ },
20606
21223
  device_id: {
20607
21224
  description: "ID of the affected device.",
20608
21225
  format: "uuid",
@@ -20643,6 +21260,13 @@ var openapi_default = {
20643
21260
  {
20644
21261
  description: "A third-party subscription is active or no longer required to use all [device](https://docs.seam.co/latest/core-concepts/devices) features.",
20645
21262
  properties: {
21263
+ connected_account_custom_metadata: {
21264
+ additionalProperties: {
21265
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21266
+ },
21267
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
21268
+ type: "object"
21269
+ },
20646
21270
  connected_account_id: {
20647
21271
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
20648
21272
  format: "uuid",
@@ -20653,6 +21277,13 @@ var openapi_default = {
20653
21277
  format: "date-time",
20654
21278
  type: "string"
20655
21279
  },
21280
+ device_custom_metadata: {
21281
+ additionalProperties: {
21282
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21283
+ },
21284
+ description: "Custom metadata of the device, present when device_id is provided.",
21285
+ type: "object"
21286
+ },
20656
21287
  device_id: {
20657
21288
  description: "ID of the affected device.",
20658
21289
  format: "uuid",
@@ -20693,6 +21324,13 @@ var openapi_default = {
20693
21324
  {
20694
21325
  description: "An accessory keypad was connected to a [device](https://docs.seam.co/latest/core-concepts/devices).",
20695
21326
  properties: {
21327
+ connected_account_custom_metadata: {
21328
+ additionalProperties: {
21329
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21330
+ },
21331
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
21332
+ type: "object"
21333
+ },
20696
21334
  connected_account_id: {
20697
21335
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
20698
21336
  format: "uuid",
@@ -20703,6 +21341,13 @@ var openapi_default = {
20703
21341
  format: "date-time",
20704
21342
  type: "string"
20705
21343
  },
21344
+ device_custom_metadata: {
21345
+ additionalProperties: {
21346
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21347
+ },
21348
+ description: "Custom metadata of the device, present when device_id is provided.",
21349
+ type: "object"
21350
+ },
20706
21351
  device_id: {
20707
21352
  description: "ID of the affected device.",
20708
21353
  format: "uuid",
@@ -20743,6 +21388,13 @@ var openapi_default = {
20743
21388
  {
20744
21389
  description: "An accessory keypad was disconnected from a [device](https://docs.seam.co/latest/core-concepts/devices).",
20745
21390
  properties: {
21391
+ connected_account_custom_metadata: {
21392
+ additionalProperties: {
21393
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21394
+ },
21395
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
21396
+ type: "object"
21397
+ },
20746
21398
  connected_account_id: {
20747
21399
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
20748
21400
  format: "uuid",
@@ -20753,6 +21405,13 @@ var openapi_default = {
20753
21405
  format: "date-time",
20754
21406
  type: "string"
20755
21407
  },
21408
+ device_custom_metadata: {
21409
+ additionalProperties: {
21410
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21411
+ },
21412
+ description: "Custom metadata of the device, present when device_id is provided.",
21413
+ type: "object"
21414
+ },
20756
21415
  device_id: {
20757
21416
  description: "ID of the affected device.",
20758
21417
  format: "uuid",
@@ -20793,6 +21452,13 @@ var openapi_default = {
20793
21452
  {
20794
21453
  description: "Extended periods of noise or noise exceeding a [threshold](https://docs.seam.co/latest/capability-guides/noise-sensors#what-is-a-threshold) were detected.",
20795
21454
  properties: {
21455
+ connected_account_custom_metadata: {
21456
+ additionalProperties: {
21457
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21458
+ },
21459
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
21460
+ type: "object"
21461
+ },
20796
21462
  connected_account_id: {
20797
21463
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
20798
21464
  format: "uuid",
@@ -20803,6 +21469,13 @@ var openapi_default = {
20803
21469
  format: "date-time",
20804
21470
  type: "string"
20805
21471
  },
21472
+ device_custom_metadata: {
21473
+ additionalProperties: {
21474
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21475
+ },
21476
+ description: "Custom metadata of the device, present when device_id is provided.",
21477
+ type: "object"
21478
+ },
20806
21479
  device_id: {
20807
21480
  description: "ID of the affected device.",
20808
21481
  format: "uuid",
@@ -20882,6 +21555,13 @@ var openapi_default = {
20882
21555
  format: "uuid",
20883
21556
  type: "string"
20884
21557
  },
21558
+ connected_account_custom_metadata: {
21559
+ additionalProperties: {
21560
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21561
+ },
21562
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
21563
+ type: "object"
21564
+ },
20885
21565
  connected_account_id: {
20886
21566
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
20887
21567
  format: "uuid",
@@ -20892,6 +21572,13 @@ var openapi_default = {
20892
21572
  format: "date-time",
20893
21573
  type: "string"
20894
21574
  },
21575
+ device_custom_metadata: {
21576
+ additionalProperties: {
21577
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21578
+ },
21579
+ description: "Custom metadata of the device, present when device_id is provided.",
21580
+ type: "object"
21581
+ },
20895
21582
  device_id: {
20896
21583
  description: "ID of the affected device.",
20897
21584
  format: "uuid",
@@ -20945,6 +21632,13 @@ var openapi_default = {
20945
21632
  format: "uuid",
20946
21633
  type: "string"
20947
21634
  },
21635
+ connected_account_custom_metadata: {
21636
+ additionalProperties: {
21637
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21638
+ },
21639
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
21640
+ type: "object"
21641
+ },
20948
21642
  connected_account_id: {
20949
21643
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
20950
21644
  format: "uuid",
@@ -20955,6 +21649,13 @@ var openapi_default = {
20955
21649
  format: "date-time",
20956
21650
  type: "string"
20957
21651
  },
21652
+ device_custom_metadata: {
21653
+ additionalProperties: {
21654
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21655
+ },
21656
+ description: "Custom metadata of the device, present when device_id is provided.",
21657
+ type: "object"
21658
+ },
20958
21659
  device_id: {
20959
21660
  description: "ID of the affected device.",
20960
21661
  format: "uuid",
@@ -21003,6 +21704,13 @@ var openapi_default = {
21003
21704
  format: "uuid",
21004
21705
  type: "string"
21005
21706
  },
21707
+ connected_account_custom_metadata: {
21708
+ additionalProperties: {
21709
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21710
+ },
21711
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
21712
+ type: "object"
21713
+ },
21006
21714
  connected_account_id: {
21007
21715
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
21008
21716
  format: "uuid",
@@ -21013,6 +21721,13 @@ var openapi_default = {
21013
21721
  format: "date-time",
21014
21722
  type: "string"
21015
21723
  },
21724
+ device_custom_metadata: {
21725
+ additionalProperties: {
21726
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21727
+ },
21728
+ description: "Custom metadata of the device, present when device_id is provided.",
21729
+ type: "object"
21730
+ },
21016
21731
  device_id: {
21017
21732
  description: "ID of the affected device.",
21018
21733
  format: "uuid",
@@ -21054,6 +21769,13 @@ var openapi_default = {
21054
21769
  description: "Key of the climate preset that was activated.",
21055
21770
  type: "string"
21056
21771
  },
21772
+ connected_account_custom_metadata: {
21773
+ additionalProperties: {
21774
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21775
+ },
21776
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
21777
+ type: "object"
21778
+ },
21057
21779
  connected_account_id: {
21058
21780
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
21059
21781
  format: "uuid",
@@ -21064,6 +21786,13 @@ var openapi_default = {
21064
21786
  format: "date-time",
21065
21787
  type: "string"
21066
21788
  },
21789
+ device_custom_metadata: {
21790
+ additionalProperties: {
21791
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21792
+ },
21793
+ description: "Custom metadata of the device, present when device_id is provided.",
21794
+ type: "object"
21795
+ },
21067
21796
  device_id: {
21068
21797
  description: "ID of the affected device.",
21069
21798
  format: "uuid",
@@ -21117,6 +21846,13 @@ var openapi_default = {
21117
21846
  {
21118
21847
  description: "A [thermostat](https://docs.seam.co/latest/capability-guides/thermostats) was adjusted manually.",
21119
21848
  properties: {
21849
+ connected_account_custom_metadata: {
21850
+ additionalProperties: {
21851
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21852
+ },
21853
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
21854
+ type: "object"
21855
+ },
21120
21856
  connected_account_id: {
21121
21857
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
21122
21858
  format: "uuid",
@@ -21137,6 +21873,13 @@ var openapi_default = {
21137
21873
  format: "date-time",
21138
21874
  type: "string"
21139
21875
  },
21876
+ device_custom_metadata: {
21877
+ additionalProperties: {
21878
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21879
+ },
21880
+ description: "Custom metadata of the device, present when device_id is provided.",
21881
+ type: "object"
21882
+ },
21140
21883
  device_id: {
21141
21884
  description: "ID of the affected device.",
21142
21885
  format: "uuid",
@@ -21203,6 +21946,13 @@ var openapi_default = {
21203
21946
  {
21204
21947
  description: "A [thermostat's](https://docs.seam.co/latest/capability-guides/thermostats) temperature reading exceeded the set [threshold](https://docs.seam.co/latest/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds).",
21205
21948
  properties: {
21949
+ connected_account_custom_metadata: {
21950
+ additionalProperties: {
21951
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21952
+ },
21953
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
21954
+ type: "object"
21955
+ },
21206
21956
  connected_account_id: {
21207
21957
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
21208
21958
  format: "uuid",
@@ -21213,6 +21963,13 @@ var openapi_default = {
21213
21963
  format: "date-time",
21214
21964
  type: "string"
21215
21965
  },
21966
+ device_custom_metadata: {
21967
+ additionalProperties: {
21968
+ oneOf: [{ type: "string" }, { type: "boolean" }]
21969
+ },
21970
+ description: "Custom metadata of the device, present when device_id is provided.",
21971
+ type: "object"
21972
+ },
21216
21973
  device_id: {
21217
21974
  description: "ID of the affected device.",
21218
21975
  format: "uuid",
@@ -21293,6 +22050,13 @@ var openapi_default = {
21293
22050
  {
21294
22051
  description: "A [thermostat's](https://docs.seam.co/latest/capability-guides/thermostats) temperature reading no longer exceeds the set [threshold](https://docs.seam.co/latest/capability-guides/thermostats/setting-and-monitoring-temperature-thresholds).",
21295
22052
  properties: {
22053
+ connected_account_custom_metadata: {
22054
+ additionalProperties: {
22055
+ oneOf: [{ type: "string" }, { type: "boolean" }]
22056
+ },
22057
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
22058
+ type: "object"
22059
+ },
21296
22060
  connected_account_id: {
21297
22061
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
21298
22062
  format: "uuid",
@@ -21303,6 +22067,13 @@ var openapi_default = {
21303
22067
  format: "date-time",
21304
22068
  type: "string"
21305
22069
  },
22070
+ device_custom_metadata: {
22071
+ additionalProperties: {
22072
+ oneOf: [{ type: "string" }, { type: "boolean" }]
22073
+ },
22074
+ description: "Custom metadata of the device, present when device_id is provided.",
22075
+ type: "object"
22076
+ },
21306
22077
  device_id: {
21307
22078
  description: "ID of the affected device.",
21308
22079
  format: "uuid",
@@ -21383,6 +22154,13 @@ var openapi_default = {
21383
22154
  {
21384
22155
  description: "A [thermostat's](https://docs.seam.co/latest/capability-guides/thermostats) temperature reading is within 1 \xB0C of the configured cooling or heating [set point](https://docs.seam.co/latest/capability-guides/thermostats/understanding-thermostat-concepts/set-points).",
21385
22156
  properties: {
22157
+ connected_account_custom_metadata: {
22158
+ additionalProperties: {
22159
+ oneOf: [{ type: "string" }, { type: "boolean" }]
22160
+ },
22161
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
22162
+ type: "object"
22163
+ },
21386
22164
  connected_account_id: {
21387
22165
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
21388
22166
  format: "uuid",
@@ -21403,6 +22181,13 @@ var openapi_default = {
21403
22181
  format: "float",
21404
22182
  type: "number"
21405
22183
  },
22184
+ device_custom_metadata: {
22185
+ additionalProperties: {
22186
+ oneOf: [{ type: "string" }, { type: "boolean" }]
22187
+ },
22188
+ description: "Custom metadata of the device, present when device_id is provided.",
22189
+ type: "object"
22190
+ },
21406
22191
  device_id: {
21407
22192
  description: "ID of the affected device.",
21408
22193
  format: "uuid",
@@ -21455,6 +22240,13 @@ var openapi_default = {
21455
22240
  {
21456
22241
  description: "A [thermostat's](https://docs.seam.co/latest/capability-guides/thermostats) reported temperature changed by at least 1 \xB0C.",
21457
22242
  properties: {
22243
+ connected_account_custom_metadata: {
22244
+ additionalProperties: {
22245
+ oneOf: [{ type: "string" }, { type: "boolean" }]
22246
+ },
22247
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
22248
+ type: "object"
22249
+ },
21458
22250
  connected_account_id: {
21459
22251
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
21460
22252
  format: "uuid",
@@ -21465,6 +22257,13 @@ var openapi_default = {
21465
22257
  format: "date-time",
21466
22258
  type: "string"
21467
22259
  },
22260
+ device_custom_metadata: {
22261
+ additionalProperties: {
22262
+ oneOf: [{ type: "string" }, { type: "boolean" }]
22263
+ },
22264
+ description: "Custom metadata of the device, present when device_id is provided.",
22265
+ type: "object"
22266
+ },
21468
22267
  device_id: {
21469
22268
  description: "ID of the affected device.",
21470
22269
  format: "uuid",
@@ -21517,6 +22316,13 @@ var openapi_default = {
21517
22316
  {
21518
22317
  description: "The name of a [device](https://docs.seam.co/latest/core-concepts/devices) was changed.",
21519
22318
  properties: {
22319
+ connected_account_custom_metadata: {
22320
+ additionalProperties: {
22321
+ oneOf: [{ type: "string" }, { type: "boolean" }]
22322
+ },
22323
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
22324
+ type: "object"
22325
+ },
21520
22326
  connected_account_id: {
21521
22327
  description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
21522
22328
  format: "uuid",
@@ -21527,6 +22333,13 @@ var openapi_default = {
21527
22333
  format: "date-time",
21528
22334
  type: "string"
21529
22335
  },
22336
+ device_custom_metadata: {
22337
+ additionalProperties: {
22338
+ oneOf: [{ type: "string" }, { type: "boolean" }]
22339
+ },
22340
+ description: "Custom metadata of the device, present when device_id is provided.",
22341
+ type: "object"
22342
+ },
21530
22343
  device_id: {
21531
22344
  description: "ID of the affected device.",
21532
22345
  format: "uuid",
@@ -21618,6 +22431,13 @@ var openapi_default = {
21618
22431
  format: "date-time",
21619
22432
  type: "string"
21620
22433
  },
22434
+ device_custom_metadata: {
22435
+ additionalProperties: {
22436
+ oneOf: [{ type: "string" }, { type: "boolean" }]
22437
+ },
22438
+ description: "Custom metadata of the device; present when device_id is provided.",
22439
+ type: "object"
22440
+ },
21621
22441
  device_id: {
21622
22442
  description: "ID of the affected phone device.",
21623
22443
  format: "uuid",
@@ -26744,6 +27564,11 @@ var openapi_default = {
26744
27564
  user_identity: {
26745
27565
  description: "Represents a [user identity](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) associated with an application user account.",
26746
27566
  properties: {
27567
+ acs_user_ids: {
27568
+ description: "Array of access system user IDs associated with the user identity.",
27569
+ items: { format: "uuid", type: "string" },
27570
+ type: "array"
27571
+ },
26747
27572
  created_at: {
26748
27573
  description: "Date and time at which the user identity was created.",
26749
27574
  format: "date-time",
@@ -26888,7 +27713,8 @@ var openapi_default = {
26888
27713
  "created_at",
26889
27714
  "workspace_id",
26890
27715
  "errors",
26891
- "warnings"
27716
+ "warnings",
27717
+ "acs_user_ids"
26892
27718
  ],
26893
27719
  type: "object",
26894
27720
  "x-route-path": "/user_identities"
@@ -33788,6 +34614,15 @@ var openapi_default = {
33788
34614
  format: "uuid",
33789
34615
  type: "string"
33790
34616
  }
34617
+ },
34618
+ {
34619
+ in: "query",
34620
+ name: "acs_entrance_ids",
34621
+ schema: {
34622
+ description: "IDs of the entrances for which you want to retrieve all entrances.",
34623
+ items: { format: "uuid", type: "string" },
34624
+ type: "array"
34625
+ }
33791
34626
  }
33792
34627
  ],
33793
34628
  responses: {
@@ -33849,6 +34684,11 @@ var openapi_default = {
33849
34684
  format: "uuid",
33850
34685
  type: "string"
33851
34686
  },
34687
+ acs_entrance_ids: {
34688
+ description: "IDs of the entrances for which you want to retrieve all entrances.",
34689
+ items: { format: "uuid", type: "string" },
34690
+ type: "array"
34691
+ },
33852
34692
  acs_system_id: {
33853
34693
  description: "ID of the access system for which you want to retrieve all entrances.",
33854
34694
  format: "uuid",
@@ -40693,6 +41533,57 @@ var openapi_default = {
40693
41533
  "x-title": "Simulate Device Connection"
40694
41534
  }
40695
41535
  },
41536
+ "/devices/simulate/connect_to_hub": {
41537
+ post: {
41538
+ description: "Simulates bringing the Wi-Fi hub (bridge) back online for a device. \nOnly applicable for [sandbox workspaces](https://docs.seam.co/latest/core-concepts/workspaces#sandbox-workspaces) and August locks today, but designed so we can extend to other providers later. \nThis will clear the `hub_disconnected` error on the device.",
41539
+ operationId: "devicesSimulateConnectToHubPost",
41540
+ requestBody: {
41541
+ content: {
41542
+ "application/json": {
41543
+ schema: {
41544
+ properties: {
41545
+ device_id: {
41546
+ description: "ID of the device whose hub you want to reconnect.",
41547
+ format: "uuid",
41548
+ type: "string"
41549
+ }
41550
+ },
41551
+ required: ["device_id"],
41552
+ type: "object"
41553
+ }
41554
+ }
41555
+ }
41556
+ },
41557
+ responses: {
41558
+ 200: {
41559
+ content: {
41560
+ "application/json": {
41561
+ schema: {
41562
+ properties: { ok: { type: "boolean" } },
41563
+ required: ["ok"],
41564
+ type: "object"
41565
+ }
41566
+ }
41567
+ },
41568
+ description: "OK"
41569
+ },
41570
+ 400: { description: "Bad Request" },
41571
+ 401: { description: "Unauthorized" }
41572
+ },
41573
+ security: [
41574
+ { api_key: [] },
41575
+ { pat_with_workspace: [] },
41576
+ { console_session_with_workspace: [] },
41577
+ { client_session_with_customer: [] }
41578
+ ],
41579
+ summary: "/devices/simulate/connect_to_hub",
41580
+ tags: ["/devices"],
41581
+ "x-fern-sdk-group-name": ["devices", "simulate"],
41582
+ "x-fern-sdk-method-name": "connect_to_hub",
41583
+ "x-response-key": null,
41584
+ "x-title": "Simulate Hub Connection"
41585
+ }
41586
+ },
40696
41587
  "/devices/simulate/disconnect": {
40697
41588
  post: {
40698
41589
  description: "Simulates disconnecting a device from Seam. Only applicable for [sandbox devices](https://docs.seam.co/latest/core-concepts/workspaces#sandbox-workspaces). See also [Testing Your App Against Device Disconnection and Removal](https://docs.seam.co/latest/core-concepts/devices/testing-your-app-against-device-disconnection-and-removal).",
@@ -40744,6 +41635,57 @@ var openapi_default = {
40744
41635
  "x-title": "Simulate Device Disconnection"
40745
41636
  }
40746
41637
  },
41638
+ "/devices/simulate/disconnect_from_hub": {
41639
+ post: {
41640
+ description: "Simulates taking the Wi-Fi hub (bridge) offline for a device. \nOnly applicable for [sandbox workspaces](https://docs.seam.co/latest/core-concepts/workspaces#sandbox-workspaces) and August locks today, but designed so we can extend to other providers later. \nThis will set the `hub_disconnected` error on the device.",
41641
+ operationId: "devicesSimulateDisconnectFromHubPost",
41642
+ requestBody: {
41643
+ content: {
41644
+ "application/json": {
41645
+ schema: {
41646
+ properties: {
41647
+ device_id: {
41648
+ description: "ID of the device whose hub you want to disconnect.",
41649
+ format: "uuid",
41650
+ type: "string"
41651
+ }
41652
+ },
41653
+ required: ["device_id"],
41654
+ type: "object"
41655
+ }
41656
+ }
41657
+ }
41658
+ },
41659
+ responses: {
41660
+ 200: {
41661
+ content: {
41662
+ "application/json": {
41663
+ schema: {
41664
+ properties: { ok: { type: "boolean" } },
41665
+ required: ["ok"],
41666
+ type: "object"
41667
+ }
41668
+ }
41669
+ },
41670
+ description: "OK"
41671
+ },
41672
+ 400: { description: "Bad Request" },
41673
+ 401: { description: "Unauthorized" }
41674
+ },
41675
+ security: [
41676
+ { api_key: [] },
41677
+ { pat_with_workspace: [] },
41678
+ { console_session_with_workspace: [] },
41679
+ { client_session_with_customer: [] }
41680
+ ],
41681
+ summary: "/devices/simulate/disconnect_from_hub",
41682
+ tags: ["/devices"],
41683
+ "x-fern-sdk-group-name": ["devices", "simulate"],
41684
+ "x-fern-sdk-method-name": "disconnect_from_hub",
41685
+ "x-response-key": null,
41686
+ "x-title": "Simulate Hub Disconnection"
41687
+ }
41688
+ },
40747
41689
  "/devices/simulate/remove": {
40748
41690
  post: {
40749
41691
  description: "Simulates removing a device from Seam. Only applicable for [sandbox devices](https://docs.seam.co/latest/core-concepts/workspaces#sandbox-workspaces). See also [Testing Your App Against Device Disconnection and Removal](https://docs.seam.co/latest/core-concepts/devices/testing-your-app-against-device-disconnection-and-removal).",
@@ -47890,6 +48832,189 @@ var openapi_default = {
47890
48832
  "x-title": "Get a Space"
47891
48833
  }
47892
48834
  },
48835
+ "/spaces/get_related": {
48836
+ get: {
48837
+ description: "Gets all related resources for one or more Spaces.",
48838
+ operationId: "spacesGetRelatedGet",
48839
+ parameters: [
48840
+ {
48841
+ in: "query",
48842
+ name: "space_ids",
48843
+ required: true,
48844
+ schema: {
48845
+ description: "IDs of the spaces that you want to get along with their related resources.",
48846
+ items: { format: "uuid", type: "string" },
48847
+ type: "array"
48848
+ }
48849
+ },
48850
+ {
48851
+ in: "query",
48852
+ name: "include",
48853
+ required: false,
48854
+ schema: {
48855
+ items: {
48856
+ enum: ["spaces", "devices", "acs_entrances"],
48857
+ type: "string"
48858
+ },
48859
+ type: "array"
48860
+ }
48861
+ },
48862
+ {
48863
+ in: "query",
48864
+ name: "exclude",
48865
+ required: false,
48866
+ schema: {
48867
+ items: {
48868
+ enum: ["spaces", "devices", "acs_entrances"],
48869
+ type: "string"
48870
+ },
48871
+ type: "array"
48872
+ }
48873
+ }
48874
+ ],
48875
+ responses: {
48876
+ 200: {
48877
+ content: {
48878
+ "application/json": {
48879
+ schema: {
48880
+ properties: {
48881
+ batch: {
48882
+ description: "Represents a resource batch.",
48883
+ properties: {
48884
+ acs_entrances: {
48885
+ items: { $ref: "#/components/schemas/acs_entrance" },
48886
+ type: "array"
48887
+ },
48888
+ batch_type: { enum: ["spaces"], type: "string" },
48889
+ devices: {
48890
+ items: { $ref: "#/components/schemas/device" },
48891
+ type: "array"
48892
+ },
48893
+ spaces: {
48894
+ items: { $ref: "#/components/schemas/space" },
48895
+ type: "array"
48896
+ }
48897
+ },
48898
+ required: ["batch_type"],
48899
+ type: "object",
48900
+ "x-route-path": "/"
48901
+ },
48902
+ ok: { type: "boolean" }
48903
+ },
48904
+ required: ["batch", "ok"],
48905
+ type: "object"
48906
+ }
48907
+ }
48908
+ },
48909
+ description: "OK"
48910
+ },
48911
+ 400: { description: "Bad Request" },
48912
+ 401: { description: "Unauthorized" }
48913
+ },
48914
+ security: [
48915
+ { pat_with_workspace: [] },
48916
+ { console_session_with_workspace: [] },
48917
+ { api_key: [] }
48918
+ ],
48919
+ summary: "/spaces/get_related",
48920
+ tags: [],
48921
+ "x-batch-type": "spaces",
48922
+ "x-draft": "Early access.",
48923
+ "x-fern-sdk-group-name": ["spaces"],
48924
+ "x-fern-sdk-method-name": "get_related",
48925
+ "x-fern-sdk-return-value": "batch",
48926
+ "x-response-key": "batch",
48927
+ "x-title": "Get related Space resources"
48928
+ },
48929
+ post: {
48930
+ description: "Gets all related resources for one or more Spaces.",
48931
+ operationId: "spacesGetRelatedPost",
48932
+ requestBody: {
48933
+ content: {
48934
+ "application/json": {
48935
+ schema: {
48936
+ properties: {
48937
+ exclude: {
48938
+ items: {
48939
+ enum: ["spaces", "devices", "acs_entrances"],
48940
+ type: "string"
48941
+ },
48942
+ type: "array"
48943
+ },
48944
+ include: {
48945
+ items: {
48946
+ enum: ["spaces", "devices", "acs_entrances"],
48947
+ type: "string"
48948
+ },
48949
+ type: "array"
48950
+ },
48951
+ space_ids: {
48952
+ description: "IDs of the spaces that you want to get along with their related resources.",
48953
+ items: { format: "uuid", type: "string" },
48954
+ type: "array"
48955
+ }
48956
+ },
48957
+ required: ["space_ids"],
48958
+ type: "object"
48959
+ }
48960
+ }
48961
+ }
48962
+ },
48963
+ responses: {
48964
+ 200: {
48965
+ content: {
48966
+ "application/json": {
48967
+ schema: {
48968
+ properties: {
48969
+ batch: {
48970
+ description: "Represents a resource batch.",
48971
+ properties: {
48972
+ acs_entrances: {
48973
+ items: { $ref: "#/components/schemas/acs_entrance" },
48974
+ type: "array"
48975
+ },
48976
+ batch_type: { enum: ["spaces"], type: "string" },
48977
+ devices: {
48978
+ items: { $ref: "#/components/schemas/device" },
48979
+ type: "array"
48980
+ },
48981
+ spaces: {
48982
+ items: { $ref: "#/components/schemas/space" },
48983
+ type: "array"
48984
+ }
48985
+ },
48986
+ required: ["batch_type"],
48987
+ type: "object",
48988
+ "x-route-path": "/"
48989
+ },
48990
+ ok: { type: "boolean" }
48991
+ },
48992
+ required: ["batch", "ok"],
48993
+ type: "object"
48994
+ }
48995
+ }
48996
+ },
48997
+ description: "OK"
48998
+ },
48999
+ 400: { description: "Bad Request" },
49000
+ 401: { description: "Unauthorized" }
49001
+ },
49002
+ security: [
49003
+ { pat_with_workspace: [] },
49004
+ { console_session_with_workspace: [] },
49005
+ { api_key: [] }
49006
+ ],
49007
+ summary: "/spaces/get_related",
49008
+ tags: [],
49009
+ "x-batch-type": "spaces",
49010
+ "x-draft": "Early access.",
49011
+ "x-fern-sdk-group-name": ["spaces"],
49012
+ "x-fern-sdk-method-name": "get_related",
49013
+ "x-fern-sdk-return-value": "batch",
49014
+ "x-response-key": "batch",
49015
+ "x-title": "Get related Space resources"
49016
+ }
49017
+ },
47893
49018
  "/spaces/list": {
47894
49019
  get: {
47895
49020
  description: "Returns a list of all spaces.",