@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.
- package/CHANGELOG.md +12 -0
- package/dist/api/schemas.d.ts +2 -2
- package/dist/api/schemas.js +3 -3
- package/dist/apps.cjs +9036 -0
- package/dist/apps.d.mts +23 -0
- package/dist/apps.d.ts +23 -0
- package/dist/apps.mjs +9034 -0
- package/dist/define/apps-entrypoint.d.ts +3 -0
- package/dist/define/apps-entrypoint.d.ts.map +1 -0
- package/dist/define/apps-entrypoint.js +1 -0
- package/dist/define/apps-registry-keys.d.ts +2 -0
- package/dist/define/apps-registry-keys.d.ts.map +1 -0
- package/dist/define/apps-registry-keys.js +2 -0
- package/dist/define/apps-registry.d.ts +13 -0
- package/dist/define/apps-registry.d.ts.map +1 -0
- package/dist/define/apps-registry.js +31 -0
- package/dist/define/apps-registry.json +9010 -0
- package/dist/define/apps.d.ts +11 -0
- package/dist/define/apps.d.ts.map +1 -0
- package/dist/define/apps.js +2 -0
- package/dist/define/define.d.ts +13 -0
- package/dist/define/define.d.ts.map +1 -0
- package/dist/define/define.js +93 -0
- package/dist/define/helpers.d.ts +8 -0
- package/dist/define/helpers.d.ts.map +1 -0
- package/dist/define/helpers.js +6 -0
- package/dist/define/index.d.ts +5 -0
- package/dist/define/index.d.ts.map +1 -0
- package/dist/define/index.js +2 -0
- package/dist/define/types.d.ts +235 -0
- package/dist/define/types.d.ts.map +1 -0
- package/dist/define/types.js +1 -0
- package/dist/define.cjs +113 -0
- package/dist/define.d.mts +254 -0
- package/dist/define.d.ts +254 -0
- package/dist/define.mjs +107 -0
- package/dist/index.cjs +6 -29
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +6 -29
- package/dist/plugins/fetch/index.d.ts.map +1 -1
- package/dist/plugins/fetch/index.js +1 -2
- package/dist/services/implementations.d.ts.map +1 -1
- package/dist/services/implementations.js +2 -3
- package/dist/utils/id-utils.d.ts +2 -0
- package/dist/utils/id-utils.d.ts.map +1 -1
- package/dist/utils/id-utils.js +2 -0
- 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
|
package/dist/api/schemas.d.ts
CHANGED
|
@@ -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.
|
|
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>;
|
package/dist/api/schemas.js
CHANGED
|
@@ -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
|
|
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
|