@zapier/zapier-sdk 0.38.0 → 0.39.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 (47) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/api/schemas.d.ts +2 -2
  3. package/dist/api/schemas.js +3 -3
  4. package/dist/apps.cjs +9036 -0
  5. package/dist/apps.d.mts +23 -0
  6. package/dist/apps.d.ts +23 -0
  7. package/dist/apps.mjs +9034 -0
  8. package/dist/define/apps-entrypoint.d.ts +3 -0
  9. package/dist/define/apps-entrypoint.d.ts.map +1 -0
  10. package/dist/define/apps-entrypoint.js +1 -0
  11. package/dist/define/apps-registry-keys.d.ts +2 -0
  12. package/dist/define/apps-registry-keys.d.ts.map +1 -0
  13. package/dist/define/apps-registry-keys.js +2 -0
  14. package/dist/define/apps-registry.d.ts +13 -0
  15. package/dist/define/apps-registry.d.ts.map +1 -0
  16. package/dist/define/apps-registry.js +31 -0
  17. package/dist/define/apps-registry.json +9010 -0
  18. package/dist/define/apps.d.ts +11 -0
  19. package/dist/define/apps.d.ts.map +1 -0
  20. package/dist/define/apps.js +2 -0
  21. package/dist/define/define.d.ts +13 -0
  22. package/dist/define/define.d.ts.map +1 -0
  23. package/dist/define/define.js +93 -0
  24. package/dist/define/helpers.d.ts +8 -0
  25. package/dist/define/helpers.d.ts.map +1 -0
  26. package/dist/define/helpers.js +6 -0
  27. package/dist/define/index.d.ts +5 -0
  28. package/dist/define/index.d.ts.map +1 -0
  29. package/dist/define/index.js +2 -0
  30. package/dist/define/types.d.ts +235 -0
  31. package/dist/define/types.d.ts.map +1 -0
  32. package/dist/define/types.js +1 -0
  33. package/dist/define.cjs +113 -0
  34. package/dist/define.d.mts +254 -0
  35. package/dist/define.d.ts +254 -0
  36. package/dist/define.mjs +107 -0
  37. package/dist/index.cjs +6 -29
  38. package/dist/index.d.mts +1 -1
  39. package/dist/index.mjs +6 -29
  40. package/dist/plugins/fetch/index.d.ts.map +1 -1
  41. package/dist/plugins/fetch/index.js +1 -2
  42. package/dist/services/implementations.d.ts.map +1 -1
  43. package/dist/services/implementations.js +2 -3
  44. package/dist/utils/id-utils.d.ts +2 -0
  45. package/dist/utils/id-utils.d.ts.map +1 -1
  46. package/dist/utils/id-utils.js +2 -0
  47. package/package.json +23 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @zapier/zapier-sdk
2
2
 
3
+ ## 0.39.1
4
+
5
+ ### Patch Changes
6
+
7
+ - b4c0560: Accept UUID authentication IDs without coercion. Stop coercing authentication IDs to numbers, allowing UUIDs and other string identifiers to pass through unchanged. Update Zod schemas to accept string or number for authentication_id fields.
8
+
9
+ ## 0.39.0
10
+
11
+ ### Minor Changes
12
+
13
+ - a20d36a: Add define primitives (defineTool, defineDurable, defineComponent) via @zapier/zapier-sdk/define entrypoint and app registry via @zapier/zapier-sdk/apps entrypoint.
14
+
3
15
  ## 0.38.0
4
16
 
5
17
  ### Minor Changes
@@ -249,7 +249,7 @@ export declare const NeedsRequestSchema: z.ZodObject<{
249
249
  selected_api: z.ZodString;
250
250
  action: z.ZodString;
251
251
  type_of: z.ZodString;
252
- authentication_id: z.ZodOptional<z.ZodNumber>;
252
+ authentication_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
253
253
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
254
254
  }, z.core.$strip>;
255
255
  export declare const NeedsResponseSchema: z.ZodObject<{
@@ -394,7 +394,7 @@ export declare const NeedChoicesResponseLinksSchema: z.ZodObject<{
394
394
  }, z.core.$strip>;
395
395
  export declare const NeedChoicesRequestSchema: z.ZodObject<{
396
396
  selected_api: z.ZodOptional<z.ZodString>;
397
- authentication_id: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
397
+ authentication_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
398
398
  params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
399
399
  page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
400
400
  prefill: z.ZodOptional<z.ZodString>;
@@ -236,7 +236,7 @@ export const NeedsRequestSchema = z.object({
236
236
  selected_api: z.string(),
237
237
  action: z.string(),
238
238
  type_of: z.string(),
239
- authentication_id: z.number().optional(),
239
+ authentication_id: z.union([z.string(), z.number()]).optional(),
240
240
  params: z.record(z.string(), z.unknown()).optional(),
241
241
  });
242
242
  export const NeedsResponseSchema = z.object({
@@ -290,8 +290,8 @@ export const NeedChoicesRequestSchema = z.object({
290
290
  .string()
291
291
  .optional()
292
292
  .describe("Something like `SlackAPI` (for Python apps) or `SplitwiseCLIAPI@1.0.0` (for CLI apps). Non-public apps are fine as long as the authed user can access them."),
293
- authentication_id: z.coerce
294
- .number()
293
+ authentication_id: z
294
+ .union([z.string(), z.number()])
295
295
  .optional()
296
296
  .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)."),
297
297
  params: z