@zapier/zapier-sdk 0.88.1 → 0.89.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 +6 -0
- package/README.md +105 -0
- package/dist/{chunk-BLFXMYSW.mjs → chunk-NOPKQ333.mjs} +25 -2
- package/dist/{chunk-KQTYZL5Y.cjs → chunk-UBI5FOL5.cjs} +25 -1
- package/dist/experimental.cjs +489 -343
- package/dist/experimental.d.mts +119 -3
- package/dist/experimental.d.ts +119 -3
- package/dist/experimental.mjs +144 -2
- package/dist/{index-DeefnmJr.d.mts → index-BBBkZ80x.d.mts} +3 -1
- package/dist/{index-DeefnmJr.d.ts → index-BBBkZ80x.d.ts} +3 -1
- package/dist/index.cjs +275 -271
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @zapier/zapier-sdk
|
|
2
2
|
|
|
3
|
+
## 0.89.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e24c236: Added `listWorkflowDrafts` and `getWorkflowDraft` (experimental). `listWorkflowDrafts` is paginated (cursor + pageSize), returns a workflow's drafts most recently edited first, and filters by `status` (server default: open) or exact `slug`. `getWorkflowDraft` returns the full draft state including `source_files` and `draft_revision`, the draft's optimistic-concurrency counter. CLI commands taking a draft id present an interactive picker. All ID inputs are UUID-validated at the boundary.
|
|
8
|
+
|
|
3
9
|
## 0.88.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -35,9 +35,11 @@
|
|
|
35
35
|
- [`getDurableRun`](#getdurablerun--experimental)
|
|
36
36
|
- [`getTriggerRun`](#gettriggerrun--experimental)
|
|
37
37
|
- [`getWorkflow`](#getworkflow--experimental)
|
|
38
|
+
- [`getWorkflowDraft`](#getworkflowdraft--experimental)
|
|
38
39
|
- [`getWorkflowRun`](#getworkflowrun--experimental)
|
|
39
40
|
- [`getWorkflowVersion`](#getworkflowversion--experimental)
|
|
40
41
|
- [`listDurableRuns`](#listdurableruns--experimental)
|
|
42
|
+
- [`listWorkflowDrafts`](#listworkflowdrafts--experimental)
|
|
41
43
|
- [`listWorkflowRuns`](#listworkflowruns--experimental)
|
|
42
44
|
- [`listWorkflowVersions`](#listworkflowversions--experimental)
|
|
43
45
|
- [`listWorkflows`](#listworkflows--experimental)
|
|
@@ -1379,6 +1381,51 @@ const { data: workflow } = await zapier.getWorkflow({
|
|
|
1379
1381
|
});
|
|
1380
1382
|
```
|
|
1381
1383
|
|
|
1384
|
+
#### `getWorkflowDraft` 🧪 _experimental_
|
|
1385
|
+
|
|
1386
|
+
Get full details of a workflow draft including source files
|
|
1387
|
+
|
|
1388
|
+
**Parameters:**
|
|
1389
|
+
|
|
1390
|
+
| Name | Type | Required | Default | Possible Values | Description |
|
|
1391
|
+
| -------------- | -------- | -------- | ------- | --------------- | ------------------- |
|
|
1392
|
+
| `options` | `object` | ✅ | — | — | |
|
|
1393
|
+
| ↳ `workflow` | `string` | ✅ | — | — | Durable workflow ID |
|
|
1394
|
+
| ↳ `draft` | `string` | ✅ | — | — | Workflow draft ID |
|
|
1395
|
+
|
|
1396
|
+
**Returns:** `Promise<WorkflowDraftItem>`
|
|
1397
|
+
|
|
1398
|
+
| Name | Type | Required | Possible Values | Description |
|
|
1399
|
+
| ---------------------------- | -------- | -------- | ------------------- | ---------------------------------------------------------------------------------------------------------------- |
|
|
1400
|
+
| `data` | `object` | ✅ | — | |
|
|
1401
|
+
| ↳ `id` | `string` | ✅ | — | Workflow draft ID (UUID) |
|
|
1402
|
+
| ↳ `workflow_id` | `string` | ✅ | — | Parent workflow ID (UUID) |
|
|
1403
|
+
| ↳ `slug` | `string` | ✅ | — | Human-friendly identifier for URL routing; unique among open drafts per workflow |
|
|
1404
|
+
| ↳ `base_version_id` | `string` | ✅ | — | Live version at draft creation or last publish rebase, or null before the workflow's first publish |
|
|
1405
|
+
| ↳ `source_files` | `object` | ✅ | — | Source files keyed by filename → contents |
|
|
1406
|
+
| ↳ `zapier_durable_version` | `string` | ✅ | — | Pinned semver of @zapier/zapier-durable used by this draft |
|
|
1407
|
+
| ↳ `dependencies` | `object` | ✅ | — | Additional npm dependencies pinned for this draft (or null) |
|
|
1408
|
+
| ↳ `draft_revision` | `number` | ✅ | — | Monotonic revision counter for optimistic concurrency. Echo it back on draft updates to detect concurrent edits. |
|
|
1409
|
+
| ↳ `status` | `string` | ✅ | `open`, `discarded` | Lifecycle status of a workflow draft. |
|
|
1410
|
+
| ↳ `created_by_user_id` | `string` | ✅ | — | ID of the user who created (forked) this draft |
|
|
1411
|
+
| ↳ `last_edited_by_user_id` | `string` | ✅ | — | ID of the user who last saved this draft (or null) |
|
|
1412
|
+
| ↳ `last_edited_at` | `string` | ✅ | — | When the draft was last edited (ISO-8601, or null) |
|
|
1413
|
+
| ↳ `discarded_at` | `string` | ✅ | — | When the draft was discarded (ISO-8601), or null while open |
|
|
1414
|
+
| ↳ `created_at` | `string` | ✅ | — | When the draft was created (ISO-8601) |
|
|
1415
|
+
| ↳ `updated_at` | `string` | ✅ | — | When the draft row was last updated (ISO-8601) |
|
|
1416
|
+
| ↳ `trigger` | `object` | ✅ | — | Trigger configuration held on this draft, or null for webhook-only workflows. |
|
|
1417
|
+
| ↳ `connections` | `object` | ✅ | — | Connection aliases bound on this draft (or null). |
|
|
1418
|
+
| ↳ `app_versions` | `object` | ✅ | — | App-version pins bound on this draft (or null). |
|
|
1419
|
+
|
|
1420
|
+
**Example:**
|
|
1421
|
+
|
|
1422
|
+
```typescript
|
|
1423
|
+
const { data: workflowDraft } = await zapier.getWorkflowDraft({
|
|
1424
|
+
workflow: "example-workflow",
|
|
1425
|
+
draft: "example-draft",
|
|
1426
|
+
});
|
|
1427
|
+
```
|
|
1428
|
+
|
|
1382
1429
|
#### `getWorkflowRun` 🧪 _experimental_
|
|
1383
1430
|
|
|
1384
1431
|
Get the current state of a workflow run (a triggered execution of a deployed workflow)
|
|
@@ -1498,6 +1545,64 @@ for await (const durableRun of zapier.listDurableRuns().items()) {
|
|
|
1498
1545
|
}
|
|
1499
1546
|
```
|
|
1500
1547
|
|
|
1548
|
+
#### `listWorkflowDrafts` 🧪 _experimental_
|
|
1549
|
+
|
|
1550
|
+
List drafts for a workflow, most recently edited first (open drafts by default)
|
|
1551
|
+
|
|
1552
|
+
**Parameters:**
|
|
1553
|
+
|
|
1554
|
+
| Name | Type | Required | Default | Possible Values | Description |
|
|
1555
|
+
| -------------- | -------- | -------- | ------- | ------------------- | ----------------------------------------------------- |
|
|
1556
|
+
| `options` | `object` | ✅ | — | — | |
|
|
1557
|
+
| ↳ `workflow` | `string` | ✅ | — | — | Durable workflow ID |
|
|
1558
|
+
| ↳ `status` | `string` | ❌ | — | `open`, `discarded` | Filter by draft status (server default: open) |
|
|
1559
|
+
| ↳ `slug` | `string` | ❌ | — | — | Filter by exact slug match; returns at most one draft |
|
|
1560
|
+
| ↳ `pageSize` | `number` | ❌ | — | — | Number of drafts per page (max 100) |
|
|
1561
|
+
| ↳ `cursor` | `string` | ❌ | — | — | Pagination cursor |
|
|
1562
|
+
| ↳ `maxItems` | `number` | ❌ | — | — | Maximum total drafts to return across all pages |
|
|
1563
|
+
|
|
1564
|
+
**Returns:** `Promise<PaginatedResult<WorkflowDraftItem>>`
|
|
1565
|
+
|
|
1566
|
+
| Name | Type | Required | Possible Values | Description |
|
|
1567
|
+
| ---------------------------- | ---------- | -------- | ------------------- | -------------------------------------------------------------------------------------------------- |
|
|
1568
|
+
| `data[]` | `object[]` | ✅ | — | |
|
|
1569
|
+
| ↳ `id` | `string` | ✅ | — | Workflow draft ID (UUID) |
|
|
1570
|
+
| ↳ `workflow_id` | `string` | ✅ | — | Parent workflow ID (UUID) |
|
|
1571
|
+
| ↳ `slug` | `string` | ✅ | — | Human-friendly identifier for URL routing; unique among open drafts per workflow |
|
|
1572
|
+
| ↳ `base_version_id` | `string` | ✅ | — | Live version at draft creation or last publish rebase, or null before the workflow's first publish |
|
|
1573
|
+
| ↳ `status` | `string` | ✅ | `open`, `discarded` | Lifecycle status of a workflow draft. |
|
|
1574
|
+
| ↳ `last_edited_by_user_id` | `string` | ✅ | — | ID of the user who last saved this draft (or null) |
|
|
1575
|
+
| ↳ `last_edited_at` | `string` | ✅ | — | When the draft was last edited (ISO-8601, or null) |
|
|
1576
|
+
| ↳ `created_at` | `string` | ✅ | — | When the draft was created (ISO-8601) |
|
|
1577
|
+
| `nextCursor` | `string` | ❌ | — | Cursor for the next page; omitted when there are no more pages |
|
|
1578
|
+
|
|
1579
|
+
**Example:**
|
|
1580
|
+
|
|
1581
|
+
```typescript
|
|
1582
|
+
// Get first page and a cursor for the second page
|
|
1583
|
+
const { data: workflowDrafts, nextCursor } = await zapier.listWorkflowDrafts({
|
|
1584
|
+
workflow: "example-workflow",
|
|
1585
|
+
});
|
|
1586
|
+
|
|
1587
|
+
// Or iterate over all pages
|
|
1588
|
+
for await (const page of zapier
|
|
1589
|
+
.listWorkflowDrafts({
|
|
1590
|
+
workflow: "example-workflow",
|
|
1591
|
+
})
|
|
1592
|
+
.pages()) {
|
|
1593
|
+
// Do something with each page
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
// Or iterate over individual items across all pages
|
|
1597
|
+
for await (const workflowDraft of zapier
|
|
1598
|
+
.listWorkflowDrafts({
|
|
1599
|
+
workflow: "example-workflow",
|
|
1600
|
+
})
|
|
1601
|
+
.items()) {
|
|
1602
|
+
// Do something with each workflowDraft
|
|
1603
|
+
}
|
|
1604
|
+
```
|
|
1605
|
+
|
|
1501
1606
|
#### `listWorkflowRuns` 🧪 _experimental_
|
|
1502
1607
|
|
|
1503
1608
|
List workflow runs (triggered executions) for a specific deployed workflow, newest first
|
|
@@ -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.89.0" : void 0) || "unknown";
|
|
6001
6001
|
|
|
6002
6002
|
// src/utils/open-url.ts
|
|
6003
6003
|
var nodePrefix = "node:";
|
|
@@ -9255,6 +9255,29 @@ var workflowVersionIdResolver = defineResolver({
|
|
|
9255
9255
|
})
|
|
9256
9256
|
});
|
|
9257
9257
|
|
|
9258
|
+
// src/resolvers/workflowDraftId.ts
|
|
9259
|
+
var listWorkflowDraftsRef = declareMethod({ id: "listWorkflowDrafts" });
|
|
9260
|
+
var workflowDraftIdResolver = defineResolver({
|
|
9261
|
+
imports: [listWorkflowDraftsRef],
|
|
9262
|
+
requireParameters: ["workflow"],
|
|
9263
|
+
listItems: ({
|
|
9264
|
+
imports,
|
|
9265
|
+
input,
|
|
9266
|
+
cursor
|
|
9267
|
+
}) => imports.listWorkflowDrafts({
|
|
9268
|
+
workflow: input.workflow,
|
|
9269
|
+
cursor
|
|
9270
|
+
}),
|
|
9271
|
+
prompt: ({ items }) => ({
|
|
9272
|
+
type: "list",
|
|
9273
|
+
message: "Select a workflow draft:",
|
|
9274
|
+
choices: items.map((d) => ({
|
|
9275
|
+
label: `${d.slug} \u2014 last edited ${d.last_edited_at ?? "never"}`,
|
|
9276
|
+
value: d.id
|
|
9277
|
+
}))
|
|
9278
|
+
})
|
|
9279
|
+
});
|
|
9280
|
+
|
|
9258
9281
|
// src/resolvers/workflowRunId.ts
|
|
9259
9282
|
var listWorkflowRunsRef = declareMethod({ id: "listWorkflowRuns" });
|
|
9260
9283
|
var workflowRunIdResolver = defineResolver({
|
|
@@ -15633,4 +15656,4 @@ var registryPlugin = (_sdk) => {
|
|
|
15633
15656
|
return {};
|
|
15634
15657
|
};
|
|
15635
15658
|
|
|
15636
|
-
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, 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, 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.89.0" : void 0) || "unknown";
|
|
6003
6003
|
|
|
6004
6004
|
// src/utils/open-url.ts
|
|
6005
6005
|
var nodePrefix = "node:";
|
|
@@ -9257,6 +9257,29 @@ var workflowVersionIdResolver = defineResolver({
|
|
|
9257
9257
|
})
|
|
9258
9258
|
});
|
|
9259
9259
|
|
|
9260
|
+
// src/resolvers/workflowDraftId.ts
|
|
9261
|
+
var listWorkflowDraftsRef = declareMethod({ id: "listWorkflowDrafts" });
|
|
9262
|
+
var workflowDraftIdResolver = defineResolver({
|
|
9263
|
+
imports: [listWorkflowDraftsRef],
|
|
9264
|
+
requireParameters: ["workflow"],
|
|
9265
|
+
listItems: ({
|
|
9266
|
+
imports,
|
|
9267
|
+
input,
|
|
9268
|
+
cursor
|
|
9269
|
+
}) => imports.listWorkflowDrafts({
|
|
9270
|
+
workflow: input.workflow,
|
|
9271
|
+
cursor
|
|
9272
|
+
}),
|
|
9273
|
+
prompt: ({ items }) => ({
|
|
9274
|
+
type: "list",
|
|
9275
|
+
message: "Select a workflow draft:",
|
|
9276
|
+
choices: items.map((d) => ({
|
|
9277
|
+
label: `${d.slug} \u2014 last edited ${d.last_edited_at ?? "never"}`,
|
|
9278
|
+
value: d.id
|
|
9279
|
+
}))
|
|
9280
|
+
})
|
|
9281
|
+
});
|
|
9282
|
+
|
|
9260
9283
|
// src/resolvers/workflowRunId.ts
|
|
9261
9284
|
var listWorkflowRunsRef = declareMethod({ id: "listWorkflowRuns" });
|
|
9262
9285
|
var workflowRunIdResolver = defineResolver({
|
|
@@ -15902,6 +15925,7 @@ exports.toTitleCase = toTitleCase;
|
|
|
15902
15925
|
exports.triggerInboxResolver = triggerInboxResolver;
|
|
15903
15926
|
exports.triggerMessagesResolver = triggerMessagesResolver;
|
|
15904
15927
|
exports.updateTableRecordsPlugin = updateTableRecordsPlugin;
|
|
15928
|
+
exports.workflowDraftIdResolver = workflowDraftIdResolver;
|
|
15905
15929
|
exports.workflowIdResolver = workflowIdResolver;
|
|
15906
15930
|
exports.workflowRunIdResolver = workflowRunIdResolver;
|
|
15907
15931
|
exports.workflowVersionIdResolver = workflowVersionIdResolver;
|