@zapier/zapier-sdk 0.69.2 → 0.70.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 +34 -0
- package/README.md +33 -23
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +10 -1
- package/dist/api/error-classification.d.ts +7 -0
- package/dist/api/error-classification.d.ts.map +1 -1
- package/dist/api/error-classification.js +15 -2
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/sse-parser.d.ts +34 -0
- package/dist/api/sse-parser.d.ts.map +1 -1
- package/dist/api/sse-parser.js +28 -0
- package/dist/api/types.d.ts +9 -1
- package/dist/api/types.d.ts.map +1 -1
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +2 -2
- package/dist/experimental.cjs +174 -35
- package/dist/experimental.d.mts +34 -2
- package/dist/experimental.d.ts +32 -0
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.mjs +174 -35
- package/dist/{index-DuFFW71E.d.mts → index-C0bQ5snd.d.mts} +33 -1
- package/dist/{index-DuFFW71E.d.ts → index-C0bQ5snd.d.ts} +33 -1
- package/dist/index.cjs +32 -5
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +32 -5
- package/dist/plugins/codeSubstrate/createWorkflow/index.d.ts +3 -0
- package/dist/plugins/codeSubstrate/createWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/createWorkflow/index.js +3 -0
- package/dist/plugins/codeSubstrate/createWorkflow/schemas.d.ts +3 -0
- package/dist/plugins/codeSubstrate/createWorkflow/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/createWorkflow/schemas.js +11 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts +13 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.js +9 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.d.ts +13 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.js +52 -0
- package/dist/plugins/triggers/drainTriggerInbox/index.d.ts +4 -2
- package/dist/plugins/triggers/drainTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/drainTriggerInbox/index.js +39 -6
- package/dist/plugins/triggers/watchTriggerInbox/index.d.ts +4 -2
- package/dist/plugins/triggers/watchTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/watchTriggerInbox/index.js +100 -16
- package/dist/plugins/triggers/watchTriggerInbox/sse.d.ts +8 -6
- package/dist/plugins/triggers/watchTriggerInbox/sse.d.ts.map +1 -1
- package/dist/plugins/triggers/watchTriggerInbox/sse.js +11 -13
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AA4F1C,cAAc,SAAS,CAAC;AAExB,MAAM,WAAW,gBAAiB,SAAQ,cAAc;CAAG;AAE3D;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,gBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA2IqrD,CAAC;;;;sBAAiX,CAAC;qBAAyB,CAAC
|
|
1
|
+
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAhBpoE;AASD,MAAM,WAAW,SAAU,SAAQ,UAAU,CAAC,OAAO,eAAe,CAAC;CAAG;AAMxE,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
package/dist/experimental.mjs
CHANGED
|
@@ -2893,13 +2893,16 @@ async function exchangeClientCredentials(options) {
|
|
|
2893
2893
|
},
|
|
2894
2894
|
timestamp: Date.now()
|
|
2895
2895
|
});
|
|
2896
|
-
throw new
|
|
2897
|
-
`Client credentials exchange failed: ${response.status} ${response.statusText}
|
|
2896
|
+
throw new ZapierAuthenticationError(
|
|
2897
|
+
`Client credentials exchange failed: ${response.status} ${response.statusText}`,
|
|
2898
|
+
{ statusCode: response.status }
|
|
2898
2899
|
);
|
|
2899
2900
|
}
|
|
2900
2901
|
const data = await response.json();
|
|
2901
2902
|
if (!data.access_token) {
|
|
2902
|
-
throw new
|
|
2903
|
+
throw new ZapierAuthenticationError(
|
|
2904
|
+
"Client credentials response missing access_token"
|
|
2905
|
+
);
|
|
2903
2906
|
}
|
|
2904
2907
|
onEvent?.({
|
|
2905
2908
|
type: "auth_success",
|
|
@@ -3122,6 +3125,17 @@ async function invalidateCredentialsToken(options) {
|
|
|
3122
3125
|
}
|
|
3123
3126
|
|
|
3124
3127
|
// src/api/sse-parser.ts
|
|
3128
|
+
async function* jsonFrames(source) {
|
|
3129
|
+
for await (const { data } of source) {
|
|
3130
|
+
let frame;
|
|
3131
|
+
try {
|
|
3132
|
+
frame = { parsed: true, data: JSON.parse(data), raw: data };
|
|
3133
|
+
} catch {
|
|
3134
|
+
frame = { parsed: false, data: null, raw: data };
|
|
3135
|
+
}
|
|
3136
|
+
yield frame;
|
|
3137
|
+
}
|
|
3138
|
+
}
|
|
3125
3139
|
function createSseParserStream() {
|
|
3126
3140
|
let buffer = "";
|
|
3127
3141
|
let data = "";
|
|
@@ -3169,7 +3183,7 @@ function createSseParserStream() {
|
|
|
3169
3183
|
}
|
|
3170
3184
|
|
|
3171
3185
|
// src/sdk-version.ts
|
|
3172
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
3186
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.70.0" : void 0) || "unknown";
|
|
3173
3187
|
|
|
3174
3188
|
// src/utils/open-url.ts
|
|
3175
3189
|
var nodePrefix = "node:";
|
|
@@ -3544,6 +3558,15 @@ var ZapierApiClient = class {
|
|
|
3544
3558
|
* never pins a slot — see `withSemaphore`.
|
|
3545
3559
|
*/
|
|
3546
3560
|
this.fetchStream = (path, init) => this.streamSse(path, init);
|
|
3561
|
+
/**
|
|
3562
|
+
* Like `fetchStream`, but parses each frame's `data` as JSON. Diverges from
|
|
3563
|
+
* `fetchJson` deliberately: that throws on invalid JSON, but a long-lived
|
|
3564
|
+
* stream must survive a single malformed frame, so a parse failure is yielded
|
|
3565
|
+
* as `{ parsed: false, data: null, raw }` rather than thrown. A non-ok
|
|
3566
|
+
* response still throws the shared `ZapierError` (from `fetchStream`, before
|
|
3567
|
+
* any frame), so transport / auth failures surface as usual.
|
|
3568
|
+
*/
|
|
3569
|
+
this.fetchJsonStream = (path, init) => jsonFrames(this.fetchStream(path, init));
|
|
3547
3570
|
this.get = async (path, options = {}) => {
|
|
3548
3571
|
return this.fetchJson("GET", path, void 0, options);
|
|
3549
3572
|
};
|
|
@@ -3750,16 +3773,16 @@ var ZapierApiClient = class {
|
|
|
3750
3773
|
if (typeof errorInfo.data === "string") {
|
|
3751
3774
|
return { message: `${fallbackMessage}: ${errorInfo.data}` };
|
|
3752
3775
|
}
|
|
3753
|
-
const
|
|
3776
|
+
const errorMessage2 = this.extractErrorMessage(errorInfo.data) || fallbackMessage;
|
|
3754
3777
|
if (this.hasErrorArray(errorInfo.data)) {
|
|
3755
3778
|
if (this.isApiErrorArray(errorInfo.data.errors)) {
|
|
3756
3779
|
return {
|
|
3757
|
-
message:
|
|
3780
|
+
message: errorMessage2,
|
|
3758
3781
|
errors: errorInfo.data.errors
|
|
3759
3782
|
};
|
|
3760
3783
|
} else {
|
|
3761
3784
|
return {
|
|
3762
|
-
message:
|
|
3785
|
+
message: errorMessage2,
|
|
3763
3786
|
errors: errorInfo.data.errors.map((e) => ({
|
|
3764
3787
|
status: errorInfo.status,
|
|
3765
3788
|
code: String(errorInfo.status),
|
|
@@ -3769,7 +3792,7 @@ var ZapierApiClient = class {
|
|
|
3769
3792
|
};
|
|
3770
3793
|
}
|
|
3771
3794
|
}
|
|
3772
|
-
return { message:
|
|
3795
|
+
return { message: errorMessage2 };
|
|
3773
3796
|
} catch {
|
|
3774
3797
|
return { message: fallbackMessage };
|
|
3775
3798
|
}
|
|
@@ -4109,7 +4132,11 @@ var createZapierApi = (options) => {
|
|
|
4109
4132
|
|
|
4110
4133
|
// src/api/error-classification.ts
|
|
4111
4134
|
function isPermanentHttpError(err) {
|
|
4112
|
-
|
|
4135
|
+
if (!(err instanceof ZapierError)) return false;
|
|
4136
|
+
if (err instanceof ZapierAuthenticationError && err.statusCode === void 0) {
|
|
4137
|
+
return true;
|
|
4138
|
+
}
|
|
4139
|
+
const { statusCode } = err;
|
|
4113
4140
|
return statusCode !== void 0 && statusCode >= 400 && statusCode < 500 && statusCode !== 429;
|
|
4114
4141
|
}
|
|
4115
4142
|
|
|
@@ -6097,11 +6124,11 @@ var runActionPlugin = definePlugin(
|
|
|
6097
6124
|
timeoutMs
|
|
6098
6125
|
});
|
|
6099
6126
|
if (result.errors && result.errors.length > 0) {
|
|
6100
|
-
const
|
|
6127
|
+
const errorMessage2 = result.errors.map(
|
|
6101
6128
|
(error) => error.detail || error.title || "Unknown error"
|
|
6102
6129
|
).join("; ");
|
|
6103
6130
|
throw new ZapierActionError(
|
|
6104
|
-
`Action execution failed: ${
|
|
6131
|
+
`Action execution failed: ${errorMessage2}`,
|
|
6105
6132
|
{ appKey, actionKey }
|
|
6106
6133
|
);
|
|
6107
6134
|
}
|
|
@@ -9275,10 +9302,10 @@ var eventEmissionPlugin = definePlugin(
|
|
|
9275
9302
|
registeredListeners.uncaughtException = uncaughtExceptionHandler;
|
|
9276
9303
|
globalThis.process.on("uncaughtException", uncaughtExceptionHandler);
|
|
9277
9304
|
const unhandledRejectionHandler = async (reason, promise) => {
|
|
9278
|
-
const
|
|
9305
|
+
const errorMessage2 = reason instanceof Error ? reason.message : typeof reason === "string" ? reason : "Unhandled promise rejection";
|
|
9279
9306
|
const errorStack = reason instanceof Error ? reason.stack : null;
|
|
9280
9307
|
let errorEvent = buildErrorEventWithContext({
|
|
9281
|
-
error_message:
|
|
9308
|
+
error_message: errorMessage2,
|
|
9282
9309
|
error_type: "UnhandledRejection",
|
|
9283
9310
|
error_stack_trace: errorStack,
|
|
9284
9311
|
error_severity: "critical",
|
|
@@ -10465,6 +10492,16 @@ async function runBatchedDrainPipeline(options) {
|
|
|
10465
10492
|
}
|
|
10466
10493
|
|
|
10467
10494
|
// src/plugins/triggers/drainTriggerInbox/index.ts
|
|
10495
|
+
var nonRetryableDrainErrors = /* @__PURE__ */ new WeakSet();
|
|
10496
|
+
function markNonRetryableDrainError(err) {
|
|
10497
|
+
if (typeof err === "object" && err !== null) {
|
|
10498
|
+
nonRetryableDrainErrors.add(err);
|
|
10499
|
+
}
|
|
10500
|
+
return err;
|
|
10501
|
+
}
|
|
10502
|
+
function isNonRetryableDrainError(err) {
|
|
10503
|
+
return typeof err === "object" && err !== null && nonRetryableDrainErrors.has(err);
|
|
10504
|
+
}
|
|
10468
10505
|
function isLeaseExpiredError(err) {
|
|
10469
10506
|
if (!(err instanceof ZapierValidationError)) return false;
|
|
10470
10507
|
return err.errors?.some((e) => e.code === "lease_expired") ?? false;
|
|
@@ -10485,6 +10522,7 @@ async function runDrainPass(options) {
|
|
|
10485
10522
|
} = options;
|
|
10486
10523
|
let firstFetch = options.firstFetch;
|
|
10487
10524
|
let abortedFromCallback = false;
|
|
10525
|
+
let handlerErrorCaptured = false;
|
|
10488
10526
|
let firstHandlerError = void 0;
|
|
10489
10527
|
const outcomes = await runBatchedDrainPipeline({
|
|
10490
10528
|
concurrency,
|
|
@@ -10506,8 +10544,10 @@ async function runDrainPass(options) {
|
|
|
10506
10544
|
}
|
|
10507
10545
|
if (lease.results.length === 0) {
|
|
10508
10546
|
if (firstFetch && lease.inbox_attributes.status === "initialization_failure") {
|
|
10509
|
-
throw
|
|
10510
|
-
|
|
10547
|
+
throw markNonRetryableDrainError(
|
|
10548
|
+
new ZapierApiError(
|
|
10549
|
+
`Trigger inbox ${inboxId} is in initialization_failure state \u2014 inspect via getTriggerInbox.`
|
|
10550
|
+
)
|
|
10511
10551
|
);
|
|
10512
10552
|
}
|
|
10513
10553
|
firstFetch = false;
|
|
@@ -10547,7 +10587,10 @@ async function runDrainPass(options) {
|
|
|
10547
10587
|
}
|
|
10548
10588
|
}
|
|
10549
10589
|
if (!continueOnError && !(err instanceof ZapierSignal)) {
|
|
10550
|
-
if (
|
|
10590
|
+
if (!handlerErrorCaptured) {
|
|
10591
|
+
firstHandlerError = err;
|
|
10592
|
+
handlerErrorCaptured = true;
|
|
10593
|
+
}
|
|
10551
10594
|
abort = true;
|
|
10552
10595
|
}
|
|
10553
10596
|
return { value: message, action, abort };
|
|
@@ -10576,7 +10619,9 @@ async function runDrainPass(options) {
|
|
|
10576
10619
|
}
|
|
10577
10620
|
}
|
|
10578
10621
|
});
|
|
10579
|
-
if (
|
|
10622
|
+
if (handlerErrorCaptured) {
|
|
10623
|
+
throw markNonRetryableDrainError(firstHandlerError);
|
|
10624
|
+
}
|
|
10580
10625
|
return { abortedFromCallback, processed: outcomes.length };
|
|
10581
10626
|
}
|
|
10582
10627
|
function requireOnMessage(onMessage) {
|
|
@@ -10650,16 +10695,12 @@ async function* readInboxEvents({
|
|
|
10650
10695
|
signal,
|
|
10651
10696
|
onOpen
|
|
10652
10697
|
}) {
|
|
10653
|
-
for await (const message of api.
|
|
10698
|
+
for await (const message of api.fetchJsonStream(
|
|
10654
10699
|
`/trigger-inbox/api/v1/inboxes/${encodeURIComponent(inboxId)}/events`,
|
|
10655
10700
|
{ method: "GET", signal, authRequired: true, onOpen }
|
|
10656
10701
|
)) {
|
|
10657
|
-
|
|
10658
|
-
|
|
10659
|
-
parsed = JSON.parse(message.data);
|
|
10660
|
-
} catch {
|
|
10661
|
-
continue;
|
|
10662
|
-
}
|
|
10702
|
+
if (!message.parsed) continue;
|
|
10703
|
+
const parsed = message.data;
|
|
10663
10704
|
if (typeof parsed === "object" && parsed !== null && typeof parsed.inbox_id === "string" && // Only wake on a frame for this inbox. Case-insensitive: the endpoint
|
|
10664
10705
|
// echoes the canonical lowercase UUID, but resolveTriggerInboxId passes
|
|
10665
10706
|
// a UUID-shaped `inbox` through unchanged, so its casing may differ.
|
|
@@ -10673,6 +10714,7 @@ async function* readInboxEvents({
|
|
|
10673
10714
|
var SSE_RECONNECT_BACKOFF_MS = [500, 1e3, 2e3, 5e3];
|
|
10674
10715
|
var DEFAULT_SAFETY_DRAIN_INTERVAL_MS = 3e5;
|
|
10675
10716
|
var SSE_HEALTHY_CONNECTION_MS = 5e3;
|
|
10717
|
+
var ERROR_BACKOFF_CAP = 4;
|
|
10676
10718
|
function createDrainLatch() {
|
|
10677
10719
|
let pending = false;
|
|
10678
10720
|
const make = () => {
|
|
@@ -10703,9 +10745,14 @@ function createDrainLatch() {
|
|
|
10703
10745
|
async function drainRunner({
|
|
10704
10746
|
drainOptions,
|
|
10705
10747
|
drainRequest,
|
|
10706
|
-
signal
|
|
10748
|
+
signal,
|
|
10749
|
+
inboxId,
|
|
10750
|
+
debug
|
|
10707
10751
|
}) {
|
|
10708
10752
|
let firstFetch = true;
|
|
10753
|
+
let consecutiveErrors = 0;
|
|
10754
|
+
let errorAttempts = 0;
|
|
10755
|
+
let drainDegraded = false;
|
|
10709
10756
|
while (!signal.aborted) {
|
|
10710
10757
|
await drainRequest.waitForRequest();
|
|
10711
10758
|
if (signal.aborted) return { kind: "aborted" };
|
|
@@ -10716,17 +10763,47 @@ async function drainRunner({
|
|
|
10716
10763
|
firstFetch
|
|
10717
10764
|
}));
|
|
10718
10765
|
} catch (error) {
|
|
10719
|
-
return { kind: "
|
|
10766
|
+
if (signal.aborted) return { kind: "aborted" };
|
|
10767
|
+
const isNonObjectThrow = typeof error !== "object" || error === null;
|
|
10768
|
+
if (isNonObjectThrow || isNonRetryableDrainError(error) || isPermanentHttpError(error)) {
|
|
10769
|
+
return { kind: "error", error };
|
|
10770
|
+
}
|
|
10771
|
+
consecutiveErrors = Math.min(consecutiveErrors + 1, ERROR_BACKOFF_CAP);
|
|
10772
|
+
errorAttempts += 1;
|
|
10773
|
+
const delay = calculateErrorBackoffMs(
|
|
10774
|
+
BASE_ERROR_BACKOFF_MS,
|
|
10775
|
+
consecutiveErrors
|
|
10776
|
+
);
|
|
10777
|
+
const statusCode = errorStatusCode(error);
|
|
10778
|
+
const httpPart = statusCode !== void 0 ? ` (HTTP ${statusCode})` : "";
|
|
10779
|
+
if (!drainDegraded && consecutiveErrors >= ERROR_BACKOFF_CAP) {
|
|
10780
|
+
console.warn(
|
|
10781
|
+
`[zapier-sdk] Draining inbox ${inboxId}${httpPart} is failing repeatedly: ${errorMessage(error)}. Continuing to retry with backoff.`
|
|
10782
|
+
);
|
|
10783
|
+
drainDegraded = true;
|
|
10784
|
+
}
|
|
10785
|
+
if (debug) {
|
|
10786
|
+
console.error(
|
|
10787
|
+
`[zapier-sdk] Retrying drain for inbox ${inboxId} (attempt ${errorAttempts}, retry in ${delay}ms)${httpPart}: ${errorMessage(error)}`
|
|
10788
|
+
);
|
|
10789
|
+
}
|
|
10790
|
+
await sleep(delay, signal);
|
|
10791
|
+
if (signal.aborted) return { kind: "aborted" };
|
|
10792
|
+
drainRequest.request();
|
|
10793
|
+
continue;
|
|
10720
10794
|
}
|
|
10721
10795
|
firstFetch = false;
|
|
10796
|
+
consecutiveErrors = 0;
|
|
10797
|
+
errorAttempts = 0;
|
|
10798
|
+
drainDegraded = false;
|
|
10722
10799
|
if (abortedFromCallback) return { kind: "abortedFromCallback" };
|
|
10723
10800
|
}
|
|
10724
10801
|
return { kind: "aborted" };
|
|
10725
10802
|
}
|
|
10726
|
-
function
|
|
10803
|
+
function errorStatusCode(err) {
|
|
10727
10804
|
return err instanceof ZapierError ? err.statusCode : void 0;
|
|
10728
10805
|
}
|
|
10729
|
-
function
|
|
10806
|
+
function errorMessage(err) {
|
|
10730
10807
|
return err instanceof Error ? err.message : String(err);
|
|
10731
10808
|
}
|
|
10732
10809
|
async function sseLoop({
|
|
@@ -10767,8 +10844,8 @@ async function sseLoop({
|
|
|
10767
10844
|
if (signal.aborted || isAbortError(err)) return;
|
|
10768
10845
|
if (isPermanentHttpError(err)) {
|
|
10769
10846
|
if (!degraded) {
|
|
10770
|
-
const statusCode =
|
|
10771
|
-
const errorMsg =
|
|
10847
|
+
const statusCode = errorStatusCode(err);
|
|
10848
|
+
const errorMsg = errorMessage(err);
|
|
10772
10849
|
const httpPart = statusCode !== void 0 ? ` (HTTP ${statusCode})` : "";
|
|
10773
10850
|
console.warn(
|
|
10774
10851
|
`[zapier-sdk] Real-time wake-ups for inbox ${inboxId}${httpPart} paused: ${errorMsg}. Falling back to the periodic safety drain.`
|
|
@@ -10787,8 +10864,8 @@ async function sseLoop({
|
|
|
10787
10864
|
const delay = SSE_RECONNECT_BACKOFF_MS[Math.min(attempt, SSE_RECONNECT_BACKOFF_MS.length - 1)];
|
|
10788
10865
|
attempt = Math.min(attempt + 1, SSE_RECONNECT_BACKOFF_MS.length - 1);
|
|
10789
10866
|
if (transientError !== void 0 && debug) {
|
|
10790
|
-
const statusCode =
|
|
10791
|
-
const errorMsg =
|
|
10867
|
+
const statusCode = errorStatusCode(transientError);
|
|
10868
|
+
const errorMsg = errorMessage(transientError);
|
|
10792
10869
|
const httpPart = statusCode !== void 0 ? ` (HTTP ${statusCode})` : "";
|
|
10793
10870
|
console.error(
|
|
10794
10871
|
`[zapier-sdk] Reconnecting real-time wake-ups for inbox ${inboxId} (attempt ${attempt}, retry in ${delay}ms)${httpPart}: ${errorMsg}`
|
|
@@ -10848,7 +10925,13 @@ var watchTriggerInboxPlugin = definePlugin(
|
|
|
10848
10925
|
signal
|
|
10849
10926
|
};
|
|
10850
10927
|
drainRequest.request();
|
|
10851
|
-
const runnerDone = drainRunner({
|
|
10928
|
+
const runnerDone = drainRunner({
|
|
10929
|
+
drainOptions,
|
|
10930
|
+
drainRequest,
|
|
10931
|
+
signal,
|
|
10932
|
+
inboxId,
|
|
10933
|
+
debug
|
|
10934
|
+
});
|
|
10852
10935
|
const sseDone = sseLoop({
|
|
10853
10936
|
api: sdk.context.api,
|
|
10854
10937
|
inboxId,
|
|
@@ -10881,7 +10964,7 @@ var watchTriggerInboxPlugin = definePlugin(
|
|
|
10881
10964
|
watchTriggerInbox: {
|
|
10882
10965
|
...triggersDefaults,
|
|
10883
10966
|
type: "create",
|
|
10884
|
-
description: "Continuously consume a trigger inbox: drain currently-available messages via onMessage, then subscribe to SSE notifications for new arrivals until aborted. A periodic safety drain runs every maxDrainIntervalSeconds (default: 300) to guarantee forward progress if SSE events are missed. Resolves cleanly on signal abort or ZapierAbortDrainSignal from a handler
|
|
10967
|
+
description: "Continuously consume a trigger inbox: drain currently-available messages via onMessage, then subscribe to SSE notifications for new arrivals until aborted. A periodic safety drain runs every maxDrainIntervalSeconds (default: 300) to guarantee forward progress if SSE events are missed. Resolves cleanly on signal abort or ZapierAbortDrainSignal from a handler. Transient drain failures (5xx, 429, network blips) retry indefinitely with bounded backoff until they succeed or the watch is aborted; it rejects on a fail-fast handler error, an initialization_failure, or a permanent HTTP error. Real-time wake-up health is reported on stderr: a warning when wake-ups pause and the watch falls back to the safety drain, plus (with debug) transient reconnect notices. Persistent drain failures likewise warn once on stderr while bounded-backoff retries continue.",
|
|
10885
10968
|
itemType: "void",
|
|
10886
10969
|
// See drainTriggerInbox: override the doc generator's default
|
|
10887
10970
|
// suffix so the rendered return type is Promise<void>, not
|
|
@@ -11175,7 +11258,10 @@ var getWorkflowPlugin = definePlugin(
|
|
|
11175
11258
|
);
|
|
11176
11259
|
var CreateWorkflowOptionsSchema = z.object({
|
|
11177
11260
|
name: z.string().min(1).describe("Workflow name"),
|
|
11178
|
-
description: z.string().optional().describe("Optional description for the workflow")
|
|
11261
|
+
description: z.string().optional().describe("Optional description for the workflow"),
|
|
11262
|
+
is_private: z.boolean().optional().describe(
|
|
11263
|
+
"If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."
|
|
11264
|
+
)
|
|
11179
11265
|
}).describe(
|
|
11180
11266
|
"Create a durable workflow container. Starts disabled with no version; publish a version to add code."
|
|
11181
11267
|
);
|
|
@@ -11189,6 +11275,10 @@ var CreateWorkflowResponseSchema = z.object({
|
|
|
11189
11275
|
enabled: z.boolean().describe(
|
|
11190
11276
|
"Whether the workflow currently accepts triggers. Always false on a new workflow until enabled."
|
|
11191
11277
|
),
|
|
11278
|
+
is_private: z.boolean().describe(
|
|
11279
|
+
"Whether the workflow is private to the creating user. False means account-visible."
|
|
11280
|
+
),
|
|
11281
|
+
created_by_user_id: z.string().nullable().describe("User ID of the workflow creator (null in legacy data)"),
|
|
11192
11282
|
created_at: z.string().describe("When the workflow was created (ISO-8601)")
|
|
11193
11283
|
});
|
|
11194
11284
|
|
|
@@ -11206,6 +11296,9 @@ var createWorkflowPlugin = definePlugin(
|
|
|
11206
11296
|
if (options.description !== void 0) {
|
|
11207
11297
|
body.description = options.description;
|
|
11208
11298
|
}
|
|
11299
|
+
if (options.is_private !== void 0) {
|
|
11300
|
+
body.is_private = options.is_private;
|
|
11301
|
+
}
|
|
11209
11302
|
const data = await sdk2.context.api.post(
|
|
11210
11303
|
"/durableworkflowzaps/api/v0/workflows",
|
|
11211
11304
|
body,
|
|
@@ -11656,6 +11749,34 @@ var cancelDurableRunPlugin = definePlugin(
|
|
|
11656
11749
|
}
|
|
11657
11750
|
})
|
|
11658
11751
|
);
|
|
11752
|
+
var CONNECTION_ID_PATTERN = /^([1-9][0-9]*|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/;
|
|
11753
|
+
var ConnectionBindingSchema = z.object({
|
|
11754
|
+
connection_id: z.union([
|
|
11755
|
+
z.number().int().positive(),
|
|
11756
|
+
z.string().regex(
|
|
11757
|
+
CONNECTION_ID_PATTERN,
|
|
11758
|
+
"connection_id must be a positive integer string or UUID"
|
|
11759
|
+
)
|
|
11760
|
+
]).describe(
|
|
11761
|
+
"Zapier connection ID. Positive integer (legacy) or UUID string (newer)."
|
|
11762
|
+
)
|
|
11763
|
+
}).describe(
|
|
11764
|
+
"Connection binding: maps a single alias to a concrete connection."
|
|
11765
|
+
);
|
|
11766
|
+
var AppVersionBindingSchema = z.object({
|
|
11767
|
+
implementation_name: z.string().describe("App implementation identifier (e.g. 'SlackCLIAPI')"),
|
|
11768
|
+
version: z.string().optional().describe("App implementation version (e.g. '1.27.1')")
|
|
11769
|
+
}).describe("App-version binding: maps a single alias to an app version.");
|
|
11770
|
+
var TriggerConfigSchema = z.object({
|
|
11771
|
+
selected_api: z.string().describe("Zapier app/API identifier (e.g. 'GoogleSheetsAPI')"),
|
|
11772
|
+
action: z.string().describe("Trigger action key (e.g. 'new_row')"),
|
|
11773
|
+
authentication_id: z.string().nullish().describe(
|
|
11774
|
+
"Connection ID for the trigger source. Omit or pass null for no-auth triggers (e.g. Schedule by Zapier)."
|
|
11775
|
+
),
|
|
11776
|
+
params: z.record(z.string(), z.unknown()).optional().describe("Trigger parameters as a JSON object")
|
|
11777
|
+
}).describe(
|
|
11778
|
+
"Zapier trigger configuration. When set, the workflow subscribes to trigger events."
|
|
11779
|
+
);
|
|
11659
11780
|
var PublishWorkflowVersionOptionsSchema = z.object({
|
|
11660
11781
|
workflow: z.string().uuid().describe("Durable workflow ID"),
|
|
11661
11782
|
source_files: z.record(z.string(), z.string()).refine((files) => Object.keys(files).length > 0, {
|
|
@@ -11667,6 +11788,15 @@ var PublishWorkflowVersionOptionsSchema = z.object({
|
|
|
11667
11788
|
),
|
|
11668
11789
|
enabled: z.boolean().optional().describe(
|
|
11669
11790
|
"Enable the workflow after publishing. Defaults to true; pass false to publish without enabling."
|
|
11791
|
+
),
|
|
11792
|
+
connections: z.record(z.string(), ConnectionBindingSchema).nullish().describe(
|
|
11793
|
+
"Map of connection aliases to Zapier connections used by the workflow. Pass `null` to clear an existing binding."
|
|
11794
|
+
),
|
|
11795
|
+
app_versions: z.record(z.string(), AppVersionBindingSchema).nullish().describe(
|
|
11796
|
+
"Map of app keys to pinned app implementation/version used by the workflow. Pass `null` to clear an existing binding."
|
|
11797
|
+
),
|
|
11798
|
+
trigger: TriggerConfigSchema.optional().describe(
|
|
11799
|
+
"Trigger configuration. When provided, the workflow subscribes to a Zapier trigger; omit for webhook-only workflows."
|
|
11670
11800
|
)
|
|
11671
11801
|
}).describe(
|
|
11672
11802
|
"Publish a new version of a durable workflow. Enables the workflow by default."
|
|
@@ -11706,6 +11836,15 @@ var publishWorkflowVersionPlugin = definePlugin(
|
|
|
11706
11836
|
if (options.enabled !== void 0) {
|
|
11707
11837
|
body.enabled = options.enabled;
|
|
11708
11838
|
}
|
|
11839
|
+
if (options.connections !== void 0) {
|
|
11840
|
+
body.connections = options.connections;
|
|
11841
|
+
}
|
|
11842
|
+
if (options.app_versions !== void 0) {
|
|
11843
|
+
body.app_versions = options.app_versions;
|
|
11844
|
+
}
|
|
11845
|
+
if (options.trigger !== void 0) {
|
|
11846
|
+
body.trigger = options.trigger;
|
|
11847
|
+
}
|
|
11709
11848
|
const raw = await sdk2.context.api.post(
|
|
11710
11849
|
`/durableworkflowzaps/api/v0/workflows/${encodeURIComponent(options.workflow)}/versions`,
|
|
11711
11850
|
body,
|
|
@@ -2071,6 +2071,23 @@ declare function createMemoryCache(): ZapierCache;
|
|
|
2071
2071
|
interface SseMessage {
|
|
2072
2072
|
data: string;
|
|
2073
2073
|
}
|
|
2074
|
+
/**
|
|
2075
|
+
* A streamed SSE frame after JSON parsing, as yielded by
|
|
2076
|
+
* `ApiClient.fetchJsonStream`. Unlike `fetchJson` — which throws on invalid
|
|
2077
|
+
* JSON — a long-lived stream must not die on one malformed frame, so a parse
|
|
2078
|
+
* failure is reported as `{ parsed: false, data: null, raw }` rather than
|
|
2079
|
+
* thrown. Callers skip `parsed: false` frames (and may inspect `raw`) and keep
|
|
2080
|
+
* consuming.
|
|
2081
|
+
*/
|
|
2082
|
+
type JsonSseMessage<T = unknown> = {
|
|
2083
|
+
parsed: true;
|
|
2084
|
+
data: T;
|
|
2085
|
+
raw: string;
|
|
2086
|
+
} | {
|
|
2087
|
+
parsed: false;
|
|
2088
|
+
data: null;
|
|
2089
|
+
raw: string;
|
|
2090
|
+
};
|
|
2074
2091
|
|
|
2075
2092
|
declare const NeedSchema: z.ZodObject<{
|
|
2076
2093
|
key: z.ZodString;
|
|
@@ -2438,6 +2455,14 @@ interface ApiClient {
|
|
|
2438
2455
|
* live (response ok, body present) and before the first frame.
|
|
2439
2456
|
*/
|
|
2440
2457
|
fetchStream: (path: string, init?: FetchStreamInit) => AsyncGenerator<SseMessage>;
|
|
2458
|
+
/**
|
|
2459
|
+
* Like `fetchStream`, but parses each frame's `data` as JSON, yielding
|
|
2460
|
+
* `{ parsed, data, raw }`. Unlike `fetchJson`, a malformed frame is never
|
|
2461
|
+
* thrown — it surfaces as `{ parsed: false, data: null, raw }` so one bad
|
|
2462
|
+
* frame can't kill a long-lived stream. A non-ok response still throws the
|
|
2463
|
+
* shared `ZapierError` subclasses before the first frame.
|
|
2464
|
+
*/
|
|
2465
|
+
fetchJsonStream: <T = unknown>(path: string, init?: FetchStreamInit) => AsyncGenerator<JsonSseMessage<T>>;
|
|
2441
2466
|
}
|
|
2442
2467
|
interface RequestOptions {
|
|
2443
2468
|
headers?: Record<string, string>;
|
|
@@ -2636,6 +2661,13 @@ declare const createZapierApi: (options: ApiClientOptions) => ApiClient;
|
|
|
2636
2661
|
* `api.fetch` already backed off and retried it upstream, so a
|
|
2637
2662
|
* `ZapierRateLimitError` (also a `ZapierError`) that escapes should be retried
|
|
2638
2663
|
* on the normal cadence rather than treated as permanent.
|
|
2664
|
+
*
|
|
2665
|
+
* A `ZapierAuthenticationError` with no `statusCode` is the one carve-out: the
|
|
2666
|
+
* token-exchange / credential-resolution layer throws these for setup problems
|
|
2667
|
+
* (token endpoint rejected the credentials, missing keychain secret, no
|
|
2668
|
+
* credentials at all) that never self-heal, so they are permanent even without
|
|
2669
|
+
* a status. Auth errors that DO carry a status fall through to the rule above,
|
|
2670
|
+
* so a 5xx/429 from the token endpoint still retries.
|
|
2639
2671
|
*/
|
|
2640
2672
|
declare function isPermanentHttpError(err: unknown): boolean;
|
|
2641
2673
|
|
|
@@ -15235,4 +15267,4 @@ declare const registryPlugin: (sdk: {
|
|
|
15235
15267
|
};
|
|
15236
15268
|
}) => {};
|
|
15237
15269
|
|
|
15238
|
-
export { createFunction as $, type ApiClient as A, type BaseSdkOptions as B, type CoreOptions as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetAuthenticationPluginProvides as G, type Choice as H, type ActionExecutionResult as I, type ActionField as J, type ActionFieldChoice as K, type LeasedTriggerMessageItem as L, type MethodHooks as M, type Need as N, type OutputFormatter as O, type PluginStack as P, type NeedsRequest as Q, type ResolvedAppLocator as R, type NeedsResponse as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, type Connection as V, type WatchTriggerInboxOptions as W, type ConnectionsResponse as X, type UserProfile as Y, type ZapierSdkOptions as Z, isPositional as _, type PluginMeta as a, InputFieldPropertySchema as a$, createPluginStack as a0, createCorePlugin as a1, addPlugin as a2, type FormattedItem as a3, type Resolver as a4, type ArrayResolver as a5, type ResolverMetadata as a6, type StaticResolver as a7, type DynamicListResolver as a8, type DynamicSearchResolver as a9, definePlugin as aA, createPluginMethod as aB, createPaginatedPluginMethod as aC, composePlugins as aD, type ActionItem as aE, type ActionTypeItem as aF, registryPlugin as aG, type RequestOptions as aH, type PollOptions as aI, createZapierApi as aJ, getOrCreateApiClient as aK, isPermanentHttpError as aL, type SseMessage as aM, type AppItem as aN, type ConnectionItem as aO, type ActionItem$1 as aP, type InputFieldItem as aQ, type InfoFieldItem as aR, type RootFieldItem as aS, type UserProfileItem as aT, type SdkPage as aU, type PaginatedSdkFunction as aV, AppKeyPropertySchema as aW, AppPropertySchema as aX, ActionTypePropertySchema as aY, ActionKeyPropertySchema as aZ, ActionPropertySchema as a_, type FieldsResolver as aa, runInMethodScope as ab, runWithTelemetryContext as ac, toSnakeCase as ad, toTitleCase as ae, batch as af, type BatchOptions as ag, buildCapabilityMessage as ah, logDeprecation as ai, resetDeprecationWarnings as aj, RelayRequestSchema as ak, RelayFetchSchema as al, createZapierSdkWithoutRegistry as am, createSdk as an, createOptionsPlugin as ao, createZapierCoreStack as ap, type FunctionRegistryEntry as aq, type FunctionDeprecation as ar, BaseSdkOptionsSchema as as, isCoreError as at, getCoreErrorCode as au, getCoreErrorCause as av, CORE_ERROR_SYMBOL as aw, CoreErrorCode as ax, type Plugin as ay, type PluginProvides as az, type Manifest as b, ZapierActionError as b$, ConnectionIdPropertySchema as b0, AuthenticationIdPropertySchema as b1, ConnectionPropertySchema as b2, InputsPropertySchema as b3, LimitPropertySchema as b4, OffsetPropertySchema as b5, OutputPropertySchema as b6, DebugPropertySchema as b7, ParamsPropertySchema as b8, ActionTimeoutMsPropertySchema as b9, type ParamsProperty as bA, type ActionTimeoutMsProperty as bB, type TableProperty as bC, type RecordProperty as bD, type RecordsProperty as bE, type FieldsProperty as bF, type AppsProperty as bG, type TablesProperty as bH, type ConnectionsProperty as bI, type TriggerInboxProperty as bJ, type TriggerInboxNameProperty as bK, type LeaseProperty as bL, type LeaseSecondsProperty as bM, type LeaseLimitProperty as bN, type ErrorOptions as bO, ZapierError as bP, ZapierValidationError as bQ, ZapierUnknownError as bR, ZapierAuthenticationError as bS, zapierAdaptError as bT, ZapierApiError as bU, ZapierAppNotFoundError as bV, ZapierNotFoundError as bW, ZapierResourceNotFoundError as bX, ZapierConfigurationError as bY, ZapierBundleError as bZ, ZapierTimeoutError as b_, TablePropertySchema as ba, RecordPropertySchema as bb, RecordsPropertySchema as bc, FieldsPropertySchema as bd, AppsPropertySchema as be, TablesPropertySchema as bf, ConnectionsPropertySchema as bg, TriggerInboxPropertySchema as bh, TriggerInboxNamePropertySchema as bi, LeasePropertySchema as bj, LeaseSecondsPropertySchema as bk, LeaseLimitPropertySchema as bl, type AppKeyProperty as bm, type AppProperty as bn, type ActionTypeProperty as bo, type ActionKeyProperty as bp, type ActionProperty as bq, type InputFieldProperty as br, type ConnectionIdProperty as bs, type ConnectionProperty as bt, type AuthenticationIdProperty as bu, type InputsProperty as bv, type LimitProperty as bw, type OffsetProperty as bx, type OutputProperty as by, type DebugProperty as bz, type UpdateManifestEntryResult as c, connectionIdResolver as c$, ZapierConflictError as c0, type RateLimitInfo as c1, ZapierRateLimitError as c2, type ApprovalStatus as c3, ZapierApprovalError as c4, ZapierRelayError as c5, formatErrorMessage as c6, type ApiError as c7, ZapierSignal as c8, appsPlugin as c9, type GetActionPluginProvides as cA, getConnectionPlugin as cB, type GetConnectionPluginProvides as cC, findFirstConnectionPlugin as cD, type FindFirstConnectionPluginProvides as cE, findUniqueConnectionPlugin as cF, type FindUniqueConnectionPluginProvides as cG, CONTEXT_CACHE_TTL_MS as cH, CONTEXT_CACHE_MAX_SIZE as cI, runActionPlugin as cJ, type RunActionPluginProvides as cK, requestPlugin as cL, type RequestPluginProvides as cM, type ManifestPluginOptions as cN, getPreferredManifestEntryKey as cO, manifestPlugin as cP, type ManifestPluginProvides as cQ, DEFAULT_CONFIG_PATH as cR, type ManifestEntry as cS, getProfilePlugin as cT, type GetProfilePluginProvides as cU, type ApiPluginOptions as cV, apiPlugin as cW, type ApiPluginProvides as cX, appKeyResolver as cY, actionTypeResolver as cZ, actionKeyResolver as c_, type AppsPluginProvides as ca, type ActionExecutionOptions as cb, type AppFactoryInput as cc, fetchPlugin as cd, type FetchPluginProvides as ce, listAppsPlugin as cf, type ListAppsPluginProvides as cg, listActionsPlugin as ch, type ListActionsPluginProvides as ci, listActionInputFieldsPlugin as cj, type ListActionInputFieldsPluginProvides as ck, listActionInputFieldChoicesPlugin as cl, type ListActionInputFieldChoicesPluginProvides as cm, getActionInputFieldsSchemaPlugin as cn, type GetActionInputFieldsSchemaPluginProvides as co, listConnectionsPlugin as cp, type ListConnectionsPluginProvides as cq, listClientCredentialsPlugin as cr, type ListClientCredentialsPluginProvides as cs, createClientCredentialsPlugin as ct, type CreateClientCredentialsPluginProvides as cu, deleteClientCredentialsPlugin as cv, type DeleteClientCredentialsPluginProvides as cw, getAppPlugin as cx, type GetAppPluginProvides as cy, getActionPlugin as cz, type AddActionEntryOptions as d, ConnectionsMapSchema as d$, connectionIdGenericResolver as d0, inputsResolver as d1, inputsAllOptionalResolver as d2, inputFieldKeyResolver as d3, clientCredentialsNameResolver as d4, clientIdResolver as d5, tableIdResolver as d6, triggerInboxResolver as d7, workflowIdResolver as d8, durableRunIdResolver as d9, type AuthEvent as dA, type ApiEvent as dB, type LoadingEvent as dC, type EventCallback as dD, type Credentials as dE, type ResolvedCredentials as dF, type CredentialsObject as dG, type ClientCredentialsObject as dH, type PkceCredentialsObject as dI, isClientCredentials as dJ, isPkceCredentials as dK, isCredentialsObject as dL, isCredentialsFunction as dM, type ResolveCredentialsOptions as dN, resolveCredentialsFromEnv as dO, resolveCredentials as dP, getBaseUrlFromCredentials as dQ, getClientIdFromCredentials as dR, ClientCredentialsObjectSchema as dS, PkceCredentialsObjectSchema as dT, CredentialsObjectSchema as dU, ResolvedCredentialsSchema as dV, CredentialsFunctionSchema as dW, type CredentialsFunction as dX, CredentialsSchema as dY, ConnectionEntrySchema as dZ, type ConnectionEntry as d_, workflowVersionIdResolver as da, workflowRunIdResolver as db, triggerMessagesResolver as dc, tableRecordIdResolver as dd, tableRecordIdsResolver as de, tableFieldIdsResolver as df, tableNameResolver as dg, tableFieldsResolver as dh, tableRecordsResolver as di, tableUpdateRecordsResolver as dj, tableFiltersResolver as dk, tableSortResolver as dl, type ResolveAuthTokenOptions as dm, clearTokenCache as dn, invalidateCachedToken as dp, injectCliLogin as dq, isCliLoginAvailable as dr, getTokenFromCliLogin as ds, resolveAuthToken as dt, invalidateCredentialsToken as du, type ZapierCache as dv, type ZapierCacheEntry as dw, type ZapierCacheSetOptions as dx, createMemoryCache as dy, type SdkEvent as dz, type AddActionEntryResult as e, getMemoryUsage as e$, type ConnectionsMap as e0, connectionsPlugin as e1, type ConnectionsPluginProvides as e2, ZAPIER_BASE_URL as e3, getZapierSdkService as e4, MAX_PAGE_LIMIT as e5, DEFAULT_PAGE_SIZE as e6, DEFAULT_ACTION_TIMEOUT_MS as e7, ZAPIER_MAX_NETWORK_RETRIES as e8, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as e9, type CreateTableRecordsPluginProvides as eA, deleteTableRecordsPlugin as eB, type DeleteTableRecordsPluginProvides as eC, updateTableRecordsPlugin as eD, type UpdateTableRecordsPluginProvides as eE, cleanupEventListeners as eF, type EventEmissionConfig as eG, eventEmissionPlugin as eH, type EventEmissionProvides as eI, type EventContext as eJ, type ApplicationLifecycleEventData as eK, type EnhancedErrorEventData as eL, type MethodCalledEventData as eM, buildApplicationLifecycleEvent as eN, buildErrorEventWithContext as eO, buildErrorEvent as eP, createBaseEvent as eQ, buildMethodCalledEvent as eR, type BaseEvent as eS, type MethodCalledEvent as eT, generateEventId as eU, getCurrentTimestamp as eV, getReleaseId as eW, getOsInfo as eX, getPlatformVersions as eY, isCi as eZ, getCiPlatform as e_, MAX_CONCURRENCY_LIMIT as ea, parseConcurrencyEnvVar as eb, ZAPIER_MAX_CONCURRENT_REQUESTS as ec, getZapierApprovalMode as ed, getZapierDefaultApprovalMode as ee, DEFAULT_APPROVAL_TIMEOUT_MS as ef, DEFAULT_MAX_APPROVAL_RETRIES as eg, listTablesPlugin as eh, type ListTablesPluginProvides as ei, getTablePlugin as ej, type GetTablePluginProvides as ek, createTablePlugin as el, type CreateTablePluginProvides as em, deleteTablePlugin as en, type DeleteTablePluginProvides as eo, listTableFieldsPlugin as ep, type ListTableFieldsPluginProvides as eq, createTableFieldsPlugin as er, type CreateTableFieldsPluginProvides as es, deleteTableFieldsPlugin as et, type DeleteTableFieldsPluginProvides as eu, getTableRecordPlugin as ev, type GetTableRecordPluginProvides as ew, listTableRecordsPlugin as ex, type ListTableRecordsPluginProvides as ey, createTableRecordsPlugin as ez, type ActionEntry as f, getCpuTime as f0, createZapierSdk as f1, createZapierSdkStack as f2, type ZapierSdk as f3, findManifestEntry as g, type CapabilitiesContext as h, type PaginatedSdkResult as i, type PositionalMetadata as j, type ZapierFetchInitOptions as k, type DynamicResolver as l, type ActionProxy as m, type ZapierSdkApps as n, type WithAddPlugin as o, ZapierAbortDrainSignal as p, ZapierReleaseTriggerMessageSignal as q, readManifestFromFile as r, type DrainTriggerInboxCallback as s, type DrainTriggerInboxErrorObserver as t, type ListAuthenticationsPluginProvides as u, type FindFirstAuthenticationPluginProvides as v, type FindUniqueAuthenticationPluginProvides as w, type Action as x, type App as y, type Field as z };
|
|
15270
|
+
export { createFunction as $, type ApiClient as A, type BaseSdkOptions as B, type CoreOptions as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetAuthenticationPluginProvides as G, type Choice as H, type ActionExecutionResult as I, type ActionField as J, type ActionFieldChoice as K, type LeasedTriggerMessageItem as L, type MethodHooks as M, type Need as N, type OutputFormatter as O, type PluginStack as P, type NeedsRequest as Q, type ResolvedAppLocator as R, type NeedsResponse as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, type Connection as V, type WatchTriggerInboxOptions as W, type ConnectionsResponse as X, type UserProfile as Y, type ZapierSdkOptions as Z, isPositional as _, type PluginMeta as a, ActionPropertySchema as a$, createPluginStack as a0, createCorePlugin as a1, addPlugin as a2, type FormattedItem as a3, type Resolver as a4, type ArrayResolver as a5, type ResolverMetadata as a6, type StaticResolver as a7, type DynamicListResolver as a8, type DynamicSearchResolver as a9, definePlugin as aA, createPluginMethod as aB, createPaginatedPluginMethod as aC, composePlugins as aD, type ActionItem as aE, type ActionTypeItem as aF, registryPlugin as aG, type RequestOptions as aH, type PollOptions as aI, createZapierApi as aJ, getOrCreateApiClient as aK, isPermanentHttpError as aL, type SseMessage as aM, type JsonSseMessage as aN, type AppItem as aO, type ConnectionItem as aP, type ActionItem$1 as aQ, type InputFieldItem as aR, type InfoFieldItem as aS, type RootFieldItem as aT, type UserProfileItem as aU, type SdkPage as aV, type PaginatedSdkFunction as aW, AppKeyPropertySchema as aX, AppPropertySchema as aY, ActionTypePropertySchema as aZ, ActionKeyPropertySchema as a_, type FieldsResolver as aa, runInMethodScope as ab, runWithTelemetryContext as ac, toSnakeCase as ad, toTitleCase as ae, batch as af, type BatchOptions as ag, buildCapabilityMessage as ah, logDeprecation as ai, resetDeprecationWarnings as aj, RelayRequestSchema as ak, RelayFetchSchema as al, createZapierSdkWithoutRegistry as am, createSdk as an, createOptionsPlugin as ao, createZapierCoreStack as ap, type FunctionRegistryEntry as aq, type FunctionDeprecation as ar, BaseSdkOptionsSchema as as, isCoreError as at, getCoreErrorCode as au, getCoreErrorCause as av, CORE_ERROR_SYMBOL as aw, CoreErrorCode as ax, type Plugin as ay, type PluginProvides as az, type Manifest as b, ZapierTimeoutError as b$, InputFieldPropertySchema as b0, ConnectionIdPropertySchema as b1, AuthenticationIdPropertySchema as b2, ConnectionPropertySchema as b3, InputsPropertySchema as b4, LimitPropertySchema as b5, OffsetPropertySchema as b6, OutputPropertySchema as b7, DebugPropertySchema as b8, ParamsPropertySchema as b9, type DebugProperty as bA, type ParamsProperty as bB, type ActionTimeoutMsProperty as bC, type TableProperty as bD, type RecordProperty as bE, type RecordsProperty as bF, type FieldsProperty as bG, type AppsProperty as bH, type TablesProperty as bI, type ConnectionsProperty as bJ, type TriggerInboxProperty as bK, type TriggerInboxNameProperty as bL, type LeaseProperty as bM, type LeaseSecondsProperty as bN, type LeaseLimitProperty as bO, type ErrorOptions as bP, ZapierError as bQ, ZapierValidationError as bR, ZapierUnknownError as bS, ZapierAuthenticationError as bT, zapierAdaptError as bU, ZapierApiError as bV, ZapierAppNotFoundError as bW, ZapierNotFoundError as bX, ZapierResourceNotFoundError as bY, ZapierConfigurationError as bZ, ZapierBundleError as b_, ActionTimeoutMsPropertySchema as ba, TablePropertySchema as bb, RecordPropertySchema as bc, RecordsPropertySchema as bd, FieldsPropertySchema as be, AppsPropertySchema as bf, TablesPropertySchema as bg, ConnectionsPropertySchema as bh, TriggerInboxPropertySchema as bi, TriggerInboxNamePropertySchema as bj, LeasePropertySchema as bk, LeaseSecondsPropertySchema as bl, LeaseLimitPropertySchema as bm, type AppKeyProperty as bn, type AppProperty as bo, type ActionTypeProperty as bp, type ActionKeyProperty as bq, type ActionProperty as br, type InputFieldProperty as bs, type ConnectionIdProperty as bt, type ConnectionProperty as bu, type AuthenticationIdProperty as bv, type InputsProperty as bw, type LimitProperty as bx, type OffsetProperty as by, type OutputProperty as bz, type UpdateManifestEntryResult as c, actionKeyResolver as c$, ZapierActionError as c0, ZapierConflictError as c1, type RateLimitInfo as c2, ZapierRateLimitError as c3, type ApprovalStatus as c4, ZapierApprovalError as c5, ZapierRelayError as c6, formatErrorMessage as c7, type ApiError as c8, ZapierSignal as c9, getActionPlugin as cA, type GetActionPluginProvides as cB, getConnectionPlugin as cC, type GetConnectionPluginProvides as cD, findFirstConnectionPlugin as cE, type FindFirstConnectionPluginProvides as cF, findUniqueConnectionPlugin as cG, type FindUniqueConnectionPluginProvides as cH, CONTEXT_CACHE_TTL_MS as cI, CONTEXT_CACHE_MAX_SIZE as cJ, runActionPlugin as cK, type RunActionPluginProvides as cL, requestPlugin as cM, type RequestPluginProvides as cN, type ManifestPluginOptions as cO, getPreferredManifestEntryKey as cP, manifestPlugin as cQ, type ManifestPluginProvides as cR, DEFAULT_CONFIG_PATH as cS, type ManifestEntry as cT, getProfilePlugin as cU, type GetProfilePluginProvides as cV, type ApiPluginOptions as cW, apiPlugin as cX, type ApiPluginProvides as cY, appKeyResolver as cZ, actionTypeResolver as c_, appsPlugin as ca, type AppsPluginProvides as cb, type ActionExecutionOptions as cc, type AppFactoryInput as cd, fetchPlugin as ce, type FetchPluginProvides as cf, listAppsPlugin as cg, type ListAppsPluginProvides as ch, listActionsPlugin as ci, type ListActionsPluginProvides as cj, listActionInputFieldsPlugin as ck, type ListActionInputFieldsPluginProvides as cl, listActionInputFieldChoicesPlugin as cm, type ListActionInputFieldChoicesPluginProvides as cn, getActionInputFieldsSchemaPlugin as co, type GetActionInputFieldsSchemaPluginProvides as cp, listConnectionsPlugin as cq, type ListConnectionsPluginProvides as cr, listClientCredentialsPlugin as cs, type ListClientCredentialsPluginProvides as ct, createClientCredentialsPlugin as cu, type CreateClientCredentialsPluginProvides as cv, deleteClientCredentialsPlugin as cw, type DeleteClientCredentialsPluginProvides as cx, getAppPlugin as cy, type GetAppPluginProvides as cz, type AddActionEntryOptions as d, type ConnectionEntry as d$, connectionIdResolver as d0, connectionIdGenericResolver as d1, inputsResolver as d2, inputsAllOptionalResolver as d3, inputFieldKeyResolver as d4, clientCredentialsNameResolver as d5, clientIdResolver as d6, tableIdResolver as d7, triggerInboxResolver as d8, workflowIdResolver as d9, type SdkEvent as dA, type AuthEvent as dB, type ApiEvent as dC, type LoadingEvent as dD, type EventCallback as dE, type Credentials as dF, type ResolvedCredentials as dG, type CredentialsObject as dH, type ClientCredentialsObject as dI, type PkceCredentialsObject as dJ, isClientCredentials as dK, isPkceCredentials as dL, isCredentialsObject as dM, isCredentialsFunction as dN, type ResolveCredentialsOptions as dO, resolveCredentialsFromEnv as dP, resolveCredentials as dQ, getBaseUrlFromCredentials as dR, getClientIdFromCredentials as dS, ClientCredentialsObjectSchema as dT, PkceCredentialsObjectSchema as dU, CredentialsObjectSchema as dV, ResolvedCredentialsSchema as dW, CredentialsFunctionSchema as dX, type CredentialsFunction as dY, CredentialsSchema as dZ, ConnectionEntrySchema as d_, durableRunIdResolver as da, workflowVersionIdResolver as db, workflowRunIdResolver as dc, triggerMessagesResolver as dd, tableRecordIdResolver as de, tableRecordIdsResolver as df, tableFieldIdsResolver as dg, tableNameResolver as dh, tableFieldsResolver as di, tableRecordsResolver as dj, tableUpdateRecordsResolver as dk, tableFiltersResolver as dl, tableSortResolver as dm, type ResolveAuthTokenOptions as dn, clearTokenCache as dp, invalidateCachedToken as dq, injectCliLogin as dr, isCliLoginAvailable as ds, getTokenFromCliLogin as dt, resolveAuthToken as du, invalidateCredentialsToken as dv, type ZapierCache as dw, type ZapierCacheEntry as dx, type ZapierCacheSetOptions as dy, createMemoryCache as dz, type AddActionEntryResult as e, getCiPlatform as e$, ConnectionsMapSchema as e0, type ConnectionsMap as e1, connectionsPlugin as e2, type ConnectionsPluginProvides as e3, ZAPIER_BASE_URL as e4, getZapierSdkService as e5, MAX_PAGE_LIMIT as e6, DEFAULT_PAGE_SIZE as e7, DEFAULT_ACTION_TIMEOUT_MS as e8, ZAPIER_MAX_NETWORK_RETRIES as e9, createTableRecordsPlugin as eA, type CreateTableRecordsPluginProvides as eB, deleteTableRecordsPlugin as eC, type DeleteTableRecordsPluginProvides as eD, updateTableRecordsPlugin as eE, type UpdateTableRecordsPluginProvides as eF, cleanupEventListeners as eG, type EventEmissionConfig as eH, eventEmissionPlugin as eI, type EventEmissionProvides as eJ, type EventContext as eK, type ApplicationLifecycleEventData as eL, type EnhancedErrorEventData as eM, type MethodCalledEventData as eN, buildApplicationLifecycleEvent as eO, buildErrorEventWithContext as eP, buildErrorEvent as eQ, createBaseEvent as eR, buildMethodCalledEvent as eS, type BaseEvent as eT, type MethodCalledEvent as eU, generateEventId as eV, getCurrentTimestamp as eW, getReleaseId as eX, getOsInfo as eY, getPlatformVersions as eZ, isCi as e_, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as ea, MAX_CONCURRENCY_LIMIT as eb, parseConcurrencyEnvVar as ec, ZAPIER_MAX_CONCURRENT_REQUESTS as ed, getZapierApprovalMode as ee, getZapierDefaultApprovalMode as ef, DEFAULT_APPROVAL_TIMEOUT_MS as eg, DEFAULT_MAX_APPROVAL_RETRIES as eh, listTablesPlugin as ei, type ListTablesPluginProvides as ej, getTablePlugin as ek, type GetTablePluginProvides as el, createTablePlugin as em, type CreateTablePluginProvides as en, deleteTablePlugin as eo, type DeleteTablePluginProvides as ep, listTableFieldsPlugin as eq, type ListTableFieldsPluginProvides as er, createTableFieldsPlugin as es, type CreateTableFieldsPluginProvides as et, deleteTableFieldsPlugin as eu, type DeleteTableFieldsPluginProvides as ev, getTableRecordPlugin as ew, type GetTableRecordPluginProvides as ex, listTableRecordsPlugin as ey, type ListTableRecordsPluginProvides as ez, type ActionEntry as f, getMemoryUsage as f0, getCpuTime as f1, createZapierSdk as f2, createZapierSdkStack as f3, type ZapierSdk as f4, findManifestEntry as g, type CapabilitiesContext as h, type PaginatedSdkResult as i, type PositionalMetadata as j, type ZapierFetchInitOptions as k, type DynamicResolver as l, type ActionProxy as m, type ZapierSdkApps as n, type WithAddPlugin as o, ZapierAbortDrainSignal as p, ZapierReleaseTriggerMessageSignal as q, readManifestFromFile as r, type DrainTriggerInboxCallback as s, type DrainTriggerInboxErrorObserver as t, type ListAuthenticationsPluginProvides as u, type FindFirstAuthenticationPluginProvides as v, type FindUniqueAuthenticationPluginProvides as w, type Action as x, type App as y, type Field as z };
|