@zapier/zapier-sdk 0.15.12 → 0.16.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 (70) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/LICENSE +2 -0
  3. package/dist/api/schemas.d.ts +133 -1488
  4. package/dist/api/schemas.d.ts.map +1 -1
  5. package/dist/api/schemas.js +10 -10
  6. package/dist/index.cjs +27 -27
  7. package/dist/index.d.mts +296 -1830
  8. package/dist/index.mjs +27 -27
  9. package/dist/plugins/apps/schemas.d.ts +2 -12
  10. package/dist/plugins/apps/schemas.d.ts.map +1 -1
  11. package/dist/plugins/apps/schemas.js +1 -1
  12. package/dist/plugins/fetch/schemas.d.ts +12 -18
  13. package/dist/plugins/fetch/schemas.d.ts.map +1 -1
  14. package/dist/plugins/fetch/schemas.js +1 -1
  15. package/dist/plugins/findFirstAuthentication/schemas.d.ts +2 -14
  16. package/dist/plugins/findFirstAuthentication/schemas.d.ts.map +1 -1
  17. package/dist/plugins/findUniqueAuthentication/schemas.d.ts +2 -14
  18. package/dist/plugins/findUniqueAuthentication/schemas.d.ts.map +1 -1
  19. package/dist/plugins/getAction/schemas.d.ts +13 -23
  20. package/dist/plugins/getAction/schemas.d.ts.map +1 -1
  21. package/dist/plugins/getApp/schemas.d.ts +2 -6
  22. package/dist/plugins/getApp/schemas.d.ts.map +1 -1
  23. package/dist/plugins/getInputFieldsSchema/schemas.d.ts +12 -15
  24. package/dist/plugins/getInputFieldsSchema/schemas.d.ts.map +1 -1
  25. package/dist/plugins/getProfile/schemas.d.ts +1 -1
  26. package/dist/plugins/getProfile/schemas.d.ts.map +1 -1
  27. package/dist/plugins/listActions/schemas.d.ts +13 -27
  28. package/dist/plugins/listActions/schemas.d.ts.map +1 -1
  29. package/dist/plugins/listAuthentications/schemas.d.ts +5 -36
  30. package/dist/plugins/listAuthentications/schemas.d.ts.map +1 -1
  31. package/dist/plugins/listInputFieldChoices/schemas.d.ts +13 -36
  32. package/dist/plugins/listInputFieldChoices/schemas.d.ts.map +1 -1
  33. package/dist/plugins/listInputFields/schemas.d.ts +12 -21
  34. package/dist/plugins/listInputFields/schemas.d.ts.map +1 -1
  35. package/dist/plugins/manifest/schemas.d.ts +6 -90
  36. package/dist/plugins/manifest/schemas.d.ts.map +1 -1
  37. package/dist/plugins/manifest/schemas.js +5 -2
  38. package/dist/plugins/request/schemas.d.ts +24 -68
  39. package/dist/plugins/request/schemas.d.ts.map +1 -1
  40. package/dist/plugins/request/schemas.js +1 -1
  41. package/dist/plugins/runAction/schemas.d.ts +12 -21
  42. package/dist/plugins/runAction/schemas.d.ts.map +1 -1
  43. package/dist/schemas/Action.d.ts +13 -30
  44. package/dist/schemas/Action.d.ts.map +1 -1
  45. package/dist/schemas/App.d.ts +30 -171
  46. package/dist/schemas/App.d.ts.map +1 -1
  47. package/dist/schemas/Auth.d.ts +14 -120
  48. package/dist/schemas/Auth.d.ts.map +1 -1
  49. package/dist/schemas/Field.d.ts +10 -108
  50. package/dist/schemas/Field.d.ts.map +1 -1
  51. package/dist/schemas/UserProfile.d.ts +5 -113
  52. package/dist/schemas/UserProfile.d.ts.map +1 -1
  53. package/dist/temporary-internal-core/schemas/apps/index.d.ts +19 -440
  54. package/dist/temporary-internal-core/schemas/apps/index.d.ts.map +1 -1
  55. package/dist/temporary-internal-core/schemas/authentications/index.d.ts +23 -327
  56. package/dist/temporary-internal-core/schemas/authentications/index.d.ts.map +1 -1
  57. package/dist/temporary-internal-core/schemas/authentications/index.js +1 -1
  58. package/dist/temporary-internal-core/schemas/implementations/index.d.ts +9 -393
  59. package/dist/temporary-internal-core/schemas/implementations/index.d.ts.map +1 -1
  60. package/dist/types/properties.d.ts +11 -2
  61. package/dist/types/properties.d.ts.map +1 -1
  62. package/dist/types/properties.js +2 -2
  63. package/dist/utils/function-utils.d.ts +2 -14
  64. package/dist/utils/function-utils.d.ts.map +1 -1
  65. package/dist/utils/schema-utils.d.ts.map +1 -1
  66. package/dist/utils/schema-utils.js +10 -9
  67. package/dist/utils/validation.d.ts +1 -1
  68. package/dist/utils/validation.d.ts.map +1 -1
  69. package/dist/utils/validation.js +2 -2
  70. package/package.json +4 -4
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBvB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;EAGvB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAetB,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;EAEtC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;EAGlC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe5B,CAAC;AAMH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB/B,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKxC,CAAC;AAMH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2DnC,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK5C,CAAC;AAMH,eAAO,MAAM,6BAA6B;;iBAExC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;iBAGzC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;iBAsCnC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;iBAOpC,CAAC"}
@@ -147,7 +147,7 @@ export const AuthenticationSchema = z.object({
147
147
  url: z.string().optional(),
148
148
  groups: z.string().optional(),
149
149
  members: z.string().optional(),
150
- permissions: z.record(z.boolean()).optional(),
150
+ permissions: z.record(z.string(), z.boolean()).optional(),
151
151
  });
