@zapier/zapier-sdk 0.45.2 → 0.46.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 +12 -0
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +24 -7
- package/dist/api/schemas.d.ts +5 -5
- package/dist/api/types.d.ts +17 -0
- package/dist/api/types.d.ts.map +1 -1
- package/dist/auth.d.ts +27 -6
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +130 -92
- package/dist/cache.d.ts +50 -0
- package/dist/cache.d.ts.map +1 -0
- package/dist/cache.js +47 -0
- package/dist/index.cjs +3108 -3695
- package/dist/index.d.mts +6735 -2188
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.mjs +3105 -3696
- package/dist/plugins/api/index.d.ts +22 -10
- package/dist/plugins/api/index.d.ts.map +1 -1
- package/dist/plugins/api/index.js +4 -4
- package/dist/plugins/apps/index.d.ts +108 -7
- package/dist/plugins/apps/index.d.ts.map +1 -1
- package/dist/plugins/apps/index.js +3 -4
- package/dist/plugins/capabilities/index.d.ts +9 -6
- package/dist/plugins/capabilities/index.d.ts.map +1 -1
- package/dist/plugins/capabilities/index.js +3 -2
- package/dist/plugins/connections/index.d.ts +15 -9
- package/dist/plugins/connections/index.d.ts.map +1 -1
- package/dist/plugins/connections/index.js +3 -2
- package/dist/plugins/createClientCredentials/index.d.ts +26 -14
- package/dist/plugins/createClientCredentials/index.d.ts.map +1 -1
- package/dist/plugins/createClientCredentials/index.js +16 -39
- package/dist/plugins/createClientCredentials/schemas.d.ts +0 -2
- package/dist/plugins/createClientCredentials/schemas.d.ts.map +1 -1
- package/dist/plugins/deleteClientCredentials/index.d.ts +20 -14
- package/dist/plugins/deleteClientCredentials/index.d.ts.map +1 -1
- package/dist/plugins/deleteClientCredentials/index.js +18 -37
- package/dist/plugins/deleteClientCredentials/schemas.d.ts +0 -2
- package/dist/plugins/deleteClientCredentials/schemas.d.ts.map +1 -1
- package/dist/plugins/deprecated/authentications.d.ts +597 -41
- package/dist/plugins/deprecated/authentications.d.ts.map +1 -1
- package/dist/plugins/deprecated/authentications.js +9 -8
- package/dist/plugins/eventEmission/index.d.ts +9 -6
- package/dist/plugins/eventEmission/index.d.ts.map +1 -1
- package/dist/plugins/eventEmission/index.js +3 -2
- package/dist/plugins/fetch/index.d.ts +40 -17
- package/dist/plugins/fetch/index.d.ts.map +1 -1
- package/dist/plugins/fetch/index.js +6 -4
- package/dist/plugins/findFirstConnection/index.d.ts +109 -14
- package/dist/plugins/findFirstConnection/index.d.ts.map +1 -1
- package/dist/plugins/findFirstConnection/index.js +14 -26
- package/dist/plugins/findFirstConnection/schemas.d.ts +0 -2
- package/dist/plugins/findFirstConnection/schemas.d.ts.map +1 -1
- package/dist/plugins/findUniqueConnection/index.d.ts +109 -14
- package/dist/plugins/findUniqueConnection/index.d.ts.map +1 -1
- package/dist/plugins/findUniqueConnection/index.js +14 -26
- package/dist/plugins/findUniqueConnection/schemas.d.ts +0 -2
- package/dist/plugins/findUniqueConnection/schemas.d.ts.map +1 -1
- package/dist/plugins/getAction/index.d.ts +68 -15
- package/dist/plugins/getAction/index.d.ts.map +1 -1
- package/dist/plugins/getAction/index.js +21 -31
- package/dist/plugins/getAction/schemas.d.ts +4 -6
- package/dist/plugins/getAction/schemas.d.ts.map +1 -1
- package/dist/plugins/getApp/index.d.ts +140 -14
- package/dist/plugins/getApp/index.d.ts.map +1 -1
- package/dist/plugins/getApp/index.js +16 -38
- package/dist/plugins/getApp/schemas.d.ts +0 -2
- package/dist/plugins/getApp/schemas.d.ts.map +1 -1
- package/dist/plugins/getConnection/index.d.ts +50 -16
- package/dist/plugins/getConnection/index.d.ts.map +1 -1
- package/dist/plugins/getConnection/index.js +22 -29
- package/dist/plugins/getConnection/schemas.d.ts +0 -2
- package/dist/plugins/getConnection/schemas.d.ts.map +1 -1
- package/dist/plugins/getInputFieldsSchema/index.d.ts +59 -13
- package/dist/plugins/getInputFieldsSchema/index.d.ts.map +1 -1
- package/dist/plugins/getInputFieldsSchema/index.js +21 -32
- package/dist/plugins/getInputFieldsSchema/schemas.d.ts +4 -6
- package/dist/plugins/getInputFieldsSchema/schemas.d.ts.map +1 -1
- package/dist/plugins/getProfile/index.d.ts +25 -18
- package/dist/plugins/getProfile/index.d.ts.map +1 -1
- package/dist/plugins/getProfile/index.js +13 -26
- package/dist/plugins/getProfile/schemas.d.ts +0 -8
- package/dist/plugins/getProfile/schemas.d.ts.map +1 -1
- package/dist/plugins/getProfile/schemas.js +0 -1
- package/dist/plugins/listActions/index.d.ts +73 -23
- package/dist/plugins/listActions/index.d.ts.map +1 -1
- package/dist/plugins/listActions/index.js +25 -53
- package/dist/plugins/listActions/schemas.d.ts +4 -15
- package/dist/plugins/listActions/schemas.d.ts.map +1 -1
- package/dist/plugins/listApps/index.d.ts +121 -13
- package/dist/plugins/listApps/index.d.ts.map +1 -1
- package/dist/plugins/listApps/index.js +22 -31
- package/dist/plugins/listApps/schemas.d.ts +0 -2
- package/dist/plugins/listApps/schemas.d.ts.map +1 -1
- package/dist/plugins/listClientCredentials/index.d.ts +29 -16
- package/dist/plugins/listClientCredentials/index.d.ts.map +1 -1
- package/dist/plugins/listClientCredentials/index.js +17 -37
- package/dist/plugins/listClientCredentials/schemas.d.ts +0 -2
- package/dist/plugins/listClientCredentials/schemas.d.ts.map +1 -1
- package/dist/plugins/listConnections/index.d.ts +95 -17
- package/dist/plugins/listConnections/index.d.ts.map +1 -1
- package/dist/plugins/listConnections/index.js +25 -49
- package/dist/plugins/listConnections/schemas.d.ts +0 -2
- package/dist/plugins/listConnections/schemas.d.ts.map +1 -1
- package/dist/plugins/listInputFieldChoices/index.d.ts +77 -22
- package/dist/plugins/listInputFieldChoices/index.d.ts.map +1 -1
- package/dist/plugins/listInputFieldChoices/index.js +27 -50
- package/dist/plugins/listInputFieldChoices/schemas.d.ts +4 -6
- package/dist/plugins/listInputFieldChoices/schemas.d.ts.map +1 -1
- package/dist/plugins/listInputFields/index.d.ts +154 -22
- package/dist/plugins/listInputFields/index.d.ts.map +1 -1
- package/dist/plugins/listInputFields/index.js +28 -41
- package/dist/plugins/listInputFields/schemas.d.ts +4 -6
- package/dist/plugins/listInputFields/schemas.d.ts.map +1 -1
- package/dist/plugins/manifest/index.d.ts +40 -36
- package/dist/plugins/manifest/index.d.ts.map +1 -1
- package/dist/plugins/manifest/index.js +3 -2
- package/dist/plugins/registry/index.d.ts +11 -9
- package/dist/plugins/registry/index.d.ts.map +1 -1
- package/dist/plugins/registry/index.js +3 -2
- package/dist/plugins/request/index.d.ts +61 -15
- package/dist/plugins/request/index.d.ts.map +1 -1
- package/dist/plugins/request/index.js +14 -22
- package/dist/plugins/request/schemas.d.ts +0 -2
- package/dist/plugins/request/schemas.d.ts.map +1 -1
- package/dist/plugins/runAction/index.d.ts +137 -23
- package/dist/plugins/runAction/index.d.ts.map +1 -1
- package/dist/plugins/runAction/index.js +65 -78
- package/dist/plugins/runAction/schemas.d.ts +4 -14
- package/dist/plugins/runAction/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/createTable/index.d.ts +43 -11
- package/dist/plugins/tables/createTable/index.d.ts.map +1 -1
- package/dist/plugins/tables/createTable/index.js +16 -44
- package/dist/plugins/tables/createTable/schemas.d.ts +0 -2
- package/dist/plugins/tables/createTable/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/createTableFields/index.d.ts +54 -11
- package/dist/plugins/tables/createTableFields/index.d.ts.map +1 -1
- package/dist/plugins/tables/createTableFields/index.js +17 -41
- package/dist/plugins/tables/createTableFields/schemas.d.ts +21 -23
- package/dist/plugins/tables/createTableFields/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/createTableRecords/index.d.ts +47 -11
- package/dist/plugins/tables/createTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/createTableRecords/index.js +17 -43
- package/dist/plugins/tables/createTableRecords/schemas.d.ts +0 -2
- package/dist/plugins/tables/createTableRecords/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTable/index.d.ts +36 -13
- package/dist/plugins/tables/deleteTable/index.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTable/index.js +18 -40
- package/dist/plugins/tables/deleteTable/schemas.d.ts +0 -2
- package/dist/plugins/tables/deleteTable/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTableFields/index.d.ts +36 -11
- package/dist/plugins/tables/deleteTableFields/index.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTableFields/index.js +17 -39
- package/dist/plugins/tables/deleteTableFields/schemas.d.ts +0 -2
- package/dist/plugins/tables/deleteTableFields/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTableRecords/index.d.ts +36 -11
- package/dist/plugins/tables/deleteTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTableRecords/index.js +18 -41
- package/dist/plugins/tables/deleteTableRecords/schemas.d.ts +0 -2
- package/dist/plugins/tables/deleteTableRecords/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/getTable/index.d.ts +43 -12
- package/dist/plugins/tables/getTable/index.d.ts.map +1 -1
- package/dist/plugins/tables/getTable/index.js +18 -43
- package/dist/plugins/tables/getTable/schemas.d.ts +0 -2
- package/dist/plugins/tables/getTable/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/getTableRecord/index.d.ts +43 -11
- package/dist/plugins/tables/getTableRecord/index.d.ts.map +1 -1
- package/dist/plugins/tables/getTableRecord/index.js +18 -42
- package/dist/plugins/tables/getTableRecord/schemas.d.ts +0 -2
- package/dist/plugins/tables/getTableRecord/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/listTableFields/index.d.ts +46 -11
- package/dist/plugins/tables/listTableFields/index.d.ts.map +1 -1
- package/dist/plugins/tables/listTableFields/index.js +17 -41
- package/dist/plugins/tables/listTableFields/schemas.d.ts +12 -14
- package/dist/plugins/tables/listTableFields/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/listTableRecords/index.d.ts +66 -18
- package/dist/plugins/tables/listTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/listTableRecords/index.js +27 -50
- package/dist/plugins/tables/listTableRecords/schemas.d.ts +6 -8
- package/dist/plugins/tables/listTableRecords/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/listTables/index.d.ts +53 -20
- package/dist/plugins/tables/listTables/index.d.ts.map +1 -1
- package/dist/plugins/tables/listTables/index.js +24 -51
- package/dist/plugins/tables/listTables/schemas.d.ts +0 -2
- package/dist/plugins/tables/listTables/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/shared.d.ts +10 -0
- package/dist/plugins/tables/shared.d.ts.map +1 -0
- package/dist/plugins/tables/shared.js +9 -0
- package/dist/plugins/tables/updateTableRecords/index.d.ts +49 -11
- package/dist/plugins/tables/updateTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/updateTableRecords/index.js +20 -43
- package/dist/plugins/tables/updateTableRecords/schemas.d.ts +0 -2
- package/dist/plugins/tables/updateTableRecords/schemas.d.ts.map +1 -1
- package/dist/plugins/tables/utils.d.ts.map +1 -1
- package/dist/plugins/tables/utils.js +1 -0
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +21 -1
- package/dist/resolvers/actionKey.d.ts +1 -2
- package/dist/resolvers/actionKey.d.ts.map +1 -1
- package/dist/resolvers/actionType.d.ts +1 -2
- package/dist/resolvers/actionType.d.ts.map +1 -1
- package/dist/schemas/Action.d.ts +1 -1
- package/dist/sdk.d.ts +2942 -2
- package/dist/sdk.d.ts.map +1 -1
- package/dist/types/credentials.d.ts +2 -1
- package/dist/types/credentials.d.ts.map +1 -1
- package/dist/types/credentials.js +2 -1
- package/dist/types/errors.d.ts +13 -10
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/errors.js +15 -12
- package/dist/types/functions.d.ts +18 -2
- package/dist/types/functions.d.ts.map +1 -1
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/plugin.d.ts.map +1 -1
- package/dist/types/properties.d.ts +1 -1
- package/dist/types/registry.d.ts +1 -1
- package/dist/types/registry.d.ts.map +1 -1
- package/dist/types/sdk.d.ts +2 -0
- package/dist/types/sdk.d.ts.map +1 -1
- package/dist/types/sdk.js +1 -0
- package/dist/utils/function-utils.d.ts +11 -12
- package/dist/utils/function-utils.d.ts.map +1 -1
- package/dist/utils/plugin-utils.d.ts +168 -0
- package/dist/utils/plugin-utils.d.ts.map +1 -0
- package/dist/utils/plugin-utils.js +132 -0
- package/package.json +2 -4
|
@@ -1,21 +1,67 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Use `sdk.fetch(url, init?)` instead. This plugin now delegates
|
|
3
|
+
* to the fetch plugin and is kept only for backward compatibility. It is
|
|
4
|
+
* hidden from the CLI/MCP registries.
|
|
5
|
+
*/
|
|
6
|
+
export declare const requestPlugin: (sdk: {
|
|
7
|
+
fetch: (url: string | URL, init?: import("../fetch").ZapierFetchInitOptions) => Promise<Response>;
|
|
7
8
|
context: {
|
|
8
9
|
meta: {
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
fetch: {
|
|
11
|
+
description: string;
|
|
12
|
+
packages: string[];
|
|
13
|
+
categories: string[];
|
|
14
|
+
returnType: string;
|
|
15
|
+
inputParameters: ({
|
|
16
|
+
name: string;
|
|
17
|
+
schema: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodCustom<URL, URL>]>;
|
|
18
|
+
} | {
|
|
19
|
+
name: string;
|
|
20
|
+
schema: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
21
|
+
method: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
22
|
+
POST: "POST";
|
|
23
|
+
GET: "GET";
|
|
24
|
+
DELETE: "DELETE";
|
|
25
|
+
PUT: "PUT";
|
|
26
|
+
PATCH: "PATCH";
|
|
27
|
+
HEAD: "HEAD";
|
|
28
|
+
OPTIONS: "OPTIONS";
|
|
29
|
+
}>>;
|
|
30
|
+
headers: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
|
|
31
|
+
body: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodCustom<FormData, FormData>, import("zod").ZodCustom<URLSearchParams, URLSearchParams>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>]>>;
|
|
32
|
+
connectionId: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
33
|
+
connection: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
34
|
+
authenticationId: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
35
|
+
callbackUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
|
+
maxTime: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
37
|
+
}, import("zod/v4/core").$strip>>;
|
|
38
|
+
})[];
|
|
11
39
|
};
|
|
12
40
|
};
|
|
13
41
|
};
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
42
|
+
} & {
|
|
43
|
+
context: import("../eventEmission").EventEmissionContext;
|
|
44
|
+
} & {
|
|
45
|
+
context: {
|
|
46
|
+
meta: Record<string, import("../..").PluginMeta>;
|
|
47
|
+
};
|
|
48
|
+
}) => {
|
|
49
|
+
request: (options?: {
|
|
50
|
+
url: string;
|
|
51
|
+
method?: "POST" | "GET" | "DELETE" | "PUT" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
52
|
+
body?: any;
|
|
53
|
+
connection?: string | number | undefined;
|
|
54
|
+
connectionId?: string | number | undefined;
|
|
55
|
+
authenticationId?: string | number | undefined;
|
|
56
|
+
callbackUrl?: string | undefined;
|
|
57
|
+
headers?: [string, string][] | Record<string, string> | Headers | undefined;
|
|
58
|
+
} | undefined) => Promise<Response>;
|
|
59
|
+
} & {
|
|
60
|
+
context: {
|
|
61
|
+
meta: {
|
|
62
|
+
request: import("../..").PluginMeta;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export type RequestPluginProvides = ReturnType<typeof requestPlugin>;
|
|
21
67
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/request/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/request/index.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BzB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
+
import { definePlugin } from "../../utils/plugin-utils";
|
|
2
|
+
import { createPluginMethod } from "../../utils/plugin-utils";
|
|
1
3
|
import { RelayRequestSchema } from "./schemas";
|
|
2
|
-
import { createFunction } from "../../utils/function-utils";
|
|
3
|
-
import { createTelemetryCallback } from "../../utils/telemetry-utils";
|
|
4
4
|
import { logDeprecation } from "../../utils/logging";
|
|
5
5
|
/**
|
|
6
|
-
* @deprecated Use `sdk.fetch(url, init?)` instead. This plugin now delegates
|
|
7
|
-
* and is kept only for backward compatibility. It is
|
|
6
|
+
* @deprecated Use `sdk.fetch(url, init?)` instead. This plugin now delegates
|
|
7
|
+
* to the fetch plugin and is kept only for backward compatibility. It is
|
|
8
|
+
* hidden from the CLI/MCP registries.
|
|
8
9
|
*/
|
|
9
|
-
export const requestPlugin = (sdk) => {
|
|
10
|
-
|
|
10
|
+
export const requestPlugin = definePlugin((sdk) => createPluginMethod(sdk, {
|
|
11
|
+
name: "request",
|
|
12
|
+
packages: ["cli", "mcp"],
|
|
13
|
+
categories: ["http", "deprecated"],
|
|
14
|
+
returnType: "Response",
|
|
15
|
+
inputSchema: RelayRequestSchema,
|
|
16
|
+
handler: async ({ sdk, options }) => {
|
|
11
17
|
logDeprecation("request() is deprecated. Use fetch() instead.");
|
|
12
18
|
const { url, method, body, headers, connection, connectionId, authenticationId, callbackUrl, } = options;
|
|
13
19
|
return sdk.fetch(url, {
|
|
@@ -17,19 +23,5 @@ export const requestPlugin = (sdk) => {
|
|
|
17
23
|
connection: connection ?? connectionId ?? authenticationId,
|
|
18
24
|
callbackUrl,
|
|
19
25
|
});
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
return {
|
|
23
|
-
request: requestDefinition,
|
|
24
|
-
context: {
|
|
25
|
-
meta: {
|
|
26
|
-
request: {
|
|
27
|
-
packages: ["cli", "mcp"],
|
|
28
|
-
categories: ["http", "deprecated"],
|
|
29
|
-
returnType: "Response",
|
|
30
|
-
inputSchema: RelayRequestSchema,
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
};
|
|
26
|
+
},
|
|
27
|
+
}));
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { ZapierApiError, ZapierValidationError, ZapierUnknownError } from "../../types/errors";
|
|
3
2
|
export declare const RelayRequestSchema: z.ZodObject<{
|
|
4
3
|
url: z.ZodString;
|
|
5
4
|
method: z.ZodOptional<z.ZodEnum<{
|
|
@@ -19,7 +18,6 @@ export declare const RelayRequestSchema: z.ZodObject<{
|
|
|
19
18
|
headers: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodCustom<Headers, Headers>, z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>]>>;
|
|
20
19
|
}, z.core.$strip>;
|
|
21
20
|
export type RelayRequestOptions = z.infer<typeof RelayRequestSchema>;
|
|
22
|
-
export type RelayRequestError = ZapierApiError | ZapierValidationError | ZapierUnknownError;
|
|
23
21
|
export interface RelayRequestSdkFunction {
|
|
24
22
|
request: (options: RelayRequestOptions) => Promise<Response>;
|
|
25
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/request/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/request/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;iBAoC3B,CAAC;AAGL,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAGrE,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC9D;AAGD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;iBAAqB,CAAC;AACnD,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;AACpD,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC1D"}
|
|
@@ -1,36 +1,150 @@
|
|
|
1
|
-
import type { Plugin } from "../../types/plugin";
|
|
2
1
|
import type { ApiClient } from "../../api";
|
|
3
|
-
import { RunActionSchema, type RunActionOptions } from "./schemas";
|
|
4
|
-
import type { GetActionPluginProvides } from "../getAction";
|
|
5
|
-
import type { GetAppPluginProvides } from "../getApp";
|
|
6
2
|
import type { GetVersionedImplementationId } from "../manifest/schemas";
|
|
7
3
|
import type { ConnectionsPluginProvides } from "../connections";
|
|
8
|
-
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
4
|
+
export declare const CONTEXT_CACHE_TTL_MS = 60000;
|
|
5
|
+
export declare const CONTEXT_CACHE_MAX_SIZE = 500;
|
|
6
|
+
export declare const runActionPlugin: (sdk: {
|
|
7
|
+
getAction: (options?: {
|
|
8
|
+
app: string;
|
|
9
|
+
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" | "write";
|
|
10
|
+
action: string;
|
|
11
|
+
} | {
|
|
12
|
+
appKey: string;
|
|
13
|
+
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" | "write";
|
|
14
|
+
actionKey: string;
|
|
15
|
+
} | undefined) => Promise<{
|
|
16
|
+
data: {
|
|
17
|
+
description: string;
|
|
18
|
+
key: string;
|
|
19
|
+
app_key: string;
|
|
20
|
+
action_type: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" | "write";
|
|
21
|
+
title: string;
|
|
22
|
+
type: "action";
|
|
23
|
+
id?: string | undefined;
|
|
24
|
+
is_important?: boolean | undefined;
|
|
25
|
+
is_hidden?: boolean | undefined;
|
|
26
|
+
app_version?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
}>;
|
|
29
|
+
} & {
|
|
30
|
+
context: {
|
|
31
|
+
meta: {
|
|
32
|
+
getAction: import("../..").PluginMeta;
|
|
33
|
+
};
|
|
18
34
|
};
|
|
35
|
+
} & {
|
|
36
|
+
getApp: (options?: {
|
|
37
|
+
app: string;
|
|
38
|
+
} | {
|
|
39
|
+
appKey: string;
|
|
40
|
+
} | undefined) => Promise<{
|
|
41
|
+
data: {
|
|
42
|
+
slug: string;
|
|
43
|
+
title: string;
|
|
44
|
+
key: string;
|
|
45
|
+
implementation_id: string;
|
|
46
|
+
description?: string | undefined;
|
|
47
|
+
is_hidden?: boolean | undefined;
|
|
48
|
+
auth_type?: string | undefined;
|
|
49
|
+
actions?: {
|
|
50
|
+
read?: number | undefined;
|
|
51
|
+
read_bulk?: number | undefined;
|
|
52
|
+
write?: number | undefined;
|
|
53
|
+
search?: number | undefined;
|
|
54
|
+
search_or_write?: number | undefined;
|
|
55
|
+
search_and_write?: number | undefined;
|
|
56
|
+
filter?: number | undefined;
|
|
57
|
+
} | undefined;
|
|
58
|
+
is_deprecated?: boolean | undefined;
|
|
59
|
+
is_beta?: boolean | undefined;
|
|
60
|
+
is_premium?: boolean | undefined;
|
|
61
|
+
age_in_days?: number | undefined;
|
|
62
|
+
banner?: string | undefined;
|
|
63
|
+
categories?: {
|
|
64
|
+
id: number;
|
|
65
|
+
name: string;
|
|
66
|
+
slug: string;
|
|
67
|
+
}[] | undefined;
|
|
68
|
+
images?: {
|
|
69
|
+
url_16x16?: string | undefined;
|
|
70
|
+
url_32x32?: string | undefined;
|
|
71
|
+
url_64x64?: string | undefined;
|
|
72
|
+
url_128x128?: string | undefined;
|
|
73
|
+
} | undefined;
|
|
74
|
+
popularity?: number | undefined;
|
|
75
|
+
has_filters?: boolean | undefined;
|
|
76
|
+
has_reads?: boolean | undefined;
|
|
77
|
+
has_searches?: boolean | undefined;
|
|
78
|
+
has_searches_or_writes?: boolean | undefined;
|
|
79
|
+
has_upfront_fields?: boolean | undefined;
|
|
80
|
+
has_writes?: boolean | undefined;
|
|
81
|
+
is_built_in?: boolean | undefined;
|
|
82
|
+
is_featured?: boolean | undefined;
|
|
83
|
+
is_invite?: boolean | undefined;
|
|
84
|
+
is_public?: boolean | undefined;
|
|
85
|
+
is_upcoming?: boolean | undefined;
|
|
86
|
+
visibility?: string | undefined;
|
|
87
|
+
primary_color?: string | undefined;
|
|
88
|
+
secondary_color?: string | undefined;
|
|
89
|
+
classification?: string | undefined;
|
|
90
|
+
api_docs_url?: string | undefined;
|
|
91
|
+
image?: string | undefined;
|
|
92
|
+
version?: string | undefined;
|
|
93
|
+
};
|
|
94
|
+
}>;
|
|
95
|
+
} & {
|
|
19
96
|
context: {
|
|
20
97
|
meta: {
|
|
21
|
-
|
|
22
|
-
inputSchema: typeof RunActionSchema;
|
|
23
|
-
};
|
|
98
|
+
getApp: import("../..").PluginMeta;
|
|
24
99
|
};
|
|
25
100
|
};
|
|
26
|
-
}
|
|
27
|
-
export declare const CONTEXT_CACHE_TTL_MS = 60000;
|
|
28
|
-
export declare const CONTEXT_CACHE_MAX_SIZE = 500;
|
|
29
|
-
export declare const runActionPlugin: Plugin<GetActionPluginProvides & GetAppPluginProvides & {
|
|
101
|
+
} & {
|
|
30
102
|
context: {
|
|
31
103
|
api: ApiClient;
|
|
32
104
|
getVersionedImplementationId: GetVersionedImplementationId;
|
|
33
105
|
} & ConnectionsPluginProvides["context"];
|
|
34
|
-
} &
|
|
35
|
-
|
|
106
|
+
} & {
|
|
107
|
+
context: import("../eventEmission").EventEmissionContext;
|
|
108
|
+
} & {
|
|
109
|
+
context: {
|
|
110
|
+
meta: Record<string, import("../..").PluginMeta>;
|
|
111
|
+
};
|
|
112
|
+
}) => {
|
|
113
|
+
runAction: (options?: (({
|
|
114
|
+
app: string;
|
|
115
|
+
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" | "write";
|
|
116
|
+
action: string;
|
|
117
|
+
connection?: string | number | undefined;
|
|
118
|
+
connectionId?: string | number | null | undefined;
|
|
119
|
+
authenticationId?: string | number | null | undefined;
|
|
120
|
+
inputs?: Record<string, unknown> | undefined;
|
|
121
|
+
timeoutMs?: number | undefined;
|
|
122
|
+
pageSize?: number | undefined;
|
|
123
|
+
maxItems?: number | undefined;
|
|
124
|
+
cursor?: string | undefined;
|
|
125
|
+
} | {
|
|
126
|
+
appKey: string;
|
|
127
|
+
actionType: "filter" | "read" | "read_bulk" | "run" | "search" | "search_and_write" | "search_or_write" | "write";
|
|
128
|
+
actionKey: string;
|
|
129
|
+
connection?: string | number | undefined;
|
|
130
|
+
connectionId?: string | number | null | undefined;
|
|
131
|
+
authenticationId?: string | number | null | undefined;
|
|
132
|
+
inputs?: Record<string, unknown> | undefined;
|
|
133
|
+
timeoutMs?: number | undefined;
|
|
134
|
+
pageSize?: number | undefined;
|
|
135
|
+
maxItems?: number | undefined;
|
|
136
|
+
cursor?: string | undefined;
|
|
137
|
+
}) & {
|
|
138
|
+
cursor?: string;
|
|
139
|
+
pageSize?: number;
|
|
140
|
+
maxItems?: number;
|
|
141
|
+
}) | undefined) => import("../..").PaginatedSdkResult<unknown>;
|
|
142
|
+
} & {
|
|
143
|
+
context: {
|
|
144
|
+
meta: {
|
|
145
|
+
runAction: import("../..").PluginMeta;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
export type RunActionPluginProvides = ReturnType<typeof runActionPlugin>;
|
|
36
150
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/runAction/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/runAction/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAiB3C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AA0GhE,eAAO,MAAM,oBAAoB,QAAS,CAAC;AAC3C,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAIX;QACP,GAAG,EAAE,SAAS,CAAC;QACf,4BAA4B,EAAE,4BAA4B,CAAC;KAC5D,GAAG,yBAAyB,CAAC,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuL/C,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { definePlugin } from "../../utils/plugin-utils";
|
|
2
|
+
import { createPaginatedPluginMethod } from "../../utils/plugin-utils";
|
|
3
|
+
import { RunActionInputSchema } from "./schemas";
|
|
2
4
|
import { ActionResultItemSchema } from "../../schemas/Run";
|
|
3
5
|
import { ZapierValidationError, ZapierConfigurationError, ZapierActionError, } from "../../types/errors";
|
|
4
|
-
import { createPaginatedFunction } from "../../utils/function-utils";
|
|
5
6
|
import { appKeyResolver, actionTypeResolver, actionKeyResolver, connectionIdResolver, inputsResolver, } from "../../resolvers";
|
|
6
|
-
import { createTelemetryCallback } from "../../utils/telemetry-utils";
|
|
7
7
|
import { resolveConnectionId } from "../../utils/domain-utils";
|
|
8
|
-
import { stripPageSuffix } from "../../utils/string-utils";
|
|
9
8
|
import { DEFAULT_ACTION_TIMEOUT_MS } from "../../constants";
|
|
10
9
|
import { setMethodMetadata } from "../../utils/telemetry-context";
|
|
11
10
|
import { buildActionRunContext } from "@zapier/policy-context";
|
|
@@ -46,6 +45,7 @@ async function executeAction(actionOptions) {
|
|
|
46
45
|
successStatus: 200,
|
|
47
46
|
pendingStatus: 202,
|
|
48
47
|
timeoutMs: timeoutMs ?? DEFAULT_ACTION_TIMEOUT_MS,
|
|
48
|
+
resource: { type: "run", id: runId },
|
|
49
49
|
isPending: (result) => {
|
|
50
50
|
const data = result?.data;
|
|
51
51
|
return data?.status === "waiting";
|
|
@@ -55,7 +55,7 @@ async function executeAction(actionOptions) {
|
|
|
55
55
|
}
|
|
56
56
|
export const CONTEXT_CACHE_TTL_MS = 60000;
|
|
57
57
|
export const CONTEXT_CACHE_MAX_SIZE = 500;
|
|
58
|
-
export const runActionPlugin = (sdk) => {
|
|
58
|
+
export const runActionPlugin = definePlugin((sdk) => {
|
|
59
59
|
// Intentionally kept inline — only this plugin needs this pattern today.
|
|
60
60
|
// If a second plugin needs a bounded TTL cache, extract to a shared utility.
|
|
61
61
|
const runActionContextCache = new Map();
|
|
@@ -119,80 +119,67 @@ export const runActionPlugin = (sdk) => {
|
|
|
119
119
|
}
|
|
120
120
|
return { selectedApi, actionId: actionData.data.id };
|
|
121
121
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
actionType,
|
|
152
|
-
executionOptions: { inputs },
|
|
153
|
-
cursor,
|
|
154
|
-
connectionId: resolvedConnectionId,
|
|
155
|
-
timeoutMs,
|
|
156
|
-
});
|
|
157
|
-
// Check for errors in the result and throw if present
|
|
158
|
-
if (result.errors && result.errors.length > 0) {
|
|
159
|
-
const errorMessage = result.errors
|
|
160
|
-
.map((error) => error.detail || error.title || "Unknown error")
|
|
161
|
-
.join("; ");
|
|
162
|
-
throw new ZapierActionError(`Action execution failed: ${errorMessage}`, {
|
|
122
|
+
// No defaultPageSize — we leave the default to the Actions API rather
|
|
123
|
+
// than eagerly running more actions than the user intends to (and avoid
|
|
124
|
+
// hitting app rate limits).
|
|
125
|
+
return createPaginatedPluginMethod(sdk, {
|
|
126
|
+
name: "runAction",
|
|
127
|
+
categories: ["action"],
|
|
128
|
+
type: "list",
|
|
129
|
+
itemType: "ActionResult",
|
|
130
|
+
inputSchema: RunActionInputSchema,
|
|
131
|
+
outputSchema: ActionResultItemSchema,
|
|
132
|
+
resolvers: {
|
|
133
|
+
app: appKeyResolver,
|
|
134
|
+
actionType: actionTypeResolver,
|
|
135
|
+
action: actionKeyResolver,
|
|
136
|
+
connection: connectionIdResolver,
|
|
137
|
+
inputs: inputsResolver,
|
|
138
|
+
},
|
|
139
|
+
handler: async ({ sdk, options, }) => {
|
|
140
|
+
const { api } = sdk.context;
|
|
141
|
+
const appKey = "app" in options ? options.app : options.appKey;
|
|
142
|
+
const actionKey = "action" in options ? options.action : options.actionKey;
|
|
143
|
+
const { actionType, connectionId, connection, authenticationId, inputs = {}, cursor, timeoutMs, } = options;
|
|
144
|
+
const resolvedConnectionId = await resolveConnectionId({
|
|
145
|
+
connectionId,
|
|
146
|
+
connection,
|
|
147
|
+
authenticationId,
|
|
148
|
+
resolveConnection: sdk.context.resolveConnection,
|
|
149
|
+
});
|
|
150
|
+
const { selectedApi, actionId } = await getRunActionContext({
|
|
163
151
|
appKey,
|
|
164
152
|
actionKey,
|
|
153
|
+
actionType,
|
|
165
154
|
});
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
},
|
|
195
|
-
},
|
|
155
|
+
setMethodMetadata({
|
|
156
|
+
selectedApi,
|
|
157
|
+
operationType: actionType,
|
|
158
|
+
operationKey: actionKey,
|
|
159
|
+
});
|
|
160
|
+
const result = await executeAction({
|
|
161
|
+
api,
|
|
162
|
+
selectedApi,
|
|
163
|
+
// Some actions require the action ID, but it's not guaranteed
|
|
164
|
+
// available at retrieval time (legacy), so pass everything through.
|
|
165
|
+
actionId,
|
|
166
|
+
actionKey,
|
|
167
|
+
actionType,
|
|
168
|
+
executionOptions: { inputs },
|
|
169
|
+
cursor,
|
|
170
|
+
connectionId: resolvedConnectionId,
|
|
171
|
+
timeoutMs,
|
|
172
|
+
});
|
|
173
|
+
if (result.errors && result.errors.length > 0) {
|
|
174
|
+
const errorMessage = result.errors
|
|
175
|
+
.map((error) => error.detail || error.title || "Unknown error")
|
|
176
|
+
.join("; ");
|
|
177
|
+
throw new ZapierActionError(`Action execution failed: ${errorMessage}`, { appKey, actionKey });
|
|
178
|
+
}
|
|
179
|
+
return {
|
|
180
|
+
data: result.results || [],
|
|
181
|
+
nextCursor: result.next_page,
|
|
182
|
+
};
|
|
196
183
|
},
|
|
197
|
-
};
|
|
198
|
-
};
|
|
184
|
+
});
|
|
185
|
+
});
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { PaginatedSdkFunction } from "../../types/functions";
|
|
3
|
-
import type { ZapierActionError, ZapierValidationError, ZapierConfigurationError, ZapierUnknownError } from "../../types/errors";
|
|
4
2
|
export declare const RunActionSchema: z.ZodObject<{
|
|
5
3
|
app: z.ZodString & {
|
|
6
4
|
_def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
|
|
7
5
|
};
|
|
8
6
|
actionType: z.ZodEnum<{
|
|
9
|
-
search: "search";
|
|
10
7
|
filter: "filter";
|
|
11
8
|
read: "read";
|
|
12
9
|
read_bulk: "read_bulk";
|
|
13
10
|
run: "run";
|
|
11
|
+
search: "search";
|
|
14
12
|
search_and_write: "search_and_write";
|
|
15
13
|
search_or_write: "search_or_write";
|
|
16
14
|
write: "write";
|
|
@@ -32,11 +30,11 @@ declare const RunActionSchemaDeprecated: z.ZodObject<{
|
|
|
32
30
|
_def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
|
|
33
31
|
};
|
|
34
32
|
actionType: z.ZodEnum<{
|
|
35
|
-
search: "search";
|
|
36
33
|
filter: "filter";
|
|
37
34
|
read: "read";
|
|
38
35
|
read_bulk: "read_bulk";
|
|
39
36
|
run: "run";
|
|
37
|
+
search: "search";
|
|
40
38
|
search_and_write: "search_and_write";
|
|
41
39
|
search_or_write: "search_or_write";
|
|
42
40
|
write: "write";
|
|
@@ -56,11 +54,11 @@ export declare const RunActionInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
56
54
|
_def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
|
|
57
55
|
};
|
|
58
56
|
actionType: z.ZodEnum<{
|
|
59
|
-
search: "search";
|
|
60
57
|
filter: "filter";
|
|
61
58
|
read: "read";
|
|
62
59
|
read_bulk: "read_bulk";
|
|
63
60
|
run: "run";
|
|
61
|
+
search: "search";
|
|
64
62
|
search_and_write: "search_and_write";
|
|
65
63
|
search_or_write: "search_or_write";
|
|
66
64
|
write: "write";
|
|
@@ -81,11 +79,11 @@ export declare const RunActionInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
81
79
|
_def: z.core.$ZodStringDef & import("../..").PositionalMetadata;
|
|
82
80
|
};
|
|
83
81
|
actionType: z.ZodEnum<{
|
|
84
|
-
search: "search";
|
|
85
82
|
filter: "filter";
|
|
86
83
|
read: "read";
|
|
87
84
|
read_bulk: "read_bulk";
|
|
88
85
|
run: "run";
|
|
86
|
+
search: "search";
|
|
89
87
|
search_and_write: "search_and_write";
|
|
90
88
|
search_or_write: "search_or_write";
|
|
91
89
|
write: "write";
|
|
@@ -106,13 +104,5 @@ export type RunActionOptions = z.infer<typeof RunActionSchema> | (Omit<z.infer<t
|
|
|
106
104
|
/** @deprecated Use `action` instead. */
|
|
107
105
|
actionKey: z.infer<typeof RunActionSchemaDeprecated>["actionKey"];
|
|
108
106
|
});
|
|
109
|
-
export interface RunActionPage {
|
|
110
|
-
data: unknown[];
|
|
111
|
-
nextCursor?: string;
|
|
112
|
-
}
|
|
113
|
-
export type RunActionError = ZapierActionError | ZapierValidationError | ZapierConfigurationError | ZapierUnknownError;
|
|
114
|
-
export interface RunActionSdkFunction {
|
|
115
|
-
runAction: PaginatedSdkFunction<RunActionOptions, unknown>;
|
|
116
|
-
}
|
|
117
107
|
export {};
|
|
118
108
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/runAction/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/plugins/runAction/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA6CxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;iBAexB,CAAC;AAGL,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;iBAMF,CAAC;AAG9B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAEA,CAAC;AAGlC,MAAM,MAAM,gBAAgB,GACxB,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,GAC/B,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC,GAAG;IACzE,qCAAqC;IACrC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC5D,wCAAwC;IACxC,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC,WAAW,CAAC,CAAC;CACnE,CAAC,CAAC"}
|