@seamapi/types 1.745.0 → 1.747.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 +36 -34
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +315 -50
- package/dist/index.cjs +36 -34
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +20 -0
- package/lib/seam/connect/models/events/devices.d.ts +24 -0
- package/lib/seam/connect/models/events/devices.js +20 -0
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +12 -0
- package/lib/seam/connect/openapi.d.ts +251 -48
- package/lib/seam/connect/openapi.js +26 -32
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +32 -2
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/devices.ts +24 -0
- package/src/lib/seam/connect/openapi.ts +30 -32
- package/src/lib/seam/connect/route-types.ts +32 -2
package/dist/connect.cjs
CHANGED
|
@@ -5914,7 +5914,9 @@ var device_name_changed_event = device_event.extend({
|
|
|
5914
5914
|
var camera_activated_event = device_event.extend({
|
|
5915
5915
|
event_type: zod.z.literal("camera.activated"),
|
|
5916
5916
|
activation_reason: zod.z.enum(["motion_detected"]).describe("The reason the camera was activated."),
|
|
5917
|
-
motion_sub_type: zod.z.enum(["human", "vehicle", "package", "other"]).optional().describe("Sub-type of motion detected, if available.")
|
|
5917
|
+
motion_sub_type: zod.z.enum(["human", "vehicle", "package", "other"]).optional().describe("Sub-type of motion detected, if available."),
|
|
5918
|
+
image_url: zod.z.string().url().optional().describe("URL to a thumbnail image captured at the time of activation."),
|
|
5919
|
+
video_url: zod.z.string().url().optional().describe("URL to a short video clip captured at the time of activation.")
|
|
5918
5920
|
}).describe(`
|
|
5919
5921
|
---
|
|
5920
5922
|
route_path: /devices
|
|
@@ -5922,7 +5924,13 @@ var camera_activated_event = device_event.extend({
|
|
|
5922
5924
|
A [camera](https://docs.seam.co/latest/core-concepts/devices) was activated, for example, by motion detection.
|
|
5923
5925
|
`);
|
|
5924
5926
|
var device_doorbell_rang_event = device_event.extend({
|
|
5925
|
-
event_type: zod.z.literal("device.doorbell_rang")
|
|
5927
|
+
event_type: zod.z.literal("device.doorbell_rang"),
|
|
5928
|
+
image_url: zod.z.string().url().optional().describe(
|
|
5929
|
+
"URL to a thumbnail image captured at the time the doorbell was pressed."
|
|
5930
|
+
),
|
|
5931
|
+
video_url: zod.z.string().url().optional().describe(
|
|
5932
|
+
"URL to a short video clip captured at the time the doorbell was pressed."
|
|
5933
|
+
)
|
|
5926
5934
|
}).describe(`
|
|
5927
5935
|
---
|
|
5928
5936
|
route_path: /devices
|
|
@@ -27359,6 +27367,11 @@ var openapi_default = {
|
|
|
27359
27367
|
type: "string"
|
|
27360
27368
|
},
|
|
27361
27369
|
event_type: { enum: ["camera.activated"], type: "string" },
|
|
27370
|
+
image_url: {
|
|
27371
|
+
description: "URL to a thumbnail image captured at the time of activation.",
|
|
27372
|
+
format: "uri",
|
|
27373
|
+
type: "string"
|
|
27374
|
+
},
|
|
27362
27375
|
motion_sub_type: {
|
|
27363
27376
|
description: "Sub-type of motion detected, if available.",
|
|
27364
27377
|
enum: ["human", "vehicle", "package", "other"],
|
|
@@ -27369,6 +27382,11 @@ var openapi_default = {
|
|
|
27369
27382
|
format: "date-time",
|
|
27370
27383
|
type: "string"
|
|
27371
27384
|
},
|
|
27385
|
+
video_url: {
|
|
27386
|
+
description: "URL to a short video clip captured at the time of activation.",
|
|
27387
|
+
format: "uri",
|
|
27388
|
+
type: "string"
|
|
27389
|
+
},
|
|
27372
27390
|
workspace_id: {
|
|
27373
27391
|
description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.",
|
|
27374
27392
|
format: "uuid",
|
|
@@ -27430,11 +27448,21 @@ var openapi_default = {
|
|
|
27430
27448
|
type: "string"
|
|
27431
27449
|
},
|
|
27432
27450
|
event_type: { enum: ["device.doorbell_rang"], type: "string" },
|
|
27451
|
+
image_url: {
|
|
27452
|
+
description: "URL to a thumbnail image captured at the time the doorbell was pressed.",
|
|
27453
|
+
format: "uri",
|
|
27454
|
+
type: "string"
|
|
27455
|
+
},
|
|
27433
27456
|
occurred_at: {
|
|
27434
27457
|
description: "Date and time at which the event occurred.",
|
|
27435
27458
|
format: "date-time",
|
|
27436
27459
|
type: "string"
|
|
27437
27460
|
},
|
|
27461
|
+
video_url: {
|
|
27462
|
+
description: "URL to a short video clip captured at the time the doorbell was pressed.",
|
|
27463
|
+
format: "uri",
|
|
27464
|
+
type: "string"
|
|
27465
|
+
},
|
|
27438
27466
|
workspace_id: {
|
|
27439
27467
|
description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the event.",
|
|
27440
27468
|
format: "uuid",
|
|
@@ -63051,7 +63079,7 @@ var openapi_default = {
|
|
|
63051
63079
|
},
|
|
63052
63080
|
"/seam/customer/v1/automations/update": {
|
|
63053
63081
|
patch: {
|
|
63054
|
-
description: "Updates the automation configuration for a customer portal workspace
|
|
63082
|
+
description: "Updates the automation configuration for a customer portal workspace.",
|
|
63055
63083
|
operationId: "seamCustomerV1AutomationsUpdatePatch",
|
|
63056
63084
|
requestBody: {
|
|
63057
63085
|
content: {
|
|
@@ -63320,11 +63348,7 @@ var openapi_default = {
|
|
|
63320
63348
|
400: { description: "Bad Request" },
|
|
63321
63349
|
401: { description: "Unauthorized" }
|
|
63322
63350
|
},
|
|
63323
|
-
security: [
|
|
63324
|
-
{ console_session_with_workspace: [] },
|
|
63325
|
-
{ api_key: [] },
|
|
63326
|
-
{ client_session_with_customer: [] }
|
|
63327
|
-
],
|
|
63351
|
+
security: [{ console_session_with_workspace: [] }, { api_key: [] }],
|
|
63328
63352
|
summary: "/seam/customer/v1/automations/update",
|
|
63329
63353
|
tags: [],
|
|
63330
63354
|
"x-fern-sdk-group-name": ["seam", "customer", "v1", "automations"],
|
|
@@ -63334,7 +63358,7 @@ var openapi_default = {
|
|
|
63334
63358
|
"x-undocumented": "Internal endpoint for customer portals."
|
|
63335
63359
|
},
|
|
63336
63360
|
post: {
|
|
63337
|
-
description: "Updates the automation configuration for a customer portal workspace
|
|
63361
|
+
description: "Updates the automation configuration for a customer portal workspace.",
|
|
63338
63362
|
operationId: "seamCustomerV1AutomationsUpdatePost",
|
|
63339
63363
|
requestBody: {
|
|
63340
63364
|
content: {
|
|
@@ -63603,11 +63627,7 @@ var openapi_default = {
|
|
|
63603
63627
|
400: { description: "Bad Request" },
|
|
63604
63628
|
401: { description: "Unauthorized" }
|
|
63605
63629
|
},
|
|
63606
|
-
security: [
|
|
63607
|
-
{ console_session_with_workspace: [] },
|
|
63608
|
-
{ api_key: [] },
|
|
63609
|
-
{ client_session_with_customer: [] }
|
|
63610
|
-
],
|
|
63630
|
+
security: [{ console_session_with_workspace: [] }, { api_key: [] }],
|
|
63611
63631
|
summary: "/seam/customer/v1/automations/update",
|
|
63612
63632
|
tags: [],
|
|
63613
63633
|
"x-fern-sdk-group-name": ["seam", "customer", "v1", "automations"],
|
|
@@ -65446,13 +65466,8 @@ var openapi_default = {
|
|
|
65446
65466
|
}
|
|
65447
65467
|
},
|
|
65448
65468
|
type: "object"
|
|
65449
|
-
},
|
|
65450
|
-
customer_key: {
|
|
65451
|
-
description: "Key of the customer.",
|
|
65452
|
-
type: "string"
|
|
65453
65469
|
}
|
|
65454
65470
|
},
|
|
65455
|
-
required: ["customer_key"],
|
|
65456
65471
|
type: "object"
|
|
65457
65472
|
}
|
|
65458
65473
|
}
|
|
@@ -65474,11 +65489,7 @@ var openapi_default = {
|
|
|
65474
65489
|
400: { description: "Bad Request" },
|
|
65475
65490
|
401: { description: "Unauthorized" }
|
|
65476
65491
|
},
|
|
65477
|
-
security: [
|
|
65478
|
-
{ pat_with_workspace: [] },
|
|
65479
|
-
{ console_session_with_workspace: [] },
|
|
65480
|
-
{ api_key: [] }
|
|
65481
|
-
],
|
|
65492
|
+
security: [{ client_session_with_customer: [] }],
|
|
65482
65493
|
summary: "/seam/customer/v1/customers/automations/update",
|
|
65483
65494
|
tags: [],
|
|
65484
65495
|
"x-fern-sdk-group-name": [
|
|
@@ -65739,13 +65750,8 @@ var openapi_default = {
|
|
|
65739
65750
|
}
|
|
65740
65751
|
},
|
|
65741
65752
|
type: "object"
|
|
65742
|
-
},
|
|
65743
|
-
customer_key: {
|
|
65744
|
-
description: "Key of the customer.",
|
|
65745
|
-
type: "string"
|
|
65746
65753
|
}
|
|
65747
65754
|
},
|
|
65748
|
-
required: ["customer_key"],
|
|
65749
65755
|
type: "object"
|
|
65750
65756
|
}
|
|
65751
65757
|
}
|
|
@@ -65767,11 +65773,7 @@ var openapi_default = {
|
|
|
65767
65773
|
400: { description: "Bad Request" },
|
|
65768
65774
|
401: { description: "Unauthorized" }
|
|
65769
65775
|
},
|
|
65770
|
-
security: [
|
|
65771
|
-
{ pat_with_workspace: [] },
|
|
65772
|
-
{ console_session_with_workspace: [] },
|
|
65773
|
-
{ api_key: [] }
|
|
65774
|
-
],
|
|
65776
|
+
security: [{ client_session_with_customer: [] }],
|
|
65775
65777
|
summary: "/seam/customer/v1/customers/automations/update",
|
|
65776
65778
|
tags: [],
|
|
65777
65779
|
"x-fern-sdk-group-name": [
|