@seamapi/types 1.696.0 → 1.697.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 +177 -9
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +324 -4
- package/dist/index.cjs +177 -9
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +104 -0
- package/lib/seam/connect/models/events/seam-event.d.ts +65 -1
- package/lib/seam/connect/models/events/spaces.d.ts +130 -0
- package/lib/seam/connect/models/events/spaces.js +41 -1
- package/lib/seam/connect/models/events/spaces.js.map +1 -1
- package/lib/seam/connect/openapi.js +138 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +156 -4
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/spaces.ts +47 -1
- package/src/lib/seam/connect/openapi.ts +144 -0
- package/src/lib/seam/connect/route-types.ts +168 -0
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
|
|
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
|
},
|
|
@@ -56954,7 +57114,9 @@ var openapi_default = {
|
|
|
56954
57114
|
"device.name_changed",
|
|
56955
57115
|
"enrollment_automation.deleted",
|
|
56956
57116
|
"phone.deactivated",
|
|
56957
|
-
"space.device_membership_changed"
|
|
57117
|
+
"space.device_membership_changed",
|
|
57118
|
+
"space.created",
|
|
57119
|
+
"space.deleted"
|
|
56958
57120
|
],
|
|
56959
57121
|
type: "string"
|
|
56960
57122
|
}
|
|
@@ -57059,7 +57221,9 @@ var openapi_default = {
|
|
|
57059
57221
|
"device.name_changed",
|
|
57060
57222
|
"enrollment_automation.deleted",
|
|
57061
57223
|
"phone.deactivated",
|
|
57062
|
-
"space.device_membership_changed"
|
|
57224
|
+
"space.device_membership_changed",
|
|
57225
|
+
"space.created",
|
|
57226
|
+
"space.deleted"
|
|
57063
57227
|
],
|
|
57064
57228
|
type: "string"
|
|
57065
57229
|
},
|
|
@@ -57225,7 +57389,9 @@ var openapi_default = {
|
|
|
57225
57389
|
"device.name_changed",
|
|
57226
57390
|
"enrollment_automation.deleted",
|
|
57227
57391
|
"phone.deactivated",
|
|
57228
|
-
"space.device_membership_changed"
|
|
57392
|
+
"space.device_membership_changed",
|
|
57393
|
+
"space.created",
|
|
57394
|
+
"space.deleted"
|
|
57229
57395
|
],
|
|
57230
57396
|
type: "string"
|
|
57231
57397
|
},
|
|
@@ -57325,7 +57491,9 @@ var openapi_default = {
|
|
|
57325
57491
|
"device.name_changed",
|
|
57326
57492
|
"enrollment_automation.deleted",
|
|
57327
57493
|
"phone.deactivated",
|
|
57328
|
-
"space.device_membership_changed"
|
|
57494
|
+
"space.device_membership_changed",
|
|
57495
|
+
"space.created",
|
|
57496
|
+
"space.deleted"
|
|
57329
57497
|
],
|
|
57330
57498
|
type: "string"
|
|
57331
57499
|
},
|