@zapier/zapier-sdk 0.53.0 → 0.54.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +10 -9
- package/dist/experimental.cjs +106 -62
- package/dist/experimental.d.mts +4 -2
- package/dist/experimental.d.ts +1 -0
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.mjs +106 -62
- package/dist/{index-D2HKNk0N.d.mts → index-SDDmBk2j.d.mts} +85 -10
- package/dist/{index-D2HKNk0N.d.ts → index-SDDmBk2j.d.ts} +85 -10
- package/dist/index.cjs +51 -27
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +51 -27
- package/dist/plugins/triggers/createTriggerInbox/index.d.ts +1 -0
- package/dist/plugins/triggers/createTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/createTriggerInbox/index.js +18 -3
- package/dist/plugins/triggers/createTriggerInbox/schemas.d.ts +1 -0
- package/dist/plugins/triggers/createTriggerInbox/schemas.d.ts.map +1 -1
- package/dist/plugins/triggers/createTriggerInbox/schemas.js +3 -2
- package/dist/plugins/triggers/ensureTriggerInbox/index.d.ts.map +1 -1
- package/dist/plugins/triggers/ensureTriggerInbox/index.js +1 -12
- package/dist/plugins/triggers/utils.d.ts +6 -0
- package/dist/plugins/triggers/utils.d.ts.map +1 -1
- package/dist/plugins/triggers/utils.js +17 -0
- package/dist/resolvers/appKey.d.ts +7 -2
- package/dist/resolvers/appKey.d.ts.map +1 -1
- package/dist/resolvers/appKey.js +46 -3
- package/dist/schemas/App.d.ts.map +1 -1
- package/dist/schemas/App.js +2 -11
- package/dist/utils/domain-utils.d.ts +4 -0
- package/dist/utils/domain-utils.d.ts.map +1 -1
- package/dist/utils/domain-utils.js +5 -0
- package/dist/utils/schema-utils.d.ts +80 -8
- package/dist/utils/schema-utils.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @zapier/zapier-sdk
|
|
2
2
|
|
|
3
|
+
## 0.54.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 22a1727: Add optional `name` parameter to `createTriggerInbox` method
|
|
8
|
+
|
|
9
|
+
## 0.54.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- ecfb727: Add type-to-filter to interactive single-select dropdowns: dynamic resolvers (apps, connections, tables, table records, etc.) and SELECT-format field choices. `(Load more...)` remains reachable even when a search yields zero matches, so users can pull the next page and try again.
|
|
14
|
+
|
|
15
|
+
Dynamic resolvers also gain an `inputType: "search"` mode: the CLI prompts for free-form text, hands it to `fetch` as `search`, and either short-circuits on a primitive return (exact match) or renders results as a search-filterable dropdown. Empty results expose `(Use "foo" as-is)` and `(Try a different search)` so a required parameter can never strand the user. The built-in `appKey` resolver now uses this mode (`getApp` for exact match, `listApps --search` for fallback).
|
|
16
|
+
|
|
17
|
+
`DynamicResolver` is now a discriminated union of `DynamicListResolver` and `DynamicSearchResolver`. Note for plugin authors: the `placeholder` field is now typed as `never` on the list variant, so a classic list resolver that was previously setting an unused `placeholder` will see a TypeScript error. Move it into a search-mode variant (`inputType: "search"`) or drop it — the CLI never read it on list resolvers.
|
|
18
|
+
|
|
3
19
|
## 0.53.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -1835,18 +1835,19 @@ const result = await zapier.ackTriggerInboxMessages({
|
|
|
1835
1835
|
|
|
1836
1836
|
#### `createTriggerInbox` 🧪 _experimental_
|
|
1837
1837
|
|
|
1838
|
-
Create a new trigger inbox subscription
|
|
1838
|
+
Create a new trigger inbox subscription. Always creates a new inbox; use ensureTriggerInbox for get-or-create on a stable name.
|
|
1839
1839
|
|
|
1840
1840
|
**Parameters:**
|
|
1841
1841
|
|
|
1842
|
-
| Name | Type | Required | Default | Possible Values | Description
|
|
1843
|
-
| --------------------- | ---------------- | -------- | ------- | --------------- |
|
|
1844
|
-
| `options` | `object` | ✅ | — | — |
|
|
1845
|
-
| ↳ `
|
|
1846
|
-
| ↳ `
|
|
1847
|
-
| ↳ `
|
|
1848
|
-
| ↳ `
|
|
1849
|
-
| ↳ `
|
|
1842
|
+
| Name | Type | Required | Default | Possible Values | Description |
|
|
1843
|
+
| --------------------- | ---------------- | -------- | ------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------- |
|
|
1844
|
+
| `options` | `object` | ✅ | — | — | |
|
|
1845
|
+
| ↳ `name` | `string` | ❌ | — | — | Optional inbox name. Auto-generated when omitted. Throws a conflict error if the name is already in use by another subscription. |
|
|
1846
|
+
| ↳ `app` | `string` | ✅ | — | — | App slug (e.g., 'github'), implementation name (e.g., 'SlackCLIAPI'), or versioned ID (e.g., 'github@1.2.3') |
|
|
1847
|
+
| ↳ `action` | `string` | ✅ | — | — | Action key (e.g., 'send_message' or 'find_row') |
|
|
1848
|
+
| ↳ `connection` | `string, number` | ❌ | — | — | Connection alias or connection ID. Optional for triggers that don't require auth. |
|
|
1849
|
+
| ↳ `inputs` | `object` | ❌ | — | — | Input parameters for the trigger subscription |
|
|
1850
|
+
| ↳ `notificationUrl` | `string` | ❌ | — | — | Webhook URL to POST to when new messages arrive |
|
|
1850
1851
|
|
|
1851
1852
|
**Returns:** `Promise<TriggerInboxItem>`
|
|
1852
1853
|
|
package/dist/experimental.cjs
CHANGED
|
@@ -1399,6 +1399,18 @@ var FetchInitSchema = zod.z.object({
|
|
|
1399
1399
|
aliases: { connectionId: "connection", authenticationId: "connection" }
|
|
1400
1400
|
});
|
|
1401
1401
|
|
|
1402
|
+
// src/utils/string-utils.ts
|
|
1403
|
+
function toTitleCase(input) {
|
|
1404
|
+
return input.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_\-]+/g, " ").replace(/\s+/g, " ").trim().split(" ").map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(" ");
|
|
1405
|
+
}
|
|
1406
|
+
function toSnakeCase(input) {
|
|
1407
|
+
let result = input.replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/[\s\-]+/g, "_").replace(/_+/g, "_").replace(/^_|_$/g, "").toLowerCase();
|
|
1408
|
+
if (/^[0-9]/.test(result)) {
|
|
1409
|
+
result = "_" + result;
|
|
1410
|
+
}
|
|
1411
|
+
return result;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1402
1414
|
// src/utils/domain-utils.ts
|
|
1403
1415
|
function isConnectionId(value) {
|
|
1404
1416
|
return /^\d+$/.test(value) || isUuid(value);
|
|
@@ -1545,6 +1557,12 @@ function toAppLocator(appKey) {
|
|
|
1545
1557
|
function isResolvedAppLocator(appLocator) {
|
|
1546
1558
|
return !!appLocator.implementationName;
|
|
1547
1559
|
}
|
|
1560
|
+
function getAppKeyList(app) {
|
|
1561
|
+
const keys = new Set(
|
|
1562
|
+
[app.slug, toSnakeCase(app.slug), app.key].filter(Boolean)
|
|
1563
|
+
);
|
|
1564
|
+
return Array.from(keys);
|
|
1565
|
+
}
|
|
1548
1566
|
|
|
1549
1567
|
// src/utils/abort-utils.ts
|
|
1550
1568
|
function getAbortSignalApi() {
|
|
@@ -2863,7 +2881,7 @@ async function invalidateCredentialsToken(options) {
|
|
|
2863
2881
|
}
|
|
2864
2882
|
|
|
2865
2883
|
// src/sdk-version.ts
|
|
2866
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
2884
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.54.1" : void 0) || "unknown";
|
|
2867
2885
|
|
|
2868
2886
|
// src/utils/open-url.ts
|
|
2869
2887
|
var nodePrefix = "node:";
|
|
@@ -3858,34 +3876,12 @@ var ListAppsSchema = apps.ListAppsQuerySchema.omit({
|
|
|
3858
3876
|
// SDK specific property for pagination/iterable helpers
|
|
3859
3877
|
cursor: zod.z.string().optional().describe("Cursor to start from")
|
|
3860
3878
|
}).describe("List all available apps with optional filtering");
|
|
3861
|
-
|
|
3862
|
-
// src/utils/string-utils.ts
|
|
3863
|
-
function toTitleCase(input) {
|
|
3864
|
-
return input.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_\-]+/g, " ").replace(/\s+/g, " ").trim().split(" ").map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(" ");
|
|
3865
|
-
}
|
|
3866
|
-
function toSnakeCase(input) {
|
|
3867
|
-
let result = input.replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/[\s\-]+/g, "_").replace(/_+/g, "_").replace(/^_|_$/g, "").toLowerCase();
|
|
3868
|
-
if (/^[0-9]/.test(result)) {
|
|
3869
|
-
result = "_" + result;
|
|
3870
|
-
}
|
|
3871
|
-
return result;
|
|
3872
|
-
}
|
|
3873
|
-
|
|
3874
|
-
// src/schemas/App.ts
|
|
3875
3879
|
var AppItemSchema = withFormatter(apps.AppItemSchema, {
|
|
3876
3880
|
format: (item) => {
|
|
3877
|
-
const additionalKeys = [];
|
|
3878
|
-
if (item.slug && item.slug !== item.key) {
|
|
3879
|
-
additionalKeys.push(item.slug);
|
|
3880
|
-
const snakeCaseSlug = toSnakeCase(item.slug);
|
|
3881
|
-
if (snakeCaseSlug !== item.slug && snakeCaseSlug !== item.key) {
|
|
3882
|
-
additionalKeys.push(snakeCaseSlug);
|
|
3883
|
-
}
|
|
3884
|
-
}
|
|
3885
3881
|
return {
|
|
3886
3882
|
title: item.title,
|
|
3887
3883
|
key: item.key,
|
|
3888
|
-
keys:
|
|
3884
|
+
keys: getAppKeyList(item),
|
|
3889
3885
|
description: item.description,
|
|
3890
3886
|
details: []
|
|
3891
3887
|
};
|
|
@@ -3955,9 +3951,37 @@ var GetAppInputSchema = zod.z.union([GetAppSchema, GetAppSchemaDeprecated]).desc
|
|
|
3955
3951
|
|
|
3956
3952
|
// src/resolvers/appKey.ts
|
|
3957
3953
|
var appKeyResolver = {
|
|
3958
|
-
type: "
|
|
3959
|
-
inputType: "
|
|
3960
|
-
placeholder: "
|
|
3954
|
+
type: "dynamic",
|
|
3955
|
+
inputType: "search",
|
|
3956
|
+
placeholder: "e.g., 'slack' or 'SlackCLIAPI' or 'mail'",
|
|
3957
|
+
// Try the user's typed string as an exact app locator first; getApp accepts
|
|
3958
|
+
// a slug, key, or implementation id. If that hits, short-circuit with the
|
|
3959
|
+
// input — every variant the user could have typed is already a valid value
|
|
3960
|
+
// anywhere else app is required, so no canonicalization needed here. If
|
|
3961
|
+
// getApp 404s, fall back to a search; any other error (auth, network,
|
|
3962
|
+
// rate-limit) propagates so the user sees the real problem.
|
|
3963
|
+
fetch: async (sdk, { search }) => {
|
|
3964
|
+
if (!search) return [];
|
|
3965
|
+
try {
|
|
3966
|
+
await sdk.getApp({ app: search });
|
|
3967
|
+
return search;
|
|
3968
|
+
} catch (err) {
|
|
3969
|
+
if (!(err instanceof ZapierAppNotFoundError) && !(err instanceof ZapierNotFoundError)) {
|
|
3970
|
+
throw err;
|
|
3971
|
+
}
|
|
3972
|
+
}
|
|
3973
|
+
const page = await sdk.listApps({ search });
|
|
3974
|
+
return page.data;
|
|
3975
|
+
},
|
|
3976
|
+
prompt: (apps) => ({
|
|
3977
|
+
type: "list",
|
|
3978
|
+
name: "app",
|
|
3979
|
+
message: "Select app:",
|
|
3980
|
+
choices: apps.map((app) => ({
|
|
3981
|
+
name: app.title ? `${app.title} (${getAppKeyList(app).join(", ")})` : app.key,
|
|
3982
|
+
value: app.key
|
|
3983
|
+
}))
|
|
3984
|
+
})
|
|
3961
3985
|
};
|
|
3962
3986
|
|
|
3963
3987
|
// src/resolvers/actionType.ts
|
|
@@ -8975,8 +8999,11 @@ var TriggerInboxItemSchema = withFormatter(
|
|
|
8975
8999
|
);
|
|
8976
9000
|
|
|
8977
9001
|
// src/plugins/triggers/createTriggerInbox/schemas.ts
|
|
8978
|
-
var CreateTriggerInboxDescription = "Create a new trigger inbox subscription
|
|
9002
|
+
var CreateTriggerInboxDescription = "Create a new trigger inbox subscription. Always creates a new inbox; use ensureTriggerInbox for get-or-create on a stable name.";
|
|
8979
9003
|
var CreateTriggerInboxSchema = zod.z.object({
|
|
9004
|
+
name: TriggerInboxNamePropertySchema.optional().describe(
|
|
9005
|
+
"Optional inbox name. Auto-generated when omitted. Throws a conflict error if the name is already in use by another subscription."
|
|
9006
|
+
),
|
|
8980
9007
|
app: AppPropertySchema,
|
|
8981
9008
|
action: ActionPropertySchema,
|
|
8982
9009
|
connection: ConnectionPropertySchema.nullable().optional().describe(
|
|
@@ -8994,6 +9021,39 @@ var triggersDefaults = {
|
|
|
8994
9021
|
experimental: true
|
|
8995
9022
|
};
|
|
8996
9023
|
|
|
9024
|
+
// src/plugins/triggers/utils.ts
|
|
9025
|
+
var UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
9026
|
+
async function resolveTriggerInboxId({
|
|
9027
|
+
api,
|
|
9028
|
+
inbox
|
|
9029
|
+
}) {
|
|
9030
|
+
if (UUID_REGEX.test(inbox)) {
|
|
9031
|
+
return inbox;
|
|
9032
|
+
}
|
|
9033
|
+
const rawResponse = await api.get("/trigger-inbox/api/v1/inboxes", {
|
|
9034
|
+
searchParams: { name: inbox, limit: "1" },
|
|
9035
|
+
authRequired: true
|
|
9036
|
+
});
|
|
9037
|
+
const response = rawResponse;
|
|
9038
|
+
const id = response.results?.[0]?.id;
|
|
9039
|
+
if (!id) {
|
|
9040
|
+
throw new ZapierResourceNotFoundError(
|
|
9041
|
+
`No trigger inbox named "${inbox}" found.`,
|
|
9042
|
+
{ resourceType: "trigger_inbox", resourceId: inbox }
|
|
9043
|
+
);
|
|
9044
|
+
}
|
|
9045
|
+
return id;
|
|
9046
|
+
}
|
|
9047
|
+
function extractErrorDetail(data) {
|
|
9048
|
+
if (typeof data !== "object" || data === null) return void 0;
|
|
9049
|
+
const errors = data.errors;
|
|
9050
|
+
if (!Array.isArray(errors) || errors.length === 0) return void 0;
|
|
9051
|
+
const first = errors[0];
|
|
9052
|
+
if (typeof first !== "object" || first === null) return void 0;
|
|
9053
|
+
const detail = first.detail;
|
|
9054
|
+
return typeof detail === "string" ? detail : void 0;
|
|
9055
|
+
}
|
|
9056
|
+
|
|
8997
9057
|
// src/plugins/triggers/createTriggerInbox/index.ts
|
|
8998
9058
|
var createTriggerInboxPlugin = definePlugin(
|
|
8999
9059
|
(sdk) => createPluginMethod(sdk, {
|
|
@@ -9008,6 +9068,7 @@ var createTriggerInboxPlugin = definePlugin(
|
|
|
9008
9068
|
// seeded into resolvedParams without polluting the user-facing schema
|
|
9009
9069
|
// (where it would leak into the SDK method signature and CLI flags).
|
|
9010
9070
|
resolvers: {
|
|
9071
|
+
name: { type: "static", inputType: "text" },
|
|
9011
9072
|
app: appKeyResolver,
|
|
9012
9073
|
action: actionKeyResolver,
|
|
9013
9074
|
connection: connectionIdResolver,
|
|
@@ -9017,6 +9078,7 @@ var createTriggerInboxPlugin = definePlugin(
|
|
|
9017
9078
|
handler: async ({ sdk: sdk2, options }) => {
|
|
9018
9079
|
const { api } = sdk2.context;
|
|
9019
9080
|
const {
|
|
9081
|
+
name,
|
|
9020
9082
|
app: appKey,
|
|
9021
9083
|
action: actionKey,
|
|
9022
9084
|
connection,
|
|
@@ -9042,13 +9104,28 @@ var createTriggerInboxPlugin = definePlugin(
|
|
|
9042
9104
|
connection_id: resolvedConnectionId ?? null
|
|
9043
9105
|
}
|
|
9044
9106
|
};
|
|
9107
|
+
if (name !== void 0) {
|
|
9108
|
+
requestBody.name = name;
|
|
9109
|
+
}
|
|
9045
9110
|
if (notificationUrl !== void 0) {
|
|
9046
9111
|
requestBody.notification_url = notificationUrl;
|
|
9047
9112
|
}
|
|
9048
9113
|
const rawResponse = await api.post(
|
|
9049
9114
|
"/trigger-inbox/api/v1/inboxes",
|
|
9050
9115
|
requestBody,
|
|
9051
|
-
{
|
|
9116
|
+
{
|
|
9117
|
+
authRequired: true,
|
|
9118
|
+
customErrorHandler: ({ status, data }) => {
|
|
9119
|
+
if (status === 409) {
|
|
9120
|
+
const detail = extractErrorDetail(data);
|
|
9121
|
+
return new ZapierConflictError(
|
|
9122
|
+
detail ?? `An inbox named "${name}" already exists with a different subscription.`,
|
|
9123
|
+
{ statusCode: status, resourceType: "trigger_inbox" }
|
|
9124
|
+
);
|
|
9125
|
+
}
|
|
9126
|
+
return void 0;
|
|
9127
|
+
}
|
|
9128
|
+
}
|
|
9052
9129
|
);
|
|
9053
9130
|
return { data: TriggerInboxItemSchema.parse(rawResponse) };
|
|
9054
9131
|
}
|
|
@@ -9071,15 +9148,6 @@ var EnsureTriggerInboxSchema = zod.z.object({
|
|
|
9071
9148
|
}).describe(EnsureTriggerInboxDescription);
|
|
9072
9149
|
|
|
9073
9150
|
// src/plugins/triggers/ensureTriggerInbox/index.ts
|
|
9074
|
-
function extractErrorDetail(data) {
|
|
9075
|
-
if (typeof data !== "object" || data === null) return void 0;
|
|
9076
|
-
const errors = data.errors;
|
|
9077
|
-
if (!Array.isArray(errors) || errors.length === 0) return void 0;
|
|
9078
|
-
const first = errors[0];
|
|
9079
|
-
if (typeof first !== "object" || first === null) return void 0;
|
|
9080
|
-
const detail = first.detail;
|
|
9081
|
-
return typeof detail === "string" ? detail : void 0;
|
|
9082
|
-
}
|
|
9083
9151
|
var ensureTriggerInboxPlugin = definePlugin(
|
|
9084
9152
|
(sdk) => createPluginMethod(sdk, {
|
|
9085
9153
|
...triggersDefaults,
|
|
@@ -9223,30 +9291,6 @@ var GetTriggerInboxSchema = zod.z.object({
|
|
|
9223
9291
|
inbox: TriggerInboxPropertySchema
|
|
9224
9292
|
}).describe("Get details of a trigger inbox by ID");
|
|
9225
9293
|
|
|
9226
|
-
// src/plugins/triggers/utils.ts
|
|
9227
|
-
var UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
9228
|
-
async function resolveTriggerInboxId({
|
|
9229
|
-
api,
|
|
9230
|
-
inbox
|
|
9231
|
-
}) {
|
|
9232
|
-
if (UUID_REGEX.test(inbox)) {
|
|
9233
|
-
return inbox;
|
|
9234
|
-
}
|
|
9235
|
-
const rawResponse = await api.get("/trigger-inbox/api/v1/inboxes", {
|
|
9236
|
-
searchParams: { name: inbox, limit: "1" },
|
|
9237
|
-
authRequired: true
|
|
9238
|
-
});
|
|
9239
|
-
const response = rawResponse;
|
|
9240
|
-
const id = response.results?.[0]?.id;
|
|
9241
|
-
if (!id) {
|
|
9242
|
-
throw new ZapierResourceNotFoundError(
|
|
9243
|
-
`No trigger inbox named "${inbox}" found.`,
|
|
9244
|
-
{ resourceType: "trigger_inbox", resourceId: inbox }
|
|
9245
|
-
);
|
|
9246
|
-
}
|
|
9247
|
-
return id;
|
|
9248
|
-
}
|
|
9249
|
-
|
|
9250
9294
|
// src/plugins/triggers/getTriggerInbox/index.ts
|
|
9251
9295
|
var getTriggerInboxPlugin = definePlugin(
|
|
9252
9296
|
(sdk) => createPluginMethod(sdk, {
|
package/dist/experimental.d.mts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { B as BaseSdkOptions, W as WithAddPlugin, P as PluginMeta, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, M as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, a as UpdateManifestEntryResult, b as AddActionEntryOptions, c as AddActionEntryResult, d as ActionEntry, f as findManifestEntry, r as readManifestFromFile, C as CapabilitiesContext, e as PaginatedSdkResult, F as FieldsetItem, g as PositionalMetadata, h as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, i as DynamicResolver, j as WatchTriggerInboxOptions, k as ActionProxy, l as ZapierSdkApps } from './index-
|
|
2
|
-
export { u as Action,
|
|
1
|
+
import { B as BaseSdkOptions, W as WithAddPlugin, P as PluginMeta, Z as ZapierSdkOptions$1, E as EventEmissionContext, A as ApiClient, M as Manifest, R as ResolvedAppLocator, U as UpdateManifestEntryOptions, a as UpdateManifestEntryResult, b as AddActionEntryOptions, c as AddActionEntryResult, d as ActionEntry, f as findManifestEntry, r as readManifestFromFile, C as CapabilitiesContext, e as PaginatedSdkResult, F as FieldsetItem, g as PositionalMetadata, h as ZapierFetchInitOptions, D as DrainTriggerInboxOptions, i as DynamicResolver, j as WatchTriggerInboxOptions, k as ActionProxy, l as ZapierSdkApps } from './index-SDDmBk2j.mjs';
|
|
2
|
+
export { u as Action, ci as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aW as ActionItem, bx as ActionKeyProperty, b5 as ActionKeyPropertySchema, by as ActionProperty, b6 as ActionPropertySchema, as as ActionResolverItem, bJ as ActionTimeoutMsProperty, bh as ActionTimeoutMsPropertySchema, at as ActionTypeItem, bw as ActionTypeProperty, b4 as ActionTypePropertySchema, bW as ApiError, dE as ApiEvent, d0 as ApiPluginOptions, d2 as ApiPluginProvides, v as App, cj as AppFactoryInput, aU as AppItem, bu as AppKeyProperty, b2 as AppKeyPropertySchema, bv as AppProperty, b3 as AppPropertySchema, aD as ApplicationLifecycleEventData, cb as ApprovalStatus, ch as AppsPluginProvides, bO as AppsProperty, bm as AppsPropertySchema, a0 as ArrayResolver, dD as AuthEvent, bC as AuthenticationIdProperty, b9 as AuthenticationIdPropertySchema, az as BaseEvent, al as BaseSdkOptionsSchema, aa as BatchOptions, cP as CONTEXT_CACHE_MAX_SIZE, cO as CONTEXT_CACHE_TTL_MS, x as Choice, dK as ClientCredentialsObject, dV as ClientCredentialsObjectSchema, K as Connection, e1 as ConnectionEntry, e0 as ConnectionEntrySchema, bA as ConnectionIdProperty, b8 as ConnectionIdPropertySchema, aV as ConnectionItem, bB as ConnectionProperty, ba as ConnectionPropertySchema, e3 as ConnectionsMap, e2 as ConnectionsMapSchema, e5 as ConnectionsPluginProvides, bQ as ConnectionsProperty, bo as ConnectionsPropertySchema, O as ConnectionsResponse, cB as CreateClientCredentialsPluginProvides, eu as CreateTableFieldsPluginProvides, eo as CreateTablePluginProvides, eC as CreateTableRecordsPluginProvides, dH as Credentials, d_ as CredentialsFunction, dZ as CredentialsFunctionSchema, dJ as CredentialsObject, dX as CredentialsObjectSchema, d$ as CredentialsSchema, ea as DEFAULT_ACTION_TIMEOUT_MS, eh as DEFAULT_APPROVAL_TIMEOUT_MS, cY as DEFAULT_CONFIG_PATH, ei as DEFAULT_MAX_APPROVAL_RETRIES, e9 as DEFAULT_PAGE_SIZE, bH as DebugProperty, bf as DebugPropertySchema, cD as DeleteClientCredentialsPluginProvides, ew as DeleteTableFieldsPluginProvides, eq as DeleteTablePluginProvides, eE as DeleteTableRecordsPluginProvides, o as DrainTriggerInboxCallback, p as DrainTriggerInboxErrorObserver, a3 as DynamicListResolver, a4 as DynamicSearchResolver, aE as EnhancedErrorEventData, bX as ErrorOptions, dG as EventCallback, aC as EventContext, aB as EventEmissionProvides, cl as FetchPluginProvides, w as Field, bN as FieldsProperty, bl as FieldsPropertySchema, a5 as FieldsResolver, s as FindFirstAuthenticationPluginProvides, cL as FindFirstConnectionPluginProvides, t as FindUniqueAuthenticationPluginProvides, cN as FindUniqueConnectionPluginProvides, Y as FormatMetadata, X as FormattedItem, ak as FunctionDeprecation, a$ as FunctionOptions, aj as FunctionRegistryEntry, cv as GetActionInputFieldsSchemaPluginProvides, cH as GetActionPluginProvides, cF as GetAppPluginProvides, G as GetAuthenticationPluginProvides, cJ as GetConnectionPluginProvides, c$ as GetProfilePluginProvides, em as GetTablePluginProvides, ey as GetTableRecordPluginProvides, aY as InfoFieldItem, aX as InputFieldItem, bz as InputFieldProperty, b7 as InputFieldPropertySchema, bD as InputsProperty, bb as InputsPropertySchema, bV as LeaseLimitProperty, bt as LeaseLimitPropertySchema, bT as LeaseProperty, br as LeasePropertySchema, bU as LeaseSecondsProperty, bs as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bE as LimitProperty, bc as LimitPropertySchema, ct as ListActionInputFieldChoicesPluginProvides, cr as ListActionInputFieldsPluginProvides, cp as ListActionsPluginProvides, cn as ListAppsPluginProvides, q as ListAuthenticationsPluginProvides, cz as ListClientCredentialsPluginProvides, cx as ListConnectionsPluginProvides, es as ListTableFieldsPluginProvides, eA as ListTableRecordsPluginProvides, ek as ListTablesPluginProvides, dF as LoadingEvent, ed as MAX_CONCURRENCY_LIMIT, e8 as MAX_PAGE_LIMIT, cZ as ManifestEntry, cU as ManifestPluginOptions, cX as ManifestPluginProvides, aA as MethodCalledEvent, aF as MethodCalledEventData, N as Need, I as NeedsRequest, J as NeedsResponse, bF as OffsetProperty, bd as OffsetPropertySchema, _ as OutputFormatter, bG as OutputProperty, be as OutputPropertySchema, b1 as PaginatedSdkFunction, bI as ParamsProperty, bg as ParamsPropertySchema, dL as PkceCredentialsObject, dW as PkceCredentialsObjectSchema, am as Plugin, an as PluginProvides, aw as PollOptions, c9 as RateLimitInfo, bL as RecordProperty, bj as RecordPropertySchema, bM as RecordsProperty, bk as RecordsPropertySchema, af as RelayFetchSchema, ae as RelayRequestSchema, av as RequestOptions, cT as RequestPluginProvides, dq as ResolveAuthTokenOptions, dQ as ResolveCredentialsOptions, dI as ResolvedCredentials, dY as ResolvedCredentialsSchema, $ as Resolver, a1 as ResolverMetadata, aZ as RootFieldItem, cR as RunActionPluginProvides, dC as SdkEvent, b0 as SdkPage, a2 as StaticResolver, bK as TableProperty, bi as TablePropertySchema, bP as TablesProperty, bn as TablesPropertySchema, bS as TriggerInboxNameProperty, bq as TriggerInboxNamePropertySchema, bR as TriggerInboxProperty, bp as TriggerInboxPropertySchema, T as TriggerMessageStatus, eG as UpdateTableRecordsPluginProvides, Q as UserProfile, a_ as UserProfileItem, e6 as ZAPIER_BASE_URL, ef as ZAPIER_MAX_CONCURRENT_REQUESTS, eb as ZAPIER_MAX_NETWORK_RETRIES, ec as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, m as ZapierAbortDrainSignal, c7 as ZapierActionError, bZ as ZapierApiError, b_ as ZapierAppNotFoundError, cc as ZapierApprovalError, c1 as ZapierAuthenticationError, c5 as ZapierBundleError, dy as ZapierCache, dz as ZapierCacheEntry, dA as ZapierCacheSetOptions, c4 as ZapierConfigurationError, c8 as ZapierConflictError, bY as ZapierError, c2 as ZapierNotFoundError, ca as ZapierRateLimitError, cd as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, c3 as ZapierResourceNotFoundError, cf as ZapierSignal, c6 as ZapierTimeoutError, c0 as ZapierUnknownError, b$ as ZapierValidationError, d5 as actionKeyResolver, d4 as actionTypeResolver, d1 as apiPlugin, d3 as appKeyResolver, cg as appsPlugin, d7 as authenticationIdGenericResolver, d6 as authenticationIdResolver, a9 as batch, aP as buildApplicationLifecycleEvent, ab as buildCapabilityMessage, aR as buildErrorEvent, aQ as buildErrorEventWithContext, aT as buildMethodCalledEvent, dr as clearTokenCache, db as clientCredentialsNameResolver, dc as clientIdResolver, ar as composePlugins, d7 as connectionIdGenericResolver, d6 as connectionIdResolver, e4 as connectionsPlugin, aS as createBaseEvent, cA as createClientCredentialsPlugin, V as createFunction, dB as createMemoryCache, ai as createOptionsPlugin, aq as createPaginatedPluginMethod, ap as createPluginMethod, ah as createSdk, et as createTableFieldsPlugin, en as createTablePlugin, eB as createTableRecordsPlugin, ax as createZapierApi, ag as createZapierSdkWithoutRegistry, ao as definePlugin, cC as deleteClientCredentialsPlugin, ev as deleteTableFieldsPlugin, ep as deleteTablePlugin, eD as deleteTableRecordsPlugin, ck as fetchPlugin, cK as findFirstConnectionPlugin, cM as findUniqueConnectionPlugin, ce as formatErrorMessage, aG as generateEventId, cu as getActionInputFieldsSchemaPlugin, cG as getActionPlugin, cE as getAppPlugin, dT as getBaseUrlFromCredentials, aM as getCiPlatform, dU as getClientIdFromCredentials, cI as getConnectionPlugin, aO as getCpuTime, aH as getCurrentTimestamp, aN as getMemoryUsage, ay as getOrCreateApiClient, aJ as getOsInfo, aK as getPlatformVersions, cV as getPreferredManifestEntryKey, c_ as getProfilePlugin, aI as getReleaseId, el as getTablePlugin, ex as getTableRecordPlugin, dv as getTokenFromCliLogin, eg as getZapierApprovalMode, e7 as getZapierSdkService, dt as injectCliLogin, da as inputFieldKeyResolver, d9 as inputsAllOptionalResolver, d8 as inputsResolver, ds as invalidateCachedToken, dx as invalidateCredentialsToken, aL as isCi, du as isCliLoginAvailable, dM as isClientCredentials, dP as isCredentialsFunction, dO as isCredentialsObject, dN as isPkceCredentials, S as isPositional, cs as listActionInputFieldChoicesPlugin, cq as listActionInputFieldsPlugin, co as listActionsPlugin, cm as listAppsPlugin, cy as listClientCredentialsPlugin, cw as listConnectionsPlugin, er as listTableFieldsPlugin, ez as listTableRecordsPlugin, ej as listTablesPlugin, ac as logDeprecation, cW as manifestPlugin, ee as parseConcurrencyEnvVar, au as registryPlugin, cS as requestPlugin, ad as resetDeprecationWarnings, dw as resolveAuthToken, dS as resolveCredentials, dR as resolveCredentialsFromEnv, cQ as runActionPlugin, a6 as runWithTelemetryContext, di as tableFieldIdsResolver, dk as tableFieldsResolver, dn as tableFiltersResolver, dd as tableIdResolver, dj as tableNameResolver, dg as tableRecordIdResolver, dh as tableRecordIdsResolver, dl as tableRecordsResolver, dp as tableSortResolver, dm as tableUpdateRecordsResolver, a7 as toSnakeCase, a8 as toTitleCase, de as triggerInboxResolver, df as triggerMessagesResolver, eF as updateTableRecordsPlugin } from './index-SDDmBk2j.mjs';
|
|
3
3
|
import * as zod_v4_core from 'zod/v4/core';
|
|
4
4
|
import * as zod from 'zod';
|
|
5
5
|
import '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
6
6
|
import '@zapier/policy-context';
|
|
7
|
+
import '@zapier/zapier-sdk-core/v0/schemas/apps';
|
|
7
8
|
import '@zapier/zapier-sdk-cli/login';
|
|
8
9
|
|
|
9
10
|
interface ZapierSdkOptions extends BaseSdkOptions {
|
|
@@ -1431,6 +1432,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
|
1431
1432
|
createTriggerInbox: (options?: {
|
|
1432
1433
|
app: string;
|
|
1433
1434
|
action: string;
|
|
1435
|
+
name?: string | undefined;
|
|
1434
1436
|
connection?: string | number | null | undefined;
|
|
1435
1437
|
inputs?: Record<string, unknown> | undefined;
|
|
1436
1438
|
notificationUrl?: string | undefined;
|
package/dist/experimental.d.ts
CHANGED
|
@@ -1447,6 +1447,7 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("./i
|
|
|
1447
1447
|
createTriggerInbox: (options?: {
|
|
1448
1448
|
app: string;
|
|
1449
1449
|
action: string;
|
|
1450
|
+
name?: string | undefined;
|
|
1450
1451
|
connection?: string | number | null | undefined;
|
|
1451
1452
|
inputs?: Record<string, unknown> | undefined;
|
|
1452
1453
|
notificationUrl?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAwEjD,cAAc,SAAS,CAAC;AAExB,MAAM,WAAW,gBAAiB,SAAQ,cAAc;CAAG;AAE3D,wBAAgB,eAAe,CAAC,OAAO,GAAE,gBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA+Fq9K,CAAC;;;;sBAAiX,CAAC;qBAAyB,CAAC
|
|
1
|
+
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAwEjD,cAAc,SAAS,CAAC;AAExB,MAAM,WAAW,gBAAiB,SAAQ,cAAc;CAAG;AAE3D,wBA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