152
152
  export const AuthenticationsResponseSchema = z.object({
153
153
  count: z.number(),
@@ -171,7 +171,7 @@ export const UserProfileSchema = z.object({
171
171
  email_confirmed: z.boolean(),
172
172
  timezone: z.string(),
173
173
  photo_url: z.string(),
174
- has_seen_notifications: z.record(z.boolean().nullable()),
174
+ has_seen_notifications: z.record(z.string(), z.boolean().nullable()),
175
175
  signup: z.string(),
176
176
  since_signup: z.string(),
177
177
  has_activated: z.boolean(),
@@ -193,11 +193,11 @@ export const UserProfileSchema = z.object({
193
193
  is_temporary: z.boolean(),
194
194
  banner_message: z.string(),
195
195
  enable_totp_2fa: z.boolean(),
196
- viewed_help: z.record(z.boolean()),
196
+ viewed_help: z.record(z.string(), z.boolean()),
197
197
  show_editor_migration_mesaging: z.boolean(),
198
- switches: z.record(z.unknown()),
199
- organizations: z.array(z.record(z.unknown()).nullable()),
200
- primary_organization: z.record(z.unknown()).nullable(),
198
+ switches: z.record(z.string(), z.unknown()),
199
+ organizations: z.array(z.record(z.string(), z.unknown()).nullable()),
200
+ primary_organization: z.record(z.string(), z.unknown()).nullable(),
201
201
  has_active_zaps: z.boolean(),
202
202
  has_google_sso: z.boolean(),
203
203
  auth_realm: z.string(),
@@ -265,14 +265,14 @@ export const NeedsRequestSchema = z.object({
265
265
  action: z.string(),
266
266
  type_of: z.string(),
267
267
  authentication_id: z.number().optional(),
268
- params: z.record(z.unknown()).optional(),
268
+ params: z.record(z.string(), z.unknown()).optional(),
269
269
  });
270
270
  export const NeedsResponseSchema = z.object({
271
271
  success: z.boolean(),
272
272
  needs: z.array(NeedSchema).optional(),
273
273
  errors: z.array(z.string()).optional(),
274
274
  last_fetched_at: z.string().optional(),
275
- schema: z.record(z.unknown()).optional(),
275
+ schema: z.record(z.string(), z.unknown()).optional(),
276
276
  });
277
277
  // ============================================================================
278
278
  // Implementation Schema
@@ -291,7 +291,7 @@ export const ImplementationSchema = z.object({
291
291
  is_hidden: z.string().optional(),
292
292
  name: z.string().optional(),
293
293
  slug: z.string().optional(),
294
- images: z.record(z.string().nullable()).optional(),
294
+ images: z.record(z.string(), z.string().nullable()).optional(),
295
295
  primary_color: z.string().optional(),
296
296
  secondary_color: z.string().optional(),
297
297
  current_implementation: z.string().optional(),
@@ -390,7 +390,7 @@ export const NeedChoicesRequestSchema = z.object({
390
390
  .optional()
391
391
  .describe("If the app needs auth, provide an `authentication_id` that has the `selected_api` of the app you want to run. Can be any auth visible to the user (including shared)."),
392
392
  params: z
393
- .record(z.unknown())
393
+ .record(z.string(), z.unknown())
394
394
  .optional()
395
395
  .describe("Object that matches the input the node would normally get. Has all the same keys/types as the `needs` of the action."),
396
396
  page: z.number().optional().default(0),
package/dist/index.cjs CHANGED
@@ -26,29 +26,29 @@ var os__namespace = /*#__PURE__*/_interopNamespace(os);
26
26
 
27
27
  // src/types/properties.ts
28
28
  function withFormatter(schema, formatMeta) {
29
- Object.assign(schema._def, {
29
+ Object.assign(schema._zod.def, {
30
30
  formatMeta
31
31
  });
32
32
  return schema;
33
33
  }
34
34
  function withPositional(schema) {
35
- Object.assign(schema._def, {
35
+ Object.assign(schema._zod.def, {
36
36
  positionalMeta: { positional: true }
37
37
  });
38
38
  return schema;
39
39
  }
40
40
  function schemaHasPositionalMeta(schema) {
41
- return "positionalMeta" in schema._def;
41
+ return "positionalMeta" in schema._zod.def;
42
42
  }
43
43
  function isPositional(schema) {
44
- if (schemaHasPositionalMeta(schema) && schema._def.positionalMeta?.positional) {
44
+ if (schemaHasPositionalMeta(schema) && schema._zod.def.positionalMeta?.positional) {
45
45
  return true;
46
46
  }
47
47
  if (schema instanceof zod.z.ZodOptional) {
48
- return isPositional(schema._def.innerType);
48
+ return isPositional(schema._zod.def.innerType);
49
49
  }
50
50
  if (schema instanceof zod.z.ZodDefault) {
51
- return isPositional(schema._def.innerType);
51
+ return isPositional(schema._zod.def.innerType);
52
52
  }
53
53
  return false;
54
54
  }
@@ -73,12 +73,12 @@ var ActionTypePropertySchema = zod.z.enum([
73
73
  ]).describe("Action type that matches the action's defined type");
74
74
  var ActionKeyPropertySchema = zod.z.string().min(1).describe("Action key to execute");
75
75
  var AuthenticationIdPropertySchema = zod.z.number().int().describe("Authentication ID to use for this action");
76
- var InputsPropertySchema = zod.z.record(zod.z.unknown()).describe("Input parameters for the action");
76
+ var InputsPropertySchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Input parameters for the action");
77
77
  var LimitPropertySchema = zod.z.number().int().min(1).max(MAX_PAGE_LIMIT).default(50).describe("Maximum number of items to return");
78
78
  var OffsetPropertySchema = zod.z.number().int().min(0).default(0).describe("Number of items to skip for pagination");
79
79
  var OutputPropertySchema = zod.z.string().describe("Output file path");
80
80
  var DebugPropertySchema = zod.z.boolean().default(false).describe("Enable debug logging");
81
- var ParamsPropertySchema = zod.z.record(zod.z.unknown()).describe("Additional parameters");
81
+ var ParamsPropertySchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional parameters");
82
82
 
83
83
  // src/types/errors.ts
84
84
  var ZapierError = class extends Error {
@@ -215,7 +215,7 @@ HTTP Status: ${error.statusCode}`;
215
215
  return message;
216
216
  }
217
217
  var ActionExecutionInputSchema = zod.z.object({
218
- inputs: zod.z.record(zod.z.unknown()).optional(),
218
+ inputs: zod.z.record(zod.z.string(), zod.z.unknown()).optional(),
219
219
  authenticationId: zod.z.number().optional()
220
220
  }).describe(
221
221
  "Execute an action with the given inputs for the bound app, as an alternative to runAction"
@@ -376,7 +376,7 @@ var appsPlugin = ({ sdk }) => {
376
376
  var FetchUrlSchema = zod.z.union([zod.z.string(), zod.z.instanceof(URL)]).describe("The URL to fetch");
377
377
  var FetchInitSchema = zod.z.object({
378
378
  method: zod.z.enum(["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]).optional(),
379
- headers: zod.z.record(zod.z.string()).optional(),
379
+ headers: zod.z.record(zod.z.string(), zod.z.string()).optional(),
380
380
  body: zod.z.union([
381
381
  zod.z.string(),
382
382
  zod.z.instanceof(FormData),
@@ -596,7 +596,7 @@ var paginate = paginateBuffered;
596
596
  var validate = (schema, input) => {
597
597
  const result = schema.safeParse(input);
598
598
  if (!result.success) {
599
- const errorMessages = result.error.errors.map((error) => {
599
+ const errorMessages = result.error.issues.map((error) => {
600
600
  const path = error.path.length > 0 ? error.path.join(".") : "input";
601
601
  return `${path}: ${error.message}`;
602
602
  });
@@ -604,7 +604,7 @@ var validate = (schema, input) => {
604
604
  ${errorMessages.join("\n ")}`;
605
605
  throw new ZapierValidationError(message, {
606
606
  details: {
607
- zodErrors: result.error.errors,
607
+ zodErrors: result.error.issues,
608
608
  input
609
609
  }
610
610
  });
@@ -1044,7 +1044,7 @@ var AuthenticationSchema = zod.z.object({
1044
1044
  url: zod.z.string().optional(),
1045
1045
  groups: zod.z.string().optional(),
1046
1046
  members: zod.z.string().optional(),
1047
- permissions: zod.z.record(zod.z.boolean()).optional()
1047
+ permissions: zod.z.record(zod.z.string(), zod.z.boolean()).optional()
1048
1048
  });
1049
1049
  zod.z.object({
1050
1050
  count: zod.z.number(),
@@ -1068,7 +1068,7 @@ var UserProfileSchema = zod.z.object({
1068
1068
  email_confirmed: zod.z.boolean(),
1069
1069
  timezone: zod.z.string(),
1070
1070
  photo_url: zod.z.string(),
1071
- has_seen_notifications: zod.z.record(zod.z.boolean().nullable()),
1071
+ has_seen_notifications: zod.z.record(zod.z.string(), zod.z.boolean().nullable()),
1072
1072
  signup: zod.z.string(),
1073
1073
  since_signup: zod.z.string(),
1074
1074
  has_activated: zod.z.boolean(),
@@ -1090,11 +1090,11 @@ var UserProfileSchema = zod.z.object({
1090
1090
  is_temporary: zod.z.boolean(),
1091
1091
  banner_message: zod.z.string(),
1092
1092
  enable_totp_2fa: zod.z.boolean(),
1093
- viewed_help: zod.z.record(zod.z.boolean()),
1093
+ viewed_help: zod.z.record(zod.z.string(), zod.z.boolean()),
1094
1094
  show_editor_migration_mesaging: zod.z.boolean(),
1095
- switches: zod.z.record(zod.z.unknown()),
1096
- organizations: zod.z.array(zod.z.record(zod.z.unknown()).nullable()),
1097
- primary_organization: zod.z.record(zod.z.unknown()).nullable(),
1095
+ switches: zod.z.record(zod.z.string(), zod.z.unknown()),
1096
+ organizations: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown()).nullable()),
1097
+ primary_organization: zod.z.record(zod.z.string(), zod.z.unknown()).nullable(),
1098
1098
  has_active_zaps: zod.z.boolean(),
1099
1099
  has_google_sso: zod.z.boolean(),
1100
1100
  auth_realm: zod.z.string(),
@@ -1162,14 +1162,14 @@ zod.z.object({
1162
1162
  action: zod.z.string(),
1163
1163
  type_of: zod.z.string(),
1164
1164
  authentication_id: zod.z.number().optional(),
1165
- params: zod.z.record(zod.z.unknown()).optional()
1165
+ params: zod.z.record(zod.z.string(), zod.z.unknown()).optional()
1166
1166
  });
1167
1167
  zod.z.object({
1168
1168
  success: zod.z.boolean(),
1169
1169
  needs: zod.z.array(NeedSchema).optional(),
1170
1170
  errors: zod.z.array(zod.z.string()).optional(),
1171
1171
  last_fetched_at: zod.z.string().optional(),
1172
- schema: zod.z.record(zod.z.unknown()).optional()
1172
+ schema: zod.z.record(zod.z.string(), zod.z.unknown()).optional()
1173
1173
  });
1174
1174
  var ImplementationSchema = zod.z.object({
1175
1175
  selected_api: zod.z.string(),
@@ -1185,7 +1185,7 @@ var ImplementationSchema = zod.z.object({
1185
1185
  is_hidden: zod.z.string().optional(),
1186
1186
  name: zod.z.string().optional(),
1187
1187
  slug: zod.z.string().optional(),
1188
- images: zod.z.record(zod.z.string().nullable()).optional(),
1188
+ images: zod.z.record(zod.z.string(), zod.z.string().nullable()).optional(),
1189
1189
  primary_color: zod.z.string().optional(),
1190
1190
  secondary_color: zod.z.string().optional(),
1191
1191
  current_implementation: zod.z.string().optional(),
@@ -1272,7 +1272,7 @@ zod.z.object({
1272
1272
  authentication_id: zod.z.number().optional().describe(
1273
1273
  "If the app needs auth, provide an `authentication_id` that has the `selected_api` of the app you want to run. Can be any auth visible to the user (including shared)."
1274
1274
  ),
1275
- params: zod.z.record(zod.z.unknown()).optional().describe(
1275
+ params: zod.z.record(zod.z.string(), zod.z.unknown()).optional().describe(
1276
1276
  "Object that matches the input the node would normally get. Has all the same keys/types as the `needs` of the action."
1277
1277
  ),
1278
1278
  page: zod.z.number().optional().default(0),
@@ -2486,7 +2486,7 @@ var AuthenticationSchema2 = zod.z.object({
2486
2486
  url: zod.z.string().optional(),
2487
2487
  groups: zod.z.string().optional(),
2488
2488
  members: zod.z.string().optional(),
2489
- permissions: zod.z.record(zod.z.boolean()).optional()
2489
+ permissions: zod.z.record(zod.z.string(), zod.z.boolean()).optional()
2490
2490
  });
2491
2491
  zod.z.object({
2492
2492
  count: zod.z.number(),
@@ -2805,7 +2805,7 @@ var RelayRequestSchema = zod.z.object({
2805
2805
  "Optional JSON string authentication template to bypass Notary lookup"
2806
2806
  ),
2807
2807
  headers: zod.z.union([
2808
- zod.z.record(zod.z.string()),
2808
+ zod.z.record(zod.z.string(), zod.z.string()),
2809
2809
  zod.z.instanceof(Headers),
2810
2810
  zod.z.array(zod.z.tuple([zod.z.string(), zod.z.string()]))
2811
2811
  ]).optional().describe("Request headers")
@@ -2942,8 +2942,8 @@ var ActionEntrySchema = zod.z.object({
2942
2942
  actionKey: zod.z.string().describe("Action key identifier"),
2943
2943
  actionType: zod.z.string().describe("Action type (e.g., 'read', 'write', 'search')"),
2944
2944
  authenticationId: zod.z.number().nullable().optional().describe("Authentication ID used"),
2945
- inputs: zod.z.record(zod.z.unknown()).optional().describe("Resolved input values"),
2946
- schema: zod.z.record(zod.z.unknown()).describe(
2945
+ inputs: zod.z.record(zod.z.string(), zod.z.unknown()).optional().describe("Resolved input values"),
2946
+ schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe(
2947
2947
  "Complete JSON Schema from getInputFieldsSchema (includes $schema, type, properties, required, etc.)"
2948
2948
  ),
2949
2949
  createdAt: zod.z.string().describe("ISO 8601 timestamp when created")
@@ -5008,7 +5008,7 @@ function getCpuTime() {
5008
5008
 
5009
5009
  // package.json
5010
5010
  var package_default = {
5011
- version: "0.15.12"};
5011
+ version: "0.16.0"};
5012
5012
 
5013
5013
  // src/plugins/eventEmission/builders.ts
5014
5014
  function createBaseEvent(context = {}) {