@seamapi/types 1.529.0 → 1.531.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 +82 -3
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +154 -3
- package/dist/index.cjs +82 -3
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +10 -2
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +3 -1
- package/lib/seam/connect/models/devices/unmanaged-device.js +1 -0
- package/lib/seam/connect/models/devices/unmanaged-device.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +113 -0
- package/lib/seam/connect/openapi.js +80 -2
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +33 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/unmanaged-device.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +84 -2
- package/src/lib/seam/connect/route-types.ts +35 -1
package/dist/connect.cjs
CHANGED
|
@@ -1841,7 +1841,8 @@ var unmanaged_device = device.pick({
|
|
|
1841
1841
|
workspace_id: true,
|
|
1842
1842
|
errors: true,
|
|
1843
1843
|
warnings: true,
|
|
1844
|
-
created_at: true
|
|
1844
|
+
created_at: true,
|
|
1845
|
+
custom_metadata: true
|
|
1845
1846
|
}).extend({
|
|
1846
1847
|
is_managed: zod.z.literal(false),
|
|
1847
1848
|
properties: common_device_properties.pick({
|
|
@@ -26787,6 +26788,13 @@ var openapi_default = {
|
|
|
26787
26788
|
format: "date-time",
|
|
26788
26789
|
type: "string"
|
|
26789
26790
|
},
|
|
26791
|
+
custom_metadata: {
|
|
26792
|
+
additionalProperties: {
|
|
26793
|
+
oneOf: [{ type: "string" }, { type: "boolean" }]
|
|
26794
|
+
},
|
|
26795
|
+
description: "Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application.",
|
|
26796
|
+
type: "object"
|
|
26797
|
+
},
|
|
26790
26798
|
device_id: {
|
|
26791
26799
|
description: "ID of the device.",
|
|
26792
26800
|
format: "uuid",
|
|
@@ -27942,6 +27950,7 @@ var openapi_default = {
|
|
|
27942
27950
|
"errors",
|
|
27943
27951
|
"warnings",
|
|
27944
27952
|
"created_at",
|
|
27953
|
+
"custom_metadata",
|
|
27945
27954
|
"is_managed",
|
|
27946
27955
|
"properties"
|
|
27947
27956
|
],
|
|
@@ -43460,6 +43469,54 @@ var openapi_default = {
|
|
|
43460
43469
|
"x-title": "Simulate Hub Disconnection"
|
|
43461
43470
|
}
|
|
43462
43471
|
},
|
|
43472
|
+
"/devices/simulate/paid_subscription": {
|
|
43473
|
+
post: {
|
|
43474
|
+
description: "Toggle the simulated Nuki Smart Hosting subscription for a device (sandbox only).\nSend `is_expired: true` to simulate an expired subscription, or `false` to simulate an active subscription.\nThe actual device error is created/cleared by the poller after this state change.",
|
|
43475
|
+
operationId: "devicesSimulatePaidSubscriptionPost",
|
|
43476
|
+
requestBody: {
|
|
43477
|
+
content: {
|
|
43478
|
+
"application/json": {
|
|
43479
|
+
schema: {
|
|
43480
|
+
properties: {
|
|
43481
|
+
device_id: { format: "uuid", type: "string" },
|
|
43482
|
+
is_expired: { type: "boolean" }
|
|
43483
|
+
},
|
|
43484
|
+
required: ["device_id", "is_expired"],
|
|
43485
|
+
type: "object"
|
|
43486
|
+
}
|
|
43487
|
+
}
|
|
43488
|
+
}
|
|
43489
|
+
},
|
|
43490
|
+
responses: {
|
|
43491
|
+
200: {
|
|
43492
|
+
content: {
|
|
43493
|
+
"application/json": {
|
|
43494
|
+
schema: {
|
|
43495
|
+
properties: { ok: { type: "boolean" } },
|
|
43496
|
+
required: ["ok"],
|
|
43497
|
+
type: "object"
|
|
43498
|
+
}
|
|
43499
|
+
}
|
|
43500
|
+
},
|
|
43501
|
+
description: "OK"
|
|
43502
|
+
},
|
|
43503
|
+
400: { description: "Bad Request" },
|
|
43504
|
+
401: { description: "Unauthorized" }
|
|
43505
|
+
},
|
|
43506
|
+
security: [
|
|
43507
|
+
{ api_key: [] },
|
|
43508
|
+
{ pat_with_workspace: [] },
|
|
43509
|
+
{ console_session_with_workspace: [] },
|
|
43510
|
+
{ client_session_with_customer: [] }
|
|
43511
|
+
],
|
|
43512
|
+
summary: "/devices/simulate/paid_subscription",
|
|
43513
|
+
tags: ["/devices"],
|
|
43514
|
+
"x-fern-sdk-group-name": ["devices", "simulate"],
|
|
43515
|
+
"x-fern-sdk-method-name": "paid_subscription",
|
|
43516
|
+
"x-response-key": null,
|
|
43517
|
+
"x-title": "Simulate Paid Subscription"
|
|
43518
|
+
}
|
|
43519
|
+
},
|
|
43463
43520
|
"/devices/simulate/remove": {
|
|
43464
43521
|
post: {
|
|
43465
43522
|
description: "Simulates removing a device from Seam. Only applicable for [sandbox devices](https://docs.seam.co/latest/core-concepts/workspaces#sandbox-workspaces). See also [Testing Your App Against Device Disconnection and Removal](https://docs.seam.co/latest/core-concepts/devices/testing-your-app-against-device-disconnection-and-removal).",
|
|
@@ -44384,6 +44441,17 @@ var openapi_default = {
|
|
|
44384
44441
|
"application/json": {
|
|
44385
44442
|
schema: {
|
|
44386
44443
|
properties: {
|
|
44444
|
+
custom_metadata: {
|
|
44445
|
+
additionalProperties: {
|
|
44446
|
+
nullable: true,
|
|
44447
|
+
oneOf: [
|
|
44448
|
+
{ maxLength: 500, type: "string" },
|
|
44449
|
+
{ type: "boolean" }
|
|
44450
|
+
]
|
|
44451
|
+
},
|
|
44452
|
+
description: "Custom metadata that you want to associate with the device. Supports up to 50 JSON key:value pairs.",
|
|
44453
|
+
type: "object"
|
|
44454
|
+
},
|
|
44387
44455
|
device_id: {
|
|
44388
44456
|
description: "ID of the unmanaged device that you want to update.",
|
|
44389
44457
|
format: "uuid",
|
|
@@ -44395,7 +44463,7 @@ var openapi_default = {
|
|
|
44395
44463
|
type: "boolean"
|
|
44396
44464
|
}
|
|
44397
44465
|
},
|
|
44398
|
-
required: ["device_id"
|
|
44466
|
+
required: ["device_id"],
|
|
44399
44467
|
type: "object"
|
|
44400
44468
|
}
|
|
44401
44469
|
}
|
|
@@ -44437,6 +44505,17 @@ var openapi_default = {
|
|
|
44437
44505
|
"application/json": {
|
|
44438
44506
|
schema: {
|
|
44439
44507
|
properties: {
|
|
44508
|
+
custom_metadata: {
|
|
44509
|
+
additionalProperties: {
|
|
44510
|
+
nullable: true,
|
|
44511
|
+
oneOf: [
|
|
44512
|
+
{ maxLength: 500, type: "string" },
|
|
44513
|
+
{ type: "boolean" }
|
|
44514
|
+
]
|
|
44515
|
+
},
|
|
44516
|
+
description: "Custom metadata that you want to associate with the device. Supports up to 50 JSON key:value pairs.",
|
|
44517
|
+
type: "object"
|
|
44518
|
+
},
|
|
44440
44519
|
device_id: {
|
|
44441
44520
|
description: "ID of the unmanaged device that you want to update.",
|
|
44442
44521
|
format: "uuid",
|
|
@@ -44448,7 +44527,7 @@ var openapi_default = {
|
|
|
44448
44527
|
type: "boolean"
|
|
44449
44528
|
}
|
|
44450
44529
|
},
|
|
44451
|
-
required: ["device_id"
|
|
44530
|
+
required: ["device_id"],
|
|
44452
44531
|
type: "object"
|
|
44453
44532
|
}
|
|
44454
44533
|
}
|