@seamapi/types 1.254.0 → 1.256.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 +273 -63
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1314 -0
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +48 -0
- package/lib/seam/connect/models/acs/acs-entrance.js +2 -1
- package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
- package/lib/seam/connect/models/acs/metadata/salto.d.ts +23 -2
- package/lib/seam/connect/models/acs/metadata/salto.js +8 -1
- package/lib/seam/connect/models/acs/metadata/salto.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +93 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/encode-card.d.ts +96 -0
- package/lib/seam/connect/models/action-attempts/encode-card.js +36 -0
- package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -0
- package/lib/seam/connect/openapi.d.ts +114 -0
- package/lib/seam/connect/openapi.js +177 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +1086 -27
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-entrance.ts +2 -0
- package/src/lib/seam/connect/models/acs/metadata/salto.ts +10 -3
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
- package/src/lib/seam/connect/models/action-attempts/encode-card.ts +46 -0
- package/src/lib/seam/connect/openapi.ts +179 -0
- package/src/lib/seam/connect/route-types.ts +1195 -13
|
@@ -58,6 +58,34 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
58
58
|
visionline_door_profile_type: "BLE" | "commonDoor" | "touch";
|
|
59
59
|
}[] | undefined;
|
|
60
60
|
}>>;
|
|
61
|
+
salto_ks_metadata: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
door_name: z.ZodString;
|
|
63
|
+
locked_state: z.ZodString;
|
|
64
|
+
lock_type: z.ZodString;
|
|
65
|
+
online: z.ZodBoolean;
|
|
66
|
+
battery_level: z.ZodString;
|
|
67
|
+
left_open_alarm: z.ZodBoolean;
|
|
68
|
+
intrusion_alarm: z.ZodBoolean;
|
|
69
|
+
privacy_mode: z.ZodBoolean;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
online: boolean;
|
|
72
|
+
lock_type: string;
|
|
73
|
+
battery_level: string;
|
|
74
|
+
locked_state: string;
|
|
75
|
+
door_name: string;
|
|
76
|
+
left_open_alarm: boolean;
|
|
77
|
+
intrusion_alarm: boolean;
|
|
78
|
+
privacy_mode: boolean;
|
|
79
|
+
}, {
|
|
80
|
+
online: boolean;
|
|
81
|
+
lock_type: string;
|
|
82
|
+
battery_level: string;
|
|
83
|
+
locked_state: string;
|
|
84
|
+
door_name: string;
|
|
85
|
+
left_open_alarm: boolean;
|
|
86
|
+
intrusion_alarm: boolean;
|
|
87
|
+
privacy_mode: boolean;
|
|
88
|
+
}>>;
|
|
61
89
|
}, "strip", z.ZodTypeAny, {
|
|
62
90
|
created_at: string;
|
|
63
91
|
errors: {
|
|
@@ -81,6 +109,16 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
81
109
|
accessibility_type: string;
|
|
82
110
|
door_type: string;
|
|
83
111
|
} | undefined;
|
|
112
|
+
salto_ks_metadata?: {
|
|
113
|
+
online: boolean;
|
|
114
|
+
lock_type: string;
|
|
115
|
+
battery_level: string;
|
|
116
|
+
locked_state: string;
|
|
117
|
+
door_name: string;
|
|
118
|
+
left_open_alarm: boolean;
|
|
119
|
+
intrusion_alarm: boolean;
|
|
120
|
+
privacy_mode: boolean;
|
|
121
|
+
} | undefined;
|
|
84
122
|
}, {
|
|
85
123
|
created_at: string;
|
|
86
124
|
errors: {
|
|
@@ -104,5 +142,15 @@ export declare const acs_entrance: z.ZodObject<{
|
|
|
104
142
|
accessibility_type: string;
|
|
105
143
|
door_type: string;
|
|
106
144
|
} | undefined;
|
|
145
|
+
salto_ks_metadata?: {
|
|
146
|
+
online: boolean;
|
|
147
|
+
lock_type: string;
|
|
148
|
+
battery_level: string;
|
|
149
|
+
locked_state: string;
|
|
150
|
+
door_name: string;
|
|
151
|
+
left_open_alarm: boolean;
|
|
152
|
+
intrusion_alarm: boolean;
|
|
153
|
+
privacy_mode: boolean;
|
|
154
|
+
} | undefined;
|
|
107
155
|
}>;
|
|
108
156
|
export type AcsEntrance = z.infer<typeof acs_entrance>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { acs_entrance_latch_metadata, acs_entrance_visionline_metadata, } from './metadata/index.js';
|
|
2
|
+
import { acs_entrance_latch_metadata, acs_entrance_salto_ks_metadata, acs_entrance_visionline_metadata, } from './metadata/index.js';
|
|
3
3
|
export const acs_entrance = z.object({
|
|
4
4
|
acs_system_id: z.string().uuid(),
|
|
5
5
|
acs_entrance_id: z.string().uuid(),
|
|
@@ -11,5 +11,6 @@ export const acs_entrance = z.object({
|
|
|
11
11
|
})),
|
|
12
12
|
latch_metadata: acs_entrance_latch_metadata.optional(),
|
|
13
13
|
visionline_metadata: acs_entrance_visionline_metadata.optional(),
|
|
14
|
+
salto_ks_metadata: acs_entrance_salto_ks_metadata.optional(),
|
|
14
15
|
});
|
|
15
16
|
//# sourceMappingURL=acs-entrance.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acs-entrance.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-entrance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,2BAA2B,EAC3B,gCAAgC,GACjC,MAAM,qBAAqB,CAAA;AAE5B,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAClC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,MAAM,EAAE,CAAC,CAAC,KAAK,CACb,CAAC,CAAC,MAAM,CAAC;QACP,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;IACD,cAAc,EAAE,2BAA2B,CAAC,QAAQ,EAAE;IACtD,mBAAmB,EAAE,gCAAgC,CAAC,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"acs-entrance.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-entrance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,2BAA2B,EAC3B,8BAA8B,EAC9B,gCAAgC,GACjC,MAAM,qBAAqB,CAAA;AAE5B,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAClC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,MAAM,EAAE,CAAC,CAAC,KAAK,CACb,CAAC,CAAC,MAAM,CAAC;QACP,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;IACD,cAAc,EAAE,2BAA2B,CAAC,QAAQ,EAAE;IACtD,mBAAmB,EAAE,gCAAgC,CAAC,QAAQ,EAAE;IAChE,iBAAiB,EAAE,8BAA8B,CAAC,QAAQ,EAAE;CAC7D,CAAC,CAAA"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const acs_entrance_salto_ks_metadata: z.ZodObject<{
|
|
3
3
|
door_name: z.ZodString;
|
|
4
|
+
locked_state: z.ZodString;
|
|
5
|
+
lock_type: z.ZodString;
|
|
6
|
+
online: z.ZodBoolean;
|
|
7
|
+
battery_level: z.ZodString;
|
|
8
|
+
left_open_alarm: z.ZodBoolean;
|
|
9
|
+
intrusion_alarm: z.ZodBoolean;
|
|
10
|
+
privacy_mode: z.ZodBoolean;
|
|
4
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
online: boolean;
|
|
13
|
+
lock_type: string;
|
|
14
|
+
battery_level: string;
|
|
15
|
+
locked_state: string;
|
|
5
16
|
door_name: string;
|
|
17
|
+
left_open_alarm: boolean;
|
|
18
|
+
intrusion_alarm: boolean;
|
|
19
|
+
privacy_mode: boolean;
|
|
6
20
|
}, {
|
|
21
|
+
online: boolean;
|
|
22
|
+
lock_type: string;
|
|
23
|
+
battery_level: string;
|
|
24
|
+
locked_state: string;
|
|
7
25
|
door_name: string;
|
|
26
|
+
left_open_alarm: boolean;
|
|
27
|
+
intrusion_alarm: boolean;
|
|
28
|
+
privacy_mode: boolean;
|
|
8
29
|
}>;
|
|
9
|
-
export type
|
|
30
|
+
export type AcsEntranceSaltoKSMetadata = z.infer<typeof acs_entrance_salto_ks_metadata>;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export const
|
|
2
|
+
export const acs_entrance_salto_ks_metadata = z.object({
|
|
3
3
|
door_name: z.string(),
|
|
4
|
+
locked_state: z.string(),
|
|
5
|
+
lock_type: z.string(),
|
|
6
|
+
online: z.boolean(),
|
|
7
|
+
battery_level: z.string(),
|
|
8
|
+
left_open_alarm: z.boolean(),
|
|
9
|
+
intrusion_alarm: z.boolean(),
|
|
10
|
+
privacy_mode: z.boolean(),
|
|
4
11
|
});
|
|
5
12
|
//# sourceMappingURL=salto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"salto.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/acs/metadata/salto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"salto.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/acs/metadata/salto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE;IAC5B,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE;IAC5B,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;CAC1B,CAAC,CAAA"}
|
|
@@ -255,6 +255,99 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
255
255
|
status: z.ZodLiteral<"pending">;
|
|
256
256
|
result: z.ZodNull;
|
|
257
257
|
error: z.ZodNull;
|
|
258
|
+
}>, {
|
|
259
|
+
action_type: z.ZodLiteral<"ENCODE_CARD">;
|
|
260
|
+
}>, "strip", z.ZodTypeAny, {
|
|
261
|
+
error: null;
|
|
262
|
+
status: "pending";
|
|
263
|
+
action_attempt_id: string;
|
|
264
|
+
result: null;
|
|
265
|
+
action_type: "ENCODE_CARD";
|
|
266
|
+
}, {
|
|
267
|
+
error: null;
|
|
268
|
+
status: "pending";
|
|
269
|
+
action_attempt_id: string;
|
|
270
|
+
result: null;
|
|
271
|
+
action_type: "ENCODE_CARD";
|
|
272
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
273
|
+
action_attempt_id: z.ZodString;
|
|
274
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
275
|
+
}, {
|
|
276
|
+
status: z.ZodLiteral<"success">;
|
|
277
|
+
error: z.ZodNull;
|
|
278
|
+
}>, {
|
|
279
|
+
action_type: z.ZodLiteral<"ENCODE_CARD">;
|
|
280
|
+
result: z.ZodObject<{
|
|
281
|
+
acs_credential_id: z.ZodNullable<z.ZodString>;
|
|
282
|
+
card_number: z.ZodNullable<z.ZodString>;
|
|
283
|
+
}, "strip", z.ZodTypeAny, {
|
|
284
|
+
acs_credential_id: string | null;
|
|
285
|
+
card_number: string | null;
|
|
286
|
+
}, {
|
|
287
|
+
acs_credential_id: string | null;
|
|
288
|
+
card_number: string | null;
|
|
289
|
+
}>;
|
|
290
|
+
}>, "strip", z.ZodTypeAny, {
|
|
291
|
+
error: null;
|
|
292
|
+
status: "success";
|
|
293
|
+
action_attempt_id: string;
|
|
294
|
+
result: {
|
|
295
|
+
acs_credential_id: string | null;
|
|
296
|
+
card_number: string | null;
|
|
297
|
+
};
|
|
298
|
+
action_type: "ENCODE_CARD";
|
|
299
|
+
}, {
|
|
300
|
+
error: null;
|
|
301
|
+
status: "success";
|
|
302
|
+
action_attempt_id: string;
|
|
303
|
+
result: {
|
|
304
|
+
acs_credential_id: string | null;
|
|
305
|
+
card_number: string | null;
|
|
306
|
+
};
|
|
307
|
+
action_type: "ENCODE_CARD";
|
|
308
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
309
|
+
action_attempt_id: z.ZodString;
|
|
310
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
311
|
+
}, {
|
|
312
|
+
status: z.ZodLiteral<"error">;
|
|
313
|
+
result: z.ZodNull;
|
|
314
|
+
}>, {
|
|
315
|
+
action_type: z.ZodLiteral<"ENCODE_CARD">;
|
|
316
|
+
error: z.ZodObject<{
|
|
317
|
+
type: z.ZodString;
|
|
318
|
+
message: z.ZodString;
|
|
319
|
+
}, "strip", z.ZodTypeAny, {
|
|
320
|
+
type: string;
|
|
321
|
+
message: string;
|
|
322
|
+
}, {
|
|
323
|
+
type: string;
|
|
324
|
+
message: string;
|
|
325
|
+
}>;
|
|
326
|
+
}>, "strip", z.ZodTypeAny, {
|
|
327
|
+
error: {
|
|
328
|
+
type: string;
|
|
329
|
+
message: string;
|
|
330
|
+
};
|
|
331
|
+
status: "error";
|
|
332
|
+
action_attempt_id: string;
|
|
333
|
+
result: null;
|
|
334
|
+
action_type: "ENCODE_CARD";
|
|
335
|
+
}, {
|
|
336
|
+
error: {
|
|
337
|
+
type: string;
|
|
338
|
+
message: string;
|
|
339
|
+
};
|
|
340
|
+
status: "error";
|
|
341
|
+
action_attempt_id: string;
|
|
342
|
+
result: null;
|
|
343
|
+
action_type: "ENCODE_CARD";
|
|
344
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
345
|
+
action_attempt_id: z.ZodString;
|
|
346
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
347
|
+
}, {
|
|
348
|
+
status: z.ZodLiteral<"pending">;
|
|
349
|
+
result: z.ZodNull;
|
|
350
|
+
error: z.ZodNull;
|
|
258
351
|
}>, {
|
|
259
352
|
action_type: z.ZodLiteral<"RESET_SANDBOX_WORKSPACE">;
|
|
260
353
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { activate_climate_preset_action_attempt } from './activate-climate-preset.js';
|
|
3
3
|
import { deprecated_action_attempts } from './deprecated.js';
|
|
4
|
+
import { encode_card_action_attempt } from './encode-card.js';
|
|
4
5
|
import { lock_door_action_attempt } from './lock-door.js';
|
|
5
6
|
import { read_card_action_attempt } from './read-card.js';
|
|
6
7
|
import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspace.js';
|
|
@@ -14,6 +15,7 @@ export const action_attempt = z.union([
|
|
|
14
15
|
...lock_door_action_attempt.options,
|
|
15
16
|
...unlock_door_action_attempt.options,
|
|
16
17
|
...read_card_action_attempt.options,
|
|
18
|
+
...encode_card_action_attempt.options,
|
|
17
19
|
...reset_sandbox_workspace_action_attempt.options,
|
|
18
20
|
...set_cool_action_attempt.options,
|
|
19
21
|
...set_heat_action_attempt.options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,iCAAiC,CAAC,OAAO;IAC5C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,0BAA0B;CAC9B,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,iCAAiC,CAAC,OAAO;IAC5C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,0BAA0B;CAC9B,CAAC,CAAA"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const encode_card_action_attempt: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3
|
+
action_attempt_id: z.ZodString;
|
|
4
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
5
|
+
}, {
|
|
6
|
+
status: z.ZodLiteral<"pending">;
|
|
7
|
+
result: z.ZodNull;
|
|
8
|
+
error: z.ZodNull;
|
|
9
|
+
}>, {
|
|
10
|
+
action_type: z.ZodLiteral<"ENCODE_CARD">;
|
|
11
|
+
}>, "strip", z.ZodTypeAny, {
|
|
12
|
+
error: null;
|
|
13
|
+
status: "pending";
|
|
14
|
+
action_attempt_id: string;
|
|
15
|
+
result: null;
|
|
16
|
+
action_type: "ENCODE_CARD";
|
|
17
|
+
}, {
|
|
18
|
+
error: null;
|
|
19
|
+
status: "pending";
|
|
20
|
+
action_attempt_id: string;
|
|
21
|
+
result: null;
|
|
22
|
+
action_type: "ENCODE_CARD";
|
|
23
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
24
|
+
action_attempt_id: z.ZodString;
|
|
25
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
26
|
+
}, {
|
|
27
|
+
status: z.ZodLiteral<"success">;
|
|
28
|
+
error: z.ZodNull;
|
|
29
|
+
}>, {
|
|
30
|
+
action_type: z.ZodLiteral<"ENCODE_CARD">;
|
|
31
|
+
result: z.ZodObject<{
|
|
32
|
+
acs_credential_id: z.ZodNullable<z.ZodString>;
|
|
33
|
+
card_number: z.ZodNullable<z.ZodString>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
acs_credential_id: string | null;
|
|
36
|
+
card_number: string | null;
|
|
37
|
+
}, {
|
|
38
|
+
acs_credential_id: string | null;
|
|
39
|
+
card_number: string | null;
|
|
40
|
+
}>;
|
|
41
|
+
}>, "strip", z.ZodTypeAny, {
|
|
42
|
+
error: null;
|
|
43
|
+
status: "success";
|
|
44
|
+
action_attempt_id: string;
|
|
45
|
+
result: {
|
|
46
|
+
acs_credential_id: string | null;
|
|
47
|
+
card_number: string | null;
|
|
48
|
+
};
|
|
49
|
+
action_type: "ENCODE_CARD";
|
|
50
|
+
}, {
|
|
51
|
+
error: null;
|
|
52
|
+
status: "success";
|
|
53
|
+
action_attempt_id: string;
|
|
54
|
+
result: {
|
|
55
|
+
acs_credential_id: string | null;
|
|
56
|
+
card_number: string | null;
|
|
57
|
+
};
|
|
58
|
+
action_type: "ENCODE_CARD";
|
|
59
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
60
|
+
action_attempt_id: z.ZodString;
|
|
61
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
62
|
+
}, {
|
|
63
|
+
status: z.ZodLiteral<"error">;
|
|
64
|
+
result: z.ZodNull;
|
|
65
|
+
}>, {
|
|
66
|
+
action_type: z.ZodLiteral<"ENCODE_CARD">;
|
|
67
|
+
error: z.ZodObject<{
|
|
68
|
+
type: z.ZodString;
|
|
69
|
+
message: z.ZodString;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
type: string;
|
|
72
|
+
message: string;
|
|
73
|
+
}, {
|
|
74
|
+
type: string;
|
|
75
|
+
message: string;
|
|
76
|
+
}>;
|
|
77
|
+
}>, "strip", z.ZodTypeAny, {
|
|
78
|
+
error: {
|
|
79
|
+
type: string;
|
|
80
|
+
message: string;
|
|
81
|
+
};
|
|
82
|
+
status: "error";
|
|
83
|
+
action_attempt_id: string;
|
|
84
|
+
result: null;
|
|
85
|
+
action_type: "ENCODE_CARD";
|
|
86
|
+
}, {
|
|
87
|
+
error: {
|
|
88
|
+
type: string;
|
|
89
|
+
message: string;
|
|
90
|
+
};
|
|
91
|
+
status: "error";
|
|
92
|
+
action_attempt_id: string;
|
|
93
|
+
result: null;
|
|
94
|
+
action_type: "ENCODE_CARD";
|
|
95
|
+
}>]>;
|
|
96
|
+
export type EncodeCardActionAttempt = z.infer<typeof encode_card_action_attempt>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
3
|
+
const action_type = z.literal('ENCODE_CARD');
|
|
4
|
+
const error = z.object({
|
|
5
|
+
type: z.string(), // TODO This should be typed properly with the possible errors
|
|
6
|
+
message: z.string(),
|
|
7
|
+
});
|
|
8
|
+
const result = z.object({
|
|
9
|
+
acs_credential_id: z
|
|
10
|
+
.string()
|
|
11
|
+
.uuid()
|
|
12
|
+
.nullable()
|
|
13
|
+
.describe('Matching acs_credential currently encoded on this card.'),
|
|
14
|
+
card_number: z
|
|
15
|
+
.string()
|
|
16
|
+
.nullable()
|
|
17
|
+
.describe('A number or sting that physically identifies this card.'),
|
|
18
|
+
// TODO visionline_metadata: visionline_credential_metadata,
|
|
19
|
+
});
|
|
20
|
+
export const encode_card_action_attempt = z.discriminatedUnion('status', [
|
|
21
|
+
common_pending_action_attempt
|
|
22
|
+
.extend({
|
|
23
|
+
action_type,
|
|
24
|
+
})
|
|
25
|
+
.describe('Encoding card data from physical encoder.'),
|
|
26
|
+
common_succeeded_action_attempt
|
|
27
|
+
.extend({
|
|
28
|
+
action_type,
|
|
29
|
+
result,
|
|
30
|
+
})
|
|
31
|
+
.describe('Encoding card data from physical encoder succeeded.'),
|
|
32
|
+
common_failed_action_attempt
|
|
33
|
+
.extend({ action_type, error })
|
|
34
|
+
.describe('Encoding card data from physical encoder failed.'),
|
|
35
|
+
]);
|
|
36
|
+
//# sourceMappingURL=encode-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encode-card.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/encode-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAA;AAE5C,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,8DAA8D;IAChF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,iBAAiB,EAAE,CAAC;SACjB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;IACtE,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;IACtE,4DAA4D;CAC7D,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IACvE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,2CAA2C,CAAC;IACxD,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,qDAAqD,CAAC;IAClE,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,kDAAkD,CAAC;CAChE,CAAC,CAAA"}
|
|
@@ -486,6 +486,36 @@ declare const _default: {
|
|
|
486
486
|
required: string[];
|
|
487
487
|
type: string;
|
|
488
488
|
};
|
|
489
|
+
salto_ks_metadata: {
|
|
490
|
+
properties: {
|
|
491
|
+
battery_level: {
|
|
492
|
+
type: string;
|
|
493
|
+
};
|
|
494
|
+
door_name: {
|
|
495
|
+
type: string;
|
|
496
|
+
};
|
|
497
|
+
intrusion_alarm: {
|
|
498
|
+
type: string;
|
|
499
|
+
};
|
|
500
|
+
left_open_alarm: {
|
|
501
|
+
type: string;
|
|
502
|
+
};
|
|
503
|
+
lock_type: {
|
|
504
|
+
type: string;
|
|
505
|
+
};
|
|
506
|
+
locked_state: {
|
|
507
|
+
type: string;
|
|
508
|
+
};
|
|
509
|
+
online: {
|
|
510
|
+
type: string;
|
|
511
|
+
};
|
|
512
|
+
privacy_mode: {
|
|
513
|
+
type: string;
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
required: string[];
|
|
517
|
+
type: string;
|
|
518
|
+
};
|
|
489
519
|
visionline_metadata: {
|
|
490
520
|
properties: {
|
|
491
521
|
door_category: {
|
|
@@ -7899,6 +7929,90 @@ declare const _default: {
|
|
|
7899
7929
|
'x-fern-sdk-method-name': string;
|
|
7900
7930
|
};
|
|
7901
7931
|
};
|
|
7932
|
+
'/acs/encoders/encode_card': {
|
|
7933
|
+
post: {
|
|
7934
|
+
operationId: string;
|
|
7935
|
+
requestBody: {
|
|
7936
|
+
content: {
|
|
7937
|
+
'application/json': {
|
|
7938
|
+
schema: {
|
|
7939
|
+
oneOf: ({
|
|
7940
|
+
properties: {
|
|
7941
|
+
acs_system_id: {
|
|
7942
|
+
format: string;
|
|
7943
|
+
type: string;
|
|
7944
|
+
};
|
|
7945
|
+
device_name: {
|
|
7946
|
+
type: string;
|
|
7947
|
+
};
|
|
7948
|
+
device_id?: never;
|
|
7949
|
+
};
|
|
7950
|
+
required: string[];
|
|
7951
|
+
type: string;
|
|
7952
|
+
} | {
|
|
7953
|
+
properties: {
|
|
7954
|
+
device_id: {
|
|
7955
|
+
format: string;
|
|
7956
|
+
type: string;
|
|
7957
|
+
};
|
|
7958
|
+
acs_system_id?: never;
|
|
7959
|
+
device_name?: never;
|
|
7960
|
+
};
|
|
7961
|
+
required: string[];
|
|
7962
|
+
type: string;
|
|
7963
|
+
})[];
|
|
7964
|
+
};
|
|
7965
|
+
};
|
|
7966
|
+
};
|
|
7967
|
+
};
|
|
7968
|
+
responses: {
|
|
7969
|
+
200: {
|
|
7970
|
+
content: {
|
|
7971
|
+
'application/json': {
|
|
7972
|
+
schema: {
|
|
7973
|
+
properties: {
|
|
7974
|
+
action_attempt: {
|
|
7975
|
+
$ref: string;
|
|
7976
|
+
};
|
|
7977
|
+
ok: {
|
|
7978
|
+
type: string;
|
|
7979
|
+
};
|
|
7980
|
+
};
|
|
7981
|
+
required: string[];
|
|
7982
|
+
type: string;
|
|
7983
|
+
};
|
|
7984
|
+
};
|
|
7985
|
+
};
|
|
7986
|
+
description: string;
|
|
7987
|
+
};
|
|
7988
|
+
400: {
|
|
7989
|
+
description: string;
|
|
7990
|
+
};
|
|
7991
|
+
401: {
|
|
7992
|
+
description: string;
|
|
7993
|
+
};
|
|
7994
|
+
};
|
|
7995
|
+
security: ({
|
|
7996
|
+
pat_with_workspace: never[];
|
|
7997
|
+
console_session?: never;
|
|
7998
|
+
api_key?: never;
|
|
7999
|
+
} | {
|
|
8000
|
+
console_session: never[];
|
|
8001
|
+
pat_with_workspace?: never;
|
|
8002
|
+
api_key?: never;
|
|
8003
|
+
} | {
|
|
8004
|
+
api_key: never[];
|
|
8005
|
+
pat_with_workspace?: never;
|
|
8006
|
+
console_session?: never;
|
|
8007
|
+
})[];
|
|
8008
|
+
summary: string;
|
|
8009
|
+
tags: string[];
|
|
8010
|
+
'x-fern-sdk-group-name': string[];
|
|
8011
|
+
'x-fern-sdk-method-name': string;
|
|
8012
|
+
'x-fern-sdk-return-value': string;
|
|
8013
|
+
'x-undocumented': string;
|
|
8014
|
+
};
|
|
8015
|
+
};
|
|
7902
8016
|
'/acs/encoders/read_card': {
|
|
7903
8017
|
post: {
|
|
7904
8018
|
operationId: string;
|