@zapier/zapier-sdk 0.89.0 → 0.90.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 +11 -0
- package/README.md +145 -0
- package/dist/{chunk-NOPKQ333.mjs → chunk-J7Z7UHXP.mjs} +2 -2
- package/dist/{chunk-UBI5FOL5.cjs → chunk-LQEV6ICY.cjs} +2 -1
- package/dist/experimental.cjs +587 -414
- package/dist/experimental.d.mts +256 -1
- package/dist/experimental.d.ts +256 -1
- package/dist/experimental.mjs +238 -65
- package/dist/index.cjs +272 -272
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @zapier/zapier-sdk
|
|
2
2
|
|
|
3
|
+
## 0.90.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- f6eac6f: Added `createWorkflowDraft`, `updateWorkflowDraft`, and `discardWorkflowDraft` (experimental), completing the draft lifecycle alongside the existing read methods.
|
|
8
|
+
- `createWorkflowDraft` forks a new draft from the workflow's live version, with an optional `slug`.
|
|
9
|
+
- `updateWorkflowDraft` saves draft edits — source files, dependencies, trigger, connections, and app-version pins. Pass `draftRevision` to reject the save with a `ZapierConflictError` if the draft changed since it was last read; pass `null` for `trigger`, `connections`, or `appVersions` to clear the stored value, or omit them to leave it unchanged.
|
|
10
|
+
- `discardWorkflowDraft` soft-deletes a draft and returns it with status `discarded`.
|
|
11
|
+
|
|
12
|
+
All ID inputs are UUID-validated at the boundary.
|
|
13
|
+
|
|
3
14
|
## 0.89.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -29,8 +29,10 @@
|
|
|
29
29
|
- [Code Workflows (Experimental)](#code-workflows-experimental)
|
|
30
30
|
- [`cancelDurableRun`](#canceldurablerun--experimental)
|
|
31
31
|
- [`createWorkflow`](#createworkflow--experimental)
|
|
32
|
+
- [`createWorkflowDraft`](#createworkflowdraft--experimental)
|
|
32
33
|
- [`deleteWorkflow`](#deleteworkflow--experimental)
|
|
33
34
|
- [`disableWorkflow`](#disableworkflow--experimental)
|
|
35
|
+
- [`discardWorkflowDraft`](#discardworkflowdraft--experimental)
|
|
34
36
|
- [`enableWorkflow`](#enableworkflow--experimental)
|
|
35
37
|
- [`getDurableRun`](#getdurablerun--experimental)
|
|
36
38
|
- [`getTriggerRun`](#gettriggerrun--experimental)
|
|
@@ -47,6 +49,7 @@
|
|
|
47
49
|
- [`runDurable`](#rundurable--experimental)
|
|
48
50
|
- [`triggerWorkflow`](#triggerworkflow--experimental)
|
|
49
51
|
- [`updateWorkflow`](#updateworkflow--experimental)
|
|
52
|
+
- [`updateWorkflowDraft`](#updateworkflowdraft--experimental)
|
|
50
53
|
- [Connections](#connections)
|
|
51
54
|
- [`createConnection`](#createconnection)
|
|
52
55
|
- [`findFirstConnection`](#findfirstconnection)
|
|
@@ -1179,6 +1182,50 @@ const { data: workflow } = await zapier.createWorkflow({
|
|
|
1179
1182
|
});
|
|
1180
1183
|
```
|
|
1181
1184
|
|
|
1185
|
+
#### `createWorkflowDraft` 🧪 _experimental_
|
|
1186
|
+
|
|
1187
|
+
Fork a new draft from the workflow's current live version (or a blank stub before the first publish)
|
|
1188
|
+
|
|
1189
|
+
**Parameters:**
|
|
1190
|
+
|
|
1191
|
+
| Name | Type | Required | Default | Possible Values | Description |
|
|
1192
|
+
| -------------- | -------- | -------- | ------- | --------------- | ---------------------------------------------------------------------- |
|
|
1193
|
+
| `options` | `object` | ✅ | — | — | |
|
|
1194
|
+
| ↳ `workflow` | `string` | ✅ | — | — | Durable workflow ID |
|
|
1195
|
+
| ↳ `slug` | `string` | ❌ | — | — | Optional slug for URL routing. When omitted, the server generates one. |
|
|
1196
|
+
|
|
1197
|
+
**Returns:** `Promise<WorkflowDraftItem>`
|
|
1198
|
+
|
|
1199
|
+
| Name | Type | Required | Possible Values | Description |
|
|
1200
|
+
| ---------------------------- | -------- | -------- | ------------------- | ---------------------------------------------------------------------------------------------------------------- |
|
|
1201
|
+
| `data` | `object` | ✅ | — | |
|
|
1202
|
+
| ↳ `id` | `string` | ✅ | — | Workflow draft ID (UUID) |
|
|
1203
|
+
| ↳ `workflow_id` | `string` | ✅ | — | Parent workflow ID (UUID) |
|
|
1204
|
+
| ↳ `slug` | `string` | ✅ | — | Human-friendly identifier for URL routing; unique among open drafts per workflow |
|
|
1205
|
+
| ↳ `base_version_id` | `string` | ✅ | — | Live version at draft creation or last publish rebase, or null before the workflow's first publish |
|
|
1206
|
+
| ↳ `source_files` | `object` | ✅ | — | Source files keyed by filename → contents |
|
|
1207
|
+
| ↳ `zapier_durable_version` | `string` | ✅ | — | Pinned semver of @zapier/zapier-durable used by this draft |
|
|
1208
|
+
| ↳ `dependencies` | `object` | ✅ | — | Additional npm dependencies pinned for this draft (or null) |
|
|
1209
|
+
| ↳ `draft_revision` | `number` | ✅ | — | Monotonic revision counter for optimistic concurrency. Echo it back on draft updates to detect concurrent edits. |
|
|
1210
|
+
| ↳ `status` | `string` | ✅ | `open`, `discarded` | Lifecycle status of a workflow draft. |
|
|
1211
|
+
| ↳ `created_by_user_id` | `string` | ✅ | — | ID of the user who created (forked) this draft |
|
|
1212
|
+
| ↳ `last_edited_by_user_id` | `string` | ✅ | — | ID of the user who last saved this draft (or null) |
|
|
1213
|
+
| ↳ `last_edited_at` | `string` | ✅ | — | When the draft was last edited (ISO-8601, or null) |
|
|
1214
|
+
| ↳ `discarded_at` | `string` | ✅ | — | When the draft was discarded (ISO-8601), or null while open |
|
|
1215
|
+
| ↳ `created_at` | `string` | ✅ | — | When the draft was created (ISO-8601) |
|
|
1216
|
+
| ↳ `updated_at` | `string` | ✅ | — | When the draft row was last updated (ISO-8601) |
|
|
1217
|
+
| ↳ `trigger` | `object` | ✅ | — | Trigger configuration held on this draft, or null for webhook-only workflows. |
|
|
1218
|
+
| ↳ `connections` | `object` | ✅ | — | Connection aliases bound on this draft (or null). |
|
|
1219
|
+
| ↳ `app_versions` | `object` | ✅ | — | App-version pins bound on this draft (or null). |
|
|
1220
|
+
|
|
1221
|
+
**Example:**
|
|
1222
|
+
|
|
1223
|
+
```typescript
|
|
1224
|
+
const { data: workflowDraft } = await zapier.createWorkflowDraft({
|
|
1225
|
+
workflow: "example-workflow",
|
|
1226
|
+
});
|
|
1227
|
+
```
|
|
1228
|
+
|
|
1182
1229
|
#### `deleteWorkflow` 🧪 _experimental_
|
|
1183
1230
|
|
|
1184
1231
|
Delete a durable workflow. Throws `ZapierNotFoundError` if the workflow doesn't exist; callers wanting idempotency should catch that themselves.
|
|
@@ -1232,6 +1279,51 @@ const { data: workflow } = await zapier.disableWorkflow({
|
|
|
1232
1279
|
});
|
|
1233
1280
|
```
|
|
1234
1281
|
|
|
1282
|
+
#### `discardWorkflowDraft` 🧪 _experimental_
|
|
1283
|
+
|
|
1284
|
+
Discard an open workflow draft (soft delete). The draft's unpublished edits stop resolving; the published version is untouched.
|
|
1285
|
+
|
|
1286
|
+
**Parameters:**
|
|
1287
|
+
|
|
1288
|
+
| Name | Type | Required | Default | Possible Values | Description |
|
|
1289
|
+
| -------------- | -------- | -------- | ------- | --------------- | ------------------- |
|
|
1290
|
+
| `options` | `object` | ✅ | — | — | |
|
|
1291
|
+
| ↳ `workflow` | `string` | ✅ | — | — | Durable workflow ID |
|
|
1292
|
+
| ↳ `draft` | `string` | ✅ | — | — | Workflow draft ID |
|
|
1293
|
+
|
|
1294
|
+
**Returns:** `Promise<WorkflowDraftItem>`
|
|
1295
|
+
|
|
1296
|
+
| Name | Type | Required | Possible Values | Description |
|
|
1297
|
+
| ---------------------------- | -------- | -------- | ------------------- | ---------------------------------------------------------------------------------------------------------------- |
|
|
1298
|
+
| `data` | `object` | ✅ | — | |
|
|
1299
|
+
| ↳ `id` | `string` | ✅ | — | Workflow draft ID (UUID) |
|
|
1300
|
+
| ↳ `workflow_id` | `string` | ✅ | — | Parent workflow ID (UUID) |
|
|
1301
|
+
| ↳ `slug` | `string` | ✅ | — | Human-friendly identifier for URL routing; unique among open drafts per workflow |
|
|
1302
|
+
| ↳ `base_version_id` | `string` | ✅ | — | Live version at draft creation or last publish rebase, or null before the workflow's first publish |
|
|
1303
|
+
| ↳ `source_files` | `object` | ✅ | — | Source files keyed by filename → contents |
|
|
1304
|
+
| ↳ `zapier_durable_version` | `string` | ✅ | — | Pinned semver of @zapier/zapier-durable used by this draft |
|
|
1305
|
+
| ↳ `dependencies` | `object` | ✅ | — | Additional npm dependencies pinned for this draft (or null) |
|
|
1306
|
+
| ↳ `draft_revision` | `number` | ✅ | — | Monotonic revision counter for optimistic concurrency. Echo it back on draft updates to detect concurrent edits. |
|
|
1307
|
+
| ↳ `status` | `string` | ✅ | `open`, `discarded` | Lifecycle status of a workflow draft. |
|
|
1308
|
+
| ↳ `created_by_user_id` | `string` | ✅ | — | ID of the user who created (forked) this draft |
|
|
1309
|
+
| ↳ `last_edited_by_user_id` | `string` | ✅ | — | ID of the user who last saved this draft (or null) |
|
|
1310
|
+
| ↳ `last_edited_at` | `string` | ✅ | — | When the draft was last edited (ISO-8601, or null) |
|
|
1311
|
+
| ↳ `discarded_at` | `string` | ✅ | — | When the draft was discarded (ISO-8601), or null while open |
|
|
1312
|
+
| ↳ `created_at` | `string` | ✅ | — | When the draft was created (ISO-8601) |
|
|
1313
|
+
| ↳ `updated_at` | `string` | ✅ | — | When the draft row was last updated (ISO-8601) |
|
|
1314
|
+
| ↳ `trigger` | `object` | ✅ | — | Trigger configuration held on this draft, or null for webhook-only workflows. |
|
|
1315
|
+
| ↳ `connections` | `object` | ✅ | — | Connection aliases bound on this draft (or null). |
|
|
1316
|
+
| ↳ `app_versions` | `object` | ✅ | — | App-version pins bound on this draft (or null). |
|
|
1317
|
+
|
|
1318
|
+
**Example:**
|
|
1319
|
+
|
|
1320
|
+
```typescript
|
|
1321
|
+
const result = await zapier.discardWorkflowDraft({
|
|
1322
|
+
workflow: "example-workflow",
|
|
1323
|
+
draft: "example-draft",
|
|
1324
|
+
});
|
|
1325
|
+
```
|
|
1326
|
+
|
|
1235
1327
|
#### `enableWorkflow` 🧪 _experimental_
|
|
1236
1328
|
|
|
1237
1329
|
Enable a durable workflow so it accepts triggers
|
|
@@ -1926,6 +2018,59 @@ const { data: workflow } = await zapier.updateWorkflow({
|
|
|
1926
2018
|
});
|
|
1927
2019
|
```
|
|
1928
2020
|
|
|
2021
|
+
#### `updateWorkflowDraft` 🧪 _experimental_
|
|
2022
|
+
|
|
2023
|
+
Update (autosave) an open workflow draft
|
|
2024
|
+
|
|
2025
|
+
**Parameters:**
|
|
2026
|
+
|
|
2027
|
+
| Name | Type | Required | Default | Possible Values | Description |
|
|
2028
|
+
| -------------------------- | -------- | -------- | ------- | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
2029
|
+
| `options` | `object` | ✅ | — | — | |
|
|
2030
|
+
| ↳ `workflow` | `string` | ✅ | — | — | Durable workflow ID |
|
|
2031
|
+
| ↳ `draft` | `string` | ✅ | — | — | Workflow draft ID |
|
|
2032
|
+
| ↳ `sourceFiles` | `object` | ✅ | — | — | Source files keyed by filename → contents |
|
|
2033
|
+
| ↳ `zapierDurableVersion` | `string` | ❌ | — | — | Exact semver of @zapier/zapier-durable to use (e.g. "1.2.3"). Leaves the stored pin unchanged if omitted. |
|
|
2034
|
+
| ↳ `dependencies` | `object` | ❌ | — | — | Optional npm package dependencies |
|
|
2035
|
+
| ↳ `draftRevision` | `number` | ❌ | — | — | Expected draft revision for optimistic concurrency. Pass the revision from the last read; the server rejects the save with a conflict if the draft has changed since. Omit to skip the check. |
|
|
2036
|
+
| ↳ `trigger` | `object` | ❌ | — | — | Trigger configuration. Omit to leave the stored trigger unchanged, pass null to clear it, or pass an object to replace it. |
|
|
2037
|
+
| ↳ `connections` | `object` | ❌ | — | — | Map of connection aliases to Zapier connections used by the workflow. Pass `null` to clear an existing binding. |
|
|
2038
|
+
| ↳ `appVersions` | `object` | ❌ | — | — | Map of app keys to pinned app implementation/version used by the workflow. Pass `null` to clear an existing binding. |
|
|
2039
|
+
|
|
2040
|
+
**Returns:** `Promise<WorkflowDraftItem>`
|
|
2041
|
+
|
|
2042
|
+
| Name | Type | Required | Possible Values | Description |
|
|
2043
|
+
| ---------------------------- | -------- | -------- | ------------------- | ---------------------------------------------------------------------------------------------------------------- |
|
|
2044
|
+
| `data` | `object` | ✅ | — | |
|
|
2045
|
+
| ↳ `id` | `string` | ✅ | — | Workflow draft ID (UUID) |
|
|
2046
|
+
| ↳ `workflow_id` | `string` | ✅ | — | Parent workflow ID (UUID) |
|
|
2047
|
+
| ↳ `slug` | `string` | ✅ | — | Human-friendly identifier for URL routing; unique among open drafts per workflow |
|
|
2048
|
+
| ↳ `base_version_id` | `string` | ✅ | — | Live version at draft creation or last publish rebase, or null before the workflow's first publish |
|
|
2049
|
+
| ↳ `source_files` | `object` | ✅ | — | Source files keyed by filename → contents |
|
|
2050
|
+
| ↳ `zapier_durable_version` | `string` | ✅ | — | Pinned semver of @zapier/zapier-durable used by this draft |
|
|
2051
|
+
| ↳ `dependencies` | `object` | ✅ | — | Additional npm dependencies pinned for this draft (or null) |
|
|
2052
|
+
| ↳ `draft_revision` | `number` | ✅ | — | Monotonic revision counter for optimistic concurrency. Echo it back on draft updates to detect concurrent edits. |
|
|
2053
|
+
| ↳ `status` | `string` | ✅ | `open`, `discarded` | Lifecycle status of a workflow draft. |
|
|
2054
|
+
| ↳ `created_by_user_id` | `string` | ✅ | — | ID of the user who created (forked) this draft |
|
|
2055
|
+
| ↳ `last_edited_by_user_id` | `string` | ✅ | — | ID of the user who last saved this draft (or null) |
|
|
2056
|
+
| ↳ `last_edited_at` | `string` | ✅ | — | When the draft was last edited (ISO-8601, or null) |
|
|
2057
|
+
| ↳ `discarded_at` | `string` | ✅ | — | When the draft was discarded (ISO-8601), or null while open |
|
|
2058
|
+
| ↳ `created_at` | `string` | ✅ | — | When the draft was created (ISO-8601) |
|
|
2059
|
+
| ↳ `updated_at` | `string` | ✅ | — | When the draft row was last updated (ISO-8601) |
|
|
2060
|
+
| ↳ `trigger` | `object` | ✅ | — | Trigger configuration held on this draft, or null for webhook-only workflows. |
|
|
2061
|
+
| ↳ `connections` | `object` | ✅ | — | Connection aliases bound on this draft (or null). |
|
|
2062
|
+
| ↳ `app_versions` | `object` | ✅ | — | App-version pins bound on this draft (or null). |
|
|
2063
|
+
|
|
2064
|
+
**Example:**
|
|
2065
|
+
|
|
2066
|
+
```typescript
|
|
2067
|
+
const { data: workflowDraft } = await zapier.updateWorkflowDraft({
|
|
2068
|
+
workflow: "example-workflow",
|
|
2069
|
+
draft: "example-draft",
|
|
2070
|
+
sourceFiles: {},
|
|
2071
|
+
});
|
|
2072
|
+
```
|
|
2073
|
+
|
|
1929
2074
|
### Connections
|
|
1930
2075
|
|
|
1931
2076
|
#### `createConnection`
|
|
@@ -5997,7 +5997,7 @@ function parseDeprecationDate(value) {
|
|
|
5997
5997
|
}
|
|
5998
5998
|
|
|
5999
5999
|
// src/sdk-version.ts
|
|
6000
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
6000
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.90.0" : void 0) || "unknown";
|
|
6001
6001
|
|
|
6002
6002
|
// src/utils/open-url.ts
|
|
6003
6003
|
var nodePrefix = "node:";
|
|
@@ -15656,4 +15656,4 @@ var registryPlugin = (_sdk) => {
|
|
|
15656
15656
|
return {};
|
|
15657
15657
|
};
|
|
15658
15658
|
|
|
15659
|
-
export { API_ID, ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMillisecondsPropertySchema, ActionTimeoutSecondsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONNECTIONS_ID, CONTEXT, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MILLISECONDS, CORE_ERROR_SYMBOL, CORE_OPTIONS_ID, CORE_SIGNAL_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreCancelledSignal, CoreDisposeError, CoreErrorCode, CoreSignal, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MILLISECONDS, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DEPRECATION_NOTICE_EVENT, DebugPropertySchema, DrainTriggerInboxSchema, EVENT_EMISSION_ID, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MANIFEST_ID, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RESOLVE_CREDENTIALS_ID, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, SDK_OPTIONS_ID, TablePropertySchema, TablesPropertySchema, TriggerInboxKeyPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, WatchTriggerInboxSchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, addPlugin, apiPlugin, apiPluginRef, appKeyResolver, appsPlugin, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, composePlugins, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, connectionsPluginRef, createBaseEvent, createClientCredentialsPlugin, createController, createCorePlugin, createFunction, createMemoryCache, createPaginatedFunction, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdk, createZapierSdkWithoutRegistry, declareMethod, declareOptionalProperty, declarePlugin, declareProperty, defineFormatter, defineLegacyMerge, defineMethod, defineMethodOverride, definePlugin, defineProperty, defineResolver, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, disposeSdk, durableRunIdResolver, eventEmissionHookPlugin, eventEmissionPlugin, eventEmissionPluginRef, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, fromFunctionPlugin, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getRegistryPlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierDefaultApprovalMode, getZapierOpenAutoModeApprovalsInBrowser, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCoreCancelledSignal, isCoreError, isCoreSignal, isCredentialsFunction, isCredentialsObject, isPermanentHttpError, isPkceCredentials, isPositional, isZapierAbortDrainSignal, isZapierActionError, isZapierAppNotFoundError, isZapierApprovalError, isZapierAuthenticationError, isZapierBundleError, isZapierConflictError, isZapierError, isZapierNotFoundError, isZapierRateLimitError, isZapierReleaseTriggerMessageSignal, isZapierResourceNotFoundError, isZapierSignal, isZapierTimeoutError, isZapierValidationError, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation2 as logDeprecation, manifestPlugin, manifestPluginRef, omitExports, openEnum, operationAnnotatorPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings2 as resetDeprecationWarnings, resolveAuth, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, resolveCredentialsPlugin, resolveCredentialsPluginRef, resolvePlugin, runActionPlugin, runInMethodScope, runWithCallerContext, runWithTelemetryContext, sdkOptionsPluginRef, selectExports, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowDraftIdResolver, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin };
|
|
15659
|
+
export { API_ID, ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMillisecondsPropertySchema, ActionTimeoutSecondsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONNECTIONS_ID, CONTEXT, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MILLISECONDS, CORE_ERROR_SYMBOL, CORE_OPTIONS_ID, CORE_SIGNAL_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreCancelledSignal, CoreDisposeError, CoreErrorCode, CoreSignal, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MILLISECONDS, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DEPRECATION_NOTICE_EVENT, DebugPropertySchema, DrainTriggerInboxSchema, EVENT_EMISSION_ID, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MANIFEST_ID, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RESOLVE_CREDENTIALS_ID, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, SDK_OPTIONS_ID, TablePropertySchema, TablesPropertySchema, TriggerInboxKeyPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, WatchTriggerInboxSchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, addPlugin, apiPlugin, apiPluginRef, appKeyResolver, appsPlugin, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, composePlugins, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, connectionsPluginRef, createBaseEvent, createClientCredentialsPlugin, createController, createCorePlugin, createFunction, createMemoryCache, createPaginatedFunction, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdk, createZapierSdkWithoutRegistry, declareMethod, declareOptionalProperty, declarePlugin, declareProperty, defineFormatter, defineLegacyMerge, defineMethod, defineMethodOverride, definePlugin, defineProperty, defineResolver, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, disposeSdk, durableRunIdResolver, eventEmissionHookPlugin, eventEmissionPlugin, eventEmissionPluginRef, extractErrorDetail, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, fromFunctionPlugin, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getRegistryPlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierDefaultApprovalMode, getZapierOpenAutoModeApprovalsInBrowser, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCoreCancelledSignal, isCoreError, isCoreSignal, isCredentialsFunction, isCredentialsObject, isPermanentHttpError, isPkceCredentials, isPositional, isZapierAbortDrainSignal, isZapierActionError, isZapierAppNotFoundError, isZapierApprovalError, isZapierAuthenticationError, isZapierBundleError, isZapierConflictError, isZapierError, isZapierNotFoundError, isZapierRateLimitError, isZapierReleaseTriggerMessageSignal, isZapierResourceNotFoundError, isZapierSignal, isZapierTimeoutError, isZapierValidationError, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation2 as logDeprecation, manifestPlugin, manifestPluginRef, omitExports, openEnum, operationAnnotatorPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings2 as resetDeprecationWarnings, resolveAuth, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, resolveCredentialsPlugin, resolveCredentialsPluginRef, resolvePlugin, runActionPlugin, runInMethodScope, runWithCallerContext, runWithTelemetryContext, sdkOptionsPluginRef, selectExports, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowDraftIdResolver, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin };
|
|
@@ -5999,7 +5999,7 @@ function parseDeprecationDate(value) {
|
|
|
5999
5999
|
}
|
|
6000
6000
|
|
|
6001
6001
|
// src/sdk-version.ts
|
|
6002
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
6002
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.90.0" : void 0) || "unknown";
|
|
6003
6003
|
|
|
6004
6004
|
// src/utils/open-url.ts
|
|
6005
6005
|
var nodePrefix = "node:";
|
|
@@ -15808,6 +15808,7 @@ exports.durableRunIdResolver = durableRunIdResolver;
|
|
|
15808
15808
|
exports.eventEmissionHookPlugin = eventEmissionHookPlugin;
|
|
15809
15809
|
exports.eventEmissionPlugin = eventEmissionPlugin;
|
|
15810
15810
|
exports.eventEmissionPluginRef = eventEmissionPluginRef;
|
|
15811
|
+
exports.extractErrorDetail = extractErrorDetail;
|
|
15811
15812
|
exports.fetchPlugin = fetchPlugin;
|
|
15812
15813
|
exports.findFirstConnectionPlugin = findFirstConnectionPlugin;
|
|
15813
15814
|
exports.findManifestEntry = findManifestEntry;
|