@zapier/zapier-sdk-core 0.9.1 → 0.9.2

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @zapier/zapier-sdk-core
2
2
 
3
+ ## 0.9.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 8956e20: Add snake_case query parameter aliases alongside deprecated camelCase params for apps, actions, authentications, and client-credentials endpoints
8
+
3
9
  ## 0.9.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -97,22 +97,42 @@ var GetAuthenticationParamSchema = import_zod.z.object({
97
97
  authenticationId: import_zod.z.string().describe("Authentication ID to retrieve")
98
98
  }).describe("Get a specific authentication by ID");
99
99
  var ListAuthenticationsQuerySchema = import_zod.z.object({
100
+ /** @deprecated Use app_key instead */
100
101
  appKey: import_zod.z.string().optional().describe(
102
+ "Deprecated: Use app_key instead. Filter authentications by app key (e.g., 'SlackCLIAPI' or slug like 'github')"
103
+ ),
104
+ app_key: import_zod.z.string().optional().describe(
101
105
  "Filter authentications by app key (e.g., 'SlackCLIAPI' or slug like 'github')"
102
106
  ),
103
- authenticationIds: import_zod.z.string().optional().describe("Comma-separated list of authentication IDs to filter by"),
107
+ /** @deprecated Use authentication_ids instead */
108
+ authenticationIds: import_zod.z.string().optional().describe(
109
+ "Deprecated: Use authentication_ids instead. Comma-separated list of authentication IDs to filter by"
110
+ ),
111
+ authentication_ids: import_zod.z.string().optional().describe("Comma-separated list of authentication IDs to filter by"),
104
112
  search: import_zod.z.string().optional().describe("Search term to filter authentications by title"),
105
113
  title: import_zod.z.string().optional().describe(
106
114
  "Filter authentications by exact title match (searches first, then filters locally)"
107
115
  ),
108
- accountId: import_zod.z.string().optional().describe("Filter authentications by account ID"),
116
+ /** @deprecated Use account_id instead */
117
+ accountId: import_zod.z.string().optional().describe(
118
+ "Deprecated: Use account_id instead. Filter authentications by account ID"
119
+ ),
120
+ account_id: import_zod.z.string().optional().describe("Filter authentications by account ID"),
109
121
  owner: import_zod.z.string().optional().describe(
110
122
  "Filter by owner, 'me' for your own authentications or a specific user ID"
111
123
  ),
124
+ /** @deprecated Use is_expired instead */
112
125
  isExpired: import_zod.z.boolean().optional().describe(
126
+ "Deprecated: Use is_expired instead. Filter by expired status (true = expired only, false = non-expired only)"
127
+ ),
128
+ is_expired: import_zod.z.boolean().optional().describe(
113
129
  "Filter by expired status (true = expired only, false = non-expired only)"
114
130
  ),
115
- pageSize: import_zod.z.number().min(1).optional().describe("Number of authentications per page"),
131
+ /** @deprecated Use page_size instead */
132
+ pageSize: import_zod.z.number().min(1).optional().describe(
133
+ "Deprecated: Use page_size instead. Number of authentications per page"
134
+ ),
135
+ page_size: import_zod.z.number().min(1).optional().describe("Number of authentications per page"),
116
136
  offset: import_zod.z.string().optional().describe("Pagination offset from previous response")
117
137
  }).describe("Query parameters for listing authentications");
