@zapier/zapier-sdk 0.12.1 → 0.13.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.
Files changed (90) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +172 -84
  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 +58 -41
  7. package/dist/index.d.mts +69 -427
  8. package/dist/index.d.ts +1 -0
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.mjs +58 -41
  11. package/dist/plugins/apps/schemas.d.ts +9 -1
  12. package/dist/plugins/apps/schemas.d.ts.map +1 -1
  13. package/dist/plugins/findFirstAuthentication/schemas.js +1 -1
  14. package/dist/plugins/findUniqueAuthentication/schemas.js +1 -1
  15. package/dist/plugins/getApp/index.test.js +58 -6
  16. package/dist/plugins/getApp/schemas.js +1 -1
  17. package/dist/plugins/getAuthentication/index.test.js +1 -1
  18. package/dist/plugins/listActions/index.d.ts +1 -0
  19. package/dist/plugins/listActions/index.d.ts.map +1 -1
  20. package/dist/plugins/listActions/schemas.d.ts +3 -0
  21. package/dist/plugins/listActions/schemas.d.ts.map +1 -1
  22. package/dist/plugins/listActions/schemas.js +2 -1
  23. package/dist/plugins/listApps/index.d.ts +1 -0
  24. package/dist/plugins/listApps/index.d.ts.map +1 -1
  25. package/dist/plugins/listApps/index.js +18 -10
  26. package/dist/plugins/listApps/schemas.d.ts +3 -0
  27. package/dist/plugins/listApps/schemas.d.ts.map +1 -1
  28. package/dist/plugins/listApps/schemas.js +1 -0
  29. package/dist/plugins/listAuthentications/index.d.ts +1 -0
  30. package/dist/plugins/listAuthentications/index.d.ts.map +1 -1
  31. package/dist/plugins/listAuthentications/schemas.d.ts +3 -0
  32. package/dist/plugins/listAuthentications/schemas.d.ts.map +1 -1
  33. package/dist/plugins/listAuthentications/schemas.js +2 -1
  34. package/dist/plugins/listInputFieldChoices/index.d.ts +1 -0
  35. package/dist/plugins/listInputFieldChoices/index.d.ts.map +1 -1
  36. package/dist/plugins/listInputFieldChoices/schemas.d.ts +3 -0
  37. package/dist/plugins/listInputFieldChoices/schemas.d.ts.map +1 -1
  38. package/dist/plugins/listInputFieldChoices/schemas.js +1 -0
  39. package/dist/plugins/listInputFields/index.d.ts +1 -0
  40. package/dist/plugins/listInputFields/index.d.ts.map +1 -1
  41. package/dist/plugins/listInputFields/schemas.d.ts +3 -0
  42. package/dist/plugins/listInputFields/schemas.d.ts.map +1 -1
  43. package/dist/plugins/listInputFields/schemas.js +1 -0
  44. package/dist/plugins/runAction/index.d.ts +1 -0
  45. package/dist/plugins/runAction/index.d.ts.map +1 -1
  46. package/dist/plugins/runAction/schemas.d.ts +3 -0
  47. package/dist/plugins/runAction/schemas.d.ts.map +1 -1
  48. package/dist/plugins/runAction/schemas.js +1 -0
  49. package/dist/schemas/Action.d.ts +4 -206
  50. package/dist/schemas/Action.d.ts.map +1 -1
  51. package/dist/schemas/Action.js +3 -2
  52. package/dist/schemas/App.d.ts.map +1 -1
  53. package/dist/schemas/App.js +1 -0
  54. package/dist/schemas/Auth.d.ts +10 -10
  55. package/dist/schemas/Auth.js +1 -1
  56. package/dist/types/properties.d.ts.map +1 -1
  57. package/dist/types/properties.js +4 -1
  58. package/dist/utils/domain-utils.d.ts +2 -2
  59. package/dist/utils/domain-utils.d.ts.map +1 -1
  60. package/dist/utils/domain-utils.js +19 -8
  61. package/dist/utils/schema-utils.d.ts +1 -0
  62. package/dist/utils/schema-utils.d.ts.map +1 -1
  63. package/package.json +1 -1
  64. package/src/api/schemas.ts +0 -6
  65. package/src/index.ts +1 -0
  66. package/src/plugins/apps/schemas.ts +7 -1
  67. package/src/plugins/findFirstAuthentication/schemas.ts +1 -1
  68. package/src/plugins/findUniqueAuthentication/schemas.ts +1 -1
  69. package/src/plugins/getApp/index.test.ts +83 -31
  70. package/src/plugins/getApp/schemas.ts +1 -1
  71. package/src/plugins/getAuthentication/index.test.ts +1 -1
  72. package/src/plugins/listActions/index.ts +1 -0
  73. package/src/plugins/listActions/schemas.ts +2 -1
  74. package/src/plugins/listApps/index.ts +23 -11
  75. package/src/plugins/listApps/schemas.ts +1 -0
  76. package/src/plugins/listAuthentications/index.ts +1 -0
  77. package/src/plugins/listAuthentications/schemas.ts +2 -1
  78. package/src/plugins/listInputFieldChoices/index.ts +1 -0
  79. package/src/plugins/listInputFieldChoices/schemas.ts +1 -0
  80. package/src/plugins/listInputFields/index.ts +1 -0
  81. package/src/plugins/listInputFields/schemas.ts +1 -0
  82. package/src/plugins/runAction/index.ts +4 -1
  83. package/src/plugins/runAction/schemas.ts +1 -0
  84. package/src/schemas/Action.ts +3 -2
  85. package/src/schemas/App.ts +1 -0
  86. package/src/schemas/Auth.ts +1 -1
  87. package/src/types/properties.ts +4 -1
  88. package/src/utils/domain-utils.ts +22 -9
  89. package/src/utils/schema-utils.ts +1 -0
  90. package/tsconfig.tsbuildinfo +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/api/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AAMH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EAK5B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0CrB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;EAE5B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;EAElC,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKxC,CAAC;AAMH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2DnC,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK5C,CAAC;AAMH,eAAO,MAAM,6BAA6B;;;;;;EAExC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;EAGzC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;EAsCnC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOpC,CAAC"}
