@seamapi/types 1.254.0 → 1.255.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 +238 -62
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1186 -0
- 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 +84 -0
- package/lib/seam/connect/openapi.js +154 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +1036 -27
- package/package.json +1 -1
- 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 +156 -0
- package/src/lib/seam/connect/route-types.ts +1135 -13
|
@@ -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"}
|
|
@@ -7899,6 +7899,90 @@ declare const _default: {
|
|
|
7899
7899
|
'x-fern-sdk-method-name': string;
|
|
7900
7900
|
};
|
|
7901
7901
|
};
|
|
7902
|
+
'/acs/encoders/encode_card': {
|
|
7903
|
+
post: {
|
|
7904
|
+
operationId: string;
|
|
7905
|
+
requestBody: {
|
|
7906
|
+
content: {
|
|
7907
|
+
'application/json': {
|
|
7908
|
+
schema: {
|
|
7909
|
+
oneOf: ({
|
|
7910
|
+
properties: {
|
|
7911
|
+
acs_system_id: {
|
|
7912
|
+
format: string;
|
|
7913
|
+
type: string;
|
|
7914
|
+
};
|
|
7915
|
+
device_name: {
|
|
7916
|
+
type: string;
|
|
7917
|
+
};
|
|
7918
|
+
device_id?: never;
|
|
7919
|
+
};
|
|
7920
|
+
required: string[];
|
|
7921
|
+
type: string;
|
|
7922
|
+
} | {
|
|
7923
|
+
properties: {
|
|
7924
|
+
device_id: {
|
|
7925
|
+
format: string;
|
|
7926
|
+
type: string;
|
|
7927
|
+
};
|
|
7928
|
+
acs_system_id?: never;
|
|
7929
|
+
device_name?: never;
|
|
7930
|
+
};
|
|
7931
|
+
required: string[];
|
|
7932
|
+
type: string;
|
|
7933
|
+
})[];
|
|
7934
|
+
};
|
|
7935
|
+
};
|
|
7936
|
+
};
|
|
7937
|
+
};
|
|
7938
|
+
responses: {
|
|
7939
|
+
200: {
|
|
7940
|
+
content: {
|
|
7941
|
+
'application/json': {
|
|
7942
|
+
schema: {
|
|
7943
|
+
properties: {
|
|
7944
|
+
action_attempt: {
|
|
7945
|
+
$ref: string;
|
|
7946
|
+
};
|
|
7947
|
+
ok: {
|
|
7948
|
+
type: string;
|
|
7949
|
+
};
|
|
7950
|
+
};
|
|
7951
|
+
required: string[];
|
|
7952
|
+
type: string;
|
|
7953
|
+
};
|
|
7954
|
+
};
|
|
7955
|
+
};
|
|
7956
|
+
description: string;
|
|
7957
|
+
};
|
|
7958
|
+
400: {
|
|
7959
|
+
description: string;
|
|
7960
|
+
};
|
|
7961
|
+
401: {
|
|
7962
|
+
description: string;
|
|
7963
|
+
};
|
|
7964
|
+
};
|
|
7965
|
+
security: ({
|
|
7966
|
+
pat_with_workspace: never[];
|
|
7967
|
+
console_session?: never;
|
|
7968
|
+
api_key?: never;
|
|
7969
|
+
} | {
|
|
7970
|
+
console_session: never[];
|
|
7971
|
+
pat_with_workspace?: never;
|
|
7972
|
+
api_key?: never;
|
|
7973
|
+
} | {
|
|
7974
|
+
api_key: never[];
|
|
7975
|
+
pat_with_workspace?: never;
|
|
7976
|
+
console_session?: never;
|
|
7977
|
+
})[];
|
|
7978
|
+
summary: string;
|
|
7979
|
+
tags: string[];
|
|
7980
|
+
'x-fern-sdk-group-name': string[];
|
|
7981
|
+
'x-fern-sdk-method-name': string;
|
|
7982
|
+
'x-fern-sdk-return-value': string;
|
|
7983
|
+
'x-undocumented': string;
|
|
7984
|
+
};
|
|
7985
|
+
};
|
|
7902
7986
|
'/acs/encoders/read_card': {
|
|
7903
7987
|
post: {
|
|
7904
7988
|
operationId: string;
|
|
@@ -1190,6 +1190,98 @@ export default {
|
|
|
1190
1190
|
],
|
|
1191
1191
|
type: 'object',
|
|
1192
1192
|
},
|
|
1193
|
+
{
|
|
1194
|
+
description: 'Encoding card data from physical encoder.',
|
|
1195
|
+
properties: {
|
|
1196
|
+
action_attempt_id: {
|
|
1197
|
+
description: 'The ID of the action attempt.',
|
|
1198
|
+
format: 'uuid',
|
|
1199
|
+
type: 'string',
|
|
1200
|
+
'x-title': 'Action Attempt ID',
|
|
1201
|
+
},
|
|
1202
|
+
action_type: { enum: ['ENCODE_CARD'], type: 'string' },
|
|
1203
|
+
error: { nullable: true },
|
|
1204
|
+
result: { nullable: true },
|
|
1205
|
+
status: { enum: ['pending'], type: 'string' },
|
|
1206
|
+
},
|
|
1207
|
+
required: [
|
|
1208
|
+
'action_attempt_id',
|
|
1209
|
+
'status',
|
|
1210
|
+
'result',
|
|
1211
|
+
'error',
|
|
1212
|
+
'action_type',
|
|
1213
|
+
],
|
|
1214
|
+
type: 'object',
|
|
1215
|
+
},
|
|
1216
|
+
{
|
|
1217
|
+
description: 'Encoding card data from physical encoder succeeded.',
|
|
1218
|
+
properties: {
|
|
1219
|
+
action_attempt_id: {
|
|
1220
|
+
description: 'The ID of the action attempt.',
|
|
1221
|
+
format: 'uuid',
|
|
1222
|
+
type: 'string',
|
|
1223
|
+
'x-title': 'Action Attempt ID',
|
|
1224
|
+
},
|
|
1225
|
+
action_type: { enum: ['ENCODE_CARD'], type: 'string' },
|
|
1226
|
+
error: { nullable: true },
|
|
1227
|
+
result: {
|
|
1228
|
+
properties: {
|
|
1229
|
+
acs_credential_id: {
|
|
1230
|
+
description: 'Matching acs_credential currently encoded on this card.',
|
|
1231
|
+
format: 'uuid',
|
|
1232
|
+
nullable: true,
|
|
1233
|
+
type: 'string',
|
|
1234
|
+
},
|
|
1235
|
+
card_number: {
|
|
1236
|
+
description: 'A number or sting that physically identifies this card.',
|
|
1237
|
+
nullable: true,
|
|
1238
|
+
type: 'string',
|
|
1239
|
+
},
|
|
1240
|
+
},
|
|
1241
|
+
required: ['acs_credential_id', 'card_number'],
|
|
1242
|
+
type: 'object',
|
|
1243
|
+
},
|
|
1244
|
+
status: { enum: ['success'], type: 'string' },
|
|
1245
|
+
},
|
|
1246
|
+
required: [
|
|
1247
|
+
'action_attempt_id',
|
|
1248
|
+
'status',
|
|
1249
|
+
'error',
|
|
1250
|
+
'action_type',
|
|
1251
|
+
'result',
|
|
1252
|
+
],
|
|
1253
|
+
type: 'object',
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
description: 'Encoding card data from physical encoder failed.',
|
|
1257
|
+
properties: {
|
|
1258
|
+
action_attempt_id: {
|
|
1259
|
+
description: 'The ID of the action attempt.',
|
|
1260
|
+
format: 'uuid',
|
|
1261
|
+
type: 'string',
|
|
1262
|
+
'x-title': 'Action Attempt ID',
|
|
1263
|
+
},
|
|
1264
|
+
action_type: { enum: ['ENCODE_CARD'], type: 'string' },
|
|
1265
|
+
error: {
|
|
1266
|
+
properties: {
|
|
1267
|
+
message: { type: 'string' },
|
|
1268
|
+
type: { type: 'string' },
|
|
1269
|
+
},
|
|
1270
|
+
required: ['type', 'message'],
|
|
1271
|
+
type: 'object',
|
|
1272
|
+
},
|
|
1273
|
+
result: { nullable: true },
|
|
1274
|
+
status: { enum: ['error'], type: 'string' },
|
|
1275
|
+
},
|
|
1276
|
+
required: [
|
|
1277
|
+
'action_attempt_id',
|
|
1278
|
+
'status',
|
|
1279
|
+
'result',
|
|
1280
|
+
'action_type',
|
|
1281
|
+
'error',
|
|
1282
|
+
],
|
|
1283
|
+
type: 'object',
|
|
1284
|
+
},
|
|
1193
1285
|
{
|
|
1194
1286
|
description: 'Resetting sandbox workspace.',
|
|
1195
1287
|
properties: {
|
|
@@ -7219,6 +7311,68 @@ export default {
|
|
|
7219
7311
|
'x-fern-sdk-method-name': 'update',
|
|
7220
7312
|
},
|
|
7221
7313
|
},
|
|
7314
|
+
'/acs/encoders/encode_card': {
|
|
7315
|
+
post: {
|
|
7316
|
+
operationId: 'acsEncodersEncodeCardPost',
|
|
7317
|
+
requestBody: {
|
|
7318
|
+
content: {
|
|
7319
|
+
'application/json': {
|
|
7320
|
+
schema: {
|
|
7321
|
+
oneOf: [
|
|
7322
|
+
{
|
|
7323
|
+
properties: {
|
|
7324
|
+
acs_system_id: { format: 'uuid', type: 'string' },
|
|
7325
|
+
device_name: { type: 'string' },
|
|
7326
|
+
},
|
|
7327
|
+
required: ['acs_system_id', 'device_name'],
|
|
7328
|
+
type: 'object',
|
|
7329
|
+
},
|
|
7330
|
+
{
|
|
7331
|
+
properties: {
|
|
7332
|
+
device_id: { format: 'uuid', type: 'string' },
|
|
7333
|
+
},
|
|
7334
|
+
required: ['device_id'],
|
|
7335
|
+
type: 'object',
|
|
7336
|
+
},
|
|
7337
|
+
],
|
|
7338
|
+
},
|
|
7339
|
+
},
|
|
7340
|
+
},
|
|
7341
|
+
},
|
|
7342
|
+
responses: {
|
|
7343
|
+
200: {
|
|
7344
|
+
content: {
|
|
7345
|
+
'application/json': {
|
|
7346
|
+
schema: {
|
|
7347
|
+
properties: {
|
|
7348
|
+
action_attempt: {
|
|
7349
|
+
$ref: '#/components/schemas/action_attempt',
|
|
7350
|
+
},
|
|
7351
|
+
ok: { type: 'boolean' },
|
|
7352
|
+
},
|
|
7353
|
+
required: ['action_attempt', 'ok'],
|
|
7354
|
+
type: 'object',
|
|
7355
|
+
},
|
|
7356
|
+
},
|
|
7357
|
+
},
|
|
7358
|
+
description: 'OK',
|
|
7359
|
+
},
|
|
7360
|
+
400: { description: 'Bad Request' },
|
|
7361
|
+
401: { description: 'Unauthorized' },
|
|
7362
|
+
},
|
|
7363
|
+
security: [
|
|
7364
|
+
{ pat_with_workspace: [] },
|
|
7365
|
+
{ console_session: [] },
|
|
7366
|
+
{ api_key: [] },
|
|
7367
|
+
],
|
|
7368
|
+
summary: '/acs/encoders/encode_card',
|
|
7369
|
+
tags: ['/acs'],
|
|
7370
|
+
'x-fern-sdk-group-name': ['acs', 'encoders'],
|
|
7371
|
+
'x-fern-sdk-method-name': 'encode_card',
|
|
7372
|
+
'x-fern-sdk-return-value': 'action_attempt',
|
|
7373
|
+
'x-undocumented': 'Encoding a card is currently unimplemented.',
|
|
7374
|
+
},
|
|
7375
|
+
},
|
|
7222
7376
|
'/acs/encoders/read_card': {
|
|
7223
7377
|
post: {
|
|
7224
7378
|
operationId: 'acsEncodersReadCardPost',
|