@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
|
@@ -82,22 +82,6 @@ export declare const unmanaged_access_code: z.ZodObject<{
|
|
|
82
82
|
message: z.ZodString;
|
|
83
83
|
is_access_code_error: z.ZodLiteral<true>;
|
|
84
84
|
created_at: z.ZodOptional<z.ZodString>;
|
|
85
|
-
} & {
|
|
86
|
-
error_code: z.ZodLiteral<"duplicate_code_attempt_prevented">;
|
|
87
|
-
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
message: string;
|
|
89
|
-
error_code: "duplicate_code_attempt_prevented";
|
|
90
|
-
is_access_code_error: true;
|
|
91
|
-
created_at?: string | undefined;
|
|
92
|
-
}, {
|
|
93
|
-
message: string;
|
|
94
|
-
error_code: "duplicate_code_attempt_prevented";
|
|
95
|
-
is_access_code_error: true;
|
|
96
|
-
created_at?: string | undefined;
|
|
97
|
-
}>, z.ZodObject<{
|
|
98
|
-
message: z.ZodString;
|
|
99
|
-
is_access_code_error: z.ZodLiteral<true>;
|
|
100
|
-
created_at: z.ZodOptional<z.ZodString>;
|
|
101
85
|
} & {
|
|
102
86
|
error_code: z.ZodLiteral<"no_space_for_access_code_on_device">;
|
|
103
87
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -115,7 +99,7 @@ export declare const unmanaged_access_code: z.ZodObject<{
|
|
|
115
99
|
is_access_code_error: z.ZodLiteral<true>;
|
|
116
100
|
created_at: z.ZodOptional<z.ZodString>;
|
|
117
101
|
} & {
|
|
118
|
-
error_code: z.ZodLiteral<"
|
|
102
|
+
error_code: z.ZodLiteral<"conflicting_external_modification">;
|
|
119
103
|
change_type: z.ZodOptional<z.ZodEnum<["modified", "removed"]>>;
|
|
120
104
|
modified_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
121
105
|
field: z.ZodString;
|
|
@@ -132,7 +116,7 @@ export declare const unmanaged_access_code: z.ZodObject<{
|
|
|
132
116
|
}>, "many">>;
|
|
133
117
|
}, "strip", z.ZodTypeAny, {
|
|
134
118
|
message: string;
|
|
135
|
-
error_code: "
|
|
119
|
+
error_code: "conflicting_external_modification";
|
|
136
120
|
is_access_code_error: true;
|
|
137
121
|
created_at?: string | undefined;
|
|
138
122
|
change_type?: "modified" | "removed" | undefined;
|
|
@@ -143,7 +127,7 @@ export declare const unmanaged_access_code: z.ZodObject<{
|
|
|
143
127
|
}[] | undefined;
|
|
144
128
|
}, {
|
|
145
129
|
message: string;
|
|
146
|
-
error_code: "
|
|
130
|
+
error_code: "conflicting_external_modification";
|
|
147
131
|
is_access_code_error: true;
|
|
148
132
|
created_at?: string | undefined;
|
|
149
133
|
change_type?: "modified" | "removed" | undefined;
|
|
@@ -588,7 +572,7 @@ export declare const unmanaged_access_code: z.ZodObject<{
|
|
|
588
572
|
message: z.ZodString;
|
|
589
573
|
created_at: z.ZodOptional<z.ZodString>;
|
|
590
574
|
} & {
|
|
591
|
-
warning_code: z.ZodLiteral<"
|
|
575
|
+
warning_code: z.ZodLiteral<"external_modification_in_effect">;
|
|
592
576
|
change_type: z.ZodOptional<z.ZodEnum<["modified", "removed"]>>;
|
|
593
577
|
modified_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
594
578
|
field: z.ZodString;
|
|
@@ -605,7 +589,7 @@ export declare const unmanaged_access_code: z.ZodObject<{
|
|
|
605
589
|
}>, "many">>;
|
|
606
590
|
}, "strip", z.ZodTypeAny, {
|
|
607
591
|
message: string;
|
|
608
|
-
warning_code: "
|
|
592
|
+
warning_code: "external_modification_in_effect";
|
|
609
593
|
created_at?: string | undefined;
|
|
610
594
|
change_type?: "modified" | "removed" | undefined;
|
|
611
595
|
modified_fields?: {
|
|
@@ -615,7 +599,7 @@ export declare const unmanaged_access_code: z.ZodObject<{
|
|
|
615
599
|
}[] | undefined;
|
|
616
600
|
}, {
|
|
617
601
|
message: string;
|
|
618
|
-
warning_code: "
|
|
602
|
+
warning_code: "external_modification_in_effect";
|
|
619
603
|
created_at?: string | undefined;
|
|
620
604
|
change_type?: "modified" | "removed" | undefined;
|
|
621
605
|
modified_fields?: {
|
|
@@ -874,7 +858,7 @@ export declare const unmanaged_access_code: z.ZodObject<{
|
|
|
874
858
|
created_at?: string | undefined;
|
|
875
859
|
} | {
|
|
876
860
|
message: string;
|
|
877
|
-
error_code: "
|
|
861
|
+
error_code: "conflicting_external_modification";
|
|
878
862
|
is_access_code_error: true;
|
|
879
863
|
created_at?: string | undefined;
|
|
880
864
|
change_type?: "modified" | "removed" | undefined;
|
|
@@ -900,11 +884,6 @@ export declare const unmanaged_access_code: z.ZodObject<{
|
|
|
900
884
|
created_at?: string | undefined;
|
|
901
885
|
unmanaged_access_code_id?: string | undefined;
|
|
902
886
|
managed_access_code_id?: string | undefined;
|
|
903
|
-
} | {
|
|
904
|
-
message: string;
|
|
905
|
-
error_code: "duplicate_code_attempt_prevented";
|
|
906
|
-
is_access_code_error: true;
|
|
907
|
-
created_at?: string | undefined;
|
|
908
887
|
} | {
|
|
909
888
|
message: string;
|
|
910
889
|
error_code: "no_space_for_access_code_on_device";
|
|
@@ -923,7 +902,7 @@ export declare const unmanaged_access_code: z.ZodObject<{
|
|
|
923
902
|
})[];
|
|
924
903
|
warnings: ({
|
|
925
904
|
message: string;
|
|
926
|
-
warning_code: "
|
|
905
|
+
warning_code: "external_modification_in_effect";
|
|
927
906
|
created_at?: string | undefined;
|
|
928
907
|
change_type?: "modified" | "removed" | undefined;
|
|
929
908
|
modified_fields?: {
|
|
@@ -1109,7 +1088,7 @@ export declare const unmanaged_access_code: z.ZodObject<{
|
|
|
1109
1088
|
created_at?: string | undefined;
|
|
1110
1089
|
} | {
|
|
1111
1090
|
message: string;
|
|
1112
|
-
error_code: "
|
|
1091
|
+
error_code: "conflicting_external_modification";
|
|
1113
1092
|
is_access_code_error: true;
|
|
1114
1093
|
created_at?: string | undefined;
|
|
1115
1094
|
change_type?: "modified" | "removed" | undefined;
|
|
@@ -1135,11 +1114,6 @@ export declare const unmanaged_access_code: z.ZodObject<{
|
|
|
1135
1114
|
created_at?: string | undefined;
|
|
1136
1115
|
unmanaged_access_code_id?: string | undefined;
|
|
1137
1116
|
managed_access_code_id?: string | undefined;
|
|
1138
|
-
} | {
|
|
1139
|
-
message: string;
|
|
1140
|
-
error_code: "duplicate_code_attempt_prevented";
|
|
1141
|
-
is_access_code_error: true;
|
|
1142
|
-
created_at?: string | undefined;
|
|
1143
1117
|
} | {
|
|
1144
1118
|
message: string;
|
|
1145
1119
|
error_code: "no_space_for_access_code_on_device";
|
|
@@ -1158,7 +1132,7 @@ export declare const unmanaged_access_code: z.ZodObject<{
|
|
|
1158
1132
|
})[];
|
|
1159
1133
|
warnings: ({
|
|
1160
1134
|
message: string;
|
|
1161
|
-
warning_code: "
|
|
1135
|
+
warning_code: "external_modification_in_effect";
|
|
1162
1136
|
created_at?: string | undefined;
|
|
1163
1137
|
change_type?: "modified" | "removed" | undefined;
|
|
1164
1138
|
modified_fields?: {
|
|
@@ -200,33 +200,6 @@ const openapi = {
|
|
|
200
200
|
type: 'object',
|
|
201
201
|
'x-resource-type': 'access_code',
|
|
202
202
|
},
|
|
203
|
-
{
|
|
204
|
-
description: 'An attempt to modify this access code was prevented.',
|
|
205
|
-
properties: {
|
|
206
|
-
created_at: {
|
|
207
|
-
description: 'Date and time at which Seam created the error.',
|
|
208
|
-
format: 'date-time',
|
|
209
|
-
type: 'string',
|
|
210
|
-
},
|
|
211
|
-
error_code: {
|
|
212
|
-
description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
213
|
-
enum: ['duplicate_code_attempt_prevented'],
|
|
214
|
-
type: 'string',
|
|
215
|
-
},
|
|
216
|
-
is_access_code_error: {
|
|
217
|
-
description: 'Indicates that this is an access code error.',
|
|
218
|
-
enum: [true],
|
|
219
|
-
type: 'boolean',
|
|
220
|
-
},
|
|
221
|
-
message: {
|
|
222
|
-
description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
223
|
-
type: 'string',
|
|
224
|
-
},
|
|
225
|
-
},
|
|
226
|
-
required: ['message', 'is_access_code_error', 'error_code'],
|
|
227
|
-
type: 'object',
|
|
228
|
-
'x-resource-type': 'access_code',
|
|
229
|
-
},
|
|
230
203
|
{
|
|
231
204
|
description: 'No space for access code on device.',
|
|
232
205
|
properties: {
|
|
@@ -255,7 +228,7 @@ const openapi = {
|
|
|
255
228
|
'x-resource-type': 'access_code',
|
|
256
229
|
},
|
|
257
230
|
{
|
|
258
|
-
description: 'Code was modified or removed externally after Seam successfully set it on the device.',
|
|
231
|
+
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.',
|
|
259
232
|
properties: {
|
|
260
233
|
change_type: {
|
|
261
234
|
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.",
|
|
@@ -269,7 +242,7 @@ const openapi = {
|
|
|
269
242
|
},
|
|
270
243
|
error_code: {
|
|
271
244
|
description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
272
|
-
enum: ['
|
|
245
|
+
enum: ['conflicting_external_modification'],
|
|
273
246
|
type: 'string',
|
|
274
247
|
},
|
|
275
248
|
is_access_code_error: {
|
|
@@ -1279,7 +1252,7 @@ const openapi = {
|
|
|
1279
1252
|
type: 'object',
|
|
1280
1253
|
},
|
|
1281
1254
|
{
|
|
1282
|
-
description: 'Code was modified or removed externally after Seam successfully set it on the device.',
|
|
1255
|
+
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.',
|
|
1283
1256
|
properties: {
|
|
1284
1257
|
change_type: {
|
|
1285
1258
|
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.",
|
|
@@ -1321,7 +1294,7 @@ const openapi = {
|
|
|
1321
1294
|
},
|
|
1322
1295
|
warning_code: {
|
|
1323
1296
|
description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
1324
|
-
enum: ['
|
|
1297
|
+
enum: ['external_modification_in_effect'],
|
|
1325
1298
|
type: 'string',
|
|
1326
1299
|
},
|
|
1327
1300
|
},
|
|
@@ -26605,33 +26578,6 @@ const openapi = {
|
|
|
26605
26578
|
type: 'object',
|
|
26606
26579
|
'x-resource-type': 'access_code',
|
|
26607
26580
|
},
|
|
26608
|
-
{
|
|
26609
|
-
description: 'An attempt to modify this access code was prevented.',
|
|
26610
|
-
properties: {
|
|
26611
|
-
created_at: {
|
|
26612
|
-
description: 'Date and time at which Seam created the error.',
|
|
26613
|
-
format: 'date-time',
|
|
26614
|
-
type: 'string',
|
|
26615
|
-
},
|
|
26616
|
-
error_code: {
|
|
26617
|
-
description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
26618
|
-
enum: ['duplicate_code_attempt_prevented'],
|
|
26619
|
-
type: 'string',
|
|
26620
|
-
},
|
|
26621
|
-
is_access_code_error: {
|
|
26622
|
-
description: 'Indicates that this is an access code error.',
|
|
26623
|
-
enum: [true],
|
|
26624
|
-
type: 'boolean',
|
|
26625
|
-
},
|
|
26626
|
-
message: {
|
|
26627
|
-
description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
26628
|
-
type: 'string',
|
|
26629
|
-
},
|
|
26630
|
-
},
|
|
26631
|
-
required: ['message', 'is_access_code_error', 'error_code'],
|
|
26632
|
-
type: 'object',
|
|
26633
|
-
'x-resource-type': 'access_code',
|
|
26634
|
-
},
|
|
26635
26581
|
{
|
|
26636
26582
|
description: 'No space for access code on device.',
|
|
26637
26583
|
properties: {
|
|
@@ -26660,7 +26606,7 @@ const openapi = {
|
|
|
26660
26606
|
'x-resource-type': 'access_code',
|
|
26661
26607
|
},
|
|
26662
26608
|
{
|
|
26663
|
-
description: 'Code was modified or removed externally after Seam successfully set it on the device.',
|
|
26609
|
+
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.',
|
|
26664
26610
|
properties: {
|
|
26665
26611
|
change_type: {
|
|
26666
26612
|
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.",
|
|
@@ -26674,7 +26620,7 @@ const openapi = {
|
|
|
26674
26620
|
},
|
|
26675
26621
|
error_code: {
|
|
26676
26622
|
description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
26677
|
-
enum: ['
|
|
26623
|
+
enum: ['conflicting_external_modification'],
|
|
26678
26624
|
type: 'string',
|
|
26679
26625
|
},
|
|
26680
26626
|
is_access_code_error: {
|
|
@@ -27401,7 +27347,7 @@ const openapi = {
|
|
|
27401
27347
|
type: 'object',
|
|
27402
27348
|
},
|
|
27403
27349
|
{
|
|
27404
|
-
description: 'Code was modified or removed externally after Seam successfully set it on the device.',
|
|
27350
|
+
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.',
|
|
27405
27351
|
properties: {
|
|
27406
27352
|
change_type: {
|
|
27407
27353
|
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.",
|
|
@@ -27443,7 +27389,7 @@ const openapi = {
|
|
|
27443
27389
|
},
|
|
27444
27390
|
warning_code: {
|
|
27445
27391
|
description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
27446
|
-
enum: ['
|
|
27392
|
+
enum: ['external_modification_in_effect'],
|
|
27447
27393
|
type: 'string',
|
|
27448
27394
|
},
|
|
27449
27395
|
},
|