@@ -76,16 +76,10 @@ export const ActionSchema = z.object({
76
76
  ]),
77
77
  key: z.string(),
78
78
  name: z.string(),
79
- noun: z.string().optional(),
80
79
  description: z.string(),
81
- description_html: z.string().optional(),
82
80
  is_important: z.boolean().optional(),
83
81
  is_hidden: z.boolean().optional(),
84
- needs: z.array(NeedSchema).optional(),
85
- meta: z.string().optional(),
86
82
  selected_api: z.string().optional(),
87
- links: ActionLinksSchema.optional(),
88
- permissions: ActionPermissionsSchema.optional(),
89
83
  });
90
84
  export const ChoiceSchema = z.object({
91
85
  value: z.union([z.string(), z.number()]),
package/dist/index.cjs CHANGED
@@ -37,7 +37,7 @@ var MAX_PAGE_LIMIT = 1e4;
37
37
 
38
38
  // src/types/properties.ts
39
39
  var AppKeyPropertySchema = withPositional(
40
- zod.z.string().min(1).describe("App key (e.g., 'SlackCLIAPI')")
40
+ zod.z.string().min(1).describe("App key (e.g., 'SlackCLIAPI' or slug like 'github')")
41
41
  );
42
42
  var ActionTypePropertySchema = zod.z.enum([
43
43
  "read",
@@ -694,7 +694,8 @@ var ListAppsSchema = zod.z.object({
694
694
  ),
695
695
  search: zod.z.string().optional().describe("Search for apps by name"),
696
696
  pageSize: zod.z.number().min(1).optional().describe("Number of apps per page"),
697
- maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages")
697
+ maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages"),
698
+ cursor: zod.z.string().optional().describe("Cursor to start from")
698
699
  }).describe("List all available apps with optional filtering");
699
700
  var NeedChoicesSchema = zod.z.object({
700
701
  key: zod.z.string().optional(),
@@ -743,10 +744,10 @@ var NeedSchema = zod.z.object({
743
744
  ]).optional(),
744
745
  list: zod.z.boolean().optional()
745
746
  });
746
- var ActionLinksSchema = zod.z.object({
747
+ zod.z.object({
747
748
  action_url: zod.z.string().optional()
748
749
  });
749
- var ActionPermissionsSchema = zod.z.object({
750
+ zod.z.object({
750
751
  can_use: zod.z.boolean().optional()
751
752
  });
752
753
  var ActionSchema = zod.z.object({
@@ -763,16 +764,10 @@ var ActionSchema = zod.z.object({
763
764
  ]),
764
765
  key: zod.z.string(),
765
766
  name: zod.z.string(),
766
- noun: zod.z.string().optional(),
767
767
  description: zod.z.string(),
768
- description_html: zod.z.string().optional(),
769
768
  is_important: zod.z.boolean().optional(),
770
769
  is_hidden: zod.z.boolean().optional(),
771
- needs: zod.z.array(NeedSchema).optional(),
772
- meta: zod.z.string().optional(),
773
- selected_api: zod.z.string().optional(),
774
- links: ActionLinksSchema.optional(),
775
- permissions: ActionPermissionsSchema.optional()
770
+ selected_api: zod.z.string().optional()
776
771
  });
777
772
  var ChoiceSchema = zod.z.object({
778
773
  value: zod.z.union([zod.z.string(), zod.z.number()]),
@@ -1102,6 +1097,7 @@ var AppItemSchema = withFormatter(
1102
1097
  return {
1103
1098
  title: item.title,
1104
1099
  key: item.key,
1100
+ keys: [item.slug, item.key].filter(Boolean),
1105
1101
  description: item.description,
1106
1102
  details: []
1107
1103
  };
@@ -1136,7 +1132,7 @@ function normalizeImplementationMetaToAppItem(implementationMeta) {
1136
1132
  }
1137
1133
  function normalizeAuthenticationItem(auth, options = {}) {
1138
1134
  let appKey = options.app_key;
1139
- let version = options.version;
1135
+ let appVersion = options.app_version;
1140
1136
  if (auth.selected_api) {
1141
1137
  const [extractedAppKey, extractedVersion] = splitVersionedKey(
1142
1138
  auth.selected_api
@@ -1144,8 +1140,8 @@ function normalizeAuthenticationItem(auth, options = {}) {
1144
1140
  if (!appKey) {
1145
1141
  appKey = extractedAppKey;
1146
1142
  }
1147
- if (!version) {
1148
- version = extractedVersion;
1143
+ if (!appVersion) {
1144
+ appVersion = extractedVersion;
1149
1145
  }
1150
1146
  }
1151
1147
  const {
@@ -1166,17 +1162,25 @@ function normalizeAuthenticationItem(auth, options = {}) {
1166
1162
  // Map marked_stale_at to expired_at
1167
1163
  app_key: appKey,
1168
1164
  // App key from implementations endpoint or parsed from selected_api
1169
- version,
1165
+ app_version: appVersion,
1170
1166
  // Version from selected_api or provided
1171
1167
  user_id: userId
1172
1168
  // Map customuser_id to user_id
1173
1169
  };
1174
1170
  }
1175
1171
  function normalizeActionItem(action) {
1176
- const { name, type, selected_api: appKey, ...restOfAction } = action;
1172
+ const { name, type, selected_api: selectedApi } = action;
1173
+ const [appKey, appVersion] = selectedApi ? splitVersionedKey(selectedApi) : ["", void 0];
1177
1174
  return {
1178
- ...restOfAction,
1179
- app_key: appKey || "",
1175
+ // Only include the fields we want - explicitly list them
1176
+ id: action.id,
1177
+ key: action.key,
1178
+ description: action.description,
1179
+ is_important: action.is_important,
1180
+ is_hidden: action.is_hidden,
1181
+ // Transformed fields
1182
+ app_key: appKey,
1183
+ app_version: appVersion,
1180
1184
  action_type: type,
1181
1185
  title: name,
1182
1186
  // Map name to title
@@ -1231,10 +1235,10 @@ function toImplementationId(appLocator) {
1231
1235
  // src/plugins/listApps/index.ts
1232
1236
  var listAppsPlugin = ({ context }) => {
1233
1237
  const listApps = createPaginatedFunction(async function listAppsPage(options) {
1234
- const api = context.api;
1235
- const opts = options;
1236
- const appLocators = await context.resolveAppKeys({
1237
- appKeys: [...opts.appKeys ?? []]
1238
+ const { api, resolveAppKeys: resolveAppKeys2 } = context;
1239
+ const appKeys = options.appKeys ?? [];
1240
+ const appLocators = await resolveAppKeys2({
1241
+ appKeys: [...appKeys]
1238
1242
  });
1239
1243
  const implementationNameToLocator = {};
1240
1244
  for (const locator of appLocators) {
@@ -1249,9 +1253,9 @@ var listAppsPlugin = ({ context }) => {
1249
1253
  `Duplicate lookup app keys found: ${duplicatedLookupAppKeys.join(", ")}`
1250
1254
  );
1251
1255
  }
1252
- if (opts.search) {
1256
+ if (options.search) {
1253
1257
  const searchParams2 = {};
1254
- searchParams2.term = opts.search;
1258
+ searchParams2.term = options.search;
1255
1259
  const searchEnvelope = await api.get(
1256
1260
  "/api/v4/implementations-meta/search/",
1257
1261
  {
@@ -1276,16 +1280,22 @@ var listAppsPlugin = ({ context }) => {
1276
1280
  }
1277
1281
  }
1278
1282
  const searchParams = {};
1279
- if (opts.pageSize) {
1280
- searchParams.limit = opts.pageSize.toString();
1283
+ if (options.pageSize) {
1284
+ searchParams.limit = options.pageSize.toString();
1281
1285
  }
1282
1286
  if (appLocators.length === 0) {
1283
1287
  searchParams.latest_only = "true";
1284
1288
  }
1285
- if (opts.cursor) {
1286
- searchParams.offset = opts.cursor;
1289
+ if (options.cursor) {
1290
+ searchParams.offset = options.cursor;
1287
1291
  }
1288
1292
  searchParams.selected_apis = appLocators.map((locator) => toImplementationId(locator)).join(",");
1293
+ if (appKeys.length > 0 && appLocators.length === 0) {
1294
+ return {
1295
+ data: [],
1296
+ nextCursor: void 0
1297
+ };
1298
+ }
1289
1299
  const implementationsEnvelope = await api.get(
1290
1300
  "/api/v4/implementations-meta/lookup/",
1291
1301
  {
@@ -1316,18 +1326,21 @@ var listAppsPlugin = ({ context }) => {
1316
1326
  };
1317
1327
  var ListActionsSchema = zod.z.object({
1318
1328
  appKey: AppKeyPropertySchema.describe(
1319
- "App key of actions to list (e.g., 'SlackCLIAPI')"
1329
+ "App key of actions to list (e.g., 'SlackCLIAPI' or slug like 'github')"
1320
1330
  ),
1321
1331
  actionType: ActionTypePropertySchema.optional().describe(
1322
1332
  "Filter actions by type"
1323
1333
  ),
1324
1334
  pageSize: zod.z.number().min(1).optional().describe("Number of actions per page"),
1325
- maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages")
1335
+ maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages"),
1336
+ cursor: zod.z.string().optional().describe("Cursor to start from")
1326
1337
  }).describe("List all actions for a specific app");
1327
1338
  var ActionItemSchema = withFormatter(
1328
- ActionSchema.omit({ type: true, name: true }).extend({
1339
+ ActionSchema.omit({ type: true, name: true, selected_api: true }).extend({
1329
1340
  app_key: zod.z.string(),
1330
- // Mapped from selected_api
1341
+ // App key without version (extracted from selected_api)
1342
+ app_version: zod.z.string().optional(),
1343
+ // Version extracted from selected_api
1331
1344
  action_type: ActionSchema.shape.type,
1332
1345
  // Mapped from original 'type' field
1333
1346
  title: zod.z.string(),
@@ -1639,7 +1652,8 @@ var ListInputFieldsSchema = zod.z.object({
1639
1652
  "Current input values that may affect available fields"
1640
1653
  ),
1641
1654
  pageSize: zod.z.number().min(1).optional().describe("Number of input fields per page"),
1642
- maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages")
1655
+ maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages"),
1656
+ cursor: zod.z.string().optional().describe("Cursor to start from")
1643
1657
  }).describe("Get the input fields required for a specific action");
1644
1658
  var BaseFieldItemSchema = zod.z.object({
1645
1659
  type: zod.z.string(),
@@ -1926,7 +1940,7 @@ var listInputFieldsPlugin = ({ context }) => {
1926
1940
  };
1927
1941
  var ListAuthenticationsSchema = zod.z.object({
1928
1942
  appKey: AppKeyPropertySchema.optional().describe(
1929
- "App key of authentications to list (e.g., 'SlackCLIAPI')"
1943
+ "App key of authentications to list (e.g., 'SlackCLIAPI' or slug like 'github')"
1930
1944
  ),
1931
1945
  authenticationIds: zod.z.array(zod.z.string()).optional().describe("List of authentication IDs to filter by"),
1932
1946
  search: zod.z.string().optional().describe("Search term to filter authentications by title"),
@@ -1936,7 +1950,8 @@ var ListAuthenticationsSchema = zod.z.object({
1936
1950
  "Filter by owner, 'me' for your own authentications or a specific user ID"
1937
1951
  ),
1938
1952
  pageSize: zod.z.number().min(1).optional().describe("Number of authentications per page"),
1939
- maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages")
1953
+ maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages"),
1954
+ cursor: zod.z.string().optional().describe("Cursor to start from")
1940
1955
  }).describe("List available authentications with optional filtering");
1941
1956
  var AuthenticationItemSchema = withFormatter(
1942
1957
  AuthenticationSchema.omit({ selected_api: true, customuser_id: true }).extend(
@@ -1949,7 +1964,7 @@ var AuthenticationItemSchema = withFormatter(
1949
1964
  // Mapped from marked_stale_at
1950
1965
  app_key: zod.z.string().optional(),
1951
1966
  // App key from implementations endpoint
1952
- version: zod.z.string().optional(),
1967
+ app_version: zod.z.string().optional(),
1953
1968
  // Version extracted from implementation_id
1954
1969
  user_id: zod.z.number().optional()
1955
1970
  }
@@ -2070,7 +2085,7 @@ var listAuthenticationsPlugin = ({ context }) => {
2070
2085
  };
2071
2086
  var GetAppSchema = zod.z.object({
2072
2087
  appKey: AppKeyPropertySchema.describe(
2073
- "App key of app to fetch (e.g., 'SlackCLIAPI')"
2088
+ "App key of app to fetch (e.g., 'SlackCLIAPI' or slug like 'github')"
2074
2089
  )
2075
2090
  }).describe("Get detailed information about a specific app");
2076
2091
 
@@ -2209,7 +2224,7 @@ var getAuthenticationPlugin = ({ context }) => {
2209
2224
  };
2210
2225
  var FindFirstAuthenticationSchema = zod.z.object({
2211
2226
  appKey: AppKeyPropertySchema.optional().describe(
2212
- "App key of authentication to find (e.g., 'SlackCLIAPI')"
2227
+ "App key of authentication to find (e.g., 'SlackCLIAPI' or slug like 'github')"
2213
2228
  ),
2214
2229
  search: zod.z.string().optional().describe("Search term to filter authentications by title"),
2215
2230
  title: zod.z.string().optional().describe("Filter authentications by exact title match"),
@@ -2254,7 +2269,7 @@ var findFirstAuthenticationPlugin = ({ sdk }) => {
2254
2269
  };
2255
2270
  var FindUniqueAuthenticationSchema = zod.z.object({
2256
2271
  appKey: AppKeyPropertySchema.optional().describe(
2257
- "App key of authentication to find (e.g., 'SlackCLIAPI')"
2272
+ "App key of authentication to find (e.g., 'SlackCLIAPI' or slug like 'github')"
2258
2273
  ),
2259
2274
  search: zod.z.string().optional().describe("Search term to filter authentications by title"),
2260
2275
  title: zod.z.string().optional().describe("Filter authentications by exact title match"),
@@ -2312,7 +2327,8 @@ var RunActionSchema = zod.z.object({
2312
2327
  "Input parameters for the action"
2313
2328
  ),
2314
2329
  pageSize: zod.z.number().min(1).optional().describe("Number of results per page"),
2315
- maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages")
2330
+ maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages"),
2331
+ cursor: zod.z.string().optional().describe("Cursor to start from")
2316
2332
  }).describe("Execute an action with the given inputs");
2317
2333
 
2318
2334
  // src/plugins/runAction/index.ts
@@ -3651,7 +3667,8 @@ var ListInputFieldChoicesSchema = zod.z.object({
3651
3667
  page: zod.z.number().int().min(0).optional().describe("Page number for paginated results"),
3652
3668
  // Pagination options (SDK-level)
3653
3669
  pageSize: zod.z.number().min(1).optional().describe("Number of choices per page"),
3654
- maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages")
3670
+ maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages"),
3671
+ cursor: zod.z.string().optional().describe("Cursor to start from")
3655
3672
  }).describe("Get the available choices for a dynamic dropdown input field");
3656
3673
 
3657
3674
  // src/plugins/listInputFieldChoices/index.ts