@zapier/zapier-sdk 0.49.0 → 0.50.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.
- package/CHANGELOG.md +15 -0
- package/README.md +14 -11
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +17 -15
- package/dist/api/types.d.ts +8 -7
- package/dist/api/types.d.ts.map +1 -1
- package/dist/constants.d.ts +8 -9
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +8 -11
- package/dist/experimental.cjs +18 -24
- package/dist/experimental.d.mts +2 -2
- package/dist/experimental.mjs +19 -24
- package/dist/{index-C2vsvjgN.d.mts → index-BQ2ii0Bs.d.mts} +16 -17
- package/dist/{index-C2vsvjgN.d.ts → index-BQ2ii0Bs.d.ts} +16 -17
- package/dist/index.cjs +18 -24
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +19 -24
- package/dist/plugins/api/index.d.ts.map +1 -1
- package/dist/plugins/api/index.js +1 -2
- package/dist/types/errors.d.ts +5 -5
- package/dist/types/sdk.d.ts +2 -2
- package/dist/types/sdk.d.ts.map +1 -1
- package/dist/types/sdk.js +4 -11
- package/package.json +1 -1
package/dist/types/sdk.js
CHANGED
|
@@ -36,26 +36,19 @@ export const BaseSdkOptionsSchema = z.object({
|
|
|
36
36
|
.optional()
|
|
37
37
|
.describe("Max delay in ms to wait for retry (default: 60000).")
|
|
38
38
|
.meta({ valueHint: "ms" }),
|
|
39
|
-
isInteractive: z
|
|
40
|
-
.boolean()
|
|
41
|
-
.optional()
|
|
42
|
-
.describe("Whether this session is interactive (user can visit approval URLs). Defaults to ZAPIER_IS_INTERACTIVE env var.")
|
|
43
|
-
.meta({ internal: true }),
|
|
44
39
|
approvalTimeoutMs: z
|
|
45
40
|
.number()
|
|
46
41
|
.optional()
|
|
47
42
|
.describe("Timeout in ms for approval polling. Default: 600000 (10 min).")
|
|
48
|
-
.meta({ valueHint: "ms"
|
|
43
|
+
.meta({ valueHint: "ms" }),
|
|
49
44
|
maxApprovalRetries: z
|
|
50
45
|
.number()
|
|
51
46
|
.optional()
|
|
52
|
-
.describe("Maximum number of sequential approval rounds per request (one per gating policy) before giving up. Default: 2.")
|
|
53
|
-
.meta({ internal: true }),
|
|
47
|
+
.describe("Maximum number of sequential approval rounds per request (one per gating policy) before giving up. Default: 2."),
|
|
54
48
|
approvalMode: z
|
|
55
|
-
.enum(["poll", "
|
|
49
|
+
.enum(["disabled", "poll", "throw"])
|
|
56
50
|
.optional()
|
|
57
|
-
.describe('Approval flow behavior. "poll" opens browser and
|
|
58
|
-
.meta({ internal: true }),
|
|
51
|
+
.describe('Approval flow behavior. "disabled" (default) throws a ZapierApprovalError on approval-required responses without creating an approval. "poll" creates the approval, opens it in a browser, polls until resolved, and retries the original request. "throw" creates the approval and throws a ZapierApprovalError with the approval URL so the caller can surface it. Defaults to the ZAPIER_APPROVAL_MODE env var, then "disabled".'),
|
|
59
52
|
// Internal
|
|
60
53
|
manifestPath: z
|
|
61
54
|
.string()
|