@zapier/zapier-sdk 0.29.0 → 0.31.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 +12 -0
- package/README.md +23 -9
- package/dist/api/schemas.d.ts +2 -2
- package/dist/index.cjs +276 -204
- package/dist/index.d.mts +203 -86
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.mjs +270 -205
- package/dist/plugins/createClientCredentials/schemas.d.ts +0 -3
- package/dist/plugins/createClientCredentials/schemas.d.ts.map +1 -1
- package/dist/plugins/createClientCredentials/schemas.js +0 -2
- package/dist/plugins/deleteClientCredentials/schemas.d.ts +0 -3
- package/dist/plugins/deleteClientCredentials/schemas.d.ts.map +1 -1
- package/dist/plugins/deleteClientCredentials/schemas.js +0 -2
- package/dist/plugins/fetch/index.d.ts +0 -3
- package/dist/plugins/fetch/index.d.ts.map +1 -1
- package/dist/plugins/fetch/index.js +59 -53
- package/dist/plugins/findFirstConnection/index.d.ts.map +1 -1
- package/dist/plugins/findFirstConnection/index.js +0 -1
- package/dist/plugins/findFirstConnection/schemas.d.ts +1 -1
- package/dist/plugins/findFirstConnection/schemas.d.ts.map +1 -1
- package/dist/plugins/findFirstConnection/schemas.js +0 -1
- package/dist/plugins/findUniqueConnection/index.d.ts.map +1 -1
- package/dist/plugins/findUniqueConnection/index.js +0 -1
- package/dist/plugins/findUniqueConnection/schemas.d.ts +1 -1
- package/dist/plugins/findUniqueConnection/schemas.d.ts.map +1 -1
- package/dist/plugins/findUniqueConnection/schemas.js +0 -1
- package/dist/plugins/getAction/index.d.ts.map +1 -1
- package/dist/plugins/getAction/index.js +1 -3
- package/dist/plugins/getAction/schemas.d.ts +0 -3
- package/dist/plugins/getAction/schemas.d.ts.map +1 -1
- package/dist/plugins/getAction/schemas.js +0 -2
- package/dist/plugins/getApp/index.d.ts.map +1 -1
- package/dist/plugins/getApp/index.js +0 -1
- package/dist/plugins/listActions/schemas.d.ts +0 -3
- package/dist/plugins/listActions/schemas.d.ts.map +1 -1
- package/dist/plugins/listActions/schemas.js +0 -2
- package/dist/plugins/listApps/schemas.d.ts +0 -3
- package/dist/plugins/listApps/schemas.d.ts.map +1 -1
- package/dist/plugins/listApps/schemas.js +0 -2
- package/dist/plugins/listClientCredentials/schemas.d.ts +0 -3
- package/dist/plugins/listClientCredentials/schemas.d.ts.map +1 -1
- package/dist/plugins/listClientCredentials/schemas.js +0 -2
- package/dist/plugins/listConnections/schemas.d.ts +1 -4
- package/dist/plugins/listConnections/schemas.d.ts.map +1 -1
- package/dist/plugins/listConnections/schemas.js +0 -2
- package/dist/plugins/request/index.d.ts.map +1 -1
- package/dist/plugins/request/index.js +0 -1
- package/dist/plugins/request/schemas.d.ts +0 -6
- package/dist/plugins/request/schemas.d.ts.map +1 -1
- package/dist/plugins/request/schemas.js +0 -2
- package/dist/plugins/runAction/index.d.ts.map +1 -1
- package/dist/plugins/runAction/index.js +0 -1
- package/dist/schemas/Action.d.ts +2 -2
- package/dist/types/credentials.d.ts +137 -17
- package/dist/types/credentials.d.ts.map +1 -1
- package/dist/types/credentials.js +80 -0
- package/dist/types/meta.d.ts +9 -0
- package/dist/types/meta.d.ts.map +1 -0
- package/dist/types/meta.js +3 -0
- package/dist/types/sdk.d.ts +61 -35
- package/dist/types/sdk.d.ts.map +1 -1
- package/dist/types/sdk.js +55 -1
- package/dist/utils/function-utils.d.ts +1 -14
- package/dist/utils/function-utils.d.ts.map +1 -1
- package/dist/utils/function-utils.js +115 -123
- package/dist/utils/function-utils.test.js +79 -1
- package/dist/utils/telemetry-context.d.ts +3 -0
- package/dist/utils/telemetry-context.d.ts.map +1 -0
- package/dist/utils/telemetry-context.js +23 -0
- package/dist/utils/telemetry-context.test.d.ts +2 -0
- package/dist/utils/telemetry-context.test.d.ts.map +1 -0
- package/dist/utils/telemetry-context.test.js +92 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -399,44 +399,164 @@ interface EventEmissionProvides {
|
|
|
399
399
|
* - PKCE: OAuth client ID for interactive login (CLI only)
|
|
400
400
|
* - Function: Lazy/dynamic credential resolution
|
|
401
401
|
*/
|
|
402
|
+
|
|
402
403
|
/**
|
|
403
404
|
* Client credentials for OAuth client_credentials flow.
|
|
404
405
|
* The SDK will exchange these for an access token.
|
|
405
406
|
*/
|
|
406
|
-
|
|
407
|
-
type
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
407
|
+
declare const ClientCredentialsObjectSchema: z.ZodObject<{
|
|
408
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
409
|
+
client_credentials: "client_credentials";
|
|
410
|
+
}>>;
|
|
411
|
+
clientId: z.ZodString;
|
|
412
|
+
clientSecret: z.ZodString;
|
|
413
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
414
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
415
|
+
}, z.core.$strip>;
|
|
416
|
+
type ClientCredentialsObject = z.infer<typeof ClientCredentialsObjectSchema>;
|
|
413
417
|
/**
|
|
414
418
|
* PKCE credentials for interactive OAuth flow.
|
|
415
419
|
* Only works when @zapier/zapier-sdk-cli-login is available.
|
|
416
420
|
*/
|
|
417
|
-
|
|
418
|
-
type
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
421
|
+
declare const PkceCredentialsObjectSchema: z.ZodObject<{
|
|
422
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
423
|
+
pkce: "pkce";
|
|
424
|
+
}>>;
|
|
425
|
+
clientId: z.ZodString;
|
|
426
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
427
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
428
|
+
}, z.core.$strip>;
|
|
429
|
+
type PkceCredentialsObject = z.infer<typeof PkceCredentialsObjectSchema>;
|
|
423
430
|
/**
|
|
424
431
|
* Union of all credential object types.
|
|
425
432
|
*/
|
|
426
|
-
|
|
433
|
+
declare const CredentialsObjectSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
434
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
435
|
+
client_credentials: "client_credentials";
|
|
436
|
+
}>>;
|
|
437
|
+
clientId: z.ZodString;
|
|
438
|
+
clientSecret: z.ZodString;
|
|
439
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
440
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
441
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
442
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
443
|
+
pkce: "pkce";
|
|
444
|
+
}>>;
|
|
445
|
+
clientId: z.ZodString;
|
|
446
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
447
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
448
|
+
}, z.core.$strip>]>;
|
|
449
|
+
type CredentialsObject = z.infer<typeof CredentialsObjectSchema>;
|
|
427
450
|
/**
|
|
428
451
|
* Resolved credentials - what a credentials function must return.
|
|
429
452
|
* Either a string (token) or a credentials object.
|
|
430
453
|
* Functions are not allowed to return other functions.
|
|
431
454
|
*/
|
|
432
|
-
|
|
455
|
+
declare const ResolvedCredentialsSchema: z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
456
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
457
|
+
client_credentials: "client_credentials";
|
|
458
|
+
}>>;
|
|
459
|
+
clientId: z.ZodString;
|
|
460
|
+
clientSecret: z.ZodString;
|
|
461
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
462
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
463
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
464
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
465
|
+
pkce: "pkce";
|
|
466
|
+
}>>;
|
|
467
|
+
clientId: z.ZodString;
|
|
468
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
469
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
470
|
+
}, z.core.$strip>]>]>;
|
|
471
|
+
type ResolvedCredentials = z.infer<typeof ResolvedCredentialsSchema>;
|
|
472
|
+
/**
|
|
473
|
+
* Lazy/dynamic credential resolution — a function returning resolved credentials.
|
|
474
|
+
*/
|
|
475
|
+
declare const CredentialsFunctionSchema: z.ZodFunction<z.core.$ZodTuple<readonly [], z.core.$ZodFunctionOut>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
476
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
477
|
+
client_credentials: "client_credentials";
|
|
478
|
+
}>>;
|
|
479
|
+
clientId: z.ZodString;
|
|
480
|
+
clientSecret: z.ZodString;
|
|
481
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
482
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
483
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
484
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
485
|
+
pkce: "pkce";
|
|
486
|
+
}>>;
|
|
487
|
+
clientId: z.ZodString;
|
|
488
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
489
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
490
|
+
}, z.core.$strip>]>]>, z.ZodPromise<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
491
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
492
|
+
client_credentials: "client_credentials";
|
|
493
|
+
}>>;
|
|
494
|
+
clientId: z.ZodString;
|
|
495
|
+
clientSecret: z.ZodString;
|
|
496
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
497
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
498
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
499
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
500
|
+
pkce: "pkce";
|
|
501
|
+
}>>;
|
|
502
|
+
clientId: z.ZodString;
|
|
503
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
504
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
505
|
+
}, z.core.$strip>]>]>>]>>;
|
|
506
|
+
type CredentialsFunction = z.infer<typeof CredentialsFunctionSchema>;
|
|
433
507
|
/**
|
|
434
508
|
* Credentials can be:
|
|
435
509
|
* - A string (token or API key)
|
|
436
510
|
* - A credentials object (client_credentials or pkce)
|
|
437
511
|
* - A function that returns credentials (sync or async)
|
|
438
512
|
*/
|
|
439
|
-
|
|
513
|
+
declare const CredentialsSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
514
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
515
|
+
client_credentials: "client_credentials";
|
|
516
|
+
}>>;
|
|
517
|
+
clientId: z.ZodString;
|
|
518
|
+
clientSecret: z.ZodString;
|
|
519
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
520
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
521
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
522
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
523
|
+
pkce: "pkce";
|
|
524
|
+
}>>;
|
|
525
|
+
clientId: z.ZodString;
|
|
526
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
527
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
528
|
+
}, z.core.$strip>]>]>, z.ZodFunction<z.core.$ZodTuple<readonly [], z.core.$ZodFunctionOut>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
529
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
530
|
+
client_credentials: "client_credentials";
|
|
531
|
+
}>>;
|
|
532
|
+
clientId: z.ZodString;
|
|
533
|
+
clientSecret: z.ZodString;
|
|
534
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
535
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
536
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
537
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
538
|
+
pkce: "pkce";
|
|
539
|
+
}>>;
|
|
540
|
+
clientId: z.ZodString;
|
|
541
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
542
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
543
|
+
}, z.core.$strip>]>]>, z.ZodPromise<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
544
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
545
|
+
client_credentials: "client_credentials";
|
|
546
|
+
}>>;
|
|
547
|
+
clientId: z.ZodString;
|
|
548
|
+
clientSecret: z.ZodString;
|
|
549
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
550
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
551
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
552
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
553
|
+
pkce: "pkce";
|
|
554
|
+
}>>;
|
|
555
|
+
clientId: z.ZodString;
|
|
556
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
557
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
558
|
+
}, z.core.$strip>]>]>>]>>]>;
|
|
559
|
+
type Credentials = z.infer<typeof CredentialsSchema>;
|
|
440
560
|
/**
|
|
441
561
|
* Type guard for client credentials objects.
|
|
442
562
|
*/
|
|
@@ -452,7 +572,7 @@ declare function isCredentialsObject(credentials: ResolvedCredentials): credenti
|
|
|
452
572
|
/**
|
|
453
573
|
* Type guard for credentials functions.
|
|
454
574
|
*/
|
|
455
|
-
declare function isCredentialsFunction(credentials: Credentials): credentials is
|
|
575
|
+
declare function isCredentialsFunction(credentials: Credentials): credentials is CredentialsFunction;
|
|
456
576
|
|
|
457
577
|
declare const NeedSchema: z.ZodObject<{
|
|
458
578
|
key: z.ZodString;
|
|
@@ -1127,8 +1247,8 @@ declare const GetConnectionParamSchema: z.ZodObject<{
|
|
|
1127
1247
|
type GetConnectionParam = z.infer<typeof GetConnectionParamSchema>;
|
|
1128
1248
|
|
|
1129
1249
|
declare const FindFirstConnectionSchema: z.ZodObject<{
|
|
1130
|
-
search: z.ZodOptional<z.ZodString>;
|
|
1131
1250
|
title: z.ZodOptional<z.ZodString>;
|
|
1251
|
+
search: z.ZodOptional<z.ZodString>;
|
|
1132
1252
|
appKey: z.ZodOptional<z.ZodString & {
|
|
1133
1253
|
_def: z.core.$ZodStringDef & PositionalMetadata;
|
|
1134
1254
|
}>;
|
|
@@ -1140,8 +1260,8 @@ declare const FindFirstConnectionSchema: z.ZodObject<{
|
|
|
1140
1260
|
type FindFirstConnectionOptions = z.infer<typeof FindFirstConnectionSchema>;
|
|
1141
1261
|
|
|
1142
1262
|
declare const FindUniqueConnectionSchema: z.ZodObject<{
|
|
1143
|
-
search: z.ZodOptional<z.ZodString>;
|
|
1144
1263
|
title: z.ZodOptional<z.ZodString>;
|
|
1264
|
+
search: z.ZodOptional<z.ZodString>;
|
|
1145
1265
|
appKey: z.ZodOptional<z.ZodString & {
|
|
1146
1266
|
_def: z.core.$ZodStringDef & PositionalMetadata;
|
|
1147
1267
|
}>;
|
|
@@ -1168,9 +1288,6 @@ declare const RelayRequestSchema: z.ZodObject<{
|
|
|
1168
1288
|
authenticationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1169
1289
|
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
1170
1290
|
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>>]>>;
|
|
1171
|
-
_telemetry: z.ZodOptional<z.ZodObject<{
|
|
1172
|
-
isNested: z.ZodOptional<z.ZodBoolean>;
|
|
1173
|
-
}, z.core.$strip>>;
|
|
1174
1291
|
}, z.core.$strip>;
|
|
1175
1292
|
type RelayRequestOptions = z.infer<typeof RelayRequestSchema>;
|
|
1176
1293
|
declare const RelayFetchSchema: z.ZodObject<{
|
|
@@ -1189,9 +1306,6 @@ declare const RelayFetchSchema: z.ZodObject<{
|
|
|
1189
1306
|
authenticationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
1190
1307
|
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
1191
1308
|
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>>]>>;
|
|
1192
|
-
_telemetry: z.ZodOptional<z.ZodObject<{
|
|
1193
|
-
isNested: z.ZodOptional<z.ZodBoolean>;
|
|
1194
|
-
}, z.core.$strip>>;
|
|
1195
1309
|
}, z.core.$strip>;
|
|
1196
1310
|
|
|
1197
1311
|
interface RegistryPluginProvides {
|
|
@@ -1330,9 +1444,6 @@ interface FetchPluginProvides {
|
|
|
1330
1444
|
/** @deprecated Use connectionId instead */
|
|
1331
1445
|
authenticationId?: string | number;
|
|
1332
1446
|
callbackUrl?: string;
|
|
1333
|
-
_telemetry?: {
|
|
1334
|
-
isNested?: boolean;
|
|
1335
|
-
};
|
|
1336
1447
|
}) => Promise<Response>;
|
|
1337
1448
|
context: {
|
|
1338
1449
|
meta: {
|
|
@@ -1406,9 +1517,6 @@ declare const GetActionSchema: z.ZodObject<{
|
|
|
1406
1517
|
write: "write";
|
|
1407
1518
|
}>;
|
|
1408
1519
|
actionKey: z.ZodString;
|
|
1409
|
-
_telemetry: z.ZodOptional<z.ZodObject<{
|
|
1410
|
-
isNested: z.ZodOptional<z.ZodBoolean>;
|
|
1411
|
-
}, z.core.$strip>>;
|
|
1412
1520
|
}, z.core.$strip>;
|
|
1413
1521
|
type GetActionOptions = z.infer<typeof GetActionSchema>;
|
|
1414
1522
|
|
|
@@ -1429,9 +1537,6 @@ declare const ListActionsSchema: z.ZodObject<{
|
|
|
1429
1537
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
1430
1538
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
1431
1539
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1432
|
-
_telemetry: z.ZodOptional<z.ZodObject<{
|
|
1433
|
-
isNested: z.ZodOptional<z.ZodBoolean>;
|
|
1434
|
-
}, z.core.$strip>>;
|
|
1435
1540
|
}, z.core.$strip>;
|
|
1436
1541
|
type ListActionsOptions = z.infer<typeof ListActionsSchema>;
|
|
1437
1542
|
|
|
@@ -1511,9 +1616,6 @@ declare const ListAppsSchema: z.ZodObject<{
|
|
|
1511
1616
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
1512
1617
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
1513
1618
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1514
|
-
_telemetry: z.ZodOptional<z.ZodObject<{
|
|
1515
|
-
isNested: z.ZodOptional<z.ZodBoolean>;
|
|
1516
|
-
}, z.core.$strip>>;
|
|
1517
1619
|
}, z.core.$strip>;
|
|
1518
1620
|
type ListAppsOptions = z.infer<typeof ListAppsSchema>;
|
|
1519
1621
|
interface ListAppsPage {
|
|
@@ -1586,8 +1688,8 @@ interface ZapierSdkApps {
|
|
|
1586
1688
|
}
|
|
1587
1689
|
|
|
1588
1690
|
declare const ListConnectionsQuerySchema: z.ZodObject<{
|
|
1589
|
-
search: z.ZodOptional<z.ZodString>;
|
|
1590
1691
|
title: z.ZodOptional<z.ZodString>;
|
|
1692
|
+
search: z.ZodOptional<z.ZodString>;
|
|
1591
1693
|
owner: z.ZodOptional<z.ZodString>;
|
|
1592
1694
|
appKey: z.ZodOptional<z.ZodString & {
|
|
1593
1695
|
_def: z.core.$ZodStringDef & PositionalMetadata;
|
|
@@ -1599,9 +1701,6 @@ declare const ListConnectionsQuerySchema: z.ZodObject<{
|
|
|
1599
1701
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
1600
1702
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
1601
1703
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1602
|
-
_telemetry: z.ZodOptional<z.ZodObject<{
|
|
1603
|
-
isNested: z.ZodOptional<z.ZodBoolean>;
|
|
1604
|
-
}, z.core.$strip>>;
|
|
1605
1704
|
}, z.core.$strip>;
|
|
1606
1705
|
type ListConnectionsOptions = z.infer<typeof ListConnectionsQuerySchema>;
|
|
1607
1706
|
interface ListConnectionsPage {
|
|
@@ -1734,9 +1833,6 @@ declare const ListClientCredentialsQuerySchema: z.ZodObject<{
|
|
|
1734
1833
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
1735
1834
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
1736
1835
|
cursor: z.ZodOptional<z.ZodString>;
|
|
1737
|
-
_telemetry: z.ZodOptional<z.ZodObject<{
|
|
1738
|
-
isNested: z.ZodOptional<z.ZodBoolean>;
|
|
1739
|
-
}, z.core.$strip>>;
|
|
1740
1836
|
}, z.core.$strip>;
|
|
1741
1837
|
type ListClientCredentialsOptions = z.infer<typeof ListClientCredentialsQuerySchema>;
|
|
1742
1838
|
interface ListClientCredentialsPage {
|
|
@@ -1763,12 +1859,9 @@ declare const listClientCredentialsPlugin: Plugin<{}, {
|
|
|
1763
1859
|
declare const CreateClientCredentialsSchema: z.ZodObject<{
|
|
1764
1860
|
name: z.ZodString;
|
|
1765
1861
|
allowedScopes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1766
|
-
external: "external";
|
|
1767
1862
|
credentials: "credentials";
|
|
1863
|
+
external: "external";
|
|
1768
1864
|
}>>>;
|
|
1769
|
-
_telemetry: z.ZodOptional<z.ZodObject<{
|
|
1770
|
-
isNested: z.ZodOptional<z.ZodBoolean>;
|
|
1771
|
-
}, z.core.$strip>>;
|
|
1772
1865
|
}, z.core.$strip>;
|
|
1773
1866
|
type CreateClientCredentialsOptions = z.infer<typeof CreateClientCredentialsSchema> & FunctionOptions;
|
|
1774
1867
|
interface CreateClientCredentialsResult {
|
|
@@ -1791,9 +1884,6 @@ declare const createClientCredentialsPlugin: Plugin<{}, {
|
|
|
1791
1884
|
|
|
1792
1885
|
declare const DeleteClientCredentialsSchema: z.ZodObject<{
|
|
1793
1886
|
clientId: z.ZodString;
|
|
1794
|
-
_telemetry: z.ZodOptional<z.ZodObject<{
|
|
1795
|
-
isNested: z.ZodOptional<z.ZodBoolean>;
|
|
1796
|
-
}, z.core.$strip>>;
|
|
1797
1887
|
}, z.core.$strip>;
|
|
1798
1888
|
type DeleteClientCredentialsOptions = z.infer<typeof DeleteClientCredentialsSchema> & FunctionOptions;
|
|
1799
1889
|
interface DeleteClientCredentialsResult {
|
|
@@ -1948,39 +2038,66 @@ RequestPluginProvides>;
|
|
|
1948
2038
|
* SDK-related types and interfaces
|
|
1949
2039
|
*/
|
|
1950
2040
|
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
2041
|
+
declare const BaseSdkOptionsSchema: z.ZodObject<{
|
|
2042
|
+
credentials: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
2043
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
2044
|
+
client_credentials: "client_credentials";
|
|
2045
|
+
}>>;
|
|
2046
|
+
clientId: z.ZodString;
|
|
2047
|
+
clientSecret: z.ZodString;
|
|
2048
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2049
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
2050
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2051
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
2052
|
+
pkce: "pkce";
|
|
2053
|
+
}>>;
|
|
2054
|
+
clientId: z.ZodString;
|
|
2055
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2056
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
2057
|
+
}, z.core.$strip>]>]>, z.ZodFunction<z.core.$ZodTuple<readonly [], z.core.$ZodFunctionOut>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
2058
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
2059
|
+
client_credentials: "client_credentials";
|
|
2060
|
+
}>>;
|
|
2061
|
+
clientId: z.ZodString;
|
|
2062
|
+
clientSecret: z.ZodString;
|
|
2063
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2064
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
2065
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2066
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
2067
|
+
pkce: "pkce";
|
|
2068
|
+
}>>;
|
|
2069
|
+
clientId: z.ZodString;
|
|
2070
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2071
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
2072
|
+
}, z.core.$strip>]>]>, z.ZodPromise<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
2073
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
2074
|
+
client_credentials: "client_credentials";
|
|
2075
|
+
}>>;
|
|
2076
|
+
clientId: z.ZodString;
|
|
2077
|
+
clientSecret: z.ZodString;
|
|
2078
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2079
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
2080
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2081
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
2082
|
+
pkce: "pkce";
|
|
2083
|
+
}>>;
|
|
2084
|
+
clientId: z.ZodString;
|
|
2085
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2086
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
2087
|
+
}, z.core.$strip>]>]>>]>>]>>;
|
|
2088
|
+
debug: z.ZodOptional<z.ZodBoolean>;
|
|
2089
|
+
baseUrl: z.ZodOptional<z.ZodString>;
|
|
2090
|
+
trackingBaseUrl: z.ZodOptional<z.ZodString>;
|
|
2091
|
+
maxNetworkRetries: z.ZodOptional<z.ZodNumber>;
|
|
2092
|
+
maxNetworkRetryDelayMs: z.ZodOptional<z.ZodNumber>;
|
|
2093
|
+
manifestPath: z.ZodOptional<z.ZodString>;
|
|
2094
|
+
manifest: z.ZodOptional<z.ZodCustom<Manifest, Manifest>>;
|
|
2095
|
+
onEvent: z.ZodOptional<z.ZodCustom<EventCallback, EventCallback>>;
|
|
2096
|
+
fetch: z.ZodOptional<z.ZodCustom<typeof fetch, typeof fetch>>;
|
|
2097
|
+
eventEmission: z.ZodOptional<z.ZodCustom<EventEmissionConfig, EventEmissionConfig>>;
|
|
2098
|
+
token: z.ZodOptional<z.ZodString>;
|
|
2099
|
+
}, z.core.$strip>;
|
|
2100
|
+
type BaseSdkOptions = z.infer<typeof BaseSdkOptionsSchema>;
|
|
1984
2101
|
|
|
1985
2102
|
interface FunctionRegistryEntry {
|
|
1986
2103
|
name: string;
|
|
@@ -2196,8 +2313,8 @@ type ConnectionItem$1 = z.infer<typeof ConnectionItemSchema>;
|
|
|
2196
2313
|
|
|
2197
2314
|
declare const ActionItemSchema: z.ZodObject<{
|
|
2198
2315
|
description: z.ZodString;
|
|
2199
|
-
key: z.ZodString;
|
|
2200
2316
|
id: z.ZodOptional<z.ZodString>;
|
|
2317
|
+
key: z.ZodString;
|
|
2201
2318
|
is_important: z.ZodOptional<z.ZodBoolean>;
|
|
2202
2319
|
is_hidden: z.ZodOptional<z.ZodBoolean>;
|
|
2203
2320
|
app_key: z.ZodString;
|
|
@@ -2829,4 +2946,4 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk
|
|
|
2829
2946
|
}>;
|
|
2830
2947
|
declare function createZapierSdk(options?: ZapierSdkOptions): ZapierSdk;
|
|
2831
2948
|
|
|
2832
|
-
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, type RateLimitInfo, RelayFetchSchema, RelayRequestSchema, type RequestPluginProvides, type ResolveAuthTokenOptions, type ResolveCredentialsOptions, type ResolvedCredentials, type RootFieldItem, type RunActionPluginProvides, type Sdk, type SdkEvent, type StaticResolver, 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_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZAPIER_TOKEN, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierError, type ZapierFetchInitOptions, ZapierNotFoundError, ZapierRateLimitError, 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 };
|
|
2949
|
+
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, BaseSdkOptionsSchema, type BatchOptions, type Choice, type ClientCredentialsObject, ClientCredentialsObjectSchema, type Connection, type ConnectionIdProperty, ConnectionIdPropertySchema, type ConnectionItem, type ConnectionsResponse, type CreateClientCredentialsPluginProvides, type Credentials, type CredentialsFunction, CredentialsFunctionSchema, type CredentialsObject, CredentialsObjectSchema, CredentialsSchema, 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, PkceCredentialsObjectSchema, type Plugin, type PluginDependencies, type PluginOptions, type PluginProvides, type PositionalMetadata, type RateLimitInfo, RelayFetchSchema, RelayRequestSchema, type RequestPluginProvides, type ResolveAuthTokenOptions, type ResolveCredentialsOptions, type ResolvedCredentials, ResolvedCredentialsSchema, type RootFieldItem, type RunActionPluginProvides, type Sdk, type SdkEvent, type StaticResolver, 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_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZAPIER_TOKEN, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierError, type ZapierFetchInitOptions, ZapierNotFoundError, ZapierRateLimitError, 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
|
@@ -38,6 +38,7 @@ export * from "./constants";
|
|
|
38
38
|
export { RelayRequestSchema, RelayFetchSchema, } from "./plugins/request/schemas";
|
|
39
39
|
export { createZapierSdk, createZapierSdkWithoutRegistry, createSdk, ZapierSdkOptions, } from "./sdk";
|
|
40
40
|
export type { FunctionRegistryEntry } from "./types/sdk";
|
|
41
|
+
export { BaseSdkOptionsSchema } from "./types/sdk";
|
|
41
42
|
export type { Plugin, PluginProvides, PluginDependencies, PluginOptions, GetSdkType, GetContextType, Sdk, } from "./types/plugin";
|
|
42
43
|
export { registryPlugin } from "./plugins/registry";
|
|
43
44
|
export type { ZapierSdk } from "./types/sdk";
|
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,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,EACV,aAAa,EACb,cAAc,EACd,cAAc,GACf,MAAM,sBAAsB,CAAC;AAG9B,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;
|
|
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,EACV,aAAa,EACb,cAAc,EACd,cAAc,GACf,MAAM,sBAAsB,CAAC;AAG9B,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;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAGnD,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
|
@@ -45,6 +45,7 @@ export * from "./constants";
|
|
|
45
45
|
export { RelayRequestSchema, RelayFetchSchema, } from "./plugins/request/schemas";
|
|
46
46
|
// Export the main combined SDK and new flexible SDK creator
|
|
47
47
|
export { createZapierSdk, createZapierSdkWithoutRegistry, createSdk, } from "./sdk";
|
|
48
|
+
export { BaseSdkOptionsSchema } from "./types/sdk";
|
|
48
49
|
// Export registry plugin for manual use
|
|
49
50
|
export { registryPlugin } from "./plugins/registry";
|
|
50
51
|
export { generateEventId, getCurrentTimestamp, getReleaseId, getOsInfo, getPlatformVersions, isCi, getCiPlatform, getMemoryUsage, getCpuTime, buildApplicationLifecycleEvent, buildErrorEventWithContext, buildErrorEvent, createBaseEvent, buildMethodCalledEvent, } from "./plugins/eventEmission";
|