@zapier/zapier-sdk-core 0.8.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/v0/schemas/actions.d.cts +28 -28
- package/dist/v0/schemas/actions.d.ts +28 -28
- package/dist/v0/schemas/apps.d.cts +30 -30
- package/dist/v0/schemas/apps.d.ts +30 -30
- package/dist/v0/schemas/authentications.cjs +4 -1
- package/dist/v0/schemas/authentications.cjs.map +1 -1
- package/dist/v0/schemas/authentications.d.cts +12 -0
- package/dist/v0/schemas/authentications.d.ts +12 -0
- package/dist/v0/schemas/authentications.js +4 -1
- package/dist/v0/schemas/authentications.js.map +1 -1
- package/dist/v0/schemas/connections.cjs +4 -1
- package/dist/v0/schemas/connections.cjs.map +1 -1
- package/dist/v0/schemas/connections.d.cts +14 -2
- package/dist/v0/schemas/connections.d.ts +14 -2
- package/dist/v0/schemas/connections.js +4 -1
- package/dist/v0/schemas/connections.js.map +1 -1
- package/openapi.yaml +38 -4
- package/package.json +2 -2
|
@@ -5,23 +5,9 @@ import { z } from 'zod';
|
|
|
5
5
|
* This extends ImplementationMetaSchema with transformed fields (title, key, implementation_id).
|
|
6
6
|
*/
|
|
7
7
|
declare const AppItemSchema: z.ZodObject<{
|
|
8
|
-
description: z.ZodOptional<z.ZodString>;
|
|
9
|
-
is_hidden: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
-
auth_type: z.ZodOptional<z.ZodString>;
|
|
11
|
-
actions: z.ZodOptional<z.ZodObject<{
|
|
12
|
-
read: z.ZodOptional<z.ZodNumber>;
|
|
13
|
-
read_bulk: z.ZodOptional<z.ZodNumber>;
|
|
14
|
-
write: z.ZodOptional<z.ZodNumber>;
|
|
15
|
-
search: z.ZodOptional<z.ZodNumber>;
|
|
16
|
-
search_or_write: z.ZodOptional<z.ZodNumber>;
|
|
17
|
-
search_and_write: z.ZodOptional<z.ZodNumber>;
|
|
18
|
-
filter: z.ZodOptional<z.ZodNumber>;
|
|
19
|
-
}, z.core.$strip>>;
|
|
20
|
-
is_deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
-
is_beta: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
-
is_premium: z.ZodOptional<z.ZodBoolean>;
|
|
23
8
|
slug: z.ZodString;
|
|
24
9
|
age_in_days: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
auth_type: z.ZodOptional<z.ZodString>;
|
|
25
11
|
banner: z.ZodOptional<z.ZodString>;
|
|
26
12
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
27
13
|
id: z.ZodNumber;
|
|
@@ -41,12 +27,26 @@ declare const AppItemSchema: z.ZodObject<{
|
|
|
41
27
|
has_searches_or_writes: z.ZodOptional<z.ZodBoolean>;
|
|
42
28
|
has_upfront_fields: z.ZodOptional<z.ZodBoolean>;
|
|
43
29
|
has_writes: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
is_beta: z.ZodOptional<z.ZodBoolean>;
|
|
44
31
|
is_built_in: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
is_deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
45
33
|
is_featured: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
is_hidden: z.ZodOptional<z.ZodBoolean>;
|
|
46
35
|
is_invite: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
is_premium: z.ZodOptional<z.ZodBoolean>;
|
|
47
37
|
is_public: z.ZodOptional<z.ZodBoolean>;
|
|
48
38
|
is_upcoming: z.ZodOptional<z.ZodBoolean>;
|
|
49
39
|
visibility: z.ZodOptional<z.ZodString>;
|
|
40
|
+
actions: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
read: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
read_bulk: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
write: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
search: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
search_or_write: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
search_and_write: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
filter: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
description: z.ZodOptional<z.ZodString>;
|
|
50
50
|
primary_color: z.ZodOptional<z.ZodString>;
|
|
51
51
|
secondary_color: z.ZodOptional<z.ZodString>;
|
|
52
52
|
classification: z.ZodOptional<z.ZodString>;
|
|
@@ -72,23 +72,9 @@ declare const ListAppsQuerySchema: z.ZodObject<{
|
|
|
72
72
|
*/
|
|
73
73
|
declare const ListAppsResponseSchema: z.ZodObject<{
|
|
74
74
|
data: z.ZodArray<z.ZodObject<{
|
|
75
|
-
description: z.ZodOptional<z.ZodString>;
|
|
76
|
-
is_hidden: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
-
auth_type: z.ZodOptional<z.ZodString>;
|
|
78
|
-
actions: z.ZodOptional<z.ZodObject<{
|
|
79
|
-
read: z.ZodOptional<z.ZodNumber>;
|
|
80
|
-
read_bulk: z.ZodOptional<z.ZodNumber>;
|
|
81
|
-
write: z.ZodOptional<z.ZodNumber>;
|
|
82
|
-
search: z.ZodOptional<z.ZodNumber>;
|
|
83
|
-
search_or_write: z.ZodOptional<z.ZodNumber>;
|
|
84
|
-
search_and_write: z.ZodOptional<z.ZodNumber>;
|
|
85
|
-
filter: z.ZodOptional<z.ZodNumber>;
|
|
86
|
-
}, z.core.$strip>>;
|
|
87
|
-
is_deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
-
is_beta: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
-
is_premium: z.ZodOptional<z.ZodBoolean>;
|
|
90
75
|
slug: z.ZodString;
|
|
91
76
|
age_in_days: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
auth_type: z.ZodOptional<z.ZodString>;
|
|
92
78
|
banner: z.ZodOptional<z.ZodString>;
|
|
93
79
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
94
80
|
id: z.ZodNumber;
|
|
@@ -108,12 +94,26 @@ declare const ListAppsResponseSchema: z.ZodObject<{
|
|
|
108
94
|
has_searches_or_writes: z.ZodOptional<z.ZodBoolean>;
|
|
109
95
|
has_upfront_fields: z.ZodOptional<z.ZodBoolean>;
|
|
110
96
|
has_writes: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
+
is_beta: z.ZodOptional<z.ZodBoolean>;
|
|
111
98
|
is_built_in: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
+
is_deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
112
100
|
is_featured: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
is_hidden: z.ZodOptional<z.ZodBoolean>;
|
|
113
102
|
is_invite: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
is_premium: z.ZodOptional<z.ZodBoolean>;
|
|
114
104
|
is_public: z.ZodOptional<z.ZodBoolean>;
|
|
115
105
|
is_upcoming: z.ZodOptional<z.ZodBoolean>;
|
|
116
106
|
visibility: z.ZodOptional<z.ZodString>;
|
|
107
|
+
actions: z.ZodOptional<z.ZodObject<{
|
|
108
|
+
read: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
read_bulk: z.ZodOptional<z.ZodNumber>;
|
|
110
|
+
write: z.ZodOptional<z.ZodNumber>;
|
|
111
|
+
search: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
search_or_write: z.ZodOptional<z.ZodNumber>;
|
|
113
|
+
search_and_write: z.ZodOptional<z.ZodNumber>;
|
|
114
|
+
filter: z.ZodOptional<z.ZodNumber>;
|
|
115
|
+
}, z.core.$strip>>;
|
|
116
|
+
description: z.ZodOptional<z.ZodString>;
|
|
117
117
|
primary_color: z.ZodOptional<z.ZodString>;
|
|
118
118
|
secondary_color: z.ZodOptional<z.ZodString>;
|
|
119
119
|
classification: z.ZodOptional<z.ZodString>;
|
|
@@ -51,7 +51,10 @@ var AuthenticationSchema = import_zod.z.object({
|
|
|
51
51
|
import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).describe("Groups associated with the authentication")
|
|
52
52
|
).optional().describe("Array of groups associated with the authentication"),
|
|
53
53
|
members: import_zod.z.string().optional().describe("Members associated with the authentication"),
|
|
54
|
-
permissions: import_zod.z.record(import_zod.z.string(), import_zod.z.boolean()).optional().describe("Permissions for the authentication")
|
|
54
|
+
permissions: import_zod.z.record(import_zod.z.string(), import_zod.z.boolean()).optional().describe("Permissions for the authentication"),
|
|
55
|
+
public_id: import_zod.z.string().optional().describe("Public UUID for the authentication"),
|
|
56
|
+
account_public_id: import_zod.z.string().optional().describe("Public UUID for the associated account"),
|
|
57
|
+
customuser_public_id: import_zod.z.string().optional().describe("Public UUID for the associated custom user")
|
|
55
58
|
});
|
|
56
59
|
var AuthenticationItemSchema = AuthenticationSchema.omit({
|
|
57
60
|
selected_api: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/v0/schemas/authentications.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Base Authentication schema matching the API response\n */\nexport const AuthenticationSchema = z.object({\n id: z.number().describe(\"Unique identifier for the authentication\"),\n date: z.string().describe(\"Date created\"),\n lastchanged: z.string().optional().describe(\"Date last changed\"),\n account_id: z\n .number()\n .describe(\"Account ID associated with this authentication\"),\n customuser_id: z\n .number()\n .optional()\n .describe(\"Custom user ID (if applicable)\"),\n selected_api: z.string().describe(\"Selected API key (internal identifier)\"),\n destination_selected_api: z\n .string()\n .nullable()\n .optional()\n .describe(\"Destination API key (if applicable)\"),\n is_invite_only: z\n .boolean()\n .describe(\"Whether the authentication is invite-only\"),\n is_private: z.boolean().describe(\"Whether the authentication is private\"),\n shared_with_all: z\n .boolean()\n .describe(\"Whether the authentication is shared with all users\"),\n is_stale: z.string().optional().describe(\"Stale status string\"),\n is_shared: z.string().optional().describe(\"Shared status string\"),\n marked_stale_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when marked stale\"),\n label: z\n .string()\n .nullable()\n .optional()\n .describe(\"User label for the authentication\"),\n identifier: z.string().nullable().optional().describe(\"Identifier\"),\n title: z\n .string()\n .nullable()\n .optional()\n .describe(\"Title of the authentication\"),\n url: z.string().optional().describe(\"URL to the authentication resource\"),\n groups: z\n .array(\n z\n .record(z.string(), z.unknown())\n .describe(\"Groups associated with the authentication\"),\n )\n .optional()\n .describe(\"Array of groups associated with the authentication\"),\n members: z\n .string()\n .optional()\n .describe(\"Members associated with the authentication\"),\n permissions: z\n .record(z.string(), z.boolean())\n .optional()\n .describe(\"Permissions for the authentication\"),\n});\n\n/**\n * Normalized authentication item returned by getAuthentication handler\n *\n * Transforms API response fields:\n * - selected_api → implementation_id\n * - customuser_id → profile_id\n * - is_stale → is_expired (preserved as is_stale too)\n * - marked_stale_at → expired_at (preserved as marked_stale_at too)\n *\n * Adds computed fields:\n * - app_key: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"SlackCLIAPI\")\n * - app_version: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"1.0.0\")\n */\nexport const AuthenticationItemSchema = AuthenticationSchema.omit({\n selected_api: true,\n customuser_id: true,\n}).extend({\n // Override numeric IDs with string versions (converted by normalizeAuthenticationItem)\n id: z.string().describe(\"Unique identifier for the authentication\"),\n account_id: z\n .string()\n .describe(\"Account ID associated with this authentication\"),\n\n // Renamed fields\n implementation_id: z\n .string()\n .optional()\n .describe(\"Implementation ID (was selected_api)\"),\n profile_id: z.string().optional().describe(\"Profile ID (was customuser_id)\"),\n\n // Mapped fields (originals preserved in ...restOfAuth)\n is_expired: z\n .string()\n .optional()\n .describe(\"Whether the authentication is expired (mapped from is_stale)\"),\n expired_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when authentication expired (mapped from marked_stale_at)\"),\n\n // Computed fields\n app_key: z\n .string()\n .optional()\n .describe(\"App Key extracted from implementation_id\"),\n app_version: z\n .string()\n .optional()\n .describe(\"App Version extracted from implementation_id\"),\n});\n\nexport const AuthenticationsResponseSchema = z.object({\n count: z.number().describe(\"Total number of items\"),\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the next page of results (if available)\"),\n previous: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the previous page of results (if available)\"),\n results: z\n .array(AuthenticationSchema)\n .describe(\"Array of authentication items\"),\n});\n\nexport type Authentication = z.infer<typeof AuthenticationSchema>;\nexport type AuthenticationItem = z.infer<typeof AuthenticationItemSchema>;\nexport type AuthenticationsResponse = z.infer<\n typeof AuthenticationsResponseSchema\n>;\n\n/**\n * Path parameters schema for getAuthentication endpoint.\n */\nexport const GetAuthenticationParamSchema = z\n .object({\n authenticationId: z.string().describe(\"Authentication ID to retrieve\"),\n })\n .describe(\"Get a specific authentication by ID\");\n\nexport type GetAuthenticationParam = z.infer<\n typeof GetAuthenticationParamSchema\n>;\n\n/**\n * Response type for getAuthentication endpoint.\n * Wraps AuthenticationItem in the standard API response envelope.\n */\nexport type GetAuthenticationResponse = { data: AuthenticationItem };\n\n/**\n * Query parameters for listing authentications\n */\nexport const ListAuthenticationsQuerySchema = z\n .object({\n appKey: z\n .string()\n .optional()\n .describe(\n \"Filter authentications by app key (e.g., 'SlackCLIAPI' or slug like 'github')\",\n ),\n authenticationIds: z\n .string()\n .optional()\n .describe(\"Comma-separated list of authentication IDs to filter by\"),\n search: z\n .string()\n .optional()\n .describe(\"Search term to filter authentications by title\"),\n title: z\n .string()\n .optional()\n .describe(\n \"Filter authentications by exact title match (searches first, then filters locally)\",\n ),\n accountId: z\n .string()\n .optional()\n .describe(\"Filter authentications by account ID\"),\n owner: z\n .string()\n .optional()\n .describe(\n \"Filter by owner, 'me' for your own authentications or a specific user ID\",\n ),\n isExpired: z\n .boolean()\n .optional()\n .describe(\n \"Filter by expired status (true = expired only, false = non-expired only)\",\n ),\n pageSize: z\n .number()\n .min(1)\n .optional()\n .describe(\"Number of authentications per page\"),\n offset: z\n .string()\n .optional()\n .describe(\"Pagination offset from previous response\"),\n })\n .describe(\"Query parameters for listing authentications\");\n\n/**\n * Response schema for listAuthentications\n */\nexport const ListAuthenticationsResponseSchema = z\n .object({\n data: z\n .array(AuthenticationItemSchema)\n .describe(\"Array of authentication items\"),\n links: z\n .object({\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"Fully qualified URL for the next page of results (if available), e.g. https://sdkapi.zapier.com/api/v0/authentications?offset=100&pageSize=50\",\n ),\n })\n .describe(\"Pagination links for navigating through results\"),\n meta: z\n .object({\n count: z.number().describe(\"Total number of items\"),\n limit: z.number().describe(\"Number of items per page\"),\n offset: z.number().describe(\"Offset of the current page\"),\n })\n .describe(\"Metadata for the paginated result set\"),\n })\n .describe(\"Response schema for listing authentications\");\n\n/**\n * TypeScript types for request and response\n */\nexport type ListAuthenticationsQuery = z.infer<\n typeof ListAuthenticationsQuerySchema\n>;\nexport type ListAuthenticationsResponse = z.infer<\n typeof ListAuthenticationsResponseSchema\n>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAkB;AAKX,IAAM,uBAAuB,aAAE,OAAO;AAAA,EAC3C,IAAI,aAAE,OAAO,EAAE,SAAS,0CAA0C;AAAA,EAClE,MAAM,aAAE,OAAO,EAAE,SAAS,cAAc;AAAA,EACxC,aAAa,aAAE,OAAO,EAAE,SAAS,EAAE,SAAS,mBAAmB;AAAA,EAC/D,YAAY,aACT,OAAO,EACP,SAAS,gDAAgD;AAAA,EAC5D,eAAe,aACZ,OAAO,EACP,SAAS,EACT,SAAS,gCAAgC;AAAA,EAC5C,cAAc,aAAE,OAAO,EAAE,SAAS,wCAAwC;AAAA,EAC1E,0BAA0B,aACvB,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,qCAAqC;AAAA,EACjD,gB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IAAI,CAAC,EACL,SAAS,EACT,SAAS,oCAAoC;AAAA,EAChD,QAAQ,aACL,OAAO,EACP,SAAS,EACT,SAAS,0CAA0C;AACxD,CAAC,EACA,SAAS,8CAA8C;AAKnD,IAAM,oCAAoC,aAC9C,OAAO;AAAA,EACN,MAAM,aACH,MAAM,wBAAwB,EAC9B,SAAS,+BAA+B;AAAA,EAC3C,OAAO,aACJ,OAAO;AAAA,IACN,MAAM,aACH,OAAO,EACP,SAAS,EACT,SAAS,EACT;AAAA,MACC;AAAA,IACF;AAAA,EACJ,CAAC,EACA,SAAS,iDAAiD;AAAA,EAC7D,MAAM,aACH,OAAO;AAAA,IACN,OAAO,aAAE,OAAO,EAAE,SAAS,uBAAuB;AAAA,IAClD,OAAO,aAAE,OAAO,EAAE,SAAS,0BAA0B;AAAA,IACrD,QAAQ,aAAE,OAAO,EAAE,SAAS,4BAA4B;AAAA,EAC1D,CAAC,EACA,SAAS,uCAAuC;AACrD,CAAC,EACA,SAAS,6CAA6C;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/v0/schemas/authentications.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Base Authentication schema matching the API response\n */\nexport const AuthenticationSchema = z.object({\n id: z.number().describe(\"Unique identifier for the authentication\"),\n date: z.string().describe(\"Date created\"),\n lastchanged: z.string().optional().describe(\"Date last changed\"),\n account_id: z\n .number()\n .describe(\"Account ID associated with this authentication\"),\n customuser_id: z\n .number()\n .optional()\n .describe(\"Custom user ID (if applicable)\"),\n selected_api: z.string().describe(\"Selected API key (internal identifier)\"),\n destination_selected_api: z\n .string()\n .nullable()\n .optional()\n .describe(\"Destination API key (if applicable)\"),\n is_invite_only: z\n .boolean()\n .describe(\"Whether the authentication is invite-only\"),\n is_private: z.boolean().describe(\"Whether the authentication is private\"),\n shared_with_all: z\n .boolean()\n .describe(\"Whether the authentication is shared with all users\"),\n is_stale: z.string().optional().describe(\"Stale status string\"),\n is_shared: z.string().optional().describe(\"Shared status string\"),\n marked_stale_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when marked stale\"),\n label: z\n .string()\n .nullable()\n .optional()\n .describe(\"User label for the authentication\"),\n identifier: z.string().nullable().optional().describe(\"Identifier\"),\n title: z\n .string()\n .nullable()\n .optional()\n .describe(\"Title of the authentication\"),\n url: z.string().optional().describe(\"URL to the authentication resource\"),\n groups: z\n .array(\n z\n .record(z.string(), z.unknown())\n .describe(\"Groups associated with the authentication\"),\n )\n .optional()\n .describe(\"Array of groups associated with the authentication\"),\n members: z\n .string()\n .optional()\n .describe(\"Members associated with the authentication\"),\n permissions: z\n .record(z.string(), z.boolean())\n .optional()\n .describe(\"Permissions for the authentication\"),\n public_id: z\n .string()\n .optional()\n .describe(\"Public UUID for the authentication\"),\n account_public_id: z\n .string()\n .optional()\n .describe(\"Public UUID for the associated account\"),\n customuser_public_id: z\n .string()\n .optional()\n .describe(\"Public UUID for the associated custom user\"),\n});\n\n/**\n * Normalized authentication item returned by getAuthentication handler\n *\n * Transforms API response fields:\n * - selected_api → implementation_id\n * - customuser_id → profile_id\n * - is_stale → is_expired (preserved as is_stale too)\n * - marked_stale_at → expired_at (preserved as marked_stale_at too)\n *\n * Adds computed fields:\n * - app_key: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"SlackCLIAPI\")\n * - app_version: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"1.0.0\")\n */\nexport const AuthenticationItemSchema = AuthenticationSchema.omit({\n selected_api: true,\n customuser_id: true,\n}).extend({\n // Override numeric IDs with string versions (converted by normalizeAuthenticationItem)\n id: z.string().describe(\"Unique identifier for the authentication\"),\n account_id: z\n .string()\n .describe(\"Account ID associated with this authentication\"),\n\n // Renamed fields\n implementation_id: z\n .string()\n .optional()\n .describe(\"Implementation ID (was selected_api)\"),\n profile_id: z.string().optional().describe(\"Profile ID (was customuser_id)\"),\n\n // Mapped fields (originals preserved in ...restOfAuth)\n is_expired: z\n .string()\n .optional()\n .describe(\"Whether the authentication is expired (mapped from is_stale)\"),\n expired_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when authentication expired (mapped from marked_stale_at)\"),\n\n // Computed fields\n app_key: z\n .string()\n .optional()\n .describe(\"App Key extracted from implementation_id\"),\n app_version: z\n .string()\n .optional()\n .describe(\"App Version extracted from implementation_id\"),\n});\n\nexport const AuthenticationsResponseSchema = z.object({\n count: z.number().describe(\"Total number of items\"),\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the next page of results (if available)\"),\n previous: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the previous page of results (if available)\"),\n results: z\n .array(AuthenticationSchema)\n .describe(\"Array of authentication items\"),\n});\n\nexport type Authentication = z.infer<typeof AuthenticationSchema>;\nexport type AuthenticationItem = z.infer<typeof AuthenticationItemSchema>;\nexport type AuthenticationsResponse = z.infer<\n typeof AuthenticationsResponseSchema\n>;\n\n/**\n * Path parameters schema for getAuthentication endpoint.\n */\nexport const GetAuthenticationParamSchema = z\n .object({\n authenticationId: z.string().describe(\"Authentication ID to retrieve\"),\n })\n .describe(\"Get a specific authentication by ID\");\n\nexport type GetAuthenticationParam = z.infer<\n typeof GetAuthenticationParamSchema\n>;\n\n/**\n * Response type for getAuthentication endpoint.\n * Wraps AuthenticationItem in the standard API response envelope.\n */\nexport type GetAuthenticationResponse = { data: AuthenticationItem };\n\n/**\n * Query parameters for listing authentications\n */\nexport const ListAuthenticationsQuerySchema = z\n .object({\n appKey: z\n .string()\n .optional()\n .describe(\n \"Filter authentications by app key (e.g., 'SlackCLIAPI' or slug like 'github')\",\n ),\n authenticationIds: z\n .string()\n .optional()\n .describe(\"Comma-separated list of authentication IDs to filter by\"),\n search: z\n .string()\n .optional()\n .describe(\"Search term to filter authentications by title\"),\n title: z\n .string()\n .optional()\n .describe(\n \"Filter authentications by exact title match (searches first, then filters locally)\",\n ),\n accountId: z\n .string()\n .optional()\n .describe(\"Filter authentications by account ID\"),\n owner: z\n .string()\n .optional()\n .describe(\n \"Filter by owner, 'me' for your own authentications or a specific user ID\",\n ),\n isExpired: z\n .boolean()\n .optional()\n .describe(\n \"Filter by expired status (true = expired only, false = non-expired only)\",\n ),\n pageSize: z\n .number()\n .min(1)\n .optional()\n .describe(\"Number of authentications per page\"),\n offset: z\n .string()\n .optional()\n .describe(\"Pagination offset from previous response\"),\n })\n .describe(\"Query parameters for listing authentications\");\n\n/**\n * Response schema for listAuthentications\n */\nexport const ListAuthenticationsResponseSchema = z\n .object({\n data: z\n .array(AuthenticationItemSchema)\n .describe(\"Array of authentication items\"),\n links: z\n .object({\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"Fully qualified URL for the next page of results (if available), e.g. https://sdkapi.zapier.com/api/v0/authentications?offset=100&pageSize=50\",\n ),\n })\n .describe(\"Pagination links for navigating through results\"),\n meta: z\n .object({\n count: z.number().describe(\"Total number of items\"),\n limit: z.number().describe(\"Number of items per page\"),\n offset: z.number().describe(\"Offset of the current page\"),\n })\n .describe(\"Metadata for the paginated result set\"),\n })\n .describe(\"Response schema for listing authentications\");\n\n/**\n * TypeScript types for request and response\n */\nexport type ListAuthenticationsQuery = z.infer<\n typeof ListAuthenticationsQuerySchema\n>;\nexport type ListAuthenticationsResponse = z.infer<\n typeof ListAuthenticationsResponseSchema\n>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAkB;AAKX,IAAM,uBAAuB,aAAE,OAAO;AAAA,EAC3C,IAAI,aAAE,OAAO,EAAE,SAAS,0CAA0C;AAAA,EAClE,MAAM,aAAE,OAAO,EAAE,SAAS,cAAc;AAAA,EACxC,aAAa,aAAE,OAAO,EAAE,SAAS,EAAE,SAAS,mBAAmB;AAAA,EAC/D,YAAY,aACT,OAAO,EACP,SAAS,gDAAgD;AAAA,EAC5D,eAAe,aACZ,OAAO,EACP,SAAS,EACT,SAAS,gCAAgC;AAAA,EAC5C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S,EACT,SAAS,gDAAgD;AAAA,EAC5D,OAAO,aACJ,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,WAAW,aACR,OAAO,EACP,SAAS,EACT,SAAS,sCAAsC;AAAA,EAClD,OAAO,aACJ,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,WAAW,aACR,QAAQ,EACR,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,UAAU,aACP,OAAO,EACP,IAAI,CAAC,EACL,SAAS,EACT,SAAS,oCAAoC;AAAA,EAChD,QAAQ,aACL,OAAO,EACP,SAAS,EACT,SAAS,0CAA0C;AACxD,CAAC,EACA,SAAS,8CAA8C;AAKnD,IAAM,oCAAoC,aAC9C,OAAO;AAAA,EACN,MAAM,aACH,MAAM,wBAAwB,EAC9B,SAAS,+BAA+B;AAAA,EAC3C,OAAO,aACJ,OAAO;AAAA,IACN,MAAM,aACH,OAAO,EACP,SAAS,EACT,SAAS,EACT;AAAA,MACC;AAAA,IACF;AAAA,EACJ,CAAC,EACA,SAAS,iDAAiD;AAAA,EAC7D,MAAM,aACH,OAAO;AAAA,IACN,OAAO,aAAE,OAAO,EAAE,SAAS,uBAAuB;AAAA,IAClD,OAAO,aAAE,OAAO,EAAE,SAAS,0BAA0B;AAAA,IACrD,QAAQ,aAAE,OAAO,EAAE,SAAS,4BAA4B;AAAA,EAC1D,CAAC,EACA,SAAS,uCAAuC;AACrD,CAAC,EACA,SAAS,6CAA6C;","names":[]}
|
|
@@ -24,6 +24,9 @@ declare const AuthenticationSchema: z.ZodObject<{
|
|
|
24
24
|
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
25
25
|
members: z.ZodOptional<z.ZodString>;
|
|
26
26
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
27
|
+
public_id: z.ZodOptional<z.ZodString>;
|
|
28
|
+
account_public_id: z.ZodOptional<z.ZodString>;
|
|
29
|
+
customuser_public_id: z.ZodOptional<z.ZodString>;
|
|
27
30
|
}, z.core.$strip>;
|
|
28
31
|
/**
|
|
29
32
|
* Normalized authentication item returned by getAuthentication handler
|
|
@@ -55,6 +58,9 @@ declare const AuthenticationItemSchema: z.ZodObject<{
|
|
|
55
58
|
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
56
59
|
members: z.ZodOptional<z.ZodString>;
|
|
57
60
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
61
|
+
public_id: z.ZodOptional<z.ZodString>;
|
|
62
|
+
account_public_id: z.ZodOptional<z.ZodString>;
|
|
63
|
+
customuser_public_id: z.ZodOptional<z.ZodString>;
|
|
58
64
|
id: z.ZodString;
|
|
59
65
|
account_id: z.ZodString;
|
|
60
66
|
implementation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -89,6 +95,9 @@ declare const AuthenticationsResponseSchema: z.ZodObject<{
|
|
|
89
95
|
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
90
96
|
members: z.ZodOptional<z.ZodString>;
|
|
91
97
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
98
|
+
public_id: z.ZodOptional<z.ZodString>;
|
|
99
|
+
account_public_id: z.ZodOptional<z.ZodString>;
|
|
100
|
+
customuser_public_id: z.ZodOptional<z.ZodString>;
|
|
92
101
|
}, z.core.$strip>>;
|
|
93
102
|
}, z.core.$strip>;
|
|
94
103
|
type Authentication = z.infer<typeof AuthenticationSchema>;
|
|
@@ -143,6 +152,9 @@ declare const ListAuthenticationsResponseSchema: z.ZodObject<{
|
|
|
143
152
|
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
144
153
|
members: z.ZodOptional<z.ZodString>;
|
|
145
154
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
155
|
+
public_id: z.ZodOptional<z.ZodString>;
|
|
156
|
+
account_public_id: z.ZodOptional<z.ZodString>;
|
|
157
|
+
customuser_public_id: z.ZodOptional<z.ZodString>;
|
|
146
158
|
id: z.ZodString;
|
|
147
159
|
account_id: z.ZodString;
|
|
148
160
|
implementation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -24,6 +24,9 @@ declare const AuthenticationSchema: z.ZodObject<{
|
|
|
24
24
|
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
25
25
|
members: z.ZodOptional<z.ZodString>;
|
|
26
26
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
27
|
+
public_id: z.ZodOptional<z.ZodString>;
|
|
28
|
+
account_public_id: z.ZodOptional<z.ZodString>;
|
|
29
|
+
customuser_public_id: z.ZodOptional<z.ZodString>;
|
|
27
30
|
}, z.core.$strip>;
|
|
28
31
|
/**
|
|
29
32
|
* Normalized authentication item returned by getAuthentication handler
|
|
@@ -55,6 +58,9 @@ declare const AuthenticationItemSchema: z.ZodObject<{
|
|
|
55
58
|
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
56
59
|
members: z.ZodOptional<z.ZodString>;
|
|
57
60
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
61
|
+
public_id: z.ZodOptional<z.ZodString>;
|
|
62
|
+
account_public_id: z.ZodOptional<z.ZodString>;
|
|
63
|
+
customuser_public_id: z.ZodOptional<z.ZodString>;
|
|
58
64
|
id: z.ZodString;
|
|
59
65
|
account_id: z.ZodString;
|
|
60
66
|
implementation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -89,6 +95,9 @@ declare const AuthenticationsResponseSchema: z.ZodObject<{
|
|
|
89
95
|
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
90
96
|
members: z.ZodOptional<z.ZodString>;
|
|
91
97
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
98
|
+
public_id: z.ZodOptional<z.ZodString>;
|
|
99
|
+
account_public_id: z.ZodOptional<z.ZodString>;
|
|
100
|
+
customuser_public_id: z.ZodOptional<z.ZodString>;
|
|
92
101
|
}, z.core.$strip>>;
|
|
93
102
|
}, z.core.$strip>;
|
|
94
103
|
type Authentication = z.infer<typeof AuthenticationSchema>;
|
|
@@ -143,6 +152,9 @@ declare const ListAuthenticationsResponseSchema: z.ZodObject<{
|
|
|
143
152
|
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
144
153
|
members: z.ZodOptional<z.ZodString>;
|
|
145
154
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
155
|
+
public_id: z.ZodOptional<z.ZodString>;
|
|
156
|
+
account_public_id: z.ZodOptional<z.ZodString>;
|
|
157
|
+
customuser_public_id: z.ZodOptional<z.ZodString>;
|
|
146
158
|
id: z.ZodString;
|
|
147
159
|
account_id: z.ZodString;
|
|
148
160
|
implementation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -22,7 +22,10 @@ var AuthenticationSchema = z.object({
|
|
|
22
22
|
z.record(z.string(), z.unknown()).describe("Groups associated with the authentication")
|
|
23
23
|
).optional().describe("Array of groups associated with the authentication"),
|
|
24
24
|
members: z.string().optional().describe("Members associated with the authentication"),
|
|
25
|
-
permissions: z.record(z.string(), z.boolean()).optional().describe("Permissions for the authentication")
|
|
25
|
+
permissions: z.record(z.string(), z.boolean()).optional().describe("Permissions for the authentication"),
|
|
26
|
+
public_id: z.string().optional().describe("Public UUID for the authentication"),
|
|
27
|
+
account_public_id: z.string().optional().describe("Public UUID for the associated account"),
|
|
28
|
+
customuser_public_id: z.string().optional().describe("Public UUID for the associated custom user")
|
|
26
29
|
});
|
|
27
30
|
var AuthenticationItemSchema = AuthenticationSchema.omit({
|
|
28
31
|
selected_api: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/v0/schemas/authentications.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Base Authentication schema matching the API response\n */\nexport const AuthenticationSchema = z.object({\n id: z.number().describe(\"Unique identifier for the authentication\"),\n date: z.string().describe(\"Date created\"),\n lastchanged: z.string().optional().describe(\"Date last changed\"),\n account_id: z\n .number()\n .describe(\"Account ID associated with this authentication\"),\n customuser_id: z\n .number()\n .optional()\n .describe(\"Custom user ID (if applicable)\"),\n selected_api: z.string().describe(\"Selected API key (internal identifier)\"),\n destination_selected_api: z\n .string()\n .nullable()\n .optional()\n .describe(\"Destination API key (if applicable)\"),\n is_invite_only: z\n .boolean()\n .describe(\"Whether the authentication is invite-only\"),\n is_private: z.boolean().describe(\"Whether the authentication is private\"),\n shared_with_all: z\n .boolean()\n .describe(\"Whether the authentication is shared with all users\"),\n is_stale: z.string().optional().describe(\"Stale status string\"),\n is_shared: z.string().optional().describe(\"Shared status string\"),\n marked_stale_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when marked stale\"),\n label: z\n .string()\n .nullable()\n .optional()\n .describe(\"User label for the authentication\"),\n identifier: z.string().nullable().optional().describe(\"Identifier\"),\n title: z\n .string()\n .nullable()\n .optional()\n .describe(\"Title of the authentication\"),\n url: z.string().optional().describe(\"URL to the authentication resource\"),\n groups: z\n .array(\n z\n .record(z.string(), z.unknown())\n .describe(\"Groups associated with the authentication\"),\n )\n .optional()\n .describe(\"Array of groups associated with the authentication\"),\n members: z\n .string()\n .optional()\n .describe(\"Members associated with the authentication\"),\n permissions: z\n .record(z.string(), z.boolean())\n .optional()\n .describe(\"Permissions for the authentication\"),\n});\n\n/**\n * Normalized authentication item returned by getAuthentication handler\n *\n * Transforms API response fields:\n * - selected_api → implementation_id\n * - customuser_id → profile_id\n * - is_stale → is_expired (preserved as is_stale too)\n * - marked_stale_at → expired_at (preserved as marked_stale_at too)\n *\n * Adds computed fields:\n * - app_key: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"SlackCLIAPI\")\n * - app_version: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"1.0.0\")\n */\nexport const AuthenticationItemSchema = AuthenticationSchema.omit({\n selected_api: true,\n customuser_id: true,\n}).extend({\n // Override numeric IDs with string versions (converted by normalizeAuthenticationItem)\n id: z.string().describe(\"Unique identifier for the authentication\"),\n account_id: z\n .string()\n .describe(\"Account ID associated with this authentication\"),\n\n // Renamed fields\n implementation_id: z\n .string()\n .optional()\n .describe(\"Implementation ID (was selected_api)\"),\n profile_id: z.string().optional().describe(\"Profile ID (was customuser_id)\"),\n\n // Mapped fields (originals preserved in ...restOfAuth)\n is_expired: z\n .string()\n .optional()\n .describe(\"Whether the authentication is expired (mapped from is_stale)\"),\n expired_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when authentication expired (mapped from marked_stale_at)\"),\n\n // Computed fields\n app_key: z\n .string()\n .optional()\n .describe(\"App Key extracted from implementation_id\"),\n app_version: z\n .string()\n .optional()\n .describe(\"App Version extracted from implementation_id\"),\n});\n\nexport const AuthenticationsResponseSchema = z.object({\n count: z.number().describe(\"Total number of items\"),\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the next page of results (if available)\"),\n previous: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the previous page of results (if available)\"),\n results: z\n .array(AuthenticationSchema)\n .describe(\"Array of authentication items\"),\n});\n\nexport type Authentication = z.infer<typeof AuthenticationSchema>;\nexport type AuthenticationItem = z.infer<typeof AuthenticationItemSchema>;\nexport type AuthenticationsResponse = z.infer<\n typeof AuthenticationsResponseSchema\n>;\n\n/**\n * Path parameters schema for getAuthentication endpoint.\n */\nexport const GetAuthenticationParamSchema = z\n .object({\n authenticationId: z.string().describe(\"Authentication ID to retrieve\"),\n })\n .describe(\"Get a specific authentication by ID\");\n\nexport type GetAuthenticationParam = z.infer<\n typeof GetAuthenticationParamSchema\n>;\n\n/**\n * Response type for getAuthentication endpoint.\n * Wraps AuthenticationItem in the standard API response envelope.\n */\nexport type GetAuthenticationResponse = { data: AuthenticationItem };\n\n/**\n * Query parameters for listing authentications\n */\nexport const ListAuthenticationsQuerySchema = z\n .object({\n appKey: z\n .string()\n .optional()\n .describe(\n \"Filter authentications by app key (e.g., 'SlackCLIAPI' or slug like 'github')\",\n ),\n authenticationIds: z\n .string()\n .optional()\n .describe(\"Comma-separated list of authentication IDs to filter by\"),\n search: z\n .string()\n .optional()\n .describe(\"Search term to filter authentications by title\"),\n title: z\n .string()\n .optional()\n .describe(\n \"Filter authentications by exact title match (searches first, then filters locally)\",\n ),\n accountId: z\n .string()\n .optional()\n .describe(\"Filter authentications by account ID\"),\n owner: z\n .string()\n .optional()\n .describe(\n \"Filter by owner, 'me' for your own authentications or a specific user ID\",\n ),\n isExpired: z\n .boolean()\n .optional()\n .describe(\n \"Filter by expired status (true = expired only, false = non-expired only)\",\n ),\n pageSize: z\n .number()\n .min(1)\n .optional()\n .describe(\"Number of authentications per page\"),\n offset: z\n .string()\n .optional()\n .describe(\"Pagination offset from previous response\"),\n })\n .describe(\"Query parameters for listing authentications\");\n\n/**\n * Response schema for listAuthentications\n */\nexport const ListAuthenticationsResponseSchema = z\n .object({\n data: z\n .array(AuthenticationItemSchema)\n .describe(\"Array of authentication items\"),\n links: z\n .object({\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"Fully qualified URL for the next page of results (if available), e.g. https://sdkapi.zapier.com/api/v0/authentications?offset=100&pageSize=50\",\n ),\n })\n .describe(\"Pagination links for navigating through results\"),\n meta: z\n .object({\n count: z.number().describe(\"Total number of items\"),\n limit: z.number().describe(\"Number of items per page\"),\n offset: z.number().describe(\"Offset of the current page\"),\n })\n .describe(\"Metadata for the paginated result set\"),\n })\n .describe(\"Response schema for listing authentications\");\n\n/**\n * TypeScript types for request and response\n */\nexport type ListAuthenticationsQuery = z.infer<\n typeof ListAuthenticationsQuerySchema\n>;\nexport type ListAuthenticationsResponse = z.infer<\n typeof ListAuthenticationsResponseSchema\n>;\n"],"mappings":";AAAA,SAAS,SAAS;AAKX,IAAM,uBAAuB,EAAE,OAAO;AAAA,EAC3C,IAAI,EAAE,OAAO,EAAE,SAAS,0CAA0C;AAAA,EAClE,MAAM,EAAE,OAAO,EAAE,SAAS,cAAc;AAAA,EACxC,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,mBAAmB;AAAA,EAC/D,YAAY,EACT,OAAO,EACP,SAAS,gDAAgD;AAAA,EAC5D,eAAe,EACZ,OAAO,EACP,SAAS,EACT,SAAS,gCAAgC;AAAA,EAC5C,cAAc,EAAE,OAAO,EAAE,SAAS,wCAAwC;AAAA,EAC1E,0BAA0B,EACvB,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,qCAAqC;AAAA,EACjD,gBAAgB,EACb,QAAQ,EACR,SAAS,2CAA2C;AAAA,EACvD,YAAY,EAAE,QAAQ,EAAE,SAAS,uCAAuC;AAAA,EACxE,iBAAiB,EACd,QAAQ,EACR,SAAS,qDAAqD;AAAA,EACjE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,qBAAqB;AAAA,EAC9D,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,sBAAsB;AAAA,EAChE,iBAAiB,EACd,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,wBAAwB;AAAA,EACpC,OAAO,EACJ,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,mCAAmC;AAAA,EAC/C,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,YAAY;AAAA,EAClE,OAAO,EACJ,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,6BAA6B;AAAA,EACzC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,oCAAoC;AAAA,EACxE,QAAQ,EACL;AAAA,IACC,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ources":["../../../src/v0/schemas/authentications.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Base Authentication schema matching the API response\n */\nexport const AuthenticationSchema = z.object({\n id: z.number().describe(\"Unique identifier for the authentication\"),\n date: z.string().describe(\"Date created\"),\n lastchanged: z.string().optional().describe(\"Date last changed\"),\n account_id: z\n .number()\n .describe(\"Account ID associated with this authentication\"),\n customuser_id: z\n .number()\n .optional()\n .describe(\"Custom user ID (if applicable)\"),\n selected_api: z.string().describe(\"Selected API key (internal identifier)\"),\n destination_selected_api: z\n .string()\n .nullable()\n .optional()\n .describe(\"Destination API key (if applicable)\"),\n is_invite_only: z\n .boolean()\n .describe(\"Whether the authentication is invite-only\"),\n is_private: z.boolean().describe(\"Whether the authentication is private\"),\n shared_with_all: z\n .boolean()\n .describe(\"Whether the authentication is shared with all users\"),\n is_stale: z.string().optional().describe(\"Stale status string\"),\n is_shared: z.string().optional().describe(\"Shared status string\"),\n marked_stale_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when marked stale\"),\n label: z\n .string()\n .nullable()\n .optional()\n .describe(\"User label for the authentication\"),\n identifier: z.string().nullable().optional().describe(\"Identifier\"),\n title: z\n .string()\n .nullable()\n .optional()\n .describe(\"Title of the authentication\"),\n url: z.string().optional().describe(\"URL to the authentication resource\"),\n groups: z\n .array(\n z\n .record(z.string(), z.unknown())\n .describe(\"Groups associated with the authentication\"),\n )\n .optional()\n .describe(\"Array of groups associated with the authentication\"),\n members: z\n .string()\n .optional()\n .describe(\"Members associated with the authentication\"),\n permissions: z\n .record(z.string(), z.boolean())\n .optional()\n .describe(\"Permissions for the authentication\"),\n public_id: z\n .string()\n .optional()\n .describe(\"Public UUID for the authentication\"),\n account_public_id: z\n .string()\n .optional()\n .describe(\"Public UUID for the associated account\"),\n customuser_public_id: z\n .string()\n .optional()\n .describe(\"Public UUID for the associated custom user\"),\n});\n\n/**\n * Normalized authentication item returned by getAuthentication handler\n *\n * Transforms API response fields:\n * - selected_api → implementation_id\n * - customuser_id → profile_id\n * - is_stale → is_expired (preserved as is_stale too)\n * - marked_stale_at → expired_at (preserved as marked_stale_at too)\n *\n * Adds computed fields:\n * - app_key: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"SlackCLIAPI\")\n * - app_version: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"1.0.0\")\n */\nexport const AuthenticationItemSchema = AuthenticationSchema.omit({\n selected_api: true,\n customuser_id: true,\n}).extend({\n // Override numeric IDs with string versions (converted by normalizeAuthenticationItem)\n id: z.string().describe(\"Unique identifier for the authentication\"),\n account_id: z\n .string()\n .describe(\"Account ID associated with this authentication\"),\n\n // Renamed fields\n implementation_id: z\n .string()\n .optional()\n .describe(\"Implementation ID (was selected_api)\"),\n profile_id: z.string().optional().describe(\"Profile ID (was customuser_id)\"),\n\n // Mapped fields (originals preserved in ...restOfAuth)\n is_expired: z\n .string()\n .optional()\n .describe(\"Whether the authentication is expired (mapped from is_stale)\"),\n expired_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when authentication expired (mapped from marked_stale_at)\"),\n\n // Computed fields\n app_key: z\n .string()\n .optional()\n .describe(\"App Key extracted from implementation_id\"),\n app_version: z\n .string()\n .optional()\n .describe(\"App Version extracted from implementation_id\"),\n});\n\nexport const AuthenticationsResponseSchema = z.object({\n count: z.number().describe(\"Total number of items\"),\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the next page of results (if available)\"),\n previous: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the previous page of results (if available)\"),\n results: z\n .array(AuthenticationSchema)\n .describe(\"Array of authentication items\"),\n});\n\nexport type Authentication = z.infer<typeof AuthenticationSchema>;\nexport type AuthenticationItem = z.infer<typeof AuthenticationItemSchema>;\nexport type AuthenticationsResponse = z.infer<\n typeof AuthenticationsResponseSchema\n>;\n\n/**\n * Path parameters schema for getAuthentication endpoint.\n */\nexport const GetAuthenticationParamSchema = z\n .object({\n authenticationId: z.string().describe(\"Authentication ID to retrieve\"),\n })\n .describe(\"Get a specific authentication by ID\");\n\nexport type GetAuthenticationParam = z.infer<\n typeof GetAuthenticationParamSchema\n>;\n\n/**\n * Response type for getAuthentication endpoint.\n * Wraps AuthenticationItem in the standard API response envelope.\n */\nexport type GetAuthenticationResponse = { data: AuthenticationItem };\n\n/**\n * Query parameters for listing authentications\n */\nexport const ListAuthenticationsQuerySchema = z\n .object({\n appKey: z\n .string()\n .optional()\n .describe(\n \"Filter authentications by app key (e.g., 'SlackCLIAPI' or slug like 'github')\",\n ),\n authenticationIds: z\n .string()\n .optional()\n .describe(\"Comma-separated list of authentication IDs to filter by\"),\n search: z\n .string()\n .optional()\n .describe(\"Search term to filter authentications by title\"),\n title: z\n .string()\n .optional()\n .describe(\n \"Filter authentications by exact title match (searches first, then filters locally)\",\n ),\n accountId: z\n .string()\n .optional()\n .describe(\"Filter authentications by account ID\"),\n owner: z\n .string()\n .optional()\n .describe(\n \"Filter by owner, 'me' for your own authentications or a specific user ID\",\n ),\n isExpired: z\n .boolean()\n .optional()\n .describe(\n \"Filter by expired status (true = expired only, false = non-expired only)\",\n ),\n pageSize: z\n .number()\n .min(1)\n .optional()\n .describe(\"Number of authentications per page\"),\n offset: z\n .string()\n .optional()\n .describe(\"Pagination offset from previous response\"),\n })\n .describe(\"Query parameters for listing authentications\");\n\n/**\n * Response schema for listAuthentications\n */\nexport const ListAuthenticationsResponseSchema = z\n .object({\n data: z\n .array(AuthenticationItemSchema)\n .describe(\"Array of authentication items\"),\n links: z\n .object({\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"Fully qualified URL for the next page of results (if available), e.g. https://sdkapi.zapier.com/api/v0/authentications?offset=100&pageSize=50\",\n ),\n })\n .describe(\"Pagination links for navigating through results\"),\n meta: z\n .object({\n count: z.number().describe(\"Total number of items\"),\n limit: z.number().describe(\"Number of items per page\"),\n offset: z.number().describe(\"Offset of the current page\"),\n })\n .describe(\"Metadata for the paginated result set\"),\n })\n .describe(\"Response schema for listing authentications\");\n\n/**\n * TypeScript types for request and response\n */\nexport type ListAuthenticationsQuery = z.infer<\n typeof ListAuthenticationsQuerySchema\n>;\nexport type ListAuthenticationsResponse = z.infer<\n typeof ListAuthenticationsResponseSchema\n>;\n"],"mappings":";AAAA,SAAS,SAAS;AAKX,IAAM,uBAAuB,EAAE,OAAO;AAAA,EAC3C,IAAI,EAAE,OAAO,EAAE,SAAS,0CAA0C;AAAA,EAClE,MAAM,EAAE,OAAO,EAAE,SAAS,cAAc;AAAA,EACxC,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,mBAAmB;AAAA,EAC/D,YAAY,EACT,OAAO,EACP,SAAS,gDAAgD;AAAA,EAC5D,eAAe,EACZ,OAAO,EACP,SAAS,EACT,SAAS,gCAAgC;AAAA,EAC5C,cAAc,EAAE,OAAO,EAAE,SAAS,wCAAwC;AAAA,EAC1E,0BAA0B,EACvB,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,qCAAqC;AAAA,EACjD,gBAAgB,EACb,QAAQ,EACR,SAAS,2CAA2C;AAAA,EACvD,YAAY,EAAE,QAAQ,EAAE,SAAS,uCAAuC;AAAA,EACxE,iBAAiB,EACd,QAAQ,EACR,SAAS,qDAAqD;AAAA,EACjE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,qBAAqB;AAAA,EAC9D,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,sBAAsB;AAAA,EAChE,iBAAiB,EACd,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,wBAAwB;AAAA,EACpC,OAAO,EACJ,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,mCAAmC;AAAA,EAC/C,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,YAAY;AAAA,EAClE,OAAO,EACJ,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,6BAA6B;AAAA,EACzC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,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EAAE,OAAO,EAAE,SAAS,uBAAuB;AAAA,IAClD,OAAO,EAAE,OAAO,EAAE,SAAS,0BAA0B;AAAA,IACrD,QAAQ,EAAE,OAAO,EAAE,SAAS,4BAA4B;AAAA,EAC1D,CAAC,EACA,SAAS,uCAAuC;AACrD,CAAC,EACA,SAAS,6CAA6C;","names":[]}
|
|
@@ -51,7 +51,10 @@ var ConnectionSchema = import_zod.z.object({
|
|
|
51
51
|
import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).describe("Groups associated with the connection")
|
|
52
52
|
).optional().describe("Array of groups associated with the connection"),
|
|
53
53
|
members: import_zod.z.string().optional().describe("Members associated with the connection"),
|
|
54
|
-
permissions: import_zod.z.record(import_zod.z.string(), import_zod.z.boolean()).optional().describe("Permissions for the connection")
|
|
54
|
+
permissions: import_zod.z.record(import_zod.z.string(), import_zod.z.boolean()).optional().describe("Permissions for the connection"),
|
|
55
|
+
public_id: import_zod.z.string().optional().describe("Public UUID for the connection"),
|
|
56
|
+
account_public_id: import_zod.z.string().optional().describe("Public UUID for the associated account"),
|
|
57
|
+
customuser_public_id: import_zod.z.string().optional().describe("Public UUID for the associated custom user")
|
|
55
58
|
});
|
|
56
59
|
var ConnectionItemSchema = ConnectionSchema.omit({
|
|
57
60
|
selected_api: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/v0/schemas/connections.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Base Connection schema matching the API response\n * (internally uses the same v4 authentications API)\n */\nexport const ConnectionSchema = z.object({\n id: z.number().describe(\"Unique identifier for the connection\"),\n date: z.string().describe(\"Date created\"),\n lastchanged: z.string().optional().describe(\"Date last changed\"),\n account_id: z.number().describe(\"Account ID associated with this connection\"),\n customuser_id: z\n .number()\n .optional()\n .describe(\"Custom user ID (if applicable)\"),\n selected_api: z.string().describe(\"Selected API key (internal identifier)\"),\n destination_selected_api: z\n .string()\n .nullable()\n .optional()\n .describe(\"Destination API key (if applicable)\"),\n is_invite_only: z.boolean().describe(\"Whether the connection is invite-only\"),\n is_private: z.boolean().describe(\"Whether the connection is private\"),\n shared_with_all: z\n .boolean()\n .describe(\"Whether the connection is shared with all users\"),\n is_stale: z.string().optional().describe(\"Stale status string\"),\n is_shared: z.string().optional().describe(\"Shared status string\"),\n marked_stale_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when marked stale\"),\n label: z\n .string()\n .nullable()\n .optional()\n .describe(\"User label for the connection\"),\n identifier: z.string().nullable().optional().describe(\"Identifier\"),\n title: z.string().nullable().optional().describe(\"Title of the connection\"),\n url: z.string().optional().describe(\"URL to the connection resource\"),\n groups: z\n .array(\n z\n .record(z.string(), z.unknown())\n .describe(\"Groups associated with the connection\"),\n )\n .optional()\n .describe(\"Array of groups associated with the connection\"),\n members: z\n .string()\n .optional()\n .describe(\"Members associated with the connection\"),\n permissions: z\n .record(z.string(), z.boolean())\n .optional()\n .describe(\"Permissions for the connection\"),\n});\n\n/**\n * Normalized connection item returned by getConnection handler\n *\n * Transforms API response fields:\n * - selected_api → implementation_id\n * - customuser_id → profile_id\n * - is_stale → is_expired (preserved as is_stale too)\n * - marked_stale_at → expired_at (preserved as marked_stale_at too)\n *\n * Adds computed fields:\n * - app_key: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"SlackCLIAPI\")\n * - app_version: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"1.0.0\")\n */\nexport const ConnectionItemSchema = ConnectionSchema.omit({\n selected_api: true,\n customuser_id: true,\n}).extend({\n // Override numeric IDs with string versions (converted by normalizeConnectionItem)\n id: z.string().describe(\"Unique identifier for the connection\"),\n account_id: z.string().describe(\"Account ID associated with this connection\"),\n\n // Renamed fields\n implementation_id: z\n .string()\n .optional()\n .describe(\"Implementation ID (was selected_api)\"),\n profile_id: z.string().optional().describe(\"Profile ID (was customuser_id)\"),\n\n // Mapped fields (originals preserved in ...restOfAuth)\n is_expired: z\n .string()\n .optional()\n .describe(\"Whether the connection is expired (mapped from is_stale)\"),\n expired_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when connection expired (mapped from marked_stale_at)\"),\n\n // Computed fields\n app_key: z\n .string()\n .optional()\n .describe(\"App Key extracted from implementation_id\"),\n app_version: z\n .string()\n .optional()\n .describe(\"App Version extracted from implementation_id\"),\n});\n\nexport const ConnectionsResponseSchema = z.object({\n count: z.number().describe(\"Total number of items\"),\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the next page of results (if available)\"),\n previous: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the previous page of results (if available)\"),\n results: z.array(ConnectionSchema).describe(\"Array of connection items\"),\n});\n\nexport type Connection = z.infer<typeof ConnectionSchema>;\nexport type ConnectionItem = z.infer<typeof ConnectionItemSchema>;\nexport type ConnectionsResponse = z.infer<typeof ConnectionsResponseSchema>;\n\n/**\n * Path parameters schema for getConnection endpoint.\n */\nexport const GetConnectionParamSchema = z\n .object({\n connectionId: z.string().describe(\"Connection ID to retrieve\"),\n })\n .describe(\"Get a specific connection by ID\");\n\nexport type GetConnectionParam = z.infer<typeof GetConnectionParamSchema>;\n\n/**\n * Response type for getConnection endpoint.\n * Wraps ConnectionItem in the standard API response envelope.\n */\nexport type GetConnectionResponse = { data: ConnectionItem };\n\n/**\n * Query parameters for listing connections\n */\nexport const ListConnectionsQuerySchema = z\n .object({\n app_key: z\n .string()\n .optional()\n .describe(\n \"Filter connections by app key (e.g., 'SlackCLIAPI' or slug like 'github')\",\n ),\n connection_ids: z\n .string()\n .optional()\n .describe(\"Comma-separated list of connection IDs to filter by\"),\n search: z\n .string()\n .optional()\n .describe(\"Search term to filter connections by title\"),\n title: z\n .string()\n .optional()\n .describe(\n \"Filter connections by exact title match (searches first, then filters locally)\",\n ),\n account_id: z\n .string()\n .optional()\n .describe(\"Filter connections by account ID\"),\n owner: z\n .string()\n .optional()\n .describe(\n \"Filter by owner, 'me' for your own connections or a specific user ID\",\n ),\n is_expired: z\n .boolean()\n .optional()\n .describe(\n \"Filter by expired status (true = expired only, false = non-expired only)\",\n ),\n page_size: z\n .number()\n .min(1)\n .optional()\n .describe(\"Number of connections per page\"),\n offset: z\n .string()\n .optional()\n .describe(\"Pagination offset from previous response\"),\n })\n .describe(\"Query parameters for listing connections\");\n\n/**\n * Response schema for listConnections\n */\nexport const ListConnectionsResponseSchema = z\n .object({\n data: z.array(ConnectionItemSchema).describe(\"Array of connection items\"),\n links: z\n .object({\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"Fully qualified URL for the next page of results (if available), e.g. https://sdkapi.zapier.com/api/v0/connections?offset=100&page_size=50\",\n ),\n })\n .describe(\"Pagination links for navigating through results\"),\n meta: z\n .object({\n count: z.number().describe(\"Total number of items\"),\n limit: z.number().describe(\"Number of items per page\"),\n offset: z.number().describe(\"Offset of the current page\"),\n })\n .describe(\"Metadata for the paginated result set\"),\n })\n .describe(\"Response schema for listing connections\");\n\n/**\n * TypeScript types for request and response\n */\nexport type ListConnectionsQuery = z.infer<typeof ListConnectionsQuerySchema>;\nexport type ListConnectionsResponse = z.infer<\n typeof ListConnectionsResponseSchema\n>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAkB;AAMX,IAAM,mBAAmB,aAAE,OAAO;AAAA,EACvC,IAAI,aAAE,OAAO,EAAE,SAAS,sCAAsC;AAAA,EAC9D,MAAM,aAAE,OAAO,EAAE,SAAS,cAAc;AAAA,EACxC,aAAa,aAAE,OAAO,EAAE,SAAS,EAAE,SAAS,mBAAmB;AAAA,EAC/D,YAAY,aAAE,OAAO,EAAE,SAAS,4CAA4C;AAAA,EAC5E,eAAe,aACZ,OAAO,EACP,SAAS,EACT,SAAS,gCAAgC;AAAA,EAC5C,cAAc,aAAE,OAAO,EAAE,SAAS,wCAAwC;AAAA,EAC1E,0BAA0B,aACvB,OAAO,EACP,SAAS,EACT,SAAS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AA,EACF;AAAA,EACF,WAAW,aACR,OAAO,EACP,IAAI,CAAC,EACL,SAAS,EACT,SAAS,gCAAgC;AAAA,EAC5C,QAAQ,aACL,OAAO,EACP,SAAS,EACT,SAAS,0CAA0C;AACxD,CAAC,EACA,SAAS,0CAA0C;AAK/C,IAAM,gCAAgC,aAC1C,OAAO;AAAA,EACN,MAAM,aAAE,MAAM,oBAAoB,EAAE,SAAS,2BAA2B;AAAA,EACxE,OAAO,aACJ,OAAO;AAAA,IACN,MAAM,aACH,OAAO,EACP,SAAS,EACT,SAAS,EACT;AAAA,MACC;AAAA,IACF;AAAA,EACJ,CAAC,EACA,SAAS,iDAAiD;AAAA,EAC7D,MAAM,aACH,OAAO;AAAA,IACN,OAAO,aAAE,OAAO,EAAE,SAAS,uBAAuB;AAAA,IAClD,OAAO,aAAE,OAAO,EAAE,SAAS,0BAA0B;AAAA,IACrD,QAAQ,aAAE,OAAO,EAAE,SAAS,4BAA4B;AAAA,EAC1D,CAAC,EACA,SAAS,uCAAuC;AACrD,CAAC,EACA,SAAS,yCAAyC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/v0/schemas/connections.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Base Connection schema matching the API response\n * (internally uses the same v4 authentications API)\n */\nexport const ConnectionSchema = z.object({\n id: z.number().describe(\"Unique identifier for the connection\"),\n date: z.string().describe(\"Date created\"),\n lastchanged: z.string().optional().describe(\"Date last changed\"),\n account_id: z.number().describe(\"Account ID associated with this connection\"),\n customuser_id: z\n .number()\n .optional()\n .describe(\"Custom user ID (if applicable)\"),\n selected_api: z.string().describe(\"Selected API key (internal identifier)\"),\n destination_selected_api: z\n .string()\n .nullable()\n .optional()\n .describe(\"Destination API key (if applicable)\"),\n is_invite_only: z.boolean().describe(\"Whether the connection is invite-only\"),\n is_private: z.boolean().describe(\"Whether the connection is private\"),\n shared_with_all: z\n .boolean()\n .describe(\"Whether the connection is shared with all users\"),\n is_stale: z.string().optional().describe(\"Stale status string\"),\n is_shared: z.string().optional().describe(\"Shared status string\"),\n marked_stale_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when marked stale\"),\n label: z\n .string()\n .nullable()\n .optional()\n .describe(\"User label for the connection\"),\n identifier: z.string().nullable().optional().describe(\"Identifier\"),\n title: z.string().nullable().optional().describe(\"Title of the connection\"),\n url: z.string().optional().describe(\"URL to the connection resource\"),\n groups: z\n .array(\n z\n .record(z.string(), z.unknown())\n .describe(\"Groups associated with the connection\"),\n )\n .optional()\n .describe(\"Array of groups associated with the connection\"),\n members: z\n .string()\n .optional()\n .describe(\"Members associated with the connection\"),\n permissions: z\n .record(z.string(), z.boolean())\n .optional()\n .describe(\"Permissions for the connection\"),\n public_id: z.string().optional().describe(\"Public UUID for the connection\"),\n account_public_id: z\n .string()\n .optional()\n .describe(\"Public UUID for the associated account\"),\n customuser_public_id: z\n .string()\n .optional()\n .describe(\"Public UUID for the associated custom user\"),\n});\n\n/**\n * Normalized connection item returned by getConnection handler\n *\n * Transforms API response fields:\n * - selected_api → implementation_id\n * - customuser_id → profile_id\n * - is_stale → is_expired (preserved as is_stale too)\n * - marked_stale_at → expired_at (preserved as marked_stale_at too)\n *\n * Adds computed fields:\n * - app_key: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"SlackCLIAPI\")\n * - app_version: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"1.0.0\")\n */\nexport const ConnectionItemSchema = ConnectionSchema.omit({\n selected_api: true,\n customuser_id: true,\n}).extend({\n // Override numeric IDs with string versions (converted by normalizeConnectionItem)\n id: z.string().describe(\"Unique identifier for the connection\"),\n account_id: z.string().describe(\"Account ID associated with this connection\"),\n\n // Renamed fields\n implementation_id: z\n .string()\n .optional()\n .describe(\"Implementation ID (was selected_api)\"),\n profile_id: z.string().optional().describe(\"Profile ID (was customuser_id)\"),\n\n // Mapped fields (originals preserved in ...restOfAuth)\n is_expired: z\n .string()\n .optional()\n .describe(\"Whether the connection is expired (mapped from is_stale)\"),\n expired_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when connection expired (mapped from marked_stale_at)\"),\n\n // Computed fields\n app_key: z\n .string()\n .optional()\n .describe(\"App Key extracted from implementation_id\"),\n app_version: z\n .string()\n .optional()\n .describe(\"App Version extracted from implementation_id\"),\n});\n\nexport const ConnectionsResponseSchema = z.object({\n count: z.number().describe(\"Total number of items\"),\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the next page of results (if available)\"),\n previous: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the previous page of results (if available)\"),\n results: z.array(ConnectionSchema).describe(\"Array of connection items\"),\n});\n\nexport type Connection = z.infer<typeof ConnectionSchema>;\nexport type ConnectionItem = z.infer<typeof ConnectionItemSchema>;\nexport type ConnectionsResponse = z.infer<typeof ConnectionsResponseSchema>;\n\n/**\n * Path parameters schema for getConnection endpoint.\n */\nexport const GetConnectionParamSchema = z\n .object({\n connectionId: z.string().describe(\"Connection ID to retrieve\"),\n })\n .describe(\"Get a specific connection by ID\");\n\nexport type GetConnectionParam = z.infer<typeof GetConnectionParamSchema>;\n\n/**\n * Response type for getConnection endpoint.\n * Wraps ConnectionItem in the standard API response envelope.\n */\nexport type GetConnectionResponse = { data: ConnectionItem };\n\n/**\n * Query parameters for listing connections\n */\nexport const ListConnectionsQuerySchema = z\n .object({\n app_key: z\n .string()\n .optional()\n .describe(\n \"Filter connections by app key (e.g., 'SlackCLIAPI' or slug like 'github')\",\n ),\n connection_ids: z\n .string()\n .optional()\n .describe(\"Comma-separated list of connection IDs to filter by\"),\n search: z\n .string()\n .optional()\n .describe(\"Search term to filter connections by title\"),\n title: z\n .string()\n .optional()\n .describe(\n \"Filter connections by exact title match (searches first, then filters locally)\",\n ),\n account_id: z\n .string()\n .optional()\n .describe(\"Filter connections by account ID\"),\n owner: z\n .string()\n .optional()\n .describe(\n \"Filter by owner, 'me' for your own connections or a specific user ID\",\n ),\n is_expired: z\n .boolean()\n .optional()\n .describe(\n \"Filter by expired status (true = expired only, false = non-expired only)\",\n ),\n page_size: z\n .number()\n .min(1)\n .optional()\n .describe(\"Number of connections per page\"),\n offset: z\n .string()\n .optional()\n .describe(\"Pagination offset from previous response\"),\n })\n .describe(\"Query parameters for listing connections\");\n\n/**\n * Response schema for listConnections\n */\nexport const ListConnectionsResponseSchema = z\n .object({\n data: z.array(ConnectionItemSchema).describe(\"Array of connection items\"),\n links: z\n .object({\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"Fully qualified URL for the next page of results (if available), e.g. https://sdkapi.zapier.com/api/v0/connections?offset=100&page_size=50\",\n ),\n })\n .describe(\"Pagination links for navigating through results\"),\n meta: z\n .object({\n count: z.number().describe(\"Total number of items\"),\n limit: z.number().describe(\"Number of items per page\"),\n offset: z.number().describe(\"Offset of the current page\"),\n })\n .describe(\"Metadata for the paginated result set\"),\n })\n .describe(\"Response schema for listing connections\");\n\n/**\n * TypeScript types for request and response\n */\nexport type ListConnectionsQuery = z.infer<typeof ListConnectionsQuerySchema>;\nexport type ListConnectionsResponse = z.infer<\n typeof ListConnectionsResponseSchema\n>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAkB;AAMX,IAAM,mBAAmB,aAAE,OAAO;AAAA,EACvC,IAAI,aAAE,OAAO,EAAE,SAAS,sCAAsC;AAAA,EAC9D,MAAM,aAAE,OAAO,EAAE,SAAS,cAAc;AAAA,EACxC,aAAa,aAAE,OAAO,EAAE,SAAS,EAAE,SAAS,mBAAmB;AAAA,EAC/D,YAAY,aAAE,OAAO,EAAE,SAAS,4CAA4C;AAAA,EAC5E,eAAe,aACZ,OAAO,EACP,SAAS,EACT,SAAS,gCAAgC;AAAA,EAC5C,cAAc,aAAE,OAAO,EAAE,SAAS,wCAAwC;AAAA,EAC1E,0BAA0B,aACvB,OAAO,EACP,SAAS,EACT,SAAS,EACT,SA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AA,EACF,YAAY,aACT,OAAO,EACP,SAAS,EACT,SAAS,kCAAkC;AAAA,EAC9C,OAAO,aACJ,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,YAAY,aACT,QAAQ,EACR,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,WAAW,aACR,OAAO,EACP,IAAI,CAAC,EACL,SAAS,EACT,SAAS,gCAAgC;AAAA,EAC5C,QAAQ,aACL,OAAO,EACP,SAAS,EACT,SAAS,0CAA0C;AACxD,CAAC,EACA,SAAS,0CAA0C;AAK/C,IAAM,gCAAgC,aAC1C,OAAO;AAAA,EACN,MAAM,aAAE,MAAM,oBAAoB,EAAE,SAAS,2BAA2B;AAAA,EACxE,OAAO,aACJ,OAAO;AAAA,IACN,MAAM,aACH,OAAO,EACP,SAAS,EACT,SAAS,EACT;AAAA,MACC;AAAA,IACF;AAAA,EACJ,CAAC,EACA,SAAS,iDAAiD;AAAA,EAC7D,MAAM,aACH,OAAO;AAAA,IACN,OAAO,aAAE,OAAO,EAAE,SAAS,uBAAuB;AAAA,IAClD,OAAO,aAAE,OAAO,EAAE,SAAS,0BAA0B;AAAA,IACrD,QAAQ,aAAE,OAAO,EAAE,SAAS,4BAA4B;AAAA,EAC1D,CAAC,EACA,SAAS,uCAAuC;AACrD,CAAC,EACA,SAAS,yCAAyC;","names":[]}
|
|
@@ -25,6 +25,9 @@ declare const ConnectionSchema: z.ZodObject<{
|
|
|
25
25
|
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
26
26
|
members: z.ZodOptional<z.ZodString>;
|
|
27
27
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
28
|
+
public_id: z.ZodOptional<z.ZodString>;
|
|
29
|
+
account_public_id: z.ZodOptional<z.ZodString>;
|
|
30
|
+
customuser_public_id: z.ZodOptional<z.ZodString>;
|
|
28
31
|
}, z.core.$strip>;
|
|
29
32
|
/**
|
|
30
33
|
* Normalized connection item returned by getConnection handler
|
|
@@ -40,8 +43,8 @@ declare const ConnectionSchema: z.ZodObject<{
|
|
|
40
43
|
* - app_version: Extracted from selected_api (e.g., "SlackCLIAPI@1.0.0" → "1.0.0")
|
|
41
44
|
*/
|
|
42
45
|
declare const ConnectionItemSchema: z.ZodObject<{
|
|
43
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
46
|
date: z.ZodString;
|
|
47
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
48
|
is_invite_only: z.ZodBoolean;
|
|
46
49
|
lastchanged: z.ZodOptional<z.ZodString>;
|
|
47
50
|
destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -56,6 +59,9 @@ declare const ConnectionItemSchema: z.ZodObject<{
|
|
|
56
59
|
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
57
60
|
members: z.ZodOptional<z.ZodString>;
|
|
58
61
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
62
|
+
public_id: z.ZodOptional<z.ZodString>;
|
|
63
|
+
account_public_id: z.ZodOptional<z.ZodString>;
|
|
64
|
+
customuser_public_id: z.ZodOptional<z.ZodString>;
|
|
59
65
|
id: z.ZodString;
|
|
60
66
|
account_id: z.ZodString;
|
|
61
67
|
implementation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -90,6 +96,9 @@ declare const ConnectionsResponseSchema: z.ZodObject<{
|
|
|
90
96
|
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
91
97
|
members: z.ZodOptional<z.ZodString>;
|
|
92
98
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
99
|
+
public_id: z.ZodOptional<z.ZodString>;
|
|
100
|
+
account_public_id: z.ZodOptional<z.ZodString>;
|
|
101
|
+
customuser_public_id: z.ZodOptional<z.ZodString>;
|
|
93
102
|
}, z.core.$strip>>;
|
|
94
103
|
}, z.core.$strip>;
|
|
95
104
|
type Connection = z.infer<typeof ConnectionSchema>;
|
|
@@ -128,8 +137,8 @@ declare const ListConnectionsQuerySchema: z.ZodObject<{
|
|
|
128
137
|
*/
|
|
129
138
|
declare const ListConnectionsResponseSchema: z.ZodObject<{
|
|
130
139
|
data: z.ZodArray<z.ZodObject<{
|
|
131
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
132
140
|
date: z.ZodString;
|
|
141
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
133
142
|
is_invite_only: z.ZodBoolean;
|
|
134
143
|
lastchanged: z.ZodOptional<z.ZodString>;
|
|
135
144
|
destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -144,6 +153,9 @@ declare const ListConnectionsResponseSchema: z.ZodObject<{
|
|
|
144
153
|
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
145
154
|
members: z.ZodOptional<z.ZodString>;
|
|
146
155
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
156
|
+
public_id: z.ZodOptional<z.ZodString>;
|
|
157
|
+
account_public_id: z.ZodOptional<z.ZodString>;
|
|
158
|
+
customuser_public_id: z.ZodOptional<z.ZodString>;
|
|
147
159
|
id: z.ZodString;
|
|
148
160
|
account_id: z.ZodString;
|
|
149
161
|
implementation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -25,6 +25,9 @@ declare const ConnectionSchema: z.ZodObject<{
|
|
|
25
25
|
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
26
26
|
members: z.ZodOptional<z.ZodString>;
|
|
27
27
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
28
|
+
public_id: z.ZodOptional<z.ZodString>;
|
|
29
|
+
account_public_id: z.ZodOptional<z.ZodString>;
|
|
30
|
+
customuser_public_id: z.ZodOptional<z.ZodString>;
|
|
28
31
|
}, z.core.$strip>;
|
|
29
32
|
/**
|
|
30
33
|
* Normalized connection item returned by getConnection handler
|
|
@@ -40,8 +43,8 @@ declare const ConnectionSchema: z.ZodObject<{
|
|
|
40
43
|
* - app_version: Extracted from selected_api (e.g., "SlackCLIAPI@1.0.0" → "1.0.0")
|
|
41
44
|
*/
|
|
42
45
|
declare const ConnectionItemSchema: z.ZodObject<{
|
|
43
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
46
|
date: z.ZodString;
|
|
47
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
48
|
is_invite_only: z.ZodBoolean;
|
|
46
49
|
lastchanged: z.ZodOptional<z.ZodString>;
|
|
47
50
|
destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -56,6 +59,9 @@ declare const ConnectionItemSchema: z.ZodObject<{
|
|
|
56
59
|
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
57
60
|
members: z.ZodOptional<z.ZodString>;
|
|
58
61
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
62
|
+
public_id: z.ZodOptional<z.ZodString>;
|
|
63
|
+
account_public_id: z.ZodOptional<z.ZodString>;
|
|
64
|
+
customuser_public_id: z.ZodOptional<z.ZodString>;
|
|
59
65
|
id: z.ZodString;
|
|
60
66
|
account_id: z.ZodString;
|
|
61
67
|
implementation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -90,6 +96,9 @@ declare const ConnectionsResponseSchema: z.ZodObject<{
|
|
|
90
96
|
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
91
97
|
members: z.ZodOptional<z.ZodString>;
|
|
92
98
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
99
|
+
public_id: z.ZodOptional<z.ZodString>;
|
|
100
|
+
account_public_id: z.ZodOptional<z.ZodString>;
|
|
101
|
+
customuser_public_id: z.ZodOptional<z.ZodString>;
|
|
93
102
|
}, z.core.$strip>>;
|
|
94
103
|
}, z.core.$strip>;
|
|
95
104
|
type Connection = z.infer<typeof ConnectionSchema>;
|
|
@@ -128,8 +137,8 @@ declare const ListConnectionsQuerySchema: z.ZodObject<{
|
|
|
128
137
|
*/
|
|
129
138
|
declare const ListConnectionsResponseSchema: z.ZodObject<{
|
|
130
139
|
data: z.ZodArray<z.ZodObject<{
|
|
131
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
132
140
|
date: z.ZodString;
|
|
141
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
133
142
|
is_invite_only: z.ZodBoolean;
|
|
134
143
|
lastchanged: z.ZodOptional<z.ZodString>;
|
|
135
144
|
destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -144,6 +153,9 @@ declare const ListConnectionsResponseSchema: z.ZodObject<{
|
|
|
144
153
|
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
145
154
|
members: z.ZodOptional<z.ZodString>;
|
|
146
155
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
156
|
+
public_id: z.ZodOptional<z.ZodString>;
|
|
157
|
+
account_public_id: z.ZodOptional<z.ZodString>;
|
|
158
|
+
customuser_public_id: z.ZodOptional<z.ZodString>;
|
|
147
159
|
id: z.ZodString;
|
|
148
160
|
account_id: z.ZodString;
|
|
149
161
|
implementation_id: z.ZodOptional<z.ZodString>;
|
|
@@ -22,7 +22,10 @@ var ConnectionSchema = z.object({
|
|
|
22
22
|
z.record(z.string(), z.unknown()).describe("Groups associated with the connection")
|
|
23
23
|
).optional().describe("Array of groups associated with the connection"),
|
|
24
24
|
members: z.string().optional().describe("Members associated with the connection"),
|
|
25
|
-
permissions: z.record(z.string(), z.boolean()).optional().describe("Permissions for the connection")
|
|
25
|
+
permissions: z.record(z.string(), z.boolean()).optional().describe("Permissions for the connection"),
|
|
26
|
+
public_id: z.string().optional().describe("Public UUID for the connection"),
|
|
27
|
+
account_public_id: z.string().optional().describe("Public UUID for the associated account"),
|
|
28
|
+
customuser_public_id: z.string().optional().describe("Public UUID for the associated custom user")
|
|
26
29
|
});
|
|
27
30
|
var ConnectionItemSchema = ConnectionSchema.omit({
|
|
28
31
|
selected_api: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/v0/schemas/connections.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Base Connection schema matching the API response\n * (internally uses the same v4 authentications API)\n */\nexport const ConnectionSchema = z.object({\n id: z.number().describe(\"Unique identifier for the connection\"),\n date: z.string().describe(\"Date created\"),\n lastchanged: z.string().optional().describe(\"Date last changed\"),\n account_id: z.number().describe(\"Account ID associated with this connection\"),\n customuser_id: z\n .number()\n .optional()\n .describe(\"Custom user ID (if applicable)\"),\n selected_api: z.string().describe(\"Selected API key (internal identifier)\"),\n destination_selected_api: z\n .string()\n .nullable()\n .optional()\n .describe(\"Destination API key (if applicable)\"),\n is_invite_only: z.boolean().describe(\"Whether the connection is invite-only\"),\n is_private: z.boolean().describe(\"Whether the connection is private\"),\n shared_with_all: z\n .boolean()\n .describe(\"Whether the connection is shared with all users\"),\n is_stale: z.string().optional().describe(\"Stale status string\"),\n is_shared: z.string().optional().describe(\"Shared status string\"),\n marked_stale_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when marked stale\"),\n label: z\n .string()\n .nullable()\n .optional()\n .describe(\"User label for the connection\"),\n identifier: z.string().nullable().optional().describe(\"Identifier\"),\n title: z.string().nullable().optional().describe(\"Title of the connection\"),\n url: z.string().optional().describe(\"URL to the connection resource\"),\n groups: z\n .array(\n z\n .record(z.string(), z.unknown())\n .describe(\"Groups associated with the connection\"),\n )\n .optional()\n .describe(\"Array of groups associated with the connection\"),\n members: z\n .string()\n .optional()\n .describe(\"Members associated with the connection\"),\n permissions: z\n .record(z.string(), z.boolean())\n .optional()\n .describe(\"Permissions for the connection\"),\n});\n\n/**\n * Normalized connection item returned by getConnection handler\n *\n * Transforms API response fields:\n * - selected_api → implementation_id\n * - customuser_id → profile_id\n * - is_stale → is_expired (preserved as is_stale too)\n * - marked_stale_at → expired_at (preserved as marked_stale_at too)\n *\n * Adds computed fields:\n * - app_key: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"SlackCLIAPI\")\n * - app_version: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"1.0.0\")\n */\nexport const ConnectionItemSchema = ConnectionSchema.omit({\n selected_api: true,\n customuser_id: true,\n}).extend({\n // Override numeric IDs with string versions (converted by normalizeConnectionItem)\n id: z.string().describe(\"Unique identifier for the connection\"),\n account_id: z.string().describe(\"Account ID associated with this connection\"),\n\n // Renamed fields\n implementation_id: z\n .string()\n .optional()\n .describe(\"Implementation ID (was selected_api)\"),\n profile_id: z.string().optional().describe(\"Profile ID (was customuser_id)\"),\n\n // Mapped fields (originals preserved in ...restOfAuth)\n is_expired: z\n .string()\n .optional()\n .describe(\"Whether the connection is expired (mapped from is_stale)\"),\n expired_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when connection expired (mapped from marked_stale_at)\"),\n\n // Computed fields\n app_key: z\n .string()\n .optional()\n .describe(\"App Key extracted from implementation_id\"),\n app_version: z\n .string()\n .optional()\n .describe(\"App Version extracted from implementation_id\"),\n});\n\nexport const ConnectionsResponseSchema = z.object({\n count: z.number().describe(\"Total number of items\"),\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the next page of results (if available)\"),\n previous: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the previous page of results (if available)\"),\n results: z.array(ConnectionSchema).describe(\"Array of connection items\"),\n});\n\nexport type Connection = z.infer<typeof ConnectionSchema>;\nexport type ConnectionItem = z.infer<typeof ConnectionItemSchema>;\nexport type ConnectionsResponse = z.infer<typeof ConnectionsResponseSchema>;\n\n/**\n * Path parameters schema for getConnection endpoint.\n */\nexport const GetConnectionParamSchema = z\n .object({\n connectionId: z.string().describe(\"Connection ID to retrieve\"),\n })\n .describe(\"Get a specific connection by ID\");\n\nexport type GetConnectionParam = z.infer<typeof GetConnectionParamSchema>;\n\n/**\n * Response type for getConnection endpoint.\n * Wraps ConnectionItem in the standard API response envelope.\n */\nexport type GetConnectionResponse = { data: ConnectionItem };\n\n/**\n * Query parameters for listing connections\n */\nexport const ListConnectionsQuerySchema = z\n .object({\n app_key: z\n .string()\n .optional()\n .describe(\n \"Filter connections by app key (e.g., 'SlackCLIAPI' or slug like 'github')\",\n ),\n connection_ids: z\n .string()\n .optional()\n .describe(\"Comma-separated list of connection IDs to filter by\"),\n search: z\n .string()\n .optional()\n .describe(\"Search term to filter connections by title\"),\n title: z\n .string()\n .optional()\n .describe(\n \"Filter connections by exact title match (searches first, then filters locally)\",\n ),\n account_id: z\n .string()\n .optional()\n .describe(\"Filter connections by account ID\"),\n owner: z\n .string()\n .optional()\n .describe(\n \"Filter by owner, 'me' for your own connections or a specific user ID\",\n ),\n is_expired: z\n .boolean()\n .optional()\n .describe(\n \"Filter by expired status (true = expired only, false = non-expired only)\",\n ),\n page_size: z\n .number()\n .min(1)\n .optional()\n .describe(\"Number of connections per page\"),\n offset: z\n .string()\n .optional()\n .describe(\"Pagination offset from previous response\"),\n })\n .describe(\"Query parameters for listing connections\");\n\n/**\n * Response schema for listConnections\n */\nexport const ListConnectionsResponseSchema = z\n .object({\n data: z.array(ConnectionItemSchema).describe(\"Array of connection items\"),\n links: z\n .object({\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"Fully qualified URL for the next page of results (if available), e.g. https://sdkapi.zapier.com/api/v0/connections?offset=100&page_size=50\",\n ),\n })\n .describe(\"Pagination links for navigating through results\"),\n meta: z\n .object({\n count: z.number().describe(\"Total number of items\"),\n limit: z.number().describe(\"Number of items per page\"),\n offset: z.number().describe(\"Offset of the current page\"),\n })\n .describe(\"Metadata for the paginated result set\"),\n })\n .describe(\"Response schema for listing connections\");\n\n/**\n * TypeScript types for request and response\n */\nexport type ListConnectionsQuery = z.infer<typeof ListConnectionsQuerySchema>;\nexport type ListConnectionsResponse = z.infer<\n typeof ListConnectionsResponseSchema\n>;\n"],"mappings":";AAAA,SAAS,SAAS;AAMX,IAAM,mBAAmB,EAAE,OAAO;AAAA,EACvC,IAAI,EAAE,OAAO,EAAE,SAAS,sCAAsC;AAAA,EAC9D,MAAM,EAAE,OAAO,EAAE,SAAS,cAAc;AAAA,EACxC,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,mBAAmB;AAAA,EAC/D,YAAY,EAAE,OAAO,EAAE,SAAS,4CAA4C;AAAA,EAC5E,eAAe,EACZ,OAAO,EACP,SAAS,EACT,SAAS,gCAAgC;AAAA,EAC5C,cAAc,EAAE,OAAO,EAAE,SAAS,wCAAwC;AAAA,EAC1E,0BAA0B,EACvB,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,qCAAqC;AAAA,EACjD,gBAAgB,EAAE,QAAQ,EAAE,SAAS,uCAAuC;AAAA,EAC5E,YAAY,EAAE,QAAQ,EAAE,SAAS,mCAAmC;AAAA,EACpE,iBAAiB,EACd,QAAQ,EACR,SAAS,iDAAiD;AAAA,EAC7D,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,qBAAqB;AAAA,EAC9D,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,sBAAsB;AAAA,EAChE,iBAAiB,EACd,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,wBAAwB;AAAA,EACpC,OAAO,EACJ,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,+BAA+B;AAAA,EAC3C,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,S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E,OAAO,EAAE,SAAS,0BAA0B;AAAA,IACrD,QAAQ,EAAE,OAAO,EAAE,SAAS,4BAA4B;AAAA,EAC1D,CAAC,EACA,SAAS,uCAAuC;AACrD,CAAC,EACA,SAAS,yCAAyC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/v0/schemas/connections.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Base Connection schema matching the API response\n * (internally uses the same v4 authentications API)\n */\nexport const ConnectionSchema = z.object({\n id: z.number().describe(\"Unique identifier for the connection\"),\n date: z.string().describe(\"Date created\"),\n lastchanged: z.string().optional().describe(\"Date last changed\"),\n account_id: z.number().describe(\"Account ID associated with this connection\"),\n customuser_id: z\n .number()\n .optional()\n .describe(\"Custom user ID (if applicable)\"),\n selected_api: z.string().describe(\"Selected API key (internal identifier)\"),\n destination_selected_api: z\n .string()\n .nullable()\n .optional()\n .describe(\"Destination API key (if applicable)\"),\n is_invite_only: z.boolean().describe(\"Whether the connection is invite-only\"),\n is_private: z.boolean().describe(\"Whether the connection is private\"),\n shared_with_all: z\n .boolean()\n .describe(\"Whether the connection is shared with all users\"),\n is_stale: z.string().optional().describe(\"Stale status string\"),\n is_shared: z.string().optional().describe(\"Shared status string\"),\n marked_stale_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when marked stale\"),\n label: z\n .string()\n .nullable()\n .optional()\n .describe(\"User label for the connection\"),\n identifier: z.string().nullable().optional().describe(\"Identifier\"),\n title: z.string().nullable().optional().describe(\"Title of the connection\"),\n url: z.string().optional().describe(\"URL to the connection resource\"),\n groups: z\n .array(\n z\n .record(z.string(), z.unknown())\n .describe(\"Groups associated with the connection\"),\n )\n .optional()\n .describe(\"Array of groups associated with the connection\"),\n members: z\n .string()\n .optional()\n .describe(\"Members associated with the connection\"),\n permissions: z\n .record(z.string(), z.boolean())\n .optional()\n .describe(\"Permissions for the connection\"),\n public_id: z.string().optional().describe(\"Public UUID for the connection\"),\n account_public_id: z\n .string()\n .optional()\n .describe(\"Public UUID for the associated account\"),\n customuser_public_id: z\n .string()\n .optional()\n .describe(\"Public UUID for the associated custom user\"),\n});\n\n/**\n * Normalized connection item returned by getConnection handler\n *\n * Transforms API response fields:\n * - selected_api → implementation_id\n * - customuser_id → profile_id\n * - is_stale → is_expired (preserved as is_stale too)\n * - marked_stale_at → expired_at (preserved as marked_stale_at too)\n *\n * Adds computed fields:\n * - app_key: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"SlackCLIAPI\")\n * - app_version: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"1.0.0\")\n */\nexport const ConnectionItemSchema = ConnectionSchema.omit({\n selected_api: true,\n customuser_id: true,\n}).extend({\n // Override numeric IDs with string versions (converted by normalizeConnectionItem)\n id: z.string().describe(\"Unique identifier for the connection\"),\n account_id: z.string().describe(\"Account ID associated with this connection\"),\n\n // Renamed fields\n implementation_id: z\n .string()\n .optional()\n .describe(\"Implementation ID (was selected_api)\"),\n profile_id: z.string().optional().describe(\"Profile ID (was customuser_id)\"),\n\n // Mapped fields (originals preserved in ...restOfAuth)\n is_expired: z\n .string()\n .optional()\n .describe(\"Whether the connection is expired (mapped from is_stale)\"),\n expired_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when connection expired (mapped from marked_stale_at)\"),\n\n // Computed fields\n app_key: z\n .string()\n .optional()\n .describe(\"App Key extracted from implementation_id\"),\n app_version: z\n .string()\n .optional()\n .describe(\"App Version extracted from implementation_id\"),\n});\n\nexport const ConnectionsResponseSchema = z.object({\n count: z.number().describe(\"Total number of items\"),\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the next page of results (if available)\"),\n previous: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the previous page of results (if available)\"),\n results: z.array(ConnectionSchema).describe(\"Array of connection items\"),\n});\n\nexport type Connection = z.infer<typeof ConnectionSchema>;\nexport type ConnectionItem = z.infer<typeof ConnectionItemSchema>;\nexport type ConnectionsResponse = z.infer<typeof ConnectionsResponseSchema>;\n\n/**\n * Path parameters schema for getConnection endpoint.\n */\nexport const GetConnectionParamSchema = z\n .object({\n connectionId: z.string().describe(\"Connection ID to retrieve\"),\n })\n .describe(\"Get a specific connection by ID\");\n\nexport type GetConnectionParam = z.infer<typeof GetConnectionParamSchema>;\n\n/**\n * Response type for getConnection endpoint.\n * Wraps ConnectionItem in the standard API response envelope.\n */\nexport type GetConnectionResponse = { data: ConnectionItem };\n\n/**\n * Query parameters for listing connections\n */\nexport const ListConnectionsQuerySchema = z\n .object({\n app_key: z\n .string()\n .optional()\n .describe(\n \"Filter connections by app key (e.g., 'SlackCLIAPI' or slug like 'github')\",\n ),\n connection_ids: z\n .string()\n .optional()\n .describe(\"Comma-separated list of connection IDs to filter by\"),\n search: z\n .string()\n .optional()\n .describe(\"Search term to filter connections by title\"),\n title: z\n .string()\n .optional()\n .describe(\n \"Filter connections by exact title match (searches first, then filters locally)\",\n ),\n account_id: z\n .string()\n .optional()\n .describe(\"Filter connections by account ID\"),\n owner: z\n .string()\n .optional()\n .describe(\n \"Filter by owner, 'me' for your own connections or a specific user ID\",\n ),\n is_expired: z\n .boolean()\n .optional()\n .describe(\n \"Filter by expired status (true = expired only, false = non-expired only)\",\n ),\n page_size: z\n .number()\n .min(1)\n .optional()\n .describe(\"Number of connections per page\"),\n offset: z\n .string()\n .optional()\n .describe(\"Pagination offset from previous response\"),\n })\n .describe(\"Query parameters for listing connections\");\n\n/**\n * Response schema for listConnections\n */\nexport const ListConnectionsResponseSchema = z\n .object({\n data: z.array(ConnectionItemSchema).describe(\"Array of connection items\"),\n links: z\n .object({\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"Fully qualified URL for the next page of results (if available), e.g. https://sdkapi.zapier.com/api/v0/connections?offset=100&page_size=50\",\n ),\n })\n .describe(\"Pagination links for navigating through results\"),\n meta: z\n .object({\n count: z.number().describe(\"Total number of items\"),\n limit: z.number().describe(\"Number of items per page\"),\n offset: z.number().describe(\"Offset of the current page\"),\n })\n .describe(\"Metadata for the paginated result set\"),\n })\n .describe(\"Response schema for listing connections\");\n\n/**\n * TypeScript types for request and response\n */\nexport type ListConnectionsQuery = z.infer<typeof ListConnectionsQuerySchema>;\nexport type ListConnectionsResponse = z.infer<\n typeof ListConnectionsResponseSchema\n>;\n"],"mappings":";AAAA,SAAS,SAAS;AAMX,IAAM,mBAAmB,EAAE,OAAO;AAAA,EACvC,IAAI,EAAE,OAAO,EAAE,SAAS,sCAAsC;AAAA,EAC9D,MAAM,EAAE,OAAO,EAAE,SAAS,cAAc;AAAA,EACxC,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,mBAAmB;AAAA,EAC/D,YAAY,EAAE,OAAO,EAAE,SAAS,4CAA4C;AAAA,EAC5E,eAAe,EACZ,OAAO,EACP,SAAS,EACT,SAAS,gCAAgC;AAAA,EAC5C,cAAc,EAAE,OAAO,EAAE,SAAS,wCAAwC;AAAA,EAC1E,0BAA0B,EACvB,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,qCAAqC;AAAA,EACjD,gBAAgB,EAAE,QAAQ,EAAE,SAAS,uCAAuC;AAAA,EAC5E,YAAY,EAAE,QAAQ,EAAE,SAAS,mCAAmC;AAAA,EACpE,iBAAiB,EACd,QAAQ,EACR,SAAS,iDAAiD;AAAA,EAC7D,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,qBAAqB;AAAA,EAC9D,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,sBAAsB;AAAA,EAChE,iBAAiB,EACd,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,wBAAwB;AAAA,EACpC,OAAO,EACJ,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,+BAA+B;AAAA,EAC3C,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,YAAY;AAAA,EAClE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,yBAAyB;AA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