@zapier/zapier-sdk 0.12.0 → 0.13.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.
Files changed (101) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +336 -128
  3. package/dist/api/schemas.d.ts +10 -865
  4. package/dist/api/schemas.d.ts.map +1 -1
  5. package/dist/api/schemas.js +0 -6
  6. package/dist/index.cjs +108 -58
  7. package/dist/index.d.mts +88 -434
  8. package/dist/index.d.ts +1 -0
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.mjs +108 -58
  11. package/dist/plugins/apps/index.d.ts +2 -2
  12. package/dist/plugins/apps/index.d.ts.map +1 -1
  13. package/dist/plugins/apps/index.js +21 -0
  14. package/dist/plugins/apps/schemas.d.ts +51 -0
  15. package/dist/plugins/apps/schemas.d.ts.map +1 -0
  16. package/dist/plugins/apps/schemas.js +13 -0
  17. package/dist/plugins/findFirstAuthentication/schemas.js +1 -1
  18. package/dist/plugins/findUniqueAuthentication/schemas.js +1 -1
  19. package/dist/plugins/getApp/schemas.js +1 -1
  20. package/dist/plugins/getAuthentication/index.test.js +1 -1
  21. package/dist/plugins/listActions/index.d.ts +1 -0
  22. package/dist/plugins/listActions/index.d.ts.map +1 -1
  23. package/dist/plugins/listActions/schemas.d.ts +3 -0
  24. package/dist/plugins/listActions/schemas.d.ts.map +1 -1
  25. package/dist/plugins/listActions/schemas.js +2 -1
  26. package/dist/plugins/listApps/index.d.ts +1 -0
  27. package/dist/plugins/listApps/index.d.ts.map +1 -1
  28. package/dist/plugins/listApps/schemas.d.ts +3 -0
  29. package/dist/plugins/listApps/schemas.d.ts.map +1 -1
  30. package/dist/plugins/listApps/schemas.js +1 -0
  31. package/dist/plugins/listAuthentications/index.d.ts +1 -0
  32. package/dist/plugins/listAuthentications/index.d.ts.map +1 -1
  33. package/dist/plugins/listAuthentications/schemas.d.ts +3 -0
  34. package/dist/plugins/listAuthentications/schemas.d.ts.map +1 -1
  35. package/dist/plugins/listAuthentications/schemas.js +2 -1
  36. package/dist/plugins/listInputFieldChoices/index.d.ts +1 -0
  37. package/dist/plugins/listInputFieldChoices/index.d.ts.map +1 -1
  38. package/dist/plugins/listInputFieldChoices/schemas.d.ts +3 -0
  39. package/dist/plugins/listInputFieldChoices/schemas.d.ts.map +1 -1
  40. package/dist/plugins/listInputFieldChoices/schemas.js +1 -0
  41. package/dist/plugins/listInputFields/index.d.ts +1 -0
  42. package/dist/plugins/listInputFields/index.d.ts.map +1 -1
  43. package/dist/plugins/listInputFields/schemas.d.ts +3 -0
  44. package/dist/plugins/listInputFields/schemas.d.ts.map +1 -1
  45. package/dist/plugins/listInputFields/schemas.js +1 -0
  46. package/dist/plugins/registry/index.d.ts.map +1 -1
  47. package/dist/plugins/registry/index.js +12 -1
  48. package/dist/plugins/runAction/index.d.ts +1 -0
  49. package/dist/plugins/runAction/index.d.ts.map +1 -1
  50. package/dist/plugins/runAction/schemas.d.ts +3 -0
  51. package/dist/plugins/runAction/schemas.d.ts.map +1 -1
  52. package/dist/plugins/runAction/schemas.js +1 -0
  53. package/dist/schemas/Action.d.ts +4 -206
  54. package/dist/schemas/Action.d.ts.map +1 -1
  55. package/dist/schemas/Action.js +3 -2
  56. package/dist/schemas/App.d.ts.map +1 -1
  57. package/dist/schemas/App.js +1 -0
  58. package/dist/schemas/Auth.d.ts +10 -10
  59. package/dist/schemas/Auth.js +1 -1
  60. package/dist/types/properties.d.ts.map +1 -1
  61. package/dist/types/properties.js +4 -1
  62. package/dist/types/sdk.d.ts +1 -1
  63. package/dist/types/sdk.d.ts.map +1 -1
  64. package/dist/utils/domain-utils.d.ts +2 -2
  65. package/dist/utils/domain-utils.d.ts.map +1 -1
  66. package/dist/utils/domain-utils.js +19 -8
  67. package/dist/utils/schema-utils.d.ts +1 -0
  68. package/dist/utils/schema-utils.d.ts.map +1 -1
  69. package/package.json +1 -1
  70. package/src/api/schemas.ts +0 -6
  71. package/src/index.ts +1 -0
  72. package/src/plugins/apps/index.ts +28 -7
  73. package/src/plugins/apps/{types.ts → schemas.ts} +27 -9
  74. package/src/plugins/findFirstAuthentication/schemas.ts +1 -1
  75. package/src/plugins/findUniqueAuthentication/schemas.ts +1 -1
  76. package/src/plugins/getApp/schemas.ts +1 -1
  77. package/src/plugins/getAuthentication/index.test.ts +1 -1
  78. package/src/plugins/listActions/index.ts +1 -0
  79. package/src/plugins/listActions/schemas.ts +2 -1
  80. package/src/plugins/listApps/index.ts +4 -1
  81. package/src/plugins/listApps/schemas.ts +1 -0
  82. package/src/plugins/listAuthentications/index.ts +1 -0
  83. package/src/plugins/listAuthentications/schemas.ts +2 -1
  84. package/src/plugins/listInputFieldChoices/index.ts +1 -0
  85. package/src/plugins/listInputFieldChoices/schemas.ts +1 -0
  86. package/src/plugins/listInputFields/index.ts +1 -0
  87. package/src/plugins/listInputFields/schemas.ts +1 -0
  88. package/src/plugins/registry/index.ts +12 -1
  89. package/src/plugins/runAction/index.ts +4 -1
  90. package/src/plugins/runAction/schemas.ts +1 -0
  91. package/src/schemas/Action.ts +3 -2
  92. package/src/schemas/App.ts +1 -0
  93. package/src/schemas/Auth.ts +1 -1
  94. package/src/types/properties.ts +4 -1
  95. package/src/types/sdk.ts +1 -1
  96. package/src/utils/domain-utils.ts +22 -9
  97. package/src/utils/schema-utils.ts +1 -0
  98. package/tsconfig.tsbuildinfo +1 -1
  99. package/dist/plugins/apps/types.d.ts +0 -30
  100. package/dist/plugins/apps/types.d.ts.map +0 -1
  101. package/dist/plugins/apps/types.js +0 -2
