@seamapi/types 1.621.0 → 1.622.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/connect.cjs CHANGED
@@ -5298,6 +5298,21 @@ var phone_deactivated_event = phone_event.extend({
5298
5298
  A phone device was deactivated.
5299
5299
  `);
5300
5300
  var phone_events = [phone_deactivated_event];
5301
+ var space_event = common_event.extend({
5302
+ space_id: zod.z.string().uuid().describe("ID of the affected space.")
5303
+ });
5304
+ var space_device_membership_changed_event = space_event.extend({
5305
+ event_type: zod.z.literal("space.device_membership_changed").describe("Type of the event."),
5306
+ space_key: zod.z.string().optional().describe("Unique key for the space within the workspace."),
5307
+ device_ids: zod.z.array(zod.z.string().uuid()).describe("IDs of all devices currently attached to the space."),
5308
+ acs_entrance_ids: zod.z.array(zod.z.string().uuid()).describe("IDs of all ACS entrances currently attached to the space.")
5309
+ }).describe(`
5310
+ ---
5311
+ route_path: /spaces
5312
+ ---
5313
+ A device was added or removed from a space.
5314
+ `);
5315
+ var space_events = [space_device_membership_changed_event];
5301
5316
 
5302
5317
  // src/lib/seam/connect/models/events/seam-event.ts
5303
5318
  var seam_event = zod.z.discriminatedUnion("event_type", [
@@ -5311,7 +5326,8 @@ var seam_event = zod.z.discriminatedUnion("event_type", [
5311
5326
  ...connect_webview_events,
5312
5327
  ...device_events,
5313
5328
  ...enrollment_automation_events,
5314
- ...phone_events
5329
+ ...phone_events,
5330
+ ...space_events
5315
5331
  ]).describe(`
5316
5332
  ---
5317
5333
  route_path: /events
@@ -23385,6 +23401,67 @@ var openapi_default = {
23385
23401
  ],
23386
23402
  type: "object",
23387
23403
  "x-route-path": "/phones"
23404
+ },
23405
+ {
23406
+ description: "A device was added or removed from a space.",
23407
+ properties: {
23408
+ acs_entrance_ids: {
23409
+ description: "IDs of all ACS entrances currently attached to the space.",
23410
+ items: { format: "uuid", type: "string" },
23411
+ type: "array"
23412
+ },
23413
+ created_at: {
23414
+ description: "Date and time at which the event was created.",
23415
+ format: "date-time",
23416
+ type: "string"
23417
+ },
23418
+ device_ids: {
23419
+ description: "IDs of all devices currently attached to the space.",
23420
+ items: { format: "uuid", type: "string" },
23421
+ type: "array"
23422
+ },
23423
+ event_id: {
23424
+ description: "ID of the event.",
23425
+ format: "uuid",
23426
+ type: "string"
23427
+ },
23428
+ event_type: {
23429
+ description: "Type of the event.",
23430
+ enum: ["space.device_membership_changed"],
23431
+ type: "string"
23432
+ },
23433
+ occurred_at: {
23434
+ description: "Date and time at which the event occurred.",
23435
+ format: "date-time",
23436
+ type: "string"
23437
+ },
23438
+ space_id: {
23439
+ description: "ID of the affected space.",
23440
+ format: "uuid",
23441
+ type: "string"
23442
+ },
23443
+ space_key: {
23444
+ description: "Unique key for the space within the workspace.",
23445
+ type: "string"
23446
+ },
23447
+ workspace_id: {
23448
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.",
23449
+ format: "uuid",
23450
+ type: "string"
23451
+ }
23452
+ },
23453
+ required: [
23454
+ "event_id",
23455
+ "workspace_id",
23456
+ "created_at",
23457
+ "occurred_at",
23458
+ "space_id",
23459
+ "event_type",
23460
+ "device_ids",
23461
+ "acs_entrance_ids"
23462
+ ],
23463
+ type: "object",
23464
+ "x-route-path": "/spaces"
23388
23465
  }
23389
23466
  ],
23390
23467
  "x-route-path": "/events"
@@ -44466,6 +44543,15 @@ var openapi_default = {
44466
44543
  items: { type: "string" },
44467
44544
  type: "array"
44468
44545
  }
