@zapier/zapier-sdk 0.18.3 → 1.0.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 +17 -0
- package/README.md +1 -1
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +11 -24
- package/dist/api/client.test.js +82 -27
- package/dist/api/index.d.ts +3 -2
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +2 -3
- package/dist/api/schemas.d.ts +5 -114
- package/dist/api/schemas.d.ts.map +1 -1
- package/dist/api/schemas.js +0 -67
- package/dist/api/types.d.ts +10 -4
- package/dist/api/types.d.ts.map +1 -1
- package/dist/auth.d.ts +54 -26
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +211 -39
- package/dist/auth.test.js +338 -64
- package/dist/constants.d.ts +14 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +14 -0
- package/dist/credentials.d.ts +57 -0
- package/dist/credentials.d.ts.map +1 -0
- package/dist/credentials.js +174 -0
- package/dist/index.cjs +644 -685
- package/dist/index.d.mts +265 -134
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.mjs +624 -684
- package/dist/plugins/api/index.d.ts +2 -0
- package/dist/plugins/api/index.d.ts.map +1 -1
- package/dist/plugins/api/index.js +8 -4
- package/dist/plugins/eventEmission/index.d.ts.map +1 -1
- package/dist/plugins/eventEmission/index.js +1 -3
- package/dist/plugins/eventEmission/index.test.js +14 -17
- package/dist/plugins/getAction/schemas.d.ts +1 -1
- package/dist/plugins/getInputFieldsSchema/schemas.d.ts +1 -1
- package/dist/plugins/listActions/index.test.js +1 -0
- package/dist/plugins/listActions/schemas.d.ts +1 -1
- package/dist/plugins/listApps/index.d.ts +2 -8
- package/dist/plugins/listApps/index.d.ts.map +1 -1
- package/dist/plugins/listApps/index.js +4 -6
- package/dist/plugins/listApps/index.test.js +62 -82
- package/dist/plugins/listApps/schemas.d.ts +35 -14
- package/dist/plugins/listApps/schemas.d.ts.map +1 -1
- package/dist/plugins/listApps/schemas.js +44 -14
- package/dist/plugins/listAuthentications/index.test.js +16 -0
- package/dist/plugins/listInputFieldChoices/schemas.d.ts +1 -1
- package/dist/plugins/listInputFields/schemas.d.ts +1 -1
- package/dist/plugins/runAction/schemas.d.ts +1 -1
- package/dist/schemas/Action.d.ts +1 -1
- package/dist/schemas/App.d.ts +28 -28
- package/dist/schemas/App.d.ts.map +1 -1
- package/dist/schemas/App.js +3 -8
- package/dist/sdk.d.ts +2 -1
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.test.js +17 -13
- package/dist/types/credentials.d.ts +65 -0
- package/dist/types/credentials.d.ts.map +1 -0
- package/dist/types/credentials.js +42 -0
- package/dist/types/properties.d.ts +1 -1
- package/dist/types/sdk.d.ts +12 -3
- package/dist/types/sdk.d.ts.map +1 -1
- package/dist/utils/logging.d.ts +13 -0
- package/dist/utils/logging.d.ts.map +1 -0
- package/dist/utils/logging.js +20 -0
- package/package.json +2 -2
- package/dist/api/client.integration.test.d.ts +0 -5
- package/dist/api/client.integration.test.d.ts.map +0 -1
- package/dist/api/client.integration.test.js +0 -318
- package/dist/api/client.methods.test.d.ts +0 -2
- package/dist/api/client.methods.test.d.ts.map +0 -1
- package/dist/api/client.methods.test.js +0 -158
- package/dist/api/router.d.ts +0 -16
- package/dist/api/router.d.ts.map +0 -1
- package/dist/api/router.js +0 -31
- package/dist/api/router.test.d.ts +0 -2
- package/dist/api/router.test.d.ts.map +0 -1
- package/dist/api/router.test.js +0 -103
- package/dist/temporary-internal-core/handlers/listApps.d.ts +0 -67
- package/dist/temporary-internal-core/handlers/listApps.d.ts.map +0 -1
- package/dist/temporary-internal-core/handlers/listApps.js +0 -134
- package/dist/temporary-internal-core/handlers/listApps.test.d.ts +0 -2
- package/dist/temporary-internal-core/handlers/listApps.test.d.ts.map +0 -1
- package/dist/temporary-internal-core/handlers/listApps.test.js +0 -367
- package/dist/temporary-internal-core/index.d.ts +0 -18
- package/dist/temporary-internal-core/index.d.ts.map +0 -1
- package/dist/temporary-internal-core/index.js +0 -18
- package/dist/temporary-internal-core/schemas/apps/index.d.ts +0 -175
- package/dist/temporary-internal-core/schemas/apps/index.d.ts.map +0 -1
- package/dist/temporary-internal-core/schemas/apps/index.js +0 -97
- package/dist/temporary-internal-core/schemas/errors/index.d.ts +0 -139
- package/dist/temporary-internal-core/schemas/errors/index.d.ts.map +0 -1
- package/dist/temporary-internal-core/schemas/errors/index.js +0 -129
- package/dist/temporary-internal-core/schemas/implementations/index.d.ts +0 -127
- package/dist/temporary-internal-core/schemas/implementations/index.d.ts.map +0 -1
- package/dist/temporary-internal-core/schemas/implementations/index.js +0 -79
- package/dist/temporary-internal-core/types/handler.d.ts +0 -51
- package/dist/temporary-internal-core/types/handler.d.ts.map +0 -1
- package/dist/temporary-internal-core/types/handler.js +0 -8
- package/dist/temporary-internal-core/types/index.d.ts +0 -5
- package/dist/temporary-internal-core/types/index.d.ts.map +0 -1
- package/dist/temporary-internal-core/types/index.js +0 -4
- package/dist/temporary-internal-core/utils/app-locators.d.ts +0 -34
- package/dist/temporary-internal-core/utils/app-locators.d.ts.map +0 -1
- package/dist/temporary-internal-core/utils/app-locators.js +0 -39
- package/dist/temporary-internal-core/utils/string-utils.d.ts +0 -28
- package/dist/temporary-internal-core/utils/string-utils.d.ts.map +0 -1
- package/dist/temporary-internal-core/utils/string-utils.js +0 -52
- package/dist/temporary-internal-core/utils/transformations.d.ts +0 -18
- package/dist/temporary-internal-core/utils/transformations.d.ts.map +0 -1
- package/dist/temporary-internal-core/utils/transformations.js +0 -36
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { AuthenticationSchema, AuthenticationsResponseSchema, AuthenticationItem as AuthenticationItem$1, GetAuthenticationParam, GetAuthenticationResponse, GetAuthenticationParamSchema } from '@zapier/zapier-sdk-core/v0/schemas/authentications';
|
|
4
|
+
import { AppItem as AppItem$1 } from '@zapier/zapier-sdk-core/v0/schemas/apps';
|
|
4
5
|
import * as zod_v4_core from 'zod/v4/core';
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -380,6 +381,71 @@ interface EventEmissionProvides {
|
|
|
380
381
|
context: EventEmissionContext;
|
|
381
382
|
}
|
|
382
383
|
|
|
384
|
+
/**
|
|
385
|
+
* Credentials type definitions
|
|
386
|
+
*
|
|
387
|
+
* The credentials system provides a unified way to authenticate with Zapier APIs.
|
|
388
|
+
* It supports multiple credential types:
|
|
389
|
+
* - String: A token (JWT or API key) used directly
|
|
390
|
+
* - Client credentials: OAuth client ID + secret exchanged for a token
|
|
391
|
+
* - PKCE: OAuth client ID for interactive login (CLI only)
|
|
392
|
+
* - Function: Lazy/dynamic credential resolution
|
|
393
|
+
*/
|
|
394
|
+
/**
|
|
395
|
+
* Client credentials for OAuth client_credentials flow.
|
|
396
|
+
* The SDK will exchange these for an access token.
|
|
397
|
+
*/
|
|
398
|
+
interface ClientCredentialsObject {
|
|
399
|
+
type?: "client_credentials";
|
|
400
|
+
clientId: string;
|
|
401
|
+
clientSecret: string;
|
|
402
|
+
baseUrl?: string;
|
|
403
|
+
scope?: string;
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* PKCE credentials for interactive OAuth flow.
|
|
407
|
+
* Only works when @zapier/zapier-sdk-cli-login is available.
|
|
408
|
+
*/
|
|
409
|
+
interface PkceCredentialsObject {
|
|
410
|
+
type?: "pkce";
|
|
411
|
+
clientId: string;
|
|
412
|
+
baseUrl?: string;
|
|
413
|
+
scope?: string;
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* Union of all credential object types.
|
|
417
|
+
*/
|
|
418
|
+
type CredentialsObject = ClientCredentialsObject | PkceCredentialsObject;
|
|
419
|
+
/**
|
|
420
|
+
* Resolved credentials - what a credentials function must return.
|
|
421
|
+
* Either a string (token) or a credentials object.
|
|
422
|
+
* Functions are not allowed to return other functions.
|
|
423
|
+
*/
|
|
424
|
+
type ResolvedCredentials = string | CredentialsObject;
|
|
425
|
+
/**
|
|
426
|
+
* Credentials can be:
|
|
427
|
+
* - A string (token or API key)
|
|
428
|
+
* - A credentials object (client_credentials or pkce)
|
|
429
|
+
* - A function that returns credentials (sync or async)
|
|
430
|
+
*/
|
|
431
|
+
type Credentials = ResolvedCredentials | (() => ResolvedCredentials | Promise<ResolvedCredentials>);
|
|
432
|
+
/**
|
|
433
|
+
* Type guard for client credentials objects.
|
|
434
|
+
*/
|
|
435
|
+
declare function isClientCredentials(credentials: ResolvedCredentials): credentials is ClientCredentialsObject;
|
|
436
|
+
/**
|
|
437
|
+
* Type guard for PKCE credentials objects.
|
|
438
|
+
*/
|
|
439
|
+
declare function isPkceCredentials(credentials: ResolvedCredentials): credentials is PkceCredentialsObject;
|
|
440
|
+
/**
|
|
441
|
+
* Type guard for credentials objects (either type).
|
|
442
|
+
*/
|
|
443
|
+
declare function isCredentialsObject(credentials: ResolvedCredentials): credentials is CredentialsObject;
|
|
444
|
+
/**
|
|
445
|
+
* Type guard for credentials functions.
|
|
446
|
+
*/
|
|
447
|
+
declare function isCredentialsFunction(credentials: Credentials): credentials is () => ResolvedCredentials | Promise<ResolvedCredentials>;
|
|
448
|
+
|
|
383
449
|
declare const NeedSchema: z.ZodObject<{
|
|
384
450
|
key: z.ZodString;
|
|
385
451
|
alters_custom_fields: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -1121,6 +1187,7 @@ interface ApiPluginOptions extends BaseSdkOptions {
|
|
|
1121
1187
|
interface ApiPluginProvides {
|
|
1122
1188
|
context: {
|
|
1123
1189
|
api: ApiClient;
|
|
1190
|
+
resolveCredentials: () => Promise<ResolvedCredentials | undefined>;
|
|
1124
1191
|
};
|
|
1125
1192
|
}
|
|
1126
1193
|
declare const apiPlugin: Plugin<{}, {}, ApiPluginProvides>;
|
|
@@ -1362,23 +1429,29 @@ declare const GetAppSchema: z.ZodObject<{
|
|
|
1362
1429
|
type GetAppOptions = z.infer<typeof GetAppSchema>;
|
|
1363
1430
|
|
|
1364
1431
|
/**
|
|
1365
|
-
*
|
|
1432
|
+
* Plugin schemas for listApps
|
|
1366
1433
|
*
|
|
1367
|
-
*
|
|
1368
|
-
* -
|
|
1369
|
-
*
|
|
1370
|
-
*
|
|
1434
|
+
* Imports base query schema from @zapier/zapier-sdk-core (sdkapi) and extends
|
|
1435
|
+
* with SDK-specific options.
|
|
1436
|
+
*
|
|
1437
|
+
* Note: The sdkapi endpoint uses ListAppsQuerySchema (HTTP query params),
|
|
1438
|
+
* but the SDK exposes ListAppsSchema (user-friendly options):
|
|
1439
|
+
* - ListAppsOptions accepts `appKeys` as array, `cursor`, `maxItems`
|
|
1440
|
+
* - ListAppsQuery accepts `appKeys` as comma-separated string, `offset`
|
|
1441
|
+
* - The plugin transforms between these formats
|
|
1371
1442
|
*/
|
|
1372
1443
|
|
|
1373
1444
|
/**
|
|
1374
|
-
*
|
|
1445
|
+
* SDK user-facing options for listApps
|
|
1375
1446
|
*
|
|
1376
|
-
*
|
|
1377
|
-
*
|
|
1447
|
+
* Extends ListAppsQuerySchema from zapier-sdk-core with SDK-specific options:
|
|
1448
|
+
* - appKeys: array (not comma-separated string)
|
|
1449
|
+
* - cursor: pagination cursor (not offset)
|
|
1450
|
+
* - maxItems: SDK-specific pagination limit
|
|
1378
1451
|
*/
|
|
1379
|
-
declare const
|
|
1380
|
-
appKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1452
|
+
declare const ListAppsSchema: z.ZodObject<{
|
|
1381
1453
|
search: z.ZodOptional<z.ZodString>;
|
|
1454
|
+
appKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1382
1455
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
1383
1456
|
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
1384
1457
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -1386,80 +1459,20 @@ declare const ListAppsOptionsSchema: z.ZodObject<{
|
|
|
1386
1459
|
isNested: z.ZodOptional<z.ZodBoolean>;
|
|
1387
1460
|
}, z.core.$strip>>;
|
|
1388
1461
|
}, z.core.$strip>;
|
|
1389
|
-
type ListAppsOptions = z.infer<typeof
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
declare const AppItemSchema$1: z.ZodObject<{
|
|
1395
|
-
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1396
|
-
id: z.ZodNumber;
|
|
1397
|
-
name: z.ZodString;
|
|
1398
|
-
slug: z.ZodString;
|
|
1399
|
-
}, z.core.$strip>>>;
|
|
1400
|
-
actions: z.ZodOptional<z.ZodObject<{
|
|
1401
|
-
read: z.ZodOptional<z.ZodNumber>;
|
|
1402
|
-
read_bulk: z.ZodOptional<z.ZodNumber>;
|
|
1403
|
-
write: z.ZodOptional<z.ZodNumber>;
|
|
1404
|
-
search: z.ZodOptional<z.ZodNumber>;
|
|
1405
|
-
search_or_write: z.ZodOptional<z.ZodNumber>;
|
|
1406
|
-
search_and_write: z.ZodOptional<z.ZodNumber>;
|
|
1407
|
-
filter: z.ZodOptional<z.ZodNumber>;
|
|
1408
|
-
}, z.core.$strip>>;
|
|
1409
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1410
|
-
is_hidden: z.ZodOptional<z.ZodBoolean>;
|
|
1411
|
-
age_in_days: z.ZodOptional<z.ZodNumber>;
|
|
1412
|
-
api_docs_url: z.ZodOptional<z.ZodString>;
|
|
1413
|
-
banner: z.ZodOptional<z.ZodString>;
|
|
1414
|
-
image: z.ZodOptional<z.ZodString>;
|
|
1415
|
-
images: z.ZodOptional<z.ZodObject<{
|
|
1416
|
-
url_16x16: z.ZodOptional<z.ZodString>;
|
|
1417
|
-
url_32x32: z.ZodOptional<z.ZodString>;
|
|
1418
|
-
url_64x64: z.ZodOptional<z.ZodString>;
|
|
1419
|
-
url_128x128: z.ZodOptional<z.ZodString>;
|
|
1420
|
-
}, z.core.$strip>>;
|
|
1421
|
-
is_beta: z.ZodOptional<z.ZodBoolean>;
|
|
1422
|
-
is_built_in: z.ZodOptional<z.ZodBoolean>;
|
|
1423
|
-
is_featured: z.ZodOptional<z.ZodBoolean>;
|
|
1424
|
-
is_premium: z.ZodOptional<z.ZodBoolean>;
|
|
1425
|
-
is_public: z.ZodOptional<z.ZodBoolean>;
|
|
1426
|
-
is_upcoming: z.ZodOptional<z.ZodBoolean>;
|
|
1427
|
-
popularity: z.ZodOptional<z.ZodNumber>;
|
|
1428
|
-
primary_color: z.ZodOptional<z.ZodString>;
|
|
1429
|
-
slug: z.ZodString;
|
|
1430
|
-
auth_type: z.ZodOptional<z.ZodString>;
|
|
1431
|
-
is_deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
1432
|
-
secondary_color: z.ZodOptional<z.ZodString>;
|
|
1433
|
-
has_filters: z.ZodOptional<z.ZodBoolean>;
|
|
1434
|
-
has_reads: z.ZodOptional<z.ZodBoolean>;
|
|
1435
|
-
has_searches: z.ZodOptional<z.ZodBoolean>;
|
|
1436
|
-
has_searches_or_writes: z.ZodOptional<z.ZodBoolean>;
|
|
1437
|
-
has_upfront_fields: z.ZodOptional<z.ZodBoolean>;
|
|
1438
|
-
has_writes: z.ZodOptional<z.ZodBoolean>;
|
|
1439
|
-
is_invite: z.ZodOptional<z.ZodBoolean>;
|
|
1440
|
-
visibility: z.ZodOptional<z.ZodString>;
|
|
1441
|
-
classification: z.ZodOptional<z.ZodString>;
|
|
1442
|
-
title: z.ZodString;
|
|
1443
|
-
key: z.ZodString;
|
|
1444
|
-
implementation_id: z.ZodString;
|
|
1445
|
-
version: z.ZodOptional<z.ZodString>;
|
|
1446
|
-
}, z.core.$strip>;
|
|
1447
|
-
type AppItem$1 = z.infer<typeof AppItemSchema$1>;
|
|
1462
|
+
type ListAppsOptions = z.infer<typeof ListAppsSchema>;
|
|
1463
|
+
interface ListAppsPage {
|
|
1464
|
+
data: AppItem$1[];
|
|
1465
|
+
nextCursor?: string;
|
|
1466
|
+
}
|
|
1448
1467
|
|
|
1449
1468
|
interface ListAppsPluginProvides {
|
|
1450
|
-
listApps: (options?: ListAppsOptions) => Promise<{
|
|
1451
|
-
data: AppItem$1[];
|
|
1452
|
-
nextCursor?: string;
|
|
1453
|
-
}> & AsyncIterable<{
|
|
1454
|
-
data: AppItem$1[];
|
|
1455
|
-
nextCursor?: string;
|
|
1456
|
-
}> & {
|
|
1469
|
+
listApps: (options?: ListAppsOptions) => Promise<ListAppsPage> & AsyncIterable<ListAppsPage> & {
|
|
1457
1470
|
items(): AsyncIterable<AppItem$1>;
|
|
1458
1471
|
};
|
|
1459
1472
|
context: {
|
|
1460
1473
|
meta: {
|
|
1461
1474
|
listApps: {
|
|
1462
|
-
inputSchema: typeof
|
|
1475
|
+
inputSchema: typeof ListAppsSchema;
|
|
1463
1476
|
};
|
|
1464
1477
|
};
|
|
1465
1478
|
};
|
|
@@ -1719,13 +1732,21 @@ interface ListInputFieldChoicesPluginProvides {
|
|
|
1719
1732
|
*/
|
|
1720
1733
|
|
|
1721
1734
|
interface BaseSdkOptions {
|
|
1735
|
+
/**
|
|
1736
|
+
* Authentication credentials. Can be:
|
|
1737
|
+
* - A string (token or API key)
|
|
1738
|
+
* - An object with clientId/clientSecret for client_credentials flow
|
|
1739
|
+
* - An object with clientId (no secret) for PKCE flow
|
|
1740
|
+
* - A function returning any of the above
|
|
1741
|
+
*/
|
|
1742
|
+
credentials?: Credentials;
|
|
1743
|
+
/**
|
|
1744
|
+
* @deprecated Use `credentials` instead.
|
|
1745
|
+
*/
|
|
1722
1746
|
token?: string;
|
|
1723
|
-
getToken?: () => Promise<string | undefined>;
|
|
1724
1747
|
onEvent?: EventCallback;
|
|
1725
1748
|
fetch?: typeof fetch;
|
|
1726
1749
|
baseUrl?: string;
|
|
1727
|
-
authBaseUrl?: string;
|
|
1728
|
-
authClientId?: string;
|
|
1729
1750
|
trackingBaseUrl?: string;
|
|
1730
1751
|
debug?: boolean;
|
|
1731
1752
|
manifestPath?: string;
|
|
@@ -1850,57 +1871,57 @@ interface PositionalMetadata {
|
|
|
1850
1871
|
declare function isPositional(schema: z.ZodType): boolean;
|
|
1851
1872
|
|
|
1852
1873
|
declare const AppItemSchema: z.ZodObject<{
|
|
1874
|
+
slug: z.ZodString;
|
|
1875
|
+
age_in_days: z.ZodOptional<z.ZodNumber>;
|
|
1876
|
+
auth_type: z.ZodOptional<z.ZodString>;
|
|
1877
|
+
banner: z.ZodOptional<z.ZodString>;
|
|
1853
1878
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1854
1879
|
id: z.ZodNumber;
|
|
1855
1880
|
name: z.ZodString;
|
|
1856
1881
|
slug: z.ZodString;
|
|
1857
1882
|
}, z.core.$strip>>>;
|
|
1858
|
-
actions: z.ZodOptional<z.ZodObject<{
|
|
1859
|
-
read: z.ZodOptional<z.ZodNumber>;
|
|
1860
|
-
read_bulk: z.ZodOptional<z.ZodNumber>;
|
|
1861
|
-
write: z.ZodOptional<z.ZodNumber>;
|
|
1862
|
-
search: z.ZodOptional<z.ZodNumber>;
|
|
1863
|
-
search_or_write: z.ZodOptional<z.ZodNumber>;
|
|
1864
|
-
search_and_write: z.ZodOptional<z.ZodNumber>;
|
|
1865
|
-
filter: z.ZodOptional<z.ZodNumber>;
|
|
1866
|
-
}, z.core.$strip>>;
|
|
1867
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1868
|
-
is_hidden: z.ZodOptional<z.ZodBoolean>;
|
|
1869
|
-
age_in_days: z.ZodOptional<z.ZodNumber>;
|
|
1870
|
-
api_docs_url: z.ZodOptional<z.ZodString>;
|
|
1871
|
-
banner: z.ZodOptional<z.ZodString>;
|
|
1872
|
-
image: z.ZodOptional<z.ZodString>;
|
|
1873
1883
|
images: z.ZodOptional<z.ZodObject<{
|
|
1874
1884
|
url_16x16: z.ZodOptional<z.ZodString>;
|
|
1875
1885
|
url_32x32: z.ZodOptional<z.ZodString>;
|
|
1876
1886
|
url_64x64: z.ZodOptional<z.ZodString>;
|
|
1877
1887
|
url_128x128: z.ZodOptional<z.ZodString>;
|
|
1878
1888
|
}, z.core.$strip>>;
|
|
1879
|
-
is_beta: z.ZodOptional<z.ZodBoolean>;
|
|
1880
|
-
is_built_in: z.ZodOptional<z.ZodBoolean>;
|
|
1881
|
-
is_featured: z.ZodOptional<z.ZodBoolean>;
|
|
1882
|
-
is_premium: z.ZodOptional<z.ZodBoolean>;
|
|
1883
|
-
is_public: z.ZodOptional<z.ZodBoolean>;
|
|
1884
|
-
is_upcoming: z.ZodOptional<z.ZodBoolean>;
|
|
1885
1889
|
popularity: z.ZodOptional<z.ZodNumber>;
|
|
1886
|
-
primary_color: z.ZodOptional<z.ZodString>;
|
|
1887
|
-
slug: z.ZodString;
|
|
1888
|
-
auth_type: z.ZodOptional<z.ZodString>;
|
|
1889
|
-
is_deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
1890
|
-
secondary_color: z.ZodOptional<z.ZodString>;
|
|
1891
1890
|
has_filters: z.ZodOptional<z.ZodBoolean>;
|
|
1892
1891
|
has_reads: z.ZodOptional<z.ZodBoolean>;
|
|
1893
1892
|
has_searches: z.ZodOptional<z.ZodBoolean>;
|
|
1894
1893
|
has_searches_or_writes: z.ZodOptional<z.ZodBoolean>;
|
|
1895
1894
|
has_upfront_fields: z.ZodOptional<z.ZodBoolean>;
|
|
1896
1895
|
has_writes: z.ZodOptional<z.ZodBoolean>;
|
|
1896
|
+
is_beta: z.ZodOptional<z.ZodBoolean>;
|
|
1897
|
+
is_built_in: z.ZodOptional<z.ZodBoolean>;
|
|
1898
|
+
is_deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
1899
|
+
is_featured: z.ZodOptional<z.ZodBoolean>;
|
|
1900
|
+
is_hidden: z.ZodOptional<z.ZodBoolean>;
|
|
1897
1901
|
is_invite: z.ZodOptional<z.ZodBoolean>;
|
|
1898
|
-
|
|
1902
|
+
is_premium: z.ZodOptional<z.ZodBoolean>;
|
|
1903
|
+
is_public: z.ZodOptional<z.ZodBoolean>;
|
|
1904
|
+
is_upcoming: z.ZodOptional<z.ZodBoolean>;
|
|
1899
1905
|
visibility: z.ZodOptional<z.ZodString>;
|
|
1906
|
+
actions: z.ZodOptional<z.ZodObject<{
|
|
1907
|
+
read: z.ZodOptional<z.ZodNumber>;
|
|
1908
|
+
read_bulk: z.ZodOptional<z.ZodNumber>;
|
|
1909
|
+
write: z.ZodOptional<z.ZodNumber>;
|
|
1910
|
+
search: z.ZodOptional<z.ZodNumber>;
|
|
1911
|
+
search_or_write: z.ZodOptional<z.ZodNumber>;
|
|
1912
|
+
search_and_write: z.ZodOptional<z.ZodNumber>;
|
|
1913
|
+
filter: z.ZodOptional<z.ZodNumber>;
|
|
1914
|
+
}, z.core.$strip>>;
|
|
1915
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1916
|
+
primary_color: z.ZodOptional<z.ZodString>;
|
|
1917
|
+
secondary_color: z.ZodOptional<z.ZodString>;
|
|
1900
1918
|
classification: z.ZodOptional<z.ZodString>;
|
|
1919
|
+
api_docs_url: z.ZodOptional<z.ZodString>;
|
|
1920
|
+
image: z.ZodOptional<z.ZodString>;
|
|
1901
1921
|
title: z.ZodString;
|
|
1902
1922
|
key: z.ZodString;
|
|
1903
1923
|
implementation_id: z.ZodString;
|
|
1924
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1904
1925
|
}, z.core.$strip>;
|
|
1905
1926
|
|
|
1906
1927
|
declare const AuthenticationItemSchema: z.ZodObject<{
|
|
@@ -2200,52 +2221,147 @@ declare const inputFieldKeyResolver: DynamicResolver<InputFieldItem$1, {
|
|
|
2200
2221
|
* SDK Authentication Utilities
|
|
2201
2222
|
*
|
|
2202
2223
|
* This module provides SDK-level authentication utilities focused
|
|
2203
|
-
*
|
|
2204
|
-
*
|
|
2224
|
+
* on token acquisition. It uses the credentials system for resolution
|
|
2225
|
+
* and handles different credential types appropriately.
|
|
2226
|
+
*
|
|
2227
|
+
* CLI-specific functionality like login/logout is handled by the
|
|
2228
|
+
* @zapier/zapier-sdk-cli-login package.
|
|
2205
2229
|
*/
|
|
2206
2230
|
|
|
2207
|
-
|
|
2231
|
+
/**
|
|
2232
|
+
* Options for resolving auth tokens.
|
|
2233
|
+
*/
|
|
2234
|
+
interface ResolveAuthTokenOptions {
|
|
2235
|
+
credentials?: Credentials;
|
|
2236
|
+
/** @deprecated Use `credentials` instead */
|
|
2237
|
+
token?: string;
|
|
2208
2238
|
onEvent?: EventCallback;
|
|
2209
2239
|
fetch?: typeof globalThis.fetch;
|
|
2210
2240
|
baseUrl?: string;
|
|
2211
|
-
authBaseUrl?: string;
|
|
2212
|
-
authClientId?: string;
|
|
2213
|
-
}
|
|
2214
|
-
interface ResolveAuthTokenOptions extends AuthOptions {
|
|
2215
|
-
token?: string;
|
|
2216
|
-
getToken?: () => Promise<string | undefined> | string | undefined;
|
|
2217
2241
|
}
|
|
2218
2242
|
/**
|
|
2219
|
-
*
|
|
2220
|
-
* Returns undefined if not set.
|
|
2243
|
+
* Clear the token cache. Useful for testing or forcing re-authentication.
|
|
2221
2244
|
*/
|
|
2222
|
-
declare function
|
|
2245
|
+
declare function clearTokenCache(): void;
|
|
2246
|
+
/**
|
|
2247
|
+
* Invalidate a cached token. Called when we get a 401 response.
|
|
2248
|
+
*/
|
|
2249
|
+
declare function invalidateCachedToken(clientId: string): void;
|
|
2250
|
+
/**
|
|
2251
|
+
* Options for getTokenFromCliLogin.
|
|
2252
|
+
*/
|
|
2253
|
+
interface CliLoginOptions {
|
|
2254
|
+
onEvent?: EventCallback;
|
|
2255
|
+
fetch?: typeof globalThis.fetch;
|
|
2256
|
+
credentials?: {
|
|
2257
|
+
type?: "pkce";
|
|
2258
|
+
clientId: string;
|
|
2259
|
+
baseUrl?: string;
|
|
2260
|
+
scope?: string;
|
|
2261
|
+
};
|
|
2262
|
+
}
|
|
2223
2263
|
/**
|
|
2224
2264
|
* Attempts to get a token by optionally importing from CLI login package.
|
|
2225
2265
|
* This provides a graceful fallback when the CLI login package is not available.
|
|
2226
2266
|
*
|
|
2227
2267
|
* Returns undefined if no valid token is found or CLI package is not available.
|
|
2228
2268
|
*/
|
|
2229
|
-
declare function getTokenFromCliLogin(options
|
|
2269
|
+
declare function getTokenFromCliLogin(options: CliLoginOptions): Promise<string | undefined>;
|
|
2230
2270
|
/**
|
|
2231
|
-
*
|
|
2232
|
-
*
|
|
2233
|
-
*
|
|
2271
|
+
* Resolves an auth token from wherever it can be found.
|
|
2272
|
+
*
|
|
2273
|
+
* Resolution order:
|
|
2274
|
+
* 1. Explicit credentials option (or deprecated token option)
|
|
2275
|
+
* 2. Environment variables
|
|
2276
|
+
* 3. CLI login package (if available)
|
|
2277
|
+
*
|
|
2278
|
+
* For different credential types:
|
|
2279
|
+
* - String: Used directly as the token
|
|
2280
|
+
* - Client credentials: Exchanged for an access token (with caching)
|
|
2281
|
+
* - PKCE: Delegates to CLI login (throws if not available)
|
|
2234
2282
|
*
|
|
2235
2283
|
* Returns undefined if no valid token is found.
|
|
2236
2284
|
*/
|
|
2237
|
-
declare function
|
|
2285
|
+
declare function resolveAuthToken(options?: ResolveAuthTokenOptions): Promise<string | undefined>;
|
|
2286
|
+
/**
|
|
2287
|
+
* Invalidate the cached token for the given credentials, if applicable.
|
|
2288
|
+
* This is called when we receive a 401 response, indicating the token
|
|
2289
|
+
* is no longer valid. Only affects client_credentials flow tokens.
|
|
2290
|
+
*/
|
|
2291
|
+
declare function invalidateCredentialsToken(options: {
|
|
2292
|
+
credentials?: Credentials;
|
|
2293
|
+
token?: string;
|
|
2294
|
+
}): Promise<void>;
|
|
2295
|
+
|
|
2238
2296
|
/**
|
|
2239
|
-
*
|
|
2240
|
-
* 1. Explicitly provided token in options
|
|
2241
|
-
* 2. Token from getToken callback in options
|
|
2242
|
-
* 3. ZAPIER_TOKEN environment variable
|
|
2243
|
-
* 4. CLI login package (if available)
|
|
2297
|
+
* Credentials Resolution
|
|
2244
2298
|
*
|
|
2245
|
-
* This
|
|
2246
|
-
*
|
|
2299
|
+
* This module provides the core logic for resolving credentials from various sources:
|
|
2300
|
+
* - Explicit credentials option
|
|
2301
|
+
* - Deprecated token option
|
|
2302
|
+
* - Environment variables (new and deprecated)
|
|
2303
|
+
* - CLI login stored tokens
|
|
2247
2304
|
*/
|
|
2248
|
-
|
|
2305
|
+
|
|
2306
|
+
/**
|
|
2307
|
+
* Options for resolving credentials.
|
|
2308
|
+
*/
|
|
2309
|
+
interface ResolveCredentialsOptions {
|
|
2310
|
+
credentials?: Credentials;
|
|
2311
|
+
/** @deprecated Use `credentials` instead */
|
|
2312
|
+
token?: string;
|
|
2313
|
+
/** SDK base URL - used to derive auth base URL if not specified in credentials */
|
|
2314
|
+
baseUrl?: string;
|
|
2315
|
+
}
|
|
2316
|
+
/**
|
|
2317
|
+
* Resolve credentials from environment variables.
|
|
2318
|
+
*
|
|
2319
|
+
* Precedence:
|
|
2320
|
+
* 1. ZAPIER_CREDENTIALS (string token)
|
|
2321
|
+
* 2. ZAPIER_CREDENTIALS_CLIENT_ID + ZAPIER_CREDENTIALS_CLIENT_SECRET (client credentials)
|
|
2322
|
+
* 3. ZAPIER_CREDENTIALS_CLIENT_ID alone (PKCE)
|
|
2323
|
+
* 4. Deprecated ZAPIER_TOKEN, ZAPIER_AUTH_* vars (with warnings)
|
|
2324
|
+
*
|
|
2325
|
+
* @param sdkBaseUrl - SDK base URL used to derive auth base URL if not specified
|
|
2326
|
+
*/
|
|
2327
|
+
declare function resolveCredentialsFromEnv(sdkBaseUrl?: string): ResolvedCredentials | undefined;
|
|
2328
|
+
/**
|
|
2329
|
+
* Resolve credentials from all possible sources.
|
|
2330
|
+
*
|
|
2331
|
+
* Precedence:
|
|
2332
|
+
* 1. Explicit credentials option
|
|
2333
|
+
* 2. Deprecated token option (with warning)
|
|
2334
|
+
* 3. Environment variables
|
|
2335
|
+
* 4. CLI login stored token (handled separately in auth.ts)
|
|
2336
|
+
*
|
|
2337
|
+
* If credentials is a function, it is called and must return
|
|
2338
|
+
* a string or credentials object (not another function).
|
|
2339
|
+
*
|
|
2340
|
+
* The baseUrl option is used to derive the auth base URL if not
|
|
2341
|
+
* specified in credentials.
|
|
2342
|
+
*/
|
|
2343
|
+
declare function resolveCredentials(options?: ResolveCredentialsOptions): Promise<ResolvedCredentials | undefined>;
|
|
2344
|
+
/**
|
|
2345
|
+
* Extract the base URL from credentials for use in auth flows.
|
|
2346
|
+
*/
|
|
2347
|
+
declare function getBaseUrlFromCredentials(credentials: ResolvedCredentials | undefined): string | undefined;
|
|
2348
|
+
/**
|
|
2349
|
+
* Extract the client ID from credentials for use in auth flows.
|
|
2350
|
+
*/
|
|
2351
|
+
declare function getClientIdFromCredentials(credentials: ResolvedCredentials | undefined): string | undefined;
|
|
2352
|
+
|
|
2353
|
+
/**
|
|
2354
|
+
* Logging utilities for the SDK
|
|
2355
|
+
*/
|
|
2356
|
+
/**
|
|
2357
|
+
* Log a deprecation warning. Each unique message is only logged once per process.
|
|
2358
|
+
*/
|
|
2359
|
+
declare function logDeprecation(message: string): void;
|
|
2360
|
+
/**
|
|
2361
|
+
* Reset the set of logged deprecation warnings.
|
|
2362
|
+
* Useful for testing.
|
|
2363
|
+
*/
|
|
2364
|
+
declare function resetDeprecationWarnings(): void;
|
|
2249
2365
|
|
|
2250
2366
|
/**
|
|
2251
2367
|
* SDK Constants
|
|
@@ -2260,6 +2376,20 @@ declare const ZAPIER_BASE_URL: string;
|
|
|
2260
2376
|
* Maximum number of items that can be requested per page across all paginated functions
|
|
2261
2377
|
*/
|
|
2262
2378
|
declare const MAX_PAGE_LIMIT = 10000;
|
|
2379
|
+
/**
|
|
2380
|
+
* Credentials from environment variables
|
|
2381
|
+
*/
|
|
2382
|
+
declare const ZAPIER_CREDENTIALS: string | undefined;
|
|
2383
|
+
declare const ZAPIER_CREDENTIALS_CLIENT_ID: string | undefined;
|
|
2384
|
+
declare const ZAPIER_CREDENTIALS_CLIENT_SECRET: string | undefined;
|
|
2385
|
+
declare const ZAPIER_CREDENTIALS_BASE_URL: string | undefined;
|
|
2386
|
+
declare const ZAPIER_CREDENTIALS_SCOPE: string | undefined;
|
|
2387
|
+
/**
|
|
2388
|
+
* Deprecated environment variables (kept for backwards compatibility)
|
|
2389
|
+
*/
|
|
2390
|
+
declare const ZAPIER_TOKEN: string | undefined;
|
|
2391
|
+
declare const ZAPIER_AUTH_BASE_URL: string | undefined;
|
|
2392
|
+
declare const ZAPIER_AUTH_CLIENT_ID: string | undefined;
|
|
2263
2393
|
|
|
2264
2394
|
interface ZapierSdkOptions extends BaseSdkOptions {
|
|
2265
2395
|
}
|
|
@@ -2277,6 +2407,7 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk
|
|
|
2277
2407
|
meta: Record<string, PluginMeta>;
|
|
2278
2408
|
} & EventEmissionContext & {
|
|
2279
2409
|
api: ApiClient;
|
|
2410
|
+
resolveCredentials: () => Promise<ResolvedCredentials | undefined>;
|
|
2280
2411
|
} & {
|
|
2281
2412
|
getVersionedImplementationId: GetVersionedImplementationId;
|
|
2282
2413
|
resolveAppKeys: ResolveAppKeys;
|
|
@@ -2306,7 +2437,7 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk
|
|
|
2306
2437
|
} & {
|
|
2307
2438
|
meta: {
|
|
2308
2439
|
listApps: {
|
|
2309
|
-
inputSchema: typeof
|
|
2440
|
+
inputSchema: typeof ListAppsSchema;
|
|
2310
2441
|
};
|
|
2311
2442
|
};
|
|
2312
2443
|
} & {
|
|
@@ -2404,4 +2535,4 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk
|
|
|
2404
2535
|
}>;
|
|
2405
2536
|
declare function createZapierSdk(options?: ZapierSdkOptions): ZapierSdk;
|
|
2406
2537
|
|
|
2407
|
-
export { type Action, type ActionEntry, type ActionExecutionOptions, type ActionExecutionResult, type ActionField, type ActionFieldChoice, type ActionItem$1 as ActionItem, type ActionKeyProperty, ActionKeyPropertySchema, 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
|
|
2538
|
+
export { type Action, type ActionEntry, type ActionExecutionOptions, type ActionExecutionResult, type ActionField, type ActionFieldChoice, type ActionItem$1 as ActionItem, type ActionKeyProperty, ActionKeyPropertySchema, 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 Authentication, type AuthenticationIdProperty, AuthenticationIdPropertySchema, type AuthenticationItem, type AuthenticationsResponse, type BaseEvent, type BatchOptions, type Choice, type ClientCredentialsObject, type Credentials, type CredentialsObject, DEFAULT_CONFIG_PATH, type DebugProperty, DebugPropertySchema, type EnhancedErrorEventData, type ErrorOptions, type EventCallback, type EventContext, type EventEmissionContext, type FetchPluginProvides, type Field, type FieldsetItem, type FindFirstAuthenticationPluginProvides, type FindUniqueAuthenticationPluginProvides, type FormatMetadata, type FormattedItem, type FunctionOptions, type FunctionRegistryEntry, type GetActionPluginProvides, type GetAppPluginProvides, type GetAuthenticationPluginProvides, type GetContextType, type GetProfilePluginProvides, type GetSdkType, type InfoFieldItem, type InputFieldItem, type InputsProperty, InputsPropertySchema, type LimitProperty, LimitPropertySchema, type ListActionsPluginProvides, type ListAppsPluginProvides, type ListAuthenticationsPluginProvides, 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, authenticationIdGenericResolver, authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, clearTokenCache, createBaseEvent, createFunction, createSdk, createZapierSdk, createZapierSdkWithoutRegistry, fetchPlugin, findFirstAuthenticationPlugin, findManifestEntry, findUniqueAuthenticationPlugin, formatErrorMessage, generateEventId, getActionPlugin, getAppPlugin, getAuthenticationPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTokenFromCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionsPlugin, listAppsPlugin, listAuthenticationsPlugin, listInputFieldsPlugin, logDeprecation, manifestPlugin, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, toSnakeCase, toTitleCase };
|
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,9 @@ export { batch } from "./utils/batch-utils";
|
|
|
27
27
|
export type { BatchOptions } from "./utils/batch-utils";
|
|
28
28
|
export * from "./resolvers";
|
|
29
29
|
export * from "./auth";
|
|
30
|
+
export * from "./credentials";
|
|
31
|
+
export * from "./types/credentials";
|
|
32
|
+
export { logDeprecation, resetDeprecationWarnings } from "./utils/logging";
|
|
30
33
|
export * from "./constants";
|
|
31
34
|
export { RelayRequestSchema, RelayFetchSchema, } from "./plugins/request/schemas";
|
|
32
35
|
export { createZapierSdk, createZapierSdkWithoutRegistry, createSdk, ZapierSdkOptions, } from "./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,+BAA+B,CAAC;AAC9C,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAA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 +30,11 @@ export { batch } from "./utils/batch-utils";
|
|
|
30
30
|
export * from "./resolvers";
|
|
31
31
|
// Export auth utilities for CLI use
|
|
32
32
|
export * from "./auth";
|
|
33
|
+
// Export credentials types and utilities
|
|
34
|
+
export * from "./credentials";
|
|
35
|
+
export * from "./types/credentials";
|
|
36
|
+
// Export logging utilities
|
|
37
|
+
export { logDeprecation, resetDeprecationWarnings } from "./utils/logging";
|
|
33
38
|
// Export constants
|
|
34
39
|
export * from "./constants";
|
|
35
40
|
// All functions now available through the plugin system via createZapierSdk()
|