@fanfare-io/fanfare-sdk-contracts 0.1.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/LICENSE +202 -0
- package/README.md +22 -0
- package/dist/auction.d.ts +25 -0
- package/dist/auction.js +20 -0
- package/dist/beacon-names.d.ts +25 -0
- package/dist/beacon-names.js +46 -0
- package/dist/beacon.d.ts +2468 -0
- package/dist/beacon.js +269 -0
- package/dist/challenges.d.ts +36 -0
- package/dist/challenges.js +37 -0
- package/dist/consumer-me.d.ts +28988 -0
- package/dist/consumer-me.js +320 -0
- package/dist/errors.d.ts +147 -0
- package/dist/errors.js +133 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +62 -0
- package/dist/routing.d.ts +1202 -0
- package/dist/routing.js +141 -0
- package/dist/theme.d.ts +25 -0
- package/dist/theme.js +43 -0
- package/package.json +107 -0
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
import * as e from "valibot";
|
|
2
|
+
const t = e.string(), f = e.number(), g = e.record(e.string(), e.unknown()), C = ["ready", "routing", "gated", "routed"], I = ["gated", "routed"], pe = e.picklist(C), he = e.picklist(I), v = [
|
|
3
|
+
"unavailable",
|
|
4
|
+
"scheduled",
|
|
5
|
+
"enterable",
|
|
6
|
+
"participating",
|
|
7
|
+
"settling",
|
|
8
|
+
"granted",
|
|
9
|
+
"ended"
|
|
10
|
+
], Se = e.picklist(v), T = ["queue", "draw", "auction", "timed_release", "appointment"], h = e.picklist(T), J = ["queue", "draw", "auction", "timed_release", "appointment", "waitlist"], be = e.picklist(J), D = ["queue", "draw", "auction", "timed_release"], R = e.picklist(D), M = ["draw", "auction"], ge = e.picklist(M), x = ["scheduled", "open", "settling", "closed"], j = e.picklist(x), G = ["not_queued", "queued", "granted", "completed", "denied", "left"], P = e.picklist(G), B = ["not_entered", "entered", "won", "completed", "denied"], Q = e.picklist(B), W = ["not_bid", "bidding", "winning", "outbid", "won", "lost"], U = e.picklist(W), E = ["not_entered", "entered", "completed", "denied", "left"], L = e.picklist(E), N = [
|
|
11
|
+
"not_booked",
|
|
12
|
+
"booked",
|
|
13
|
+
"checked_in",
|
|
14
|
+
"completed",
|
|
15
|
+
"cancelled",
|
|
16
|
+
"no_show"
|
|
17
|
+
], z = e.picklist(N), F = ["not_waitlisted", "waitlisted", "notified", "expired", "left"], H = e.picklist(F), K = [
|
|
18
|
+
"won",
|
|
19
|
+
"lost",
|
|
20
|
+
"completed",
|
|
21
|
+
"denied",
|
|
22
|
+
"left",
|
|
23
|
+
"expired",
|
|
24
|
+
"closed",
|
|
25
|
+
"cancelled",
|
|
26
|
+
"no_show"
|
|
27
|
+
], V = e.picklist(K), o = e.strictObject({
|
|
28
|
+
type: h,
|
|
29
|
+
id: t,
|
|
30
|
+
sequenceId: t,
|
|
31
|
+
lifecycle: j,
|
|
32
|
+
startsAt: e.optional(t),
|
|
33
|
+
opensAt: e.optional(t),
|
|
34
|
+
closesAt: e.optional(t),
|
|
35
|
+
settlesAt: e.optional(t),
|
|
36
|
+
details: e.optional(g)
|
|
37
|
+
}), X = e.strictObject({
|
|
38
|
+
type: h,
|
|
39
|
+
id: t,
|
|
40
|
+
sequenceId: t,
|
|
41
|
+
lifecycle: j,
|
|
42
|
+
opensAt: e.optional(t),
|
|
43
|
+
closesAt: e.optional(t),
|
|
44
|
+
waitlistId: e.optional(t),
|
|
45
|
+
details: e.optional(g)
|
|
46
|
+
}), d = {
|
|
47
|
+
id: e.optional(t),
|
|
48
|
+
distributionId: e.optional(t),
|
|
49
|
+
enteredAt: e.optional(t),
|
|
50
|
+
admissionGrant: e.optional(t),
|
|
51
|
+
grantedAt: e.optional(t),
|
|
52
|
+
deniedReason: e.optional(t)
|
|
53
|
+
}, O = e.strictObject({
|
|
54
|
+
status: P,
|
|
55
|
+
...d,
|
|
56
|
+
position: e.optional(f)
|
|
57
|
+
}), w = e.strictObject({
|
|
58
|
+
status: Q,
|
|
59
|
+
...d
|
|
60
|
+
}), y = e.strictObject({
|
|
61
|
+
status: U,
|
|
62
|
+
...d,
|
|
63
|
+
highestBid: e.optional(t),
|
|
64
|
+
currentBid: e.optional(t)
|
|
65
|
+
}), k = e.strictObject({
|
|
66
|
+
status: L,
|
|
67
|
+
...d
|
|
68
|
+
}), q = e.strictObject({
|
|
69
|
+
status: z,
|
|
70
|
+
id: e.optional(t),
|
|
71
|
+
distributionId: e.optional(t),
|
|
72
|
+
slotId: e.optional(t),
|
|
73
|
+
locationId: e.optional(t),
|
|
74
|
+
bookedAt: e.optional(t),
|
|
75
|
+
checkedInAt: e.optional(t),
|
|
76
|
+
completedAt: e.optional(t),
|
|
77
|
+
cancelledAt: e.optional(t),
|
|
78
|
+
noShowAt: e.optional(t)
|
|
79
|
+
}), _ = e.strictObject({
|
|
80
|
+
status: H,
|
|
81
|
+
id: e.optional(t),
|
|
82
|
+
waitlistId: e.optional(t),
|
|
83
|
+
enteredAt: e.optional(t),
|
|
84
|
+
notifiedAt: e.optional(t)
|
|
85
|
+
}), je = e.union([
|
|
86
|
+
O,
|
|
87
|
+
w,
|
|
88
|
+
y,
|
|
89
|
+
k,
|
|
90
|
+
q,
|
|
91
|
+
_
|
|
92
|
+
]), l = e.strictObject({
|
|
93
|
+
token: t,
|
|
94
|
+
distributionType: R,
|
|
95
|
+
distributionId: t,
|
|
96
|
+
sequenceId: t,
|
|
97
|
+
experienceId: t,
|
|
98
|
+
issuedAt: e.optional(t),
|
|
99
|
+
expiresAt: e.optional(t),
|
|
100
|
+
handoffUrl: e.optional(t)
|
|
101
|
+
}), a = e.strictObject({
|
|
102
|
+
type: V,
|
|
103
|
+
reason: e.optional(t),
|
|
104
|
+
at: e.optional(t),
|
|
105
|
+
distributionType: e.optional(h),
|
|
106
|
+
distributionId: e.optional(t)
|
|
107
|
+
}), b = {
|
|
108
|
+
scheduled: {
|
|
109
|
+
queue: ["not_queued"],
|
|
110
|
+
draw: ["not_entered"],
|
|
111
|
+
auction: ["not_bid"],
|
|
112
|
+
timed_release: ["not_entered"],
|
|
113
|
+
appointment: ["not_booked"]
|
|
114
|
+
},
|
|
115
|
+
enterable: {
|
|
116
|
+
queue: ["not_queued"],
|
|
117
|
+
draw: ["not_entered"],
|
|
118
|
+
auction: ["not_bid"],
|
|
119
|
+
timed_release: ["not_entered"],
|
|
120
|
+
appointment: ["not_booked"],
|
|
121
|
+
waitlist: ["not_waitlisted"]
|
|
122
|
+
},
|
|
123
|
+
participating: {
|
|
124
|
+
queue: ["queued"],
|
|
125
|
+
draw: ["entered"],
|
|
126
|
+
auction: ["bidding", "winning", "outbid"],
|
|
127
|
+
timed_release: ["entered"],
|
|
128
|
+
appointment: ["booked", "checked_in"],
|
|
129
|
+
waitlist: ["waitlisted", "notified"]
|
|
130
|
+
},
|
|
131
|
+
settling: {
|
|
132
|
+
draw: ["not_entered", "entered"],
|
|
133
|
+
auction: ["not_bid", "bidding", "winning", "outbid"]
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
function Y(n) {
|
|
137
|
+
if (typeof n != "object" || n === null) return !0;
|
|
138
|
+
const i = n;
|
|
139
|
+
return i.phase === "unavailable" || i.phase === "ended" || i.phase === "granted" || !i.phase || !i.mechanism || !i.consumer?.status || !(i.phase in b) ? !0 : b[i.phase][i.mechanism]?.includes(i.consumer.status) ?? !0;
|
|
140
|
+
}
|
|
141
|
+
const Z = e.strictObject({
|
|
142
|
+
phase: e.literal("unavailable"),
|
|
143
|
+
reason: e.optional(t)
|
|
144
|
+
}), r = {
|
|
145
|
+
mechanism: e.literal("queue"),
|
|
146
|
+
distribution: o,
|
|
147
|
+
consumer: O
|
|
148
|
+
}, s = {
|
|
149
|
+
mechanism: e.literal("draw"),
|
|
150
|
+
distribution: o,
|
|
151
|
+
consumer: w
|
|
152
|
+
}, c = {
|
|
153
|
+
mechanism: e.literal("auction"),
|
|
154
|
+
distribution: o,
|
|
155
|
+
consumer: y
|
|
156
|
+
}, u = {
|
|
157
|
+
mechanism: e.literal("timed_release"),
|
|
158
|
+
distribution: o,
|
|
159
|
+
consumer: k
|
|
160
|
+
}, m = {
|
|
161
|
+
mechanism: e.literal("appointment"),
|
|
162
|
+
distribution: o,
|
|
163
|
+
consumer: q
|
|
164
|
+
}, S = {
|
|
165
|
+
mechanism: e.literal("waitlist"),
|
|
166
|
+
target: X,
|
|
167
|
+
consumer: _
|
|
168
|
+
}, $ = e.union([
|
|
169
|
+
e.strictObject({ phase: e.literal("scheduled"), ...r }),
|
|
170
|
+
e.strictObject({ phase: e.literal("scheduled"), ...s }),
|
|
171
|
+
e.strictObject({ phase: e.literal("scheduled"), ...c }),
|
|
172
|
+
e.strictObject({ phase: e.literal("scheduled"), ...u }),
|
|
173
|
+
e.strictObject({ phase: e.literal("scheduled"), ...m })
|
|
174
|
+
]), ee = e.union([
|
|
175
|
+
e.strictObject({ phase: e.literal("enterable"), ...r }),
|
|
176
|
+
e.strictObject({ phase: e.literal("enterable"), ...s }),
|
|
177
|
+
e.strictObject({ phase: e.literal("enterable"), ...c }),
|
|
178
|
+
e.strictObject({ phase: e.literal("enterable"), ...u }),
|
|
179
|
+
e.strictObject({ phase: e.literal("enterable"), ...m }),
|
|
180
|
+
e.strictObject({ phase: e.literal("enterable"), ...S })
|
|
181
|
+
]), te = e.union([
|
|
182
|
+
e.strictObject({ phase: e.literal("participating"), ...r }),
|
|
183
|
+
e.strictObject({ phase: e.literal("participating"), ...s }),
|
|
184
|
+
e.strictObject({ phase: e.literal("participating"), ...c }),
|
|
185
|
+
e.strictObject({ phase: e.literal("participating"), ...u }),
|
|
186
|
+
e.strictObject({ phase: e.literal("participating"), ...m }),
|
|
187
|
+
e.strictObject({ phase: e.literal("participating"), ...S })
|
|
188
|
+
]), ne = e.union([
|
|
189
|
+
e.strictObject({ phase: e.literal("settling"), ...s }),
|
|
190
|
+
e.strictObject({ phase: e.literal("settling"), ...c })
|
|
191
|
+
]), ie = e.union([
|
|
192
|
+
e.strictObject({ phase: e.literal("granted"), ...r, grant: l }),
|
|
193
|
+
e.strictObject({ phase: e.literal("granted"), ...s, grant: l }),
|
|
194
|
+
e.strictObject({ phase: e.literal("granted"), ...c, grant: l }),
|
|
195
|
+
e.strictObject({ phase: e.literal("granted"), ...u, grant: l })
|
|
196
|
+
]), ae = e.union([
|
|
197
|
+
e.strictObject({ phase: e.literal("ended"), ...r, outcome: a }),
|
|
198
|
+
e.strictObject({ phase: e.literal("ended"), ...s, outcome: a }),
|
|
199
|
+
e.strictObject({ phase: e.literal("ended"), ...c, outcome: a }),
|
|
200
|
+
e.strictObject({ phase: e.literal("ended"), ...u, outcome: a }),
|
|
201
|
+
e.strictObject({ phase: e.literal("ended"), ...m, outcome: a }),
|
|
202
|
+
e.strictObject({ phase: e.literal("ended"), ...S, outcome: a })
|
|
203
|
+
]), se = e.pipe(
|
|
204
|
+
e.union([
|
|
205
|
+
Z,
|
|
206
|
+
$,
|
|
207
|
+
ee,
|
|
208
|
+
te,
|
|
209
|
+
ne,
|
|
210
|
+
ie,
|
|
211
|
+
ae
|
|
212
|
+
]),
|
|
213
|
+
e.check(
|
|
214
|
+
(n) => n.phase === "unavailable" || n.mechanism !== "waitlist" && n.distribution.type === n.mechanism || n.mechanism === "waitlist",
|
|
215
|
+
"sequence mechanism must match its distribution or target"
|
|
216
|
+
),
|
|
217
|
+
e.check(
|
|
218
|
+
(n) => n.phase === "granted" || !("grant" in n),
|
|
219
|
+
"grant is only valid on granted sequences"
|
|
220
|
+
),
|
|
221
|
+
e.check(
|
|
222
|
+
(n) => n.phase === "ended" || !("outcome" in n),
|
|
223
|
+
"outcome is only valid on ended sequences"
|
|
224
|
+
),
|
|
225
|
+
e.check(
|
|
226
|
+
(n) => n.phase !== "granted" || n.grant.distributionType === n.mechanism,
|
|
227
|
+
"grant distributionType must match sequence mechanism"
|
|
228
|
+
),
|
|
229
|
+
e.check(
|
|
230
|
+
(n) => Y(n),
|
|
231
|
+
"consumer status must match sequence phase and mechanism"
|
|
232
|
+
),
|
|
233
|
+
e.check((n) => {
|
|
234
|
+
if (n.phase !== "granted") return !0;
|
|
235
|
+
switch (n.mechanism) {
|
|
236
|
+
case "queue":
|
|
237
|
+
return n.consumer.status === "granted";
|
|
238
|
+
case "draw":
|
|
239
|
+
case "auction":
|
|
240
|
+
return n.consumer.status === "won";
|
|
241
|
+
case "timed_release":
|
|
242
|
+
return n.consumer.status === "completed";
|
|
243
|
+
default:
|
|
244
|
+
return !1;
|
|
245
|
+
}
|
|
246
|
+
}, "granted consumer status must match sequence mechanism")
|
|
247
|
+
), p = {
|
|
248
|
+
experienceId: t,
|
|
249
|
+
updatedAt: e.optional(t)
|
|
250
|
+
}, ce = e.strictObject({
|
|
251
|
+
...p,
|
|
252
|
+
journeyStage: e.literal("ready")
|
|
253
|
+
}), oe = e.strictObject({
|
|
254
|
+
...p,
|
|
255
|
+
journeyStage: e.literal("routing")
|
|
256
|
+
}), re = e.strictObject({
|
|
257
|
+
...p,
|
|
258
|
+
journeyStage: e.literal("gated"),
|
|
259
|
+
gates: e.array(e.unknown()),
|
|
260
|
+
selected: e.optional(
|
|
261
|
+
e.strictObject({
|
|
262
|
+
sequenceId: t
|
|
263
|
+
})
|
|
264
|
+
)
|
|
265
|
+
}), ue = e.strictObject({
|
|
266
|
+
...p,
|
|
267
|
+
journeyStage: e.literal("routed"),
|
|
268
|
+
sequenceId: t,
|
|
269
|
+
sequence: se,
|
|
270
|
+
offers: e.optional(e.array(e.unknown()))
|
|
271
|
+
}), A = e.union([re, ue]), Oe = e.union([
|
|
272
|
+
ce,
|
|
273
|
+
oe,
|
|
274
|
+
A
|
|
275
|
+
]), le = e.strictObject({
|
|
276
|
+
journeys: e.array(A)
|
|
277
|
+
}), we = e.looseObject({
|
|
278
|
+
active: le
|
|
279
|
+
});
|
|
280
|
+
export {
|
|
281
|
+
l as AdmissionGrantSchema,
|
|
282
|
+
z as AppointmentConsumerStatusSchema,
|
|
283
|
+
N as AppointmentConsumerStatuses,
|
|
284
|
+
U as AuctionConsumerStatusSchema,
|
|
285
|
+
W as AuctionConsumerStatuses,
|
|
286
|
+
Oe as ConsumerJourneyStateSchema,
|
|
287
|
+
we as ConsumerMeResponseSchema,
|
|
288
|
+
je as ConsumerSequenceStateSchema,
|
|
289
|
+
j as DistributionLifecycleSchema,
|
|
290
|
+
x as DistributionLifecycles,
|
|
291
|
+
o as DistributionStateSchema,
|
|
292
|
+
X as DistributionTargetSchema,
|
|
293
|
+
h as DistributionTypeSchema,
|
|
294
|
+
T as DistributionTypes,
|
|
295
|
+
Q as DrawConsumerStatusSchema,
|
|
296
|
+
B as DrawConsumerStatuses,
|
|
297
|
+
R as GrantProducingMechanismSchema,
|
|
298
|
+
D as GrantProducingMechanisms,
|
|
299
|
+
pe as JourneyStageSchema,
|
|
300
|
+
C as JourneyStages,
|
|
301
|
+
P as QueueConsumerStatusSchema,
|
|
302
|
+
G as QueueConsumerStatuses,
|
|
303
|
+
be as SequenceMechanismSchema,
|
|
304
|
+
J as SequenceMechanisms,
|
|
305
|
+
a as SequenceOutcomeSchema,
|
|
306
|
+
V as SequenceOutcomeTypeSchema,
|
|
307
|
+
K as SequenceOutcomeTypes,
|
|
308
|
+
Se as SequencePhaseSchema,
|
|
309
|
+
v as SequencePhases,
|
|
310
|
+
se as SequenceStateSchema,
|
|
311
|
+
he as ServiceJourneyStageSchema,
|
|
312
|
+
I as ServiceJourneyStages,
|
|
313
|
+
A as ServiceJourneyStateSchema,
|
|
314
|
+
ge as SettlingMechanismSchema,
|
|
315
|
+
M as SettlingMechanisms,
|
|
316
|
+
L as TimedReleaseConsumerStatusSchema,
|
|
317
|
+
E as TimedReleaseConsumerStatuses,
|
|
318
|
+
H as WaitlistConsumerStatusSchema,
|
|
319
|
+
F as WaitlistConsumerStatuses
|
|
320
|
+
};
|
package/dist/errors.d.ts
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { InferOutput } from 'valibot';
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
/**
|
|
4
|
+
* Canonical Fanfare API error contract.
|
|
5
|
+
*
|
|
6
|
+
* SCREAMING_SNAKE is the single canonical casing for every wire/contract code.
|
|
7
|
+
* Codes are grouped by domain. The full tuple + union live below so SDKs and
|
|
8
|
+
* services can both narrow on `ErrorCode` and validate the canonical envelope.
|
|
9
|
+
*/
|
|
10
|
+
export declare const CommonErrorCodes: {
|
|
11
|
+
readonly VALIDATION_ERROR: "VALIDATION_ERROR";
|
|
12
|
+
readonly UNAUTHORIZED: "UNAUTHORIZED";
|
|
13
|
+
readonly FORBIDDEN: "FORBIDDEN";
|
|
14
|
+
readonly NOT_FOUND: "NOT_FOUND";
|
|
15
|
+
readonly RATE_LIMITED: "RATE_LIMITED";
|
|
16
|
+
readonly RATE_LIMIT_UNAVAILABLE: "RATE_LIMIT_UNAVAILABLE";
|
|
17
|
+
readonly PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
|
|
18
|
+
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
19
|
+
readonly SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
|
|
20
|
+
};
|
|
21
|
+
export declare const AuthErrorCodes: {
|
|
22
|
+
readonly INVALID_CREDENTIALS: "INVALID_CREDENTIALS";
|
|
23
|
+
readonly INVALID_SESSION: "INVALID_SESSION";
|
|
24
|
+
readonly INVALID_REFRESH_TOKEN: "INVALID_REFRESH_TOKEN";
|
|
25
|
+
readonly OTP_INVALID: "OTP_INVALID";
|
|
26
|
+
readonly OTP_EXPIRED: "OTP_EXPIRED";
|
|
27
|
+
};
|
|
28
|
+
export declare const CapabilityErrorCodes: {
|
|
29
|
+
readonly ENTRY_TOKEN_REQUIRED: "ENTRY_TOKEN_REQUIRED";
|
|
30
|
+
readonly ENTRY_TOKEN_INVALID: "ENTRY_TOKEN_INVALID";
|
|
31
|
+
readonly ENTRY_TOKEN_EXPIRED: "ENTRY_TOKEN_EXPIRED";
|
|
32
|
+
readonly ENTRY_TOKEN_MISMATCH: "ENTRY_TOKEN_MISMATCH";
|
|
33
|
+
};
|
|
34
|
+
export declare const AppointmentErrorCodes: {
|
|
35
|
+
readonly SLOT_EXPIRED: "SLOT_EXPIRED";
|
|
36
|
+
readonly SLOT_OUT_OF_WINDOW: "SLOT_OUT_OF_WINDOW";
|
|
37
|
+
readonly SLOT_NOT_AVAILABLE: "SLOT_NOT_AVAILABLE";
|
|
38
|
+
readonly ALREADY_BOOKED: "ALREADY_BOOKED";
|
|
39
|
+
readonly ACTIVE_BOOKING_EXISTS: "ACTIVE_BOOKING_EXISTS";
|
|
40
|
+
readonly NO_EXISTING_BOOKING: "NO_EXISTING_BOOKING";
|
|
41
|
+
readonly INVALID_SLOT: "INVALID_SLOT";
|
|
42
|
+
readonly NEW_SLOT_FULL: "NEW_SLOT_FULL";
|
|
43
|
+
readonly CANNOT_CANCEL_ONGOING_OR_PAST: "CANNOT_CANCEL_ONGOING_OR_PAST";
|
|
44
|
+
};
|
|
45
|
+
export declare const FingerprintErrorCodes: {
|
|
46
|
+
readonly FINGERPRINT_REQUIRED: "FINGERPRINT_REQUIRED";
|
|
47
|
+
readonly FINGERPRINT_DEVICE_MISMATCH: "FINGERPRINT_DEVICE_MISMATCH";
|
|
48
|
+
readonly FINGERPRINT_INVALID: "FINGERPRINT_INVALID";
|
|
49
|
+
};
|
|
50
|
+
export declare const DistributionErrorCodes: {
|
|
51
|
+
readonly DISTRIBUTION_NOT_OPEN: "DISTRIBUTION_NOT_OPEN";
|
|
52
|
+
readonly DISTRIBUTION_CLOSED: "DISTRIBUTION_CLOSED";
|
|
53
|
+
readonly DISTRIBUTION_FULL: "DISTRIBUTION_FULL";
|
|
54
|
+
};
|
|
55
|
+
export declare const AdmissionErrorCodes: {
|
|
56
|
+
readonly ADMISSION_KEY_THUMBPRINT_REQUIRED: "ADMISSION_KEY_THUMBPRINT_REQUIRED";
|
|
57
|
+
readonly ADMISSION_PROOF_REQUIRED: "ADMISSION_PROOF_REQUIRED";
|
|
58
|
+
readonly ADMISSION_GRANT_INVALID: "ADMISSION_GRANT_INVALID";
|
|
59
|
+
readonly ADMISSION_ORIGINAL_ENTRY_REQUIRED: "ADMISSION_ORIGINAL_ENTRY_REQUIRED";
|
|
60
|
+
readonly ADMISSION_KEY_MISMATCH: "ADMISSION_KEY_MISMATCH";
|
|
61
|
+
};
|
|
62
|
+
export declare const BotChallengeErrorCodes: {
|
|
63
|
+
readonly BOT_CHALLENGE_INVALID: "BOT_CHALLENGE_INVALID";
|
|
64
|
+
readonly BOT_CHALLENGE_EXPIRED: "BOT_CHALLENGE_EXPIRED";
|
|
65
|
+
readonly BOT_CHALLENGE_SUBJECT_MISMATCH: "BOT_CHALLENGE_SUBJECT_MISMATCH";
|
|
66
|
+
};
|
|
67
|
+
export declare const ErrorCodeMap: {
|
|
68
|
+
readonly BOT_CHALLENGE_INVALID: "BOT_CHALLENGE_INVALID";
|
|
69
|
+
readonly BOT_CHALLENGE_EXPIRED: "BOT_CHALLENGE_EXPIRED";
|
|
70
|
+
readonly BOT_CHALLENGE_SUBJECT_MISMATCH: "BOT_CHALLENGE_SUBJECT_MISMATCH";
|
|
71
|
+
readonly ADMISSION_KEY_THUMBPRINT_REQUIRED: "ADMISSION_KEY_THUMBPRINT_REQUIRED";
|
|
72
|
+
readonly ADMISSION_PROOF_REQUIRED: "ADMISSION_PROOF_REQUIRED";
|
|
73
|
+
readonly ADMISSION_GRANT_INVALID: "ADMISSION_GRANT_INVALID";
|
|
74
|
+
readonly ADMISSION_ORIGINAL_ENTRY_REQUIRED: "ADMISSION_ORIGINAL_ENTRY_REQUIRED";
|
|
75
|
+
readonly ADMISSION_KEY_MISMATCH: "ADMISSION_KEY_MISMATCH";
|
|
76
|
+
readonly DISTRIBUTION_NOT_OPEN: "DISTRIBUTION_NOT_OPEN";
|
|
77
|
+
readonly DISTRIBUTION_CLOSED: "DISTRIBUTION_CLOSED";
|
|
78
|
+
readonly DISTRIBUTION_FULL: "DISTRIBUTION_FULL";
|
|
79
|
+
readonly FINGERPRINT_REQUIRED: "FINGERPRINT_REQUIRED";
|
|
80
|
+
readonly FINGERPRINT_DEVICE_MISMATCH: "FINGERPRINT_DEVICE_MISMATCH";
|
|
81
|
+
readonly FINGERPRINT_INVALID: "FINGERPRINT_INVALID";
|
|
82
|
+
readonly SLOT_EXPIRED: "SLOT_EXPIRED";
|
|
83
|
+
readonly SLOT_OUT_OF_WINDOW: "SLOT_OUT_OF_WINDOW";
|
|
84
|
+
readonly SLOT_NOT_AVAILABLE: "SLOT_NOT_AVAILABLE";
|
|
85
|
+
readonly ALREADY_BOOKED: "ALREADY_BOOKED";
|
|
86
|
+
readonly ACTIVE_BOOKING_EXISTS: "ACTIVE_BOOKING_EXISTS";
|
|
87
|
+
readonly NO_EXISTING_BOOKING: "NO_EXISTING_BOOKING";
|
|
88
|
+
readonly INVALID_SLOT: "INVALID_SLOT";
|
|
89
|
+
readonly NEW_SLOT_FULL: "NEW_SLOT_FULL";
|
|
90
|
+
readonly CANNOT_CANCEL_ONGOING_OR_PAST: "CANNOT_CANCEL_ONGOING_OR_PAST";
|
|
91
|
+
readonly ENTRY_TOKEN_REQUIRED: "ENTRY_TOKEN_REQUIRED";
|
|
92
|
+
readonly ENTRY_TOKEN_INVALID: "ENTRY_TOKEN_INVALID";
|
|
93
|
+
readonly ENTRY_TOKEN_EXPIRED: "ENTRY_TOKEN_EXPIRED";
|
|
94
|
+
readonly ENTRY_TOKEN_MISMATCH: "ENTRY_TOKEN_MISMATCH";
|
|
95
|
+
readonly INVALID_CREDENTIALS: "INVALID_CREDENTIALS";
|
|
96
|
+
readonly INVALID_SESSION: "INVALID_SESSION";
|
|
97
|
+
readonly INVALID_REFRESH_TOKEN: "INVALID_REFRESH_TOKEN";
|
|
98
|
+
readonly OTP_INVALID: "OTP_INVALID";
|
|
99
|
+
readonly OTP_EXPIRED: "OTP_EXPIRED";
|
|
100
|
+
readonly VALIDATION_ERROR: "VALIDATION_ERROR";
|
|
101
|
+
readonly UNAUTHORIZED: "UNAUTHORIZED";
|
|
102
|
+
readonly FORBIDDEN: "FORBIDDEN";
|
|
103
|
+
readonly NOT_FOUND: "NOT_FOUND";
|
|
104
|
+
readonly RATE_LIMITED: "RATE_LIMITED";
|
|
105
|
+
readonly RATE_LIMIT_UNAVAILABLE: "RATE_LIMIT_UNAVAILABLE";
|
|
106
|
+
readonly PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
|
|
107
|
+
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
108
|
+
readonly SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
|
|
109
|
+
};
|
|
110
|
+
export declare const ErrorCodes: readonly ["VALIDATION_ERROR", "UNAUTHORIZED", "FORBIDDEN", "NOT_FOUND", "RATE_LIMITED", "RATE_LIMIT_UNAVAILABLE", "PAYLOAD_TOO_LARGE", "INTERNAL_ERROR", "SERVICE_UNAVAILABLE", "INVALID_CREDENTIALS", "INVALID_SESSION", "INVALID_REFRESH_TOKEN", "OTP_INVALID", "OTP_EXPIRED", "ENTRY_TOKEN_REQUIRED", "ENTRY_TOKEN_INVALID", "ENTRY_TOKEN_EXPIRED", "ENTRY_TOKEN_MISMATCH", "SLOT_EXPIRED", "SLOT_OUT_OF_WINDOW", "SLOT_NOT_AVAILABLE", "ALREADY_BOOKED", "ACTIVE_BOOKING_EXISTS", "NO_EXISTING_BOOKING", "INVALID_SLOT", "NEW_SLOT_FULL", "CANNOT_CANCEL_ONGOING_OR_PAST", "FINGERPRINT_REQUIRED", "FINGERPRINT_DEVICE_MISMATCH", "FINGERPRINT_INVALID", "DISTRIBUTION_NOT_OPEN", "DISTRIBUTION_CLOSED", "DISTRIBUTION_FULL", "ADMISSION_KEY_THUMBPRINT_REQUIRED", "ADMISSION_PROOF_REQUIRED", "ADMISSION_GRANT_INVALID", "ADMISSION_ORIGINAL_ENTRY_REQUIRED", "ADMISSION_KEY_MISMATCH", "BOT_CHALLENGE_INVALID", "BOT_CHALLENGE_EXPIRED", "BOT_CHALLENGE_SUBJECT_MISMATCH"];
|
|
111
|
+
export type ErrorCode = (typeof ErrorCodes)[number];
|
|
112
|
+
export declare const ErrorCodeSchema: v.PicklistSchema<readonly ["VALIDATION_ERROR", "UNAUTHORIZED", "FORBIDDEN", "NOT_FOUND", "RATE_LIMITED", "RATE_LIMIT_UNAVAILABLE", "PAYLOAD_TOO_LARGE", "INTERNAL_ERROR", "SERVICE_UNAVAILABLE", "INVALID_CREDENTIALS", "INVALID_SESSION", "INVALID_REFRESH_TOKEN", "OTP_INVALID", "OTP_EXPIRED", "ENTRY_TOKEN_REQUIRED", "ENTRY_TOKEN_INVALID", "ENTRY_TOKEN_EXPIRED", "ENTRY_TOKEN_MISMATCH", "SLOT_EXPIRED", "SLOT_OUT_OF_WINDOW", "SLOT_NOT_AVAILABLE", "ALREADY_BOOKED", "ACTIVE_BOOKING_EXISTS", "NO_EXISTING_BOOKING", "INVALID_SLOT", "NEW_SLOT_FULL", "CANNOT_CANCEL_ONGOING_OR_PAST", "FINGERPRINT_REQUIRED", "FINGERPRINT_DEVICE_MISMATCH", "FINGERPRINT_INVALID", "DISTRIBUTION_NOT_OPEN", "DISTRIBUTION_CLOSED", "DISTRIBUTION_FULL", "ADMISSION_KEY_THUMBPRINT_REQUIRED", "ADMISSION_PROOF_REQUIRED", "ADMISSION_GRANT_INVALID", "ADMISSION_ORIGINAL_ENTRY_REQUIRED", "ADMISSION_KEY_MISMATCH", "BOT_CHALLENGE_INVALID", "BOT_CHALLENGE_EXPIRED", "BOT_CHALLENGE_SUBJECT_MISMATCH"], undefined>;
|
|
113
|
+
export declare const ValidationIssueSchema: v.ObjectSchema<{
|
|
114
|
+
readonly path: v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, undefined>;
|
|
115
|
+
readonly message: v.StringSchema<undefined>;
|
|
116
|
+
readonly code: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
117
|
+
}, undefined>;
|
|
118
|
+
export type ValidationIssue = InferOutput<typeof ValidationIssueSchema>;
|
|
119
|
+
export declare const ErrorSupportSchema: v.ObjectSchema<{
|
|
120
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
121
|
+
readonly referenceCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
122
|
+
readonly confirmationCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
123
|
+
}, undefined>;
|
|
124
|
+
export type ErrorSupport = InferOutput<typeof ErrorSupportSchema>;
|
|
125
|
+
/**
|
|
126
|
+
* Canonical error envelope returned by the consumer API. `code` is the single
|
|
127
|
+
* machine-readable discriminator.
|
|
128
|
+
* `action` is open-ended ("reroute" today) so clients can react to flow hints
|
|
129
|
+
* without a contract bump per action.
|
|
130
|
+
*/
|
|
131
|
+
export declare const ConsumerApiErrorSchema: v.ObjectSchema<{
|
|
132
|
+
readonly code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
133
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
134
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
135
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
136
|
+
readonly path: v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, undefined>;
|
|
137
|
+
readonly message: v.StringSchema<undefined>;
|
|
138
|
+
readonly code: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
139
|
+
}, undefined>, undefined>, undefined>;
|
|
140
|
+
readonly action: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"reroute", undefined>, v.StringSchema<undefined>], undefined>, undefined>;
|
|
141
|
+
readonly support: v.OptionalSchema<v.ObjectSchema<{
|
|
142
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
143
|
+
readonly referenceCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
144
|
+
readonly confirmationCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
145
|
+
}, undefined>, undefined>;
|
|
146
|
+
}, undefined>;
|
|
147
|
+
export type ConsumerApiError = InferOutput<typeof ConsumerApiErrorSchema>;
|
package/dist/errors.js
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import * as I from "valibot";
|
|
2
|
+
const E = {
|
|
3
|
+
VALIDATION_ERROR: "VALIDATION_ERROR",
|
|
4
|
+
UNAUTHORIZED: "UNAUTHORIZED",
|
|
5
|
+
FORBIDDEN: "FORBIDDEN",
|
|
6
|
+
NOT_FOUND: "NOT_FOUND",
|
|
7
|
+
RATE_LIMITED: "RATE_LIMITED",
|
|
8
|
+
RATE_LIMIT_UNAVAILABLE: "RATE_LIMIT_UNAVAILABLE",
|
|
9
|
+
PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE",
|
|
10
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
11
|
+
SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE"
|
|
12
|
+
}, N = {
|
|
13
|
+
INVALID_CREDENTIALS: "INVALID_CREDENTIALS",
|
|
14
|
+
INVALID_SESSION: "INVALID_SESSION",
|
|
15
|
+
INVALID_REFRESH_TOKEN: "INVALID_REFRESH_TOKEN",
|
|
16
|
+
OTP_INVALID: "OTP_INVALID",
|
|
17
|
+
OTP_EXPIRED: "OTP_EXPIRED"
|
|
18
|
+
}, T = {
|
|
19
|
+
ENTRY_TOKEN_REQUIRED: "ENTRY_TOKEN_REQUIRED",
|
|
20
|
+
ENTRY_TOKEN_INVALID: "ENTRY_TOKEN_INVALID",
|
|
21
|
+
ENTRY_TOKEN_EXPIRED: "ENTRY_TOKEN_EXPIRED",
|
|
22
|
+
ENTRY_TOKEN_MISMATCH: "ENTRY_TOKEN_MISMATCH"
|
|
23
|
+
}, _ = {
|
|
24
|
+
SLOT_EXPIRED: "SLOT_EXPIRED",
|
|
25
|
+
SLOT_OUT_OF_WINDOW: "SLOT_OUT_OF_WINDOW",
|
|
26
|
+
SLOT_NOT_AVAILABLE: "SLOT_NOT_AVAILABLE",
|
|
27
|
+
ALREADY_BOOKED: "ALREADY_BOOKED",
|
|
28
|
+
ACTIVE_BOOKING_EXISTS: "ACTIVE_BOOKING_EXISTS",
|
|
29
|
+
NO_EXISTING_BOOKING: "NO_EXISTING_BOOKING",
|
|
30
|
+
INVALID_SLOT: "INVALID_SLOT",
|
|
31
|
+
NEW_SLOT_FULL: "NEW_SLOT_FULL",
|
|
32
|
+
CANNOT_CANCEL_ONGOING_OR_PAST: "CANNOT_CANCEL_ONGOING_OR_PAST"
|
|
33
|
+
}, A = {
|
|
34
|
+
FINGERPRINT_REQUIRED: "FINGERPRINT_REQUIRED",
|
|
35
|
+
FINGERPRINT_DEVICE_MISMATCH: "FINGERPRINT_DEVICE_MISMATCH",
|
|
36
|
+
FINGERPRINT_INVALID: "FINGERPRINT_INVALID"
|
|
37
|
+
}, R = {
|
|
38
|
+
DISTRIBUTION_NOT_OPEN: "DISTRIBUTION_NOT_OPEN",
|
|
39
|
+
DISTRIBUTION_CLOSED: "DISTRIBUTION_CLOSED",
|
|
40
|
+
DISTRIBUTION_FULL: "DISTRIBUTION_FULL"
|
|
41
|
+
}, O = {
|
|
42
|
+
ADMISSION_KEY_THUMBPRINT_REQUIRED: "ADMISSION_KEY_THUMBPRINT_REQUIRED",
|
|
43
|
+
ADMISSION_PROOF_REQUIRED: "ADMISSION_PROOF_REQUIRED",
|
|
44
|
+
ADMISSION_GRANT_INVALID: "ADMISSION_GRANT_INVALID",
|
|
45
|
+
ADMISSION_ORIGINAL_ENTRY_REQUIRED: "ADMISSION_ORIGINAL_ENTRY_REQUIRED",
|
|
46
|
+
ADMISSION_KEY_MISMATCH: "ADMISSION_KEY_MISMATCH"
|
|
47
|
+
}, L = {
|
|
48
|
+
BOT_CHALLENGE_INVALID: "BOT_CHALLENGE_INVALID",
|
|
49
|
+
BOT_CHALLENGE_EXPIRED: "BOT_CHALLENGE_EXPIRED",
|
|
50
|
+
BOT_CHALLENGE_SUBJECT_MISMATCH: "BOT_CHALLENGE_SUBJECT_MISMATCH"
|
|
51
|
+
}, r = {
|
|
52
|
+
...E,
|
|
53
|
+
...N,
|
|
54
|
+
...T,
|
|
55
|
+
..._,
|
|
56
|
+
...A,
|
|
57
|
+
...R,
|
|
58
|
+
...O,
|
|
59
|
+
...L
|
|
60
|
+
}, D = [
|
|
61
|
+
E.VALIDATION_ERROR,
|
|
62
|
+
E.UNAUTHORIZED,
|
|
63
|
+
E.FORBIDDEN,
|
|
64
|
+
E.NOT_FOUND,
|
|
65
|
+
E.RATE_LIMITED,
|
|
66
|
+
E.RATE_LIMIT_UNAVAILABLE,
|
|
67
|
+
E.PAYLOAD_TOO_LARGE,
|
|
68
|
+
E.INTERNAL_ERROR,
|
|
69
|
+
E.SERVICE_UNAVAILABLE,
|
|
70
|
+
N.INVALID_CREDENTIALS,
|
|
71
|
+
N.INVALID_SESSION,
|
|
72
|
+
N.INVALID_REFRESH_TOKEN,
|
|
73
|
+
N.OTP_INVALID,
|
|
74
|
+
N.OTP_EXPIRED,
|
|
75
|
+
T.ENTRY_TOKEN_REQUIRED,
|
|
76
|
+
T.ENTRY_TOKEN_INVALID,
|
|
77
|
+
T.ENTRY_TOKEN_EXPIRED,
|
|
78
|
+
T.ENTRY_TOKEN_MISMATCH,
|
|
79
|
+
_.SLOT_EXPIRED,
|
|
80
|
+
_.SLOT_OUT_OF_WINDOW,
|
|
81
|
+
_.SLOT_NOT_AVAILABLE,
|
|
82
|
+
_.ALREADY_BOOKED,
|
|
83
|
+
_.ACTIVE_BOOKING_EXISTS,
|
|
84
|
+
_.NO_EXISTING_BOOKING,
|
|
85
|
+
_.INVALID_SLOT,
|
|
86
|
+
_.NEW_SLOT_FULL,
|
|
87
|
+
_.CANNOT_CANCEL_ONGOING_OR_PAST,
|
|
88
|
+
A.FINGERPRINT_REQUIRED,
|
|
89
|
+
A.FINGERPRINT_DEVICE_MISMATCH,
|
|
90
|
+
A.FINGERPRINT_INVALID,
|
|
91
|
+
R.DISTRIBUTION_NOT_OPEN,
|
|
92
|
+
R.DISTRIBUTION_CLOSED,
|
|
93
|
+
R.DISTRIBUTION_FULL,
|
|
94
|
+
O.ADMISSION_KEY_THUMBPRINT_REQUIRED,
|
|
95
|
+
O.ADMISSION_PROOF_REQUIRED,
|
|
96
|
+
O.ADMISSION_GRANT_INVALID,
|
|
97
|
+
O.ADMISSION_ORIGINAL_ENTRY_REQUIRED,
|
|
98
|
+
O.ADMISSION_KEY_MISMATCH,
|
|
99
|
+
L.BOT_CHALLENGE_INVALID,
|
|
100
|
+
L.BOT_CHALLENGE_EXPIRED,
|
|
101
|
+
L.BOT_CHALLENGE_SUBJECT_MISMATCH
|
|
102
|
+
], C = I.picklist(D), S = I.object({
|
|
103
|
+
path: I.optional(I.array(I.union([I.string(), I.number()]))),
|
|
104
|
+
message: I.string(),
|
|
105
|
+
code: I.optional(I.string())
|
|
106
|
+
}), o = I.object({
|
|
107
|
+
message: I.optional(I.string()),
|
|
108
|
+
referenceCode: I.optional(I.string()),
|
|
109
|
+
confirmationCode: I.optional(I.string())
|
|
110
|
+
}), t = I.object({
|
|
111
|
+
code: I.pipe(I.string(), I.regex(/^[A-Z][A-Z0-9_]*$/)),
|
|
112
|
+
message: I.optional(I.string()),
|
|
113
|
+
details: I.optional(I.unknown()),
|
|
114
|
+
issues: I.optional(I.array(S)),
|
|
115
|
+
action: I.optional(I.union([I.literal("reroute"), I.string()])),
|
|
116
|
+
support: I.optional(o)
|
|
117
|
+
});
|
|
118
|
+
export {
|
|
119
|
+
O as AdmissionErrorCodes,
|
|
120
|
+
_ as AppointmentErrorCodes,
|
|
121
|
+
N as AuthErrorCodes,
|
|
122
|
+
L as BotChallengeErrorCodes,
|
|
123
|
+
T as CapabilityErrorCodes,
|
|
124
|
+
E as CommonErrorCodes,
|
|
125
|
+
t as ConsumerApiErrorSchema,
|
|
126
|
+
R as DistributionErrorCodes,
|
|
127
|
+
r as ErrorCodeMap,
|
|
128
|
+
C as ErrorCodeSchema,
|
|
129
|
+
D as ErrorCodes,
|
|
130
|
+
o as ErrorSupportSchema,
|
|
131
|
+
A as FingerprintErrorCodes,
|
|
132
|
+
S as ValidationIssueSchema
|
|
133
|
+
};
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { AdmissionErrorCodes as a, AppointmentErrorCodes as i, AuthErrorCodes as n, BotChallengeErrorCodes as r, CapabilityErrorCodes as t, CommonErrorCodes as h, ConsumerApiErrorSchema as m, DistributionErrorCodes as s, ErrorCodeMap as c, ErrorCodeSchema as d, ErrorCodes as S, ErrorSupportSchema as g, FingerprintErrorCodes as C, ValidationIssueSchema as u } from "./errors.js";
|
|
2
|
+
import { AccessCodeRoutingGateV1Schema as l, AdmissibleRoutingCandidateV1Schema as V, AuthenticationRoutingGateV1Schema as p, BotCheckRoutingGateV1Schema as E, ChallengeProvider as A, ChallengePurpose as D, ChallengeType as f, DeniedRoutingCandidateV1Schema as G, GatedDecisionV1Schema as v, GatedRoutingCandidateV1Schema as B, NoAccessDecisionV1Schema as P, RiskAssessmentSchema as T, RiskLevel as k, RiskLevelSchema as x, RiskLevels as y, RoutedDecisionV1Schema as b, RoutingCandidateSchema as L, RoutingCandidateV1Schema as q, RoutingDecisionSchema as M, RoutingDecisionV1Schema as W, RoutingGateSchema as F, RoutingGateV1Schema as I, RoutingReasonCodeSchema as N, RoutingReasonCodeV1Schema as j, RoutingReasonCodesV1 as w, RoutingReasonSchema as z, RoutingReasonV1Schema as H, RoutingSequenceRefSchema as J, RoutingSequenceRefV1Schema as K } from "./routing.js";
|
|
3
|
+
import { BrandThemeSchema as Q, DefaultBrandTheme as U, WidgetVariantSchema as X, WidgetVariants as Y, mergeBrandTheme as Z } from "./theme.js";
|
|
4
|
+
import { BotMitigationStateSchema as $, ChallengeProviderSchema as ee, ChallengeProviders as oe, ChallengePurposeSchema as ae, ChallengePurposes as ie, ChallengeTypeSchema as ne, ChallengeTypes as re, RoutingChallengeSchema as te } from "./challenges.js";
|
|
5
|
+
export {
|
|
6
|
+
l as AccessCodeRoutingGateV1Schema,
|
|
7
|
+
V as AdmissibleRoutingCandidateV1Schema,
|
|
8
|
+
a as AdmissionErrorCodes,
|
|
9
|
+
i as AppointmentErrorCodes,
|
|
10
|
+
n as AuthErrorCodes,
|
|
11
|
+
p as AuthenticationRoutingGateV1Schema,
|
|
12
|
+
r as BotChallengeErrorCodes,
|
|
13
|
+
E as BotCheckRoutingGateV1Schema,
|
|
14
|
+
$ as BotMitigationStateSchema,
|
|
15
|
+
Q as BrandThemeSchema,
|
|
16
|
+
t as CapabilityErrorCodes,
|
|
17
|
+
A as ChallengeProvider,
|
|
18
|
+
ee as ChallengeProviderSchema,
|
|
19
|
+
oe as ChallengeProviders,
|
|
20
|
+
D as ChallengePurpose,
|
|
21
|
+
ae as ChallengePurposeSchema,
|
|
22
|
+
ie as ChallengePurposes,
|
|
23
|
+
f as ChallengeType,
|
|
24
|
+
ne as ChallengeTypeSchema,
|
|
25
|
+
re as ChallengeTypes,
|
|
26
|
+
h as CommonErrorCodes,
|
|
27
|
+
m as ConsumerApiErrorSchema,
|
|
28
|
+
U as DefaultBrandTheme,
|
|
29
|
+
G as DeniedRoutingCandidateV1Schema,
|
|
30
|
+
s as DistributionErrorCodes,
|
|
31
|
+
c as ErrorCodeMap,
|
|
32
|
+
d as ErrorCodeSchema,
|
|
33
|
+
S as ErrorCodes,
|
|
34
|
+
g as ErrorSupportSchema,
|
|
35
|
+
C as FingerprintErrorCodes,
|
|
36
|
+
v as GatedDecisionV1Schema,
|
|
37
|
+
B as GatedRoutingCandidateV1Schema,
|
|
38
|
+
P as NoAccessDecisionV1Schema,
|
|
39
|
+
T as RiskAssessmentSchema,
|
|
40
|
+
k as RiskLevel,
|
|
41
|
+
x as RiskLevelSchema,
|
|
42
|
+
y as RiskLevels,
|
|
43
|
+
b as RoutedDecisionV1Schema,
|
|
44
|
+
L as RoutingCandidateSchema,
|
|
45
|
+
q as RoutingCandidateV1Schema,
|
|
46
|
+
te as RoutingChallengeSchema,
|
|
47
|
+
M as RoutingDecisionSchema,
|
|
48
|
+
W as RoutingDecisionV1Schema,
|
|
49
|
+
F as RoutingGateSchema,
|
|
50
|
+
I as RoutingGateV1Schema,
|
|
51
|
+
N as RoutingReasonCodeSchema,
|
|
52
|
+
j as RoutingReasonCodeV1Schema,
|
|
53
|
+
w as RoutingReasonCodesV1,
|
|
54
|
+
z as RoutingReasonSchema,
|
|
55
|
+
H as RoutingReasonV1Schema,
|
|
56
|
+
J as RoutingSequenceRefSchema,
|
|
57
|
+
K as RoutingSequenceRefV1Schema,
|
|
58
|
+
u as ValidationIssueSchema,
|
|
59
|
+
X as WidgetVariantSchema,
|
|
60
|
+
Y as WidgetVariants,
|
|
61
|
+
Z as mergeBrandTheme
|
|
62
|
+
};
|