@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,1202 @@
|
|
|
1
|
+
import { InferOutput } from 'valibot';
|
|
2
|
+
import { BotMitigationStateSchema, ChallengeProviderSchema, ChallengeProviders, ChallengePurposeSchema, ChallengePurposes, ChallengeTypeSchema, ChallengeTypes, RoutingChallengeSchema, BotMitigationState as ContractBotMitigationState, ChallengeProvider as ContractChallengeProvider, ChallengePurpose as ContractChallengePurpose, ChallengeType as ContractChallengeType, RoutingChallenge as ContractRoutingChallenge } from './challenges';
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
export { BotMitigationStateSchema, ChallengeProviderSchema, ChallengeProviders, ChallengePurposeSchema, ChallengePurposes, ChallengeTypeSchema, ChallengeTypes, RoutingChallengeSchema, };
|
|
5
|
+
export declare const ChallengeProvider: {
|
|
6
|
+
readonly TURNSTILE: "turnstile";
|
|
7
|
+
};
|
|
8
|
+
export declare const ChallengePurpose: {
|
|
9
|
+
readonly EXPERIENCE_ENTRY: "experience_entry";
|
|
10
|
+
};
|
|
11
|
+
export declare const ChallengeType: {
|
|
12
|
+
readonly TURNSTILE_INVISIBLE: "turnstile_invisible";
|
|
13
|
+
readonly TURNSTILE_MANAGED: "turnstile_managed";
|
|
14
|
+
readonly TURNSTILE_INTERACTIVE: "turnstile_interactive";
|
|
15
|
+
};
|
|
16
|
+
export type BotMitigationState = ContractBotMitigationState;
|
|
17
|
+
export type ChallengeProvider = ContractChallengeProvider;
|
|
18
|
+
export type ChallengePurpose = ContractChallengePurpose;
|
|
19
|
+
export type ChallengeType = ContractChallengeType;
|
|
20
|
+
export type RoutingChallenge = ContractRoutingChallenge;
|
|
21
|
+
export declare const RiskLevel: {
|
|
22
|
+
readonly LOW: "LOW";
|
|
23
|
+
readonly MEDIUM: "MEDIUM";
|
|
24
|
+
readonly HIGH: "HIGH";
|
|
25
|
+
};
|
|
26
|
+
export declare const RiskLevels: readonly ["LOW", "MEDIUM", "HIGH"];
|
|
27
|
+
export type RiskLevel = (typeof RiskLevels)[number];
|
|
28
|
+
export declare const RiskLevelSchema: v.PicklistSchema<readonly ["LOW", "MEDIUM", "HIGH"], undefined>;
|
|
29
|
+
export declare const RiskAssessmentSchema: v.ObjectSchema<{
|
|
30
|
+
readonly riskLevel: v.PicklistSchema<readonly ["LOW", "MEDIUM", "HIGH"], undefined>;
|
|
31
|
+
readonly requiresChallenge: v.BooleanSchema<undefined>;
|
|
32
|
+
readonly blocked: v.BooleanSchema<undefined>;
|
|
33
|
+
}, undefined>;
|
|
34
|
+
export type RiskAssessment = InferOutput<typeof RiskAssessmentSchema>;
|
|
35
|
+
export declare const RoutingReasonCodesV1: readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"];
|
|
36
|
+
export type RoutingReasonCodeV1 = (typeof RoutingReasonCodesV1)[number];
|
|
37
|
+
export declare const RoutingReasonCodeV1Schema: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
38
|
+
export declare const RoutingReasonCodeSchema: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
39
|
+
export type RoutingReasonCode = RoutingReasonCodeV1;
|
|
40
|
+
export declare const RoutingReasonV1Schema: v.ObjectSchema<{
|
|
41
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
42
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
43
|
+
}, undefined>;
|
|
44
|
+
export declare const RoutingReasonSchema: v.ObjectSchema<{
|
|
45
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
46
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
47
|
+
}, undefined>;
|
|
48
|
+
export type RoutingReasonV1 = InferOutput<typeof RoutingReasonV1Schema>;
|
|
49
|
+
export type RoutingReason = RoutingReasonV1;
|
|
50
|
+
export declare const RoutingSequenceRefV1Schema: v.ObjectSchema<{
|
|
51
|
+
readonly id: v.StringSchema<undefined>;
|
|
52
|
+
readonly name: v.StringSchema<undefined>;
|
|
53
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
54
|
+
readonly priority: v.NumberSchema<undefined>;
|
|
55
|
+
readonly color: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
56
|
+
}, undefined>;
|
|
57
|
+
export declare const RoutingSequenceRefSchema: v.ObjectSchema<{
|
|
58
|
+
readonly id: v.StringSchema<undefined>;
|
|
59
|
+
readonly name: v.StringSchema<undefined>;
|
|
60
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
61
|
+
readonly priority: v.NumberSchema<undefined>;
|
|
62
|
+
readonly color: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
63
|
+
}, undefined>;
|
|
64
|
+
export type RoutingSequenceRefV1 = InferOutput<typeof RoutingSequenceRefV1Schema>;
|
|
65
|
+
export type RoutingSequenceRef = RoutingSequenceRefV1;
|
|
66
|
+
export declare const AuthenticationRoutingGateV1Schema: v.ObjectSchema<{
|
|
67
|
+
readonly type: v.LiteralSchema<"authentication", undefined>;
|
|
68
|
+
readonly status: v.LiteralSchema<"required", undefined>;
|
|
69
|
+
readonly reason: v.ObjectSchema<{
|
|
70
|
+
readonly code: v.LiteralSchema<"AUTH_REQUIRED", undefined>;
|
|
71
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
72
|
+
}, undefined>;
|
|
73
|
+
}, undefined>;
|
|
74
|
+
export declare const AccessCodeRoutingGateV1Schema: v.ObjectSchema<{
|
|
75
|
+
readonly type: v.LiteralSchema<"access_code", undefined>;
|
|
76
|
+
readonly status: v.PicklistSchema<["missing", "invalid"], undefined>;
|
|
77
|
+
readonly reason: v.ObjectSchema<{
|
|
78
|
+
readonly code: v.PicklistSchema<["ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID"], undefined>;
|
|
79
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
80
|
+
}, undefined>;
|
|
81
|
+
}, undefined>;
|
|
82
|
+
export declare const BotCheckRoutingGateV1Schema: v.ObjectSchema<{
|
|
83
|
+
readonly type: v.LiteralSchema<"bot_check", undefined>;
|
|
84
|
+
readonly status: v.PicklistSchema<["required", "blocked"], undefined>;
|
|
85
|
+
readonly reason: v.ObjectSchema<{
|
|
86
|
+
readonly code: v.PicklistSchema<["BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
87
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
88
|
+
}, undefined>;
|
|
89
|
+
readonly challenge: v.OptionalSchema<v.ObjectSchema<{
|
|
90
|
+
readonly id: v.StringSchema<undefined>;
|
|
91
|
+
readonly provider: v.LiteralSchema<"turnstile", undefined>;
|
|
92
|
+
readonly type: v.PicklistSchema<readonly ["turnstile_invisible", "turnstile_managed", "turnstile_interactive"], undefined>;
|
|
93
|
+
readonly iframeUrl: v.StringSchema<undefined>;
|
|
94
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
95
|
+
}, undefined>, undefined>;
|
|
96
|
+
readonly mitigation: v.OptionalSchema<v.ObjectSchema<{
|
|
97
|
+
readonly attemptsRemaining: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
98
|
+
readonly blockedUntil: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
99
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
100
|
+
}, undefined>, undefined>;
|
|
101
|
+
}, undefined>;
|
|
102
|
+
export declare const RoutingGateV1Schema: v.UnionSchema<[v.ObjectSchema<{
|
|
103
|
+
readonly type: v.LiteralSchema<"authentication", undefined>;
|
|
104
|
+
readonly status: v.LiteralSchema<"required", undefined>;
|
|
105
|
+
readonly reason: v.ObjectSchema<{
|
|
106
|
+
readonly code: v.LiteralSchema<"AUTH_REQUIRED", undefined>;
|
|
107
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
108
|
+
}, undefined>;
|
|
109
|
+
}, undefined>, v.ObjectSchema<{
|
|
110
|
+
readonly type: v.LiteralSchema<"access_code", undefined>;
|
|
111
|
+
readonly status: v.PicklistSchema<["missing", "invalid"], undefined>;
|
|
112
|
+
readonly reason: v.ObjectSchema<{
|
|
113
|
+
readonly code: v.PicklistSchema<["ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID"], undefined>;
|
|
114
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
115
|
+
}, undefined>;
|
|
116
|
+
}, undefined>, v.ObjectSchema<{
|
|
117
|
+
readonly type: v.LiteralSchema<"bot_check", undefined>;
|
|
118
|
+
readonly status: v.PicklistSchema<["required", "blocked"], undefined>;
|
|
119
|
+
readonly reason: v.ObjectSchema<{
|
|
120
|
+
readonly code: v.PicklistSchema<["BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
121
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
122
|
+
}, undefined>;
|
|
123
|
+
readonly challenge: v.OptionalSchema<v.ObjectSchema<{
|
|
124
|
+
readonly id: v.StringSchema<undefined>;
|
|
125
|
+
readonly provider: v.LiteralSchema<"turnstile", undefined>;
|
|
126
|
+
readonly type: v.PicklistSchema<readonly ["turnstile_invisible", "turnstile_managed", "turnstile_interactive"], undefined>;
|
|
127
|
+
readonly iframeUrl: v.StringSchema<undefined>;
|
|
128
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
129
|
+
}, undefined>, undefined>;
|
|
130
|
+
readonly mitigation: v.OptionalSchema<v.ObjectSchema<{
|
|
131
|
+
readonly attemptsRemaining: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
132
|
+
readonly blockedUntil: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
133
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
134
|
+
}, undefined>, undefined>;
|
|
135
|
+
}, undefined>], undefined>;
|
|
136
|
+
export declare const RoutingGateSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
137
|
+
readonly type: v.LiteralSchema<"authentication", undefined>;
|
|
138
|
+
readonly status: v.LiteralSchema<"required", undefined>;
|
|
139
|
+
readonly reason: v.ObjectSchema<{
|
|
140
|
+
readonly code: v.LiteralSchema<"AUTH_REQUIRED", undefined>;
|
|
141
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
142
|
+
}, undefined>;
|
|
143
|
+
}, undefined>, v.ObjectSchema<{
|
|
144
|
+
readonly type: v.LiteralSchema<"access_code", undefined>;
|
|
145
|
+
readonly status: v.PicklistSchema<["missing", "invalid"], undefined>;
|
|
146
|
+
readonly reason: v.ObjectSchema<{
|
|
147
|
+
readonly code: v.PicklistSchema<["ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID"], undefined>;
|
|
148
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
149
|
+
}, undefined>;
|
|
150
|
+
}, undefined>, v.ObjectSchema<{
|
|
151
|
+
readonly type: v.LiteralSchema<"bot_check", undefined>;
|
|
152
|
+
readonly status: v.PicklistSchema<["required", "blocked"], undefined>;
|
|
153
|
+
readonly reason: v.ObjectSchema<{
|
|
154
|
+
readonly code: v.PicklistSchema<["BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
155
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
156
|
+
}, undefined>;
|
|
157
|
+
readonly challenge: v.OptionalSchema<v.ObjectSchema<{
|
|
158
|
+
readonly id: v.StringSchema<undefined>;
|
|
159
|
+
readonly provider: v.LiteralSchema<"turnstile", undefined>;
|
|
160
|
+
readonly type: v.PicklistSchema<readonly ["turnstile_invisible", "turnstile_managed", "turnstile_interactive"], undefined>;
|
|
161
|
+
readonly iframeUrl: v.StringSchema<undefined>;
|
|
162
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
163
|
+
}, undefined>, undefined>;
|
|
164
|
+
readonly mitigation: v.OptionalSchema<v.ObjectSchema<{
|
|
165
|
+
readonly attemptsRemaining: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
166
|
+
readonly blockedUntil: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
167
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
168
|
+
}, undefined>, undefined>;
|
|
169
|
+
}, undefined>], undefined>;
|
|
170
|
+
export type RoutingGateV1 = InferOutput<typeof RoutingGateV1Schema>;
|
|
171
|
+
export type RoutingGate = RoutingGateV1;
|
|
172
|
+
export declare const AdmissibleRoutingCandidateV1Schema: v.ObjectSchema<{
|
|
173
|
+
readonly gates: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
174
|
+
readonly type: v.LiteralSchema<"authentication", undefined>;
|
|
175
|
+
readonly status: v.LiteralSchema<"required", undefined>;
|
|
176
|
+
readonly reason: v.ObjectSchema<{
|
|
177
|
+
readonly code: v.LiteralSchema<"AUTH_REQUIRED", undefined>;
|
|
178
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
179
|
+
}, undefined>;
|
|
180
|
+
}, undefined>, v.ObjectSchema<{
|
|
181
|
+
readonly type: v.LiteralSchema<"access_code", undefined>;
|
|
182
|
+
readonly status: v.PicklistSchema<["missing", "invalid"], undefined>;
|
|
183
|
+
readonly reason: v.ObjectSchema<{
|
|
184
|
+
readonly code: v.PicklistSchema<["ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID"], undefined>;
|
|
185
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
186
|
+
}, undefined>;
|
|
187
|
+
}, undefined>, v.ObjectSchema<{
|
|
188
|
+
readonly type: v.LiteralSchema<"bot_check", undefined>;
|
|
189
|
+
readonly status: v.PicklistSchema<["required", "blocked"], undefined>;
|
|
190
|
+
readonly reason: v.ObjectSchema<{
|
|
191
|
+
readonly code: v.PicklistSchema<["BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
192
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
193
|
+
}, undefined>;
|
|
194
|
+
readonly challenge: v.OptionalSchema<v.ObjectSchema<{
|
|
195
|
+
readonly id: v.StringSchema<undefined>;
|
|
196
|
+
readonly provider: v.LiteralSchema<"turnstile", undefined>;
|
|
197
|
+
readonly type: v.PicklistSchema<readonly ["turnstile_invisible", "turnstile_managed", "turnstile_interactive"], undefined>;
|
|
198
|
+
readonly iframeUrl: v.StringSchema<undefined>;
|
|
199
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
200
|
+
}, undefined>, undefined>;
|
|
201
|
+
readonly mitigation: v.OptionalSchema<v.ObjectSchema<{
|
|
202
|
+
readonly attemptsRemaining: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
203
|
+
readonly blockedUntil: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
204
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
205
|
+
}, undefined>, undefined>;
|
|
206
|
+
}, undefined>], undefined>, undefined>;
|
|
207
|
+
readonly reasons: v.ArraySchema<v.ObjectSchema<{
|
|
208
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
209
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
210
|
+
}, undefined>, undefined>;
|
|
211
|
+
readonly sequenceCapabilityGrant: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
212
|
+
readonly sequenceCapabilityGrantExpiresAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
213
|
+
readonly sequence: v.ObjectSchema<{
|
|
214
|
+
readonly id: v.StringSchema<undefined>;
|
|
215
|
+
readonly name: v.StringSchema<undefined>;
|
|
216
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
217
|
+
readonly priority: v.NumberSchema<undefined>;
|
|
218
|
+
readonly color: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
219
|
+
}, undefined>;
|
|
220
|
+
readonly status: v.LiteralSchema<"admissible", undefined>;
|
|
221
|
+
}, undefined>;
|
|
222
|
+
export declare const GatedRoutingCandidateV1Schema: v.ObjectSchema<{
|
|
223
|
+
readonly gates: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
224
|
+
readonly type: v.LiteralSchema<"authentication", undefined>;
|
|
225
|
+
readonly status: v.LiteralSchema<"required", undefined>;
|
|
226
|
+
readonly reason: v.ObjectSchema<{
|
|
227
|
+
readonly code: v.LiteralSchema<"AUTH_REQUIRED", undefined>;
|
|
228
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
229
|
+
}, undefined>;
|
|
230
|
+
}, undefined>, v.ObjectSchema<{
|
|
231
|
+
readonly type: v.LiteralSchema<"access_code", undefined>;
|
|
232
|
+
readonly status: v.PicklistSchema<["missing", "invalid"], undefined>;
|
|
233
|
+
readonly reason: v.ObjectSchema<{
|
|
234
|
+
readonly code: v.PicklistSchema<["ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID"], undefined>;
|
|
235
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
236
|
+
}, undefined>;
|
|
237
|
+
}, undefined>, v.ObjectSchema<{
|
|
238
|
+
readonly type: v.LiteralSchema<"bot_check", undefined>;
|
|
239
|
+
readonly status: v.PicklistSchema<["required", "blocked"], undefined>;
|
|
240
|
+
readonly reason: v.ObjectSchema<{
|
|
241
|
+
readonly code: v.PicklistSchema<["BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
242
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
243
|
+
}, undefined>;
|
|
244
|
+
readonly challenge: v.OptionalSchema<v.ObjectSchema<{
|
|
245
|
+
readonly id: v.StringSchema<undefined>;
|
|
246
|
+
readonly provider: v.LiteralSchema<"turnstile", undefined>;
|
|
247
|
+
readonly type: v.PicklistSchema<readonly ["turnstile_invisible", "turnstile_managed", "turnstile_interactive"], undefined>;
|
|
248
|
+
readonly iframeUrl: v.StringSchema<undefined>;
|
|
249
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
250
|
+
}, undefined>, undefined>;
|
|
251
|
+
readonly mitigation: v.OptionalSchema<v.ObjectSchema<{
|
|
252
|
+
readonly attemptsRemaining: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
253
|
+
readonly blockedUntil: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
254
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
255
|
+
}, undefined>, undefined>;
|
|
256
|
+
}, undefined>], undefined>, undefined>;
|
|
257
|
+
readonly reasons: v.ArraySchema<v.ObjectSchema<{
|
|
258
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
259
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
260
|
+
}, undefined>, undefined>;
|
|
261
|
+
readonly sequenceCapabilityGrant: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
262
|
+
readonly sequenceCapabilityGrantExpiresAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
263
|
+
readonly sequence: v.ObjectSchema<{
|
|
264
|
+
readonly id: v.StringSchema<undefined>;
|
|
265
|
+
readonly name: v.StringSchema<undefined>;
|
|
266
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
267
|
+
readonly priority: v.NumberSchema<undefined>;
|
|
268
|
+
readonly color: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
269
|
+
}, undefined>;
|
|
270
|
+
readonly status: v.LiteralSchema<"gated", undefined>;
|
|
271
|
+
}, undefined>;
|
|
272
|
+
export declare const DeniedRoutingCandidateV1Schema: v.ObjectSchema<{
|
|
273
|
+
readonly gates: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
274
|
+
readonly type: v.LiteralSchema<"authentication", undefined>;
|
|
275
|
+
readonly status: v.LiteralSchema<"required", undefined>;
|
|
276
|
+
readonly reason: v.ObjectSchema<{
|
|
277
|
+
readonly code: v.LiteralSchema<"AUTH_REQUIRED", undefined>;
|
|
278
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
279
|
+
}, undefined>;
|
|
280
|
+
}, undefined>, v.ObjectSchema<{
|
|
281
|
+
readonly type: v.LiteralSchema<"access_code", undefined>;
|
|
282
|
+
readonly status: v.PicklistSchema<["missing", "invalid"], undefined>;
|
|
283
|
+
readonly reason: v.ObjectSchema<{
|
|
284
|
+
readonly code: v.PicklistSchema<["ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID"], undefined>;
|
|
285
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
286
|
+
}, undefined>;
|
|
287
|
+
}, undefined>, v.ObjectSchema<{
|
|
288
|
+
readonly type: v.LiteralSchema<"bot_check", undefined>;
|
|
289
|
+
readonly status: v.PicklistSchema<["required", "blocked"], undefined>;
|
|
290
|
+
readonly reason: v.ObjectSchema<{
|
|
291
|
+
readonly code: v.PicklistSchema<["BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
292
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
293
|
+
}, undefined>;
|
|
294
|
+
readonly challenge: v.OptionalSchema<v.ObjectSchema<{
|
|
295
|
+
readonly id: v.StringSchema<undefined>;
|
|
296
|
+
readonly provider: v.LiteralSchema<"turnstile", undefined>;
|
|
297
|
+
readonly type: v.PicklistSchema<readonly ["turnstile_invisible", "turnstile_managed", "turnstile_interactive"], undefined>;
|
|
298
|
+
readonly iframeUrl: v.StringSchema<undefined>;
|
|
299
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
300
|
+
}, undefined>, undefined>;
|
|
301
|
+
readonly mitigation: v.OptionalSchema<v.ObjectSchema<{
|
|
302
|
+
readonly attemptsRemaining: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
303
|
+
readonly blockedUntil: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
304
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
305
|
+
}, undefined>, undefined>;
|
|
306
|
+
}, undefined>], undefined>, undefined>;
|
|
307
|
+
readonly reasons: v.ArraySchema<v.ObjectSchema<{
|
|
308
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
309
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
310
|
+
}, undefined>, undefined>;
|
|
311
|
+
readonly sequenceCapabilityGrant: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
312
|
+
readonly sequenceCapabilityGrantExpiresAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
313
|
+
readonly sequence: v.ObjectSchema<{
|
|
314
|
+
readonly id: v.StringSchema<undefined>;
|
|
315
|
+
readonly name: v.StringSchema<undefined>;
|
|
316
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
317
|
+
readonly priority: v.NumberSchema<undefined>;
|
|
318
|
+
readonly color: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
319
|
+
}, undefined>;
|
|
320
|
+
readonly status: v.LiteralSchema<"denied", undefined>;
|
|
321
|
+
}, undefined>;
|
|
322
|
+
export declare const RoutingCandidateV1Schema: v.UnionSchema<[v.ObjectSchema<{
|
|
323
|
+
readonly gates: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
324
|
+
readonly type: v.LiteralSchema<"authentication", undefined>;
|
|
325
|
+
readonly status: v.LiteralSchema<"required", undefined>;
|
|
326
|
+
readonly reason: v.ObjectSchema<{
|
|
327
|
+
readonly code: v.LiteralSchema<"AUTH_REQUIRED", undefined>;
|
|
328
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
329
|
+
}, undefined>;
|
|
330
|
+
}, undefined>, v.ObjectSchema<{
|
|
331
|
+
readonly type: v.LiteralSchema<"access_code", undefined>;
|
|
332
|
+
readonly status: v.PicklistSchema<["missing", "invalid"], undefined>;
|
|
333
|
+
readonly reason: v.ObjectSchema<{
|
|
334
|
+
readonly code: v.PicklistSchema<["ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID"], undefined>;
|
|
335
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
336
|
+
}, undefined>;
|
|
337
|
+
}, undefined>, v.ObjectSchema<{
|
|
338
|
+
readonly type: v.LiteralSchema<"bot_check", undefined>;
|
|
339
|
+
readonly status: v.PicklistSchema<["required", "blocked"], undefined>;
|
|
340
|
+
readonly reason: v.ObjectSchema<{
|
|
341
|
+
readonly code: v.PicklistSchema<["BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
342
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
343
|
+
}, undefined>;
|
|
344
|
+
readonly challenge: v.OptionalSchema<v.ObjectSchema<{
|
|
345
|
+
readonly id: v.StringSchema<undefined>;
|
|
346
|
+
readonly provider: v.LiteralSchema<"turnstile", undefined>;
|
|
347
|
+
readonly type: v.PicklistSchema<readonly ["turnstile_invisible", "turnstile_managed", "turnstile_interactive"], undefined>;
|
|
348
|
+
readonly iframeUrl: v.StringSchema<undefined>;
|
|
349
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
350
|
+
}, undefined>, undefined>;
|
|
351
|
+
readonly mitigation: v.OptionalSchema<v.ObjectSchema<{
|
|
352
|
+
readonly attemptsRemaining: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
353
|
+
readonly blockedUntil: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
354
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
355
|
+
}, undefined>, undefined>;
|
|
356
|
+
}, undefined>], undefined>, undefined>;
|
|
357
|
+
readonly reasons: v.ArraySchema<v.ObjectSchema<{
|
|
358
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
359
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
360
|
+
}, undefined>, undefined>;
|
|
361
|
+
readonly sequenceCapabilityGrant: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
362
|
+
readonly sequenceCapabilityGrantExpiresAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
363
|
+
readonly sequence: v.ObjectSchema<{
|
|
364
|
+
readonly id: v.StringSchema<undefined>;
|
|
365
|
+
readonly name: v.StringSchema<undefined>;
|
|
366
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
367
|
+
readonly priority: v.NumberSchema<undefined>;
|
|
368
|
+
readonly color: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
369
|
+
}, undefined>;
|
|
370
|
+
readonly status: v.LiteralSchema<"admissible", undefined>;
|
|
371
|
+
}, undefined>, v.ObjectSchema<{
|
|
372
|
+
readonly gates: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
373
|
+
readonly type: v.LiteralSchema<"authentication", undefined>;
|
|
374
|
+
readonly status: v.LiteralSchema<"required", undefined>;
|
|
375
|
+
readonly reason: v.ObjectSchema<{
|
|
376
|
+
readonly code: v.LiteralSchema<"AUTH_REQUIRED", undefined>;
|
|
377
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
378
|
+
}, undefined>;
|
|
379
|
+
}, undefined>, v.ObjectSchema<{
|
|
380
|
+
readonly type: v.LiteralSchema<"access_code", undefined>;
|
|
381
|
+
readonly status: v.PicklistSchema<["missing", "invalid"], undefined>;
|
|
382
|
+
readonly reason: v.ObjectSchema<{
|
|
383
|
+
readonly code: v.PicklistSchema<["ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID"], undefined>;
|
|
384
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
385
|
+
}, undefined>;
|
|
386
|
+
}, undefined>, v.ObjectSchema<{
|
|
387
|
+
readonly type: v.LiteralSchema<"bot_check", undefined>;
|
|
388
|
+
readonly status: v.PicklistSchema<["required", "blocked"], undefined>;
|
|
389
|
+
readonly reason: v.ObjectSchema<{
|
|
390
|
+
readonly code: v.PicklistSchema<["BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
391
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
392
|
+
}, undefined>;
|
|
393
|
+
readonly challenge: v.OptionalSchema<v.ObjectSchema<{
|
|
394
|
+
readonly id: v.StringSchema<undefined>;
|
|
395
|
+
readonly provider: v.LiteralSchema<"turnstile", undefined>;
|
|
396
|
+
readonly type: v.PicklistSchema<readonly ["turnstile_invisible", "turnstile_managed", "turnstile_interactive"], undefined>;
|
|
397
|
+
readonly iframeUrl: v.StringSchema<undefined>;
|
|
398
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
399
|
+
}, undefined>, undefined>;
|
|
400
|
+
readonly mitigation: v.OptionalSchema<v.ObjectSchema<{
|
|
401
|
+
readonly attemptsRemaining: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
402
|
+
readonly blockedUntil: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
403
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
404
|
+
}, undefined>, undefined>;
|
|
405
|
+
}, undefined>], undefined>, undefined>;
|
|
406
|
+
readonly reasons: v.ArraySchema<v.ObjectSchema<{
|
|
407
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
408
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
409
|
+
}, undefined>, undefined>;
|
|
410
|
+
readonly sequenceCapabilityGrant: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
411
|
+
readonly sequenceCapabilityGrantExpiresAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
412
|
+
readonly sequence: v.ObjectSchema<{
|
|
413
|
+
readonly id: v.StringSchema<undefined>;
|
|
414
|
+
readonly name: v.StringSchema<undefined>;
|
|
415
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
416
|
+
readonly priority: v.NumberSchema<undefined>;
|
|
417
|
+
readonly color: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
418
|
+
}, undefined>;
|
|
419
|
+
readonly status: v.LiteralSchema<"gated", undefined>;
|
|
420
|
+
}, undefined>, v.ObjectSchema<{
|
|
421
|
+
readonly gates: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
422
|
+
readonly type: v.LiteralSchema<"authentication", undefined>;
|
|
423
|
+
readonly status: v.LiteralSchema<"required", undefined>;
|
|
424
|
+
readonly reason: v.ObjectSchema<{
|
|
425
|
+
readonly code: v.LiteralSchema<"AUTH_REQUIRED", undefined>;
|
|
426
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
427
|
+
}, undefined>;
|
|
428
|
+
}, undefined>, v.ObjectSchema<{
|
|
429
|
+
readonly type: v.LiteralSchema<"access_code", undefined>;
|
|
430
|
+
readonly status: v.PicklistSchema<["missing", "invalid"], undefined>;
|
|
431
|
+
readonly reason: v.ObjectSchema<{
|
|
432
|
+
readonly code: v.PicklistSchema<["ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID"], undefined>;
|
|
433
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
434
|
+
}, undefined>;
|
|
435
|
+
}, undefined>, v.ObjectSchema<{
|
|
436
|
+
readonly type: v.LiteralSchema<"bot_check", undefined>;
|
|
437
|
+
readonly status: v.PicklistSchema<["required", "blocked"], undefined>;
|
|
438
|
+
readonly reason: v.ObjectSchema<{
|
|
439
|
+
readonly code: v.PicklistSchema<["BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
440
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
441
|
+
}, undefined>;
|
|
442
|
+
readonly challenge: v.OptionalSchema<v.ObjectSchema<{
|
|
443
|
+
readonly id: v.StringSchema<undefined>;
|
|
444
|
+
readonly provider: v.LiteralSchema<"turnstile", undefined>;
|
|
445
|
+
readonly type: v.PicklistSchema<readonly ["turnstile_invisible", "turnstile_managed", "turnstile_interactive"], undefined>;
|
|
446
|
+
readonly iframeUrl: v.StringSchema<undefined>;
|
|
447
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
448
|
+
}, undefined>, undefined>;
|
|
449
|
+
readonly mitigation: v.OptionalSchema<v.ObjectSchema<{
|
|
450
|
+
readonly attemptsRemaining: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
451
|
+
readonly blockedUntil: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
452
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
453
|
+
}, undefined>, undefined>;
|
|
454
|
+
}, undefined>], undefined>, undefined>;
|
|
455
|
+
readonly reasons: v.ArraySchema<v.ObjectSchema<{
|
|
456
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
457
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
458
|
+
}, undefined>, undefined>;
|
|
459
|
+
readonly sequenceCapabilityGrant: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
460
|
+
readonly sequenceCapabilityGrantExpiresAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
461
|
+
readonly sequence: v.ObjectSchema<{
|
|
462
|
+
readonly id: v.StringSchema<undefined>;
|
|
463
|
+
readonly name: v.StringSchema<undefined>;
|
|
464
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
465
|
+
readonly priority: v.NumberSchema<undefined>;
|
|
466
|
+
readonly color: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
467
|
+
}, undefined>;
|
|
468
|
+
readonly status: v.LiteralSchema<"denied", undefined>;
|
|
469
|
+
}, undefined>], undefined>;
|
|
470
|
+
export declare const RoutingCandidateSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
471
|
+
readonly gates: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
472
|
+
readonly type: v.LiteralSchema<"authentication", undefined>;
|
|
473
|
+
readonly status: v.LiteralSchema<"required", undefined>;
|
|
474
|
+
readonly reason: v.ObjectSchema<{
|
|
475
|
+
readonly code: v.LiteralSchema<"AUTH_REQUIRED", undefined>;
|
|
476
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
477
|
+
}, undefined>;
|
|
478
|
+
}, undefined>, v.ObjectSchema<{
|
|
479
|
+
readonly type: v.LiteralSchema<"access_code", undefined>;
|
|
480
|
+
readonly status: v.PicklistSchema<["missing", "invalid"], undefined>;
|
|
481
|
+
readonly reason: v.ObjectSchema<{
|
|
482
|
+
readonly code: v.PicklistSchema<["ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID"], undefined>;
|
|
483
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
484
|
+
}, undefined>;
|
|
485
|
+
}, undefined>, v.ObjectSchema<{
|
|
486
|
+
readonly type: v.LiteralSchema<"bot_check", undefined>;
|
|
487
|
+
readonly status: v.PicklistSchema<["required", "blocked"], undefined>;
|
|
488
|
+
readonly reason: v.ObjectSchema<{
|
|
489
|
+
readonly code: v.PicklistSchema<["BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
490
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
491
|
+
}, undefined>;
|
|
492
|
+
readonly challenge: v.OptionalSchema<v.ObjectSchema<{
|
|
493
|
+
readonly id: v.StringSchema<undefined>;
|
|
494
|
+
readonly provider: v.LiteralSchema<"turnstile", undefined>;
|
|
495
|
+
readonly type: v.PicklistSchema<readonly ["turnstile_invisible", "turnstile_managed", "turnstile_interactive"], undefined>;
|
|
496
|
+
readonly iframeUrl: v.StringSchema<undefined>;
|
|
497
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
498
|
+
}, undefined>, undefined>;
|
|
499
|
+
readonly mitigation: v.OptionalSchema<v.ObjectSchema<{
|
|
500
|
+
readonly attemptsRemaining: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
501
|
+
readonly blockedUntil: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
502
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
503
|
+
}, undefined>, undefined>;
|
|
504
|
+
}, undefined>], undefined>, undefined>;
|
|
505
|
+
readonly reasons: v.ArraySchema<v.ObjectSchema<{
|
|
506
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
507
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
508
|
+
}, undefined>, undefined>;
|
|
509
|
+
readonly sequenceCapabilityGrant: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
510
|
+
readonly sequenceCapabilityGrantExpiresAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
511
|
+
readonly sequence: v.ObjectSchema<{
|
|
512
|
+
readonly id: v.StringSchema<undefined>;
|
|
513
|
+
readonly name: v.StringSchema<undefined>;
|
|
514
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
515
|
+
readonly priority: v.NumberSchema<undefined>;
|
|
516
|
+
readonly color: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
517
|
+
}, undefined>;
|
|
518
|
+
readonly status: v.LiteralSchema<"admissible", undefined>;
|
|
519
|
+
}, undefined>, v.ObjectSchema<{
|
|
520
|
+
readonly gates: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
521
|
+
readonly type: v.LiteralSchema<"authentication", undefined>;
|
|
522
|
+
readonly status: v.LiteralSchema<"required", undefined>;
|
|
523
|
+
readonly reason: v.ObjectSchema<{
|
|
524
|
+
readonly code: v.LiteralSchema<"AUTH_REQUIRED", undefined>;
|
|
525
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
526
|
+
}, undefined>;
|
|
527
|
+
}, undefined>, v.ObjectSchema<{
|
|
528
|
+
readonly type: v.LiteralSchema<"access_code", undefined>;
|
|
529
|
+
readonly status: v.PicklistSchema<["missing", "invalid"], undefined>;
|
|
530
|
+
readonly reason: v.ObjectSchema<{
|
|
531
|
+
readonly code: v.PicklistSchema<["ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID"], undefined>;
|
|
532
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
533
|
+
}, undefined>;
|
|
534
|
+
}, undefined>, v.ObjectSchema<{
|
|
535
|
+
readonly type: v.LiteralSchema<"bot_check", undefined>;
|
|
536
|
+
readonly status: v.PicklistSchema<["required", "blocked"], undefined>;
|
|
537
|
+
readonly reason: v.ObjectSchema<{
|
|
538
|
+
readonly code: v.PicklistSchema<["BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
539
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
540
|
+
}, undefined>;
|
|
541
|
+
readonly challenge: v.OptionalSchema<v.ObjectSchema<{
|
|
542
|
+
readonly id: v.StringSchema<undefined>;
|
|
543
|
+
readonly provider: v.LiteralSchema<"turnstile", undefined>;
|
|
544
|
+
readonly type: v.PicklistSchema<readonly ["turnstile_invisible", "turnstile_managed", "turnstile_interactive"], undefined>;
|
|
545
|
+
readonly iframeUrl: v.StringSchema<undefined>;
|
|
546
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
547
|
+
}, undefined>, undefined>;
|
|
548
|
+
readonly mitigation: v.OptionalSchema<v.ObjectSchema<{
|
|
549
|
+
readonly attemptsRemaining: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
550
|
+
readonly blockedUntil: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
551
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
552
|
+
}, undefined>, undefined>;
|
|
553
|
+
}, undefined>], undefined>, undefined>;
|
|
554
|
+
readonly reasons: v.ArraySchema<v.ObjectSchema<{
|
|
555
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
556
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
557
|
+
}, undefined>, undefined>;
|
|
558
|
+
readonly sequenceCapabilityGrant: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
559
|
+
readonly sequenceCapabilityGrantExpiresAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
560
|
+
readonly sequence: v.ObjectSchema<{
|
|
561
|
+
readonly id: v.StringSchema<undefined>;
|
|
562
|
+
readonly name: v.StringSchema<undefined>;
|
|
563
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
564
|
+
readonly priority: v.NumberSchema<undefined>;
|
|
565
|
+
readonly color: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
566
|
+
}, undefined>;
|
|
567
|
+
readonly status: v.LiteralSchema<"gated", undefined>;
|
|
568
|
+
}, undefined>, v.ObjectSchema<{
|
|
569
|
+
readonly gates: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
570
|
+
readonly type: v.LiteralSchema<"authentication", undefined>;
|
|
571
|
+
readonly status: v.LiteralSchema<"required", undefined>;
|
|
572
|
+
readonly reason: v.ObjectSchema<{
|
|
573
|
+
readonly code: v.LiteralSchema<"AUTH_REQUIRED", undefined>;
|
|
574
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
575
|
+
}, undefined>;
|
|
576
|
+
}, undefined>, v.ObjectSchema<{
|
|
577
|
+
readonly type: v.LiteralSchema<"access_code", undefined>;
|
|
578
|
+
readonly status: v.PicklistSchema<["missing", "invalid"], undefined>;
|
|
579
|
+
readonly reason: v.ObjectSchema<{
|
|
580
|
+
readonly code: v.PicklistSchema<["ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID"], undefined>;
|
|
581
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
582
|
+
}, undefined>;
|
|
583
|
+
}, undefined>, v.ObjectSchema<{
|
|
584
|
+
readonly type: v.LiteralSchema<"bot_check", undefined>;
|
|
585
|
+
readonly status: v.PicklistSchema<["required", "blocked"], undefined>;
|
|
586
|
+
readonly reason: v.ObjectSchema<{
|
|
587
|
+
readonly code: v.PicklistSchema<["BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
588
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
589
|
+
}, undefined>;
|
|
590
|
+
readonly challenge: v.OptionalSchema<v.ObjectSchema<{
|
|
591
|
+
readonly id: v.StringSchema<undefined>;
|
|
592
|
+
readonly provider: v.LiteralSchema<"turnstile", undefined>;
|
|
593
|
+
readonly type: v.PicklistSchema<readonly ["turnstile_invisible", "turnstile_managed", "turnstile_interactive"], undefined>;
|
|
594
|
+
readonly iframeUrl: v.StringSchema<undefined>;
|
|
595
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
596
|
+
}, undefined>, undefined>;
|
|
597
|
+
readonly mitigation: v.OptionalSchema<v.ObjectSchema<{
|
|
598
|
+
readonly attemptsRemaining: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
599
|
+
readonly blockedUntil: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
600
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
601
|
+
}, undefined>, undefined>;
|
|
602
|
+
}, undefined>], undefined>, undefined>;
|
|
603
|
+
readonly reasons: v.ArraySchema<v.ObjectSchema<{
|
|
604
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
605
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
606
|
+
}, undefined>, undefined>;
|
|
607
|
+
readonly sequenceCapabilityGrant: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
608
|
+
readonly sequenceCapabilityGrantExpiresAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
609
|
+
readonly sequence: v.ObjectSchema<{
|
|
610
|
+
readonly id: v.StringSchema<undefined>;
|
|
611
|
+
readonly name: v.StringSchema<undefined>;
|
|
612
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
613
|
+
readonly priority: v.NumberSchema<undefined>;
|
|
614
|
+
readonly color: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
615
|
+
}, undefined>;
|
|
616
|
+
readonly status: v.LiteralSchema<"denied", undefined>;
|
|
617
|
+
}, undefined>], undefined>;
|
|
618
|
+
export type AdmissibleRoutingCandidateV1 = InferOutput<typeof AdmissibleRoutingCandidateV1Schema>;
|
|
619
|
+
export type GatedRoutingCandidateV1 = InferOutput<typeof GatedRoutingCandidateV1Schema>;
|
|
620
|
+
export type DeniedRoutingCandidateV1 = InferOutput<typeof DeniedRoutingCandidateV1Schema>;
|
|
621
|
+
export type RoutingCandidateV1 = InferOutput<typeof RoutingCandidateV1Schema>;
|
|
622
|
+
export type RoutingCandidate = RoutingCandidateV1;
|
|
623
|
+
export declare const RoutedDecisionV1Schema: v.ObjectSchema<{
|
|
624
|
+
readonly schemaVersion: v.LiteralSchema<1, undefined>;
|
|
625
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
626
|
+
readonly outcome: v.LiteralSchema<"routed", undefined>;
|
|
627
|
+
readonly selected: v.ObjectSchema<{
|
|
628
|
+
readonly gates: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
629
|
+
readonly type: v.LiteralSchema<"authentication", undefined>;
|
|
630
|
+
readonly status: v.LiteralSchema<"required", undefined>;
|
|
631
|
+
readonly reason: v.ObjectSchema<{
|
|
632
|
+
readonly code: v.LiteralSchema<"AUTH_REQUIRED", undefined>;
|
|
633
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
634
|
+
}, undefined>;
|
|
635
|
+
}, undefined>, v.ObjectSchema<{
|
|
636
|
+
readonly type: v.LiteralSchema<"access_code", undefined>;
|
|
637
|
+
readonly status: v.PicklistSchema<["missing", "invalid"], undefined>;
|
|
638
|
+
readonly reason: v.ObjectSchema<{
|
|
639
|
+
readonly code: v.PicklistSchema<["ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID"], undefined>;
|
|
640
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
641
|
+
}, undefined>;
|
|
642
|
+
}, undefined>, v.ObjectSchema<{
|
|
643
|
+
readonly type: v.LiteralSchema<"bot_check", undefined>;
|
|
644
|
+
readonly status: v.PicklistSchema<["required", "blocked"], undefined>;
|
|
645
|
+
readonly reason: v.ObjectSchema<{
|
|
646
|
+
readonly code: v.PicklistSchema<["BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
647
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
648
|
+
}, undefined>;
|
|
649
|
+
readonly challenge: v.OptionalSchema<v.ObjectSchema<{
|
|
650
|
+
readonly id: v.StringSchema<undefined>;
|
|
651
|
+
readonly provider: v.LiteralSchema<"turnstile", undefined>;
|
|
652
|
+
readonly type: v.PicklistSchema<readonly ["turnstile_invisible", "turnstile_managed", "turnstile_interactive"], undefined>;
|
|
653
|
+
readonly iframeUrl: v.StringSchema<undefined>;
|
|
654
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
655
|
+
}, undefined>, undefined>;
|
|
656
|
+
readonly mitigation: v.OptionalSchema<v.ObjectSchema<{
|
|
657
|
+
readonly attemptsRemaining: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
658
|
+
readonly blockedUntil: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
659
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
660
|
+
}, undefined>, undefined>;
|
|
661
|
+
}, undefined>], undefined>, undefined>;
|
|
662
|
+
readonly reasons: v.ArraySchema<v.ObjectSchema<{
|
|
663
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
664
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
665
|
+
}, undefined>, undefined>;
|
|
666
|
+
readonly sequenceCapabilityGrant: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
667
|
+
readonly sequenceCapabilityGrantExpiresAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
668
|
+
readonly sequence: v.ObjectSchema<{
|
|
669
|
+
readonly id: v.StringSchema<undefined>;
|
|
670
|
+
readonly name: v.StringSchema<undefined>;
|
|
671
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
672
|
+
readonly priority: v.NumberSchema<undefined>;
|
|
673
|
+
readonly color: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
674
|
+
}, undefined>;
|
|
675
|
+
readonly status: v.LiteralSchema<"admissible", undefined>;
|
|
676
|
+
}, undefined>;
|
|
677
|
+
readonly offers: v.ArraySchema<v.ObjectSchema<{
|
|
678
|
+
readonly gates: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
679
|
+
readonly type: v.LiteralSchema<"authentication", undefined>;
|
|
680
|
+
readonly status: v.LiteralSchema<"required", undefined>;
|
|
681
|
+
readonly reason: v.ObjectSchema<{
|
|
682
|
+
readonly code: v.LiteralSchema<"AUTH_REQUIRED", undefined>;
|
|
683
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
684
|
+
}, undefined>;
|
|
685
|
+
}, undefined>, v.ObjectSchema<{
|
|
686
|
+
readonly type: v.LiteralSchema<"access_code", undefined>;
|
|
687
|
+
readonly status: v.PicklistSchema<["missing", "invalid"], undefined>;
|
|
688
|
+
readonly reason: v.ObjectSchema<{
|
|
689
|
+
readonly code: v.PicklistSchema<["ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID"], undefined>;
|
|
690
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
691
|
+
}, undefined>;
|
|
692
|
+
}, undefined>, v.ObjectSchema<{
|
|
693
|
+
readonly type: v.LiteralSchema<"bot_check", undefined>;
|
|
694
|
+
readonly status: v.PicklistSchema<["required", "blocked"], undefined>;
|
|
695
|
+
readonly reason: v.ObjectSchema<{
|
|
696
|
+
readonly code: v.PicklistSchema<["BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
697
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
698
|
+
}, undefined>;
|
|
699
|
+
readonly challenge: v.OptionalSchema<v.ObjectSchema<{
|
|
700
|
+
readonly id: v.StringSchema<undefined>;
|
|
701
|
+
readonly provider: v.LiteralSchema<"turnstile", undefined>;
|
|
702
|
+
readonly type: v.PicklistSchema<readonly ["turnstile_invisible", "turnstile_managed", "turnstile_interactive"], undefined>;
|
|
703
|
+
readonly iframeUrl: v.StringSchema<undefined>;
|
|
704
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
705
|
+
}, undefined>, undefined>;
|
|
706
|
+
readonly mitigation: v.OptionalSchema<v.ObjectSchema<{
|
|
707
|
+
readonly attemptsRemaining: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
708
|
+
readonly blockedUntil: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
709
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
710
|
+
}, undefined>, undefined>;
|
|
711
|
+
}, undefined>], undefined>, undefined>;
|
|
712
|
+
readonly reasons: v.ArraySchema<v.ObjectSchema<{
|
|
713
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
714
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
715
|
+
}, undefined>, undefined>;
|
|
716
|
+
readonly sequenceCapabilityGrant: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
717
|
+
readonly sequenceCapabilityGrantExpiresAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
718
|
+
readonly sequence: v.ObjectSchema<{
|
|
719
|
+
readonly id: v.StringSchema<undefined>;
|
|
720
|
+
readonly name: v.StringSchema<undefined>;
|
|
721
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
722
|
+
readonly priority: v.NumberSchema<undefined>;
|
|
723
|
+
readonly color: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
724
|
+
}, undefined>;
|
|
725
|
+
readonly status: v.LiteralSchema<"gated", undefined>;
|
|
726
|
+
}, undefined>, undefined>;
|
|
727
|
+
readonly outcomeReasons: v.ArraySchema<v.ObjectSchema<{
|
|
728
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
729
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
730
|
+
}, undefined>, undefined>;
|
|
731
|
+
readonly riskAssessment: v.OptionalSchema<v.ObjectSchema<{
|
|
732
|
+
readonly riskLevel: v.PicklistSchema<readonly ["LOW", "MEDIUM", "HIGH"], undefined>;
|
|
733
|
+
readonly requiresChallenge: v.BooleanSchema<undefined>;
|
|
734
|
+
readonly blocked: v.BooleanSchema<undefined>;
|
|
735
|
+
}, undefined>, undefined>;
|
|
736
|
+
}, undefined>;
|
|
737
|
+
export declare const GatedDecisionV1Schema: v.ObjectSchema<{
|
|
738
|
+
readonly schemaVersion: v.LiteralSchema<1, undefined>;
|
|
739
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
740
|
+
readonly outcome: v.LiteralSchema<"gated", undefined>;
|
|
741
|
+
readonly selected: v.ObjectSchema<{
|
|
742
|
+
readonly gates: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
743
|
+
readonly type: v.LiteralSchema<"authentication", undefined>;
|
|
744
|
+
readonly status: v.LiteralSchema<"required", undefined>;
|
|
745
|
+
readonly reason: v.ObjectSchema<{
|
|
746
|
+
readonly code: v.LiteralSchema<"AUTH_REQUIRED", undefined>;
|
|
747
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
748
|
+
}, undefined>;
|
|
749
|
+
}, undefined>, v.ObjectSchema<{
|
|
750
|
+
readonly type: v.LiteralSchema<"access_code", undefined>;
|
|
751
|
+
readonly status: v.PicklistSchema<["missing", "invalid"], undefined>;
|
|
752
|
+
readonly reason: v.ObjectSchema<{
|
|
753
|
+
readonly code: v.PicklistSchema<["ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID"], undefined>;
|
|
754
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
755
|
+
}, undefined>;
|
|
756
|
+
}, undefined>, v.ObjectSchema<{
|
|
757
|
+
readonly type: v.LiteralSchema<"bot_check", undefined>;
|
|
758
|
+
readonly status: v.PicklistSchema<["required", "blocked"], undefined>;
|
|
759
|
+
readonly reason: v.ObjectSchema<{
|
|
760
|
+
readonly code: v.PicklistSchema<["BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
761
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
762
|
+
}, undefined>;
|
|
763
|
+
readonly challenge: v.OptionalSchema<v.ObjectSchema<{
|
|
764
|
+
readonly id: v.StringSchema<undefined>;
|
|
765
|
+
readonly provider: v.LiteralSchema<"turnstile", undefined>;
|
|
766
|
+
readonly type: v.PicklistSchema<readonly ["turnstile_invisible", "turnstile_managed", "turnstile_interactive"], undefined>;
|
|
767
|
+
readonly iframeUrl: v.StringSchema<undefined>;
|
|
768
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
769
|
+
}, undefined>, undefined>;
|
|
770
|
+
readonly mitigation: v.OptionalSchema<v.ObjectSchema<{
|
|
771
|
+
readonly attemptsRemaining: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
772
|
+
readonly blockedUntil: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
773
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
774
|
+
}, undefined>, undefined>;
|
|
775
|
+
}, undefined>], undefined>, undefined>;
|
|
776
|
+
readonly reasons: v.ArraySchema<v.ObjectSchema<{
|
|
777
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
778
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
779
|
+
}, undefined>, undefined>;
|
|
780
|
+
readonly sequenceCapabilityGrant: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
781
|
+
readonly sequenceCapabilityGrantExpiresAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
782
|
+
readonly sequence: v.ObjectSchema<{
|
|
783
|
+
readonly id: v.StringSchema<undefined>;
|
|
784
|
+
readonly name: v.StringSchema<undefined>;
|
|
785
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
786
|
+
readonly priority: v.NumberSchema<undefined>;
|
|
787
|
+
readonly color: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
788
|
+
}, undefined>;
|
|
789
|
+
readonly status: v.LiteralSchema<"gated", undefined>;
|
|
790
|
+
}, undefined>;
|
|
791
|
+
readonly offers: v.TupleSchema<[], undefined>;
|
|
792
|
+
readonly outcomeReasons: v.ArraySchema<v.ObjectSchema<{
|
|
793
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
794
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
795
|
+
}, undefined>, undefined>;
|
|
796
|
+
readonly riskAssessment: v.OptionalSchema<v.ObjectSchema<{
|
|
797
|
+
readonly riskLevel: v.PicklistSchema<readonly ["LOW", "MEDIUM", "HIGH"], undefined>;
|
|
798
|
+
readonly requiresChallenge: v.BooleanSchema<undefined>;
|
|
799
|
+
readonly blocked: v.BooleanSchema<undefined>;
|
|
800
|
+
}, undefined>, undefined>;
|
|
801
|
+
}, undefined>;
|
|
802
|
+
export declare const NoAccessDecisionV1Schema: v.ObjectSchema<{
|
|
803
|
+
readonly schemaVersion: v.LiteralSchema<1, undefined>;
|
|
804
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
805
|
+
readonly outcome: v.LiteralSchema<"no_access", undefined>;
|
|
806
|
+
readonly offers: v.TupleSchema<[], undefined>;
|
|
807
|
+
readonly outcomeReasons: v.ArraySchema<v.ObjectSchema<{
|
|
808
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
809
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
810
|
+
}, undefined>, undefined>;
|
|
811
|
+
readonly riskAssessment: v.OptionalSchema<v.ObjectSchema<{
|
|
812
|
+
readonly riskLevel: v.PicklistSchema<readonly ["LOW", "MEDIUM", "HIGH"], undefined>;
|
|
813
|
+
readonly requiresChallenge: v.BooleanSchema<undefined>;
|
|
814
|
+
readonly blocked: v.BooleanSchema<undefined>;
|
|
815
|
+
}, undefined>, undefined>;
|
|
816
|
+
}, undefined>;
|
|
817
|
+
export declare const RoutingDecisionV1Schema: v.UnionSchema<[v.ObjectSchema<{
|
|
818
|
+
readonly schemaVersion: v.LiteralSchema<1, undefined>;
|
|
819
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
820
|
+
readonly outcome: v.LiteralSchema<"routed", undefined>;
|
|
821
|
+
readonly selected: v.ObjectSchema<{
|
|
822
|
+
readonly gates: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
823
|
+
readonly type: v.LiteralSchema<"authentication", undefined>;
|
|
824
|
+
readonly status: v.LiteralSchema<"required", undefined>;
|
|
825
|
+
readonly reason: v.ObjectSchema<{
|
|
826
|
+
readonly code: v.LiteralSchema<"AUTH_REQUIRED", undefined>;
|
|
827
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
828
|
+
}, undefined>;
|
|
829
|
+
}, undefined>, v.ObjectSchema<{
|
|
830
|
+
readonly type: v.LiteralSchema<"access_code", undefined>;
|
|
831
|
+
readonly status: v.PicklistSchema<["missing", "invalid"], undefined>;
|
|
832
|
+
readonly reason: v.ObjectSchema<{
|
|
833
|
+
readonly code: v.PicklistSchema<["ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID"], undefined>;
|
|
834
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
835
|
+
}, undefined>;
|
|
836
|
+
}, undefined>, v.ObjectSchema<{
|
|
837
|
+
readonly type: v.LiteralSchema<"bot_check", undefined>;
|
|
838
|
+
readonly status: v.PicklistSchema<["required", "blocked"], undefined>;
|
|
839
|
+
readonly reason: v.ObjectSchema<{
|
|
840
|
+
readonly code: v.PicklistSchema<["BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
841
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
842
|
+
}, undefined>;
|
|
843
|
+
readonly challenge: v.OptionalSchema<v.ObjectSchema<{
|
|
844
|
+
readonly id: v.StringSchema<undefined>;
|
|
845
|
+
readonly provider: v.LiteralSchema<"turnstile", undefined>;
|
|
846
|
+
readonly type: v.PicklistSchema<readonly ["turnstile_invisible", "turnstile_managed", "turnstile_interactive"], undefined>;
|
|
847
|
+
readonly iframeUrl: v.StringSchema<undefined>;
|
|
848
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
849
|
+
}, undefined>, undefined>;
|
|
850
|
+
readonly mitigation: v.OptionalSchema<v.ObjectSchema<{
|
|
851
|
+
readonly attemptsRemaining: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
852
|
+
readonly blockedUntil: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
853
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
854
|
+
}, undefined>, undefined>;
|
|
855
|
+
}, undefined>], undefined>, undefined>;
|
|
856
|
+
readonly reasons: v.ArraySchema<v.ObjectSchema<{
|
|
857
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
858
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
859
|
+
}, undefined>, undefined>;
|
|
860
|
+
readonly sequenceCapabilityGrant: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
861
|
+
readonly sequenceCapabilityGrantExpiresAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
862
|
+
readonly sequence: v.ObjectSchema<{
|
|
863
|
+
readonly id: v.StringSchema<undefined>;
|
|
864
|
+
readonly name: v.StringSchema<undefined>;
|
|
865
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
866
|
+
readonly priority: v.NumberSchema<undefined>;
|
|
867
|
+
readonly color: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
868
|
+
}, undefined>;
|
|
869
|
+
readonly status: v.LiteralSchema<"admissible", undefined>;
|
|
870
|
+
}, undefined>;
|
|
871
|
+
readonly offers: v.ArraySchema<v.ObjectSchema<{
|
|
872
|
+
readonly gates: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
873
|
+
readonly type: v.LiteralSchema<"authentication", undefined>;
|
|
874
|
+
readonly status: v.LiteralSchema<"required", undefined>;
|
|
875
|
+
readonly reason: v.ObjectSchema<{
|
|
876
|
+
readonly code: v.LiteralSchema<"AUTH_REQUIRED", undefined>;
|
|
877
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
878
|
+
}, undefined>;
|
|
879
|
+
}, undefined>, v.ObjectSchema<{
|
|
880
|
+
readonly type: v.LiteralSchema<"access_code", undefined>;
|
|
881
|
+
readonly status: v.PicklistSchema<["missing", "invalid"], undefined>;
|
|
882
|
+
readonly reason: v.ObjectSchema<{
|
|
883
|
+
readonly code: v.PicklistSchema<["ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID"], undefined>;
|
|
884
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
885
|
+
}, undefined>;
|
|
886
|
+
}, undefined>, v.ObjectSchema<{
|
|
887
|
+
readonly type: v.LiteralSchema<"bot_check", undefined>;
|
|
888
|
+
readonly status: v.PicklistSchema<["required", "blocked"], undefined>;
|
|
889
|
+
readonly reason: v.ObjectSchema<{
|
|
890
|
+
readonly code: v.PicklistSchema<["BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
891
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
892
|
+
}, undefined>;
|
|
893
|
+
readonly challenge: v.OptionalSchema<v.ObjectSchema<{
|
|
894
|
+
readonly id: v.StringSchema<undefined>;
|
|
895
|
+
readonly provider: v.LiteralSchema<"turnstile", undefined>;
|
|
896
|
+
readonly type: v.PicklistSchema<readonly ["turnstile_invisible", "turnstile_managed", "turnstile_interactive"], undefined>;
|
|
897
|
+
readonly iframeUrl: v.StringSchema<undefined>;
|
|
898
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
899
|
+
}, undefined>, undefined>;
|
|
900
|
+
readonly mitigation: v.OptionalSchema<v.ObjectSchema<{
|
|
901
|
+
readonly attemptsRemaining: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
902
|
+
readonly blockedUntil: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
903
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
904
|
+
}, undefined>, undefined>;
|
|
905
|
+
}, undefined>], undefined>, undefined>;
|
|
906
|
+
readonly reasons: v.ArraySchema<v.ObjectSchema<{
|
|
907
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
908
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
909
|
+
}, undefined>, undefined>;
|
|
910
|
+
readonly sequenceCapabilityGrant: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
911
|
+
readonly sequenceCapabilityGrantExpiresAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
912
|
+
readonly sequence: v.ObjectSchema<{
|
|
913
|
+
readonly id: v.StringSchema<undefined>;
|
|
914
|
+
readonly name: v.StringSchema<undefined>;
|
|
915
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
916
|
+
readonly priority: v.NumberSchema<undefined>;
|
|
917
|
+
readonly color: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
918
|
+
}, undefined>;
|
|
919
|
+
readonly status: v.LiteralSchema<"gated", undefined>;
|
|
920
|
+
}, undefined>, undefined>;
|
|
921
|
+
readonly outcomeReasons: v.ArraySchema<v.ObjectSchema<{
|
|
922
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
923
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
924
|
+
}, undefined>, undefined>;
|
|
925
|
+
readonly riskAssessment: v.OptionalSchema<v.ObjectSchema<{
|
|
926
|
+
readonly riskLevel: v.PicklistSchema<readonly ["LOW", "MEDIUM", "HIGH"], undefined>;
|
|
927
|
+
readonly requiresChallenge: v.BooleanSchema<undefined>;
|
|
928
|
+
readonly blocked: v.BooleanSchema<undefined>;
|
|
929
|
+
}, undefined>, undefined>;
|
|
930
|
+
}, undefined>, v.ObjectSchema<{
|
|
931
|
+
readonly schemaVersion: v.LiteralSchema<1, undefined>;
|
|
932
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
933
|
+
readonly outcome: v.LiteralSchema<"gated", undefined>;
|
|
934
|
+
readonly selected: v.ObjectSchema<{
|
|
935
|
+
readonly gates: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
936
|
+
readonly type: v.LiteralSchema<"authentication", undefined>;
|
|
937
|
+
readonly status: v.LiteralSchema<"required", undefined>;
|
|
938
|
+
readonly reason: v.ObjectSchema<{
|
|
939
|
+
readonly code: v.LiteralSchema<"AUTH_REQUIRED", undefined>;
|
|
940
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
941
|
+
}, undefined>;
|
|
942
|
+
}, undefined>, v.ObjectSchema<{
|
|
943
|
+
readonly type: v.LiteralSchema<"access_code", undefined>;
|
|
944
|
+
readonly status: v.PicklistSchema<["missing", "invalid"], undefined>;
|
|
945
|
+
readonly reason: v.ObjectSchema<{
|
|
946
|
+
readonly code: v.PicklistSchema<["ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID"], undefined>;
|
|
947
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
948
|
+
}, undefined>;
|
|
949
|
+
}, undefined>, v.ObjectSchema<{
|
|
950
|
+
readonly type: v.LiteralSchema<"bot_check", undefined>;
|
|
951
|
+
readonly status: v.PicklistSchema<["required", "blocked"], undefined>;
|
|
952
|
+
readonly reason: v.ObjectSchema<{
|
|
953
|
+
readonly code: v.PicklistSchema<["BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
954
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
955
|
+
}, undefined>;
|
|
956
|
+
readonly challenge: v.OptionalSchema<v.ObjectSchema<{
|
|
957
|
+
readonly id: v.StringSchema<undefined>;
|
|
958
|
+
readonly provider: v.LiteralSchema<"turnstile", undefined>;
|
|
959
|
+
readonly type: v.PicklistSchema<readonly ["turnstile_invisible", "turnstile_managed", "turnstile_interactive"], undefined>;
|
|
960
|
+
readonly iframeUrl: v.StringSchema<undefined>;
|
|
961
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
962
|
+
}, undefined>, undefined>;
|
|
963
|
+
readonly mitigation: v.OptionalSchema<v.ObjectSchema<{
|
|
964
|
+
readonly attemptsRemaining: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
965
|
+
readonly blockedUntil: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
966
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
967
|
+
}, undefined>, undefined>;
|
|
968
|
+
}, undefined>], undefined>, undefined>;
|
|
969
|
+
readonly reasons: v.ArraySchema<v.ObjectSchema<{
|
|
970
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
971
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
972
|
+
}, undefined>, undefined>;
|
|
973
|
+
readonly sequenceCapabilityGrant: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
974
|
+
readonly sequenceCapabilityGrantExpiresAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
975
|
+
readonly sequence: v.ObjectSchema<{
|
|
976
|
+
readonly id: v.StringSchema<undefined>;
|
|
977
|
+
readonly name: v.StringSchema<undefined>;
|
|
978
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
979
|
+
readonly priority: v.NumberSchema<undefined>;
|
|
980
|
+
readonly color: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
981
|
+
}, undefined>;
|
|
982
|
+
readonly status: v.LiteralSchema<"gated", undefined>;
|
|
983
|
+
}, undefined>;
|
|
984
|
+
readonly offers: v.TupleSchema<[], undefined>;
|
|
985
|
+
readonly outcomeReasons: v.ArraySchema<v.ObjectSchema<{
|
|
986
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
987
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
988
|
+
}, undefined>, undefined>;
|
|
989
|
+
readonly riskAssessment: v.OptionalSchema<v.ObjectSchema<{
|
|
990
|
+
readonly riskLevel: v.PicklistSchema<readonly ["LOW", "MEDIUM", "HIGH"], undefined>;
|
|
991
|
+
readonly requiresChallenge: v.BooleanSchema<undefined>;
|
|
992
|
+
readonly blocked: v.BooleanSchema<undefined>;
|
|
993
|
+
}, undefined>, undefined>;
|
|
994
|
+
}, undefined>, v.ObjectSchema<{
|
|
995
|
+
readonly schemaVersion: v.LiteralSchema<1, undefined>;
|
|
996
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
997
|
+
readonly outcome: v.LiteralSchema<"no_access", undefined>;
|
|
998
|
+
readonly offers: v.TupleSchema<[], undefined>;
|
|
999
|
+
readonly outcomeReasons: v.ArraySchema<v.ObjectSchema<{
|
|
1000
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
1001
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1002
|
+
}, undefined>, undefined>;
|
|
1003
|
+
readonly riskAssessment: v.OptionalSchema<v.ObjectSchema<{
|
|
1004
|
+
readonly riskLevel: v.PicklistSchema<readonly ["LOW", "MEDIUM", "HIGH"], undefined>;
|
|
1005
|
+
readonly requiresChallenge: v.BooleanSchema<undefined>;
|
|
1006
|
+
readonly blocked: v.BooleanSchema<undefined>;
|
|
1007
|
+
}, undefined>, undefined>;
|
|
1008
|
+
}, undefined>], undefined>;
|
|
1009
|
+
export declare const RoutingDecisionSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
1010
|
+
readonly schemaVersion: v.LiteralSchema<1, undefined>;
|
|
1011
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
1012
|
+
readonly outcome: v.LiteralSchema<"routed", undefined>;
|
|
1013
|
+
readonly selected: v.ObjectSchema<{
|
|
1014
|
+
readonly gates: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1015
|
+
readonly type: v.LiteralSchema<"authentication", undefined>;
|
|
1016
|
+
readonly status: v.LiteralSchema<"required", undefined>;
|
|
1017
|
+
readonly reason: v.ObjectSchema<{
|
|
1018
|
+
readonly code: v.LiteralSchema<"AUTH_REQUIRED", undefined>;
|
|
1019
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1020
|
+
}, undefined>;
|
|
1021
|
+
}, undefined>, v.ObjectSchema<{
|
|
1022
|
+
readonly type: v.LiteralSchema<"access_code", undefined>;
|
|
1023
|
+
readonly status: v.PicklistSchema<["missing", "invalid"], undefined>;
|
|
1024
|
+
readonly reason: v.ObjectSchema<{
|
|
1025
|
+
readonly code: v.PicklistSchema<["ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID"], undefined>;
|
|
1026
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1027
|
+
}, undefined>;
|
|
1028
|
+
}, undefined>, v.ObjectSchema<{
|
|
1029
|
+
readonly type: v.LiteralSchema<"bot_check", undefined>;
|
|
1030
|
+
readonly status: v.PicklistSchema<["required", "blocked"], undefined>;
|
|
1031
|
+
readonly reason: v.ObjectSchema<{
|
|
1032
|
+
readonly code: v.PicklistSchema<["BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
1033
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1034
|
+
}, undefined>;
|
|
1035
|
+
readonly challenge: v.OptionalSchema<v.ObjectSchema<{
|
|
1036
|
+
readonly id: v.StringSchema<undefined>;
|
|
1037
|
+
readonly provider: v.LiteralSchema<"turnstile", undefined>;
|
|
1038
|
+
readonly type: v.PicklistSchema<readonly ["turnstile_invisible", "turnstile_managed", "turnstile_interactive"], undefined>;
|
|
1039
|
+
readonly iframeUrl: v.StringSchema<undefined>;
|
|
1040
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
1041
|
+
}, undefined>, undefined>;
|
|
1042
|
+
readonly mitigation: v.OptionalSchema<v.ObjectSchema<{
|
|
1043
|
+
readonly attemptsRemaining: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1044
|
+
readonly blockedUntil: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1045
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1046
|
+
}, undefined>, undefined>;
|
|
1047
|
+
}, undefined>], undefined>, undefined>;
|
|
1048
|
+
readonly reasons: v.ArraySchema<v.ObjectSchema<{
|
|
1049
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
1050
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1051
|
+
}, undefined>, undefined>;
|
|
1052
|
+
readonly sequenceCapabilityGrant: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1053
|
+
readonly sequenceCapabilityGrantExpiresAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1054
|
+
readonly sequence: v.ObjectSchema<{
|
|
1055
|
+
readonly id: v.StringSchema<undefined>;
|
|
1056
|
+
readonly name: v.StringSchema<undefined>;
|
|
1057
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
1058
|
+
readonly priority: v.NumberSchema<undefined>;
|
|
1059
|
+
readonly color: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1060
|
+
}, undefined>;
|
|
1061
|
+
readonly status: v.LiteralSchema<"admissible", undefined>;
|
|
1062
|
+
}, undefined>;
|
|
1063
|
+
readonly offers: v.ArraySchema<v.ObjectSchema<{
|
|
1064
|
+
readonly gates: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1065
|
+
readonly type: v.LiteralSchema<"authentication", undefined>;
|
|
1066
|
+
readonly status: v.LiteralSchema<"required", undefined>;
|
|
1067
|
+
readonly reason: v.ObjectSchema<{
|
|
1068
|
+
readonly code: v.LiteralSchema<"AUTH_REQUIRED", undefined>;
|
|
1069
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1070
|
+
}, undefined>;
|
|
1071
|
+
}, undefined>, v.ObjectSchema<{
|
|
1072
|
+
readonly type: v.LiteralSchema<"access_code", undefined>;
|
|
1073
|
+
readonly status: v.PicklistSchema<["missing", "invalid"], undefined>;
|
|
1074
|
+
readonly reason: v.ObjectSchema<{
|
|
1075
|
+
readonly code: v.PicklistSchema<["ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID"], undefined>;
|
|
1076
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1077
|
+
}, undefined>;
|
|
1078
|
+
}, undefined>, v.ObjectSchema<{
|
|
1079
|
+
readonly type: v.LiteralSchema<"bot_check", undefined>;
|
|
1080
|
+
readonly status: v.PicklistSchema<["required", "blocked"], undefined>;
|
|
1081
|
+
readonly reason: v.ObjectSchema<{
|
|
1082
|
+
readonly code: v.PicklistSchema<["BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
1083
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1084
|
+
}, undefined>;
|
|
1085
|
+
readonly challenge: v.OptionalSchema<v.ObjectSchema<{
|
|
1086
|
+
readonly id: v.StringSchema<undefined>;
|
|
1087
|
+
readonly provider: v.LiteralSchema<"turnstile", undefined>;
|
|
1088
|
+
readonly type: v.PicklistSchema<readonly ["turnstile_invisible", "turnstile_managed", "turnstile_interactive"], undefined>;
|
|
1089
|
+
readonly iframeUrl: v.StringSchema<undefined>;
|
|
1090
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
1091
|
+
}, undefined>, undefined>;
|
|
1092
|
+
readonly mitigation: v.OptionalSchema<v.ObjectSchema<{
|
|
1093
|
+
readonly attemptsRemaining: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1094
|
+
readonly blockedUntil: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1095
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1096
|
+
}, undefined>, undefined>;
|
|
1097
|
+
}, undefined>], undefined>, undefined>;
|
|
1098
|
+
readonly reasons: v.ArraySchema<v.ObjectSchema<{
|
|
1099
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
1100
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1101
|
+
}, undefined>, undefined>;
|
|
1102
|
+
readonly sequenceCapabilityGrant: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1103
|
+
readonly sequenceCapabilityGrantExpiresAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1104
|
+
readonly sequence: v.ObjectSchema<{
|
|
1105
|
+
readonly id: v.StringSchema<undefined>;
|
|
1106
|
+
readonly name: v.StringSchema<undefined>;
|
|
1107
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
1108
|
+
readonly priority: v.NumberSchema<undefined>;
|
|
1109
|
+
readonly color: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1110
|
+
}, undefined>;
|
|
1111
|
+
readonly status: v.LiteralSchema<"gated", undefined>;
|
|
1112
|
+
}, undefined>, undefined>;
|
|
1113
|
+
readonly outcomeReasons: v.ArraySchema<v.ObjectSchema<{
|
|
1114
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
1115
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1116
|
+
}, undefined>, undefined>;
|
|
1117
|
+
readonly riskAssessment: v.OptionalSchema<v.ObjectSchema<{
|
|
1118
|
+
readonly riskLevel: v.PicklistSchema<readonly ["LOW", "MEDIUM", "HIGH"], undefined>;
|
|
1119
|
+
readonly requiresChallenge: v.BooleanSchema<undefined>;
|
|
1120
|
+
readonly blocked: v.BooleanSchema<undefined>;
|
|
1121
|
+
}, undefined>, undefined>;
|
|
1122
|
+
}, undefined>, v.ObjectSchema<{
|
|
1123
|
+
readonly schemaVersion: v.LiteralSchema<1, undefined>;
|
|
1124
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
1125
|
+
readonly outcome: v.LiteralSchema<"gated", undefined>;
|
|
1126
|
+
readonly selected: v.ObjectSchema<{
|
|
1127
|
+
readonly gates: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1128
|
+
readonly type: v.LiteralSchema<"authentication", undefined>;
|
|
1129
|
+
readonly status: v.LiteralSchema<"required", undefined>;
|
|
1130
|
+
readonly reason: v.ObjectSchema<{
|
|
1131
|
+
readonly code: v.LiteralSchema<"AUTH_REQUIRED", undefined>;
|
|
1132
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1133
|
+
}, undefined>;
|
|
1134
|
+
}, undefined>, v.ObjectSchema<{
|
|
1135
|
+
readonly type: v.LiteralSchema<"access_code", undefined>;
|
|
1136
|
+
readonly status: v.PicklistSchema<["missing", "invalid"], undefined>;
|
|
1137
|
+
readonly reason: v.ObjectSchema<{
|
|
1138
|
+
readonly code: v.PicklistSchema<["ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID"], undefined>;
|
|
1139
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1140
|
+
}, undefined>;
|
|
1141
|
+
}, undefined>, v.ObjectSchema<{
|
|
1142
|
+
readonly type: v.LiteralSchema<"bot_check", undefined>;
|
|
1143
|
+
readonly status: v.PicklistSchema<["required", "blocked"], undefined>;
|
|
1144
|
+
readonly reason: v.ObjectSchema<{
|
|
1145
|
+
readonly code: v.PicklistSchema<["BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
1146
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1147
|
+
}, undefined>;
|
|
1148
|
+
readonly challenge: v.OptionalSchema<v.ObjectSchema<{
|
|
1149
|
+
readonly id: v.StringSchema<undefined>;
|
|
1150
|
+
readonly provider: v.LiteralSchema<"turnstile", undefined>;
|
|
1151
|
+
readonly type: v.PicklistSchema<readonly ["turnstile_invisible", "turnstile_managed", "turnstile_interactive"], undefined>;
|
|
1152
|
+
readonly iframeUrl: v.StringSchema<undefined>;
|
|
1153
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
1154
|
+
}, undefined>, undefined>;
|
|
1155
|
+
readonly mitigation: v.OptionalSchema<v.ObjectSchema<{
|
|
1156
|
+
readonly attemptsRemaining: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1157
|
+
readonly blockedUntil: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1158
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1159
|
+
}, undefined>, undefined>;
|
|
1160
|
+
}, undefined>], undefined>, undefined>;
|
|
1161
|
+
readonly reasons: v.ArraySchema<v.ObjectSchema<{
|
|
1162
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
1163
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1164
|
+
}, undefined>, undefined>;
|
|
1165
|
+
readonly sequenceCapabilityGrant: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1166
|
+
readonly sequenceCapabilityGrantExpiresAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1167
|
+
readonly sequence: v.ObjectSchema<{
|
|
1168
|
+
readonly id: v.StringSchema<undefined>;
|
|
1169
|
+
readonly name: v.StringSchema<undefined>;
|
|
1170
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
1171
|
+
readonly priority: v.NumberSchema<undefined>;
|
|
1172
|
+
readonly color: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1173
|
+
}, undefined>;
|
|
1174
|
+
readonly status: v.LiteralSchema<"gated", undefined>;
|
|
1175
|
+
}, undefined>;
|
|
1176
|
+
readonly offers: v.TupleSchema<[], undefined>;
|
|
1177
|
+
readonly outcomeReasons: v.ArraySchema<v.ObjectSchema<{
|
|
1178
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
1179
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1180
|
+
}, undefined>, undefined>;
|
|
1181
|
+
readonly riskAssessment: v.OptionalSchema<v.ObjectSchema<{
|
|
1182
|
+
readonly riskLevel: v.PicklistSchema<readonly ["LOW", "MEDIUM", "HIGH"], undefined>;
|
|
1183
|
+
readonly requiresChallenge: v.BooleanSchema<undefined>;
|
|
1184
|
+
readonly blocked: v.BooleanSchema<undefined>;
|
|
1185
|
+
}, undefined>, undefined>;
|
|
1186
|
+
}, undefined>, v.ObjectSchema<{
|
|
1187
|
+
readonly schemaVersion: v.LiteralSchema<1, undefined>;
|
|
1188
|
+
readonly experienceId: v.StringSchema<undefined>;
|
|
1189
|
+
readonly outcome: v.LiteralSchema<"no_access", undefined>;
|
|
1190
|
+
readonly offers: v.TupleSchema<[], undefined>;
|
|
1191
|
+
readonly outcomeReasons: v.ArraySchema<v.ObjectSchema<{
|
|
1192
|
+
readonly code: v.PicklistSchema<readonly ["NO_SEQUENCES", "NO_ACCESS", "AUTH_REQUIRED", "ACCESS_CODE_REQUIRED", "ACCESS_CODE_INVALID", "AUDIENCE_NOT_MEMBER", "BOT_REQUIRED", "BOT_BLOCKED"], undefined>;
|
|
1193
|
+
readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1194
|
+
}, undefined>, undefined>;
|
|
1195
|
+
readonly riskAssessment: v.OptionalSchema<v.ObjectSchema<{
|
|
1196
|
+
readonly riskLevel: v.PicklistSchema<readonly ["LOW", "MEDIUM", "HIGH"], undefined>;
|
|
1197
|
+
readonly requiresChallenge: v.BooleanSchema<undefined>;
|
|
1198
|
+
readonly blocked: v.BooleanSchema<undefined>;
|
|
1199
|
+
}, undefined>, undefined>;
|
|
1200
|
+
}, undefined>], undefined>;
|
|
1201
|
+
export type RoutingDecisionV1 = InferOutput<typeof RoutingDecisionV1Schema>;
|
|
1202
|
+
export type RoutingDecision = RoutingDecisionV1;
|