@zapier/zapier-sdk 0.15.1 → 0.15.3

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.
Files changed (65) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/api/client.d.ts.map +1 -1
  3. package/dist/api/client.integration.test.d.ts +5 -0
  4. package/dist/api/client.integration.test.d.ts.map +1 -0
  5. package/dist/api/client.integration.test.js +318 -0
  6. package/dist/api/client.js +31 -1
  7. package/dist/index.cjs +401 -108
  8. package/dist/index.d.mts +360 -56
  9. package/dist/index.mjs +401 -108
  10. package/dist/plugins/fetch/schemas.d.ts +2 -2
  11. package/dist/plugins/getAction/schemas.d.ts +2 -2
  12. package/dist/plugins/getApp/index.test.js +17 -21
  13. package/dist/plugins/getInputFieldsSchema/schemas.d.ts +2 -2
  14. package/dist/plugins/listActions/index.test.js +25 -0
  15. package/dist/plugins/listActions/schemas.d.ts +6 -6
  16. package/dist/plugins/listApps/index.d.ts +1 -3
  17. package/dist/plugins/listApps/index.d.ts.map +1 -1
  18. package/dist/plugins/listApps/index.js +18 -44
  19. package/dist/plugins/listApps/index.test.js +89 -288
  20. package/dist/plugins/listApps/schemas.d.ts +19 -26
  21. package/dist/plugins/listApps/schemas.d.ts.map +1 -1
  22. package/dist/plugins/listApps/schemas.js +19 -18
  23. package/dist/plugins/listAuthentications/index.test.js +20 -0
  24. package/dist/plugins/listAuthentications/schemas.d.ts +4 -4
  25. package/dist/plugins/listInputFieldChoices/schemas.d.ts +8 -8
  26. package/dist/plugins/listInputFields/schemas.d.ts +8 -8
  27. package/dist/plugins/manifest/index.d.ts +42 -3
  28. package/dist/plugins/manifest/index.d.ts.map +1 -1
  29. package/dist/plugins/manifest/index.js +68 -1
  30. package/dist/plugins/manifest/index.test.js +513 -1
  31. package/dist/plugins/manifest/schemas.d.ts +75 -2
  32. package/dist/plugins/manifest/schemas.d.ts.map +1 -1
  33. package/dist/plugins/manifest/schemas.js +27 -3
  34. package/dist/plugins/request/schemas.d.ts +4 -4
  35. package/dist/plugins/runAction/schemas.d.ts +8 -8
  36. package/dist/sdk.d.ts +24 -2
  37. package/dist/sdk.d.ts.map +1 -1
  38. package/dist/temporary-internal-core/handlers/listApps.d.ts +67 -0
  39. package/dist/temporary-internal-core/handlers/listApps.d.ts.map +1 -0
  40. package/dist/temporary-internal-core/handlers/listApps.js +121 -0
  41. package/dist/temporary-internal-core/handlers/listApps.test.d.ts +2 -0
  42. package/dist/temporary-internal-core/handlers/listApps.test.d.ts.map +1 -0
  43. package/dist/temporary-internal-core/handlers/listApps.test.js +328 -0
  44. package/dist/temporary-internal-core/index.d.ts +4 -0
  45. package/dist/temporary-internal-core/index.d.ts.map +1 -1
  46. package/dist/temporary-internal-core/index.js +5 -1
  47. package/dist/temporary-internal-core/schemas/apps/index.d.ts +582 -0
  48. package/dist/temporary-internal-core/schemas/apps/index.d.ts.map +1 -0
  49. package/dist/temporary-internal-core/schemas/apps/index.js +95 -0
  50. package/dist/temporary-internal-core/schemas/implementations/index.d.ts +511 -0
  51. package/dist/temporary-internal-core/schemas/implementations/index.d.ts.map +1 -0
  52. package/dist/temporary-internal-core/schemas/implementations/index.js +79 -0
  53. package/dist/temporary-internal-core/types/handler.d.ts +51 -0
  54. package/dist/temporary-internal-core/types/handler.d.ts.map +1 -0
  55. package/dist/temporary-internal-core/types/handler.js +8 -0
  56. package/dist/temporary-internal-core/types/index.d.ts +5 -0
  57. package/dist/temporary-internal-core/types/index.d.ts.map +1 -0
  58. package/dist/temporary-internal-core/types/index.js +4 -0
  59. package/dist/temporary-internal-core/utils/app-locators.d.ts +54 -0
  60. package/dist/temporary-internal-core/utils/app-locators.d.ts.map +1 -0
  61. package/dist/temporary-internal-core/utils/app-locators.js +83 -0
  62. package/dist/temporary-internal-core/utils/transformations.d.ts +18 -0
  63. package/dist/temporary-internal-core/utils/transformations.d.ts.map +1 -0
  64. package/dist/temporary-internal-core/utils/transformations.js +36 -0
  65. package/package.json +1 -1
