@stackone/core 2.76.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -1
- package/dist/index.d.cts +2141 -1405
- package/dist/index.d.mts +2140 -1404
- package/dist/index.mjs +3 -1
- package/package.json +6 -3
- /package/dist/{chunk-Cfxk5zVN.mjs → chunk-BhWHdk3m.mjs} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import * as zod_v40 from "zod/v4";
|
|
5
|
-
import { ZodType, z } from "zod/v4";
|
|
6
|
-
import * as zod_v4_core0 from "zod/v4/core";
|
|
1
|
+
import { IOlapClient } from "@stackone/olap";
|
|
2
|
+
import { ConcurrencyConfig, HttpHeaders, HttpMethod, IHttpClient, RateLimitConfig, SigningOptions } from "@stackone/transport";
|
|
3
|
+
import { ZodType, z } from "@stackone/utils";
|
|
7
4
|
import { LambdaClient, LambdaClientConfig } from "@aws-sdk/client-lambda";
|
|
5
|
+
import { Readable } from "node:stream";
|
|
8
6
|
|
|
9
|
-
//#region
|
|
7
|
+
//#region \0rolldown/runtime.js
|
|
10
8
|
//#endregion
|
|
11
9
|
//#region ../logger/src/types.d.ts
|
|
12
10
|
interface ILogger {
|
|
@@ -71,775 +69,6 @@ type LogError = Error & {
|
|
|
71
69
|
url?: string;
|
|
72
70
|
};
|
|
73
71
|
//#endregion
|
|
74
|
-
//#region ../transport/src/concurrencyManager/types.d.ts
|
|
75
|
-
type ConcurrencySubPoolConfig = {
|
|
76
|
-
subPoolKey: string;
|
|
77
|
-
urlPattern: RegExp | string;
|
|
78
|
-
maxConcurrency: number;
|
|
79
|
-
};
|
|
80
|
-
type ConcurrencyConfig = {
|
|
81
|
-
mainMaxConcurrency: number;
|
|
82
|
-
subPools?: ConcurrencySubPoolConfig[];
|
|
83
|
-
};
|
|
84
|
-
//#endregion
|
|
85
|
-
//#region ../transport/src/rateLimitManager/types.d.ts
|
|
86
|
-
type RateLimitSubPoolConfig = {
|
|
87
|
-
subPoolKey: string;
|
|
88
|
-
urlPattern: RegExp | string;
|
|
89
|
-
rateLimit: number;
|
|
90
|
-
};
|
|
91
|
-
type RetryUnit = 'seconds' | 'milliseconds' | 'date';
|
|
92
|
-
type MappedRateLimitErrorConfig = {
|
|
93
|
-
errorStatus: number;
|
|
94
|
-
errorMessage: string | RegExp;
|
|
95
|
-
errorMessagePath?: string;
|
|
96
|
-
retryAfterPath?: string;
|
|
97
|
-
retryAfterUnit?: RetryUnit;
|
|
98
|
-
retryAfterValue?: number;
|
|
99
|
-
};
|
|
100
|
-
type RateLimitConfig = {
|
|
101
|
-
mainRatelimit: number;
|
|
102
|
-
subPools?: RateLimitSubPoolConfig[];
|
|
103
|
-
mappedRateLimitErrors?: MappedRateLimitErrorConfig[];
|
|
104
|
-
};
|
|
105
|
-
//#endregion
|
|
106
|
-
//#region ../transport/src/interceptors/types.d.ts
|
|
107
|
-
type RequestConfig = {
|
|
108
|
-
rateLimits?: RateLimitConfig;
|
|
109
|
-
concurrency?: ConcurrencyConfig;
|
|
110
|
-
};
|
|
111
|
-
//#endregion
|
|
112
|
-
//#region ../transport/src/parsers/types.d.ts
|
|
113
|
-
declare const QueryArrayFormats: readonly ["repeat", "brackets", "comma", "stringify"];
|
|
114
|
-
type QueryArrayFormat = (typeof QueryArrayFormats)[number];
|
|
115
|
-
//#endregion
|
|
116
|
-
//#region ../transport/src/httpClient/types.d.ts
|
|
117
|
-
type HttpHeader = string | string[];
|
|
118
|
-
type HttpHeaders = {
|
|
119
|
-
[key: string]: HttpHeader;
|
|
120
|
-
};
|
|
121
|
-
type HttpQueryParamValue = {
|
|
122
|
-
value: string | string[];
|
|
123
|
-
arrayFormat?: QueryArrayFormat;
|
|
124
|
-
};
|
|
125
|
-
type HttpQueryParams = {
|
|
126
|
-
[key: string]: string | string[] | HttpQueryParamValue;
|
|
127
|
-
};
|
|
128
|
-
declare const HttpMethods: readonly ["get", "post", "put", "delete", "patch"];
|
|
129
|
-
type HttpMethod = (typeof HttpMethods)[number];
|
|
130
|
-
type HttpResponse<T = any, P$1 = any> = {
|
|
131
|
-
data: T;
|
|
132
|
-
status: number;
|
|
133
|
-
headers: HttpHeaders;
|
|
134
|
-
requestUrl: string;
|
|
135
|
-
responseType?: string;
|
|
136
|
-
responseTime?: Date;
|
|
137
|
-
message?: string;
|
|
138
|
-
body?: P$1;
|
|
139
|
-
};
|
|
140
|
-
type StreamHttpResponse = {
|
|
141
|
-
status: number;
|
|
142
|
-
headers: HttpHeaders;
|
|
143
|
-
stream: Readable;
|
|
144
|
-
requestUrl: string;
|
|
145
|
-
};
|
|
146
|
-
interface IHttpClient {
|
|
147
|
-
request<P$1, T>({
|
|
148
|
-
headers,
|
|
149
|
-
url,
|
|
150
|
-
method,
|
|
151
|
-
queryParams,
|
|
152
|
-
maxRedirects,
|
|
153
|
-
responseType,
|
|
154
|
-
cacheTTL,
|
|
155
|
-
context,
|
|
156
|
-
payload,
|
|
157
|
-
httpsAgent,
|
|
158
|
-
httpAgent,
|
|
159
|
-
requestConfig,
|
|
160
|
-
httpsAgentConfig
|
|
161
|
-
}: {
|
|
162
|
-
headers?: HttpHeaders;
|
|
163
|
-
url: string;
|
|
164
|
-
method?: HttpMethod;
|
|
165
|
-
queryParams?: HttpQueryParams;
|
|
166
|
-
maxRedirects?: number;
|
|
167
|
-
responseType?: 'arraybuffer' | 'blob' | 'document' | 'json' | 'text';
|
|
168
|
-
cacheTTL?: number;
|
|
169
|
-
context?: RequestContext;
|
|
170
|
-
payload?: P$1;
|
|
171
|
-
httpsAgent?: https.Agent;
|
|
172
|
-
httpAgent?: http.Agent;
|
|
173
|
-
requestConfig?: RequestConfig;
|
|
174
|
-
httpsAgentConfig?: https.AgentOptions;
|
|
175
|
-
}): Promise<HttpResponse<T>>;
|
|
176
|
-
get<T>({
|
|
177
|
-
headers,
|
|
178
|
-
url,
|
|
179
|
-
queryParams,
|
|
180
|
-
maxRedirects,
|
|
181
|
-
cacheTTL,
|
|
182
|
-
context,
|
|
183
|
-
requestConfig
|
|
184
|
-
}: {
|
|
185
|
-
headers?: HttpHeaders;
|
|
186
|
-
url: string;
|
|
187
|
-
queryParams?: HttpQueryParams;
|
|
188
|
-
maxRedirects?: number;
|
|
189
|
-
cacheTTL?: number;
|
|
190
|
-
context?: RequestContext;
|
|
191
|
-
requestConfig?: RequestConfig;
|
|
192
|
-
}): Promise<HttpResponse<T>>;
|
|
193
|
-
post<P$1, T>({
|
|
194
|
-
headers,
|
|
195
|
-
url,
|
|
196
|
-
maxRedirects,
|
|
197
|
-
cacheTTL,
|
|
198
|
-
context,
|
|
199
|
-
payload,
|
|
200
|
-
requestConfig
|
|
201
|
-
}: {
|
|
202
|
-
headers?: HttpHeaders;
|
|
203
|
-
url: string;
|
|
204
|
-
maxRedirects?: number;
|
|
205
|
-
cacheTTL?: number;
|
|
206
|
-
context?: RequestContext;
|
|
207
|
-
payload?: P$1;
|
|
208
|
-
requestConfig?: RequestConfig;
|
|
209
|
-
}): Promise<HttpResponse<T>>;
|
|
210
|
-
requestStream({
|
|
211
|
-
headers,
|
|
212
|
-
url,
|
|
213
|
-
method,
|
|
214
|
-
queryParams,
|
|
215
|
-
maxRedirects,
|
|
216
|
-
context,
|
|
217
|
-
traceId,
|
|
218
|
-
payload,
|
|
219
|
-
httpsAgent,
|
|
220
|
-
httpAgent,
|
|
221
|
-
requestConfig,
|
|
222
|
-
httpsAgentConfig
|
|
223
|
-
}: {
|
|
224
|
-
headers?: HttpHeaders;
|
|
225
|
-
url: string;
|
|
226
|
-
method?: HttpMethod;
|
|
227
|
-
queryParams?: HttpQueryParams;
|
|
228
|
-
maxRedirects?: number;
|
|
229
|
-
context?: RequestContext;
|
|
230
|
-
traceId?: string;
|
|
231
|
-
payload?: unknown;
|
|
232
|
-
httpsAgent?: https.Agent;
|
|
233
|
-
httpAgent?: http.Agent;
|
|
234
|
-
requestConfig?: RequestConfig;
|
|
235
|
-
httpsAgentConfig?: https.AgentOptions;
|
|
236
|
-
}): Promise<StreamHttpResponse>;
|
|
237
|
-
}
|
|
238
|
-
interface OperationSetting {
|
|
239
|
-
url?: string;
|
|
240
|
-
query?: Record<string, string>;
|
|
241
|
-
config?: Partial<APIConfig>;
|
|
242
|
-
custom_settings?: Record<string, unknown>;
|
|
243
|
-
}
|
|
244
|
-
type OperationSettings = Record<string, OperationSetting>;
|
|
245
|
-
type AccountSettings = Record<string, string | number | boolean | object>;
|
|
246
|
-
type HttpClientBehaviour = 'CONCURRENCY' | 'RETRY';
|
|
247
|
-
type APIConfig = Record<string, unknown>;
|
|
248
|
-
type RequestContext = {
|
|
249
|
-
accountSecureId?: string;
|
|
250
|
-
projectSecureId?: string;
|
|
251
|
-
organizationId?: number | string;
|
|
252
|
-
environment?: string;
|
|
253
|
-
authConfigKey?: string;
|
|
254
|
-
provider?: string;
|
|
255
|
-
service?: string;
|
|
256
|
-
resource?: string;
|
|
257
|
-
subResource?: string;
|
|
258
|
-
childResource?: string;
|
|
259
|
-
operation?: string;
|
|
260
|
-
action?: string;
|
|
261
|
-
mode?: string;
|
|
262
|
-
testerUniqueToken?: string;
|
|
263
|
-
externalKey?: string;
|
|
264
|
-
dataKey?: string;
|
|
265
|
-
isDataSync?: boolean;
|
|
266
|
-
operationSettings?: OperationSettings;
|
|
267
|
-
accountSettings?: AccountSettings;
|
|
268
|
-
behaviours?: HttpClientBehaviour[];
|
|
269
|
-
};
|
|
270
|
-
//#endregion
|
|
271
|
-
//#region ../transport/src/signing/types.d.ts
|
|
272
|
-
type Aws4SigningOptions = {
|
|
273
|
-
strategy: 'aws4';
|
|
274
|
-
service: string;
|
|
275
|
-
region?: string;
|
|
276
|
-
};
|
|
277
|
-
type HmacSigningOptions = {
|
|
278
|
-
strategy: 'hmac';
|
|
279
|
-
algorithm?: 'sha256' | 'sha512';
|
|
280
|
-
headerName?: string;
|
|
281
|
-
prefix?: string;
|
|
282
|
-
};
|
|
283
|
-
type SigningOptions = Aws4SigningOptions | HmacSigningOptions;
|
|
284
|
-
//#endregion
|
|
285
|
-
//#region ../olap/src/olap/olapOptions.d.ts
|
|
286
|
-
type OlapOptions = {
|
|
287
|
-
logs?: LogsOptions;
|
|
288
|
-
advanced?: AdvancedOptions;
|
|
289
|
-
defender?: DefenderOptions;
|
|
290
|
-
datasets?: DatasetsOptions;
|
|
291
|
-
};
|
|
292
|
-
type LogsOptions = {
|
|
293
|
-
enabled?: boolean;
|
|
294
|
-
};
|
|
295
|
-
type AdvancedOptions = {
|
|
296
|
-
enabled?: boolean;
|
|
297
|
-
ttl?: number;
|
|
298
|
-
errorsOnly?: boolean;
|
|
299
|
-
includeBackground?: boolean;
|
|
300
|
-
};
|
|
301
|
-
type DefenderOptions = {
|
|
302
|
-
enabled?: boolean;
|
|
303
|
-
};
|
|
304
|
-
type DatasetsOptions = {
|
|
305
|
-
enabled?: boolean;
|
|
306
|
-
includeBackground?: boolean;
|
|
307
|
-
};
|
|
308
|
-
//#endregion
|
|
309
|
-
//#region ../olap/src/advanced/types.d.ts
|
|
310
|
-
type ActionAdvancedLog = {
|
|
311
|
-
data: {
|
|
312
|
-
[key: string]: unknown;
|
|
313
|
-
};
|
|
314
|
-
metadata?: {
|
|
315
|
-
isBackgroundLog?: boolean;
|
|
316
|
-
expirationTime?: number;
|
|
317
|
-
};
|
|
318
|
-
};
|
|
319
|
-
type StepAdvancedLog = {
|
|
320
|
-
data: {
|
|
321
|
-
[key: string]: unknown;
|
|
322
|
-
};
|
|
323
|
-
metadata?: {
|
|
324
|
-
expirationTime?: number;
|
|
325
|
-
};
|
|
326
|
-
};
|
|
327
|
-
type UnifiedAdvancedLog = {
|
|
328
|
-
data: {
|
|
329
|
-
[key: string]: unknown;
|
|
330
|
-
};
|
|
331
|
-
metadata?: {
|
|
332
|
-
isBackgroundLog?: boolean;
|
|
333
|
-
expirationTime?: number;
|
|
334
|
-
};
|
|
335
|
-
};
|
|
336
|
-
type ProviderAdvancedLog = {
|
|
337
|
-
data: {
|
|
338
|
-
[key: string]: unknown;
|
|
339
|
-
};
|
|
340
|
-
metadata?: {
|
|
341
|
-
expirationTime?: number;
|
|
342
|
-
};
|
|
343
|
-
};
|
|
344
|
-
//#endregion
|
|
345
|
-
//#region ../olap/src/defender/types.d.ts
|
|
346
|
-
type DefenderLog = {
|
|
347
|
-
result?: {
|
|
348
|
-
riskLevel: string;
|
|
349
|
-
tier2Score?: number;
|
|
350
|
-
[key: string]: unknown;
|
|
351
|
-
};
|
|
352
|
-
[key: string]: unknown;
|
|
353
|
-
};
|
|
354
|
-
//#endregion
|
|
355
|
-
//#region ../olap/src/types.d.ts
|
|
356
|
-
interface IOlapClient {
|
|
357
|
-
recordAction(actionInput: ActionInput, actionResult: ActionResult, options?: OlapOptions): Promise<void>;
|
|
358
|
-
recordActions(actions: Array<{
|
|
359
|
-
input: ActionInput;
|
|
360
|
-
result: ActionResult;
|
|
361
|
-
}>, options?: OlapOptions): Promise<void>;
|
|
362
|
-
recordStep(stepInput: StepInput, stepResult: StepResult, options?: OlapOptions): Promise<void>;
|
|
363
|
-
recordSteps(steps: Array<{
|
|
364
|
-
input: StepInput;
|
|
365
|
-
result: StepResult;
|
|
366
|
-
}>, options?: OlapOptions): Promise<void>;
|
|
367
|
-
recordUnified(unifiedInput: UnifiedInput, unifiedResult: UnifiedResult, options?: OlapOptions): Promise<void>;
|
|
368
|
-
recordProvider(providerInput: ProviderInput, providerResult: ProviderResult, options?: OlapOptions): Promise<void>;
|
|
369
|
-
getLogs(organizationId: string, projectSecureId: string, query: Query): Promise<QueryResult>;
|
|
370
|
-
getActionLogs(organizationId: string, projectSecureId: string, query: ActionsQuery): Promise<ActionsQueryResult>;
|
|
371
|
-
getActionLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionLog | undefined>;
|
|
372
|
-
getLog(organizationId: string, projectSecureId: string, logId: string): Promise<ActionLog | UnifiedLog | undefined>;
|
|
373
|
-
getStepLogs(organizationId: string, projectSecureId: string, query: StepsQuery): Promise<StepsQueryResult>;
|
|
374
|
-
getStepLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepLog | undefined>;
|
|
375
|
-
getUnifiedLogs(organizationId: string, projectSecureId: string, query: UnifiedQuery): Promise<UnifiedQueryResult>;
|
|
376
|
-
getUnifiedLog(organizationId: string, projectSecureId: string, requestId: string): Promise<UnifiedLog | undefined>;
|
|
377
|
-
getProviderLogs(organizationId: string, projectSecureId: string, query: ProviderQuery): Promise<ProviderQueryResult>;
|
|
378
|
-
getProviderLog(organizationId: string, projectSecureId: string, requestId: string, id: string): Promise<ProviderLog | undefined>;
|
|
379
|
-
getActionAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<ActionAdvancedLog | undefined>;
|
|
380
|
-
getStepAdvancedLog(organizationId: string, projectSecureId: string, actionRunId: string, stepIndex: number): Promise<StepAdvancedLog | undefined>;
|
|
381
|
-
getUnifiedAdvancedLog(organizationId: string, projectSecureId: string, requestId: string): Promise<UnifiedAdvancedLog | undefined>;
|
|
382
|
-
getProviderAdvancedLog(organizationId: string, projectSecureId: string, requestId: string, id: string): Promise<ProviderAdvancedLog | undefined>;
|
|
383
|
-
getDefenderLog(organizationId: string, projectSecureId: string, actionRunId: string): Promise<DefenderLog | undefined>;
|
|
384
|
-
getLogsStatsAggregate(organizationId: string, projectSecureId: string, query: AggregateQuery): Promise<AggregateResult>;
|
|
385
|
-
getLogsStatsDimensions(organizationId: string, projectSecureId: string, query: DimensionsQuery): Promise<DimensionsResult>;
|
|
386
|
-
getSourceUsage(organizationId: string, projectSecureId: string, query: SourceQuery): Promise<SourceResult>;
|
|
387
|
-
}
|
|
388
|
-
type DefenderContext = {
|
|
389
|
-
result?: {
|
|
390
|
-
riskLevel: string;
|
|
391
|
-
tier2Score?: number;
|
|
392
|
-
[key: string]: unknown;
|
|
393
|
-
};
|
|
394
|
-
[key: string]: unknown;
|
|
395
|
-
};
|
|
396
|
-
type ActionInput = {
|
|
397
|
-
actionRunId: string;
|
|
398
|
-
actionId?: string;
|
|
399
|
-
mode: string;
|
|
400
|
-
connectorKey: string;
|
|
401
|
-
connectorVersion: string;
|
|
402
|
-
connectorOwner?: string;
|
|
403
|
-
connectorProfileId?: string;
|
|
404
|
-
actionType: string;
|
|
405
|
-
category?: string;
|
|
406
|
-
organizationId: string;
|
|
407
|
-
projectSecureId: string;
|
|
408
|
-
accountSecureId: string;
|
|
409
|
-
originOwnerId?: string;
|
|
410
|
-
originOwnerName?: string;
|
|
411
|
-
authType?: AuthType;
|
|
412
|
-
authId?: string;
|
|
413
|
-
sourceType?: SourceType;
|
|
414
|
-
userAgent?: string;
|
|
415
|
-
ipAddress?: string;
|
|
416
|
-
sessionId?: string;
|
|
417
|
-
agentId?: string;
|
|
418
|
-
transportType?: TransportType;
|
|
419
|
-
streamType?: StreamType;
|
|
420
|
-
isBackground?: boolean;
|
|
421
|
-
pathParams?: unknown;
|
|
422
|
-
queryParams?: unknown;
|
|
423
|
-
body?: unknown;
|
|
424
|
-
headers?: Record<string, string>;
|
|
425
|
-
httpMethod?: string;
|
|
426
|
-
url?: string;
|
|
427
|
-
path?: string;
|
|
428
|
-
resource?: string;
|
|
429
|
-
subResource?: string;
|
|
430
|
-
childResource?: string;
|
|
431
|
-
startTime?: Date;
|
|
432
|
-
};
|
|
433
|
-
type ActionResult = {
|
|
434
|
-
success?: boolean;
|
|
435
|
-
statusCode?: number;
|
|
436
|
-
message?: string;
|
|
437
|
-
headers?: Record<string, string>;
|
|
438
|
-
body?: unknown;
|
|
439
|
-
defenderContext?: DefenderContext;
|
|
440
|
-
endTime?: Date;
|
|
441
|
-
};
|
|
442
|
-
type StepInput = {
|
|
443
|
-
actionRunId: string;
|
|
444
|
-
actionMode: string;
|
|
445
|
-
actionSuccess?: boolean;
|
|
446
|
-
stepIndex: number;
|
|
447
|
-
stepId: string;
|
|
448
|
-
stepFunctionName?: string;
|
|
449
|
-
stepFunctionVersion?: string;
|
|
450
|
-
stepIterations?: number;
|
|
451
|
-
organizationId: string;
|
|
452
|
-
projectSecureId: string;
|
|
453
|
-
accountSecureId: string;
|
|
454
|
-
inputs?: {
|
|
455
|
-
[key: string]: unknown;
|
|
456
|
-
};
|
|
457
|
-
startTime?: Date;
|
|
458
|
-
};
|
|
459
|
-
type StepResult = {
|
|
460
|
-
success?: boolean;
|
|
461
|
-
statusCode?: number;
|
|
462
|
-
message?: string;
|
|
463
|
-
outputs?: unknown;
|
|
464
|
-
errors?: unknown;
|
|
465
|
-
skipped?: boolean;
|
|
466
|
-
endTime?: Date;
|
|
467
|
-
};
|
|
468
|
-
type UnifiedInput = {
|
|
469
|
-
requestId: string;
|
|
470
|
-
organizationId: string;
|
|
471
|
-
projectSecureId: string;
|
|
472
|
-
accountSecureId: string;
|
|
473
|
-
originOwnerId?: string;
|
|
474
|
-
originOwnerName?: string;
|
|
475
|
-
connectorKey: string;
|
|
476
|
-
action?: string;
|
|
477
|
-
service?: string;
|
|
478
|
-
mode?: string;
|
|
479
|
-
httpMethod?: string;
|
|
480
|
-
url?: string;
|
|
481
|
-
path?: string;
|
|
482
|
-
queryParams?: unknown;
|
|
483
|
-
body?: unknown;
|
|
484
|
-
headers?: Record<string, string>;
|
|
485
|
-
resource?: string;
|
|
486
|
-
subResource?: string;
|
|
487
|
-
childResource?: string;
|
|
488
|
-
authType?: AuthType;
|
|
489
|
-
authId?: string;
|
|
490
|
-
sourceType?: SourceType;
|
|
491
|
-
userAgent?: string;
|
|
492
|
-
ipAddress?: string;
|
|
493
|
-
transportType?: TransportType;
|
|
494
|
-
isBackground?: boolean;
|
|
495
|
-
startTime?: Date;
|
|
496
|
-
};
|
|
497
|
-
type UnifiedResult = {
|
|
498
|
-
success?: boolean;
|
|
499
|
-
statusCode?: number;
|
|
500
|
-
message?: string;
|
|
501
|
-
headers?: Record<string, string>;
|
|
502
|
-
body?: unknown;
|
|
503
|
-
endTime?: Date;
|
|
504
|
-
};
|
|
505
|
-
type ProviderInput = {
|
|
506
|
-
requestId: string;
|
|
507
|
-
id: string;
|
|
508
|
-
organizationId: string;
|
|
509
|
-
projectSecureId: string;
|
|
510
|
-
accountSecureId: string;
|
|
511
|
-
originOwnerId?: string;
|
|
512
|
-
originOwnerName?: string;
|
|
513
|
-
connectorKey: string;
|
|
514
|
-
action: string;
|
|
515
|
-
service: string;
|
|
516
|
-
mode: string;
|
|
517
|
-
httpMethod: string;
|
|
518
|
-
url: string;
|
|
519
|
-
path?: string;
|
|
520
|
-
queryParams?: unknown;
|
|
521
|
-
headers?: Record<string, string>;
|
|
522
|
-
body?: unknown;
|
|
523
|
-
resource?: string;
|
|
524
|
-
subResource?: string;
|
|
525
|
-
childResource?: string;
|
|
526
|
-
startTime?: Date;
|
|
527
|
-
};
|
|
528
|
-
type ProviderResult = {
|
|
529
|
-
success?: boolean;
|
|
530
|
-
statusCode?: number;
|
|
531
|
-
headers?: Record<string, string>;
|
|
532
|
-
body?: unknown;
|
|
533
|
-
errors?: unknown;
|
|
534
|
-
endTime?: Date;
|
|
535
|
-
};
|
|
536
|
-
//#endregion
|
|
537
|
-
//#region ../olap/src/logs/types.d.ts
|
|
538
|
-
declare const LogType: {
|
|
539
|
-
readonly Action: "action";
|
|
540
|
-
readonly Step: "step";
|
|
541
|
-
readonly Unified: "unified";
|
|
542
|
-
readonly Provider: "provider";
|
|
543
|
-
};
|
|
544
|
-
type LogType = (typeof LogType)[keyof typeof LogType];
|
|
545
|
-
type Query = {
|
|
546
|
-
organizationId?: string | string[];
|
|
547
|
-
projectSecureId?: string | string[];
|
|
548
|
-
actionRunId?: string | string[];
|
|
549
|
-
accountSecureId?: string | string[];
|
|
550
|
-
actionId?: string | string[];
|
|
551
|
-
connectorKey?: string | string[];
|
|
552
|
-
mode?: string | string[];
|
|
553
|
-
category?: string | string[];
|
|
554
|
-
requestId?: string | string[];
|
|
555
|
-
provider?: string | string[];
|
|
556
|
-
service?: string | string[];
|
|
557
|
-
resource?: string | string[];
|
|
558
|
-
subResource?: string | string[];
|
|
559
|
-
childResource?: string | string[];
|
|
560
|
-
action?: string | string[];
|
|
561
|
-
statusCode?: string | string[];
|
|
562
|
-
sourceId?: string | string[];
|
|
563
|
-
sourceType?: string | string[];
|
|
564
|
-
sourceValue?: string | string[];
|
|
565
|
-
originOwnerId?: string | string[];
|
|
566
|
-
httpMethod?: string | string[];
|
|
567
|
-
isBackground?: boolean;
|
|
568
|
-
logId?: string | string[];
|
|
569
|
-
logType?: (typeof LogType.Action | typeof LogType.Unified) | (typeof LogType.Action | typeof LogType.Unified)[];
|
|
570
|
-
success?: boolean;
|
|
571
|
-
startTime?: Date;
|
|
572
|
-
endTime?: Date;
|
|
573
|
-
pageNumber?: number;
|
|
574
|
-
pageSize?: number;
|
|
575
|
-
};
|
|
576
|
-
type QueryResult = {
|
|
577
|
-
logs: Array<ActionLog | UnifiedLog | StepLog | ProviderLog>;
|
|
578
|
-
total: number;
|
|
579
|
-
pageNumber: number;
|
|
580
|
-
pageSize: number;
|
|
581
|
-
};
|
|
582
|
-
type ActionsQuery = {
|
|
583
|
-
organizationId?: string | string[];
|
|
584
|
-
projectSecureId?: string | string[];
|
|
585
|
-
actionRunId?: string | string[];
|
|
586
|
-
accountSecureId?: string | string[];
|
|
587
|
-
actionId?: string | string[];
|
|
588
|
-
connectorKey?: string | string[];
|
|
589
|
-
mode?: string | string[];
|
|
590
|
-
category?: string | string[];
|
|
591
|
-
isBackground?: boolean;
|
|
592
|
-
success?: boolean;
|
|
593
|
-
startTime?: Date;
|
|
594
|
-
endTime?: Date;
|
|
595
|
-
pageNumber?: number;
|
|
596
|
-
pageSize?: number;
|
|
597
|
-
};
|
|
598
|
-
type ActionsQueryResult = {
|
|
599
|
-
actionLogs: ActionLog[];
|
|
600
|
-
total: number;
|
|
601
|
-
pageNumber: number;
|
|
602
|
-
pageSize: number;
|
|
603
|
-
};
|
|
604
|
-
type StepsQuery = {
|
|
605
|
-
organizationId?: string | string[];
|
|
606
|
-
projectSecureId?: string | string[];
|
|
607
|
-
accountSecureId?: string | string[];
|
|
608
|
-
actionRunId?: string | string[];
|
|
609
|
-
stepId?: string | string[];
|
|
610
|
-
stepIndex?: number | number[];
|
|
611
|
-
success?: boolean;
|
|
612
|
-
startTime?: Date;
|
|
613
|
-
endTime?: Date;
|
|
614
|
-
pageNumber?: number;
|
|
615
|
-
pageSize?: number;
|
|
616
|
-
};
|
|
617
|
-
type StepsQueryResult = {
|
|
618
|
-
stepLogs: StepLog[];
|
|
619
|
-
total: number;
|
|
620
|
-
pageNumber: number;
|
|
621
|
-
pageSize: number;
|
|
622
|
-
};
|
|
623
|
-
type UnifiedQuery = {
|
|
624
|
-
organizationId?: string | string[];
|
|
625
|
-
projectSecureId?: string | string[];
|
|
626
|
-
accountSecureId?: string | string[];
|
|
627
|
-
requestId?: string | string[];
|
|
628
|
-
connectorKey?: string | string[];
|
|
629
|
-
resource?: string | string[];
|
|
630
|
-
source?: string | string[];
|
|
631
|
-
category?: string | string[];
|
|
632
|
-
originOwnerId?: string | string[];
|
|
633
|
-
isBackground?: boolean;
|
|
634
|
-
success?: boolean;
|
|
635
|
-
startTime?: Date;
|
|
636
|
-
endTime?: Date;
|
|
637
|
-
pageNumber?: number;
|
|
638
|
-
pageSize?: number;
|
|
639
|
-
};
|
|
640
|
-
type UnifiedQueryResult = {
|
|
641
|
-
unifiedLogs: UnifiedLog[];
|
|
642
|
-
total: number;
|
|
643
|
-
pageNumber: number;
|
|
644
|
-
pageSize: number;
|
|
645
|
-
};
|
|
646
|
-
type ProviderQuery = {
|
|
647
|
-
organizationId?: string | string[];
|
|
648
|
-
projectSecureId?: string | string[];
|
|
649
|
-
accountSecureId?: string | string[];
|
|
650
|
-
requestId?: string | string[];
|
|
651
|
-
id?: string | string[];
|
|
652
|
-
success?: boolean;
|
|
653
|
-
startTime?: Date;
|
|
654
|
-
endTime?: Date;
|
|
655
|
-
pageNumber?: number;
|
|
656
|
-
pageSize?: number;
|
|
657
|
-
};
|
|
658
|
-
type ProviderQueryResult = {
|
|
659
|
-
providerLogs: ProviderLog[];
|
|
660
|
-
total: number;
|
|
661
|
-
pageNumber: number;
|
|
662
|
-
pageSize: number;
|
|
663
|
-
};
|
|
664
|
-
type IntervalType = 'minute' | 'hour' | 'day' | 'week' | 'month';
|
|
665
|
-
declare const Dimension: {
|
|
666
|
-
readonly ConnectorKey: "connector_key";
|
|
667
|
-
readonly Success: "success";
|
|
668
|
-
readonly ActionType: "action_type";
|
|
669
|
-
readonly Mode: "mode";
|
|
670
|
-
readonly Service: "service";
|
|
671
|
-
readonly Resource: "resource";
|
|
672
|
-
readonly ActionId: "action_id";
|
|
673
|
-
readonly HttpMethod: "http_method";
|
|
674
|
-
readonly AccountSecureId: "account_secure_id";
|
|
675
|
-
readonly SourceType: "source_type";
|
|
676
|
-
readonly StatusCode: "status_code";
|
|
677
|
-
readonly OriginOwnerId: "origin_owner_id";
|
|
678
|
-
readonly SourceId: "source_id";
|
|
679
|
-
readonly IsBackground: "is_background";
|
|
680
|
-
};
|
|
681
|
-
type Dimension = (typeof Dimension)[keyof typeof Dimension];
|
|
682
|
-
type AggregateQuery = Partial<Query> & {
|
|
683
|
-
dimensions?: Dimension[];
|
|
684
|
-
intervalType?: IntervalType;
|
|
685
|
-
intervalPeriod?: number;
|
|
686
|
-
};
|
|
687
|
-
type AggregateResult = {
|
|
688
|
-
data: Array<{
|
|
689
|
-
start_time?: string;
|
|
690
|
-
count: number;
|
|
691
|
-
[dimension: string]: unknown;
|
|
692
|
-
}>;
|
|
693
|
-
};
|
|
694
|
-
type DimensionsQuery = Partial<Query> & {
|
|
695
|
-
dimensions: Dimension[];
|
|
696
|
-
maxValues?: number;
|
|
697
|
-
};
|
|
698
|
-
type DimensionsResult = {
|
|
699
|
-
[dimension: string]: Array<{
|
|
700
|
-
value: string;
|
|
701
|
-
count: number;
|
|
702
|
-
}>;
|
|
703
|
-
};
|
|
704
|
-
type SourceQuery = Partial<Query>;
|
|
705
|
-
type SourceResult = Array<{
|
|
706
|
-
sourceId: string;
|
|
707
|
-
sourceType: string;
|
|
708
|
-
requestCount: number;
|
|
709
|
-
lastRequest: string;
|
|
710
|
-
}>;
|
|
711
|
-
interface ILog {
|
|
712
|
-
logType: LogType;
|
|
713
|
-
eventTime: Date;
|
|
714
|
-
startTime: Date;
|
|
715
|
-
endTime?: Date;
|
|
716
|
-
durationMs?: number;
|
|
717
|
-
organizationId: string;
|
|
718
|
-
projectSecureId?: string;
|
|
719
|
-
accountSecureId?: string;
|
|
720
|
-
}
|
|
721
|
-
type ActionLog = ILog & {
|
|
722
|
-
logType: typeof LogType.Action;
|
|
723
|
-
actionRunId: string;
|
|
724
|
-
actionId: string;
|
|
725
|
-
connectorKey: string;
|
|
726
|
-
connectorVersion: string;
|
|
727
|
-
connectorOwner?: string;
|
|
728
|
-
connectorProfileId?: string;
|
|
729
|
-
organizationId: string;
|
|
730
|
-
projectSecureId: string;
|
|
731
|
-
accountSecureId: string;
|
|
732
|
-
actionType?: string;
|
|
733
|
-
mode?: string;
|
|
734
|
-
category?: string;
|
|
735
|
-
originOwnerId?: string;
|
|
736
|
-
originOwnerName?: string;
|
|
737
|
-
httpMethod?: string;
|
|
738
|
-
url?: string;
|
|
739
|
-
sourceType?: SourceType;
|
|
740
|
-
sourceId?: string;
|
|
741
|
-
sourceValue?: string;
|
|
742
|
-
authType?: AuthType;
|
|
743
|
-
authId?: string;
|
|
744
|
-
userAgent?: string;
|
|
745
|
-
ipAddress?: string;
|
|
746
|
-
sessionId?: string;
|
|
747
|
-
agentId?: string;
|
|
748
|
-
transportType?: TransportType;
|
|
749
|
-
streamType?: StreamType;
|
|
750
|
-
isBackground?: boolean;
|
|
751
|
-
success?: boolean;
|
|
752
|
-
statusCode?: number;
|
|
753
|
-
riskLevel?: string;
|
|
754
|
-
tier2Score?: number;
|
|
755
|
-
advancedExpiresAt?: Date;
|
|
756
|
-
defenderExpiresAt?: Date;
|
|
757
|
-
};
|
|
758
|
-
type StepLog = ILog & {
|
|
759
|
-
logType: typeof LogType.Step;
|
|
760
|
-
actionRunId: string;
|
|
761
|
-
stepIndex: number;
|
|
762
|
-
stepId: string;
|
|
763
|
-
stepFunctionName?: string;
|
|
764
|
-
stepFunctionVersion?: string;
|
|
765
|
-
stepIterations?: number;
|
|
766
|
-
organizationId: string;
|
|
767
|
-
projectSecureId: string;
|
|
768
|
-
accountSecureId: string;
|
|
769
|
-
skipped?: boolean;
|
|
770
|
-
success?: boolean;
|
|
771
|
-
statusCode?: number;
|
|
772
|
-
message?: string;
|
|
773
|
-
};
|
|
774
|
-
type UnifiedLog = ILog & {
|
|
775
|
-
logType: typeof LogType.Unified;
|
|
776
|
-
requestId: string;
|
|
777
|
-
organizationId: string;
|
|
778
|
-
projectSecureId: string;
|
|
779
|
-
accountSecureId: string;
|
|
780
|
-
connectorKey: string;
|
|
781
|
-
connectorVersion?: string;
|
|
782
|
-
mode?: string;
|
|
783
|
-
httpMethod?: string;
|
|
784
|
-
url?: string;
|
|
785
|
-
path?: string;
|
|
786
|
-
resource?: string;
|
|
787
|
-
subResource?: string;
|
|
788
|
-
childResource?: string;
|
|
789
|
-
service?: string;
|
|
790
|
-
action?: string;
|
|
791
|
-
sourceId?: string;
|
|
792
|
-
sourceType?: SourceType;
|
|
793
|
-
sourceValue?: string;
|
|
794
|
-
authType?: AuthType;
|
|
795
|
-
authId?: string;
|
|
796
|
-
userAgent?: string;
|
|
797
|
-
ipAddress?: string;
|
|
798
|
-
sessionId?: string;
|
|
799
|
-
agentId?: string;
|
|
800
|
-
transportType?: TransportType;
|
|
801
|
-
streamType?: StreamType;
|
|
802
|
-
isBackground?: boolean;
|
|
803
|
-
originOwnerId?: string;
|
|
804
|
-
originOwnerName?: string;
|
|
805
|
-
statusCode?: number;
|
|
806
|
-
success?: boolean;
|
|
807
|
-
isWorker?: boolean;
|
|
808
|
-
status?: number;
|
|
809
|
-
provider?: string;
|
|
810
|
-
eventDatetime?: Date;
|
|
811
|
-
duration?: number;
|
|
812
|
-
advancedExpiresAt?: Date;
|
|
813
|
-
};
|
|
814
|
-
type ProviderLog = ILog & {
|
|
815
|
-
logType: typeof LogType.Provider;
|
|
816
|
-
requestId: string;
|
|
817
|
-
id?: string;
|
|
818
|
-
organizationId: string;
|
|
819
|
-
projectSecureId: string;
|
|
820
|
-
accountSecureId: string;
|
|
821
|
-
connectorKey: string;
|
|
822
|
-
connectorVersion?: string;
|
|
823
|
-
action: string;
|
|
824
|
-
mode?: string;
|
|
825
|
-
httpMethod: string;
|
|
826
|
-
originOwnerId?: string;
|
|
827
|
-
originOwnerName?: string;
|
|
828
|
-
url: string;
|
|
829
|
-
path?: string;
|
|
830
|
-
resource?: string;
|
|
831
|
-
subResource?: string;
|
|
832
|
-
childResource?: string;
|
|
833
|
-
service?: string;
|
|
834
|
-
success?: boolean;
|
|
835
|
-
statusCode?: number;
|
|
836
|
-
isWorker?: boolean;
|
|
837
|
-
status?: number;
|
|
838
|
-
provider?: string;
|
|
839
|
-
eventDatetime?: Date;
|
|
840
|
-
duration?: number;
|
|
841
|
-
};
|
|
842
|
-
//#endregion
|
|
843
72
|
//#region src/categories/types.d.ts
|
|
844
73
|
type Category = 'hris' | 'crm' | 'ats' | 'lms' | 'marketing' | 'filestorage' | 'iam' | 'internal' | 'action';
|
|
845
74
|
type CategoryDetails = {
|
|
@@ -994,6 +223,1513 @@ type SchemaField = {
|
|
|
994
223
|
description?: string;
|
|
995
224
|
};
|
|
996
225
|
//#endregion
|
|
226
|
+
//#region ../../node_modules/zod/v4/core/standard-schema.d.cts
|
|
227
|
+
/** The Standard Schema interface. */
|
|
228
|
+
interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
229
|
+
/** The Standard Schema properties. */
|
|
230
|
+
readonly "~standard": StandardSchemaV1.Props<Input, Output>;
|
|
231
|
+
}
|
|
232
|
+
declare namespace StandardSchemaV1 {
|
|
233
|
+
/** The Standard Schema properties interface. */
|
|
234
|
+
interface Props<Input = unknown, Output = Input> {
|
|
235
|
+
/** The version number of the standard. */
|
|
236
|
+
readonly version: 1;
|
|
237
|
+
/** The vendor name of the schema library. */
|
|
238
|
+
readonly vendor: string;
|
|
239
|
+
/** Validates unknown input values. */
|
|
240
|
+
readonly validate: (value: unknown) => Result<Output> | Promise<Result<Output>>;
|
|
241
|
+
/** Inferred types associated with the schema. */
|
|
242
|
+
readonly types?: Types<Input, Output> | undefined;
|
|
243
|
+
}
|
|
244
|
+
/** The result interface of the validate function. */
|
|
245
|
+
type Result<Output> = SuccessResult<Output> | FailureResult;
|
|
246
|
+
/** The result interface if validation succeeds. */
|
|
247
|
+
interface SuccessResult<Output> {
|
|
248
|
+
/** The typed output value. */
|
|
249
|
+
readonly value: Output;
|
|
250
|
+
/** The non-existent issues. */
|
|
251
|
+
readonly issues?: undefined;
|
|
252
|
+
}
|
|
253
|
+
/** The result interface if validation fails. */
|
|
254
|
+
interface FailureResult {
|
|
255
|
+
/** The issues of failed validation. */
|
|
256
|
+
readonly issues: ReadonlyArray<Issue>;
|
|
257
|
+
}
|
|
258
|
+
/** The issue interface of the failure output. */
|
|
259
|
+
interface Issue {
|
|
260
|
+
/** The error message of the issue. */
|
|
261
|
+
readonly message: string;
|
|
262
|
+
/** The path of the issue, if any. */
|
|
263
|
+
readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
|
|
264
|
+
}
|
|
265
|
+
/** The path segment interface of the issue. */
|
|
266
|
+
interface PathSegment {
|
|
267
|
+
/** The key representing a path segment. */
|
|
268
|
+
readonly key: PropertyKey;
|
|
269
|
+
}
|
|
270
|
+
/** The Standard Schema types interface. */
|
|
271
|
+
interface Types<Input = unknown, Output = Input> {
|
|
272
|
+
/** The input type of the schema. */
|
|
273
|
+
readonly input: Input;
|
|
274
|
+
/** The output type of the schema. */
|
|
275
|
+
readonly output: Output;
|
|
276
|
+
}
|
|
277
|
+
/** Infers the input type of a Standard Schema. */
|
|
278
|
+
type InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["input"];
|
|
279
|
+
/** Infers the output type of a Standard Schema. */
|
|
280
|
+
type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
|
|
281
|
+
}
|
|
282
|
+
//#endregion
|
|
283
|
+
//#region ../../node_modules/zod/v4/core/util.d.cts
|
|
284
|
+
type JWTAlgorithm = "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | (string & {});
|
|
285
|
+
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
286
|
+
type Omit$1<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
287
|
+
type MakePartial<T, K extends keyof T> = Omit$1<T, K> & InexactPartial<Pick<T, K>>;
|
|
288
|
+
type NoUndefined<T> = T extends undefined ? never : T;
|
|
289
|
+
type Whatever = {} | undefined | null;
|
|
290
|
+
type LoosePartial<T extends object> = InexactPartial<T> & {
|
|
291
|
+
[k: string]: unknown;
|
|
292
|
+
};
|
|
293
|
+
type Mask<Keys extends PropertyKey> = { [K in Keys]?: true };
|
|
294
|
+
type InexactPartial<T> = { [P in keyof T]?: T[P] | undefined };
|
|
295
|
+
type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
|
|
296
|
+
readonly [Symbol.toStringTag]: string;
|
|
297
|
+
} | Date | Error | Generator | Promise<unknown> | RegExp;
|
|
298
|
+
type MakeReadonly<T> = T extends Map<infer K, infer V> ? ReadonlyMap<K, V> : T extends Set<infer V> ? ReadonlySet<V> : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T extends Array<infer V> ? ReadonlyArray<V> : T extends BuiltIn ? T : Readonly<T>;
|
|
299
|
+
type SomeObject = Record<PropertyKey, any>;
|
|
300
|
+
type Identity<T> = T;
|
|
301
|
+
type Flatten<T> = Identity<{ [k in keyof T]: T[k] }>;
|
|
302
|
+
type Prettify<T> = { [K in keyof T]: T[K] } & {};
|
|
303
|
+
type Extend<A extends SomeObject, B extends SomeObject> = Flatten<keyof A & keyof B extends never ? A & B : { [K in keyof A as K extends keyof B ? never : K]: A[K] } & { [K in keyof B]: B[K] }>;
|
|
304
|
+
type AnyFunc = (...args: any[]) => any;
|
|
305
|
+
type MaybeAsync<T> = T | Promise<T>;
|
|
306
|
+
type EnumValue = string | number;
|
|
307
|
+
type EnumLike = Readonly<Record<string, EnumValue>>;
|
|
308
|
+
type ToEnum<T extends EnumValue> = Flatten<{ [k in T]: k }>;
|
|
309
|
+
type Literal = string | number | bigint | boolean | null | undefined;
|
|
310
|
+
type Primitive = string | number | symbol | bigint | boolean | null | undefined;
|
|
311
|
+
type HasLength = {
|
|
312
|
+
length: number;
|
|
313
|
+
};
|
|
314
|
+
type Numeric = number | bigint | Date;
|
|
315
|
+
type PropValues = Record<string, Set<Primitive>>;
|
|
316
|
+
type PrimitiveSet = Set<Primitive>;
|
|
317
|
+
type EmptyToNever<T> = keyof T extends never ? never : T;
|
|
318
|
+
declare abstract class Class {
|
|
319
|
+
constructor(..._args: any[]);
|
|
320
|
+
}
|
|
321
|
+
//#endregion
|
|
322
|
+
//#region ../../node_modules/zod/v4/core/versions.d.cts
|
|
323
|
+
declare const version$1: {
|
|
324
|
+
readonly major: 4;
|
|
325
|
+
readonly minor: 0;
|
|
326
|
+
readonly patch: number;
|
|
327
|
+
};
|
|
328
|
+
//#endregion
|
|
329
|
+
//#region ../../node_modules/zod/v4/core/schemas.d.cts
|
|
330
|
+
interface ParseContext<T extends $ZodIssueBase = never> {
|
|
331
|
+
/** Customize error messages. */
|
|
332
|
+
readonly error?: $ZodErrorMap<T>;
|
|
333
|
+
/** Include the `input` field in issue objects. Default `false`. */
|
|
334
|
+
readonly reportInput?: boolean;
|
|
335
|
+
/** Skip eval-based fast path. Default `false`. */
|
|
336
|
+
readonly jitless?: boolean;
|
|
337
|
+
}
|
|
338
|
+
/** @internal */
|
|
339
|
+
interface ParseContextInternal<T extends $ZodIssueBase = never> extends ParseContext<T> {
|
|
340
|
+
readonly async?: boolean | undefined;
|
|
341
|
+
}
|
|
342
|
+
interface ParsePayload<T = unknown> {
|
|
343
|
+
value: T;
|
|
344
|
+
issues: $ZodRawIssue[];
|
|
345
|
+
}
|
|
346
|
+
type CheckFn<T> = (input: ParsePayload<T>) => MaybeAsync<void>;
|
|
347
|
+
interface $ZodTypeDef {
|
|
348
|
+
type: "string" | "number" | "int" | "boolean" | "bigint" | "symbol" | "null" | "undefined" | "void" | "never" | "any" | "unknown" | "date" | "object" | "record" | "file" | "array" | "tuple" | "union" | "intersection" | "map" | "set" | "enum" | "literal" | "nullable" | "optional" | "nonoptional" | "success" | "transform" | "default" | "prefault" | "catch" | "nan" | "pipe" | "readonly" | "template_literal" | "promise" | "lazy" | "custom";
|
|
349
|
+
error?: $ZodErrorMap<never> | undefined;
|
|
350
|
+
checks?: $ZodCheck<never>[];
|
|
351
|
+
}
|
|
352
|
+
interface _$ZodTypeInternals {
|
|
353
|
+
/** The `@zod/core` version of this schema */
|
|
354
|
+
version: typeof version$1;
|
|
355
|
+
/** Schema definition. */
|
|
356
|
+
def: $ZodTypeDef;
|
|
357
|
+
/** @internal Randomly generated ID for this schema. */
|
|
358
|
+
/** @internal List of deferred initializers. */
|
|
359
|
+
deferred: AnyFunc[] | undefined;
|
|
360
|
+
/** @internal Parses input and runs all checks (refinements). */
|
|
361
|
+
run(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
|
|
362
|
+
/** @internal Parses input, doesn't run checks. */
|
|
363
|
+
parse(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
|
|
364
|
+
/** @internal Stores identifiers for the set of traits implemented by this schema. */
|
|
365
|
+
traits: Set<string>;
|
|
366
|
+
/** @internal Indicates that a schema output type should be considered optional inside objects.
|
|
367
|
+
* @default Required
|
|
368
|
+
*/
|
|
369
|
+
/** @internal */
|
|
370
|
+
optin?: "optional" | undefined;
|
|
371
|
+
/** @internal */
|
|
372
|
+
optout?: "optional" | undefined;
|
|
373
|
+
/** @internal The set of literal values that will pass validation. Must be an exhaustive set. Used to determine optionality in z.record().
|
|
374
|
+
*
|
|
375
|
+
* Defined on: enum, const, literal, null, undefined
|
|
376
|
+
* Passthrough: optional, nullable, branded, default, catch, pipe
|
|
377
|
+
* Todo: unions?
|
|
378
|
+
*/
|
|
379
|
+
values?: PrimitiveSet | undefined;
|
|
380
|
+
/** @internal A set of literal discriminators used for the fast path in discriminated unions. */
|
|
381
|
+
propValues?: PropValues | undefined;
|
|
382
|
+
/** @internal This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral(). */
|
|
383
|
+
pattern: RegExp | undefined;
|
|
384
|
+
/** @internal The constructor function of this schema. */
|
|
385
|
+
constr: new (def: any) => $ZodType;
|
|
386
|
+
/** @internal A catchall object for bag metadata related to this schema. Commonly modified by checks using `onattach`. */
|
|
387
|
+
bag: Record<string, unknown>;
|
|
388
|
+
/** @internal The set of issues this schema might throw during type checking. */
|
|
389
|
+
isst: $ZodIssueBase;
|
|
390
|
+
/** An optional method used to override `toJSONSchema` logic. */
|
|
391
|
+
toJSONSchema?: () => unknown;
|
|
392
|
+
/** @internal The parent of this schema. Only set during certain clone operations. */
|
|
393
|
+
parent?: $ZodType | undefined;
|
|
394
|
+
}
|
|
395
|
+
/** @internal */
|
|
396
|
+
interface $ZodTypeInternals<out O = unknown, out I = unknown> extends _$ZodTypeInternals {
|
|
397
|
+
/** @internal The inferred output type */
|
|
398
|
+
output: O;
|
|
399
|
+
/** @internal The inferred input type */
|
|
400
|
+
input: I;
|
|
401
|
+
}
|
|
402
|
+
type $ZodStandardSchema<T> = StandardSchemaV1.Props<input<T>, output<T>>;
|
|
403
|
+
type SomeType = {
|
|
404
|
+
_zod: _$ZodTypeInternals;
|
|
405
|
+
};
|
|
406
|
+
interface $ZodType<O = unknown, I = unknown, Internals extends $ZodTypeInternals<O, I> = $ZodTypeInternals<O, I>> {
|
|
407
|
+
_zod: Internals;
|
|
408
|
+
"~standard": $ZodStandardSchema<this>;
|
|
409
|
+
}
|
|
410
|
+
declare const $ZodType: $constructor<$ZodType>;
|
|
411
|
+
interface $ZodStringDef extends $ZodTypeDef {
|
|
412
|
+
type: "string";
|
|
413
|
+
coerce?: boolean;
|
|
414
|
+
checks?: $ZodCheck<string>[];
|
|
415
|
+
}
|
|
416
|
+
interface $ZodStringInternals<Input> extends $ZodTypeInternals<string, Input> {
|
|
417
|
+
def: $ZodStringDef;
|
|
418
|
+
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
419
|
+
pattern: RegExp;
|
|
420
|
+
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
421
|
+
isst: $ZodIssueInvalidType;
|
|
422
|
+
bag: LoosePartial<{
|
|
423
|
+
minimum: number;
|
|
424
|
+
maximum: number;
|
|
425
|
+
patterns: Set<RegExp>;
|
|
426
|
+
format: string;
|
|
427
|
+
contentEncoding: string;
|
|
428
|
+
}>;
|
|
429
|
+
}
|
|
430
|
+
interface $ZodStringFormatDef<Format extends string = string> extends $ZodStringDef, $ZodCheckStringFormatDef<Format> {}
|
|
431
|
+
interface $ZodStringFormatInternals<Format extends string = string> extends $ZodStringInternals<string>, $ZodCheckStringFormatInternals {
|
|
432
|
+
def: $ZodStringFormatDef<Format>;
|
|
433
|
+
}
|
|
434
|
+
interface $ZodStringFormat<Format extends string = string> extends $ZodType {
|
|
435
|
+
_zod: $ZodStringFormatInternals<Format>;
|
|
436
|
+
}
|
|
437
|
+
declare const $ZodStringFormat: $constructor<$ZodStringFormat>;
|
|
438
|
+
interface $ZodGUIDInternals extends $ZodStringFormatInternals<"guid"> {}
|
|
439
|
+
interface $ZodGUID extends $ZodType {
|
|
440
|
+
_zod: $ZodGUIDInternals;
|
|
441
|
+
}
|
|
442
|
+
declare const $ZodGUID: $constructor<$ZodGUID>;
|
|
443
|
+
interface $ZodUUIDDef extends $ZodStringFormatDef<"uuid"> {
|
|
444
|
+
version?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8";
|
|
445
|
+
}
|
|
446
|
+
interface $ZodUUIDInternals extends $ZodStringFormatInternals<"uuid"> {
|
|
447
|
+
def: $ZodUUIDDef;
|
|
448
|
+
}
|
|
449
|
+
interface $ZodUUID extends $ZodType {
|
|
450
|
+
_zod: $ZodUUIDInternals;
|
|
451
|
+
}
|
|
452
|
+
declare const $ZodUUID: $constructor<$ZodUUID>;
|
|
453
|
+
interface $ZodEmailInternals extends $ZodStringFormatInternals<"email"> {}
|
|
454
|
+
interface $ZodEmail extends $ZodType {
|
|
455
|
+
_zod: $ZodEmailInternals;
|
|
456
|
+
}
|
|
457
|
+
declare const $ZodEmail: $constructor<$ZodEmail>;
|
|
458
|
+
interface $ZodURLDef extends $ZodStringFormatDef<"url"> {
|
|
459
|
+
hostname?: RegExp | undefined;
|
|
460
|
+
protocol?: RegExp | undefined;
|
|
461
|
+
}
|
|
462
|
+
interface $ZodURLInternals extends $ZodStringFormatInternals<"url"> {
|
|
463
|
+
def: $ZodURLDef;
|
|
464
|
+
}
|
|
465
|
+
interface $ZodURL extends $ZodType {
|
|
466
|
+
_zod: $ZodURLInternals;
|
|
467
|
+
}
|
|
468
|
+
declare const $ZodURL: $constructor<$ZodURL>;
|
|
469
|
+
interface $ZodEmojiInternals extends $ZodStringFormatInternals<"emoji"> {}
|
|
470
|
+
interface $ZodEmoji extends $ZodType {
|
|
471
|
+
_zod: $ZodEmojiInternals;
|
|
472
|
+
}
|
|
473
|
+
declare const $ZodEmoji: $constructor<$ZodEmoji>;
|
|
474
|
+
interface $ZodNanoIDInternals extends $ZodStringFormatInternals<"nanoid"> {}
|
|
475
|
+
interface $ZodNanoID extends $ZodType {
|
|
476
|
+
_zod: $ZodNanoIDInternals;
|
|
477
|
+
}
|
|
478
|
+
declare const $ZodNanoID: $constructor<$ZodNanoID>;
|
|
479
|
+
interface $ZodCUIDInternals extends $ZodStringFormatInternals<"cuid"> {}
|
|
480
|
+
interface $ZodCUID extends $ZodType {
|
|
481
|
+
_zod: $ZodCUIDInternals;
|
|
482
|
+
}
|
|
483
|
+
declare const $ZodCUID: $constructor<$ZodCUID>;
|
|
484
|
+
interface $ZodCUID2Internals extends $ZodStringFormatInternals<"cuid2"> {}
|
|
485
|
+
interface $ZodCUID2 extends $ZodType {
|
|
486
|
+
_zod: $ZodCUID2Internals;
|
|
487
|
+
}
|
|
488
|
+
declare const $ZodCUID2: $constructor<$ZodCUID2>;
|
|
489
|
+
interface $ZodULIDInternals extends $ZodStringFormatInternals<"ulid"> {}
|
|
490
|
+
interface $ZodULID extends $ZodType {
|
|
491
|
+
_zod: $ZodULIDInternals;
|
|
492
|
+
}
|
|
493
|
+
declare const $ZodULID: $constructor<$ZodULID>;
|
|
494
|
+
interface $ZodXIDInternals extends $ZodStringFormatInternals<"xid"> {}
|
|
495
|
+
interface $ZodXID extends $ZodType {
|
|
496
|
+
_zod: $ZodXIDInternals;
|
|
497
|
+
}
|
|
498
|
+
declare const $ZodXID: $constructor<$ZodXID>;
|
|
499
|
+
interface $ZodKSUIDInternals extends $ZodStringFormatInternals<"ksuid"> {}
|
|
500
|
+
interface $ZodKSUID extends $ZodType {
|
|
501
|
+
_zod: $ZodKSUIDInternals;
|
|
502
|
+
}
|
|
503
|
+
declare const $ZodKSUID: $constructor<$ZodKSUID>;
|
|
504
|
+
interface $ZodISODateTimeDef extends $ZodStringFormatDef<"datetime"> {
|
|
505
|
+
precision: number | null;
|
|
506
|
+
offset: boolean;
|
|
507
|
+
local: boolean;
|
|
508
|
+
}
|
|
509
|
+
interface $ZodISODateTimeInternals extends $ZodStringFormatInternals {
|
|
510
|
+
def: $ZodISODateTimeDef;
|
|
511
|
+
}
|
|
512
|
+
interface $ZodISODateTime extends $ZodType {
|
|
513
|
+
_zod: $ZodISODateTimeInternals;
|
|
514
|
+
}
|
|
515
|
+
declare const $ZodISODateTime: $constructor<$ZodISODateTime>;
|
|
516
|
+
interface $ZodISODateInternals extends $ZodStringFormatInternals<"date"> {}
|
|
517
|
+
interface $ZodISODate extends $ZodType {
|
|
518
|
+
_zod: $ZodISODateInternals;
|
|
519
|
+
}
|
|
520
|
+
declare const $ZodISODate: $constructor<$ZodISODate>;
|
|
521
|
+
interface $ZodISOTimeDef extends $ZodStringFormatDef<"time"> {
|
|
522
|
+
precision?: number | null;
|
|
523
|
+
}
|
|
524
|
+
interface $ZodISOTimeInternals extends $ZodStringFormatInternals<"time"> {
|
|
525
|
+
def: $ZodISOTimeDef;
|
|
526
|
+
}
|
|
527
|
+
interface $ZodISOTime extends $ZodType {
|
|
528
|
+
_zod: $ZodISOTimeInternals;
|
|
529
|
+
}
|
|
530
|
+
declare const $ZodISOTime: $constructor<$ZodISOTime>;
|
|
531
|
+
interface $ZodISODurationInternals extends $ZodStringFormatInternals<"duration"> {}
|
|
532
|
+
interface $ZodISODuration extends $ZodType {
|
|
533
|
+
_zod: $ZodISODurationInternals;
|
|
534
|
+
}
|
|
535
|
+
declare const $ZodISODuration: $constructor<$ZodISODuration>;
|
|
536
|
+
interface $ZodIPv4Def extends $ZodStringFormatDef<"ipv4"> {
|
|
537
|
+
version?: "v4";
|
|
538
|
+
}
|
|
539
|
+
interface $ZodIPv4Internals extends $ZodStringFormatInternals<"ipv4"> {
|
|
540
|
+
def: $ZodIPv4Def;
|
|
541
|
+
}
|
|
542
|
+
interface $ZodIPv4 extends $ZodType {
|
|
543
|
+
_zod: $ZodIPv4Internals;
|
|
544
|
+
}
|
|
545
|
+
declare const $ZodIPv4: $constructor<$ZodIPv4>;
|
|
546
|
+
interface $ZodIPv6Def extends $ZodStringFormatDef<"ipv6"> {
|
|
547
|
+
version?: "v6";
|
|
548
|
+
}
|
|
549
|
+
interface $ZodIPv6Internals extends $ZodStringFormatInternals<"ipv6"> {
|
|
550
|
+
def: $ZodIPv6Def;
|
|
551
|
+
}
|
|
552
|
+
interface $ZodIPv6 extends $ZodType {
|
|
553
|
+
_zod: $ZodIPv6Internals;
|
|
554
|
+
}
|
|
555
|
+
declare const $ZodIPv6: $constructor<$ZodIPv6>;
|
|
556
|
+
interface $ZodCIDRv4Def extends $ZodStringFormatDef<"cidrv4"> {
|
|
557
|
+
version?: "v4";
|
|
558
|
+
}
|
|
559
|
+
interface $ZodCIDRv4Internals extends $ZodStringFormatInternals<"cidrv4"> {
|
|
560
|
+
def: $ZodCIDRv4Def;
|
|
561
|
+
}
|
|
562
|
+
interface $ZodCIDRv4 extends $ZodType {
|
|
563
|
+
_zod: $ZodCIDRv4Internals;
|
|
564
|
+
}
|
|
565
|
+
declare const $ZodCIDRv4: $constructor<$ZodCIDRv4>;
|
|
566
|
+
interface $ZodCIDRv6Def extends $ZodStringFormatDef<"cidrv6"> {
|
|
567
|
+
version?: "v6";
|
|
568
|
+
}
|
|
569
|
+
interface $ZodCIDRv6Internals extends $ZodStringFormatInternals<"cidrv6"> {
|
|
570
|
+
def: $ZodCIDRv6Def;
|
|
571
|
+
}
|
|
572
|
+
interface $ZodCIDRv6 extends $ZodType {
|
|
573
|
+
_zod: $ZodCIDRv6Internals;
|
|
574
|
+
}
|
|
575
|
+
declare const $ZodCIDRv6: $constructor<$ZodCIDRv6>;
|
|
576
|
+
interface $ZodBase64Internals extends $ZodStringFormatInternals<"base64"> {}
|
|
577
|
+
interface $ZodBase64 extends $ZodType {
|
|
578
|
+
_zod: $ZodBase64Internals;
|
|
579
|
+
}
|
|
580
|
+
declare const $ZodBase64: $constructor<$ZodBase64>;
|
|
581
|
+
interface $ZodBase64URLInternals extends $ZodStringFormatInternals<"base64url"> {}
|
|
582
|
+
interface $ZodBase64URL extends $ZodType {
|
|
583
|
+
_zod: $ZodBase64URLInternals;
|
|
584
|
+
}
|
|
585
|
+
declare const $ZodBase64URL: $constructor<$ZodBase64URL>;
|
|
586
|
+
interface $ZodE164Internals extends $ZodStringFormatInternals<"e164"> {}
|
|
587
|
+
interface $ZodE164 extends $ZodType {
|
|
588
|
+
_zod: $ZodE164Internals;
|
|
589
|
+
}
|
|
590
|
+
declare const $ZodE164: $constructor<$ZodE164>;
|
|
591
|
+
interface $ZodJWTDef extends $ZodStringFormatDef<"jwt"> {
|
|
592
|
+
alg?: JWTAlgorithm | undefined;
|
|
593
|
+
}
|
|
594
|
+
interface $ZodJWTInternals extends $ZodStringFormatInternals<"jwt"> {
|
|
595
|
+
def: $ZodJWTDef;
|
|
596
|
+
}
|
|
597
|
+
interface $ZodJWT extends $ZodType {
|
|
598
|
+
_zod: $ZodJWTInternals;
|
|
599
|
+
}
|
|
600
|
+
declare const $ZodJWT: $constructor<$ZodJWT>;
|
|
601
|
+
interface $ZodNumberDef extends $ZodTypeDef {
|
|
602
|
+
type: "number";
|
|
603
|
+
coerce?: boolean;
|
|
604
|
+
}
|
|
605
|
+
interface $ZodNumberInternals<Input = unknown> extends $ZodTypeInternals<number, Input> {
|
|
606
|
+
def: $ZodNumberDef;
|
|
607
|
+
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
608
|
+
pattern: RegExp;
|
|
609
|
+
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
610
|
+
isst: $ZodIssueInvalidType;
|
|
611
|
+
bag: LoosePartial<{
|
|
612
|
+
minimum: number;
|
|
613
|
+
maximum: number;
|
|
614
|
+
exclusiveMinimum: number;
|
|
615
|
+
exclusiveMaximum: number;
|
|
616
|
+
format: string;
|
|
617
|
+
pattern: RegExp;
|
|
618
|
+
}>;
|
|
619
|
+
}
|
|
620
|
+
interface $ZodBooleanDef extends $ZodTypeDef {
|
|
621
|
+
type: "boolean";
|
|
622
|
+
coerce?: boolean;
|
|
623
|
+
checks?: $ZodCheck<boolean>[];
|
|
624
|
+
}
|
|
625
|
+
interface $ZodBooleanInternals<T = unknown> extends $ZodTypeInternals<boolean, T> {
|
|
626
|
+
pattern: RegExp;
|
|
627
|
+
def: $ZodBooleanDef;
|
|
628
|
+
isst: $ZodIssueInvalidType;
|
|
629
|
+
}
|
|
630
|
+
interface $ZodUnknownDef extends $ZodTypeDef {
|
|
631
|
+
type: "unknown";
|
|
632
|
+
}
|
|
633
|
+
interface $ZodUnknownInternals extends $ZodTypeInternals<unknown, unknown> {
|
|
634
|
+
def: $ZodUnknownDef;
|
|
635
|
+
isst: never;
|
|
636
|
+
}
|
|
637
|
+
interface $ZodArrayDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
638
|
+
type: "array";
|
|
639
|
+
element: T;
|
|
640
|
+
}
|
|
641
|
+
interface $ZodArrayInternals<T extends SomeType = $ZodType> extends _$ZodTypeInternals {
|
|
642
|
+
def: $ZodArrayDef<T>;
|
|
643
|
+
isst: $ZodIssueInvalidType;
|
|
644
|
+
output: output<T>[];
|
|
645
|
+
input: input<T>[];
|
|
646
|
+
}
|
|
647
|
+
interface $ZodArray<T extends SomeType = $ZodType> extends $ZodType<any, any, $ZodArrayInternals<T>> {}
|
|
648
|
+
declare const $ZodArray: $constructor<$ZodArray>;
|
|
649
|
+
type OptionalOutSchema = {
|
|
650
|
+
_zod: {
|
|
651
|
+
optout: "optional";
|
|
652
|
+
};
|
|
653
|
+
};
|
|
654
|
+
type OptionalInSchema = {
|
|
655
|
+
_zod: {
|
|
656
|
+
optin: "optional";
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
type $InferObjectOutput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? IsAny<T[keyof T]> extends true ? Record<string, unknown> : Record<string, output<T[keyof T]>> : keyof (T & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T as T[k] extends OptionalOutSchema ? never : k]: T[k]["_zod"]["output"] } & { -readonly [k in keyof T as T[k] extends OptionalOutSchema ? k : never]?: T[k]["_zod"]["output"] } & Extra>;
|
|
660
|
+
type $InferObjectInput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? IsAny<T[keyof T]> extends true ? Record<string, unknown> : Record<string, input<T[keyof T]>> : keyof (T & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T as T[k] extends OptionalInSchema ? never : k]: T[k]["_zod"]["input"] } & { -readonly [k in keyof T as T[k] extends OptionalInSchema ? k : never]?: T[k]["_zod"]["input"] } & Extra>;
|
|
661
|
+
type $ZodObjectConfig = {
|
|
662
|
+
out: Record<string, unknown>;
|
|
663
|
+
in: Record<string, unknown>;
|
|
664
|
+
};
|
|
665
|
+
type $loose = {
|
|
666
|
+
out: Record<string, unknown>;
|
|
667
|
+
in: Record<string, unknown>;
|
|
668
|
+
};
|
|
669
|
+
type $strict = {
|
|
670
|
+
out: {};
|
|
671
|
+
in: {};
|
|
672
|
+
};
|
|
673
|
+
type $strip = {
|
|
674
|
+
out: {};
|
|
675
|
+
in: {};
|
|
676
|
+
};
|
|
677
|
+
type $catchall<T extends SomeType> = {
|
|
678
|
+
out: {
|
|
679
|
+
[k: string]: output<T>;
|
|
680
|
+
};
|
|
681
|
+
in: {
|
|
682
|
+
[k: string]: input<T>;
|
|
683
|
+
};
|
|
684
|
+
};
|
|
685
|
+
type $ZodShape = Readonly<{
|
|
686
|
+
[k: string]: $ZodType;
|
|
687
|
+
}>;
|
|
688
|
+
interface $ZodObjectDef<Shape extends $ZodShape = $ZodShape> extends $ZodTypeDef {
|
|
689
|
+
type: "object";
|
|
690
|
+
shape: Shape;
|
|
691
|
+
catchall?: $ZodType | undefined;
|
|
692
|
+
}
|
|
693
|
+
interface $ZodObjectInternals< /** @ts-ignore Cast variance */out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals {
|
|
694
|
+
def: $ZodObjectDef<Shape>;
|
|
695
|
+
config: Config;
|
|
696
|
+
isst: $ZodIssueInvalidType | $ZodIssueUnrecognizedKeys;
|
|
697
|
+
propValues: PropValues;
|
|
698
|
+
output: $InferObjectOutput<Shape, Config["out"]>;
|
|
699
|
+
input: $InferObjectInput<Shape, Config["in"]>;
|
|
700
|
+
}
|
|
701
|
+
type $ZodLooseShape = Record<string, any>;
|
|
702
|
+
interface $ZodObject< /** @ts-ignore Cast variance */out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType<any, any, $ZodObjectInternals<Shape, Params>> {
|
|
703
|
+
"~standard": $ZodStandardSchema<this>;
|
|
704
|
+
}
|
|
705
|
+
declare const $ZodObject: $constructor<$ZodObject>;
|
|
706
|
+
type $InferUnionOutput<T extends SomeType> = T extends any ? output<T> : never;
|
|
707
|
+
type $InferUnionInput<T extends SomeType> = T extends any ? input<T> : never;
|
|
708
|
+
interface $ZodUnionDef<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodTypeDef {
|
|
709
|
+
type: "union";
|
|
710
|
+
options: Options;
|
|
711
|
+
}
|
|
712
|
+
type IsOptionalIn<T extends SomeType> = T extends OptionalInSchema ? true : false;
|
|
713
|
+
type IsOptionalOut<T extends SomeType> = T extends OptionalOutSchema ? true : false;
|
|
714
|
+
interface $ZodUnionInternals<T extends readonly SomeType[] = readonly $ZodType[]> extends _$ZodTypeInternals {
|
|
715
|
+
def: $ZodUnionDef<T>;
|
|
716
|
+
isst: $ZodIssueInvalidUnion;
|
|
717
|
+
pattern: T[number]["_zod"]["pattern"];
|
|
718
|
+
values: T[number]["_zod"]["values"];
|
|
719
|
+
output: $InferUnionOutput<T[number]>;
|
|
720
|
+
input: $InferUnionInput<T[number]>;
|
|
721
|
+
optin: IsOptionalIn<T[number]> extends false ? "optional" | undefined : "optional";
|
|
722
|
+
optout: IsOptionalOut<T[number]> extends false ? "optional" | undefined : "optional";
|
|
723
|
+
}
|
|
724
|
+
interface $ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends $ZodType<any, any, $ZodUnionInternals<T>> {
|
|
725
|
+
_zod: $ZodUnionInternals<T>;
|
|
726
|
+
}
|
|
727
|
+
declare const $ZodUnion: $constructor<$ZodUnion>;
|
|
728
|
+
interface $ZodDiscriminatedUnionDef<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodUnionDef<Options> {
|
|
729
|
+
discriminator: string;
|
|
730
|
+
unionFallback?: boolean;
|
|
731
|
+
}
|
|
732
|
+
interface $ZodDiscriminatedUnionInternals<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodUnionInternals<Options> {
|
|
733
|
+
def: $ZodDiscriminatedUnionDef<Options>;
|
|
734
|
+
propValues: PropValues;
|
|
735
|
+
}
|
|
736
|
+
interface $ZodDiscriminatedUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends $ZodType {
|
|
737
|
+
_zod: $ZodDiscriminatedUnionInternals<T>;
|
|
738
|
+
}
|
|
739
|
+
declare const $ZodDiscriminatedUnion: $constructor<$ZodDiscriminatedUnion>;
|
|
740
|
+
interface $ZodIntersectionDef<Left extends SomeType = $ZodType, Right extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
741
|
+
type: "intersection";
|
|
742
|
+
left: Left;
|
|
743
|
+
right: Right;
|
|
744
|
+
}
|
|
745
|
+
interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<output<A> & output<B>, input<A> & input<B>> {
|
|
746
|
+
def: $ZodIntersectionDef<A, B>;
|
|
747
|
+
isst: never;
|
|
748
|
+
optin: A["_zod"]["optin"] | B["_zod"]["optin"];
|
|
749
|
+
optout: A["_zod"]["optout"] | B["_zod"]["optout"];
|
|
750
|
+
}
|
|
751
|
+
interface $ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
|
|
752
|
+
_zod: $ZodIntersectionInternals<A, B>;
|
|
753
|
+
}
|
|
754
|
+
declare const $ZodIntersection: $constructor<$ZodIntersection>;
|
|
755
|
+
type $ZodRecordKey = $ZodType<string | number | symbol, string | number | symbol>;
|
|
756
|
+
interface $ZodRecordDef<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
757
|
+
type: "record";
|
|
758
|
+
keyType: Key;
|
|
759
|
+
valueType: Value;
|
|
760
|
+
}
|
|
761
|
+
type $InferZodRecordOutput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<output<Key>, output<Value>>> : Record<output<Key>, output<Value>>;
|
|
762
|
+
type $InferZodRecordInput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<input<Key>, input<Value>>> : Record<input<Key>, input<Value>>;
|
|
763
|
+
interface $ZodRecordInternals<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeInternals<$InferZodRecordOutput<Key, Value>, $InferZodRecordInput<Key, Value>> {
|
|
764
|
+
def: $ZodRecordDef<Key, Value>;
|
|
765
|
+
isst: $ZodIssueInvalidType | $ZodIssueInvalidKey<Record<PropertyKey, unknown>>;
|
|
766
|
+
optin?: "optional" | undefined;
|
|
767
|
+
optout?: "optional" | undefined;
|
|
768
|
+
}
|
|
769
|
+
type $partial = {
|
|
770
|
+
"~~partial": true;
|
|
771
|
+
};
|
|
772
|
+
interface $ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodType {
|
|
773
|
+
_zod: $ZodRecordInternals<Key, Value>;
|
|
774
|
+
}
|
|
775
|
+
declare const $ZodRecord: $constructor<$ZodRecord>;
|
|
776
|
+
type $InferEnumOutput<T extends EnumLike> = T[keyof T] & {};
|
|
777
|
+
type $InferEnumInput<T extends EnumLike> = T[keyof T] & {};
|
|
778
|
+
interface $ZodEnumDef<T extends EnumLike = EnumLike> extends $ZodTypeDef {
|
|
779
|
+
type: "enum";
|
|
780
|
+
entries: T;
|
|
781
|
+
}
|
|
782
|
+
interface $ZodEnumInternals< /** @ts-ignore Cast variance */out T extends EnumLike = EnumLike> extends $ZodTypeInternals<$InferEnumOutput<T>, $InferEnumInput<T>> {
|
|
783
|
+
def: $ZodEnumDef<T>;
|
|
784
|
+
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
785
|
+
values: PrimitiveSet;
|
|
786
|
+
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
787
|
+
pattern: RegExp;
|
|
788
|
+
isst: $ZodIssueInvalidValue;
|
|
789
|
+
}
|
|
790
|
+
interface $ZodEnum<T extends EnumLike = EnumLike> extends $ZodType {
|
|
791
|
+
_zod: $ZodEnumInternals<T>;
|
|
792
|
+
}
|
|
793
|
+
declare const $ZodEnum: $constructor<$ZodEnum>;
|
|
794
|
+
interface $ZodLiteralDef<T extends Literal> extends $ZodTypeDef {
|
|
795
|
+
type: "literal";
|
|
796
|
+
values: T[];
|
|
797
|
+
}
|
|
798
|
+
interface $ZodLiteralInternals<T extends Literal = Literal> extends $ZodTypeInternals<T, T> {
|
|
799
|
+
def: $ZodLiteralDef<T>;
|
|
800
|
+
values: Set<T>;
|
|
801
|
+
pattern: RegExp;
|
|
802
|
+
isst: $ZodIssueInvalidValue;
|
|
803
|
+
}
|
|
804
|
+
interface $ZodLiteral<T extends Literal = Literal> extends $ZodType {
|
|
805
|
+
_zod: $ZodLiteralInternals<T>;
|
|
806
|
+
}
|
|
807
|
+
declare const $ZodLiteral: $constructor<$ZodLiteral>;
|
|
808
|
+
declare global {
|
|
809
|
+
interface File {}
|
|
810
|
+
}
|
|
811
|
+
interface $ZodTransformDef extends $ZodTypeDef {
|
|
812
|
+
type: "transform";
|
|
813
|
+
transform: (input: unknown, payload: ParsePayload<unknown>) => MaybeAsync<unknown>;
|
|
814
|
+
}
|
|
815
|
+
interface $ZodTransformInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I> {
|
|
816
|
+
def: $ZodTransformDef;
|
|
817
|
+
isst: never;
|
|
818
|
+
}
|
|
819
|
+
interface $ZodTransform<O = unknown, I = unknown> extends $ZodType {
|
|
820
|
+
_zod: $ZodTransformInternals<O, I>;
|
|
821
|
+
}
|
|
822
|
+
declare const $ZodTransform: $constructor<$ZodTransform>;
|
|
823
|
+
interface $ZodOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
824
|
+
type: "optional";
|
|
825
|
+
innerType: T;
|
|
826
|
+
}
|
|
827
|
+
interface $ZodOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T> | undefined, input<T> | undefined> {
|
|
828
|
+
def: $ZodOptionalDef<T>;
|
|
829
|
+
optin: "optional";
|
|
830
|
+
optout: "optional";
|
|
831
|
+
isst: never;
|
|
832
|
+
values: T["_zod"]["values"];
|
|
833
|
+
pattern: T["_zod"]["pattern"];
|
|
834
|
+
}
|
|
835
|
+
interface $ZodOptional<T extends SomeType = $ZodType> extends $ZodType {
|
|
836
|
+
_zod: $ZodOptionalInternals<T>;
|
|
837
|
+
}
|
|
838
|
+
declare const $ZodOptional: $constructor<$ZodOptional>;
|
|
839
|
+
interface $ZodNullableDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
840
|
+
type: "nullable";
|
|
841
|
+
innerType: T;
|
|
842
|
+
}
|
|
843
|
+
interface $ZodNullableInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T> | null, input<T> | null> {
|
|
844
|
+
def: $ZodNullableDef<T>;
|
|
845
|
+
optin: T["_zod"]["optin"];
|
|
846
|
+
optout: T["_zod"]["optout"];
|
|
847
|
+
isst: never;
|
|
848
|
+
values: T["_zod"]["values"];
|
|
849
|
+
pattern: T["_zod"]["pattern"];
|
|
850
|
+
}
|
|
851
|
+
interface $ZodNullable<T extends SomeType = $ZodType> extends $ZodType {
|
|
852
|
+
_zod: $ZodNullableInternals<T>;
|
|
853
|
+
}
|
|
854
|
+
declare const $ZodNullable: $constructor<$ZodNullable>;
|
|
855
|
+
interface $ZodDefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
856
|
+
type: "default";
|
|
857
|
+
innerType: T;
|
|
858
|
+
/** The default value. May be a getter. */
|
|
859
|
+
defaultValue: NoUndefined<output<T>>;
|
|
860
|
+
}
|
|
861
|
+
interface $ZodDefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, input<T> | undefined> {
|
|
862
|
+
def: $ZodDefaultDef<T>;
|
|
863
|
+
optin: "optional";
|
|
864
|
+
optout?: "optional" | undefined;
|
|
865
|
+
isst: never;
|
|
866
|
+
values: T["_zod"]["values"];
|
|
867
|
+
}
|
|
868
|
+
interface $ZodDefault<T extends SomeType = $ZodType> extends $ZodType {
|
|
869
|
+
_zod: $ZodDefaultInternals<T>;
|
|
870
|
+
}
|
|
871
|
+
declare const $ZodDefault: $constructor<$ZodDefault>;
|
|
872
|
+
interface $ZodPrefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
873
|
+
type: "prefault";
|
|
874
|
+
innerType: T;
|
|
875
|
+
/** The default value. May be a getter. */
|
|
876
|
+
defaultValue: input<T>;
|
|
877
|
+
}
|
|
878
|
+
interface $ZodPrefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, input<T> | undefined> {
|
|
879
|
+
def: $ZodPrefaultDef<T>;
|
|
880
|
+
optin: "optional";
|
|
881
|
+
optout?: "optional" | undefined;
|
|
882
|
+
isst: never;
|
|
883
|
+
values: T["_zod"]["values"];
|
|
884
|
+
}
|
|
885
|
+
interface $ZodPrefault<T extends SomeType = $ZodType> extends $ZodType {
|
|
886
|
+
_zod: $ZodPrefaultInternals<T>;
|
|
887
|
+
}
|
|
888
|
+
declare const $ZodPrefault: $constructor<$ZodPrefault>;
|
|
889
|
+
interface $ZodNonOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
890
|
+
type: "nonoptional";
|
|
891
|
+
innerType: T;
|
|
892
|
+
}
|
|
893
|
+
interface $ZodNonOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, NoUndefined<input<T>>> {
|
|
894
|
+
def: $ZodNonOptionalDef<T>;
|
|
895
|
+
isst: $ZodIssueInvalidType;
|
|
896
|
+
values: T["_zod"]["values"];
|
|
897
|
+
optin: "optional" | undefined;
|
|
898
|
+
optout: "optional" | undefined;
|
|
899
|
+
}
|
|
900
|
+
interface $ZodNonOptional<T extends SomeType = $ZodType> extends $ZodType {
|
|
901
|
+
_zod: $ZodNonOptionalInternals<T>;
|
|
902
|
+
}
|
|
903
|
+
declare const $ZodNonOptional: $constructor<$ZodNonOptional>;
|
|
904
|
+
interface $ZodCatchCtx extends ParsePayload {
|
|
905
|
+
/** @deprecated Use `ctx.issues` */
|
|
906
|
+
error: {
|
|
907
|
+
issues: $ZodIssue[];
|
|
908
|
+
};
|
|
909
|
+
/** @deprecated Use `ctx.value` */
|
|
910
|
+
input: unknown;
|
|
911
|
+
}
|
|
912
|
+
interface $ZodCatchDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
913
|
+
type: "catch";
|
|
914
|
+
innerType: T;
|
|
915
|
+
catchValue: (ctx: $ZodCatchCtx) => unknown;
|
|
916
|
+
}
|
|
917
|
+
interface $ZodCatchInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input<T> | Whatever> {
|
|
918
|
+
def: $ZodCatchDef<T>;
|
|
919
|
+
optin: T["_zod"]["optin"];
|
|
920
|
+
optout: T["_zod"]["optout"];
|
|
921
|
+
isst: never;
|
|
922
|
+
values: T["_zod"]["values"];
|
|
923
|
+
}
|
|
924
|
+
interface $ZodCatch<T extends SomeType = $ZodType> extends $ZodType {
|
|
925
|
+
_zod: $ZodCatchInternals<T>;
|
|
926
|
+
}
|
|
927
|
+
declare const $ZodCatch: $constructor<$ZodCatch>;
|
|
928
|
+
interface $ZodPipeDef<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
929
|
+
type: "pipe";
|
|
930
|
+
in: A;
|
|
931
|
+
out: B;
|
|
932
|
+
}
|
|
933
|
+
interface $ZodPipeInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<output<B>, input<A>> {
|
|
934
|
+
def: $ZodPipeDef<A, B>;
|
|
935
|
+
isst: never;
|
|
936
|
+
values: A["_zod"]["values"];
|
|
937
|
+
optin: A["_zod"]["optin"];
|
|
938
|
+
optout: B["_zod"]["optout"];
|
|
939
|
+
}
|
|
940
|
+
interface $ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
|
|
941
|
+
_zod: $ZodPipeInternals<A, B>;
|
|
942
|
+
}
|
|
943
|
+
declare const $ZodPipe: $constructor<$ZodPipe>;
|
|
944
|
+
interface $ZodReadonlyDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
945
|
+
type: "readonly";
|
|
946
|
+
innerType: T;
|
|
947
|
+
}
|
|
948
|
+
interface $ZodReadonlyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<MakeReadonly<output<T>>, MakeReadonly<input<T>>> {
|
|
949
|
+
def: $ZodReadonlyDef<T>;
|
|
950
|
+
optin: T["_zod"]["optin"];
|
|
951
|
+
optout: T["_zod"]["optout"];
|
|
952
|
+
isst: never;
|
|
953
|
+
propValues: T["_zod"]["propValues"];
|
|
954
|
+
values: T["_zod"]["values"];
|
|
955
|
+
}
|
|
956
|
+
interface $ZodReadonly<T extends SomeType = $ZodType> extends $ZodType {
|
|
957
|
+
_zod: $ZodReadonlyInternals<T>;
|
|
958
|
+
}
|
|
959
|
+
declare const $ZodReadonly: $constructor<$ZodReadonly>;
|
|
960
|
+
interface $ZodLazyDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
961
|
+
type: "lazy";
|
|
962
|
+
getter: () => T;
|
|
963
|
+
}
|
|
964
|
+
interface $ZodLazyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input<T>> {
|
|
965
|
+
def: $ZodLazyDef<T>;
|
|
966
|
+
isst: never;
|
|
967
|
+
/** Auto-cached way to retrieve the inner schema */
|
|
968
|
+
innerType: T;
|
|
969
|
+
pattern: T["_zod"]["pattern"];
|
|
970
|
+
propValues: T["_zod"]["propValues"];
|
|
971
|
+
optin: T["_zod"]["optin"];
|
|
972
|
+
optout: T["_zod"]["optout"];
|
|
973
|
+
}
|
|
974
|
+
interface $ZodLazy<T extends SomeType = $ZodType> extends $ZodType {
|
|
975
|
+
_zod: $ZodLazyInternals<T>;
|
|
976
|
+
}
|
|
977
|
+
declare const $ZodLazy: $constructor<$ZodLazy>;
|
|
978
|
+
interface $ZodCustomDef<O = unknown> extends $ZodTypeDef, $ZodCheckDef {
|
|
979
|
+
type: "custom";
|
|
980
|
+
check: "custom";
|
|
981
|
+
path?: PropertyKey[] | undefined;
|
|
982
|
+
error?: $ZodErrorMap | undefined;
|
|
983
|
+
params?: Record<string, any> | undefined;
|
|
984
|
+
fn: (arg: O) => unknown;
|
|
985
|
+
}
|
|
986
|
+
interface $ZodCustomInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I>, $ZodCheckInternals<O> {
|
|
987
|
+
def: $ZodCustomDef;
|
|
988
|
+
issc: $ZodIssue;
|
|
989
|
+
isst: never;
|
|
990
|
+
bag: LoosePartial<{
|
|
991
|
+
Class: typeof Class;
|
|
992
|
+
}>;
|
|
993
|
+
}
|
|
994
|
+
interface $ZodCustom<O = unknown, I = unknown> extends $ZodType {
|
|
995
|
+
_zod: $ZodCustomInternals<O, I>;
|
|
996
|
+
}
|
|
997
|
+
declare const $ZodCustom: $constructor<$ZodCustom>;
|
|
998
|
+
//#endregion
|
|
999
|
+
//#region ../../node_modules/zod/v4/core/checks.d.cts
|
|
1000
|
+
interface $ZodCheckDef {
|
|
1001
|
+
check: string;
|
|
1002
|
+
error?: $ZodErrorMap<never> | undefined;
|
|
1003
|
+
/** If true, no later checks will be executed if this check fails. Default `false`. */
|
|
1004
|
+
abort?: boolean | undefined;
|
|
1005
|
+
/** If provided, this check will only be executed if the function returns `true`. Defaults to `payload => z.util.isAborted(payload)`. */
|
|
1006
|
+
when?: ((payload: ParsePayload) => boolean) | undefined;
|
|
1007
|
+
}
|
|
1008
|
+
interface $ZodCheckInternals<T> {
|
|
1009
|
+
def: $ZodCheckDef;
|
|
1010
|
+
/** The set of issues this check might throw. */
|
|
1011
|
+
issc?: $ZodIssueBase;
|
|
1012
|
+
check(payload: ParsePayload<T>): MaybeAsync<void>;
|
|
1013
|
+
onattach: ((schema: $ZodType) => void)[];
|
|
1014
|
+
}
|
|
1015
|
+
interface $ZodCheck<in T = never> {
|
|
1016
|
+
_zod: $ZodCheckInternals<T>;
|
|
1017
|
+
}
|
|
1018
|
+
declare const $ZodCheck: $constructor<$ZodCheck<any>>;
|
|
1019
|
+
interface $ZodCheckLessThanDef extends $ZodCheckDef {
|
|
1020
|
+
check: "less_than";
|
|
1021
|
+
value: Numeric;
|
|
1022
|
+
inclusive: boolean;
|
|
1023
|
+
}
|
|
1024
|
+
interface $ZodCheckLessThanInternals<T extends Numeric = Numeric> extends $ZodCheckInternals<T> {
|
|
1025
|
+
def: $ZodCheckLessThanDef;
|
|
1026
|
+
issc: $ZodIssueTooBig<T>;
|
|
1027
|
+
}
|
|
1028
|
+
interface $ZodCheckLessThan<T extends Numeric = Numeric> extends $ZodCheck<T> {
|
|
1029
|
+
_zod: $ZodCheckLessThanInternals<T>;
|
|
1030
|
+
}
|
|
1031
|
+
declare const $ZodCheckLessThan: $constructor<$ZodCheckLessThan>;
|
|
1032
|
+
interface $ZodCheckGreaterThanDef extends $ZodCheckDef {
|
|
1033
|
+
check: "greater_than";
|
|
1034
|
+
value: Numeric;
|
|
1035
|
+
inclusive: boolean;
|
|
1036
|
+
}
|
|
1037
|
+
interface $ZodCheckGreaterThanInternals<T extends Numeric = Numeric> extends $ZodCheckInternals<T> {
|
|
1038
|
+
def: $ZodCheckGreaterThanDef;
|
|
1039
|
+
issc: $ZodIssueTooSmall<T>;
|
|
1040
|
+
}
|
|
1041
|
+
interface $ZodCheckGreaterThan<T extends Numeric = Numeric> extends $ZodCheck<T> {
|
|
1042
|
+
_zod: $ZodCheckGreaterThanInternals<T>;
|
|
1043
|
+
}
|
|
1044
|
+
declare const $ZodCheckGreaterThan: $constructor<$ZodCheckGreaterThan>;
|
|
1045
|
+
interface $ZodCheckMultipleOfDef<T extends number | bigint = number | bigint> extends $ZodCheckDef {
|
|
1046
|
+
check: "multiple_of";
|
|
1047
|
+
value: T;
|
|
1048
|
+
}
|
|
1049
|
+
interface $ZodCheckMultipleOfInternals<T extends number | bigint = number | bigint> extends $ZodCheckInternals<T> {
|
|
1050
|
+
def: $ZodCheckMultipleOfDef<T>;
|
|
1051
|
+
issc: $ZodIssueNotMultipleOf;
|
|
1052
|
+
}
|
|
1053
|
+
interface $ZodCheckMultipleOf<T extends number | bigint = number | bigint> extends $ZodCheck<T> {
|
|
1054
|
+
_zod: $ZodCheckMultipleOfInternals<T>;
|
|
1055
|
+
}
|
|
1056
|
+
declare const $ZodCheckMultipleOf: $constructor<$ZodCheckMultipleOf<number | bigint>>;
|
|
1057
|
+
type $ZodNumberFormats = "int32" | "uint32" | "float32" | "float64" | "safeint";
|
|
1058
|
+
interface $ZodCheckNumberFormatDef extends $ZodCheckDef {
|
|
1059
|
+
check: "number_format";
|
|
1060
|
+
format: $ZodNumberFormats;
|
|
1061
|
+
}
|
|
1062
|
+
interface $ZodCheckNumberFormatInternals extends $ZodCheckInternals<number> {
|
|
1063
|
+
def: $ZodCheckNumberFormatDef;
|
|
1064
|
+
issc: $ZodIssueInvalidType | $ZodIssueTooBig<"number"> | $ZodIssueTooSmall<"number">;
|
|
1065
|
+
}
|
|
1066
|
+
interface $ZodCheckNumberFormat extends $ZodCheck<number> {
|
|
1067
|
+
_zod: $ZodCheckNumberFormatInternals;
|
|
1068
|
+
}
|
|
1069
|
+
declare const $ZodCheckNumberFormat: $constructor<$ZodCheckNumberFormat>;
|
|
1070
|
+
interface $ZodCheckMaxLengthDef extends $ZodCheckDef {
|
|
1071
|
+
check: "max_length";
|
|
1072
|
+
maximum: number;
|
|
1073
|
+
}
|
|
1074
|
+
interface $ZodCheckMaxLengthInternals<T extends HasLength = HasLength> extends $ZodCheckInternals<T> {
|
|
1075
|
+
def: $ZodCheckMaxLengthDef;
|
|
1076
|
+
issc: $ZodIssueTooBig<T>;
|
|
1077
|
+
}
|
|
1078
|
+
interface $ZodCheckMaxLength<T extends HasLength = HasLength> extends $ZodCheck<T> {
|
|
1079
|
+
_zod: $ZodCheckMaxLengthInternals<T>;
|
|
1080
|
+
}
|
|
1081
|
+
declare const $ZodCheckMaxLength: $constructor<$ZodCheckMaxLength>;
|
|
1082
|
+
interface $ZodCheckMinLengthDef extends $ZodCheckDef {
|
|
1083
|
+
check: "min_length";
|
|
1084
|
+
minimum: number;
|
|
1085
|
+
}
|
|
1086
|
+
interface $ZodCheckMinLengthInternals<T extends HasLength = HasLength> extends $ZodCheckInternals<T> {
|
|
1087
|
+
def: $ZodCheckMinLengthDef;
|
|
1088
|
+
issc: $ZodIssueTooSmall<T>;
|
|
1089
|
+
}
|
|
1090
|
+
interface $ZodCheckMinLength<T extends HasLength = HasLength> extends $ZodCheck<T> {
|
|
1091
|
+
_zod: $ZodCheckMinLengthInternals<T>;
|
|
1092
|
+
}
|
|
1093
|
+
declare const $ZodCheckMinLength: $constructor<$ZodCheckMinLength>;
|
|
1094
|
+
interface $ZodCheckLengthEqualsDef extends $ZodCheckDef {
|
|
1095
|
+
check: "length_equals";
|
|
1096
|
+
length: number;
|
|
1097
|
+
}
|
|
1098
|
+
interface $ZodCheckLengthEqualsInternals<T extends HasLength = HasLength> extends $ZodCheckInternals<T> {
|
|
1099
|
+
def: $ZodCheckLengthEqualsDef;
|
|
1100
|
+
issc: $ZodIssueTooBig<T> | $ZodIssueTooSmall<T>;
|
|
1101
|
+
}
|
|
1102
|
+
interface $ZodCheckLengthEquals<T extends HasLength = HasLength> extends $ZodCheck<T> {
|
|
1103
|
+
_zod: $ZodCheckLengthEqualsInternals<T>;
|
|
1104
|
+
}
|
|
1105
|
+
declare const $ZodCheckLengthEquals: $constructor<$ZodCheckLengthEquals>;
|
|
1106
|
+
type $ZodStringFormats = "email" | "url" | "emoji" | "uuid" | "guid" | "nanoid" | "cuid" | "cuid2" | "ulid" | "xid" | "ksuid" | "datetime" | "date" | "time" | "duration" | "ipv4" | "ipv6" | "cidrv4" | "cidrv6" | "base64" | "base64url" | "json_string" | "e164" | "lowercase" | "uppercase" | "regex" | "jwt" | "starts_with" | "ends_with" | "includes";
|
|
1107
|
+
interface $ZodCheckStringFormatDef<Format extends string = string> extends $ZodCheckDef {
|
|
1108
|
+
check: "string_format";
|
|
1109
|
+
format: Format;
|
|
1110
|
+
pattern?: RegExp | undefined;
|
|
1111
|
+
}
|
|
1112
|
+
interface $ZodCheckStringFormatInternals extends $ZodCheckInternals<string> {
|
|
1113
|
+
def: $ZodCheckStringFormatDef;
|
|
1114
|
+
issc: $ZodIssueInvalidStringFormat;
|
|
1115
|
+
}
|
|
1116
|
+
interface $ZodCheckRegexDef extends $ZodCheckStringFormatDef {
|
|
1117
|
+
format: "regex";
|
|
1118
|
+
pattern: RegExp;
|
|
1119
|
+
}
|
|
1120
|
+
interface $ZodCheckRegexInternals extends $ZodCheckInternals<string> {
|
|
1121
|
+
def: $ZodCheckRegexDef;
|
|
1122
|
+
issc: $ZodIssueInvalidStringFormat;
|
|
1123
|
+
}
|
|
1124
|
+
interface $ZodCheckRegex extends $ZodCheck<string> {
|
|
1125
|
+
_zod: $ZodCheckRegexInternals;
|
|
1126
|
+
}
|
|
1127
|
+
declare const $ZodCheckRegex: $constructor<$ZodCheckRegex>;
|
|
1128
|
+
interface $ZodCheckLowerCaseDef extends $ZodCheckStringFormatDef<"lowercase"> {}
|
|
1129
|
+
interface $ZodCheckLowerCaseInternals extends $ZodCheckInternals<string> {
|
|
1130
|
+
def: $ZodCheckLowerCaseDef;
|
|
1131
|
+
issc: $ZodIssueInvalidStringFormat;
|
|
1132
|
+
}
|
|
1133
|
+
interface $ZodCheckLowerCase extends $ZodCheck<string> {
|
|
1134
|
+
_zod: $ZodCheckLowerCaseInternals;
|
|
1135
|
+
}
|
|
1136
|
+
declare const $ZodCheckLowerCase: $constructor<$ZodCheckLowerCase>;
|
|
1137
|
+
interface $ZodCheckUpperCaseDef extends $ZodCheckStringFormatDef<"uppercase"> {}
|
|
1138
|
+
interface $ZodCheckUpperCaseInternals extends $ZodCheckInternals<string> {
|
|
1139
|
+
def: $ZodCheckUpperCaseDef;
|
|
1140
|
+
issc: $ZodIssueInvalidStringFormat;
|
|
1141
|
+
}
|
|
1142
|
+
interface $ZodCheckUpperCase extends $ZodCheck<string> {
|
|
1143
|
+
_zod: $ZodCheckUpperCaseInternals;
|
|
1144
|
+
}
|
|
1145
|
+
declare const $ZodCheckUpperCase: $constructor<$ZodCheckUpperCase>;
|
|
1146
|
+
interface $ZodCheckIncludesDef extends $ZodCheckStringFormatDef<"includes"> {
|
|
1147
|
+
includes: string;
|
|
1148
|
+
position?: number | undefined;
|
|
1149
|
+
}
|
|
1150
|
+
interface $ZodCheckIncludesInternals extends $ZodCheckInternals<string> {
|
|
1151
|
+
def: $ZodCheckIncludesDef;
|
|
1152
|
+
issc: $ZodIssueInvalidStringFormat;
|
|
1153
|
+
}
|
|
1154
|
+
interface $ZodCheckIncludes extends $ZodCheck<string> {
|
|
1155
|
+
_zod: $ZodCheckIncludesInternals;
|
|
1156
|
+
}
|
|
1157
|
+
declare const $ZodCheckIncludes: $constructor<$ZodCheckIncludes>;
|
|
1158
|
+
interface $ZodCheckStartsWithDef extends $ZodCheckStringFormatDef<"starts_with"> {
|
|
1159
|
+
prefix: string;
|
|
1160
|
+
}
|
|
1161
|
+
interface $ZodCheckStartsWithInternals extends $ZodCheckInternals<string> {
|
|
1162
|
+
def: $ZodCheckStartsWithDef;
|
|
1163
|
+
issc: $ZodIssueInvalidStringFormat;
|
|
1164
|
+
}
|
|
1165
|
+
interface $ZodCheckStartsWith extends $ZodCheck<string> {
|
|
1166
|
+
_zod: $ZodCheckStartsWithInternals;
|
|
1167
|
+
}
|
|
1168
|
+
declare const $ZodCheckStartsWith: $constructor<$ZodCheckStartsWith>;
|
|
1169
|
+
interface $ZodCheckEndsWithDef extends $ZodCheckStringFormatDef<"ends_with"> {
|
|
1170
|
+
suffix: string;
|
|
1171
|
+
}
|
|
1172
|
+
interface $ZodCheckEndsWithInternals extends $ZodCheckInternals<string> {
|
|
1173
|
+
def: $ZodCheckEndsWithDef;
|
|
1174
|
+
issc: $ZodIssueInvalidStringFormat;
|
|
1175
|
+
}
|
|
1176
|
+
interface $ZodCheckEndsWith extends $ZodCheckInternals<string> {
|
|
1177
|
+
_zod: $ZodCheckEndsWithInternals;
|
|
1178
|
+
}
|
|
1179
|
+
declare const $ZodCheckEndsWith: $constructor<$ZodCheckEndsWith>;
|
|
1180
|
+
//#endregion
|
|
1181
|
+
//#region ../../node_modules/zod/v4/core/errors.d.cts
|
|
1182
|
+
interface $ZodIssueBase {
|
|
1183
|
+
readonly code?: string;
|
|
1184
|
+
readonly input?: unknown;
|
|
1185
|
+
readonly path: PropertyKey[];
|
|
1186
|
+
readonly message: string;
|
|
1187
|
+
}
|
|
1188
|
+
interface $ZodIssueInvalidType<Input = unknown> extends $ZodIssueBase {
|
|
1189
|
+
readonly code: "invalid_type";
|
|
1190
|
+
readonly expected: $ZodType["_zod"]["def"]["type"];
|
|
1191
|
+
readonly input: Input;
|
|
1192
|
+
}
|
|
1193
|
+
interface $ZodIssueTooBig<Input = unknown> extends $ZodIssueBase {
|
|
1194
|
+
readonly code: "too_big";
|
|
1195
|
+
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
1196
|
+
readonly maximum: number | bigint;
|
|
1197
|
+
readonly inclusive?: boolean;
|
|
1198
|
+
readonly exact?: boolean;
|
|
1199
|
+
readonly input: Input;
|
|
1200
|
+
}
|
|
1201
|
+
interface $ZodIssueTooSmall<Input = unknown> extends $ZodIssueBase {
|
|
1202
|
+
readonly code: "too_small";
|
|
1203
|
+
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
1204
|
+
readonly minimum: number | bigint;
|
|
1205
|
+
/** True if the allowable range includes the minimum */
|
|
1206
|
+
readonly inclusive?: boolean;
|
|
1207
|
+
/** True if the allowed value is fixed (e.g.` z.length(5)`), not a range (`z.minLength(5)`) */
|
|
1208
|
+
readonly exact?: boolean;
|
|
1209
|
+
readonly input: Input;
|
|
1210
|
+
}
|
|
1211
|
+
interface $ZodIssueInvalidStringFormat extends $ZodIssueBase {
|
|
1212
|
+
readonly code: "invalid_format";
|
|
1213
|
+
readonly format: $ZodStringFormats | (string & {});
|
|
1214
|
+
readonly pattern?: string;
|
|
1215
|
+
readonly input: string;
|
|
1216
|
+
}
|
|
1217
|
+
interface $ZodIssueNotMultipleOf<Input extends number | bigint = number | bigint> extends $ZodIssueBase {
|
|
1218
|
+
readonly code: "not_multiple_of";
|
|
1219
|
+
readonly divisor: number;
|
|
1220
|
+
readonly input: Input;
|
|
1221
|
+
}
|
|
1222
|
+
interface $ZodIssueUnrecognizedKeys extends $ZodIssueBase {
|
|
1223
|
+
readonly code: "unrecognized_keys";
|
|
1224
|
+
readonly keys: string[];
|
|
1225
|
+
readonly input: Record<string, unknown>;
|
|
1226
|
+
}
|
|
1227
|
+
interface $ZodIssueInvalidUnion extends $ZodIssueBase {
|
|
1228
|
+
readonly code: "invalid_union";
|
|
1229
|
+
readonly errors: $ZodIssue[][];
|
|
1230
|
+
readonly input: unknown;
|
|
1231
|
+
}
|
|
1232
|
+
interface $ZodIssueInvalidKey<Input = unknown> extends $ZodIssueBase {
|
|
1233
|
+
readonly code: "invalid_key";
|
|
1234
|
+
readonly origin: "map" | "record";
|
|
1235
|
+
readonly issues: $ZodIssue[];
|
|
1236
|
+
readonly input: Input;
|
|
1237
|
+
}
|
|
1238
|
+
interface $ZodIssueInvalidElement<Input = unknown> extends $ZodIssueBase {
|
|
1239
|
+
readonly code: "invalid_element";
|
|
1240
|
+
readonly origin: "map" | "set";
|
|
1241
|
+
readonly key: unknown;
|
|
1242
|
+
readonly issues: $ZodIssue[];
|
|
1243
|
+
readonly input: Input;
|
|
1244
|
+
}
|
|
1245
|
+
interface $ZodIssueInvalidValue<Input = unknown> extends $ZodIssueBase {
|
|
1246
|
+
readonly code: "invalid_value";
|
|
1247
|
+
readonly values: Primitive[];
|
|
1248
|
+
readonly input: Input;
|
|
1249
|
+
}
|
|
1250
|
+
interface $ZodIssueCustom extends $ZodIssueBase {
|
|
1251
|
+
readonly code: "custom";
|
|
1252
|
+
readonly params?: Record<string, any> | undefined;
|
|
1253
|
+
readonly input: unknown;
|
|
1254
|
+
}
|
|
1255
|
+
type $ZodIssue = $ZodIssueInvalidType | $ZodIssueTooBig | $ZodIssueTooSmall | $ZodIssueInvalidStringFormat | $ZodIssueNotMultipleOf | $ZodIssueUnrecognizedKeys | $ZodIssueInvalidUnion | $ZodIssueInvalidKey | $ZodIssueInvalidElement | $ZodIssueInvalidValue | $ZodIssueCustom;
|
|
1256
|
+
type $ZodRawIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue<T> : never;
|
|
1257
|
+
type RawIssue<T extends $ZodIssueBase> = Flatten<MakePartial<T, "message" | "path"> & {
|
|
1258
|
+
/** The input data */readonly input?: unknown; /** The schema or check that originated this issue. */
|
|
1259
|
+
readonly inst?: $ZodType | $ZodCheck; /** @deprecated Internal use only. If `true`, Zod will continue executing validation despite this issue. */
|
|
1260
|
+
readonly continue?: boolean | undefined;
|
|
1261
|
+
} & Record<string, any>>;
|
|
1262
|
+
interface $ZodErrorMap<T extends $ZodIssueBase = $ZodIssue> {
|
|
1263
|
+
(issue: $ZodRawIssue<T>): {
|
|
1264
|
+
message: string;
|
|
1265
|
+
} | string | undefined | null;
|
|
1266
|
+
}
|
|
1267
|
+
interface $ZodError<T = unknown> extends Error {
|
|
1268
|
+
type: T;
|
|
1269
|
+
issues: $ZodIssue[];
|
|
1270
|
+
_zod: {
|
|
1271
|
+
output: T;
|
|
1272
|
+
def: $ZodIssue[];
|
|
1273
|
+
};
|
|
1274
|
+
stack?: string;
|
|
1275
|
+
name: string;
|
|
1276
|
+
}
|
|
1277
|
+
declare const $ZodError: $constructor<$ZodError>;
|
|
1278
|
+
type $ZodFlattenedError<T, U = string> = _FlattenedError<T, U>;
|
|
1279
|
+
type _FlattenedError<T, U = string> = {
|
|
1280
|
+
formErrors: U[];
|
|
1281
|
+
fieldErrors: { [P in keyof T]?: U[] };
|
|
1282
|
+
};
|
|
1283
|
+
type _ZodFormattedError<T, U = string> = T extends [any, ...any[]] ? { [K in keyof T]?: $ZodFormattedError<T[K], U> } : T extends any[] ? {
|
|
1284
|
+
[k: number]: $ZodFormattedError<T[number], U>;
|
|
1285
|
+
} : T extends object ? Flatten<{ [K in keyof T]?: $ZodFormattedError<T[K], U> }> : any;
|
|
1286
|
+
type $ZodFormattedError<T, U = string> = {
|
|
1287
|
+
_errors: U[];
|
|
1288
|
+
} & Flatten<_ZodFormattedError<T, U>>;
|
|
1289
|
+
//#endregion
|
|
1290
|
+
//#region ../../node_modules/zod/v4/core/core.d.cts
|
|
1291
|
+
type ZodTrait = {
|
|
1292
|
+
_zod: {
|
|
1293
|
+
def: any;
|
|
1294
|
+
[k: string]: any;
|
|
1295
|
+
};
|
|
1296
|
+
};
|
|
1297
|
+
interface $constructor<T extends ZodTrait, D = T["_zod"]["def"]> {
|
|
1298
|
+
new (def: D): T;
|
|
1299
|
+
init(inst: T, def: D): asserts inst is T;
|
|
1300
|
+
}
|
|
1301
|
+
declare function $constructor<T extends ZodTrait, D = T["_zod"]["def"]>(name: string, initializer: (inst: T, def: D) => void, params?: {
|
|
1302
|
+
Parent?: typeof Class;
|
|
1303
|
+
}): $constructor<T, D>;
|
|
1304
|
+
declare const $brand: unique symbol;
|
|
1305
|
+
type $brand<T extends string | number | symbol = string | number | symbol> = {
|
|
1306
|
+
[$brand]: { [k in T]: true };
|
|
1307
|
+
};
|
|
1308
|
+
type $ZodBranded<T extends SomeType, Brand extends string | number | symbol> = T & Record<"_zod", Record<"output", output<T> & $brand<Brand>>>;
|
|
1309
|
+
type input<T> = T extends {
|
|
1310
|
+
_zod: {
|
|
1311
|
+
input: any;
|
|
1312
|
+
};
|
|
1313
|
+
} ? Required<T["_zod"]>["input"] : unknown;
|
|
1314
|
+
type output<T> = T extends {
|
|
1315
|
+
_zod: {
|
|
1316
|
+
output: any;
|
|
1317
|
+
};
|
|
1318
|
+
} ? Required<T["_zod"]>["output"] : unknown;
|
|
1319
|
+
//#endregion
|
|
1320
|
+
//#region ../../node_modules/zod/v4/core/registries.d.cts
|
|
1321
|
+
declare const $output: unique symbol;
|
|
1322
|
+
type $output = typeof $output;
|
|
1323
|
+
declare const $input: unique symbol;
|
|
1324
|
+
type $input = typeof $input;
|
|
1325
|
+
type $replace<Meta, S extends $ZodType> = Meta extends $output ? output<S> : Meta extends $input ? input<S> : Meta extends (infer M)[] ? $replace<M, S>[] : Meta extends ((...args: infer P) => infer R) ? (...args: { [K in keyof P]: $replace<P[K], S> }) => $replace<R, S> : Meta extends object ? { [K in keyof Meta]: $replace<Meta[K], S> } : Meta;
|
|
1326
|
+
type MetadataType = Record<string, unknown> | undefined;
|
|
1327
|
+
declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {
|
|
1328
|
+
_meta: Meta;
|
|
1329
|
+
_schema: Schema;
|
|
1330
|
+
_map: Map<Schema, $replace<Meta, Schema>>;
|
|
1331
|
+
_idmap: Map<string, Schema>;
|
|
1332
|
+
add<S extends Schema>(schema: S, ..._meta: undefined extends Meta ? [$replace<Meta, S>?] : [$replace<Meta, S>]): this;
|
|
1333
|
+
clear(): this;
|
|
1334
|
+
remove(schema: Schema): this;
|
|
1335
|
+
get<S extends Schema>(schema: S): $replace<Meta, S> | undefined;
|
|
1336
|
+
has(schema: Schema): boolean;
|
|
1337
|
+
}
|
|
1338
|
+
interface JSONSchemaMeta {
|
|
1339
|
+
id?: string | undefined;
|
|
1340
|
+
title?: string | undefined;
|
|
1341
|
+
description?: string | undefined;
|
|
1342
|
+
deprecated?: boolean | undefined;
|
|
1343
|
+
[k: string]: unknown;
|
|
1344
|
+
}
|
|
1345
|
+
interface GlobalMeta extends JSONSchemaMeta {}
|
|
1346
|
+
//#endregion
|
|
1347
|
+
//#region ../../node_modules/zod/v4/core/api.d.cts
|
|
1348
|
+
type Params<T extends $ZodType | $ZodCheck, IssueTypes extends $ZodIssueBase, OmitKeys extends keyof T["_zod"]["def"] = never> = Flatten<Partial<EmptyToNever<Omit<T["_zod"]["def"], OmitKeys> & ([IssueTypes] extends [never] ? {} : {
|
|
1349
|
+
error?: string | $ZodErrorMap<IssueTypes> | undefined; /** @deprecated This parameter is deprecated. Use `error` instead. */
|
|
1350
|
+
message?: string | undefined;
|
|
1351
|
+
})>>>;
|
|
1352
|
+
type TypeParams<T extends $ZodType = $ZodType & {
|
|
1353
|
+
_isst: never;
|
|
1354
|
+
}, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error"> = never> = Params<T, NonNullable<T["_zod"]["isst"]>, "type" | "checks" | "error" | AlsoOmit>;
|
|
1355
|
+
type CheckParams<T extends $ZodCheck = $ZodCheck, // & { _issc: never },
|
|
1356
|
+
AlsoOmit extends Exclude<keyof T["_zod"]["def"], "check" | "error"> = never> = Params<T, NonNullable<T["_zod"]["issc"]>, "check" | "error" | AlsoOmit>;
|
|
1357
|
+
type CheckStringFormatParams<T extends $ZodStringFormat = $ZodStringFormat, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "coerce" | "checks" | "error" | "check" | "format"> = never> = Params<T, NonNullable<T["_zod"]["issc"]>, "type" | "coerce" | "checks" | "error" | "check" | "format" | AlsoOmit>;
|
|
1358
|
+
type CheckTypeParams<T extends $ZodType & $ZodCheck = $ZodType & $ZodCheck, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error" | "check"> = never> = Params<T, NonNullable<T["_zod"]["isst"] | T["_zod"]["issc"]>, "type" | "checks" | "error" | "check" | AlsoOmit>;
|
|
1359
|
+
type $ZodCheckEmailParams = CheckStringFormatParams<$ZodEmail>;
|
|
1360
|
+
type $ZodCheckGUIDParams = CheckStringFormatParams<$ZodGUID, "pattern">;
|
|
1361
|
+
type $ZodCheckUUIDParams = CheckStringFormatParams<$ZodUUID, "pattern">;
|
|
1362
|
+
type $ZodCheckURLParams = CheckStringFormatParams<$ZodURL>;
|
|
1363
|
+
type $ZodCheckEmojiParams = CheckStringFormatParams<$ZodEmoji>;
|
|
1364
|
+
type $ZodCheckNanoIDParams = CheckStringFormatParams<$ZodNanoID>;
|
|
1365
|
+
type $ZodCheckCUIDParams = CheckStringFormatParams<$ZodCUID>;
|
|
1366
|
+
type $ZodCheckCUID2Params = CheckStringFormatParams<$ZodCUID2>;
|
|
1367
|
+
type $ZodCheckULIDParams = CheckStringFormatParams<$ZodULID>;
|
|
1368
|
+
type $ZodCheckXIDParams = CheckStringFormatParams<$ZodXID>;
|
|
1369
|
+
type $ZodCheckKSUIDParams = CheckStringFormatParams<$ZodKSUID>;
|
|
1370
|
+
type $ZodCheckIPv4Params = CheckStringFormatParams<$ZodIPv4, "pattern">;
|
|
1371
|
+
type $ZodCheckIPv6Params = CheckStringFormatParams<$ZodIPv6, "pattern">;
|
|
1372
|
+
type $ZodCheckCIDRv4Params = CheckStringFormatParams<$ZodCIDRv4, "pattern">;
|
|
1373
|
+
type $ZodCheckCIDRv6Params = CheckStringFormatParams<$ZodCIDRv6, "pattern">;
|
|
1374
|
+
type $ZodCheckBase64Params = CheckStringFormatParams<$ZodBase64, "pattern">;
|
|
1375
|
+
type $ZodCheckBase64URLParams = CheckStringFormatParams<$ZodBase64URL, "pattern">;
|
|
1376
|
+
type $ZodCheckE164Params = CheckStringFormatParams<$ZodE164>;
|
|
1377
|
+
type $ZodCheckJWTParams = CheckStringFormatParams<$ZodJWT, "pattern">;
|
|
1378
|
+
type $ZodCheckISODateTimeParams = CheckStringFormatParams<$ZodISODateTime, "pattern">;
|
|
1379
|
+
type $ZodCheckISODateParams = CheckStringFormatParams<$ZodISODate, "pattern">;
|
|
1380
|
+
type $ZodCheckISOTimeParams = CheckStringFormatParams<$ZodISOTime, "pattern">;
|
|
1381
|
+
type $ZodCheckISODurationParams = CheckStringFormatParams<$ZodISODuration>;
|
|
1382
|
+
type $ZodCheckNumberFormatParams = CheckParams<$ZodCheckNumberFormat, "format">;
|
|
1383
|
+
type $ZodCheckLessThanParams = CheckParams<$ZodCheckLessThan, "inclusive" | "value">;
|
|
1384
|
+
type $ZodCheckGreaterThanParams = CheckParams<$ZodCheckGreaterThan, "inclusive" | "value">;
|
|
1385
|
+
type $ZodCheckMultipleOfParams = CheckParams<$ZodCheckMultipleOf, "value">;
|
|
1386
|
+
type $ZodCheckMaxLengthParams = CheckParams<$ZodCheckMaxLength, "maximum">;
|
|
1387
|
+
type $ZodCheckMinLengthParams = CheckParams<$ZodCheckMinLength, "minimum">;
|
|
1388
|
+
type $ZodCheckLengthEqualsParams = CheckParams<$ZodCheckLengthEquals, "length">;
|
|
1389
|
+
type $ZodCheckRegexParams = CheckParams<$ZodCheckRegex, "format" | "pattern">;
|
|
1390
|
+
type $ZodCheckLowerCaseParams = CheckParams<$ZodCheckLowerCase, "format">;
|
|
1391
|
+
type $ZodCheckUpperCaseParams = CheckParams<$ZodCheckUpperCase, "format">;
|
|
1392
|
+
type $ZodCheckIncludesParams = CheckParams<$ZodCheckIncludes, "includes" | "format" | "pattern">;
|
|
1393
|
+
type $ZodCheckStartsWithParams = CheckParams<$ZodCheckStartsWith, "prefix" | "format" | "pattern">;
|
|
1394
|
+
type $ZodCheckEndsWithParams = CheckParams<$ZodCheckEndsWith, "suffix" | "format" | "pattern">;
|
|
1395
|
+
type $ZodEnumParams = TypeParams<$ZodEnum, "entries">;
|
|
1396
|
+
type $ZodNonOptionalParams = TypeParams<$ZodNonOptional, "innerType">;
|
|
1397
|
+
type $ZodCustomParams = CheckTypeParams<$ZodCustom, "fn">;
|
|
1398
|
+
//#endregion
|
|
1399
|
+
//#region ../../node_modules/zod/v4/classic/errors.d.cts
|
|
1400
|
+
/** An Error-like class used to store Zod validation issues. */
|
|
1401
|
+
interface ZodError<T = unknown> extends $ZodError<T> {
|
|
1402
|
+
/** @deprecated Use the `z.treeifyError(err)` function instead. */
|
|
1403
|
+
format(): $ZodFormattedError<T>;
|
|
1404
|
+
format<U>(mapper: (issue: $ZodIssue) => U): $ZodFormattedError<T, U>;
|
|
1405
|
+
/** @deprecated Use the `z.treeifyError(err)` function instead. */
|
|
1406
|
+
flatten(): $ZodFlattenedError<T>;
|
|
1407
|
+
flatten<U>(mapper: (issue: $ZodIssue) => U): $ZodFlattenedError<T, U>;
|
|
1408
|
+
/** @deprecated Push directly to `.issues` instead. */
|
|
1409
|
+
addIssue(issue: $ZodIssue): void;
|
|
1410
|
+
/** @deprecated Push directly to `.issues` instead. */
|
|
1411
|
+
addIssues(issues: $ZodIssue[]): void;
|
|
1412
|
+
/** @deprecated Check `err.issues.length === 0` instead. */
|
|
1413
|
+
isEmpty: boolean;
|
|
1414
|
+
}
|
|
1415
|
+
declare const ZodError: $constructor<ZodError>;
|
|
1416
|
+
//#endregion
|
|
1417
|
+
//#region ../../node_modules/zod/v4/classic/parse.d.cts
|
|
1418
|
+
type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T>;
|
|
1419
|
+
type ZodSafeParseSuccess<T> = {
|
|
1420
|
+
success: true;
|
|
1421
|
+
data: T;
|
|
1422
|
+
error?: never;
|
|
1423
|
+
};
|
|
1424
|
+
type ZodSafeParseError<T> = {
|
|
1425
|
+
success: false;
|
|
1426
|
+
data?: never;
|
|
1427
|
+
error: ZodError<T>;
|
|
1428
|
+
};
|
|
1429
|
+
//#endregion
|
|
1430
|
+
//#region ../../node_modules/zod/v4/classic/schemas.d.cts
|
|
1431
|
+
interface RefinementCtx<T = unknown> extends ParsePayload<T> {
|
|
1432
|
+
addIssue(arg: string | $ZodRawIssue | Partial<$ZodIssueCustom>): void;
|
|
1433
|
+
}
|
|
1434
|
+
interface ZodType$1<out Output = unknown, out Input = unknown, out Internals extends $ZodTypeInternals<Output, Input> = $ZodTypeInternals<Output, Input>> extends $ZodType<Output, Input, Internals> {
|
|
1435
|
+
def: Internals["def"];
|
|
1436
|
+
type: Internals["def"]["type"];
|
|
1437
|
+
/** @deprecated Use `.def` instead. */
|
|
1438
|
+
_def: Internals["def"];
|
|
1439
|
+
/** @deprecated Use `z.output<typeof schema>` instead. */
|
|
1440
|
+
_output: Internals["output"];
|
|
1441
|
+
/** @deprecated Use `z.input<typeof schema>` instead. */
|
|
1442
|
+
_input: Internals["input"];
|
|
1443
|
+
check(...checks: (CheckFn<output<this>> | $ZodCheck<output<this>>)[]): this;
|
|
1444
|
+
clone(def?: Internals["def"], params?: {
|
|
1445
|
+
parent: boolean;
|
|
1446
|
+
}): this;
|
|
1447
|
+
register<R extends $ZodRegistry>(registry: R, ...meta: this extends R["_schema"] ? undefined extends R["_meta"] ? [$replace<R["_meta"], this>?] : [$replace<R["_meta"], this>] : ["Incompatible schema"]): this;
|
|
1448
|
+
brand<T extends PropertyKey = PropertyKey>(value?: T): PropertyKey extends T ? this : $ZodBranded<this, T>;
|
|
1449
|
+
parse(data: unknown, params?: ParseContext<$ZodIssue>): output<this>;
|
|
1450
|
+
safeParse(data: unknown, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output<this>>;
|
|
1451
|
+
parseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
|
|
1452
|
+
safeParseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
|
|
1453
|
+
spa: (data: unknown, params?: ParseContext<$ZodIssue>) => Promise<ZodSafeParseResult<output<this>>>;
|
|
1454
|
+
refine(check: (arg: output<this>) => unknown | Promise<unknown>, params?: string | $ZodCustomParams): this;
|
|
1455
|
+
/** @deprecated Use `.check()` instead. */
|
|
1456
|
+
superRefine(refinement: (arg: output<this>, ctx: RefinementCtx<output<this>>) => void | Promise<void>): this;
|
|
1457
|
+
overwrite(fn: (x: output<this>) => output<this>): this;
|
|
1458
|
+
optional(): ZodOptional<this>;
|
|
1459
|
+
nonoptional(params?: string | $ZodNonOptionalParams): ZodNonOptional<this>;
|
|
1460
|
+
nullable(): ZodNullable<this>;
|
|
1461
|
+
nullish(): ZodOptional<ZodNullable<this>>;
|
|
1462
|
+
default(def: output<this>): ZodDefault<this>;
|
|
1463
|
+
default(def: () => NoUndefined<output<this>>): ZodDefault<this>;
|
|
1464
|
+
prefault(def: () => input<this>): ZodPrefault<this>;
|
|
1465
|
+
prefault(def: input<this>): ZodPrefault<this>;
|
|
1466
|
+
array(): ZodArray<this>;
|
|
1467
|
+
or<T extends SomeType>(option: T): ZodUnion<[this, T]>;
|
|
1468
|
+
and<T extends SomeType>(incoming: T): ZodIntersection<this, T>;
|
|
1469
|
+
transform<NewOut>(transform: (arg: output<this>, ctx: RefinementCtx<output<this>>) => NewOut | Promise<NewOut>): ZodPipe<this, ZodTransform<Awaited<NewOut>, output<this>>>;
|
|
1470
|
+
catch(def: output<this>): ZodCatch<this>;
|
|
1471
|
+
catch(def: (ctx: $ZodCatchCtx) => output<this>): ZodCatch<this>;
|
|
1472
|
+
pipe<T extends $ZodType<any, output<this>>>(target: T | $ZodType<any, output<this>>): ZodPipe<this, T>;
|
|
1473
|
+
readonly(): ZodReadonly<this>;
|
|
1474
|
+
/** Returns a new instance that has been registered in `z.globalRegistry` with the specified description */
|
|
1475
|
+
describe(description: string): this;
|
|
1476
|
+
description?: string;
|
|
1477
|
+
/** Returns the metadata associated with this instance in `z.globalRegistry` */
|
|
1478
|
+
meta(): $replace<GlobalMeta, this> | undefined;
|
|
1479
|
+
/** Returns a new instance that has been registered in `z.globalRegistry` with the specified metadata */
|
|
1480
|
+
meta(data: $replace<GlobalMeta, this>): this;
|
|
1481
|
+
/** @deprecated Try safe-parsing `undefined` (this is what `isOptional` does internally):
|
|
1482
|
+
*
|
|
1483
|
+
* ```ts
|
|
1484
|
+
* const schema = z.string().optional();
|
|
1485
|
+
* const isOptional = schema.safeParse(undefined).success; // true
|
|
1486
|
+
* ```
|
|
1487
|
+
*/
|
|
1488
|
+
isOptional(): boolean;
|
|
1489
|
+
/**
|
|
1490
|
+
* @deprecated Try safe-parsing `null` (this is what `isNullable` does internally):
|
|
1491
|
+
*
|
|
1492
|
+
* ```ts
|
|
1493
|
+
* const schema = z.string().nullable();
|
|
1494
|
+
* const isNullable = schema.safeParse(null).success; // true
|
|
1495
|
+
* ```
|
|
1496
|
+
*/
|
|
1497
|
+
isNullable(): boolean;
|
|
1498
|
+
}
|
|
1499
|
+
interface _ZodType<out Internals extends $ZodTypeInternals = $ZodTypeInternals> extends ZodType$1<any, any, Internals> {}
|
|
1500
|
+
declare const ZodType$1: $constructor<ZodType$1>;
|
|
1501
|
+
interface _ZodString<T extends $ZodStringInternals<unknown> = $ZodStringInternals<unknown>> extends _ZodType<T> {
|
|
1502
|
+
format: string | null;
|
|
1503
|
+
minLength: number | null;
|
|
1504
|
+
maxLength: number | null;
|
|
1505
|
+
regex(regex: RegExp, params?: string | $ZodCheckRegexParams): this;
|
|
1506
|
+
includes(value: string, params?: $ZodCheckIncludesParams): this;
|
|
1507
|
+
startsWith(value: string, params?: string | $ZodCheckStartsWithParams): this;
|
|
1508
|
+
endsWith(value: string, params?: string | $ZodCheckEndsWithParams): this;
|
|
1509
|
+
min(minLength: number, params?: string | $ZodCheckMinLengthParams): this;
|
|
1510
|
+
max(maxLength: number, params?: string | $ZodCheckMaxLengthParams): this;
|
|
1511
|
+
length(len: number, params?: string | $ZodCheckLengthEqualsParams): this;
|
|
1512
|
+
nonempty(params?: string | $ZodCheckMinLengthParams): this;
|
|
1513
|
+
lowercase(params?: string | $ZodCheckLowerCaseParams): this;
|
|
1514
|
+
uppercase(params?: string | $ZodCheckUpperCaseParams): this;
|
|
1515
|
+
trim(): this;
|
|
1516
|
+
normalize(form?: "NFC" | "NFD" | "NFKC" | "NFKD" | (string & {})): this;
|
|
1517
|
+
toLowerCase(): this;
|
|
1518
|
+
toUpperCase(): this;
|
|
1519
|
+
}
|
|
1520
|
+
/** @internal */
|
|
1521
|
+
declare const _ZodString: $constructor<_ZodString>;
|
|
1522
|
+
interface ZodString extends _ZodString<$ZodStringInternals<string>> {
|
|
1523
|
+
/** @deprecated Use `z.email()` instead. */
|
|
1524
|
+
email(params?: string | $ZodCheckEmailParams): this;
|
|
1525
|
+
/** @deprecated Use `z.url()` instead. */
|
|
1526
|
+
url(params?: string | $ZodCheckURLParams): this;
|
|
1527
|
+
/** @deprecated Use `z.jwt()` instead. */
|
|
1528
|
+
jwt(params?: string | $ZodCheckJWTParams): this;
|
|
1529
|
+
/** @deprecated Use `z.emoji()` instead. */
|
|
1530
|
+
emoji(params?: string | $ZodCheckEmojiParams): this;
|
|
1531
|
+
/** @deprecated Use `z.guid()` instead. */
|
|
1532
|
+
guid(params?: string | $ZodCheckGUIDParams): this;
|
|
1533
|
+
/** @deprecated Use `z.uuid()` instead. */
|
|
1534
|
+
uuid(params?: string | $ZodCheckUUIDParams): this;
|
|
1535
|
+
/** @deprecated Use `z.uuid()` instead. */
|
|
1536
|
+
uuidv4(params?: string | $ZodCheckUUIDParams): this;
|
|
1537
|
+
/** @deprecated Use `z.uuid()` instead. */
|
|
1538
|
+
uuidv6(params?: string | $ZodCheckUUIDParams): this;
|
|
1539
|
+
/** @deprecated Use `z.uuid()` instead. */
|
|
1540
|
+
uuidv7(params?: string | $ZodCheckUUIDParams): this;
|
|
1541
|
+
/** @deprecated Use `z.nanoid()` instead. */
|
|
1542
|
+
nanoid(params?: string | $ZodCheckNanoIDParams): this;
|
|
1543
|
+
/** @deprecated Use `z.guid()` instead. */
|
|
1544
|
+
guid(params?: string | $ZodCheckGUIDParams): this;
|
|
1545
|
+
/** @deprecated Use `z.cuid()` instead. */
|
|
1546
|
+
cuid(params?: string | $ZodCheckCUIDParams): this;
|
|
1547
|
+
/** @deprecated Use `z.cuid2()` instead. */
|
|
1548
|
+
cuid2(params?: string | $ZodCheckCUID2Params): this;
|
|
1549
|
+
/** @deprecated Use `z.ulid()` instead. */
|
|
1550
|
+
ulid(params?: string | $ZodCheckULIDParams): this;
|
|
1551
|
+
/** @deprecated Use `z.base64()` instead. */
|
|
1552
|
+
base64(params?: string | $ZodCheckBase64Params): this;
|
|
1553
|
+
/** @deprecated Use `z.base64url()` instead. */
|
|
1554
|
+
base64url(params?: string | $ZodCheckBase64URLParams): this;
|
|
1555
|
+
/** @deprecated Use `z.xid()` instead. */
|
|
1556
|
+
xid(params?: string | $ZodCheckXIDParams): this;
|
|
1557
|
+
/** @deprecated Use `z.ksuid()` instead. */
|
|
1558
|
+
ksuid(params?: string | $ZodCheckKSUIDParams): this;
|
|
1559
|
+
/** @deprecated Use `z.ipv4()` instead. */
|
|
1560
|
+
ipv4(params?: string | $ZodCheckIPv4Params): this;
|
|
1561
|
+
/** @deprecated Use `z.ipv6()` instead. */
|
|
1562
|
+
ipv6(params?: string | $ZodCheckIPv6Params): this;
|
|
1563
|
+
/** @deprecated Use `z.cidrv4()` instead. */
|
|
1564
|
+
cidrv4(params?: string | $ZodCheckCIDRv4Params): this;
|
|
1565
|
+
/** @deprecated Use `z.cidrv6()` instead. */
|
|
1566
|
+
cidrv6(params?: string | $ZodCheckCIDRv6Params): this;
|
|
1567
|
+
/** @deprecated Use `z.e164()` instead. */
|
|
1568
|
+
e164(params?: string | $ZodCheckE164Params): this;
|
|
1569
|
+
/** @deprecated Use `z.iso.datetime()` instead. */
|
|
1570
|
+
datetime(params?: string | $ZodCheckISODateTimeParams): this;
|
|
1571
|
+
/** @deprecated Use `z.iso.date()` instead. */
|
|
1572
|
+
date(params?: string | $ZodCheckISODateParams): this;
|
|
1573
|
+
/** @deprecated Use `z.iso.time()` instead. */
|
|
1574
|
+
time(params?: string | $ZodCheckISOTimeParams): this;
|
|
1575
|
+
/** @deprecated Use `z.iso.duration()` instead. */
|
|
1576
|
+
duration(params?: string | $ZodCheckISODurationParams): this;
|
|
1577
|
+
}
|
|
1578
|
+
declare const ZodString: $constructor<ZodString>;
|
|
1579
|
+
interface _ZodNumber<Internals extends $ZodNumberInternals = $ZodNumberInternals> extends _ZodType<Internals> {
|
|
1580
|
+
gt(value: number, params?: string | $ZodCheckGreaterThanParams): this;
|
|
1581
|
+
/** Identical to .min() */
|
|
1582
|
+
gte(value: number, params?: string | $ZodCheckGreaterThanParams): this;
|
|
1583
|
+
min(value: number, params?: string | $ZodCheckGreaterThanParams): this;
|
|
1584
|
+
lt(value: number, params?: string | $ZodCheckLessThanParams): this;
|
|
1585
|
+
/** Identical to .max() */
|
|
1586
|
+
lte(value: number, params?: string | $ZodCheckLessThanParams): this;
|
|
1587
|
+
max(value: number, params?: string | $ZodCheckLessThanParams): this;
|
|
1588
|
+
/** Consider `z.int()` instead. This API is considered *legacy*; it will never be removed but a better alternative exists. */
|
|
1589
|
+
int(params?: string | $ZodCheckNumberFormatParams): this;
|
|
1590
|
+
/** @deprecated This is now identical to `.int()`. Only numbers in the safe integer range are accepted. */
|
|
1591
|
+
safe(params?: string | $ZodCheckNumberFormatParams): this;
|
|
1592
|
+
positive(params?: string | $ZodCheckGreaterThanParams): this;
|
|
1593
|
+
nonnegative(params?: string | $ZodCheckGreaterThanParams): this;
|
|
1594
|
+
negative(params?: string | $ZodCheckLessThanParams): this;
|
|
1595
|
+
nonpositive(params?: string | $ZodCheckLessThanParams): this;
|
|
1596
|
+
multipleOf(value: number, params?: string | $ZodCheckMultipleOfParams): this;
|
|
1597
|
+
/** @deprecated Use `.multipleOf()` instead. */
|
|
1598
|
+
step(value: number, params?: string | $ZodCheckMultipleOfParams): this;
|
|
1599
|
+
/** @deprecated In v4 and later, z.number() does not allow infinite values by default. This is a no-op. */
|
|
1600
|
+
finite(params?: unknown): this;
|
|
1601
|
+
minValue: number | null;
|
|
1602
|
+
maxValue: number | null;
|
|
1603
|
+
/** @deprecated Check the `format` property instead. */
|
|
1604
|
+
isInt: boolean;
|
|
1605
|
+
/** @deprecated Number schemas no longer accept infinite values, so this always returns `true`. */
|
|
1606
|
+
isFinite: boolean;
|
|
1607
|
+
format: string | null;
|
|
1608
|
+
}
|
|
1609
|
+
interface ZodNumber extends _ZodNumber<$ZodNumberInternals<number>> {}
|
|
1610
|
+
declare const ZodNumber: $constructor<ZodNumber>;
|
|
1611
|
+
interface _ZodBoolean<T extends $ZodBooleanInternals = $ZodBooleanInternals> extends _ZodType<T> {}
|
|
1612
|
+
interface ZodBoolean extends _ZodBoolean<$ZodBooleanInternals<boolean>> {}
|
|
1613
|
+
declare const ZodBoolean: $constructor<ZodBoolean>;
|
|
1614
|
+
interface ZodUnknown extends _ZodType<$ZodUnknownInternals> {}
|
|
1615
|
+
declare const ZodUnknown: $constructor<ZodUnknown>;
|
|
1616
|
+
interface ZodArray<T extends SomeType = $ZodType> extends _ZodType<$ZodArrayInternals<T>>, $ZodArray<T> {
|
|
1617
|
+
element: T;
|
|
1618
|
+
min(minLength: number, params?: string | $ZodCheckMinLengthParams): this;
|
|
1619
|
+
nonempty(params?: string | $ZodCheckMinLengthParams): this;
|
|
1620
|
+
max(maxLength: number, params?: string | $ZodCheckMaxLengthParams): this;
|
|
1621
|
+
length(len: number, params?: string | $ZodCheckLengthEqualsParams): this;
|
|
1622
|
+
unwrap(): T;
|
|
1623
|
+
}
|
|
1624
|
+
declare const ZodArray: $constructor<ZodArray>;
|
|
1625
|
+
interface ZodObject< /** @ts-ignore Cast variance */out Shape extends $ZodShape = $ZodLooseShape, out Config extends $ZodObjectConfig = $strip> extends _ZodType<$ZodObjectInternals<Shape, Config>>, $ZodObject<Shape, Config> {
|
|
1626
|
+
shape: Shape;
|
|
1627
|
+
keyof(): ZodEnum<ToEnum<keyof Shape & string>>;
|
|
1628
|
+
/** Define a schema to validate all unrecognized keys. This overrides the existing strict/loose behavior. */
|
|
1629
|
+
catchall<T extends SomeType>(schema: T): ZodObject<Shape, $catchall<T>>;
|
|
1630
|
+
/** @deprecated Use `z.looseObject()` or `.loose()` instead. */
|
|
1631
|
+
passthrough(): ZodObject<Shape, $loose>;
|
|
1632
|
+
/** Consider `z.looseObject(A.shape)` instead */
|
|
1633
|
+
loose(): ZodObject<Shape, $loose>;
|
|
1634
|
+
/** Consider `z.strictObject(A.shape)` instead */
|
|
1635
|
+
strict(): ZodObject<Shape, $strict>;
|
|
1636
|
+
/** This is the default behavior. This method call is likely unnecessary. */
|
|
1637
|
+
strip(): ZodObject<Shape, $strip>;
|
|
1638
|
+
extend<U extends $ZodLooseShape & Partial<Record<keyof Shape, SomeType>>>(shape: U): ZodObject<Extend<Shape, U>, Config>;
|
|
1639
|
+
/**
|
|
1640
|
+
* @deprecated Use spread syntax and the `.shape` property to combine two object schemas:
|
|
1641
|
+
*
|
|
1642
|
+
* ```ts
|
|
1643
|
+
* const A = z.object({ a: z.string() });
|
|
1644
|
+
* const B = z.object({ b: z.number() });
|
|
1645
|
+
*
|
|
1646
|
+
* const C = z.object({
|
|
1647
|
+
* ...A.shape,
|
|
1648
|
+
* ...B.shape
|
|
1649
|
+
* });
|
|
1650
|
+
* ```
|
|
1651
|
+
*/
|
|
1652
|
+
merge<U extends ZodObject>(other: U): ZodObject<Extend<Shape, U["shape"]>, U["_zod"]["config"]>;
|
|
1653
|
+
pick<M extends Mask<keyof Shape>>(mask: M): ZodObject<Flatten<Pick<Shape, Extract<keyof Shape, keyof M>>>, Config>;
|
|
1654
|
+
omit<M extends Mask<keyof Shape>>(mask: M): ZodObject<Flatten<Omit<Shape, Extract<keyof Shape, keyof M>>>, Config>;
|
|
1655
|
+
partial(): ZodObject<{ [k in keyof Shape]: ZodOptional<Shape[k]> }, Config>;
|
|
1656
|
+
partial<M extends Mask<keyof Shape>>(mask: M): ZodObject<{ [k in keyof Shape]: k extends keyof M ? ZodOptional<Shape[k]> : Shape[k] }, Config>;
|
|
1657
|
+
required(): ZodObject<{ [k in keyof Shape]: ZodNonOptional<Shape[k]> }, Config>;
|
|
1658
|
+
required<M extends Mask<keyof Shape>>(mask: M): ZodObject<{ [k in keyof Shape]: k extends keyof M ? ZodNonOptional<Shape[k]> : Shape[k] }, Config>;
|
|
1659
|
+
}
|
|
1660
|
+
declare const ZodObject: $constructor<ZodObject>;
|
|
1661
|
+
interface ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends _ZodType<$ZodUnionInternals<T>>, $ZodUnion<T> {
|
|
1662
|
+
options: T;
|
|
1663
|
+
}
|
|
1664
|
+
declare const ZodUnion: $constructor<ZodUnion>;
|
|
1665
|
+
interface ZodDiscriminatedUnion<Options extends readonly SomeType[] = readonly $ZodType[]> extends ZodUnion<Options>, $ZodDiscriminatedUnion<Options> {
|
|
1666
|
+
_zod: $ZodDiscriminatedUnionInternals<Options>;
|
|
1667
|
+
}
|
|
1668
|
+
declare const ZodDiscriminatedUnion: $constructor<ZodDiscriminatedUnion>;
|
|
1669
|
+
interface ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodIntersectionInternals<A, B>>, $ZodIntersection<A, B> {}
|
|
1670
|
+
declare const ZodIntersection: $constructor<ZodIntersection>;
|
|
1671
|
+
interface ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends _ZodType<$ZodRecordInternals<Key, Value>>, $ZodRecord<Key, Value> {
|
|
1672
|
+
keyType: Key;
|
|
1673
|
+
valueType: Value;
|
|
1674
|
+
}
|
|
1675
|
+
declare const ZodRecord: $constructor<ZodRecord>;
|
|
1676
|
+
interface ZodEnum< /** @ts-ignore Cast variance */out T extends EnumLike = EnumLike> extends _ZodType<$ZodEnumInternals<T>>, $ZodEnum<T> {
|
|
1677
|
+
enum: T;
|
|
1678
|
+
options: Array<T[keyof T]>;
|
|
1679
|
+
extract<const U extends readonly (keyof T)[]>(values: U, params?: string | $ZodEnumParams): ZodEnum<Flatten<Pick<T, U[number]>>>;
|
|
1680
|
+
exclude<const U extends readonly (keyof T)[]>(values: U, params?: string | $ZodEnumParams): ZodEnum<Flatten<Omit<T, U[number]>>>;
|
|
1681
|
+
}
|
|
1682
|
+
declare const ZodEnum: $constructor<ZodEnum>;
|
|
1683
|
+
interface ZodLiteral<T extends Literal = Literal> extends _ZodType<$ZodLiteralInternals<T>>, $ZodLiteral<T> {
|
|
1684
|
+
values: Set<T>;
|
|
1685
|
+
/** @legacy Use `.values` instead. Accessing this property will throw an error if the literal accepts multiple values. */
|
|
1686
|
+
value: T;
|
|
1687
|
+
}
|
|
1688
|
+
declare const ZodLiteral: $constructor<ZodLiteral>;
|
|
1689
|
+
interface ZodTransform<O = unknown, I = unknown> extends _ZodType<$ZodTransformInternals<O, I>>, $ZodTransform<O, I> {}
|
|
1690
|
+
declare const ZodTransform: $constructor<ZodTransform>;
|
|
1691
|
+
interface ZodOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodOptionalInternals<T>>, $ZodOptional<T> {
|
|
1692
|
+
unwrap(): T;
|
|
1693
|
+
}
|
|
1694
|
+
declare const ZodOptional: $constructor<ZodOptional>;
|
|
1695
|
+
interface ZodNullable<T extends SomeType = $ZodType> extends _ZodType<$ZodNullableInternals<T>>, $ZodNullable<T> {
|
|
1696
|
+
unwrap(): T;
|
|
1697
|
+
}
|
|
1698
|
+
declare const ZodNullable: $constructor<ZodNullable>;
|
|
1699
|
+
interface ZodDefault<T extends SomeType = $ZodType> extends _ZodType<$ZodDefaultInternals<T>>, $ZodDefault<T> {
|
|
1700
|
+
unwrap(): T;
|
|
1701
|
+
/** @deprecated Use `.unwrap()` instead. */
|
|
1702
|
+
removeDefault(): T;
|
|
1703
|
+
}
|
|
1704
|
+
declare const ZodDefault: $constructor<ZodDefault>;
|
|
1705
|
+
interface ZodPrefault<T extends SomeType = $ZodType> extends _ZodType<$ZodPrefaultInternals<T>>, $ZodPrefault<T> {
|
|
1706
|
+
unwrap(): T;
|
|
1707
|
+
}
|
|
1708
|
+
declare const ZodPrefault: $constructor<ZodPrefault>;
|
|
1709
|
+
interface ZodNonOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodNonOptionalInternals<T>>, $ZodNonOptional<T> {
|
|
1710
|
+
unwrap(): T;
|
|
1711
|
+
}
|
|
1712
|
+
declare const ZodNonOptional: $constructor<ZodNonOptional>;
|
|
1713
|
+
interface ZodCatch<T extends SomeType = $ZodType> extends _ZodType<$ZodCatchInternals<T>>, $ZodCatch<T> {
|
|
1714
|
+
unwrap(): T;
|
|
1715
|
+
/** @deprecated Use `.unwrap()` instead. */
|
|
1716
|
+
removeCatch(): T;
|
|
1717
|
+
}
|
|
1718
|
+
declare const ZodCatch: $constructor<ZodCatch>;
|
|
1719
|
+
interface ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodPipeInternals<A, B>>, $ZodPipe<A, B> {
|
|
1720
|
+
in: A;
|
|
1721
|
+
out: B;
|
|
1722
|
+
}
|
|
1723
|
+
declare const ZodPipe: $constructor<ZodPipe>;
|
|
1724
|
+
interface ZodReadonly<T extends SomeType = $ZodType> extends _ZodType<$ZodReadonlyInternals<T>>, $ZodReadonly<T> {}
|
|
1725
|
+
declare const ZodReadonly: $constructor<ZodReadonly>;
|
|
1726
|
+
interface ZodLazy<T extends SomeType = $ZodType> extends _ZodType<$ZodLazyInternals<T>>, $ZodLazy<T> {
|
|
1727
|
+
unwrap(): T;
|
|
1728
|
+
}
|
|
1729
|
+
declare const ZodLazy: $constructor<ZodLazy>;
|
|
1730
|
+
interface ZodCustom<O = unknown, I = unknown> extends _ZodType<$ZodCustomInternals<O, I>>, $ZodCustom<O, I> {}
|
|
1731
|
+
declare const ZodCustom: $constructor<ZodCustom>;
|
|
1732
|
+
//#endregion
|
|
997
1733
|
//#region src/stepFunctions/codeExecutionLambda/lambdaClient.d.ts
|
|
998
1734
|
type LambdaInvocationResult = {
|
|
999
1735
|
statusCode: number;
|
|
@@ -1030,7 +1766,7 @@ declare enum StepFunctionName {
|
|
|
1030
1766
|
EMIT_EVENT = "emit_event",
|
|
1031
1767
|
BROWSER_USE = "browser_use",
|
|
1032
1768
|
CODE_EXECUTION_LAMBDA = "code_execution_lambda",
|
|
1033
|
-
SIGN_JWT = "sign_jwt"
|
|
1769
|
+
SIGN_JWT = "sign_jwt"
|
|
1034
1770
|
}
|
|
1035
1771
|
declare const stepFunctions: {
|
|
1036
1772
|
typecast: {
|
|
@@ -1039,10 +1775,10 @@ declare const stepFunctions: {
|
|
|
1039
1775
|
};
|
|
1040
1776
|
v2: {
|
|
1041
1777
|
fn: StepFunction;
|
|
1042
|
-
inputSchema:
|
|
1043
|
-
fields:
|
|
1044
|
-
targetFieldKey:
|
|
1045
|
-
type:
|
|
1778
|
+
inputSchema: ZodObject<{
|
|
1779
|
+
fields: ZodOptional<ZodArray<ZodObject<{
|
|
1780
|
+
targetFieldKey: ZodString;
|
|
1781
|
+
type: ZodEnum<{
|
|
1046
1782
|
string: "string";
|
|
1047
1783
|
number: "number";
|
|
1048
1784
|
boolean: "boolean";
|
|
@@ -1050,17 +1786,17 @@ declare const stepFunctions: {
|
|
|
1050
1786
|
datetime_string: "datetime_string";
|
|
1051
1787
|
enum: "enum";
|
|
1052
1788
|
}>;
|
|
1053
|
-
array:
|
|
1054
|
-
custom:
|
|
1055
|
-
hidden:
|
|
1056
|
-
properties:
|
|
1057
|
-
requiredScopes:
|
|
1058
|
-
},
|
|
1059
|
-
dataSource:
|
|
1060
|
-
},
|
|
1061
|
-
outputSchema:
|
|
1062
|
-
data:
|
|
1063
|
-
},
|
|
1789
|
+
array: ZodDefault<ZodBoolean>;
|
|
1790
|
+
custom: ZodDefault<ZodBoolean>;
|
|
1791
|
+
hidden: ZodDefault<ZodBoolean>;
|
|
1792
|
+
properties: ZodOptional<ZodArray<ZodLazy<any>>>;
|
|
1793
|
+
requiredScopes: ZodOptional<ZodArray<ZodString>>;
|
|
1794
|
+
}, $strip>>>;
|
|
1795
|
+
dataSource: ZodString;
|
|
1796
|
+
}, $strip>;
|
|
1797
|
+
outputSchema: ZodObject<{
|
|
1798
|
+
data: ZodUnknown;
|
|
1799
|
+
}, $strip>;
|
|
1064
1800
|
};
|
|
1065
1801
|
};
|
|
1066
1802
|
map_fields: {
|
|
@@ -1069,13 +1805,13 @@ declare const stepFunctions: {
|
|
|
1069
1805
|
};
|
|
1070
1806
|
v2: {
|
|
1071
1807
|
fn: StepFunction;
|
|
1072
|
-
inputSchema:
|
|
1073
|
-
fields:
|
|
1074
|
-
targetFieldKey:
|
|
1075
|
-
alias:
|
|
1076
|
-
expression:
|
|
1077
|
-
values:
|
|
1078
|
-
type:
|
|
1808
|
+
inputSchema: ZodObject<{
|
|
1809
|
+
fields: ZodArray<ZodObject<{
|
|
1810
|
+
targetFieldKey: ZodString;
|
|
1811
|
+
alias: ZodOptional<ZodString>;
|
|
1812
|
+
expression: ZodOptional<ZodString>;
|
|
1813
|
+
values: ZodOptional<ZodUnknown>;
|
|
1814
|
+
type: ZodEnum<{
|
|
1079
1815
|
string: "string";
|
|
1080
1816
|
number: "number";
|
|
1081
1817
|
boolean: "boolean";
|
|
@@ -1083,788 +1819,788 @@ declare const stepFunctions: {
|
|
|
1083
1819
|
datetime_string: "datetime_string";
|
|
1084
1820
|
enum: "enum";
|
|
1085
1821
|
}>;
|
|
1086
|
-
array:
|
|
1087
|
-
custom:
|
|
1088
|
-
hidden:
|
|
1089
|
-
enumMapper:
|
|
1090
|
-
matcher:
|
|
1091
|
-
matchExpression:
|
|
1092
|
-
value:
|
|
1093
|
-
},
|
|
1094
|
-
},
|
|
1095
|
-
properties:
|
|
1096
|
-
requiredScopes:
|
|
1097
|
-
},
|
|
1098
|
-
dataSource:
|
|
1099
|
-
externalSources:
|
|
1100
|
-
},
|
|
1101
|
-
outputSchema:
|
|
1102
|
-
data:
|
|
1103
|
-
},
|
|
1822
|
+
array: ZodDefault<ZodBoolean>;
|
|
1823
|
+
custom: ZodDefault<ZodBoolean>;
|
|
1824
|
+
hidden: ZodDefault<ZodBoolean>;
|
|
1825
|
+
enumMapper: ZodOptional<ZodObject<{
|
|
1826
|
+
matcher: ZodUnion<[ZodString, ZodArray<ZodObject<{
|
|
1827
|
+
matchExpression: ZodString;
|
|
1828
|
+
value: ZodString;
|
|
1829
|
+
}, $strict>>]>;
|
|
1830
|
+
}, $strict>>;
|
|
1831
|
+
properties: ZodOptional<ZodArray<ZodLazy<any>>>;
|
|
1832
|
+
requiredScopes: ZodOptional<ZodArray<ZodString>>;
|
|
1833
|
+
}, $strict>>;
|
|
1834
|
+
dataSource: ZodString;
|
|
1835
|
+
externalSources: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
1836
|
+
}, $strip>;
|
|
1837
|
+
outputSchema: ZodObject<{
|
|
1838
|
+
data: ZodUnknown;
|
|
1839
|
+
}, $strip>;
|
|
1104
1840
|
};
|
|
1105
1841
|
};
|
|
1106
1842
|
request: {
|
|
1107
1843
|
v1: {
|
|
1108
1844
|
fn: StepFunction;
|
|
1109
|
-
inputSchema:
|
|
1110
|
-
baseUrl:
|
|
1111
|
-
url:
|
|
1112
|
-
method:
|
|
1845
|
+
inputSchema: ZodObject<{
|
|
1846
|
+
baseUrl: ZodOptional<ZodString>;
|
|
1847
|
+
url: ZodString;
|
|
1848
|
+
method: ZodEnum<{
|
|
1113
1849
|
get: "get";
|
|
1114
1850
|
post: "post";
|
|
1115
1851
|
put: "put";
|
|
1116
1852
|
delete: "delete";
|
|
1117
1853
|
patch: "patch";
|
|
1118
1854
|
}>;
|
|
1119
|
-
authorization:
|
|
1120
|
-
type:
|
|
1121
|
-
signing:
|
|
1122
|
-
strategy:
|
|
1123
|
-
service:
|
|
1124
|
-
region:
|
|
1125
|
-
},
|
|
1126
|
-
strategy:
|
|
1127
|
-
algorithm:
|
|
1855
|
+
authorization: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
|
|
1856
|
+
type: ZodLiteral<"none">;
|
|
1857
|
+
signing: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
|
|
1858
|
+
strategy: ZodLiteral<"aws4">;
|
|
1859
|
+
service: ZodString;
|
|
1860
|
+
region: ZodOptional<ZodString>;
|
|
1861
|
+
}, $strict>, ZodObject<{
|
|
1862
|
+
strategy: ZodLiteral<"hmac">;
|
|
1863
|
+
algorithm: ZodOptional<ZodEnum<{
|
|
1128
1864
|
sha256: "sha256";
|
|
1129
1865
|
sha512: "sha512";
|
|
1130
1866
|
}>>;
|
|
1131
|
-
headerName:
|
|
1132
|
-
prefix:
|
|
1133
|
-
},
|
|
1134
|
-
},
|
|
1135
|
-
type:
|
|
1136
|
-
username:
|
|
1137
|
-
password:
|
|
1138
|
-
encoding:
|
|
1139
|
-
},
|
|
1140
|
-
type:
|
|
1141
|
-
token:
|
|
1142
|
-
includeBearer:
|
|
1143
|
-
},
|
|
1144
|
-
type:
|
|
1145
|
-
authorizationUrl:
|
|
1146
|
-
authorizationParams:
|
|
1147
|
-
tokenUrl:
|
|
1148
|
-
tokenParams:
|
|
1149
|
-
tokenExpiresIn:
|
|
1150
|
-
tokenRefreshExpiresIn:
|
|
1151
|
-
token:
|
|
1152
|
-
includeBearer:
|
|
1153
|
-
scopes:
|
|
1154
|
-
scopeDelimiter:
|
|
1155
|
-
customHeaders:
|
|
1156
|
-
pkce:
|
|
1157
|
-
additionalTokenFields:
|
|
1158
|
-
issuer:
|
|
1159
|
-
},
|
|
1160
|
-
certificates:
|
|
1161
|
-
certs:
|
|
1162
|
-
keys:
|
|
1163
|
-
},
|
|
1164
|
-
saml:
|
|
1165
|
-
objectKey:
|
|
1166
|
-
key:
|
|
1167
|
-
clientId:
|
|
1168
|
-
cert:
|
|
1169
|
-
issuer:
|
|
1170
|
-
lifetime:
|
|
1171
|
-
nameId:
|
|
1172
|
-
audience:
|
|
1173
|
-
nameIdentifierFormat:
|
|
1174
|
-
tokenEndpoint:
|
|
1175
|
-
},
|
|
1176
|
-
response:
|
|
1177
|
-
collection:
|
|
1178
|
-
indexField:
|
|
1179
|
-
dataKey:
|
|
1180
|
-
},
|
|
1181
|
-
customErrors:
|
|
1182
|
-
receivedStatus:
|
|
1183
|
-
targetStatus:
|
|
1184
|
-
message:
|
|
1185
|
-
condition:
|
|
1186
|
-
},
|
|
1187
|
-
args:
|
|
1188
|
-
name:
|
|
1189
|
-
value:
|
|
1190
|
-
in:
|
|
1867
|
+
headerName: ZodOptional<ZodString>;
|
|
1868
|
+
prefix: ZodOptional<ZodString>;
|
|
1869
|
+
}, $strict>]>>;
|
|
1870
|
+
}, $strict>, ZodObject<{
|
|
1871
|
+
type: ZodLiteral<"basic">;
|
|
1872
|
+
username: ZodOptional<ZodString>;
|
|
1873
|
+
password: ZodOptional<ZodString>;
|
|
1874
|
+
encoding: ZodOptional<ZodString>;
|
|
1875
|
+
}, $strict>, ZodObject<{
|
|
1876
|
+
type: ZodLiteral<"bearer">;
|
|
1877
|
+
token: ZodString;
|
|
1878
|
+
includeBearer: ZodDefault<ZodOptional<ZodBoolean>>;
|
|
1879
|
+
}, $strict>, ZodObject<{
|
|
1880
|
+
type: ZodLiteral<"oauth2">;
|
|
1881
|
+
authorizationUrl: ZodOptional<ZodString>;
|
|
1882
|
+
authorizationParams: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
1883
|
+
tokenUrl: ZodOptional<ZodString>;
|
|
1884
|
+
tokenParams: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
1885
|
+
tokenExpiresIn: ZodOptional<ZodNumber>;
|
|
1886
|
+
tokenRefreshExpiresIn: ZodOptional<ZodNumber>;
|
|
1887
|
+
token: ZodString;
|
|
1888
|
+
includeBearer: ZodDefault<ZodOptional<ZodBoolean>>;
|
|
1889
|
+
scopes: ZodOptional<ZodString>;
|
|
1890
|
+
scopeDelimiter: ZodOptional<ZodString>;
|
|
1891
|
+
customHeaders: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
1892
|
+
pkce: ZodOptional<ZodBoolean>;
|
|
1893
|
+
additionalTokenFields: ZodOptional<ZodRecord<ZodString, ZodOptional<ZodString>>>;
|
|
1894
|
+
issuer: ZodOptional<ZodString>;
|
|
1895
|
+
}, $strict>]>>;
|
|
1896
|
+
certificates: ZodOptional<ZodObject<{
|
|
1897
|
+
certs: ZodOptional<ZodArray<ZodString>>;
|
|
1898
|
+
keys: ZodOptional<ZodArray<ZodString>>;
|
|
1899
|
+
}, $strict>>;
|
|
1900
|
+
saml: ZodOptional<ZodObject<{
|
|
1901
|
+
objectKey: ZodString;
|
|
1902
|
+
key: ZodString;
|
|
1903
|
+
clientId: ZodString;
|
|
1904
|
+
cert: ZodOptional<ZodUnknown>;
|
|
1905
|
+
issuer: ZodOptional<ZodString>;
|
|
1906
|
+
lifetime: ZodOptional<ZodNumber>;
|
|
1907
|
+
nameId: ZodOptional<ZodString>;
|
|
1908
|
+
audience: ZodOptional<ZodString>;
|
|
1909
|
+
nameIdentifierFormat: ZodOptional<ZodString>;
|
|
1910
|
+
tokenEndpoint: ZodOptional<ZodString>;
|
|
1911
|
+
}, $strict>>;
|
|
1912
|
+
response: ZodOptional<ZodObject<{
|
|
1913
|
+
collection: ZodOptional<ZodBoolean>;
|
|
1914
|
+
indexField: ZodOptional<ZodString>;
|
|
1915
|
+
dataKey: ZodOptional<ZodString>;
|
|
1916
|
+
}, $strict>>;
|
|
1917
|
+
customErrors: ZodOptional<ZodArray<ZodObject<{
|
|
1918
|
+
receivedStatus: ZodNumber;
|
|
1919
|
+
targetStatus: ZodNumber;
|
|
1920
|
+
message: ZodOptional<ZodString>;
|
|
1921
|
+
condition: ZodOptional<ZodString>;
|
|
1922
|
+
}, $strict>>>;
|
|
1923
|
+
args: ZodOptional<ZodArray<ZodObject<{
|
|
1924
|
+
name: ZodString;
|
|
1925
|
+
value: ZodUnknown;
|
|
1926
|
+
in: ZodEnum<{
|
|
1191
1927
|
query: "query";
|
|
1192
1928
|
body: "body";
|
|
1193
1929
|
headers: "headers";
|
|
1194
1930
|
}>;
|
|
1195
|
-
spread:
|
|
1196
|
-
condition:
|
|
1197
|
-
arrayFormat:
|
|
1931
|
+
spread: ZodOptional<ZodBoolean>;
|
|
1932
|
+
condition: ZodOptional<ZodString>;
|
|
1933
|
+
arrayFormat: ZodOptional<ZodEnum<{
|
|
1198
1934
|
repeat: "repeat";
|
|
1199
1935
|
brackets: "brackets";
|
|
1200
1936
|
comma: "comma";
|
|
1201
1937
|
stringify: "stringify";
|
|
1202
1938
|
}>>;
|
|
1203
|
-
},
|
|
1204
|
-
},
|
|
1205
|
-
outputSchema:
|
|
1206
|
-
data:
|
|
1207
|
-
raw:
|
|
1208
|
-
statusCode:
|
|
1209
|
-
message:
|
|
1210
|
-
},
|
|
1939
|
+
}, $strict>>>;
|
|
1940
|
+
}, $strip>;
|
|
1941
|
+
outputSchema: ZodOptional<ZodObject<{
|
|
1942
|
+
data: ZodOptional<ZodUnknown>;
|
|
1943
|
+
raw: ZodOptional<ZodUnknown>;
|
|
1944
|
+
statusCode: ZodNumber;
|
|
1945
|
+
message: ZodOptional<ZodString>;
|
|
1946
|
+
}, $strict>>;
|
|
1211
1947
|
};
|
|
1212
1948
|
};
|
|
1213
1949
|
group_data: {
|
|
1214
1950
|
v1: {
|
|
1215
1951
|
fn: StepFunction;
|
|
1216
|
-
inputSchema:
|
|
1217
|
-
stepsDataToGroup:
|
|
1218
|
-
isSingleRecord:
|
|
1219
|
-
},
|
|
1220
|
-
outputSchema:
|
|
1221
|
-
data:
|
|
1222
|
-
},
|
|
1952
|
+
inputSchema: ZodObject<{
|
|
1953
|
+
stepsDataToGroup: ZodArray<ZodString>;
|
|
1954
|
+
isSingleRecord: ZodOptional<ZodBoolean>;
|
|
1955
|
+
}, $strip>;
|
|
1956
|
+
outputSchema: ZodObject<{
|
|
1957
|
+
data: ZodUnknown;
|
|
1958
|
+
}, $strip>;
|
|
1223
1959
|
};
|
|
1224
1960
|
};
|
|
1225
1961
|
paginated_request: {
|
|
1226
1962
|
v1: {
|
|
1227
1963
|
fn: StepFunction;
|
|
1228
|
-
inputSchema:
|
|
1229
|
-
baseUrl:
|
|
1230
|
-
url:
|
|
1231
|
-
method:
|
|
1964
|
+
inputSchema: ZodObject<{
|
|
1965
|
+
baseUrl: ZodString;
|
|
1966
|
+
url: ZodString;
|
|
1967
|
+
method: ZodEnum<{
|
|
1232
1968
|
get: "get";
|
|
1233
1969
|
post: "post";
|
|
1234
1970
|
put: "put";
|
|
1235
1971
|
delete: "delete";
|
|
1236
1972
|
patch: "patch";
|
|
1237
1973
|
}>;
|
|
1238
|
-
saml:
|
|
1239
|
-
objectKey:
|
|
1240
|
-
key:
|
|
1241
|
-
clientId:
|
|
1242
|
-
cert:
|
|
1243
|
-
issuer:
|
|
1244
|
-
lifetime:
|
|
1245
|
-
nameId:
|
|
1246
|
-
audience:
|
|
1247
|
-
nameIdentifierFormat:
|
|
1248
|
-
tokenEndpoint:
|
|
1249
|
-
},
|
|
1250
|
-
response:
|
|
1251
|
-
indexField:
|
|
1252
|
-
dataKey:
|
|
1253
|
-
nextKey:
|
|
1254
|
-
nextKeyIn:
|
|
1974
|
+
saml: ZodOptional<ZodObject<{
|
|
1975
|
+
objectKey: ZodString;
|
|
1976
|
+
key: ZodString;
|
|
1977
|
+
clientId: ZodString;
|
|
1978
|
+
cert: ZodOptional<ZodUnknown>;
|
|
1979
|
+
issuer: ZodOptional<ZodString>;
|
|
1980
|
+
lifetime: ZodOptional<ZodNumber>;
|
|
1981
|
+
nameId: ZodOptional<ZodString>;
|
|
1982
|
+
audience: ZodOptional<ZodString>;
|
|
1983
|
+
nameIdentifierFormat: ZodOptional<ZodString>;
|
|
1984
|
+
tokenEndpoint: ZodOptional<ZodString>;
|
|
1985
|
+
}, $strict>>;
|
|
1986
|
+
response: ZodOptional<ZodObject<{
|
|
1987
|
+
indexField: ZodOptional<ZodString>;
|
|
1988
|
+
dataKey: ZodOptional<ZodString>;
|
|
1989
|
+
nextKey: ZodOptional<ZodString>;
|
|
1990
|
+
nextKeyIn: ZodOptional<ZodEnum<{
|
|
1255
1991
|
data: "data";
|
|
1256
1992
|
headers: "headers";
|
|
1257
1993
|
}>>;
|
|
1258
|
-
},
|
|
1259
|
-
iterator:
|
|
1260
|
-
key:
|
|
1261
|
-
in:
|
|
1994
|
+
}, $strict>>;
|
|
1995
|
+
iterator: ZodObject<{
|
|
1996
|
+
key: ZodString;
|
|
1997
|
+
in: ZodEnum<{
|
|
1262
1998
|
query: "query";
|
|
1263
1999
|
body: "body";
|
|
1264
2000
|
headers: "headers";
|
|
1265
2001
|
}>;
|
|
1266
|
-
condition:
|
|
1267
|
-
mode:
|
|
2002
|
+
condition: ZodOptional<ZodString>;
|
|
2003
|
+
mode: ZodOptional<ZodEnum<{
|
|
1268
2004
|
cursor: "cursor";
|
|
1269
2005
|
offset: "offset";
|
|
1270
2006
|
}>>;
|
|
1271
|
-
},
|
|
1272
|
-
cursor:
|
|
1273
|
-
token:
|
|
1274
|
-
position:
|
|
1275
|
-
},
|
|
1276
|
-
customErrors:
|
|
1277
|
-
receivedStatus:
|
|
1278
|
-
targetStatus:
|
|
1279
|
-
message:
|
|
1280
|
-
condition:
|
|
1281
|
-
},
|
|
1282
|
-
args:
|
|
1283
|
-
name:
|
|
1284
|
-
value:
|
|
1285
|
-
in:
|
|
2007
|
+
}, $strict>;
|
|
2008
|
+
cursor: ZodOptional<ZodObject<{
|
|
2009
|
+
token: ZodNullable<ZodOptional<ZodString>>;
|
|
2010
|
+
position: ZodNullable<ZodOptional<ZodNumber>>;
|
|
2011
|
+
}, $strict>>;
|
|
2012
|
+
customErrors: ZodOptional<ZodArray<ZodObject<{
|
|
2013
|
+
receivedStatus: ZodNumber;
|
|
2014
|
+
targetStatus: ZodNumber;
|
|
2015
|
+
message: ZodOptional<ZodString>;
|
|
2016
|
+
condition: ZodOptional<ZodString>;
|
|
2017
|
+
}, $strict>>>;
|
|
2018
|
+
args: ZodOptional<ZodArray<ZodObject<{
|
|
2019
|
+
name: ZodString;
|
|
2020
|
+
value: ZodUnknown;
|
|
2021
|
+
in: ZodEnum<{
|
|
1286
2022
|
query: "query";
|
|
1287
2023
|
body: "body";
|
|
1288
2024
|
headers: "headers";
|
|
1289
2025
|
}>;
|
|
1290
|
-
spread:
|
|
1291
|
-
condition:
|
|
1292
|
-
arrayFormat:
|
|
2026
|
+
spread: ZodOptional<ZodBoolean>;
|
|
2027
|
+
condition: ZodOptional<ZodString>;
|
|
2028
|
+
arrayFormat: ZodOptional<ZodEnum<{
|
|
1293
2029
|
repeat: "repeat";
|
|
1294
2030
|
brackets: "brackets";
|
|
1295
2031
|
comma: "comma";
|
|
1296
2032
|
stringify: "stringify";
|
|
1297
2033
|
}>>;
|
|
1298
|
-
},
|
|
1299
|
-
},
|
|
1300
|
-
outputSchema:
|
|
1301
|
-
data:
|
|
1302
|
-
raw:
|
|
1303
|
-
statusCode:
|
|
1304
|
-
message:
|
|
1305
|
-
next:
|
|
1306
|
-
position:
|
|
1307
|
-
},
|
|
2034
|
+
}, $strict>>>;
|
|
2035
|
+
}, $strip>;
|
|
2036
|
+
outputSchema: ZodOptional<ZodObject<{
|
|
2037
|
+
data: ZodOptional<ZodUnknown>;
|
|
2038
|
+
raw: ZodOptional<ZodUnknown>;
|
|
2039
|
+
statusCode: ZodNumber;
|
|
2040
|
+
message: ZodOptional<ZodString>;
|
|
2041
|
+
next: ZodNullable<ZodOptional<ZodString>>;
|
|
2042
|
+
position: ZodOptional<ZodNumber>;
|
|
2043
|
+
}, $strict>>;
|
|
1308
2044
|
};
|
|
1309
2045
|
};
|
|
1310
2046
|
soap_request: {
|
|
1311
2047
|
v1: {
|
|
1312
2048
|
fn: StepFunction;
|
|
1313
|
-
inputSchema:
|
|
1314
|
-
baseUrl:
|
|
1315
|
-
url:
|
|
1316
|
-
method:
|
|
2049
|
+
inputSchema: ZodObject<{
|
|
2050
|
+
baseUrl: ZodOptional<ZodString>;
|
|
2051
|
+
url: ZodString;
|
|
2052
|
+
method: ZodEnum<{
|
|
1317
2053
|
get: "get";
|
|
1318
2054
|
post: "post";
|
|
1319
2055
|
put: "put";
|
|
1320
2056
|
delete: "delete";
|
|
1321
2057
|
patch: "patch";
|
|
1322
2058
|
}>;
|
|
1323
|
-
authorization:
|
|
1324
|
-
type:
|
|
1325
|
-
signing:
|
|
1326
|
-
strategy:
|
|
1327
|
-
service:
|
|
1328
|
-
region:
|
|
1329
|
-
},
|
|
1330
|
-
strategy:
|
|
1331
|
-
algorithm:
|
|
2059
|
+
authorization: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
|
|
2060
|
+
type: ZodLiteral<"none">;
|
|
2061
|
+
signing: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
|
|
2062
|
+
strategy: ZodLiteral<"aws4">;
|
|
2063
|
+
service: ZodString;
|
|
2064
|
+
region: ZodOptional<ZodString>;
|
|
2065
|
+
}, $strict>, ZodObject<{
|
|
2066
|
+
strategy: ZodLiteral<"hmac">;
|
|
2067
|
+
algorithm: ZodOptional<ZodEnum<{
|
|
1332
2068
|
sha256: "sha256";
|
|
1333
2069
|
sha512: "sha512";
|
|
1334
2070
|
}>>;
|
|
1335
|
-
headerName:
|
|
1336
|
-
prefix:
|
|
1337
|
-
},
|
|
1338
|
-
},
|
|
1339
|
-
type:
|
|
1340
|
-
username:
|
|
1341
|
-
password:
|
|
1342
|
-
encoding:
|
|
1343
|
-
},
|
|
1344
|
-
type:
|
|
1345
|
-
token:
|
|
1346
|
-
includeBearer:
|
|
1347
|
-
},
|
|
1348
|
-
type:
|
|
1349
|
-
authorizationUrl:
|
|
1350
|
-
authorizationParams:
|
|
1351
|
-
tokenUrl:
|
|
1352
|
-
tokenParams:
|
|
1353
|
-
tokenExpiresIn:
|
|
1354
|
-
tokenRefreshExpiresIn:
|
|
1355
|
-
token:
|
|
1356
|
-
includeBearer:
|
|
1357
|
-
scopes:
|
|
1358
|
-
scopeDelimiter:
|
|
1359
|
-
customHeaders:
|
|
1360
|
-
pkce:
|
|
1361
|
-
additionalTokenFields:
|
|
1362
|
-
issuer:
|
|
1363
|
-
},
|
|
1364
|
-
envelope:
|
|
1365
|
-
namespaces:
|
|
1366
|
-
namespaceIdentifier:
|
|
1367
|
-
namespace:
|
|
1368
|
-
},
|
|
1369
|
-
soapOperation:
|
|
1370
|
-
soapAction:
|
|
1371
|
-
useSoapContext:
|
|
1372
|
-
response:
|
|
1373
|
-
collection:
|
|
1374
|
-
indexField:
|
|
1375
|
-
dataKey:
|
|
1376
|
-
},
|
|
1377
|
-
customErrors:
|
|
1378
|
-
receivedStatus:
|
|
1379
|
-
targetStatus:
|
|
1380
|
-
message:
|
|
1381
|
-
condition:
|
|
1382
|
-
},
|
|
1383
|
-
args:
|
|
1384
|
-
name:
|
|
1385
|
-
value:
|
|
1386
|
-
in:
|
|
2071
|
+
headerName: ZodOptional<ZodString>;
|
|
2072
|
+
prefix: ZodOptional<ZodString>;
|
|
2073
|
+
}, $strict>]>>;
|
|
2074
|
+
}, $strict>, ZodObject<{
|
|
2075
|
+
type: ZodLiteral<"basic">;
|
|
2076
|
+
username: ZodOptional<ZodString>;
|
|
2077
|
+
password: ZodOptional<ZodString>;
|
|
2078
|
+
encoding: ZodOptional<ZodString>;
|
|
2079
|
+
}, $strict>, ZodObject<{
|
|
2080
|
+
type: ZodLiteral<"bearer">;
|
|
2081
|
+
token: ZodString;
|
|
2082
|
+
includeBearer: ZodDefault<ZodOptional<ZodBoolean>>;
|
|
2083
|
+
}, $strict>, ZodObject<{
|
|
2084
|
+
type: ZodLiteral<"oauth2">;
|
|
2085
|
+
authorizationUrl: ZodOptional<ZodString>;
|
|
2086
|
+
authorizationParams: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
2087
|
+
tokenUrl: ZodOptional<ZodString>;
|
|
2088
|
+
tokenParams: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
2089
|
+
tokenExpiresIn: ZodOptional<ZodNumber>;
|
|
2090
|
+
tokenRefreshExpiresIn: ZodOptional<ZodNumber>;
|
|
2091
|
+
token: ZodString;
|
|
2092
|
+
includeBearer: ZodDefault<ZodOptional<ZodBoolean>>;
|
|
2093
|
+
scopes: ZodOptional<ZodString>;
|
|
2094
|
+
scopeDelimiter: ZodOptional<ZodString>;
|
|
2095
|
+
customHeaders: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
2096
|
+
pkce: ZodOptional<ZodBoolean>;
|
|
2097
|
+
additionalTokenFields: ZodOptional<ZodRecord<ZodString, ZodOptional<ZodString>>>;
|
|
2098
|
+
issuer: ZodOptional<ZodString>;
|
|
2099
|
+
}, $strict>]>>;
|
|
2100
|
+
envelope: ZodOptional<ZodUnion<readonly [ZodString, ZodRecord<ZodString, ZodUnknown>]>>;
|
|
2101
|
+
namespaces: ZodOptional<ZodArray<ZodObject<{
|
|
2102
|
+
namespaceIdentifier: ZodString;
|
|
2103
|
+
namespace: ZodString;
|
|
2104
|
+
}, $strict>>>;
|
|
2105
|
+
soapOperation: ZodOptional<ZodString>;
|
|
2106
|
+
soapAction: ZodOptional<ZodString>;
|
|
2107
|
+
useSoapContext: ZodDefault<ZodOptional<ZodBoolean>>;
|
|
2108
|
+
response: ZodOptional<ZodObject<{
|
|
2109
|
+
collection: ZodOptional<ZodBoolean>;
|
|
2110
|
+
indexField: ZodOptional<ZodString>;
|
|
2111
|
+
dataKey: ZodOptional<ZodString>;
|
|
2112
|
+
}, $strict>>;
|
|
2113
|
+
customErrors: ZodOptional<ZodArray<ZodObject<{
|
|
2114
|
+
receivedStatus: ZodNumber;
|
|
2115
|
+
targetStatus: ZodNumber;
|
|
2116
|
+
message: ZodOptional<ZodString>;
|
|
2117
|
+
condition: ZodOptional<ZodString>;
|
|
2118
|
+
}, $strict>>>;
|
|
2119
|
+
args: ZodOptional<ZodArray<ZodObject<{
|
|
2120
|
+
name: ZodString;
|
|
2121
|
+
value: ZodUnknown;
|
|
2122
|
+
in: ZodEnum<{
|
|
1387
2123
|
query: "query";
|
|
1388
2124
|
body: "body";
|
|
1389
2125
|
headers: "headers";
|
|
1390
2126
|
}>;
|
|
1391
|
-
condition:
|
|
1392
|
-
arrayFormat:
|
|
2127
|
+
condition: ZodOptional<ZodString>;
|
|
2128
|
+
arrayFormat: ZodOptional<ZodEnum<{
|
|
1393
2129
|
repeat: "repeat";
|
|
1394
2130
|
brackets: "brackets";
|
|
1395
2131
|
comma: "comma";
|
|
1396
2132
|
stringify: "stringify";
|
|
1397
2133
|
}>>;
|
|
1398
|
-
},
|
|
1399
|
-
},
|
|
1400
|
-
outputSchema:
|
|
1401
|
-
data:
|
|
1402
|
-
raw:
|
|
1403
|
-
statusCode:
|
|
1404
|
-
message:
|
|
1405
|
-
},
|
|
2134
|
+
}, $strict>>>;
|
|
2135
|
+
}, $strip>;
|
|
2136
|
+
outputSchema: ZodOptional<ZodObject<{
|
|
2137
|
+
data: ZodOptional<ZodUnknown>;
|
|
2138
|
+
raw: ZodOptional<ZodUnknown>;
|
|
2139
|
+
statusCode: ZodNumber;
|
|
2140
|
+
message: ZodOptional<ZodString>;
|
|
2141
|
+
}, $strict>>;
|
|
1406
2142
|
};
|
|
1407
2143
|
};
|
|
1408
2144
|
soap_paginated_request: {
|
|
1409
2145
|
v1: {
|
|
1410
2146
|
fn: StepFunction;
|
|
1411
|
-
inputSchema:
|
|
1412
|
-
baseUrl:
|
|
1413
|
-
url:
|
|
1414
|
-
method:
|
|
2147
|
+
inputSchema: ZodObject<{
|
|
2148
|
+
baseUrl: ZodOptional<ZodString>;
|
|
2149
|
+
url: ZodString;
|
|
2150
|
+
method: ZodEnum<{
|
|
1415
2151
|
get: "get";
|
|
1416
2152
|
post: "post";
|
|
1417
2153
|
put: "put";
|
|
1418
2154
|
delete: "delete";
|
|
1419
2155
|
patch: "patch";
|
|
1420
2156
|
}>;
|
|
1421
|
-
authorization:
|
|
1422
|
-
type:
|
|
1423
|
-
},
|
|
1424
|
-
type:
|
|
1425
|
-
username:
|
|
1426
|
-
password:
|
|
1427
|
-
encoding:
|
|
1428
|
-
},
|
|
1429
|
-
type:
|
|
1430
|
-
token:
|
|
1431
|
-
includeBearer:
|
|
1432
|
-
},
|
|
1433
|
-
type:
|
|
1434
|
-
token:
|
|
1435
|
-
includeBearer:
|
|
1436
|
-
},
|
|
1437
|
-
envelope:
|
|
1438
|
-
namespaces:
|
|
1439
|
-
namespaceIdentifier:
|
|
1440
|
-
namespace:
|
|
1441
|
-
},
|
|
1442
|
-
soapOperation:
|
|
1443
|
-
soapAction:
|
|
1444
|
-
useSoapContext:
|
|
1445
|
-
response:
|
|
1446
|
-
collection:
|
|
1447
|
-
indexField:
|
|
1448
|
-
dataKey:
|
|
1449
|
-
nextKey:
|
|
1450
|
-
nextKeyIn:
|
|
2157
|
+
authorization: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
|
|
2158
|
+
type: ZodLiteral<"none">;
|
|
2159
|
+
}, $strict>, ZodObject<{
|
|
2160
|
+
type: ZodLiteral<"basic">;
|
|
2161
|
+
username: ZodOptional<ZodString>;
|
|
2162
|
+
password: ZodOptional<ZodString>;
|
|
2163
|
+
encoding: ZodOptional<ZodString>;
|
|
2164
|
+
}, $strict>, ZodObject<{
|
|
2165
|
+
type: ZodLiteral<"bearer">;
|
|
2166
|
+
token: ZodString;
|
|
2167
|
+
includeBearer: ZodDefault<ZodOptional<ZodBoolean>>;
|
|
2168
|
+
}, $strict>, ZodObject<{
|
|
2169
|
+
type: ZodLiteral<"oauth2">;
|
|
2170
|
+
token: ZodString;
|
|
2171
|
+
includeBearer: ZodDefault<ZodOptional<ZodBoolean>>;
|
|
2172
|
+
}, $strict>]>>;
|
|
2173
|
+
envelope: ZodOptional<ZodUnion<readonly [ZodString, ZodRecord<ZodString, ZodUnknown>]>>;
|
|
2174
|
+
namespaces: ZodOptional<ZodArray<ZodObject<{
|
|
2175
|
+
namespaceIdentifier: ZodString;
|
|
2176
|
+
namespace: ZodString;
|
|
2177
|
+
}, $strict>>>;
|
|
2178
|
+
soapOperation: ZodOptional<ZodString>;
|
|
2179
|
+
soapAction: ZodOptional<ZodString>;
|
|
2180
|
+
useSoapContext: ZodDefault<ZodOptional<ZodBoolean>>;
|
|
2181
|
+
response: ZodOptional<ZodObject<{
|
|
2182
|
+
collection: ZodOptional<ZodBoolean>;
|
|
2183
|
+
indexField: ZodOptional<ZodString>;
|
|
2184
|
+
dataKey: ZodOptional<ZodString>;
|
|
2185
|
+
nextKey: ZodOptional<ZodString>;
|
|
2186
|
+
nextKeyIn: ZodOptional<ZodEnum<{
|
|
1451
2187
|
data: "data";
|
|
1452
2188
|
headers: "headers";
|
|
1453
2189
|
}>>;
|
|
1454
|
-
},
|
|
1455
|
-
iterator:
|
|
1456
|
-
key:
|
|
1457
|
-
in:
|
|
2190
|
+
}, $strict>>;
|
|
2191
|
+
iterator: ZodObject<{
|
|
2192
|
+
key: ZodString;
|
|
2193
|
+
in: ZodEnum<{
|
|
1458
2194
|
query: "query";
|
|
1459
2195
|
body: "body";
|
|
1460
2196
|
headers: "headers";
|
|
1461
2197
|
}>;
|
|
1462
|
-
},
|
|
1463
|
-
cursor:
|
|
1464
|
-
token:
|
|
1465
|
-
position:
|
|
1466
|
-
},
|
|
1467
|
-
customErrors:
|
|
1468
|
-
receivedStatus:
|
|
1469
|
-
targetStatus:
|
|
1470
|
-
message:
|
|
1471
|
-
condition:
|
|
1472
|
-
},
|
|
1473
|
-
args:
|
|
1474
|
-
name:
|
|
1475
|
-
value:
|
|
1476
|
-
in:
|
|
2198
|
+
}, $strict>;
|
|
2199
|
+
cursor: ZodOptional<ZodObject<{
|
|
2200
|
+
token: ZodNullable<ZodOptional<ZodString>>;
|
|
2201
|
+
position: ZodNullable<ZodOptional<ZodNumber>>;
|
|
2202
|
+
}, $strict>>;
|
|
2203
|
+
customErrors: ZodOptional<ZodArray<ZodObject<{
|
|
2204
|
+
receivedStatus: ZodNumber;
|
|
2205
|
+
targetStatus: ZodNumber;
|
|
2206
|
+
message: ZodOptional<ZodString>;
|
|
2207
|
+
condition: ZodOptional<ZodString>;
|
|
2208
|
+
}, $strict>>>;
|
|
2209
|
+
args: ZodOptional<ZodArray<ZodObject<{
|
|
2210
|
+
name: ZodString;
|
|
2211
|
+
value: ZodUnknown;
|
|
2212
|
+
in: ZodEnum<{
|
|
1477
2213
|
query: "query";
|
|
1478
2214
|
body: "body";
|
|
1479
2215
|
headers: "headers";
|
|
1480
2216
|
}>;
|
|
1481
|
-
condition:
|
|
1482
|
-
arrayFormat:
|
|
2217
|
+
condition: ZodOptional<ZodString>;
|
|
2218
|
+
arrayFormat: ZodOptional<ZodEnum<{
|
|
1483
2219
|
repeat: "repeat";
|
|
1484
2220
|
brackets: "brackets";
|
|
1485
2221
|
comma: "comma";
|
|
1486
2222
|
stringify: "stringify";
|
|
1487
2223
|
}>>;
|
|
1488
|
-
},
|
|
1489
|
-
},
|
|
1490
|
-
outputSchema:
|
|
1491
|
-
data:
|
|
1492
|
-
raw:
|
|
1493
|
-
statusCode:
|
|
1494
|
-
message:
|
|
1495
|
-
next:
|
|
1496
|
-
position:
|
|
1497
|
-
},
|
|
2224
|
+
}, $strict>>>;
|
|
2225
|
+
}, $strip>;
|
|
2226
|
+
outputSchema: ZodOptional<ZodObject<{
|
|
2227
|
+
data: ZodOptional<ZodUnknown>;
|
|
2228
|
+
raw: ZodOptional<ZodUnknown>;
|
|
2229
|
+
statusCode: ZodNumber;
|
|
2230
|
+
message: ZodOptional<ZodString>;
|
|
2231
|
+
next: ZodNullable<ZodOptional<ZodString>>;
|
|
2232
|
+
position: ZodOptional<ZodNumber>;
|
|
2233
|
+
}, $strict>>;
|
|
1498
2234
|
};
|
|
1499
2235
|
};
|
|
1500
2236
|
static_values: {
|
|
1501
2237
|
v1: {
|
|
1502
2238
|
fn: StepFunction;
|
|
1503
|
-
inputSchema:
|
|
1504
|
-
values:
|
|
1505
|
-
},
|
|
1506
|
-
outputSchema:
|
|
1507
|
-
data:
|
|
1508
|
-
},
|
|
2239
|
+
inputSchema: ZodObject<{
|
|
2240
|
+
values: ZodUnion<[ZodUnion<[ZodString, ZodRecord<ZodString, ZodUnknown>]>, ZodArray<ZodUnknown>]>;
|
|
2241
|
+
}, $strip>;
|
|
2242
|
+
outputSchema: ZodObject<{
|
|
2243
|
+
data: ZodUnknown;
|
|
2244
|
+
}, $strip>;
|
|
1509
2245
|
};
|
|
1510
2246
|
};
|
|
1511
2247
|
upload_file: {
|
|
1512
2248
|
v1: {
|
|
1513
2249
|
fn: StepFunction;
|
|
1514
|
-
inputSchema:
|
|
1515
|
-
baseUrl:
|
|
1516
|
-
url:
|
|
1517
|
-
method:
|
|
2250
|
+
inputSchema: ZodObject<{
|
|
2251
|
+
baseUrl: ZodOptional<ZodString>;
|
|
2252
|
+
url: ZodString;
|
|
2253
|
+
method: ZodDefault<ZodEnum<{
|
|
1518
2254
|
get: "get";
|
|
1519
2255
|
post: "post";
|
|
1520
2256
|
put: "put";
|
|
1521
2257
|
delete: "delete";
|
|
1522
2258
|
patch: "patch";
|
|
1523
2259
|
}>>;
|
|
1524
|
-
authorization:
|
|
1525
|
-
type:
|
|
1526
|
-
signing:
|
|
1527
|
-
strategy:
|
|
1528
|
-
service:
|
|
1529
|
-
region:
|
|
1530
|
-
},
|
|
1531
|
-
strategy:
|
|
1532
|
-
algorithm:
|
|
2260
|
+
authorization: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
|
|
2261
|
+
type: ZodLiteral<"none">;
|
|
2262
|
+
signing: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
|
|
2263
|
+
strategy: ZodLiteral<"aws4">;
|
|
2264
|
+
service: ZodString;
|
|
2265
|
+
region: ZodOptional<ZodString>;
|
|
2266
|
+
}, $strict>, ZodObject<{
|
|
2267
|
+
strategy: ZodLiteral<"hmac">;
|
|
2268
|
+
algorithm: ZodOptional<ZodEnum<{
|
|
1533
2269
|
sha256: "sha256";
|
|
1534
2270
|
sha512: "sha512";
|
|
1535
2271
|
}>>;
|
|
1536
|
-
headerName:
|
|
1537
|
-
prefix:
|
|
1538
|
-
},
|
|
1539
|
-
},
|
|
1540
|
-
type:
|
|
1541
|
-
username:
|
|
1542
|
-
password:
|
|
1543
|
-
encoding:
|
|
1544
|
-
},
|
|
1545
|
-
type:
|
|
1546
|
-
token:
|
|
1547
|
-
includeBearer:
|
|
1548
|
-
},
|
|
1549
|
-
type:
|
|
1550
|
-
authorizationUrl:
|
|
1551
|
-
authorizationParams:
|
|
1552
|
-
tokenUrl:
|
|
1553
|
-
tokenParams:
|
|
1554
|
-
tokenExpiresIn:
|
|
1555
|
-
tokenRefreshExpiresIn:
|
|
1556
|
-
token:
|
|
1557
|
-
includeBearer:
|
|
1558
|
-
scopes:
|
|
1559
|
-
scopeDelimiter:
|
|
1560
|
-
customHeaders:
|
|
1561
|
-
pkce:
|
|
1562
|
-
additionalTokenFields:
|
|
1563
|
-
issuer:
|
|
1564
|
-
},
|
|
1565
|
-
file:
|
|
1566
|
-
fieldName:
|
|
1567
|
-
content:
|
|
1568
|
-
filename:
|
|
1569
|
-
contentType:
|
|
1570
|
-
},
|
|
1571
|
-
additionalFields:
|
|
1572
|
-
name:
|
|
1573
|
-
value:
|
|
1574
|
-
condition:
|
|
1575
|
-
contentType:
|
|
1576
|
-
},
|
|
1577
|
-
response:
|
|
1578
|
-
collection:
|
|
1579
|
-
indexField:
|
|
1580
|
-
dataKey:
|
|
1581
|
-
},
|
|
1582
|
-
customErrors:
|
|
1583
|
-
receivedStatus:
|
|
1584
|
-
targetStatus:
|
|
1585
|
-
message:
|
|
1586
|
-
condition:
|
|
1587
|
-
},
|
|
1588
|
-
args:
|
|
1589
|
-
name:
|
|
1590
|
-
value:
|
|
1591
|
-
in:
|
|
2272
|
+
headerName: ZodOptional<ZodString>;
|
|
2273
|
+
prefix: ZodOptional<ZodString>;
|
|
2274
|
+
}, $strict>]>>;
|
|
2275
|
+
}, $strict>, ZodObject<{
|
|
2276
|
+
type: ZodLiteral<"basic">;
|
|
2277
|
+
username: ZodOptional<ZodString>;
|
|
2278
|
+
password: ZodOptional<ZodString>;
|
|
2279
|
+
encoding: ZodOptional<ZodString>;
|
|
2280
|
+
}, $strict>, ZodObject<{
|
|
2281
|
+
type: ZodLiteral<"bearer">;
|
|
2282
|
+
token: ZodString;
|
|
2283
|
+
includeBearer: ZodDefault<ZodOptional<ZodBoolean>>;
|
|
2284
|
+
}, $strict>, ZodObject<{
|
|
2285
|
+
type: ZodLiteral<"oauth2">;
|
|
2286
|
+
authorizationUrl: ZodOptional<ZodString>;
|
|
2287
|
+
authorizationParams: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
2288
|
+
tokenUrl: ZodOptional<ZodString>;
|
|
2289
|
+
tokenParams: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
2290
|
+
tokenExpiresIn: ZodOptional<ZodNumber>;
|
|
2291
|
+
tokenRefreshExpiresIn: ZodOptional<ZodNumber>;
|
|
2292
|
+
token: ZodString;
|
|
2293
|
+
includeBearer: ZodDefault<ZodOptional<ZodBoolean>>;
|
|
2294
|
+
scopes: ZodOptional<ZodString>;
|
|
2295
|
+
scopeDelimiter: ZodOptional<ZodString>;
|
|
2296
|
+
customHeaders: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
2297
|
+
pkce: ZodOptional<ZodBoolean>;
|
|
2298
|
+
additionalTokenFields: ZodOptional<ZodRecord<ZodString, ZodOptional<ZodString>>>;
|
|
2299
|
+
issuer: ZodOptional<ZodString>;
|
|
2300
|
+
}, $strict>]>>;
|
|
2301
|
+
file: ZodObject<{
|
|
2302
|
+
fieldName: ZodString;
|
|
2303
|
+
content: ZodString;
|
|
2304
|
+
filename: ZodString;
|
|
2305
|
+
contentType: ZodOptional<ZodString>;
|
|
2306
|
+
}, $strict>;
|
|
2307
|
+
additionalFields: ZodOptional<ZodArray<ZodObject<{
|
|
2308
|
+
name: ZodString;
|
|
2309
|
+
value: ZodUnknown;
|
|
2310
|
+
condition: ZodOptional<ZodString>;
|
|
2311
|
+
contentType: ZodOptional<ZodString>;
|
|
2312
|
+
}, $strict>>>;
|
|
2313
|
+
response: ZodOptional<ZodObject<{
|
|
2314
|
+
collection: ZodOptional<ZodBoolean>;
|
|
2315
|
+
indexField: ZodOptional<ZodString>;
|
|
2316
|
+
dataKey: ZodOptional<ZodString>;
|
|
2317
|
+
}, $strict>>;
|
|
2318
|
+
customErrors: ZodOptional<ZodArray<ZodObject<{
|
|
2319
|
+
receivedStatus: ZodNumber;
|
|
2320
|
+
targetStatus: ZodNumber;
|
|
2321
|
+
message: ZodOptional<ZodString>;
|
|
2322
|
+
condition: ZodOptional<ZodString>;
|
|
2323
|
+
}, $strict>>>;
|
|
2324
|
+
args: ZodOptional<ZodArray<ZodObject<{
|
|
2325
|
+
name: ZodString;
|
|
2326
|
+
value: ZodUnknown;
|
|
2327
|
+
in: ZodEnum<{
|
|
1592
2328
|
query: "query";
|
|
1593
2329
|
body: "body";
|
|
1594
2330
|
headers: "headers";
|
|
1595
2331
|
}>;
|
|
1596
|
-
spread:
|
|
1597
|
-
condition:
|
|
1598
|
-
arrayFormat:
|
|
2332
|
+
spread: ZodOptional<ZodBoolean>;
|
|
2333
|
+
condition: ZodOptional<ZodString>;
|
|
2334
|
+
arrayFormat: ZodOptional<ZodEnum<{
|
|
1599
2335
|
repeat: "repeat";
|
|
1600
2336
|
brackets: "brackets";
|
|
1601
2337
|
comma: "comma";
|
|
1602
2338
|
stringify: "stringify";
|
|
1603
2339
|
}>>;
|
|
1604
|
-
},
|
|
1605
|
-
},
|
|
1606
|
-
outputSchema:
|
|
1607
|
-
data:
|
|
1608
|
-
raw:
|
|
1609
|
-
statusCode:
|
|
1610
|
-
message:
|
|
1611
|
-
},
|
|
2340
|
+
}, $strict>>>;
|
|
2341
|
+
}, $strip>;
|
|
2342
|
+
outputSchema: ZodOptional<ZodObject<{
|
|
2343
|
+
data: ZodOptional<ZodUnknown>;
|
|
2344
|
+
raw: ZodOptional<ZodUnknown>;
|
|
2345
|
+
statusCode: ZodNumber;
|
|
2346
|
+
message: ZodOptional<ZodString>;
|
|
2347
|
+
}, $strict>>;
|
|
1612
2348
|
};
|
|
1613
2349
|
};
|
|
1614
2350
|
upload_binary: {
|
|
1615
2351
|
v1: {
|
|
1616
2352
|
fn: StepFunction;
|
|
1617
|
-
inputSchema:
|
|
1618
|
-
baseUrl:
|
|
1619
|
-
url:
|
|
1620
|
-
method:
|
|
2353
|
+
inputSchema: ZodObject<{
|
|
2354
|
+
baseUrl: ZodOptional<ZodString>;
|
|
2355
|
+
url: ZodString;
|
|
2356
|
+
method: ZodDefault<ZodEnum<{
|
|
1621
2357
|
get: "get";
|
|
1622
2358
|
post: "post";
|
|
1623
2359
|
put: "put";
|
|
1624
2360
|
delete: "delete";
|
|
1625
2361
|
patch: "patch";
|
|
1626
2362
|
}>>;
|
|
1627
|
-
authorization:
|
|
1628
|
-
type:
|
|
1629
|
-
signing:
|
|
1630
|
-
strategy:
|
|
1631
|
-
service:
|
|
1632
|
-
region:
|
|
1633
|
-
},
|
|
1634
|
-
strategy:
|
|
1635
|
-
algorithm:
|
|
2363
|
+
authorization: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
|
|
2364
|
+
type: ZodLiteral<"none">;
|
|
2365
|
+
signing: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
|
|
2366
|
+
strategy: ZodLiteral<"aws4">;
|
|
2367
|
+
service: ZodString;
|
|
2368
|
+
region: ZodOptional<ZodString>;
|
|
2369
|
+
}, $strict>, ZodObject<{
|
|
2370
|
+
strategy: ZodLiteral<"hmac">;
|
|
2371
|
+
algorithm: ZodOptional<ZodEnum<{
|
|
1636
2372
|
sha256: "sha256";
|
|
1637
2373
|
sha512: "sha512";
|
|
1638
2374
|
}>>;
|
|
1639
|
-
headerName:
|
|
1640
|
-
prefix:
|
|
1641
|
-
},
|
|
1642
|
-
},
|
|
1643
|
-
type:
|
|
1644
|
-
username:
|
|
1645
|
-
password:
|
|
1646
|
-
encoding:
|
|
1647
|
-
},
|
|
1648
|
-
type:
|
|
1649
|
-
token:
|
|
1650
|
-
includeBearer:
|
|
1651
|
-
},
|
|
1652
|
-
type:
|
|
1653
|
-
authorizationUrl:
|
|
1654
|
-
authorizationParams:
|
|
1655
|
-
tokenUrl:
|
|
1656
|
-
tokenParams:
|
|
1657
|
-
tokenExpiresIn:
|
|
1658
|
-
tokenRefreshExpiresIn:
|
|
1659
|
-
token:
|
|
1660
|
-
includeBearer:
|
|
1661
|
-
scopes:
|
|
1662
|
-
scopeDelimiter:
|
|
1663
|
-
customHeaders:
|
|
1664
|
-
pkce:
|
|
1665
|
-
additionalTokenFields:
|
|
1666
|
-
issuer:
|
|
1667
|
-
},
|
|
1668
|
-
binaryContent:
|
|
1669
|
-
content:
|
|
1670
|
-
contentType:
|
|
1671
|
-
},
|
|
1672
|
-
response:
|
|
1673
|
-
collection:
|
|
1674
|
-
indexField:
|
|
1675
|
-
dataKey:
|
|
1676
|
-
},
|
|
1677
|
-
customErrors:
|
|
1678
|
-
receivedStatus:
|
|
1679
|
-
targetStatus:
|
|
1680
|
-
message:
|
|
1681
|
-
condition:
|
|
1682
|
-
},
|
|
1683
|
-
args:
|
|
1684
|
-
name:
|
|
1685
|
-
value:
|
|
1686
|
-
in:
|
|
2375
|
+
headerName: ZodOptional<ZodString>;
|
|
2376
|
+
prefix: ZodOptional<ZodString>;
|
|
2377
|
+
}, $strict>]>>;
|
|
2378
|
+
}, $strict>, ZodObject<{
|
|
2379
|
+
type: ZodLiteral<"basic">;
|
|
2380
|
+
username: ZodOptional<ZodString>;
|
|
2381
|
+
password: ZodOptional<ZodString>;
|
|
2382
|
+
encoding: ZodOptional<ZodString>;
|
|
2383
|
+
}, $strict>, ZodObject<{
|
|
2384
|
+
type: ZodLiteral<"bearer">;
|
|
2385
|
+
token: ZodString;
|
|
2386
|
+
includeBearer: ZodDefault<ZodOptional<ZodBoolean>>;
|
|
2387
|
+
}, $strict>, ZodObject<{
|
|
2388
|
+
type: ZodLiteral<"oauth2">;
|
|
2389
|
+
authorizationUrl: ZodOptional<ZodString>;
|
|
2390
|
+
authorizationParams: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
2391
|
+
tokenUrl: ZodOptional<ZodString>;
|
|
2392
|
+
tokenParams: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
2393
|
+
tokenExpiresIn: ZodOptional<ZodNumber>;
|
|
2394
|
+
tokenRefreshExpiresIn: ZodOptional<ZodNumber>;
|
|
2395
|
+
token: ZodString;
|
|
2396
|
+
includeBearer: ZodDefault<ZodOptional<ZodBoolean>>;
|
|
2397
|
+
scopes: ZodOptional<ZodString>;
|
|
2398
|
+
scopeDelimiter: ZodOptional<ZodString>;
|
|
2399
|
+
customHeaders: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
2400
|
+
pkce: ZodOptional<ZodBoolean>;
|
|
2401
|
+
additionalTokenFields: ZodOptional<ZodRecord<ZodString, ZodOptional<ZodString>>>;
|
|
2402
|
+
issuer: ZodOptional<ZodString>;
|
|
2403
|
+
}, $strict>]>>;
|
|
2404
|
+
binaryContent: ZodObject<{
|
|
2405
|
+
content: ZodString;
|
|
2406
|
+
contentType: ZodOptional<ZodString>;
|
|
2407
|
+
}, $strict>;
|
|
2408
|
+
response: ZodOptional<ZodObject<{
|
|
2409
|
+
collection: ZodOptional<ZodBoolean>;
|
|
2410
|
+
indexField: ZodOptional<ZodString>;
|
|
2411
|
+
dataKey: ZodOptional<ZodString>;
|
|
2412
|
+
}, $strict>>;
|
|
2413
|
+
customErrors: ZodOptional<ZodArray<ZodObject<{
|
|
2414
|
+
receivedStatus: ZodNumber;
|
|
2415
|
+
targetStatus: ZodNumber;
|
|
2416
|
+
message: ZodOptional<ZodString>;
|
|
2417
|
+
condition: ZodOptional<ZodString>;
|
|
2418
|
+
}, $strict>>>;
|
|
2419
|
+
args: ZodOptional<ZodArray<ZodObject<{
|
|
2420
|
+
name: ZodString;
|
|
2421
|
+
value: ZodUnknown;
|
|
2422
|
+
in: ZodEnum<{
|
|
1687
2423
|
query: "query";
|
|
1688
2424
|
body: "body";
|
|
1689
2425
|
headers: "headers";
|
|
1690
2426
|
}>;
|
|
1691
|
-
spread:
|
|
1692
|
-
condition:
|
|
1693
|
-
arrayFormat:
|
|
2427
|
+
spread: ZodOptional<ZodBoolean>;
|
|
2428
|
+
condition: ZodOptional<ZodString>;
|
|
2429
|
+
arrayFormat: ZodOptional<ZodEnum<{
|
|
1694
2430
|
repeat: "repeat";
|
|
1695
2431
|
brackets: "brackets";
|
|
1696
2432
|
comma: "comma";
|
|
1697
2433
|
stringify: "stringify";
|
|
1698
2434
|
}>>;
|
|
1699
|
-
},
|
|
1700
|
-
},
|
|
1701
|
-
outputSchema:
|
|
1702
|
-
data:
|
|
1703
|
-
raw:
|
|
1704
|
-
statusCode:
|
|
1705
|
-
message:
|
|
1706
|
-
},
|
|
2435
|
+
}, $strict>>>;
|
|
2436
|
+
}, $strip>;
|
|
2437
|
+
outputSchema: ZodOptional<ZodObject<{
|
|
2438
|
+
data: ZodOptional<ZodUnknown>;
|
|
2439
|
+
raw: ZodOptional<ZodUnknown>;
|
|
2440
|
+
statusCode: ZodNumber;
|
|
2441
|
+
message: ZodOptional<ZodString>;
|
|
2442
|
+
}, $strict>>;
|
|
1707
2443
|
};
|
|
1708
2444
|
};
|
|
1709
2445
|
download_file: {
|
|
1710
2446
|
v1: {
|
|
1711
2447
|
fn: StepFunction;
|
|
1712
|
-
inputSchema:
|
|
1713
|
-
baseUrl:
|
|
1714
|
-
url:
|
|
1715
|
-
method:
|
|
2448
|
+
inputSchema: ZodObject<{
|
|
2449
|
+
baseUrl: ZodOptional<ZodString>;
|
|
2450
|
+
url: ZodString;
|
|
2451
|
+
method: ZodDefault<ZodOptional<ZodEnum<{
|
|
1716
2452
|
get: "get";
|
|
1717
2453
|
post: "post";
|
|
1718
2454
|
put: "put";
|
|
1719
2455
|
delete: "delete";
|
|
1720
2456
|
patch: "patch";
|
|
1721
2457
|
}>>>;
|
|
1722
|
-
authorization:
|
|
1723
|
-
type:
|
|
1724
|
-
signing:
|
|
1725
|
-
strategy:
|
|
1726
|
-
service:
|
|
1727
|
-
region:
|
|
1728
|
-
},
|
|
1729
|
-
strategy:
|
|
1730
|
-
algorithm:
|
|
2458
|
+
authorization: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
|
|
2459
|
+
type: ZodLiteral<"none">;
|
|
2460
|
+
signing: ZodOptional<ZodDiscriminatedUnion<[ZodObject<{
|
|
2461
|
+
strategy: ZodLiteral<"aws4">;
|
|
2462
|
+
service: ZodString;
|
|
2463
|
+
region: ZodOptional<ZodString>;
|
|
2464
|
+
}, $strict>, ZodObject<{
|
|
2465
|
+
strategy: ZodLiteral<"hmac">;
|
|
2466
|
+
algorithm: ZodOptional<ZodEnum<{
|
|
1731
2467
|
sha256: "sha256";
|
|
1732
2468
|
sha512: "sha512";
|
|
1733
2469
|
}>>;
|
|
1734
|
-
headerName:
|
|
1735
|
-
prefix:
|
|
1736
|
-
},
|
|
1737
|
-
},
|
|
1738
|
-
type:
|
|
1739
|
-
username:
|
|
1740
|
-
password:
|
|
1741
|
-
encoding:
|
|
1742
|
-
},
|
|
1743
|
-
type:
|
|
1744
|
-
token:
|
|
1745
|
-
includeBearer:
|
|
1746
|
-
},
|
|
1747
|
-
type:
|
|
1748
|
-
authorizationUrl:
|
|
1749
|
-
authorizationParams:
|
|
1750
|
-
tokenUrl:
|
|
1751
|
-
tokenParams:
|
|
1752
|
-
tokenExpiresIn:
|
|
1753
|
-
tokenRefreshExpiresIn:
|
|
1754
|
-
token:
|
|
1755
|
-
includeBearer:
|
|
1756
|
-
scopes:
|
|
1757
|
-
scopeDelimiter:
|
|
1758
|
-
customHeaders:
|
|
1759
|
-
pkce:
|
|
1760
|
-
additionalTokenFields:
|
|
1761
|
-
issuer:
|
|
1762
|
-
},
|
|
1763
|
-
responseMode:
|
|
2470
|
+
headerName: ZodOptional<ZodString>;
|
|
2471
|
+
prefix: ZodOptional<ZodString>;
|
|
2472
|
+
}, $strict>]>>;
|
|
2473
|
+
}, $strict>, ZodObject<{
|
|
2474
|
+
type: ZodLiteral<"basic">;
|
|
2475
|
+
username: ZodOptional<ZodString>;
|
|
2476
|
+
password: ZodOptional<ZodString>;
|
|
2477
|
+
encoding: ZodOptional<ZodString>;
|
|
2478
|
+
}, $strict>, ZodObject<{
|
|
2479
|
+
type: ZodLiteral<"bearer">;
|
|
2480
|
+
token: ZodString;
|
|
2481
|
+
includeBearer: ZodDefault<ZodOptional<ZodBoolean>>;
|
|
2482
|
+
}, $strict>, ZodObject<{
|
|
2483
|
+
type: ZodLiteral<"oauth2">;
|
|
2484
|
+
authorizationUrl: ZodOptional<ZodString>;
|
|
2485
|
+
authorizationParams: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
2486
|
+
tokenUrl: ZodOptional<ZodString>;
|
|
2487
|
+
tokenParams: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
2488
|
+
tokenExpiresIn: ZodOptional<ZodNumber>;
|
|
2489
|
+
tokenRefreshExpiresIn: ZodOptional<ZodNumber>;
|
|
2490
|
+
token: ZodString;
|
|
2491
|
+
includeBearer: ZodDefault<ZodOptional<ZodBoolean>>;
|
|
2492
|
+
scopes: ZodOptional<ZodString>;
|
|
2493
|
+
scopeDelimiter: ZodOptional<ZodString>;
|
|
2494
|
+
customHeaders: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
2495
|
+
pkce: ZodOptional<ZodBoolean>;
|
|
2496
|
+
additionalTokenFields: ZodOptional<ZodRecord<ZodString, ZodOptional<ZodString>>>;
|
|
2497
|
+
issuer: ZodOptional<ZodString>;
|
|
2498
|
+
}, $strict>]>>;
|
|
2499
|
+
responseMode: ZodDefault<ZodOptional<ZodEnum<{
|
|
1764
2500
|
buffer: "buffer";
|
|
1765
2501
|
stream: "stream";
|
|
1766
2502
|
}>>>;
|
|
1767
|
-
responseType:
|
|
2503
|
+
responseType: ZodDefault<ZodOptional<ZodEnum<{
|
|
1768
2504
|
arraybuffer: "arraybuffer";
|
|
1769
2505
|
blob: "blob";
|
|
1770
2506
|
text: "text";
|
|
1771
2507
|
json: "json";
|
|
1772
2508
|
}>>>;
|
|
1773
|
-
encoding:
|
|
2509
|
+
encoding: ZodDefault<ZodOptional<ZodEnum<{
|
|
1774
2510
|
none: "none";
|
|
1775
2511
|
raw: "raw";
|
|
1776
2512
|
base64: "base64";
|
|
1777
2513
|
utf8: "utf8";
|
|
1778
2514
|
binary: "binary";
|
|
1779
2515
|
}>>>;
|
|
1780
|
-
response:
|
|
1781
|
-
dataKey:
|
|
1782
|
-
fileNameKey:
|
|
1783
|
-
contentTypeKey:
|
|
1784
|
-
contentIsBase64:
|
|
1785
|
-
urlKey:
|
|
1786
|
-
forwardAuth:
|
|
1787
|
-
},
|
|
1788
|
-
maxRedirects:
|
|
1789
|
-
followRedirects:
|
|
1790
|
-
customErrors:
|
|
1791
|
-
receivedStatus:
|
|
1792
|
-
targetStatus:
|
|
1793
|
-
message:
|
|
1794
|
-
condition:
|
|
1795
|
-
},
|
|
1796
|
-
args:
|
|
1797
|
-
name:
|
|
1798
|
-
value:
|
|
1799
|
-
in:
|
|
2516
|
+
response: ZodOptional<ZodObject<{
|
|
2517
|
+
dataKey: ZodOptional<ZodString>;
|
|
2518
|
+
fileNameKey: ZodOptional<ZodString>;
|
|
2519
|
+
contentTypeKey: ZodOptional<ZodString>;
|
|
2520
|
+
contentIsBase64: ZodDefault<ZodOptional<ZodBoolean>>;
|
|
2521
|
+
urlKey: ZodOptional<ZodString>;
|
|
2522
|
+
forwardAuth: ZodDefault<ZodOptional<ZodBoolean>>;
|
|
2523
|
+
}, $strict>>;
|
|
2524
|
+
maxRedirects: ZodDefault<ZodOptional<ZodNumber>>;
|
|
2525
|
+
followRedirects: ZodDefault<ZodOptional<ZodBoolean>>;
|
|
2526
|
+
customErrors: ZodOptional<ZodArray<ZodObject<{
|
|
2527
|
+
receivedStatus: ZodNumber;
|
|
2528
|
+
targetStatus: ZodNumber;
|
|
2529
|
+
message: ZodOptional<ZodString>;
|
|
2530
|
+
condition: ZodOptional<ZodString>;
|
|
2531
|
+
}, $strict>>>;
|
|
2532
|
+
args: ZodOptional<ZodArray<ZodObject<{
|
|
2533
|
+
name: ZodString;
|
|
2534
|
+
value: ZodUnknown;
|
|
2535
|
+
in: ZodEnum<{
|
|
1800
2536
|
query: "query";
|
|
1801
2537
|
body: "body";
|
|
1802
2538
|
headers: "headers";
|
|
1803
2539
|
}>;
|
|
1804
|
-
spread:
|
|
1805
|
-
condition:
|
|
1806
|
-
arrayFormat:
|
|
2540
|
+
spread: ZodOptional<ZodBoolean>;
|
|
2541
|
+
condition: ZodOptional<ZodString>;
|
|
2542
|
+
arrayFormat: ZodOptional<ZodEnum<{
|
|
1807
2543
|
repeat: "repeat";
|
|
1808
2544
|
brackets: "brackets";
|
|
1809
2545
|
comma: "comma";
|
|
1810
2546
|
stringify: "stringify";
|
|
1811
2547
|
}>>;
|
|
1812
|
-
},
|
|
1813
|
-
},
|
|
1814
|
-
outputSchema:
|
|
1815
|
-
data:
|
|
1816
|
-
raw:
|
|
1817
|
-
statusCode:
|
|
1818
|
-
message:
|
|
1819
|
-
headers:
|
|
1820
|
-
contentDisposition:
|
|
1821
|
-
fileMetadata:
|
|
1822
|
-
contentType:
|
|
1823
|
-
contentLength:
|
|
1824
|
-
fileName:
|
|
1825
|
-
lastModified:
|
|
1826
|
-
etag:
|
|
1827
|
-
},
|
|
1828
|
-
finalUrl:
|
|
1829
|
-
},
|
|
2548
|
+
}, $strict>>>;
|
|
2549
|
+
}, $strip>;
|
|
2550
|
+
outputSchema: ZodOptional<ZodObject<{
|
|
2551
|
+
data: ZodOptional<ZodUnion<readonly [ZodString, ZodCustom<Buffer<ArrayBufferLike>, Buffer<ArrayBufferLike>>]>>;
|
|
2552
|
+
raw: ZodOptional<ZodUnknown>;
|
|
2553
|
+
statusCode: ZodNumber;
|
|
2554
|
+
message: ZodOptional<ZodString>;
|
|
2555
|
+
headers: ZodOptional<ZodRecord<ZodString, ZodString>>;
|
|
2556
|
+
contentDisposition: ZodOptional<ZodString>;
|
|
2557
|
+
fileMetadata: ZodOptional<ZodObject<{
|
|
2558
|
+
contentType: ZodOptional<ZodString>;
|
|
2559
|
+
contentLength: ZodOptional<ZodNumber>;
|
|
2560
|
+
fileName: ZodOptional<ZodString>;
|
|
2561
|
+
lastModified: ZodOptional<ZodString>;
|
|
2562
|
+
etag: ZodOptional<ZodString>;
|
|
2563
|
+
}, $strict>>;
|
|
2564
|
+
finalUrl: ZodOptional<ZodString>;
|
|
2565
|
+
}, $strict>>;
|
|
1830
2566
|
};
|
|
1831
2567
|
};
|
|
1832
2568
|
emit_event: {
|
|
1833
2569
|
v1: {
|
|
1834
2570
|
fn: StepFunction;
|
|
1835
|
-
inputSchema:
|
|
1836
|
-
event:
|
|
1837
|
-
eventType:
|
|
1838
|
-
eventId:
|
|
1839
|
-
eventDate:
|
|
1840
|
-
data:
|
|
1841
|
-
},
|
|
1842
|
-
},
|
|
1843
|
-
outputSchema:
|
|
2571
|
+
inputSchema: ZodObject<{
|
|
2572
|
+
event: ZodOptional<ZodObject<{
|
|
2573
|
+
eventType: ZodString;
|
|
2574
|
+
eventId: ZodOptional<ZodString>;
|
|
2575
|
+
eventDate: ZodOptional<ZodString>;
|
|
2576
|
+
data: ZodOptional<ZodUnknown>;
|
|
2577
|
+
}, $strip>>;
|
|
2578
|
+
}, $strip>;
|
|
2579
|
+
outputSchema: ZodRecord<ZodString, ZodUnknown>;
|
|
1844
2580
|
};
|
|
1845
2581
|
};
|
|
1846
2582
|
browser_use: {
|
|
1847
2583
|
v1: {
|
|
1848
2584
|
fn: StepFunction;
|
|
1849
|
-
inputSchema:
|
|
1850
|
-
startUrl:
|
|
1851
|
-
systemPrompt:
|
|
1852
|
-
viewport:
|
|
1853
|
-
width:
|
|
1854
|
-
height:
|
|
1855
|
-
},
|
|
1856
|
-
locale:
|
|
1857
|
-
budgets:
|
|
1858
|
-
maxDurationMs:
|
|
1859
|
-
maxSteps:
|
|
1860
|
-
},
|
|
1861
|
-
auth:
|
|
1862
|
-
sensitiveKeys:
|
|
1863
|
-
requiresSession:
|
|
1864
|
-
allowedDomains:
|
|
1865
|
-
},
|
|
1866
|
-
},
|
|
1867
|
-
outputSchema:
|
|
2585
|
+
inputSchema: ZodObject<{
|
|
2586
|
+
startUrl: ZodString;
|
|
2587
|
+
systemPrompt: ZodOptional<ZodString>;
|
|
2588
|
+
viewport: ZodOptional<ZodObject<{
|
|
2589
|
+
width: ZodNumber;
|
|
2590
|
+
height: ZodNumber;
|
|
2591
|
+
}, $strict>>;
|
|
2592
|
+
locale: ZodOptional<ZodString>;
|
|
2593
|
+
budgets: ZodObject<{
|
|
2594
|
+
maxDurationMs: ZodNumber;
|
|
2595
|
+
maxSteps: ZodNumber;
|
|
2596
|
+
}, $strict>;
|
|
2597
|
+
auth: ZodOptional<ZodObject<{
|
|
2598
|
+
sensitiveKeys: ZodOptional<ZodArray<ZodString>>;
|
|
2599
|
+
requiresSession: ZodOptional<ZodBoolean>;
|
|
2600
|
+
allowedDomains: ZodOptional<ZodArray<ZodString>>;
|
|
2601
|
+
}, $strict>>;
|
|
2602
|
+
}, $strip>;
|
|
2603
|
+
outputSchema: ZodUnknown;
|
|
1868
2604
|
};
|
|
1869
2605
|
};
|
|
1870
2606
|
code_execution_lambda: {
|
|
@@ -1876,45 +2612,45 @@ declare const stepFunctions: {
|
|
|
1876
2612
|
block: Readonly<Block>;
|
|
1877
2613
|
params?: StepFunctionParams;
|
|
1878
2614
|
}, invoker?: LambdaInvoker) => Promise<StepFunctionOutput>;
|
|
1879
|
-
inputSchema:
|
|
1880
|
-
lambdaName:
|
|
1881
|
-
region:
|
|
1882
|
-
endpoint:
|
|
1883
|
-
invocationType:
|
|
2615
|
+
inputSchema: ZodObject<{
|
|
2616
|
+
lambdaName: ZodString;
|
|
2617
|
+
region: ZodOptional<ZodString>;
|
|
2618
|
+
endpoint: ZodOptional<ZodString>;
|
|
2619
|
+
invocationType: ZodOptional<ZodEnum<{
|
|
1884
2620
|
RequestResponse: "RequestResponse";
|
|
1885
2621
|
Event: "Event";
|
|
1886
2622
|
DryRun: "DryRun";
|
|
1887
2623
|
}>>;
|
|
1888
|
-
qualifier:
|
|
1889
|
-
args:
|
|
1890
|
-
name:
|
|
1891
|
-
value:
|
|
1892
|
-
condition:
|
|
1893
|
-
},
|
|
1894
|
-
dataKey:
|
|
1895
|
-
},
|
|
1896
|
-
outputSchema:
|
|
1897
|
-
data:
|
|
1898
|
-
raw:
|
|
1899
|
-
statusCode:
|
|
1900
|
-
message:
|
|
1901
|
-
executedVersion:
|
|
1902
|
-
},
|
|
2624
|
+
qualifier: ZodOptional<ZodString>;
|
|
2625
|
+
args: ZodOptional<ZodArray<ZodObject<{
|
|
2626
|
+
name: ZodString;
|
|
2627
|
+
value: ZodUnknown;
|
|
2628
|
+
condition: ZodOptional<ZodString>;
|
|
2629
|
+
}, $strict>>>;
|
|
2630
|
+
dataKey: ZodOptional<ZodString>;
|
|
2631
|
+
}, $strict>;
|
|
2632
|
+
outputSchema: ZodOptional<ZodObject<{
|
|
2633
|
+
data: ZodOptional<ZodUnknown>;
|
|
2634
|
+
raw: ZodOptional<ZodUnknown>;
|
|
2635
|
+
statusCode: ZodNumber;
|
|
2636
|
+
message: ZodOptional<ZodString>;
|
|
2637
|
+
executedVersion: ZodOptional<ZodString>;
|
|
2638
|
+
}, $strict>>;
|
|
1903
2639
|
};
|
|
1904
2640
|
};
|
|
1905
2641
|
sign_jwt: {
|
|
1906
2642
|
v1: {
|
|
1907
2643
|
fn: StepFunction;
|
|
1908
|
-
inputSchema:
|
|
1909
|
-
algorithm:
|
|
1910
|
-
privateKey:
|
|
1911
|
-
claims:
|
|
1912
|
-
},
|
|
1913
|
-
outputSchema:
|
|
1914
|
-
token:
|
|
1915
|
-
expiresIn:
|
|
1916
|
-
publicKeyFingerprint:
|
|
1917
|
-
},
|
|
2644
|
+
inputSchema: ZodObject<{
|
|
2645
|
+
algorithm: ZodLiteral<"RS256">;
|
|
2646
|
+
privateKey: ZodString;
|
|
2647
|
+
claims: ZodRecord<ZodString, ZodUnion<readonly [ZodString, ZodNumber]>>;
|
|
2648
|
+
}, $strict>;
|
|
2649
|
+
outputSchema: ZodObject<{
|
|
2650
|
+
token: ZodString;
|
|
2651
|
+
expiresIn: ZodNumber;
|
|
2652
|
+
publicKeyFingerprint: ZodString;
|
|
2653
|
+
}, $strict>;
|
|
1918
2654
|
};
|
|
1919
2655
|
};
|
|
1920
2656
|
};
|