@seamapi/types 1.620.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
  },
@@ -53280,6 +53375,32 @@ var openapi_default = {
53280
53375
  required: ["rule"],
53281
53376
  type: "object"
53282
53377
  },
53378
+ staff_member_created: {
53379
+ properties: {
53380
+ config: {
53381
+ $ref: "#/components/schemas/access_code"
53382
+ },
53383
+ rule: {
53384
+ enum: ["staff_member_created"],
53385
+ type: "string"
53386
+ }
53387
+ },
53388
+ required: ["rule", "config"],
53389
+ type: "object"
53390
+ },
53391
+ staff_member_name_updated: {
53392
+ properties: {
53393
+ config: {
53394
+ $ref: "#/components/schemas/access_code"
53395
+ },
53396
+ rule: {
53397
+ enum: ["staff_member_name_updated"],
53398
+ type: "string"
53399
+ }
53400
+ },
53401
+ required: ["rule"],
53402
+ type: "object"
53403
+ },
53283
53404
  user_identity_name_updated: {
53284
53405
  properties: {
53285
53406
  config: {
@@ -53469,6 +53590,32 @@ var openapi_default = {
53469
53590
  required: ["rule"],
53470
53591
  type: "object"
53471
53592
  },
53593
+ staff_member_created: {
53594
+ properties: {
53595
+ config: {
53596
+ $ref: "#/components/schemas/access_code"
53597
+ },
53598
+ rule: {
53599
+ enum: ["staff_member_created"],
53600
+ type: "string"
53601
+ }
53602
+ },
53603
+ required: ["rule", "config"],
53604
+ type: "object"
53605
+ },
53606
+ staff_member_name_updated: {
53607
+ properties: {
53608
+ config: {
53609
+ $ref: "#/components/schemas/access_code"
53610
+ },
53611
+ rule: {
53612
+ enum: ["staff_member_name_updated"],
53613
+ type: "string"
53614
+ }
53615
+ },
53616
+ required: ["rule"],
53617
+ type: "object"
53618
+ },
53472
53619
  user_identity_name_updated: {
53473
53620
  properties: {
53474
53621
  config: {
@@ -53654,6 +53801,28 @@ var openapi_default = {
53654
53801
  required: ["rule"],
53655
53802
  type: "object"
53656
53803
  },
53804
+ staff_member_created: {
53805
+ properties: {
53806
+ config: { properties: {}, type: "object" },
53807
+ rule: {
53808
+ enum: ["staff_member_created"],
53809
+ type: "string"
53810
+ }
53811
+ },
53812
+ required: ["rule", "config"],
53813
+ type: "object"
53814
+ },
53815
+ staff_member_name_updated: {
53816
+ properties: {
53817
+ config: { properties: {}, type: "object" },
53818
+ rule: {
53819
+ enum: ["staff_member_name_updated"],
53820
+ type: "string"
53821
+ }
53822
+ },
53823
+ required: ["rule"],
53824
+ type: "object"
53825
+ },
53657
53826
  user_identity_name_updated: {
53658
53827
  properties: {
53659
53828
  config: { properties: {}, type: "object" },
@@ -53845,6 +54014,28 @@ var openapi_default = {
53845
54014
  required: ["rule"],
53846
54015
  type: "object"
53847
54016
  },
54017
+ staff_member_created: {
54018
+ properties: {
54019
+ config: { properties: {}, type: "object" },
54020
+ rule: {
54021
+ enum: ["staff_member_created"],
54022
+ type: "string"
54023
+ }
54024
+ },
54025
+ required: ["rule", "config"],
54026
+ type: "object"
54027
+ },
54028
+ staff_member_name_updated: {
54029
+ properties: {
54030
+ config: { properties: {}, type: "object" },
54031
+ rule: {
54032
+ enum: ["staff_member_name_updated"],
54033
+ type: "string"
54034
+ }
54035
+ },
54036
+ required: ["rule"],
54037
+ type: "object"
54038
+ },
53848
54039
  user_identity_name_updated: {
53849
54040
  properties: {
53850
54041
  config: { properties: {}, type: "object" },
@@ -54262,7 +54453,8 @@ var openapi_default = {
54262
54453
  "thermostat.temperature_changed",
54263
54454
  "device.name_changed",
54264
54455
  "enrollment_automation.deleted",
54265
- "phone.deactivated"
54456
+ "phone.deactivated",
54457
+ "space.device_membership_changed"
54266
54458
  ],
54267
54459
  type: "string"
54268
54460
  }
@@ -54366,7 +54558,8 @@ var openapi_default = {
54366
54558
  "thermostat.temperature_changed",
54367
54559
  "device.name_changed",
54368
54560
  "enrollment_automation.deleted",
54369
- "phone.deactivated"
54561
+ "phone.deactivated",
54562
+ "space.device_membership_changed"
54370
54563
  ],
54371
54564
  type: "string"
54372
54565
  },
@@ -54531,7 +54724,8 @@ var openapi_default = {
54531
54724
  "thermostat.temperature_changed",
54532
54725
  "device.name_changed",
54533
54726
  "enrollment_automation.deleted",
54534
- "phone.deactivated"
54727
+ "phone.deactivated",
54728
+ "space.device_membership_changed"
54535
54729
  ],
54536
54730
  type: "string"
54537
54731
  },
@@ -54630,7 +54824,8 @@ var openapi_default = {
54630
54824
  "thermostat.temperature_changed",
54631
54825
  "device.name_changed",
54632
54826
  "enrollment_automation.deleted",
54633
- "phone.deactivated"
54827
+ "phone.deactivated",
54828
+ "space.device_membership_changed"
54634
54829
  ],
54635
54830
  type: "string"
54636
54831
  },