@zapier/zapier-sdk 0.15.13 → 0.16.1
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/CHANGELOG.md +17 -0
- package/dist/api/schemas.d.ts +133 -1488
- package/dist/api/schemas.d.ts.map +1 -1
- package/dist/api/schemas.js +10 -10
- package/dist/index.cjs +37 -27
- package/dist/index.d.mts +296 -1830
- package/dist/index.mjs +37 -27
- package/dist/plugins/apps/schemas.d.ts +2 -12
- package/dist/plugins/apps/schemas.d.ts.map +1 -1
- package/dist/plugins/apps/schemas.js +1 -1
- package/dist/plugins/fetch/schemas.d.ts +12 -18
- package/dist/plugins/fetch/schemas.d.ts.map +1 -1
- package/dist/plugins/fetch/schemas.js +1 -1
- package/dist/plugins/findFirstAuthentication/schemas.d.ts +2 -14
- package/dist/plugins/findFirstAuthentication/schemas.d.ts.map +1 -1
- package/dist/plugins/findUniqueAuthentication/schemas.d.ts +2 -14
- package/dist/plugins/findUniqueAuthentication/schemas.d.ts.map +1 -1
- package/dist/plugins/getAction/schemas.d.ts +13 -23
- package/dist/plugins/getAction/schemas.d.ts.map +1 -1
- package/dist/plugins/getApp/schemas.d.ts +2 -6
- package/dist/plugins/getApp/schemas.d.ts.map +1 -1
- package/dist/plugins/getInputFieldsSchema/schemas.d.ts +12 -15
- package/dist/plugins/getInputFieldsSchema/schemas.d.ts.map +1 -1
- package/dist/plugins/getProfile/schemas.d.ts +1 -1
- package/dist/plugins/getProfile/schemas.d.ts.map +1 -1
- package/dist/plugins/listActions/schemas.d.ts +13 -27
- package/dist/plugins/listActions/schemas.d.ts.map +1 -1
- package/dist/plugins/listAuthentications/schemas.d.ts +5 -36
- package/dist/plugins/listAuthentications/schemas.d.ts.map +1 -1
- package/dist/plugins/listInputFieldChoices/schemas.d.ts +13 -36
- package/dist/plugins/listInputFieldChoices/schemas.d.ts.map +1 -1
- package/dist/plugins/listInputFields/schemas.d.ts +12 -21
- package/dist/plugins/listInputFields/schemas.d.ts.map +1 -1
- package/dist/plugins/manifest/schemas.d.ts +6 -90
- package/dist/plugins/manifest/schemas.d.ts.map +1 -1
- package/dist/plugins/manifest/schemas.js +5 -2
- package/dist/plugins/request/index.d.ts.map +1 -1
- package/dist/plugins/request/index.js +9 -0
- package/dist/plugins/request/index.test.js +67 -0
- package/dist/plugins/request/schemas.d.ts +24 -68
- package/dist/plugins/request/schemas.d.ts.map +1 -1
- package/dist/plugins/request/schemas.js +1 -1
- package/dist/plugins/runAction/schemas.d.ts +12 -21
- package/dist/plugins/runAction/schemas.d.ts.map +1 -1
- package/dist/schemas/Action.d.ts +13 -30
- package/dist/schemas/Action.d.ts.map +1 -1
- package/dist/schemas/App.d.ts +30 -171
- package/dist/schemas/App.d.ts.map +1 -1
- package/dist/schemas/Auth.d.ts +14 -120
- package/dist/schemas/Auth.d.ts.map +1 -1
- package/dist/schemas/Field.d.ts +10 -108
- package/dist/schemas/Field.d.ts.map +1 -1
- package/dist/schemas/UserProfile.d.ts +5 -113
- package/dist/schemas/UserProfile.d.ts.map +1 -1
- package/dist/temporary-internal-core/schemas/apps/index.d.ts +19 -440
- package/dist/temporary-internal-core/schemas/apps/index.d.ts.map +1 -1
- package/dist/temporary-internal-core/schemas/authentications/index.d.ts +23 -327
- package/dist/temporary-internal-core/schemas/authentications/index.d.ts.map +1 -1
- package/dist/temporary-internal-core/schemas/authentications/index.js +1 -1
- package/dist/temporary-internal-core/schemas/implementations/index.d.ts +9 -393
- package/dist/temporary-internal-core/schemas/implementations/index.d.ts.map +1 -1
- package/dist/types/properties.d.ts +11 -2
- package/dist/types/properties.d.ts.map +1 -1
- package/dist/types/properties.js +2 -2
- package/dist/utils/function-utils.d.ts +2 -14
- package/dist/utils/function-utils.d.ts.map +1 -1
- package/dist/utils/schema-utils.d.ts.map +1 -1
- package/dist/utils/schema-utils.js +10 -9
- package/dist/utils/validation.d.ts +1 -1
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/utils/validation.js +2 -2
- package/package.json +3 -3
|
@@ -21,31 +21,13 @@ export declare const ImplementationMetaSchema: z.ZodObject<{
|
|
|
21
21
|
id: z.ZodNumber;
|
|
22
22
|
name: z.ZodString;
|
|
23
23
|
slug: z.ZodString;
|
|
24
|
-
},
|
|
25
|
-
id: number;
|
|
26
|
-
name: string;
|
|
27
|
-
slug: string;
|
|
28
|
-
}, {
|
|
29
|
-
id: number;
|
|
30
|
-
name: string;
|
|
31
|
-
slug: string;
|
|
32
|
-
}>, "many">>;
|
|
24
|
+
}, z.core.$strip>>>;
|
|
33
25
|
images: z.ZodOptional<z.ZodObject<{
|
|
34
26
|
url_16x16: z.ZodOptional<z.ZodString>;
|
|
35
27
|
url_32x32: z.ZodOptional<z.ZodString>;
|
|
36
28
|
url_64x64: z.ZodOptional<z.ZodString>;
|
|
37
29
|
url_128x128: z.ZodOptional<z.ZodString>;
|
|
38
|
-
},
|
|
39
|
-
url_16x16?: string | undefined;
|
|
40
|
-
url_32x32?: string | undefined;
|
|
41
|
-
url_64x64?: string | undefined;
|
|
42
|
-
url_128x128?: string | undefined;
|
|
43
|
-
}, {
|
|
44
|
-
url_16x16?: string | undefined;
|
|
45
|
-
url_32x32?: string | undefined;
|
|
46
|
-
url_64x64?: string | undefined;
|
|
47
|
-
url_128x128?: string | undefined;
|
|
48
|
-
}>>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
49
31
|
popularity: z.ZodOptional<z.ZodNumber>;
|
|
50
32
|
has_filters: z.ZodOptional<z.ZodBoolean>;
|
|
51
33
|
has_reads: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -72,132 +54,14 @@ export declare const ImplementationMetaSchema: z.ZodObject<{
|
|
|
72
54
|
search_or_write: z.ZodOptional<z.ZodNumber>;
|
|
73
55
|
search_and_write: z.ZodOptional<z.ZodNumber>;
|
|
74
56
|
filter: z.ZodOptional<z.ZodNumber>;
|
|
75
|
-
},
|
|
76
|
-
search?: number | undefined;
|
|
77
|
-
filter?: number | undefined;
|
|
78
|
-
read?: number | undefined;
|
|
79
|
-
read_bulk?: number | undefined;
|
|
80
|
-
search_and_write?: number | undefined;
|
|
81
|
-
search_or_write?: number | undefined;
|
|
82
|
-
write?: number | undefined;
|
|
83
|
-
}, {
|
|
84
|
-
search?: number | undefined;
|
|
85
|
-
filter?: number | undefined;
|
|
86
|
-
read?: number | undefined;
|
|
87
|
-
read_bulk?: number | undefined;
|
|
88
|
-
search_and_write?: number | undefined;
|
|
89
|
-
search_or_write?: number | undefined;
|
|
90
|
-
write?: number | undefined;
|
|
91
|
-
}>>;
|
|
57
|
+
}, z.core.$strip>>;
|
|
92
58
|
description: z.ZodOptional<z.ZodString>;
|
|
93
59
|
primary_color: z.ZodOptional<z.ZodString>;
|
|
94
60
|
secondary_color: z.ZodOptional<z.ZodString>;
|
|
95
61
|
classification: z.ZodOptional<z.ZodString>;
|
|
96
62
|
api_docs_url: z.ZodOptional<z.ZodString>;
|
|
97
63
|
image: z.ZodOptional<z.ZodString>;
|
|
98
|
-
},
|
|
99
|
-
id: string;
|
|
100
|
-
name: string;
|
|
101
|
-
slug: string;
|
|
102
|
-
categories?: {
|
|
103
|
-
id: number;
|
|
104
|
-
name: string;
|
|
105
|
-
slug: string;
|
|
106
|
-
}[] | undefined;
|
|
107
|
-
actions?: {
|
|
108
|
-
search?: number | undefined;
|
|
109
|
-
filter?: number | undefined;
|
|
110
|
-
read?: number | undefined;
|
|
111
|
-
read_bulk?: number | undefined;
|
|
112
|
-
search_and_write?: number | undefined;
|
|
113
|
-
search_or_write?: number | undefined;
|
|
114
|
-
write?: number | undefined;
|
|
115
|
-
} | undefined;
|
|
116
|
-
description?: string | undefined;
|
|
117
|
-
is_hidden?: boolean | undefined;
|
|
118
|
-
age_in_days?: number | undefined;
|
|
119
|
-
api_docs_url?: string | undefined;
|
|
120
|
-
banner?: string | undefined;
|
|
121
|
-
image?: string | undefined;
|
|
122
|
-
images?: {
|
|
123
|
-
url_16x16?: string | undefined;
|
|
124
|
-
url_32x32?: string | undefined;
|
|
125
|
-
url_64x64?: string | undefined;
|
|
126
|
-
url_128x128?: string | undefined;
|
|
127
|
-
} | undefined;
|
|
128
|
-
is_beta?: boolean | undefined;
|
|
129
|
-
is_built_in?: boolean | undefined;
|
|
130
|
-
is_featured?: boolean | undefined;
|
|
131
|
-
is_premium?: boolean | undefined;
|
|
132
|
-
is_public?: boolean | undefined;
|
|
133
|
-
is_upcoming?: boolean | undefined;
|
|
134
|
-
popularity?: number | undefined;
|
|
135
|
-
primary_color?: string | undefined;
|
|
136
|
-
auth_type?: string | undefined;
|
|
137
|
-
is_deprecated?: boolean | undefined;
|
|
138
|
-
secondary_color?: string | undefined;
|
|
139
|
-
has_filters?: boolean | undefined;
|
|
140
|
-
has_reads?: boolean | undefined;
|
|
141
|
-
has_searches?: boolean | undefined;
|
|
142
|
-
has_searches_or_writes?: boolean | undefined;
|
|
143
|
-
has_upfront_fields?: boolean | undefined;
|
|
144
|
-
has_writes?: boolean | undefined;
|
|
145
|
-
is_invite?: boolean | undefined;
|
|
146
|
-
version?: string | undefined;
|
|
147
|
-
visibility?: string | undefined;
|
|
148
|
-
classification?: string | undefined;
|
|
149
|
-
}, {
|
|
150
|
-
id: string;
|
|
151
|
-
name: string;
|
|
152
|
-
slug: string;
|
|
153
|
-
categories?: {
|
|
154
|
-
id: number;
|
|
155
|
-
name: string;
|
|
156
|
-
slug: string;
|
|
157
|
-
}[] | undefined;
|
|
158
|
-
actions?: {
|
|
159
|
-
search?: number | undefined;
|
|
160
|
-
filter?: number | undefined;
|
|
161
|
-
read?: number | undefined;
|
|
162
|
-
read_bulk?: number | undefined;
|
|
163
|
-
search_and_write?: number | undefined;
|
|
164
|
-
search_or_write?: number | undefined;
|
|
165
|
-
write?: number | undefined;
|
|
166
|
-
} | undefined;
|
|
167
|
-
description?: string | undefined;
|
|
168
|
-
is_hidden?: boolean | undefined;
|
|
169
|
-
age_in_days?: number | undefined;
|
|
170
|
-
api_docs_url?: string | undefined;
|
|
171
|
-
banner?: string | undefined;
|
|
172
|
-
image?: string | undefined;
|
|
173
|
-
images?: {
|
|
174
|
-
url_16x16?: string | undefined;
|
|
175
|
-
url_32x32?: string | undefined;
|
|
176
|
-
url_64x64?: string | undefined;
|
|
177
|
-
url_128x128?: string | undefined;
|
|
178
|
-
} | undefined;
|
|
179
|
-
is_beta?: boolean | undefined;
|
|
180
|
-
is_built_in?: boolean | undefined;
|
|
181
|
-
is_featured?: boolean | undefined;
|
|
182
|
-
is_premium?: boolean | undefined;
|
|
183
|
-
is_public?: boolean | undefined;
|
|
184
|
-
is_upcoming?: boolean | undefined;
|
|
185
|
-
popularity?: number | undefined;
|
|
186
|
-
primary_color?: string | undefined;
|
|
187
|
-
auth_type?: string | undefined;
|
|
188
|
-
is_deprecated?: boolean | undefined;
|
|
189
|
-
secondary_color?: string | undefined;
|
|
190
|
-
has_filters?: boolean | undefined;
|
|
191
|
-
has_reads?: boolean | undefined;
|
|
192
|
-
has_searches?: boolean | undefined;
|
|
193
|
-
has_searches_or_writes?: boolean | undefined;
|
|
194
|
-
has_upfront_fields?: boolean | undefined;
|
|
195
|
-
has_writes?: boolean | undefined;
|
|
196
|
-
is_invite?: boolean | undefined;
|
|
197
|
-
version?: string | undefined;
|
|
198
|
-
visibility?: string | undefined;
|
|
199
|
-
classification?: string | undefined;
|
|
200
|
-
}>;
|
|
64
|
+
}, z.core.$strip>;
|
|
201
65
|
export type ImplementationMeta = z.infer<typeof ImplementationMetaSchema>;
|
|
202
66
|
/**
|
|
203
67
|
* Paginated response from /api/v4/implementations-meta/lookup/ and search endpoints
|
|
@@ -217,31 +81,13 @@ export declare const ImplementationsMetaResponseSchema: z.ZodObject<{
|
|
|
217
81
|
id: z.ZodNumber;
|
|
218
82
|
name: z.ZodString;
|
|
219
83
|
slug: z.ZodString;
|
|
220
|
-
},
|
|
221
|
-
id: number;
|
|
222
|
-
name: string;
|
|
223
|
-
slug: string;
|
|
224
|
-
}, {
|
|
225
|
-
id: number;
|
|
226
|
-
name: string;
|
|
227
|
-
slug: string;
|
|
228
|
-
}>, "many">>;
|
|
84
|
+
}, z.core.$strip>>>;
|
|
229
85
|
images: z.ZodOptional<z.ZodObject<{
|
|
230
86
|
url_16x16: z.ZodOptional<z.ZodString>;
|
|
231
87
|
url_32x32: z.ZodOptional<z.ZodString>;
|
|
232
88
|
url_64x64: z.ZodOptional<z.ZodString>;
|
|
233
89
|
url_128x128: z.ZodOptional<z.ZodString>;
|
|
234
|
-
},
|
|
235
|
-
url_16x16?: string | undefined;
|
|
236
|
-
url_32x32?: string | undefined;
|
|
237
|
-
url_64x64?: string | undefined;
|
|
238
|
-
url_128x128?: string | undefined;
|
|
239
|
-
}, {
|
|
240
|
-
url_16x16?: string | undefined;
|
|
241
|
-
url_32x32?: string | undefined;
|
|
242
|
-
url_64x64?: string | undefined;
|
|
243
|
-
url_128x128?: string | undefined;
|
|
244
|
-
}>>;
|
|
90
|
+
}, z.core.$strip>>;
|
|
245
91
|
popularity: z.ZodOptional<z.ZodNumber>;
|
|
246
92
|
has_filters: z.ZodOptional<z.ZodBoolean>;
|
|
247
93
|
has_reads: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -268,244 +114,14 @@ export declare const ImplementationsMetaResponseSchema: z.ZodObject<{
|
|
|
268
114
|
search_or_write: z.ZodOptional<z.ZodNumber>;
|
|
269
115
|
search_and_write: z.ZodOptional<z.ZodNumber>;
|
|
270
116
|
filter: z.ZodOptional<z.ZodNumber>;
|
|
271
|
-
},
|
|
272
|
-
search?: number | undefined;
|
|
273
|
-
filter?: number | undefined;
|
|
274
|
-
read?: number | undefined;
|
|
275
|
-
read_bulk?: number | undefined;
|
|
276
|
-
search_and_write?: number | undefined;
|
|
277
|
-
search_or_write?: number | undefined;
|
|
278
|
-
write?: number | undefined;
|
|
279
|
-
}, {
|
|
280
|
-
search?: number | undefined;
|
|
281
|
-
filter?: number | undefined;
|
|
282
|
-
read?: number | undefined;
|
|
283
|
-
read_bulk?: number | undefined;
|
|
284
|
-
search_and_write?: number | undefined;
|
|
285
|
-
search_or_write?: number | undefined;
|
|
286
|
-
write?: number | undefined;
|
|
287
|
-
}>>;
|
|
117
|
+
}, z.core.$strip>>;
|
|
288
118
|
description: z.ZodOptional<z.ZodString>;
|
|
289
119
|
primary_color: z.ZodOptional<z.ZodString>;
|
|
290
120
|
secondary_color: z.ZodOptional<z.ZodString>;
|
|
291
121
|
classification: z.ZodOptional<z.ZodString>;
|
|
292
122
|
api_docs_url: z.ZodOptional<z.ZodString>;
|
|
293
123
|
image: z.ZodOptional<z.ZodString>;
|
|
294
|
-
},
|
|
295
|
-
|
|
296
|
-
name: string;
|
|
297
|
-
slug: string;
|
|
298
|
-
categories?: {
|
|
299
|
-
id: number;
|
|
300
|
-
name: string;
|
|
301
|
-
slug: string;
|
|
302
|
-
}[] | undefined;
|
|
303
|
-
actions?: {
|
|
304
|
-
search?: number | undefined;
|
|
305
|
-
filter?: number | undefined;
|
|
306
|
-
read?: number | undefined;
|
|
307
|
-
read_bulk?: number | undefined;
|
|
308
|
-
search_and_write?: number | undefined;
|
|
309
|
-
search_or_write?: number | undefined;
|
|
310
|
-
write?: number | undefined;
|
|
311
|
-
} | undefined;
|
|
312
|
-
description?: string | undefined;
|
|
313
|
-
is_hidden?: boolean | undefined;
|
|
314
|
-
age_in_days?: number | undefined;
|
|
315
|
-
api_docs_url?: string | undefined;
|
|
316
|
-
banner?: string | undefined;
|
|
317
|
-
image?: string | undefined;
|
|
318
|
-
images?: {
|
|
319
|
-
url_16x16?: string | undefined;
|
|
320
|
-
url_32x32?: string | undefined;
|
|
321
|
-
url_64x64?: string | undefined;
|
|
322
|
-
url_128x128?: string | undefined;
|
|
323
|
-
} | undefined;
|
|
324
|
-
is_beta?: boolean | undefined;
|
|
325
|
-
is_built_in?: boolean | undefined;
|
|
326
|
-
is_featured?: boolean | undefined;
|
|
327
|
-
is_premium?: boolean | undefined;
|
|
328
|
-
is_public?: boolean | undefined;
|
|
329
|
-
is_upcoming?: boolean | undefined;
|
|
330
|
-
popularity?: number | undefined;
|
|
331
|
-
primary_color?: string | undefined;
|
|
332
|
-
auth_type?: string | undefined;
|
|
333
|
-
is_deprecated?: boolean | undefined;
|
|
334
|
-
secondary_color?: string | undefined;
|
|
335
|
-
has_filters?: boolean | undefined;
|
|
336
|
-
has_reads?: boolean | undefined;
|
|
337
|
-
has_searches?: boolean | undefined;
|
|
338
|
-
has_searches_or_writes?: boolean | undefined;
|
|
339
|
-
has_upfront_fields?: boolean | undefined;
|
|
340
|
-
has_writes?: boolean | undefined;
|
|
341
|
-
is_invite?: boolean | undefined;
|
|
342
|
-
version?: string | undefined;
|
|
343
|
-
visibility?: string | undefined;
|
|
344
|
-
classification?: string | undefined;
|
|
345
|
-
}, {
|
|
346
|
-
id: string;
|
|
347
|
-
name: string;
|
|
348
|
-
slug: string;
|
|
349
|
-
categories?: {
|
|
350
|
-
id: number;
|
|
351
|
-
name: string;
|
|
352
|
-
slug: string;
|
|
353
|
-
}[] | undefined;
|
|
354
|
-
actions?: {
|
|
355
|
-
search?: number | undefined;
|
|
356
|
-
filter?: number | undefined;
|
|
357
|
-
read?: number | undefined;
|
|
358
|
-
read_bulk?: number | undefined;
|
|
359
|
-
search_and_write?: number | undefined;
|
|
360
|
-
search_or_write?: number | undefined;
|
|
361
|
-
write?: number | undefined;
|
|
362
|
-
} | undefined;
|
|
363
|
-
description?: string | undefined;
|
|
364
|
-
is_hidden?: boolean | undefined;
|
|
365
|
-
age_in_days?: number | undefined;
|
|
366
|
-
api_docs_url?: string | undefined;
|
|
367
|
-
banner?: string | undefined;
|
|
368
|
-
image?: string | undefined;
|
|
369
|
-
images?: {
|
|
370
|
-
url_16x16?: string | undefined;
|
|
371
|
-
url_32x32?: string | undefined;
|
|
372
|
-
url_64x64?: string | undefined;
|
|
373
|
-
url_128x128?: string | undefined;
|
|
374
|
-
} | undefined;
|
|
375
|
-
is_beta?: boolean | undefined;
|
|
376
|
-
is_built_in?: boolean | undefined;
|
|
377
|
-
is_featured?: boolean | undefined;
|
|
378
|
-
is_premium?: boolean | undefined;
|
|
379
|
-
is_public?: boolean | undefined;
|
|
380
|
-
is_upcoming?: boolean | undefined;
|
|
381
|
-
popularity?: number | undefined;
|
|
382
|
-
primary_color?: string | undefined;
|
|
383
|
-
auth_type?: string | undefined;
|
|
384
|
-
is_deprecated?: boolean | undefined;
|
|
385
|
-
secondary_color?: string | undefined;
|
|
386
|
-
has_filters?: boolean | undefined;
|
|
387
|
-
has_reads?: boolean | undefined;
|
|
388
|
-
has_searches?: boolean | undefined;
|
|
389
|
-
has_searches_or_writes?: boolean | undefined;
|
|
390
|
-
has_upfront_fields?: boolean | undefined;
|
|
391
|
-
has_writes?: boolean | undefined;
|
|
392
|
-
is_invite?: boolean | undefined;
|
|
393
|
-
version?: string | undefined;
|
|
394
|
-
visibility?: string | undefined;
|
|
395
|
-
classification?: string | undefined;
|
|
396
|
-
}>, "many">;
|
|
397
|
-
}, "strip", z.ZodTypeAny, {
|
|
398
|
-
count: number;
|
|
399
|
-
results: {
|
|
400
|
-
id: string;
|
|
401
|
-
name: string;
|
|
402
|
-
slug: string;
|
|
403
|
-
categories?: {
|
|
404
|
-
id: number;
|
|
405
|
-
name: string;
|
|
406
|
-
slug: string;
|
|
407
|
-
}[] | undefined;
|
|
408
|
-
actions?: {
|
|
409
|
-
search?: number | undefined;
|
|
410
|
-
filter?: number | undefined;
|
|
411
|
-
read?: number | undefined;
|
|
412
|
-
read_bulk?: number | undefined;
|
|
413
|
-
search_and_write?: number | undefined;
|
|
414
|
-
search_or_write?: number | undefined;
|
|
415
|
-
write?: number | undefined;
|
|
416
|
-
} | undefined;
|
|
417
|
-
description?: string | undefined;
|
|
418
|
-
is_hidden?: boolean | undefined;
|
|
419
|
-
age_in_days?: number | undefined;
|
|
420
|
-
api_docs_url?: string | undefined;
|
|
421
|
-
banner?: string | undefined;
|
|
422
|
-
image?: string | undefined;
|
|
423
|
-
images?: {
|
|
424
|
-
url_16x16?: string | undefined;
|
|
425
|
-
url_32x32?: string | undefined;
|
|
426
|
-
url_64x64?: string | undefined;
|
|
427
|
-
url_128x128?: string | undefined;
|
|
428
|
-
} | undefined;
|
|
429
|
-
is_beta?: boolean | undefined;
|
|
430
|
-
is_built_in?: boolean | undefined;
|
|
431
|
-
is_featured?: boolean | undefined;
|
|
432
|
-
is_premium?: boolean | undefined;
|
|
433
|
-
is_public?: boolean | undefined;
|
|
434
|
-
is_upcoming?: boolean | undefined;
|
|
435
|
-
popularity?: number | undefined;
|
|
436
|
-
primary_color?: string | undefined;
|
|
437
|
-
auth_type?: string | undefined;
|
|
438
|
-
is_deprecated?: boolean | undefined;
|
|
439
|
-
secondary_color?: string | undefined;
|
|
440
|
-
has_filters?: boolean | undefined;
|
|
441
|
-
has_reads?: boolean | undefined;
|
|
442
|
-
has_searches?: boolean | undefined;
|
|
443
|
-
has_searches_or_writes?: boolean | undefined;
|
|
444
|
-
has_upfront_fields?: boolean | undefined;
|
|
445
|
-
has_writes?: boolean | undefined;
|
|
446
|
-
is_invite?: boolean | undefined;
|
|
447
|
-
version?: string | undefined;
|
|
448
|
-
visibility?: string | undefined;
|
|
449
|
-
classification?: string | undefined;
|
|
450
|
-
}[];
|
|
451
|
-
next?: string | null | undefined;
|
|
452
|
-
previous?: string | null | undefined;
|
|
453
|
-
}, {
|
|
454
|
-
count: number;
|
|
455
|
-
results: {
|
|
456
|
-
id: string;
|
|
457
|
-
name: string;
|
|
458
|
-
slug: string;
|
|
459
|
-
categories?: {
|
|
460
|
-
id: number;
|
|
461
|
-
name: string;
|
|
462
|
-
slug: string;
|
|
463
|
-
}[] | undefined;
|
|
464
|
-
actions?: {
|
|
465
|
-
search?: number | undefined;
|
|
466
|
-
filter?: number | undefined;
|
|
467
|
-
read?: number | undefined;
|
|
468
|
-
read_bulk?: number | undefined;
|
|
469
|
-
search_and_write?: number | undefined;
|
|
470
|
-
search_or_write?: number | undefined;
|
|
471
|
-
write?: number | undefined;
|
|
472
|
-
} | undefined;
|
|
473
|
-
description?: string | undefined;
|
|
474
|
-
is_hidden?: boolean | undefined;
|
|
475
|
-
age_in_days?: number | undefined;
|
|
476
|
-
api_docs_url?: string | undefined;
|
|
477
|
-
banner?: string | undefined;
|
|
478
|
-
image?: string | undefined;
|
|
479
|
-
images?: {
|
|
480
|
-
url_16x16?: string | undefined;
|
|
481
|
-
url_32x32?: string | undefined;
|
|
482
|
-
url_64x64?: string | undefined;
|
|
483
|
-
url_128x128?: string | undefined;
|
|
484
|
-
} | undefined;
|
|
485
|
-
is_beta?: boolean | undefined;
|
|
486
|
-
is_built_in?: boolean | undefined;
|
|
487
|
-
is_featured?: boolean | undefined;
|
|
488
|
-
is_premium?: boolean | undefined;
|
|
489
|
-
is_public?: boolean | undefined;
|
|
490
|
-
is_upcoming?: boolean | undefined;
|
|
491
|
-
popularity?: number | undefined;
|
|
492
|
-
primary_color?: string | undefined;
|
|
493
|
-
auth_type?: string | undefined;
|
|
494
|
-
is_deprecated?: boolean | undefined;
|
|
495
|
-
secondary_color?: string | undefined;
|
|
496
|
-
has_filters?: boolean | undefined;
|
|
497
|
-
has_reads?: boolean | undefined;
|
|
498
|
-
has_searches?: boolean | undefined;
|
|
499
|
-
has_searches_or_writes?: boolean | undefined;
|
|
500
|
-
has_upfront_fields?: boolean | undefined;
|
|
501
|
-
has_writes?: boolean | undefined;
|
|
502
|
-
is_invite?: boolean | undefined;
|
|
503
|
-
version?: string | undefined;
|
|
504
|
-
visibility?: string | undefined;
|
|
505
|
-
classification?: string | undefined;
|
|
506
|
-
}[];
|
|
507
|
-
next?: string | null | undefined;
|
|
508
|
-
previous?: string | null | undefined;
|
|
509
|
-
}>;
|
|
124
|
+
}, z.core.$strip>>;
|
|
125
|
+
}, z.core.$strip>;
|
|
510
126
|
export type ImplementationsMetaResponse = z.infer<typeof ImplementationsMetaResponseSchema>;
|
|
511
127
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/temporary-internal-core/schemas/implementations/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/temporary-internal-core/schemas/implementations/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2DnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK5C,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const AppKeyPropertySchema: z.ZodString & {
|
|
3
|
-
_def: z.ZodStringDef & import("..").PositionalMetadata;
|
|
3
|
+
_def: z.core.$ZodStringDef & import("..").PositionalMetadata;
|
|
4
4
|
};
|
|
5
|
-
export declare const ActionTypePropertySchema: z.ZodEnum<
|
|
5
|
+
export declare const ActionTypePropertySchema: z.ZodEnum<{
|
|
6
|
+
search: "search";
|
|
7
|
+
filter: "filter";
|
|
8
|
+
read: "read";
|
|
9
|
+
read_bulk: "read_bulk";
|
|
10
|
+
run: "run";
|
|
11
|
+
search_and_write: "search_and_write";
|
|
12
|
+
search_or_write: "search_or_write";
|
|
13
|
+
write: "write";
|
|
14
|
+
}>;
|
|
6
15
|
export declare const ActionKeyPropertySchema: z.ZodString;
|
|
7
16
|
export declare const AuthenticationIdPropertySchema: z.ZodNumber;
|
|
8
17
|
export declare const InputsPropertySchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../src/types/properties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,oBAAoB;;CAKhC,CAAC;AAEF,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../src/types/properties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,oBAAoB;;CAKhC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;EAW4B,CAAC;AAElE,eAAO,MAAM,uBAAuB,aAGA,CAAC;AAErC,eAAO,MAAM,8BAA8B,aAGY,CAAC;AAExD,eAAO,MAAM,oBAAoB,wCAEa,CAAC;AAE/C,eAAO,MAAM,mBAAmB,2BAMgB,CAAC;AAEjD,eAAO,MAAM,oBAAoB,2BAKoB,CAAC;AAEtD,eAAO,MAAM,oBAAoB,aAA0C,CAAC;AAE5E,eAAO,MAAM,mBAAmB,4BAGG,CAAC;AAEpC,eAAO,MAAM,oBAAoB,wCAEG,CAAC;AAGrC,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
package/dist/types/properties.js
CHANGED
|
@@ -28,7 +28,7 @@ export const AuthenticationIdPropertySchema = z
|
|
|
28
28
|
.int()
|
|
29
29
|
.describe("Authentication ID to use for this action");
|
|
30
30
|
export const InputsPropertySchema = z
|
|
31
|
-
.record(z.unknown())
|
|
31
|
+
.record(z.string(), z.unknown())
|
|
32
32
|
.describe("Input parameters for the action");
|
|
33
33
|
export const LimitPropertySchema = z
|
|
34
34
|
.number()
|
|
@@ -49,5 +49,5 @@ export const DebugPropertySchema = z
|
|
|
49
49
|
.default(false)
|
|
50
50
|
.describe("Enable debug logging");
|
|
51
51
|
export const ParamsPropertySchema = z
|
|
52
|
-
.record(z.unknown())
|
|
52
|
+
.record(z.string(), z.unknown())
|
|
53
53
|
.describe("Additional parameters");
|
|
@@ -9,20 +9,8 @@ import { z } from "zod";
|
|
|
9
9
|
export declare const TelemetryMarkerSchema: z.ZodObject<{
|
|
10
10
|
_telemetry: z.ZodOptional<z.ZodObject<{
|
|
11
11
|
isNested: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
}, {
|
|
15
|
-
isNested?: boolean | undefined;
|
|
16
|
-
}>>;
|
|
17
|
-
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
_telemetry?: {
|
|
19
|
-
isNested?: boolean | undefined;
|
|
20
|
-
} | undefined;
|
|
21
|
-
}, {
|
|
22
|
-
_telemetry?: {
|
|
23
|
-
isNested?: boolean | undefined;
|
|
24
|
-
} | undefined;
|
|
25
|
-
}>;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
26
14
|
/**
|
|
27
15
|
* Marker for SDK method calls to control telemetry behavior
|
|
28
16
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function-utils.d.ts","sourceRoot":"","sources":["../../src/utils/function-utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;GAGG;AACH,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"function-utils.d.ts","sourceRoot":"","sources":["../../src/utils/function-utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;iBAMhC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,OAAO,CAAC;QACjB,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,aAAa,EAAE,MAAM,CAAC;QACtB,WAAW,EAAE,OAAO,CAAC;KACtB,KAAK,IAAI,CAAC;CACZ;AAED;;GAEG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,G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,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,GAAG,OAAO,CAqBvD"}
|
|
@@ -2,19 +2,19 @@ import { z } from "zod";
|
|
|
2
2
|
// Helper function to add format metadata to schemas
|
|
3
3
|
export function withFormatter(schema, formatMeta) {
|
|
4
4
|
// Store format metadata on the schema definition
|
|
5
|
-
Object.assign(schema.
|
|
5
|
+
Object.assign(schema._zod.def, {
|
|
6
6
|
formatMeta: formatMeta,
|
|
7
7
|
});
|
|
8
8
|
return schema;
|
|
9
9
|
}
|
|
10
10
|
// Helper function to get output schema from an input schema
|
|
11
11
|
export function getOutputSchema(inputSchema) {
|
|
12
|
-
return inputSchema.
|
|
12
|
+
return inputSchema._zod.def.outputSchema;
|
|
13
13
|
}
|
|
14
14
|
// Helper function to link input schemas to output schemas
|
|
15
15
|
export function withOutputSchema(inputSchema, outputSchema) {
|
|
16
16
|
// Store output schema reference on the input schema
|
|
17
|
-
Object.assign(inputSchema.
|
|
17
|
+
Object.assign(inputSchema._zod.def, {
|
|
18
18
|
outputSchema,
|
|
19
19
|
});
|
|
20
20
|
return inputSchema;
|
|
@@ -22,7 +22,7 @@ export function withOutputSchema(inputSchema, outputSchema) {
|
|
|
22
22
|
// Helper function to add resolver metadata to schemas
|
|
23
23
|
export function withResolver(schema, config) {
|
|
24
24
|
// Store resolver metadata on the schema definition
|
|
25
|
-
schema.
|
|
25
|
+
schema._zod.def.resolverMeta = config;
|
|
26
26
|
return schema;
|
|
27
27
|
}
|
|
28
28
|
// ============================================================================
|
|
@@ -44,28 +44,29 @@ export function getFieldDescriptions(schema) {
|
|
|
44
44
|
// Helper function to mark a parameter as positional for CLI
|
|
45
45
|
export function withPositional(schema) {
|
|
46
46
|
// Store positional metadata on the schema definition
|
|
47
|
-
Object.assign(schema.
|
|
47
|
+
Object.assign(schema._zod.def, {
|
|
48
48
|
positionalMeta: { positional: true },
|
|
49
49
|
});
|
|
50
50
|
return schema;
|
|
51
51
|
}
|
|
52
52
|
function schemaHasPositionalMeta(schema) {
|
|
53
|
-
return "positionalMeta" in schema.
|
|
53
|
+
return "positionalMeta" in schema._zod.def;
|
|
54
54
|
}
|
|
55
55
|
// Helper function to check if a parameter should be positional
|
|
56
56
|
export function isPositional(schema) {
|
|
57
57
|
// Check the current schema first
|
|
58
58
|
if (schemaHasPositionalMeta(schema) &&
|
|
59
|
-
schema.
|
|
59
|
+
schema._zod.def
|
|
60
|
+
.positionalMeta?.positional) {
|
|
60
61
|
return true;
|
|
61
62
|
}
|
|
62
63
|
// If this is a ZodOptional, check the inner type
|
|
63
64
|
if (schema instanceof z.ZodOptional) {
|
|
64
|
-
return isPositional(schema.
|
|
65
|
+
return isPositional(schema._zod.def.innerType);
|
|
65
66
|
}
|
|
66
67
|
// If this is a ZodDefault, check the inner type
|
|
67
68
|
if (schema instanceof z.ZodDefault) {
|
|
68
|
-
return isPositional(schema.
|
|
69
|
+
return isPositional(schema._zod.def.innerType);
|
|
69
70
|
}
|
|
70
71
|
return false;
|
|
71
72
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { z } from "zod";
|
|
2
2
|
export declare function createValidator<TSchema extends z.ZodSchema>(schema: TSchema): (input: unknown) => z.infer<TSchema>;
|
|
3
|
-
export declare const validateOptions: <TOptions, TSchemaOptions extends TOptions>(schema: z.ZodSchema<TSchemaOptions>, options: TOptions) =>
|
|
3
|
+
export declare const validateOptions: <TOptions, TSchemaOptions extends TOptions>(schema: z.ZodSchema<TSchemaOptions>, options: TOptions) => TSchemaOptions;
|
|
4
4
|
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/utils/validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgC7B,wBAAgB,eAAe,CAAC,OAAO,SAAS,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,IAC/C,OAAO,OAAO,KAAG,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAG7D;AAED,eAAO,MAAM,eAAe,GAAI,QAAQ,EAAE,cAAc,SAAS,QAAQ,EACvE,QAAQ,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC,EACnC,SAAS,QAAQ,
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/utils/validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgC7B,wBAAgB,eAAe,CAAC,OAAO,SAAS,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,IAC/C,OAAO,OAAO,KAAG,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAG7D;AAED,eAAO,MAAM,eAAe,GAAI,QAAQ,EAAE,cAAc,SAAS,QAAQ,EACvE,QAAQ,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC,EACnC,SAAS,QAAQ,mBAGlB,CAAC"}
|
package/dist/utils/validation.js
CHANGED
|
@@ -6,14 +6,14 @@ const validate = (schema, input) => {
|
|
|
6
6
|
const result = schema.safeParse(input);
|
|
7
7
|
if (!result.success) {
|
|
8
8
|
// Format Zod errors into a clean, user-friendly message
|
|
9
|
-
const errorMessages = result.error.
|
|
9
|
+
const errorMessages = result.error.issues.map((error) => {
|
|
10
10
|
const path = error.path.length > 0 ? error.path.join(".") : "input";
|
|
11
11
|
return `${path}: ${error.message}`;
|
|
12
12
|
});
|
|
13
13
|
const message = `Validation failed:\n ${errorMessages.join("\n ")}`;
|
|
14
14
|
throw new ZapierValidationError(message, {
|
|
15
15
|
details: {
|
|
16
|
-
zodErrors: result.error.
|
|
16
|
+
zodErrors: result.error.issues,
|
|
17
17
|
input,
|
|
18
18
|
},
|
|
19
19
|
});
|