package/dist/index.d.mts CHANGED
@@ -148,231 +148,28 @@ declare const ActionSchema: z.ZodObject<{
148
148
  type: z.ZodEnum<["filter", "read", "read_bulk", "run", "search", "search_and_write", "search_or_write", "write"]>;
149
149
  key: z.ZodString;
150
150
  name: z.ZodString;
151
- noun: z.ZodOptional<z.ZodString>;
152
151
  description: z.ZodString;
153
- description_html: z.ZodOptional<z.ZodString>;
154
152
  is_important: z.ZodOptional<z.ZodBoolean>;
155
153
  is_hidden: z.ZodOptional<z.ZodBoolean>;
156
- needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
157
- key: z.ZodString;
158
- alters_custom_fields: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
159
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
160
- choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
161
- key: z.ZodOptional<z.ZodString>;
162
- label: z.ZodOptional<z.ZodString>;
163
- sample: z.ZodOptional<z.ZodString>;
164
- value: z.ZodOptional<z.ZodString>;
165
- }, "strip", z.ZodTypeAny, {
166
- value?: string | undefined;
167
- key?: string | undefined;
168
- label?: string | undefined;
169
- sample?: string | undefined;
170
- }, {
171
- value?: string | undefined;
172
- key?: string | undefined;
173
- label?: string | undefined;
174
- sample?: string | undefined;
175
- }>, "many">>;
176
- computed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
177
- custom_field: z.ZodOptional<z.ZodBoolean>;
178
- default: z.ZodOptional<z.ZodString>;
179
- depends_on: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
180
- format: z.ZodOptional<z.ZodLiteral<"SELECT">>;
181
- from_search: z.ZodOptional<z.ZodBoolean>;
182
- from_write: z.ZodOptional<z.ZodBoolean>;
183
- help_text: z.ZodOptional<z.ZodString>;
184
- help_text_html: z.ZodOptional<z.ZodString>;
185
- input_format: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
186
- label: z.ZodOptional<z.ZodString>;
187
- language: z.ZodOptional<z.ZodString>;
188
- parent_key: z.ZodOptional<z.ZodString>;
189
- placeholder: z.ZodOptional<z.ZodString>;
190
- prefill: z.ZodOptional<z.ZodString>;
191
- required: z.ZodOptional<z.ZodBoolean>;
192
- searchfill: z.ZodOptional<z.ZodString>;
193
- send_in_json: z.ZodOptional<z.ZodBoolean>;
194
- regex: z.ZodOptional<z.ZodString>;
195
- type: z.ZodOptional<z.ZodEnum<["integer", "string", "text", "datetime", "boolean", "file", "decimal", "copy", "password", "dict", "code", "filter", "json"]>>;
196
- list: z.ZodOptional<z.ZodBoolean>;
197
- }, "strip", z.ZodTypeAny, {
198
- key: string;
199
- type?: "string" | "boolean" | "filter" | "code" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
200
- label?: string | undefined;
201
- alters_custom_fields?: boolean | null | undefined;
202
- capabilities?: string[] | undefined;
203
- choices?: {
204
- value?: string | undefined;
205
- key?: string | undefined;
206
- label?: string | undefined;
207
- sample?: string | undefined;
208
- }[] | undefined;
209
- computed?: boolean | null | undefined;
210
- custom_field?: boolean | undefined;
211
- default?: string | undefined;
212
- depends_on?: string[] | undefined;
213
- format?: "SELECT" | undefined;
214
- from_search?: boolean | undefined;
215
- from_write?: boolean | undefined;
216
- help_text?: string | undefined;
217
- help_text_html?: string | undefined;
218
- input_format?: string[] | undefined;
219
- language?: string | undefined;
220
- parent_key?: string | undefined;
221
- placeholder?: string | undefined;
222
- prefill?: string | undefined;
223
- required?: boolean | undefined;
224
- searchfill?: string | undefined;
225
- send_in_json?: boolean | undefined;
226
- regex?: string | undefined;
227
- list?: boolean | undefined;
228
- }, {
229
- key: string;
230
- type?: "string" | "boolean" | "filter" | "code" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
231
- label?: string | undefined;
232
- alters_custom_fields?: boolean | null | undefined;
233
- capabilities?: string[] | undefined;
234
- choices?: {
235
- value?: string | undefined;
236
- key?: string | undefined;
237
- label?: string | undefined;
238
- sample?: string | undefined;
239
- }[] | undefined;
240
- computed?: boolean | null | undefined;
241
- custom_field?: boolean | undefined;
242
- default?: string | undefined;
243
- depends_on?: string[] | undefined;
244
- format?: "SELECT" | undefined;
245
- from_search?: boolean | undefined;
246
- from_write?: boolean | undefined;
247
- help_text?: string | undefined;
248
- help_text_html?: string | undefined;
249
- input_format?: string[] | undefined;
250
- language?: string | undefined;
251
- parent_key?: string | undefined;
252
- placeholder?: string | undefined;
253
- prefill?: string | undefined;
254
- required?: boolean | undefined;
255
- searchfill?: string | undefined;
256
- send_in_json?: boolean | undefined;
257
- regex?: string | undefined;
258
- list?: boolean | undefined;
259
- }>, "many">>;
260
- meta: z.ZodOptional<z.ZodString>;
261
154
  selected_api: z.ZodOptional<z.ZodString>;
262
- links: z.ZodOptional<z.ZodObject<{
263
- action_url: z.ZodOptional<z.ZodString>;
264
- }, "strip", z.ZodTypeAny, {
265
- action_url?: string | undefined;
266
- }, {
267
- action_url?: string | undefined;
268
- }>>;
269
- permissions: z.ZodOptional<z.ZodObject<{
270
- can_use: z.ZodOptional<z.ZodBoolean>;
271
- }, "strip", z.ZodTypeAny, {
272
- can_use?: boolean | undefined;
273
- }, {
274
- can_use?: boolean | undefined;
275
- }>>;
276
155
  }, "strip", z.ZodTypeAny, {
277
156
  type: "filter" | "read" | "read_bulk" | "write" | "run" | "search" | "search_or_write" | "search_and_write";
278
157
  key: string;
279
158
  name: string;
280
159
  description: string;
281
160
  id?: string | undefined;
282
- noun?: string | undefined;
283
- description_html?: string | undefined;
284
161
  is_important?: boolean | undefined;
285
162
  is_hidden?: boolean | undefined;
286
- needs?: {
287
- key: string;
288
- type?: "string" | "boolean" | "filter" | "code" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
289
- label?: string | undefined;
290
- alters_custom_fields?: boolean | null | undefined;
291
- capabilities?: string[] | undefined;
292
- choices?: {
293
- value?: string | undefined;
294
- key?: string | undefined;
295
- label?: string | undefined;
296
- sample?: string | undefined;
297
- }[] | undefined;
298
- computed?: boolean | null | undefined;
299
- custom_field?: boolean | undefined;
300
- default?: string | undefined;
301
- depends_on?: string[] | undefined;
302
- format?: "SELECT" | undefined;
303
- from_search?: boolean | undefined;
304
- from_write?: boolean | undefined;
305
- help_text?: string | undefined;
306
- help_text_html?: string | undefined;
307
- input_format?: string[] | undefined;
308
- language?: string | undefined;
309
- parent_key?: string | undefined;
310
- placeholder?: string | undefined;
311
- prefill?: string | undefined;
312
- required?: boolean | undefined;
313
- searchfill?: string | undefined;
314
- send_in_json?: boolean | undefined;
315
- regex?: string | undefined;
316
- list?: boolean | undefined;
317
- }[] | undefined;
318
- meta?: string | undefined;
319
163
  selected_api?: string | undefined;
320
- links?: {
321
- action_url?: string | undefined;
322
- } | undefined;
323
- permissions?: {
324
- can_use?: boolean | undefined;
325
- } | undefined;
326
164
  }, {
327
165
  type: "filter" | "read" | "read_bulk" | "write" | "run" | "search" | "search_or_write" | "search_and_write";
328
166
  key: string;
329
167
  name: string;
330
168
  description: string;
331
169
  id?: string | undefined;
332
- noun?: string | undefined;
333
- description_html?: string | undefined;
334
170
  is_important?: boolean | undefined;
335
171
  is_hidden?: boolean | undefined;
336
- needs?: {
337
- key: string;
338
- type?: "string" | "boolean" | "filter" | "code" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
339
- label?: string | undefined;
340
- alters_custom_fields?: boolean | null | undefined;
341
- capabilities?: string[] | undefined;
342
- choices?: {
343
- value?: string | undefined;
344
- key?: string | undefined;
345
- label?: string | undefined;
346
- sample?: string | undefined;
347
- }[] | undefined;
348
- computed?: boolean | null | undefined;
349
- custom_field?: boolean | undefined;
350
- default?: string | undefined;
351
- depends_on?: string[] | undefined;
352
- format?: "SELECT" | undefined;
353
- from_search?: boolean | undefined;
354
- from_write?: boolean | undefined;
355
- help_text?: string | undefined;
356
- help_text_html?: string | undefined;
357
- input_format?: string[] | undefined;
358
- language?: string | undefined;
359
- parent_key?: string | undefined;
360
- placeholder?: string | undefined;
361
- prefill?: string | undefined;
362
- required?: boolean | undefined;
363
- searchfill?: string | undefined;
364
- send_in_json?: boolean | undefined;
365
- regex?: string | undefined;
366
- list?: boolean | undefined;
367
- }[] | undefined;
368
- meta?: string | undefined;
369
172
  selected_api?: string | undefined;
370
- links?: {
371
- action_url?: string | undefined;
372
- } | undefined;
373
- permissions?: {
374
- can_use?: boolean | undefined;
375
- } | undefined;
376
173
  }>;
