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