@zapier/zapier-sdk 0.83.0 → 0.83.2
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 +12 -0
- package/README.md +48 -46
- package/dist/experimental.cjs +35 -15
- package/dist/experimental.d.mts +14 -2
- package/dist/experimental.d.ts +14 -2
- package/dist/experimental.mjs +35 -15
- package/dist/{index-CgdXuNF1.d.mts → index-C82Rvqg9.d.mts} +8 -0
- package/dist/{index-CgdXuNF1.d.ts → index-C82Rvqg9.d.ts} +8 -0
- package/dist/index.cjs +18 -3
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +18 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @zapier/zapier-sdk
|
|
2
2
|
|
|
3
|
+
## 0.83.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- bf0d056: This release contains no user-facing changes.
|
|
8
|
+
|
|
9
|
+
## 0.83.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 6201fd4: `getWorkflow` and `listWorkflows` now include a nullable `details` field on each trigger (e.g. `webhook_url` for catch-hook triggers). Also corrected the `trigger_url` field description to note that requests must also be authenticated as the account.
|
|
14
|
+
|
|
3
15
|
## 0.83.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -1149,17 +1149,17 @@ Create a durable workflow container. Starts disabled with no version; publish a
|
|
|
1149
1149
|
|
|
1150
1150
|
**Returns:** `Promise<WorkflowItem>`
|
|
1151
1151
|
|
|
1152
|
-
| Name | Type | Required | Possible Values | Description
|
|
1153
|
-
| ------------------------ | --------- | -------- | --------------- |
|
|
1154
|
-
| `data` | `object` | ✅ | — |
|
|
1155
|
-
| ↳ `id` | `string` | ✅ | — | Workflow ID (UUID)
|
|
1156
|
-
| ↳ `name` | `string` | ✅ | — | Workflow name
|
|
1157
|
-
| ↳ `description` | `string` | ✅ | — | Workflow description (null if unset)
|
|
1158
|
-
| ↳ `trigger_url` | `string` | ✅ | — | Public
|
|
1159
|
-
| ↳ `enabled` | `boolean` | ✅ | — | Whether the workflow currently accepts triggers. Always false on a new workflow until enabled.
|
|
1160
|
-
| ↳ `is_private` | `boolean` | ✅ | — | Whether the workflow is private to the creating user. False means account-visible.
|
|
1161
|
-
| ↳ `created_by_user_id` | `string` | ✅ | — | User ID of the workflow creator (null in legacy data)
|
|
1162
|
-
| ↳ `created_at` | `string` | ✅ | — | When the workflow was created (ISO-8601)
|
|
1152
|
+
| Name | Type | Required | Possible Values | Description |
|
|
1153
|
+
| ------------------------ | --------- | -------- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1154
|
+
| `data` | `object` | ✅ | — | |
|
|
1155
|
+
| ↳ `id` | `string` | ✅ | — | Workflow ID (UUID) |
|
|
1156
|
+
| ↳ `name` | `string` | ✅ | — | Workflow name |
|
|
1157
|
+
| ↳ `description` | `string` | ✅ | — | Workflow description (null if unset) |
|
|
1158
|
+
| ↳ `trigger_url` | `string` | ✅ | — | Public URL that fires this workflow when POSTed to. Embeds a trigger token in the path — treat as sensitive. Requests must also be authenticated as the account. |
|
|
1159
|
+
| ↳ `enabled` | `boolean` | ✅ | — | Whether the workflow currently accepts triggers. Always false on a new workflow until enabled. |
|
|
1160
|
+
| ↳ `is_private` | `boolean` | ✅ | — | Whether the workflow is private to the creating user. False means account-visible. |
|
|
1161
|
+
| ↳ `created_by_user_id` | `string` | ✅ | — | User ID of the workflow creator (null in legacy data) |
|
|
1162
|
+
| ↳ `created_at` | `string` | ✅ | — | When the workflow was created (ISO-8601) |
|
|
1163
1163
|
|
|
1164
1164
|
**Example:**
|
|
1165
1165
|
|
|
@@ -1336,7 +1336,7 @@ Get a durable workflow with its current version details and trigger claim status
|
|
|
1336
1336
|
| ↳ `id` | `string` | ✅ | — | Workflow ID (UUID) |
|
|
1337
1337
|
| ↳ `name` | `string` | ✅ | — | Workflow name |
|
|
1338
1338
|
| ↳ `description` | `string` | ✅ | — | Optional workflow description (null if unset) |
|
|
1339
|
-
| ↳ `trigger_url` | `string` | ✅ | — | Public
|
|
1339
|
+
| ↳ `trigger_url` | `string` | ✅ | — | Public URL that fires this workflow when POSTed to. Embeds a trigger token in the path — treat as sensitive. Requests must also be authenticated as the account. |
|
|
1340
1340
|
| ↳ `enabled` | `boolean` | ✅ | — | Whether the workflow currently accepts triggers |
|
|
1341
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
1342
|
| ↳ `is_private` | `boolean` | ✅ | — | Whether the workflow is private to the creating user. False means account-visible. |
|
|
@@ -1359,6 +1359,7 @@ Get a durable workflow with its current version details and trigger claim status
|
|
|
1359
1359
|
| ↳ `params` | `object` | ❌ | — | Trigger parameters as a JSON object |
|
|
1360
1360
|
| ↳ `status` | `string` | ✅ | `unclaimed`, `pending`, `active`, `releasing`, `released`, `failed` | Live trigger claim status — whether the trigger is currently subscribed to its source. |
|
|
1361
1361
|
| ↳ `error` | `string` | ❌ | — | Failure reason for the latest claim. Present (non-null) only when status is 'failed'. |
|
|
1362
|
+
| ↳ `details` | `object` | ❌ | — | Trigger-type-specific metadata; shape varies by trigger type (e.g. `webhook_url` on catch-hook triggers). Null or absent when none applies. |
|
|
1362
1363
|
| ↳ `created_at` | `string` | ✅ | — | When the workflow was created (ISO-8601) |
|
|
1363
1364
|
| ↳ `updated_at` | `string` | ✅ | — | When the workflow was last modified (ISO-8601) |
|
|
1364
1365
|
|
|
@@ -1615,28 +1616,29 @@ List all active durable workflows for the authenticated account
|
|
|
1615
1616
|
|
|
1616
1617
|
**Returns:** `Promise<PaginatedResult<WorkflowItem>>`
|
|
1617
1618
|
|
|
1618
|
-
| Name | Type | Required | Possible Values | Description
|
|
1619
|
-
| ------------------------- | ---------- | -------- | ------------------------------------------------------------------- |
|
|
1620
|
-
| `data[]` | `object[]` | ✅ | — |
|
|
1621
|
-
| ↳ `id` | `string` | ✅ | — | Workflow ID (UUID)
|
|
1622
|
-
| ↳ `name` | `string` | ✅ | — | Workflow name
|
|
1623
|
-
| ↳ `description` | `string` | ✅ | — | Optional workflow description (null if unset)
|
|
1624
|
-
| ↳ `trigger_url` | `string` | ✅ | — | Public
|
|
1625
|
-
| ↳ `enabled` | `boolean` | ✅ | — | Whether the workflow currently accepts triggers
|
|
1626
|
-
| ↳ `disabled_reason` | `string` | ❌ | `trigger_claim_failed` | Why the workflow is off, when system-disabled. Null when not system-disabled.
|
|
1627
|
-
| ↳ `is_private` | `boolean` | ✅ | — | Whether the workflow is private to the creating user. False means account-visible.
|
|
1628
|
-
| ↳ `created_by_user_id` | `string` | ✅ | — | User ID of the workflow creator (null in legacy data)
|
|
1629
|
-
| ↳ `current_version_id` | `string` | ✅ | — | ID of the workflow version that runs handle. Null until a version is published.
|
|
1630
|
-
| ↳ `triggers[]` | `object[]` | ✅ | — | Trigger configurations from the current version, with live claim status. Empty array when the workflow has no triggers.
|
|
1631
|
-
| ↳ `selected_api` | `string` | ✅ | — | Zapier app/API identifier (e.g. 'GoogleSheetsAPI')
|
|
1632
|
-
| ↳ `action` | `string` | ✅ | — | Trigger action key (e.g. 'new_row')
|
|
1633
|
-
| ↳ `authentication_id` | `string` | ❌ | — | Connection ID for the trigger source. Null for no-auth triggers.
|
|
1634
|
-
| ↳ `params` | `object` | ❌ | — | Trigger parameters as a JSON object
|
|
1635
|
-
| ↳ `status` | `string` | ✅ | `unclaimed`, `pending`, `active`, `releasing`, `released`, `failed` | Live trigger claim status — whether the trigger is currently subscribed to its source.
|
|
1636
|
-
| ↳ `error` | `string` | ❌ | — | Failure reason for the latest claim. Present (non-null) only when status is 'failed'.
|
|
1637
|
-
|
|
|
1638
|
-
| ↳ `
|
|
1639
|
-
| `
|
|
1619
|
+
| Name | Type | Required | Possible Values | Description |
|
|
1620
|
+
| ------------------------- | ---------- | -------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1621
|
+
| `data[]` | `object[]` | ✅ | — | |
|
|
1622
|
+
| ↳ `id` | `string` | ✅ | — | Workflow ID (UUID) |
|
|
1623
|
+
| ↳ `name` | `string` | ✅ | — | Workflow name |
|
|
1624
|
+
| ↳ `description` | `string` | ✅ | — | Optional workflow description (null if unset) |
|
|
1625
|
+
| ↳ `trigger_url` | `string` | ✅ | — | Public URL that fires this workflow when POSTed to. Embeds a trigger token in the path — treat as sensitive. Requests must also be authenticated as the account. |
|
|
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. |
|
|
1628
|
+
| ↳ `is_private` | `boolean` | ✅ | — | Whether the workflow is private to the creating user. False means account-visible. |
|
|
1629
|
+
| ↳ `created_by_user_id` | `string` | ✅ | — | User ID of the workflow creator (null in legacy data) |
|
|
1630
|
+
| ↳ `current_version_id` | `string` | ✅ | — | ID of the workflow version that runs handle. Null until a version is published. |
|
|
1631
|
+
| ↳ `triggers[]` | `object[]` | ✅ | — | Trigger configurations from the current version, with live claim status. Empty array when the workflow has no triggers. |
|
|
1632
|
+
| ↳ `selected_api` | `string` | ✅ | — | Zapier app/API identifier (e.g. 'GoogleSheetsAPI') |
|
|
1633
|
+
| ↳ `action` | `string` | ✅ | — | Trigger action key (e.g. 'new_row') |
|
|
1634
|
+
| ↳ `authentication_id` | `string` | ❌ | — | Connection ID for the trigger source. Null for no-auth triggers. |
|
|
1635
|
+
| ↳ `params` | `object` | ❌ | — | Trigger parameters as a JSON object |
|
|
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'. |
|
|
1638
|
+
| ↳ `details` | `object` | ❌ | — | Trigger-type-specific metadata; shape varies by trigger type (e.g. `webhook_url` on catch-hook triggers). Null or absent when none applies. |
|
|
1639
|
+
| ↳ `created_at` | `string` | ✅ | — | When the workflow was created (ISO-8601) |
|
|
1640
|
+
| ↳ `updated_at` | `string` | ✅ | — | When the workflow was last modified (ISO-8601) |
|
|
1641
|
+
| `nextCursor` | `string` | ❌ | — | Cursor for the next page; omitted when there are no more pages |
|
|
1640
1642
|
|
|
1641
1643
|
**Example:**
|
|
1642
1644
|
|
|
@@ -1786,18 +1788,18 @@ Update a durable workflow's name and/or description
|
|
|
1786
1788
|
|
|
1787
1789
|
**Returns:** `Promise<WorkflowItem>`
|
|
1788
1790
|
|
|
1789
|
-
| Name | Type | Required | Possible Values | Description
|
|
1790
|
-
| ------------------------ | --------- | -------- | --------------- |
|
|
1791
|
-
| `data` | `object` | ✅ | — |
|
|
1792
|
-
| ↳ `id` | `string` | ✅ | — | Workflow ID (UUID)
|
|
1793
|
-
| ↳ `name` | `string` | ✅ | — | Workflow name (post-update)
|
|
1794
|
-
| ↳ `description` | `string` | ✅ | — | Workflow description, post-update (null if unset)
|
|
1795
|
-
| ↳ `trigger_url` | `string` | ✅ | — | Public
|
|
1796
|
-
| ↳ `enabled` | `boolean` | ✅ | — | Whether the workflow currently accepts triggers
|
|
1797
|
-
| ↳ `is_private` | `boolean` | ✅ | — | Whether the workflow is private to the creating user. False means account-visible.
|
|
1798
|
-
| ↳ `created_by_user_id` | `string` | ✅ | — | User ID of the workflow creator (null in legacy data)
|
|
1799
|
-
| ↳ `created_at` | `string` | ✅ | — | When the workflow was created (ISO-8601)
|
|
1800
|
-
| ↳ `updated_at` | `string` | ✅ | — | When this update was applied (ISO-8601)
|
|
1791
|
+
| Name | Type | Required | Possible Values | Description |
|
|
1792
|
+
| ------------------------ | --------- | -------- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1793
|
+
| `data` | `object` | ✅ | — | |
|
|
1794
|
+
| ↳ `id` | `string` | ✅ | — | Workflow ID (UUID) |
|
|
1795
|
+
| ↳ `name` | `string` | ✅ | — | Workflow name (post-update) |
|
|
1796
|
+
| ↳ `description` | `string` | ✅ | — | Workflow description, post-update (null if unset) |
|
|
1797
|
+
| ↳ `trigger_url` | `string` | ✅ | — | Public URL that fires this workflow when POSTed to. Embeds a trigger token in the path — treat as sensitive. Requests must also be authenticated as the account. |
|
|
1798
|
+
| ↳ `enabled` | `boolean` | ✅ | — | Whether the workflow currently accepts triggers |
|
|
1799
|
+
| ↳ `is_private` | `boolean` | ✅ | — | Whether the workflow is private to the creating user. False means account-visible. |
|
|
1800
|
+
| ↳ `created_by_user_id` | `string` | ✅ | — | User ID of the workflow creator (null in legacy data) |
|
|
1801
|
+
| ↳ `created_at` | `string` | ✅ | — | When the workflow was created (ISO-8601) |
|
|
1802
|
+
| ↳ `updated_at` | `string` | ✅ | — | When this update was applied (ISO-8601) |
|
|
1801
1803
|
|
|
1802
1804
|
**Example:**
|
|
1803
1805
|
|
package/dist/experimental.cjs
CHANGED
|
@@ -5194,7 +5194,7 @@ function parseDeprecationDate(value) {
|
|
|
5194
5194
|
}
|
|
5195
5195
|
|
|
5196
5196
|
// src/sdk-version.ts
|
|
5197
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.83.
|
|
5197
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.83.2" : void 0) || "unknown";
|
|
5198
5198
|
|
|
5199
5199
|
// src/utils/open-url.ts
|
|
5200
5200
|
var nodePrefix = "node:";
|
|
@@ -14063,6 +14063,8 @@ function buildErrorEvent(data, context = {}) {
|
|
|
14063
14063
|
environment: context.environment,
|
|
14064
14064
|
...data,
|
|
14065
14065
|
agent: getAgent(),
|
|
14066
|
+
caller_package: context.caller_package ?? null,
|
|
14067
|
+
caller_package_version: context.caller_package_version ?? null,
|
|
14066
14068
|
sdk_version: SDK_VERSION
|
|
14067
14069
|
};
|
|
14068
14070
|
}
|
|
@@ -14092,6 +14094,8 @@ function buildApplicationLifecycleEvent(data, context = {}) {
|
|
|
14092
14094
|
metadata: null,
|
|
14093
14095
|
...data,
|
|
14094
14096
|
process_argv: data.process_argv ?? null,
|
|
14097
|
+
caller_package: context.caller_package ?? null,
|
|
14098
|
+
caller_package_version: context.caller_package_version ?? null,
|
|
14095
14099
|
sdk_version: SDK_VERSION
|
|
14096
14100
|
};
|
|
14097
14101
|
}
|
|
@@ -14108,6 +14112,8 @@ function buildErrorEventWithContext(data, context = {}) {
|
|
|
14108
14112
|
execution_time_before_error_ms: executionTime,
|
|
14109
14113
|
...data,
|
|
14110
14114
|
agent: getAgent(),
|
|
14115
|
+
caller_package: context.caller_package ?? null,
|
|
14116
|
+
caller_package_version: context.caller_package_version ?? null,
|
|
14111
14117
|
sdk_version: SDK_VERSION
|
|
14112
14118
|
};
|
|
14113
14119
|
}
|
|
@@ -14141,6 +14147,8 @@ function buildMethodCalledEvent(data, context = {}) {
|
|
|
14141
14147
|
cpu_time_ms: null,
|
|
14142
14148
|
memory_usage_bytes: null,
|
|
14143
14149
|
agent: getAgent(),
|
|
14150
|
+
caller_package: context.caller_package ?? null,
|
|
14151
|
+
caller_package_version: context.caller_package_version ?? null,
|
|
14144
14152
|
sdk_version: SDK_VERSION
|
|
14145
14153
|
};
|
|
14146
14154
|
}
|
|
@@ -14293,14 +14301,21 @@ function createEventEmitter(options) {
|
|
|
14293
14301
|
)
|
|
14294
14302
|
)
|
|
14295
14303
|
};
|
|
14304
|
+
const callerPackageContext = {
|
|
14305
|
+
caller_package: options.callerPackage?.name ?? null,
|
|
14306
|
+
caller_package_version: options.callerPackage?.version ?? null
|
|
14307
|
+
};
|
|
14296
14308
|
const getUserContext = (async () => {
|
|
14297
14309
|
if (config.enabled) {
|
|
14298
14310
|
try {
|
|
14299
|
-
return
|
|
14311
|
+
return {
|
|
14312
|
+
...buildEventAuthContext(await resolveAuth({ ...options })),
|
|
14313
|
+
...callerPackageContext
|
|
14314
|
+
};
|
|
14300
14315
|
} catch {
|
|
14301
14316
|
}
|
|
14302
14317
|
}
|
|
14303
|
-
return NULL_EVENT_CONTEXT;
|
|
14318
|
+
return { ...NULL_EVENT_CONTEXT, ...callerPackageContext };
|
|
14304
14319
|
})();
|
|
14305
14320
|
const startupTime = Date.now();
|
|
14306
14321
|
let shutdownStartTime = null;
|
|
@@ -14718,6 +14733,9 @@ function toWireAppVersions(appVersions) {
|
|
|
14718
14733
|
}
|
|
14719
14734
|
return wire;
|
|
14720
14735
|
}
|
|
14736
|
+
var WorkflowTriggerUrlSchema = zod.z.string().describe(
|
|
14737
|
+
"Public URL that fires this workflow when POSTed to. Embeds a trigger token in the path \u2014 treat as sensitive. Requests must also be authenticated as the account."
|
|
14738
|
+
);
|
|
14721
14739
|
var ConnectionBindingSchema2 = zod.z.object({
|
|
14722
14740
|
connection_id: zod.z.union([
|
|
14723
14741
|
zod.z.number().int().positive(),
|
|
@@ -14750,6 +14768,11 @@ var WorkflowTriggerStatusSchema = zod.z.enum([
|
|
|
14750
14768
|
"failed"
|
|
14751
14769
|
]);
|
|
14752
14770
|
var WorkflowDisabledReasonSchema = zod.z.enum(["trigger_claim_failed"]);
|
|
14771
|
+
var WorkflowTriggerDetailsSchema = zod.z.object({
|
|
14772
|
+
webhook_url: zod.z.string().optional().describe(
|
|
14773
|
+
"Public catch URL for this trigger. Present on catch-hook triggers (e.g. Webhooks by Zapier)."
|
|
14774
|
+
)
|
|
14775
|
+
}).describe("Trigger-type-specific metadata. Shape varies by trigger type.");
|
|
14753
14776
|
var WorkflowTriggerSchema = zod.z.object({
|
|
14754
14777
|
selected_api: zod.z.string().describe("Zapier app/API identifier (e.g. 'GoogleSheetsAPI')"),
|
|
14755
14778
|
action: zod.z.string().describe("Trigger action key (e.g. 'new_row')"),
|
|
@@ -14765,6 +14788,11 @@ var WorkflowTriggerSchema = zod.z.object({
|
|
|
14765
14788
|
// time — surface verbatim.
|
|
14766
14789
|
error: zod.z.string().nullable().optional().describe(
|
|
14767
14790
|
"Failure reason for the latest claim. Present (non-null) only when status is 'failed'."
|
|
14791
|
+
),
|
|
14792
|
+
// webhook_url is named in this prose because the generated README doesn't
|
|
14793
|
+
// expand fields nested this deep.
|
|
14794
|
+
details: WorkflowTriggerDetailsSchema.nullable().optional().describe(
|
|
14795
|
+
"Trigger-type-specific metadata; shape varies by trigger type (e.g. `webhook_url` on catch-hook triggers). Null or absent when none applies."
|
|
14768
14796
|
)
|
|
14769
14797
|
}).describe(
|
|
14770
14798
|
"Trigger from a workflow's current version, combined with the live claim status."
|
|
@@ -14775,9 +14803,7 @@ var WorkflowItemSchema = zod.z.object({
|
|
|
14775
14803
|
id: zod.z.string().describe("Workflow ID (UUID)"),
|
|
14776
14804
|
name: zod.z.string().describe("Workflow name"),
|
|
14777
14805
|
description: zod.z.string().nullable().describe("Optional workflow description (null if unset)"),
|
|
14778
|
-
trigger_url:
|
|
14779
|
-
"Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path \u2014 treat as sensitive."
|
|
14780
|
-
),
|
|
14806
|
+
trigger_url: WorkflowTriggerUrlSchema,
|
|
14781
14807
|
enabled: zod.z.boolean().describe("Whether the workflow currently accepts triggers"),
|
|
14782
14808
|
// Optional until COSUB-630 ships the field server-side; afterwards the API
|
|
14783
14809
|
// always sends it (null unless the workflow was system-disabled).
|
|
@@ -14873,9 +14899,7 @@ var GetWorkflowResponseSchema = zod.z.object({
|
|
|
14873
14899
|
id: zod.z.string().describe("Workflow ID (UUID)"),
|
|
14874
14900
|
name: zod.z.string().describe("Workflow name"),
|
|
14875
14901
|
description: zod.z.string().nullable().describe("Optional workflow description (null if unset)"),
|
|
14876
|
-
trigger_url:
|
|
14877
|
-
"Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path \u2014 treat as sensitive."
|
|
14878
|
-
),
|
|
14902
|
+
trigger_url: WorkflowTriggerUrlSchema,
|
|
14879
14903
|
enabled: zod.z.boolean().describe("Whether the workflow currently accepts triggers"),
|
|
14880
14904
|
// Optional until COSUB-630 ships the field server-side; afterwards the API
|
|
14881
14905
|
// always sends it (null unless the workflow was system-disabled). Kept
|
|
@@ -14936,9 +14960,7 @@ var CreateWorkflowResponseSchema = zod.z.object({
|
|
|
14936
14960
|
id: zod.z.string().describe("Workflow ID (UUID)"),
|
|
14937
14961
|
name: zod.z.string().describe("Workflow name"),
|
|
14938
14962
|
description: zod.z.string().nullable().describe("Workflow description (null if unset)"),
|
|
14939
|
-
trigger_url:
|
|
14940
|
-
"Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path \u2014 treat as sensitive."
|
|
14941
|
-
),
|
|
14963
|
+
trigger_url: WorkflowTriggerUrlSchema,
|
|
14942
14964
|
enabled: zod.z.boolean().describe(
|
|
14943
14965
|
"Whether the workflow currently accepts triggers. Always false on a new workflow until enabled."
|
|
14944
14966
|
),
|
|
@@ -14986,9 +15008,7 @@ var UpdateWorkflowResponseSchema = zod.z.object({
|
|
|
14986
15008
|
id: zod.z.string().describe("Workflow ID (UUID)"),
|
|
14987
15009
|
name: zod.z.string().describe("Workflow name (post-update)"),
|
|
14988
15010
|
description: zod.z.string().nullable().describe("Workflow description, post-update (null if unset)"),
|
|
14989
|
-
trigger_url:
|
|
14990
|
-
"Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path \u2014 treat as sensitive."
|
|
14991
|
-
),
|
|
15011
|
+
trigger_url: WorkflowTriggerUrlSchema,
|
|
14992
15012
|
enabled: zod.z.boolean().describe("Whether the workflow currently accepts triggers"),
|
|
14993
15013
|
is_private: zod.z.boolean().describe(
|
|
14994
15014
|
"Whether the workflow is private to the creating user. False means account-visible."
|
package/dist/experimental.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseSdkOptions, A as AggregatePlugin, M as MethodPlugin, R as RegistryResult, L as LeafSummary, P as PropertyPlugin, S as SdkContext, a as ApiClient, b as PluginSummary, c as PaginatedSdkResult, d as ManifestProvider, C as ConnectionsProvider, e as CapabilitiesContext, F as FieldsetItem, Z as ZapierFetchInitOptions, f as CoreOptions, g as ActionProxy, h as ZapierSdkApps, D as DeleteTriggerInboxResult, i as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, j as Manifest, E as EventCallback, k as EventEmissionConfig, l as ZapierCache, m as ListActionsOptions, n as ListActionInputFieldsOptions, o as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, T as TriggerInboxCommandSharedFields } from './index-
|
|
2
|
-
export { dK as API_ID, J as Action, dG as ActionEntry, d3 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bG as ActionItem, ch as ActionKeyProperty, bQ as ActionKeyPropertySchema, ci as ActionProperty, bR as ActionPropertySchema, bq as ActionResolverItem, ct as ActionTimeoutMsProperty, c0 as ActionTimeoutMsPropertySchema, br as ActionTypeItem, cg as ActionTypeProperty, bP as ActionTypePropertySchema, d0 as ApiError, eu as ApiEvent, dI as ApiPluginOptions, K as App, d4 as AppFactoryInput, bE as AppItem, ce as AppKeyProperty, bN as AppKeyPropertySchema, cf as AppProperty, bO as AppPropertySchema, fx as ApplicationLifecycleEventData, cY as ApprovalStatus, cy as AppsProperty, c5 as AppsPropertySchema, aB as ArrayResolver, et as AuthEvent, ef as AuthMechanism, cm as AuthenticationIdProperty, bU as AuthenticationIdPropertySchema, fF as BaseEvent, b9 as BaseSdkOptionsSchema, a_ as BatchOptions, ax as BoundFormatter, eW as CONNECTIONS_ID, ac as CONTEXT, dr as CONTEXT_CACHE_MAX_SIZE, dq as CONTEXT_CACHE_TTL_MS, bd as CORE_ERROR_SYMBOL, b6 as CORE_OPTIONS_ID, bi as CORE_SIGNAL_SYMBOL, aW as CallerContext, Q as Choice, ez as ClientCredentialsObject, eK as ClientCredentialsObjectSchema, $ as Connection, eS as ConnectionEntry, eR as ConnectionEntrySchema, ck as ConnectionIdProperty, bT as ConnectionIdPropertySchema, bF as ConnectionItem, cl as ConnectionProperty, bV as ConnectionPropertySchema, eU as ConnectionsMap, eT as ConnectionsMapSchema, cA as ConnectionsProperty, c7 as ConnectionsPropertySchema, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aQ as ControllerMethodDescription, aP as ControllerMethodSummary, aR as ControllerParameterDescription, aM as ControllerQuestion, bg as CoreCancelledSignal, aa as CoreDisposeError, be as CoreErrorCode, bf as CoreSignal, ew as Credentials, eP as CredentialsFunction, eO as CredentialsFunctionSchema, ey as CredentialsObject, eM as CredentialsObjectSchema, eQ as CredentialsSchema, f1 as DEFAULT_ACTION_TIMEOUT_MS, fa as DEFAULT_APPROVAL_TIMEOUT_MS, dE as DEFAULT_CONFIG_PATH, fb as DEFAULT_MAX_APPROVAL_RETRIES, f0 as DEFAULT_PAGE_SIZE, bC as DEPRECATION_NOTICE_EVENT, cr as DebugProperty, b_ as DebugPropertySchema, bD as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, q as DrainTriggerInboxSchema, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fr as EVENT_EMISSION_ID, fy as EnhancedErrorEventData, cH as ErrorOptions, fw as EventContext, fp as EventEmissionContext, fq as EventEmitter, fv as EventTransport, d5 as FetchPluginProvides, O as Field, cx as FieldsProperty, c4 as FieldsPropertySchema, aH as FieldsResolver, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b8 as FunctionDeprecation, b7 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bI as InfoFieldItem, bH as InputFieldItem, cj as InputFieldProperty, bS as InputFieldPropertySchema, cn as InputsProperty, bW as InputsPropertySchema, bB as JsonSseMessage, cG as LeaseLimitProperty, cd as LeaseLimitPropertySchema, cE as LeaseProperty, cb as LeasePropertySchema, cF as LeaseSecondsProperty, cc as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, co as LimitProperty, bX as LimitPropertySchema, dc as ListActionInputFieldsPluginProvides, da as ListActionsPluginProvides, d8 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dg as ListConnectionsPluginProvides, ev as LoadingEvent, dz as MANIFEST_ID, f4 as MAX_CONCURRENCY_LIMIT, e$ as MAX_PAGE_LIMIT, dF as ManifestEntry, dv as ManifestPluginOptions, fG as MethodCalledEvent, fz as MethodCalledEventData, bl as MethodOverridePlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cp as OffsetProperty, bY as OffsetPropertySchema, az as OutputFormatter, cq as OutputProperty, bZ as OutputPropertySchema, bM as PaginatedSdkFunction, cs as ParamsProperty, b$ as ParamsPropertySchema, eA as PkceCredentialsObject, eL as PkceCredentialsObjectSchema, bj as Plugin, p as PluginMeta, bk as PluginProvides, aK as PluginSurface, bw as PollOptions, a3 as PositionalMetadata, dN as RESOLVE_CREDENTIALS_ID, cW as RateLimitInfo, cv as RecordProperty, c2 as RecordPropertySchema, cw as RecordsProperty, c3 as RecordsPropertySchema, b3 as RelayFetchSchema, b2 as RelayRequestSchema, bv as RequestOptions, ee as ResolveAuthTokenOptions, eV as ResolveConnection, dJ as ResolveCredentialsFn, eF as ResolveCredentialsOptions, bs as ResolvedAppLocator, eg as ResolvedAuth, ex as ResolvedCredentials, eN as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bJ as RootFieldItem, dt as RunActionPluginProvides, au as SDK_OPTIONS_ID, es as SdkEvent, bL as SdkPage, bA as SseMessage, aD as StaticResolver, cu as TableProperty, c1 as TablePropertySchema, cz as TablesProperty, c6 as TablesPropertySchema, cC as TriggerInboxKeyProperty, c9 as TriggerInboxKeyPropertySchema, cD as TriggerInboxNameProperty, ca as TriggerInboxNamePropertySchema, cB as TriggerInboxProperty, c8 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dC as UpdateManifestEntryOptions, dD as UpdateManifestEntryResult, a1 as UserProfile, bK as UserProfileItem, r as WatchTriggerInboxSchema, eZ as ZAPIER_BASE_URL, f6 as ZAPIER_MAX_CONCURRENT_REQUESTS, f2 as ZAPIER_MAX_NETWORK_RETRIES, f3 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cU as ZapierActionError, cN as ZapierApiError, cO as ZapierAppNotFoundError, cZ as ZapierApprovalError, cL as ZapierAuthenticationError, cS as ZapierBundleError, ep as ZapierCacheEntry, eq as ZapierCacheSetOptions, cR as ZapierConfigurationError, cV as ZapierConflictError, cI as ZapierError, cP as ZapierNotFoundError, cX as ZapierRateLimitError, c_ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cQ as ZapierResourceNotFoundError, d1 as ZapierSignal, cT as ZapierTimeoutError, cK as ZapierUnknownError, cJ as ZapierValidationError, dS as actionKeyResolver, dR as actionTypeResolver, a8 as addPlugin, dM as apiPlugin, dL as apiPluginRef, dQ as appKeyResolver, d2 as appsPlugin, aZ as batch, fA as buildApplicationLifecycleEvent, a$ as buildCapabilityMessage, fC as buildErrorEvent, fB as buildErrorEventWithContext, fE as buildMethodCalledEvent, fo as cleanupEventListeners, eh as clearTokenCache, dY as clientCredentialsNameResolver, dZ as clientIdResolver, bp as composePlugins, dU as connectionIdGenericResolver, dT as connectionIdResolver, eY as connectionsPlugin, eX as connectionsPluginRef, fD as createBaseEvent, di as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, er as createMemoryCache, a5 as createPaginatedFunction, bo as createPaginatedPluginMethod, bn as createPluginMethod, a6 as createPluginStack, ab as createSdk, fh as createTableFieldsPlugin, fe as createTablePlugin, fl as createTableRecordsPlugin, bx as createZapierApi, b4 as createZapierSdkWithoutRegistry, an as declareMethod, ap as declareOptionalProperty, ah as declarePlugin, ao as declareProperty, am as defineFormatter, af as defineLegacyMerge, ai as defineMethod, aj as defineMethodOverride, bm as definePlugin, ak as defineProperty, al as defineResolver, dj as deleteClientCredentialsPlugin, fi as deleteTableFieldsPlugin, ff as deleteTablePlugin, fm as deleteTableRecordsPlugin, a9 as disposeSdk, e1 as durableRunIdResolver, fu as eventEmissionHookPlugin, ft as eventEmissionPlugin, fs as eventEmissionPluginRef, d6 as fetchPlugin, dn as findFirstConnectionPlugin, dy as findManifestEntry, dp as findUniqueConnectionPlugin, c$ as formatErrorMessage, ae as fromFunctionPlugin, fH as generateEventId, de as getActionInputFieldsSchemaPlugin, dl as getActionPlugin, bt as getAgent, dk as getAppPlugin, eI as getBaseUrlFromCredentials, aU as getCallerContext, fN as getCiPlatform, eJ as getClientIdFromCredentials, dm as getConnectionPlugin, ag as getContext, bc as getCoreErrorCause, bb as getCoreErrorCode, fP as getCpuTime, fI as getCurrentTimestamp, fO as getMemoryUsage, by as getOrCreateApiClient, fK as getOsInfo, fL as getPlatformVersions, dx as getPreferredManifestEntryKey, dH as getProfilePlugin, as as getRegistryPlugin, fJ as getReleaseId, fd as getTablePlugin, fj as getTableRecordPlugin, el as getTokenFromCliLogin, fQ as getTtyContext, f7 as getZapierApprovalMode, f9 as getZapierDefaultApprovalMode, f8 as getZapierOpenAutoModeApprovalsInBrowser, e_ as getZapierSdkService, ej as injectCliLogin, dX as inputFieldKeyResolver, dW as inputsAllOptionalResolver, dV as inputsResolver, ei as invalidateCachedToken, eo as invalidateCredentialsToken, fM as isCi, ek as isCliLoginAvailable, eB as isClientCredentials, ba as isCoreError, bh as isCoreSignal, eE as isCredentialsFunction, eD as isCredentialsObject, bz as isPermanentHttpError, eC as isPkceCredentials, a2 as isPositional, dd as listActionInputFieldChoicesPlugin, db as listActionInputFieldsPlugin, d9 as listActionsPlugin, d7 as listAppsPlugin, dh as listClientCredentialsPlugin, df as listConnectionsPlugin, fg as listTableFieldsPlugin, fk as listTableRecordsPlugin, fc as listTablesPlugin, b0 as logDeprecation, dB as manifestPlugin, dA as manifestPluginRef, ar as omitExports, f5 as parseConcurrencyEnvVar, dw as readManifestFromFile, bu as registryPlugin, du as requestPlugin, b1 as resetDeprecationWarnings, em as resolveAuth, en as resolveAuthToken, eH as resolveCredentials, eG as resolveCredentialsFromEnv, dP as resolveCredentialsPlugin, dO as resolveCredentialsPluginRef, ad as resolvePlugin, ds as runActionPlugin, aS as runInMethodScope, aV as runWithCallerContext, aT as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e7 as tableFieldIdsResolver, e9 as tableFieldsResolver, ec as tableFiltersResolver, d_ as tableIdResolver, e8 as tableNameResolver, e5 as tableRecordIdResolver, e6 as tableRecordIdsResolver, ea as tableRecordsResolver, ed as tableSortResolver, eb as tableUpdateRecordsResolver, aX as toSnakeCase, aY as toTitleCase, d$ as triggerInboxResolver, e4 as triggerMessagesResolver, fn as updateTableRecordsPlugin, e0 as workflowIdResolver, e3 as workflowRunIdResolver, e2 as workflowVersionIdResolver, cM as zapierAdaptError, b5 as zapierCoreOptions, at as zapierSdkPlugin } from './index-CgdXuNF1.mjs';
|
|
1
|
+
import { B as BaseSdkOptions, A as AggregatePlugin, M as MethodPlugin, R as RegistryResult, L as LeafSummary, P as PropertyPlugin, S as SdkContext, a as ApiClient, b as PluginSummary, c as PaginatedSdkResult, d as ManifestProvider, C as ConnectionsProvider, e as CapabilitiesContext, F as FieldsetItem, Z as ZapierFetchInitOptions, f as CoreOptions, g as ActionProxy, h as ZapierSdkApps, D as DeleteTriggerInboxResult, i as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, j as Manifest, E as EventCallback, k as EventEmissionConfig, l as ZapierCache, m as ListActionsOptions, n as ListActionInputFieldsOptions, o as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, T as TriggerInboxCommandSharedFields } from './index-C82Rvqg9.mjs';
|
|
2
|
+
export { dK as API_ID, J as Action, dG as ActionEntry, d3 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bG as ActionItem, ch as ActionKeyProperty, bQ as ActionKeyPropertySchema, ci as ActionProperty, bR as ActionPropertySchema, bq as ActionResolverItem, ct as ActionTimeoutMsProperty, c0 as ActionTimeoutMsPropertySchema, br as ActionTypeItem, cg as ActionTypeProperty, bP as ActionTypePropertySchema, d0 as ApiError, eu as ApiEvent, dI as ApiPluginOptions, K as App, d4 as AppFactoryInput, bE as AppItem, ce as AppKeyProperty, bN as AppKeyPropertySchema, cf as AppProperty, bO as AppPropertySchema, fx as ApplicationLifecycleEventData, cY as ApprovalStatus, cy as AppsProperty, c5 as AppsPropertySchema, aB as ArrayResolver, et as AuthEvent, ef as AuthMechanism, cm as AuthenticationIdProperty, bU as AuthenticationIdPropertySchema, fF as BaseEvent, b9 as BaseSdkOptionsSchema, a_ as BatchOptions, ax as BoundFormatter, eW as CONNECTIONS_ID, ac as CONTEXT, dr as CONTEXT_CACHE_MAX_SIZE, dq as CONTEXT_CACHE_TTL_MS, bd as CORE_ERROR_SYMBOL, b6 as CORE_OPTIONS_ID, bi as CORE_SIGNAL_SYMBOL, aW as CallerContext, Q as Choice, ez as ClientCredentialsObject, eK as ClientCredentialsObjectSchema, $ as Connection, eS as ConnectionEntry, eR as ConnectionEntrySchema, ck as ConnectionIdProperty, bT as ConnectionIdPropertySchema, bF as ConnectionItem, cl as ConnectionProperty, bV as ConnectionPropertySchema, eU as ConnectionsMap, eT as ConnectionsMapSchema, cA as ConnectionsProperty, c7 as ConnectionsPropertySchema, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aQ as ControllerMethodDescription, aP as ControllerMethodSummary, aR as ControllerParameterDescription, aM as ControllerQuestion, bg as CoreCancelledSignal, aa as CoreDisposeError, be as CoreErrorCode, bf as CoreSignal, ew as Credentials, eP as CredentialsFunction, eO as CredentialsFunctionSchema, ey as CredentialsObject, eM as CredentialsObjectSchema, eQ as CredentialsSchema, f1 as DEFAULT_ACTION_TIMEOUT_MS, fa as DEFAULT_APPROVAL_TIMEOUT_MS, dE as DEFAULT_CONFIG_PATH, fb as DEFAULT_MAX_APPROVAL_RETRIES, f0 as DEFAULT_PAGE_SIZE, bC as DEPRECATION_NOTICE_EVENT, cr as DebugProperty, b_ as DebugPropertySchema, bD as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, q as DrainTriggerInboxSchema, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fr as EVENT_EMISSION_ID, fy as EnhancedErrorEventData, cH as ErrorOptions, fw as EventContext, fp as EventEmissionContext, fq as EventEmitter, fv as EventTransport, d5 as FetchPluginProvides, O as Field, cx as FieldsProperty, c4 as FieldsPropertySchema, aH as FieldsResolver, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b8 as FunctionDeprecation, b7 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bI as InfoFieldItem, bH as InputFieldItem, cj as InputFieldProperty, bS as InputFieldPropertySchema, cn as InputsProperty, bW as InputsPropertySchema, bB as JsonSseMessage, cG as LeaseLimitProperty, cd as LeaseLimitPropertySchema, cE as LeaseProperty, cb as LeasePropertySchema, cF as LeaseSecondsProperty, cc as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, co as LimitProperty, bX as LimitPropertySchema, dc as ListActionInputFieldsPluginProvides, da as ListActionsPluginProvides, d8 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dg as ListConnectionsPluginProvides, ev as LoadingEvent, dz as MANIFEST_ID, f4 as MAX_CONCURRENCY_LIMIT, e$ as MAX_PAGE_LIMIT, dF as ManifestEntry, dv as ManifestPluginOptions, fG as MethodCalledEvent, fz as MethodCalledEventData, bl as MethodOverridePlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cp as OffsetProperty, bY as OffsetPropertySchema, az as OutputFormatter, cq as OutputProperty, bZ as OutputPropertySchema, bM as PaginatedSdkFunction, cs as ParamsProperty, b$ as ParamsPropertySchema, eA as PkceCredentialsObject, eL as PkceCredentialsObjectSchema, bj as Plugin, p as PluginMeta, bk as PluginProvides, aK as PluginSurface, bw as PollOptions, a3 as PositionalMetadata, dN as RESOLVE_CREDENTIALS_ID, cW as RateLimitInfo, cv as RecordProperty, c2 as RecordPropertySchema, cw as RecordsProperty, c3 as RecordsPropertySchema, b3 as RelayFetchSchema, b2 as RelayRequestSchema, bv as RequestOptions, ee as ResolveAuthTokenOptions, eV as ResolveConnection, dJ as ResolveCredentialsFn, eF as ResolveCredentialsOptions, bs as ResolvedAppLocator, eg as ResolvedAuth, ex as ResolvedCredentials, eN as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bJ as RootFieldItem, dt as RunActionPluginProvides, au as SDK_OPTIONS_ID, es as SdkEvent, bL as SdkPage, bA as SseMessage, aD as StaticResolver, cu as TableProperty, c1 as TablePropertySchema, cz as TablesProperty, c6 as TablesPropertySchema, cC as TriggerInboxKeyProperty, c9 as TriggerInboxKeyPropertySchema, cD as TriggerInboxNameProperty, ca as TriggerInboxNamePropertySchema, cB as TriggerInboxProperty, c8 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dC as UpdateManifestEntryOptions, dD as UpdateManifestEntryResult, a1 as UserProfile, bK as UserProfileItem, r as WatchTriggerInboxSchema, eZ as ZAPIER_BASE_URL, f6 as ZAPIER_MAX_CONCURRENT_REQUESTS, f2 as ZAPIER_MAX_NETWORK_RETRIES, f3 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cU as ZapierActionError, cN as ZapierApiError, cO as ZapierAppNotFoundError, cZ as ZapierApprovalError, cL as ZapierAuthenticationError, cS as ZapierBundleError, ep as ZapierCacheEntry, eq as ZapierCacheSetOptions, cR as ZapierConfigurationError, cV as ZapierConflictError, cI as ZapierError, cP as ZapierNotFoundError, cX as ZapierRateLimitError, c_ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cQ as ZapierResourceNotFoundError, d1 as ZapierSignal, cT as ZapierTimeoutError, cK as ZapierUnknownError, cJ as ZapierValidationError, dS as actionKeyResolver, dR as actionTypeResolver, a8 as addPlugin, dM as apiPlugin, dL as apiPluginRef, dQ as appKeyResolver, d2 as appsPlugin, aZ as batch, fA as buildApplicationLifecycleEvent, a$ as buildCapabilityMessage, fC as buildErrorEvent, fB as buildErrorEventWithContext, fE as buildMethodCalledEvent, fo as cleanupEventListeners, eh as clearTokenCache, dY as clientCredentialsNameResolver, dZ as clientIdResolver, bp as composePlugins, dU as connectionIdGenericResolver, dT as connectionIdResolver, eY as connectionsPlugin, eX as connectionsPluginRef, fD as createBaseEvent, di as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, er as createMemoryCache, a5 as createPaginatedFunction, bo as createPaginatedPluginMethod, bn as createPluginMethod, a6 as createPluginStack, ab as createSdk, fh as createTableFieldsPlugin, fe as createTablePlugin, fl as createTableRecordsPlugin, bx as createZapierApi, b4 as createZapierSdkWithoutRegistry, an as declareMethod, ap as declareOptionalProperty, ah as declarePlugin, ao as declareProperty, am as defineFormatter, af as defineLegacyMerge, ai as defineMethod, aj as defineMethodOverride, bm as definePlugin, ak as defineProperty, al as defineResolver, dj as deleteClientCredentialsPlugin, fi as deleteTableFieldsPlugin, ff as deleteTablePlugin, fm as deleteTableRecordsPlugin, a9 as disposeSdk, e1 as durableRunIdResolver, fu as eventEmissionHookPlugin, ft as eventEmissionPlugin, fs as eventEmissionPluginRef, d6 as fetchPlugin, dn as findFirstConnectionPlugin, dy as findManifestEntry, dp as findUniqueConnectionPlugin, c$ as formatErrorMessage, ae as fromFunctionPlugin, fH as generateEventId, de as getActionInputFieldsSchemaPlugin, dl as getActionPlugin, bt as getAgent, dk as getAppPlugin, eI as getBaseUrlFromCredentials, aU as getCallerContext, fN as getCiPlatform, eJ as getClientIdFromCredentials, dm as getConnectionPlugin, ag as getContext, bc as getCoreErrorCause, bb as getCoreErrorCode, fP as getCpuTime, fI as getCurrentTimestamp, fO as getMemoryUsage, by as getOrCreateApiClient, fK as getOsInfo, fL as getPlatformVersions, dx as getPreferredManifestEntryKey, dH as getProfilePlugin, as as getRegistryPlugin, fJ as getReleaseId, fd as getTablePlugin, fj as getTableRecordPlugin, el as getTokenFromCliLogin, fQ as getTtyContext, f7 as getZapierApprovalMode, f9 as getZapierDefaultApprovalMode, f8 as getZapierOpenAutoModeApprovalsInBrowser, e_ as getZapierSdkService, ej as injectCliLogin, dX as inputFieldKeyResolver, dW as inputsAllOptionalResolver, dV as inputsResolver, ei as invalidateCachedToken, eo as invalidateCredentialsToken, fM as isCi, ek as isCliLoginAvailable, eB as isClientCredentials, ba as isCoreError, bh as isCoreSignal, eE as isCredentialsFunction, eD as isCredentialsObject, bz as isPermanentHttpError, eC as isPkceCredentials, a2 as isPositional, dd as listActionInputFieldChoicesPlugin, db as listActionInputFieldsPlugin, d9 as listActionsPlugin, d7 as listAppsPlugin, dh as listClientCredentialsPlugin, df as listConnectionsPlugin, fg as listTableFieldsPlugin, fk as listTableRecordsPlugin, fc as listTablesPlugin, b0 as logDeprecation, dB as manifestPlugin, dA as manifestPluginRef, ar as omitExports, f5 as parseConcurrencyEnvVar, dw as readManifestFromFile, bu as registryPlugin, du as requestPlugin, b1 as resetDeprecationWarnings, em as resolveAuth, en as resolveAuthToken, eH as resolveCredentials, eG as resolveCredentialsFromEnv, dP as resolveCredentialsPlugin, dO as resolveCredentialsPluginRef, ad as resolvePlugin, ds as runActionPlugin, aS as runInMethodScope, aV as runWithCallerContext, aT as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e7 as tableFieldIdsResolver, e9 as tableFieldsResolver, ec as tableFiltersResolver, d_ as tableIdResolver, e8 as tableNameResolver, e5 as tableRecordIdResolver, e6 as tableRecordIdsResolver, ea as tableRecordsResolver, ed as tableSortResolver, eb as tableUpdateRecordsResolver, aX as toSnakeCase, aY as toTitleCase, d$ as triggerInboxResolver, e4 as triggerMessagesResolver, fn as updateTableRecordsPlugin, e0 as workflowIdResolver, e3 as workflowRunIdResolver, e2 as workflowVersionIdResolver, cM as zapierAdaptError, b5 as zapierCoreOptions, at as zapierSdkPlugin } from './index-C82Rvqg9.mjs';
|
|
3
3
|
import * as zod from 'zod';
|
|
4
4
|
import * as zod_v4_core from 'zod/v4/core';
|
|
5
5
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
@@ -2760,6 +2760,9 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
|
|
|
2760
2760
|
authentication_id?: string | null | undefined;
|
|
2761
2761
|
params?: Record<string, unknown> | undefined;
|
|
2762
2762
|
error?: string | null | undefined;
|
|
2763
|
+
details?: {
|
|
2764
|
+
webhook_url?: string | undefined;
|
|
2765
|
+
} | null | undefined;
|
|
2763
2766
|
}[];
|
|
2764
2767
|
created_at: string;
|
|
2765
2768
|
updated_at: string;
|
|
@@ -2784,6 +2787,9 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
|
|
|
2784
2787
|
authentication_id?: string | null | undefined;
|
|
2785
2788
|
params?: Record<string, unknown> | undefined;
|
|
2786
2789
|
error?: string | null | undefined;
|
|
2790
|
+
details?: {
|
|
2791
|
+
webhook_url?: string | undefined;
|
|
2792
|
+
} | null | undefined;
|
|
2787
2793
|
}[];
|
|
2788
2794
|
created_at: string;
|
|
2789
2795
|
updated_at: string;
|
|
@@ -4692,6 +4698,9 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
|
|
|
4692
4698
|
authentication_id?: string | null | undefined;
|
|
4693
4699
|
params?: Record<string, unknown> | undefined;
|
|
4694
4700
|
error?: string | null | undefined;
|
|
4701
|
+
details?: {
|
|
4702
|
+
webhook_url?: string | undefined;
|
|
4703
|
+
} | null | undefined;
|
|
4695
4704
|
}[];
|
|
4696
4705
|
created_at: string;
|
|
4697
4706
|
updated_at: string;
|
|
@@ -4715,6 +4724,9 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
|
|
|
4715
4724
|
authentication_id?: string | null | undefined;
|
|
4716
4725
|
params?: Record<string, unknown> | undefined;
|
|
4717
4726
|
error?: string | null | undefined;
|
|
4727
|
+
details?: {
|
|
4728
|
+
webhook_url?: string | undefined;
|
|
4729
|
+
} | null | undefined;
|
|
4718
4730
|
}[];
|
|
4719
4731
|
created_at: string;
|
|
4720
4732
|
updated_at: string;
|
package/dist/experimental.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseSdkOptions, A as AggregatePlugin, M as MethodPlugin, R as RegistryResult, L as LeafSummary, P as PropertyPlugin, S as SdkContext, a as ApiClient, b as PluginSummary, c as PaginatedSdkResult, d as ManifestProvider, C as ConnectionsProvider, e as CapabilitiesContext, F as FieldsetItem, Z as ZapierFetchInitOptions, f as CoreOptions, g as ActionProxy, h as ZapierSdkApps, D as DeleteTriggerInboxResult, i as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, j as Manifest, E as EventCallback, k as EventEmissionConfig, l as ZapierCache, m as ListActionsOptions, n as ListActionInputFieldsOptions, o as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, T as TriggerInboxCommandSharedFields } from './index-
|
|
2
|
-
export { dK as API_ID, J as Action, dG as ActionEntry, d3 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bG as ActionItem, ch as ActionKeyProperty, bQ as ActionKeyPropertySchema, ci as ActionProperty, bR as ActionPropertySchema, bq as ActionResolverItem, ct as ActionTimeoutMsProperty, c0 as ActionTimeoutMsPropertySchema, br as ActionTypeItem, cg as ActionTypeProperty, bP as ActionTypePropertySchema, d0 as ApiError, eu as ApiEvent, dI as ApiPluginOptions, K as App, d4 as AppFactoryInput, bE as AppItem, ce as AppKeyProperty, bN as AppKeyPropertySchema, cf as AppProperty, bO as AppPropertySchema, fx as ApplicationLifecycleEventData, cY as ApprovalStatus, cy as AppsProperty, c5 as AppsPropertySchema, aB as ArrayResolver, et as AuthEvent, ef as AuthMechanism, cm as AuthenticationIdProperty, bU as AuthenticationIdPropertySchema, fF as BaseEvent, b9 as BaseSdkOptionsSchema, a_ as BatchOptions, ax as BoundFormatter, eW as CONNECTIONS_ID, ac as CONTEXT, dr as CONTEXT_CACHE_MAX_SIZE, dq as CONTEXT_CACHE_TTL_MS, bd as CORE_ERROR_SYMBOL, b6 as CORE_OPTIONS_ID, bi as CORE_SIGNAL_SYMBOL, aW as CallerContext, Q as Choice, ez as ClientCredentialsObject, eK as ClientCredentialsObjectSchema, $ as Connection, eS as ConnectionEntry, eR as ConnectionEntrySchema, ck as ConnectionIdProperty, bT as ConnectionIdPropertySchema, bF as ConnectionItem, cl as ConnectionProperty, bV as ConnectionPropertySchema, eU as ConnectionsMap, eT as ConnectionsMapSchema, cA as ConnectionsProperty, c7 as ConnectionsPropertySchema, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aQ as ControllerMethodDescription, aP as ControllerMethodSummary, aR as ControllerParameterDescription, aM as ControllerQuestion, bg as CoreCancelledSignal, aa as CoreDisposeError, be as CoreErrorCode, bf as CoreSignal, ew as Credentials, eP as CredentialsFunction, eO as CredentialsFunctionSchema, ey as CredentialsObject, eM as CredentialsObjectSchema, eQ as CredentialsSchema, f1 as DEFAULT_ACTION_TIMEOUT_MS, fa as DEFAULT_APPROVAL_TIMEOUT_MS, dE as DEFAULT_CONFIG_PATH, fb as DEFAULT_MAX_APPROVAL_RETRIES, f0 as DEFAULT_PAGE_SIZE, bC as DEPRECATION_NOTICE_EVENT, cr as DebugProperty, b_ as DebugPropertySchema, bD as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, q as DrainTriggerInboxSchema, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fr as EVENT_EMISSION_ID, fy as EnhancedErrorEventData, cH as ErrorOptions, fw as EventContext, fp as EventEmissionContext, fq as EventEmitter, fv as EventTransport, d5 as FetchPluginProvides, O as Field, cx as FieldsProperty, c4 as FieldsPropertySchema, aH as FieldsResolver, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b8 as FunctionDeprecation, b7 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bI as InfoFieldItem, bH as InputFieldItem, cj as InputFieldProperty, bS as InputFieldPropertySchema, cn as InputsProperty, bW as InputsPropertySchema, bB as JsonSseMessage, cG as LeaseLimitProperty, cd as LeaseLimitPropertySchema, cE as LeaseProperty, cb as LeasePropertySchema, cF as LeaseSecondsProperty, cc as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, co as LimitProperty, bX as LimitPropertySchema, dc as ListActionInputFieldsPluginProvides, da as ListActionsPluginProvides, d8 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dg as ListConnectionsPluginProvides, ev as LoadingEvent, dz as MANIFEST_ID, f4 as MAX_CONCURRENCY_LIMIT, e$ as MAX_PAGE_LIMIT, dF as ManifestEntry, dv as ManifestPluginOptions, fG as MethodCalledEvent, fz as MethodCalledEventData, bl as MethodOverridePlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cp as OffsetProperty, bY as OffsetPropertySchema, az as OutputFormatter, cq as OutputProperty, bZ as OutputPropertySchema, bM as PaginatedSdkFunction, cs as ParamsProperty, b$ as ParamsPropertySchema, eA as PkceCredentialsObject, eL as PkceCredentialsObjectSchema, bj as Plugin, p as PluginMeta, bk as PluginProvides, aK as PluginSurface, bw as PollOptions, a3 as PositionalMetadata, dN as RESOLVE_CREDENTIALS_ID, cW as RateLimitInfo, cv as RecordProperty, c2 as RecordPropertySchema, cw as RecordsProperty, c3 as RecordsPropertySchema, b3 as RelayFetchSchema, b2 as RelayRequestSchema, bv as RequestOptions, ee as ResolveAuthTokenOptions, eV as ResolveConnection, dJ as ResolveCredentialsFn, eF as ResolveCredentialsOptions, bs as ResolvedAppLocator, eg as ResolvedAuth, ex as ResolvedCredentials, eN as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bJ as RootFieldItem, dt as RunActionPluginProvides, au as SDK_OPTIONS_ID, es as SdkEvent, bL as SdkPage, bA as SseMessage, aD as StaticResolver, cu as TableProperty, c1 as TablePropertySchema, cz as TablesProperty, c6 as TablesPropertySchema, cC as TriggerInboxKeyProperty, c9 as TriggerInboxKeyPropertySchema, cD as TriggerInboxNameProperty, ca as TriggerInboxNamePropertySchema, cB as TriggerInboxProperty, c8 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dC as UpdateManifestEntryOptions, dD as UpdateManifestEntryResult, a1 as UserProfile, bK as UserProfileItem, r as WatchTriggerInboxSchema, eZ as ZAPIER_BASE_URL, f6 as ZAPIER_MAX_CONCURRENT_REQUESTS, f2 as ZAPIER_MAX_NETWORK_RETRIES, f3 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cU as ZapierActionError, cN as ZapierApiError, cO as ZapierAppNotFoundError, cZ as ZapierApprovalError, cL as ZapierAuthenticationError, cS as ZapierBundleError, ep as ZapierCacheEntry, eq as ZapierCacheSetOptions, cR as ZapierConfigurationError, cV as ZapierConflictError, cI as ZapierError, cP as ZapierNotFoundError, cX as ZapierRateLimitError, c_ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cQ as ZapierResourceNotFoundError, d1 as ZapierSignal, cT as ZapierTimeoutError, cK as ZapierUnknownError, cJ as ZapierValidationError, dS as actionKeyResolver, dR as actionTypeResolver, a8 as addPlugin, dM as apiPlugin, dL as apiPluginRef, dQ as appKeyResolver, d2 as appsPlugin, aZ as batch, fA as buildApplicationLifecycleEvent, a$ as buildCapabilityMessage, fC as buildErrorEvent, fB as buildErrorEventWithContext, fE as buildMethodCalledEvent, fo as cleanupEventListeners, eh as clearTokenCache, dY as clientCredentialsNameResolver, dZ as clientIdResolver, bp as composePlugins, dU as connectionIdGenericResolver, dT as connectionIdResolver, eY as connectionsPlugin, eX as connectionsPluginRef, fD as createBaseEvent, di as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, er as createMemoryCache, a5 as createPaginatedFunction, bo as createPaginatedPluginMethod, bn as createPluginMethod, a6 as createPluginStack, ab as createSdk, fh as createTableFieldsPlugin, fe as createTablePlugin, fl as createTableRecordsPlugin, bx as createZapierApi, b4 as createZapierSdkWithoutRegistry, an as declareMethod, ap as declareOptionalProperty, ah as declarePlugin, ao as declareProperty, am as defineFormatter, af as defineLegacyMerge, ai as defineMethod, aj as defineMethodOverride, bm as definePlugin, ak as defineProperty, al as defineResolver, dj as deleteClientCredentialsPlugin, fi as deleteTableFieldsPlugin, ff as deleteTablePlugin, fm as deleteTableRecordsPlugin, a9 as disposeSdk, e1 as durableRunIdResolver, fu as eventEmissionHookPlugin, ft as eventEmissionPlugin, fs as eventEmissionPluginRef, d6 as fetchPlugin, dn as findFirstConnectionPlugin, dy as findManifestEntry, dp as findUniqueConnectionPlugin, c$ as formatErrorMessage, ae as fromFunctionPlugin, fH as generateEventId, de as getActionInputFieldsSchemaPlugin, dl as getActionPlugin, bt as getAgent, dk as getAppPlugin, eI as getBaseUrlFromCredentials, aU as getCallerContext, fN as getCiPlatform, eJ as getClientIdFromCredentials, dm as getConnectionPlugin, ag as getContext, bc as getCoreErrorCause, bb as getCoreErrorCode, fP as getCpuTime, fI as getCurrentTimestamp, fO as getMemoryUsage, by as getOrCreateApiClient, fK as getOsInfo, fL as getPlatformVersions, dx as getPreferredManifestEntryKey, dH as getProfilePlugin, as as getRegistryPlugin, fJ as getReleaseId, fd as getTablePlugin, fj as getTableRecordPlugin, el as getTokenFromCliLogin, fQ as getTtyContext, f7 as getZapierApprovalMode, f9 as getZapierDefaultApprovalMode, f8 as getZapierOpenAutoModeApprovalsInBrowser, e_ as getZapierSdkService, ej as injectCliLogin, dX as inputFieldKeyResolver, dW as inputsAllOptionalResolver, dV as inputsResolver, ei as invalidateCachedToken, eo as invalidateCredentialsToken, fM as isCi, ek as isCliLoginAvailable, eB as isClientCredentials, ba as isCoreError, bh as isCoreSignal, eE as isCredentialsFunction, eD as isCredentialsObject, bz as isPermanentHttpError, eC as isPkceCredentials, a2 as isPositional, dd as listActionInputFieldChoicesPlugin, db as listActionInputFieldsPlugin, d9 as listActionsPlugin, d7 as listAppsPlugin, dh as listClientCredentialsPlugin, df as listConnectionsPlugin, fg as listTableFieldsPlugin, fk as listTableRecordsPlugin, fc as listTablesPlugin, b0 as logDeprecation, dB as manifestPlugin, dA as manifestPluginRef, ar as omitExports, f5 as parseConcurrencyEnvVar, dw as readManifestFromFile, bu as registryPlugin, du as requestPlugin, b1 as resetDeprecationWarnings, em as resolveAuth, en as resolveAuthToken, eH as resolveCredentials, eG as resolveCredentialsFromEnv, dP as resolveCredentialsPlugin, dO as resolveCredentialsPluginRef, ad as resolvePlugin, ds as runActionPlugin, aS as runInMethodScope, aV as runWithCallerContext, aT as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e7 as tableFieldIdsResolver, e9 as tableFieldsResolver, ec as tableFiltersResolver, d_ as tableIdResolver, e8 as tableNameResolver, e5 as tableRecordIdResolver, e6 as tableRecordIdsResolver, ea as tableRecordsResolver, ed as tableSortResolver, eb as tableUpdateRecordsResolver, aX as toSnakeCase, aY as toTitleCase, d$ as triggerInboxResolver, e4 as triggerMessagesResolver, fn as updateTableRecordsPlugin, e0 as workflowIdResolver, e3 as workflowRunIdResolver, e2 as workflowVersionIdResolver, cM as zapierAdaptError, b5 as zapierCoreOptions, at as zapierSdkPlugin } from './index-CgdXuNF1.js';
|
|
1
|
+
import { B as BaseSdkOptions, A as AggregatePlugin, M as MethodPlugin, R as RegistryResult, L as LeafSummary, P as PropertyPlugin, S as SdkContext, a as ApiClient, b as PluginSummary, c as PaginatedSdkResult, d as ManifestProvider, C as ConnectionsProvider, e as CapabilitiesContext, F as FieldsetItem, Z as ZapierFetchInitOptions, f as CoreOptions, g as ActionProxy, h as ZapierSdkApps, D as DeleteTriggerInboxResult, i as DrainTriggerInboxOptions, W as WatchTriggerInboxOptions, j as Manifest, E as EventCallback, k as EventEmissionConfig, l as ZapierCache, m as ListActionsOptions, n as ListActionInputFieldsOptions, o as ListActionInputFieldChoicesOptions, G as GetActionInputFieldsSchemaOptions, T as TriggerInboxCommandSharedFields } from './index-C82Rvqg9.js';
|
|
2
|
+
export { dK as API_ID, J as Action, dG as ActionEntry, d3 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bG as ActionItem, ch as ActionKeyProperty, bQ as ActionKeyPropertySchema, ci as ActionProperty, bR as ActionPropertySchema, bq as ActionResolverItem, ct as ActionTimeoutMsProperty, c0 as ActionTimeoutMsPropertySchema, br as ActionTypeItem, cg as ActionTypeProperty, bP as ActionTypePropertySchema, d0 as ApiError, eu as ApiEvent, dI as ApiPluginOptions, K as App, d4 as AppFactoryInput, bE as AppItem, ce as AppKeyProperty, bN as AppKeyPropertySchema, cf as AppProperty, bO as AppPropertySchema, fx as ApplicationLifecycleEventData, cY as ApprovalStatus, cy as AppsProperty, c5 as AppsPropertySchema, aB as ArrayResolver, et as AuthEvent, ef as AuthMechanism, cm as AuthenticationIdProperty, bU as AuthenticationIdPropertySchema, fF as BaseEvent, b9 as BaseSdkOptionsSchema, a_ as BatchOptions, ax as BoundFormatter, eW as CONNECTIONS_ID, ac as CONTEXT, dr as CONTEXT_CACHE_MAX_SIZE, dq as CONTEXT_CACHE_TTL_MS, bd as CORE_ERROR_SYMBOL, b6 as CORE_OPTIONS_ID, bi as CORE_SIGNAL_SYMBOL, aW as CallerContext, Q as Choice, ez as ClientCredentialsObject, eK as ClientCredentialsObjectSchema, $ as Connection, eS as ConnectionEntry, eR as ConnectionEntrySchema, ck as ConnectionIdProperty, bT as ConnectionIdPropertySchema, bF as ConnectionItem, cl as ConnectionProperty, bV as ConnectionPropertySchema, eU as ConnectionsMap, eT as ConnectionsMapSchema, cA as ConnectionsProperty, c7 as ConnectionsPropertySchema, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aQ as ControllerMethodDescription, aP as ControllerMethodSummary, aR as ControllerParameterDescription, aM as ControllerQuestion, bg as CoreCancelledSignal, aa as CoreDisposeError, be as CoreErrorCode, bf as CoreSignal, ew as Credentials, eP as CredentialsFunction, eO as CredentialsFunctionSchema, ey as CredentialsObject, eM as CredentialsObjectSchema, eQ as CredentialsSchema, f1 as DEFAULT_ACTION_TIMEOUT_MS, fa as DEFAULT_APPROVAL_TIMEOUT_MS, dE as DEFAULT_CONFIG_PATH, fb as DEFAULT_MAX_APPROVAL_RETRIES, f0 as DEFAULT_PAGE_SIZE, bC as DEPRECATION_NOTICE_EVENT, cr as DebugProperty, b_ as DebugPropertySchema, bD as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, q as DrainTriggerInboxSchema, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fr as EVENT_EMISSION_ID, fy as EnhancedErrorEventData, cH as ErrorOptions, fw as EventContext, fp as EventEmissionContext, fq as EventEmitter, fv as EventTransport, d5 as FetchPluginProvides, O as Field, cx as FieldsProperty, c4 as FieldsPropertySchema, aH as FieldsResolver, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b8 as FunctionDeprecation, b7 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bI as InfoFieldItem, bH as InputFieldItem, cj as InputFieldProperty, bS as InputFieldPropertySchema, cn as InputsProperty, bW as InputsPropertySchema, bB as JsonSseMessage, cG as LeaseLimitProperty, cd as LeaseLimitPropertySchema, cE as LeaseProperty, cb as LeasePropertySchema, cF as LeaseSecondsProperty, cc as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, co as LimitProperty, bX as LimitPropertySchema, dc as ListActionInputFieldsPluginProvides, da as ListActionsPluginProvides, d8 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dg as ListConnectionsPluginProvides, ev as LoadingEvent, dz as MANIFEST_ID, f4 as MAX_CONCURRENCY_LIMIT, e$ as MAX_PAGE_LIMIT, dF as ManifestEntry, dv as ManifestPluginOptions, fG as MethodCalledEvent, fz as MethodCalledEventData, bl as MethodOverridePlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cp as OffsetProperty, bY as OffsetPropertySchema, az as OutputFormatter, cq as OutputProperty, bZ as OutputPropertySchema, bM as PaginatedSdkFunction, cs as ParamsProperty, b$ as ParamsPropertySchema, eA as PkceCredentialsObject, eL as PkceCredentialsObjectSchema, bj as Plugin, p as PluginMeta, bk as PluginProvides, aK as PluginSurface, bw as PollOptions, a3 as PositionalMetadata, dN as RESOLVE_CREDENTIALS_ID, cW as RateLimitInfo, cv as RecordProperty, c2 as RecordPropertySchema, cw as RecordsProperty, c3 as RecordsPropertySchema, b3 as RelayFetchSchema, b2 as RelayRequestSchema, bv as RequestOptions, ee as ResolveAuthTokenOptions, eV as ResolveConnection, dJ as ResolveCredentialsFn, eF as ResolveCredentialsOptions, bs as ResolvedAppLocator, eg as ResolvedAuth, ex as ResolvedCredentials, eN as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bJ as RootFieldItem, dt as RunActionPluginProvides, au as SDK_OPTIONS_ID, es as SdkEvent, bL as SdkPage, bA as SseMessage, aD as StaticResolver, cu as TableProperty, c1 as TablePropertySchema, cz as TablesProperty, c6 as TablesPropertySchema, cC as TriggerInboxKeyProperty, c9 as TriggerInboxKeyPropertySchema, cD as TriggerInboxNameProperty, ca as TriggerInboxNamePropertySchema, cB as TriggerInboxProperty, c8 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dC as UpdateManifestEntryOptions, dD as UpdateManifestEntryResult, a1 as UserProfile, bK as UserProfileItem, r as WatchTriggerInboxSchema, eZ as ZAPIER_BASE_URL, f6 as ZAPIER_MAX_CONCURRENT_REQUESTS, f2 as ZAPIER_MAX_NETWORK_RETRIES, f3 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cU as ZapierActionError, cN as ZapierApiError, cO as ZapierAppNotFoundError, cZ as ZapierApprovalError, cL as ZapierAuthenticationError, cS as ZapierBundleError, ep as ZapierCacheEntry, eq as ZapierCacheSetOptions, cR as ZapierConfigurationError, cV as ZapierConflictError, cI as ZapierError, cP as ZapierNotFoundError, cX as ZapierRateLimitError, c_ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cQ as ZapierResourceNotFoundError, d1 as ZapierSignal, cT as ZapierTimeoutError, cK as ZapierUnknownError, cJ as ZapierValidationError, dS as actionKeyResolver, dR as actionTypeResolver, a8 as addPlugin, dM as apiPlugin, dL as apiPluginRef, dQ as appKeyResolver, d2 as appsPlugin, aZ as batch, fA as buildApplicationLifecycleEvent, a$ as buildCapabilityMessage, fC as buildErrorEvent, fB as buildErrorEventWithContext, fE as buildMethodCalledEvent, fo as cleanupEventListeners, eh as clearTokenCache, dY as clientCredentialsNameResolver, dZ as clientIdResolver, bp as composePlugins, dU as connectionIdGenericResolver, dT as connectionIdResolver, eY as connectionsPlugin, eX as connectionsPluginRef, fD as createBaseEvent, di as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, er as createMemoryCache, a5 as createPaginatedFunction, bo as createPaginatedPluginMethod, bn as createPluginMethod, a6 as createPluginStack, ab as createSdk, fh as createTableFieldsPlugin, fe as createTablePlugin, fl as createTableRecordsPlugin, bx as createZapierApi, b4 as createZapierSdkWithoutRegistry, an as declareMethod, ap as declareOptionalProperty, ah as declarePlugin, ao as declareProperty, am as defineFormatter, af as defineLegacyMerge, ai as defineMethod, aj as defineMethodOverride, bm as definePlugin, ak as defineProperty, al as defineResolver, dj as deleteClientCredentialsPlugin, fi as deleteTableFieldsPlugin, ff as deleteTablePlugin, fm as deleteTableRecordsPlugin, a9 as disposeSdk, e1 as durableRunIdResolver, fu as eventEmissionHookPlugin, ft as eventEmissionPlugin, fs as eventEmissionPluginRef, d6 as fetchPlugin, dn as findFirstConnectionPlugin, dy as findManifestEntry, dp as findUniqueConnectionPlugin, c$ as formatErrorMessage, ae as fromFunctionPlugin, fH as generateEventId, de as getActionInputFieldsSchemaPlugin, dl as getActionPlugin, bt as getAgent, dk as getAppPlugin, eI as getBaseUrlFromCredentials, aU as getCallerContext, fN as getCiPlatform, eJ as getClientIdFromCredentials, dm as getConnectionPlugin, ag as getContext, bc as getCoreErrorCause, bb as getCoreErrorCode, fP as getCpuTime, fI as getCurrentTimestamp, fO as getMemoryUsage, by as getOrCreateApiClient, fK as getOsInfo, fL as getPlatformVersions, dx as getPreferredManifestEntryKey, dH as getProfilePlugin, as as getRegistryPlugin, fJ as getReleaseId, fd as getTablePlugin, fj as getTableRecordPlugin, el as getTokenFromCliLogin, fQ as getTtyContext, f7 as getZapierApprovalMode, f9 as getZapierDefaultApprovalMode, f8 as getZapierOpenAutoModeApprovalsInBrowser, e_ as getZapierSdkService, ej as injectCliLogin, dX as inputFieldKeyResolver, dW as inputsAllOptionalResolver, dV as inputsResolver, ei as invalidateCachedToken, eo as invalidateCredentialsToken, fM as isCi, ek as isCliLoginAvailable, eB as isClientCredentials, ba as isCoreError, bh as isCoreSignal, eE as isCredentialsFunction, eD as isCredentialsObject, bz as isPermanentHttpError, eC as isPkceCredentials, a2 as isPositional, dd as listActionInputFieldChoicesPlugin, db as listActionInputFieldsPlugin, d9 as listActionsPlugin, d7 as listAppsPlugin, dh as listClientCredentialsPlugin, df as listConnectionsPlugin, fg as listTableFieldsPlugin, fk as listTableRecordsPlugin, fc as listTablesPlugin, b0 as logDeprecation, dB as manifestPlugin, dA as manifestPluginRef, ar as omitExports, f5 as parseConcurrencyEnvVar, dw as readManifestFromFile, bu as registryPlugin, du as requestPlugin, b1 as resetDeprecationWarnings, em as resolveAuth, en as resolveAuthToken, eH as resolveCredentials, eG as resolveCredentialsFromEnv, dP as resolveCredentialsPlugin, dO as resolveCredentialsPluginRef, ad as resolvePlugin, ds as runActionPlugin, aS as runInMethodScope, aV as runWithCallerContext, aT as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e7 as tableFieldIdsResolver, e9 as tableFieldsResolver, ec as tableFiltersResolver, d_ as tableIdResolver, e8 as tableNameResolver, e5 as tableRecordIdResolver, e6 as tableRecordIdsResolver, ea as tableRecordsResolver, ed as tableSortResolver, eb as tableUpdateRecordsResolver, aX as toSnakeCase, aY as toTitleCase, d$ as triggerInboxResolver, e4 as triggerMessagesResolver, fn as updateTableRecordsPlugin, e0 as workflowIdResolver, e3 as workflowRunIdResolver, e2 as workflowVersionIdResolver, cM as zapierAdaptError, b5 as zapierCoreOptions, at as zapierSdkPlugin } from './index-C82Rvqg9.js';
|
|
3
3
|
import * as zod from 'zod';
|
|
4
4
|
import * as zod_v4_core from 'zod/v4/core';
|
|
5
5
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
@@ -2760,6 +2760,9 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
|
|
|
2760
2760
|
authentication_id?: string | null | undefined;
|
|
2761
2761
|
params?: Record<string, unknown> | undefined;
|
|
2762
2762
|
error?: string | null | undefined;
|
|
2763
|
+
details?: {
|
|
2764
|
+
webhook_url?: string | undefined;
|
|
2765
|
+
} | null | undefined;
|
|
2763
2766
|
}[];
|
|
2764
2767
|
created_at: string;
|
|
2765
2768
|
updated_at: string;
|
|
@@ -2784,6 +2787,9 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
|
|
|
2784
2787
|
authentication_id?: string | null | undefined;
|
|
2785
2788
|
params?: Record<string, unknown> | undefined;
|
|
2786
2789
|
error?: string | null | undefined;
|
|
2790
|
+
details?: {
|
|
2791
|
+
webhook_url?: string | undefined;
|
|
2792
|
+
} | null | undefined;
|
|
2787
2793
|
}[];
|
|
2788
2794
|
created_at: string;
|
|
2789
2795
|
updated_at: string;
|
|
@@ -4692,6 +4698,9 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
|
|
|
4692
4698
|
authentication_id?: string | null | undefined;
|
|
4693
4699
|
params?: Record<string, unknown> | undefined;
|
|
4694
4700
|
error?: string | null | undefined;
|
|
4701
|
+
details?: {
|
|
4702
|
+
webhook_url?: string | undefined;
|
|
4703
|
+
} | null | undefined;
|
|
4695
4704
|
}[];
|
|
4696
4705
|
created_at: string;
|
|
4697
4706
|
updated_at: string;
|
|
@@ -4715,6 +4724,9 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
|
|
|
4715
4724
|
authentication_id?: string | null | undefined;
|
|
4716
4725
|
params?: Record<string, unknown> | undefined;
|
|
4717
4726
|
error?: string | null | undefined;
|
|
4727
|
+
details?: {
|
|
4728
|
+
webhook_url?: string | undefined;
|
|
4729
|
+
} | null | undefined;
|
|
4718
4730
|
}[];
|
|
4719
4731
|
created_at: string;
|
|
4720
4732
|
updated_at: string;
|
package/dist/experimental.mjs
CHANGED
|
@@ -5192,7 +5192,7 @@ function parseDeprecationDate(value) {
|
|
|
5192
5192
|
}
|
|
5193
5193
|
|
|
5194
5194
|
// src/sdk-version.ts
|
|
5195
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.83.
|
|
5195
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.83.2" : void 0) || "unknown";
|
|
5196
5196
|
|
|
5197
5197
|
// src/utils/open-url.ts
|
|
5198
5198
|
var nodePrefix = "node:";
|
|
@@ -14061,6 +14061,8 @@ function buildErrorEvent(data, context = {}) {
|
|
|
14061
14061
|
environment: context.environment,
|
|
14062
14062
|
...data,
|
|
14063
14063
|
agent: getAgent(),
|
|
14064
|
+
caller_package: context.caller_package ?? null,
|
|
14065
|
+
caller_package_version: context.caller_package_version ?? null,
|
|
14064
14066
|
sdk_version: SDK_VERSION
|
|
14065
14067
|
};
|
|
14066
14068
|
}
|
|
@@ -14090,6 +14092,8 @@ function buildApplicationLifecycleEvent(data, context = {}) {
|
|
|
14090
14092
|
metadata: null,
|
|
14091
14093
|
...data,
|
|
14092
14094
|
process_argv: data.process_argv ?? null,
|
|
14095
|
+
caller_package: context.caller_package ?? null,
|
|
14096
|
+
caller_package_version: context.caller_package_version ?? null,
|
|
14093
14097
|
sdk_version: SDK_VERSION
|
|
14094
14098
|
};
|
|
14095
14099
|
}
|
|
@@ -14106,6 +14110,8 @@ function buildErrorEventWithContext(data, context = {}) {
|
|
|
14106
14110
|
execution_time_before_error_ms: executionTime,
|
|
14107
14111
|
...data,
|
|
14108
14112
|
agent: getAgent(),
|
|
14113
|
+
caller_package: context.caller_package ?? null,
|
|
14114
|
+
caller_package_version: context.caller_package_version ?? null,
|
|
14109
14115
|
sdk_version: SDK_VERSION
|
|
14110
14116
|
};
|
|
14111
14117
|
}
|
|
@@ -14139,6 +14145,8 @@ function buildMethodCalledEvent(data, context = {}) {
|
|
|
14139
14145
|
cpu_time_ms: null,
|
|
14140
14146
|
memory_usage_bytes: null,
|
|
14141
14147
|
agent: getAgent(),
|
|
14148
|
+
caller_package: context.caller_package ?? null,
|
|
14149
|
+
caller_package_version: context.caller_package_version ?? null,
|
|
14142
14150
|
sdk_version: SDK_VERSION
|
|
14143
14151
|
};
|
|
14144
14152
|
}
|
|
@@ -14291,14 +14299,21 @@ function createEventEmitter(options) {
|
|
|
14291
14299
|
)
|
|
14292
14300
|
)
|
|
14293
14301
|
};
|
|
14302
|
+
const callerPackageContext = {
|
|
14303
|
+
caller_package: options.callerPackage?.name ?? null,
|
|
14304
|
+
caller_package_version: options.callerPackage?.version ?? null
|
|
14305
|
+
};
|
|
14294
14306
|
const getUserContext = (async () => {
|
|
14295
14307
|
if (config.enabled) {
|
|
14296
14308
|
try {
|
|
14297
|
-
return
|
|
14309
|
+
return {
|
|
14310
|
+
...buildEventAuthContext(await resolveAuth({ ...options })),
|
|
14311
|
+
...callerPackageContext
|
|
14312
|
+
};
|
|
14298
14313
|
} catch {
|
|
14299
14314
|
}
|
|
14300
14315
|
}
|
|
14301
|
-
return NULL_EVENT_CONTEXT;
|
|
14316
|
+
return { ...NULL_EVENT_CONTEXT, ...callerPackageContext };
|
|
14302
14317
|
})();
|
|
14303
14318
|
const startupTime = Date.now();
|
|
14304
14319
|
let shutdownStartTime = null;
|
|
@@ -14716,6 +14731,9 @@ function toWireAppVersions(appVersions) {
|
|
|
14716
14731
|
}
|
|
14717
14732
|
return wire;
|
|
14718
14733
|
}
|
|
14734
|
+
var WorkflowTriggerUrlSchema = z.string().describe(
|
|
14735
|
+
"Public URL that fires this workflow when POSTed to. Embeds a trigger token in the path \u2014 treat as sensitive. Requests must also be authenticated as the account."
|
|
14736
|
+
);
|
|
14719
14737
|
var ConnectionBindingSchema2 = z.object({
|
|
14720
14738
|
connection_id: z.union([
|
|
14721
14739
|
z.number().int().positive(),
|
|
@@ -14748,6 +14766,11 @@ var WorkflowTriggerStatusSchema = z.enum([
|
|
|
14748
14766
|
"failed"
|
|
14749
14767
|
]);
|
|
14750
14768
|
var WorkflowDisabledReasonSchema = z.enum(["trigger_claim_failed"]);
|
|
14769
|
+
var WorkflowTriggerDetailsSchema = z.object({
|
|
14770
|
+
webhook_url: z.string().optional().describe(
|
|
14771
|
+
"Public catch URL for this trigger. Present on catch-hook triggers (e.g. Webhooks by Zapier)."
|
|
14772
|
+
)
|
|
14773
|
+
}).describe("Trigger-type-specific metadata. Shape varies by trigger type.");
|
|
14751
14774
|
var WorkflowTriggerSchema = z.object({
|
|
14752
14775
|
selected_api: z.string().describe("Zapier app/API identifier (e.g. 'GoogleSheetsAPI')"),
|
|
14753
14776
|
action: z.string().describe("Trigger action key (e.g. 'new_row')"),
|
|
@@ -14763,6 +14786,11 @@ var WorkflowTriggerSchema = z.object({
|
|
|
14763
14786
|
// time — surface verbatim.
|
|
14764
14787
|
error: z.string().nullable().optional().describe(
|
|
14765
14788
|
"Failure reason for the latest claim. Present (non-null) only when status is 'failed'."
|
|
14789
|
+
),
|
|
14790
|
+
// webhook_url is named in this prose because the generated README doesn't
|
|
14791
|
+
// expand fields nested this deep.
|
|
14792
|
+
details: WorkflowTriggerDetailsSchema.nullable().optional().describe(
|
|
14793
|
+
"Trigger-type-specific metadata; shape varies by trigger type (e.g. `webhook_url` on catch-hook triggers). Null or absent when none applies."
|
|
14766
14794
|
)
|
|
14767
14795
|
}).describe(
|
|
14768
14796
|
"Trigger from a workflow's current version, combined with the live claim status."
|
|
@@ -14773,9 +14801,7 @@ var WorkflowItemSchema = z.object({
|
|
|
14773
14801
|
id: z.string().describe("Workflow ID (UUID)"),
|
|
14774
14802
|
name: z.string().describe("Workflow name"),
|
|
14775
14803
|
description: z.string().nullable().describe("Optional workflow description (null if unset)"),
|
|
14776
|
-
trigger_url:
|
|
14777
|
-
"Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path \u2014 treat as sensitive."
|
|
14778
|
-
),
|
|
14804
|
+
trigger_url: WorkflowTriggerUrlSchema,
|
|
14779
14805
|
enabled: z.boolean().describe("Whether the workflow currently accepts triggers"),
|
|
14780
14806
|
// Optional until COSUB-630 ships the field server-side; afterwards the API
|
|
14781
14807
|
// always sends it (null unless the workflow was system-disabled).
|
|
@@ -14871,9 +14897,7 @@ var GetWorkflowResponseSchema = z.object({
|
|
|
14871
14897
|
id: z.string().describe("Workflow ID (UUID)"),
|
|
14872
14898
|
name: z.string().describe("Workflow name"),
|
|
14873
14899
|
description: z.string().nullable().describe("Optional workflow description (null if unset)"),
|
|
14874
|
-
trigger_url:
|
|
14875
|
-
"Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path \u2014 treat as sensitive."
|
|
14876
|
-
),
|
|
14900
|
+
trigger_url: WorkflowTriggerUrlSchema,
|
|
14877
14901
|
enabled: z.boolean().describe("Whether the workflow currently accepts triggers"),
|
|
14878
14902
|
// Optional until COSUB-630 ships the field server-side; afterwards the API
|
|
14879
14903
|
// always sends it (null unless the workflow was system-disabled). Kept
|
|
@@ -14934,9 +14958,7 @@ var CreateWorkflowResponseSchema = z.object({
|
|
|
14934
14958
|
id: z.string().describe("Workflow ID (UUID)"),
|
|
14935
14959
|
name: z.string().describe("Workflow name"),
|
|
14936
14960
|
description: z.string().nullable().describe("Workflow description (null if unset)"),
|
|
14937
|
-
trigger_url:
|
|
14938
|
-
"Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path \u2014 treat as sensitive."
|
|
14939
|
-
),
|
|
14961
|
+
trigger_url: WorkflowTriggerUrlSchema,
|
|
14940
14962
|
enabled: z.boolean().describe(
|
|
14941
14963
|
"Whether the workflow currently accepts triggers. Always false on a new workflow until enabled."
|
|
14942
14964
|
),
|
|
@@ -14984,9 +15006,7 @@ var UpdateWorkflowResponseSchema = z.object({
|
|
|
14984
15006
|
id: z.string().describe("Workflow ID (UUID)"),
|
|
14985
15007
|
name: z.string().describe("Workflow name (post-update)"),
|
|
14986
15008
|
description: z.string().nullable().describe("Workflow description, post-update (null if unset)"),
|
|
14987
|
-
trigger_url:
|
|
14988
|
-
"Public webhook URL that fires this workflow when POSTed to. Embeds a secret trigger token in the path \u2014 treat as sensitive."
|
|
14989
|
-
),
|
|
15009
|
+
trigger_url: WorkflowTriggerUrlSchema,
|
|
14990
15010
|
enabled: z.boolean().describe("Whether the workflow currently accepts triggers"),
|
|
14991
15011
|
is_private: z.boolean().describe(
|
|
14992
15012
|
"Whether the workflow is private to the creating user. False means account-visible."
|
|
@@ -3805,6 +3805,8 @@ interface ErrorOccurredEvent extends BaseEvent {
|
|
|
3805
3805
|
environment?: string | null;
|
|
3806
3806
|
execution_time_before_error_ms?: number | null;
|
|
3807
3807
|
agent?: string | null;
|
|
3808
|
+
caller_package?: string | null;
|
|
3809
|
+
caller_package_version?: string | null;
|
|
3808
3810
|
}
|
|
3809
3811
|
interface ApplicationLifecycleEvent extends BaseEvent {
|
|
3810
3812
|
lifecycle_event_type: "startup" | "exit" | "signal_termination" | "signup_success" | "login_success";
|
|
@@ -3837,6 +3839,8 @@ interface ApplicationLifecycleEvent extends BaseEvent {
|
|
|
3837
3839
|
stdin_is_tty?: boolean | null;
|
|
3838
3840
|
stdout_is_tty?: boolean | null;
|
|
3839
3841
|
agent?: string | null;
|
|
3842
|
+
caller_package?: string | null;
|
|
3843
|
+
caller_package_version?: string | null;
|
|
3840
3844
|
}
|
|
3841
3845
|
interface MethodCalledEvent extends BaseEvent {
|
|
3842
3846
|
method_name: string;
|
|
@@ -3867,6 +3871,8 @@ interface MethodCalledEvent extends BaseEvent {
|
|
|
3867
3871
|
cpu_time_ms: number | null;
|
|
3868
3872
|
memory_usage_bytes: number | null;
|
|
3869
3873
|
agent: string | null;
|
|
3874
|
+
caller_package: string | null;
|
|
3875
|
+
caller_package_version: string | null;
|
|
3870
3876
|
}
|
|
3871
3877
|
|
|
3872
3878
|
/**
|
|
@@ -3902,6 +3908,8 @@ interface EventContext {
|
|
|
3902
3908
|
node_id?: number | null;
|
|
3903
3909
|
environment?: string | null;
|
|
3904
3910
|
operation_type?: string | null;
|
|
3911
|
+
caller_package?: string | null;
|
|
3912
|
+
caller_package_version?: string | null;
|
|
3905
3913
|
}
|
|
3906
3914
|
interface ErrorEventData {
|
|
3907
3915
|
error_message: string;
|
|
@@ -3805,6 +3805,8 @@ interface ErrorOccurredEvent extends BaseEvent {
|
|
|
3805
3805
|
environment?: string | null;
|
|
3806
3806
|
execution_time_before_error_ms?: number | null;
|
|
3807
3807
|
agent?: string | null;
|
|
3808
|
+
caller_package?: string | null;
|
|
3809
|
+
caller_package_version?: string | null;
|
|
3808
3810
|
}
|
|
3809
3811
|
interface ApplicationLifecycleEvent extends BaseEvent {
|
|
3810
3812
|
lifecycle_event_type: "startup" | "exit" | "signal_termination" | "signup_success" | "login_success";
|
|
@@ -3837,6 +3839,8 @@ interface ApplicationLifecycleEvent extends BaseEvent {
|
|
|
3837
3839
|
stdin_is_tty?: boolean | null;
|
|
3838
3840
|
stdout_is_tty?: boolean | null;
|
|
3839
3841
|
agent?: string | null;
|
|
3842
|
+
caller_package?: string | null;
|
|
3843
|
+
caller_package_version?: string | null;
|
|
3840
3844
|
}
|
|
3841
3845
|
interface MethodCalledEvent extends BaseEvent {
|
|
3842
3846
|
method_name: string;
|
|
@@ -3867,6 +3871,8 @@ interface MethodCalledEvent extends BaseEvent {
|
|
|
3867
3871
|
cpu_time_ms: number | null;
|
|
3868
3872
|
memory_usage_bytes: number | null;
|
|
3869
3873
|
agent: string | null;
|
|
3874
|
+
caller_package: string | null;
|
|
3875
|
+
caller_package_version: string | null;
|
|
3870
3876
|
}
|
|
3871
3877
|
|
|
3872
3878
|
/**
|
|
@@ -3902,6 +3908,8 @@ interface EventContext {
|
|
|
3902
3908
|
node_id?: number | null;
|
|
3903
3909
|
environment?: string | null;
|
|
3904
3910
|
operation_type?: string | null;
|
|
3911
|
+
caller_package?: string | null;
|
|
3912
|
+
caller_package_version?: string | null;
|
|
3905
3913
|
}
|
|
3906
3914
|
interface ErrorEventData {
|
|
3907
3915
|
error_message: string;
|
package/dist/index.cjs
CHANGED
|
@@ -5340,7 +5340,7 @@ function parseDeprecationDate(value) {
|
|
|
5340
5340
|
}
|
|
5341
5341
|
|
|
5342
5342
|
// src/sdk-version.ts
|
|
5343
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.83.
|
|
5343
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.83.2" : void 0) || "unknown";
|
|
5344
5344
|
|
|
5345
5345
|
// src/utils/open-url.ts
|
|
5346
5346
|
var nodePrefix = "node:";
|
|
@@ -14058,6 +14058,8 @@ function buildErrorEvent(data, context = {}) {
|
|
|
14058
14058
|
environment: context.environment,
|
|
14059
14059
|
...data,
|
|
14060
14060
|
agent: getAgent(),
|
|
14061
|
+
caller_package: context.caller_package ?? null,
|
|
14062
|
+
caller_package_version: context.caller_package_version ?? null,
|
|
14061
14063
|
sdk_version: SDK_VERSION
|
|
14062
14064
|
};
|
|
14063
14065
|
}
|
|
@@ -14087,6 +14089,8 @@ function buildApplicationLifecycleEvent(data, context = {}) {
|
|
|
14087
14089
|
metadata: null,
|
|
14088
14090
|
...data,
|
|
14089
14091
|
process_argv: data.process_argv ?? null,
|
|
14092
|
+
caller_package: context.caller_package ?? null,
|
|
14093
|
+
caller_package_version: context.caller_package_version ?? null,
|
|
14090
14094
|
sdk_version: SDK_VERSION
|
|
14091
14095
|
};
|
|
14092
14096
|
}
|
|
@@ -14103,6 +14107,8 @@ function buildErrorEventWithContext(data, context = {}) {
|
|
|
14103
14107
|
execution_time_before_error_ms: executionTime,
|
|
14104
14108
|
...data,
|
|
14105
14109
|
agent: getAgent(),
|
|
14110
|
+
caller_package: context.caller_package ?? null,
|
|
14111
|
+
caller_package_version: context.caller_package_version ?? null,
|
|
14106
14112
|
sdk_version: SDK_VERSION
|
|
14107
14113
|
};
|
|
14108
14114
|
}
|
|
@@ -14136,6 +14142,8 @@ function buildMethodCalledEvent(data, context = {}) {
|
|
|
14136
14142
|
cpu_time_ms: null,
|
|
14137
14143
|
memory_usage_bytes: null,
|
|
14138
14144
|
agent: getAgent(),
|
|
14145
|
+
caller_package: context.caller_package ?? null,
|
|
14146
|
+
caller_package_version: context.caller_package_version ?? null,
|
|
14139
14147
|
sdk_version: SDK_VERSION
|
|
14140
14148
|
};
|
|
14141
14149
|
}
|
|
@@ -14288,14 +14296,21 @@ function createEventEmitter(options) {
|
|
|
14288
14296
|
)
|
|
14289
14297
|
)
|
|
14290
14298
|
};
|
|
14299
|
+
const callerPackageContext = {
|
|
14300
|
+
caller_package: options.callerPackage?.name ?? null,
|
|
14301
|
+
caller_package_version: options.callerPackage?.version ?? null
|
|
14302
|
+
};
|
|
14291
14303
|
const getUserContext = (async () => {
|
|
14292
14304
|
if (config.enabled) {
|
|
14293
14305
|
try {
|
|
14294
|
-
return
|
|
14306
|
+
return {
|
|
14307
|
+
...buildEventAuthContext(await resolveAuth({ ...options })),
|
|
14308
|
+
...callerPackageContext
|
|
14309
|
+
};
|
|
14295
14310
|
} catch {
|
|
14296
14311
|
}
|
|
14297
14312
|
}
|
|
14298
|
-
return NULL_EVENT_CONTEXT;
|
|
14313
|
+
return { ...NULL_EVENT_CONTEXT, ...callerPackageContext };
|
|
14299
14314
|
})();
|
|
14300
14315
|
const startupTime = Date.now();
|
|
14301
14316
|
let shutdownStartTime = null;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { dK as API_ID, J as Action, dG as ActionEntry, d3 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bG as ActionItem, ch as ActionKeyProperty, bQ as ActionKeyPropertySchema, ci as ActionProperty, bR as ActionPropertySchema, bq as ActionResolverItem, ct as ActionTimeoutMsProperty, c0 as ActionTimeoutMsPropertySchema, br as ActionTypeItem, cg as ActionTypeProperty, bP as ActionTypePropertySchema, A as AggregatePlugin, a as ApiClient, d0 as ApiError, eu as ApiEvent, dI as ApiPluginOptions, K as App, d4 as AppFactoryInput, bE as AppItem, ce as AppKeyProperty, bN as AppKeyPropertySchema, cf as AppProperty, bO as AppPropertySchema, fx as ApplicationLifecycleEventData, cY as ApprovalStatus, cy as AppsProperty, c5 as AppsPropertySchema, aB as ArrayResolver, et as AuthEvent, ef as AuthMechanism, cm as AuthenticationIdProperty, bU as AuthenticationIdPropertySchema, fF as BaseEvent, b9 as BaseSdkOptionsSchema, a_ as BatchOptions, ax as BoundFormatter, eW as CONNECTIONS_ID, ac as CONTEXT, dr as CONTEXT_CACHE_MAX_SIZE, dq as CONTEXT_CACHE_TTL_MS, bd as CORE_ERROR_SYMBOL, b6 as CORE_OPTIONS_ID, bi as CORE_SIGNAL_SYMBOL, aW as CallerContext, Q as Choice, ez as ClientCredentialsObject, eK as ClientCredentialsObjectSchema, $ as Connection, eS as ConnectionEntry, eR as ConnectionEntrySchema, ck as ConnectionIdProperty, bT as ConnectionIdPropertySchema, bF as ConnectionItem, cl as ConnectionProperty, bV as ConnectionPropertySchema, eU as ConnectionsMap, eT as ConnectionsMapSchema, cA as ConnectionsProperty, c7 as ConnectionsPropertySchema, C as ConnectionsProvider, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aQ as ControllerMethodDescription, aP as ControllerMethodSummary, aR as ControllerParameterDescription, aM as ControllerQuestion, bg as CoreCancelledSignal, aa as CoreDisposeError, be as CoreErrorCode, bf as CoreSignal, ew as Credentials, eP as CredentialsFunction, eO as CredentialsFunctionSchema, ey as CredentialsObject, eM as CredentialsObjectSchema, eQ as CredentialsSchema, f1 as DEFAULT_ACTION_TIMEOUT_MS, fa as DEFAULT_APPROVAL_TIMEOUT_MS, dE as DEFAULT_CONFIG_PATH, fb as DEFAULT_MAX_APPROVAL_RETRIES, f0 as DEFAULT_PAGE_SIZE, bC as DEPRECATION_NOTICE_EVENT, cr as DebugProperty, b_ as DebugPropertySchema, bD as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, i as DrainTriggerInboxOptions, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fr as EVENT_EMISSION_ID, fy as EnhancedErrorEventData, cH as ErrorOptions, E as EventCallback, fw as EventContext, k as EventEmissionConfig, fp as EventEmissionContext, fq as EventEmitter, fv as EventTransport, d5 as FetchPluginProvides, O as Field, cx as FieldsProperty, c4 as FieldsPropertySchema, aH as FieldsResolver, F as FieldsetItem, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b8 as FunctionDeprecation, b7 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bI as InfoFieldItem, bH as InputFieldItem, cj as InputFieldProperty, bS as InputFieldPropertySchema, cn as InputsProperty, bW as InputsPropertySchema, bB as JsonSseMessage, L as LeafSummary, cG as LeaseLimitProperty, cd as LeaseLimitPropertySchema, cE as LeaseProperty, cb as LeasePropertySchema, cF as LeaseSecondsProperty, cc as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, co as LimitProperty, bX as LimitPropertySchema, dc as ListActionInputFieldsPluginProvides, da as ListActionsPluginProvides, d8 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dg as ListConnectionsPluginProvides, ev as LoadingEvent, dz as MANIFEST_ID, f4 as MAX_CONCURRENCY_LIMIT, e$ as MAX_PAGE_LIMIT, j as Manifest, dF as ManifestEntry, dv as ManifestPluginOptions, d as ManifestProvider, fG as MethodCalledEvent, fz as MethodCalledEventData, bl as MethodOverridePlugin, M as MethodPlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cp as OffsetProperty, bY as OffsetPropertySchema, az as OutputFormatter, cq as OutputProperty, bZ as OutputPropertySchema, bM as PaginatedSdkFunction, c as PaginatedSdkResult, cs as ParamsProperty, b$ as ParamsPropertySchema, eA as PkceCredentialsObject, eL as PkceCredentialsObjectSchema, bj as Plugin, p as PluginMeta, bk as PluginProvides, b as PluginSummary, aK as PluginSurface, bw as PollOptions, a3 as PositionalMetadata, P as PropertyPlugin, dN as RESOLVE_CREDENTIALS_ID, cW as RateLimitInfo, cv as RecordProperty, c2 as RecordPropertySchema, cw as RecordsProperty, c3 as RecordsPropertySchema, b3 as RelayFetchSchema, b2 as RelayRequestSchema, bv as RequestOptions, ee as ResolveAuthTokenOptions, eV as ResolveConnection, dJ as ResolveCredentialsFn, eF as ResolveCredentialsOptions, bs as ResolvedAppLocator, eg as ResolvedAuth, ex as ResolvedCredentials, eN as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bJ as RootFieldItem, dt as RunActionPluginProvides, au as SDK_OPTIONS_ID, es as SdkEvent, bL as SdkPage, bA as SseMessage, aD as StaticResolver, cu as TableProperty, c1 as TablePropertySchema, cz as TablesProperty, c6 as TablesPropertySchema, cC as TriggerInboxKeyProperty, c9 as TriggerInboxKeyPropertySchema, cD as TriggerInboxNameProperty, ca as TriggerInboxNamePropertySchema, cB as TriggerInboxProperty, c8 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dC as UpdateManifestEntryOptions, dD as UpdateManifestEntryResult, a1 as UserProfile, bK as UserProfileItem, W as WatchTriggerInboxOptions, eZ as ZAPIER_BASE_URL, f6 as ZAPIER_MAX_CONCURRENT_REQUESTS, f2 as ZAPIER_MAX_NETWORK_RETRIES, f3 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cU as ZapierActionError, cN as ZapierApiError, cO as ZapierAppNotFoundError, cZ as ZapierApprovalError, cL as ZapierAuthenticationError, cS as ZapierBundleError, l as ZapierCache, ep as ZapierCacheEntry, eq as ZapierCacheSetOptions, cR as ZapierConfigurationError, cV as ZapierConflictError, cI as ZapierError, Z as ZapierFetchInitOptions, cP as ZapierNotFoundError, cX as ZapierRateLimitError, c_ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cQ as ZapierResourceNotFoundError, fT as ZapierSdk, h as ZapierSdkApps, fS as ZapierSdkOptions, d1 as ZapierSignal, cT as ZapierTimeoutError, cK as ZapierUnknownError, cJ as ZapierValidationError, dS as actionKeyResolver, dR as actionTypeResolver, a8 as addPlugin, dM as apiPlugin, dL as apiPluginRef, dQ as appKeyResolver, d2 as appsPlugin, aZ as batch, fA as buildApplicationLifecycleEvent, a$ as buildCapabilityMessage, fC as buildErrorEvent, fB as buildErrorEventWithContext, fE as buildMethodCalledEvent, fo as cleanupEventListeners, eh as clearTokenCache, dY as clientCredentialsNameResolver, dZ as clientIdResolver, bp as composePlugins, dU as connectionIdGenericResolver, dT as connectionIdResolver, eY as connectionsPlugin, eX as connectionsPluginRef, fD as createBaseEvent, di as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, er as createMemoryCache, a5 as createPaginatedFunction, bo as createPaginatedPluginMethod, bn as createPluginMethod, a6 as createPluginStack, ab as createSdk, fh as createTableFieldsPlugin, fe as createTablePlugin, fl as createTableRecordsPlugin, bx as createZapierApi, fR as createZapierSdk, b4 as createZapierSdkWithoutRegistry, an as declareMethod, ap as declareOptionalProperty, ah as declarePlugin, ao as declareProperty, am as defineFormatter, af as defineLegacyMerge, ai as defineMethod, aj as defineMethodOverride, bm as definePlugin, ak as defineProperty, al as defineResolver, dj as deleteClientCredentialsPlugin, fi as deleteTableFieldsPlugin, ff as deleteTablePlugin, fm as deleteTableRecordsPlugin, a9 as disposeSdk, e1 as durableRunIdResolver, fu as eventEmissionHookPlugin, ft as eventEmissionPlugin, fs as eventEmissionPluginRef, d6 as fetchPlugin, dn as findFirstConnectionPlugin, dy as findManifestEntry, dp as findUniqueConnectionPlugin, c$ as formatErrorMessage, ae as fromFunctionPlugin, fH as generateEventId, de as getActionInputFieldsSchemaPlugin, dl as getActionPlugin, bt as getAgent, dk as getAppPlugin, eI as getBaseUrlFromCredentials, aU as getCallerContext, fN as getCiPlatform, eJ as getClientIdFromCredentials, dm as getConnectionPlugin, ag as getContext, bc as getCoreErrorCause, bb as getCoreErrorCode, fP as getCpuTime, fI as getCurrentTimestamp, fO as getMemoryUsage, by as getOrCreateApiClient, fK as getOsInfo, fL as getPlatformVersions, dx as getPreferredManifestEntryKey, dH as getProfilePlugin, as as getRegistryPlugin, fJ as getReleaseId, fd as getTablePlugin, fj as getTableRecordPlugin, el as getTokenFromCliLogin, fQ as getTtyContext, f7 as getZapierApprovalMode, f9 as getZapierDefaultApprovalMode, f8 as getZapierOpenAutoModeApprovalsInBrowser, e_ as getZapierSdkService, ej as injectCliLogin, dX as inputFieldKeyResolver, dW as inputsAllOptionalResolver, dV as inputsResolver, ei as invalidateCachedToken, eo as invalidateCredentialsToken, fM as isCi, ek as isCliLoginAvailable, eB as isClientCredentials, ba as isCoreError, bh as isCoreSignal, eE as isCredentialsFunction, eD as isCredentialsObject, bz as isPermanentHttpError, eC as isPkceCredentials, a2 as isPositional, dd as listActionInputFieldChoicesPlugin, db as listActionInputFieldsPlugin, d9 as listActionsPlugin, d7 as listAppsPlugin, dh as listClientCredentialsPlugin, df as listConnectionsPlugin, fg as listTableFieldsPlugin, fk as listTableRecordsPlugin, fc as listTablesPlugin, b0 as logDeprecation, dB as manifestPlugin, dA as manifestPluginRef, ar as omitExports, f5 as parseConcurrencyEnvVar, dw as readManifestFromFile, bu as registryPlugin, du as requestPlugin, b1 as resetDeprecationWarnings, em as resolveAuth, en as resolveAuthToken, eH as resolveCredentials, eG as resolveCredentialsFromEnv, dP as resolveCredentialsPlugin, dO as resolveCredentialsPluginRef, ad as resolvePlugin, ds as runActionPlugin, aS as runInMethodScope, aV as runWithCallerContext, aT as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e7 as tableFieldIdsResolver, e9 as tableFieldsResolver, ec as tableFiltersResolver, d_ as tableIdResolver, e8 as tableNameResolver, e5 as tableRecordIdResolver, e6 as tableRecordIdsResolver, ea as tableRecordsResolver, ed as tableSortResolver, eb as tableUpdateRecordsResolver, aX as toSnakeCase, aY as toTitleCase, d$ as triggerInboxResolver, e4 as triggerMessagesResolver, fn as updateTableRecordsPlugin, e0 as workflowIdResolver, e3 as workflowRunIdResolver, e2 as workflowVersionIdResolver, cM as zapierAdaptError, b5 as zapierCoreOptions, at as zapierSdkPlugin } from './index-CgdXuNF1.mjs';
|
|
1
|
+
export { dK as API_ID, J as Action, dG as ActionEntry, d3 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bG as ActionItem, ch as ActionKeyProperty, bQ as ActionKeyPropertySchema, ci as ActionProperty, bR as ActionPropertySchema, bq as ActionResolverItem, ct as ActionTimeoutMsProperty, c0 as ActionTimeoutMsPropertySchema, br as ActionTypeItem, cg as ActionTypeProperty, bP as ActionTypePropertySchema, A as AggregatePlugin, a as ApiClient, d0 as ApiError, eu as ApiEvent, dI as ApiPluginOptions, K as App, d4 as AppFactoryInput, bE as AppItem, ce as AppKeyProperty, bN as AppKeyPropertySchema, cf as AppProperty, bO as AppPropertySchema, fx as ApplicationLifecycleEventData, cY as ApprovalStatus, cy as AppsProperty, c5 as AppsPropertySchema, aB as ArrayResolver, et as AuthEvent, ef as AuthMechanism, cm as AuthenticationIdProperty, bU as AuthenticationIdPropertySchema, fF as BaseEvent, b9 as BaseSdkOptionsSchema, a_ as BatchOptions, ax as BoundFormatter, eW as CONNECTIONS_ID, ac as CONTEXT, dr as CONTEXT_CACHE_MAX_SIZE, dq as CONTEXT_CACHE_TTL_MS, bd as CORE_ERROR_SYMBOL, b6 as CORE_OPTIONS_ID, bi as CORE_SIGNAL_SYMBOL, aW as CallerContext, Q as Choice, ez as ClientCredentialsObject, eK as ClientCredentialsObjectSchema, $ as Connection, eS as ConnectionEntry, eR as ConnectionEntrySchema, ck as ConnectionIdProperty, bT as ConnectionIdPropertySchema, bF as ConnectionItem, cl as ConnectionProperty, bV as ConnectionPropertySchema, eU as ConnectionsMap, eT as ConnectionsMapSchema, cA as ConnectionsProperty, c7 as ConnectionsPropertySchema, C as ConnectionsProvider, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aQ as ControllerMethodDescription, aP as ControllerMethodSummary, aR as ControllerParameterDescription, aM as ControllerQuestion, bg as CoreCancelledSignal, aa as CoreDisposeError, be as CoreErrorCode, bf as CoreSignal, ew as Credentials, eP as CredentialsFunction, eO as CredentialsFunctionSchema, ey as CredentialsObject, eM as CredentialsObjectSchema, eQ as CredentialsSchema, f1 as DEFAULT_ACTION_TIMEOUT_MS, fa as DEFAULT_APPROVAL_TIMEOUT_MS, dE as DEFAULT_CONFIG_PATH, fb as DEFAULT_MAX_APPROVAL_RETRIES, f0 as DEFAULT_PAGE_SIZE, bC as DEPRECATION_NOTICE_EVENT, cr as DebugProperty, b_ as DebugPropertySchema, bD as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, i as DrainTriggerInboxOptions, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fr as EVENT_EMISSION_ID, fy as EnhancedErrorEventData, cH as ErrorOptions, E as EventCallback, fw as EventContext, k as EventEmissionConfig, fp as EventEmissionContext, fq as EventEmitter, fv as EventTransport, d5 as FetchPluginProvides, O as Field, cx as FieldsProperty, c4 as FieldsPropertySchema, aH as FieldsResolver, F as FieldsetItem, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b8 as FunctionDeprecation, b7 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bI as InfoFieldItem, bH as InputFieldItem, cj as InputFieldProperty, bS as InputFieldPropertySchema, cn as InputsProperty, bW as InputsPropertySchema, bB as JsonSseMessage, L as LeafSummary, cG as LeaseLimitProperty, cd as LeaseLimitPropertySchema, cE as LeaseProperty, cb as LeasePropertySchema, cF as LeaseSecondsProperty, cc as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, co as LimitProperty, bX as LimitPropertySchema, dc as ListActionInputFieldsPluginProvides, da as ListActionsPluginProvides, d8 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dg as ListConnectionsPluginProvides, ev as LoadingEvent, dz as MANIFEST_ID, f4 as MAX_CONCURRENCY_LIMIT, e$ as MAX_PAGE_LIMIT, j as Manifest, dF as ManifestEntry, dv as ManifestPluginOptions, d as ManifestProvider, fG as MethodCalledEvent, fz as MethodCalledEventData, bl as MethodOverridePlugin, M as MethodPlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cp as OffsetProperty, bY as OffsetPropertySchema, az as OutputFormatter, cq as OutputProperty, bZ as OutputPropertySchema, bM as PaginatedSdkFunction, c as PaginatedSdkResult, cs as ParamsProperty, b$ as ParamsPropertySchema, eA as PkceCredentialsObject, eL as PkceCredentialsObjectSchema, bj as Plugin, p as PluginMeta, bk as PluginProvides, b as PluginSummary, aK as PluginSurface, bw as PollOptions, a3 as PositionalMetadata, P as PropertyPlugin, dN as RESOLVE_CREDENTIALS_ID, cW as RateLimitInfo, cv as RecordProperty, c2 as RecordPropertySchema, cw as RecordsProperty, c3 as RecordsPropertySchema, b3 as RelayFetchSchema, b2 as RelayRequestSchema, bv as RequestOptions, ee as ResolveAuthTokenOptions, eV as ResolveConnection, dJ as ResolveCredentialsFn, eF as ResolveCredentialsOptions, bs as ResolvedAppLocator, eg as ResolvedAuth, ex as ResolvedCredentials, eN as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bJ as RootFieldItem, dt as RunActionPluginProvides, au as SDK_OPTIONS_ID, es as SdkEvent, bL as SdkPage, bA as SseMessage, aD as StaticResolver, cu as TableProperty, c1 as TablePropertySchema, cz as TablesProperty, c6 as TablesPropertySchema, cC as TriggerInboxKeyProperty, c9 as TriggerInboxKeyPropertySchema, cD as TriggerInboxNameProperty, ca as TriggerInboxNamePropertySchema, cB as TriggerInboxProperty, c8 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dC as UpdateManifestEntryOptions, dD as UpdateManifestEntryResult, a1 as UserProfile, bK as UserProfileItem, W as WatchTriggerInboxOptions, eZ as ZAPIER_BASE_URL, f6 as ZAPIER_MAX_CONCURRENT_REQUESTS, f2 as ZAPIER_MAX_NETWORK_RETRIES, f3 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cU as ZapierActionError, cN as ZapierApiError, cO as ZapierAppNotFoundError, cZ as ZapierApprovalError, cL as ZapierAuthenticationError, cS as ZapierBundleError, l as ZapierCache, ep as ZapierCacheEntry, eq as ZapierCacheSetOptions, cR as ZapierConfigurationError, cV as ZapierConflictError, cI as ZapierError, Z as ZapierFetchInitOptions, cP as ZapierNotFoundError, cX as ZapierRateLimitError, c_ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cQ as ZapierResourceNotFoundError, fT as ZapierSdk, h as ZapierSdkApps, fS as ZapierSdkOptions, d1 as ZapierSignal, cT as ZapierTimeoutError, cK as ZapierUnknownError, cJ as ZapierValidationError, dS as actionKeyResolver, dR as actionTypeResolver, a8 as addPlugin, dM as apiPlugin, dL as apiPluginRef, dQ as appKeyResolver, d2 as appsPlugin, aZ as batch, fA as buildApplicationLifecycleEvent, a$ as buildCapabilityMessage, fC as buildErrorEvent, fB as buildErrorEventWithContext, fE as buildMethodCalledEvent, fo as cleanupEventListeners, eh as clearTokenCache, dY as clientCredentialsNameResolver, dZ as clientIdResolver, bp as composePlugins, dU as connectionIdGenericResolver, dT as connectionIdResolver, eY as connectionsPlugin, eX as connectionsPluginRef, fD as createBaseEvent, di as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, er as createMemoryCache, a5 as createPaginatedFunction, bo as createPaginatedPluginMethod, bn as createPluginMethod, a6 as createPluginStack, ab as createSdk, fh as createTableFieldsPlugin, fe as createTablePlugin, fl as createTableRecordsPlugin, bx as createZapierApi, fR as createZapierSdk, b4 as createZapierSdkWithoutRegistry, an as declareMethod, ap as declareOptionalProperty, ah as declarePlugin, ao as declareProperty, am as defineFormatter, af as defineLegacyMerge, ai as defineMethod, aj as defineMethodOverride, bm as definePlugin, ak as defineProperty, al as defineResolver, dj as deleteClientCredentialsPlugin, fi as deleteTableFieldsPlugin, ff as deleteTablePlugin, fm as deleteTableRecordsPlugin, a9 as disposeSdk, e1 as durableRunIdResolver, fu as eventEmissionHookPlugin, ft as eventEmissionPlugin, fs as eventEmissionPluginRef, d6 as fetchPlugin, dn as findFirstConnectionPlugin, dy as findManifestEntry, dp as findUniqueConnectionPlugin, c$ as formatErrorMessage, ae as fromFunctionPlugin, fH as generateEventId, de as getActionInputFieldsSchemaPlugin, dl as getActionPlugin, bt as getAgent, dk as getAppPlugin, eI as getBaseUrlFromCredentials, aU as getCallerContext, fN as getCiPlatform, eJ as getClientIdFromCredentials, dm as getConnectionPlugin, ag as getContext, bc as getCoreErrorCause, bb as getCoreErrorCode, fP as getCpuTime, fI as getCurrentTimestamp, fO as getMemoryUsage, by as getOrCreateApiClient, fK as getOsInfo, fL as getPlatformVersions, dx as getPreferredManifestEntryKey, dH as getProfilePlugin, as as getRegistryPlugin, fJ as getReleaseId, fd as getTablePlugin, fj as getTableRecordPlugin, el as getTokenFromCliLogin, fQ as getTtyContext, f7 as getZapierApprovalMode, f9 as getZapierDefaultApprovalMode, f8 as getZapierOpenAutoModeApprovalsInBrowser, e_ as getZapierSdkService, ej as injectCliLogin, dX as inputFieldKeyResolver, dW as inputsAllOptionalResolver, dV as inputsResolver, ei as invalidateCachedToken, eo as invalidateCredentialsToken, fM as isCi, ek as isCliLoginAvailable, eB as isClientCredentials, ba as isCoreError, bh as isCoreSignal, eE as isCredentialsFunction, eD as isCredentialsObject, bz as isPermanentHttpError, eC as isPkceCredentials, a2 as isPositional, dd as listActionInputFieldChoicesPlugin, db as listActionInputFieldsPlugin, d9 as listActionsPlugin, d7 as listAppsPlugin, dh as listClientCredentialsPlugin, df as listConnectionsPlugin, fg as listTableFieldsPlugin, fk as listTableRecordsPlugin, fc as listTablesPlugin, b0 as logDeprecation, dB as manifestPlugin, dA as manifestPluginRef, ar as omitExports, f5 as parseConcurrencyEnvVar, dw as readManifestFromFile, bu as registryPlugin, du as requestPlugin, b1 as resetDeprecationWarnings, em as resolveAuth, en as resolveAuthToken, eH as resolveCredentials, eG as resolveCredentialsFromEnv, dP as resolveCredentialsPlugin, dO as resolveCredentialsPluginRef, ad as resolvePlugin, ds as runActionPlugin, aS as runInMethodScope, aV as runWithCallerContext, aT as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e7 as tableFieldIdsResolver, e9 as tableFieldsResolver, ec as tableFiltersResolver, d_ as tableIdResolver, e8 as tableNameResolver, e5 as tableRecordIdResolver, e6 as tableRecordIdsResolver, ea as tableRecordsResolver, ed as tableSortResolver, eb as tableUpdateRecordsResolver, aX as toSnakeCase, aY as toTitleCase, d$ as triggerInboxResolver, e4 as triggerMessagesResolver, fn as updateTableRecordsPlugin, e0 as workflowIdResolver, e3 as workflowRunIdResolver, e2 as workflowVersionIdResolver, cM as zapierAdaptError, b5 as zapierCoreOptions, at as zapierSdkPlugin } from './index-C82Rvqg9.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
4
4
|
import '@zapier/policy-context';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { dK as API_ID, J as Action, dG as ActionEntry, d3 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bG as ActionItem, ch as ActionKeyProperty, bQ as ActionKeyPropertySchema, ci as ActionProperty, bR as ActionPropertySchema, bq as ActionResolverItem, ct as ActionTimeoutMsProperty, c0 as ActionTimeoutMsPropertySchema, br as ActionTypeItem, cg as ActionTypeProperty, bP as ActionTypePropertySchema, A as AggregatePlugin, a as ApiClient, d0 as ApiError, eu as ApiEvent, dI as ApiPluginOptions, K as App, d4 as AppFactoryInput, bE as AppItem, ce as AppKeyProperty, bN as AppKeyPropertySchema, cf as AppProperty, bO as AppPropertySchema, fx as ApplicationLifecycleEventData, cY as ApprovalStatus, cy as AppsProperty, c5 as AppsPropertySchema, aB as ArrayResolver, et as AuthEvent, ef as AuthMechanism, cm as AuthenticationIdProperty, bU as AuthenticationIdPropertySchema, fF as BaseEvent, b9 as BaseSdkOptionsSchema, a_ as BatchOptions, ax as BoundFormatter, eW as CONNECTIONS_ID, ac as CONTEXT, dr as CONTEXT_CACHE_MAX_SIZE, dq as CONTEXT_CACHE_TTL_MS, bd as CORE_ERROR_SYMBOL, b6 as CORE_OPTIONS_ID, bi as CORE_SIGNAL_SYMBOL, aW as CallerContext, Q as Choice, ez as ClientCredentialsObject, eK as ClientCredentialsObjectSchema, $ as Connection, eS as ConnectionEntry, eR as ConnectionEntrySchema, ck as ConnectionIdProperty, bT as ConnectionIdPropertySchema, bF as ConnectionItem, cl as ConnectionProperty, bV as ConnectionPropertySchema, eU as ConnectionsMap, eT as ConnectionsMapSchema, cA as ConnectionsProperty, c7 as ConnectionsPropertySchema, C as ConnectionsProvider, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aQ as ControllerMethodDescription, aP as ControllerMethodSummary, aR as ControllerParameterDescription, aM as ControllerQuestion, bg as CoreCancelledSignal, aa as CoreDisposeError, be as CoreErrorCode, bf as CoreSignal, ew as Credentials, eP as CredentialsFunction, eO as CredentialsFunctionSchema, ey as CredentialsObject, eM as CredentialsObjectSchema, eQ as CredentialsSchema, f1 as DEFAULT_ACTION_TIMEOUT_MS, fa as DEFAULT_APPROVAL_TIMEOUT_MS, dE as DEFAULT_CONFIG_PATH, fb as DEFAULT_MAX_APPROVAL_RETRIES, f0 as DEFAULT_PAGE_SIZE, bC as DEPRECATION_NOTICE_EVENT, cr as DebugProperty, b_ as DebugPropertySchema, bD as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, i as DrainTriggerInboxOptions, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fr as EVENT_EMISSION_ID, fy as EnhancedErrorEventData, cH as ErrorOptions, E as EventCallback, fw as EventContext, k as EventEmissionConfig, fp as EventEmissionContext, fq as EventEmitter, fv as EventTransport, d5 as FetchPluginProvides, O as Field, cx as FieldsProperty, c4 as FieldsPropertySchema, aH as FieldsResolver, F as FieldsetItem, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b8 as FunctionDeprecation, b7 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bI as InfoFieldItem, bH as InputFieldItem, cj as InputFieldProperty, bS as InputFieldPropertySchema, cn as InputsProperty, bW as InputsPropertySchema, bB as JsonSseMessage, L as LeafSummary, cG as LeaseLimitProperty, cd as LeaseLimitPropertySchema, cE as LeaseProperty, cb as LeasePropertySchema, cF as LeaseSecondsProperty, cc as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, co as LimitProperty, bX as LimitPropertySchema, dc as ListActionInputFieldsPluginProvides, da as ListActionsPluginProvides, d8 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dg as ListConnectionsPluginProvides, ev as LoadingEvent, dz as MANIFEST_ID, f4 as MAX_CONCURRENCY_LIMIT, e$ as MAX_PAGE_LIMIT, j as Manifest, dF as ManifestEntry, dv as ManifestPluginOptions, d as ManifestProvider, fG as MethodCalledEvent, fz as MethodCalledEventData, bl as MethodOverridePlugin, M as MethodPlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cp as OffsetProperty, bY as OffsetPropertySchema, az as OutputFormatter, cq as OutputProperty, bZ as OutputPropertySchema, bM as PaginatedSdkFunction, c as PaginatedSdkResult, cs as ParamsProperty, b$ as ParamsPropertySchema, eA as PkceCredentialsObject, eL as PkceCredentialsObjectSchema, bj as Plugin, p as PluginMeta, bk as PluginProvides, b as PluginSummary, aK as PluginSurface, bw as PollOptions, a3 as PositionalMetadata, P as PropertyPlugin, dN as RESOLVE_CREDENTIALS_ID, cW as RateLimitInfo, cv as RecordProperty, c2 as RecordPropertySchema, cw as RecordsProperty, c3 as RecordsPropertySchema, b3 as RelayFetchSchema, b2 as RelayRequestSchema, bv as RequestOptions, ee as ResolveAuthTokenOptions, eV as ResolveConnection, dJ as ResolveCredentialsFn, eF as ResolveCredentialsOptions, bs as ResolvedAppLocator, eg as ResolvedAuth, ex as ResolvedCredentials, eN as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bJ as RootFieldItem, dt as RunActionPluginProvides, au as SDK_OPTIONS_ID, es as SdkEvent, bL as SdkPage, bA as SseMessage, aD as StaticResolver, cu as TableProperty, c1 as TablePropertySchema, cz as TablesProperty, c6 as TablesPropertySchema, cC as TriggerInboxKeyProperty, c9 as TriggerInboxKeyPropertySchema, cD as TriggerInboxNameProperty, ca as TriggerInboxNamePropertySchema, cB as TriggerInboxProperty, c8 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dC as UpdateManifestEntryOptions, dD as UpdateManifestEntryResult, a1 as UserProfile, bK as UserProfileItem, W as WatchTriggerInboxOptions, eZ as ZAPIER_BASE_URL, f6 as ZAPIER_MAX_CONCURRENT_REQUESTS, f2 as ZAPIER_MAX_NETWORK_RETRIES, f3 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cU as ZapierActionError, cN as ZapierApiError, cO as ZapierAppNotFoundError, cZ as ZapierApprovalError, cL as ZapierAuthenticationError, cS as ZapierBundleError, l as ZapierCache, ep as ZapierCacheEntry, eq as ZapierCacheSetOptions, cR as ZapierConfigurationError, cV as ZapierConflictError, cI as ZapierError, Z as ZapierFetchInitOptions, cP as ZapierNotFoundError, cX as ZapierRateLimitError, c_ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cQ as ZapierResourceNotFoundError, fT as ZapierSdk, h as ZapierSdkApps, fS as ZapierSdkOptions, d1 as ZapierSignal, cT as ZapierTimeoutError, cK as ZapierUnknownError, cJ as ZapierValidationError, dS as actionKeyResolver, dR as actionTypeResolver, a8 as addPlugin, dM as apiPlugin, dL as apiPluginRef, dQ as appKeyResolver, d2 as appsPlugin, aZ as batch, fA as buildApplicationLifecycleEvent, a$ as buildCapabilityMessage, fC as buildErrorEvent, fB as buildErrorEventWithContext, fE as buildMethodCalledEvent, fo as cleanupEventListeners, eh as clearTokenCache, dY as clientCredentialsNameResolver, dZ as clientIdResolver, bp as composePlugins, dU as connectionIdGenericResolver, dT as connectionIdResolver, eY as connectionsPlugin, eX as connectionsPluginRef, fD as createBaseEvent, di as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, er as createMemoryCache, a5 as createPaginatedFunction, bo as createPaginatedPluginMethod, bn as createPluginMethod, a6 as createPluginStack, ab as createSdk, fh as createTableFieldsPlugin, fe as createTablePlugin, fl as createTableRecordsPlugin, bx as createZapierApi, fR as createZapierSdk, b4 as createZapierSdkWithoutRegistry, an as declareMethod, ap as declareOptionalProperty, ah as declarePlugin, ao as declareProperty, am as defineFormatter, af as defineLegacyMerge, ai as defineMethod, aj as defineMethodOverride, bm as definePlugin, ak as defineProperty, al as defineResolver, dj as deleteClientCredentialsPlugin, fi as deleteTableFieldsPlugin, ff as deleteTablePlugin, fm as deleteTableRecordsPlugin, a9 as disposeSdk, e1 as durableRunIdResolver, fu as eventEmissionHookPlugin, ft as eventEmissionPlugin, fs as eventEmissionPluginRef, d6 as fetchPlugin, dn as findFirstConnectionPlugin, dy as findManifestEntry, dp as findUniqueConnectionPlugin, c$ as formatErrorMessage, ae as fromFunctionPlugin, fH as generateEventId, de as getActionInputFieldsSchemaPlugin, dl as getActionPlugin, bt as getAgent, dk as getAppPlugin, eI as getBaseUrlFromCredentials, aU as getCallerContext, fN as getCiPlatform, eJ as getClientIdFromCredentials, dm as getConnectionPlugin, ag as getContext, bc as getCoreErrorCause, bb as getCoreErrorCode, fP as getCpuTime, fI as getCurrentTimestamp, fO as getMemoryUsage, by as getOrCreateApiClient, fK as getOsInfo, fL as getPlatformVersions, dx as getPreferredManifestEntryKey, dH as getProfilePlugin, as as getRegistryPlugin, fJ as getReleaseId, fd as getTablePlugin, fj as getTableRecordPlugin, el as getTokenFromCliLogin, fQ as getTtyContext, f7 as getZapierApprovalMode, f9 as getZapierDefaultApprovalMode, f8 as getZapierOpenAutoModeApprovalsInBrowser, e_ as getZapierSdkService, ej as injectCliLogin, dX as inputFieldKeyResolver, dW as inputsAllOptionalResolver, dV as inputsResolver, ei as invalidateCachedToken, eo as invalidateCredentialsToken, fM as isCi, ek as isCliLoginAvailable, eB as isClientCredentials, ba as isCoreError, bh as isCoreSignal, eE as isCredentialsFunction, eD as isCredentialsObject, bz as isPermanentHttpError, eC as isPkceCredentials, a2 as isPositional, dd as listActionInputFieldChoicesPlugin, db as listActionInputFieldsPlugin, d9 as listActionsPlugin, d7 as listAppsPlugin, dh as listClientCredentialsPlugin, df as listConnectionsPlugin, fg as listTableFieldsPlugin, fk as listTableRecordsPlugin, fc as listTablesPlugin, b0 as logDeprecation, dB as manifestPlugin, dA as manifestPluginRef, ar as omitExports, f5 as parseConcurrencyEnvVar, dw as readManifestFromFile, bu as registryPlugin, du as requestPlugin, b1 as resetDeprecationWarnings, em as resolveAuth, en as resolveAuthToken, eH as resolveCredentials, eG as resolveCredentialsFromEnv, dP as resolveCredentialsPlugin, dO as resolveCredentialsPluginRef, ad as resolvePlugin, ds as runActionPlugin, aS as runInMethodScope, aV as runWithCallerContext, aT as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e7 as tableFieldIdsResolver, e9 as tableFieldsResolver, ec as tableFiltersResolver, d_ as tableIdResolver, e8 as tableNameResolver, e5 as tableRecordIdResolver, e6 as tableRecordIdsResolver, ea as tableRecordsResolver, ed as tableSortResolver, eb as tableUpdateRecordsResolver, aX as toSnakeCase, aY as toTitleCase, d$ as triggerInboxResolver, e4 as triggerMessagesResolver, fn as updateTableRecordsPlugin, e0 as workflowIdResolver, e3 as workflowRunIdResolver, e2 as workflowVersionIdResolver, cM as zapierAdaptError, b5 as zapierCoreOptions, at as zapierSdkPlugin } from './index-CgdXuNF1.js';
|
|
1
|
+
export { dK as API_ID, J as Action, dG as ActionEntry, d3 as ActionExecutionOptions, U as ActionExecutionResult, V as ActionField, X as ActionFieldChoice, bG as ActionItem, ch as ActionKeyProperty, bQ as ActionKeyPropertySchema, ci as ActionProperty, bR as ActionPropertySchema, bq as ActionResolverItem, ct as ActionTimeoutMsProperty, c0 as ActionTimeoutMsPropertySchema, br as ActionTypeItem, cg as ActionTypeProperty, bP as ActionTypePropertySchema, A as AggregatePlugin, a as ApiClient, d0 as ApiError, eu as ApiEvent, dI as ApiPluginOptions, K as App, d4 as AppFactoryInput, bE as AppItem, ce as AppKeyProperty, bN as AppKeyPropertySchema, cf as AppProperty, bO as AppPropertySchema, fx as ApplicationLifecycleEventData, cY as ApprovalStatus, cy as AppsProperty, c5 as AppsPropertySchema, aB as ArrayResolver, et as AuthEvent, ef as AuthMechanism, cm as AuthenticationIdProperty, bU as AuthenticationIdPropertySchema, fF as BaseEvent, b9 as BaseSdkOptionsSchema, a_ as BatchOptions, ax as BoundFormatter, eW as CONNECTIONS_ID, ac as CONTEXT, dr as CONTEXT_CACHE_MAX_SIZE, dq as CONTEXT_CACHE_TTL_MS, bd as CORE_ERROR_SYMBOL, b6 as CORE_OPTIONS_ID, bi as CORE_SIGNAL_SYMBOL, aW as CallerContext, Q as Choice, ez as ClientCredentialsObject, eK as ClientCredentialsObjectSchema, $ as Connection, eS as ConnectionEntry, eR as ConnectionEntrySchema, ck as ConnectionIdProperty, bT as ConnectionIdPropertySchema, bF as ConnectionItem, cl as ConnectionProperty, bV as ConnectionPropertySchema, eU as ConnectionsMap, eT as ConnectionsMapSchema, cA as ConnectionsProperty, c7 as ConnectionsPropertySchema, C as ConnectionsProvider, a0 as ConnectionsResponse, aN as ControllerAction, aO as ControllerAnswerFn, aQ as ControllerMethodDescription, aP as ControllerMethodSummary, aR as ControllerParameterDescription, aM as ControllerQuestion, bg as CoreCancelledSignal, aa as CoreDisposeError, be as CoreErrorCode, bf as CoreSignal, ew as Credentials, eP as CredentialsFunction, eO as CredentialsFunctionSchema, ey as CredentialsObject, eM as CredentialsObjectSchema, eQ as CredentialsSchema, f1 as DEFAULT_ACTION_TIMEOUT_MS, fa as DEFAULT_APPROVAL_TIMEOUT_MS, dE as DEFAULT_CONFIG_PATH, fb as DEFAULT_MAX_APPROVAL_RETRIES, f0 as DEFAULT_PAGE_SIZE, bC as DEPRECATION_NOTICE_EVENT, cr as DebugProperty, b_ as DebugPropertySchema, bD as DeprecationNoticePayload, u as DrainTriggerInboxCallback, v as DrainTriggerInboxErrorObserver, i as DrainTriggerInboxOptions, aF as DynamicListResolver, aJ as DynamicMember, aE as DynamicResolver, aG as DynamicSearchResolver, fr as EVENT_EMISSION_ID, fy as EnhancedErrorEventData, cH as ErrorOptions, E as EventCallback, fw as EventContext, k as EventEmissionConfig, fp as EventEmissionContext, fq as EventEmitter, fv as EventTransport, d5 as FetchPluginProvides, O as Field, cx as FieldsProperty, c4 as FieldsPropertySchema, aH as FieldsResolver, F as FieldsetItem, H as FindFirstAuthenticationPluginProvides, I as FindUniqueAuthenticationPluginProvides, aw as FormattedItem, ay as Formatter, b8 as FunctionDeprecation, b7 as FunctionRegistryEntry, z as GetAuthenticationPluginProvides, bI as InfoFieldItem, bH as InputFieldItem, cj as InputFieldProperty, bS as InputFieldPropertySchema, cn as InputsProperty, bW as InputsPropertySchema, bB as JsonSseMessage, L as LeafSummary, cG as LeaseLimitProperty, cd as LeaseLimitPropertySchema, cE as LeaseProperty, cb as LeasePropertySchema, cF as LeaseSecondsProperty, cc as LeaseSecondsPropertySchema, w as LeasedTriggerMessageItem, co as LimitProperty, bX as LimitPropertySchema, dc as ListActionInputFieldsPluginProvides, da as ListActionsPluginProvides, d8 as ListAppsPluginProvides, y as ListAuthenticationsPluginProvides, dg as ListConnectionsPluginProvides, ev as LoadingEvent, dz as MANIFEST_ID, f4 as MAX_CONCURRENCY_LIMIT, e$ as MAX_PAGE_LIMIT, j as Manifest, dF as ManifestEntry, dv as ManifestPluginOptions, d as ManifestProvider, fG as MethodCalledEvent, fz as MethodCalledEventData, bl as MethodOverridePlugin, M as MethodPlugin, aI as ModelResolver, N as Need, Y as NeedsRequest, _ as NeedsResponse, cp as OffsetProperty, bY as OffsetPropertySchema, az as OutputFormatter, cq as OutputProperty, bZ as OutputPropertySchema, bM as PaginatedSdkFunction, c as PaginatedSdkResult, cs as ParamsProperty, b$ as ParamsPropertySchema, eA as PkceCredentialsObject, eL as PkceCredentialsObjectSchema, bj as Plugin, p as PluginMeta, bk as PluginProvides, b as PluginSummary, aK as PluginSurface, bw as PollOptions, a3 as PositionalMetadata, P as PropertyPlugin, dN as RESOLVE_CREDENTIALS_ID, cW as RateLimitInfo, cv as RecordProperty, c2 as RecordPropertySchema, cw as RecordsProperty, c3 as RecordsPropertySchema, b3 as RelayFetchSchema, b2 as RelayRequestSchema, bv as RequestOptions, ee as ResolveAuthTokenOptions, eV as ResolveConnection, dJ as ResolveCredentialsFn, eF as ResolveCredentialsOptions, bs as ResolvedAppLocator, eg as ResolvedAuth, ex as ResolvedCredentials, eN as ResolvedCredentialsSchema, aA as Resolver, aC as ResolverMetadata, bJ as RootFieldItem, dt as RunActionPluginProvides, au as SDK_OPTIONS_ID, es as SdkEvent, bL as SdkPage, bA as SseMessage, aD as StaticResolver, cu as TableProperty, c1 as TablePropertySchema, cz as TablesProperty, c6 as TablesPropertySchema, cC as TriggerInboxKeyProperty, c9 as TriggerInboxKeyPropertySchema, cD as TriggerInboxNameProperty, ca as TriggerInboxNamePropertySchema, cB as TriggerInboxProperty, c8 as TriggerInboxPropertySchema, x as TriggerMessageStatus, dC as UpdateManifestEntryOptions, dD as UpdateManifestEntryResult, a1 as UserProfile, bK as UserProfileItem, W as WatchTriggerInboxOptions, eZ as ZAPIER_BASE_URL, f6 as ZAPIER_MAX_CONCURRENT_REQUESTS, f2 as ZAPIER_MAX_NETWORK_RETRIES, f3 as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, s as ZapierAbortDrainSignal, cU as ZapierActionError, cN as ZapierApiError, cO as ZapierAppNotFoundError, cZ as ZapierApprovalError, cL as ZapierAuthenticationError, cS as ZapierBundleError, l as ZapierCache, ep as ZapierCacheEntry, eq as ZapierCacheSetOptions, cR as ZapierConfigurationError, cV as ZapierConflictError, cI as ZapierError, Z as ZapierFetchInitOptions, cP as ZapierNotFoundError, cX as ZapierRateLimitError, c_ as ZapierRelayError, t as ZapierReleaseTriggerMessageSignal, cQ as ZapierResourceNotFoundError, fT as ZapierSdk, h as ZapierSdkApps, fS as ZapierSdkOptions, d1 as ZapierSignal, cT as ZapierTimeoutError, cK as ZapierUnknownError, cJ as ZapierValidationError, dS as actionKeyResolver, dR as actionTypeResolver, a8 as addPlugin, dM as apiPlugin, dL as apiPluginRef, dQ as appKeyResolver, d2 as appsPlugin, aZ as batch, fA as buildApplicationLifecycleEvent, a$ as buildCapabilityMessage, fC as buildErrorEvent, fB as buildErrorEventWithContext, fE as buildMethodCalledEvent, fo as cleanupEventListeners, eh as clearTokenCache, dY as clientCredentialsNameResolver, dZ as clientIdResolver, bp as composePlugins, dU as connectionIdGenericResolver, dT as connectionIdResolver, eY as connectionsPlugin, eX as connectionsPluginRef, fD as createBaseEvent, di as createClientCredentialsPlugin, aL as createController, a7 as createCorePlugin, a4 as createFunction, er as createMemoryCache, a5 as createPaginatedFunction, bo as createPaginatedPluginMethod, bn as createPluginMethod, a6 as createPluginStack, ab as createSdk, fh as createTableFieldsPlugin, fe as createTablePlugin, fl as createTableRecordsPlugin, bx as createZapierApi, fR as createZapierSdk, b4 as createZapierSdkWithoutRegistry, an as declareMethod, ap as declareOptionalProperty, ah as declarePlugin, ao as declareProperty, am as defineFormatter, af as defineLegacyMerge, ai as defineMethod, aj as defineMethodOverride, bm as definePlugin, ak as defineProperty, al as defineResolver, dj as deleteClientCredentialsPlugin, fi as deleteTableFieldsPlugin, ff as deleteTablePlugin, fm as deleteTableRecordsPlugin, a9 as disposeSdk, e1 as durableRunIdResolver, fu as eventEmissionHookPlugin, ft as eventEmissionPlugin, fs as eventEmissionPluginRef, d6 as fetchPlugin, dn as findFirstConnectionPlugin, dy as findManifestEntry, dp as findUniqueConnectionPlugin, c$ as formatErrorMessage, ae as fromFunctionPlugin, fH as generateEventId, de as getActionInputFieldsSchemaPlugin, dl as getActionPlugin, bt as getAgent, dk as getAppPlugin, eI as getBaseUrlFromCredentials, aU as getCallerContext, fN as getCiPlatform, eJ as getClientIdFromCredentials, dm as getConnectionPlugin, ag as getContext, bc as getCoreErrorCause, bb as getCoreErrorCode, fP as getCpuTime, fI as getCurrentTimestamp, fO as getMemoryUsage, by as getOrCreateApiClient, fK as getOsInfo, fL as getPlatformVersions, dx as getPreferredManifestEntryKey, dH as getProfilePlugin, as as getRegistryPlugin, fJ as getReleaseId, fd as getTablePlugin, fj as getTableRecordPlugin, el as getTokenFromCliLogin, fQ as getTtyContext, f7 as getZapierApprovalMode, f9 as getZapierDefaultApprovalMode, f8 as getZapierOpenAutoModeApprovalsInBrowser, e_ as getZapierSdkService, ej as injectCliLogin, dX as inputFieldKeyResolver, dW as inputsAllOptionalResolver, dV as inputsResolver, ei as invalidateCachedToken, eo as invalidateCredentialsToken, fM as isCi, ek as isCliLoginAvailable, eB as isClientCredentials, ba as isCoreError, bh as isCoreSignal, eE as isCredentialsFunction, eD as isCredentialsObject, bz as isPermanentHttpError, eC as isPkceCredentials, a2 as isPositional, dd as listActionInputFieldChoicesPlugin, db as listActionInputFieldsPlugin, d9 as listActionsPlugin, d7 as listAppsPlugin, dh as listClientCredentialsPlugin, df as listConnectionsPlugin, fg as listTableFieldsPlugin, fk as listTableRecordsPlugin, fc as listTablesPlugin, b0 as logDeprecation, dB as manifestPlugin, dA as manifestPluginRef, ar as omitExports, f5 as parseConcurrencyEnvVar, dw as readManifestFromFile, bu as registryPlugin, du as requestPlugin, b1 as resetDeprecationWarnings, em as resolveAuth, en as resolveAuthToken, eH as resolveCredentials, eG as resolveCredentialsFromEnv, dP as resolveCredentialsPlugin, dO as resolveCredentialsPluginRef, ad as resolvePlugin, ds as runActionPlugin, aS as runInMethodScope, aV as runWithCallerContext, aT as runWithTelemetryContext, av as sdkOptionsPluginRef, aq as selectExports, e7 as tableFieldIdsResolver, e9 as tableFieldsResolver, ec as tableFiltersResolver, d_ as tableIdResolver, e8 as tableNameResolver, e5 as tableRecordIdResolver, e6 as tableRecordIdsResolver, ea as tableRecordsResolver, ed as tableSortResolver, eb as tableUpdateRecordsResolver, aX as toSnakeCase, aY as toTitleCase, d$ as triggerInboxResolver, e4 as triggerMessagesResolver, fn as updateTableRecordsPlugin, e0 as workflowIdResolver, e3 as workflowRunIdResolver, e2 as workflowVersionIdResolver, cM as zapierAdaptError, b5 as zapierCoreOptions, at as zapierSdkPlugin } from './index-C82Rvqg9.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
4
4
|
import '@zapier/policy-context';
|
package/dist/index.mjs
CHANGED
|
@@ -5338,7 +5338,7 @@ function parseDeprecationDate(value) {
|
|
|
5338
5338
|
}
|
|
5339
5339
|
|
|
5340
5340
|
// src/sdk-version.ts
|
|
5341
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.83.
|
|
5341
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.83.2" : void 0) || "unknown";
|
|
5342
5342
|
|
|
5343
5343
|
// src/utils/open-url.ts
|
|
5344
5344
|
var nodePrefix = "node:";
|
|
@@ -14056,6 +14056,8 @@ function buildErrorEvent(data, context = {}) {
|
|
|
14056
14056
|
environment: context.environment,
|
|
14057
14057
|
...data,
|
|
14058
14058
|
agent: getAgent(),
|
|
14059
|
+
caller_package: context.caller_package ?? null,
|
|
14060
|
+
caller_package_version: context.caller_package_version ?? null,
|
|
14059
14061
|
sdk_version: SDK_VERSION
|
|
14060
14062
|
};
|
|
14061
14063
|
}
|
|
@@ -14085,6 +14087,8 @@ function buildApplicationLifecycleEvent(data, context = {}) {
|
|
|
14085
14087
|
metadata: null,
|
|
14086
14088
|
...data,
|
|
14087
14089
|
process_argv: data.process_argv ?? null,
|
|
14090
|
+
caller_package: context.caller_package ?? null,
|
|
14091
|
+
caller_package_version: context.caller_package_version ?? null,
|
|
14088
14092
|
sdk_version: SDK_VERSION
|
|
14089
14093
|
};
|
|
14090
14094
|
}
|
|
@@ -14101,6 +14105,8 @@ function buildErrorEventWithContext(data, context = {}) {
|
|
|
14101
14105
|
execution_time_before_error_ms: executionTime,
|
|
14102
14106
|
...data,
|
|
14103
14107
|
agent: getAgent(),
|
|
14108
|
+
caller_package: context.caller_package ?? null,
|
|
14109
|
+
caller_package_version: context.caller_package_version ?? null,
|
|
14104
14110
|
sdk_version: SDK_VERSION
|
|
14105
14111
|
};
|
|
14106
14112
|
}
|
|
@@ -14134,6 +14140,8 @@ function buildMethodCalledEvent(data, context = {}) {
|
|
|
14134
14140
|
cpu_time_ms: null,
|
|
14135
14141
|
memory_usage_bytes: null,
|
|
14136
14142
|
agent: getAgent(),
|
|
14143
|
+
caller_package: context.caller_package ?? null,
|
|
14144
|
+
caller_package_version: context.caller_package_version ?? null,
|
|
14137
14145
|
sdk_version: SDK_VERSION
|
|
14138
14146
|
};
|
|
14139
14147
|
}
|
|
@@ -14286,14 +14294,21 @@ function createEventEmitter(options) {
|
|
|
14286
14294
|
)
|
|
14287
14295
|
)
|
|
14288
14296
|
};
|
|
14297
|
+
const callerPackageContext = {
|
|
14298
|
+
caller_package: options.callerPackage?.name ?? null,
|
|
14299
|
+
caller_package_version: options.callerPackage?.version ?? null
|
|
14300
|
+
};
|
|
14289
14301
|
const getUserContext = (async () => {
|
|
14290
14302
|
if (config.enabled) {
|
|
14291
14303
|
try {
|
|
14292
|
-
return
|
|
14304
|
+
return {
|
|
14305
|
+
...buildEventAuthContext(await resolveAuth({ ...options })),
|
|
14306
|
+
...callerPackageContext
|
|
14307
|
+
};
|
|
14293
14308
|
} catch {
|
|
14294
14309
|
}
|
|
14295
14310
|
}
|
|
14296
|
-
return NULL_EVENT_CONTEXT;
|
|
14311
|
+
return { ...NULL_EVENT_CONTEXT, ...callerPackageContext };
|
|
14297
14312
|
})();
|
|
14298
14313
|
const startupTime = Date.now();
|
|
14299
14314
|
let shutdownStartTime = null;
|