@zapier/zapier-sdk 0.41.2 → 0.42.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/README.md +1 -0
- package/dist/index.cjs +376 -219
- package/dist/index.d.mts +174 -424
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +376 -220
- package/dist/plugins/api/index.d.ts +5 -1
- package/dist/plugins/api/index.d.ts.map +1 -1
- package/dist/plugins/api/index.js +2 -3
- package/dist/plugins/apps/index.d.ts +2 -3
- package/dist/plugins/apps/index.d.ts.map +1 -1
- package/dist/plugins/apps/index.js +1 -1
- package/dist/plugins/capabilities/index.d.ts +8 -6
- package/dist/plugins/capabilities/index.d.ts.map +1 -1
- package/dist/plugins/capabilities/index.js +3 -3
- package/dist/plugins/connections/index.d.ts +3 -1
- package/dist/plugins/connections/index.d.ts.map +1 -1
- package/dist/plugins/connections/index.js +2 -3
- package/dist/plugins/createClientCredentials/index.d.ts +6 -4
- package/dist/plugins/createClientCredentials/index.d.ts.map +1 -1
- package/dist/plugins/createClientCredentials/index.js +3 -3
- package/dist/plugins/deleteClientCredentials/index.d.ts +6 -4
- package/dist/plugins/deleteClientCredentials/index.d.ts.map +1 -1
- package/dist/plugins/deleteClientCredentials/index.js +3 -3
- package/dist/plugins/deprecated/authentications.d.ts +9 -9
- package/dist/plugins/deprecated/authentications.d.ts.map +1 -1
- package/dist/plugins/deprecated/authentications.js +4 -4
- package/dist/plugins/eventEmission/index.d.ts +4 -5
- package/dist/plugins/eventEmission/index.d.ts.map +1 -1
- package/dist/plugins/eventEmission/index.js +8 -7
- package/dist/plugins/fetch/index.d.ts +18 -23
- package/dist/plugins/fetch/index.d.ts.map +1 -1
- package/dist/plugins/fetch/index.js +88 -28
- package/dist/plugins/fetch/schemas.d.ts +8 -0
- package/dist/plugins/fetch/schemas.d.ts.map +1 -1
- package/dist/plugins/fetch/schemas.js +21 -12
- package/dist/plugins/findFirstConnection/index.d.ts +3 -4
- package/dist/plugins/findFirstConnection/index.d.ts.map +1 -1
- package/dist/plugins/findFirstConnection/index.js +2 -2
- package/dist/plugins/findUniqueConnection/index.d.ts +3 -4
- package/dist/plugins/findUniqueConnection/index.d.ts.map +1 -1
- package/dist/plugins/findUniqueConnection/index.js +2 -2
- package/dist/plugins/getAction/index.d.ts +7 -7
- package/dist/plugins/getAction/index.d.ts.map +1 -1
- package/dist/plugins/getAction/index.js +2 -2
- package/dist/plugins/getApp/index.d.ts +2 -3
- package/dist/plugins/getApp/index.d.ts.map +1 -1
- package/dist/plugins/getApp/index.js +2 -2
- package/dist/plugins/getConnection/index.d.ts +6 -6
- package/dist/plugins/getConnection/index.d.ts.map +1 -1
- package/dist/plugins/getConnection/index.js +3 -3
- package/dist/plugins/getInputFieldsSchema/index.d.ts +8 -6
- package/dist/plugins/getInputFieldsSchema/index.d.ts.map +1 -1
- package/dist/plugins/getInputFieldsSchema/index.js +4 -4
- package/dist/plugins/getProfile/index.d.ts +6 -6
- package/dist/plugins/getProfile/index.d.ts.map +1 -1
- package/dist/plugins/getProfile/index.js +3 -3
- package/dist/plugins/listActions/index.d.ts +8 -6
- package/dist/plugins/listActions/index.d.ts.map +1 -1
- package/dist/plugins/listActions/index.js +3 -3
- package/dist/plugins/listApps/index.d.ts +3 -3
- package/dist/plugins/listApps/index.d.ts.map +1 -1
- package/dist/plugins/listApps/index.js +3 -3
- package/dist/plugins/listClientCredentials/index.d.ts +6 -4
- package/dist/plugins/listClientCredentials/index.d.ts.map +1 -1
- package/dist/plugins/listClientCredentials/index.js +3 -3
- package/dist/plugins/listConnections/index.d.ts +8 -6
- package/dist/plugins/listConnections/index.d.ts.map +1 -1
- package/dist/plugins/listConnections/index.js +5 -5
- package/dist/plugins/listInputFieldChoices/index.d.ts +9 -8
- package/dist/plugins/listInputFieldChoices/index.d.ts.map +1 -1
- package/dist/plugins/listInputFieldChoices/index.js +4 -4
- package/dist/plugins/listInputFields/index.d.ts +8 -8
- package/dist/plugins/listInputFields/index.d.ts.map +1 -1
- package/dist/plugins/listInputFields/index.js +4 -4
- package/dist/plugins/manifest/index.d.ts +8 -3
- package/dist/plugins/manifest/index.d.ts.map +1 -1
- package/dist/plugins/manifest/index.js +2 -3
- package/dist/plugins/registry/index.d.ts +1 -2
- package/dist/plugins/registry/index.d.ts.map +1 -1
- package/dist/plugins/registry/index.js +3 -3
- package/dist/plugins/request/index.d.ts +3 -4
- package/dist/plugins/request/index.d.ts.map +1 -1
- package/dist/plugins/request/index.js +2 -2
- package/dist/plugins/runAction/index.d.ts +8 -8
- package/dist/plugins/runAction/index.d.ts.map +1 -1
- package/dist/plugins/runAction/index.js +5 -5
- package/dist/plugins/tables/createTable/index.d.ts +3 -5
- package/dist/plugins/tables/createTable/index.d.ts.map +1 -1
- package/dist/plugins/tables/createTable/index.js +3 -3
- package/dist/plugins/tables/createTableFields/index.d.ts +3 -5
- package/dist/plugins/tables/createTableFields/index.d.ts.map +1 -1
- package/dist/plugins/tables/createTableFields/index.js +3 -3
- package/dist/plugins/tables/createTableRecords/index.d.ts +3 -5
- package/dist/plugins/tables/createTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/createTableRecords/index.js +3 -3
- package/dist/plugins/tables/deleteTable/index.d.ts +5 -5
- package/dist/plugins/tables/deleteTable/index.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTable/index.js +4 -4
- package/dist/plugins/tables/deleteTableFields/index.d.ts +3 -5
- package/dist/plugins/tables/deleteTableFields/index.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTableFields/index.js +3 -3
- package/dist/plugins/tables/deleteTableRecords/index.d.ts +3 -5
- package/dist/plugins/tables/deleteTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/deleteTableRecords/index.js +3 -3
- package/dist/plugins/tables/getTable/index.d.ts +3 -5
- package/dist/plugins/tables/getTable/index.d.ts.map +1 -1
- package/dist/plugins/tables/getTable/index.js +3 -3
- package/dist/plugins/tables/getTableRecord/index.d.ts +3 -5
- package/dist/plugins/tables/getTableRecord/index.d.ts.map +1 -1
- package/dist/plugins/tables/getTableRecord/index.js +3 -3
- package/dist/plugins/tables/listTableFields/index.d.ts +3 -5
- package/dist/plugins/tables/listTableFields/index.d.ts.map +1 -1
- package/dist/plugins/tables/listTableFields/index.js +3 -3
- package/dist/plugins/tables/listTableRecords/index.d.ts +3 -3
- package/dist/plugins/tables/listTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/listTableRecords/index.js +3 -3
- package/dist/plugins/tables/listTables/index.d.ts +5 -3
- package/dist/plugins/tables/listTables/index.d.ts.map +1 -1
- package/dist/plugins/tables/listTables/index.js +4 -4
- package/dist/plugins/tables/updateTableRecords/index.d.ts +3 -5
- package/dist/plugins/tables/updateTableRecords/index.d.ts.map +1 -1
- package/dist/plugins/tables/updateTableRecords/index.js +3 -3
- package/dist/resolvers/connectionId.js +1 -1
- package/dist/resolvers/tableId.js +1 -1
- package/dist/sdk.d.ts +29 -257
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.js +33 -43
- package/dist/types/plugin.d.ts +29 -48
- package/dist/types/plugin.d.ts.map +1 -1
- package/dist/types/plugin.js +7 -3
- package/dist/types/sdk.d.ts +2 -3
- package/dist/types/sdk.d.ts.map +1 -1
- package/dist/utils/abort-utils.d.ts +64 -0
- package/dist/utils/abort-utils.d.ts.map +1 -0
- package/dist/utils/abort-utils.js +107 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as zod from 'zod';
|
|
2
1
|
import { z } from 'zod';
|
|
3
2
|
import { ConnectionSchema, ConnectionsResponseSchema, ConnectionItem as ConnectionItem$2, GetConnectionResponse } from '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
4
3
|
import { AppItem as AppItem$1 } from '@zapier/zapier-sdk-core/v0/schemas/apps';
|
|
@@ -45,19 +44,22 @@ type EventCallback = (event: SdkEvent) => void;
|
|
|
45
44
|
|
|
46
45
|
/**
|
|
47
46
|
* ------------------------------
|
|
48
|
-
* Plugin Type System
|
|
47
|
+
* Plugin Type System
|
|
49
48
|
* ------------------------------
|
|
50
49
|
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
50
|
+
* Plugins receive the sdk as a positional parameter. sdk.context holds shared
|
|
51
|
+
* internal state (api client, event emission, meta, options, etc.). SDK methods
|
|
52
|
+
* live at the root, context nests under .context.
|
|
53
|
+
*
|
|
54
|
+
* A plugin is (sdk) => partialSdk. createSdk() returns an empty SDK. addPlugin
|
|
55
|
+
* merges the plugin's result into the SDK, producing a new SDK.
|
|
53
56
|
*/
|
|
54
57
|
|
|
55
|
-
interface PluginDependencies<TSdk = {}, TContext = {}> {
|
|
56
|
-
sdk: TSdk;
|
|
57
|
-
context: TContext;
|
|
58
|
-
}
|
|
59
58
|
interface PluginProvides extends Record<string, any> {
|
|
60
|
-
context?:
|
|
59
|
+
context?: {
|
|
60
|
+
meta?: Record<string, PluginMeta>;
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
};
|
|
61
63
|
}
|
|
62
64
|
interface PluginMeta {
|
|
63
65
|
/**
|
|
@@ -66,62 +68,42 @@ interface PluginMeta {
|
|
|
66
68
|
* the inputSchema's `.describe()` value or a generic placeholder.
|
|
67
69
|
*/
|
|
68
70
|
description?: string;
|
|
69
|
-
categories
|
|
71
|
+
categories?: string[];
|
|
70
72
|
type?: "list" | "item" | "create" | "delete";
|
|
71
73
|
itemType?: string;
|
|
72
74
|
returnType?: string;
|
|
73
|
-
inputSchema
|
|
75
|
+
inputSchema?: z.ZodSchema;
|
|
74
76
|
outputSchema?: z.ZodSchema;
|
|
75
77
|
resolvers?: Record<string, any>;
|
|
76
78
|
/** Confirmation prompt type - prompts user before executing */
|
|
77
79
|
confirm?: "create-secret" | "delete";
|
|
78
80
|
[key: string]: any;
|
|
79
81
|
}
|
|
80
|
-
type ExtractSdkProperties<T extends Record<string, any>> = Omit<T, "context">;
|
|
81
|
-
type ExtractContextProperties<T extends PluginProvides> = T["context"];
|
|
82
|
-
type GetSdkType<TPluginProvides extends PluginProvides> = ExtractSdkProperties<TPluginProvides> & {
|
|
83
|
-
getContext(): NonNullable<ExtractContextProperties<TPluginProvides>>;
|
|
84
|
-
};
|
|
85
|
-
type GetContextType<TPluginProvides extends PluginProvides> = NonNullable<ExtractContextProperties<TPluginProvides>>;
|
|
86
|
-
type PluginOptions<TSdk = {}, TContext = {}> = {
|
|
87
|
-
sdk: TSdk;
|
|
88
|
-
context: TContext & {
|
|
89
|
-
meta: Record<string, any>;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
82
|
/**
|
|
93
|
-
* Plugin interface —
|
|
83
|
+
* Plugin interface — 2 type params:
|
|
84
|
+
*
|
|
85
|
+
* TSdk = what this plugin needs (the SDK shape including context)
|
|
86
|
+
* TProvides = what this plugin returns (a partial SDK shape)
|
|
94
87
|
*
|
|
95
|
-
*
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
(params: {
|
|
101
|
-
sdk: TSdk;
|
|
102
|
-
context: TRequiresContext & {
|
|
88
|
+
* The sdk param always includes context.meta, even if TSdk doesn't declare it.
|
|
89
|
+
*/
|
|
90
|
+
interface Plugin<TSdk = {}, TProvides extends PluginProvides = PluginProvides> {
|
|
91
|
+
(sdk: TSdk & {
|
|
92
|
+
context: {
|
|
103
93
|
meta: Record<string, PluginMeta>;
|
|
104
|
-
options: BaseSdkOptions;
|
|
105
94
|
};
|
|
106
95
|
}): TProvides;
|
|
107
96
|
}
|
|
108
|
-
type MissingContextKeys<TRequired, TCurrent> = TRequired extends Record<string, any> ? TCurrent extends Record<string, any> ? {
|
|
109
|
-
[K in keyof TRequired]: K extends keyof TCurrent ? never : K;
|
|
110
|
-
}[keyof TRequired] : keyof TRequired : never;
|
|
111
|
-
type ContextError<TRequired, TCurrent> = MissingContextKeys<TRequired, TCurrent> extends never ? never : MissingContextKeys<TRequired, TCurrent> extends infer Missing ? Missing extends string ? `❌ Missing required context: { ${Missing}: any }` : Missing extends number ? `❌ Missing required context: { ${Missing}: any }` : `❌ Missing required context properties. Required: ${keyof TRequired extends string ? keyof TRequired : "unknown"}, Available: ${keyof TCurrent extends string ? keyof TCurrent : "unknown"}` : "❌ Context requirement not satisfied";
|
|
112
97
|
/**
|
|
113
|
-
* SDK
|
|
114
|
-
*
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}> =
|
|
121
|
-
addPlugin<
|
|
122
|
-
getContext(): TCurrentContext;
|
|
123
|
-
}, TRequiresContext, TProvides>, options?: any): TCurrentContext extends TRequiresContext ? Sdk<TCurrentSdk & ExtractSdkProperties<TProvides>, TCurrentContext & NonNullable<ExtractContextProperties<TProvides>>> : ContextError<TRequiresContext, TCurrentContext>;
|
|
124
|
-
getContext(): TCurrentContext;
|
|
98
|
+
* Takes an SDK shape and adds an addPlugin method to it.
|
|
99
|
+
* addPlugin merges a plugin's result into the shape, producing a new SDK.
|
|
100
|
+
*/
|
|
101
|
+
type WithAddPlugin<T = {
|
|
102
|
+
context: {
|
|
103
|
+
meta: Record<string, PluginMeta>;
|
|
104
|
+
};
|
|
105
|
+
}> = T & {
|
|
106
|
+
addPlugin<TProvides extends PluginProvides>(plugin: Plugin<T, TProvides>): WithAddPlugin<T & TProvides>;
|
|
125
107
|
};
|
|
126
108
|
|
|
127
109
|
/**
|
|
@@ -1067,9 +1049,14 @@ declare function findManifestEntry({ appKey, manifest, }: {
|
|
|
1067
1049
|
manifest: Manifest;
|
|
1068
1050
|
}): [string, ManifestEntry] | null;
|
|
1069
1051
|
|
|
1070
|
-
declare const manifestPlugin: Plugin<{
|
|
1071
|
-
{
|
|
1072
|
-
|
|
1052
|
+
declare const manifestPlugin: Plugin<{
|
|
1053
|
+
context: {
|
|
1054
|
+
api: ApiClient;
|
|
1055
|
+
options?: {
|
|
1056
|
+
manifestPath?: string;
|
|
1057
|
+
manifest?: Manifest;
|
|
1058
|
+
};
|
|
1059
|
+
};
|
|
1073
1060
|
}, ManifestPluginProvides>;
|
|
1074
1061
|
|
|
1075
1062
|
/**
|
|
@@ -1436,8 +1423,7 @@ interface RegistryPluginProvides {
|
|
|
1436
1423
|
}[];
|
|
1437
1424
|
};
|
|
1438
1425
|
}
|
|
1439
|
-
declare const registryPlugin: Plugin<{}, // accepts any SDK shape
|
|
1440
|
-
{}, // requires no context
|
|
1426
|
+
declare const registryPlugin: Plugin<{}, // accepts any SDK shape, requires no context
|
|
1441
1427
|
RegistryPluginProvides>;
|
|
1442
1428
|
|
|
1443
1429
|
declare const GetProfileSchema: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
|
|
@@ -1455,11 +1441,11 @@ interface GetProfilePluginProvides {
|
|
|
1455
1441
|
};
|
|
1456
1442
|
};
|
|
1457
1443
|
}
|
|
1458
|
-
declare const getProfilePlugin: Plugin<{
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
} &
|
|
1444
|
+
declare const getProfilePlugin: Plugin<{
|
|
1445
|
+
context: {
|
|
1446
|
+
api: ApiClient;
|
|
1447
|
+
};
|
|
1448
|
+
} & EventEmissionProvides, // no SDK dependencies, requires api and eventEmission in context
|
|
1463
1449
|
GetProfilePluginProvides>;
|
|
1464
1450
|
|
|
1465
1451
|
interface ApiPluginOptions extends BaseSdkOptions {
|
|
@@ -1470,7 +1456,11 @@ interface ApiPluginProvides {
|
|
|
1470
1456
|
resolveCredentials: () => Promise<ResolvedCredentials | undefined>;
|
|
1471
1457
|
};
|
|
1472
1458
|
}
|
|
1473
|
-
declare const apiPlugin: Plugin<{
|
|
1459
|
+
declare const apiPlugin: Plugin<{
|
|
1460
|
+
context: {
|
|
1461
|
+
options: BaseSdkOptions;
|
|
1462
|
+
};
|
|
1463
|
+
}, ApiPluginProvides>;
|
|
1474
1464
|
|
|
1475
1465
|
declare const AppKeyPropertySchema: z.ZodString & {
|
|
1476
1466
|
_def: z.core.$ZodStringDef & PositionalMetadata;
|
|
@@ -1595,17 +1585,22 @@ interface ConnectionsPluginProvides {
|
|
|
1595
1585
|
getConnectionsMap: () => Promise<ConnectionsMap | null>;
|
|
1596
1586
|
};
|
|
1597
1587
|
}
|
|
1598
|
-
declare const connectionsPlugin: Plugin<{
|
|
1588
|
+
declare const connectionsPlugin: Plugin<{
|
|
1589
|
+
context: Pick<ManifestPluginProvides["context"], "getManifestConnections">;
|
|
1590
|
+
}, ConnectionsPluginProvides>;
|
|
1599
1591
|
|
|
1592
|
+
interface ZapierFetchInitOptions extends RequestInit {
|
|
1593
|
+
/** @deprecated Use `connection` instead. */
|
|
1594
|
+
connectionId?: string | number;
|
|
1595
|
+
connection?: string | number;
|
|
1596
|
+
/** @deprecated Use `connection` instead. */
|
|
1597
|
+
authenticationId?: string | number;
|
|
1598
|
+
callbackUrl?: string;
|
|
1599
|
+
/** Maximum seconds to wait for a response, subject to a server-side limit. */
|
|
1600
|
+
maxTime?: number;
|
|
1601
|
+
}
|
|
1600
1602
|
interface FetchPluginProvides {
|
|
1601
|
-
fetch: (url: string | URL, init?:
|
|
1602
|
-
/** @deprecated Use `connection` instead. */
|
|
1603
|
-
connectionId?: string | number;
|
|
1604
|
-
connection?: string | number;
|
|
1605
|
-
/** @deprecated Use `connection` instead. */
|
|
1606
|
-
authenticationId?: string | number;
|
|
1607
|
-
callbackUrl?: string;
|
|
1608
|
-
}) => Promise<Response>;
|
|
1603
|
+
fetch: (url: string | URL, init?: ZapierFetchInitOptions) => Promise<Response>;
|
|
1609
1604
|
context: {
|
|
1610
1605
|
meta: {
|
|
1611
1606
|
fetch: {
|
|
@@ -1625,20 +1620,12 @@ interface FetchPluginProvides {
|
|
|
1625
1620
|
* Fetch plugin — the primary way to make authenticated HTTP requests through Zapier's Relay service.
|
|
1626
1621
|
* Mirrors the native fetch(url, init?) signature with additional Zapier-specific options.
|
|
1627
1622
|
*/
|
|
1628
|
-
declare const fetchPlugin: Plugin<{
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
} &
|
|
1623
|
+
declare const fetchPlugin: Plugin<{
|
|
1624
|
+
context: {
|
|
1625
|
+
api: ApiClient;
|
|
1626
|
+
} & ConnectionsPluginProvides["context"];
|
|
1627
|
+
} & EventEmissionProvides, // no SDK dependencies, requires api, connections, and eventEmission in context
|
|
1633
1628
|
FetchPluginProvides>;
|
|
1634
|
-
type ZapierFetchInitOptions = RequestInit & {
|
|
1635
|
-
/** @deprecated Use `connection` instead. */
|
|
1636
|
-
connectionId?: string | number;
|
|
1637
|
-
connection?: string | number;
|
|
1638
|
-
/** @deprecated Use `connection` instead. */
|
|
1639
|
-
authenticationId?: string | number;
|
|
1640
|
-
callbackUrl?: string;
|
|
1641
|
-
};
|
|
1642
1629
|
|
|
1643
1630
|
declare const RunActionSchema: z.ZodObject<{
|
|
1644
1631
|
app: z.ZodString & {
|
|
@@ -1797,10 +1784,12 @@ interface ListActionsPluginProvides {
|
|
|
1797
1784
|
};
|
|
1798
1785
|
};
|
|
1799
1786
|
}
|
|
1800
|
-
declare const listActionsPlugin: Plugin<
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1787
|
+
declare const listActionsPlugin: Plugin<ManifestPluginProvides & {
|
|
1788
|
+
context: {
|
|
1789
|
+
api: ApiClient;
|
|
1790
|
+
getVersionedImplementationId: GetVersionedImplementationId;
|
|
1791
|
+
};
|
|
1792
|
+
} & EventEmissionProvides, ListActionsPluginProvides>;
|
|
1804
1793
|
|
|
1805
1794
|
interface GetActionPluginProvides {
|
|
1806
1795
|
getAction: (options: GetActionOptions) => Promise<{
|
|
@@ -1814,11 +1803,11 @@ interface GetActionPluginProvides {
|
|
|
1814
1803
|
};
|
|
1815
1804
|
};
|
|
1816
1805
|
}
|
|
1817
|
-
declare const getActionPlugin: Plugin<
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
} &
|
|
1806
|
+
declare const getActionPlugin: Plugin<ListActionsPluginProvides & {
|
|
1807
|
+
context: {
|
|
1808
|
+
api: ApiClient;
|
|
1809
|
+
};
|
|
1810
|
+
} & EventEmissionProvides, // requires listActions in SDK, api and eventEmission in context
|
|
1822
1811
|
GetActionPluginProvides>;
|
|
1823
1812
|
|
|
1824
1813
|
declare const GetAppSchema: z.ZodObject<{
|
|
@@ -1883,7 +1872,7 @@ interface ListAppsPluginProvides {
|
|
|
1883
1872
|
};
|
|
1884
1873
|
};
|
|
1885
1874
|
}
|
|
1886
|
-
declare const listAppsPlugin: Plugin<
|
|
1875
|
+
declare const listAppsPlugin: Plugin<ApiPluginProvides & ManifestPluginProvides & EventEmissionProvides, ListAppsPluginProvides>;
|
|
1887
1876
|
|
|
1888
1877
|
interface GetAppPluginProvides {
|
|
1889
1878
|
getApp: (options: GetAppOptions) => Promise<{
|
|
@@ -1897,7 +1886,7 @@ interface GetAppPluginProvides {
|
|
|
1897
1886
|
};
|
|
1898
1887
|
};
|
|
1899
1888
|
}
|
|
1900
|
-
declare const getAppPlugin: Plugin<
|
|
1889
|
+
declare const getAppPlugin: Plugin<ListAppsPluginProvides & EventEmissionProvides, GetAppPluginProvides>;
|
|
1901
1890
|
|
|
1902
1891
|
interface RunActionPluginProvides {
|
|
1903
1892
|
runAction: (options?: RunActionOptions) => Promise<{
|
|
@@ -1919,19 +1908,18 @@ interface RunActionPluginProvides {
|
|
|
1919
1908
|
}
|
|
1920
1909
|
declare const CONTEXT_CACHE_TTL_MS = 60000;
|
|
1921
1910
|
declare const CONTEXT_CACHE_MAX_SIZE = 500;
|
|
1922
|
-
declare const runActionPlugin: Plugin<
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
} &
|
|
1911
|
+
declare const runActionPlugin: Plugin<GetActionPluginProvides & GetAppPluginProvides & {
|
|
1912
|
+
context: {
|
|
1913
|
+
api: ApiClient;
|
|
1914
|
+
getVersionedImplementationId: GetVersionedImplementationId;
|
|
1915
|
+
} & ConnectionsPluginProvides["context"];
|
|
1916
|
+
} & EventEmissionProvides, // requires getAction and getApp in SDK, api, connections, and eventEmission in context
|
|
1928
1917
|
RunActionPluginProvides>;
|
|
1929
1918
|
|
|
1930
1919
|
interface AppsPluginProvides {
|
|
1931
1920
|
apps: ActionProxy;
|
|
1932
1921
|
}
|
|
1933
|
-
declare const appsPlugin: Plugin<
|
|
1934
|
-
{}, // no context requirements
|
|
1922
|
+
declare const appsPlugin: Plugin<FetchPluginProvides & RunActionPluginProvides, // requires fetch + runAction in SDK, no context requirements
|
|
1935
1923
|
AppsPluginProvides>;
|
|
1936
1924
|
|
|
1937
1925
|
interface ZapierSdkApps {
|
|
@@ -1988,10 +1976,12 @@ interface ListConnectionsPluginProvides {
|
|
|
1988
1976
|
};
|
|
1989
1977
|
};
|
|
1990
1978
|
}
|
|
1991
|
-
declare const listConnectionsPlugin: Plugin<
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1979
|
+
declare const listConnectionsPlugin: Plugin<ManifestPluginProvides & {
|
|
1980
|
+
context: {
|
|
1981
|
+
api: ApiClient;
|
|
1982
|
+
getVersionedImplementationId: GetVersionedImplementationId;
|
|
1983
|
+
} & CapabilitiesContext & ConnectionsPluginProvides["context"];
|
|
1984
|
+
} & EventEmissionProvides, ListConnectionsPluginProvides>;
|
|
1995
1985
|
|
|
1996
1986
|
interface GetConnectionPluginProvides {
|
|
1997
1987
|
getConnection: (options: GetConnectionParam) => Promise<GetConnectionResponse>;
|
|
@@ -2003,11 +1993,11 @@ interface GetConnectionPluginProvides {
|
|
|
2003
1993
|
};
|
|
2004
1994
|
};
|
|
2005
1995
|
}
|
|
2006
|
-
declare const getConnectionPlugin: Plugin<{
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
} &
|
|
1996
|
+
declare const getConnectionPlugin: Plugin<{
|
|
1997
|
+
context: {
|
|
1998
|
+
api: ApiClient;
|
|
1999
|
+
};
|
|
2000
|
+
} & EventEmissionProvides, // no SDK dependencies, requires api and eventEmission in context
|
|
2011
2001
|
GetConnectionPluginProvides>;
|
|
2012
2002
|
|
|
2013
2003
|
interface FindFirstConnectionPluginProvides {
|
|
@@ -2022,8 +2012,7 @@ interface FindFirstConnectionPluginProvides {
|
|
|
2022
2012
|
};
|
|
2023
2013
|
};
|
|
2024
2014
|
}
|
|
2025
|
-
declare const findFirstConnectionPlugin: Plugin<
|
|
2026
|
-
EventEmissionContext, // requires eventEmission in context
|
|
2015
|
+
declare const findFirstConnectionPlugin: Plugin<ListConnectionsPluginProvides & EventEmissionProvides, // requires listConnections in SDK, eventEmission in context
|
|
2027
2016
|
FindFirstConnectionPluginProvides>;
|
|
2028
2017
|
|
|
2029
2018
|
interface FindUniqueConnectionPluginProvides {
|
|
@@ -2038,8 +2027,7 @@ interface FindUniqueConnectionPluginProvides {
|
|
|
2038
2027
|
};
|
|
2039
2028
|
};
|
|
2040
2029
|
}
|
|
2041
|
-
declare const findUniqueConnectionPlugin: Plugin<
|
|
2042
|
-
EventEmissionContext, // requires eventEmission in context
|
|
2030
|
+
declare const findUniqueConnectionPlugin: Plugin<ListConnectionsPluginProvides & EventEmissionProvides, // requires listConnections in SDK, eventEmission in context
|
|
2043
2031
|
FindUniqueConnectionPluginProvides>;
|
|
2044
2032
|
|
|
2045
2033
|
/**
|
|
@@ -2057,7 +2045,7 @@ FindUniqueConnectionPluginProvides>;
|
|
|
2057
2045
|
*/
|
|
2058
2046
|
|
|
2059
2047
|
interface ListAuthenticationsPluginProvides {
|
|
2060
|
-
listAuthentications:
|
|
2048
|
+
listAuthentications: ListConnectionsPluginProvides["listConnections"];
|
|
2061
2049
|
context: {
|
|
2062
2050
|
meta: {
|
|
2063
2051
|
listAuthentications: {
|
|
@@ -2067,7 +2055,7 @@ interface ListAuthenticationsPluginProvides {
|
|
|
2067
2055
|
};
|
|
2068
2056
|
}
|
|
2069
2057
|
interface GetAuthenticationPluginProvides {
|
|
2070
|
-
getAuthentication:
|
|
2058
|
+
getAuthentication: GetConnectionPluginProvides["getConnection"];
|
|
2071
2059
|
context: {
|
|
2072
2060
|
meta: {
|
|
2073
2061
|
getAuthentication: {
|
|
@@ -2077,7 +2065,7 @@ interface GetAuthenticationPluginProvides {
|
|
|
2077
2065
|
};
|
|
2078
2066
|
}
|
|
2079
2067
|
interface FindFirstAuthenticationPluginProvides {
|
|
2080
|
-
findFirstAuthentication:
|
|
2068
|
+
findFirstAuthentication: FindFirstConnectionPluginProvides["findFirstConnection"];
|
|
2081
2069
|
context: {
|
|
2082
2070
|
meta: {
|
|
2083
2071
|
findFirstAuthentication: {
|
|
@@ -2087,7 +2075,7 @@ interface FindFirstAuthenticationPluginProvides {
|
|
|
2087
2075
|
};
|
|
2088
2076
|
}
|
|
2089
2077
|
interface FindUniqueAuthenticationPluginProvides {
|
|
2090
|
-
findUniqueAuthentication:
|
|
2078
|
+
findUniqueAuthentication: FindUniqueConnectionPluginProvides["findUniqueConnection"];
|
|
2091
2079
|
context: {
|
|
2092
2080
|
meta: {
|
|
2093
2081
|
findUniqueAuthentication: {
|
|
@@ -2120,15 +2108,17 @@ interface ListClientCredentialsPluginProvides {
|
|
|
2120
2108
|
};
|
|
2121
2109
|
};
|
|
2122
2110
|
}
|
|
2123
|
-
declare const listClientCredentialsPlugin: Plugin<{
|
|
2124
|
-
|
|
2125
|
-
|
|
2111
|
+
declare const listClientCredentialsPlugin: Plugin<{
|
|
2112
|
+
context: {
|
|
2113
|
+
api: ApiClient;
|
|
2114
|
+
};
|
|
2115
|
+
} & EventEmissionProvides, ListClientCredentialsPluginProvides>;
|
|
2126
2116
|
|
|
2127
2117
|
declare const CreateClientCredentialsSchema: z.ZodObject<{
|
|
2128
2118
|
name: z.ZodString;
|
|
2129
2119
|
allowedScopes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
2130
|
-
credentials: "credentials";
|
|
2131
2120
|
external: "external";
|
|
2121
|
+
credentials: "credentials";
|
|
2132
2122
|
}>>>;
|
|
2133
2123
|
}, z.core.$strip>;
|
|
2134
2124
|
type CreateClientCredentialsOptions = z.infer<typeof CreateClientCredentialsSchema> & FunctionOptions;
|
|
@@ -2146,9 +2136,11 @@ interface CreateClientCredentialsPluginProvides {
|
|
|
2146
2136
|
};
|
|
2147
2137
|
};
|
|
2148
2138
|
}
|
|
2149
|
-
declare const createClientCredentialsPlugin: Plugin<{
|
|
2150
|
-
|
|
2151
|
-
|
|
2139
|
+
declare const createClientCredentialsPlugin: Plugin<{
|
|
2140
|
+
context: {
|
|
2141
|
+
api: ApiClient;
|
|
2142
|
+
};
|
|
2143
|
+
} & EventEmissionProvides, CreateClientCredentialsPluginProvides>;
|
|
2152
2144
|
|
|
2153
2145
|
declare const DeleteClientCredentialsSchema: z.ZodObject<{
|
|
2154
2146
|
clientId: z.ZodString;
|
|
@@ -2168,9 +2160,11 @@ interface DeleteClientCredentialsPluginProvides {
|
|
|
2168
2160
|
};
|
|
2169
2161
|
};
|
|
2170
2162
|
}
|
|
2171
|
-
declare const deleteClientCredentialsPlugin: Plugin<{
|
|
2172
|
-
|
|
2173
|
-
|
|
2163
|
+
declare const deleteClientCredentialsPlugin: Plugin<{
|
|
2164
|
+
context: {
|
|
2165
|
+
api: ApiClient;
|
|
2166
|
+
};
|
|
2167
|
+
} & EventEmissionProvides, DeleteClientCredentialsPluginProvides>;
|
|
2174
2168
|
|
|
2175
2169
|
interface ListInputFieldsPluginProvides {
|
|
2176
2170
|
listInputFields: (options?: ListInputFieldsOptions) => Promise<{
|
|
@@ -2190,12 +2184,12 @@ interface ListInputFieldsPluginProvides {
|
|
|
2190
2184
|
};
|
|
2191
2185
|
};
|
|
2192
2186
|
}
|
|
2193
|
-
declare const listInputFieldsPlugin: Plugin<
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
} &
|
|
2187
|
+
declare const listInputFieldsPlugin: Plugin<GetAppPluginProvides & GetActionPluginProvides & {
|
|
2188
|
+
context: {
|
|
2189
|
+
api: ApiClient;
|
|
2190
|
+
getVersionedImplementationId: GetVersionedImplementationId;
|
|
2191
|
+
} & ConnectionsPluginProvides["context"];
|
|
2192
|
+
} & EventEmissionProvides, // requires getApp and getAction in SDK, api, getVersionedImplementationId, eventEmission, and resolveConnection in context
|
|
2199
2193
|
ListInputFieldsPluginProvides>;
|
|
2200
2194
|
|
|
2201
2195
|
declare const GetInputFieldsSchemaSchema: z.ZodObject<{
|
|
@@ -2363,8 +2357,7 @@ interface RequestPluginProvides {
|
|
|
2363
2357
|
* @deprecated Use `sdk.fetch(url, init?)` instead. This plugin now delegates to the fetch plugin
|
|
2364
2358
|
* and is kept only for backward compatibility. It is hidden from the CLI/MCP registries.
|
|
2365
2359
|
*/
|
|
2366
|
-
declare const requestPlugin: Plugin<
|
|
2367
|
-
EventEmissionContext, // requires eventEmission context for telemetry
|
|
2360
|
+
declare const requestPlugin: Plugin<FetchPluginProvides & EventEmissionProvides, // requires fetch in SDK, eventEmission context for telemetry
|
|
2368
2361
|
RequestPluginProvides>;
|
|
2369
2362
|
|
|
2370
2363
|
declare const TableItemSchema: z.ZodObject<{
|
|
@@ -2420,7 +2413,9 @@ interface ListTablesPluginProvides {
|
|
|
2420
2413
|
};
|
|
2421
2414
|
};
|
|
2422
2415
|
}
|
|
2423
|
-
declare const listTablesPlugin: Plugin<
|
|
2416
|
+
declare const listTablesPlugin: Plugin<ApiPluginProvides & EventEmissionProvides & {
|
|
2417
|
+
context: CapabilitiesContext;
|
|
2418
|
+
}, ListTablesPluginProvides>;
|
|
2424
2419
|
|
|
2425
2420
|
declare const GetTableOptionsSchema: z.ZodObject<{
|
|
2426
2421
|
table: z.ZodString & {
|
|
@@ -2447,9 +2442,7 @@ interface GetTablePluginProvides {
|
|
|
2447
2442
|
};
|
|
2448
2443
|
};
|
|
2449
2444
|
}
|
|
2450
|
-
declare const getTablePlugin: Plugin<
|
|
2451
|
-
api: ApiClient;
|
|
2452
|
-
} & EventEmissionContext, GetTablePluginProvides>;
|
|
2445
|
+
declare const getTablePlugin: Plugin<ApiPluginProvides & EventEmissionProvides, GetTablePluginProvides>;
|
|
2453
2446
|
|
|
2454
2447
|
declare const DeleteTableOptionsSchema: z.ZodObject<{
|
|
2455
2448
|
table: z.ZodString & {
|
|
@@ -2477,9 +2470,9 @@ interface DeleteTablePluginProvides {
|
|
|
2477
2470
|
};
|
|
2478
2471
|
};
|
|
2479
2472
|
}
|
|
2480
|
-
declare const deleteTablePlugin: Plugin<
|
|
2481
|
-
|
|
2482
|
-
}
|
|
2473
|
+
declare const deleteTablePlugin: Plugin<ApiPluginProvides & EventEmissionProvides & {
|
|
2474
|
+
context: CapabilitiesContext;
|
|
2475
|
+
}, DeleteTablePluginProvides>;
|
|
2483
2476
|
|
|
2484
2477
|
declare const CreateTableOptionsSchema: z.ZodObject<{
|
|
2485
2478
|
name: z.ZodString;
|
|
@@ -2500,9 +2493,7 @@ interface CreateTablePluginProvides {
|
|
|
2500
2493
|
};
|
|
2501
2494
|
};
|
|
2502
2495
|
}
|
|
2503
|
-
declare const createTablePlugin: Plugin<
|
|
2504
|
-
api: ApiClient;
|
|
2505
|
-
} & EventEmissionContext, CreateTablePluginProvides>;
|
|
2496
|
+
declare const createTablePlugin: Plugin<ApiPluginProvides & EventEmissionProvides, CreateTablePluginProvides>;
|
|
2506
2497
|
|
|
2507
2498
|
declare const FieldItemSchema: z.ZodObject<{
|
|
2508
2499
|
id: z.ZodString;
|
|
@@ -2577,9 +2568,7 @@ interface ListTableFieldsPluginProvides {
|
|
|
2577
2568
|
};
|
|
2578
2569
|
};
|
|
2579
2570
|
}
|
|
2580
|
-
declare const listTableFieldsPlugin: Plugin<
|
|
2581
|
-
api: ApiClient;
|
|
2582
|
-
} & EventEmissionContext, ListTableFieldsPluginProvides>;
|
|
2571
|
+
declare const listTableFieldsPlugin: Plugin<ApiPluginProvides & EventEmissionProvides, ListTableFieldsPluginProvides>;
|
|
2583
2572
|
|
|
2584
2573
|
declare const CreateTableFieldsOptionsSchema: z.ZodObject<{
|
|
2585
2574
|
table: z.ZodString & {
|
|
@@ -2681,9 +2670,7 @@ interface CreateTableFieldsPluginProvides {
|
|
|
2681
2670
|
};
|
|
2682
2671
|
};
|
|
2683
2672
|
}
|
|
2684
|
-
declare const createTableFieldsPlugin: Plugin<
|
|
2685
|
-
api: ApiClient;
|
|
2686
|
-
} & EventEmissionContext, CreateTableFieldsPluginProvides>;
|
|
2673
|
+
declare const createTableFieldsPlugin: Plugin<ApiPluginProvides & EventEmissionProvides, CreateTableFieldsPluginProvides>;
|
|
2687
2674
|
|
|
2688
2675
|
declare const DeleteTableFieldsOptionsSchema: z.ZodObject<{
|
|
2689
2676
|
table: z.ZodString & {
|
|
@@ -2715,9 +2702,7 @@ interface DeleteTableFieldsPluginProvides {
|
|
|
2715
2702
|
};
|
|
2716
2703
|
};
|
|
2717
2704
|
}
|
|
2718
|
-
declare const deleteTableFieldsPlugin: Plugin<
|
|
2719
|
-
api: ApiClient;
|
|
2720
|
-
} & EventEmissionContext, DeleteTableFieldsPluginProvides>;
|
|
2705
|
+
declare const deleteTableFieldsPlugin: Plugin<ApiPluginProvides & EventEmissionProvides, DeleteTableFieldsPluginProvides>;
|
|
2721
2706
|
|
|
2722
2707
|
declare const RecordItemSchema: z.ZodObject<{
|
|
2723
2708
|
id: z.ZodString;
|
|
@@ -2766,9 +2751,7 @@ interface GetTableRecordPluginProvides {
|
|
|
2766
2751
|
};
|
|
2767
2752
|
};
|
|
2768
2753
|
}
|
|
2769
|
-
declare const getTableRecordPlugin: Plugin<
|
|
2770
|
-
api: ApiClient;
|
|
2771
|
-
} & EventEmissionContext, GetTableRecordPluginProvides>;
|
|
2754
|
+
declare const getTableRecordPlugin: Plugin<ApiPluginProvides & EventEmissionProvides, GetTableRecordPluginProvides>;
|
|
2772
2755
|
|
|
2773
2756
|
declare const ListTableRecordsOptionsSchema: z.ZodObject<{
|
|
2774
2757
|
table: z.ZodString & {
|
|
@@ -2869,7 +2852,7 @@ interface ListTableRecordsPluginProvides {
|
|
|
2869
2852
|
};
|
|
2870
2853
|
};
|
|
2871
2854
|
}
|
|
2872
|
-
declare const listTableRecordsPlugin: Plugin<
|
|
2855
|
+
declare const listTableRecordsPlugin: Plugin<ApiPluginProvides & EventEmissionProvides, ListTableRecordsPluginProvides>;
|
|
2873
2856
|
|
|
2874
2857
|
declare const CreateTableRecordsOptionsSchema: z.ZodObject<{
|
|
2875
2858
|
table: z.ZodString & {
|
|
@@ -2911,9 +2894,7 @@ interface CreateTableRecordsPluginProvides {
|
|
|
2911
2894
|
};
|
|
2912
2895
|
};
|
|
2913
2896
|
}
|
|
2914
|
-
declare const createTableRecordsPlugin: Plugin<
|
|
2915
|
-
api: ApiClient;
|
|
2916
|
-
} & EventEmissionContext, CreateTableRecordsPluginProvides>;
|
|
2897
|
+
declare const createTableRecordsPlugin: Plugin<ApiPluginProvides & EventEmissionProvides, CreateTableRecordsPluginProvides>;
|
|
2917
2898
|
|
|
2918
2899
|
declare const DeleteTableRecordsOptionsSchema: z.ZodObject<{
|
|
2919
2900
|
table: z.ZodString & {
|
|
@@ -2945,9 +2926,7 @@ interface DeleteTableRecordsPluginProvides {
|
|
|
2945
2926
|
};
|
|
2946
2927
|
};
|
|
2947
2928
|
}
|
|
2948
|
-
declare const deleteTableRecordsPlugin: Plugin<
|
|
2949
|
-
api: ApiClient;
|
|
2950
|
-
} & EventEmissionContext, DeleteTableRecordsPluginProvides>;
|
|
2929
|
+
declare const deleteTableRecordsPlugin: Plugin<ApiPluginProvides & EventEmissionProvides, DeleteTableRecordsPluginProvides>;
|
|
2951
2930
|
|
|
2952
2931
|
declare const UpdateTableRecordsOptionsSchema: z.ZodObject<{
|
|
2953
2932
|
table: z.ZodString & {
|
|
@@ -2991,9 +2970,7 @@ interface UpdateTableRecordsPluginProvides {
|
|
|
2991
2970
|
};
|
|
2992
2971
|
};
|
|
2993
2972
|
}
|
|
2994
|
-
declare const updateTableRecordsPlugin: Plugin<
|
|
2995
|
-
api: ApiClient;
|
|
2996
|
-
} & EventEmissionContext, UpdateTableRecordsPluginProvides>;
|
|
2973
|
+
declare const updateTableRecordsPlugin: Plugin<ApiPluginProvides & EventEmissionProvides, UpdateTableRecordsPluginProvides>;
|
|
2997
2974
|
|
|
2998
2975
|
/**
|
|
2999
2976
|
* SDK-related types and interfaces
|
|
@@ -3100,9 +3077,9 @@ interface FunctionDeprecation {
|
|
|
3100
3077
|
/** User-facing deprecation message for why/how to migrate */
|
|
3101
3078
|
message: string;
|
|
3102
3079
|
}
|
|
3103
|
-
|
|
3080
|
+
type ZapierSdk = RegistryPluginProvides & FetchPluginProvides & AppsPluginProvides & ListAppsPluginProvides & ManifestPluginProvides & GetAppPluginProvides & ListActionsPluginProvides & GetActionPluginProvides & RunActionPluginProvides & ListConnectionsPluginProvides & GetConnectionPluginProvides & FindFirstConnectionPluginProvides & FindUniqueConnectionPluginProvides & ListAuthenticationsPluginProvides & GetAuthenticationPluginProvides & FindFirstAuthenticationPluginProvides & FindUniqueAuthenticationPluginProvides & ListClientCredentialsPluginProvides & CreateClientCredentialsPluginProvides & DeleteClientCredentialsPluginProvides & ListInputFieldsPluginProvides & GetInputFieldsSchemaPluginProvides & ListInputFieldChoicesPluginProvides & RequestPluginProvides & GetProfilePluginProvides & EventEmissionProvides & ApiPluginProvides & ListTablesPluginProvides & GetTablePluginProvides & DeleteTablePluginProvides & CreateTablePluginProvides & ListTableFieldsPluginProvides & CreateTableFieldsPluginProvides & DeleteTableFieldsPluginProvides & GetTableRecordPluginProvides & ListTableRecordsPluginProvides & CreateTableRecordsPluginProvides & DeleteTableRecordsPluginProvides & UpdateTableRecordsPluginProvides & {
|
|
3104
3081
|
apps: ActionProxy & ZapierSdkApps;
|
|
3105
|
-
}
|
|
3082
|
+
};
|
|
3106
3083
|
|
|
3107
3084
|
interface FormattedItem {
|
|
3108
3085
|
title: string;
|
|
@@ -3284,8 +3261,8 @@ type ConnectionItem$1 = z.infer<typeof ConnectionItemSchema>;
|
|
|
3284
3261
|
|
|
3285
3262
|
declare const ActionItemSchema: z.ZodObject<{
|
|
3286
3263
|
description: z.ZodString;
|
|
3287
|
-
id: z.ZodOptional<z.ZodString>;
|
|
3288
3264
|
key: z.ZodString;
|
|
3265
|
+
id: z.ZodOptional<z.ZodString>;
|
|
3289
3266
|
is_important: z.ZodOptional<z.ZodBoolean>;
|
|
3290
3267
|
is_hidden: z.ZodOptional<z.ZodBoolean>;
|
|
3291
3268
|
app_key: z.ZodString;
|
|
@@ -3809,264 +3786,37 @@ declare const ZAPIER_MAX_NETWORK_RETRY_DELAY_MS: number;
|
|
|
3809
3786
|
|
|
3810
3787
|
interface ZapierSdkOptions extends BaseSdkOptions {
|
|
3811
3788
|
}
|
|
3812
|
-
declare function
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
meta: Record<string, PluginMeta>;
|
|
3816
|
-
}>(options?: ZapierSdkOptions, initialSdk?: TCurrentSdk, initialContext?: TCurrentContext): TCurrentSdk & {
|
|
3817
|
-
getContext: () => TCurrentContext;
|
|
3818
|
-
addPlugin<TRequiresContext, TProvides extends PluginProvides>(plugin: Plugin<TCurrentSdk & {
|
|
3819
|
-
getContext(): TCurrentContext;
|
|
3820
|
-
}, TRequiresContext, TProvides>, addPluginOptions?: Record<string, unknown>): Sdk<TCurrentSdk & ExtractSdkProperties<TProvides>, TCurrentContext & NonNullable<ExtractContextProperties<TProvides>>>;
|
|
3821
|
-
};
|
|
3822
|
-
declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk<ExtractSdkProperties<EventEmissionProvides> & ExtractSdkProperties<ApiPluginProvides> & ExtractSdkProperties<ManifestPluginProvides> & ExtractSdkProperties<CapabilitiesPluginProvides> & ExtractSdkProperties<ConnectionsPluginProvides> & ExtractSdkProperties<ListAppsPluginProvides> & ExtractSdkProperties<GetAppPluginProvides> & ExtractSdkProperties<ListActionsPluginProvides> & ExtractSdkProperties<GetActionPluginProvides> & ExtractSdkProperties<ListInputFieldsPluginProvides> & ExtractSdkProperties<GetInputFieldsSchemaPluginProvides> & ExtractSdkProperties<ListInputFieldChoicesPluginProvides> & ExtractSdkProperties<RunActionPluginProvides> & ExtractSdkProperties<ListConnectionsPluginProvides> & ExtractSdkProperties<GetConnectionPluginProvides> & ExtractSdkProperties<FindFirstConnectionPluginProvides> & ExtractSdkProperties<FindUniqueConnectionPluginProvides> & ExtractSdkProperties<ListAuthenticationsPluginProvides> & ExtractSdkProperties<GetAuthenticationPluginProvides> & ExtractSdkProperties<FindFirstAuthenticationPluginProvides> & ExtractSdkProperties<FindUniqueAuthenticationPluginProvides> & ExtractSdkProperties<ListClientCredentialsPluginProvides> & ExtractSdkProperties<CreateClientCredentialsPluginProvides> & ExtractSdkProperties<DeleteClientCredentialsPluginProvides> & ExtractSdkProperties<FetchPluginProvides> & ExtractSdkProperties<RequestPluginProvides> & ExtractSdkProperties<ListTablesPluginProvides> & ExtractSdkProperties<GetTablePluginProvides> & ExtractSdkProperties<DeleteTablePluginProvides> & ExtractSdkProperties<CreateTablePluginProvides> & ExtractSdkProperties<ListTableFieldsPluginProvides> & ExtractSdkProperties<CreateTableFieldsPluginProvides> & ExtractSdkProperties<DeleteTableFieldsPluginProvides> & ExtractSdkProperties<GetTableRecordPluginProvides> & ExtractSdkProperties<ListTableRecordsPluginProvides> & ExtractSdkProperties<CreateTableRecordsPluginProvides> & ExtractSdkProperties<DeleteTableRecordsPluginProvides> & ExtractSdkProperties<UpdateTableRecordsPluginProvides> & ExtractSdkProperties<AppsPluginProvides> & ExtractSdkProperties<GetProfilePluginProvides>, {
|
|
3823
|
-
meta: Record<string, PluginMeta>;
|
|
3824
|
-
} & EventEmissionContext & {
|
|
3825
|
-
api: ApiClient;
|
|
3826
|
-
resolveCredentials: () => Promise<ResolvedCredentials | undefined>;
|
|
3827
|
-
} & {
|
|
3828
|
-
getResolvedManifest: () => Promise<Manifest | null>;
|
|
3829
|
-
getVersionedImplementationId: GetVersionedImplementationId;
|
|
3830
|
-
resolveAppKeys: ResolveAppKeys;
|
|
3831
|
-
getManifestConnections: () => Promise<ConnectionsMap | null>;
|
|
3832
|
-
updateManifestEntry: (options: UpdateManifestEntryOptions) => Promise<UpdateManifestEntryResult>;
|
|
3833
|
-
addActionEntry: (options: AddActionEntryOptions) => Promise<AddActionEntryResult>;
|
|
3834
|
-
findActionEntry: (options: {
|
|
3835
|
-
name: string;
|
|
3836
|
-
manifest: Manifest;
|
|
3837
|
-
}) => ActionEntry | null;
|
|
3838
|
-
listActionEntries: (options?: {
|
|
3839
|
-
configPath?: string;
|
|
3840
|
-
}) => Promise<Array<[string, ActionEntry]>>;
|
|
3841
|
-
deleteActionEntry: (options: {
|
|
3842
|
-
name: string;
|
|
3843
|
-
configPath?: string;
|
|
3844
|
-
skipWrite?: boolean;
|
|
3845
|
-
}) => Promise<Manifest>;
|
|
3846
|
-
hasActionEntry: (options: {
|
|
3847
|
-
name: string;
|
|
3848
|
-
manifest: Manifest;
|
|
3849
|
-
}) => boolean;
|
|
3850
|
-
findManifestEntry: (options: {
|
|
3851
|
-
appKey: string;
|
|
3852
|
-
manifest: Manifest;
|
|
3853
|
-
}) => [string, ManifestEntry] | null;
|
|
3854
|
-
readManifestFromFile: (filePath: string) => Promise<Manifest | null>;
|
|
3855
|
-
} & CapabilitiesContext & {
|
|
3856
|
-
resolveConnection: (name: string) => Promise<ConnectionEntry | undefined>;
|
|
3857
|
-
getConnectionsMap: () => Promise<ConnectionsMap | null>;
|
|
3858
|
-
} & {
|
|
3859
|
-
meta: {
|
|
3860
|
-
listApps: {
|
|
3861
|
-
inputSchema: typeof ListAppsSchema;
|
|
3862
|
-
};
|
|
3863
|
-
};
|
|
3864
|
-
} & {
|
|
3865
|
-
meta: {
|
|
3866
|
-
getApp: {
|
|
3867
|
-
inputSchema: typeof GetAppSchema;
|
|
3868
|
-
};
|
|
3869
|
-
};
|
|
3870
|
-
} & {
|
|
3871
|
-
meta: {
|
|
3872
|
-
listActions: {
|
|
3873
|
-
inputSchema: typeof ListActionsSchema;
|
|
3874
|
-
};
|
|
3875
|
-
};
|
|
3876
|
-
} & {
|
|
3877
|
-
meta: {
|
|
3878
|
-
getAction: {
|
|
3879
|
-
inputSchema: typeof GetActionSchema;
|
|
3880
|
-
};
|
|
3881
|
-
};
|
|
3882
|
-
} & {
|
|
3883
|
-
meta: {
|
|
3884
|
-
listInputFields: {
|
|
3885
|
-
inputSchema: typeof ListInputFieldsSchema;
|
|
3886
|
-
};
|
|
3887
|
-
};
|
|
3888
|
-
} & {
|
|
3889
|
-
meta: {
|
|
3890
|
-
getInputFieldsSchema: {
|
|
3891
|
-
inputSchema: typeof GetInputFieldsSchemaSchema;
|
|
3892
|
-
};
|
|
3893
|
-
};
|
|
3894
|
-
} & {
|
|
3895
|
-
meta: {
|
|
3896
|
-
listInputFieldChoices: {
|
|
3897
|
-
inputSchema: typeof ListInputFieldChoicesSchema;
|
|
3898
|
-
};
|
|
3899
|
-
};
|
|
3900
|
-
} & {
|
|
3901
|
-
meta: {
|
|
3902
|
-
runAction: {
|
|
3903
|
-
inputSchema: typeof RunActionSchema;
|
|
3904
|
-
};
|
|
3905
|
-
};
|
|
3906
|
-
} & {
|
|
3907
|
-
meta: {
|
|
3908
|
-
listConnections: {
|
|
3909
|
-
inputSchema: typeof ListConnectionsQuerySchema;
|
|
3910
|
-
};
|
|
3911
|
-
};
|
|
3912
|
-
} & {
|
|
3913
|
-
meta: {
|
|
3914
|
-
getConnection: {
|
|
3915
|
-
inputSchema: typeof GetConnectionParamSchema;
|
|
3916
|
-
};
|
|
3917
|
-
};
|
|
3918
|
-
} & {
|
|
3919
|
-
meta: {
|
|
3920
|
-
findFirstConnection: {
|
|
3921
|
-
inputSchema: typeof FindFirstConnectionSchema;
|
|
3922
|
-
};
|
|
3923
|
-
};
|
|
3924
|
-
} & {
|
|
3925
|
-
meta: {
|
|
3926
|
-
findUniqueConnection: {
|
|
3927
|
-
inputSchema: typeof FindUniqueConnectionSchema;
|
|
3928
|
-
};
|
|
3929
|
-
};
|
|
3930
|
-
} & {
|
|
3931
|
-
meta: {
|
|
3932
|
-
listAuthentications: {
|
|
3933
|
-
inputSchema: typeof ListConnectionsQuerySchema;
|
|
3934
|
-
};
|
|
3935
|
-
};
|
|
3936
|
-
} & {
|
|
3937
|
-
meta: {
|
|
3938
|
-
getAuthentication: {
|
|
3939
|
-
inputSchema: typeof GetConnectionParamSchema;
|
|
3940
|
-
};
|
|
3941
|
-
};
|
|
3942
|
-
} & {
|
|
3943
|
-
meta: {
|
|
3944
|
-
findFirstAuthentication: {
|
|
3945
|
-
inputSchema: typeof FindFirstConnectionSchema;
|
|
3946
|
-
};
|
|
3947
|
-
};
|
|
3948
|
-
} & {
|
|
3949
|
-
meta: {
|
|
3950
|
-
findUniqueAuthentication: {
|
|
3951
|
-
inputSchema: typeof FindUniqueConnectionSchema;
|
|
3952
|
-
};
|
|
3953
|
-
};
|
|
3954
|
-
} & {
|
|
3955
|
-
meta: {
|
|
3956
|
-
listClientCredentials: {
|
|
3957
|
-
inputSchema: typeof ListClientCredentialsQuerySchema;
|
|
3958
|
-
};
|
|
3959
|
-
};
|
|
3960
|
-
} & {
|
|
3961
|
-
meta: {
|
|
3962
|
-
createClientCredentials: {
|
|
3963
|
-
inputSchema: typeof CreateClientCredentialsSchema;
|
|
3964
|
-
};
|
|
3965
|
-
};
|
|
3966
|
-
} & {
|
|
3967
|
-
meta: {
|
|
3968
|
-
deleteClientCredentials: {
|
|
3969
|
-
inputSchema: typeof DeleteClientCredentialsSchema;
|
|
3970
|
-
};
|
|
3971
|
-
};
|
|
3972
|
-
} & {
|
|
3973
|
-
meta: {
|
|
3974
|
-
fetch: {
|
|
3975
|
-
description: string;
|
|
3976
|
-
packages: string[];
|
|
3977
|
-
categories: string[];
|
|
3978
|
-
returnType: string;
|
|
3979
|
-
inputParameters: Array<{
|
|
3980
|
-
name: string;
|
|
3981
|
-
schema: zod.ZodType;
|
|
3982
|
-
}>;
|
|
3983
|
-
};
|
|
3984
|
-
};
|
|
3985
|
-
} & {
|
|
3986
|
-
meta: {
|
|
3987
|
-
request: {
|
|
3988
|
-
inputSchema: typeof RelayRequestSchema;
|
|
3989
|
-
};
|
|
3990
|
-
};
|
|
3991
|
-
} & {
|
|
3992
|
-
meta: {
|
|
3993
|
-
listTables: {
|
|
3994
|
-
inputSchema: typeof ListTablesOptionsSchema;
|
|
3995
|
-
};
|
|
3996
|
-
};
|
|
3997
|
-
} & {
|
|
3998
|
-
meta: {
|
|
3999
|
-
getTable: {
|
|
4000
|
-
inputSchema: typeof GetTableOptionsSchema;
|
|
4001
|
-
};
|
|
4002
|
-
};
|
|
4003
|
-
} & {
|
|
4004
|
-
meta: {
|
|
4005
|
-
deleteTable: {
|
|
4006
|
-
inputSchema: typeof DeleteTableOptionsSchema;
|
|
4007
|
-
};
|
|
4008
|
-
};
|
|
4009
|
-
} & {
|
|
4010
|
-
meta: {
|
|
4011
|
-
createTable: {
|
|
4012
|
-
inputSchema: typeof CreateTableOptionsSchema;
|
|
4013
|
-
};
|
|
4014
|
-
};
|
|
4015
|
-
} & {
|
|
4016
|
-
meta: {
|
|
4017
|
-
listTableFields: {
|
|
4018
|
-
inputSchema: typeof ListTableFieldsOptionsSchema;
|
|
4019
|
-
};
|
|
4020
|
-
};
|
|
4021
|
-
} & {
|
|
4022
|
-
meta: {
|
|
4023
|
-
createTableFields: {
|
|
4024
|
-
inputSchema: typeof CreateTableFieldsOptionsSchema;
|
|
4025
|
-
};
|
|
4026
|
-
};
|
|
4027
|
-
} & {
|
|
4028
|
-
meta: {
|
|
4029
|
-
deleteTableFields: {
|
|
4030
|
-
inputSchema: typeof DeleteTableFieldsOptionsSchema;
|
|
4031
|
-
};
|
|
4032
|
-
};
|
|
4033
|
-
} & {
|
|
4034
|
-
meta: {
|
|
4035
|
-
getTableRecord: {
|
|
4036
|
-
inputSchema: typeof GetTableRecordOptionsSchema;
|
|
4037
|
-
};
|
|
4038
|
-
};
|
|
4039
|
-
} & {
|
|
4040
|
-
meta: {
|
|
4041
|
-
listTableRecords: {
|
|
4042
|
-
inputSchema: typeof ListTableRecordsOptionsSchema;
|
|
4043
|
-
};
|
|
4044
|
-
};
|
|
4045
|
-
} & {
|
|
4046
|
-
meta: {
|
|
4047
|
-
createTableRecords: {
|
|
4048
|
-
inputSchema: typeof CreateTableRecordsOptionsSchema;
|
|
4049
|
-
};
|
|
3789
|
+
declare function createOptionsPlugin(options: ZapierSdkOptions): () => {
|
|
3790
|
+
context: {
|
|
3791
|
+
options: ZapierSdkOptions;
|
|
4050
3792
|
};
|
|
4051
|
-
}
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
3793
|
+
};
|
|
3794
|
+
declare function createSdk(): {
|
|
3795
|
+
readonly context: Readonly<{
|
|
3796
|
+
meta: Record<string, PluginMeta>;
|
|
3797
|
+
}>;
|
|
3798
|
+
getContext: () => Readonly<{
|
|
3799
|
+
meta: Record<string, PluginMeta>;
|
|
3800
|
+
}>;
|
|
3801
|
+
addPlugin<TProvides extends PluginProvides>(plugin: Plugin<{
|
|
3802
|
+
context: {
|
|
3803
|
+
meta: Record<string, PluginMeta>;
|
|
4055
3804
|
};
|
|
4056
|
-
}
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
updateTableRecords: {
|
|
4060
|
-
inputSchema: typeof UpdateTableRecordsOptionsSchema;
|
|
3805
|
+
}, TProvides>): WithAddPlugin<{
|
|
3806
|
+
context: {
|
|
3807
|
+
meta: Record<string, PluginMeta>;
|
|
4061
3808
|
};
|
|
3809
|
+
} & TProvides>;
|
|
3810
|
+
};
|
|
3811
|
+
declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): WithAddPlugin<{
|
|
3812
|
+
context: {
|
|
3813
|
+
meta: Record<string, PluginMeta>;
|
|
4062
3814
|
};
|
|
4063
3815
|
} & {
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
inputSchema: typeof GetProfileSchema;
|
|
4067
|
-
};
|
|
3816
|
+
context: {
|
|
3817
|
+
options: ZapierSdkOptions;
|
|
4068
3818
|
};
|
|
4069
|
-
}>;
|
|
3819
|
+
} & EventEmissionProvides & ApiPluginProvides & ManifestPluginProvides & CapabilitiesPluginProvides & ConnectionsPluginProvides & ListAppsPluginProvides & GetAppPluginProvides & ListActionsPluginProvides & GetActionPluginProvides & ListInputFieldsPluginProvides & GetInputFieldsSchemaPluginProvides & ListInputFieldChoicesPluginProvides & RunActionPluginProvides & ListConnectionsPluginProvides & GetConnectionPluginProvides & FindFirstConnectionPluginProvides & FindUniqueConnectionPluginProvides & ListAuthenticationsPluginProvides & GetAuthenticationPluginProvides & FindFirstAuthenticationPluginProvides & FindUniqueAuthenticationPluginProvides & ListClientCredentialsPluginProvides & CreateClientCredentialsPluginProvides & DeleteClientCredentialsPluginProvides & FetchPluginProvides & RequestPluginProvides & ListTablesPluginProvides & GetTablePluginProvides & DeleteTablePluginProvides & CreateTablePluginProvides & ListTableFieldsPluginProvides & CreateTableFieldsPluginProvides & DeleteTableFieldsPluginProvides & GetTableRecordPluginProvides & ListTableRecordsPluginProvides & CreateTableRecordsPluginProvides & DeleteTableRecordsPluginProvides & UpdateTableRecordsPluginProvides & AppsPluginProvides & GetProfilePluginProvides>;
|
|
4070
3820
|
declare function createZapierSdk(options?: ZapierSdkOptions): ZapierSdk;
|
|
4071
3821
|
|
|
4072
|
-
export { type Action, type ActionEntry, type ActionExecutionOptions, type ActionExecutionResult, type ActionField, type ActionFieldChoice, type ActionItem$1 as ActionItem, type ActionKeyProperty, ActionKeyPropertySchema, type ActionProperty, ActionPropertySchema, type ActionTimeoutMsProperty, ActionTimeoutMsPropertySchema, type ActionTypeProperty, ActionTypePropertySchema, type AddActionEntryOptions, type AddActionEntryResult, type ApiError, type ApiEvent, type ApiPluginOptions, type ApiPluginProvides, type App, type AppFactoryInput, type AppItem, type AppKeyProperty, AppKeyPropertySchema, type AppProperty, AppPropertySchema, type ApplicationLifecycleEventData, type AppsPluginProvides, type AppsProperty, AppsPropertySchema, type ArrayResolver, type AuthEvent, type AuthenticationIdProperty, AuthenticationIdPropertySchema, type BaseEvent, BaseSdkOptionsSchema, type BatchOptions, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, type Choice, type ClientCredentialsObject, ClientCredentialsObjectSchema, type Connection, type ConnectionEntry, ConnectionEntrySchema, type ConnectionIdProperty, ConnectionIdPropertySchema, type ConnectionItem, type ConnectionProperty, ConnectionPropertySchema, type ConnectionsMap, ConnectionsMapSchema, type ConnectionsPluginProvides, type ConnectionsProperty, ConnectionsPropertySchema, type ConnectionsResponse, type CreateClientCredentialsPluginProvides, type CreateTableFieldsPluginProvides, type CreateTablePluginProvides, type CreateTableRecordsPluginProvides, type Credentials, type CredentialsFunction, CredentialsFunctionSchema, type CredentialsObject, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_PAGE_SIZE, type DebugProperty, DebugPropertySchema, type DeleteClientCredentialsPluginProvides, type DeleteTableFieldsPluginProvides, type DeleteTablePluginProvides, type DeleteTableRecordsPluginProvides, type DynamicResolver, type EnhancedErrorEventData, type ErrorOptions, type EventCallback, type EventContext, type EventEmissionContext, type FetchPluginProvides, type Field, type FieldsProperty, FieldsPropertySchema, type FieldsResolver, type FieldsetItem, type FindFirstAuthenticationPluginProvides, type FindFirstConnectionPluginProvides, type FindUniqueAuthenticationPluginProvides, type FindUniqueConnectionPluginProvides, type FormatMetadata, type FormattedItem, type FunctionDeprecation, type FunctionOptions, type FunctionRegistryEntry, type GetActionPluginProvides, type GetAppPluginProvides, type GetAuthenticationPluginProvides, type GetConnectionPluginProvides, type
|
|
3822
|
+
export { type Action, type ActionEntry, type ActionExecutionOptions, type ActionExecutionResult, type ActionField, type ActionFieldChoice, type ActionItem$1 as ActionItem, type ActionKeyProperty, ActionKeyPropertySchema, type ActionProperty, ActionPropertySchema, type ActionTimeoutMsProperty, ActionTimeoutMsPropertySchema, type ActionTypeProperty, ActionTypePropertySchema, type AddActionEntryOptions, type AddActionEntryResult, type ApiError, type ApiEvent, type ApiPluginOptions, type ApiPluginProvides, type App, type AppFactoryInput, type AppItem, type AppKeyProperty, AppKeyPropertySchema, type AppProperty, AppPropertySchema, type ApplicationLifecycleEventData, type AppsPluginProvides, type AppsProperty, AppsPropertySchema, type ArrayResolver, type AuthEvent, type AuthenticationIdProperty, AuthenticationIdPropertySchema, type BaseEvent, BaseSdkOptionsSchema, type BatchOptions, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, type Choice, type ClientCredentialsObject, ClientCredentialsObjectSchema, type Connection, type ConnectionEntry, ConnectionEntrySchema, type ConnectionIdProperty, ConnectionIdPropertySchema, type ConnectionItem, type ConnectionProperty, ConnectionPropertySchema, type ConnectionsMap, ConnectionsMapSchema, type ConnectionsPluginProvides, type ConnectionsProperty, ConnectionsPropertySchema, type ConnectionsResponse, type CreateClientCredentialsPluginProvides, type CreateTableFieldsPluginProvides, type CreateTablePluginProvides, type CreateTableRecordsPluginProvides, type Credentials, type CredentialsFunction, CredentialsFunctionSchema, type CredentialsObject, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_PAGE_SIZE, type DebugProperty, DebugPropertySchema, type DeleteClientCredentialsPluginProvides, type DeleteTableFieldsPluginProvides, type DeleteTablePluginProvides, type DeleteTableRecordsPluginProvides, type DynamicResolver, type EnhancedErrorEventData, type ErrorOptions, type EventCallback, type EventContext, type EventEmissionContext, type EventEmissionProvides, type FetchPluginProvides, type Field, type FieldsProperty, FieldsPropertySchema, type FieldsResolver, type FieldsetItem, type FindFirstAuthenticationPluginProvides, type FindFirstConnectionPluginProvides, type FindUniqueAuthenticationPluginProvides, type FindUniqueConnectionPluginProvides, type FormatMetadata, type FormattedItem, type FunctionDeprecation, type FunctionOptions, type FunctionRegistryEntry, type GetActionPluginProvides, type GetAppPluginProvides, type GetAuthenticationPluginProvides, type GetConnectionPluginProvides, type GetProfilePluginProvides, type GetTablePluginProvides, type GetTableRecordPluginProvides, type InfoFieldItem, type InputFieldItem, type InputFieldProperty, InputFieldPropertySchema, type InputsProperty, InputsPropertySchema, type LimitProperty, LimitPropertySchema, type ListActionsPluginProvides, type ListAppsPluginProvides, type ListAuthenticationsPluginProvides, type ListClientCredentialsPluginProvides, type ListConnectionsPluginProvides, type ListInputFieldsPluginProvides, type ListTableFieldsPluginProvides, type ListTableRecordsPluginProvides, type ListTablesPluginProvides, type LoadingEvent, MAX_PAGE_LIMIT, type Manifest, type ManifestEntry, type ManifestPluginOptions, type ManifestPluginProvides, type MethodCalledEvent, type MethodCalledEventData, type Need, type NeedsRequest, type NeedsResponse, type OffsetProperty, OffsetPropertySchema, type OutputFormatter, type OutputProperty, OutputPropertySchema, type PaginatedSdkFunction, type ParamsProperty, ParamsPropertySchema, type PkceCredentialsObject, PkceCredentialsObjectSchema, type Plugin, type PluginProvides, type PositionalMetadata, type RateLimitInfo, type RecordProperty, RecordPropertySchema, type RecordsProperty, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, type RequestPluginProvides, type ResolveAuthTokenOptions, type ResolveCredentialsOptions, type ResolvedCredentials, ResolvedCredentialsSchema, type Resolver, type ResolverMetadata, type RootFieldItem, type RunActionPluginProvides, type SdkEvent, type SdkPage, type StaticResolver, type TableProperty, TablePropertySchema, type TablesProperty, TablesPropertySchema, type UpdateManifestEntryOptions, type UpdateManifestEntryResult, type UpdateTableRecordsPluginProvides, type UserProfile, type UserProfileItem, type WithAddPlugin, ZAPIER_BASE_URL, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierError, type ZapierFetchInitOptions, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierResourceNotFoundError, type ZapierSdk, type ZapierSdkApps, type ZapierSdkOptions, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, createBaseEvent, createClientCredentialsPlugin, createFunction, createOptionsPlugin, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierSdk, createZapierSdkWithoutRegistry, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listInputFieldsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, updateTableRecordsPlugin };
|