377
174
  declare const ChoiceSchema: z.ZodObject<{
378
175
  value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
@@ -530,7 +327,6 @@ declare const AuthenticationSchema: z.ZodObject<{
530
327
  shared_with_all: boolean;
531
328
  url?: string | undefined;
532
329
  label?: string | null | undefined;
533
- permissions?: Record<string, boolean> | undefined;
534
330
  lastchanged?: string | undefined;
535
331
  customuser_id?: number | undefined;
536
332
  destination_selected_api?: string | null | undefined;
@@ -541,6 +337,7 @@ declare const AuthenticationSchema: z.ZodObject<{
541
337
  title?: string | null | undefined;
542
338
  groups?: string | undefined;
543
339
  members?: string | undefined;
340
+ permissions?: Record<string, boolean> | undefined;
544
341
  }, {
545
342
  id: number;
546
343
  date: string;
@@ -551,7 +348,6 @@ declare const AuthenticationSchema: z.ZodObject<{
551
348
  shared_with_all: boolean;
552
349
  url?: string | undefined;
553
350
  label?: string | null | undefined;
554
- permissions?: Record<string, boolean> | undefined;
555
351
  lastchanged?: string | undefined;
556
352
  customuser_id?: number | undefined;
557
353
  destination_selected_api?: string | null | undefined;
@@ -562,6 +358,7 @@ declare const AuthenticationSchema: z.ZodObject<{
562
358
  title?: string | null | undefined;
563
359
  groups?: string | undefined;
564
360
  members?: string | undefined;
361
+ permissions?: Record<string, boolean> | undefined;
565
362
  }>;
566
363
  declare const AuthenticationsResponseSchema: z.ZodObject<{
567
364
  count: z.ZodNumber;
@@ -598,7 +395,6 @@ declare const AuthenticationsResponseSchema: z.ZodObject<{
598
395
  shared_with_all: boolean;
599
396
  url?: string | undefined;
600
397
  label?: string | null | undefined;
601
- permissions?: Record<string, boolean> | undefined;
602
398
  lastchanged?: string | undefined;
603
399
  customuser_id?: number | undefined;
604
400
  destination_selected_api?: string | null | undefined;
@@ -609,6 +405,7 @@ declare const AuthenticationsResponseSchema: z.ZodObject<{
609
405
  title?: string | null | undefined;
610
406
  groups?: string | undefined;
611
407
  members?: string | undefined;
408
+ permissions?: Record<string, boolean> | undefined;
612
409
  }, {
613
410
  id: number;
614
411
  date: string;
@@ -619,7 +416,6 @@ declare const AuthenticationsResponseSchema: z.ZodObject<{
619
416
  shared_with_all: boolean;
620
417
  url?: string | undefined;
621
418
  label?: string | null | undefined;
622
- permissions?: Record<string, boolean> | undefined;
623
419
  lastchanged?: string | undefined;
624
420
  customuser_id?: number | undefined;
625
421
  destination_selected_api?: string | null | undefined;
@@ -630,6 +426,7 @@ declare const AuthenticationsResponseSchema: z.ZodObject<{
630
426
  title?: string | null | undefined;
631
427
  groups?: string | undefined;
632
428
  members?: string | undefined;
429
+ permissions?: Record<string, boolean> | undefined;
633
430
  }>, "many">;
634
431
  }, "strip", z.ZodTypeAny, {
635
432
  count: number;
@@ -643,7 +440,6 @@ declare const AuthenticationsResponseSchema: z.ZodObject<{
643
440
  shared_with_all: boolean;
644
441
  url?: string | undefined;
645
442
  label?: string | null | undefined;
646
- permissions?: Record<string, boolean> | undefined;
647
443
  lastchanged?: string | undefined;
648
444
  customuser_id?: number | undefined;
649
445
  destination_selected_api?: string | null | undefined;
@@ -654,6 +450,7 @@ declare const AuthenticationsResponseSchema: z.ZodObject<{
654
450
  title?: string | null | undefined;
655
451
  groups?: string | undefined;
656
452
  members?: string | undefined;
453
+ permissions?: Record<string, boolean> | undefined;
657
454
  }[];
658
455
  next?: string | null | undefined;
659
456
  previous?: string | null | undefined;
@@ -669,7 +466,6 @@ declare const AuthenticationsResponseSchema: z.ZodObject<{
669
466
  shared_with_all: boolean;
670
467
  url?: string | undefined;
671
468
  label?: string | null | undefined;
672
- permissions?: Record<string, boolean> | undefined;
673
469
  lastchanged?: string | undefined;
674
470
  customuser_id?: number | undefined;
675
471
  destination_selected_api?: string | null | undefined;
@@ -680,6 +476,7 @@ declare const AuthenticationsResponseSchema: z.ZodObject<{
680
476
  title?: string | null | undefined;
681
477
  groups?: string | undefined;
682
478
  members?: string | undefined;
479
+ permissions?: Record<string, boolean> | undefined;
683
480
  }[];
684
481
  next?: string | null | undefined;
685
482
  previous?: string | null | undefined;
@@ -1368,6 +1165,7 @@ declare const ListInputFieldsSchema: z.ZodObject<{
1368
1165
  inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1369
1166
  pageSize: z.ZodOptional<z.ZodNumber>;
1370
1167
  maxItems: z.ZodOptional<z.ZodNumber>;
1168
+ cursor: z.ZodOptional<z.ZodString>;
1371
1169
  }, "strip", z.ZodTypeAny, {
1372
1170
  appKey: string;
1373
1171
  actionType: "filter" | "read" | "read_bulk" | "write" | "run" | "search" | "search_or_write" | "search_and_write";
@@ -1376,6 +1174,7 @@ declare const ListInputFieldsSchema: z.ZodObject<{
1376
1174
  inputs?: Record<string, unknown> | undefined;
1377
1175
  pageSize?: number | undefined;
1378
1176
  maxItems?: number | undefined;
1177
+ cursor?: string | undefined;
1379
1178
  }, {
1380
1179
  appKey: string;
1381
1180
  actionType: "filter" | "read" | "read_bulk" | "write" | "run" | "search" | "search_or_write" | "search_and_write";
@@ -1384,6 +1183,7 @@ declare const ListInputFieldsSchema: z.ZodObject<{
1384
1183
  inputs?: Record<string, unknown> | undefined;
1385
1184
  pageSize?: number | undefined;
1386
1185
  maxItems?: number | undefined;
1186
+ cursor?: string | undefined;
1387
1187
  }>;
1388
1188
  type ListInputFieldsOptions = z.infer<typeof ListInputFieldsSchema>;
1389
1189
 
@@ -1613,15 +1413,35 @@ declare const getProfilePlugin: Plugin<{}, // no SDK dependencies
1613
1413
  }, // requires api in context
1614
1414
  GetProfilePluginProvides>;
1615
1415
 
1616
- interface ActionExecutionOptions {
1617
- inputs?: Record<string, any>;
1618
- authenticationId?: number;
1619
- }
1620
- interface AppFactoryOptions {
1416
+ declare const ActionExecutionInputSchema: z.ZodObject<{
1417
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1418
+ authenticationId: z.ZodOptional<z.ZodNumber>;
1419
+ }, "strip", z.ZodTypeAny, {
1420
+ authenticationId?: number | undefined;
1421
+ inputs?: Record<string, unknown> | undefined;
1422
+ }, {
1423
+ authenticationId?: number | undefined;
1424
+ inputs?: Record<string, unknown> | undefined;
1425
+ }>;
1426
+ type ActionExecutionOptions = z.infer<typeof ActionExecutionInputSchema>;
1427
+ declare const AppFactoryInputSchema: z.ZodObject<{
1428
+ authenticationId: z.ZodNumber;
1429
+ }, "strip", z.ZodTypeAny, {
1621
1430
  authenticationId: number;
1622
- }
1431
+ }, {
1432
+ authenticationId: number;
1433
+ }>;
1434
+ type AppFactoryInput = z.infer<typeof AppFactoryInputSchema>;
1623
1435
  interface BaseActionTypeProxy {
1624
- [action: string]: (options?: ActionExecutionOptions) => unknown;
1436
+ [action: string]: (options?: ActionExecutionOptions) => Promise<{
1437
+ data: any[];
1438
+ nextCursor?: string;
1439
+ }> & AsyncIterable<{
1440
+ data: any[];
1441
+ nextCursor?: string;
1442
+ }> & {
1443
+ items(): AsyncIterable<any>;
1444
+ };
1625
1445
  }
1626
1446
  interface FetchActionType {
1627
1447
  fetch: (url: string | URL, init?: RequestInit & {
@@ -1635,7 +1455,7 @@ interface AppProxy {
1635
1455
  [type: string]: ActionTypeProxy;
1636
1456
  }
1637
1457
  interface AppFactory {
1638
- (options: AppFactoryOptions): AppProxy;
1458
+ (options: AppFactoryInput): AppProxy;
1639
1459
  }
1640
1460
  type AppProxyWithFactory = AppFactory & AppProxy;
1641
1461
  interface ActionProxy {
@@ -1700,6 +1520,7 @@ declare const RunActionSchema: z.ZodObject<{
1700
1520
  inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1701
1521
  pageSize: z.ZodOptional<z.ZodNumber>;
1702
1522
  maxItems: z.ZodOptional<z.ZodNumber>;
1523
+ cursor: z.ZodOptional<z.ZodString>;
1703
1524
  }, "strip", z.ZodTypeAny, {
1704
1525
  appKey: string;
1705
1526
  actionType: "filter" | "read" | "read_bulk" | "write" | "run" | "search" | "search_or_write" | "search_and_write";
@@ -1708,6 +1529,7 @@ declare const RunActionSchema: z.ZodObject<{
1708
1529
  inputs?: Record<string, unknown> | undefined;
1709
1530
  pageSize?: number | undefined;
1710
1531
  maxItems?: number | undefined;
1532
+ cursor?: string | undefined;
1711
1533
  }, {
1712
1534
  appKey: string;
1713
1535
  actionType: "filter" | "read" | "read_bulk" | "write" | "run" | "search" | "search_or_write" | "search_and_write";
@@ -1716,6 +1538,7 @@ declare const RunActionSchema: z.ZodObject<{
1716
1538
  inputs?: Record<string, unknown> | undefined;
1717
1539
  pageSize?: number | undefined;
1718
1540
  maxItems?: number | undefined;
1541
+ cursor?: string | undefined;
1719
1542
  }>;
1720
1543
  type RunActionOptions = z.infer<typeof RunActionSchema>;
1721
1544
 
@@ -1743,16 +1566,19 @@ declare const ListActionsSchema: z.ZodObject<{
1743
1566
  actionType: z.ZodOptional<z.ZodEnum<["read", "read_bulk", "write", "run", "search", "search_or_write", "search_and_write", "filter"]>>;
1744
1567
  pageSize: z.ZodOptional<z.ZodNumber>;
1745
1568
  maxItems: z.ZodOptional<z.ZodNumber>;
1569
+ cursor: z.ZodOptional<z.ZodString>;
1746
1570
  }, "strip", z.ZodTypeAny, {
1747
1571
  appKey: string;
1748
1572
  actionType?: "filter" | "read" | "read_bulk" | "write" | "run" | "search" | "search_or_write" | "search_and_write" | undefined;
1749
1573
  pageSize?: number | undefined;
1750
1574
  maxItems?: number | undefined;
1575
+ cursor?: string | undefined;
1751
1576
  }, {
1752
1577
  appKey: string;
1753
1578
  actionType?: "filter" | "read" | "read_bulk" | "write" | "run" | "search" | "search_or_write" | "search_and_write" | undefined;
1754
1579
  pageSize?: number | undefined;
1755
1580
  maxItems?: number | undefined;
1581
+ cursor?: string | undefined;
1756
1582
  }>;
1757
1583
  type ListActionsOptions = z.infer<typeof ListActionsSchema>;
1758
1584
 
@@ -1845,6 +1671,7 @@ declare const manifestPlugin: Plugin<{}, // no SDK dependencies
1845
1671
  interface ListActionsPluginProvides {
1846
1672
  listActions: (options?: ListActionsOptions) => Promise<{
1847
1673
  data: ActionItem$1[];
1674
+ nextCursor?: string;
1848
1675
  }> & AsyncIterable<{
1849
1676
  data: ActionItem$1[];
1850
1677
  nextCursor?: string;
@@ -1898,15 +1725,18 @@ declare const ListAppsSchema: z.ZodObject<{
1898
1725
  search: z.ZodOptional<z.ZodString>;
1899
1726
  pageSize: z.ZodOptional<z.ZodNumber>;
1900
1727
  maxItems: z.ZodOptional<z.ZodNumber>;
1728
+ cursor: z.ZodOptional<z.ZodString>;
1901
1729
  }, "strip", z.ZodTypeAny, {
1902
1730
  search?: string | undefined;
1903
1731
  pageSize?: number | undefined;
1904
1732
  maxItems?: number | undefined;
1733
+ cursor?: string | undefined;
1905
1734
  appKeys?: string[] | undefined;
1906
1735
  }, {
1907
1736
  search?: string | undefined;
1908
1737
  pageSize?: number | undefined;
1909
1738
  maxItems?: number | undefined;
1739
+ cursor?: string | undefined;
1910
1740
  appKeys?: string[] | undefined;
1911
1741
  }>;
1912
1742
  type ListAppsOptions = z.infer<typeof ListAppsSchema>;
@@ -1925,6 +1755,7 @@ ApiPluginProvides>;
1925
1755
  interface ListAppsPluginProvides {
1926
1756
  listApps: (options?: ListAppsOptions) => Promise<{
1927
1757
  data: AppItem[];
1758
+ nextCursor?: string;
1928
1759
  }> & AsyncIterable<{
1929
1760
  data: AppItem[];
1930
1761
  nextCursor?: string;
@@ -1958,6 +1789,7 @@ declare const getAppPlugin: Plugin<GetSdkType<ListAppsPluginProvides>, {}, GetAp
1958
1789
  interface RunActionPluginProvides {
1959
1790
  runAction: (options?: RunActionOptions) => Promise<{
1960
1791
  data: any[];
1792
+ nextCursor?: string;
1961
1793
  }> & AsyncIterable<{
1962
1794
  data: any[];
1963
1795
  nextCursor?: string;
@@ -2000,12 +1832,14 @@ declare const ListAuthenticationsSchema: z.ZodObject<{
2000
1832
  owner: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<"me">]>>;
2001
1833
  pageSize: z.ZodOptional<z.ZodNumber>;
2002
1834
  maxItems: z.ZodOptional<z.ZodNumber>;
1835
+ cursor: z.ZodOptional<z.ZodString>;
2003
1836
  }, "strip", z.ZodTypeAny, {
2004
1837
  search?: string | undefined;
2005
1838
  title?: string | undefined;
2006
1839
  appKey?: string | undefined;
2007
1840
  pageSize?: number | undefined;
2008
1841
  maxItems?: number | undefined;
1842
+ cursor?: string | undefined;
2009
1843
  accountId?: string | undefined;
2010
1844
  owner?: string | undefined;
2011
1845
  authenticationIds?: string[] | undefined;
@@ -2015,6 +1849,7 @@ declare const ListAuthenticationsSchema: z.ZodObject<{
2015
1849
  appKey?: string | undefined;
2016
1850
  pageSize?: number | undefined;
2017
1851
  maxItems?: number | undefined;
1852
+ cursor?: string | undefined;
2018
1853
  accountId?: string | undefined;
2019
1854
  owner?: string | undefined;
2020
1855
  authenticationIds?: string[] | undefined;
@@ -2024,6 +1859,7 @@ type ListAuthenticationsOptions = z.infer<typeof ListAuthenticationsSchema>;
2024
1859
  interface ListAuthenticationsPluginProvides {
2025
1860
  listAuthentications: (options?: ListAuthenticationsOptions) => Promise<{
2026
1861
  data: AuthenticationItem[];
1862
+ nextCursor?: string;
2027
1863
  }> & AsyncIterable<{
2028
1864
  data: AuthenticationItem[];
2029
1865
  nextCursor?: string;
@@ -2096,6 +1932,7 @@ FindUniqueAuthenticationPluginProvides>;
2096
1932
  interface ListInputFieldsPluginProvides {
2097
1933
  listInputFields: (options?: ListInputFieldsOptions) => Promise<{
2098
1934
  data: RootFieldItem[];
1935
+ nextCursor?: string;
2099
1936
  }> & AsyncIterable<{
2100
1937
  data: RootFieldItem[];
2101
1938
  nextCursor?: string;
@@ -2146,6 +1983,7 @@ declare const ListInputFieldChoicesSchema: z.ZodObject<{
2146
1983
  page: z.ZodOptional<z.ZodNumber>;
2147
1984
  pageSize: z.ZodOptional<z.ZodNumber>;
2148
1985
  maxItems: z.ZodOptional<z.ZodNumber>;
1986
+ cursor: z.ZodOptional<z.ZodString>;
2149
1987
  }, "strip", z.ZodTypeAny, {
2150
1988
  appKey: string;
2151
1989
  actionType: "filter" | "read" | "read_bulk" | "write" | "run" | "search" | "search_or_write" | "search_and_write";
@@ -2156,6 +1994,7 @@ declare const ListInputFieldChoicesSchema: z.ZodObject<{
2156
1994
  inputs?: Record<string, unknown> | undefined;
2157
1995
  pageSize?: number | undefined;
2158
1996
  maxItems?: number | undefined;
1997
+ cursor?: string | undefined;
2159
1998
  }, {
2160
1999
  appKey: string;
2161
2000
  actionType: "filter" | "read" | "read_bulk" | "write" | "run" | "search" | "search_or_write" | "search_and_write";
@@ -2166,12 +2005,14 @@ declare const ListInputFieldChoicesSchema: z.ZodObject<{
2166
2005
  inputs?: Record<string, unknown> | undefined;
2167
2006
  pageSize?: number | undefined;
2168
2007
  maxItems?: number | undefined;
2008
+ cursor?: string | undefined;
2169
2009
  }>;
2170
2010
  type ListInputFieldChoicesOptions = z.infer<typeof ListInputFieldChoicesSchema>;
2171
2011
 
2172
2012
  interface ListInputFieldChoicesPluginProvides {
2173
2013
  listInputFieldChoices: (options: ListInputFieldChoicesOptions) => Promise<{
2174
2014
  data: InputFieldChoiceItem[];
2015
+ nextCursor?: string;
2175
2016
  }> & AsyncIterable<{
2176
2017
  data: InputFieldChoiceItem[];
2177
2018
  nextCursor?: string;
@@ -2372,6 +2213,21 @@ declare const RootFieldItemSchema: z.ZodUnion<[z.ZodObject<{
2372
2213
  }>, z.ZodType<FieldsetItem, z.ZodTypeDef, FieldsetItem>]>;
2373
2214
  type InputFieldItem$1 = z.infer<typeof InputFieldItemSchema>;
2374
2215
 
2216
+ interface FormattedItem {
2217
+ title: string;
2218
+ id?: string;
2219
+ key?: string;
2220
+ keys?: string[];
2221
+ description?: string;
2222
+ data?: unknown;
2223
+ details: Array<{
2224
+ text: string;
2225
+ style: "normal" | "dim" | "accent" | "warning" | "success";
2226
+ }>;
2227
+ }
2228
+ interface FormatMetadata<TItem = unknown> {
2229
+ format: (item: TItem) => FormattedItem;
2230
+ }
2375
2231
  interface PromptConfig {
2376
2232
  type: "list";
2377
2233
  name: string;
@@ -2623,7 +2479,7 @@ declare const AuthenticationItemSchema: z.ZodObject<Omit<{
2623
2479
  is_expired: z.ZodOptional<z.ZodString>;
2624
2480
  expired_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2625
2481
  app_key: z.ZodOptional<z.ZodString>;
2626
- version: z.ZodOptional<z.ZodString>;
2482
+ app_version: z.ZodOptional<z.ZodString>;
2627
2483
  user_id: z.ZodOptional<z.ZodNumber>;
2628
2484
  }, "strip", z.ZodTypeAny, {
2629
2485
  id: number;
@@ -2634,7 +2490,6 @@ declare const AuthenticationItemSchema: z.ZodObject<Omit<{
2634
2490
  shared_with_all: boolean;
2635
2491
  url?: string | undefined;
2636
2492
  label?: string | null | undefined;
2637
- permissions?: Record<string, boolean> | undefined;
2638
2493
  lastchanged?: string | undefined;
2639
2494
  destination_selected_api?: string | null | undefined;
2640
2495
  is_stale?: string | undefined;
@@ -2644,12 +2499,13 @@ declare const AuthenticationItemSchema: z.ZodObject<Omit<{
2644
2499
  title?: string | null | undefined;
2645
2500
  groups?: string | undefined;
2646
2501
  members?: string | undefined;
2502
+ permissions?: Record<string, boolean> | undefined;
2647
2503
  user_id?: number | undefined;
2648
- version?: string | undefined;
2649
2504
  implementation_id?: string | undefined;
2650
2505
  is_expired?: string | undefined;
2651
2506
  expired_at?: string | null | undefined;
2652
2507
  app_key?: string | undefined;
2508
+ app_version?: string | undefined;
2653
2509
  }, {
2654
2510
  id: number;
2655
2511
  date: string;
@@ -2659,7 +2515,6 @@ declare const AuthenticationItemSchema: z.ZodObject<Omit<{
2659
2515
  shared_with_all: boolean;
2660
2516
  url?: string | undefined;
2661
2517
  label?: string | null | undefined;
2662
- permissions?: Record<string, boolean> | undefined;
2663
2518
  lastchanged?: string | undefined;
2664
2519
  destination_selected_api?: string | null | undefined;
2665
2520
  is_stale?: string | undefined;
@@ -2669,12 +2524,13 @@ declare const AuthenticationItemSchema: z.ZodObject<Omit<{
2669
2524
  title?: string | null | undefined;
2670
2525
  groups?: string | undefined;
2671
2526
  members?: string | undefined;
2527
+ permissions?: Record<string, boolean> | undefined;
2672
2528
  user_id?: number | undefined;
2673
- version?: string | undefined;
2674
2529
  implementation_id?: string | undefined;
2675
2530
  is_expired?: string | undefined;
2676
2531
  expired_at?: string | null | undefined;
2677
2532
  app_key?: string | undefined;
2533
+ app_version?: string | undefined;
2678
2534
  }>;
2679
2535
  declare const AuthItemSchema: z.ZodObject<Omit<{
2680
2536
  id: z.ZodNumber;
@@ -2702,7 +2558,7 @@ declare const AuthItemSchema: z.ZodObject<Omit<{
2702
2558
  is_expired: z.ZodOptional<z.ZodString>;
2703
2559
  expired_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2704
2560
  app_key: z.ZodOptional<z.ZodString>;
2705
- version: z.ZodOptional<z.ZodString>;
2561
+ app_version: z.ZodOptional<z.ZodString>;
2706
2562
  user_id: z.ZodOptional<z.ZodNumber>;
2707
2563
  }, "strip", z.ZodTypeAny, {
2708
2564
  id: number;
@@ -2713,7 +2569,6 @@ declare const AuthItemSchema: z.ZodObject<Omit<{
2713
2569
  shared_with_all: boolean;
2714
2570
  url?: string | undefined;
2715
2571
  label?: string | null | undefined;
2716
- permissions?: Record<string, boolean> | undefined;
2717
2572
  lastchanged?: string | undefined;
2718
2573
  destination_selected_api?: string | null | undefined;
2719
2574
  is_stale?: string | undefined;
@@ -2723,12 +2578,13 @@ declare const AuthItemSchema: z.ZodObject<Omit<{
2723
2578
  title?: string | null | undefined;
2724
2579
  groups?: string | undefined;
2725
2580
  members?: string | undefined;
2581
+ permissions?: Record<string, boolean> | undefined;
2726
2582
  user_id?: number | undefined;
2727
- version?: string | undefined;
2728
2583
  implementation_id?: string | undefined;
2729
2584
  is_expired?: string | undefined;
2730
2585
  expired_at?: string | null | undefined;
2731
2586
  app_key?: string | undefined;
2587
+ app_version?: string | undefined;
2732
2588
  }, {
2733
2589
  id: number;
2734
2590
  date: string;
@@ -2738,7 +2594,6 @@ declare const AuthItemSchema: z.ZodObject<Omit<{
2738
2594
  shared_with_all: boolean;
2739
2595
  url?: string | undefined;
2740
2596
  label?: string | null | undefined;
2741
- permissions?: Record<string, boolean> | undefined;
2742
2597
  lastchanged?: string | undefined;
2743
2598
  destination_selected_api?: string | null | undefined;
2744
2599
  is_stale?: string | undefined;
@@ -2748,12 +2603,13 @@ declare const AuthItemSchema: z.ZodObject<Omit<{
2748
2603
  title?: string | null | undefined;
2749
2604
  groups?: string | undefined;
2750
2605
  members?: string | undefined;
2606
+ permissions?: Record<string, boolean> | undefined;
2751
2607
  user_id?: number | undefined;
2752
- version?: string | undefined;
2753
2608
  implementation_id?: string | undefined;
2754
2609
  is_expired?: string | undefined;
2755
2610
  expired_at?: string | null | undefined;
2756
2611
  app_key?: string | undefined;
2612
+ app_version?: string | undefined;
2757
2613
  }>;
2758
2614
  type AuthItem = z.infer<typeof AuthItemSchema>;
2759
2615
 
@@ -2762,133 +2618,13 @@ declare const ActionItemSchema: z.ZodObject<Omit<{
2762
2618
  type: z.ZodEnum<["filter", "read", "read_bulk", "run", "search", "search_and_write", "search_or_write", "write"]>;
2763
2619
  key: z.ZodString;
2764
2620
  name: z.ZodString;
2765
- noun: z.ZodOptional<z.ZodString>;
2766
2621
  description: z.ZodString;
2767
- description_html: z.ZodOptional<z.ZodString>;
2768
2622
  is_important: z.ZodOptional<z.ZodBoolean>;
2769
2623
  is_hidden: z.ZodOptional<z.ZodBoolean>;
2770
- needs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2771
- key: z.ZodString;
2772
- alters_custom_fields: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2773
- capabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2774
- choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
2775
- key: z.ZodOptional<z.ZodString>;
2776
- label: z.ZodOptional<z.ZodString>;
2777
- sample: z.ZodOptional<z.ZodString>;
2778
- value: z.ZodOptional<z.ZodString>;
2779
- }, "strip", z.ZodTypeAny, {
2780
- value?: string | undefined;
2781
- key?: string | undefined;
2782
- label?: string | undefined;
2783
- sample?: string | undefined;
2784
- }, {
2785
- value?: string | undefined;
2786
- key?: string | undefined;
2787
- label?: string | undefined;
2788
- sample?: string | undefined;
2789
- }>, "many">>;
2790
- computed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2791
- custom_field: z.ZodOptional<z.ZodBoolean>;
2792
- default: z.ZodOptional<z.ZodString>;
2793
- depends_on: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2794
- format: z.ZodOptional<z.ZodLiteral<"SELECT">>;
2795
- from_search: z.ZodOptional<z.ZodBoolean>;
2796
- from_write: z.ZodOptional<z.ZodBoolean>;
2797
- help_text: z.ZodOptional<z.ZodString>;
2798
- help_text_html: z.ZodOptional<z.ZodString>;
2799
- input_format: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2800
- label: z.ZodOptional<z.ZodString>;
2801
- language: z.ZodOptional<z.ZodString>;
2802
- parent_key: z.ZodOptional<z.ZodString>;
2803
- placeholder: z.ZodOptional<z.ZodString>;
2804
- prefill: z.ZodOptional<z.ZodString>;
2805
- required: z.ZodOptional<z.ZodBoolean>;
2806
- searchfill: z.ZodOptional<z.ZodString>;
2807
- send_in_json: z.ZodOptional<z.ZodBoolean>;
2808
- regex: z.ZodOptional<z.ZodString>;
2809
- type: z.ZodOptional<z.ZodEnum<["integer", "string", "text", "datetime", "boolean", "file", "decimal", "copy", "password", "dict", "code", "filter", "json"]>>;
2810
- list: z.ZodOptional<z.ZodBoolean>;
2811
- }, "strip", z.ZodTypeAny, {
2812
- key: string;
2813
- type?: "string" | "boolean" | "filter" | "code" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
2814
- label?: string | undefined;
2815
- alters_custom_fields?: boolean | null | undefined;
2816
- capabilities?: string[] | undefined;
2817
- choices?: {
2818
- value?: string | undefined;
2819
- key?: string | undefined;
2820
- label?: string | undefined;
2821
- sample?: string | undefined;
2822
- }[] | undefined;
2823
- computed?: boolean | null | undefined;
2824
- custom_field?: boolean | undefined;
2825
- default?: string | undefined;
2826
- depends_on?: string[] | undefined;
2827
- format?: "SELECT" | undefined;
2828
- from_search?: boolean | undefined;
2829
- from_write?: boolean | undefined;
2830
- help_text?: string | undefined;
2831
- help_text_html?: string | undefined;
2832
- input_format?: string[] | undefined;
2833
- language?: string | undefined;
2834
- parent_key?: string | undefined;
2835
- placeholder?: string | undefined;
2836
- prefill?: string | undefined;
2837
- required?: boolean | undefined;
2838
- searchfill?: string | undefined;
2839
- send_in_json?: boolean | undefined;
2840
- regex?: string | undefined;
2841
- list?: boolean | undefined;
2842
- }, {
2843
- key: string;
2844
- type?: "string" | "boolean" | "filter" | "code" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
2845
- label?: string | undefined;
2846
- alters_custom_fields?: boolean | null | undefined;
2847
- capabilities?: string[] | undefined;
2848
- choices?: {
2849
- value?: string | undefined;
2850
- key?: string | undefined;
2851
- label?: string | undefined;
2852
- sample?: string | undefined;
2853
- }[] | undefined;
2854
- computed?: boolean | null | undefined;
2855
- custom_field?: boolean | undefined;
2856
- default?: string | undefined;
2857
- depends_on?: string[] | undefined;
2858
- format?: "SELECT" | undefined;
2859
- from_search?: boolean | undefined;
2860
- from_write?: boolean | undefined;
2861
- help_text?: string | undefined;
2862
- help_text_html?: string | undefined;
2863
- input_format?: string[] | undefined;
2864
- language?: string | undefined;
2865
- parent_key?: string | undefined;
2866
- placeholder?: string | undefined;
2867
- prefill?: string | undefined;
2868
- required?: boolean | undefined;
2869
- searchfill?: string | undefined;
2870
- send_in_json?: boolean | undefined;
2871
- regex?: string | undefined;
2872
- list?: boolean | undefined;
2873
- }>, "many">>;
2874
- meta: z.ZodOptional<z.ZodString>;
2875
2624
  selected_api: z.ZodOptional<z.ZodString>;
2876
- links: z.ZodOptional<z.ZodObject<{
2877
- action_url: z.ZodOptional<z.ZodString>;
2878
- }, "strip", z.ZodTypeAny, {
2879
- action_url?: string | undefined;
2880
- }, {
2881
- action_url?: string | undefined;
2882
- }>>;
2883
- permissions: z.ZodOptional<z.ZodObject<{
2884
- can_use: z.ZodOptional<z.ZodBoolean>;
2885
- }, "strip", z.ZodTypeAny, {
2886
- can_use?: boolean | undefined;
2887
- }, {
2888
- can_use?: boolean | undefined;
2889
- }>>;
2890
- }, "type" | "name"> & {
2625
+ }, "type" | "name" | "selected_api"> & {
2891
2626
  app_key: z.ZodString;
2627
+ app_version: z.ZodOptional<z.ZodString>;
2892
2628
  action_type: z.ZodEnum<["filter", "read", "read_bulk", "run", "search", "search_and_write", "search_or_write", "write"]>;
2893
2629
  title: z.ZodString;
2894
2630
  type: z.ZodLiteral<"action">;
@@ -2900,50 +2636,9 @@ declare const ActionItemSchema: z.ZodObject<Omit<{
2900
2636
  app_key: string;
2901
2637
  action_type: "filter" | "read" | "read_bulk" | "write" | "run" | "search" | "search_or_write" | "search_and_write";
2902
2638
  id?: string | undefined;
2903
- noun?: string | undefined;
2904
- description_html?: string | undefined;
2905
2639
  is_important?: boolean | undefined;
2906
2640
  is_hidden?: boolean | undefined;
2907
- needs?: {
2908
- key: string;
2909
- type?: "string" | "boolean" | "filter" | "code" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
2910
- label?: string | undefined;
2911
- alters_custom_fields?: boolean | null | undefined;
2912
- capabilities?: string[] | undefined;
2913
- choices?: {
2914
- value?: string | undefined;
2915
- key?: string | undefined;
2916
- label?: string | undefined;
2917
- sample?: string | undefined;
2918
- }[] | undefined;
2919
- computed?: boolean | null | undefined;
2920
- custom_field?: boolean | undefined;
2921
- default?: string | undefined;
2922
- depends_on?: string[] | undefined;
2923
- format?: "SELECT" | undefined;
2924
- from_search?: boolean | undefined;
2925
- from_write?: boolean | undefined;
2926
- help_text?: string | undefined;
2927
- help_text_html?: string | undefined;
2928
- input_format?: string[] | undefined;
2929
- language?: string | undefined;
2930
- parent_key?: string | undefined;
2931
- placeholder?: string | undefined;
2932
- prefill?: string | undefined;
2933
- required?: boolean | undefined;
2934
- searchfill?: string | undefined;
2935
- send_in_json?: boolean | undefined;
2936
- regex?: string | undefined;
2937
- list?: boolean | undefined;
2938
- }[] | undefined;
2939
- meta?: string | undefined;
2940
- selected_api?: string | undefined;
2941
- links?: {
2942
- action_url?: string | undefined;
2943
- } | undefined;
2944
- permissions?: {
2945
- can_use?: boolean | undefined;
2946
- } | undefined;
2641
+ app_version?: string | undefined;
2947
2642
  }, {
2948
2643
  type: "action";
2949
2644
  key: string;
@@ -2952,50 +2647,9 @@ declare const ActionItemSchema: z.ZodObject<Omit<{
2952
2647
  app_key: string;
2953
2648
  action_type: "filter" | "read" | "read_bulk" | "write" | "run" | "search" | "search_or_write" | "search_and_write";
2954
2649
  id?: string | undefined;
2955
- noun?: string | undefined;
2956
- description_html?: string | undefined;
2957
2650
  is_important?: boolean | undefined;
2958
2651
  is_hidden?: boolean | undefined;
2959
- needs?: {
2960
- key: string;
2961
- type?: "string" | "boolean" | "filter" | "code" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
2962
- label?: string | undefined;
2963
- alters_custom_fields?: boolean | null | undefined;
2964
- capabilities?: string[] | undefined;
2965
- choices?: {
2966
- value?: string | undefined;
2967
- key?: string | undefined;
2968
- label?: string | undefined;
2969
- sample?: string | undefined;
2970
- }[] | undefined;
2971
- computed?: boolean | null | undefined;
2972
- custom_field?: boolean | undefined;
2973
- default?: string | undefined;
2974
- depends_on?: string[] | undefined;
2975
- format?: "SELECT" | undefined;
2976
- from_search?: boolean | undefined;
2977
- from_write?: boolean | undefined;
2978
- help_text?: string | undefined;
2979
- help_text_html?: string | undefined;
2980
- input_format?: string[] | undefined;
2981
- language?: string | undefined;
2982
- parent_key?: string | undefined;
2983
- placeholder?: string | undefined;
2984
- prefill?: string | undefined;
2985
- required?: boolean | undefined;
2986
- searchfill?: string | undefined;
2987
- send_in_json?: boolean | undefined;
2988
- regex?: string | undefined;
2989
- list?: boolean | undefined;
2990
- }[] | undefined;
2991
- meta?: string | undefined;
2992
- selected_api?: string | undefined;
2993
- links?: {
2994
- action_url?: string | undefined;
2995
- } | undefined;
2996
- permissions?: {
2997
- can_use?: boolean | undefined;
2998
- } | undefined;
2652
+ app_version?: string | undefined;
2999
2653
  }>;
3000
2654
 
3001
2655
  declare const UserProfileItemSchema: z.ZodObject<Omit<{
@@ -3427,4 +3081,4 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk
3427
3081
  }>;
3428
3082
  declare function createZapierSdk(options?: ZapierSdkOptions): ZapierSdk;
3429
3083
 
3430
- export { type Action, type ActionExecutionOptions, type ActionExecutionResult, type ActionField, type ActionFieldChoice, type ActionItem$1 as ActionItem, type ActionKeyProperty, ActionKeyPropertySchema, type ActionTypeProperty, ActionTypePropertySchema, type ApiError, type ApiEvent, type ApiPluginOptions, type ApiPluginProvides, type App, type AppItem, type AppKeyProperty, AppKeyPropertySchema, type AppsPluginProvides, type AuthEvent, type AuthOptions, type Authentication, type AuthenticationIdProperty, AuthenticationIdPropertySchema, type AuthenticationItem, type AuthenticationsResponse, type Choice, DEFAULT_CONFIG_PATH, type DebugProperty, DebugPropertySchema, type ErrorOptions, type EventCallback, type FetchPluginProvides, type Field, type FieldsetItem, type FindFirstAuthenticationPluginProvides, type FindUniqueAuthenticationPluginProvides, type FunctionOptions, type FunctionRegistryEntry, type GetActionPluginProvides, type GetAppPluginProvides, type GetAuthenticationPluginProvides, type GetContextType, type GetProfilePluginProvides, type GetSdkType, type InfoFieldItem, type InputFieldItem, type InputsProperty, InputsPropertySchema, type LimitProperty, LimitPropertySchema, type ListActionsPluginProvides, type ListAppsPluginProvides, type ListAuthenticationsPluginProvides, type ListInputFieldsPluginProvides, type LoadingEvent, type ManifestPluginOptions, type ManifestPluginProvides, type Need, type NeedsRequest, type NeedsResponse, type OffsetProperty, OffsetPropertySchema, type OutputProperty, OutputPropertySchema, type PaginatedSdkFunction, type ParamsProperty, ParamsPropertySchema, type Plugin, type PluginDependencies, type PluginOptions, type PluginProvides, type PositionalMetadata, RelayFetchSchema, RelayRequestSchema, type RequestPluginProvides, type RootFieldItem, type RunActionPluginProvides, type Sdk, type SdkEvent, type UserProfile, type UserProfileItem, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierError, type ZapierFetchInitOptions, ZapierNotFoundError, ZapierResourceNotFoundError, type ZapierSdk, type ZapierSdkApps, type ZapierSdkOptions, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, authenticationIdGenericResolver, authenticationIdResolver, createFunction, createSdk, createZapierSdk, createZapierSdkWithoutRegistry, fetchPlugin, findFirstAuthenticationPlugin, findManifestEntry, findUniqueAuthenticationPlugin, formatErrorMessage, getActionPlugin, getAppPlugin, getAuthenticationPlugin, getPreferredManifestEntryKey, getProfilePlugin, getTokenFromCliLogin, getTokenFromEnv, getTokenFromEnvOrConfig, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, isPositional, listActionsPlugin, listAppsPlugin, listAuthenticationsPlugin, listInputFieldsPlugin, manifestPlugin, readManifestFromFile, registryPlugin, requestPlugin, runActionPlugin };
3084
+ export { type Action, type ActionExecutionOptions, type ActionExecutionResult, type ActionField, type ActionFieldChoice, type ActionItem$1 as ActionItem, type ActionKeyProperty, ActionKeyPropertySchema, type ActionTypeProperty, ActionTypePropertySchema, type ApiError, type ApiEvent, type ApiPluginOptions, type ApiPluginProvides, type App, type AppItem, type AppKeyProperty, AppKeyPropertySchema, type AppsPluginProvides, type AuthEvent, type AuthOptions, type Authentication, type AuthenticationIdProperty, AuthenticationIdPropertySchema, type AuthenticationItem, type AuthenticationsResponse, type Choice, DEFAULT_CONFIG_PATH, type DebugProperty, DebugPropertySchema, type ErrorOptions, type EventCallback, type FetchPluginProvides, type Field, type FieldsetItem, type FindFirstAuthenticationPluginProvides, type FindUniqueAuthenticationPluginProvides, type FormatMetadata, type FormattedItem, type FunctionOptions, type FunctionRegistryEntry, type GetActionPluginProvides, type GetAppPluginProvides, type GetAuthenticationPluginProvides, type GetContextType, type GetProfilePluginProvides, type GetSdkType, type InfoFieldItem, type InputFieldItem, type InputsProperty, InputsPropertySchema, type LimitProperty, LimitPropertySchema, type ListActionsPluginProvides, type ListAppsPluginProvides, type ListAuthenticationsPluginProvides, type ListInputFieldsPluginProvides, type LoadingEvent, type ManifestPluginOptions, type ManifestPluginProvides, type Need, type NeedsRequest, type NeedsResponse, type OffsetProperty, OffsetPropertySchema, type OutputProperty, OutputPropertySchema, type PaginatedSdkFunction, type ParamsProperty, ParamsPropertySchema, type Plugin, type PluginDependencies, type PluginOptions, type PluginProvides, type PositionalMetadata, RelayFetchSchema, RelayRequestSchema, type RequestPluginProvides, type RootFieldItem, type RunActionPluginProvides, type Sdk, type SdkEvent, type UserProfile, type UserProfileItem, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierError, type ZapierFetchInitOptions, ZapierNotFoundError, ZapierResourceNotFoundError, type ZapierSdk, type ZapierSdkApps, type ZapierSdkOptions, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, authenticationIdGenericResolver, authenticationIdResolver, createFunction, createSdk, createZapierSdk, createZapierSdkWithoutRegistry, fetchPlugin, findFirstAuthenticationPlugin, findManifestEntry, findUniqueAuthenticationPlugin, formatErrorMessage, getActionPlugin, getAppPlugin, getAuthenticationPlugin, getPreferredManifestEntryKey, getProfilePlugin, getTokenFromCliLogin, getTokenFromEnv, getTokenFromEnvOrConfig, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, isPositional, listActionsPlugin, listAppsPlugin, listAuthenticationsPlugin, listInputFieldsPlugin, manifestPlugin, readManifestFromFile, registryPlugin, requestPlugin, runActionPlugin };