@seamapi/types 1.948.0 → 1.950.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 +27 -89
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +48 -215
- package/dist/index.cjs +27 -89
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +70 -141
- package/lib/seam/connect/models/access-codes/managed-access-code.js +10 -24
- 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 +10 -36
- package/lib/seam/connect/openapi.js +8 -62
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +22 -121
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +27 -40
- package/src/lib/seam/connect/openapi.ts +8 -72
- package/src/lib/seam/connect/route-types.ts +22 -132
package/dist/connect.cjs
CHANGED
|
@@ -2570,19 +2570,21 @@ var modified_field = zod.z.object({
|
|
|
2570
2570
|
from: zod.z.string().nullable().describe("The previous value of the field."),
|
|
2571
2571
|
to: zod.z.string().nullable().describe("The new value of the field.")
|
|
2572
2572
|
});
|
|
2573
|
-
var
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2573
|
+
var conflicting_external_modification_error = common_access_code_error.extend(
|
|
2574
|
+
{
|
|
2575
|
+
error_code: zod.z.literal("conflicting_external_modification").describe(error_code_description3),
|
|
2576
|
+
change_type: zod.z.enum(["modified", "removed"]).optional().describe(
|
|
2577
|
+
"Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device."
|
|
2578
|
+
),
|
|
2579
|
+
modified_fields: zod.z.array(modified_field).optional().describe(
|
|
2580
|
+
"List of fields that were changed externally, with their previous and new values."
|
|
2581
|
+
)
|
|
2582
|
+
}
|
|
2583
|
+
).describe(`
|
|
2582
2584
|
---
|
|
2583
2585
|
resource_type: access_code
|
|
2584
2586
|
---
|
|
2585
|
-
Code was modified or removed externally after Seam successfully set it on the device.
|
|
2587
|
+
Code was modified or removed externally after Seam successfully set it on the device. The external change conflicts with the state that Seam is trying to apply, so Seam will attempt to set the code on the device again.
|
|
2586
2588
|
`);
|
|
2587
2589
|
var failed_to_set_on_device = common_access_code_error.extend({
|
|
2588
2590
|
error_code: zod.z.literal("failed_to_set_on_device").describe(error_code_description3)
|
|
@@ -2614,14 +2616,6 @@ var duplicate_code_on_device = common_access_code_error.extend({
|
|
|
2614
2616
|
---
|
|
2615
2617
|
Duplicate access code detected on device.
|
|
2616
2618
|
`);
|
|
2617
|
-
var duplicate_code_attempt_prevented = common_access_code_error.extend({
|
|
2618
|
-
error_code: zod.z.literal("duplicate_code_attempt_prevented").describe(error_code_description3)
|
|
2619
|
-
}).describe(`
|
|
2620
|
-
---
|
|
2621
|
-
resource_type: access_code
|
|
2622
|
-
---
|
|
2623
|
-
An attempt to modify this access code was prevented.
|
|
2624
|
-
`);
|
|
2625
2619
|
var no_space_for_access_code_on_device = common_access_code_error.extend({
|
|
2626
2620
|
error_code: zod.z.literal("no_space_for_access_code_on_device").describe(error_code_description3)
|
|
2627
2621
|
}).describe(`
|
|
@@ -2651,9 +2645,8 @@ var access_code_error = zod.z.discriminatedUnion("error_code", [
|
|
|
2651
2645
|
failed_to_set_on_device,
|
|
2652
2646
|
failed_to_remove_from_device,
|
|
2653
2647
|
duplicate_code_on_device,
|
|
2654
|
-
duplicate_code_attempt_prevented,
|
|
2655
2648
|
no_space_for_access_code_on_device,
|
|
2656
|
-
|
|
2649
|
+
conflicting_external_modification_error,
|
|
2657
2650
|
access_code_inactive_error,
|
|
2658
2651
|
insufficient_permissions2
|
|
2659
2652
|
]).describe(
|
|
@@ -2665,9 +2658,8 @@ zod.z.object({
|
|
|
2665
2658
|
failed_to_remove_from_device: failed_to_remove_from_device.optional().nullable(),
|
|
2666
2659
|
no_space_for_access_code_on_device: no_space_for_access_code_on_device.optional().nullable(),
|
|
2667
2660
|
duplicate_code_on_device: duplicate_code_on_device.optional().nullable(),
|
|
2668
|
-
duplicate_code_attempt_prevented: duplicate_code_attempt_prevented.optional().nullable(),
|
|
2669
2661
|
insufficient_permissions: insufficient_permissions2.optional().nullable(),
|
|
2670
|
-
|
|
2662
|
+
conflicting_external_modification: conflicting_external_modification_error.optional().nullable(),
|
|
2671
2663
|
access_code_inactive: access_code_inactive_error.optional().nullable()
|
|
2672
2664
|
});
|
|
2673
2665
|
var common_access_code_warning = zod.z.object({
|
|
@@ -2677,8 +2669,8 @@ var common_access_code_warning = zod.z.object({
|
|
|
2677
2669
|
created_at: zod.z.string().datetime().optional().describe("Date and time at which Seam created the warning.")
|
|
2678
2670
|
});
|
|
2679
2671
|
var warning_code_description3 = "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.";
|
|
2680
|
-
var
|
|
2681
|
-
warning_code: zod.z.literal("
|
|
2672
|
+
var external_modification_in_effect_warning = common_access_code_warning.extend({
|
|
2673
|
+
warning_code: zod.z.literal("external_modification_in_effect").describe(warning_code_description3),
|
|
2682
2674
|
change_type: zod.z.enum(["modified", "removed"]).optional().describe(
|
|
2683
2675
|
"Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device."
|
|
2684
2676
|
),
|
|
@@ -2686,7 +2678,7 @@ var code_modified_external_to_seam_warning = common_access_code_warning.extend({
|
|
|
2686
2678
|
"List of fields that were changed externally, with their previous and new values."
|
|
2687
2679
|
)
|
|
2688
2680
|
}).describe(
|
|
2689
|
-
"Code was modified or removed externally after Seam successfully set it on the device."
|
|
2681
|
+
"Code was modified or removed externally after Seam successfully set it on the device. External modification is allowed for this code, so the externally modified state is being honored."
|
|
2690
2682
|
);
|
|
2691
2683
|
var code_rotates_periodically = common_access_code_warning.extend({
|
|
2692
2684
|
warning_code: zod.z.literal("code_rotates_periodically").describe(warning_code_description3)
|
|
@@ -2726,7 +2718,7 @@ var being_deleted2 = common_access_code_warning.extend({
|
|
|
2726
2718
|
var access_code_warning = zod.z.discriminatedUnion("warning_code", [
|
|
2727
2719
|
code_rotates_periodically,
|
|
2728
2720
|
time_frame_adjusted_for_unknown_time_zone,
|
|
2729
|
-
|
|
2721
|
+
external_modification_in_effect_warning,
|
|
2730
2722
|
delay_in_setting_on_device,
|
|
2731
2723
|
delay_in_removing_from_device,
|
|
2732
2724
|
third_party_integration_detected2,
|
|
@@ -2740,7 +2732,7 @@ var access_code_warning = zod.z.discriminatedUnion("warning_code", [
|
|
|
2740
2732
|
zod.z.object({
|
|
2741
2733
|
code_rotates_periodically: code_rotates_periodically.optional().nullable(),
|
|
2742
2734
|
time_frame_adjusted_for_unknown_time_zone: time_frame_adjusted_for_unknown_time_zone.optional().nullable(),
|
|
2743
|
-
|
|
2735
|
+
external_modification_in_effect: external_modification_in_effect_warning.optional().nullable(),
|
|
2744
2736
|
delay_in_setting_on_device: delay_in_setting_on_device.optional().nullable(),
|
|
2745
2737
|
delay_in_removing_from_device: delay_in_removing_from_device.optional().nullable(),
|
|
2746
2738
|
third_party_integration_detected: third_party_integration_detected2.optional().nullable(),
|
|
@@ -7761,33 +7753,6 @@ var openapi = {
|
|
|
7761
7753
|
type: "object",
|
|
7762
7754
|
"x-resource-type": "access_code"
|
|
7763
7755
|
},
|
|
7764
|
-
{
|
|
7765
|
-
description: "An attempt to modify this access code was prevented.",
|
|
7766
|
-
properties: {
|
|
7767
|
-
created_at: {
|
|
7768
|
-
description: "Date and time at which Seam created the error.",
|
|
7769
|
-
format: "date-time",
|
|
7770
|
-
type: "string"
|
|
7771
|
-
},
|
|
7772
|
-
error_code: {
|
|
7773
|
-
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
7774
|
-
enum: ["duplicate_code_attempt_prevented"],
|
|
7775
|
-
type: "string"
|
|
7776
|
-
},
|
|
7777
|
-
is_access_code_error: {
|
|
7778
|
-
description: "Indicates that this is an access code error.",
|
|
7779
|
-
enum: [true],
|
|
7780
|
-
type: "boolean"
|
|
7781
|
-
},
|
|
7782
|
-
message: {
|
|
7783
|
-
description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
|
|
7784
|
-
type: "string"
|
|
7785
|
-
}
|
|
7786
|
-
},
|
|
7787
|
-
required: ["message", "is_access_code_error", "error_code"],
|
|
7788
|
-
type: "object",
|
|
7789
|
-
"x-resource-type": "access_code"
|
|
7790
|
-
},
|
|
7791
7756
|
{
|
|
7792
7757
|
description: "No space for access code on device.",
|
|
7793
7758
|
properties: {
|
|
@@ -7816,7 +7781,7 @@ var openapi = {
|
|
|
7816
7781
|
"x-resource-type": "access_code"
|
|
7817
7782
|
},
|
|
7818
7783
|
{
|
|
7819
|
-
description: "Code was modified or removed externally after Seam successfully set it on the device.",
|
|
7784
|
+
description: "Code was modified or removed externally after Seam successfully set it on the device. The external change conflicts with the state that Seam is trying to apply, so Seam will attempt to set the code on the device again.",
|
|
7820
7785
|
properties: {
|
|
7821
7786
|
change_type: {
|
|
7822
7787
|
description: "Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.",
|
|
@@ -7830,7 +7795,7 @@ var openapi = {
|
|
|
7830
7795
|
},
|
|
7831
7796
|
error_code: {
|
|
7832
7797
|
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
7833
|
-
enum: ["
|
|
7798
|
+
enum: ["conflicting_external_modification"],
|
|
7834
7799
|
type: "string"
|
|
7835
7800
|
},
|
|
7836
7801
|
is_access_code_error: {
|
|
@@ -8840,7 +8805,7 @@ var openapi = {
|
|
|
8840
8805
|
type: "object"
|
|
8841
8806
|
},
|
|
8842
8807
|
{
|
|
8843
|
-
description: "Code was modified or removed externally after Seam successfully set it on the device.",
|
|
8808
|
+
description: "Code was modified or removed externally after Seam successfully set it on the device. External modification is allowed for this code, so the externally modified state is being honored.",
|
|
8844
8809
|
properties: {
|
|
8845
8810
|
change_type: {
|
|
8846
8811
|
description: "Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.",
|
|
@@ -8882,7 +8847,7 @@ var openapi = {
|
|
|
8882
8847
|
},
|
|
8883
8848
|
warning_code: {
|
|
8884
8849
|
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
8885
|
-
enum: ["
|
|
8850
|
+
enum: ["external_modification_in_effect"],
|
|
8886
8851
|
type: "string"
|
|
8887
8852
|
}
|
|
8888
8853
|
},
|
|
@@ -34166,33 +34131,6 @@ var openapi = {
|
|
|
34166
34131
|
type: "object",
|
|
34167
34132
|
"x-resource-type": "access_code"
|
|
34168
34133
|
},
|
|
34169
|
-
{
|
|
34170
|
-
description: "An attempt to modify this access code was prevented.",
|
|
34171
|
-
properties: {
|
|
34172
|
-
created_at: {
|
|
34173
|
-
description: "Date and time at which Seam created the error.",
|
|
34174
|
-
format: "date-time",
|
|
34175
|
-
type: "string"
|
|
34176
|
-
},
|
|
34177
|
-
error_code: {
|
|
34178
|
-
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
34179
|
-
enum: ["duplicate_code_attempt_prevented"],
|
|
34180
|
-
type: "string"
|
|
34181
|
-
},
|
|
34182
|
-
is_access_code_error: {
|
|
34183
|
-
description: "Indicates that this is an access code error.",
|
|
34184
|
-
enum: [true],
|
|
34185
|
-
type: "boolean"
|
|
34186
|
-
},
|
|
34187
|
-
message: {
|
|
34188
|
-
description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
|
|
34189
|
-
type: "string"
|
|
34190
|
-
}
|
|
34191
|
-
},
|
|
34192
|
-
required: ["message", "is_access_code_error", "error_code"],
|
|
34193
|
-
type: "object",
|
|
34194
|
-
"x-resource-type": "access_code"
|
|
34195
|
-
},
|
|
34196
34134
|
{
|
|
34197
34135
|
description: "No space for access code on device.",
|
|
34198
34136
|
properties: {
|
|
@@ -34221,7 +34159,7 @@ var openapi = {
|
|
|
34221
34159
|
"x-resource-type": "access_code"
|
|
34222
34160
|
},
|
|
34223
34161
|
{
|
|
34224
|
-
description: "Code was modified or removed externally after Seam successfully set it on the device.",
|
|
34162
|
+
description: "Code was modified or removed externally after Seam successfully set it on the device. The external change conflicts with the state that Seam is trying to apply, so Seam will attempt to set the code on the device again.",
|
|
34225
34163
|
properties: {
|
|
34226
34164
|
change_type: {
|
|
34227
34165
|
description: "Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.",
|
|
@@ -34235,7 +34173,7 @@ var openapi = {
|
|
|
34235
34173
|
},
|
|
34236
34174
|
error_code: {
|
|
34237
34175
|
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
34238
|
-
enum: ["
|
|
34176
|
+
enum: ["conflicting_external_modification"],
|
|
34239
34177
|
type: "string"
|
|
34240
34178
|
},
|
|
34241
34179
|
is_access_code_error: {
|
|
@@ -34962,7 +34900,7 @@ var openapi = {
|
|
|
34962
34900
|
type: "object"
|
|
34963
34901
|
},
|
|
34964
34902
|
{
|
|
34965
|
-
description: "Code was modified or removed externally after Seam successfully set it on the device.",
|
|
34903
|
+
description: "Code was modified or removed externally after Seam successfully set it on the device. External modification is allowed for this code, so the externally modified state is being honored.",
|
|
34966
34904
|
properties: {
|
|
34967
34905
|
change_type: {
|
|
34968
34906
|
description: "Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.",
|
|
@@ -35004,7 +34942,7 @@ var openapi = {
|
|
|
35004
34942
|
},
|
|
35005
34943
|
warning_code: {
|
|
35006
34944
|
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
35007
|
-
enum: ["
|
|
34945
|
+
enum: ["external_modification_in_effect"],
|
|
35008
34946
|
type: "string"
|
|
35009
34947
|
}
|
|
35010
34948
|
},
|