@zapier/zapier-sdk-core 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs +23 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +23 -3
- package/dist/index.js.map +1 -1
- package/dist/v0/schemas/actions.cjs +12 -1
- package/dist/v0/schemas/actions.cjs.map +1 -1
- package/dist/v0/schemas/actions.d.cts +38 -27
- package/dist/v0/schemas/actions.d.ts +38 -27
- package/dist/v0/schemas/actions.js +12 -1
- package/dist/v0/schemas/actions.js.map +1 -1
- package/dist/v0/schemas/apps.cjs +7 -1
- package/dist/v0/schemas/apps.cjs.map +1 -1
- package/dist/v0/schemas/apps.d.cts +32 -30
- package/dist/v0/schemas/apps.d.ts +32 -30
- package/dist/v0/schemas/apps.js +7 -1
- package/dist/v0/schemas/apps.js.map +1 -1
- package/dist/v0/schemas/authentications.cjs +23 -3
- package/dist/v0/schemas/authentications.cjs.map +1 -1
- package/dist/v0/schemas/authentications.d.cts +5 -0
- package/dist/v0/schemas/authentications.d.ts +5 -0
- package/dist/v0/schemas/authentications.js +23 -3
- package/dist/v0/schemas/authentications.js.map +1 -1
- package/dist/v0/schemas/client-credentials.cjs +8 -2
- package/dist/v0/schemas/client-credentials.cjs.map +1 -1
- package/dist/v0/schemas/client-credentials.d.cts +2 -0
- package/dist/v0/schemas/client-credentials.d.ts +2 -0
- package/dist/v0/schemas/client-credentials.js +8 -2
- package/dist/v0/schemas/client-credentials.js.map +1 -1
- package/dist/v0/schemas/connections.d.cts +2 -2
- package/dist/v0/schemas/connections.d.ts +2 -2
- package/openapi.yaml +98 -11
- package/package.json +1 -1
|
@@ -4,14 +4,14 @@ import { z } from 'zod';
|
|
|
4
4
|
* Action type enum matching the internal Zapier API
|
|
5
5
|
*/
|
|
6
6
|
declare const ActionTypeSchema: z.ZodEnum<{
|
|
7
|
+
filter: "filter";
|
|
7
8
|
read: "read";
|
|
8
9
|
read_bulk: "read_bulk";
|
|
9
|
-
|
|
10
|
+
run: "run";
|
|
10
11
|
search: "search";
|
|
11
|
-
search_or_write: "search_or_write";
|
|
12
12
|
search_and_write: "search_and_write";
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
search_or_write: "search_or_write";
|
|
14
|
+
write: "write";
|
|
15
15
|
}>;
|
|
16
16
|
type ActionType = z.infer<typeof ActionTypeSchema>;
|
|
17
17
|
/**
|
|
@@ -20,14 +20,14 @@ type ActionType = z.infer<typeof ActionTypeSchema>;
|
|
|
20
20
|
declare const ActionSchema: z.ZodObject<{
|
|
21
21
|
id: z.ZodOptional<z.ZodString>;
|
|
22
22
|
type: z.ZodEnum<{
|
|
23
|
+
filter: "filter";
|
|
23
24
|
read: "read";
|
|
24
25
|
read_bulk: "read_bulk";
|
|
25
|
-
|
|
26
|
+
run: "run";
|
|
26
27
|
search: "search";
|
|
27
|
-
search_or_write: "search_or_write";
|
|
28
28
|
search_and_write: "search_and_write";
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
search_or_write: "search_or_write";
|
|
30
|
+
write: "write";
|
|
31
31
|
}>;
|
|
32
32
|
key: z.ZodString;
|
|
33
33
|
name: z.ZodString;
|
|
@@ -59,14 +59,14 @@ declare const ActionItemSchema: z.ZodObject<{
|
|
|
59
59
|
app_key: z.ZodString;
|
|
60
60
|
app_version: z.ZodOptional<z.ZodString>;
|
|
61
61
|
action_type: z.ZodEnum<{
|
|
62
|
+
filter: "filter";
|
|
62
63
|
read: "read";
|
|
63
64
|
read_bulk: "read_bulk";
|
|
64
|
-
|
|
65
|
+
run: "run";
|
|
65
66
|
search: "search";
|
|
66
|
-
search_or_write: "search_or_write";
|
|
67
67
|
search_and_write: "search_and_write";
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
search_or_write: "search_or_write";
|
|
69
|
+
write: "write";
|
|
70
70
|
}>;
|
|
71
71
|
title: z.ZodString;
|
|
72
72
|
type: z.ZodLiteral<"action">;
|
|
@@ -82,14 +82,14 @@ declare const ImplementationWithActionsSchema: z.ZodObject<{
|
|
|
82
82
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
83
83
|
id: z.ZodOptional<z.ZodString>;
|
|
84
84
|
type: z.ZodEnum<{
|
|
85
|
+
filter: "filter";
|
|
85
86
|
read: "read";
|
|
86
87
|
read_bulk: "read_bulk";
|
|
87
|
-
|
|
88
|
+
run: "run";
|
|
88
89
|
search: "search";
|
|
89
|
-
search_or_write: "search_or_write";
|
|
90
90
|
search_and_write: "search_and_write";
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
search_or_write: "search_or_write";
|
|
92
|
+
write: "write";
|
|
93
93
|
}>;
|
|
94
94
|
key: z.ZodString;
|
|
95
95
|
name: z.ZodString;
|
|
@@ -121,14 +121,14 @@ declare const ImplementationsWithActionsResponseSchema: z.ZodObject<{
|
|
|
121
121
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
122
122
|
id: z.ZodOptional<z.ZodString>;
|
|
123
123
|
type: z.ZodEnum<{
|
|
124
|
+
filter: "filter";
|
|
124
125
|
read: "read";
|
|
125
126
|
read_bulk: "read_bulk";
|
|
126
|
-
|
|
127
|
+
run: "run";
|
|
127
128
|
search: "search";
|
|
128
|
-
search_or_write: "search_or_write";
|
|
129
129
|
search_and_write: "search_and_write";
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
search_or_write: "search_or_write";
|
|
131
|
+
write: "write";
|
|
132
132
|
}>;
|
|
133
133
|
key: z.ZodString;
|
|
134
134
|
name: z.ZodString;
|
|
@@ -151,16 +151,27 @@ type ImplementationsWithActionsResponse = z.infer<typeof ImplementationsWithActi
|
|
|
151
151
|
* Query parameters for listing actions
|
|
152
152
|
*/
|
|
153
153
|
declare const ListActionsQuerySchema: z.ZodObject<{
|
|
154
|
-
appKey: z.ZodString
|
|
154
|
+
appKey: z.ZodOptional<z.ZodString>;
|
|
155
|
+
app_key: z.ZodOptional<z.ZodString>;
|
|
155
156
|
actionType: z.ZodOptional<z.ZodEnum<{
|
|
157
|
+
filter: "filter";
|
|
156
158
|
read: "read";
|
|
157
159
|
read_bulk: "read_bulk";
|
|
158
|
-
|
|
160
|
+
run: "run";
|
|
159
161
|
search: "search";
|
|
160
|
-
search_or_write: "search_or_write";
|
|
161
162
|
search_and_write: "search_and_write";
|
|
163
|
+
search_or_write: "search_or_write";
|
|
164
|
+
write: "write";
|
|
165
|
+
}>>;
|
|
166
|
+
action_type: z.ZodOptional<z.ZodEnum<{
|
|
162
167
|
filter: "filter";
|
|
168
|
+
read: "read";
|
|
169
|
+
read_bulk: "read_bulk";
|
|
163
170
|
run: "run";
|
|
171
|
+
search: "search";
|
|
172
|
+
search_and_write: "search_and_write";
|
|
173
|
+
search_or_write: "search_or_write";
|
|
174
|
+
write: "write";
|
|
164
175
|
}>>;
|
|
165
176
|
}, z.core.$strip>;
|
|
166
177
|
/**
|
|
@@ -176,14 +187,14 @@ declare const ListActionsResponseSchema: z.ZodObject<{
|
|
|
176
187
|
app_key: z.ZodString;
|
|
177
188
|
app_version: z.ZodOptional<z.ZodString>;
|
|
178
189
|
action_type: z.ZodEnum<{
|
|
190
|
+
filter: "filter";
|
|
179
191
|
read: "read";
|
|
180
192
|
read_bulk: "read_bulk";
|
|
181
|
-
|
|
193
|
+
run: "run";
|
|
182
194
|
search: "search";
|
|
183
|
-
search_or_write: "search_or_write";
|
|
184
195
|
search_and_write: "search_and_write";
|
|
185
|
-
|
|
186
|
-
|
|
196
|
+
search_or_write: "search_or_write";
|
|
197
|
+
write: "write";
|
|
187
198
|
}>;
|
|
188
199
|
title: z.ZodString;
|
|
189
200
|
type: z.ZodLiteral<"action">;
|
|
@@ -52,12 +52,23 @@ var ImplementationsWithActionsResponseSchema = z.object({
|
|
|
52
52
|
results: z.array(ImplementationWithActionsSchema).describe("Array of implementations with their actions")
|
|
53
53
|
});
|
|
54
54
|
var ListActionsQuerySchema = z.object({
|
|
55
|
-
|
|
55
|
+
/** @deprecated Use app_key instead */
|
|
56
|
+
appKey: z.string().optional().describe(
|
|
57
|
+
"Deprecated: Use app_key instead. App key to list actions for (e.g., 'SlackCLIAPI@1.21.1' or 'SlackCLIAPI')"
|
|
58
|
+
),
|
|
59
|
+
app_key: z.string().optional().describe(
|
|
56
60
|
"App key to list actions for (e.g., 'SlackCLIAPI@1.21.1' or 'SlackCLIAPI')"
|
|
57
61
|
),
|
|
62
|
+
/** @deprecated Use action_type instead */
|
|
58
63
|
actionType: ActionTypeSchema.optional().describe(
|
|
64
|
+
"Deprecated: Use action_type instead. Filter actions by type (e.g., 'read', 'write', 'search')"
|
|
65
|
+
),
|
|
66
|
+
action_type: ActionTypeSchema.optional().describe(
|
|
59
67
|
"Filter actions by type (e.g., 'read', 'write', 'search')"
|
|
60
68
|
)
|
|
69
|
+
}).refine((data) => data.appKey || data.app_key, {
|
|
70
|
+
message: "Either app_key or appKey is required",
|
|
71
|
+
path: ["app_key"]
|
|
61
72
|
}).describe("Query parameters for listing actions");
|
|
62
73
|
var ListActionsResponseSchema = z.object({
|
|
63
74
|
data: z.array(ActionItemSchema).describe("Array of action items")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/v0/schemas/actions.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Action type enum matching the internal Zapier API\n */\nexport const ActionTypeSchema = z.enum([\n \"filter\",\n \"read\",\n \"read_bulk\",\n \"run\",\n \"search\",\n \"search_and_write\",\n \"search_or_write\",\n \"write\",\n]);\n\nexport type ActionType = z.infer<typeof ActionTypeSchema>;\n\n/**\n * Base Action schema matching the internal API response from /api/v4/implementations/\n */\nexport const ActionSchema = z.object({\n id: z.string().optional().describe(\"Unique identifier for the action\"),\n type: ActionTypeSchema.describe(\"The type of action\"),\n key: z.string().describe(\"Unique key identifier for the action\"),\n name: z.string().describe(\"Display name of the action\"),\n description: z.string().describe(\"Description of what the action does\"),\n is_important: z\n .boolean()\n .optional()\n .describe(\"Whether this action is marked as important\"),\n is_hidden: z\n .boolean()\n .optional()\n .describe(\"Whether this action is hidden from listings\"),\n selected_api: z\n .string()\n .optional()\n .describe(\"The implementation ID this action belongs to\"),\n});\n\nexport type Action = z.infer<typeof ActionSchema>;\n\n/**\n * Normalized action item returned by the list actions endpoint\n *\n * Transforms API response fields:\n * - name → title\n * - type → action_type\n * - selected_api → app_key + app_version (parsed)\n *\n * Adds computed fields:\n * - type: \"action\" (literal type identifier)\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 ActionItemSchema = z\n .object({\n id: z.string().optional().describe(\"Unique identifier for the action\"),\n key: z.string().describe(\"Unique key identifier for the action\"),\n description: z.string().describe(\"Description of what the action does\"),\n is_important: z\n .boolean()\n .optional()\n .describe(\"Whether this action is marked as important\"),\n is_hidden: z\n .boolean()\n .optional()\n .describe(\"Whether this action is hidden from listings\"),\n app_key: z\n .string()\n .describe(\"App key extracted from implementation ID (without version)\"),\n app_version: z\n .string()\n .optional()\n .describe(\"App version extracted from implementation ID\"),\n action_type: ActionTypeSchema.describe(\"The type of action\"),\n title: z.string().describe(\"Display name of the action (mapped from name)\"),\n type: z.literal(\"action\").describe(\"Type identifier for this item\"),\n })\n .describe(\"Normalized action item returned by list actions endpoint\");\n\nexport type ActionItem = z.infer<typeof ActionItemSchema>;\n\n/**\n * Implementation schema with actions array for the /api/v4/implementations/ response\n */\nexport const ImplementationWithActionsSchema = z.object({\n selected_api: z.string().describe(\"The implementation ID\"),\n app_id: z.number().optional().describe(\"Numeric app ID\"),\n auth_type: z.string().optional().describe(\"Authentication type\"),\n actions: z\n .array(ActionSchema)\n .optional()\n .describe(\"Array of actions for this implementation\"),\n is_deprecated: z\n .boolean()\n .optional()\n .describe(\"Whether the implementation is deprecated\"),\n is_private_only: z\n .boolean()\n .optional()\n .describe(\"Whether the implementation is private only\"),\n is_invite_only: z\n .boolean()\n .optional()\n .describe(\"Whether the implementation is invite only\"),\n is_beta: z\n .boolean()\n .optional()\n .default(false)\n .describe(\"Whether the implementation is in beta\"),\n is_premium: z\n .boolean()\n .optional()\n .default(false)\n .describe(\"Whether the implementation requires premium\"),\n name: z.string().optional().describe(\"Name of the implementation\"),\n slug: z.string().optional().describe(\"URL-friendly slug\"),\n});\n\nexport type ImplementationWithActions = z.infer<\n typeof ImplementationWithActionsSchema\n>;\n\n/**\n * Response schema for the /api/v4/implementations/ endpoint\n */\nexport const ImplementationsWithActionsResponseSchema = z.object({\n count: z.number().describe(\"Total number of results\"),\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the next page of results\"),\n previous: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the previous page of results\"),\n results: z\n .array(ImplementationWithActionsSchema)\n .describe(\"Array of implementations with their actions\"),\n});\n\nexport type ImplementationsWithActionsResponse = z.infer<\n typeof ImplementationsWithActionsResponseSchema\n>;\n\n/**\n * Query parameters for listing actions\n */\nexport const ListActionsQuerySchema = z\n .object({\n appKey: z\n .string()\n .describe(\n \"App key to list actions for (e.g., 'SlackCLIAPI@1.21.1' or 'SlackCLIAPI')\",\n ),\n actionType: ActionTypeSchema.optional().describe(\n \"Filter actions by type (e.g., 'read', 'write', 'search')\",\n ),\n })\n .describe(\"Query parameters for listing actions\");\n\n/**\n * Response schema for listActions\n */\nexport const ListActionsResponseSchema = z\n .object({\n data: z.array(ActionItemSchema).describe(\"Array of action items\"),\n })\n .describe(\"Response schema for listActions\");\n\n/**\n * TypeScript types for request and response\n */\nexport type ListActionsQuery = z.infer<typeof ListActionsQuerySchema>;\nexport type ListActionsResponse = z.infer<typeof ListActionsResponseSchema>;\n"],"mappings":";AAAA,SAAS,SAAS;AAKX,IAAM,mBAAmB,EAAE,KAAK;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAC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AAE,SAAS,gBAAgB;AAAA,EACvD,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,qBAAqB;AAAA,EAC/D,SAAS,EACN,MAAM,YAAY,EAClB,SAAS,EACT,SAAS,0CAA0C;AAAA,EACtD,eAAe,EACZ,QAAQ,EACR,SAAS,EACT,SAAS,0CAA0C;AAAA,EACtD,iBAAiB,EACd,QAAQ,EACR,SAAS,EACT,SAAS,4CAA4C;AAAA,EACxD,gBAAgB,EACb,QAAQ,EACR,SAAS,EACT,SAAS,2CAA2C;AAAA,EACvD,SAAS,EACN,QAAQ,EACR,SAAS,EACT,QAAQ,KAAK,EACb,SAAS,uCAAuC;AAAA,EACnD,YAAY,EACT,QAAQ,EACR,SAAS,EACT,QAAQ,KAAK,EACb,SAAS,6CAA6C;AAAA,EACzD,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,4BAA4B;AAAA,EACjE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,mBAAmB;AAC1D,CAAC;AASM,IAAM,2CAA2C,EAAE,OAAO;AAAA,EAC/D,OAAO,EAAE,OAAO,EAAE,SAAS,yBAAyB;AAAA,EACpD,MAAM,EACH,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,kCAAkC;AAAA,EAC9C,UAAU,EACP,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,sCAAsC;AAAA,EAClD,SAAS,EACN,MAAM,+BAA+B,EACrC,SAAS,6CAA6C;AAC3D,CAAC;AASM,IAAM,yBAAyB,EACnC,OAAO;AAAA,
|
|
1
|
+
{"version":3,"sources":["../../../src/v0/schemas/actions.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Action type enum matching the internal Zapier API\n */\nexport const ActionTypeSchema = z.enum([\n \"filter\",\n \"read\",\n \"read_bulk\",\n \"run\",\n \"search\",\n \"search_and_write\",\n \"search_or_write\",\n \"write\",\n]);\n\nexport type ActionType = z.infer<typeof ActionTypeSchema>;\n\n/**\n * Base Action schema matching the internal API response from /api/v4/implementations/\n */\nexport const ActionSchema = z.object({\n id: z.string().optional().describe(\"Unique identifier for the action\"),\n type: ActionTypeSchema.describe(\"The type of action\"),\n key: z.string().describe(\"Unique key identifier for the action\"),\n name: z.string().describe(\"Display name of the action\"),\n description: z.string().describe(\"Description of what the action does\"),\n is_important: z\n .boolean()\n .optional()\n .describe(\"Whether this action is marked as important\"),\n is_hidden: z\n .boolean()\n .optional()\n .describe(\"Whether this action is hidden from listings\"),\n selected_api: z\n .string()\n .optional()\n .describe(\"The implementation ID this action belongs to\"),\n});\n\nexport type Action = z.infer<typeof ActionSchema>;\n\n/**\n * Normalized action item returned by the list actions endpoint\n *\n * Transforms API response fields:\n * - name → title\n * - type → action_type\n * - selected_api → app_key + app_version (parsed)\n *\n * Adds computed fields:\n * - type: \"action\" (literal type identifier)\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 ActionItemSchema = z\n .object({\n id: z.string().optional().describe(\"Unique identifier for the action\"),\n key: z.string().describe(\"Unique key identifier for the action\"),\n description: z.string().describe(\"Description of what the action does\"),\n is_important: z\n .boolean()\n .optional()\n .describe(\"Whether this action is marked as important\"),\n is_hidden: z\n .boolean()\n .optional()\n .describe(\"Whether this action is hidden from listings\"),\n app_key: z\n .string()\n .describe(\"App key extracted from implementation ID (without version)\"),\n app_version: z\n .string()\n .optional()\n .describe(\"App version extracted from implementation ID\"),\n action_type: ActionTypeSchema.describe(\"The type of action\"),\n title: z.string().describe(\"Display name of the action (mapped from name)\"),\n type: z.literal(\"action\").describe(\"Type identifier for this item\"),\n })\n .describe(\"Normalized action item returned by list actions endpoint\");\n\nexport type ActionItem = z.infer<typeof ActionItemSchema>;\n\n/**\n * Implementation schema with actions array for the /api/v4/implementations/ response\n */\nexport const ImplementationWithActionsSchema = z.object({\n selected_api: z.string().describe(\"The implementation ID\"),\n app_id: z.number().optional().describe(\"Numeric app ID\"),\n auth_type: z.string().optional().describe(\"Authentication type\"),\n actions: z\n .array(ActionSchema)\n .optional()\n .describe(\"Array of actions for this implementation\"),\n is_deprecated: z\n .boolean()\n .optional()\n .describe(\"Whether the implementation is deprecated\"),\n is_private_only: z\n .boolean()\n .optional()\n .describe(\"Whether the implementation is private only\"),\n is_invite_only: z\n .boolean()\n .optional()\n .describe(\"Whether the implementation is invite only\"),\n is_beta: z\n .boolean()\n .optional()\n .default(false)\n .describe(\"Whether the implementation is in beta\"),\n is_premium: z\n .boolean()\n .optional()\n .default(false)\n .describe(\"Whether the implementation requires premium\"),\n name: z.string().optional().describe(\"Name of the implementation\"),\n slug: z.string().optional().describe(\"URL-friendly slug\"),\n});\n\nexport type ImplementationWithActions = z.infer<\n typeof ImplementationWithActionsSchema\n>;\n\n/**\n * Response schema for the /api/v4/implementations/ endpoint\n */\nexport const ImplementationsWithActionsResponseSchema = z.object({\n count: z.number().describe(\"Total number of results\"),\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the next page of results\"),\n previous: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the previous page of results\"),\n results: z\n .array(ImplementationWithActionsSchema)\n .describe(\"Array of implementations with their actions\"),\n});\n\nexport type ImplementationsWithActionsResponse = z.infer<\n typeof ImplementationsWithActionsResponseSchema\n>;\n\n/**\n * Query parameters for listing actions\n */\nexport const ListActionsQuerySchema = z\n .object({\n /** @deprecated Use app_key instead */\n appKey: z\n .string()\n .optional()\n .describe(\n \"Deprecated: Use app_key instead. App key to list actions for (e.g., 'SlackCLIAPI@1.21.1' or 'SlackCLIAPI')\",\n ),\n app_key: z\n .string()\n .optional()\n .describe(\n \"App key to list actions for (e.g., 'SlackCLIAPI@1.21.1' or 'SlackCLIAPI')\",\n ),\n /** @deprecated Use action_type instead */\n actionType: ActionTypeSchema.optional().describe(\n \"Deprecated: Use action_type instead. Filter actions by type (e.g., 'read', 'write', 'search')\",\n ),\n action_type: ActionTypeSchema.optional().describe(\n \"Filter actions by type (e.g., 'read', 'write', 'search')\",\n ),\n })\n .refine((data) => data.appKey || data.app_key, {\n message: \"Either app_key or appKey is required\",\n path: [\"app_key\"],\n })\n .describe(\"Query parameters for listing actions\");\n\n/**\n * Response schema for listActions\n */\nexport const ListActionsResponseSchema = z\n .object({\n data: z.array(ActionItemSchema).describe(\"Array of action items\"),\n })\n .describe(\"Response schema for listActions\");\n\n/**\n * TypeScript types for request and response\n */\nexport type ListActionsQuery = z.infer<typeof ListActionsQuerySchema>;\nexport type ListActionsResponse = z.infer<typeof ListActionsResponseSchema>;\n"],"mappings":";AAAA,SAAS,SAAS;AAKX,IAAM,mBAAmB,EAAE,KAAK;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAOM,IAAM,eAAe,EAAE,OAAO;AAAA,EACnC,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,kCAAkC;AAAA,EACrE,MAAM,iBAAiB,SAAS,oBAAoB;AAAA,EACpD,KAAK,EAAE,OAAO,EAAE,SAAS,sCAAsC;AAAA,EAC/D,MAAM,EAAE,OAAO,EAAE,SAAS,4BAA4B;AAAA,EACtD,aAAa,EAAE,OAAO,EAAE,SAAS,qCAAqC;AAAA,EACtE,cAAc,EACX,QAAQ,EACR,SAAS,EACT,SAAS,4CAA4C;AAAA,EACxD,WAAW,EACR,QAAQ,EACR,SAAS,EACT,SAAS,6CAA6C;AAAA,EACzD,cAAc,EACX,OAAO,EACP,SAAS,EACT,SAAS,8CAA8C;AAC5D,CAAC;AAiBM,IAAM,mBAAmB,EAC7B,OAAO;AAAA,EACN,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,kCAAkC;AAAA,EACrE,KAAK,EAAE,OAAO,EAAE,SAAS,sCAAsC;AAAA,EAC/D,aAAa,EAAE,OAAO,EAAE,SAAS,qCAAqC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AO,EAAE,SAAS,yBAAyB;AAAA,EACpD,MAAM,EACH,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,kCAAkC;AAAA,EAC9C,UAAU,EACP,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,sCAAsC;AAAA,EAClD,SAAS,EACN,MAAM,+BAA+B,EACrC,SAAS,6CAA6C;AAC3D,CAAC;AASM,IAAM,yBAAyB,EACnC,OAAO;AAAA;AAAA,EAEN,QAAQ,EACL,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,SAAS,EACN,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA;AAAA,EAEF,YAAY,iBAAiB,SAAS,EAAE;AAAA,IACtC;AAAA,EACF;AAAA,EACA,aAAa,iBAAiB,SAAS,EAAE;AAAA,IACvC;AAAA,EACF;AACF,CAAC,EACA,OAAO,CAAC,SAAS,KAAK,UAAU,KAAK,SAAS;AAAA,EAC7C,SAAS;AAAA,EACT,MAAM,CAAC,SAAS;AAClB,CAAC,EACA,SAAS,sCAAsC;AAK3C,IAAM,4BAA4B,EACtC,OAAO;AAAA,EACN,MAAM,EAAE,MAAM,gBAAgB,EAAE,SAAS,uBAAuB;AAClE,CAAC,EACA,SAAS,iCAAiC;","names":[]}
|
package/dist/v0/schemas/apps.cjs
CHANGED
|
@@ -101,11 +101,17 @@ var AppItemSchema = ImplementationMetaSchema.omit({
|
|
|
101
101
|
version: import_zod2.z.string().optional().describe("App version")
|
|
102
102
|
});
|
|
103
103
|
var ListAppsQuerySchema = import_zod2.z.object({
|
|
104
|
+
/** @deprecated Use app_keys instead */
|
|
104
105
|
appKeys: import_zod2.z.string().optional().describe(
|
|
106
|
+
"Deprecated: Use app_keys instead. Comma-separated list of app keys to filter by (e.g., 'SlackCLIAPI' or slugs like 'github,slack')"
|
|
107
|
+
),
|
|
108
|
+
app_keys: import_zod2.z.string().optional().describe(
|
|
105
109
|
"Comma-separated list of app keys to filter by (e.g., 'SlackCLIAPI' or slugs like 'github,slack')"
|
|
106
110
|
),
|
|
107
111
|
search: import_zod2.z.string().optional().describe("Search term to filter apps by name"),
|
|
108
|
-
|
|
112
|
+
/** @deprecated Use page_size instead */
|
|
113
|
+
pageSize: import_zod2.z.number().min(1).optional().describe("Deprecated: Use page_size instead. Number of apps per page"),
|
|
114
|
+
page_size: import_zod2.z.number().min(1).optional().describe("Number of apps per page"),
|
|
109
115
|
offset: import_zod2.z.string().optional().describe("Pagination offset from previous response")
|
|
110
116
|
}).describe("Query parameters for listing apps");
|
|
111
117
|
var ListAppsResponseSchema = import_zod2.z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/v0/schemas/apps.ts","../../../src/v0/schemas/implementations.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { ImplementationMetaSchema } from \"./implementations.js\";\n\n/**\n * Normalized app item returned by listApps endpoint.\n * This extends ImplementationMetaSchema with transformed fields (title, key, implementation_id).\n */\nexport const AppItemSchema = ImplementationMetaSchema.omit({\n name: true,\n id: true,\n}).extend({\n title: z.string().describe(\"Display name of the app\"),\n key: z.string().describe(\"App key (versionless implementation name)\"),\n implementation_id: z\n .string()\n .describe(\"Full implementation ID including version\"),\n version: z.string().optional().describe(\"App version\"),\n});\n\nexport type AppItem = z.infer<typeof AppItemSchema>;\n\n/**\n * Query parameters for listing apps\n */\nexport const ListAppsQuerySchema = z\n .object({\n appKeys: z\n .string()\n .optional()\n .describe(\n \"Comma-separated list of app keys to filter by (e.g., 'SlackCLIAPI' or slugs like 'github,slack')\",\n ),\n search: z\n .string()\n .optional()\n .describe(\"Search term to filter apps by name\"),\n pageSize: z.number().min(1).optional().describe(\"Number of apps per page\"),\n offset: z\n .string()\n .optional()\n .describe(\"Pagination offset from previous response\"),\n })\n .describe(\"Query parameters for listing apps\");\n\n/**\n * Response schema for listApps\n */\nexport const ListAppsResponseSchema = z.object({\n data: z.array(AppItemSchema).describe(\"Array of app 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)\",\n ),\n })\n .describe(\"Pagination links for navigating through results\"),\n meta: z\n .object({\n count: z.number().describe(\"Number of items in current page\"),\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\nexport type ListAppsQuery = z.infer<typeof ListAppsQuerySchema>;\nexport type ListAppsResponse = z.infer<typeof ListAppsResponseSchema>;\n","import { z } from \"zod\";\n\n/**\n * Lightweight implementation metadata returned by /api/v4/implementations-meta/*\n */\nexport const ImplementationMetaSchema = z.object({\n id: z.string().describe(\"Unique identifier for the implementation\"),\n name: z.string().describe(\"Display name of the implementation\"),\n slug: z.string().describe(\"URL-friendly slug identifier\"),\n age_in_days: z\n .number()\n .optional()\n .describe(\"Number of days since the implementation was created\"),\n auth_type: z\n .string()\n .optional()\n .describe(\"Authentication type (e.g., oauth2, api_key)\"),\n banner: z.string().optional().describe(\"Banner message or status indicator\"),\n categories: z\n .array(\n z.object({\n id: z.number().describe(\"Unique identifier for the category\"),\n name: z.string().describe(\"Display name of the category\"),\n slug: z.string().describe(\"URL-friendly slug for the category\"),\n }),\n )\n .optional()\n .describe(\"Categories the implementation belongs to\"),\n images: z\n .object({\n url_16x16: z.string().optional().describe(\"16x16 pixel icon URL\"),\n url_32x32: z.string().optional().describe(\"32x32 pixel icon URL\"),\n url_64x64: z.string().optional().describe(\"64x64 pixel icon URL\"),\n url_128x128: z.string().optional().describe(\"128x128 pixel icon URL\"),\n })\n .optional()\n .describe(\"Icon images at various sizes\"),\n popularity: z\n .number()\n .optional()\n .describe(\"Popularity score for ranking apps\"),\n has_filters: z\n .boolean()\n .optional()\n .describe(\"Whether the app has filter actions\"),\n has_reads: z\n .boolean()\n .optional()\n .describe(\"Whether the app has read actions\"),\n has_searches: z\n .boolean()\n .optional()\n .describe(\"Whether the app has search actions\"),\n has_searches_or_writes: z\n .boolean()\n .optional()\n .describe(\"Whether the app has search or write actions\"),\n has_upfront_fields: z\n .boolean()\n .optional()\n .describe(\"Whether the app has upfront input fields\"),\n has_writes: z\n .boolean()\n .optional()\n .describe(\"Whether the app has write actions\"),\n is_beta: z.boolean().optional().describe(\"Whether the app is in beta\"),\n is_built_in: z\n .boolean()\n .optional()\n .describe(\"Whether the app is a built-in Zapier app\"),\n is_deprecated: z\n .boolean()\n .optional()\n .describe(\"Whether the app is deprecated\"),\n is_featured: z.boolean().optional().describe(\"Whether the app is featured\"),\n is_hidden: z\n .boolean()\n .optional()\n .describe(\"Whether the app is hidden from listings\"),\n is_invite: z.boolean().optional().describe(\"Whether the app is invite-only\"),\n is_premium: z\n .boolean()\n .optional()\n .describe(\"Whether the app requires a premium plan\"),\n is_public: z\n .boolean()\n .optional()\n .describe(\"Whether the app is publicly available\"),\n is_upcoming: z\n .boolean()\n .optional()\n .describe(\"Whether the app is upcoming/not yet released\"),\n version: z.string().optional().describe(\"Version string of the app\"),\n visibility: z\n .string()\n .optional()\n .describe(\"Visibility status (e.g., public, private)\"),\n actions: z\n .object({\n read: z.number().optional().describe(\"Number of read actions\"),\n read_bulk: z.number().optional().describe(\"Number of bulk read actions\"),\n write: z.number().optional().describe(\"Number of write actions\"),\n search: z.number().optional().describe(\"Number of search actions\"),\n search_or_write: z\n .number()\n .optional()\n .describe(\"Number of search-or-write actions\"),\n search_and_write: z\n .number()\n .optional()\n .describe(\"Number of search-and-write actions\"),\n filter: z.number().optional().describe(\"Number of filter actions\"),\n })\n .optional()\n .describe(\"Count of available actions by type\"),\n description: z.string().optional().describe(\"Description of the app\"),\n primary_color: z.string().optional().describe(\"Primary brand color (hex)\"),\n secondary_color: z\n .string()\n .optional()\n .describe(\"Secondary brand color (hex)\"),\n classification: z.string().optional().describe(\"App classification category\"),\n api_docs_url: z.string().optional().describe(\"URL to API documentation\"),\n image: z.string().optional().describe(\"Default image URL for the app\"),\n});\n\nexport type ImplementationMeta = z.infer<typeof ImplementationMetaSchema>;\n\n/**\n * Paginated response from /api/v4/implementations-meta/lookup/ and search endpoints\n */\nexport const ImplementationsMetaResponseSchema = z.object({\n count: z.number().describe(\"Total number of results\"),\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the next page of results\"),\n previous: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the previous page of results\"),\n results: z\n .array(ImplementationMetaSchema)\n .describe(\"Array of implementation metadata\"),\n});\n\nexport type ImplementationsMetaResponse = z.infer<\n typeof ImplementationsMetaResponseSchema\n>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,cAAkB;;;ACAlB,iBAAkB;AAKX,IAAM,2BAA2B,aAAE,OAAO;AAAA,EAC/C,IAAI,aAAE,OAAO,EAAE,SAAS,0CAA0C;AAAA,EAClE,MAAM,aAAE,OAAO,EAAE,SAAS,oCAAoC;AAAA,EAC9D,MAAM,aAAE,OAAO,EAAE,SAAS,8BAA8B;AAAA,EACxD,aAAa,aACV,OAAO,EACP,SAAS,EACT,SAAS,qDAAqD;AAAA,EACjE,WAAW,aACR,OAAO,EACP,SAAS,EACT,SAAS,6CAA6C;AAAA,EACzD,QAAQ,aAAE,OAAO,EAAE,SAAS,EAAE,SAAS,oCAAoC;AAAA,EAC3E,YAAY,aACT;AAAA,IACC,aAAE,OAAO;AAAA,MACP,IAAI,aAAE,OAAO,EAAE,SAAS,oCAAoC;AAAA,MAC5D,MAAM,aAAE,OAAO,EAAE,SAAS,8BAA8B;AAAA,MACxD,MAAM,aAAE,OAAO,EAAE,SAAS,oCAAoC;AAAA,IAChE,CAAC;AAAA,EACH,EACC,SAAS,EACT,SAAS,0CAA0C;AAAA,EACtD,QAAQ,aACL,OAAO;AAAA,IACN,WAAW,aAAE,OAAO,EAAE,SAAS,EAAE,SAAS,sBAAsB;AAAA,IAChE,WAAW,aAAE,OAAO,EAAE,SAAS,EAAE,SAAS,sBAAsB;AAAA,IA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C;AAChD,CAAC;;;AD3IM,IAAM,gBAAgB,yBAAyB,KAAK;AAAA,EACzD,MAAM;AAAA,EACN,IAAI;AACN,CAAC,EAAE,OAAO;AAAA,EACR,OAAO,cAAE,OAAO,EAAE,SAAS,yBAAyB;AAAA,EACpD,KAAK,cAAE,OAAO,EAAE,SAAS,2CAA2C;AAAA,EACpE,mBAAmB,cAChB,OAAO,EACP,SAAS,0CAA0C;AAAA,EACtD,SAAS,cAAE,OAAO,EAAE,SAAS,EAAE,SAAS,aAAa;AACvD,CAAC;AAOM,IAAM,sBAAsB,cAChC,OAAO;AAAA,EACN,SAAS,cACN,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,QAAQ,cACL,OAAO,EACP,SAAS,EACT,SAAS,oCAAoC;AAAA,EAChD,UAAU,cAAE,OAAO,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,SAAS,yBAAyB;AAAA,EACzE,QAAQ,cACL,OAAO,EACP,SAAS,EACT,SAAS,0CAA0C;AACxD,CAAC,EACA,SAAS,mCAAmC;AAKxC,IAAM,yBAAyB,cAAE,OAAO;AAAA,EAC7C,MAAM,cAAE,MAAM,aAAa,EAAE,SAAS,oBAAoB;AAAA,EAC1D,OAAO,cACJ,OAAO;AAAA,IACN,MAAM,cACH,OAAO,EACP,SAAS,EACT,SAAS,EACT;AAAA,MACC;AAAA,IACF;AAAA,EACJ,CAAC,EACA,SAAS,iDAAiD;AAAA,EAC7D,MAAM,cACH,OAAO;AAAA,IACN,OAAO,cAAE,OAAO,EAAE,SAAS,iCAAiC;AAAA,IAC5D,OAAO,cAAE,OAAO,EAAE,SAAS,0BAA0B;AAAA,IACrD,QAAQ,cAAE,OAAO,EAAE,SAAS,4BAA4B;AAAA,EAC1D,CAAC,EACA,SAAS,uCAAuC;AACrD,CAAC;","names":["import_zod"]}
|
|
1
|
+
{"version":3,"sources":["../../../src/v0/schemas/apps.ts","../../../src/v0/schemas/implementations.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { ImplementationMetaSchema } from \"./implementations.js\";\n\n/**\n * Normalized app item returned by listApps endpoint.\n * This extends ImplementationMetaSchema with transformed fields (title, key, implementation_id).\n */\nexport const AppItemSchema = ImplementationMetaSchema.omit({\n name: true,\n id: true,\n}).extend({\n title: z.string().describe(\"Display name of the app\"),\n key: z.string().describe(\"App key (versionless implementation name)\"),\n implementation_id: z\n .string()\n .describe(\"Full implementation ID including version\"),\n version: z.string().optional().describe(\"App version\"),\n});\n\nexport type AppItem = z.infer<typeof AppItemSchema>;\n\n/**\n * Query parameters for listing apps\n */\nexport const ListAppsQuerySchema = z\n .object({\n /** @deprecated Use app_keys instead */\n appKeys: z\n .string()\n .optional()\n .describe(\n \"Deprecated: Use app_keys instead. Comma-separated list of app keys to filter by (e.g., 'SlackCLIAPI' or slugs like 'github,slack')\",\n ),\n app_keys: z\n .string()\n .optional()\n .describe(\n \"Comma-separated list of app keys to filter by (e.g., 'SlackCLIAPI' or slugs like 'github,slack')\",\n ),\n search: z\n .string()\n .optional()\n .describe(\"Search term to filter apps by name\"),\n /** @deprecated Use page_size instead */\n pageSize: z\n .number()\n .min(1)\n .optional()\n .describe(\"Deprecated: Use page_size instead. Number of apps per page\"),\n page_size: z.number().min(1).optional().describe(\"Number of apps per page\"),\n offset: z\n .string()\n .optional()\n .describe(\"Pagination offset from previous response\"),\n })\n .describe(\"Query parameters for listing apps\");\n\n/**\n * Response schema for listApps\n */\nexport const ListAppsResponseSchema = z.object({\n data: z.array(AppItemSchema).describe(\"Array of app 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)\",\n ),\n })\n .describe(\"Pagination links for navigating through results\"),\n meta: z\n .object({\n count: z.number().describe(\"Number of items in current page\"),\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\nexport type ListAppsQuery = z.infer<typeof ListAppsQuerySchema>;\nexport type ListAppsResponse = z.infer<typeof ListAppsResponseSchema>;\n","import { z } from \"zod\";\n\n/**\n * Lightweight implementation metadata returned by /api/v4/implementations-meta/*\n */\nexport const ImplementationMetaSchema = z.object({\n id: z.string().describe(\"Unique identifier for the implementation\"),\n name: z.string().describe(\"Display name of the implementation\"),\n slug: z.string().describe(\"URL-friendly slug identifier\"),\n age_in_days: z\n .number()\n .optional()\n .describe(\"Number of days since the implementation was created\"),\n auth_type: z\n .string()\n .optional()\n .describe(\"Authentication type (e.g., oauth2, api_key)\"),\n banner: z.string().optional().describe(\"Banner message or status indicator\"),\n categories: z\n .array(\n z.object({\n id: z.number().describe(\"Unique identifier for the category\"),\n name: z.string().describe(\"Display name of the category\"),\n slug: z.string().describe(\"URL-friendly slug for the category\"),\n }),\n )\n .optional()\n .describe(\"Categories the implementation belongs to\"),\n images: z\n .object({\n url_16x16: z.string().optional().describe(\"16x16 pixel icon URL\"),\n url_32x32: z.string().optional().describe(\"32x32 pixel icon URL\"),\n url_64x64: z.string().optional().describe(\"64x64 pixel icon URL\"),\n url_128x128: z.string().optional().describe(\"128x128 pixel icon URL\"),\n })\n .optional()\n .describe(\"Icon images at various sizes\"),\n popularity: z\n .number()\n .optional()\n .describe(\"Popularity score for ranking apps\"),\n has_filters: z\n .boolean()\n .optional()\n .describe(\"Whether the app has filter actions\"),\n has_reads: z\n .boolean()\n .optional()\n .describe(\"Whether the app has read actions\"),\n has_searches: z\n .boolean()\n .optional()\n .describe(\"Whether the app has search actions\"),\n has_searches_or_writes: z\n .boolean()\n .optional()\n .describe(\"Whether the app has search or write actions\"),\n has_upfront_fields: z\n .boolean()\n .optional()\n .describe(\"Whether the app has upfront input fields\"),\n has_writes: z\n .boolean()\n .optional()\n .describe(\"Whether the app has write actions\"),\n is_beta: z.boolean().optional().describe(\"Whether the app is in beta\"),\n is_built_in: z\n .boolean()\n .optional()\n .describe(\"Whether the app is a built-in Zapier app\"),\n is_deprecated: z\n .boolean()\n .optional()\n .describe(\"Whether the app is deprecated\"),\n is_featured: z.boolean().optional().describe(\"Whether the app is featured\"),\n is_hidden: z\n .boolean()\n .optional()\n .describe(\"Whether the app is hidden from listings\"),\n is_invite: z.boolean().optional().describe(\"Whether the app is invite-only\"),\n is_premium: z\n .boolean()\n .optional()\n .describe(\"Whether the app requires a premium plan\"),\n is_public: z\n .boolean()\n .optional()\n .describe(\"Whether the app is publicly available\"),\n is_upcoming: z\n .boolean()\n .optional()\n .describe(\"Whether the app is upcoming/not yet released\"),\n version: z.string().optional().describe(\"Version string of the app\"),\n visibility: z\n .string()\n .optional()\n .describe(\"Visibility status (e.g., public, private)\"),\n actions: z\n .object({\n read: z.number().optional().describe(\"Number of read actions\"),\n read_bulk: z.number().optional().describe(\"Number of bulk read actions\"),\n write: z.number().optional().describe(\"Number of write actions\"),\n search: z.number().optional().describe(\"Number of search actions\"),\n search_or_write: z\n .number()\n .optional()\n .describe(\"Number of search-or-write actions\"),\n search_and_write: z\n .number()\n .optional()\n .describe(\"Number of search-and-write actions\"),\n filter: z.number().optional().describe(\"Number of filter actions\"),\n })\n .optional()\n .describe(\"Count of available actions by type\"),\n description: z.string().optional().describe(\"Description of the app\"),\n primary_color: z.string().optional().describe(\"Primary brand color (hex)\"),\n secondary_color: z\n .string()\n .optional()\n .describe(\"Secondary brand color (hex)\"),\n classification: z.string().optional().describe(\"App classification category\"),\n api_docs_url: z.string().optional().describe(\"URL to API documentation\"),\n image: z.string().optional().describe(\"Default image URL for the app\"),\n});\n\nexport type ImplementationMeta = z.infer<typeof ImplementationMetaSchema>;\n\n/**\n * Paginated response from /api/v4/implementations-meta/lookup/ and search endpoints\n */\nexport const ImplementationsMetaResponseSchema = z.object({\n count: z.number().describe(\"Total number of results\"),\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the next page of results\"),\n previous: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the previous page of results\"),\n results: z\n .array(ImplementationMetaSchema)\n .describe(\"Array of implementation metadata\"),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A,EACtD,SAAS,cAAE,OAAO,EAAE,SAAS,EAAE,SAAS,aAAa;AACvD,CAAC;AAOM,IAAM,sBAAsB,cAChC,OAAO;AAAA;AAAA,EAEN,SAAS,cACN,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,UAAU,cACP,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,QAAQ,cACL,OAAO,EACP,SAAS,EACT,SAAS,oCAAoC;AAAA;AAAA,EAEhD,UAAU,cACP,OAAO,EACP,IAAI,CAAC,EACL,SAAS,EACT,SAAS,4DAA4D;AAAA,EACxE,WAAW,cAAE,OAAO,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,SAAS,yBAAyB;AAAA,EAC1E,QAAQ,cACL,OAAO,EACP,SAAS,EACT,SAAS,0CAA0C;AACxD,CAAC,EACA,SAAS,mCAAmC;AAKxC,IAAM,yBAAyB,cAAE,OAAO;AAAA,EAC7C,MAAM,cAAE,MAAM,aAAa,EAAE,SAAS,oBAAoB;AAAA,EAC1D,OAAO,cACJ,OAAO;AAAA,IACN,MAAM,cACH,OAAO,EACP,SAAS,EACT,SAAS,EACT;AAAA,MACC;AAAA,IACF;AAAA,EACJ,CAAC,EACA,SAAS,iDAAiD;AAAA,EAC7D,MAAM,cACH,OAAO;AAAA,IACN,OAAO,cAAE,OAAO,EAAE,SAAS,iCAAiC;AAAA,IAC5D,OAAO,cAAE,OAAO,EAAE,SAAS,0BAA0B;AAAA,IACrD,QAAQ,cAAE,OAAO,EAAE,SAAS,4BAA4B;AAAA,EAC1D,CAAC,EACA,SAAS,uCAAuC;AACrD,CAAC;","names":["import_zod"]}
|
|
@@ -5,9 +5,23 @@ 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>;
|
|
8
23
|
slug: z.ZodString;
|
|
9
24
|
age_in_days: z.ZodOptional<z.ZodNumber>;
|
|
10
|
-
auth_type: z.ZodOptional<z.ZodString>;
|
|
11
25
|
banner: z.ZodOptional<z.ZodString>;
|
|
12
26
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13
27
|
id: z.ZodNumber;
|
|
@@ -27,26 +41,12 @@ declare const AppItemSchema: z.ZodObject<{
|
|
|
27
41
|
has_searches_or_writes: z.ZodOptional<z.ZodBoolean>;
|
|
28
42
|
has_upfront_fields: z.ZodOptional<z.ZodBoolean>;
|
|
29
43
|
has_writes: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
-
is_beta: z.ZodOptional<z.ZodBoolean>;
|
|
31
44
|
is_built_in: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
-
is_deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
33
45
|
is_featured: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
-
is_hidden: z.ZodOptional<z.ZodBoolean>;
|
|
35
46
|
is_invite: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
-
is_premium: z.ZodOptional<z.ZodBoolean>;
|
|
37
47
|
is_public: z.ZodOptional<z.ZodBoolean>;
|
|
38
48
|
is_upcoming: z.ZodOptional<z.ZodBoolean>;
|
|
39
49
|
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>;
|
|
@@ -63,8 +63,10 @@ type AppItem = z.infer<typeof AppItemSchema>;
|
|
|
63
63
|
*/
|
|
64
64
|
declare const ListAppsQuerySchema: z.ZodObject<{
|
|
65
65
|
appKeys: z.ZodOptional<z.ZodString>;
|
|
66
|
+
app_keys: z.ZodOptional<z.ZodString>;
|
|
66
67
|
search: z.ZodOptional<z.ZodString>;
|
|
67
68
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
68
70
|
offset: z.ZodOptional<z.ZodString>;
|
|
69
71
|
}, z.core.$strip>;
|
|
70
72
|
/**
|
|
@@ -72,9 +74,23 @@ declare const ListAppsQuerySchema: z.ZodObject<{
|
|
|
72
74
|
*/
|
|
73
75
|
declare const ListAppsResponseSchema: z.ZodObject<{
|
|
74
76
|
data: z.ZodArray<z.ZodObject<{
|
|
77
|
+
description: z.ZodOptional<z.ZodString>;
|
|
78
|
+
is_hidden: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
+
auth_type: z.ZodOptional<z.ZodString>;
|
|
80
|
+
actions: z.ZodOptional<z.ZodObject<{
|
|
81
|
+
read: z.ZodOptional<z.ZodNumber>;
|
|
82
|
+
read_bulk: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
write: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
search: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
search_or_write: z.ZodOptional<z.ZodNumber>;
|
|
86
|
+
search_and_write: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
filter: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
}, z.core.$strip>>;
|
|
89
|
+
is_deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
is_beta: z.ZodOptional<z.ZodBoolean>;
|
|
91
|
+
is_premium: z.ZodOptional<z.ZodBoolean>;
|
|
75
92
|
slug: z.ZodString;
|
|
76
93
|
age_in_days: z.ZodOptional<z.ZodNumber>;
|
|
77
|
-
auth_type: z.ZodOptional<z.ZodString>;
|
|
78
94
|
banner: z.ZodOptional<z.ZodString>;
|
|
79
95
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
80
96
|
id: z.ZodNumber;
|
|
@@ -94,26 +110,12 @@ declare const ListAppsResponseSchema: z.ZodObject<{
|
|
|
94
110
|
has_searches_or_writes: z.ZodOptional<z.ZodBoolean>;
|
|
95
111
|
has_upfront_fields: z.ZodOptional<z.ZodBoolean>;
|
|
96
112
|
has_writes: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
-
is_beta: z.ZodOptional<z.ZodBoolean>;
|
|
98
113
|
is_built_in: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
-
is_deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
100
114
|
is_featured: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
-
is_hidden: z.ZodOptional<z.ZodBoolean>;
|
|
102
115
|
is_invite: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
-
is_premium: z.ZodOptional<z.ZodBoolean>;
|
|
104
116
|
is_public: z.ZodOptional<z.ZodBoolean>;
|
|
105
117
|
is_upcoming: z.ZodOptional<z.ZodBoolean>;
|
|
106
118
|
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
119
|
primary_color: z.ZodOptional<z.ZodString>;
|
|
118
120
|
secondary_color: z.ZodOptional<z.ZodString>;
|
|
119
121
|
classification: z.ZodOptional<z.ZodString>;
|
|
@@ -5,9 +5,23 @@ 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>;
|
|
8
23
|
slug: z.ZodString;
|
|
9
24
|
age_in_days: z.ZodOptional<z.ZodNumber>;
|
|
10
|
-
auth_type: z.ZodOptional<z.ZodString>;
|
|
11
25
|
banner: z.ZodOptional<z.ZodString>;
|
|
12
26
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13
27
|
id: z.ZodNumber;
|
|
@@ -27,26 +41,12 @@ declare const AppItemSchema: z.ZodObject<{
|
|
|
27
41
|
has_searches_or_writes: z.ZodOptional<z.ZodBoolean>;
|
|
28
42
|
has_upfront_fields: z.ZodOptional<z.ZodBoolean>;
|
|
29
43
|
has_writes: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
-
is_beta: z.ZodOptional<z.ZodBoolean>;
|
|
31
44
|
is_built_in: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
-
is_deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
33
45
|
is_featured: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
-
is_hidden: z.ZodOptional<z.ZodBoolean>;
|
|
35
46
|
is_invite: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
-
is_premium: z.ZodOptional<z.ZodBoolean>;
|
|
37
47
|
is_public: z.ZodOptional<z.ZodBoolean>;
|
|
38
48
|
is_upcoming: z.ZodOptional<z.ZodBoolean>;
|
|
39
49
|
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>;
|
|
@@ -63,8 +63,10 @@ type AppItem = z.infer<typeof AppItemSchema>;
|
|
|
63
63
|
*/
|
|
64
64
|
declare const ListAppsQuerySchema: z.ZodObject<{
|
|
65
65
|
appKeys: z.ZodOptional<z.ZodString>;
|
|
66
|
+
app_keys: z.ZodOptional<z.ZodString>;
|
|
66
67
|
search: z.ZodOptional<z.ZodString>;
|
|
67
68
|
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
68
70
|
offset: z.ZodOptional<z.ZodString>;
|
|
69
71
|
}, z.core.$strip>;
|
|
70
72
|
/**
|
|
@@ -72,9 +74,23 @@ declare const ListAppsQuerySchema: z.ZodObject<{
|
|
|
72
74
|
*/
|
|
73
75
|
declare const ListAppsResponseSchema: z.ZodObject<{
|
|
74
76
|
data: z.ZodArray<z.ZodObject<{
|
|
77
|
+
description: z.ZodOptional<z.ZodString>;
|
|
78
|
+
is_hidden: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
+
auth_type: z.ZodOptional<z.ZodString>;
|
|
80
|
+
actions: z.ZodOptional<z.ZodObject<{
|
|
81
|
+
read: z.ZodOptional<z.ZodNumber>;
|
|
82
|
+
read_bulk: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
write: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
search: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
search_or_write: z.ZodOptional<z.ZodNumber>;
|
|
86
|
+
search_and_write: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
filter: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
}, z.core.$strip>>;
|
|
89
|
+
is_deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
is_beta: z.ZodOptional<z.ZodBoolean>;
|
|
91
|
+
is_premium: z.ZodOptional<z.ZodBoolean>;
|
|
75
92
|
slug: z.ZodString;
|
|
76
93
|
age_in_days: z.ZodOptional<z.ZodNumber>;
|
|
77
|
-
auth_type: z.ZodOptional<z.ZodString>;
|
|
78
94
|
banner: z.ZodOptional<z.ZodString>;
|
|
79
95
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
80
96
|
id: z.ZodNumber;
|
|
@@ -94,26 +110,12 @@ declare const ListAppsResponseSchema: z.ZodObject<{
|
|
|
94
110
|
has_searches_or_writes: z.ZodOptional<z.ZodBoolean>;
|
|
95
111
|
has_upfront_fields: z.ZodOptional<z.ZodBoolean>;
|
|
96
112
|
has_writes: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
-
is_beta: z.ZodOptional<z.ZodBoolean>;
|
|
98
113
|
is_built_in: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
-
is_deprecated: z.ZodOptional<z.ZodBoolean>;
|
|
100
114
|
is_featured: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
-
is_hidden: z.ZodOptional<z.ZodBoolean>;
|
|
102
115
|
is_invite: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
-
is_premium: z.ZodOptional<z.ZodBoolean>;
|
|
104
116
|
is_public: z.ZodOptional<z.ZodBoolean>;
|
|
105
117
|
is_upcoming: z.ZodOptional<z.ZodBoolean>;
|
|
106
118
|
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
119
|
primary_color: z.ZodOptional<z.ZodString>;
|
|
118
120
|
secondary_color: z.ZodOptional<z.ZodString>;
|
|
119
121
|
classification: z.ZodOptional<z.ZodString>;
|
package/dist/v0/schemas/apps.js
CHANGED
|
@@ -75,11 +75,17 @@ var AppItemSchema = ImplementationMetaSchema.omit({
|
|
|
75
75
|
version: z2.string().optional().describe("App version")
|
|
76
76
|
});
|
|
77
77
|
var ListAppsQuerySchema = z2.object({
|
|
78
|
+
/** @deprecated Use app_keys instead */
|
|
78
79
|
appKeys: z2.string().optional().describe(
|
|
80
|
+
"Deprecated: Use app_keys instead. Comma-separated list of app keys to filter by (e.g., 'SlackCLIAPI' or slugs like 'github,slack')"
|
|
81
|
+
),
|
|
82
|
+
app_keys: z2.string().optional().describe(
|
|
79
83
|
"Comma-separated list of app keys to filter by (e.g., 'SlackCLIAPI' or slugs like 'github,slack')"
|
|
80
84
|
),
|
|
81
85
|
search: z2.string().optional().describe("Search term to filter apps by name"),
|
|
82
|
-
|
|
86
|
+
/** @deprecated Use page_size instead */
|
|
87
|
+
pageSize: z2.number().min(1).optional().describe("Deprecated: Use page_size instead. Number of apps per page"),
|
|
88
|
+
page_size: z2.number().min(1).optional().describe("Number of apps per page"),
|
|
83
89
|
offset: z2.string().optional().describe("Pagination offset from previous response")
|
|
84
90
|
}).describe("Query parameters for listing apps");
|
|
85
91
|
var ListAppsResponseSchema = z2.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/v0/schemas/apps.ts","../../../src/v0/schemas/implementations.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { ImplementationMetaSchema } from \"./implementations.js\";\n\n/**\n * Normalized app item returned by listApps endpoint.\n * This extends ImplementationMetaSchema with transformed fields (title, key, implementation_id).\n */\nexport const AppItemSchema = ImplementationMetaSchema.omit({\n name: true,\n id: true,\n}).extend({\n title: z.string().describe(\"Display name of the app\"),\n key: z.string().describe(\"App key (versionless implementation name)\"),\n implementation_id: z\n .string()\n .describe(\"Full implementation ID including version\"),\n version: z.string().optional().describe(\"App version\"),\n});\n\nexport type AppItem = z.infer<typeof AppItemSchema>;\n\n/**\n * Query parameters for listing apps\n */\nexport const ListAppsQuerySchema = z\n .object({\n appKeys: z\n .string()\n .optional()\n .describe(\n \"Comma-separated list of app keys to filter by (e.g., 'SlackCLIAPI' or slugs like 'github,slack')\",\n ),\n search: z\n .string()\n .optional()\n .describe(\"Search term to filter apps by name\"),\n pageSize: z.number().min(1).optional().describe(\"Number of apps per page\"),\n offset: z\n .string()\n .optional()\n .describe(\"Pagination offset from previous response\"),\n })\n .describe(\"Query parameters for listing apps\");\n\n/**\n * Response schema for listApps\n */\nexport const ListAppsResponseSchema = z.object({\n data: z.array(AppItemSchema).describe(\"Array of app 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)\",\n ),\n })\n .describe(\"Pagination links for navigating through results\"),\n meta: z\n .object({\n count: z.number().describe(\"Number of items in current page\"),\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\nexport type ListAppsQuery = z.infer<typeof ListAppsQuerySchema>;\nexport type ListAppsResponse = z.infer<typeof ListAppsResponseSchema>;\n","import { z } from \"zod\";\n\n/**\n * Lightweight implementation metadata returned by /api/v4/implementations-meta/*\n */\nexport const ImplementationMetaSchema = z.object({\n id: z.string().describe(\"Unique identifier for the implementation\"),\n name: z.string().describe(\"Display name of the implementation\"),\n slug: z.string().describe(\"URL-friendly slug identifier\"),\n age_in_days: z\n .number()\n .optional()\n .describe(\"Number of days since the implementation was created\"),\n auth_type: z\n .string()\n .optional()\n .describe(\"Authentication type (e.g., oauth2, api_key)\"),\n banner: z.string().optional().describe(\"Banner message or status indicator\"),\n categories: z\n .array(\n z.object({\n id: z.number().describe(\"Unique identifier for the category\"),\n name: z.string().describe(\"Display name of the category\"),\n slug: z.string().describe(\"URL-friendly slug for the category\"),\n }),\n )\n .optional()\n .describe(\"Categories the implementation belongs to\"),\n images: z\n .object({\n url_16x16: z.string().optional().describe(\"16x16 pixel icon URL\"),\n url_32x32: z.string().optional().describe(\"32x32 pixel icon URL\"),\n url_64x64: z.string().optional().describe(\"64x64 pixel icon URL\"),\n url_128x128: z.string().optional().describe(\"128x128 pixel icon URL\"),\n })\n .optional()\n .describe(\"Icon images at various sizes\"),\n popularity: z\n .number()\n .optional()\n .describe(\"Popularity score for ranking apps\"),\n has_filters: z\n .boolean()\n .optional()\n .describe(\"Whether the app has filter actions\"),\n has_reads: z\n .boolean()\n .optional()\n .describe(\"Whether the app has read actions\"),\n has_searches: z\n .boolean()\n .optional()\n .describe(\"Whether the app has search actions\"),\n has_searches_or_writes: z\n .boolean()\n .optional()\n .describe(\"Whether the app has search or write actions\"),\n has_upfront_fields: z\n .boolean()\n .optional()\n .describe(\"Whether the app has upfront input fields\"),\n has_writes: z\n .boolean()\n .optional()\n .describe(\"Whether the app has write actions\"),\n is_beta: z.boolean().optional().describe(\"Whether the app is in beta\"),\n is_built_in: z\n .boolean()\n .optional()\n .describe(\"Whether the app is a built-in Zapier app\"),\n is_deprecated: z\n .boolean()\n .optional()\n .describe(\"Whether the app is deprecated\"),\n is_featured: z.boolean().optional().describe(\"Whether the app is featured\"),\n is_hidden: z\n .boolean()\n .optional()\n .describe(\"Whether the app is hidden from listings\"),\n is_invite: z.boolean().optional().describe(\"Whether the app is invite-only\"),\n is_premium: z\n .boolean()\n .optional()\n .describe(\"Whether the app requires a premium plan\"),\n is_public: z\n .boolean()\n .optional()\n .describe(\"Whether the app is publicly available\"),\n is_upcoming: z\n .boolean()\n .optional()\n .describe(\"Whether the app is upcoming/not yet released\"),\n version: z.string().optional().describe(\"Version string of the app\"),\n visibility: z\n .string()\n .optional()\n .describe(\"Visibility status (e.g., public, private)\"),\n actions: z\n .object({\n read: z.number().optional().describe(\"Number of read actions\"),\n read_bulk: z.number().optional().describe(\"Number of bulk read actions\"),\n write: z.number().optional().describe(\"Number of write actions\"),\n search: z.number().optional().describe(\"Number of search actions\"),\n search_or_write: z\n .number()\n .optional()\n .describe(\"Number of search-or-write actions\"),\n search_and_write: z\n .number()\n .optional()\n .describe(\"Number of search-and-write actions\"),\n filter: z.number().optional().describe(\"Number of filter actions\"),\n })\n .optional()\n .describe(\"Count of available actions by type\"),\n description: z.string().optional().describe(\"Description of the app\"),\n primary_color: z.string().optional().describe(\"Primary brand color (hex)\"),\n secondary_color: z\n .string()\n .optional()\n .describe(\"Secondary brand color (hex)\"),\n classification: z.string().optional().describe(\"App classification category\"),\n api_docs_url: z.string().optional().describe(\"URL to API documentation\"),\n image: z.string().optional().describe(\"Default image URL for the app\"),\n});\n\nexport type ImplementationMeta = z.infer<typeof ImplementationMetaSchema>;\n\n/**\n * Paginated response from /api/v4/implementations-meta/lookup/ and search endpoints\n */\nexport const ImplementationsMetaResponseSchema = z.object({\n count: z.number().describe(\"Total number of results\"),\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the next page of results\"),\n previous: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the previous page of results\"),\n results: z\n .array(ImplementationMetaSchema)\n .describe(\"Array of implementation metadata\"),\n});\n\nexport type ImplementationsMetaResponse = z.infer<\n typeof ImplementationsMetaResponseSchema\n>;\n"],"mappings":";AAAA,SAAS,KAAAA,UAAS;;;ACAlB,SAAS,SAAS;AAKX,IAAM,2BAA2B,EAAE,OAAO;AAAA,EAC/C,IAAI,EAAE,OAAO,EAAE,SAAS,0CAA0C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EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,SAAS,yBAAyB;AAAA,EACzE,QAAQA,GACL,OAAO,EACP,SAAS,EACT,SAAS,0CAA0C;AACxD,CAAC,EACA,SAAS,mCAAmC;AAKxC,IAAM,yBAAyBA,GAAE,OAAO;AAAA,EAC7C,MAAMA,GAAE,MAAM,aAAa,EAAE,SAAS,oBAAoB;AAAA,EAC1D,OAAOA,GACJ,OAAO;AAAA,IACN,MAAMA,GACH,OAAO,EACP,SAAS,EACT,SAAS,EACT;AAAA,MACC;AAAA,IACF;AAAA,EACJ,CAAC,EACA,SAAS,iDAAiD;AAAA,EAC7D,MAAMA,GACH,OAAO;AAAA,IACN,OAAOA,GAAE,OAAO,EAAE,SAAS,iCAAiC;AAAA,IAC5D,OAAOA,GAAE,OAAO,EAAE,SAAS,0BAA0B;AAAA,IACrD,QAAQA,GAAE,OAAO,EAAE,SAAS,4BAA4B;AAAA,EAC1D,CAAC,EACA,SAAS,uCAAuC;AACrD,CAAC;","names":["z","z"]}
|
|
1
|
+
{"version":3,"sources":["../../../src/v0/schemas/apps.ts","../../../src/v0/schemas/implementations.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { ImplementationMetaSchema } from \"./implementations.js\";\n\n/**\n * Normalized app item returned by listApps endpoint.\n * This extends ImplementationMetaSchema with transformed fields (title, key, implementation_id).\n */\nexport const AppItemSchema = ImplementationMetaSchema.omit({\n name: true,\n id: true,\n}).extend({\n title: z.string().describe(\"Display name of the app\"),\n key: z.string().describe(\"App key (versionless implementation name)\"),\n implementation_id: z\n .string()\n .describe(\"Full implementation ID including version\"),\n version: z.string().optional().describe(\"App version\"),\n});\n\nexport type AppItem = z.infer<typeof AppItemSchema>;\n\n/**\n * Query parameters for listing apps\n */\nexport const ListAppsQuerySchema = z\n .object({\n /** @deprecated Use app_keys instead */\n appKeys: z\n .string()\n .optional()\n .describe(\n \"Deprecated: Use app_keys instead. Comma-separated list of app keys to filter by (e.g., 'SlackCLIAPI' or slugs like 'github,slack')\",\n ),\n app_keys: z\n .string()\n .optional()\n .describe(\n \"Comma-separated list of app keys to filter by (e.g., 'SlackCLIAPI' or slugs like 'github,slack')\",\n ),\n search: z\n .string()\n .optional()\n .describe(\"Search term to filter apps by name\"),\n /** @deprecated Use page_size instead */\n pageSize: z\n .number()\n .min(1)\n .optional()\n .describe(\"Deprecated: Use page_size instead. Number of apps per page\"),\n page_size: z.number().min(1).optional().describe(\"Number of apps per page\"),\n offset: z\n .string()\n .optional()\n .describe(\"Pagination offset from previous response\"),\n })\n .describe(\"Query parameters for listing apps\");\n\n/**\n * Response schema for listApps\n */\nexport const ListAppsResponseSchema = z.object({\n data: z.array(AppItemSchema).describe(\"Array of app 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)\",\n ),\n })\n .describe(\"Pagination links for navigating through results\"),\n meta: z\n .object({\n count: z.number().describe(\"Number of items in current page\"),\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\nexport type ListAppsQuery = z.infer<typeof ListAppsQuerySchema>;\nexport type ListAppsResponse = z.infer<typeof ListAppsResponseSchema>;\n","import { z } from \"zod\";\n\n/**\n * Lightweight implementation metadata returned by /api/v4/implementations-meta/*\n */\nexport const ImplementationMetaSchema = z.object({\n id: z.string().describe(\"Unique identifier for the implementation\"),\n name: z.string().describe(\"Display name of the implementation\"),\n slug: z.string().describe(\"URL-friendly slug identifier\"),\n age_in_days: z\n .number()\n .optional()\n .describe(\"Number of days since the implementation was created\"),\n auth_type: z\n .string()\n .optional()\n .describe(\"Authentication type (e.g., oauth2, api_key)\"),\n banner: z.string().optional().describe(\"Banner message or status indicator\"),\n categories: z\n .array(\n z.object({\n id: z.number().describe(\"Unique identifier for the category\"),\n name: z.string().describe(\"Display name of the category\"),\n slug: z.string().describe(\"URL-friendly slug for the category\"),\n }),\n )\n .optional()\n .describe(\"Categories the implementation belongs to\"),\n images: z\n .object({\n url_16x16: z.string().optional().describe(\"16x16 pixel icon URL\"),\n url_32x32: z.string().optional().describe(\"32x32 pixel icon URL\"),\n url_64x64: z.string().optional().describe(\"64x64 pixel icon URL\"),\n url_128x128: z.string().optional().describe(\"128x128 pixel icon URL\"),\n })\n .optional()\n .describe(\"Icon images at various sizes\"),\n popularity: z\n .number()\n .optional()\n .describe(\"Popularity score for ranking apps\"),\n has_filters: z\n .boolean()\n .optional()\n .describe(\"Whether the app has filter actions\"),\n has_reads: z\n .boolean()\n .optional()\n .describe(\"Whether the app has read actions\"),\n has_searches: z\n .boolean()\n .optional()\n .describe(\"Whether the app has search actions\"),\n has_searches_or_writes: z\n .boolean()\n .optional()\n .describe(\"Whether the app has search or write actions\"),\n has_upfront_fields: z\n .boolean()\n .optional()\n .describe(\"Whether the app has upfront input fields\"),\n has_writes: z\n .boolean()\n .optional()\n .describe(\"Whether the app has write actions\"),\n is_beta: z.boolean().optional().describe(\"Whether the app is in beta\"),\n is_built_in: z\n .boolean()\n .optional()\n .describe(\"Whether the app is a built-in Zapier app\"),\n is_deprecated: z\n .boolean()\n .optional()\n .describe(\"Whether the app is deprecated\"),\n is_featured: z.boolean().optional().describe(\"Whether the app is featured\"),\n is_hidden: z\n .boolean()\n .optional()\n .describe(\"Whether the app is hidden from listings\"),\n is_invite: z.boolean().optional().describe(\"Whether the app is invite-only\"),\n is_premium: z\n .boolean()\n .optional()\n .describe(\"Whether the app requires a premium plan\"),\n is_public: z\n .boolean()\n .optional()\n .describe(\"Whether the app is publicly available\"),\n is_upcoming: z\n .boolean()\n .optional()\n .describe(\"Whether the app is upcoming/not yet released\"),\n version: z.string().optional().describe(\"Version string of the app\"),\n visibility: z\n .string()\n .optional()\n .describe(\"Visibility status (e.g., public, private)\"),\n actions: z\n .object({\n read: z.number().optional().describe(\"Number of read actions\"),\n read_bulk: z.number().optional().describe(\"Number of bulk read actions\"),\n write: z.number().optional().describe(\"Number of write actions\"),\n search: z.number().optional().describe(\"Number of search actions\"),\n search_or_write: z\n .number()\n .optional()\n .describe(\"Number of search-or-write actions\"),\n search_and_write: z\n .number()\n .optional()\n .describe(\"Number of search-and-write actions\"),\n filter: z.number().optional().describe(\"Number of filter actions\"),\n })\n .optional()\n .describe(\"Count of available actions by type\"),\n description: z.string().optional().describe(\"Description of the app\"),\n primary_color: z.string().optional().describe(\"Primary brand color (hex)\"),\n secondary_color: z\n .string()\n .optional()\n .describe(\"Secondary brand color (hex)\"),\n classification: z.string().optional().describe(\"App classification category\"),\n api_docs_url: z.string().optional().describe(\"URL to API documentation\"),\n image: z.string().optional().describe(\"Default image URL for the app\"),\n});\n\nexport type ImplementationMeta = z.infer<typeof ImplementationMetaSchema>;\n\n/**\n * Paginated response from /api/v4/implementations-meta/lookup/ and search endpoints\n */\nexport const ImplementationsMetaResponseSchema = z.object({\n count: z.number().describe(\"Total number of results\"),\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the next page of results\"),\n previous: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the previous page of results\"),\n results: z\n .array(ImplementationMetaSchema)\n .describe(\"Array of implementation metadata\"),\n});\n\nexport type ImplementationsMetaResponse = z.infer<\n typeof ImplementationsMetaResponseSchema\n>;\n"],"mappings":";AAAA,SAAS,KAAAA,UAAS;;;ACAlB,SAAS,SAAS;AAKX,IAAM,2BAA2B,EAAE,OAAO;AAAA,EAC/C,IAAI,EAAE,OAAO,EAAE,SAAS,0CAA0C;AAAA,EAClE,MAAM,EAAE,OAAO,EAAE,SAAS,oCAAoC;AAAA,EAC9D,MAAM,EAAE,OAAO,EAAE,SAAS,8BAA8B;AAAA,EACxD,aAAa,EACV,OAAO,EACP,SAAS,EACT,SAAS,qDAAqD;AAAA,EACjE,WAAW,EACR,OAAO,EACP,SAAS,EACT,SAAS,6CAA6C;AAAA,EACzD,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,oCAAoC;AAAA,EAC3E,YAAY,EACT;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