@seamapi/types 1.740.0 → 1.742.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1995,7 +1995,7 @@ var PROVIDER_CATEGORY_MAP = {
1995
1995
  "ultraloq",
1996
1996
  "dormakaba_oracode"
1997
1997
  ],
1998
- beta: ["korelock"],
1998
+ beta: ["korelock", "ring"],
1999
1999
  thermostats: ["ecobee", "nest", "sensi", "honeywell_resideo"],
2000
2000
  noise_sensors: ["minut", "noiseaware"],
2001
2001
  access_control_systems: [
@@ -5902,6 +5902,24 @@ var device_name_changed_event = device_event.extend({
5902
5902
  ---
5903
5903
  The name of a [device](https://docs.seam.co/latest/core-concepts/devices) was changed.
5904
5904
  `);
5905
+ var camera_activated_event = device_event.extend({
5906
+ event_type: zod.z.literal("camera.activated"),
5907
+ activation_reason: zod.z.enum(["motion_detected"]).describe("The reason the camera was activated."),
5908
+ motion_sub_type: zod.z.enum(["human", "vehicle", "package", "other"]).optional().describe("Sub-type of motion detected, if available.")
5909
+ }).describe(`
5910
+ ---
5911
+ route_path: /devices
5912
+ ---
5913
+ A [camera](https://docs.seam.co/latest/core-concepts/devices) was activated, for example, by motion detection.
5914
+ `);
5915
+ var device_doorbell_rang_event = device_event.extend({
5916
+ event_type: zod.z.literal("device.doorbell_rang")
5917
+ }).describe(`
5918
+ ---
5919
+ route_path: /devices
5920
+ ---
5921
+ A doorbell button was pressed on a [device](https://docs.seam.co/latest/core-concepts/devices).
5922
+ `);
5905
5923
  var device_events = [
5906
5924
  device_connected_event,
5907
5925
  device_added_event,
@@ -5935,7 +5953,9 @@ var device_events = [
5935
5953
  temperature_threshold_no_longer_exceeded_event,
5936
5954
  temperature_reached_set_point_event,
5937
5955
  temperature_changed_event,
5938
- device_name_changed_event
5956
+ device_name_changed_event,
5957
+ camera_activated_event,
5958
+ device_doorbell_rang_event
5939
5959
  ];
5940
5960
  var enrollment_automation_event = common_event.extend({
5941
5961
  enrollment_automation_id: zod.z.string().uuid().describe("ID of the affected enrollment automation.")
@@ -27262,6 +27282,147 @@ var openapi_default = {
27262
27282
  type: "object",
27263
27283
  "x-route-path": "/devices"
27264
27284
  },
27285
+ {
27286
+ description: "A [camera](https://docs.seam.co/latest/core-concepts/devices) was activated, for example, by motion detection.",
27287
+ properties: {
27288
+ activation_reason: {
27289
+ description: "The reason the camera was activated.",
27290
+ enum: ["motion_detected"],
27291
+ type: "string"
27292
+ },
27293
+ connected_account_custom_metadata: {
27294
+ additionalProperties: {
27295
+ oneOf: [{ type: "string" }, { type: "boolean" }]
27296
+ },
27297
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
27298
+ type: "object"
27299
+ },
27300
+ connected_account_id: {
27301
+ description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
27302
+ format: "uuid",
27303
+ type: "string"
27304
+ },
27305
+ created_at: {
27306
+ description: "Date and time at which the event was created.",
27307
+ format: "date-time",
27308
+ type: "string"
27309
+ },
27310
+ customer_key: {
27311
+ description: "The customer key associated with the device, if any.",
27312
+ type: "string"
27313
+ },
27314
+ device_custom_metadata: {
27315
+ additionalProperties: {
27316
+ oneOf: [{ type: "string" }, { type: "boolean" }]
27317
+ },
27318
+ description: "Custom metadata of the device, present when device_id is provided.",
27319
+ type: "object"
27320
+ },
27321
+ device_id: {
27322
+ description: "ID of the affected device.",
27323
+ format: "uuid",
27324
+ type: "string"
27325
+ },
27326
+ event_id: {
27327
+ description: "ID of the event.",
27328
+ format: "uuid",
27329
+ type: "string"
27330
+ },
27331
+ event_type: { enum: ["camera.activated"], type: "string" },
27332
+ motion_sub_type: {
27333
+ description: "Sub-type of motion detected, if available.",
27334
+ enum: ["human", "vehicle", "package", "other"],
27335
+ type: "string"
27336
+ },
27337
+ occurred_at: {
27338
+ description: "Date and time at which the event occurred.",
27339
+ format: "date-time",
27340
+ type: "string"
27341
+ },
27342
+ workspace_id: {
27343
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.",
27344
+ format: "uuid",
27345
+ type: "string"
27346
+ }
27347
+ },
27348
+ required: [
27349
+ "event_id",
27350
+ "workspace_id",
27351
+ "created_at",
27352
+ "occurred_at",
27353
+ "device_id",
27354
+ "connected_account_id",
27355
+ "event_type",
27356
+ "activation_reason"
27357
+ ],
27358
+ type: "object",
27359
+ "x-route-path": "/devices"
27360
+ },
27361
+ {
27362
+ description: "A doorbell button was pressed on a [device](https://docs.seam.co/latest/core-concepts/devices).",
27363
+ properties: {
27364
+ connected_account_custom_metadata: {
27365
+ additionalProperties: {
27366
+ oneOf: [{ type: "string" }, { type: "boolean" }]
27367
+ },
27368
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
27369
+ type: "object"
27370
+ },
27371
+ connected_account_id: {
27372
+ description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the event.",
27373
+ format: "uuid",
27374
+ type: "string"
27375
+ },
27376
+ created_at: {
27377
+ description: "Date and time at which the event was created.",
27378
+ format: "date-time",
27379
+ type: "string"
27380
+ },
27381
+ customer_key: {
27382
+ description: "The customer key associated with the device, if any.",
27383
+ type: "string"
27384
+ },
27385
+ device_custom_metadata: {
27386
+ additionalProperties: {
27387
+ oneOf: [{ type: "string" }, { type: "boolean" }]
27388
+ },
27389
+ description: "Custom metadata of the device, present when device_id is provided.",
27390
+ type: "object"
27391
+ },
27392
+ device_id: {
27393
+ description: "ID of the affected device.",
27394
+ format: "uuid",
27395
+ type: "string"
27396
+ },
27397
+ event_id: {
27398
+ description: "ID of the event.",
27399
+ format: "uuid",
27400
+ type: "string"
27401
+ },
27402
+ event_type: { enum: ["device.doorbell_rang"], type: "string" },
27403
+ occurred_at: {
27404
+ description: "Date and time at which the event occurred.",
27405
+ format: "date-time",
27406
+ type: "string"
27407
+ },
27408
+ workspace_id: {
27409
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.",
27410
+ format: "uuid",
27411
+ type: "string"
27412
+ }
27413
+ },
27414
+ required: [
27415
+ "event_id",
27416
+ "workspace_id",
27417
+ "created_at",
27418
+ "occurred_at",
27419
+ "device_id",
27420
+ "connected_account_id",
27421
+ "event_type"
27422
+ ],
27423
+ type: "object",
27424
+ "x-route-path": "/devices"
27425
+ },
27265
27426
  {
27266
27427
  description: "An [enrollment automation](https://docs.seam.co/latest/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) was deleted.",
27267
27428
  properties: {
@@ -56589,6 +56750,8 @@ var openapi_default = {
56589
56750
  "thermostat.temperature_reached_set_point",
56590
56751
  "thermostat.temperature_changed",
56591
56752
  "device.name_changed",
56753
+ "camera.activated",
56754
+ "device.doorbell_rang",
56592
56755
  "enrollment_automation.deleted",
56593
56756
  "phone.deactivated",
56594
56757
  "space.device_membership_changed",
@@ -56701,6 +56864,8 @@ var openapi_default = {
56701
56864
  "thermostat.temperature_reached_set_point",
56702
56865
  "thermostat.temperature_changed",
56703
56866
  "device.name_changed",
56867
+ "camera.activated",
56868
+ "device.doorbell_rang",
56704
56869
  "enrollment_automation.deleted",
56705
56870
  "phone.deactivated",
56706
56871
  "space.device_membership_changed",
@@ -57113,6 +57278,8 @@ var openapi_default = {
57113
57278
  "thermostat.temperature_reached_set_point",
57114
57279
  "thermostat.temperature_changed",
57115
57280
  "device.name_changed",
57281
+ "camera.activated",
57282
+ "device.doorbell_rang",
57116
57283
  "enrollment_automation.deleted",
57117
57284
  "phone.deactivated",
57118
57285
  "space.device_membership_changed",
@@ -57221,6 +57388,8 @@ var openapi_default = {
57221
57388
  "thermostat.temperature_reached_set_point",
57222
57389
  "thermostat.temperature_changed",
57223
57390
  "device.name_changed",
57391
+ "camera.activated",
57392
+ "device.doorbell_rang",
57224
57393
  "enrollment_automation.deleted",
57225
57394
  "phone.deactivated",
57226
57395
  "space.device_membership_changed",
@@ -66072,6 +66241,8 @@ var openapi_default = {
66072
66241
  "thermostat.temperature_reached_set_point",
66073
66242
  "thermostat.temperature_changed",
66074
66243
  "device.name_changed",
66244
+ "camera.activated",
66245
+ "device.doorbell_rang",
66075
66246
  "enrollment_automation.deleted",
66076
66247
  "phone.deactivated",
66077
66248
  "space.device_membership_changed",
@@ -66185,6 +66356,8 @@ var openapi_default = {
66185
66356
  "thermostat.temperature_reached_set_point",
66186
66357
  "thermostat.temperature_changed",
66187
66358
  "device.name_changed",
66359
+ "camera.activated",
66360
+ "device.doorbell_rang",
66188
66361
  "enrollment_automation.deleted",
66189
66362
  "phone.deactivated",
66190
66363
  "space.device_membership_changed",
@@ -66359,6 +66532,8 @@ var openapi_default = {
66359
66532
  "thermostat.temperature_reached_set_point",
66360
66533
  "thermostat.temperature_changed",
66361
66534
  "device.name_changed",
66535
+ "camera.activated",
66536
+ "device.doorbell_rang",
66362
66537
  "enrollment_automation.deleted",
66363
66538
  "phone.deactivated",
66364
66539
  "space.device_membership_changed",
@@ -66467,6 +66642,8 @@ var openapi_default = {
66467
66642
  "thermostat.temperature_reached_set_point",
66468
66643
  "thermostat.temperature_changed",
66469
66644
  "device.name_changed",
66645
+ "camera.activated",
66646
+ "device.doorbell_rang",
66470
66647
  "enrollment_automation.deleted",
66471
66648
  "phone.deactivated",
66472
66649
  "space.device_membership_changed",