@seamapi/types 1.621.0 → 1.623.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 +114 -61
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +497 -91
- package/dist/index.cjs +114 -61
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +104 -0
- package/lib/seam/connect/models/customer/customer-delete-data.d.ts +3 -0
- package/lib/seam/connect/models/customer/customer-delete-data.js +4 -0
- package/lib/seam/connect/models/customer/customer-delete-data.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +33 -1
- package/lib/seam/connect/models/events/seam-event.js +2 -0
- package/lib/seam/connect/models/events/seam-event.js.map +1 -1
- package/lib/seam/connect/models/events/spaces.d.ts +68 -0
- package/lib/seam/connect/models/events/spaces.js +27 -0
- package/lib/seam/connect/models/events/spaces.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +308 -71
- package/lib/seam/connect/openapi.js +89 -52
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +105 -20
- package/package.json +1 -1
- package/src/lib/seam/connect/models/customer/customer-delete-data.ts +4 -0
- package/src/lib/seam/connect/models/events/seam-event.ts +2 -0
- package/src/lib/seam/connect/models/events/spaces.ts +34 -0
- package/src/lib/seam/connect/openapi.ts +92 -55
- package/src/lib/seam/connect/route-types.ts +110 -16
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
|
},
|
|
@@ -54069,14 +54164,18 @@ var openapi_default = {
|
|
|
54069
54164
|
{
|
|
54070
54165
|
properties: {
|
|
54071
54166
|
access_token: { minLength: 1, type: "string" },
|
|
54072
|
-
client: {
|
|
54167
|
+
client: {
|
|
54168
|
+
default: "seam",
|
|
54169
|
+
minLength: 1,
|
|
54170
|
+
type: "string"
|
|
54171
|
+
},
|
|
54073
54172
|
client_token: { minLength: 1, type: "string" },
|
|
54173
|
+
enterprise_id: { format: "uuid", type: "string" },
|
|
54074
54174
|
enterprise_ids: {
|
|
54075
54175
|
items: { format: "uuid", type: "string" },
|
|
54076
54176
|
type: "array"
|
|
54077
54177
|
}
|
|
54078
54178
|
},
|
|
54079
|
-
required: ["client_token", "access_token", "client"],
|
|
54080
54179
|
type: "object"
|
|
54081
54180
|
},
|
|
54082
54181
|
{ properties: {}, type: "object" }
|
|
@@ -54358,7 +54457,8 @@ var openapi_default = {
|
|
|
54358
54457
|
"thermostat.temperature_changed",
|
|
54359
54458
|
"device.name_changed",
|
|
54360
54459
|
"enrollment_automation.deleted",
|
|
54361
|
-
"phone.deactivated"
|
|
54460
|
+
"phone.deactivated",
|
|
54461
|
+
"space.device_membership_changed"
|
|
54362
54462
|
],
|
|
54363
54463
|
type: "string"
|
|
54364
54464
|
}
|
|
@@ -54462,7 +54562,8 @@ var openapi_default = {
|
|
|
54462
54562
|
"thermostat.temperature_changed",
|
|
54463
54563
|
"device.name_changed",
|
|
54464
54564
|
"enrollment_automation.deleted",
|
|
54465
|
-
"phone.deactivated"
|
|
54565
|
+
"phone.deactivated",
|
|
54566
|
+
"space.device_membership_changed"
|
|
54466
54567
|
],
|
|
54467
54568
|
type: "string"
|
|
54468
54569
|
},
|
|
@@ -54627,7 +54728,8 @@ var openapi_default = {
|
|
|
54627
54728
|
"thermostat.temperature_changed",
|
|
54628
54729
|
"device.name_changed",
|
|
54629
54730
|
"enrollment_automation.deleted",
|
|
54630
|
-
"phone.deactivated"
|
|
54731
|
+
"phone.deactivated",
|
|
54732
|
+
"space.device_membership_changed"
|
|
54631
54733
|
],
|
|
54632
54734
|
type: "string"
|
|
54633
54735
|
},
|
|
@@ -54726,7 +54828,8 @@ var openapi_default = {
|
|
|
54726
54828
|
"thermostat.temperature_changed",
|
|
54727
54829
|
"device.name_changed",
|
|
54728
54830
|
"enrollment_automation.deleted",
|
|
54729
|
-
"phone.deactivated"
|
|
54831
|
+
"phone.deactivated",
|
|
54832
|
+
"space.device_membership_changed"
|
|
54730
54833
|
],
|
|
54731
54834
|
type: "string"
|
|
54732
54835
|
},
|
|
@@ -56462,56 +56565,6 @@ var openapi_default = {
|
|
|
56462
56565
|
"x-undocumented": "Internal endpoint for customer portals."
|
|
56463
56566
|
}
|
|
56464
56567
|
},
|
|
56465
|
-
"/seam/customer/v1/webhooks/connectors/[workspace_id]/[connector_id]": {
|
|
56466
|
-
post: {
|
|
56467
|
-
description: "Receives webhook events from external connector APIs and processes them into partner resources.",
|
|
56468
|
-
operationId: "seamCustomerV1WebhooksConnectorsByWorkspaceIdByConnectorIdPost",
|
|
56469
|
-
requestBody: {
|
|
56470
|
-
content: {
|
|
56471
|
-
"application/json": { schema: { properties: {}, type: "object" } }
|
|
56472
|
-
}
|
|
56473
|
-
},
|
|
56474
|
-
responses: {
|
|
56475
|
-
200: {
|
|
56476
|
-
content: {
|
|
56477
|
-
"application/json": {
|
|
56478
|
-
schema: {
|
|
56479
|
-
properties: {
|
|
56480
|
-
error: { type: "string" },
|
|
56481
|
-
ok: { type: "boolean" },
|
|
56482
|
-
processed_events: { format: "float", type: "number" },
|
|
56483
|
-
success: { type: "boolean" }
|
|
56484
|
-
},
|
|
56485
|
-
required: ["success", "processed_events", "ok"],
|
|
56486
|
-
type: "object"
|
|
56487
|
-
}
|
|
56488
|
-
}
|
|
56489
|
-
},
|
|
56490
|
-
description: "OK"
|
|
56491
|
-
},
|
|
56492
|
-
400: { description: "Bad Request" },
|
|
56493
|
-
401: { description: "Unauthorized" }
|
|
56494
|
-
},
|
|
56495
|
-
security: [
|
|
56496
|
-
{ pat_with_workspace: [] },
|
|
56497
|
-
{ console_session_with_workspace: [] },
|
|
56498
|
-
{ api_key: [] }
|
|
56499
|
-
],
|
|
56500
|
-
summary: "/seam/customer/v1/webhooks/connectors/[workspace_id]/[connector_id]",
|
|
56501
|
-
tags: ["/webhooks"],
|
|
56502
|
-
"x-fern-sdk-group-name": [
|
|
56503
|
-
"seam",
|
|
56504
|
-
"customer",
|
|
56505
|
-
"v1",
|
|
56506
|
-
"webhooks",
|
|
56507
|
-
"connectors",
|
|
56508
|
-
"[workspace_id]"
|
|
56509
|
-
],
|
|
56510
|
-
"x-fern-sdk-method-name": "by_connector_id",
|
|
56511
|
-
"x-response-key": null,
|
|
56512
|
-
"x-title": "Connector Webhook Endpoint"
|
|
56513
|
-
}
|
|
56514
|
-
},
|
|
56515
56568
|
"/seam/instant_key/v1/client_sessions/exchange_short_code": {
|
|
56516
56569
|
post: {
|
|
56517
56570
|
description: "Exchanges a short code for a client session token. Mobile apps use this endpoint to retrieve a client session token securely using a short code obtained from an Instant Key URL.",
|