118
138
  var ListAuthenticationsResponseSchema = import_zod.z.object({
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/v0/schemas/authentications.ts","../src/v0/schemas/errors.ts"],"sourcesContent":["/**\n * Main entry point for @zapier/zapier-sdk-core\n *\n * Re-exports all public schemas and types for consumer convenience.\n * Routes and generation utilities are NOT exported (internal use only).\n */\n\n// Schema exports\nexport {\n AuthenticationSchema,\n AuthenticationItemSchema,\n GetAuthenticationParamSchema,\n type Authentication,\n type AuthenticationItem,\n type GetAuthenticationParam,\n type GetAuthenticationResponse,\n} from \"./v0/schemas/authentications.js\";\n\nexport {\n ErrorCodeSchema,\n ErrorSourceSchema,\n ErrorObjectSchema,\n ErrorsResponseSchema,\n type ErrorCode,\n type ErrorSource,\n type ErrorObject,\n type ErrorsResponse,\n} from \"./v0/schemas/errors.js\";\n\n// OpenAPI spec path export\nimport { fileURLToPath } from \"node:url\";\nimport { dirname, resolve } from \"node:path\";\n\n/**\n * Absolute filesystem path to the generated OpenAPI spec file.\n * Use this to reference the spec from consuming packages.\n *\n * Note: Works in both ESM and CJS environments.\n */\nexport const openapiSpecPath = (() => {\n // ESM environment\n if (typeof import.meta?.url === \"string\") {\n return fileURLToPath(new URL(\"../openapi.yaml\", import.meta.url));\n }\n // CJS environment - __dirname is available via tsup's shim\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n const currentDir =\n typeof __dirname !== \"undefined\"\n ? __dirname\n : dirname(require.resolve(\"@zapier/zapier-sdk-core/package.json\"));\n return resolve(currentDir, \"../openapi.yaml\");\n})();\n","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","/**\n * Error schema definitions for API error responses\n * Following JSON:API error object specification\n */\n\nimport { z } from \"zod\";\n\n/**\n * An application-specific error code, expressed as a string value.\n */\nexport const ErrorCodeSchema = z\n .string()\n .describe(\"An application-specific error code, expressed as a string value.\");\n\n/**\n * Identifies the source of the error within the request payload, if relevant.\n */\nexport const ErrorSourceSchema = z\n .object({\n pointer: z\n .string()\n .optional()\n .describe(\n \"A JSON Pointer [RFC6901](https://tools.ietf.org/html/rfc6901) to the associated entity in the request document [e.g. `/data` for a primary data object, or `/data/attributes/title` for a specific attribute].\",\n ),\n parameter: z\n .string()\n .optional()\n .describe(\n \"A string indicating which URI query parameter caused the error.\",\n ),\n header: z\n .string()\n .optional()\n .describe(\"A string indicating the header that caused the error.\"),\n })\n .strict()\n .nullable()\n .describe(\n \"Identifies the source of the error within the request payload, if relevant.\",\n );\n\n/**\n * An error object provides additional information about problems encountered while performing an operation.\n * Error objects MUST be returned as an array keyed by `errors` in the top level of a JSON:API document.\n */\nexport const ErrorObjectSchema = z\n .object({\n id: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"A unique identifier for this particular occurrence of the problem.\",\n ),\n links: z\n .object({\n about: z\n .string()\n .url()\n .describe(\n \"A link that leads to further details about this particular occurrence of the problem.\",\n ),\n })\n .strict()\n .nullable()\n .optional()\n .describe(\"Relevant links about the error\"),\n status: z\n .string()\n .optional()\n .describe(\n \"The HTTP status code applicable to this problem, expressed as a string value.\",\n ),\n code: ErrorCodeSchema.optional(),\n title: z\n .string()\n .optional()\n .describe(\n \"A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.\",\n ),\n detail: z\n .string()\n .optional()\n .describe(\n \"A human-readable explanation specific to this occurrence of the problem. Like `title`, this field's value can be localized.\",\n ),\n source: ErrorSourceSchema.optional(),\n })\n .strict()\n .describe(\n \"An error object provides additional information about problems encountered while performing an operation. Error objects MUST be returned as an array keyed by `errors` in the top level of a JSON:API document.\",\n );\n\n/**\n * A JSON:API error response document containing an array of error objects.\n */\nexport const ErrorsResponseSchema = z\n .object({\n errors: z\n .array(ErrorObjectSchema)\n .describe(\"A collection of the errors returned.\"),\n })\n .describe(\n \"A JSON:API error response document containing an array of error objects.\",\n );\n\n// Export TypeScript types\nexport type ErrorCode = z.infer<typeof ErrorCodeSchema>;\nexport type ErrorSource = z.infer<typeof ErrorSourceSchema>;\nexport type ErrorObject = z.infer<typeof ErrorObjectSchema>;\nexport type ErrorsResponse = z.infer<typeof ErrorsResponseSchema>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,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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ACP,SAAS,EACT;AAAA,EACC;AACF;AAMK,IAAM,oBAAoB,cAC9B,OAAO;AAAA,EACN,IAAI,cACD,OAAO,EACP,SAAS,EACT,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,OAAO,cACJ,OAAO;AAAA,IACN,OAAO,cACJ,OAAO,EACP,IAAI,EACJ;AAAA,MACC;AAAA,IACF;AAAA,EACJ,CAAC,EACA,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,gCAAgC;AAAA,EAC5C,QAAQ,cACL,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,MAAM,gBAAgB,SAAS;AAAA,EAC/B,OAAO,cACJ,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,QAAQ,cACL,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,QAAQ,kBAAkB,SAAS;AACrC,CAAC,EACA,OAAO,EACP;AAAA,EACC;AACF;AAKK,IAAM,uBAAuB,cACjC,OAAO;AAAA,EACN,QAAQ,cACL,MAAM,iBAAiB,EACvB,SAAS,sCAAsC;AACpD,CAAC,EACA;AAAA,EACC;AACF;;;AF3EF,sBAA8B;AAC9B,uBAAiC;AA/BjC;AAuCO,IAAM,mBAAmB,MAAM;AAEpC,MAAI,OAAO,aAAa,QAAQ,UAAU;AACxC,eAAO,+BAAc,IAAI,IAAI,mBAAmB,YAAY,GAAG,CAAC;AAAA,EAClE;AAGA,QAAM,aACJ,OAAO,cAAc,cACjB,gBACA,0BAAQ,gBAAgB,sCAAsC,CAAC;AACrE,aAAO,0BAAQ,YAAY,iBAAiB;AAC9C,GAAG;","names":["import_zod"]}
1
+ {"version":3,"sources":["../src/index.ts","../src/v0/schemas/authentications.ts","../src/v0/schemas/errors.ts"],"sourcesContent":["/**\n * Main entry point for @zapier/zapier-sdk-core\n *\n * Re-exports all public schemas and types for consumer convenience.\n * Routes and generation utilities are NOT exported (internal use only).\n */\n\n// Schema exports\nexport {\n AuthenticationSchema,\n AuthenticationItemSchema,\n GetAuthenticationParamSchema,\n type Authentication,\n type AuthenticationItem,\n type GetAuthenticationParam,\n type GetAuthenticationResponse,\n} from \"./v0/schemas/authentications.js\";\n\nexport {\n ErrorCodeSchema,\n ErrorSourceSchema,\n ErrorObjectSchema,\n ErrorsResponseSchema,\n type ErrorCode,\n type ErrorSource,\n type ErrorObject,\n type ErrorsResponse,\n} from \"./v0/schemas/errors.js\";\n\n// OpenAPI spec path export\nimport { fileURLToPath } from \"node:url\";\nimport { dirname, resolve } from \"node:path\";\n\n/**\n * Absolute filesystem path to the generated OpenAPI spec file.\n * Use this to reference the spec from consuming packages.\n *\n * Note: Works in both ESM and CJS environments.\n */\nexport const openapiSpecPath = (() => {\n // ESM environment\n if (typeof import.meta?.url === \"string\") {\n return fileURLToPath(new URL(\"../openapi.yaml\", import.meta.url));\n }\n // CJS environment - __dirname is available via tsup's shim\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n const currentDir =\n typeof __dirname !== \"undefined\"\n ? __dirname\n : dirname(require.resolve(\"@zapier/zapier-sdk-core/package.json\"));\n return resolve(currentDir, \"../openapi.yaml\");\n})();\n","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 /** @deprecated Use app_key instead */\n appKey: z\n .string()\n .optional()\n .describe(\n \"Deprecated: Use app_key instead. Filter authentications by app key (e.g., 'SlackCLIAPI' or slug like 'github')\",\n ),\n app_key: z\n .string()\n .optional()\n .describe(\n \"Filter authentications by app key (e.g., 'SlackCLIAPI' or slug like 'github')\",\n ),\n /** @deprecated Use authentication_ids instead */\n authenticationIds: z\n .string()\n .optional()\n .describe(\n \"Deprecated: Use authentication_ids instead. Comma-separated list of authentication IDs to filter by\",\n ),\n authentication_ids: 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 /** @deprecated Use account_id instead */\n accountId: z\n .string()\n .optional()\n .describe(\n \"Deprecated: Use account_id instead. Filter authentications by account ID\",\n ),\n account_id: 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 /** @deprecated Use is_expired instead */\n isExpired: z\n .boolean()\n .optional()\n .describe(\n \"Deprecated: Use is_expired instead. Filter by expired status (true = expired only, false = non-expired only)\",\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 /** @deprecated Use page_size instead */\n pageSize: z\n .number()\n .min(1)\n .optional()\n .describe(\n \"Deprecated: Use page_size instead. Number of authentications per page\",\n ),\n page_size: 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","/**\n * Error schema definitions for API error responses\n * Following JSON:API error object specification\n */\n\nimport { z } from \"zod\";\n\n/**\n * An application-specific error code, expressed as a string value.\n */\nexport const ErrorCodeSchema = z\n .string()\n .describe(\"An application-specific error code, expressed as a string value.\");\n\n/**\n * Identifies the source of the error within the request payload, if relevant.\n */\nexport const ErrorSourceSchema = z\n .object({\n pointer: z\n .string()\n .optional()\n .describe(\n \"A JSON Pointer [RFC6901](https://tools.ietf.org/html/rfc6901) to the associated entity in the request document [e.g. `/data` for a primary data object, or `/data/attributes/title` for a specific attribute].\",\n ),\n parameter: z\n .string()\n .optional()\n .describe(\n \"A string indicating which URI query parameter caused the error.\",\n ),\n header: z\n .string()\n .optional()\n .describe(\"A string indicating the header that caused the error.\"),\n })\n .strict()\n .nullable()\n .describe(\n \"Identifies the source of the error within the request payload, if relevant.\",\n );\n\n/**\n * An error object provides additional information about problems encountered while performing an operation.\n * Error objects MUST be returned as an array keyed by `errors` in the top level of a JSON:API document.\n */\nexport const ErrorObjectSchema = z\n .object({\n id: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"A unique identifier for this particular occurrence of the problem.\",\n ),\n links: z\n .object({\n about: z\n .string()\n .url()\n .describe(\n \"A link that leads to further details about this particular occurrence of the problem.\",\n ),\n })\n .strict()\n .nullable()\n .optional()\n .describe(\"Relevant links about the error\"),\n status: z\n .string()\n .optional()\n .describe(\n \"The HTTP status code applicable to this problem, expressed as a string value.\",\n ),\n code: ErrorCodeSchema.optional(),\n title: z\n .string()\n .optional()\n .describe(\n \"A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.\",\n ),\n detail: z\n .string()\n .optional()\n .describe(\n \"A human-readable explanation specific to this occurrence of the problem. Like `title`, this field's value can be localized.\",\n ),\n source: ErrorSourceSchema.optional(),\n })\n .strict()\n .describe(\n \"An error object provides additional information about problems encountered while performing an operation. Error objects MUST be returned as an array keyed by `errors` in the top level of a JSON:API document.\",\n );\n\n/**\n * A JSON:API error response document containing an array of error objects.\n */\nexport const ErrorsResponseSchema = z\n .object({\n errors: z\n .array(ErrorObjectSchema)\n .describe(\"A collection of the errors returned.\"),\n })\n .describe(\n \"A JSON:API error response document containing an array of error objects.\",\n );\n\n// Export TypeScript types\nexport type ErrorCode = z.infer<typeof ErrorCodeSchema>;\nexport type ErrorSource = z.infer<typeof ErrorSourceSchema>;\nexport type ErrorObject = z.infer<typeof ErrorObjectSchema>;\nexport type ErrorsResponse = z.infer<typeof ErrorsResponseSchema>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,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,gBAAgB,aACb,QAAQ,EACR,SAAS,2CAA2C;AAAA,EACvD,YAAY,aAAE,QAAQ,EAAE,SAAS,uCAAuC;AAAA,EACxE,iBAAiB,aACd,QAAQ,EACR,SAAS,qDAAqD;AAAA,EACjE,UAAU,aAAE,OAAO,EAAE,SAAS,EAA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ACC;AAAA,EACF;AAAA,EACF,QAAQ,cACL,OAAO,EACP,SAAS,EACT,SAAS,uDAAuD;AACrE,CAAC,EACA,OAAO,EACP,SAAS,EACT;AAAA,EACC;AACF;AAMK,IAAM,oBAAoB,cAC9B,OAAO;AAAA,EACN,IAAI,cACD,OAAO,EACP,SAAS,EACT,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,OAAO,cACJ,OAAO;AAAA,IACN,OAAO,cACJ,OAAO,EACP,IAAI,EACJ;AAAA,MACC;AAAA,IACF;AAAA,EACJ,CAAC,EACA,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,gCAAgC;AAAA,EAC5C,QAAQ,cACL,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,MAAM,gBAAgB,SAAS;AAAA,EAC/B,OAAO,cACJ,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,QAAQ,cACL,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,QAAQ,kBAAkB,SAAS;AACrC,CAAC,EACA,OAAO,EACP;AAAA,EACC;AACF;AAKK,IAAM,uBAAuB,cACjC,OAAO;AAAA,EACN,QAAQ,cACL,MAAM,iBAAiB,EACvB,SAAS,sCAAsC;AACpD,CAAC,EACA;AAAA,EACC;AACF;;;AF3EF,sBAA8B;AAC9B,uBAAiC;AA/BjC;AAuCO,IAAM,mBAAmB,MAAM;AAEpC,MAAI,OAAO,aAAa,QAAQ,UAAU;AACxC,eAAO,+BAAc,IAAI,IAAI,mBAAmB,YAAY,GAAG,CAAC;AAAA,EAClE;AAGA,QAAM,aACJ,OAAO,cAAc,cACjB,gBACA,0BAAQ,gBAAgB,sCAAsC,CAAC;AACrE,aAAO,0BAAQ,YAAY,iBAAiB;AAC9C,GAAG;","names":["import_zod"]}
package/dist/index.js CHANGED
@@ -61,22 +61,42 @@ var GetAuthenticationParamSchema = z.object({
61
61
  authenticationId: z.string().describe("Authentication ID to retrieve")
62
62
  }).describe("Get a specific authentication by ID");
63
63
  var ListAuthenticationsQuerySchema = z.object({
64
+ /** @deprecated Use app_key instead */
64
65
  appKey: z.string().optional().describe(
66
+ "Deprecated: Use app_key instead. Filter authentications by app key (e.g., 'SlackCLIAPI' or slug like 'github')"
67
+ ),
68
+ app_key: z.string().optional().describe(
65
69
  "Filter authentications by app key (e.g., 'SlackCLIAPI' or slug like 'github')"
66
70
  ),
67
- authenticationIds: z.string().optional().describe("Comma-separated list of authentication IDs to filter by"),
71
+ /** @deprecated Use authentication_ids instead */
72
+ authenticationIds: z.string().optional().describe(
73
+ "Deprecated: Use authentication_ids instead. Comma-separated list of authentication IDs to filter by"
74
+ ),
75
+ authentication_ids: z.string().optional().describe("Comma-separated list of authentication IDs to filter by"),
68
76
  search: z.string().optional().describe("Search term to filter authentications by title"),
69
77
  title: z.string().optional().describe(
70
78
  "Filter authentications by exact title match (searches first, then filters locally)"
71
79
  ),
72
- accountId: z.string().optional().describe("Filter authentications by account ID"),
80
+ /** @deprecated Use account_id instead */
81
+ accountId: z.string().optional().describe(
82
+ "Deprecated: Use account_id instead. Filter authentications by account ID"
83
+ ),
84
+ account_id: z.string().optional().describe("Filter authentications by account ID"),
73
85
  owner: z.string().optional().describe(
74
86
  "Filter by owner, 'me' for your own authentications or a specific user ID"
75
87
  ),
88
+ /** @deprecated Use is_expired instead */
76
89
  isExpired: z.boolean().optional().describe(
90
+ "Deprecated: Use is_expired instead. Filter by expired status (true = expired only, false = non-expired only)"
91
+ ),
92
+ is_expired: z.boolean().optional().describe(
77
93
  "Filter by expired status (true = expired only, false = non-expired only)"
78
94
  ),
79
- pageSize: z.number().min(1).optional().describe("Number of authentications per page"),
95
+ /** @deprecated Use page_size instead */
96
+ pageSize: z.number().min(1).optional().describe(
97
+ "Deprecated: Use page_size instead. Number of authentications per page"
98
+ ),
99
+ page_size: z.number().min(1).optional().describe("Number of authentications per page"),
80
100
  offset: z.string().optional().describe("Pagination offset from previous response")
81
101
  }).describe("Query parameters for listing authentications");
82
102
  var ListAuthenticationsResponseSchema = z.object({
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/v0/schemas/authentications.ts","../src/v0/schemas/errors.ts","../src/index.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","/**\n * Error schema definitions for API error responses\n * Following JSON:API error object specification\n */\n\nimport { z } from \"zod\";\n\n/**\n * An application-specific error code, expressed as a string value.\n */\nexport const ErrorCodeSchema = z\n .string()\n .describe(\"An application-specific error code, expressed as a string value.\");\n\n/**\n * Identifies the source of the error within the request payload, if relevant.\n */\nexport const ErrorSourceSchema = z\n .object({\n pointer: z\n .string()\n .optional()\n .describe(\n \"A JSON Pointer [RFC6901](https://tools.ietf.org/html/rfc6901) to the associated entity in the request document [e.g. `/data` for a primary data object, or `/data/attributes/title` for a specific attribute].\",\n ),\n parameter: z\n .string()\n .optional()\n .describe(\n \"A string indicating which URI query parameter caused the error.\",\n ),\n header: z\n .string()\n .optional()\n .describe(\"A string indicating the header that caused the error.\"),\n })\n .strict()\n .nullable()\n .describe(\n \"Identifies the source of the error within the request payload, if relevant.\",\n );\n\n/**\n * An error object provides additional information about problems encountered while performing an operation.\n * Error objects MUST be returned as an array keyed by `errors` in the top level of a JSON:API document.\n */\nexport const ErrorObjectSchema = z\n .object({\n id: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"A unique identifier for this particular occurrence of the problem.\",\n ),\n links: z\n .object({\n about: z\n .string()\n .url()\n .describe(\n \"A link that leads to further details about this particular occurrence of the problem.\",\n ),\n })\n .strict()\n .nullable()\n .optional()\n .describe(\"Relevant links about the error\"),\n status: z\n .string()\n .optional()\n .describe(\n \"The HTTP status code applicable to this problem, expressed as a string value.\",\n ),\n code: ErrorCodeSchema.optional(),\n title: z\n .string()\n .optional()\n .describe(\n \"A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.\",\n ),\n detail: z\n .string()\n .optional()\n .describe(\n \"A human-readable explanation specific to this occurrence of the problem. Like `title`, this field's value can be localized.\",\n ),\n source: ErrorSourceSchema.optional(),\n })\n .strict()\n .describe(\n \"An error object provides additional information about problems encountered while performing an operation. Error objects MUST be returned as an array keyed by `errors` in the top level of a JSON:API document.\",\n );\n\n/**\n * A JSON:API error response document containing an array of error objects.\n */\nexport const ErrorsResponseSchema = z\n .object({\n errors: z\n .array(ErrorObjectSchema)\n .describe(\"A collection of the errors returned.\"),\n })\n .describe(\n \"A JSON:API error response document containing an array of error objects.\",\n );\n\n// Export TypeScript types\nexport type ErrorCode = z.infer<typeof ErrorCodeSchema>;\nexport type ErrorSource = z.infer<typeof ErrorSourceSchema>;\nexport type ErrorObject = z.infer<typeof ErrorObjectSchema>;\nexport type ErrorsResponse = z.infer<typeof ErrorsResponseSchema>;\n","/**\n * Main entry point for @zapier/zapier-sdk-core\n *\n * Re-exports all public schemas and types for consumer convenience.\n * Routes and generation utilities are NOT exported (internal use only).\n */\n\n// Schema exports\nexport {\n AuthenticationSchema,\n AuthenticationItemSchema,\n GetAuthenticationParamSchema,\n type Authentication,\n type AuthenticationItem,\n type GetAuthenticationParam,\n type GetAuthenticationResponse,\n} from \"./v0/schemas/authentications.js\";\n\nexport {\n ErrorCodeSchema,\n ErrorSourceSchema,\n ErrorObjectSchema,\n ErrorsResponseSchema,\n type ErrorCode,\n type ErrorSource,\n type ErrorObject,\n type ErrorsResponse,\n} from \"./v0/schemas/errors.js\";\n\n// OpenAPI spec path export\nimport { fileURLToPath } from \"node:url\";\nimport { dirname, resolve } from \"node:path\";\n\n/**\n * Absolute filesystem path to the generated OpenAPI spec file.\n * Use this to reference the spec from consuming packages.\n *\n * Note: Works in both ESM and CJS environments.\n */\nexport const openapiSpecPath = (() => {\n // ESM environment\n if (typeof import.meta?.url === \"string\") {\n return fileURLToPath(new URL(\"../openapi.yaml\", import.meta.url));\n }\n // CJS environment - __dirname is available via tsup's shim\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n const currentDir =\n typeof __dirname !== \"undefined\"\n ? __dirname\n : dirname(require.resolve(\"@zapier/zapier-sdk-core/package.json\"));\n return resolve(currentDir, \"../openapi.yaml\");\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,E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,IAAM,uBAAuBA,GACjC,OAAO;AAAA,EACN,QAAQA,GACL,MAAM,iBAAiB,EACvB,SAAS,sCAAsC;AACpD,CAAC,EACA;AAAA,EACC;AACF;;;AC3EF,SAAS,qBAAqB;AAC9B,SAAS,SAAS,eAAe;AAQ1B,IAAM,mBAAmB,MAAM;AAEpC,MAAI,OAAO,aAAa,QAAQ,UAAU;AACxC,WAAO,cAAc,IAAI,IAAI,mBAAmB,YAAY,GAAG,CAAC;AAAA,EAClE;AAGA,QAAM,aACJ,OAAO,cAAc,cACjB,YACA,QAAQ,UAAQ,QAAQ,sCAAsC,CAAC;AACrE,SAAO,QAAQ,YAAY,iBAAiB;AAC9C,GAAG;","names":["z"]}
1
+ {"version":3,"sources":["../src/v0/schemas/authentications.ts","../src/v0/schemas/errors.ts","../src/index.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 /** @deprecated Use app_key instead */\n appKey: z\n .string()\n .optional()\n .describe(\n \"Deprecated: Use app_key instead. Filter authentications by app key (e.g., 'SlackCLIAPI' or slug like 'github')\",\n ),\n app_key: z\n .string()\n .optional()\n .describe(\n \"Filter authentications by app key (e.g., 'SlackCLIAPI' or slug like 'github')\",\n ),\n /** @deprecated Use authentication_ids instead */\n authenticationIds: z\n .string()\n .optional()\n .describe(\n \"Deprecated: Use authentication_ids instead. Comma-separated list of authentication IDs to filter by\",\n ),\n authentication_ids: 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 /** @deprecated Use account_id instead */\n accountId: z\n .string()\n .optional()\n .describe(\n \"Deprecated: Use account_id instead. Filter authentications by account ID\",\n ),\n account_id: 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 /** @deprecated Use is_expired instead */\n isExpired: z\n .boolean()\n .optional()\n .describe(\n \"Deprecated: Use is_expired instead. Filter by expired status (true = expired only, false = non-expired only)\",\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 /** @deprecated Use page_size instead */\n pageSize: z\n .number()\n .min(1)\n .optional()\n .describe(\n \"Deprecated: Use page_size instead. Number of authentications per page\",\n ),\n page_size: 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","/**\n * Error schema definitions for API error responses\n * Following JSON:API error object specification\n */\n\nimport { z } from \"zod\";\n\n/**\n * An application-specific error code, expressed as a string value.\n */\nexport const ErrorCodeSchema = z\n .string()\n .describe(\"An application-specific error code, expressed as a string value.\");\n\n/**\n * Identifies the source of the error within the request payload, if relevant.\n */\nexport const ErrorSourceSchema = z\n .object({\n pointer: z\n .string()\n .optional()\n .describe(\n \"A JSON Pointer [RFC6901](https://tools.ietf.org/html/rfc6901) to the associated entity in the request document [e.g. `/data` for a primary data object, or `/data/attributes/title` for a specific attribute].\",\n ),\n parameter: z\n .string()\n .optional()\n .describe(\n \"A string indicating which URI query parameter caused the error.\",\n ),\n header: z\n .string()\n .optional()\n .describe(\"A string indicating the header that caused the error.\"),\n })\n .strict()\n .nullable()\n .describe(\n \"Identifies the source of the error within the request payload, if relevant.\",\n );\n\n/**\n * An error object provides additional information about problems encountered while performing an operation.\n * Error objects MUST be returned as an array keyed by `errors` in the top level of a JSON:API document.\n */\nexport const ErrorObjectSchema = z\n .object({\n id: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"A unique identifier for this particular occurrence of the problem.\",\n ),\n links: z\n .object({\n about: z\n .string()\n .url()\n .describe(\n \"A link that leads to further details about this particular occurrence of the problem.\",\n ),\n })\n .strict()\n .nullable()\n .optional()\n .describe(\"Relevant links about the error\"),\n status: z\n .string()\n .optional()\n .describe(\n \"The HTTP status code applicable to this problem, expressed as a string value.\",\n ),\n code: ErrorCodeSchema.optional(),\n title: z\n .string()\n .optional()\n .describe(\n \"A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.\",\n ),\n detail: z\n .string()\n .optional()\n .describe(\n \"A human-readable explanation specific to this occurrence of the problem. Like `title`, this field's value can be localized.\",\n ),\n source: ErrorSourceSchema.optional(),\n })\n .strict()\n .describe(\n \"An error object provides additional information about problems encountered while performing an operation. Error objects MUST be returned as an array keyed by `errors` in the top level of a JSON:API document.\",\n );\n\n/**\n * A JSON:API error response document containing an array of error objects.\n */\nexport const ErrorsResponseSchema = z\n .object({\n errors: z\n .array(ErrorObjectSchema)\n .describe(\"A collection of the errors returned.\"),\n })\n .describe(\n \"A JSON:API error response document containing an array of error objects.\",\n );\n\n// Export TypeScript types\nexport type ErrorCode = z.infer<typeof ErrorCodeSchema>;\nexport type ErrorSource = z.infer<typeof ErrorSourceSchema>;\nexport type ErrorObject = z.infer<typeof ErrorObjectSchema>;\nexport type ErrorsResponse = z.infer<typeof ErrorsResponseSchema>;\n","/**\n * Main entry point for @zapier/zapier-sdk-core\n *\n * Re-exports all public schemas and types for consumer convenience.\n * Routes and generation utilities are NOT exported (internal use only).\n */\n\n// Schema exports\nexport {\n AuthenticationSchema,\n AuthenticationItemSchema,\n GetAuthenticationParamSchema,\n type Authentication,\n type AuthenticationItem,\n type GetAuthenticationParam,\n type GetAuthenticationResponse,\n} from \"./v0/schemas/authentications.js\";\n\nexport {\n ErrorCodeSchema,\n ErrorSourceSchema,\n ErrorObjectSchema,\n ErrorsResponseSchema,\n type ErrorCode,\n type ErrorSource,\n type ErrorObject,\n type ErrorsResponse,\n} from \"./v0/schemas/errors.js\";\n\n// OpenAPI spec path export\nimport { fileURLToPath } from \"node:url\";\nimport { dirname, resolve } from \"node:path\";\n\n/**\n * Absolute filesystem path to the generated OpenAPI spec file.\n * Use this to reference the spec from consuming packages.\n *\n * Note: Works in both ESM and CJS environments.\n */\nexport const openapiSpecPath = (() => {\n // ESM environment\n if (typeof import.meta?.url === \"string\") {\n return fileURLToPath(new URL(\"../openapi.yaml\", import.meta.url));\n }\n // CJS environment - __dirname is available via tsup's shim\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n const currentDir =\n typeof __dirname !== \"undefined\"\n ? __dirname\n : dirname(require.resolve(\"@zapier/zapier-sdk-core/package.json\"));\n return resolve(currentDir, \"../openapi.yaml\");\n})();\n"],"mappings":";;;;;;;;AAAA,SAAS,SAAS;AAKX,IAAM,uBAAuB,EAAE,OAAO;AAAA,EAC3C,IAAI,EAAE,OAAO,EAAE,SAAS,0CAA0C;AAAA,EAClE,MAAM,EAAE,OAA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;AAAA,EACC;AACF;AAKK,IAAM,uBAAuBA,GACjC,OAAO;AAAA,EACN,QAAQA,GACL,MAAM,iBAAiB,EACvB,SAAS,sCAAsC;AACpD,CAAC,EACA;AAAA,EACC;AACF;;;AC3EF,SAAS,qBAAqB;AAC9B,SAAS,SAAS,eAAe;AAQ1B,IAAM,mBAAmB,MAAM;AAEpC,MAAI,OAAO,aAAa,QAAQ,UAAU;AACxC,WAAO,cAAc,IAAI,IAAI,mBAAmB,YAAY,GAAG,CAAC;AAAA,EAClE;AAGA,QAAM,aACJ,OAAO,cAAc,cACjB,YACA,QAAQ,UAAQ,QAAQ,sCAAsC,CAAC;AACrE,SAAO,QAAQ,YAAY,iBAAiB;AAC9C,GAAG;","names":["z"]}
@@ -82,12 +82,23 @@ var ImplementationsWithActionsResponseSchema = import_zod.z.object({
82
82
  results: import_zod.z.array(ImplementationWithActionsSchema).describe("Array of implementations with their actions")
83
83
  });
84
84
  var ListActionsQuerySchema = import_zod.z.object({
85
- appKey: import_zod.z.string().describe(
85
+ /** @deprecated Use app_key instead */
86
+ appKey: import_zod.z.string().optional().describe(
87
+ "Deprecated: Use app_key instead. App key to list actions for (e.g., 'SlackCLIAPI@1.21.1' or 'SlackCLIAPI')"
88
+ ),
89
+ app_key: import_zod.z.string().optional().describe(
86
90
  "App key to list actions for (e.g., 'SlackCLIAPI@1.21.1' or 'SlackCLIAPI')"
87
91
  ),
92
+ /** @deprecated Use action_type instead */
88
93
  actionType: ActionTypeSchema.optional().describe(
94
+ "Deprecated: Use action_type instead. Filter actions by type (e.g., 'read', 'write', 'search')"
95
+ ),
96
+ action_type: ActionTypeSchema.optional().describe(
89
97
  "Filter actions by type (e.g., 'read', 'write', 'search')"
90
98
  )
99
+ }).refine((data) => data.appKey || data.app_key, {
100
+ message: "Either app_key or appKey is required",
101
+ path: ["app_key"]
91
102
  }).describe("Query parameters for listing actions");
92
103
  var ListActionsResponseSchema = import_zod.z.object({
93
104
  data: import_zod.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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAkB;AAKX,IAAM,mBAAmB,aAAE,KAAK;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAOM,IAAM,eAAe,aAAE,OAAO;AAAA,EACnC,IAAI,aAAE,OAAO,EAAE,SAAS,EAAE,SAAS,kCAAkC;AAAA,EACrE,MAAM,iBAAiB,SAAS,oBAAoB;AAAA,EACpD,KAAK,aAAE,OAAO,EAAE,SAAS,sCAAsC;AAAA,EAC/D,MAAM,aAAE,OAAO,EAAE,SAAS,4BAA4B;AAAA,EACtD,aAAa,aAAE,OAAO,EAAE,SAAS,qCAAqC;AAAA,EACtE,cAAc,aACX,QAAQ,EACR,SAAS,EACT,SAAS,4CAA4C;AAAA,EACxD,WAAW,aACR,QAAQ,EACR,SAAS,EACT,SAAS,6CAA6C;AAAA,EACzD,cAAc,aACX,OAAO,EACP,SAAS,EACT,SAAS,8CAA8C;AAC5D,CAAC;AAiBM,IAAM,mBAAmB,aAC7B,OAAO;AAAA,EACN,IAAI,aAAE,OAAO,EAAE,SAAS,EAAE,SAAS,kCAAkC;AAAA,EACrE,KAAK,aAAE,OAAO,EAAE,SAAS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;AASM,IAAM,2CAA2C,aAAE,OAAO;AAAA,EAC/D,OAAO,aAAE,OAAO,EAAE,SAAS,yBAAyB;AAAA,EACpD,MAAM,aACH,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,kCAAkC;AAAA,EAC9C,UAAU,aACP,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,sCAAsC;AAAA,EAClD,SAAS,aACN,MAAM,+BAA+B,EACrC,SAAS,6CAA6C;AAC3D,CAAC;AASM,IAAM,yBAAyB,aACnC,OAAO;AAAA,EACN,QAAQ,aACL,OAAO,EACP;AAAA,IACC;AAAA,EACF;AAAA,EACF,YAAY,iBAAiB,SAAS,EAAE;AAAA,IACtC;AAAA,EACF;AACF,CAAC,EACA,SAAS,sCAAsC;AAK3C,IAAM,4BAA4B,aACtC,OAAO;AAAA,EACN,MAAM,aAAE,MAAM,gBAAgB,EAAE,SAAS,uBAAuB;AAClE,CAAC,EACA,SAAS,iCAAiC;","names":[]}
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 ListActionsRespon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EN,QAAQ,aACL,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,SAAS,aACN,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,aACtC,OAAO;AAAA,EACN,MAAM,aAAE,MAAM,gBAAgB,EAAE,SAAS,uBAAuB;AAClE,CAAC,EACA,SAAS,iCAAiC;","names":[]}
@@ -151,7 +151,8 @@ 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<{
156
157
  read: "read";
157
158
  read_bulk: "read_bulk";
@@ -162,6 +163,16 @@ declare const ListActionsQuerySchema: z.ZodObject<{
162
163
  filter: "filter";
163
164
  run: "run";
164
165
  }>>;
166
+ action_type: z.ZodOptional<z.ZodEnum<{
167
+ read: "read";
168
+ read_bulk: "read_bulk";
169
+ write: "write";
170
+ search: "search";
171
+ search_or_write: "search_or_write";
172
+ search_and_write: "search_and_write";
173
+ filter: "filter";
174
+ run: "run";
175
+ }>>;
165
176
  }, z.core.$strip>;
166
177
  /**
167
178
  * Response schema for listActions
@@ -151,7 +151,8 @@ 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<{
156
157
  read: "read";
157
158
  read_bulk: "read_bulk";
@@ -162,6 +163,16 @@ declare const ListActionsQuerySchema: z.ZodObject<{
162
163
  filter: "filter";
163
164
  run: "run";
164
165
  }>>;
166
+ action_type: z.ZodOptional<z.ZodEnum<{
167
+ read: "read";
168
+ read_bulk: "read_bulk";
169
+ write: "write";
170
+ search: "search";
171
+ search_or_write: "search_or_write";
172
+ search_and_write: "search_and_write";
173
+ filter: "filter";
174
+ run: "run";
175
+ }>>;
165
176
  }, z.core.$strip>;
166
177
  /**
167
178
  * Response schema for listActions
@@ -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
- appKey: z.string().describe(
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,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;AAAA,EACtE,cAAc,EACX,QAAQ,EACR,SAAS,EACT,SAAS,4CAA4C;AAAA,EAC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AAS,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,EACN,QAAQ,EACL,OAAO,EACP;AAAA,IACC;AAAA,EACF;AAAA,EACF,YAAY,iBAAiB,SAAS,EAAE;AAAA,IACtC;AAAA,EACF;AACF,CAAC,EACA,SAAS,sCAAsC;AAK3C,IAAM,4BAA4B,EACtC,OAAO;AAAA,EACN,MAAM,EAAE,MAAM,gBAAgB,EAAE,SAAS,uBAAuB;AAClE,CAAC,EACA,SAAS,iCAAiC;","names":[]}
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,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,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":[]}
@@ -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
- pageSize: import_zod2.z.number().min(1).optional().describe("Number of apps per page"),
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,8B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CAA0C;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\"),\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,SAA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AAS,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"]}
@@ -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
  /**
@@ -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
  /**