44546
+ },
44547
+ {
44548
+ in: "query",
44549
+ name: "staff_member_keys",
44550
+ schema: {
44551
+ description: "List of staff member keys to delete.",
44552
+ items: { type: "string" },
44553
+ type: "array"
44554
+ }
44469
44555
  }
44470
44556
  ],
44471
44557
  responses: {
@@ -44574,6 +44660,11 @@ var openapi_default = {
44574
44660
  items: { type: "string" },
44575
44661
  type: "array"
44576
44662
  },
44663
+ staff_member_keys: {
44664
+ description: "List of staff member keys to delete.",
44665
+ items: { type: "string" },
44666
+ type: "array"
44667
+ },
44577
44668
  tenant_keys: {
44578
44669
  description: "List of tenant keys to delete.",
44579
44670
  items: { type: "string" },
@@ -48297,7 +48388,8 @@ var openapi_default = {
48297
48388
  "thermostat.temperature_changed",
48298
48389
  "device.name_changed",
48299
48390
  "enrollment_automation.deleted",
48300
- "phone.deactivated"
48391
+ "phone.deactivated",
48392
+ "space.device_membership_changed"
48301
48393
  ],
48302
48394
  type: "string"
48303
48395
  }
@@ -48400,7 +48492,8 @@ var openapi_default = {
48400
48492
  "thermostat.temperature_changed",
48401
48493
  "device.name_changed",
48402
48494
  "enrollment_automation.deleted",
48403
- "phone.deactivated"
48495
+ "phone.deactivated",
48496
+ "space.device_membership_changed"
48404
48497
  ],
48405
48498
  type: "string"
48406
48499
  },
@@ -48645,7 +48738,8 @@ var openapi_default = {
48645
48738
  "thermostat.temperature_changed",
48646
48739
  "device.name_changed",
48647
48740
  "enrollment_automation.deleted",
48648
- "phone.deactivated"
48741
+ "phone.deactivated",
48742
+ "space.device_membership_changed"
48649
48743
  ],
48650
48744
  type: "string"
48651
48745
  },
@@ -48744,7 +48838,8 @@ var openapi_default = {
48744
48838
  "thermostat.temperature_changed",
48745
48839
  "device.name_changed",
48746
48840
  "enrollment_automation.deleted",
48747
- "phone.deactivated"
48841
+ "phone.deactivated",
48842
+ "space.device_membership_changed"
48748
48843
  ],
48749
48844
  type: "string"
48750
48845
  },
@@ -54358,7 +54453,8 @@ var openapi_default = {
54358
54453
  "thermostat.temperature_changed",
54359
54454
  "device.name_changed",
54360
54455
  "enrollment_automation.deleted",
54361
- "phone.deactivated"
54456
+ "phone.deactivated",
54457
+ "space.device_membership_changed"
54362
54458
  ],
54363
54459
  type: "string"
54364
54460
  }
@@ -54462,7 +54558,8 @@ var openapi_default = {
54462
54558
  "thermostat.temperature_changed",
54463
54559
  "device.name_changed",
54464
54560
  "enrollment_automation.deleted",
54465
- "phone.deactivated"
54561
+ "phone.deactivated",
54562
+ "space.device_membership_changed"
54466
54563
  ],
54467
54564
  type: "string"
54468
54565
  },
@@ -54627,7 +54724,8 @@ var openapi_default = {
54627
54724
  "thermostat.temperature_changed",
54628
54725
  "device.name_changed",
54629
54726
  "enrollment_automation.deleted",
54630
- "phone.deactivated"
54727
+ "phone.deactivated",
54728
+ "space.device_membership_changed"
54631
54729
  ],
54632
54730
  type: "string"
54633
54731
  },
@@ -54726,7 +54824,8 @@ var openapi_default = {
54726
54824
  "thermostat.temperature_changed",
54727
54825
  "device.name_changed",
54728
54826
  "enrollment_automation.deleted",
54729
- "phone.deactivated"
54827
+ "phone.deactivated",
54828
+ "space.device_membership_changed"
54730
54829
  ],
54731
54830
  type: "string"
54732
54831
  },