@seamapi/types 1.693.0 → 1.695.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 +68 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +178 -0
- package/dist/index.cjs +68 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +10 -0
- package/lib/seam/connect/models/events/devices.d.ts +12 -0
- package/lib/seam/connect/models/events/devices.js +8 -0
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +6 -0
- package/lib/seam/connect/openapi.d.ts +115 -0
- package/lib/seam/connect/openapi.js +62 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +47 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/devices.ts +12 -0
- package/src/lib/seam/connect/openapi.ts +65 -0
- package/src/lib/seam/connect/route-types.ts +47 -0
package/dist/index.cjs
CHANGED
|
@@ -5183,6 +5183,9 @@ var noise_sensor_noise_threshold_triggered_event = device_event.extend(
|
|
|
5183
5183
|
var lock_locked_event = device_event.extend({
|
|
5184
5184
|
event_type: zod.z.literal("lock.locked"),
|
|
5185
5185
|
access_code_id: zod.z.string().uuid().optional().describe("ID of the access code that was used to lock the device."),
|
|
5186
|
+
access_code_is_managed: zod.z.boolean().optional().describe(
|
|
5187
|
+
"Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set."
|
|
5188
|
+
),
|
|
5186
5189
|
action_attempt_id: zod.z.string().uuid().optional().describe("ID of the action attempt associated with the lock action."),
|
|
5187
5190
|
method: lock_method.describe(
|
|
5188
5191
|
"Method by which the affected lock device was locked. When the method is `keycode`, the `access_code_id` indicates the access code that was used, if reported by the device."
|
|
@@ -5198,6 +5201,9 @@ var lock_unlocked_event = device_event.extend({
|
|
|
5198
5201
|
access_code_id: zod.z.string().uuid().optional().describe(
|
|
5199
5202
|
"ID of the access code that was used to unlock the affected device."
|
|
5200
5203
|
),
|
|
5204
|
+
access_code_is_managed: zod.z.boolean().optional().describe(
|
|
5205
|
+
"Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set."
|
|
5206
|
+
),
|
|
5201
5207
|
action_attempt_id: zod.z.string().uuid().optional().describe("ID of the action attempt associated with the unlock action."),
|
|
5202
5208
|
method: lock_method.describe(
|
|
5203
5209
|
"Method by which the affected lock device was unlocked. When the method is `keycode`, the `access_code_id` indicates the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) that was used, if reported by the device."
|
|
@@ -22844,6 +22850,10 @@ var openapi_default = {
|
|
|
22844
22850
|
format: "uuid",
|
|
22845
22851
|
type: "string"
|
|
22846
22852
|
},
|
|
22853
|
+
access_code_is_managed: {
|
|
22854
|
+
description: "Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set.",
|
|
22855
|
+
type: "boolean"
|
|
22856
|
+
},
|
|
22847
22857
|
action_attempt_id: {
|
|
22848
22858
|
description: "ID of the action attempt associated with the lock action.",
|
|
22849
22859
|
format: "uuid",
|
|
@@ -22921,6 +22931,10 @@ var openapi_default = {
|
|
|
22921
22931
|
format: "uuid",
|
|
22922
22932
|
type: "string"
|
|
22923
22933
|
},
|
|
22934
|
+
access_code_is_managed: {
|
|
22935
|
+
description: "Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set.",
|
|
22936
|
+
type: "boolean"
|
|
22937
|
+
},
|
|
22924
22938
|
acs_entrance_id: {
|
|
22925
22939
|
description: "\n undocumented: Unreleased.\n ---\n ID of the ACS entrance associated with the unlock event.\n ",
|
|
22926
22940
|
format: "uuid",
|
|
@@ -56553,6 +56567,60 @@ var openapi_default = {
|
|
|
56553
56567
|
"x-undocumented": "Internal endpoint for Console."
|
|
56554
56568
|
}
|
|
56555
56569
|
},
|
|
56570
|
+
"/seam/customer/v1/customers/open_portal": {
|
|
56571
|
+
post: {
|
|
56572
|
+
description: "Opens an existing customer portal or creates a new one if the previous portal has expired.\nReturns an error if no portal was ever created for this customer.",
|
|
56573
|
+
operationId: "seamCustomerV1CustomersOpenPortalPost",
|
|
56574
|
+
requestBody: {
|
|
56575
|
+
content: {
|
|
56576
|
+
"application/json": {
|
|
56577
|
+
schema: {
|
|
56578
|
+
properties: {
|
|
56579
|
+
customer_key: {
|
|
56580
|
+
description: "The customer key to open a portal for.",
|
|
56581
|
+
type: "string"
|
|
56582
|
+
}
|
|
56583
|
+
},
|
|
56584
|
+
required: ["customer_key"],
|
|
56585
|
+
type: "object"
|
|
56586
|
+
}
|
|
56587
|
+
}
|
|
56588
|
+
}
|
|
56589
|
+
},
|
|
56590
|
+
responses: {
|
|
56591
|
+
200: {
|
|
56592
|
+
content: {
|
|
56593
|
+
"application/json": {
|
|
56594
|
+
schema: {
|
|
56595
|
+
properties: {
|
|
56596
|
+
magic_link: { $ref: "#/components/schemas/magic_link" },
|
|
56597
|
+
ok: { type: "boolean" }
|
|
56598
|
+
},
|
|
56599
|
+
required: ["magic_link", "ok"],
|
|
56600
|
+
type: "object"
|
|
56601
|
+
}
|
|
56602
|
+
}
|
|
56603
|
+
},
|
|
56604
|
+
description: "OK"
|
|
56605
|
+
},
|
|
56606
|
+
400: { description: "Bad Request" },
|
|
56607
|
+
401: { description: "Unauthorized" }
|
|
56608
|
+
},
|
|
56609
|
+
security: [
|
|
56610
|
+
{ pat_with_workspace: [] },
|
|
56611
|
+
{ console_session_with_workspace: [] },
|
|
56612
|
+
{ api_key: [] }
|
|
56613
|
+
],
|
|
56614
|
+
summary: "/seam/customer/v1/customers/open_portal",
|
|
56615
|
+
tags: [],
|
|
56616
|
+
"x-fern-sdk-group-name": ["seam", "customer", "v1", "customers"],
|
|
56617
|
+
"x-fern-sdk-method-name": "open_portal",
|
|
56618
|
+
"x-fern-sdk-return-value": "magic_link",
|
|
56619
|
+
"x-response-key": "magic_link",
|
|
56620
|
+
"x-title": "Open Customer Portal",
|
|
56621
|
+
"x-undocumented": "Internal endpoint for Console."
|
|
56622
|
+
}
|
|
56623
|
+
},
|
|
56556
56624
|
"/seam/customer/v1/events/list": {
|
|
56557
56625
|
get: {
|
|
56558
56626
|
description: "Returns a list of events for devices in a specific space. This endpoint is designed for customer portals and only supports filtering by space_id.",
|