@zapier/zapier-sdk 0.18.1 → 0.18.3
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 +17 -17
- package/dist/api/router.d.ts.map +1 -1
- package/dist/api/router.js +1 -7
- package/dist/api/router.test.js +1 -7
- package/dist/api/schemas.d.ts +0 -49
- package/dist/api/schemas.d.ts.map +1 -1
- package/dist/api/schemas.js +0 -28
- package/dist/api/types.d.ts +2 -1
- package/dist/api/types.d.ts.map +1 -1
- package/dist/api/types.js +0 -10
- package/dist/index.cjs +38 -301
- package/dist/index.d.mts +114 -207
- package/dist/index.mjs +38 -301
- package/dist/plugins/findFirstAuthentication/index.test.js +2 -2
- package/dist/plugins/findUniqueAuthentication/index.test.js +2 -2
- package/dist/plugins/getAuthentication/index.d.ts +3 -3
- package/dist/plugins/getAuthentication/index.d.ts.map +1 -1
- package/dist/plugins/getAuthentication/index.js +3 -5
- package/dist/plugins/getAuthentication/index.test.js +4 -16
- package/dist/plugins/getAuthentication/schemas.d.ts +2 -4
- package/dist/plugins/getAuthentication/schemas.d.ts.map +1 -1
- package/dist/plugins/getAuthentication/schemas.js +1 -1
- package/dist/plugins/listAuthentications/index.d.ts +4 -10
- package/dist/plugins/listAuthentications/index.d.ts.map +1 -1
- package/dist/plugins/listAuthentications/index.js +19 -31
- package/dist/plugins/listAuthentications/index.test.js +347 -127
- package/dist/plugins/listAuthentications/schemas.d.ts +7 -7
- package/dist/plugins/listAuthentications/schemas.d.ts.map +1 -1
- package/dist/plugins/listAuthentications/schemas.js +10 -16
- package/dist/schemas/Auth.d.ts +11 -11
- package/dist/schemas/Auth.d.ts.map +1 -1
- package/dist/schemas/Auth.js +2 -12
- package/dist/sdk.d.ts +4 -2
- package/dist/sdk.d.ts.map +1 -1
- package/dist/temporary-internal-core/index.d.ts +0 -2
- package/dist/temporary-internal-core/index.d.ts.map +1 -1
- package/dist/temporary-internal-core/index.js +0 -2
- package/dist/temporary-internal-core/utils/transformations.d.ts +0 -14
- package/dist/temporary-internal-core/utils/transformations.d.ts.map +1 -1
- package/dist/temporary-internal-core/utils/transformations.js +0 -38
- package/dist/utils/domain-utils.d.ts +2 -15
- package/dist/utils/domain-utils.d.ts.map +1 -1
- package/dist/utils/domain-utils.js +0 -38
- package/dist/utils/function-utils.d.ts +1 -0
- package/dist/utils/function-utils.d.ts.map +1 -1
- package/dist/utils/function-utils.js +15 -3
- package/package.json +2 -1
- package/dist/temporary-internal-core/handlers/getAuthentication.d.ts +0 -94
- package/dist/temporary-internal-core/handlers/getAuthentication.d.ts.map +0 -1
- package/dist/temporary-internal-core/handlers/getAuthentication.js +0 -68
- package/dist/temporary-internal-core/handlers/getAuthentication.test.d.ts +0 -2
- package/dist/temporary-internal-core/handlers/getAuthentication.test.d.ts.map +0 -1
- package/dist/temporary-internal-core/handlers/getAuthentication.test.js +0 -248
- package/dist/temporary-internal-core/schemas/authentications/index.d.ts +0 -150
- package/dist/temporary-internal-core/schemas/authentications/index.d.ts.map +0 -1
- package/dist/temporary-internal-core/schemas/authentications/index.js +0 -97
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @zapier/zapier-sdk
|
|
2
2
|
|
|
3
|
+
## 0.18.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7c59b01: - `listAuthentications` now routes through the proxy. It also imports and overrides a shared schema from `zapier-sdk-core`
|
|
8
|
+
|
|
9
|
+
## 0.18.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 76fb606: - `getAuthentication` plugin now routes through proxy instead of direct Zapier API's
|
|
14
|
+
|
|
3
15
|
## 0.18.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -652,10 +652,10 @@ Get a specific authentication by ID
|
|
|
652
652
|
|
|
653
653
|
**Parameters:**
|
|
654
654
|
|
|
655
|
-
| Name | Type
|
|
656
|
-
| -------------------- |
|
|
657
|
-
| `options` | `object`
|
|
658
|
-
| ↳ `authenticationId` | `string
|
|
655
|
+
| Name | Type | Required | Default | Possible Values | Description |
|
|
656
|
+
| -------------------- | -------- | -------- | ------- | --------------- | ----------------------------- |
|
|
657
|
+
| `options` | `object` | ✅ | — | — | |
|
|
658
|
+
| ↳ `authenticationId` | `string` | ✅ | — | — | Authentication ID to retrieve |
|
|
659
659
|
|
|
660
660
|
**Returns:** `Promise<AuthenticationItem>`
|
|
661
661
|
|
|
@@ -663,7 +663,7 @@ Get a specific authentication by ID
|
|
|
663
663
|
|
|
664
664
|
```typescript
|
|
665
665
|
const { data: authentication } = await sdk.getAuthentication({
|
|
666
|
-
authenticationId: "example-
|
|
666
|
+
authenticationId: "example-id",
|
|
667
667
|
});
|
|
668
668
|
```
|
|
669
669
|
|
|
@@ -673,18 +673,18 @@ List available authentications with optional filtering
|
|
|
673
673
|
|
|
674
674
|
**Parameters:**
|
|
675
675
|
|
|
676
|
-
| Name | Type
|
|
677
|
-
| --------------------- |
|
|
678
|
-
| `options` | `object`
|
|
679
|
-
| ↳ `appKey` | `string`
|
|
680
|
-
| ↳ `authenticationIds` | `array`
|
|
681
|
-
| ↳ `search` | `string`
|
|
682
|
-
| ↳ `title` | `string`
|
|
683
|
-
| ↳ `accountId` | `string`
|
|
684
|
-
| ↳ `owner` | `string
|
|
685
|
-
| ↳ `pageSize` | `number`
|
|
686
|
-
| ↳ `maxItems` | `number`
|
|
687
|
-
| ↳ `cursor` | `string`
|
|
676
|
+
| Name | Type | Required | Default | Possible Values | Description |
|
|
677
|
+
| --------------------- | -------- | -------- | ------- | --------------- | ---------------------------------------------------------------------------------- |
|
|
678
|
+
| `options` | `object` | ✅ | — | — | |
|
|
679
|
+
| ↳ `appKey` | `string` | ❌ | — | — | App key of authentications to list (e.g., 'SlackCLIAPI' or slug like 'github') |
|
|
680
|
+
| ↳ `authenticationIds` | `array` | ❌ | — | — | List of authentication IDs to filter by |
|
|
681
|
+
| ↳ `search` | `string` | ❌ | — | — | Search term to filter authentications by title |
|
|
682
|
+
| ↳ `title` | `string` | ❌ | — | — | Filter authentications by exact title match (searches first, then filters locally) |
|
|
683
|
+
| ↳ `accountId` | `string` | ❌ | — | — | Filter authentications by account ID |
|
|
684
|
+
| ↳ `owner` | `string` | ❌ | — | — | Filter by owner - 'me' for your own authentications or a specific user ID |
|
|
685
|
+
| ↳ `pageSize` | `number` | ❌ | — | — | Number of authentications per page |
|
|
686
|
+
| ↳ `maxItems` | `number` | ❌ | — | — | Maximum total items to return across all pages |
|
|
687
|
+
| ↳ `cursor` | `string` | ❌ | — | — | Cursor to start from |
|
|
688
688
|
|
|
689
689
|
**Returns:** `Promise<PaginatedResult<AuthenticationItem>>`
|
|
690
690
|
|
package/dist/api/router.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/api/router.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/api/router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAE1E,MAAM,WAAW,KAAK;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IAChC,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAWD,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,KAAK,EAAE,EAClB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM;;;SAsBb;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;;SAEtD"}
|
package/dist/api/router.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { handleListApps
|
|
1
|
+
import { handleListApps } from "../temporary-internal-core";
|
|
2
2
|
const routes = [
|
|
3
3
|
{
|
|
4
4
|
method: "GET",
|
|
@@ -6,12 +6,6 @@ const routes = [
|
|
|
6
6
|
handler: handleListApps,
|
|
7
7
|
paramMap: [],
|
|
8
8
|
},
|
|
9
|
-
{
|
|
10
|
-
method: "GET",
|
|
11
|
-
pattern: /^\/api\/v0\/authentications\/([^\/]+)$/,
|
|
12
|
-
handler: handleGetAuthentication,
|
|
13
|
-
paramMap: ["authenticationId"],
|
|
14
|
-
},
|
|
15
9
|
];
|
|
16
10
|
export function findMatchingRoute(routeList, method, path) {
|
|
17
11
|
for (const route of routeList) {
|
package/dist/api/router.test.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, it, expect, vi } from "vitest";
|
|
2
2
|
import { matchRoute, findMatchingRoute } from "./router";
|
|
3
|
-
import { handleListApps
|
|
3
|
+
import { handleListApps } from "../temporary-internal-core";
|
|
4
4
|
describe("Router", () => {
|
|
5
5
|
describe("matchRoute (Integration)", () => {
|
|
6
6
|
it("should match GET /api/v0/apps", () => {
|
|
@@ -9,12 +9,6 @@ describe("Router", () => {
|
|
|
9
9
|
expect(match?.handler).toBe(handleListApps);
|
|
10
10
|
expect(match?.params).toEqual({});
|
|
11
11
|
});
|
|
12
|
-
it("should match GET /api/v0/authentications/:authenticationId", () => {
|
|
13
|
-
const match = matchRoute("GET", "/api/v0/authentications/12345");
|
|
14
|
-
expect(match).not.toBeNull();
|
|
15
|
-
expect(match?.handler).toBe(handleGetAuthentication);
|
|
16
|
-
expect(match?.params).toEqual({ authenticationId: "12345" });
|
|
17
|
-
});
|
|
18
12
|
it("should not match POST /api/v0/apps", () => {
|
|
19
13
|
const match = matchRoute("POST", "/api/v0/apps");
|
|
20
14
|
expect(match).toBeNull();
|
package/dist/api/schemas.d.ts
CHANGED
|
@@ -130,55 +130,6 @@ export declare const ActionFieldSchema: z.ZodObject<{
|
|
|
130
130
|
format: z.ZodOptional<z.ZodString>;
|
|
131
131
|
inputFormat: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
132
132
|
}, z.core.$strip>;
|
|
133
|
-
export declare const AuthenticationSchema: z.ZodObject<{
|
|
134
|
-
id: z.ZodNumber;
|
|
135
|
-
date: z.ZodString;
|
|
136
|
-
lastchanged: z.ZodOptional<z.ZodString>;
|
|
137
|
-
account_id: z.ZodNumber;
|
|
138
|
-
customuser_id: z.ZodOptional<z.ZodNumber>;
|
|
139
|
-
selected_api: z.ZodString;
|
|
140
|
-
destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
141
|
-
is_invite_only: z.ZodBoolean;
|
|
142
|
-
is_private: z.ZodBoolean;
|
|
143
|
-
shared_with_all: z.ZodBoolean;
|
|
144
|
-
is_stale: z.ZodOptional<z.ZodString>;
|
|
145
|
-
is_shared: z.ZodOptional<z.ZodString>;
|
|
146
|
-
marked_stale_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
147
|
-
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
148
|
-
identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
149
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
150
|
-
url: z.ZodOptional<z.ZodString>;
|
|
151
|
-
groups: z.ZodOptional<z.ZodString>;
|
|
152
|
-
members: z.ZodOptional<z.ZodString>;
|
|
153
|
-
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
154
|
-
}, z.core.$strip>;
|
|
155
|
-
export declare const AuthenticationsResponseSchema: z.ZodObject<{
|
|
156
|
-
count: z.ZodNumber;
|
|
157
|
-
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
158
|
-
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
159
|
-
results: z.ZodArray<z.ZodObject<{
|
|
160
|
-
id: z.ZodNumber;
|
|
161
|
-
date: z.ZodString;
|
|
162
|
-
lastchanged: z.ZodOptional<z.ZodString>;
|
|
163
|
-
account_id: z.ZodNumber;
|
|
164
|
-
customuser_id: z.ZodOptional<z.ZodNumber>;
|
|
165
|
-
selected_api: z.ZodString;
|
|
166
|
-
destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
167
|
-
is_invite_only: z.ZodBoolean;
|
|
168
|
-
is_private: z.ZodBoolean;
|
|
169
|
-
shared_with_all: z.ZodBoolean;
|
|
170
|
-
is_stale: z.ZodOptional<z.ZodString>;
|
|
171
|
-
is_shared: z.ZodOptional<z.ZodString>;
|
|
172
|
-
marked_stale_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
173
|
-
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
174
|
-
identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
175
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
176
|
-
url: z.ZodOptional<z.ZodString>;
|
|
177
|
-
groups: z.ZodOptional<z.ZodString>;
|
|
178
|
-
members: z.ZodOptional<z.ZodString>;
|
|
179
|
-
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
180
|
-
}, z.core.$strip>>;
|
|
181
|
-
}, z.core.$strip>;
|
|
182
133
|
export declare const UserProfileSchema: z.ZodObject<{
|
|
183
134
|
id: z.ZodNumber;
|
|
184
135
|
code: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/api/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AAMH,eAAO,MAAM,iBAAiB;;;;;iBAK5B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0CrB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;iBAE5B,CAAC;AAEH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;;;;;;;;;;;;;iBAaxB,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;iBAIjC,CAAC;AAMH,eAAO,MAAM,kBAAkB;;;;;;iBAM7B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM9B,CAAC;AAMH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmB/B,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKxC,CAAC;AAMH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2DnC,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK5C,CAAC;AAMH,eAAO,MAAM,6BAA6B;;iBAExC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;iBAGzC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;iBAsCnC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;iBAOpC,CAAC"}
|
package/dist/api/schemas.js
CHANGED
|
@@ -127,34 +127,6 @@ export const ActionFieldSchema = z.object({
|
|
|
127
127
|
// ============================================================================
|
|
128
128
|
// Main API Entity Schemas
|
|
129
129
|
// ============================================================================
|
|
130
|
-
export const AuthenticationSchema = z.object({
|
|
131
|
-
id: z.number(),
|
|
132
|
-
date: z.string(),
|
|
133
|
-
lastchanged: z.string().optional(),
|
|
134
|
-
account_id: z.number(),
|
|
135
|
-
customuser_id: z.number().optional(),
|
|
136
|
-
selected_api: z.string(),
|
|
137
|
-
destination_selected_api: z.string().nullable().optional(),
|
|
138
|
-
is_invite_only: z.boolean(),
|
|
139
|
-
is_private: z.boolean(),
|
|
140
|
-
shared_with_all: z.boolean(),
|
|
141
|
-
is_stale: z.string().optional(),
|
|
142
|
-
is_shared: z.string().optional(),
|
|
143
|
-
marked_stale_at: z.string().nullable().optional(),
|
|
144
|
-
label: z.string().nullable().optional(),
|
|
145
|
-
identifier: z.string().nullable().optional(),
|
|
146
|
-
title: z.string().nullable().optional(),
|
|
147
|
-
url: z.string().optional(),
|
|
148
|
-
groups: z.string().optional(),
|
|
149
|
-
members: z.string().optional(),
|
|
150
|
-
permissions: z.record(z.string(), z.boolean()).optional(),
|
|
151
|
-
});
|
|
152
|
-
export const AuthenticationsResponseSchema = z.object({
|
|
153
|
-
count: z.number(),
|
|
154
|
-
next: z.string().nullable().optional(),
|
|
155
|
-
previous: z.string().nullable().optional(),
|
|
156
|
-
results: z.array(AuthenticationSchema),
|
|
157
|
-
});
|
|
158
130
|
export const UserProfileSchema = z.object({
|
|
159
131
|
id: z.number(),
|
|
160
132
|
code: z.string(),
|
package/dist/api/types.d.ts
CHANGED
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
* API response model types are inferred from Zod schemas defined in api/schemas.ts
|
|
9
9
|
* to ensure a single source of truth and eliminate duplication.
|
|
10
10
|
*/
|
|
11
|
+
import type { AuthenticationSchema, AuthenticationsResponseSchema } from "@zapier/zapier-sdk-core/v0/schemas/authentications";
|
|
11
12
|
import type { SdkEvent } from "../types/events";
|
|
12
13
|
import type { z } from "zod";
|
|
13
|
-
import type { NeedChoicesSchema, NeedSchema, ActionLinksSchema, ActionPermissionsSchema, ActionSchema, ChoiceSchema, FieldSchema, ActionExecutionResultSchema, ActionFieldChoiceSchema, ActionFieldSchema,
|
|
14
|
+
import type { NeedChoicesSchema, NeedSchema, ActionLinksSchema, ActionPermissionsSchema, ActionSchema, ChoiceSchema, FieldSchema, ActionExecutionResultSchema, ActionFieldChoiceSchema, ActionFieldSchema, UserProfileSchema, AppSchema, NeedsRequestSchema, NeedsResponseSchema, ImplementationSchema, ImplementationsResponseSchema, ImplementationMetaSchema, ImplementationsMetaResponseSchema, ServiceSchema, ServicesResponseSchema, NeedChoicesRequestSchema, NeedChoicesResponseSchema, NeedChoicesResponseMetaSchema, NeedChoicesResponseLinksSchema } from "./schemas";
|
|
14
15
|
export interface ApiClientOptions {
|
|
15
16
|
baseUrl: string;
|
|
16
17
|
authBaseUrl?: string;
|
package/dist/api/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/api/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EACV,oBAAoB,EACpB,6BAA6B,EAC9B,MAAM,oDAAoD,CAAC;AAC5D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EACV,iBAAiB,EACjB,UAAU,EACV,iBAAiB,EACjB,uBAAuB,EACvB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,2BAA2B,EAC3B,uBAAuB,EACvB,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACT,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,6BAA6B,EAC7B,wBAAwB,EACxB,iCAAiC,EACjC,aAAa,EACb,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,EAC7B,8BAA8B,EAC/B,MAAM,WAAW,CAAC;AAMnB,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC,MAA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MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC"}
|
package/dist/api/types.js
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* API Client Type Definitions
|
|
3
|
-
*
|
|
4
|
-
* This module contains all type definitions related to the Zapier API client,
|
|
5
|
-
* including configuration options, client interfaces, request/response types,
|
|
6
|
-
* and API response models.
|
|
7
|
-
*
|
|
8
|
-
* API response model types are inferred from Zod schemas defined in api/schemas.ts
|
|
9
|
-
* to ensure a single source of truth and eliminate duplication.
|
|
10
|
-
*/
|
|
11
1
|
export {};
|