@seamapi/types 1.923.0 → 1.925.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 +2 -124
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +0 -299
- package/dist/index.cjs +2 -124
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +0 -129
- package/lib/seam/connect/models/access-codes/managed-access-code.js +0 -28
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +0 -47
- package/lib/seam/connect/openapi.js +0 -100
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +0 -176
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +0 -32
- package/src/lib/seam/connect/openapi.ts +0 -118
- package/src/lib/seam/connect/route-types.ts +0 -198
package/dist/index.cjs
CHANGED
|
@@ -2579,14 +2579,6 @@ var salto_ks_user_not_subscribed = common_access_code_error.extend({
|
|
|
2579
2579
|
Salto site user is not subscribed.
|
|
2580
2580
|
`
|
|
2581
2581
|
);
|
|
2582
|
-
var replaced_by_newer_access_code = common_access_code_error.extend({
|
|
2583
|
-
error_code: zod.z.literal("replaced_by_newer_access_code").describe(error_code_description3)
|
|
2584
|
-
}).describe(`
|
|
2585
|
-
---
|
|
2586
|
-
resource_type: access_code
|
|
2587
|
-
---
|
|
2588
|
-
This access code was overridden on the device by a newer access code programmed to the same slot.
|
|
2589
|
-
`);
|
|
2590
2582
|
var access_code_error = zod.z.discriminatedUnion("error_code", [
|
|
2591
2583
|
provider_issue2,
|
|
2592
2584
|
failed_to_set_on_device,
|
|
@@ -2598,8 +2590,7 @@ var access_code_error = zod.z.discriminatedUnion("error_code", [
|
|
|
2598
2590
|
code_modified_external_to_seam_error,
|
|
2599
2591
|
access_code_inactive_error,
|
|
2600
2592
|
salto_ks_user_not_subscribed,
|
|
2601
|
-
insufficient_permissions2
|
|
2602
|
-
replaced_by_newer_access_code
|
|
2593
|
+
insufficient_permissions2
|
|
2603
2594
|
]).describe(
|
|
2604
2595
|
"Errors associated with the [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes)."
|
|
2605
2596
|
);
|
|
@@ -2614,8 +2605,7 @@ zod.z.object({
|
|
|
2614
2605
|
insufficient_permissions: insufficient_permissions2.optional().nullable(),
|
|
2615
2606
|
code_modified_external_to_seam_error: code_modified_external_to_seam_error.optional().nullable(),
|
|
2616
2607
|
access_code_inactive: access_code_inactive_error.optional().nullable(),
|
|
2617
|
-
salto_ks_user_not_subscribed: salto_ks_user_not_subscribed.optional().nullable()
|
|
2618
|
-
replaced_by_newer_access_code: replaced_by_newer_access_code.optional().nullable()
|
|
2608
|
+
salto_ks_user_not_subscribed: salto_ks_user_not_subscribed.optional().nullable()
|
|
2619
2609
|
});
|
|
2620
2610
|
var common_access_code_warning = zod.z.object({
|
|
2621
2611
|
message: zod.z.string().describe(
|
|
@@ -2635,16 +2625,6 @@ var code_modified_external_to_seam_warning = common_access_code_warning.extend({
|
|
|
2635
2625
|
}).describe(
|
|
2636
2626
|
"Code was modified or removed externally after Seam successfully set it on the device."
|
|
2637
2627
|
);
|
|
2638
|
-
var schlage_detected_duplicate = common_access_code_warning.extend({
|
|
2639
|
-
warning_code: zod.z.literal("schlage_detected_duplicate").describe(warning_code_description3)
|
|
2640
|
-
}).describe(
|
|
2641
|
-
`
|
|
2642
|
-
---
|
|
2643
|
-
deprecated: Use \`duplicate_code_on_device\` error instead.
|
|
2644
|
-
---
|
|
2645
|
-
Duplicate access code detected.
|
|
2646
|
-
`
|
|
2647
|
-
);
|
|
2648
2628
|
var provider_issue_warning = common_access_code_warning.extend({
|
|
2649
2629
|
warning_code: zod.z.literal("provider_issue").describe(warning_code_description3)
|
|
2650
2630
|
}).describe(
|
|
@@ -2687,7 +2667,6 @@ var being_deleted2 = common_access_code_warning.extend({
|
|
|
2687
2667
|
}).describe("Access code is being deleted.");
|
|
2688
2668
|
var access_code_warning = zod.z.discriminatedUnion("warning_code", [
|
|
2689
2669
|
provider_issue_warning,
|
|
2690
|
-
schlage_detected_duplicate,
|
|
2691
2670
|
schlage_access_code_ambiguous_timezone_dst_risk,
|
|
2692
2671
|
code_modified_external_to_seam_warning,
|
|
2693
2672
|
delay_in_setting_on_device,
|
|
@@ -2703,7 +2682,6 @@ var access_code_warning = zod.z.discriminatedUnion("warning_code", [
|
|
|
2703
2682
|
);
|
|
2704
2683
|
zod.z.object({
|
|
2705
2684
|
provider_issue: provider_issue_warning.optional().nullable(),
|
|
2706
|
-
schlage_detected_duplicate: schlage_detected_duplicate.optional().nullable(),
|
|
2707
2685
|
schlage_access_code_ambiguous_timezone_dst_risk: schlage_access_code_ambiguous_timezone_dst_risk.optional().nullable(),
|
|
2708
2686
|
code_modified_external_to_seam_warning: code_modified_external_to_seam_warning.optional().nullable(),
|
|
2709
2687
|
delay_in_setting_on_device: delay_in_setting_on_device.optional().nullable(),
|
|
@@ -7933,33 +7911,6 @@ var openapi = {
|
|
|
7933
7911
|
type: "object",
|
|
7934
7912
|
"x-resource-type": "access_code"
|
|
7935
7913
|
},
|
|
7936
|
-
{
|
|
7937
|
-
description: "This access code was overridden on the device by a newer access code programmed to the same slot.",
|
|
7938
|
-
properties: {
|
|
7939
|
-
created_at: {
|
|
7940
|
-
description: "Date and time at which Seam created the error.",
|
|
7941
|
-
format: "date-time",
|
|
7942
|
-
type: "string"
|
|
7943
|
-
},
|
|
7944
|
-
error_code: {
|
|
7945
|
-
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
7946
|
-
enum: ["replaced_by_newer_access_code"],
|
|
7947
|
-
type: "string"
|
|
7948
|
-
},
|
|
7949
|
-
is_access_code_error: {
|
|
7950
|
-
description: "Indicates that this is an access code error.",
|
|
7951
|
-
enum: [true],
|
|
7952
|
-
type: "boolean"
|
|
7953
|
-
},
|
|
7954
|
-
message: {
|
|
7955
|
-
description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
|
|
7956
|
-
type: "string"
|
|
7957
|
-
}
|
|
7958
|
-
},
|
|
7959
|
-
required: ["message", "is_access_code_error", "error_code"],
|
|
7960
|
-
type: "object",
|
|
7961
|
-
"x-resource-type": "access_code"
|
|
7962
|
-
},
|
|
7963
7914
|
{
|
|
7964
7915
|
description: "Indicates that the account is disconnected.",
|
|
7965
7916
|
properties: {
|
|
@@ -8853,29 +8804,6 @@ var openapi = {
|
|
|
8853
8804
|
required: ["message", "warning_code"],
|
|
8854
8805
|
type: "object"
|
|
8855
8806
|
},
|
|
8856
|
-
{
|
|
8857
|
-
deprecated: true,
|
|
8858
|
-
description: "Duplicate access code detected.",
|
|
8859
|
-
properties: {
|
|
8860
|
-
created_at: {
|
|
8861
|
-
description: "Date and time at which Seam created the warning.",
|
|
8862
|
-
format: "date-time",
|
|
8863
|
-
type: "string"
|
|
8864
|
-
},
|
|
8865
|
-
message: {
|
|
8866
|
-
description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
|
|
8867
|
-
type: "string"
|
|
8868
|
-
},
|
|
8869
|
-
warning_code: {
|
|
8870
|
-
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
8871
|
-
enum: ["schlage_detected_duplicate"],
|
|
8872
|
-
type: "string"
|
|
8873
|
-
}
|
|
8874
|
-
},
|
|
8875
|
-
required: ["message", "warning_code"],
|
|
8876
|
-
type: "object",
|
|
8877
|
-
"x-deprecated": "Use `duplicate_code_on_device` error instead."
|
|
8878
|
-
},
|
|
8879
8807
|
{
|
|
8880
8808
|
description: "The Schlage device's timezone is ambiguous and this code's schedule crosses a daylight-saving transition in at least one plausible timezone. A 1-hour safety buffer has been applied to the side of the schedule affected by the transition (`ends_at` for spring-forward, `starts_at` for fall-back) so the code stays active through the shift \u2014 the code may be usable up to 1 hour beyond your requested window. Set the device's timezone via `/devices/report_provider_metadata` to clear the buffer and guarantee exact DST handling.",
|
|
8881
8809
|
properties: {
|
|
@@ -33791,33 +33719,6 @@ var openapi = {
|
|
|
33791
33719
|
type: "object",
|
|
33792
33720
|
"x-resource-type": "access_code"
|
|
33793
33721
|
},
|
|
33794
|
-
{
|
|
33795
|
-
description: "This access code was overridden on the device by a newer access code programmed to the same slot.",
|
|
33796
|
-
properties: {
|
|
33797
|
-
created_at: {
|
|
33798
|
-
description: "Date and time at which Seam created the error.",
|
|
33799
|
-
format: "date-time",
|
|
33800
|
-
type: "string"
|
|
33801
|
-
},
|
|
33802
|
-
error_code: {
|
|
33803
|
-
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
33804
|
-
enum: ["replaced_by_newer_access_code"],
|
|
33805
|
-
type: "string"
|
|
33806
|
-
},
|
|
33807
|
-
is_access_code_error: {
|
|
33808
|
-
description: "Indicates that this is an access code error.",
|
|
33809
|
-
enum: [true],
|
|
33810
|
-
type: "boolean"
|
|
33811
|
-
},
|
|
33812
|
-
message: {
|
|
33813
|
-
description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
|
|
33814
|
-
type: "string"
|
|
33815
|
-
}
|
|
33816
|
-
},
|
|
33817
|
-
required: ["message", "is_access_code_error", "error_code"],
|
|
33818
|
-
type: "object",
|
|
33819
|
-
"x-resource-type": "access_code"
|
|
33820
|
-
},
|
|
33821
33722
|
{
|
|
33822
33723
|
description: "Indicates that the account is disconnected.",
|
|
33823
33724
|
properties: {
|
|
@@ -34428,29 +34329,6 @@ var openapi = {
|
|
|
34428
34329
|
required: ["message", "warning_code"],
|
|
34429
34330
|
type: "object"
|
|
34430
34331
|
},
|
|
34431
|
-
{
|
|
34432
|
-
deprecated: true,
|
|
34433
|
-
description: "Duplicate access code detected.",
|
|
34434
|
-
properties: {
|
|
34435
|
-
created_at: {
|
|
34436
|
-
description: "Date and time at which Seam created the warning.",
|
|
34437
|
-
format: "date-time",
|
|
34438
|
-
type: "string"
|
|
34439
|
-
},
|
|
34440
|
-
message: {
|
|
34441
|
-
description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
|
|
34442
|
-
type: "string"
|
|
34443
|
-
},
|
|
34444
|
-
warning_code: {
|
|
34445
|
-
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
34446
|
-
enum: ["schlage_detected_duplicate"],
|
|
34447
|
-
type: "string"
|
|
34448
|
-
}
|
|
34449
|
-
},
|
|
34450
|
-
required: ["message", "warning_code"],
|
|
34451
|
-
type: "object",
|
|
34452
|
-
"x-deprecated": "Use `duplicate_code_on_device` error instead."
|
|
34453
|
-
},
|
|
34454
34332
|
{
|
|
34455
34333
|
description: "The Schlage device's timezone is ambiguous and this code's schedule crosses a daylight-saving transition in at least one plausible timezone. A 1-hour safety buffer has been applied to the side of the schedule affected by the transition (`ends_at` for spring-forward, `starts_at` for fall-back) so the code stays active through the shift \u2014 the code may be usable up to 1 hour beyond your requested window. Set the device's timezone via `/devices/report_provider_metadata` to clear the buffer and guarantee exact DST handling.",
|
|
34456
34334
|
properties: {
|