@seamapi/types 1.277.0 → 1.278.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 +53 -11
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +285 -27
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +48 -7
- package/lib/seam/connect/models/action-attempts/encode-card.d.ts +22 -7
- package/lib/seam/connect/models/action-attempts/encode-card.js +10 -2
- package/lib/seam/connect/models/action-attempts/encode-card.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/scan-card.d.ts +26 -0
- package/lib/seam/connect/models/action-attempts/scan-card.js +5 -0
- package/lib/seam/connect/models/action-attempts/scan-card.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +77 -0
- package/lib/seam/connect/openapi.js +36 -6
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +160 -20
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/encode-card.ts +12 -2
- package/src/lib/seam/connect/models/action-attempts/scan-card.ts +6 -0
- package/src/lib/seam/connect/openapi.ts +36 -6
- package/src/lib/seam/connect/route-types.ts +260 -80
package/dist/connect.cjs
CHANGED
|
@@ -1747,11 +1747,18 @@ var deprecated_action_attempts = [
|
|
|
1747
1747
|
...update_noise_threshold_action_attempt.options
|
|
1748
1748
|
];
|
|
1749
1749
|
var action_type2 = zod.z.literal("ENCODE_CARD");
|
|
1750
|
-
var
|
|
1751
|
-
type: zod.z.
|
|
1752
|
-
// TODO This should be typed properly with the possible errors
|
|
1750
|
+
var no_card_on_encoder_error = zod.z.object({
|
|
1751
|
+
type: zod.z.literal("no_card_on_encoder"),
|
|
1753
1752
|
message: zod.z.string()
|
|
1754
1753
|
});
|
|
1754
|
+
var incompatible_card_format_error = zod.z.object({
|
|
1755
|
+
type: zod.z.literal("incompatible_card_format"),
|
|
1756
|
+
message: zod.z.string()
|
|
1757
|
+
});
|
|
1758
|
+
var error3 = zod.z.union([
|
|
1759
|
+
no_card_on_encoder_error,
|
|
1760
|
+
incompatible_card_format_error
|
|
1761
|
+
]);
|
|
1755
1762
|
var result3 = acs_credential.or(unmanaged_acs_credential);
|
|
1756
1763
|
var encode_card_action_attempt = zod.z.discriminatedUnion("status", [
|
|
1757
1764
|
common_pending_action_attempt.extend({
|
|
@@ -1806,12 +1813,17 @@ var error6 = zod.z.object({
|
|
|
1806
1813
|
type: zod.z.literal("no_card_on_encoder"),
|
|
1807
1814
|
message: zod.z.string()
|
|
1808
1815
|
});
|
|
1816
|
+
var warning = zod.z.object({
|
|
1817
|
+
warning_code: zod.z.literal("acs_credential_on_encoder_out_of_sync"),
|
|
1818
|
+
warning_message: zod.z.string()
|
|
1819
|
+
});
|
|
1809
1820
|
var acs_credential_on_seam = acs_credential.or(unmanaged_acs_credential);
|
|
1810
1821
|
var result6 = zod.z.object({
|
|
1811
1822
|
acs_credential_on_encoder: acs_credential_on_encoder.describe(
|
|
1812
1823
|
"Snapshot of the card data read from the physical encoder."
|
|
1813
1824
|
),
|
|
1814
|
-
acs_credential_on_seam: acs_credential_on_seam.nullable().describe("Matching acs_credential currently encoded on this card.")
|
|
1825
|
+
acs_credential_on_seam: acs_credential_on_seam.nullable().describe("Matching acs_credential currently encoded on this card."),
|
|
1826
|
+
warnings: zod.z.array(warning)
|
|
1815
1827
|
});
|
|
1816
1828
|
var scan_card_action_attempt = zod.z.discriminatedUnion("status", [
|
|
1817
1829
|
common_pending_action_attempt.extend({
|
|
@@ -4125,11 +4137,26 @@ var openapi_default = {
|
|
|
4125
4137
|
type: "object"
|
|
4126
4138
|
}
|
|
4127
4139
|
]
|
|
4140
|
+
},
|
|
4141
|
+
warnings: {
|
|
4142
|
+
items: {
|
|
4143
|
+
properties: {
|
|
4144
|
+
warning_code: {
|
|
4145
|
+
enum: ["acs_credential_on_encoder_out_of_sync"],
|
|
4146
|
+
type: "string"
|
|
4147
|
+
},
|
|
4148
|
+
warning_message: { type: "string" }
|
|
4149
|
+
},
|
|
4150
|
+
required: ["warning_code", "warning_message"],
|
|
4151
|
+
type: "object"
|
|
4152
|
+
},
|
|
4153
|
+
type: "array"
|
|
4128
4154
|
}
|
|
4129
4155
|
},
|
|
4130
4156
|
required: [
|
|
4131
4157
|
"acs_credential_on_encoder",
|
|
4132
|
-
"acs_credential_on_seam"
|
|
4158
|
+
"acs_credential_on_seam",
|
|
4159
|
+
"warnings"
|
|
4133
4160
|
],
|
|
4134
4161
|
type: "object"
|
|
4135
4162
|
},
|
|
@@ -4458,12 +4485,27 @@ var openapi_default = {
|
|
|
4458
4485
|
},
|
|
4459
4486
|
action_type: { enum: ["ENCODE_CARD"], type: "string" },
|
|
4460
4487
|
error: {
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4488
|
+
oneOf: [
|
|
4489
|
+
{
|
|
4490
|
+
properties: {
|
|
4491
|
+
message: { type: "string" },
|
|
4492
|
+
type: { enum: ["no_card_on_encoder"], type: "string" }
|
|
4493
|
+
},
|
|
4494
|
+
required: ["type", "message"],
|
|
4495
|
+
type: "object"
|
|
4496
|
+
},
|
|
4497
|
+
{
|
|
4498
|
+
properties: {
|
|
4499
|
+
message: { type: "string" },
|
|
4500
|
+
type: {
|
|
4501
|
+
enum: ["incompatible_card_format"],
|
|
4502
|
+
type: "string"
|
|
4503
|
+
}
|
|
4504
|
+
},
|
|
4505
|
+
required: ["type", "message"],
|
|
4506
|
+
type: "object"
|
|
4507
|
+
}
|
|
4508
|
+
]
|
|
4467
4509
|
},
|
|
4468
4510
|
result: { nullable: true },
|
|
4469
4511
|
status: { enum: ["error"], type: "string" }
|