@zapier/zapier-sdk 0.26.0 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/CLAUDE.md +6 -6
- package/README.md +217 -222
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/types.d.ts +3 -3
- package/dist/api/types.d.ts.map +1 -1
- package/dist/index.cjs +367 -216
- package/dist/index.d.mts +171 -91
- package/dist/index.d.ts +6 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +359 -211
- package/dist/plugins/apps/index.d.ts.map +1 -1
- package/dist/plugins/apps/index.js +20 -13
- package/dist/plugins/apps/schemas.d.ts +6 -2
- package/dist/plugins/apps/schemas.d.ts.map +1 -1
- package/dist/plugins/apps/schemas.js +7 -3
- package/dist/plugins/deprecated/authentications.d.ts +79 -0
- package/dist/plugins/deprecated/authentications.d.ts.map +1 -0
- package/dist/plugins/deprecated/authentications.js +90 -0
- package/dist/plugins/fetch/index.d.ts +4 -0
- package/dist/plugins/fetch/index.d.ts.map +1 -1
- package/dist/plugins/fetch/index.js +7 -4
- package/dist/plugins/fetch/schemas.d.ts +1 -0
- package/dist/plugins/fetch/schemas.d.ts.map +1 -1
- package/dist/plugins/fetch/schemas.js +3 -1
- package/dist/plugins/findFirstConnection/index.d.ts +21 -0
- package/dist/plugins/findFirstConnection/index.d.ts.map +1 -0
- package/dist/plugins/findFirstConnection/index.js +37 -0
- package/dist/plugins/findFirstConnection/index.test.d.ts.map +1 -0
- package/dist/plugins/{findFirstAuthentication → findFirstConnection}/index.test.js +43 -43
- package/dist/plugins/findFirstConnection/schemas.d.ts +22 -0
- package/dist/plugins/findFirstConnection/schemas.d.ts.map +1 -0
- package/dist/plugins/findFirstConnection/schemas.js +8 -0
- package/dist/plugins/findUniqueConnection/index.d.ts +21 -0
- package/dist/plugins/findUniqueConnection/index.d.ts.map +1 -0
- package/dist/plugins/findUniqueConnection/index.js +40 -0
- package/dist/plugins/findUniqueConnection/index.test.d.ts.map +1 -0
- package/dist/plugins/{findUniqueAuthentication → findUniqueConnection}/index.test.js +41 -41
- package/dist/plugins/findUniqueConnection/schemas.d.ts +22 -0
- package/dist/plugins/findUniqueConnection/schemas.d.ts.map +1 -0
- package/dist/plugins/findUniqueConnection/schemas.js +8 -0
- package/dist/plugins/getApp/index.js +2 -2
- package/dist/plugins/getConnection/index.d.ts +22 -0
- package/dist/plugins/getConnection/index.d.ts.map +1 -0
- package/dist/plugins/getConnection/index.js +35 -0
- package/dist/plugins/getConnection/index.test.d.ts.map +1 -0
- package/dist/plugins/{getAuthentication → getConnection}/index.test.js +46 -28
- package/dist/plugins/getConnection/schemas.d.ts +13 -0
- package/dist/plugins/getConnection/schemas.d.ts.map +1 -0
- package/dist/plugins/getConnection/schemas.js +8 -0
- package/dist/plugins/getInputFieldsSchema/index.d.ts.map +1 -1
- package/dist/plugins/getInputFieldsSchema/index.js +7 -4
- package/dist/plugins/getInputFieldsSchema/schemas.d.ts +1 -0
- package/dist/plugins/getInputFieldsSchema/schemas.d.ts.map +1 -1
- package/dist/plugins/getInputFieldsSchema/schemas.js +6 -2
- package/dist/plugins/listApps/schemas.js +2 -2
- package/dist/plugins/listClientCredentials/schemas.js +2 -2
- package/dist/plugins/listConnections/index.d.ts +24 -0
- package/dist/plugins/listConnections/index.d.ts.map +1 -0
- package/dist/plugins/{listAuthentications → listConnections}/index.js +28 -21
- package/dist/plugins/listConnections/index.test.d.ts.map +1 -0
- package/dist/plugins/{listAuthentications → listConnections}/index.test.js +219 -198
- package/dist/plugins/{listAuthentications → listConnections}/schemas.d.ts +11 -10
- package/dist/plugins/listConnections/schemas.d.ts.map +1 -0
- package/dist/plugins/listConnections/schemas.js +47 -0
- package/dist/plugins/listInputFieldChoices/index.d.ts.map +1 -1
- package/dist/plugins/listInputFieldChoices/index.js +8 -5
- package/dist/plugins/listInputFieldChoices/schemas.d.ts +1 -0
- package/dist/plugins/listInputFieldChoices/schemas.d.ts.map +1 -1
- package/dist/plugins/listInputFieldChoices/schemas.js +3 -1
- package/dist/plugins/listInputFields/index.d.ts.map +1 -1
- package/dist/plugins/listInputFields/index.js +7 -4
- package/dist/plugins/listInputFields/schemas.d.ts +1 -0
- package/dist/plugins/listInputFields/schemas.d.ts.map +1 -1
- package/dist/plugins/listInputFields/schemas.js +3 -1
- package/dist/plugins/manifest/schemas.d.ts +2 -0
- package/dist/plugins/manifest/schemas.d.ts.map +1 -1
- package/dist/plugins/manifest/schemas.js +3 -1
- 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.map +1 -1
- package/dist/plugins/request/index.js +5 -2
- package/dist/plugins/request/schemas.d.ts +2 -0
- package/dist/plugins/request/schemas.d.ts.map +1 -1
- package/dist/plugins/request/schemas.js +3 -1
- package/dist/plugins/runAction/index.d.ts.map +1 -1
- package/dist/plugins/runAction/index.js +12 -8
- package/dist/plugins/runAction/schemas.d.ts +1 -0
- package/dist/plugins/runAction/schemas.d.ts.map +1 -1
- package/dist/plugins/runAction/schemas.js +4 -2
- package/dist/resolvers/connectionId.d.ts +9 -0
- package/dist/resolvers/connectionId.d.ts.map +1 -0
- package/dist/resolvers/connectionId.js +42 -0
- package/dist/resolvers/index.d.ts +5 -1
- package/dist/resolvers/index.d.ts.map +1 -1
- package/dist/resolvers/index.js +6 -1
- package/dist/resolvers/inputFieldKey.d.ts +1 -1
- package/dist/resolvers/inputFieldKey.d.ts.map +1 -1
- package/dist/resolvers/inputFieldKey.js +2 -2
- package/dist/resolvers/inputs.d.ts +1 -1
- package/dist/resolvers/inputs.d.ts.map +1 -1
- package/dist/resolvers/inputs.js +4 -4
- package/dist/schemas/Connection.d.ts +29 -0
- package/dist/schemas/Connection.d.ts.map +1 -0
- package/dist/schemas/{Auth.js → Connection.js} +5 -7
- package/dist/sdk.d.ts +29 -7
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.js +12 -5
- package/dist/sdk.test.js +9 -8
- package/dist/services/implementations.d.ts +6 -6
- package/dist/services/implementations.d.ts.map +1 -1
- package/dist/services/implementations.js +10 -10
- package/dist/types/domain.d.ts +4 -4
- package/dist/types/domain.d.ts.map +1 -1
- package/dist/types/properties.d.ts +5 -1
- package/dist/types/properties.d.ts.map +1 -1
- package/dist/types/properties.js +4 -2
- package/dist/types/sdk.d.ts +12 -9
- package/dist/types/sdk.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/plugins/findFirstAuthentication/index.d.ts +0 -21
- package/dist/plugins/findFirstAuthentication/index.d.ts.map +0 -1
- package/dist/plugins/findFirstAuthentication/index.js +0 -36
- package/dist/plugins/findFirstAuthentication/index.test.d.ts.map +0 -1
- package/dist/plugins/findFirstAuthentication/schemas.d.ts +0 -21
- package/dist/plugins/findFirstAuthentication/schemas.d.ts.map +0 -1
- package/dist/plugins/findFirstAuthentication/schemas.js +0 -8
- package/dist/plugins/findUniqueAuthentication/index.d.ts +0 -21
- package/dist/plugins/findUniqueAuthentication/index.d.ts.map +0 -1
- package/dist/plugins/findUniqueAuthentication/index.js +0 -39
- package/dist/plugins/findUniqueAuthentication/index.test.d.ts.map +0 -1
- package/dist/plugins/findUniqueAuthentication/schemas.d.ts +0 -21
- package/dist/plugins/findUniqueAuthentication/schemas.d.ts.map +0 -1
- package/dist/plugins/findUniqueAuthentication/schemas.js +0 -8
- package/dist/plugins/getAuthentication/index.d.ts +0 -21
- package/dist/plugins/getAuthentication/index.d.ts.map +0 -1
- package/dist/plugins/getAuthentication/index.js +0 -29
- package/dist/plugins/getAuthentication/index.test.d.ts.map +0 -1
- package/dist/plugins/getAuthentication/schemas.d.ts +0 -7
- package/dist/plugins/getAuthentication/schemas.d.ts.map +0 -1
- package/dist/plugins/getAuthentication/schemas.js +0 -1
- package/dist/plugins/listAuthentications/index.d.ts +0 -24
- package/dist/plugins/listAuthentications/index.d.ts.map +0 -1
- package/dist/plugins/listAuthentications/index.test.d.ts.map +0 -1
- package/dist/plugins/listAuthentications/schemas.d.ts.map +0 -1
- package/dist/plugins/listAuthentications/schemas.js +0 -32
- package/dist/resolvers/authenticationId.d.ts +0 -9
- package/dist/resolvers/authenticationId.d.ts.map +0 -1
- package/dist/resolvers/authenticationId.js +0 -42
- package/dist/schemas/Auth.d.ts +0 -55
- package/dist/schemas/Auth.d.ts.map +0 -1
- /package/dist/plugins/{findFirstAuthentication → findFirstConnection}/index.test.d.ts +0 -0
- /package/dist/plugins/{findUniqueAuthentication → findUniqueConnection}/index.test.d.ts +0 -0
- /package/dist/plugins/{getAuthentication → getConnection}/index.test.d.ts +0 -0
- /package/dist/plugins/{listAuthentications → listConnections}/index.test.d.ts +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import {
|
|
3
|
+
import { ConnectionSchema, ConnectionsResponseSchema, ConnectionItem as ConnectionItem$2, GetConnectionResponse } from '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
4
4
|
import { AppItem as AppItem$1 } from '@zapier/zapier-sdk-core/v0/schemas/apps';
|
|
5
5
|
import { ClientCredentialsItem as ClientCredentialsItem$1, ClientCredentialsCreatedItem } from '@zapier/zapier-sdk-core/v0/schemas/client-credentials';
|
|
6
|
-
import * as zod_v4_core from 'zod/v4/core';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* SDK Event System
|
|
@@ -766,8 +765,8 @@ type Field = z.infer<typeof FieldSchema>;
|
|
|
766
765
|
type ActionExecutionResult = z.infer<typeof ActionExecutionResultSchema>;
|
|
767
766
|
type ActionFieldChoice = z.infer<typeof ActionFieldChoiceSchema>;
|
|
768
767
|
type ActionField = z.infer<typeof ActionFieldSchema>;
|
|
769
|
-
type
|
|
770
|
-
type
|
|
768
|
+
type Connection = z.infer<typeof ConnectionSchema>;
|
|
769
|
+
type ConnectionsResponse = z.infer<typeof ConnectionsResponseSchema>;
|
|
771
770
|
type UserProfile = z.infer<typeof UserProfileSchema>;
|
|
772
771
|
type App = z.infer<typeof AppSchema>;
|
|
773
772
|
type NeedsRequest = z.infer<typeof NeedsRequestSchema>;
|
|
@@ -801,6 +800,7 @@ declare const ActionEntrySchema: z.ZodObject<{
|
|
|
801
800
|
appKey: z.ZodString;
|
|
802
801
|
actionKey: z.ZodString;
|
|
803
802
|
actionType: z.ZodString;
|
|
803
|
+
connectionId: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
804
804
|
authenticationId: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
805
805
|
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
806
806
|
schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -1086,6 +1086,7 @@ declare const ListInputFieldsSchema: z.ZodObject<{
|
|
|
1086
1086
|
write: "write";
|
|
1087
1087
|
}>;
|
|
1088
1088
|
actionKey: z.ZodString;
|
|
1089
|
+
connectionId: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
1089
1090
|
authenticationId: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
1090
1091
|
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1091
1092
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1094,29 +1095,37 @@ declare const ListInputFieldsSchema: z.ZodObject<{
|
|
|
1094
1095
|
}, z.core.$strip>;
|
|
1095
1096
|
type ListInputFieldsOptions = z.infer<typeof ListInputFieldsSchema>;
|
|
1096
1097
|
|
|
1097
|
-
declare const
|
|
1098
|
+
declare const GetConnectionParamSchema: z.ZodObject<{
|
|
1099
|
+
connectionId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1100
|
+
authenticationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1101
|
+
}, z.core.$strip>;
|
|
1102
|
+
type GetConnectionParam = z.infer<typeof GetConnectionParamSchema>;
|
|
1103
|
+
|
|
1104
|
+
declare const FindFirstConnectionSchema: z.ZodObject<{
|
|
1098
1105
|
search: z.ZodOptional<z.ZodString>;
|
|
1099
1106
|
title: z.ZodOptional<z.ZodString>;
|
|
1100
1107
|
appKey: z.ZodOptional<z.ZodString & {
|
|
1101
1108
|
_def: z.core.$ZodStringDef & PositionalMetadata;
|
|
1102
1109
|
}>;
|
|
1103
|
-
accountId: z.ZodOptional<z.ZodString>;
|
|
1104
1110
|
owner: z.ZodOptional<z.ZodString>;
|
|
1111
|
+
authenticationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1112
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
1105
1113
|
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
1106
1114
|
}, z.core.$strip>;
|
|
1107
|
-
type
|
|
1115
|
+
type FindFirstConnectionOptions = z.infer<typeof FindFirstConnectionSchema>;
|
|
1108
1116
|
|
|
1109
|
-
declare const
|
|
1117
|
+
declare const FindUniqueConnectionSchema: z.ZodObject<{
|
|
1110
1118
|
search: z.ZodOptional<z.ZodString>;
|
|
1111
1119
|
title: z.ZodOptional<z.ZodString>;
|
|
1112
1120
|
appKey: z.ZodOptional<z.ZodString & {
|
|
1113
1121
|
_def: z.core.$ZodStringDef & PositionalMetadata;
|
|
1114
1122
|
}>;
|
|
1115
|
-
accountId: z.ZodOptional<z.ZodString>;
|
|
1116
1123
|
owner: z.ZodOptional<z.ZodString>;
|
|
1124
|
+
authenticationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1125
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
1117
1126
|
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
1118
1127
|
}, z.core.$strip>;
|
|
1119
|
-
type
|
|
1128
|
+
type FindUniqueConnectionOptions = z.infer<typeof FindUniqueConnectionSchema>;
|
|
1120
1129
|
|
|
1121
1130
|
declare const RelayRequestSchema: z.ZodObject<{
|
|
1122
1131
|
url: z.ZodString;
|
|
@@ -1130,6 +1139,7 @@ declare const RelayRequestSchema: z.ZodObject<{
|
|
|
1130
1139
|
OPTIONS: "OPTIONS";
|
|
1131
1140
|
}>>;
|
|
1132
1141
|
body: z.ZodOptional<z.ZodAny>;
|
|
1142
|
+
connectionId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1133
1143
|
authenticationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1134
1144
|
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
1135
1145
|
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>>]>>;
|
|
@@ -1150,6 +1160,7 @@ declare const RelayFetchSchema: z.ZodObject<{
|
|
|
1150
1160
|
OPTIONS: "OPTIONS";
|
|
1151
1161
|
}>>;
|
|
1152
1162
|
body: z.ZodOptional<z.ZodAny>;
|
|
1163
|
+
connectionId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1153
1164
|
authenticationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1154
1165
|
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
1155
1166
|
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>>]>>;
|
|
@@ -1221,6 +1232,8 @@ declare const ActionTypePropertySchema: z.ZodEnum<{
|
|
|
1221
1232
|
write: "write";
|
|
1222
1233
|
}>;
|
|
1223
1234
|
declare const ActionKeyPropertySchema: z.ZodString;
|
|
1235
|
+
declare const ConnectionIdPropertySchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1236
|
+
/** @deprecated Use ConnectionIdPropertySchema instead */
|
|
1224
1237
|
declare const AuthenticationIdPropertySchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
1225
1238
|
declare const InputsPropertySchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1226
1239
|
declare const LimitPropertySchema: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1232,7 +1245,9 @@ declare const ActionTimeoutMsPropertySchema: z.ZodOptional<z.ZodNumber>;
|
|
|
1232
1245
|
type AppKeyProperty = z.infer<typeof AppKeyPropertySchema>;
|
|
1233
1246
|
type ActionTypeProperty = z.infer<typeof ActionTypePropertySchema>;
|
|
1234
1247
|
type ActionKeyProperty = z.infer<typeof ActionKeyPropertySchema>;
|
|
1235
|
-
type
|
|
1248
|
+
type ConnectionIdProperty = z.infer<typeof ConnectionIdPropertySchema>;
|
|
1249
|
+
/** @deprecated Use ConnectionIdProperty instead */
|
|
1250
|
+
type AuthenticationIdProperty = ConnectionIdProperty;
|
|
1236
1251
|
type InputsProperty = z.infer<typeof InputsPropertySchema>;
|
|
1237
1252
|
type LimitProperty = z.infer<typeof LimitPropertySchema>;
|
|
1238
1253
|
type OffsetProperty = z.infer<typeof OffsetPropertySchema>;
|
|
@@ -1243,12 +1258,14 @@ type ActionTimeoutMsProperty = z.infer<typeof ActionTimeoutMsPropertySchema>;
|
|
|
1243
1258
|
|
|
1244
1259
|
declare const ActionExecutionInputSchema: z.ZodObject<{
|
|
1245
1260
|
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1261
|
+
connectionId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1246
1262
|
authenticationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1247
1263
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1248
1264
|
}, z.core.$strip>;
|
|
1249
1265
|
type ActionExecutionOptions = z.infer<typeof ActionExecutionInputSchema>;
|
|
1250
1266
|
declare const AppFactoryInputSchema: z.ZodObject<{
|
|
1251
|
-
|
|
1267
|
+
connectionId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1268
|
+
authenticationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1252
1269
|
}, z.core.$strip>;
|
|
1253
1270
|
type AppFactoryInput = z.infer<typeof AppFactoryInputSchema>;
|
|
1254
1271
|
interface BaseActionTypeProxy {
|
|
@@ -1264,6 +1281,8 @@ interface BaseActionTypeProxy {
|
|
|
1264
1281
|
}
|
|
1265
1282
|
interface FetchActionType {
|
|
1266
1283
|
fetch: (url: string | URL, init?: RequestInit & {
|
|
1284
|
+
connectionId?: ConnectionIdProperty;
|
|
1285
|
+
/** @deprecated Use connectionId instead */
|
|
1267
1286
|
authenticationId?: AuthenticationIdProperty;
|
|
1268
1287
|
callbackUrl?: string;
|
|
1269
1288
|
}) => Promise<Response>;
|
|
@@ -1282,6 +1301,8 @@ interface ActionProxy {
|
|
|
1282
1301
|
|
|
1283
1302
|
interface FetchPluginProvides {
|
|
1284
1303
|
fetch: (url: string | URL, init?: RequestInit & {
|
|
1304
|
+
connectionId?: string | number;
|
|
1305
|
+
/** @deprecated Use connectionId instead */
|
|
1285
1306
|
authenticationId?: string | number;
|
|
1286
1307
|
callbackUrl?: string;
|
|
1287
1308
|
_telemetry?: {
|
|
@@ -1314,6 +1335,8 @@ declare const fetchPlugin: Plugin<{}, // no SDK dependencies
|
|
|
1314
1335
|
} & EventEmissionContext, // requires api + eventEmission in context
|
|
1315
1336
|
FetchPluginProvides>;
|
|
1316
1337
|
type ZapierFetchInitOptions = RequestInit & {
|
|
1338
|
+
connectionId?: string | number;
|
|
1339
|
+
/** @deprecated Use connectionId instead */
|
|
1317
1340
|
authenticationId?: string | number;
|
|
1318
1341
|
callbackUrl?: string;
|
|
1319
1342
|
};
|
|
@@ -1333,6 +1356,7 @@ declare const RunActionSchema: z.ZodObject<{
|
|
|
1333
1356
|
write: "write";
|
|
1334
1357
|
}>;
|
|
1335
1358
|
actionKey: z.ZodString;
|
|
1359
|
+
connectionId: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
1336
1360
|
authenticationId: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
1337
1361
|
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1338
1362
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1536,16 +1560,17 @@ AppsPluginProvides>;
|
|
|
1536
1560
|
interface ZapierSdkApps {
|
|
1537
1561
|
}
|
|
1538
1562
|
|
|
1539
|
-
declare const
|
|
1563
|
+
declare const ListConnectionsQuerySchema: z.ZodObject<{
|
|
1540
1564
|
search: z.ZodOptional<z.ZodString>;
|
|
1541
1565
|
title: z.ZodOptional<z.ZodString>;
|
|
1542
|
-
accountId: z.ZodOptional<z.ZodString>;
|
|
1543
1566
|
owner: z.ZodOptional<z.ZodString>;
|
|
1544
|
-
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
1545
1567
|
appKey: z.ZodOptional<z.ZodString & {
|
|
1546
1568
|
_def: z.core.$ZodStringDef & PositionalMetadata;
|
|
1547
1569
|
}>;
|
|
1570
|
+
connectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1548
1571
|
authenticationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1572
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
1573
|
+
isExpired: z.ZodOptional<z.ZodBoolean>;
|
|
1549
1574
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
1550
1575
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
1551
1576
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -1553,77 +1578,132 @@ declare const ListAuthenticationsQuerySchema: z.ZodObject<{
|
|
|
1553
1578
|
isNested: z.ZodOptional<z.ZodBoolean>;
|
|
1554
1579
|
}, z.core.$strip>>;
|
|
1555
1580
|
}, z.core.$strip>;
|
|
1556
|
-
type
|
|
1557
|
-
interface
|
|
1558
|
-
data:
|
|
1581
|
+
type ListConnectionsOptions = z.infer<typeof ListConnectionsQuerySchema>;
|
|
1582
|
+
interface ListConnectionsPage {
|
|
1583
|
+
data: ConnectionItem$2[];
|
|
1559
1584
|
nextCursor?: string;
|
|
1560
1585
|
}
|
|
1561
1586
|
|
|
1562
|
-
interface
|
|
1563
|
-
|
|
1564
|
-
items(): AsyncIterable<
|
|
1587
|
+
interface ListConnectionsPluginProvides {
|
|
1588
|
+
listConnections: (options?: ListConnectionsOptions) => Promise<ListConnectionsPage> & AsyncIterable<ListConnectionsPage> & {
|
|
1589
|
+
items(): AsyncIterable<ConnectionItem$2>;
|
|
1565
1590
|
};
|
|
1566
1591
|
context: {
|
|
1567
1592
|
meta: {
|
|
1568
|
-
|
|
1569
|
-
inputSchema: typeof
|
|
1593
|
+
listConnections: {
|
|
1594
|
+
inputSchema: typeof ListConnectionsQuerySchema;
|
|
1570
1595
|
};
|
|
1571
1596
|
};
|
|
1572
1597
|
};
|
|
1573
1598
|
}
|
|
1574
|
-
declare const
|
|
1599
|
+
declare const listConnectionsPlugin: Plugin<GetSdkType<ManifestPluginProvides>, {
|
|
1575
1600
|
api: ApiClient;
|
|
1576
1601
|
getVersionedImplementationId: GetVersionedImplementationId;
|
|
1577
|
-
} & EventEmissionContext,
|
|
1602
|
+
} & EventEmissionContext, ListConnectionsPluginProvides>;
|
|
1578
1603
|
|
|
1579
|
-
interface
|
|
1580
|
-
|
|
1604
|
+
interface GetConnectionPluginProvides {
|
|
1605
|
+
getConnection: (options: GetConnectionParam) => Promise<GetConnectionResponse>;
|
|
1581
1606
|
context: {
|
|
1582
1607
|
meta: {
|
|
1583
|
-
|
|
1584
|
-
inputSchema: typeof
|
|
1608
|
+
getConnection: {
|
|
1609
|
+
inputSchema: typeof GetConnectionParamSchema;
|
|
1585
1610
|
};
|
|
1586
1611
|
};
|
|
1587
1612
|
};
|
|
1588
1613
|
}
|
|
1589
|
-
declare const
|
|
1614
|
+
declare const getConnectionPlugin: Plugin<{}, // no SDK dependencies
|
|
1590
1615
|
// no SDK dependencies
|
|
1591
1616
|
{
|
|
1592
1617
|
api: ApiClient;
|
|
1593
1618
|
} & EventEmissionContext, // requires api in context
|
|
1594
|
-
|
|
1619
|
+
GetConnectionPluginProvides>;
|
|
1595
1620
|
|
|
1596
|
-
interface
|
|
1597
|
-
|
|
1598
|
-
data:
|
|
1621
|
+
interface FindFirstConnectionPluginProvides {
|
|
1622
|
+
findFirstConnection: (options?: FindFirstConnectionOptions) => Promise<{
|
|
1623
|
+
data: ConnectionItem;
|
|
1599
1624
|
}>;
|
|
1600
1625
|
context: {
|
|
1601
1626
|
meta: {
|
|
1602
|
-
|
|
1603
|
-
inputSchema: typeof
|
|
1627
|
+
findFirstConnection: {
|
|
1628
|
+
inputSchema: typeof FindFirstConnectionSchema;
|
|
1604
1629
|
};
|
|
1605
1630
|
};
|
|
1606
1631
|
};
|
|
1607
1632
|
}
|
|
1608
|
-
declare const
|
|
1633
|
+
declare const findFirstConnectionPlugin: Plugin<GetSdkType<ListConnectionsPluginProvides>, // requires listConnections in SDK
|
|
1609
1634
|
EventEmissionContext, // requires eventEmission in context
|
|
1610
|
-
|
|
1635
|
+
FindFirstConnectionPluginProvides>;
|
|
1611
1636
|
|
|
1612
|
-
interface
|
|
1613
|
-
|
|
1614
|
-
data:
|
|
1637
|
+
interface FindUniqueConnectionPluginProvides {
|
|
1638
|
+
findUniqueConnection: (options?: FindUniqueConnectionOptions) => Promise<{
|
|
1639
|
+
data: ConnectionItem;
|
|
1615
1640
|
}>;
|
|
1616
1641
|
context: {
|
|
1617
1642
|
meta: {
|
|
1618
|
-
|
|
1619
|
-
inputSchema: typeof
|
|
1643
|
+
findUniqueConnection: {
|
|
1644
|
+
inputSchema: typeof FindUniqueConnectionSchema;
|
|
1620
1645
|
};
|
|
1621
1646
|
};
|
|
1622
1647
|
};
|
|
1623
1648
|
}
|
|
1624
|
-
declare const
|
|
1649
|
+
declare const findUniqueConnectionPlugin: Plugin<GetSdkType<ListConnectionsPluginProvides>, // requires listConnections in SDK
|
|
1625
1650
|
EventEmissionContext, // requires eventEmission in context
|
|
1626
|
-
|
|
1651
|
+
FindUniqueConnectionPluginProvides>;
|
|
1652
|
+
|
|
1653
|
+
/**
|
|
1654
|
+
* Deprecated Authentication Plugins
|
|
1655
|
+
*
|
|
1656
|
+
* These plugins provide backward compatibility for the old authentication naming.
|
|
1657
|
+
* They are simple aliases that delegate to the connection plugins.
|
|
1658
|
+
* The connection plugins already accept both connectionId and authenticationId parameters.
|
|
1659
|
+
*
|
|
1660
|
+
* @deprecated Use the connection equivalents instead:
|
|
1661
|
+
* - listAuthentications -> listConnections
|
|
1662
|
+
* - getAuthentication -> getConnection
|
|
1663
|
+
* - findFirstAuthentication -> findFirstConnection
|
|
1664
|
+
* - findUniqueAuthentication -> findUniqueConnection
|
|
1665
|
+
*/
|
|
1666
|
+
|
|
1667
|
+
interface ListAuthenticationsPluginProvides {
|
|
1668
|
+
listAuthentications: GetSdkType<ListConnectionsPluginProvides>["listConnections"];
|
|
1669
|
+
context: {
|
|
1670
|
+
meta: {
|
|
1671
|
+
listAuthentications: {
|
|
1672
|
+
inputSchema: typeof ListConnectionsQuerySchema;
|
|
1673
|
+
};
|
|
1674
|
+
};
|
|
1675
|
+
};
|
|
1676
|
+
}
|
|
1677
|
+
interface GetAuthenticationPluginProvides {
|
|
1678
|
+
getAuthentication: GetSdkType<GetConnectionPluginProvides>["getConnection"];
|
|
1679
|
+
context: {
|
|
1680
|
+
meta: {
|
|
1681
|
+
getAuthentication: {
|
|
1682
|
+
inputSchema: typeof GetConnectionParamSchema;
|
|
1683
|
+
};
|
|
1684
|
+
};
|
|
1685
|
+
};
|
|
1686
|
+
}
|
|
1687
|
+
interface FindFirstAuthenticationPluginProvides {
|
|
1688
|
+
findFirstAuthentication: GetSdkType<FindFirstConnectionPluginProvides>["findFirstConnection"];
|
|
1689
|
+
context: {
|
|
1690
|
+
meta: {
|
|
1691
|
+
findFirstAuthentication: {
|
|
1692
|
+
inputSchema: typeof FindFirstConnectionSchema;
|
|
1693
|
+
};
|
|
1694
|
+
};
|
|
1695
|
+
};
|
|
1696
|
+
}
|
|
1697
|
+
interface FindUniqueAuthenticationPluginProvides {
|
|
1698
|
+
findUniqueAuthentication: GetSdkType<FindUniqueConnectionPluginProvides>["findUniqueConnection"];
|
|
1699
|
+
context: {
|
|
1700
|
+
meta: {
|
|
1701
|
+
findUniqueAuthentication: {
|
|
1702
|
+
inputSchema: typeof FindUniqueConnectionSchema;
|
|
1703
|
+
};
|
|
1704
|
+
};
|
|
1705
|
+
};
|
|
1706
|
+
}
|
|
1627
1707
|
|
|
1628
1708
|
declare const ListClientCredentialsQuerySchema: z.ZodObject<{
|
|
1629
1709
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1750,6 +1830,7 @@ declare const GetInputFieldsSchemaSchema: z.ZodObject<{
|
|
|
1750
1830
|
write: "write";
|
|
1751
1831
|
}>;
|
|
1752
1832
|
actionKey: z.ZodString;
|
|
1833
|
+
connectionId: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
1753
1834
|
authenticationId: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
1754
1835
|
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1755
1836
|
}, z.core.$strip>;
|
|
@@ -1791,6 +1872,7 @@ declare const ListInputFieldChoicesSchema: z.ZodObject<{
|
|
|
1791
1872
|
}>;
|
|
1792
1873
|
actionKey: z.ZodString;
|
|
1793
1874
|
inputFieldKey: z.ZodString;
|
|
1875
|
+
connectionId: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
1794
1876
|
authenticationId: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
1795
1877
|
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1796
1878
|
page: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1886,8 +1968,10 @@ interface FunctionRegistryEntry {
|
|
|
1886
1968
|
packages?: string[];
|
|
1887
1969
|
/** Confirmation prompt type - prompts user before executing */
|
|
1888
1970
|
confirm?: "create-secret" | "delete";
|
|
1971
|
+
/** Parameters that are deprecated and should be hidden from generated docs */
|
|
1972
|
+
deprecatedParameters?: string[];
|
|
1889
1973
|
}
|
|
1890
|
-
interface ZapierSdk extends GetSdkType<RegistryPluginProvides & FetchPluginProvides & AppsPluginProvides & ListAppsPluginProvides & ManifestPluginProvides & GetAppPluginProvides & ListActionsPluginProvides & GetActionPluginProvides & RunActionPluginProvides & ListAuthenticationsPluginProvides & GetAuthenticationPluginProvides & FindFirstAuthenticationPluginProvides & FindUniqueAuthenticationPluginProvides & ListClientCredentialsPluginProvides & CreateClientCredentialsPluginProvides & DeleteClientCredentialsPluginProvides & ListInputFieldsPluginProvides & GetInputFieldsSchemaPluginProvides & ListInputFieldChoicesPluginProvides & RequestPluginProvides & GetProfilePluginProvides & EventEmissionProvides & ApiPluginProvides> {
|
|
1974
|
+
interface ZapierSdk extends GetSdkType<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> {
|
|
1891
1975
|
apps: ActionProxy & ZapierSdkApps;
|
|
1892
1976
|
}
|
|
1893
1977
|
|
|
@@ -2044,37 +2128,12 @@ declare const AppItemSchema: z.ZodObject<{
|
|
|
2044
2128
|
version: z.ZodOptional<z.ZodString>;
|
|
2045
2129
|
}, z.core.$strip>;
|
|
2046
2130
|
|
|
2047
|
-
declare const
|
|
2048
|
-
date: z.ZodString;
|
|
2049
|
-
lastchanged: z.ZodOptional<z.ZodString>;
|
|
2050
|
-
destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2051
|
-
is_invite_only: z.ZodBoolean;
|
|
2052
|
-
is_private: z.ZodBoolean;
|
|
2053
|
-
shared_with_all: z.ZodBoolean;
|
|
2054
|
-
is_stale: z.ZodOptional<z.ZodString>;
|
|
2055
|
-
is_shared: z.ZodOptional<z.ZodString>;
|
|
2056
|
-
marked_stale_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2057
|
-
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2058
|
-
identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2131
|
+
declare const ConnectionItemSchema: z.ZodObject<{
|
|
2059
2132
|
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2060
|
-
url: z.ZodOptional<z.ZodString>;
|
|
2061
|
-
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2062
|
-
members: z.ZodOptional<z.ZodString>;
|
|
2063
|
-
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
2064
|
-
id: z.ZodString;
|
|
2065
|
-
account_id: z.ZodString;
|
|
2066
|
-
implementation_id: z.ZodOptional<z.ZodString>;
|
|
2067
|
-
profile_id: z.ZodOptional<z.ZodString>;
|
|
2068
|
-
is_expired: z.ZodOptional<z.ZodString>;
|
|
2069
|
-
expired_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2070
|
-
app_key: z.ZodOptional<z.ZodString>;
|
|
2071
|
-
app_version: z.ZodOptional<z.ZodString>;
|
|
2072
|
-
}, z.core.$strip>;
|
|
2073
|
-
declare const AuthItemSchema: z.ZodObject<{
|
|
2074
2133
|
date: z.ZodString;
|
|
2134
|
+
is_invite_only: z.ZodBoolean;
|
|
2075
2135
|
lastchanged: z.ZodOptional<z.ZodString>;
|
|
2076
2136
|
destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2077
|
-
is_invite_only: z.ZodBoolean;
|
|
2078
2137
|
is_private: z.ZodBoolean;
|
|
2079
2138
|
shared_with_all: z.ZodBoolean;
|
|
2080
2139
|
is_stale: z.ZodOptional<z.ZodString>;
|
|
@@ -2082,7 +2141,6 @@ declare const AuthItemSchema: z.ZodObject<{
|
|
|
2082
2141
|
marked_stale_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2083
2142
|
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2084
2143
|
identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2085
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2086
2144
|
url: z.ZodOptional<z.ZodString>;
|
|
2087
2145
|
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2088
2146
|
members: z.ZodOptional<z.ZodString>;
|
|
@@ -2096,7 +2154,7 @@ declare const AuthItemSchema: z.ZodObject<{
|
|
|
2096
2154
|
app_key: z.ZodOptional<z.ZodString>;
|
|
2097
2155
|
app_version: z.ZodOptional<z.ZodString>;
|
|
2098
2156
|
}, z.core.$strip>;
|
|
2099
|
-
type
|
|
2157
|
+
type ConnectionItem$1 = z.infer<typeof ConnectionItemSchema>;
|
|
2100
2158
|
|
|
2101
2159
|
declare const ActionItemSchema: z.ZodObject<{
|
|
2102
2160
|
description: z.ZodString;
|
|
@@ -2136,10 +2194,10 @@ declare const UserProfileItemSchema: z.ZodObject<{
|
|
|
2136
2194
|
*/
|
|
2137
2195
|
type AppItem = z.infer<typeof AppItemSchema>;
|
|
2138
2196
|
/**
|
|
2139
|
-
* Represents
|
|
2140
|
-
* Inferred from
|
|
2197
|
+
* Represents a connection item returned by listConnections functions
|
|
2198
|
+
* Inferred from ConnectionItemSchema which extends the base Connection API schema
|
|
2141
2199
|
*/
|
|
2142
|
-
type
|
|
2200
|
+
type ConnectionItem = z.infer<typeof ConnectionItemSchema>;
|
|
2143
2201
|
/**
|
|
2144
2202
|
* Represents an action item returned by listActions functions
|
|
2145
2203
|
* Inferred from ActionItemSchema which extends the base Action API schema
|
|
@@ -2309,11 +2367,11 @@ declare const actionKeyResolver: DynamicResolver<ActionItem, {
|
|
|
2309
2367
|
actionType: ActionTypeProperty;
|
|
2310
2368
|
}>;
|
|
2311
2369
|
|
|
2312
|
-
type
|
|
2370
|
+
type ConnectionIdResolver = DynamicResolver<ConnectionItem$1, {
|
|
2313
2371
|
appKey?: string;
|
|
2314
2372
|
}>;
|
|
2315
|
-
declare const
|
|
2316
|
-
declare const
|
|
2373
|
+
declare const connectionIdResolver: ConnectionIdResolver;
|
|
2374
|
+
declare const connectionIdGenericResolver: ConnectionIdResolver;
|
|
2317
2375
|
|
|
2318
2376
|
type InputsResolver = {
|
|
2319
2377
|
type: "fields";
|
|
@@ -2322,7 +2380,7 @@ type InputsResolver = {
|
|
|
2322
2380
|
appKey: string;
|
|
2323
2381
|
actionKey: string;
|
|
2324
2382
|
actionType: ActionTypeProperty;
|
|
2325
|
-
|
|
2383
|
+
connectionId: string | number;
|
|
2326
2384
|
inputs?: Record<string, unknown>;
|
|
2327
2385
|
}) => Promise<RootFieldItem[]>;
|
|
2328
2386
|
};
|
|
@@ -2333,7 +2391,7 @@ declare const inputFieldKeyResolver: DynamicResolver<InputFieldItem$1, {
|
|
|
2333
2391
|
appKey: string;
|
|
2334
2392
|
actionKey: string;
|
|
2335
2393
|
actionType: ActionTypeProperty;
|
|
2336
|
-
|
|
2394
|
+
connectionId: string | number;
|
|
2337
2395
|
inputs?: Record<string, unknown>;
|
|
2338
2396
|
}>;
|
|
2339
2397
|
|
|
@@ -2555,7 +2613,7 @@ declare function createSdk<TCurrentSdk = {}, TCurrentContext extends {
|
|
|
2555
2613
|
getContext(): TCurrentContext;
|
|
2556
2614
|
}, TRequiresContext, TProvides>, addPluginOptions?: Record<string, unknown>): Sdk<TCurrentSdk & ExtractSdkProperties<TProvides>, TCurrentContext & NonNullable<ExtractContextProperties<TProvides>>>;
|
|
2557
2615
|
};
|
|
2558
|
-
declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk<ExtractSdkProperties<EventEmissionProvides> & ExtractSdkProperties<ApiPluginProvides> & ExtractSdkProperties<ManifestPluginProvides> & ExtractSdkProperties<ListAppsPluginProvides> & ExtractSdkProperties<GetAppPluginProvides> & ExtractSdkProperties<ListActionsPluginProvides> & ExtractSdkProperties<GetActionPluginProvides> & ExtractSdkProperties<ListInputFieldsPluginProvides> & ExtractSdkProperties<GetInputFieldsSchemaPluginProvides> & ExtractSdkProperties<ListInputFieldChoicesPluginProvides> & ExtractSdkProperties<RunActionPluginProvides> & ExtractSdkProperties<ListAuthenticationsPluginProvides> & ExtractSdkProperties<GetAuthenticationPluginProvides> & ExtractSdkProperties<FindFirstAuthenticationPluginProvides> & ExtractSdkProperties<FindUniqueAuthenticationPluginProvides> & ExtractSdkProperties<ListClientCredentialsPluginProvides> & ExtractSdkProperties<CreateClientCredentialsPluginProvides> & ExtractSdkProperties<DeleteClientCredentialsPluginProvides> & ExtractSdkProperties<FetchPluginProvides> & ExtractSdkProperties<RequestPluginProvides> & ExtractSdkProperties<AppsPluginProvides> & ExtractSdkProperties<GetProfilePluginProvides>, {
|
|
2616
|
+
declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk<ExtractSdkProperties<EventEmissionProvides> & ExtractSdkProperties<ApiPluginProvides> & ExtractSdkProperties<ManifestPluginProvides> & 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<AppsPluginProvides> & ExtractSdkProperties<GetProfilePluginProvides>, {
|
|
2559
2617
|
meta: Record<string, PluginMeta>;
|
|
2560
2618
|
} & EventEmissionContext & {
|
|
2561
2619
|
api: ApiClient;
|
|
@@ -2634,30 +2692,52 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk
|
|
|
2634
2692
|
inputSchema: typeof RunActionSchema;
|
|
2635
2693
|
};
|
|
2636
2694
|
};
|
|
2695
|
+
} & {
|
|
2696
|
+
meta: {
|
|
2697
|
+
listConnections: {
|
|
2698
|
+
inputSchema: typeof ListConnectionsQuerySchema;
|
|
2699
|
+
};
|
|
2700
|
+
};
|
|
2701
|
+
} & {
|
|
2702
|
+
meta: {
|
|
2703
|
+
getConnection: {
|
|
2704
|
+
inputSchema: typeof GetConnectionParamSchema;
|
|
2705
|
+
};
|
|
2706
|
+
};
|
|
2707
|
+
} & {
|
|
2708
|
+
meta: {
|
|
2709
|
+
findFirstConnection: {
|
|
2710
|
+
inputSchema: typeof FindFirstConnectionSchema;
|
|
2711
|
+
};
|
|
2712
|
+
};
|
|
2713
|
+
} & {
|
|
2714
|
+
meta: {
|
|
2715
|
+
findUniqueConnection: {
|
|
2716
|
+
inputSchema: typeof FindUniqueConnectionSchema;
|
|
2717
|
+
};
|
|
2718
|
+
};
|
|
2637
2719
|
} & {
|
|
2638
2720
|
meta: {
|
|
2639
2721
|
listAuthentications: {
|
|
2640
|
-
inputSchema: typeof
|
|
2722
|
+
inputSchema: typeof ListConnectionsQuerySchema;
|
|
2641
2723
|
};
|
|
2642
2724
|
};
|
|
2643
2725
|
} & {
|
|
2644
2726
|
meta: {
|
|
2645
2727
|
getAuthentication: {
|
|
2646
|
-
inputSchema:
|
|
2647
|
-
authenticationId: zod.ZodString;
|
|
2648
|
-
}, zod_v4_core.$strip>;
|
|
2728
|
+
inputSchema: typeof GetConnectionParamSchema;
|
|
2649
2729
|
};
|
|
2650
2730
|
};
|
|
2651
2731
|
} & {
|
|
2652
2732
|
meta: {
|
|
2653
2733
|
findFirstAuthentication: {
|
|
2654
|
-
inputSchema: typeof
|
|
2734
|
+
inputSchema: typeof FindFirstConnectionSchema;
|
|
2655
2735
|
};
|
|
2656
2736
|
};
|
|
2657
2737
|
} & {
|
|
2658
2738
|
meta: {
|
|
2659
2739
|
findUniqueAuthentication: {
|
|
2660
|
-
inputSchema: typeof
|
|
2740
|
+
inputSchema: typeof FindUniqueConnectionSchema;
|
|
2661
2741
|
};
|
|
2662
2742
|
};
|
|
2663
2743
|
} & {
|
|
@@ -2706,4 +2786,4 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk
|
|
|
2706
2786
|
}>;
|
|
2707
2787
|
declare function createZapierSdk(options?: ZapierSdkOptions): ZapierSdk;
|
|
2708
2788
|
|
|
2709
|
-
export { type Action, type ActionEntry, type ActionExecutionOptions, type ActionExecutionResult, type ActionField, type ActionFieldChoice, type ActionItem$1 as ActionItem, type ActionKeyProperty, ActionKeyPropertySchema, type ActionTimeoutMsProperty, ActionTimeoutMsPropertySchema, type ActionTypeProperty, ActionTypePropertySchema, type AddActionEntryOptions, type AddActionEntryResult, type ApiError, type ApiEvent, type ApiPluginOptions, type ApiPluginProvides, type App, type AppItem, type AppKeyProperty, AppKeyPropertySchema, type ApplicationLifecycleEventData, type AppsPluginProvides, type AuthEvent, type
|
|
2789
|
+
export { type Action, type ActionEntry, type ActionExecutionOptions, type ActionExecutionResult, type ActionField, type ActionFieldChoice, type ActionItem$1 as ActionItem, type ActionKeyProperty, ActionKeyPropertySchema, type ActionTimeoutMsProperty, ActionTimeoutMsPropertySchema, type ActionTypeProperty, ActionTypePropertySchema, type AddActionEntryOptions, type AddActionEntryResult, type ApiError, type ApiEvent, type ApiPluginOptions, type ApiPluginProvides, type App, type AppItem, type AppKeyProperty, AppKeyPropertySchema, type ApplicationLifecycleEventData, type AppsPluginProvides, type AuthEvent, type AuthenticationIdProperty, AuthenticationIdPropertySchema, type BaseEvent, type BatchOptions, type Choice, type ClientCredentialsObject, type Connection, type ConnectionIdProperty, ConnectionIdPropertySchema, type ConnectionItem, type ConnectionsResponse, type CreateClientCredentialsPluginProvides, type Credentials, type CredentialsObject, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_CONFIG_PATH, type DebugProperty, DebugPropertySchema, type DeleteClientCredentialsPluginProvides, type EnhancedErrorEventData, type ErrorOptions, type EventCallback, type EventContext, type EventEmissionContext, type FetchPluginProvides, type Field, type FieldsetItem, type FindFirstAuthenticationPluginProvides, type FindFirstConnectionPluginProvides, type FindUniqueAuthenticationPluginProvides, type FindUniqueConnectionPluginProvides, type FormatMetadata, type FormattedItem, type FunctionOptions, type FunctionRegistryEntry, type GetActionPluginProvides, type GetAppPluginProvides, type GetAuthenticationPluginProvides, type GetConnectionPluginProvides, type GetContextType, type GetProfilePluginProvides, type GetSdkType, type InfoFieldItem, type InputFieldItem, type InputsProperty, InputsPropertySchema, type LimitProperty, LimitPropertySchema, type ListActionsPluginProvides, type ListAppsPluginProvides, type ListAuthenticationsPluginProvides, type ListClientCredentialsPluginProvides, type ListConnectionsPluginProvides, type ListInputFieldsPluginProvides, 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 OutputProperty, OutputPropertySchema, type PaginatedSdkFunction, type ParamsProperty, ParamsPropertySchema, type PkceCredentialsObject, type Plugin, type PluginDependencies, type PluginOptions, type PluginProvides, type PositionalMetadata, RelayFetchSchema, RelayRequestSchema, type RequestPluginProvides, type ResolveAuthTokenOptions, type ResolveCredentialsOptions, type ResolvedCredentials, type RootFieldItem, type RunActionPluginProvides, type Sdk, type SdkEvent, type UpdateManifestEntryOptions, type UpdateManifestEntryResult, type UserProfile, type UserProfileItem, ZAPIER_AUTH_BASE_URL, ZAPIER_AUTH_CLIENT_ID, ZAPIER_BASE_URL, ZAPIER_CREDENTIALS, ZAPIER_CREDENTIALS_BASE_URL, ZAPIER_CREDENTIALS_CLIENT_ID, ZAPIER_CREDENTIALS_CLIENT_SECRET, ZAPIER_CREDENTIALS_SCOPE, ZAPIER_TOKEN, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierError, type ZapierFetchInitOptions, ZapierNotFoundError, ZapierResourceNotFoundError, type ZapierSdk, type ZapierSdkApps, type ZapierSdkOptions, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, createBaseEvent, createClientCredentialsPlugin, createFunction, createSdk, createZapierSdk, createZapierSdkWithoutRegistry, deleteClientCredentialsPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTokenFromCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listInputFieldsPlugin, logDeprecation, manifestPlugin, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, toSnakeCase, toTitleCase };
|
package/dist/index.d.ts
CHANGED
|
@@ -7,21 +7,22 @@ export * from "./plugins/fetch";
|
|
|
7
7
|
export * from "./plugins/listApps";
|
|
8
8
|
export * from "./plugins/listActions";
|
|
9
9
|
export * from "./plugins/listInputFields";
|
|
10
|
-
export * from "./plugins/
|
|
10
|
+
export * from "./plugins/listConnections";
|
|
11
11
|
export * from "./plugins/listClientCredentials";
|
|
12
12
|
export * from "./plugins/createClientCredentials";
|
|
13
13
|
export * from "./plugins/deleteClientCredentials";
|
|
14
14
|
export * from "./plugins/getApp";
|
|
15
15
|
export * from "./plugins/getAction";
|
|
16
|
-
export * from "./plugins/
|
|
17
|
-
export * from "./plugins/
|
|
18
|
-
export * from "./plugins/
|
|
16
|
+
export * from "./plugins/getConnection";
|
|
17
|
+
export * from "./plugins/findFirstConnection";
|
|
18
|
+
export * from "./plugins/findUniqueConnection";
|
|
19
|
+
export type { ListAuthenticationsPluginProvides, GetAuthenticationPluginProvides, FindFirstAuthenticationPluginProvides, FindUniqueAuthenticationPluginProvides, } from "./plugins/deprecated/authentications";
|
|
19
20
|
export * from "./plugins/runAction";
|
|
20
21
|
export * from "./plugins/request";
|
|
21
22
|
export * from "./plugins/manifest";
|
|
22
23
|
export * from "./plugins/getProfile";
|
|
23
24
|
export * from "./plugins/api";
|
|
24
|
-
export type { Action, App, Need, Field, Choice, ActionExecutionResult, ActionField, ActionFieldChoice, NeedsRequest, NeedsResponse,
|
|
25
|
+
export type { Action, App, Need, Field, Choice, ActionExecutionResult, ActionField, ActionFieldChoice, NeedsRequest, NeedsResponse, Connection, ConnectionsResponse, UserProfile, } from "./api/types";
|
|
25
26
|
export { isPositional, PositionalMetadata } from "./utils/schema-utils";
|
|
26
27
|
export { createFunction } from "./utils/function-utils";
|
|
27
28
|
export type { FormattedItem, FormatMetadata } from "./utils/schema-utils";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC;AAClD,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAG/C,YAAY,EACV,iCAAiC,EACjC,+BAA+B,EAC/B,qCAAqC,EACrC,sCAAsC,GACvC,MAAM,sCAAsC,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAG9B,YAAY,EACV,MAAM,EACN,GAAG,EACH,IAAI,EACJ,KAAK,EACL,MAAM,EACN,qBAAqB,EACrB,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,UAAU,EACV,mBAAmB,EACnB,WAAW,GACZ,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAG1E,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGhE,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGxD,cAAc,aAAa,CAAC;AAG5B,cAAc,QAAQ,CAAC;AAGvB,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AAGpC,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAG3E,cAAc,aAAa,CAAC;AAI5B,OAAO,EACL,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EACL,eAAe,EACf,8BAA8B,EAC9B,SAAS,EACT,gBAAgB,GACjB,MAAM,OAAO,CAAC;AAGf,YAAY,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGzD,YAAY,EACV,MAAM,EACN,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,UAAU,EACV,cAAc,EACd,GAAG,GACJ,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,YAAY,EACV,oBAAoB,EACpB,YAAY,EACZ,6BAA6B,EAC7B,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,SAAS,EACT,mBAAmB,EACnB,IAAI,EACJ,aAAa,EACb,cAAc,EACd,UAAU,EACV,8BAA8B,EAC9B,0BAA0B,EAC1B,eAAe,EACf,eAAe,EACf,sBAAsB,GACvB,MAAM,yBAAyB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -8,15 +8,15 @@ export * from "./plugins/fetch";
|
|
|
8
8
|
export * from "./plugins/listApps";
|
|
9
9
|
export * from "./plugins/listActions";
|
|
10
10
|
export * from "./plugins/listInputFields";
|
|
11
|
-
export * from "./plugins/
|
|
11
|
+
export * from "./plugins/listConnections";
|
|
12
12
|
export * from "./plugins/listClientCredentials";
|
|
13
13
|
export * from "./plugins/createClientCredentials";
|
|
14
14
|
export * from "./plugins/deleteClientCredentials";
|
|
15
15
|
export * from "./plugins/getApp";
|
|
16
16
|
export * from "./plugins/getAction";
|
|
17
|
-
export * from "./plugins/
|
|
18
|
-
export * from "./plugins/
|
|
19
|
-
export * from "./plugins/
|
|
17
|
+
export * from "./plugins/getConnection";
|
|
18
|
+
export * from "./plugins/findFirstConnection";
|
|
19
|
+
export * from "./plugins/findUniqueConnection";
|
|
20
20
|
export * from "./plugins/runAction";
|
|
21
21
|
export * from "./plugins/request";
|
|
22
22
|
export * from "./plugins/manifest";
|