@seamapi/types 1.882.0 → 1.884.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 +57 -13
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +195 -2
- package/dist/index.cjs +57 -13
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +8 -8
- package/lib/seam/connect/models/devices/device.d.ts +58 -0
- package/lib/seam/connect/models/devices/device.js +10 -0
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +21 -0
- package/lib/seam/connect/openapi.js +44 -10
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +140 -2
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/device.ts +11 -0
- package/src/lib/seam/connect/openapi.ts +52 -12
- package/src/lib/seam/connect/route-types.ts +160 -2
package/dist/connect.cjs
CHANGED
|
@@ -1568,6 +1568,14 @@ var hub_required_for_additional_capabilities = common_device_warning.extend({
|
|
|
1568
1568
|
---
|
|
1569
1569
|
Indicates that a hub or relay must be connected to unlock additional capabilities such as remote unlock.
|
|
1570
1570
|
`);
|
|
1571
|
+
var provider_issue = common_device_warning.extend({
|
|
1572
|
+
warning_code: zod.z.literal("provider_issue").describe(warning_code_description2)
|
|
1573
|
+
}).describe(`
|
|
1574
|
+
---
|
|
1575
|
+
variant_group_key: access_codes
|
|
1576
|
+
---
|
|
1577
|
+
Indicates a provider-specific issue that may affect device functionality.
|
|
1578
|
+
`);
|
|
1571
1579
|
var keynest_unsupported_locker = common_device_warning.extend({
|
|
1572
1580
|
warning_code: zod.z.literal("keynest_unsupported_locker").describe(warning_code_description2)
|
|
1573
1581
|
}).describe(`
|
|
@@ -1633,6 +1641,7 @@ var device_warning = zod.z.discriminatedUnion("warning_code", [
|
|
|
1633
1641
|
ultraloq_time_zone_unknown,
|
|
1634
1642
|
two_n_device_missing_timezone,
|
|
1635
1643
|
hub_required_for_additional_capabilities,
|
|
1644
|
+
provider_issue,
|
|
1636
1645
|
keynest_unsupported_locker,
|
|
1637
1646
|
accessory_keypad_setup_required,
|
|
1638
1647
|
unreliable_online_status,
|
|
@@ -1663,6 +1672,7 @@ zod.z.object({
|
|
|
1663
1672
|
ultraloq_time_zone_unknown: ultraloq_time_zone_unknown.optional().nullable(),
|
|
1664
1673
|
two_n_device_missing_timezone: two_n_device_missing_timezone.optional().nullable(),
|
|
1665
1674
|
hub_required_for_additional_capabilities: hub_required_for_additional_capabilities.optional().nullable(),
|
|
1675
|
+
provider_issue: provider_issue.optional().nullable(),
|
|
1666
1676
|
keynest_unsupported_locker: keynest_unsupported_locker.optional().nullable(),
|
|
1667
1677
|
accessory_keypad_setup_required: accessory_keypad_setup_required.optional().nullable(),
|
|
1668
1678
|
unreliable_online_status: unreliable_online_status.optional().nullable(),
|
|
@@ -2316,7 +2326,7 @@ var common_access_code_error = zod.z.object({
|
|
|
2316
2326
|
created_at: zod.z.string().datetime().optional().describe("Date and time at which Seam created the error.")
|
|
2317
2327
|
});
|
|
2318
2328
|
var error_code_description3 = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
|
|
2319
|
-
var
|
|
2329
|
+
var provider_issue2 = common_access_code_error.extend({
|
|
2320
2330
|
error_code: zod.z.literal("provider_issue").describe(error_code_description3)
|
|
2321
2331
|
}).describe(
|
|
2322
2332
|
"Indicates a provider-specific issue that prevents the access code from being set or managed. Check the error message for details."
|
|
@@ -2501,7 +2511,7 @@ var replaced_by_newer_access_code = common_access_code_error.extend({
|
|
|
2501
2511
|
"This access code was overridden on the device by a newer access code programmed to the same slot."
|
|
2502
2512
|
);
|
|
2503
2513
|
var access_code_error = zod.z.discriminatedUnion("error_code", [
|
|
2504
|
-
|
|
2514
|
+
provider_issue2,
|
|
2505
2515
|
smartthings_failed_to_set_access_code_error,
|
|
2506
2516
|
smartthings_failed_to_set_after_multiple_retries,
|
|
2507
2517
|
failed_to_set_on_device,
|
|
@@ -2528,7 +2538,7 @@ var access_code_error = zod.z.discriminatedUnion("error_code", [
|
|
|
2528
2538
|
"Errors associated with the [access code](https://docs.seam.co/capability-guides/smart-locks/access-codes)."
|
|
2529
2539
|
);
|
|
2530
2540
|
zod.z.object({
|
|
2531
|
-
provider_issue:
|
|
2541
|
+
provider_issue: provider_issue2.optional().nullable(),
|
|
2532
2542
|
smartthings_failed_to_set_access_code: smartthings_failed_to_set_access_code_error.optional().nullable(),
|
|
2533
2543
|
smartthings_failed_to_set_after_multiple_retries: smartthings_failed_to_set_after_multiple_retries.optional().nullable(),
|
|
2534
2544
|
failed_to_set_on_device: failed_to_set_on_device.optional().nullable(),
|
|
@@ -22421,6 +22431,28 @@ var openapi = {
|
|
|
22421
22431
|
type: "object",
|
|
22422
22432
|
"x-variant-group-key": "locks"
|
|
22423
22433
|
},
|
|
22434
|
+
{
|
|
22435
|
+
description: "Indicates a provider-specific issue that may affect device functionality.",
|
|
22436
|
+
properties: {
|
|
22437
|
+
created_at: {
|
|
22438
|
+
description: "Date and time at which Seam created the warning.",
|
|
22439
|
+
format: "date-time",
|
|
22440
|
+
type: "string"
|
|
22441
|
+
},
|
|
22442
|
+
message: {
|
|
22443
|
+
description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
|
|
22444
|
+
type: "string"
|
|
22445
|
+
},
|
|
22446
|
+
warning_code: {
|
|
22447
|
+
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
22448
|
+
enum: ["provider_issue"],
|
|
22449
|
+
type: "string"
|
|
22450
|
+
}
|
|
22451
|
+
},
|
|
22452
|
+
required: ["message", "created_at", "warning_code"],
|
|
22453
|
+
type: "object",
|
|
22454
|
+
"x-variant-group-key": "access_codes"
|
|
22455
|
+
},
|
|
22424
22456
|
{
|
|
22425
22457
|
description: "Indicates that the key is in a locker that does not support the access codes API.",
|
|
22426
22458
|
properties: {
|
|
@@ -37104,6 +37136,28 @@ var openapi = {
|
|
|
37104
37136
|
type: "object",
|
|
37105
37137
|
"x-variant-group-key": "locks"
|
|
37106
37138
|
},
|
|
37139
|
+
{
|
|
37140
|
+
description: "Indicates a provider-specific issue that may affect device functionality.",
|
|
37141
|
+
properties: {
|
|
37142
|
+
created_at: {
|
|
37143
|
+
description: "Date and time at which Seam created the warning.",
|
|
37144
|
+
format: "date-time",
|
|
37145
|
+
type: "string"
|
|
37146
|
+
},
|
|
37147
|
+
message: {
|
|
37148
|
+
description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
|
|
37149
|
+
type: "string"
|
|
37150
|
+
},
|
|
37151
|
+
warning_code: {
|
|
37152
|
+
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
37153
|
+
enum: ["provider_issue"],
|
|
37154
|
+
type: "string"
|
|
37155
|
+
}
|
|
37156
|
+
},
|
|
37157
|
+
required: ["message", "created_at", "warning_code"],
|
|
37158
|
+
type: "object",
|
|
37159
|
+
"x-variant-group-key": "access_codes"
|
|
37160
|
+
},
|
|
37107
37161
|
{
|
|
37108
37162
|
description: "Indicates that the key is in a locker that does not support the access codes API.",
|
|
37109
37163
|
properties: {
|
|
@@ -79477,11 +79531,6 @@ var openapi = {
|
|
|
79477
79531
|
},
|
|
79478
79532
|
type: "object"
|
|
79479
79533
|
},
|
|
79480
|
-
customer_key: {
|
|
79481
|
-
description: "Customer key for which you want to update the space.",
|
|
79482
|
-
minLength: 1,
|
|
79483
|
-
type: "string"
|
|
79484
|
-
},
|
|
79485
79534
|
device_ids: {
|
|
79486
79535
|
description: "IDs of the devices that you want to set for the space. If specified, this will replace all existing devices.",
|
|
79487
79536
|
items: { format: "uuid", type: "string" },
|
|
@@ -79572,11 +79621,6 @@ var openapi = {
|
|
|
79572
79621
|
},
|
|
79573
79622
|
type: "object"
|
|
79574
79623
|
},
|
|
79575
|
-
customer_key: {
|
|
79576
|
-
description: "Customer key for which you want to update the space.",
|
|
79577
|
-
minLength: 1,
|
|
79578
|
-
type: "string"
|
|
79579
|
-
},
|
|
79580
79624
|
device_ids: {
|
|
79581
79625
|
description: "IDs of the devices that you want to set for the space. If specified, this will replace all existing devices.",
|
|
79582
79626
|
items: { format: "uuid", type: "string" },
|