@zapier/zapier-sdk 0.74.0 → 0.74.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +33 -29
- package/dist/experimental.cjs +19 -1
- package/dist/experimental.d.mts +10 -2
- package/dist/experimental.d.ts +8 -0
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.mjs +19 -1
- package/dist/{index-WMit6fkJ.d.mts → index-B_Fr4RAt.d.mts} +10 -0
- package/dist/{index-WMit6fkJ.d.ts → index-B_Fr4RAt.d.ts} +10 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/plugins/codeSubstrate/deleteWorkflow/index.d.ts +2 -0
- package/dist/plugins/codeSubstrate/deleteWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/disableWorkflow/index.d.ts +2 -0
- package/dist/plugins/codeSubstrate/disableWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/enableWorkflow/index.d.ts +2 -0
- package/dist/plugins/codeSubstrate/enableWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts +4 -0
- package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflow/schemas.d.ts +4 -0
- package/dist/plugins/codeSubstrate/getWorkflow/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflow/schemas.js +7 -1
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts +2 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts +2 -0
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts +2 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts +2 -0
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts +2 -0
- package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflows/schemas.d.ts +8 -0
- package/dist/plugins/codeSubstrate/listWorkflows/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflows/schemas.js +6 -1
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts +2 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/shared-schemas.d.ts +4 -0
- package/dist/plugins/codeSubstrate/shared-schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/shared-schemas.js +14 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/index.d.ts +2 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/updateWorkflow/index.d.ts +2 -0
- package/dist/plugins/codeSubstrate/updateWorkflow/index.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @zapier/zapier-sdk
|
|
2
2
|
|
|
3
|
+
## 0.74.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f56bfdb: Surface trigger claim failure reason and workflow disable reason on the experimental `getWorkflow` / `listWorkflows` responses (and therefore the `get-workflow` / `list-workflows` CLI commands). Each `triggers[]` entry gains `error` (the latest claim's failure reason, present when `status` is `failed`), and the workflow gains a top-level `disabled_reason` (`trigger_claim_failed` when system-disabled, otherwise null). The two signals stay independent so an enabled workflow with a failed trigger is representable. Both fields are optional until the CSW API ships them server-side (COSUB-630).
|
|
8
|
+
|
|
3
9
|
## 0.74.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -1330,35 +1330,37 @@ Get a durable workflow with its current version details and trigger claim status
|
|
|
1330
1330
|
|
|
1331
1331
|
**Returns:** `Promise<WorkflowItem>`
|
|
1332
1332
|
|
|
1333
|
-
| Name | Type | Required | Possible Values | Description
|
|
1334
|
-
| ------------------------------ | ---------- | -------- | ------------------------------------------------------------------- |
|
|
1335
|
-
| `data` | `object` | ✅ | — |
|
|
1336
|
-
| ↳ `id` | `string` | ✅ | — | Workflow ID (UUID)
|
|
1337
|
-
| ↳ `name` | `string` | ✅ | — | Workflow name
|
|
1338
|
-
| ↳ `description` | `string` | ✅ | — | Optional workflow description (null if unset)
|
|
1339
|
-
| ↳ `trigger_url` | `string` | ✅ | — | Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path — treat as sensitive.
|
|
1340
|
-
| ↳ `enabled` | `boolean` | ✅ | — | Whether the workflow currently accepts triggers
|
|
1341
|
-
| ↳ `
|
|
1342
|
-
| ↳ `
|
|
1343
|
-
| ↳ `
|
|
1344
|
-
|
|
|
1345
|
-
| ↳ `
|
|
1346
|
-
| ↳ `
|
|
1347
|
-
| ↳ `
|
|
1348
|
-
| ↳ `
|
|
1349
|
-
| ↳ `
|
|
1350
|
-
| ↳ `
|
|
1351
|
-
| ↳ `
|
|
1352
|
-
| ↳ `
|
|
1353
|
-
| ↳ `
|
|
1354
|
-
|
|
|
1355
|
-
|
|
|
1356
|
-
| ↳ `
|
|
1357
|
-
| ↳ `
|
|
1358
|
-
| ↳ `
|
|
1359
|
-
| ↳ `
|
|
1360
|
-
|
|
|
1361
|
-
|
|
|
1333
|
+
| Name | Type | Required | Possible Values | Description |
|
|
1334
|
+
| ------------------------------ | ---------- | -------- | ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1335
|
+
| `data` | `object` | ✅ | — | |
|
|
1336
|
+
| ↳ `id` | `string` | ✅ | — | Workflow ID (UUID) |
|
|
1337
|
+
| ↳ `name` | `string` | ✅ | — | Workflow name |
|
|
1338
|
+
| ↳ `description` | `string` | ✅ | — | Optional workflow description (null if unset) |
|
|
1339
|
+
| ↳ `trigger_url` | `string` | ✅ | — | Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path — treat as sensitive. |
|
|
1340
|
+
| ↳ `enabled` | `boolean` | ✅ | — | Whether the workflow currently accepts triggers |
|
|
1341
|
+
| ↳ `disabled_reason` | `string` | ❌ | `trigger_claim_failed` | Why the workflow is off, when system-disabled. Null when not system-disabled. Independent of per-trigger claim status: an enabled workflow can still have a failed trigger. |
|
|
1342
|
+
| ↳ `is_private` | `boolean` | ✅ | — | Whether the workflow is private to the creating user. False means account-visible. |
|
|
1343
|
+
| ↳ `created_by_user_id` | `string` | ✅ | — | User ID of the workflow creator (null in legacy data) |
|
|
1344
|
+
| ↳ `current_version` | `object` | ❌ | — | The currently published version, if any. Absent for workflows with no version published yet. |
|
|
1345
|
+
| ↳ `id` | `string` | ✅ | — | Workflow version ID (UUID) |
|
|
1346
|
+
| ↳ `workflow_id` | `string` | ✅ | — | Parent workflow ID |
|
|
1347
|
+
| ↳ `source_files` | `object` | ✅ | — | Source files keyed by filename → contents |
|
|
1348
|
+
| ↳ `zapier_durable_version` | `string` | ✅ | — | Pinned semver of @zapier/zapier-durable used by this version's runs |
|
|
1349
|
+
| ↳ `dependencies` | `object` | ✅ | — | Additional npm dependencies pinned for this version (or null) |
|
|
1350
|
+
| ↳ `created_by_user_id` | `string` | ✅ | — | ID of the user who published this version |
|
|
1351
|
+
| ↳ `created_at` | `string` | ✅ | — | When the version was published (ISO-8601) |
|
|
1352
|
+
| ↳ `trigger` | `object` | ✅ | — | Trigger configuration persisted on this version, or null for webhook-only workflows. |
|
|
1353
|
+
| ↳ `connections` | `object` | ✅ | — | Connection aliases bound on this version (or null). |
|
|
1354
|
+
| ↳ `app_versions` | `object` | ✅ | — | App-version pins bound on this version (or null). |
|
|
1355
|
+
| ↳ `triggers[]` | `object[]` | ✅ | — | Trigger configurations from the current version, with live claim status. Empty array when the workflow has no triggers. |
|
|
1356
|
+
| ↳ `selected_api` | `string` | ✅ | — | Zapier app/API identifier (e.g. 'GoogleSheetsAPI') |
|
|
1357
|
+
| ↳ `action` | `string` | ✅ | — | Trigger action key (e.g. 'new_row') |
|
|
1358
|
+
| ↳ `authentication_id` | `string` | ❌ | — | Connection ID for the trigger source. Null for no-auth triggers. |
|
|
1359
|
+
| ↳ `params` | `object` | ❌ | — | Trigger parameters as a JSON object |
|
|
1360
|
+
| ↳ `status` | `string` | ✅ | `unclaimed`, `pending`, `active`, `releasing`, `released`, `failed` | Live trigger claim status — whether the trigger is currently subscribed to its source. |
|
|
1361
|
+
| ↳ `error` | `string` | ❌ | — | Failure reason for the latest claim. Present (non-null) only when status is 'failed'. |
|
|
1362
|
+
| ↳ `created_at` | `string` | ✅ | — | When the workflow was created (ISO-8601) |
|
|
1363
|
+
| ↳ `updated_at` | `string` | ✅ | — | When the workflow was last modified (ISO-8601) |
|
|
1362
1364
|
|
|
1363
1365
|
**Example:**
|
|
1364
1366
|
|
|
@@ -1622,6 +1624,7 @@ List all active durable workflows for the authenticated account
|
|
|
1622
1624
|
| ↳ `description` | `string` | ✅ | — | Optional workflow description (null if unset) |
|
|
1623
1625
|
| ↳ `trigger_url` | `string` | ✅ | — | Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path — treat as sensitive. |
|
|
1624
1626
|
| ↳ `enabled` | `boolean` | ✅ | — | Whether the workflow currently accepts triggers |
|
|
1627
|
+
| ↳ `disabled_reason` | `string` | ❌ | `trigger_claim_failed` | Why the workflow is off, when system-disabled. Null when not system-disabled. |
|
|
1625
1628
|
| ↳ `is_private` | `boolean` | ✅ | — | Whether the workflow is private to the creating user. False means account-visible. |
|
|
1626
1629
|
| ↳ `created_by_user_id` | `string` | ✅ | — | User ID of the workflow creator (null in legacy data) |
|
|
1627
1630
|
| ↳ `current_version_id` | `string` | ✅ | — | ID of the workflow version that runs handle. Null until a version is published. |
|
|
@@ -1631,6 +1634,7 @@ List all active durable workflows for the authenticated account
|
|
|
1631
1634
|
| ↳ `authentication_id` | `string` | ❌ | — | Connection ID for the trigger source. Null for no-auth triggers. |
|
|
1632
1635
|
| ↳ `params` | `object` | ❌ | — | Trigger parameters as a JSON object |
|
|
1633
1636
|
| ↳ `status` | `string` | ✅ | `unclaimed`, `pending`, `active`, `releasing`, `released`, `failed` | Live trigger claim status — whether the trigger is currently subscribed to its source. |
|
|
1637
|
+
| ↳ `error` | `string` | ❌ | — | Failure reason for the latest claim. Present (non-null) only when status is 'failed'. |
|
|
1634
1638
|
| ↳ `created_at` | `string` | ✅ | — | When the workflow was created (ISO-8601) |
|
|
1635
1639
|
| ↳ `updated_at` | `string` | ✅ | — | When the workflow was last modified (ISO-8601) |
|
|
1636
1640
|
| `nextCursor` | `string` | ❌ | — | Cursor for the next page; omitted when there are no more pages |
|
package/dist/experimental.cjs
CHANGED
|
@@ -3318,7 +3318,7 @@ function parseApprovalReviewStreamPayload(parsed, toolNames) {
|
|
|
3318
3318
|
}
|
|
3319
3319
|
|
|
3320
3320
|
// src/sdk-version.ts
|
|
3321
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.74.
|
|
3321
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.74.1" : void 0) || "unknown";
|
|
3322
3322
|
|
|
3323
3323
|
// src/utils/open-url.ts
|
|
3324
3324
|
var nodePrefix = "node:";
|
|
@@ -11877,6 +11877,7 @@ var WorkflowTriggerStatusSchema = zod.z.enum([
|
|
|
11877
11877
|
"released",
|
|
11878
11878
|
"failed"
|
|
11879
11879
|
]);
|
|
11880
|
+
var WorkflowDisabledReasonSchema = zod.z.enum(["trigger_claim_failed"]);
|
|
11880
11881
|
var WorkflowTriggerSchema = zod.z.object({
|
|
11881
11882
|
selected_api: zod.z.string().describe("Zapier app/API identifier (e.g. 'GoogleSheetsAPI')"),
|
|
11882
11883
|
action: zod.z.string().describe("Trigger action key (e.g. 'new_row')"),
|
|
@@ -11886,6 +11887,12 @@ var WorkflowTriggerSchema = zod.z.object({
|
|
|
11886
11887
|
params: zod.z.record(zod.z.string(), zod.z.unknown()).optional().describe("Trigger parameters as a JSON object"),
|
|
11887
11888
|
status: WorkflowTriggerStatusSchema.describe(
|
|
11888
11889
|
"Live trigger claim status \u2014 whether the trigger is currently subscribed to its source."
|
|
11890
|
+
),
|
|
11891
|
+
// Optional until COSUB-630 ships the field server-side; afterwards the API
|
|
11892
|
+
// always sends it (null unless status=failed). Already sanitized at write
|
|
11893
|
+
// time — surface verbatim.
|
|
11894
|
+
error: zod.z.string().nullable().optional().describe(
|
|
11895
|
+
"Failure reason for the latest claim. Present (non-null) only when status is 'failed'."
|
|
11889
11896
|
)
|
|
11890
11897
|
}).describe(
|
|
11891
11898
|
"Trigger from a workflow's current version, combined with the live claim status."
|
|
@@ -11900,6 +11907,11 @@ var WorkflowItemSchema = zod.z.object({
|
|
|
11900
11907
|
"Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path \u2014 treat as sensitive."
|
|
11901
11908
|
),
|
|
11902
11909
|
enabled: zod.z.boolean().describe("Whether the workflow currently accepts triggers"),
|
|
11910
|
+
// Optional until COSUB-630 ships the field server-side; afterwards the API
|
|
11911
|
+
// always sends it (null unless the workflow was system-disabled).
|
|
11912
|
+
disabled_reason: WorkflowDisabledReasonSchema.nullable().optional().describe(
|
|
11913
|
+
"Why the workflow is off, when system-disabled. Null when not system-disabled."
|
|
11914
|
+
),
|
|
11903
11915
|
is_private: zod.z.boolean().describe(
|
|
11904
11916
|
"Whether the workflow is private to the creating user. False means account-visible."
|
|
11905
11917
|
),
|
|
@@ -11991,6 +12003,12 @@ var GetWorkflowResponseSchema = zod.z.object({
|
|
|
11991
12003
|
"Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path \u2014 treat as sensitive."
|
|
11992
12004
|
),
|
|
11993
12005
|
enabled: zod.z.boolean().describe("Whether the workflow currently accepts triggers"),
|
|
12006
|
+
// Optional until COSUB-630 ships the field server-side; afterwards the API
|
|
12007
|
+
// always sends it (null unless the workflow was system-disabled). Kept
|
|
12008
|
+
// independent of per-trigger status+error — see WorkflowDisabledReasonSchema.
|
|
12009
|
+
disabled_reason: WorkflowDisabledReasonSchema.nullable().optional().describe(
|
|
12010
|
+
"Why the workflow is off, when system-disabled. Null when not system-disabled. Independent of per-trigger claim status: an enabled workflow can still have a failed trigger."
|
|
12011
|
+
),
|
|
11994
12012
|
is_private: zod.z.boolean().describe(
|
|
11995
12013
|
"Whether the workflow is private to the creating user. False means account-visible."
|
|
11996
12014
|
),
|
package/dist/experimental.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseSdkOptions, P as PluginStack, a as PluginMeta, M as MethodHooks, C as CoreOptions, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, b as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, c as UpdateManifestEntryResult, d as AddActionEntryOptions, e as AddActionEntryResult, f as ActionEntry, g as findManifestEntry, r as readManifestFromFile, h as CapabilitiesContext, i as PaginatedSdkResult, G as GetConnectionStartUrlItem, W as WaitForNewConnectionItem, j as CreateConnectionItem, F as FieldsetItem, k as PositionalMetadata, O as OutputFormatter, l as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, m as DynamicResolver, n as WatchTriggerInboxOptions, o as ActionProxy, p as ZapierSdkApps, q as WithAddPlugin } from './index-
|
|
2
|
-
export { H as Action, ci as ActionExecutionOptions, Q as ActionExecutionResult, S as ActionField, V as ActionFieldChoice, aW as ActionItem, bw as ActionKeyProperty, b4 as ActionKeyPropertySchema, bx as ActionProperty, b5 as ActionPropertySchema, aK as ActionResolverItem, bI as ActionTimeoutMsProperty, bg as ActionTimeoutMsPropertySchema, aL as ActionTypeItem, bv as ActionTypeProperty, b3 as ActionTypePropertySchema, ce as ApiError, dI as ApiEvent, d0 as ApiPluginOptions, d2 as ApiPluginProvides, I as App, cj as AppFactoryInput, aU as AppItem, bt as AppKeyProperty, b1 as AppKeyPropertySchema, bu as AppProperty, b2 as AppPropertySchema, eS as ApplicationLifecycleEventData, ca as ApprovalStatus, ch as AppsPluginProvides, bN as AppsProperty, bl as AppsPropertySchema, a8 as ArrayResolver, dH as AuthEvent, bB as AuthenticationIdProperty, b8 as AuthenticationIdPropertySchema, e_ as BaseEvent, ay as BaseSdkOptionsSchema, am as BatchOptions, cP as CONTEXT_CACHE_MAX_SIZE, cO as CONTEXT_CACHE_TTL_MS, aC as CORE_ERROR_SYMBOL, ai as CallerContext, K as Choice, dO as ClientCredentialsObject, dZ as ClientCredentialsObjectSchema, _ as Connection, e5 as ConnectionEntry, e4 as ConnectionEntrySchema, bz as ConnectionIdProperty, b7 as ConnectionIdPropertySchema, aV as ConnectionItem, bA as ConnectionProperty, b9 as ConnectionPropertySchema, e7 as ConnectionsMap, e6 as ConnectionsMapSchema, e9 as ConnectionsPluginProvides, bP as ConnectionsProperty, bn as ConnectionsPropertySchema, $ as ConnectionsResponse, aD as CoreErrorCode, cB as CreateClientCredentialsPluginProvides, eA as CreateTableFieldsPluginProvides, eu as CreateTablePluginProvides, eI as CreateTableRecordsPluginProvides, dL as Credentials, e2 as CredentialsFunction, e1 as CredentialsFunctionSchema, dN as CredentialsObject, d$ as CredentialsObjectSchema, e3 as CredentialsSchema, ee as DEFAULT_ACTION_TIMEOUT_MS, en as DEFAULT_APPROVAL_TIMEOUT_MS, cY as DEFAULT_CONFIG_PATH, eo as DEFAULT_MAX_APPROVAL_RETRIES, ed as DEFAULT_PAGE_SIZE, bG as DebugProperty, be as DebugPropertySchema, cD as DeleteClientCredentialsPluginProvides, eC as DeleteTableFieldsPluginProvides, ew as DeleteTablePluginProvides, eK as DeleteTableRecordsPluginProvides, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, ab as DynamicListResolver, ac as DynamicSearchResolver, eT as EnhancedErrorEventData, bV as ErrorOptions, dK as EventCallback, eR as EventContext, eO as EventEmissionConfig, eQ as EventEmissionProvides, cl as FetchPluginProvides, J as Field, bM as FieldsProperty, bk as FieldsPropertySchema, ad as FieldsResolver, y as FindFirstAuthenticationPluginProvides, cL as FindFirstConnectionPluginProvides, z as FindUniqueAuthenticationPluginProvides, cN as FindUniqueConnectionPluginProvides, a6 as FormattedItem, ax as FunctionDeprecation, aw as FunctionRegistryEntry, cv as GetActionInputFieldsSchemaPluginProvides, cH as GetActionPluginProvides, cF as GetAppPluginProvides, x as GetAuthenticationPluginProvides, cJ as GetConnectionPluginProvides, c$ as GetProfilePluginProvides, es as GetTablePluginProvides, eE as GetTableRecordPluginProvides, aY as InfoFieldItem, aX as InputFieldItem, by as InputFieldProperty, b6 as InputFieldPropertySchema, bC as InputsProperty, ba as InputsPropertySchema, aT as JsonSseMessage, bU as LeaseLimitProperty, bs as LeaseLimitPropertySchema, bS as LeaseProperty, bq as LeasePropertySchema, bT as LeaseSecondsProperty, br as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bD as LimitProperty, bb as LimitPropertySchema, ct as ListActionInputFieldChoicesPluginProvides, cr as ListActionInputFieldsPluginProvides, cp as ListActionsPluginProvides, cn as ListAppsPluginProvides, w as ListAuthenticationsPluginProvides, cz as ListClientCredentialsPluginProvides, cx as ListConnectionsPluginProvides, ey as ListTableFieldsPluginProvides, eG as ListTableRecordsPluginProvides, eq as ListTablesPluginProvides, dJ as LoadingEvent, eh as MAX_CONCURRENCY_LIMIT, ec as MAX_PAGE_LIMIT, cZ as ManifestEntry, cU as ManifestPluginOptions, cX as ManifestPluginProvides, e$ as MethodCalledEvent, eU as MethodCalledEventData, N as Need, X as NeedsRequest, Y as NeedsResponse, bE as OffsetProperty, bc as OffsetPropertySchema, bF as OutputProperty, bd as OutputPropertySchema, b0 as PaginatedSdkFunction, bH as ParamsProperty, bf as ParamsPropertySchema, dP as PkceCredentialsObject, d_ as PkceCredentialsObjectSchema, aE as Plugin, aF as PluginProvides, aO as PollOptions, c8 as RateLimitInfo, bK as RecordProperty, bi as RecordPropertySchema, bL as RecordsProperty, bj as RecordsPropertySchema, ar as RelayFetchSchema, aq as RelayRequestSchema, aN as RequestOptions, cT as RequestPluginProvides, du as ResolveAuthTokenOptions, dU as ResolveCredentialsOptions, dM as ResolvedCredentials, e0 as ResolvedCredentialsSchema, a7 as Resolver, a9 as ResolverMetadata, aZ as RootFieldItem, cR as RunActionPluginProvides, dG as SdkEvent, a$ as SdkPage, aS as SseMessage, aa as StaticResolver, bJ as TableProperty, bh as TablePropertySchema, bO as TablesProperty, bm as TablesPropertySchema, bR as TriggerInboxNameProperty, bp as TriggerInboxNamePropertySchema, bQ as TriggerInboxProperty, bo as TriggerInboxPropertySchema, T as TriggerMessageStatus, eM as UpdateTableRecordsPluginProvides, a0 as UserProfile, a_ as UserProfileItem, ea as ZAPIER_BASE_URL, ej as ZAPIER_MAX_CONCURRENT_REQUESTS, ef as ZAPIER_MAX_NETWORK_RETRIES, eg as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, c6 as ZapierActionError, b$ as ZapierApiError, c0 as ZapierAppNotFoundError, cb as ZapierApprovalError, bZ as ZapierAuthenticationError, c4 as ZapierBundleError, dC as ZapierCache, dD as ZapierCacheEntry, dE as ZapierCacheSetOptions, c3 as ZapierConfigurationError, c7 as ZapierConflictError, bW as ZapierError, c1 as ZapierNotFoundError, c9 as ZapierRateLimitError, cc as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, c2 as ZapierResourceNotFoundError, cf as ZapierSignal, c5 as ZapierTimeoutError, bY as ZapierUnknownError, bX as ZapierValidationError, d5 as actionKeyResolver, d4 as actionTypeResolver, a5 as addPlugin, d1 as apiPlugin, d3 as appKeyResolver, cg as appsPlugin, d7 as authenticationIdGenericResolver, d6 as authenticationIdResolver, al as batch, eV as buildApplicationLifecycleEvent, an as buildCapabilityMessage, eX as buildErrorEvent, eW as buildErrorEventWithContext, eZ as buildMethodCalledEvent, eN as cleanupEventListeners, dv as clearTokenCache, db as clientCredentialsNameResolver, dc as clientIdResolver, aJ as composePlugins, d7 as connectionIdGenericResolver, d6 as connectionIdResolver, e8 as connectionsPlugin, eY as createBaseEvent, cA as createClientCredentialsPlugin, a4 as createCorePlugin, a2 as createFunction, dF as createMemoryCache, au as createOptionsPlugin, aI as createPaginatedPluginMethod, aH as createPluginMethod, a3 as createPluginStack, at as createSdk, ez as createTableFieldsPlugin, et as createTablePlugin, eH as createTableRecordsPlugin, aP as createZapierApi, av as createZapierCoreStack, as as createZapierSdkWithoutRegistry, aG as definePlugin, cC as deleteClientCredentialsPlugin, eB as deleteTableFieldsPlugin, ev as deleteTablePlugin, eJ as deleteTableRecordsPlugin, dg as durableRunIdResolver, eP as eventEmissionPlugin, ck as fetchPlugin, cK as findFirstConnectionPlugin, cM as findUniqueConnectionPlugin, cd as formatErrorMessage, f0 as generateEventId, cu as getActionInputFieldsSchemaPlugin, cG as getActionPlugin, fa as getAgent, cE as getAppPlugin, dX as getBaseUrlFromCredentials, ag as getCallerContext, f6 as getCiPlatform, dY as getClientIdFromCredentials, cI as getConnectionPlugin, aB as getCoreErrorCause, aA as getCoreErrorCode, f8 as getCpuTime, f1 as getCurrentTimestamp, f7 as getMemoryUsage, aQ as getOrCreateApiClient, f3 as getOsInfo, f4 as getPlatformVersions, cV as getPreferredManifestEntryKey, c_ as getProfilePlugin, f2 as getReleaseId, er as getTablePlugin, eD as getTableRecordPlugin, dz as getTokenFromCliLogin, f9 as getTtyContext, ek as getZapierApprovalMode, em as getZapierDefaultApprovalMode, el as getZapierOpenAutoModeApprovalsInBrowser, eb as getZapierSdkService, dx as injectCliLogin, da as inputFieldKeyResolver, d9 as inputsAllOptionalResolver, d8 as inputsResolver, dw as invalidateCachedToken, dB as invalidateCredentialsToken, f5 as isCi, dy as isCliLoginAvailable, dQ as isClientCredentials, az as isCoreError, dT as isCredentialsFunction, dS as isCredentialsObject, aR as isPermanentHttpError, dR as isPkceCredentials, a1 as isPositional, cs as listActionInputFieldChoicesPlugin, cq as listActionInputFieldsPlugin, co as listActionsPlugin, cm as listAppsPlugin, cy as listClientCredentialsPlugin, cw as listConnectionsPlugin, ex as listTableFieldsPlugin, eF as listTableRecordsPlugin, ep as listTablesPlugin, ao as logDeprecation, cW as manifestPlugin, ei as parseConcurrencyEnvVar, aM as registryPlugin, cS as requestPlugin, ap as resetDeprecationWarnings, dA as resolveAuthToken, dW as resolveCredentials, dV as resolveCredentialsFromEnv, cQ as runActionPlugin, ae as runInMethodScope, ah as runWithCallerContext, af as runWithTelemetryContext, dm as tableFieldIdsResolver, dp as tableFieldsResolver, ds as tableFiltersResolver, dd as tableIdResolver, dn as tableNameResolver, dk as tableRecordIdResolver, dl as tableRecordIdsResolver, dq as tableRecordsResolver, dt as tableSortResolver, dr as tableUpdateRecordsResolver, aj as toSnakeCase, ak as toTitleCase, de as triggerInboxResolver, dj as triggerMessagesResolver, eL as updateTableRecordsPlugin, df as workflowIdResolver, di as workflowRunIdResolver, dh as workflowVersionIdResolver, b_ as zapierAdaptError } from './index-
|
|
1
|
+
import { B as BaseSdkOptions, P as PluginStack, a as PluginMeta, M as MethodHooks, C as CoreOptions, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, b as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, c as UpdateManifestEntryResult, d as AddActionEntryOptions, e as AddActionEntryResult, f as ActionEntry, g as findManifestEntry, r as readManifestFromFile, h as CapabilitiesContext, i as PaginatedSdkResult, G as GetConnectionStartUrlItem, W as WaitForNewConnectionItem, j as CreateConnectionItem, F as FieldsetItem, k as PositionalMetadata, O as OutputFormatter, l as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, m as DynamicResolver, n as WatchTriggerInboxOptions, o as ActionProxy, p as ZapierSdkApps, q as WithAddPlugin } from './index-B_Fr4RAt.mjs';
|
|
2
|
+
export { H as Action, ci as ActionExecutionOptions, Q as ActionExecutionResult, S as ActionField, V as ActionFieldChoice, aW as ActionItem, bw as ActionKeyProperty, b4 as ActionKeyPropertySchema, bx as ActionProperty, b5 as ActionPropertySchema, aK as ActionResolverItem, bI as ActionTimeoutMsProperty, bg as ActionTimeoutMsPropertySchema, aL as ActionTypeItem, bv as ActionTypeProperty, b3 as ActionTypePropertySchema, ce as ApiError, dI as ApiEvent, d0 as ApiPluginOptions, d2 as ApiPluginProvides, I as App, cj as AppFactoryInput, aU as AppItem, bt as AppKeyProperty, b1 as AppKeyPropertySchema, bu as AppProperty, b2 as AppPropertySchema, eS as ApplicationLifecycleEventData, ca as ApprovalStatus, ch as AppsPluginProvides, bN as AppsProperty, bl as AppsPropertySchema, a8 as ArrayResolver, dH as AuthEvent, bB as AuthenticationIdProperty, b8 as AuthenticationIdPropertySchema, e_ as BaseEvent, ay as BaseSdkOptionsSchema, am as BatchOptions, cP as CONTEXT_CACHE_MAX_SIZE, cO as CONTEXT_CACHE_TTL_MS, aC as CORE_ERROR_SYMBOL, ai as CallerContext, K as Choice, dO as ClientCredentialsObject, dZ as ClientCredentialsObjectSchema, _ as Connection, e5 as ConnectionEntry, e4 as ConnectionEntrySchema, bz as ConnectionIdProperty, b7 as ConnectionIdPropertySchema, aV as ConnectionItem, bA as ConnectionProperty, b9 as ConnectionPropertySchema, e7 as ConnectionsMap, e6 as ConnectionsMapSchema, e9 as ConnectionsPluginProvides, bP as ConnectionsProperty, bn as ConnectionsPropertySchema, $ as ConnectionsResponse, aD as CoreErrorCode, cB as CreateClientCredentialsPluginProvides, eA as CreateTableFieldsPluginProvides, eu as CreateTablePluginProvides, eI as CreateTableRecordsPluginProvides, dL as Credentials, e2 as CredentialsFunction, e1 as CredentialsFunctionSchema, dN as CredentialsObject, d$ as CredentialsObjectSchema, e3 as CredentialsSchema, ee as DEFAULT_ACTION_TIMEOUT_MS, en as DEFAULT_APPROVAL_TIMEOUT_MS, cY as DEFAULT_CONFIG_PATH, eo as DEFAULT_MAX_APPROVAL_RETRIES, ed as DEFAULT_PAGE_SIZE, bG as DebugProperty, be as DebugPropertySchema, cD as DeleteClientCredentialsPluginProvides, eC as DeleteTableFieldsPluginProvides, ew as DeleteTablePluginProvides, eK as DeleteTableRecordsPluginProvides, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, ab as DynamicListResolver, ac as DynamicSearchResolver, eT as EnhancedErrorEventData, bV as ErrorOptions, dK as EventCallback, eR as EventContext, eO as EventEmissionConfig, eQ as EventEmissionProvides, cl as FetchPluginProvides, J as Field, bM as FieldsProperty, bk as FieldsPropertySchema, ad as FieldsResolver, y as FindFirstAuthenticationPluginProvides, cL as FindFirstConnectionPluginProvides, z as FindUniqueAuthenticationPluginProvides, cN as FindUniqueConnectionPluginProvides, a6 as FormattedItem, ax as FunctionDeprecation, aw as FunctionRegistryEntry, cv as GetActionInputFieldsSchemaPluginProvides, cH as GetActionPluginProvides, cF as GetAppPluginProvides, x as GetAuthenticationPluginProvides, cJ as GetConnectionPluginProvides, c$ as GetProfilePluginProvides, es as GetTablePluginProvides, eE as GetTableRecordPluginProvides, aY as InfoFieldItem, aX as InputFieldItem, by as InputFieldProperty, b6 as InputFieldPropertySchema, bC as InputsProperty, ba as InputsPropertySchema, aT as JsonSseMessage, bU as LeaseLimitProperty, bs as LeaseLimitPropertySchema, bS as LeaseProperty, bq as LeasePropertySchema, bT as LeaseSecondsProperty, br as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bD as LimitProperty, bb as LimitPropertySchema, ct as ListActionInputFieldChoicesPluginProvides, cr as ListActionInputFieldsPluginProvides, cp as ListActionsPluginProvides, cn as ListAppsPluginProvides, w as ListAuthenticationsPluginProvides, cz as ListClientCredentialsPluginProvides, cx as ListConnectionsPluginProvides, ey as ListTableFieldsPluginProvides, eG as ListTableRecordsPluginProvides, eq as ListTablesPluginProvides, dJ as LoadingEvent, eh as MAX_CONCURRENCY_LIMIT, ec as MAX_PAGE_LIMIT, cZ as ManifestEntry, cU as ManifestPluginOptions, cX as ManifestPluginProvides, e$ as MethodCalledEvent, eU as MethodCalledEventData, N as Need, X as NeedsRequest, Y as NeedsResponse, bE as OffsetProperty, bc as OffsetPropertySchema, bF as OutputProperty, bd as OutputPropertySchema, b0 as PaginatedSdkFunction, bH as ParamsProperty, bf as ParamsPropertySchema, dP as PkceCredentialsObject, d_ as PkceCredentialsObjectSchema, aE as Plugin, aF as PluginProvides, aO as PollOptions, c8 as RateLimitInfo, bK as RecordProperty, bi as RecordPropertySchema, bL as RecordsProperty, bj as RecordsPropertySchema, ar as RelayFetchSchema, aq as RelayRequestSchema, aN as RequestOptions, cT as RequestPluginProvides, du as ResolveAuthTokenOptions, dU as ResolveCredentialsOptions, dM as ResolvedCredentials, e0 as ResolvedCredentialsSchema, a7 as Resolver, a9 as ResolverMetadata, aZ as RootFieldItem, cR as RunActionPluginProvides, dG as SdkEvent, a$ as SdkPage, aS as SseMessage, aa as StaticResolver, bJ as TableProperty, bh as TablePropertySchema, bO as TablesProperty, bm as TablesPropertySchema, bR as TriggerInboxNameProperty, bp as TriggerInboxNamePropertySchema, bQ as TriggerInboxProperty, bo as TriggerInboxPropertySchema, T as TriggerMessageStatus, eM as UpdateTableRecordsPluginProvides, a0 as UserProfile, a_ as UserProfileItem, ea as ZAPIER_BASE_URL, ej as ZAPIER_MAX_CONCURRENT_REQUESTS, ef as ZAPIER_MAX_NETWORK_RETRIES, eg as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, c6 as ZapierActionError, b$ as ZapierApiError, c0 as ZapierAppNotFoundError, cb as ZapierApprovalError, bZ as ZapierAuthenticationError, c4 as ZapierBundleError, dC as ZapierCache, dD as ZapierCacheEntry, dE as ZapierCacheSetOptions, c3 as ZapierConfigurationError, c7 as ZapierConflictError, bW as ZapierError, c1 as ZapierNotFoundError, c9 as ZapierRateLimitError, cc as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, c2 as ZapierResourceNotFoundError, cf as ZapierSignal, c5 as ZapierTimeoutError, bY as ZapierUnknownError, bX as ZapierValidationError, d5 as actionKeyResolver, d4 as actionTypeResolver, a5 as addPlugin, d1 as apiPlugin, d3 as appKeyResolver, cg as appsPlugin, d7 as authenticationIdGenericResolver, d6 as authenticationIdResolver, al as batch, eV as buildApplicationLifecycleEvent, an as buildCapabilityMessage, eX as buildErrorEvent, eW as buildErrorEventWithContext, eZ as buildMethodCalledEvent, eN as cleanupEventListeners, dv as clearTokenCache, db as clientCredentialsNameResolver, dc as clientIdResolver, aJ as composePlugins, d7 as connectionIdGenericResolver, d6 as connectionIdResolver, e8 as connectionsPlugin, eY as createBaseEvent, cA as createClientCredentialsPlugin, a4 as createCorePlugin, a2 as createFunction, dF as createMemoryCache, au as createOptionsPlugin, aI as createPaginatedPluginMethod, aH as createPluginMethod, a3 as createPluginStack, at as createSdk, ez as createTableFieldsPlugin, et as createTablePlugin, eH as createTableRecordsPlugin, aP as createZapierApi, av as createZapierCoreStack, as as createZapierSdkWithoutRegistry, aG as definePlugin, cC as deleteClientCredentialsPlugin, eB as deleteTableFieldsPlugin, ev as deleteTablePlugin, eJ as deleteTableRecordsPlugin, dg as durableRunIdResolver, eP as eventEmissionPlugin, ck as fetchPlugin, cK as findFirstConnectionPlugin, cM as findUniqueConnectionPlugin, cd as formatErrorMessage, f0 as generateEventId, cu as getActionInputFieldsSchemaPlugin, cG as getActionPlugin, fa as getAgent, cE as getAppPlugin, dX as getBaseUrlFromCredentials, ag as getCallerContext, f6 as getCiPlatform, dY as getClientIdFromCredentials, cI as getConnectionPlugin, aB as getCoreErrorCause, aA as getCoreErrorCode, f8 as getCpuTime, f1 as getCurrentTimestamp, f7 as getMemoryUsage, aQ as getOrCreateApiClient, f3 as getOsInfo, f4 as getPlatformVersions, cV as getPreferredManifestEntryKey, c_ as getProfilePlugin, f2 as getReleaseId, er as getTablePlugin, eD as getTableRecordPlugin, dz as getTokenFromCliLogin, f9 as getTtyContext, ek as getZapierApprovalMode, em as getZapierDefaultApprovalMode, el as getZapierOpenAutoModeApprovalsInBrowser, eb as getZapierSdkService, dx as injectCliLogin, da as inputFieldKeyResolver, d9 as inputsAllOptionalResolver, d8 as inputsResolver, dw as invalidateCachedToken, dB as invalidateCredentialsToken, f5 as isCi, dy as isCliLoginAvailable, dQ as isClientCredentials, az as isCoreError, dT as isCredentialsFunction, dS as isCredentialsObject, aR as isPermanentHttpError, dR as isPkceCredentials, a1 as isPositional, cs as listActionInputFieldChoicesPlugin, cq as listActionInputFieldsPlugin, co as listActionsPlugin, cm as listAppsPlugin, cy as listClientCredentialsPlugin, cw as listConnectionsPlugin, ex as listTableFieldsPlugin, eF as listTableRecordsPlugin, ep as listTablesPlugin, ao as logDeprecation, cW as manifestPlugin, ei as parseConcurrencyEnvVar, aM as registryPlugin, cS as requestPlugin, ap as resetDeprecationWarnings, dA as resolveAuthToken, dW as resolveCredentials, dV as resolveCredentialsFromEnv, cQ as runActionPlugin, ae as runInMethodScope, ah as runWithCallerContext, af as runWithTelemetryContext, dm as tableFieldIdsResolver, dp as tableFieldsResolver, ds as tableFiltersResolver, dd as tableIdResolver, dn as tableNameResolver, dk as tableRecordIdResolver, dl as tableRecordIdsResolver, dq as tableRecordsResolver, dt as tableSortResolver, dr as tableUpdateRecordsResolver, aj as toSnakeCase, ak as toTitleCase, de as triggerInboxResolver, dj as triggerMessagesResolver, eL as updateTableRecordsPlugin, df as workflowIdResolver, di as workflowRunIdResolver, dh as workflowVersionIdResolver, b_ as zapierAdaptError } from './index-B_Fr4RAt.mjs';
|
|
3
3
|
import * as zod_v4_core from 'zod/v4/core';
|
|
4
4
|
import * as zod from 'zod';
|
|
5
5
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
@@ -2588,9 +2588,11 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
|
|
|
2588
2588
|
status: "active" | "unclaimed" | "pending" | "releasing" | "released" | "failed";
|
|
2589
2589
|
authentication_id?: string | null | undefined;
|
|
2590
2590
|
params?: Record<string, unknown> | undefined;
|
|
2591
|
+
error?: string | null | undefined;
|
|
2591
2592
|
}[];
|
|
2592
2593
|
created_at: string;
|
|
2593
2594
|
updated_at: string;
|
|
2595
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
2594
2596
|
}>;
|
|
2595
2597
|
} & {
|
|
2596
2598
|
context: {
|
|
@@ -2616,9 +2618,11 @@ declare function createZapierSdkStack(options?: ZapierSdkOptions): PluginStack<o
|
|
|
2616
2618
|
status: "active" | "unclaimed" | "pending" | "releasing" | "released" | "failed";
|
|
2617
2619
|
authentication_id?: string | null | undefined;
|
|
2618
2620
|
params?: Record<string, unknown> | undefined;
|
|
2621
|
+
error?: string | null | undefined;
|
|
2619
2622
|
}[];
|
|
2620
2623
|
created_at: string;
|
|
2621
2624
|
updated_at: string;
|
|
2625
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
2622
2626
|
current_version?: {
|
|
2623
2627
|
id: string;
|
|
2624
2628
|
workflow_id: string;
|
|
@@ -5788,9 +5792,11 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
|
|
|
5788
5792
|
status: "active" | "unclaimed" | "pending" | "releasing" | "released" | "failed";
|
|
5789
5793
|
authentication_id?: string | null | undefined;
|
|
5790
5794
|
params?: Record<string, unknown> | undefined;
|
|
5795
|
+
error?: string | null | undefined;
|
|
5791
5796
|
}[];
|
|
5792
5797
|
created_at: string;
|
|
5793
5798
|
updated_at: string;
|
|
5799
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
5794
5800
|
}>;
|
|
5795
5801
|
} & {
|
|
5796
5802
|
context: {
|
|
@@ -5816,9 +5822,11 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<obje
|
|
|
5816
5822
|
status: "active" | "unclaimed" | "pending" | "releasing" | "released" | "failed";
|
|
5817
5823
|
authentication_id?: string | null | undefined;
|
|
5818
5824
|
params?: Record<string, unknown> | undefined;
|
|
5825
|
+
error?: string | null | undefined;
|
|
5819
5826
|
}[];
|
|
5820
5827
|
created_at: string;
|
|
5821
5828
|
updated_at: string;
|
|
5829
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
5822
5830
|
current_version?: {
|
|
5823
5831
|
id: string;
|
|
5824
5832
|
workflow_id: string;
|
package/dist/experimental.d.ts
CHANGED
|
@@ -2603,9 +2603,11 @@ export declare function createZapierSdkStack(options?: ZapierSdkOptions): import
|
|
|
2603
2603
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
2604
2604
|
authentication_id?: string | null | undefined;
|
|
2605
2605
|
params?: Record<string, unknown> | undefined;
|
|
2606
|
+
error?: string | null | undefined;
|
|
2606
2607
|
}[];
|
|
2607
2608
|
created_at: string;
|
|
2608
2609
|
updated_at: string;
|
|
2610
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
2609
2611
|
}>;
|
|
2610
2612
|
} & {
|
|
2611
2613
|
context: {
|
|
@@ -2631,9 +2633,11 @@ export declare function createZapierSdkStack(options?: ZapierSdkOptions): import
|
|
|
2631
2633
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
2632
2634
|
authentication_id?: string | null | undefined;
|
|
2633
2635
|
params?: Record<string, unknown> | undefined;
|
|
2636
|
+
error?: string | null | undefined;
|
|
2634
2637
|
}[];
|
|
2635
2638
|
created_at: string;
|
|
2636
2639
|
updated_at: string;
|
|
2640
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
2637
2641
|
current_version?: {
|
|
2638
2642
|
id: string;
|
|
2639
2643
|
workflow_id: string;
|
|
@@ -5803,9 +5807,11 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("kit
|
|
|
5803
5807
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
5804
5808
|
authentication_id?: string | null | undefined;
|
|
5805
5809
|
params?: Record<string, unknown> | undefined;
|
|
5810
|
+
error?: string | null | undefined;
|
|
5806
5811
|
}[];
|
|
5807
5812
|
created_at: string;
|
|
5808
5813
|
updated_at: string;
|
|
5814
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
5809
5815
|
}>;
|
|
5810
5816
|
} & {
|
|
5811
5817
|
context: {
|
|
@@ -5831,9 +5837,11 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("kit
|
|
|
5831
5837
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
5832
5838
|
authentication_id?: string | null | undefined;
|
|
5833
5839
|
params?: Record<string, unknown> | undefined;
|
|
5840
|
+
error?: string | null | undefined;
|
|
5834
5841
|
}[];
|
|
5835
5842
|
created_at: string;
|
|
5836
5843
|
updated_at: string;
|
|
5844
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
5837
5845
|
current_version?: {
|
|
5838
5846
|
id: string;
|
|
5839
5847
|
workflow_id: string;
|
|
@@ -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;AA+F1C,cAAc,SAAS,CAAC;AAExB,MAAM,WAAW,gBAAiB,SAAQ,cAAc;CAAG;AAE3D;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,gBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAmJikC,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,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAhBhhD;AASD,MAAM,WAAW,SAAU,SAAQ,UAAU,CAAC,OAAO,eAAe,CAAC;CAAG;AAMxE,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
package/dist/experimental.mjs
CHANGED
|
@@ -3316,7 +3316,7 @@ function parseApprovalReviewStreamPayload(parsed, toolNames) {
|
|
|
3316
3316
|
}
|
|
3317
3317
|
|
|
3318
3318
|
// src/sdk-version.ts
|
|
3319
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.74.
|
|
3319
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.74.1" : void 0) || "unknown";
|
|
3320
3320
|
|
|
3321
3321
|
// src/utils/open-url.ts
|
|
3322
3322
|
var nodePrefix = "node:";
|
|
@@ -11875,6 +11875,7 @@ var WorkflowTriggerStatusSchema = z.enum([
|
|
|
11875
11875
|
"released",
|
|
11876
11876
|
"failed"
|
|
11877
11877
|
]);
|
|
11878
|
+
var WorkflowDisabledReasonSchema = z.enum(["trigger_claim_failed"]);
|
|
11878
11879
|
var WorkflowTriggerSchema = z.object({
|
|
11879
11880
|
selected_api: z.string().describe("Zapier app/API identifier (e.g. 'GoogleSheetsAPI')"),
|
|
11880
11881
|
action: z.string().describe("Trigger action key (e.g. 'new_row')"),
|
|
@@ -11884,6 +11885,12 @@ var WorkflowTriggerSchema = z.object({
|
|
|
11884
11885
|
params: z.record(z.string(), z.unknown()).optional().describe("Trigger parameters as a JSON object"),
|
|
11885
11886
|
status: WorkflowTriggerStatusSchema.describe(
|
|
11886
11887
|
"Live trigger claim status \u2014 whether the trigger is currently subscribed to its source."
|
|
11888
|
+
),
|
|
11889
|
+
// Optional until COSUB-630 ships the field server-side; afterwards the API
|
|
11890
|
+
// always sends it (null unless status=failed). Already sanitized at write
|
|
11891
|
+
// time — surface verbatim.
|
|
11892
|
+
error: z.string().nullable().optional().describe(
|
|
11893
|
+
"Failure reason for the latest claim. Present (non-null) only when status is 'failed'."
|
|
11887
11894
|
)
|
|
11888
11895
|
}).describe(
|
|
11889
11896
|
"Trigger from a workflow's current version, combined with the live claim status."
|
|
@@ -11898,6 +11905,11 @@ var WorkflowItemSchema = z.object({
|
|
|
11898
11905
|
"Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path \u2014 treat as sensitive."
|
|
11899
11906
|
),
|
|
11900
11907
|
enabled: z.boolean().describe("Whether the workflow currently accepts triggers"),
|
|
11908
|
+
// Optional until COSUB-630 ships the field server-side; afterwards the API
|
|
11909
|
+
// always sends it (null unless the workflow was system-disabled).
|
|
11910
|
+
disabled_reason: WorkflowDisabledReasonSchema.nullable().optional().describe(
|
|
11911
|
+
"Why the workflow is off, when system-disabled. Null when not system-disabled."
|
|
11912
|
+
),
|
|
11901
11913
|
is_private: z.boolean().describe(
|
|
11902
11914
|
"Whether the workflow is private to the creating user. False means account-visible."
|
|
11903
11915
|
),
|
|
@@ -11989,6 +12001,12 @@ var GetWorkflowResponseSchema = z.object({
|
|
|
11989
12001
|
"Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path \u2014 treat as sensitive."
|
|
11990
12002
|
),
|
|
11991
12003
|
enabled: z.boolean().describe("Whether the workflow currently accepts triggers"),
|
|
12004
|
+
// Optional until COSUB-630 ships the field server-side; afterwards the API
|
|
12005
|
+
// always sends it (null unless the workflow was system-disabled). Kept
|
|
12006
|
+
// independent of per-trigger status+error — see WorkflowDisabledReasonSchema.
|
|
12007
|
+
disabled_reason: WorkflowDisabledReasonSchema.nullable().optional().describe(
|
|
12008
|
+
"Why the workflow is off, when system-disabled. Null when not system-disabled. Independent of per-trigger claim status: an enabled workflow can still have a failed trigger."
|
|
12009
|
+
),
|
|
11992
12010
|
is_private: z.boolean().describe(
|
|
11993
12011
|
"Whether the workflow is private to the creating user. False means account-visible."
|
|
11994
12012
|
),
|
|
@@ -7581,9 +7581,11 @@ declare const listWorkflowsPlugin: (sdk: {
|
|
|
7581
7581
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
7582
7582
|
authentication_id?: string | null | undefined;
|
|
7583
7583
|
params?: Record<string, unknown> | undefined;
|
|
7584
|
+
error?: string | null | undefined;
|
|
7584
7585
|
}[];
|
|
7585
7586
|
created_at: string;
|
|
7586
7587
|
updated_at: string;
|
|
7588
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
7587
7589
|
}>;
|
|
7588
7590
|
} & {
|
|
7589
7591
|
context: {
|
|
@@ -7600,6 +7602,9 @@ declare const WorkflowItemSchema: z.ZodObject<{
|
|
|
7600
7602
|
description: z.ZodNullable<z.ZodString>;
|
|
7601
7603
|
trigger_url: z.ZodString;
|
|
7602
7604
|
enabled: z.ZodBoolean;
|
|
7605
|
+
disabled_reason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
7606
|
+
trigger_claim_failed: "trigger_claim_failed";
|
|
7607
|
+
}>>>;
|
|
7603
7608
|
is_private: z.ZodBoolean;
|
|
7604
7609
|
created_by_user_id: z.ZodNullable<z.ZodString>;
|
|
7605
7610
|
current_version_id: z.ZodNullable<z.ZodString>;
|
|
@@ -7616,6 +7621,7 @@ declare const WorkflowItemSchema: z.ZodObject<{
|
|
|
7616
7621
|
releasing: "releasing";
|
|
7617
7622
|
released: "released";
|
|
7618
7623
|
}>;
|
|
7624
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7619
7625
|
}, z.core.$strip>>;
|
|
7620
7626
|
created_at: z.ZodString;
|
|
7621
7627
|
updated_at: z.ZodString;
|
|
@@ -7745,9 +7751,11 @@ declare const listWorkflowVersionsPlugin: (sdk: {
|
|
|
7745
7751
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
7746
7752
|
authentication_id?: string | null | undefined;
|
|
7747
7753
|
params?: Record<string, unknown> | undefined;
|
|
7754
|
+
error?: string | null | undefined;
|
|
7748
7755
|
}[];
|
|
7749
7756
|
created_at: string;
|
|
7750
7757
|
updated_at: string;
|
|
7758
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
7751
7759
|
}>;
|
|
7752
7760
|
} & {
|
|
7753
7761
|
context: {
|
|
@@ -7868,9 +7876,11 @@ declare const listWorkflowRunsPlugin: (sdk: {
|
|
|
7868
7876
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
7869
7877
|
authentication_id?: string | null | undefined;
|
|
7870
7878
|
params?: Record<string, unknown> | undefined;
|
|
7879
|
+
error?: string | null | undefined;
|
|
7871
7880
|
}[];
|
|
7872
7881
|
created_at: string;
|
|
7873
7882
|
updated_at: string;
|
|
7883
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
7874
7884
|
}>;
|
|
7875
7885
|
} & {
|
|
7876
7886
|
context: {
|
|
@@ -7581,9 +7581,11 @@ declare const listWorkflowsPlugin: (sdk: {
|
|
|
7581
7581
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
7582
7582
|
authentication_id?: string | null | undefined;
|
|
7583
7583
|
params?: Record<string, unknown> | undefined;
|
|
7584
|
+
error?: string | null | undefined;
|
|
7584
7585
|
}[];
|
|
7585
7586
|
created_at: string;
|
|
7586
7587
|
updated_at: string;
|
|
7588
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
7587
7589
|
}>;
|
|
7588
7590
|
} & {
|
|
7589
7591
|
context: {
|
|
@@ -7600,6 +7602,9 @@ declare const WorkflowItemSchema: z.ZodObject<{
|
|
|
7600
7602
|
description: z.ZodNullable<z.ZodString>;
|
|
7601
7603
|
trigger_url: z.ZodString;
|
|
7602
7604
|
enabled: z.ZodBoolean;
|
|
7605
|
+
disabled_reason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
7606
|
+
trigger_claim_failed: "trigger_claim_failed";
|
|
7607
|
+
}>>>;
|
|
7603
7608
|
is_private: z.ZodBoolean;
|
|
7604
7609
|
created_by_user_id: z.ZodNullable<z.ZodString>;
|
|
7605
7610
|
current_version_id: z.ZodNullable<z.ZodString>;
|
|
@@ -7616,6 +7621,7 @@ declare const WorkflowItemSchema: z.ZodObject<{
|
|
|
7616
7621
|
releasing: "releasing";
|
|
7617
7622
|
released: "released";
|
|
7618
7623
|
}>;
|
|
7624
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7619
7625
|
}, z.core.$strip>>;
|
|
7620
7626
|
created_at: z.ZodString;
|
|
7621
7627
|
updated_at: z.ZodString;
|
|
@@ -7745,9 +7751,11 @@ declare const listWorkflowVersionsPlugin: (sdk: {
|
|
|
7745
7751
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
7746
7752
|
authentication_id?: string | null | undefined;
|
|
7747
7753
|
params?: Record<string, unknown> | undefined;
|
|
7754
|
+
error?: string | null | undefined;
|
|
7748
7755
|
}[];
|
|
7749
7756
|
created_at: string;
|
|
7750
7757
|
updated_at: string;
|
|
7758
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
7751
7759
|
}>;
|
|
7752
7760
|
} & {
|
|
7753
7761
|
context: {
|
|
@@ -7868,9 +7876,11 @@ declare const listWorkflowRunsPlugin: (sdk: {
|
|
|
7868
7876
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
7869
7877
|
authentication_id?: string | null | undefined;
|
|
7870
7878
|
params?: Record<string, unknown> | undefined;
|
|
7879
|
+
error?: string | null | undefined;
|
|
7871
7880
|
}[];
|
|
7872
7881
|
created_at: string;
|
|
7873
7882
|
updated_at: string;
|
|
7883
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
7874
7884
|
}>;
|
|
7875
7885
|
} & {
|
|
7876
7886
|
context: {
|
package/dist/index.cjs
CHANGED
|
@@ -6911,7 +6911,7 @@ function parseApprovalReviewStreamPayload(parsed, toolNames) {
|
|
|
6911
6911
|
}
|
|
6912
6912
|
|
|
6913
6913
|
// src/sdk-version.ts
|
|
6914
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.74.
|
|
6914
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.74.1" : void 0) || "unknown";
|
|
6915
6915
|
|
|
6916
6916
|
// src/utils/open-url.ts
|
|
6917
6917
|
var nodePrefix = "node:";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { H as Action, f as ActionEntry, ci as ActionExecutionOptions, Q as ActionExecutionResult, S as ActionField, V as ActionFieldChoice, aW as ActionItem, bw as ActionKeyProperty, b4 as ActionKeyPropertySchema, bx as ActionProperty, b5 as ActionPropertySchema, aK as ActionResolverItem, bI as ActionTimeoutMsProperty, bg as ActionTimeoutMsPropertySchema, aL as ActionTypeItem, bv as ActionTypeProperty, b3 as ActionTypePropertySchema, d as AddActionEntryOptions, e as AddActionEntryResult, A as ApiClient, ce as ApiError, dI as ApiEvent, d0 as ApiPluginOptions, d2 as ApiPluginProvides, I as App, cj as AppFactoryInput, aU as AppItem, bt as AppKeyProperty, b1 as AppKeyPropertySchema, bu as AppProperty, b2 as AppPropertySchema, eS as ApplicationLifecycleEventData, ca as ApprovalStatus, ch as AppsPluginProvides, bN as AppsProperty, bl as AppsPropertySchema, a8 as ArrayResolver, dH as AuthEvent, bB as AuthenticationIdProperty, b8 as AuthenticationIdPropertySchema, e_ as BaseEvent, ay as BaseSdkOptionsSchema, am as BatchOptions, cP as CONTEXT_CACHE_MAX_SIZE, cO as CONTEXT_CACHE_TTL_MS, aC as CORE_ERROR_SYMBOL, ai as CallerContext, K as Choice, dO as ClientCredentialsObject, dZ as ClientCredentialsObjectSchema, _ as Connection, e5 as ConnectionEntry, e4 as ConnectionEntrySchema, bz as ConnectionIdProperty, b7 as ConnectionIdPropertySchema, aV as ConnectionItem, bA as ConnectionProperty, b9 as ConnectionPropertySchema, e7 as ConnectionsMap, e6 as ConnectionsMapSchema, e9 as ConnectionsPluginProvides, bP as ConnectionsProperty, bn as ConnectionsPropertySchema, $ as ConnectionsResponse, aD as CoreErrorCode, cB as CreateClientCredentialsPluginProvides, eA as CreateTableFieldsPluginProvides, eu as CreateTablePluginProvides, eI as CreateTableRecordsPluginProvides, dL as Credentials, e2 as CredentialsFunction, e1 as CredentialsFunctionSchema, dN as CredentialsObject, d$ as CredentialsObjectSchema, e3 as CredentialsSchema, ee as DEFAULT_ACTION_TIMEOUT_MS, en as DEFAULT_APPROVAL_TIMEOUT_MS, cY as DEFAULT_CONFIG_PATH, eo as DEFAULT_MAX_APPROVAL_RETRIES, ed as DEFAULT_PAGE_SIZE, bG as DebugProperty, be as DebugPropertySchema, cD as DeleteClientCredentialsPluginProvides, eC as DeleteTableFieldsPluginProvides, ew as DeleteTablePluginProvides, eK as DeleteTableRecordsPluginProvides, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, D as DrainTriggerInboxOptions, ab as DynamicListResolver, m as DynamicResolver, ac as DynamicSearchResolver, eT as EnhancedErrorEventData, bV as ErrorOptions, dK as EventCallback, eR as EventContext, eO as EventEmissionConfig, E as EventEmissionContext, eQ as EventEmissionProvides, cl as FetchPluginProvides, J as Field, bM as FieldsProperty, bk as FieldsPropertySchema, ad as FieldsResolver, F as FieldsetItem, y as FindFirstAuthenticationPluginProvides, cL as FindFirstConnectionPluginProvides, z as FindUniqueAuthenticationPluginProvides, cN as FindUniqueConnectionPluginProvides, a6 as FormattedItem, ax as FunctionDeprecation, aw as FunctionRegistryEntry, cv as GetActionInputFieldsSchemaPluginProvides, cH as GetActionPluginProvides, cF as GetAppPluginProvides, x as GetAuthenticationPluginProvides, cJ as GetConnectionPluginProvides, c$ as GetProfilePluginProvides, es as GetTablePluginProvides, eE as GetTableRecordPluginProvides, aY as InfoFieldItem, aX as InputFieldItem, by as InputFieldProperty, b6 as InputFieldPropertySchema, bC as InputsProperty, ba as InputsPropertySchema, aT as JsonSseMessage, bU as LeaseLimitProperty, bs as LeaseLimitPropertySchema, bS as LeaseProperty, bq as LeasePropertySchema, bT as LeaseSecondsProperty, br as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bD as LimitProperty, bb as LimitPropertySchema, ct as ListActionInputFieldChoicesPluginProvides, cr as ListActionInputFieldsPluginProvides, cp as ListActionsPluginProvides, cn as ListAppsPluginProvides, w as ListAuthenticationsPluginProvides, cz as ListClientCredentialsPluginProvides, cx as ListConnectionsPluginProvides, ey as ListTableFieldsPluginProvides, eG as ListTableRecordsPluginProvides, eq as ListTablesPluginProvides, dJ as LoadingEvent, eh as MAX_CONCURRENCY_LIMIT, ec as MAX_PAGE_LIMIT, b as Manifest, cZ as ManifestEntry, cU as ManifestPluginOptions, cX as ManifestPluginProvides, e$ as MethodCalledEvent, eU as MethodCalledEventData, N as Need, X as NeedsRequest, Y as NeedsResponse, bE as OffsetProperty, bc as OffsetPropertySchema, O as OutputFormatter, bF as OutputProperty, bd as OutputPropertySchema, b0 as PaginatedSdkFunction, i as PaginatedSdkResult, bH as ParamsProperty, bf as ParamsPropertySchema, dP as PkceCredentialsObject, d_ as PkceCredentialsObjectSchema, aE as Plugin, a as PluginMeta, aF as PluginProvides, aO as PollOptions, k as PositionalMetadata, c8 as RateLimitInfo, bK as RecordProperty, bi as RecordPropertySchema, bL as RecordsProperty, bj as RecordsPropertySchema, ar as RelayFetchSchema, aq as RelayRequestSchema, aN as RequestOptions, cT as RequestPluginProvides, du as ResolveAuthTokenOptions, dU as ResolveCredentialsOptions, R as ResolvedAppLocator, dM as ResolvedCredentials, e0 as ResolvedCredentialsSchema, a7 as Resolver, a9 as ResolverMetadata, aZ as RootFieldItem, cR as RunActionPluginProvides, dG as SdkEvent, a$ as SdkPage, aS as SseMessage, aa as StaticResolver, bJ as TableProperty, bh as TablePropertySchema, bO as TablesProperty, bm as TablesPropertySchema, bR as TriggerInboxNameProperty, bp as TriggerInboxNamePropertySchema, bQ as TriggerInboxProperty, bo as TriggerInboxPropertySchema, T as TriggerMessageStatus, U as UpdateManifestEntryOptions, c as UpdateManifestEntryResult, eM as UpdateTableRecordsPluginProvides, a0 as UserProfile, a_ as UserProfileItem, n as WatchTriggerInboxOptions, q as WithAddPlugin, ea as ZAPIER_BASE_URL, ej as ZAPIER_MAX_CONCURRENT_REQUESTS, ef as ZAPIER_MAX_NETWORK_RETRIES, eg as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, c6 as ZapierActionError, b$ as ZapierApiError, c0 as ZapierAppNotFoundError, cb as ZapierApprovalError, bZ as ZapierAuthenticationError, c4 as ZapierBundleError, dC as ZapierCache, dD as ZapierCacheEntry, dE as ZapierCacheSetOptions, c3 as ZapierConfigurationError, c7 as ZapierConflictError, bW as ZapierError, l as ZapierFetchInitOptions, c1 as ZapierNotFoundError, c9 as ZapierRateLimitError, cc as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, c2 as ZapierResourceNotFoundError, fd as ZapierSdk, p as ZapierSdkApps, Z as ZapierSdkOptions, cf as ZapierSignal, c5 as ZapierTimeoutError, bY as ZapierUnknownError, bX as ZapierValidationError, d5 as actionKeyResolver, d4 as actionTypeResolver, a5 as addPlugin, d1 as apiPlugin, d3 as appKeyResolver, cg as appsPlugin, d7 as authenticationIdGenericResolver, d6 as authenticationIdResolver, al as batch, eV as buildApplicationLifecycleEvent, an as buildCapabilityMessage, eX as buildErrorEvent, eW as buildErrorEventWithContext, eZ as buildMethodCalledEvent, eN as cleanupEventListeners, dv as clearTokenCache, db as clientCredentialsNameResolver, dc as clientIdResolver, aJ as composePlugins, d7 as connectionIdGenericResolver, d6 as connectionIdResolver, e8 as connectionsPlugin, eY as createBaseEvent, cA as createClientCredentialsPlugin, a4 as createCorePlugin, a2 as createFunction, dF as createMemoryCache, au as createOptionsPlugin, aI as createPaginatedPluginMethod, aH as createPluginMethod, a3 as createPluginStack, at as createSdk, ez as createTableFieldsPlugin, et as createTablePlugin, eH as createTableRecordsPlugin, aP as createZapierApi, av as createZapierCoreStack, fb as createZapierSdk, fc as createZapierSdkStack, as as createZapierSdkWithoutRegistry, aG as definePlugin, cC as deleteClientCredentialsPlugin, eB as deleteTableFieldsPlugin, ev as deleteTablePlugin, eJ as deleteTableRecordsPlugin, dg as durableRunIdResolver, eP as eventEmissionPlugin, ck as fetchPlugin, cK as findFirstConnectionPlugin, g as findManifestEntry, cM as findUniqueConnectionPlugin, cd as formatErrorMessage, f0 as generateEventId, cu as getActionInputFieldsSchemaPlugin, cG as getActionPlugin, fa as getAgent, cE as getAppPlugin, dX as getBaseUrlFromCredentials, ag as getCallerContext, f6 as getCiPlatform, dY as getClientIdFromCredentials, cI as getConnectionPlugin, aB as getCoreErrorCause, aA as getCoreErrorCode, f8 as getCpuTime, f1 as getCurrentTimestamp, f7 as getMemoryUsage, aQ as getOrCreateApiClient, f3 as getOsInfo, f4 as getPlatformVersions, cV as getPreferredManifestEntryKey, c_ as getProfilePlugin, f2 as getReleaseId, er as getTablePlugin, eD as getTableRecordPlugin, dz as getTokenFromCliLogin, f9 as getTtyContext, ek as getZapierApprovalMode, em as getZapierDefaultApprovalMode, el as getZapierOpenAutoModeApprovalsInBrowser, eb as getZapierSdkService, dx as injectCliLogin, da as inputFieldKeyResolver, d9 as inputsAllOptionalResolver, d8 as inputsResolver, dw as invalidateCachedToken, dB as invalidateCredentialsToken, f5 as isCi, dy as isCliLoginAvailable, dQ as isClientCredentials, az as isCoreError, dT as isCredentialsFunction, dS as isCredentialsObject, aR as isPermanentHttpError, dR as isPkceCredentials, a1 as isPositional, cs as listActionInputFieldChoicesPlugin, cq as listActionInputFieldsPlugin, co as listActionsPlugin, cm as listAppsPlugin, cy as listClientCredentialsPlugin, cw as listConnectionsPlugin, ex as listTableFieldsPlugin, eF as listTableRecordsPlugin, ep as listTablesPlugin, ao as logDeprecation, cW as manifestPlugin, ei as parseConcurrencyEnvVar, r as readManifestFromFile, aM as registryPlugin, cS as requestPlugin, ap as resetDeprecationWarnings, dA as resolveAuthToken, dW as resolveCredentials, dV as resolveCredentialsFromEnv, cQ as runActionPlugin, ae as runInMethodScope, ah as runWithCallerContext, af as runWithTelemetryContext, dm as tableFieldIdsResolver, dp as tableFieldsResolver, ds as tableFiltersResolver, dd as tableIdResolver, dn as tableNameResolver, dk as tableRecordIdResolver, dl as tableRecordIdsResolver, dq as tableRecordsResolver, dt as tableSortResolver, dr as tableUpdateRecordsResolver, aj as toSnakeCase, ak as toTitleCase, de as triggerInboxResolver, dj as triggerMessagesResolver, eL as updateTableRecordsPlugin, df as workflowIdResolver, di as workflowRunIdResolver, dh as workflowVersionIdResolver, b_ as zapierAdaptError } from './index-WMit6fkJ.mjs';
|
|
1
|
+
export { H as Action, f as ActionEntry, ci as ActionExecutionOptions, Q as ActionExecutionResult, S as ActionField, V as ActionFieldChoice, aW as ActionItem, bw as ActionKeyProperty, b4 as ActionKeyPropertySchema, bx as ActionProperty, b5 as ActionPropertySchema, aK as ActionResolverItem, bI as ActionTimeoutMsProperty, bg as ActionTimeoutMsPropertySchema, aL as ActionTypeItem, bv as ActionTypeProperty, b3 as ActionTypePropertySchema, d as AddActionEntryOptions, e as AddActionEntryResult, A as ApiClient, ce as ApiError, dI as ApiEvent, d0 as ApiPluginOptions, d2 as ApiPluginProvides, I as App, cj as AppFactoryInput, aU as AppItem, bt as AppKeyProperty, b1 as AppKeyPropertySchema, bu as AppProperty, b2 as AppPropertySchema, eS as ApplicationLifecycleEventData, ca as ApprovalStatus, ch as AppsPluginProvides, bN as AppsProperty, bl as AppsPropertySchema, a8 as ArrayResolver, dH as AuthEvent, bB as AuthenticationIdProperty, b8 as AuthenticationIdPropertySchema, e_ as BaseEvent, ay as BaseSdkOptionsSchema, am as BatchOptions, cP as CONTEXT_CACHE_MAX_SIZE, cO as CONTEXT_CACHE_TTL_MS, aC as CORE_ERROR_SYMBOL, ai as CallerContext, K as Choice, dO as ClientCredentialsObject, dZ as ClientCredentialsObjectSchema, _ as Connection, e5 as ConnectionEntry, e4 as ConnectionEntrySchema, bz as ConnectionIdProperty, b7 as ConnectionIdPropertySchema, aV as ConnectionItem, bA as ConnectionProperty, b9 as ConnectionPropertySchema, e7 as ConnectionsMap, e6 as ConnectionsMapSchema, e9 as ConnectionsPluginProvides, bP as ConnectionsProperty, bn as ConnectionsPropertySchema, $ as ConnectionsResponse, aD as CoreErrorCode, cB as CreateClientCredentialsPluginProvides, eA as CreateTableFieldsPluginProvides, eu as CreateTablePluginProvides, eI as CreateTableRecordsPluginProvides, dL as Credentials, e2 as CredentialsFunction, e1 as CredentialsFunctionSchema, dN as CredentialsObject, d$ as CredentialsObjectSchema, e3 as CredentialsSchema, ee as DEFAULT_ACTION_TIMEOUT_MS, en as DEFAULT_APPROVAL_TIMEOUT_MS, cY as DEFAULT_CONFIG_PATH, eo as DEFAULT_MAX_APPROVAL_RETRIES, ed as DEFAULT_PAGE_SIZE, bG as DebugProperty, be as DebugPropertySchema, cD as DeleteClientCredentialsPluginProvides, eC as DeleteTableFieldsPluginProvides, ew as DeleteTablePluginProvides, eK as DeleteTableRecordsPluginProvides, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, D as DrainTriggerInboxOptions, ab as DynamicListResolver, m as DynamicResolver, ac as DynamicSearchResolver, eT as EnhancedErrorEventData, bV as ErrorOptions, dK as EventCallback, eR as EventContext, eO as EventEmissionConfig, E as EventEmissionContext, eQ as EventEmissionProvides, cl as FetchPluginProvides, J as Field, bM as FieldsProperty, bk as FieldsPropertySchema, ad as FieldsResolver, F as FieldsetItem, y as FindFirstAuthenticationPluginProvides, cL as FindFirstConnectionPluginProvides, z as FindUniqueAuthenticationPluginProvides, cN as FindUniqueConnectionPluginProvides, a6 as FormattedItem, ax as FunctionDeprecation, aw as FunctionRegistryEntry, cv as GetActionInputFieldsSchemaPluginProvides, cH as GetActionPluginProvides, cF as GetAppPluginProvides, x as GetAuthenticationPluginProvides, cJ as GetConnectionPluginProvides, c$ as GetProfilePluginProvides, es as GetTablePluginProvides, eE as GetTableRecordPluginProvides, aY as InfoFieldItem, aX as InputFieldItem, by as InputFieldProperty, b6 as InputFieldPropertySchema, bC as InputsProperty, ba as InputsPropertySchema, aT as JsonSseMessage, bU as LeaseLimitProperty, bs as LeaseLimitPropertySchema, bS as LeaseProperty, bq as LeasePropertySchema, bT as LeaseSecondsProperty, br as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bD as LimitProperty, bb as LimitPropertySchema, ct as ListActionInputFieldChoicesPluginProvides, cr as ListActionInputFieldsPluginProvides, cp as ListActionsPluginProvides, cn as ListAppsPluginProvides, w as ListAuthenticationsPluginProvides, cz as ListClientCredentialsPluginProvides, cx as ListConnectionsPluginProvides, ey as ListTableFieldsPluginProvides, eG as ListTableRecordsPluginProvides, eq as ListTablesPluginProvides, dJ as LoadingEvent, eh as MAX_CONCURRENCY_LIMIT, ec as MAX_PAGE_LIMIT, b as Manifest, cZ as ManifestEntry, cU as ManifestPluginOptions, cX as ManifestPluginProvides, e$ as MethodCalledEvent, eU as MethodCalledEventData, N as Need, X as NeedsRequest, Y as NeedsResponse, bE as OffsetProperty, bc as OffsetPropertySchema, O as OutputFormatter, bF as OutputProperty, bd as OutputPropertySchema, b0 as PaginatedSdkFunction, i as PaginatedSdkResult, bH as ParamsProperty, bf as ParamsPropertySchema, dP as PkceCredentialsObject, d_ as PkceCredentialsObjectSchema, aE as Plugin, a as PluginMeta, aF as PluginProvides, aO as PollOptions, k as PositionalMetadata, c8 as RateLimitInfo, bK as RecordProperty, bi as RecordPropertySchema, bL as RecordsProperty, bj as RecordsPropertySchema, ar as RelayFetchSchema, aq as RelayRequestSchema, aN as RequestOptions, cT as RequestPluginProvides, du as ResolveAuthTokenOptions, dU as ResolveCredentialsOptions, R as ResolvedAppLocator, dM as ResolvedCredentials, e0 as ResolvedCredentialsSchema, a7 as Resolver, a9 as ResolverMetadata, aZ as RootFieldItem, cR as RunActionPluginProvides, dG as SdkEvent, a$ as SdkPage, aS as SseMessage, aa as StaticResolver, bJ as TableProperty, bh as TablePropertySchema, bO as TablesProperty, bm as TablesPropertySchema, bR as TriggerInboxNameProperty, bp as TriggerInboxNamePropertySchema, bQ as TriggerInboxProperty, bo as TriggerInboxPropertySchema, T as TriggerMessageStatus, U as UpdateManifestEntryOptions, c as UpdateManifestEntryResult, eM as UpdateTableRecordsPluginProvides, a0 as UserProfile, a_ as UserProfileItem, n as WatchTriggerInboxOptions, q as WithAddPlugin, ea as ZAPIER_BASE_URL, ej as ZAPIER_MAX_CONCURRENT_REQUESTS, ef as ZAPIER_MAX_NETWORK_RETRIES, eg as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, c6 as ZapierActionError, b$ as ZapierApiError, c0 as ZapierAppNotFoundError, cb as ZapierApprovalError, bZ as ZapierAuthenticationError, c4 as ZapierBundleError, dC as ZapierCache, dD as ZapierCacheEntry, dE as ZapierCacheSetOptions, c3 as ZapierConfigurationError, c7 as ZapierConflictError, bW as ZapierError, l as ZapierFetchInitOptions, c1 as ZapierNotFoundError, c9 as ZapierRateLimitError, cc as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, c2 as ZapierResourceNotFoundError, fd as ZapierSdk, p as ZapierSdkApps, Z as ZapierSdkOptions, cf as ZapierSignal, c5 as ZapierTimeoutError, bY as ZapierUnknownError, bX as ZapierValidationError, d5 as actionKeyResolver, d4 as actionTypeResolver, a5 as addPlugin, d1 as apiPlugin, d3 as appKeyResolver, cg as appsPlugin, d7 as authenticationIdGenericResolver, d6 as authenticationIdResolver, al as batch, eV as buildApplicationLifecycleEvent, an as buildCapabilityMessage, eX as buildErrorEvent, eW as buildErrorEventWithContext, eZ as buildMethodCalledEvent, eN as cleanupEventListeners, dv as clearTokenCache, db as clientCredentialsNameResolver, dc as clientIdResolver, aJ as composePlugins, d7 as connectionIdGenericResolver, d6 as connectionIdResolver, e8 as connectionsPlugin, eY as createBaseEvent, cA as createClientCredentialsPlugin, a4 as createCorePlugin, a2 as createFunction, dF as createMemoryCache, au as createOptionsPlugin, aI as createPaginatedPluginMethod, aH as createPluginMethod, a3 as createPluginStack, at as createSdk, ez as createTableFieldsPlugin, et as createTablePlugin, eH as createTableRecordsPlugin, aP as createZapierApi, av as createZapierCoreStack, fb as createZapierSdk, fc as createZapierSdkStack, as as createZapierSdkWithoutRegistry, aG as definePlugin, cC as deleteClientCredentialsPlugin, eB as deleteTableFieldsPlugin, ev as deleteTablePlugin, eJ as deleteTableRecordsPlugin, dg as durableRunIdResolver, eP as eventEmissionPlugin, ck as fetchPlugin, cK as findFirstConnectionPlugin, g as findManifestEntry, cM as findUniqueConnectionPlugin, cd as formatErrorMessage, f0 as generateEventId, cu as getActionInputFieldsSchemaPlugin, cG as getActionPlugin, fa as getAgent, cE as getAppPlugin, dX as getBaseUrlFromCredentials, ag as getCallerContext, f6 as getCiPlatform, dY as getClientIdFromCredentials, cI as getConnectionPlugin, aB as getCoreErrorCause, aA as getCoreErrorCode, f8 as getCpuTime, f1 as getCurrentTimestamp, f7 as getMemoryUsage, aQ as getOrCreateApiClient, f3 as getOsInfo, f4 as getPlatformVersions, cV as getPreferredManifestEntryKey, c_ as getProfilePlugin, f2 as getReleaseId, er as getTablePlugin, eD as getTableRecordPlugin, dz as getTokenFromCliLogin, f9 as getTtyContext, ek as getZapierApprovalMode, em as getZapierDefaultApprovalMode, el as getZapierOpenAutoModeApprovalsInBrowser, eb as getZapierSdkService, dx as injectCliLogin, da as inputFieldKeyResolver, d9 as inputsAllOptionalResolver, d8 as inputsResolver, dw as invalidateCachedToken, dB as invalidateCredentialsToken, f5 as isCi, dy as isCliLoginAvailable, dQ as isClientCredentials, az as isCoreError, dT as isCredentialsFunction, dS as isCredentialsObject, aR as isPermanentHttpError, dR as isPkceCredentials, a1 as isPositional, cs as listActionInputFieldChoicesPlugin, cq as listActionInputFieldsPlugin, co as listActionsPlugin, cm as listAppsPlugin, cy as listClientCredentialsPlugin, cw as listConnectionsPlugin, ex as listTableFieldsPlugin, eF as listTableRecordsPlugin, ep as listTablesPlugin, ao as logDeprecation, cW as manifestPlugin, ei as parseConcurrencyEnvVar, r as readManifestFromFile, aM as registryPlugin, cS as requestPlugin, ap as resetDeprecationWarnings, dA as resolveAuthToken, dW as resolveCredentials, dV as resolveCredentialsFromEnv, cQ as runActionPlugin, ae as runInMethodScope, ah as runWithCallerContext, af as runWithTelemetryContext, dm as tableFieldIdsResolver, dp as tableFieldsResolver, ds as tableFiltersResolver, dd as tableIdResolver, dn as tableNameResolver, dk as tableRecordIdResolver, dl as tableRecordIdsResolver, dq as tableRecordsResolver, dt as tableSortResolver, dr as tableUpdateRecordsResolver, aj as toSnakeCase, ak as toTitleCase, de as triggerInboxResolver, dj as triggerMessagesResolver, eL as updateTableRecordsPlugin, df as workflowIdResolver, di as workflowRunIdResolver, dh as workflowVersionIdResolver, b_ as zapierAdaptError } from './index-B_Fr4RAt.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'zod/v4/core';
|
|
4
4
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|
package/dist/index.mjs
CHANGED
|
@@ -6909,7 +6909,7 @@ function parseApprovalReviewStreamPayload(parsed, toolNames) {
|
|
|
6909
6909
|
}
|
|
6910
6910
|
|
|
6911
6911
|
// src/sdk-version.ts
|
|
6912
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.74.
|
|
6912
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.74.1" : void 0) || "unknown";
|
|
6913
6913
|
|
|
6914
6914
|
// src/utils/open-url.ts
|
|
6915
6915
|
var nodePrefix = "node:";
|
|
@@ -40,9 +40,11 @@ export declare const deleteWorkflowPlugin: (sdk: {
|
|
|
40
40
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
41
41
|
authentication_id?: string | null | undefined;
|
|
42
42
|
params?: Record<string, unknown> | undefined;
|
|
43
|
+
error?: string | null | undefined;
|
|
43
44
|
}[];
|
|
44
45
|
created_at: string;
|
|
45
46
|
updated_at: string;
|
|
47
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
46
48
|
}>;
|
|
47
49
|
} & {
|
|
48
50
|
context: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/deleteWorkflow/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/deleteWorkflow/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkChC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,UAAU,CACnD,OAAO,oBAAoB,CAC5B,CAAC"}
|
|
@@ -40,9 +40,11 @@ export declare const disableWorkflowPlugin: (sdk: {
|
|
|
40
40
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
41
41
|
authentication_id?: string | null | undefined;
|
|
42
42
|
params?: Record<string, unknown> | undefined;
|
|
43
|
+
error?: string | null | undefined;
|
|
43
44
|
}[];
|
|
44
45
|
created_at: string;
|
|
45
46
|
updated_at: string;
|
|
47
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
46
48
|
}>;
|
|
47
49
|
} & {
|
|
48
50
|
context: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/disableWorkflow/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/disableWorkflow/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BjC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,UAAU,CACpD,OAAO,qBAAqB,CAC7B,CAAC"}
|
|
@@ -40,9 +40,11 @@ export declare const enableWorkflowPlugin: (sdk: {
|
|
|
40
40
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
41
41
|
authentication_id?: string | null | undefined;
|
|
42
42
|
params?: Record<string, unknown> | undefined;
|
|
43
|
+
error?: string | null | undefined;
|
|
43
44
|
}[];
|
|
44
45
|
created_at: string;
|
|
45
46
|
updated_at: string;
|
|
47
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
46
48
|
}>;
|
|
47
49
|
} & {
|
|
48
50
|
context: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/enableWorkflow/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/enableWorkflow/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BhC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,UAAU,CACnD,OAAO,oBAAoB,CAC5B,CAAC"}
|
|
@@ -40,9 +40,11 @@ export declare const getWorkflowPlugin: (sdk: {
|
|
|
40
40
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
41
41
|
authentication_id?: string | null | undefined;
|
|
42
42
|
params?: Record<string, unknown> | undefined;
|
|
43
|
+
error?: string | null | undefined;
|
|
43
44
|
}[];
|
|
44
45
|
created_at: string;
|
|
45
46
|
updated_at: string;
|
|
47
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
46
48
|
}>;
|
|
47
49
|
} & {
|
|
48
50
|
context: {
|
|
@@ -72,9 +74,11 @@ export declare const getWorkflowPlugin: (sdk: {
|
|
|
72
74
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
73
75
|
authentication_id?: string | null | undefined;
|
|
74
76
|
params?: Record<string, unknown> | undefined;
|
|
77
|
+
error?: string | null | undefined;
|
|
75
78
|
}[];
|
|
76
79
|
created_at: string;
|
|
77
80
|
updated_at: string;
|
|
81
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
78
82
|
current_version?: {
|
|
79
83
|
id: string;
|
|
80
84
|
workflow_id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflow/index.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflow/index.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0B7B,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -32,6 +32,9 @@ export declare const GetWorkflowResponseSchema: z.ZodObject<{
|
|
|
32
32
|
description: z.ZodNullable<z.ZodString>;
|
|
33
33
|
trigger_url: z.ZodString;
|
|
34
34
|
enabled: z.ZodBoolean;
|
|
35
|
+
disabled_reason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
36
|
+
trigger_claim_failed: "trigger_claim_failed";
|
|
37
|
+
}>>>;
|
|
35
38
|
is_private: z.ZodBoolean;
|
|
36
39
|
created_by_user_id: z.ZodNullable<z.ZodString>;
|
|
37
40
|
current_version: z.ZodOptional<z.ZodObject<{
|
|
@@ -69,6 +72,7 @@ export declare const GetWorkflowResponseSchema: z.ZodObject<{
|
|
|
69
72
|
releasing: "releasing";
|
|
70
73
|
released: "released";
|
|
71
74
|
}>;
|
|
75
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
76
|
}, z.core.$strip>>;
|
|
73
77
|
created_at: z.ZodString;
|
|
74
78
|
updated_at: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflow/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflow/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;iBAgChC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,wBAAwB;;iBAMlC,CAAC;AAEJ,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4CpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { AppVersionBindingSchema, ConnectionBindingSchema, WorkflowTriggerSchema, WorkflowVersionTriggerConfigSchema, } from "../shared-schemas";
|
|
2
|
+
import { AppVersionBindingSchema, ConnectionBindingSchema, WorkflowDisabledReasonSchema, WorkflowTriggerSchema, WorkflowVersionTriggerConfigSchema, } from "../shared-schemas";
|
|
3
3
|
export const WorkflowVersionSchema = z.object({
|
|
4
4
|
id: z.string().describe("Workflow version ID (UUID)"),
|
|
5
5
|
workflow_id: z.string().describe("Parent workflow ID"),
|
|
@@ -47,6 +47,12 @@ export const GetWorkflowResponseSchema = z.object({
|
|
|
47
47
|
enabled: z
|
|
48
48
|
.boolean()
|
|
49
49
|
.describe("Whether the workflow currently accepts triggers"),
|
|
50
|
+
// Optional until COSUB-630 ships the field server-side; afterwards the API
|
|
51
|
+
// always sends it (null unless the workflow was system-disabled). Kept
|
|
52
|
+
// independent of per-trigger status+error — see WorkflowDisabledReasonSchema.
|
|
53
|
+
disabled_reason: WorkflowDisabledReasonSchema.nullable()
|
|
54
|
+
.optional()
|
|
55
|
+
.describe("Why the workflow is off, when system-disabled. Null when not system-disabled. Independent of per-trigger claim status: an enabled workflow can still have a failed trigger."),
|
|
50
56
|
is_private: z
|
|
51
57
|
.boolean()
|
|
52
58
|
.describe("Whether the workflow is private to the creating user. False means account-visible."),
|
|
@@ -40,9 +40,11 @@ export declare const getWorkflowRunPlugin: (sdk: {
|
|
|
40
40
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
41
41
|
authentication_id?: string | null | undefined;
|
|
42
42
|
params?: Record<string, unknown> | undefined;
|
|
43
|
+
error?: string | null | undefined;
|
|
43
44
|
}[];
|
|
44
45
|
created_at: string;
|
|
45
46
|
updated_at: string;
|
|
47
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
46
48
|
}>;
|
|
47
49
|
} & {
|
|
48
50
|
context: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflowRun/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflowRun/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BhC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,UAAU,CACnD,OAAO,oBAAoB,CAC5B,CAAC"}
|
|
@@ -40,9 +40,11 @@ export declare const getWorkflowVersionPlugin: (sdk: {
|
|
|
40
40
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
41
41
|
authentication_id?: string | null | undefined;
|
|
42
42
|
params?: Record<string, unknown> | undefined;
|
|
43
|
+
error?: string | null | undefined;
|
|
43
44
|
}[];
|
|
44
45
|
created_at: string;
|
|
45
46
|
updated_at: string;
|
|
47
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
46
48
|
}>;
|
|
47
49
|
} & {
|
|
48
50
|
context: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflowVersion/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/getWorkflowVersion/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BpC,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,UAAU,CACvD,OAAO,wBAAwB,CAChC,CAAC"}
|
|
@@ -40,9 +40,11 @@ export declare const listWorkflowRunsPlugin: (sdk: {
|
|
|
40
40
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
41
41
|
authentication_id?: string | null | undefined;
|
|
42
42
|
params?: Record<string, unknown> | undefined;
|
|
43
|
+
error?: string | null | undefined;
|
|
43
44
|
}[];
|
|
44
45
|
created_at: string;
|
|
45
46
|
updated_at: string;
|
|
47
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
46
48
|
}>;
|
|
47
49
|
} & {
|
|
48
50
|
context: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflowRuns/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflowRuns/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsClC,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,UAAU,CACrD,OAAO,sBAAsB,CAC9B,CAAC"}
|
|
@@ -40,9 +40,11 @@ export declare const listWorkflowVersionsPlugin: (sdk: {
|
|
|
40
40
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
41
41
|
authentication_id?: string | null | undefined;
|
|
42
42
|
params?: Record<string, unknown> | undefined;
|
|
43
|
+
error?: string | null | undefined;
|
|
43
44
|
}[];
|
|
44
45
|
created_at: string;
|
|
45
46
|
updated_at: string;
|
|
47
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
46
48
|
}>;
|
|
47
49
|
} & {
|
|
48
50
|
context: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflowVersions/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflowVersions/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCtC,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG,UAAU,CACzD,OAAO,0BAA0B,CAClC,CAAC"}
|
|
@@ -44,9 +44,11 @@ export declare const listWorkflowsPlugin: (sdk: {
|
|
|
44
44
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
45
45
|
authentication_id?: string | null | undefined;
|
|
46
46
|
params?: Record<string, unknown> | undefined;
|
|
47
|
+
error?: string | null | undefined;
|
|
47
48
|
}[];
|
|
48
49
|
created_at: string;
|
|
49
50
|
updated_at: string;
|
|
51
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
50
52
|
}>;
|
|
51
53
|
} & {
|
|
52
54
|
context: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflows/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflows/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B/B,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAClD,OAAO,mBAAmB,CAC3B,CAAC"}
|
|
@@ -5,6 +5,9 @@ export declare const WorkflowItemSchema: z.ZodObject<{
|
|
|
5
5
|
description: z.ZodNullable<z.ZodString>;
|
|
6
6
|
trigger_url: z.ZodString;
|
|
7
7
|
enabled: z.ZodBoolean;
|
|
8
|
+
disabled_reason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
9
|
+
trigger_claim_failed: "trigger_claim_failed";
|
|
10
|
+
}>>>;
|
|
8
11
|
is_private: z.ZodBoolean;
|
|
9
12
|
created_by_user_id: z.ZodNullable<z.ZodString>;
|
|
10
13
|
current_version_id: z.ZodNullable<z.ZodString>;
|
|
@@ -21,6 +24,7 @@ export declare const WorkflowItemSchema: z.ZodObject<{
|
|
|
21
24
|
releasing: "releasing";
|
|
22
25
|
released: "released";
|
|
23
26
|
}>;
|
|
27
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
28
|
}, z.core.$strip>>;
|
|
25
29
|
created_at: z.ZodString;
|
|
26
30
|
updated_at: z.ZodString;
|
|
@@ -45,6 +49,9 @@ export declare const ListWorkflowsApiResponseSchema: z.ZodObject<{
|
|
|
45
49
|
description: z.ZodNullable<z.ZodString>;
|
|
46
50
|
trigger_url: z.ZodString;
|
|
47
51
|
enabled: z.ZodBoolean;
|
|
52
|
+
disabled_reason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
53
|
+
trigger_claim_failed: "trigger_claim_failed";
|
|
54
|
+
}>>>;
|
|
48
55
|
is_private: z.ZodBoolean;
|
|
49
56
|
created_by_user_id: z.ZodNullable<z.ZodString>;
|
|
50
57
|
current_version_id: z.ZodNullable<z.ZodString>;
|
|
@@ -61,6 +68,7 @@ export declare const ListWorkflowsApiResponseSchema: z.ZodObject<{
|
|
|
61
68
|
releasing: "releasing";
|
|
62
69
|
released: "released";
|
|
63
70
|
}>;
|
|
71
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
72
|
}, z.core.$strip>>;
|
|
65
73
|
created_at: z.ZodString;
|
|
66
74
|
updated_at: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflows/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/listWorkflows/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8C7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,0BAA0B;;;;iBAoBuC,CAAC;AAE/E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAYzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { WorkflowTriggerSchema } from "../shared-schemas";
|
|
2
|
+
import { WorkflowDisabledReasonSchema, WorkflowTriggerSchema, } from "../shared-schemas";
|
|
3
3
|
export const WorkflowItemSchema = z.object({
|
|
4
4
|
id: z.string().describe("Workflow ID (UUID)"),
|
|
5
5
|
name: z.string().describe("Workflow name"),
|
|
@@ -13,6 +13,11 @@ export const WorkflowItemSchema = z.object({
|
|
|
13
13
|
enabled: z
|
|
14
14
|
.boolean()
|
|
15
15
|
.describe("Whether the workflow currently accepts triggers"),
|
|
16
|
+
// Optional until COSUB-630 ships the field server-side; afterwards the API
|
|
17
|
+
// always sends it (null unless the workflow was system-disabled).
|
|
18
|
+
disabled_reason: WorkflowDisabledReasonSchema.nullable()
|
|
19
|
+
.optional()
|
|
20
|
+
.describe("Why the workflow is off, when system-disabled. Null when not system-disabled."),
|
|
16
21
|
is_private: z
|
|
17
22
|
.boolean()
|
|
18
23
|
.describe("Whether the workflow is private to the creating user. False means account-visible."),
|
|
@@ -40,9 +40,11 @@ export declare const publishWorkflowVersionPlugin: (sdk: {
|
|
|
40
40
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
41
41
|
authentication_id?: string | null | undefined;
|
|
42
42
|
params?: Record<string, unknown> | undefined;
|
|
43
|
+
error?: string | null | undefined;
|
|
43
44
|
}[];
|
|
44
45
|
created_at: string;
|
|
45
46
|
updated_at: string;
|
|
47
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
46
48
|
}>;
|
|
47
49
|
} & {
|
|
48
50
|
context: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/publishWorkflowVersion/index.ts"],"names":[],"mappings":"AA6CA,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/publishWorkflowVersion/index.ts"],"names":[],"mappings":"AA6CA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DxC,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAAG,UAAU,CAC3D,OAAO,4BAA4B,CACpC,CAAC"}
|
|
@@ -20,6 +20,9 @@ export declare const WorkflowTriggerStatusSchema: z.ZodEnum<{
|
|
|
20
20
|
releasing: "releasing";
|
|
21
21
|
released: "released";
|
|
22
22
|
}>;
|
|
23
|
+
export declare const WorkflowDisabledReasonSchema: z.ZodEnum<{
|
|
24
|
+
trigger_claim_failed: "trigger_claim_failed";
|
|
25
|
+
}>;
|
|
23
26
|
export declare const WorkflowTriggerSchema: z.ZodObject<{
|
|
24
27
|
selected_api: z.ZodString;
|
|
25
28
|
action: z.ZodString;
|
|
@@ -33,5 +36,6 @@ export declare const WorkflowTriggerSchema: z.ZodObject<{
|
|
|
33
36
|
releasing: "releasing";
|
|
34
37
|
released: "released";
|
|
35
38
|
}>;
|
|
39
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
40
|
}, z.core.$strip>;
|
|
37
41
|
//# sourceMappingURL=shared-schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/codeSubstrate/shared-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;iBAcjC,CAAC;AAEJ,eAAO,MAAM,uBAAuB;;;iBAUsC,CAAC;AAK3E,eAAO,MAAM,kCAAkC;;;;;iBAiBsB,CAAC;AAItE,eAAO,MAAM,2BAA2B;;;;;;;EAOtC,CAAC;
|
|
1
|
+
{"version":3,"file":"shared-schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/codeSubstrate/shared-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;iBAcjC,CAAC;AAEJ,eAAO,MAAM,uBAAuB;;;iBAUsC,CAAC;AAK3E,eAAO,MAAM,kCAAkC;;;;;iBAiBsB,CAAC;AAItE,eAAO,MAAM,2BAA2B;;;;;;;EAOtC,CAAC;AAOH,eAAO,MAAM,4BAA4B;;EAAmC,CAAC;AAE7E,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;iBAgC/B,CAAC"}
|
|
@@ -50,6 +50,12 @@ export const WorkflowTriggerStatusSchema = z.enum([
|
|
|
50
50
|
"released",
|
|
51
51
|
"failed",
|
|
52
52
|
]);
|
|
53
|
+
// Why a workflow is currently off. `trigger_claim_failed` is a system
|
|
54
|
+
// auto-disable; null/absent means the workflow was not system-disabled.
|
|
55
|
+
// Independent of the per-trigger claim status+error: a post-active claim
|
|
56
|
+
// failure (e.g. auth) leaves the workflow enabled with disabled_reason null
|
|
57
|
+
// but its trigger status=failed, so the two signals must not be collapsed.
|
|
58
|
+
export const WorkflowDisabledReasonSchema = z.enum(["trigger_claim_failed"]);
|
|
53
59
|
export const WorkflowTriggerSchema = z
|
|
54
60
|
.object({
|
|
55
61
|
selected_api: z
|
|
@@ -65,5 +71,13 @@ export const WorkflowTriggerSchema = z
|
|
|
65
71
|
.optional()
|
|
66
72
|
.describe("Trigger parameters as a JSON object"),
|
|
67
73
|
status: WorkflowTriggerStatusSchema.describe("Live trigger claim status — whether the trigger is currently subscribed to its source."),
|
|
74
|
+
// Optional until COSUB-630 ships the field server-side; afterwards the API
|
|
75
|
+
// always sends it (null unless status=failed). Already sanitized at write
|
|
76
|
+
// time — surface verbatim.
|
|
77
|
+
error: z
|
|
78
|
+
.string()
|
|
79
|
+
.nullable()
|
|
80
|
+
.optional()
|
|
81
|
+
.describe("Failure reason for the latest claim. Present (non-null) only when status is 'failed'."),
|
|
68
82
|
})
|
|
69
83
|
.describe("Trigger from a workflow's current version, combined with the live claim status.");
|
|
@@ -40,9 +40,11 @@ export declare const triggerWorkflowPlugin: (sdk: {
|
|
|
40
40
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
41
41
|
authentication_id?: string | null | undefined;
|
|
42
42
|
params?: Record<string, unknown> | undefined;
|
|
43
|
+
error?: string | null | undefined;
|
|
43
44
|
}[];
|
|
44
45
|
created_at: string;
|
|
45
46
|
updated_at: string;
|
|
47
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
46
48
|
}>;
|
|
47
49
|
} & {
|
|
48
50
|
context: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/triggerWorkflow/index.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/triggerWorkflow/index.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAKjB;QAAE,OAAO,EAAE;YAAE,KAAK,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAA;SAAE,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;CA4DhE,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,UAAU,CACpD,OAAO,qBAAqB,CAC7B,CAAC"}
|
|
@@ -40,9 +40,11 @@ export declare const updateWorkflowPlugin: (sdk: {
|
|
|
40
40
|
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
41
41
|
authentication_id?: string | null | undefined;
|
|
42
42
|
params?: Record<string, unknown> | undefined;
|
|
43
|
+
error?: string | null | undefined;
|
|
43
44
|
}[];
|
|
44
45
|
created_at: string;
|
|
45
46
|
updated_at: string;
|
|
47
|
+
disabled_reason?: "trigger_claim_failed" | null | undefined;
|
|
46
48
|
}>;
|
|
47
49
|
} & {
|
|
48
50
|
context: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/updateWorkflow/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/codeSubstrate/updateWorkflow/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkChC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,UAAU,CACnD,OAAO,oBAAoB,CAC5B,CAAC"}
|