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