@@ -0,0 +1,511 @@
1
+ /**
2
+ * Implementation schemas
3
+ *
4
+ * Covers:
5
+ * - Implementation metadata
6
+ * - Implementation listings
7
+ * - Version information
8
+ */
9
+ import { z } from "zod";
10
+ /**
11
+ * Lightweight implementation metadata returned by /api/v4/implementations-meta/*
12
+ */
13
+ export declare const ImplementationMetaSchema: z.ZodObject<{
14
+ id: z.ZodString;
15
+ name: z.ZodString;
16
+ slug: z.ZodString;
17
+ age_in_days: z.ZodOptional<z.ZodNumber>;
18
+ auth_type: z.ZodOptional<z.ZodString>;
19
+ banner: z.ZodOptional<z.ZodString>;
20
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
21
+ id: z.ZodNumber;
22
+ name: z.ZodString;
23
+ slug: z.ZodString;
24
+ }, "strip", z.ZodTypeAny, {
25
+ id: number;
26
+ name: string;
27
+ slug: string;
28
+ }, {
29
+ id: number;
30
+ name: string;
31
+ slug: string;
32
+ }>, "many">>;
33
+ images: z.ZodOptional<z.ZodObject<{
34
+ url_16x16: z.ZodOptional<z.ZodString>;
35
+ url_32x32: z.ZodOptional<z.ZodString>;
36
+ url_64x64: z.ZodOptional<z.ZodString>;
37
+ url_128x128: z.ZodOptional<z.ZodString>;
38
+ }, "strip", z.ZodTypeAny, {
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
+ }>>;
49
+ popularity: z.ZodOptional<z.ZodNumber>;
50
+ has_filters: z.ZodOptional<z.ZodBoolean>;
51
+ has_reads: z.ZodOptional<z.ZodBoolean>;
52
+ has_searches: z.ZodOptional<z.ZodBoolean>;
53
+ has_searches_or_writes: z.ZodOptional<z.ZodBoolean>;
54
+ has_upfront_fields: z.ZodOptional<z.ZodBoolean>;
55
+ has_writes: z.ZodOptional<z.ZodBoolean>;
56
+ is_beta: z.ZodOptional<z.ZodBoolean>;
57
+ is_built_in: z.ZodOptional<z.ZodBoolean>;
58
+ is_deprecated: z.ZodOptional<z.ZodBoolean>;
59
+ is_featured: z.ZodOptional<z.ZodBoolean>;
60
+ is_hidden: z.ZodOptional<z.ZodBoolean>;
61
+ is_invite: z.ZodOptional<z.ZodBoolean>;
62
+ is_premium: z.ZodOptional<z.ZodBoolean>;
63
+ is_public: z.ZodOptional<z.ZodBoolean>;
64
+ is_upcoming: z.ZodOptional<z.ZodBoolean>;
65
+ version: z.ZodOptional<z.ZodString>;
66
+ visibility: z.ZodOptional<z.ZodString>;
67
+ actions: z.ZodOptional<z.ZodObject<{
68
+ read: z.ZodOptional<z.ZodNumber>;
69
+ read_bulk: z.ZodOptional<z.ZodNumber>;
70
+ write: z.ZodOptional<z.ZodNumber>;
71
+ search: z.ZodOptional<z.ZodNumber>;
72
+ search_or_write: z.ZodOptional<z.ZodNumber>;
73
+ search_and_write: z.ZodOptional<z.ZodNumber>;
74
+ filter: z.ZodOptional<z.ZodNumber>;
75
+ }, "strip", z.ZodTypeAny, {
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
+ }>>;
92
+ description: z.ZodOptional<z.ZodString>;
93
+ primary_color: z.ZodOptional<z.ZodString>;
94
+ secondary_color: z.ZodOptional<z.ZodString>;
95
+ classification: z.ZodOptional<z.ZodString>;
96
+ api_docs_url: z.ZodOptional<z.ZodString>;
97
+ image: z.ZodOptional<z.ZodString>;
98
+ }, "strip", z.ZodTypeAny, {
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
+ }>;
201
+ export type ImplementationMeta = z.infer<typeof ImplementationMetaSchema>;
202
+ /**
203
+ * Paginated response from /api/v4/implementations-meta/lookup/ and search endpoints
204
+ */
205
+ export declare const ImplementationsMetaResponseSchema: z.ZodObject<{
206
+ count: z.ZodNumber;
207
+ next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
208
+ previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
209
+ results: z.ZodArray<z.ZodObject<{
210
+ id: z.ZodString;
211
+ name: z.ZodString;
212
+ slug: z.ZodString;
213
+ age_in_days: z.ZodOptional<z.ZodNumber>;
214
+ auth_type: z.ZodOptional<z.ZodString>;
215
+ banner: z.ZodOptional<z.ZodString>;
216
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
217
+ id: z.ZodNumber;
218
+ name: z.ZodString;
219
+ slug: z.ZodString;
220
+ }, "strip", z.ZodTypeAny, {
221
+ id: number;
222
+ name: string;
223
+ slug: string;
224
+ }, {
225
+ id: number;
226
+ name: string;
227
+ slug: string;
228
+ }>, "many">>;
229
+ images: z.ZodOptional<z.ZodObject<{
230
+ url_16x16: z.ZodOptional<z.ZodString>;
231
+ url_32x32: z.ZodOptional<z.ZodString>;
232
+ url_64x64: z.ZodOptional<z.ZodString>;
233
+ url_128x128: z.ZodOptional<z.ZodString>;
234
+ }, "strip", z.ZodTypeAny, {
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
+ }>>;
245
+ popularity: z.ZodOptional<z.ZodNumber>;
246
+ has_filters: z.ZodOptional<z.ZodBoolean>;
247
+ has_reads: z.ZodOptional<z.ZodBoolean>;
248
+ has_searches: z.ZodOptional<z.ZodBoolean>;
249
+ has_searches_or_writes: z.ZodOptional<z.ZodBoolean>;
250
+ has_upfront_fields: z.ZodOptional<z.ZodBoolean>;
251
+ has_writes: z.ZodOptional<z.ZodBoolean>;
252
+ is_beta: z.ZodOptional<z.ZodBoolean>;
253
+ is_built_in: z.ZodOptional<z.ZodBoolean>;
254
+ is_deprecated: z.ZodOptional<z.ZodBoolean>;
255
+ is_featured: z.ZodOptional<z.ZodBoolean>;
256
+ is_hidden: z.ZodOptional<z.ZodBoolean>;
257
+ is_invite: z.ZodOptional<z.ZodBoolean>;
258
+ is_premium: z.ZodOptional<z.ZodBoolean>;
259
+ is_public: z.ZodOptional<z.ZodBoolean>;
260
+ is_upcoming: z.ZodOptional<z.ZodBoolean>;
261
+ version: z.ZodOptional<z.ZodString>;
262
+ visibility: z.ZodOptional<z.ZodString>;
263
+ actions: z.ZodOptional<z.ZodObject<{
264
+ read: z.ZodOptional<z.ZodNumber>;
265
+ read_bulk: z.ZodOptional<z.ZodNumber>;
266
+ write: z.ZodOptional<z.ZodNumber>;
267
+ search: z.ZodOptional<z.ZodNumber>;
268
+ search_or_write: z.ZodOptional<z.ZodNumber>;
269
+ search_and_write: z.ZodOptional<z.ZodNumber>;
270
+ filter: z.ZodOptional<z.ZodNumber>;
271
+ }, "strip", z.ZodTypeAny, {
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
+ }>>;
288
+ description: z.ZodOptional<z.ZodString>;
289
+ primary_color: z.ZodOptional<z.ZodString>;
290
+ secondary_color: z.ZodOptional<z.ZodString>;
291
+ classification: z.ZodOptional<z.ZodString>;
292
+ api_docs_url: z.ZodOptional<z.ZodString>;
293
+ image: z.ZodOptional<z.ZodString>;
294
+ }, "strip", z.ZodTypeAny, {
295
+ id: string;
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
+ }>;
510
+ export type ImplementationsMetaResponse = z.infer<typeof ImplementationsMetaResponseSchema>;
511
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2DnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK5C,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC"}
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Implementation schemas
3
+ *
4
+ * Covers:
5
+ * - Implementation metadata
6
+ * - Implementation listings
7
+ * - Version information
8
+ */
9
+ import { z } from "zod";
10
+ /**
11
+ * Lightweight implementation metadata returned by /api/v4/implementations-meta/*
12
+ */
13
+ export const ImplementationMetaSchema = z.object({
14
+ id: z.string(),
15
+ name: z.string(),
16
+ slug: z.string(),
17
+ age_in_days: z.number().optional(),
18
+ auth_type: z.string().optional(),
19
+ banner: z.string().optional(),
20
+ categories: z
21
+ .array(z.object({
22
+ id: z.number(),
23
+ name: z.string(),
24
+ slug: z.string(),
25
+ }))
26
+ .optional(),
27
+ images: z
28
+ .object({
29
+ url_16x16: z.string().optional(),
30
+ url_32x32: z.string().optional(),
31
+ url_64x64: z.string().optional(),
32
+ url_128x128: z.string().optional(),
33
+ })
34
+ .optional(),
35
+ popularity: z.number().optional(),
36
+ has_filters: z.boolean().optional(),
37
+ has_reads: z.boolean().optional(),
38
+ has_searches: z.boolean().optional(),
39
+ has_searches_or_writes: z.boolean().optional(),
40
+ has_upfront_fields: z.boolean().optional(),
41
+ has_writes: z.boolean().optional(),
42
+ is_beta: z.boolean().optional(),
43
+ is_built_in: z.boolean().optional(),
44
+ is_deprecated: z.boolean().optional(),
45
+ is_featured: z.boolean().optional(),
46
+ is_hidden: z.boolean().optional(),
47
+ is_invite: z.boolean().optional(),
48
+ is_premium: z.boolean().optional(),
49
+ is_public: z.boolean().optional(),
50
+ is_upcoming: z.boolean().optional(),
51
+ version: z.string().optional(),
52
+ visibility: z.string().optional(),
53
+ actions: z
54
+ .object({
55
+ read: z.number().optional(),
56
+ read_bulk: z.number().optional(),
57
+ write: z.number().optional(),
58
+ search: z.number().optional(),
59
+ search_or_write: z.number().optional(),
60
+ search_and_write: z.number().optional(),
61
+ filter: z.number().optional(),
62
+ })
63
+ .optional(),
64
+ description: z.string().optional(),
65
+ primary_color: z.string().optional(),
66
+ secondary_color: z.string().optional(),
67
+ classification: z.string().optional(),
68
+ api_docs_url: z.string().optional(),
69
+ image: z.string().optional(),
70
+ });
71
+ /**
72
+ * Paginated response from /api/v4/implementations-meta/lookup/ and search endpoints
73
+ */
74
+ export const ImplementationsMetaResponseSchema = z.object({
75
+ count: z.number(),
76
+ next: z.string().nullable().optional(),
77
+ previous: z.string().nullable().optional(),
78
+ results: z.array(ImplementationMetaSchema),
79
+ });
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Core handler types for temporary-internal-core
3
+ *
4
+ * These types define the contract that all handlers must follow.
5
+ * This ensures consistency across extractions and makes it easier to
6
+ * migrate handlers to the SDK API later.
7
+ */
8
+ import type { z } from "zod";
9
+ /**
10
+ * Base interface for handler dependencies
11
+ *
12
+ * All handlers receive dependencies via dependency injection.
13
+ * This allows different implementations in different environments:
14
+ * - SDK plugin injects: { httpClient: api } (SDK's ApiClient)
15
+ * - SDK API injects: { httpClient: internalClient } (direct internal calls)
16
+ * - Tests inject: { httpClient: mockClient } (mocked responses)
17
+ *
18
+ * Individual handlers define their own dependency interfaces extending this base.
19
+ * The base interface is intentionally minimal - handlers specify their exact needs.
20
+ */
21
+ export interface HandlerDeps {
22
+ }
23
+ /**
24
+ * Generic handler function type
25
+ *
26
+ * All handlers follow this signature:
27
+ * - Take a validated request object
28
+ * - Take injected dependencies
29
+ * - Return a typed response
30
+ *
31
+ * @template TRequest - The request type (should match a Zod schema)
32
+ * @template TResponse - The response type (should match a Zod schema)
33
+ * @template TDeps - The dependencies type (extends HandlerDeps)
34
+ */
35
+ export interface Handler<TRequest, TResponse, TDeps extends HandlerDeps = HandlerDeps> {
36
+ (params: {
37
+ request: TRequest;
38
+ deps: TDeps;
39
+ }): Promise<TResponse>;
40
+ }
41
+ /**
42
+ * Handler with schemas for runtime validation
43
+ *
44
+ * This extends the Handler interface with Zod schemas that can be used
45
+ * for runtime validation of requests and responses.
46
+ */
47
+ export interface ValidatedHandler<TRequest, TResponse, TDeps extends HandlerDeps = HandlerDeps> extends Handler<TRequest, TResponse, TDeps> {
48
+ requestSchema: z.ZodSchema<TRequest>;
49
+ responseSchema: z.ZodSchema<TResponse>;
50
+ }
51
+ //# sourceMappingURL=handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../src/temporary-internal-core/types/handler.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,WAAW;CAG3B;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,OAAO,CACtB,QAAQ,EACR,SAAS,EACT,KAAK,SAAS,WAAW,GAAG,WAAW;IAEvC,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,QAAQ,CAAC;QAAC,IAAI,EAAE,KAAK,CAAA;KAAE,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;CAClE;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB,CAC/B,QAAQ,EACR,SAAS,EACT,KAAK,SAAS,WAAW,GAAG,WAAW,CACvC,SAAQ,OAAO,CAAC,QAAQ,EAAE,SAAS,EAAE,KAAK,CAAC;IAC3C,aAAa,EAAE,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACrC,cAAc,EAAE,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;CACxC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Core handler types for temporary-internal-core
3
+ *
4
+ * These types define the contract that all handlers must follow.
5
+ * This ensures consistency across extractions and makes it easier to
6
+ * migrate handlers to the SDK API later.
7
+ */
8
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Core types for temporary-internal-core
3
+ */
4
+ export type { HandlerDeps, Handler, ValidatedHandler } from "./handler";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/temporary-internal-core/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Core types for temporary-internal-core
3
+ */
4
+ export {};