@seamapi/types 1.696.0 → 1.698.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
@@ -5450,7 +5450,37 @@ var space_device_membership_changed_event = space_event.extend({
5450
5450
  ---
5451
5451
  A device was added or removed from a space.
5452
5452
  `);
5453
- var space_events = [space_device_membership_changed_event];
5453
+ var space_created_event = space_event.extend({
5454
+ event_type: zod.z.literal("space.created").describe("Type of the event."),
5455
+ space_key: zod.z.string().optional().describe("Unique key for the space within the workspace."),
5456
+ device_ids: zod.z.array(zod.z.string().uuid()).describe("IDs of all devices attached to the space when it was created."),
5457
+ acs_entrance_ids: zod.z.array(zod.z.string().uuid()).describe(
5458
+ "IDs of all ACS entrances attached to the space when it was created."
5459
+ )
5460
+ }).describe(`
5461
+ ---
5462
+ route_path: /spaces
5463
+ ---
5464
+ A space was created.
5465
+ `);
5466
+ var space_deleted_event = space_event.extend({
5467
+ event_type: zod.z.literal("space.deleted").describe("Type of the event."),
5468
+ space_key: zod.z.string().optional().describe("Unique key for the space within the workspace."),
5469
+ device_ids: zod.z.array(zod.z.string().uuid()).describe("IDs of all devices attached to the space when it was deleted."),
5470
+ acs_entrance_ids: zod.z.array(zod.z.string().uuid()).describe(
5471
+ "IDs of all ACS entrances currently attached to the space when it was deleted."
5472
+ )
5473
+ }).describe(`
5474
+ ---
5475
+ route_path: /spaces
5476
+ ---
5477
+ A space was deleted.
5478
+ `);
5479
+ var space_events = [
5480
+ space_device_membership_changed_event,
5481
+ space_created_event,
5482
+ space_deleted_event
5483
+ ];
5454
5484
 
5455
5485
  // src/lib/seam/connect/models/events/seam-event.ts
5456
5486
  var seam_event = zod.z.discriminatedUnion("event_type", [
@@ -23907,6 +23937,128 @@ var openapi_default = {
23907
23937
  ],
23908
23938
  type: "object",
23909
23939
  "x-route-path": "/spaces"
23940
+ },
23941
+ {
23942
+ description: "A space was created.",
23943
+ properties: {
23944
+ acs_entrance_ids: {
23945
+ description: "IDs of all ACS entrances attached to the space when it was created.",
23946
+ items: { format: "uuid", type: "string" },
23947
+ type: "array"
23948
+ },
23949
+ created_at: {
23950
+ description: "Date and time at which the event was created.",
23951
+ format: "date-time",
23952
+ type: "string"
23953
+ },
23954
+ device_ids: {
23955
+ description: "IDs of all devices attached to the space when it was created.",
23956
+ items: { format: "uuid", type: "string" },
23957
+ type: "array"
23958
+ },
23959
+ event_id: {
23960
+ description: "ID of the event.",
23961
+ format: "uuid",
23962
+ type: "string"
23963
+ },
23964
+ event_type: {
23965
+ description: "Type of the event.",
23966
+ enum: ["space.created"],
23967
+ type: "string"
23968
+ },
23969
+ occurred_at: {
23970
+ description: "Date and time at which the event occurred.",
23971
+ format: "date-time",
23972
+ type: "string"
23973
+ },
23974
+ space_id: {
23975
+ description: "ID of the affected space.",
23976
+ format: "uuid",
23977
+ type: "string"
23978
+ },
23979
+ space_key: {
23980
+ description: "Unique key for the space within the workspace.",
23981
+ type: "string"
23982
+ },
23983
+ workspace_id: {
23984
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.",
23985
+ format: "uuid",
23986
+ type: "string"
23987
+ }
23988
+ },
23989
+ required: [
23990
+ "event_id",
23991
+ "workspace_id",
23992
+ "created_at",
23993
+ "occurred_at",
23994
+ "space_id",
23995
+ "event_type",
23996
+ "device_ids",
23997
+ "acs_entrance_ids"
23998
+ ],
23999
+ type: "object",
24000
+ "x-route-path": "/spaces"
24001
+ },
24002
+ {
24003
+ description: "A space was deleted.",
24004
+ properties: {
24005
+ acs_entrance_ids: {
24006
+ description: "IDs of all ACS entrances currently attached to the space when it was deleted.",
24007
+ items: { format: "uuid", type: "string" },
24008
+ type: "array"
24009
+ },
24010
+ created_at: {
24011
+ description: "Date and time at which the event was created.",
24012
+ format: "date-time",
24013
+ type: "string"
24014
+ },
24015
+ device_ids: {
24016
+ description: "IDs of all devices attached to the space when it was deleted.",
24017
+ items: { format: "uuid", type: "string" },
24018
+ type: "array"
24019
+ },
24020
+ event_id: {
24021
+ description: "ID of the event.",
24022
+ format: "uuid",
24023
+ type: "string"
24024
+ },
24025
+ event_type: {
24026
+ description: "Type of the event.",
24027
+ enum: ["space.deleted"],
24028
+ type: "string"
24029
+ },
24030
+ occurred_at: {
24031
+ description: "Date and time at which the event occurred.",
24032
+ format: "date-time",
24033
+ type: "string"
24034
+ },
24035
+ space_id: {
24036
+ description: "ID of the affected space.",
24037
+ format: "uuid",
24038
+ type: "string"
24039
+ },
24040
+ space_key: {
24041
+ description: "Unique key for the space within the workspace.",
24042
+ type: "string"
24043
+ },
24044
+ workspace_id: {
24045
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.",
24046
+ format: "uuid",
24047
+ type: "string"
24048
+ }
24049
+ },
24050
+ required: [
24051
+ "event_id",
24052
+ "workspace_id",
24053
+ "created_at",
24054
+ "occurred_at",
24055
+ "space_id",
24056
+ "event_type",
24057
+ "device_ids",
24058
+ "acs_entrance_ids"
24059
+ ],
24060
+ type: "object",
24061
+ "x-route-path": "/spaces"
23910
24062
  }
23911
24063
  ],
23912
24064
  "x-route-path": "/events"
@@ -49687,7 +49839,9 @@ var openapi_default = {
49687
49839
  "device.name_changed",
49688
49840
  "enrollment_automation.deleted",
49689
49841
  "phone.deactivated",
49690
- "space.device_membership_changed"
49842
+ "space.device_membership_changed",
49843
+ "space.created",
49844
+ "space.deleted"
49691
49845
  ],
49692
49846
  type: "string"
49693
49847
  }
@@ -49791,7 +49945,9 @@ var openapi_default = {
49791
49945
  "device.name_changed",
49792
49946
  "enrollment_automation.deleted",
49793
49947
  "phone.deactivated",
49794
- "space.device_membership_changed"
49948
+ "space.device_membership_changed",
49949
+ "space.created",
49950
+ "space.deleted"
49795
49951
  ],
49796
49952
  type: "string"
49797
49953
  },
@@ -50074,7 +50230,9 @@ var openapi_default = {
50074
50230
  "device.name_changed",
50075
50231
  "enrollment_automation.deleted",
50076
50232
  "phone.deactivated",
50077
- "space.device_membership_changed"
50233
+ "space.device_membership_changed",
50234
+ "space.created",
50235
+ "space.deleted"
50078
50236
  ],
50079
50237
  type: "string"
50080
50238
  },
@@ -50174,7 +50332,9 @@ var openapi_default = {
50174
50332
  "device.name_changed",
50175
50333
  "enrollment_automation.deleted",
50176
50334
  "phone.deactivated",
50177
- "space.device_membership_changed"
50335
+ "space.device_membership_changed",
50336
+ "space.created",
50337
+ "space.deleted"
50178
50338
  ],
50179
50339
  type: "string"
50180
50340
  },
@@ -56546,6 +56706,37 @@ var openapi_default = {
56546
56706
  },
56547
56707
  required: ["api_key"],
56548
56708
  type: "object"
56709
+ },
56710
+ {
56711
+ properties: {
56712
+ api_key: {
56713
+ description: "Zonal API key for X-API-Key header (required)",
56714
+ minLength: 1,
56715
+ type: "string"
56716
+ },
56717
+ auth_token: { type: "string" },
56718
+ hotel_id: {
56719
+ description: "Optional hotel ID for single-property mode",
56720
+ type: "string"
56721
+ },
56722
+ id: {
56723
+ description: "Zonal ID used as 'token' in login request body (required)",
56724
+ minLength: 1,
56725
+ type: "string"
56726
+ },
56727
+ is_staging: {
56728
+ default: false,
56729
+ description: "Use staging API instead of production",
56730
+ type: "boolean"
56731
+ },
56732
+ secret: {
56733
+ description: "Zonal Secret for login request body (required)",
56734
+ minLength: 1,
56735
+ type: "string"
56736
+ }
56737
+ },
56738
+ required: ["api_key", "id", "secret"],
56739
+ type: "object"
56549
56740
  }
56550
56741
  ]
56551
56742
  },
@@ -56954,7 +57145,9 @@ var openapi_default = {
56954
57145
  "device.name_changed",
56955
57146
  "enrollment_automation.deleted",
56956
57147
  "phone.deactivated",
56957
- "space.device_membership_changed"
57148
+ "space.device_membership_changed",
57149
+ "space.created",
57150
+ "space.deleted"
56958
57151
  ],
56959
57152
  type: "string"
56960
57153
  }
@@ -57059,7 +57252,9 @@ var openapi_default = {
57059
57252
  "device.name_changed",
57060
57253
  "enrollment_automation.deleted",
57061
57254
  "phone.deactivated",
57062
- "space.device_membership_changed"
57255
+ "space.device_membership_changed",
57256
+ "space.created",
57257
+ "space.deleted"
57063
57258
  ],
57064
57259
  type: "string"
57065
57260
  },
@@ -57225,7 +57420,9 @@ var openapi_default = {
57225
57420
  "device.name_changed",
57226
57421
  "enrollment_automation.deleted",
57227
57422
  "phone.deactivated",
57228
- "space.device_membership_changed"
57423
+ "space.device_membership_changed",
57424
+ "space.created",
57425
+ "space.deleted"
57229
57426
  ],
57230
57427
  type: "string"
57231
57428
  },
@@ -57325,7 +57522,9 @@ var openapi_default = {
57325
57522
  "device.name_changed",
57326
57523
  "enrollment_automation.deleted",
57327
57524
  "phone.deactivated",
57328
- "space.device_membership_changed"
57525
+ "space.device_membership_changed",
57526
+ "space.created",
57527
+ "space.deleted"
57329
57528
  ],
57330
57529
  type: "string"
57331
57530
  },