@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.
@@ -75,11 +75,17 @@ var AppItemSchema = ImplementationMetaSchema.omit({
75
75
  version: z2.string().optional().describe("App version")
76
76
  });
77
77
  var ListAppsQuerySchema = z2.object({
78
+ /** @deprecated Use app_keys instead */
78
79
  appKeys: z2.string().optional().describe(
80
+ "Deprecated: Use app_keys instead. Comma-separated list of app keys to filter by (e.g., 'SlackCLIAPI' or slugs like 'github,slack')"
81
+ ),
82
+ app_keys: z2.string().optional().describe(
79
83
  "Comma-separated list of app keys to filter by (e.g., 'SlackCLIAPI' or slugs like 'github,slack')"
80
84
  ),
81
85
  search: z2.string().optional().describe("Search term to filter apps by name"),
82
- pageSize: z2.number().min(1).optional().describe("Number of apps per page"),
86
+ /** @deprecated Use page_size instead */
87
+ pageSize: z2.number().min(1).optional().describe("Deprecated: Use page_size instead. Number of apps per page"),
88
+ page_size: z2.number().min(1).optional().describe("Number of apps per page"),
83
89
  offset: z2.string().optional().describe("Pagination offset from previous response")
84
90
  }).describe("Query parameters for listing apps");
85
91
  var ListAppsResponseSchema = z2.object({
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/v0/schemas/apps.ts","../../../src/v0/schemas/implementations.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { ImplementationMetaSchema } from \"./implementations.js\";\n\n/**\n * Normalized app item returned by listApps endpoint.\n * This extends ImplementationMetaSchema with transformed fields (title, key, implementation_id).\n */\nexport const AppItemSchema = ImplementationMetaSchema.omit({\n name: true,\n id: true,\n}).extend({\n title: z.string().describe(\"Display name of the app\"),\n key: z.string().describe(\"App key (versionless implementation name)\"),\n implementation_id: z\n .string()\n .describe(\"Full implementation ID including version\"),\n version: z.string().optional().describe(\"App version\"),\n});\n\nexport type AppItem = z.infer<typeof AppItemSchema>;\n\n/**\n * Query parameters for listing apps\n */\nexport const ListAppsQuerySchema = z\n .object({\n appKeys: z\n .string()\n .optional()\n .describe(\n \"Comma-separated list of app keys to filter by (e.g., 'SlackCLIAPI' or slugs like 'github,slack')\",\n ),\n search: z\n .string()\n .optional()\n .describe(\"Search term to filter apps by name\"),\n pageSize: z.number().min(1).optional().describe(\"Number of apps per page\"),\n offset: z\n .string()\n .optional()\n .describe(\"Pagination offset from previous response\"),\n })\n .describe(\"Query parameters for listing apps\");\n\n/**\n * Response schema for listApps\n */\nexport const ListAppsResponseSchema = z.object({\n data: z.array(AppItemSchema).describe(\"Array of app items\"),\n links: z\n .object({\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"Fully qualified URL for the next page of results (if available)\",\n ),\n })\n .describe(\"Pagination links for navigating through results\"),\n meta: z\n .object({\n count: z.number().describe(\"Number of items in current page\"),\n limit: z.number().describe(\"Number of items per page\"),\n offset: z.number().describe(\"Offset of the current page\"),\n })\n .describe(\"Metadata for the paginated result set\"),\n});\n\nexport type ListAppsQuery = z.infer<typeof ListAppsQuerySchema>;\nexport type ListAppsResponse = z.infer<typeof ListAppsResponseSchema>;\n","import { z } from \"zod\";\n\n/**\n * Lightweight implementation metadata returned by /api/v4/implementations-meta/*\n */\nexport const ImplementationMetaSchema = z.object({\n id: z.string().describe(\"Unique identifier for the implementation\"),\n name: z.string().describe(\"Display name of the implementation\"),\n slug: z.string().describe(\"URL-friendly slug identifier\"),\n age_in_days: z\n .number()\n .optional()\n .describe(\"Number of days since the implementation was created\"),\n auth_type: z\n .string()\n .optional()\n .describe(\"Authentication type (e.g., oauth2, api_key)\"),\n banner: z.string().optional().describe(\"Banner message or status indicator\"),\n categories: z\n .array(\n z.object({\n id: z.number().describe(\"Unique identifier for the category\"),\n name: z.string().describe(\"Display name of the category\"),\n slug: z.string().describe(\"URL-friendly slug for the category\"),\n }),\n )\n .optional()\n .describe(\"Categories the implementation belongs to\"),\n images: z\n .object({\n url_16x16: z.string().optional().describe(\"16x16 pixel icon URL\"),\n url_32x32: z.string().optional().describe(\"32x32 pixel icon URL\"),\n url_64x64: z.string().optional().describe(\"64x64 pixel icon URL\"),\n url_128x128: z.string().optional().describe(\"128x128 pixel icon URL\"),\n })\n .optional()\n .describe(\"Icon images at various sizes\"),\n popularity: z\n .number()\n .optional()\n .describe(\"Popularity score for ranking apps\"),\n has_filters: z\n .boolean()\n .optional()\n .describe(\"Whether the app has filter actions\"),\n has_reads: z\n .boolean()\n .optional()\n .describe(\"Whether the app has read actions\"),\n has_searches: z\n .boolean()\n .optional()\n .describe(\"Whether the app has search actions\"),\n has_searches_or_writes: z\n .boolean()\n .optional()\n .describe(\"Whether the app has search or write actions\"),\n has_upfront_fields: z\n .boolean()\n .optional()\n .describe(\"Whether the app has upfront input fields\"),\n has_writes: z\n .boolean()\n .optional()\n .describe(\"Whether the app has write actions\"),\n is_beta: z.boolean().optional().describe(\"Whether the app is in beta\"),\n is_built_in: z\n .boolean()\n .optional()\n .describe(\"Whether the app is a built-in Zapier app\"),\n is_deprecated: z\n .boolean()\n .optional()\n .describe(\"Whether the app is deprecated\"),\n is_featured: z.boolean().optional().describe(\"Whether the app is featured\"),\n is_hidden: z\n .boolean()\n .optional()\n .describe(\"Whether the app is hidden from listings\"),\n is_invite: z.boolean().optional().describe(\"Whether the app is invite-only\"),\n is_premium: z\n .boolean()\n .optional()\n .describe(\"Whether the app requires a premium plan\"),\n is_public: z\n .boolean()\n .optional()\n .describe(\"Whether the app is publicly available\"),\n is_upcoming: z\n .boolean()\n .optional()\n .describe(\"Whether the app is upcoming/not yet released\"),\n version: z.string().optional().describe(\"Version string of the app\"),\n visibility: z\n .string()\n .optional()\n .describe(\"Visibility status (e.g., public, private)\"),\n actions: z\n .object({\n read: z.number().optional().describe(\"Number of read actions\"),\n read_bulk: z.number().optional().describe(\"Number of bulk read actions\"),\n write: z.number().optional().describe(\"Number of write actions\"),\n search: z.number().optional().describe(\"Number of search actions\"),\n search_or_write: z\n .number()\n .optional()\n .describe(\"Number of search-or-write actions\"),\n search_and_write: z\n .number()\n .optional()\n .describe(\"Number of search-and-write actions\"),\n filter: z.number().optional().describe(\"Number of filter actions\"),\n })\n .optional()\n .describe(\"Count of available actions by type\"),\n description: z.string().optional().describe(\"Description of the app\"),\n primary_color: z.string().optional().describe(\"Primary brand color (hex)\"),\n secondary_color: z\n .string()\n .optional()\n .describe(\"Secondary brand color (hex)\"),\n classification: z.string().optional().describe(\"App classification category\"),\n api_docs_url: z.string().optional().describe(\"URL to API documentation\"),\n image: z.string().optional().describe(\"Default image URL for the app\"),\n});\n\nexport type ImplementationMeta = z.infer<typeof ImplementationMetaSchema>;\n\n/**\n * Paginated response from /api/v4/implementations-meta/lookup/ and search endpoints\n */\nexport const ImplementationsMetaResponseSchema = z.object({\n count: z.number().describe(\"Total number of results\"),\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the next page of results\"),\n previous: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the previous page of results\"),\n results: z\n .array(ImplementationMetaSchema)\n .describe(\"Array of implementation metadata\"),\n});\n\nexport type ImplementationsMetaResponse = z.infer<\n typeof ImplementationsMetaResponseSchema\n>;\n"],"mappings":";AAAA,SAAS,KAAAA,UAAS;;;ACAlB,SAAS,SAAS;AAKX,IAAM,2BAA2B,EAAE,OAAO;AAAA,EAC/C,IAAI,EAAE,OAAO,EAAE,SAAS,0CAA0C;AAAA,EAClE,MAAM,EAAE,OAAO,EAAE,SAAS,oCAAoC;AAAA,EAC9D,MAAM,EAAE,OAAO,EAAE,SAAS,8BAA8B;AAAA,EACxD,aAAa,EACV,OAAO,EACP,SAAS,EACT,SAAS,qDAAqD;AAAA,EACjE,WAAW,EACR,OAAO,EACP,SAAS,EACT,SAAS,6CAA6C;AAAA,EACzD,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,oCAAoC;AAAA,EAC3E,YAAY,EACT;AAAA,IACC,EAAE,OAAO;AAAA,MACP,IAAI,EAAE,OAAO,EAAE,SAAS,oCAAoC;AAAA,MAC5D,MAAM,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A,GACH,OAAO;AAAA,IACN,OAAOA,GAAE,OAAO,EAAE,SAAS,iCAAiC;AAAA,IAC5D,OAAOA,GAAE,OAAO,EAAE,SAAS,0BAA0B;AAAA,IACrD,QAAQA,GAAE,OAAO,EAAE,SAAS,4BAA4B;AAAA,EAC1D,CAAC,EACA,SAAS,uCAAuC;AACrD,CAAC;","names":["z","z"]}
1
+ {"version":3,"sources":["../../../src/v0/schemas/apps.ts","../../../src/v0/schemas/implementations.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { ImplementationMetaSchema } from \"./implementations.js\";\n\n/**\n * Normalized app item returned by listApps endpoint.\n * This extends ImplementationMetaSchema with transformed fields (title, key, implementation_id).\n */\nexport const AppItemSchema = ImplementationMetaSchema.omit({\n name: true,\n id: true,\n}).extend({\n title: z.string().describe(\"Display name of the app\"),\n key: z.string().describe(\"App key (versionless implementation name)\"),\n implementation_id: z\n .string()\n .describe(\"Full implementation ID including version\"),\n version: z.string().optional().describe(\"App version\"),\n});\n\nexport type AppItem = z.infer<typeof AppItemSchema>;\n\n/**\n * Query parameters for listing apps\n */\nexport const ListAppsQuerySchema = z\n .object({\n /** @deprecated Use app_keys instead */\n appKeys: z\n .string()\n .optional()\n .describe(\n \"Deprecated: Use app_keys instead. Comma-separated list of app keys to filter by (e.g., 'SlackCLIAPI' or slugs like 'github,slack')\",\n ),\n app_keys: z\n .string()\n .optional()\n .describe(\n \"Comma-separated list of app keys to filter by (e.g., 'SlackCLIAPI' or slugs like 'github,slack')\",\n ),\n search: z\n .string()\n .optional()\n .describe(\"Search term to filter apps by name\"),\n /** @deprecated Use page_size instead */\n pageSize: z\n .number()\n .min(1)\n .optional()\n .describe(\"Deprecated: Use page_size instead. Number of apps per page\"),\n page_size: z.number().min(1).optional().describe(\"Number of apps per page\"),\n offset: z\n .string()\n .optional()\n .describe(\"Pagination offset from previous response\"),\n })\n .describe(\"Query parameters for listing apps\");\n\n/**\n * Response schema for listApps\n */\nexport const ListAppsResponseSchema = z.object({\n data: z.array(AppItemSchema).describe(\"Array of app items\"),\n links: z\n .object({\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"Fully qualified URL for the next page of results (if available)\",\n ),\n })\n .describe(\"Pagination links for navigating through results\"),\n meta: z\n .object({\n count: z.number().describe(\"Number of items in current page\"),\n limit: z.number().describe(\"Number of items per page\"),\n offset: z.number().describe(\"Offset of the current page\"),\n })\n .describe(\"Metadata for the paginated result set\"),\n});\n\nexport type ListAppsQuery = z.infer<typeof ListAppsQuerySchema>;\nexport type ListAppsResponse = z.infer<typeof ListAppsResponseSchema>;\n","import { z } from \"zod\";\n\n/**\n * Lightweight implementation metadata returned by /api/v4/implementations-meta/*\n */\nexport const ImplementationMetaSchema = z.object({\n id: z.string().describe(\"Unique identifier for the implementation\"),\n name: z.string().describe(\"Display name of the implementation\"),\n slug: z.string().describe(\"URL-friendly slug identifier\"),\n age_in_days: z\n .number()\n .optional()\n .describe(\"Number of days since the implementation was created\"),\n auth_type: z\n .string()\n .optional()\n .describe(\"Authentication type (e.g., oauth2, api_key)\"),\n banner: z.string().optional().describe(\"Banner message or status indicator\"),\n categories: z\n .array(\n z.object({\n id: z.number().describe(\"Unique identifier for the category\"),\n name: z.string().describe(\"Display name of the category\"),\n slug: z.string().describe(\"URL-friendly slug for the category\"),\n }),\n )\n .optional()\n .describe(\"Categories the implementation belongs to\"),\n images: z\n .object({\n url_16x16: z.string().optional().describe(\"16x16 pixel icon URL\"),\n url_32x32: z.string().optional().describe(\"32x32 pixel icon URL\"),\n url_64x64: z.string().optional().describe(\"64x64 pixel icon URL\"),\n url_128x128: z.string().optional().describe(\"128x128 pixel icon URL\"),\n })\n .optional()\n .describe(\"Icon images at various sizes\"),\n popularity: z\n .number()\n .optional()\n .describe(\"Popularity score for ranking apps\"),\n has_filters: z\n .boolean()\n .optional()\n .describe(\"Whether the app has filter actions\"),\n has_reads: z\n .boolean()\n .optional()\n .describe(\"Whether the app has read actions\"),\n has_searches: z\n .boolean()\n .optional()\n .describe(\"Whether the app has search actions\"),\n has_searches_or_writes: z\n .boolean()\n .optional()\n .describe(\"Whether the app has search or write actions\"),\n has_upfront_fields: z\n .boolean()\n .optional()\n .describe(\"Whether the app has upfront input fields\"),\n has_writes: z\n .boolean()\n .optional()\n .describe(\"Whether the app has write actions\"),\n is_beta: z.boolean().optional().describe(\"Whether the app is in beta\"),\n is_built_in: z\n .boolean()\n .optional()\n .describe(\"Whether the app is a built-in Zapier app\"),\n is_deprecated: z\n .boolean()\n .optional()\n .describe(\"Whether the app is deprecated\"),\n is_featured: z.boolean().optional().describe(\"Whether the app is featured\"),\n is_hidden: z\n .boolean()\n .optional()\n .describe(\"Whether the app is hidden from listings\"),\n is_invite: z.boolean().optional().describe(\"Whether the app is invite-only\"),\n is_premium: z\n .boolean()\n .optional()\n .describe(\"Whether the app requires a premium plan\"),\n is_public: z\n .boolean()\n .optional()\n .describe(\"Whether the app is publicly available\"),\n is_upcoming: z\n .boolean()\n .optional()\n .describe(\"Whether the app is upcoming/not yet released\"),\n version: z.string().optional().describe(\"Version string of the app\"),\n visibility: z\n .string()\n .optional()\n .describe(\"Visibility status (e.g., public, private)\"),\n actions: z\n .object({\n read: z.number().optional().describe(\"Number of read actions\"),\n read_bulk: z.number().optional().describe(\"Number of bulk read actions\"),\n write: z.number().optional().describe(\"Number of write actions\"),\n search: z.number().optional().describe(\"Number of search actions\"),\n search_or_write: z\n .number()\n .optional()\n .describe(\"Number of search-or-write actions\"),\n search_and_write: z\n .number()\n .optional()\n .describe(\"Number of search-and-write actions\"),\n filter: z.number().optional().describe(\"Number of filter actions\"),\n })\n .optional()\n .describe(\"Count of available actions by type\"),\n description: z.string().optional().describe(\"Description of the app\"),\n primary_color: z.string().optional().describe(\"Primary brand color (hex)\"),\n secondary_color: z\n .string()\n .optional()\n .describe(\"Secondary brand color (hex)\"),\n classification: z.string().optional().describe(\"App classification category\"),\n api_docs_url: z.string().optional().describe(\"URL to API documentation\"),\n image: z.string().optional().describe(\"Default image URL for the app\"),\n});\n\nexport type ImplementationMeta = z.infer<typeof ImplementationMetaSchema>;\n\n/**\n * Paginated response from /api/v4/implementations-meta/lookup/ and search endpoints\n */\nexport const ImplementationsMetaResponseSchema = z.object({\n count: z.number().describe(\"Total number of results\"),\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the next page of results\"),\n previous: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the previous page of results\"),\n results: z\n .array(ImplementationMetaSchema)\n .describe(\"Array of implementation metadata\"),\n});\n\nexport type ImplementationsMetaResponse = z.infer<\n typeof ImplementationsMetaResponseSchema\n>;\n"],"mappings":";AAAA,SAAS,KAAAA,UAAS;;;ACAlB,SAAS,SAAS;AAKX,IAAM,2BAA2B,EAAE,OAAO;AAAA,EAC/C,IAAI,EAAE,OAAO,EAAE,SAAS,0CAA0C;AAAA,EAClE,MAAM,EAAE,OAAO,EAAE,SAAS,oCAAoC;AAAA,EAC9D,MAAM,EAAE,OAAO,EAAE,SAAS,8BAA8B;AAAA,EACxD,aAAa,EACV,OAAO,EACP,SAAS,EACT,SAAS,qDAAqD;AAAA,EACjE,WAAW,EACR,OAAO,EACP,SAAS,EACT,SAAS,6CAA6C;AAAA,EACzD,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,oCAAoC;AAAA,EAC3E,YAAY,EACT;AAAA,IACC,EAAE,OAAO;AAAA,MACP,IAAI,EAAE,OAAO,EAAE,SAAS,oCAAoC;AAAA,MAC5D,MAAM,EAAE,OAAO,EAAE,SAAS,8BAA8B;AAAA,MACxD,MAAM,EAAE,OAAO,EAAE,SAAS,oCAAoC;AAAA,IAChE,CAAC;AAAA,EACH,EACC,SAAS,EACT,SAAS,0CAA0C;AAAA,EACtD,QAAQ,EACL,OAAO;AAAA,IACN,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,sBAAsB;AAAA,IAChE,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,sBAAsB;AAAA,IAChE,WAAW,EA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S,4BAA4B;AAAA,EAC1D,CAAC,EACA,SAAS,uCAAuC;AACrD,CAAC;","names":["z","z"]}
@@ -83,22 +83,42 @@ var GetAuthenticationParamSchema = import_zod.z.object({
83
83
  authenticationId: import_zod.z.string().describe("Authentication ID to retrieve")
84
84
  }).describe("Get a specific authentication by ID");
85
85
  var ListAuthenticationsQuerySchema = import_zod.z.object({
86
+ /** @deprecated Use app_key instead */
86
87
  appKey: import_zod.z.string().optional().describe(
88
+ "Deprecated: Use app_key instead. Filter authentications by app key (e.g., 'SlackCLIAPI' or slug like 'github')"
89
+ ),
90
+ app_key: import_zod.z.string().optional().describe(
87
91
  "Filter authentications by app key (e.g., 'SlackCLIAPI' or slug like 'github')"
88
92
  ),
89
- authenticationIds: import_zod.z.string().optional().describe("Comma-separated list of authentication IDs to filter by"),
93
+ /** @deprecated Use authentication_ids instead */
94
+ authenticationIds: import_zod.z.string().optional().describe(
95
+ "Deprecated: Use authentication_ids instead. Comma-separated list of authentication IDs to filter by"
96
+ ),
97
+ authentication_ids: import_zod.z.string().optional().describe("Comma-separated list of authentication IDs to filter by"),
90
98
  search: import_zod.z.string().optional().describe("Search term to filter authentications by title"),
91
99
  title: import_zod.z.string().optional().describe(
92
100
  "Filter authentications by exact title match (searches first, then filters locally)"
93
101
  ),
94
- accountId: import_zod.z.string().optional().describe("Filter authentications by account ID"),
102
+ /** @deprecated Use account_id instead */
103
+ accountId: import_zod.z.string().optional().describe(
104
+ "Deprecated: Use account_id instead. Filter authentications by account ID"
105
+ ),
106
+ account_id: import_zod.z.string().optional().describe("Filter authentications by account ID"),
95
107
  owner: import_zod.z.string().optional().describe(
96
108
  "Filter by owner, 'me' for your own authentications or a specific user ID"
97
109
  ),
110
+ /** @deprecated Use is_expired instead */
98
111
  isExpired: import_zod.z.boolean().optional().describe(
112
+ "Deprecated: Use is_expired instead. Filter by expired status (true = expired only, false = non-expired only)"
113
+ ),
114
+ is_expired: import_zod.z.boolean().optional().describe(
99
115
  "Filter by expired status (true = expired only, false = non-expired only)"
100
116
  ),
101
- pageSize: import_zod.z.number().min(1).optional().describe("Number of authentications per page"),
117
+ /** @deprecated Use page_size instead */
118
+ pageSize: import_zod.z.number().min(1).optional().describe(
119
+ "Deprecated: Use page_size instead. Number of authentications per page"
120
+ ),
121
+ page_size: import_zod.z.number().min(1).optional().describe("Number of authentications per page"),
102
122
  offset: import_zod.z.string().optional().describe("Pagination offset from previous response")
103
123
  }).describe("Query parameters for listing authentications");
104
124
  var ListAuthenticationsResponseSchema = import_zod.z.object({
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/v0/schemas/authentications.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Base Authentication schema matching the API response\n */\nexport const AuthenticationSchema = z.object({\n id: z.number().describe(\"Unique identifier for the authentication\"),\n date: z.string().describe(\"Date created\"),\n lastchanged: z.string().optional().describe(\"Date last changed\"),\n account_id: z\n .number()\n .describe(\"Account ID associated with this authentication\"),\n customuser_id: z\n .number()\n .optional()\n .describe(\"Custom user ID (if applicable)\"),\n selected_api: z.string().describe(\"Selected API key (internal identifier)\"),\n destination_selected_api: z\n .string()\n .nullable()\n .optional()\n .describe(\"Destination API key (if applicable)\"),\n is_invite_only: z\n .boolean()\n .describe(\"Whether the authentication is invite-only\"),\n is_private: z.boolean().describe(\"Whether the authentication is private\"),\n shared_with_all: z\n .boolean()\n .describe(\"Whether the authentication is shared with all users\"),\n is_stale: z.string().optional().describe(\"Stale status string\"),\n is_shared: z.string().optional().describe(\"Shared status string\"),\n marked_stale_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when marked stale\"),\n label: z\n .string()\n .nullable()\n .optional()\n .describe(\"User label for the authentication\"),\n identifier: z.string().nullable().optional().describe(\"Identifier\"),\n title: z\n .string()\n .nullable()\n .optional()\n .describe(\"Title of the authentication\"),\n url: z.string().optional().describe(\"URL to the authentication resource\"),\n groups: z\n .array(\n z\n .record(z.string(), z.unknown())\n .describe(\"Groups associated with the authentication\"),\n )\n .optional()\n .describe(\"Array of groups associated with the authentication\"),\n members: z\n .string()\n .optional()\n .describe(\"Members associated with the authentication\"),\n permissions: z\n .record(z.string(), z.boolean())\n .optional()\n .describe(\"Permissions for the authentication\"),\n public_id: z\n .string()\n .optional()\n .describe(\"Public UUID for the authentication\"),\n account_public_id: z\n .string()\n .optional()\n .describe(\"Public UUID for the associated account\"),\n customuser_public_id: z\n .string()\n .optional()\n .describe(\"Public UUID for the associated custom user\"),\n});\n\n/**\n * Normalized authentication item returned by getAuthentication handler\n *\n * Transforms API response fields:\n * - selected_api → implementation_id\n * - customuser_id → profile_id\n * - is_stale → is_expired (preserved as is_stale too)\n * - marked_stale_at → expired_at (preserved as marked_stale_at too)\n *\n * Adds computed fields:\n * - app_key: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"SlackCLIAPI\")\n * - app_version: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"1.0.0\")\n */\nexport const AuthenticationItemSchema = AuthenticationSchema.omit({\n selected_api: true,\n customuser_id: true,\n}).extend({\n // Override numeric IDs with string versions (converted by normalizeAuthenticationItem)\n id: z.string().describe(\"Unique identifier for the authentication\"),\n account_id: z\n .string()\n .describe(\"Account ID associated with this authentication\"),\n\n // Renamed fields\n implementation_id: z\n .string()\n .optional()\n .describe(\"Implementation ID (was selected_api)\"),\n profile_id: z.string().optional().describe(\"Profile ID (was customuser_id)\"),\n\n // Mapped fields (originals preserved in ...restOfAuth)\n is_expired: z\n .string()\n .optional()\n .describe(\"Whether the authentication is expired (mapped from is_stale)\"),\n expired_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when authentication expired (mapped from marked_stale_at)\"),\n\n // Computed fields\n app_key: z\n .string()\n .optional()\n .describe(\"App Key extracted from implementation_id\"),\n app_version: z\n .string()\n .optional()\n .describe(\"App Version extracted from implementation_id\"),\n});\n\nexport const AuthenticationsResponseSchema = z.object({\n count: z.number().describe(\"Total number of items\"),\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the next page of results (if available)\"),\n previous: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the previous page of results (if available)\"),\n results: z\n .array(AuthenticationSchema)\n .describe(\"Array of authentication items\"),\n});\n\nexport type Authentication = z.infer<typeof AuthenticationSchema>;\nexport type AuthenticationItem = z.infer<typeof AuthenticationItemSchema>;\nexport type AuthenticationsResponse = z.infer<\n typeof AuthenticationsResponseSchema\n>;\n\n/**\n * Path parameters schema for getAuthentication endpoint.\n */\nexport const GetAuthenticationParamSchema = z\n .object({\n authenticationId: z.string().describe(\"Authentication ID to retrieve\"),\n })\n .describe(\"Get a specific authentication by ID\");\n\nexport type GetAuthenticationParam = z.infer<\n typeof GetAuthenticationParamSchema\n>;\n\n/**\n * Response type for getAuthentication endpoint.\n * Wraps AuthenticationItem in the standard API response envelope.\n */\nexport type GetAuthenticationResponse = { data: AuthenticationItem };\n\n/**\n * Query parameters for listing authentications\n */\nexport const ListAuthenticationsQuerySchema = z\n .object({\n appKey: z\n .string()\n .optional()\n .describe(\n \"Filter authentications by app key (e.g., 'SlackCLIAPI' or slug like 'github')\",\n ),\n authenticationIds: z\n .string()\n .optional()\n .describe(\"Comma-separated list of authentication IDs to filter by\"),\n search: z\n .string()\n .optional()\n .describe(\"Search term to filter authentications by title\"),\n title: z\n .string()\n .optional()\n .describe(\n \"Filter authentications by exact title match (searches first, then filters locally)\",\n ),\n accountId: z\n .string()\n .optional()\n .describe(\"Filter authentications by account ID\"),\n owner: z\n .string()\n .optional()\n .describe(\n \"Filter by owner, 'me' for your own authentications or a specific user ID\",\n ),\n isExpired: z\n .boolean()\n .optional()\n .describe(\n \"Filter by expired status (true = expired only, false = non-expired only)\",\n ),\n pageSize: z\n .number()\n .min(1)\n .optional()\n .describe(\"Number of authentications per page\"),\n offset: z\n .string()\n .optional()\n .describe(\"Pagination offset from previous response\"),\n })\n .describe(\"Query parameters for listing authentications\");\n\n/**\n * Response schema for listAuthentications\n */\nexport const ListAuthenticationsResponseSchema = z\n .object({\n data: z\n .array(AuthenticationItemSchema)\n .describe(\"Array of authentication items\"),\n links: z\n .object({\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"Fully qualified URL for the next page of results (if available), e.g. https://sdkapi.zapier.com/api/v0/authentications?offset=100&pageSize=50\",\n ),\n })\n .describe(\"Pagination links for navigating through results\"),\n meta: z\n .object({\n count: z.number().describe(\"Total number of items\"),\n limit: z.number().describe(\"Number of items per page\"),\n offset: z.number().describe(\"Offset of the current page\"),\n })\n .describe(\"Metadata for the paginated result set\"),\n })\n .describe(\"Response schema for listing authentications\");\n\n/**\n * TypeScript types for request and response\n */\nexport type ListAuthenticationsQuery = z.infer<\n typeof ListAuthenticationsQuerySchema\n>;\nexport type ListAuthenticationsResponse = z.infer<\n typeof ListAuthenticationsResponseSchema\n>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAkB;AAKX,IAAM,uBAAuB,aAAE,OAAO;AAAA,EAC3C,IAAI,aAAE,OAAO,EAAE,SAAS,0CAA0C;AAAA,EAClE,MAAM,aAAE,OAAO,EAAE,SAAS,cAAc;AAAA,EACxC,aAAa,aAAE,OAAO,EAAE,SAAS,EAAE,SAAS,mBAAmB;AAAA,EAC/D,YAAY,aACT,OAAO,EACP,SAAS,gDAAgD;AAAA,EAC5D,eAAe,aACZ,OAAO,EACP,SAAS,EACT,SAAS,gCAAgC;AAAA,EAC5C,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,OA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U,aACP,OAAO,EACP,IAAI,CAAC,EACL,SAAS,EACT,SAAS,oCAAoC;AAAA,EAChD,QAAQ,aACL,OAAO,EACP,SAAS,EACT,SAAS,0CAA0C;AACxD,CAAC,EACA,SAAS,8CAA8C;AAKnD,IAAM,oCAAoC,aAC9C,OAAO;AAAA,EACN,MAAM,aACH,MAAM,wBAAwB,EAC9B,SAAS,+BAA+B;AAAA,EAC3C,OAAO,aACJ,OAAO;AAAA,IACN,MAAM,aACH,OAAO,EACP,SAAS,EACT,SAAS,EACT;AAAA,MACC;AAAA,IACF;AAAA,EACJ,CAAC,EACA,SAAS,iDAAiD;AAAA,EAC7D,MAAM,aACH,OAAO;AAAA,IACN,OAAO,aAAE,OAAO,EAAE,SAAS,uBAAuB;AAAA,IAClD,OAAO,aAAE,OAAO,EAAE,SAAS,0BAA0B;AAAA,IACrD,QAAQ,aAAE,OAAO,EAAE,SAAS,4BAA4B;AAAA,EAC1D,CAAC,EACA,SAAS,uCAAuC;AACrD,CAAC,EACA,SAAS,6CAA6C;","names":[]}
1
+ {"version":3,"sources":["../../../src/v0/schemas/authentications.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Base Authentication schema matching the API response\n */\nexport const AuthenticationSchema = z.object({\n id: z.number().describe(\"Unique identifier for the authentication\"),\n date: z.string().describe(\"Date created\"),\n lastchanged: z.string().optional().describe(\"Date last changed\"),\n account_id: z\n .number()\n .describe(\"Account ID associated with this authentication\"),\n customuser_id: z\n .number()\n .optional()\n .describe(\"Custom user ID (if applicable)\"),\n selected_api: z.string().describe(\"Selected API key (internal identifier)\"),\n destination_selected_api: z\n .string()\n .nullable()\n .optional()\n .describe(\"Destination API key (if applicable)\"),\n is_invite_only: z\n .boolean()\n .describe(\"Whether the authentication is invite-only\"),\n is_private: z.boolean().describe(\"Whether the authentication is private\"),\n shared_with_all: z\n .boolean()\n .describe(\"Whether the authentication is shared with all users\"),\n is_stale: z.string().optional().describe(\"Stale status string\"),\n is_shared: z.string().optional().describe(\"Shared status string\"),\n marked_stale_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when marked stale\"),\n label: z\n .string()\n .nullable()\n .optional()\n .describe(\"User label for the authentication\"),\n identifier: z.string().nullable().optional().describe(\"Identifier\"),\n title: z\n .string()\n .nullable()\n .optional()\n .describe(\"Title of the authentication\"),\n url: z.string().optional().describe(\"URL to the authentication resource\"),\n groups: z\n .array(\n z\n .record(z.string(), z.unknown())\n .describe(\"Groups associated with the authentication\"),\n )\n .optional()\n .describe(\"Array of groups associated with the authentication\"),\n members: z\n .string()\n .optional()\n .describe(\"Members associated with the authentication\"),\n permissions: z\n .record(z.string(), z.boolean())\n .optional()\n .describe(\"Permissions for the authentication\"),\n public_id: z\n .string()\n .optional()\n .describe(\"Public UUID for the authentication\"),\n account_public_id: z\n .string()\n .optional()\n .describe(\"Public UUID for the associated account\"),\n customuser_public_id: z\n .string()\n .optional()\n .describe(\"Public UUID for the associated custom user\"),\n});\n\n/**\n * Normalized authentication item returned by getAuthentication handler\n *\n * Transforms API response fields:\n * - selected_api → implementation_id\n * - customuser_id → profile_id\n * - is_stale → is_expired (preserved as is_stale too)\n * - marked_stale_at → expired_at (preserved as marked_stale_at too)\n *\n * Adds computed fields:\n * - app_key: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"SlackCLIAPI\")\n * - app_version: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"1.0.0\")\n */\nexport const AuthenticationItemSchema = AuthenticationSchema.omit({\n selected_api: true,\n customuser_id: true,\n}).extend({\n // Override numeric IDs with string versions (converted by normalizeAuthenticationItem)\n id: z.string().describe(\"Unique identifier for the authentication\"),\n account_id: z\n .string()\n .describe(\"Account ID associated with this authentication\"),\n\n // Renamed fields\n implementation_id: z\n .string()\n .optional()\n .describe(\"Implementation ID (was selected_api)\"),\n profile_id: z.string().optional().describe(\"Profile ID (was customuser_id)\"),\n\n // Mapped fields (originals preserved in ...restOfAuth)\n is_expired: z\n .string()\n .optional()\n .describe(\"Whether the authentication is expired (mapped from is_stale)\"),\n expired_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when authentication expired (mapped from marked_stale_at)\"),\n\n // Computed fields\n app_key: z\n .string()\n .optional()\n .describe(\"App Key extracted from implementation_id\"),\n app_version: z\n .string()\n .optional()\n .describe(\"App Version extracted from implementation_id\"),\n});\n\nexport const AuthenticationsResponseSchema = z.object({\n count: z.number().describe(\"Total number of items\"),\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the next page of results (if available)\"),\n previous: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the previous page of results (if available)\"),\n results: z\n .array(AuthenticationSchema)\n .describe(\"Array of authentication items\"),\n});\n\nexport type Authentication = z.infer<typeof AuthenticationSchema>;\nexport type AuthenticationItem = z.infer<typeof AuthenticationItemSchema>;\nexport type AuthenticationsResponse = z.infer<\n typeof AuthenticationsResponseSchema\n>;\n\n/**\n * Path parameters schema for getAuthentication endpoint.\n */\nexport const GetAuthenticationParamSchema = z\n .object({\n authenticationId: z.string().describe(\"Authentication ID to retrieve\"),\n })\n .describe(\"Get a specific authentication by ID\");\n\nexport type GetAuthenticationParam = z.infer<\n typeof GetAuthenticationParamSchema\n>;\n\n/**\n * Response type for getAuthentication endpoint.\n * Wraps AuthenticationItem in the standard API response envelope.\n */\nexport type GetAuthenticationResponse = { data: AuthenticationItem };\n\n/**\n * Query parameters for listing authentications\n */\nexport const ListAuthenticationsQuerySchema = z\n .object({\n /** @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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAkB;AAKX,IAAM,uBAAuB,aAAE,OAAO;AAAA,EAC3C,IAAI,aAAE,OAAO,EAAE,SAAS,0CAA0C;AAAA,EAClE,MAAM,aAAE,OAAO,EAAE,SAAS,cAAc;AAAA,EACxC,aAAa,aAAE,OAAO,EAAE,SAAS,EAAE,SAAS,mBAAmB;AAAA,EAC/D,YAAY,aACT,OAAO,EACP,SAAS,gDAAgD;AAAA,EAC5D,eAAe,aACZ,OAAO,EACP,SAAS,EACT,SAAS,gCAAgC;AAAA,EAC5C,cAAc,aAAE,OAAO,EAAE,SAAS,wCAAwC;AAAA,EAC1E,0BAA0B,aACvB,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,qCAAqC;AAAA,EACjD,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,EAAE,SAAS,qBAAqB;AAAA,EAC9D,WAAW,aAAE,OAAO,EAAE,SAAS,EAAE,SAAS,sBAAsB;AAAA,EAChE,iBAAiB,aACd,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,wBAAwB;AAAA,EACpC,OAAO,aACJ,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,mCAAmC;AAAA,EAC/C,YAAY,aAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,YAAY;AAAA,EAClE,OAAO,aACJ,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,6BAA6B;AAAA,EACzC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P,IAAI,CAAC,EACL,SAAS,EACT,SAAS,oCAAoC;AAAA,EAChD,QAAQ,aACL,OAAO,EACP,SAAS,EACT,SAAS,0CAA0C;AACxD,CAAC,EACA,SAAS,8CAA8C;AAKnD,IAAM,oCAAoC,aAC9C,OAAO;AAAA,EACN,MAAM,aACH,MAAM,wBAAwB,EAC9B,SAAS,+BAA+B;AAAA,EAC3C,OAAO,aACJ,OAAO;AAAA,IACN,MAAM,aACH,OAAO,EACP,SAAS,EACT,SAAS,EACT;AAAA,MACC;AAAA,IACF;AAAA,EACJ,CAAC,EACA,SAAS,iDAAiD;AAAA,EAC7D,MAAM,aACH,OAAO;AAAA,IACN,OAAO,aAAE,OAAO,EAAE,SAAS,uBAAuB;AAAA,IAClD,OAAO,aAAE,OAAO,EAAE,SAAS,0BAA0B;AAAA,IACrD,QAAQ,aAAE,OAAO,EAAE,SAAS,4BAA4B;AAAA,EAC1D,CAAC,EACA,SAAS,uCAAuC;AACrD,CAAC,EACA,SAAS,6CAA6C;","names":[]}
@@ -122,13 +122,18 @@ type GetAuthenticationResponse = {
122
122
  */
123
123
  declare const ListAuthenticationsQuerySchema: z.ZodObject<{
124
124
  appKey: z.ZodOptional<z.ZodString>;
125
+ app_key: z.ZodOptional<z.ZodString>;
125
126
  authenticationIds: z.ZodOptional<z.ZodString>;
127
+ authentication_ids: z.ZodOptional<z.ZodString>;
126
128
  search: z.ZodOptional<z.ZodString>;
127
129
  title: z.ZodOptional<z.ZodString>;
128
130
  accountId: z.ZodOptional<z.ZodString>;
131
+ account_id: z.ZodOptional<z.ZodString>;
129
132
  owner: z.ZodOptional<z.ZodString>;
130
133
  isExpired: z.ZodOptional<z.ZodBoolean>;
134
+ is_expired: z.ZodOptional<z.ZodBoolean>;
131
135
  pageSize: z.ZodOptional<z.ZodNumber>;
136
+ page_size: z.ZodOptional<z.ZodNumber>;
132
137
  offset: z.ZodOptional<z.ZodString>;
133
138
  }, z.core.$strip>;
134
139
  /**
@@ -122,13 +122,18 @@ type GetAuthenticationResponse = {
122
122
  */
123
123
  declare const ListAuthenticationsQuerySchema: z.ZodObject<{
124
124
  appKey: z.ZodOptional<z.ZodString>;
125
+ app_key: z.ZodOptional<z.ZodString>;
125
126
  authenticationIds: z.ZodOptional<z.ZodString>;
127
+ authentication_ids: z.ZodOptional<z.ZodString>;
126
128
  search: z.ZodOptional<z.ZodString>;
127
129
  title: z.ZodOptional<z.ZodString>;
128
130
  accountId: z.ZodOptional<z.ZodString>;
131
+ account_id: z.ZodOptional<z.ZodString>;
129
132
  owner: z.ZodOptional<z.ZodString>;
130
133
  isExpired: z.ZodOptional<z.ZodBoolean>;
134
+ is_expired: z.ZodOptional<z.ZodBoolean>;
131
135
  pageSize: z.ZodOptional<z.ZodNumber>;
136
+ page_size: z.ZodOptional<z.ZodNumber>;
132
137
  offset: z.ZodOptional<z.ZodString>;
133
138
  }, z.core.$strip>;
134
139
  /**
@@ -54,22 +54,42 @@ var GetAuthenticationParamSchema = z.object({
54
54
  authenticationId: z.string().describe("Authentication ID to retrieve")
55
55
  }).describe("Get a specific authentication by ID");
56
56
  var ListAuthenticationsQuerySchema = z.object({
57
+ /** @deprecated Use app_key instead */
57
58
  appKey: z.string().optional().describe(
59
+ "Deprecated: Use app_key instead. Filter authentications by app key (e.g., 'SlackCLIAPI' or slug like 'github')"
60
+ ),
61
+ app_key: z.string().optional().describe(
58
62
  "Filter authentications by app key (e.g., 'SlackCLIAPI' or slug like 'github')"
59
63
  ),
60
- authenticationIds: z.string().optional().describe("Comma-separated list of authentication IDs to filter by"),
64
+ /** @deprecated Use authentication_ids instead */
65
+ authenticationIds: z.string().optional().describe(
66
+ "Deprecated: Use authentication_ids instead. Comma-separated list of authentication IDs to filter by"
67
+ ),
68
+ authentication_ids: z.string().optional().describe("Comma-separated list of authentication IDs to filter by"),
61
69
  search: z.string().optional().describe("Search term to filter authentications by title"),
62
70
  title: z.string().optional().describe(
63
71
  "Filter authentications by exact title match (searches first, then filters locally)"
64
72
  ),
65
- accountId: z.string().optional().describe("Filter authentications by account ID"),
73
+ /** @deprecated Use account_id instead */
74
+ accountId: z.string().optional().describe(
75
+ "Deprecated: Use account_id instead. Filter authentications by account ID"
76
+ ),
77
+ account_id: z.string().optional().describe("Filter authentications by account ID"),
66
78
  owner: z.string().optional().describe(
67
79
  "Filter by owner, 'me' for your own authentications or a specific user ID"
68
80
  ),
81
+ /** @deprecated Use is_expired instead */
69
82
  isExpired: z.boolean().optional().describe(
83
+ "Deprecated: Use is_expired instead. Filter by expired status (true = expired only, false = non-expired only)"
84
+ ),
85
+ is_expired: z.boolean().optional().describe(
70
86
  "Filter by expired status (true = expired only, false = non-expired only)"
71
87
  ),
72
- pageSize: z.number().min(1).optional().describe("Number of authentications per page"),
88
+ /** @deprecated Use page_size instead */
89
+ pageSize: z.number().min(1).optional().describe(
90
+ "Deprecated: Use page_size instead. Number of authentications per page"
91
+ ),
92
+ page_size: z.number().min(1).optional().describe("Number of authentications per page"),
73
93
  offset: z.string().optional().describe("Pagination offset from previous response")
74
94
  }).describe("Query parameters for listing authentications");
75
95
  var ListAuthenticationsResponseSchema = z.object({
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/v0/schemas/authentications.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Base Authentication schema matching the API response\n */\nexport const AuthenticationSchema = z.object({\n id: z.number().describe(\"Unique identifier for the authentication\"),\n date: z.string().describe(\"Date created\"),\n lastchanged: z.string().optional().describe(\"Date last changed\"),\n account_id: z\n .number()\n .describe(\"Account ID associated with this authentication\"),\n customuser_id: z\n .number()\n .optional()\n .describe(\"Custom user ID (if applicable)\"),\n selected_api: z.string().describe(\"Selected API key (internal identifier)\"),\n destination_selected_api: z\n .string()\n .nullable()\n .optional()\n .describe(\"Destination API key (if applicable)\"),\n is_invite_only: z\n .boolean()\n .describe(\"Whether the authentication is invite-only\"),\n is_private: z.boolean().describe(\"Whether the authentication is private\"),\n shared_with_all: z\n .boolean()\n .describe(\"Whether the authentication is shared with all users\"),\n is_stale: z.string().optional().describe(\"Stale status string\"),\n is_shared: z.string().optional().describe(\"Shared status string\"),\n marked_stale_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when marked stale\"),\n label: z\n .string()\n .nullable()\n .optional()\n .describe(\"User label for the authentication\"),\n identifier: z.string().nullable().optional().describe(\"Identifier\"),\n title: z\n .string()\n .nullable()\n .optional()\n .describe(\"Title of the authentication\"),\n url: z.string().optional().describe(\"URL to the authentication resource\"),\n groups: z\n .array(\n z\n .record(z.string(), z.unknown())\n .describe(\"Groups associated with the authentication\"),\n )\n .optional()\n .describe(\"Array of groups associated with the authentication\"),\n members: z\n .string()\n .optional()\n .describe(\"Members associated with the authentication\"),\n permissions: z\n .record(z.string(), z.boolean())\n .optional()\n .describe(\"Permissions for the authentication\"),\n public_id: z\n .string()\n .optional()\n .describe(\"Public UUID for the authentication\"),\n account_public_id: z\n .string()\n .optional()\n .describe(\"Public UUID for the associated account\"),\n customuser_public_id: z\n .string()\n .optional()\n .describe(\"Public UUID for the associated custom user\"),\n});\n\n/**\n * Normalized authentication item returned by getAuthentication handler\n *\n * Transforms API response fields:\n * - selected_api → implementation_id\n * - customuser_id → profile_id\n * - is_stale → is_expired (preserved as is_stale too)\n * - marked_stale_at → expired_at (preserved as marked_stale_at too)\n *\n * Adds computed fields:\n * - app_key: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"SlackCLIAPI\")\n * - app_version: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"1.0.0\")\n */\nexport const AuthenticationItemSchema = AuthenticationSchema.omit({\n selected_api: true,\n customuser_id: true,\n}).extend({\n // Override numeric IDs with string versions (converted by normalizeAuthenticationItem)\n id: z.string().describe(\"Unique identifier for the authentication\"),\n account_id: z\n .string()\n .describe(\"Account ID associated with this authentication\"),\n\n // Renamed fields\n implementation_id: z\n .string()\n .optional()\n .describe(\"Implementation ID (was selected_api)\"),\n profile_id: z.string().optional().describe(\"Profile ID (was customuser_id)\"),\n\n // Mapped fields (originals preserved in ...restOfAuth)\n is_expired: z\n .string()\n .optional()\n .describe(\"Whether the authentication is expired (mapped from is_stale)\"),\n expired_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when authentication expired (mapped from marked_stale_at)\"),\n\n // Computed fields\n app_key: z\n .string()\n .optional()\n .describe(\"App Key extracted from implementation_id\"),\n app_version: z\n .string()\n .optional()\n .describe(\"App Version extracted from implementation_id\"),\n});\n\nexport const AuthenticationsResponseSchema = z.object({\n count: z.number().describe(\"Total number of items\"),\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the next page of results (if available)\"),\n previous: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the previous page of results (if available)\"),\n results: z\n .array(AuthenticationSchema)\n .describe(\"Array of authentication items\"),\n});\n\nexport type Authentication = z.infer<typeof AuthenticationSchema>;\nexport type AuthenticationItem = z.infer<typeof AuthenticationItemSchema>;\nexport type AuthenticationsResponse = z.infer<\n typeof AuthenticationsResponseSchema\n>;\n\n/**\n * Path parameters schema for getAuthentication endpoint.\n */\nexport const GetAuthenticationParamSchema = z\n .object({\n authenticationId: z.string().describe(\"Authentication ID to retrieve\"),\n })\n .describe(\"Get a specific authentication by ID\");\n\nexport type GetAuthenticationParam = z.infer<\n typeof GetAuthenticationParamSchema\n>;\n\n/**\n * Response type for getAuthentication endpoint.\n * Wraps AuthenticationItem in the standard API response envelope.\n */\nexport type GetAuthenticationResponse = { data: AuthenticationItem };\n\n/**\n * Query parameters for listing authentications\n */\nexport const ListAuthenticationsQuerySchema = z\n .object({\n appKey: z\n .string()\n .optional()\n .describe(\n \"Filter authentications by app key (e.g., 'SlackCLIAPI' or slug like 'github')\",\n ),\n authenticationIds: z\n .string()\n .optional()\n .describe(\"Comma-separated list of authentication IDs to filter by\"),\n search: z\n .string()\n .optional()\n .describe(\"Search term to filter authentications by title\"),\n title: z\n .string()\n .optional()\n .describe(\n \"Filter authentications by exact title match (searches first, then filters locally)\",\n ),\n accountId: z\n .string()\n .optional()\n .describe(\"Filter authentications by account ID\"),\n owner: z\n .string()\n .optional()\n .describe(\n \"Filter by owner, 'me' for your own authentications or a specific user ID\",\n ),\n isExpired: z\n .boolean()\n .optional()\n .describe(\n \"Filter by expired status (true = expired only, false = non-expired only)\",\n ),\n pageSize: z\n .number()\n .min(1)\n .optional()\n .describe(\"Number of authentications per page\"),\n offset: z\n .string()\n .optional()\n .describe(\"Pagination offset from previous response\"),\n })\n .describe(\"Query parameters for listing authentications\");\n\n/**\n * Response schema for listAuthentications\n */\nexport const ListAuthenticationsResponseSchema = z\n .object({\n data: z\n .array(AuthenticationItemSchema)\n .describe(\"Array of authentication items\"),\n links: z\n .object({\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"Fully qualified URL for the next page of results (if available), e.g. https://sdkapi.zapier.com/api/v0/authentications?offset=100&pageSize=50\",\n ),\n })\n .describe(\"Pagination links for navigating through results\"),\n meta: z\n .object({\n count: z.number().describe(\"Total number of items\"),\n limit: z.number().describe(\"Number of items per page\"),\n offset: z.number().describe(\"Offset of the current page\"),\n })\n .describe(\"Metadata for the paginated result set\"),\n })\n .describe(\"Response schema for listing authentications\");\n\n/**\n * TypeScript types for request and response\n */\nexport type ListAuthenticationsQuery = z.infer<\n typeof ListAuthenticationsQuerySchema\n>;\nexport type ListAuthenticationsResponse = z.infer<\n typeof ListAuthenticationsResponseSchema\n>;\n"],"mappings":";AAAA,SAAS,SAAS;AAKX,IAAM,uBAAuB,EAAE,OAAO;AAAA,EAC3C,IAAI,EAAE,OAAO,EAAE,SAAS,0CAA0C;AAAA,EAClE,MAAM,EAAE,OAAO,EAAE,SAAS,cAAc;AAAA,EACxC,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,mBAAmB;AAAA,EAC/D,YAAY,EACT,OAAO,EACP,SAAS,gDAAgD;AAAA,EAC5D,eAAe,EACZ,OAAO,EACP,SAAS,EACT,SAAS,gCAAgC;AAAA,EAC5C,cAAc,EAAE,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gDAAgD;AAAA,EAC5D,OAAO,EACJ,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,WAAW,EACR,OAAO,EACP,SAAS,EACT,SAAS,sCAAsC;AAAA,EAClD,OAAO,EACJ,OAAO,EACP,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,WAAW,EACR,QAAQ,EACR,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,UAAU,EACP,OAAO,EACP,IAAI,CAAC,EACL,SAAS,EACT,SAAS,oCAAoC;AAAA,EAChD,QAAQ,EACL,OAAO,EACP,SAAS,EACT,SAAS,0CAA0C;AACxD,CAAC,EACA,SAAS,8CAA8C;AAKnD,IAAM,oCAAoC,EAC9C,OAAO;AAAA,EACN,MAAM,EACH,MAAM,wBAAwB,EAC9B,SAAS,+BAA+B;AAAA,EAC3C,OAAO,EACJ,OAAO;AAAA,IACN,MAAM,EACH,OAAO,EACP,SAAS,EACT,SAAS,EACT;AAAA,MACC;AAAA,IACF;AAAA,EACJ,CAAC,EACA,SAAS,iDAAiD;AAAA,EAC7D,MAAM,EACH,OAAO;AAAA,IACN,OAAO,EAAE,OAAO,EAAE,SAAS,uBAAuB;AAAA,IAClD,OAAO,EAAE,OAAO,EAAE,SAAS,0BAA0B;AAAA,IACrD,QAAQ,EAAE,OAAO,EAAE,SAAS,4BAA4B;AAAA,EAC1D,CAAC,EACA,SAAS,uCAAuC;AACrD,CAAC,EACA,SAAS,6CAA6C;","names":[]}
1
+ {"version":3,"sources":["../../../src/v0/schemas/authentications.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Base Authentication schema matching the API response\n */\nexport const AuthenticationSchema = z.object({\n id: z.number().describe(\"Unique identifier for the authentication\"),\n date: z.string().describe(\"Date created\"),\n lastchanged: z.string().optional().describe(\"Date last changed\"),\n account_id: z\n .number()\n .describe(\"Account ID associated with this authentication\"),\n customuser_id: z\n .number()\n .optional()\n .describe(\"Custom user ID (if applicable)\"),\n selected_api: z.string().describe(\"Selected API key (internal identifier)\"),\n destination_selected_api: z\n .string()\n .nullable()\n .optional()\n .describe(\"Destination API key (if applicable)\"),\n is_invite_only: z\n .boolean()\n .describe(\"Whether the authentication is invite-only\"),\n is_private: z.boolean().describe(\"Whether the authentication is private\"),\n shared_with_all: z\n .boolean()\n .describe(\"Whether the authentication is shared with all users\"),\n is_stale: z.string().optional().describe(\"Stale status string\"),\n is_shared: z.string().optional().describe(\"Shared status string\"),\n marked_stale_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when marked stale\"),\n label: z\n .string()\n .nullable()\n .optional()\n .describe(\"User label for the authentication\"),\n identifier: z.string().nullable().optional().describe(\"Identifier\"),\n title: z\n .string()\n .nullable()\n .optional()\n .describe(\"Title of the authentication\"),\n url: z.string().optional().describe(\"URL to the authentication resource\"),\n groups: z\n .array(\n z\n .record(z.string(), z.unknown())\n .describe(\"Groups associated with the authentication\"),\n )\n .optional()\n .describe(\"Array of groups associated with the authentication\"),\n members: z\n .string()\n .optional()\n .describe(\"Members associated with the authentication\"),\n permissions: z\n .record(z.string(), z.boolean())\n .optional()\n .describe(\"Permissions for the authentication\"),\n public_id: z\n .string()\n .optional()\n .describe(\"Public UUID for the authentication\"),\n account_public_id: z\n .string()\n .optional()\n .describe(\"Public UUID for the associated account\"),\n customuser_public_id: z\n .string()\n .optional()\n .describe(\"Public UUID for the associated custom user\"),\n});\n\n/**\n * Normalized authentication item returned by getAuthentication handler\n *\n * Transforms API response fields:\n * - selected_api → implementation_id\n * - customuser_id → profile_id\n * - is_stale → is_expired (preserved as is_stale too)\n * - marked_stale_at → expired_at (preserved as marked_stale_at too)\n *\n * Adds computed fields:\n * - app_key: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"SlackCLIAPI\")\n * - app_version: Extracted from selected_api (e.g., \"SlackCLIAPI@1.0.0\" → \"1.0.0\")\n */\nexport const AuthenticationItemSchema = AuthenticationSchema.omit({\n selected_api: true,\n customuser_id: true,\n}).extend({\n // Override numeric IDs with string versions (converted by normalizeAuthenticationItem)\n id: z.string().describe(\"Unique identifier for the authentication\"),\n account_id: z\n .string()\n .describe(\"Account ID associated with this authentication\"),\n\n // Renamed fields\n implementation_id: z\n .string()\n .optional()\n .describe(\"Implementation ID (was selected_api)\"),\n profile_id: z.string().optional().describe(\"Profile ID (was customuser_id)\"),\n\n // Mapped fields (originals preserved in ...restOfAuth)\n is_expired: z\n .string()\n .optional()\n .describe(\"Whether the authentication is expired (mapped from is_stale)\"),\n expired_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when authentication expired (mapped from marked_stale_at)\"),\n\n // Computed fields\n app_key: z\n .string()\n .optional()\n .describe(\"App Key extracted from implementation_id\"),\n app_version: z\n .string()\n .optional()\n .describe(\"App Version extracted from implementation_id\"),\n});\n\nexport const AuthenticationsResponseSchema = z.object({\n count: z.number().describe(\"Total number of items\"),\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the next page of results (if available)\"),\n previous: z\n .string()\n .nullable()\n .optional()\n .describe(\"Cursor for the previous page of results (if available)\"),\n results: z\n .array(AuthenticationSchema)\n .describe(\"Array of authentication items\"),\n});\n\nexport type Authentication = z.infer<typeof AuthenticationSchema>;\nexport type AuthenticationItem = z.infer<typeof AuthenticationItemSchema>;\nexport type AuthenticationsResponse = z.infer<\n typeof AuthenticationsResponseSchema\n>;\n\n/**\n * Path parameters schema for getAuthentication endpoint.\n */\nexport const GetAuthenticationParamSchema = z\n .object({\n authenticationId: z.string().describe(\"Authentication ID to retrieve\"),\n })\n .describe(\"Get a specific authentication by ID\");\n\nexport type GetAuthenticationParam = z.infer<\n typeof GetAuthenticationParamSchema\n>;\n\n/**\n * Response type for getAuthentication endpoint.\n * Wraps AuthenticationItem in the standard API response envelope.\n */\nexport type GetAuthenticationResponse = { data: AuthenticationItem };\n\n/**\n * Query parameters for listing authentications\n */\nexport const ListAuthenticationsQuerySchema = z\n .object({\n /** @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"],"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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A,IACC;AAAA,EACF;AAAA,EACF,YAAY,EACT,QAAQ,EACR,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA;AAAA,EAEF,UAAU,EACP,OAAO,EACP,IAAI,CAAC,EACL,SAAS,EACT;AAAA,IACC;AAAA,EACF;AAAA,EACF,WAAW,EACR,OAAO,EACP,IAAI,CAAC,EACL,SAAS,EACT,SAAS,oCAAoC;AAAA,EAChD,QAAQ,EACL,OAAO,EACP,SAAS,EACT,SAAS,0CAA0C;AACxD,CAAC,EACA,SAAS,8CAA8C;AAKnD,IAAM,oCAAoC,EAC9C,OAAO;AAAA,EACN,MAAM,EACH,MAAM,wBAAwB,EAC9B,SAAS,+BAA+B;AAAA,EAC3C,OAAO,EACJ,OAAO;AAAA,IACN,MAAM,EACH,OAAO,EACP,SAAS,EACT,SAAS,EACT;AAAA,MACC;AAAA,IACF;AAAA,EACJ,CAAC,EACA,SAAS,iDAAiD;AAAA,EAC7D,MAAM,EACH,OAAO;AAAA,IACN,OAAO,EAAE,OAAO,EAAE,SAAS,uBAAuB;AAAA,IAClD,OAAO,EAAE,OAAO,EAAE,SAAS,0BAA0B;AAAA,IACrD,QAAQ,EAAE,OAAO,EAAE,SAAS,4BAA4B;AAAA,EAC1D,CAAC,EACA,SAAS,uCAAuC;AACrD,CAAC,EACA,SAAS,6CAA6C;","names":[]}
@@ -68,7 +68,11 @@ var ClientCredentialsCreatedItemSchema = ClientCredentialsBaseSchema.extend({
68
68
  client_secret: import_zod.z.string().describe("The client secret (only shown once on creation)")
69
69
  });
70
70
  var ListClientCredentialsQuerySchema = import_zod.z.object({
71
- pageSize: import_zod.z.coerce.number().int().min(1).max(100).optional().describe("Number of items per page (default: 100, max: 100)"),
71
+ /** @deprecated Use page_size instead */
72
+ pageSize: import_zod.z.coerce.number().int().min(1).max(100).optional().describe(
73
+ "Deprecated: Use page_size instead. Number of items per page (default: 100, max: 100)"
74
+ ),
75
+ page_size: import_zod.z.coerce.number().int().min(1).max(100).optional().describe("Number of items per page (default: 100, max: 100)"),
72
76
  offset: import_zod.z.coerce.number().int().min(0).optional().describe("Pagination offset")
73
77
  }).describe("Query parameters for listing client credentials");
74
78
  var ListClientCredentialsResponseSchema = import_zod.z.object({
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/v0/schemas/client-credentials.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Allowed scopes for client credentials\n */\nexport const ClientCredentialsScopeSchema = z.enum([\"credentials\", \"external\"]);\n\nexport type ClientCredentialsScope = z.infer<\n typeof ClientCredentialsScopeSchema\n>;\n\n// ============================================================================\n// Identity API Schemas (source of truth for upstream responses)\n// These use Identity API field names: created/updated (not created_at/updated_at)\n// ============================================================================\n\n/**\n * Base fields shared across Identity API client credentials responses\n */\nconst IdentityClientCredentialsBaseSchema = z.object({\n client_id: z.string(),\n name: z.string(),\n});\n\n/**\n * Identity API response for listing client credentials\n */\nexport const IdentityClientCredentialsItemSchema =\n IdentityClientCredentialsBaseSchema.extend({\n allowed_scopes: z.array(z.string()).nullable().optional(),\n created: z.string().datetime().nullable().optional(),\n updated: z.string().datetime().optional(),\n });\n\n/**\n * Identity API response for creating client credentials\n * Only returns client_id, client_secret, and name\n */\nexport const IdentityClientCredentialsCreatedItemSchema =\n IdentityClientCredentialsBaseSchema.extend({\n client_secret: z.string(),\n });\n\n/**\n * Identity API paginated response for listing\n */\nexport const IdentityClientCredentialsListResponseSchema = z.object({\n count: z.number(),\n next: z.string().nullable().optional(),\n previous: z.string().nullable().optional(),\n results: z.array(IdentityClientCredentialsItemSchema),\n});\n\nexport type IdentityClientCredentialsItem = z.infer<\n typeof IdentityClientCredentialsItemSchema\n>;\nexport type IdentityClientCredentialsCreatedItem = z.infer<\n typeof IdentityClientCredentialsCreatedItemSchema\n>;\nexport type IdentityClientCredentialsListResponse = z.infer<\n typeof IdentityClientCredentialsListResponseSchema\n>;\n\n// ============================================================================\n// SDK API Schemas (for OpenAPI documentation and response types)\n// These use SDK API field names: created_at/updated_at\n// ============================================================================\n\n/**\n * Base fields shared across SDK API client credentials responses\n */\nconst ClientCredentialsBaseSchema = z.object({\n client_id: z\n .string()\n .describe(\"The public identifier (Client ID) of the OAuth application\"),\n name: z.string().describe(\"Human-readable name of the OAuth application\"),\n});\n\n/**\n * Client credentials item returned in list responses\n * Note: client_secret is NOT included in list responses for security\n */\nexport const ClientCredentialsItemSchema = ClientCredentialsBaseSchema.extend({\n allowed_scopes: z\n .array(ClientCredentialsScopeSchema)\n .describe(\n \"List of OAuth scopes that this application is allowed to request\",\n ),\n created_at: z\n .string()\n .datetime()\n .nullable()\n .optional()\n .describe(\"When the application was created (ISO 8601)\"),\n updated_at: z\n .string()\n .datetime()\n .optional()\n .describe(\"When the application was last updated (ISO 8601)\"),\n});\n\n/**\n * Client credentials item returned when creating (includes client_secret)\n * The client_secret is only shown once on creation\n */\nexport const ClientCredentialsCreatedItemSchema =\n ClientCredentialsBaseSchema.extend({\n client_secret: z\n .string()\n .describe(\"The client secret (only shown once on creation)\"),\n });\n\nexport type ClientCredentialsItem = z.infer<typeof ClientCredentialsItemSchema>;\nexport type ClientCredentialsCreatedItem = z.infer<\n typeof ClientCredentialsCreatedItemSchema\n>;\n\n/**\n * Query parameters for listing client credentials\n */\nexport const ListClientCredentialsQuerySchema = z\n .object({\n pageSize: z.coerce\n .number()\n .int()\n .min(1)\n .max(100)\n .optional()\n .describe(\"Number of items per page (default: 100, max: 100)\"),\n offset: z.coerce\n .number()\n .int()\n .min(0)\n .optional()\n .describe(\"Pagination offset\"),\n })\n .describe(\"Query parameters for listing client credentials\");\n\n/**\n * Response schema for listClientCredentials\n */\nexport const ListClientCredentialsResponseSchema = z\n .object({\n data: z\n .array(ClientCredentialsItemSchema)\n .describe(\"Array of client credentials\"),\n links: z\n .object({\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the next page of results (if available)\"),\n })\n .describe(\"Pagination links\"),\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(\"Pagination metadata\"),\n })\n .describe(\"Response for listing client credentials\");\n\nexport type ListClientCredentialsQuery = z.infer<\n typeof ListClientCredentialsQuerySchema\n>;\nexport type ListClientCredentialsResponse = z.infer<\n typeof ListClientCredentialsResponseSchema\n>;\n\n/**\n * Request body for creating client credentials\n */\nexport const CreateClientCredentialsRequestSchema = z\n .object({\n name: z\n .string()\n .min(1)\n .max(255)\n .describe(\"Human-readable name for the client credentials\"),\n allowed_scopes: z\n .array(ClientCredentialsScopeSchema)\n .min(1)\n .describe(\n \"List of OAuth scopes that this application will be allowed to request\",\n ),\n })\n .describe(\"Request body for creating client credentials\");\n\n/**\n * Response schema for createClientCredentials\n */\nexport const CreateClientCredentialsResponseSchema = z\n .object({\n data: ClientCredentialsCreatedItemSchema.describe(\n \"The created client credentials (includes client_secret)\",\n ),\n })\n .describe(\"Response for creating client credentials\");\n\nexport type CreateClientCredentialsRequest = z.infer<\n typeof CreateClientCredentialsRequestSchema\n>;\nexport type CreateClientCredentialsResponse = z.infer<\n typeof CreateClientCredentialsResponseSchema\n>;\n\n/**\n * Path parameters for deleting client credentials\n */\nexport const DeleteClientCredentialsParamSchema = z.object({\n clientId: z.string().describe(\"The client ID of the credentials to delete\"),\n});\n\nexport type DeleteClientCredentialsParam = z.infer<\n typeof DeleteClientCredentialsParamSchema\n>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAkB;AAKX,IAAM,+BAA+B,aAAE,KAAK,CAAC,eAAe,UAAU,CAAC;AAc9E,IAAM,sCAAsC,aAAE,OAAO;AAAA,EACnD,WAAW,aAAE,OAAO;AAAA,EACpB,MAAM,aAAE,OAAO;AACjB,CAAC;AAKM,IAAM,sCACX,oCAAoC,OAAO;AAAA,EACzC,gBAAgB,aAAE,MAA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,EACA,SAAS,iDAAiD;AAKtD,IAAM,sCAAsC,aAChD,OAAO;AAAA,EACN,MAAM,aACH,MAAM,2BAA2B,EACjC,SAAS,6BAA6B;AAAA,EACzC,OAAO,aACJ,OAAO;AAAA,IACN,MAAM,aACH,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,iDAAiD;AAAA,EAC/D,CAAC,EACA,SAAS,kBAAkB;AAAA,EAC9B,MAAM,aACH,OAAO;AAAA,IACN,OAAO,aAAE,OAAO,EAAE,SAAS,uBAAuB;AAAA,IAClD,OAAO,aAAE,OAAO,EAAE,SAAS,0BAA0B;AAAA,IACrD,QAAQ,aAAE,OAAO,EAAE,SAAS,4BAA4B;AAAA,EAC1D,CAAC,EACA,SAAS,qBAAqB;AACnC,CAAC,EACA,SAAS,yCAAyC;AAY9C,IAAM,uCAAuC,aACjD,OAAO;AAAA,EACN,MAAM,aACH,OAAO,EACP,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS,gDAAgD;AAAA,EAC5D,gBAAgB,aACb,MAAM,4BAA4B,EAClC,IAAI,CAAC,EACL;AAAA,IACC;AAAA,EACF;AACJ,CAAC,EACA,SAAS,8CAA8C;AAKnD,IAAM,wCAAwC,aAClD,OAAO;AAAA,EACN,MAAM,mCAAmC;AAAA,IACvC;AAAA,EACF;AACF,CAAC,EACA,SAAS,0CAA0C;AAY/C,IAAM,qCAAqC,aAAE,OAAO;AAAA,EACzD,UAAU,aAAE,OAAO,EAAE,SAAS,4CAA4C;AAC5E,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../../src/v0/schemas/client-credentials.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Allowed scopes for client credentials\n */\nexport const ClientCredentialsScopeSchema = z.enum([\"credentials\", \"external\"]);\n\nexport type ClientCredentialsScope = z.infer<\n typeof ClientCredentialsScopeSchema\n>;\n\n// ============================================================================\n// Identity API Schemas (source of truth for upstream responses)\n// These use Identity API field names: created/updated (not created_at/updated_at)\n// ============================================================================\n\n/**\n * Base fields shared across Identity API client credentials responses\n */\nconst IdentityClientCredentialsBaseSchema = z.object({\n client_id: z.string(),\n name: z.string(),\n});\n\n/**\n * Identity API response for listing client credentials\n */\nexport const IdentityClientCredentialsItemSchema =\n IdentityClientCredentialsBaseSchema.extend({\n allowed_scopes: z.array(z.string()).nullable().optional(),\n created: z.string().datetime().nullable().optional(),\n updated: z.string().datetime().optional(),\n });\n\n/**\n * Identity API response for creating client credentials\n * Only returns client_id, client_secret, and name\n */\nexport const IdentityClientCredentialsCreatedItemSchema =\n IdentityClientCredentialsBaseSchema.extend({\n client_secret: z.string(),\n });\n\n/**\n * Identity API paginated response for listing\n */\nexport const IdentityClientCredentialsListResponseSchema = z.object({\n count: z.number(),\n next: z.string().nullable().optional(),\n previous: z.string().nullable().optional(),\n results: z.array(IdentityClientCredentialsItemSchema),\n});\n\nexport type IdentityClientCredentialsItem = z.infer<\n typeof IdentityClientCredentialsItemSchema\n>;\nexport type IdentityClientCredentialsCreatedItem = z.infer<\n typeof IdentityClientCredentialsCreatedItemSchema\n>;\nexport type IdentityClientCredentialsListResponse = z.infer<\n typeof IdentityClientCredentialsListResponseSchema\n>;\n\n// ============================================================================\n// SDK API Schemas (for OpenAPI documentation and response types)\n// These use SDK API field names: created_at/updated_at\n// ============================================================================\n\n/**\n * Base fields shared across SDK API client credentials responses\n */\nconst ClientCredentialsBaseSchema = z.object({\n client_id: z\n .string()\n .describe(\"The public identifier (Client ID) of the OAuth application\"),\n name: z.string().describe(\"Human-readable name of the OAuth application\"),\n});\n\n/**\n * Client credentials item returned in list responses\n * Note: client_secret is NOT included in list responses for security\n */\nexport const ClientCredentialsItemSchema = ClientCredentialsBaseSchema.extend({\n allowed_scopes: z\n .array(ClientCredentialsScopeSchema)\n .describe(\n \"List of OAuth scopes that this application is allowed to request\",\n ),\n created_at: z\n .string()\n .datetime()\n .nullable()\n .optional()\n .describe(\"When the application was created (ISO 8601)\"),\n updated_at: z\n .string()\n .datetime()\n .optional()\n .describe(\"When the application was last updated (ISO 8601)\"),\n});\n\n/**\n * Client credentials item returned when creating (includes client_secret)\n * The client_secret is only shown once on creation\n */\nexport const ClientCredentialsCreatedItemSchema =\n ClientCredentialsBaseSchema.extend({\n client_secret: z\n .string()\n .describe(\"The client secret (only shown once on creation)\"),\n });\n\nexport type ClientCredentialsItem = z.infer<typeof ClientCredentialsItemSchema>;\nexport type ClientCredentialsCreatedItem = z.infer<\n typeof ClientCredentialsCreatedItemSchema\n>;\n\n/**\n * Query parameters for listing client credentials\n */\nexport const ListClientCredentialsQuerySchema = z\n .object({\n /** @deprecated Use page_size instead */\n pageSize: z.coerce\n .number()\n .int()\n .min(1)\n .max(100)\n .optional()\n .describe(\n \"Deprecated: Use page_size instead. Number of items per page (default: 100, max: 100)\",\n ),\n page_size: z.coerce\n .number()\n .int()\n .min(1)\n .max(100)\n .optional()\n .describe(\"Number of items per page (default: 100, max: 100)\"),\n offset: z.coerce\n .number()\n .int()\n .min(0)\n .optional()\n .describe(\"Pagination offset\"),\n })\n .describe(\"Query parameters for listing client credentials\");\n\n/**\n * Response schema for listClientCredentials\n */\nexport const ListClientCredentialsResponseSchema = z\n .object({\n data: z\n .array(ClientCredentialsItemSchema)\n .describe(\"Array of client credentials\"),\n links: z\n .object({\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the next page of results (if available)\"),\n })\n .describe(\"Pagination links\"),\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(\"Pagination metadata\"),\n })\n .describe(\"Response for listing client credentials\");\n\nexport type ListClientCredentialsQuery = z.infer<\n typeof ListClientCredentialsQuerySchema\n>;\nexport type ListClientCredentialsResponse = z.infer<\n typeof ListClientCredentialsResponseSchema\n>;\n\n/**\n * Request body for creating client credentials\n */\nexport const CreateClientCredentialsRequestSchema = z\n .object({\n name: z\n .string()\n .min(1)\n .max(255)\n .describe(\"Human-readable name for the client credentials\"),\n allowed_scopes: z\n .array(ClientCredentialsScopeSchema)\n .min(1)\n .describe(\n \"List of OAuth scopes that this application will be allowed to request\",\n ),\n })\n .describe(\"Request body for creating client credentials\");\n\n/**\n * Response schema for createClientCredentials\n */\nexport const CreateClientCredentialsResponseSchema = z\n .object({\n data: ClientCredentialsCreatedItemSchema.describe(\n \"The created client credentials (includes client_secret)\",\n ),\n })\n .describe(\"Response for creating client credentials\");\n\nexport type CreateClientCredentialsRequest = z.infer<\n typeof CreateClientCredentialsRequestSchema\n>;\nexport type CreateClientCredentialsResponse = z.infer<\n typeof CreateClientCredentialsResponseSchema\n>;\n\n/**\n * Path parameters for deleting client credentials\n */\nexport const DeleteClientCredentialsParamSchema = z.object({\n clientId: z.string().describe(\"The client ID of the credentials to delete\"),\n});\n\nexport type DeleteClientCredentialsParam = z.infer<\n typeof DeleteClientCredentialsParamSchema\n>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAkB;AAKX,IAAM,+BAA+B,aAAE,KAAK,CAAC,eAAe,UAAU,CAAC;AAc9E,IAAM,sCAAsC,aAAE,OAAO;AAAA,EACnD,WAAW,aAAE,OAAO;AAAA,EACpB,MAAM,aAAE,OAAO;AACjB,CAAC;AAKM,IAAM,sCACX,oCAAoC,OAAO;AAAA,EACzC,gBAAgB,aAAE,MAAM,aAAE,OAAO,CAAC,EAAE,SAAS,EAAE,SAAS;AAAA,EACxD,SAAS,aAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS;AAAA,EACnD,SAAS,aAAE,OAAO,EAAE,SAAS,EAAE,SAAS;AAC1C,CAAC;AAMI,IAAM,6CACX,oCAAoC,OAAO;AAAA,EACzC,eAAe,aAAE,OAAO;AAC1B,CAAC;AAKI,IAAM,8CAA8C,aAAE,OAAO;AAAA,EAClE,OAAO,aAAE,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AS,EACT,SAAS,iDAAiD;AAAA,EAC/D,CAAC,EACA,SAAS,kBAAkB;AAAA,EAC9B,MAAM,aACH,OAAO;AAAA,IACN,OAAO,aAAE,OAAO,EAAE,SAAS,uBAAuB;AAAA,IAClD,OAAO,aAAE,OAAO,EAAE,SAAS,0BAA0B;AAAA,IACrD,QAAQ,aAAE,OAAO,EAAE,SAAS,4BAA4B;AAAA,EAC1D,CAAC,EACA,SAAS,qBAAqB;AACnC,CAAC,EACA,SAAS,yCAAyC;AAY9C,IAAM,uCAAuC,aACjD,OAAO;AAAA,EACN,MAAM,aACH,OAAO,EACP,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS,gDAAgD;AAAA,EAC5D,gBAAgB,aACb,MAAM,4BAA4B,EAClC,IAAI,CAAC,EACL;AAAA,IACC;AAAA,EACF;AACJ,CAAC,EACA,SAAS,8CAA8C;AAKnD,IAAM,wCAAwC,aAClD,OAAO;AAAA,EACN,MAAM,mCAAmC;AAAA,IACvC;AAAA,EACF;AACF,CAAC,EACA,SAAS,0CAA0C;AAY/C,IAAM,qCAAqC,aAAE,OAAO;AAAA,EACzD,UAAU,aAAE,OAAO,EAAE,SAAS,4CAA4C;AAC5E,CAAC;","names":[]}
@@ -75,6 +75,7 @@ type ClientCredentialsCreatedItem = z.infer<typeof ClientCredentialsCreatedItemS
75
75
  */
76
76
  declare const ListClientCredentialsQuerySchema: z.ZodObject<{
77
77
  pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
78
+ page_size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
78
79
  offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
79
80
  }, z.core.$strip>;
80
81
  /**
@@ -75,6 +75,7 @@ type ClientCredentialsCreatedItem = z.infer<typeof ClientCredentialsCreatedItemS
75
75
  */
76
76
  declare const ListClientCredentialsQuerySchema: z.ZodObject<{
77
77
  pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
78
+ page_size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
78
79
  offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
79
80
  }, z.core.$strip>;
80
81
  /**
@@ -34,7 +34,11 @@ var ClientCredentialsCreatedItemSchema = ClientCredentialsBaseSchema.extend({
34
34
  client_secret: z.string().describe("The client secret (only shown once on creation)")
35
35
  });
36
36
  var ListClientCredentialsQuerySchema = z.object({
37
- pageSize: z.coerce.number().int().min(1).max(100).optional().describe("Number of items per page (default: 100, max: 100)"),
37
+ /** @deprecated Use page_size instead */
38
+ pageSize: z.coerce.number().int().min(1).max(100).optional().describe(
39
+ "Deprecated: Use page_size instead. Number of items per page (default: 100, max: 100)"
40
+ ),
41
+ page_size: z.coerce.number().int().min(1).max(100).optional().describe("Number of items per page (default: 100, max: 100)"),
38
42
  offset: z.coerce.number().int().min(0).optional().describe("Pagination offset")
39
43
  }).describe("Query parameters for listing client credentials");
40
44
  var ListClientCredentialsResponseSchema = z.object({
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/v0/schemas/client-credentials.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Allowed scopes for client credentials\n */\nexport const ClientCredentialsScopeSchema = z.enum([\"credentials\", \"external\"]);\n\nexport type ClientCredentialsScope = z.infer<\n typeof ClientCredentialsScopeSchema\n>;\n\n// ============================================================================\n// Identity API Schemas (source of truth for upstream responses)\n// These use Identity API field names: created/updated (not created_at/updated_at)\n// ============================================================================\n\n/**\n * Base fields shared across Identity API client credentials responses\n */\nconst IdentityClientCredentialsBaseSchema = z.object({\n client_id: z.string(),\n name: z.string(),\n});\n\n/**\n * Identity API response for listing client credentials\n */\nexport const IdentityClientCredentialsItemSchema =\n IdentityClientCredentialsBaseSchema.extend({\n allowed_scopes: z.array(z.string()).nullable().optional(),\n created: z.string().datetime().nullable().optional(),\n updated: z.string().datetime().optional(),\n });\n\n/**\n * Identity API response for creating client credentials\n * Only returns client_id, client_secret, and name\n */\nexport const IdentityClientCredentialsCreatedItemSchema =\n IdentityClientCredentialsBaseSchema.extend({\n client_secret: z.string(),\n });\n\n/**\n * Identity API paginated response for listing\n */\nexport const IdentityClientCredentialsListResponseSchema = z.object({\n count: z.number(),\n next: z.string().nullable().optional(),\n previous: z.string().nullable().optional(),\n results: z.array(IdentityClientCredentialsItemSchema),\n});\n\nexport type IdentityClientCredentialsItem = z.infer<\n typeof IdentityClientCredentialsItemSchema\n>;\nexport type IdentityClientCredentialsCreatedItem = z.infer<\n typeof IdentityClientCredentialsCreatedItemSchema\n>;\nexport type IdentityClientCredentialsListResponse = z.infer<\n typeof IdentityClientCredentialsListResponseSchema\n>;\n\n// ============================================================================\n// SDK API Schemas (for OpenAPI documentation and response types)\n// These use SDK API field names: created_at/updated_at\n// ============================================================================\n\n/**\n * Base fields shared across SDK API client credentials responses\n */\nconst ClientCredentialsBaseSchema = z.object({\n client_id: z\n .string()\n .describe(\"The public identifier (Client ID) of the OAuth application\"),\n name: z.string().describe(\"Human-readable name of the OAuth application\"),\n});\n\n/**\n * Client credentials item returned in list responses\n * Note: client_secret is NOT included in list responses for security\n */\nexport const ClientCredentialsItemSchema = ClientCredentialsBaseSchema.extend({\n allowed_scopes: z\n .array(ClientCredentialsScopeSchema)\n .describe(\n \"List of OAuth scopes that this application is allowed to request\",\n ),\n created_at: z\n .string()\n .datetime()\n .nullable()\n .optional()\n .describe(\"When the application was created (ISO 8601)\"),\n updated_at: z\n .string()\n .datetime()\n .optional()\n .describe(\"When the application was last updated (ISO 8601)\"),\n});\n\n/**\n * Client credentials item returned when creating (includes client_secret)\n * The client_secret is only shown once on creation\n */\nexport const ClientCredentialsCreatedItemSchema =\n ClientCredentialsBaseSchema.extend({\n client_secret: z\n .string()\n .describe(\"The client secret (only shown once on creation)\"),\n });\n\nexport type ClientCredentialsItem = z.infer<typeof ClientCredentialsItemSchema>;\nexport type ClientCredentialsCreatedItem = z.infer<\n typeof ClientCredentialsCreatedItemSchema\n>;\n\n/**\n * Query parameters for listing client credentials\n */\nexport const ListClientCredentialsQuerySchema = z\n .object({\n pageSize: z.coerce\n .number()\n .int()\n .min(1)\n .max(100)\n .optional()\n .describe(\"Number of items per page (default: 100, max: 100)\"),\n offset: z.coerce\n .number()\n .int()\n .min(0)\n .optional()\n .describe(\"Pagination offset\"),\n })\n .describe(\"Query parameters for listing client credentials\");\n\n/**\n * Response schema for listClientCredentials\n */\nexport const ListClientCredentialsResponseSchema = z\n .object({\n data: z\n .array(ClientCredentialsItemSchema)\n .describe(\"Array of client credentials\"),\n links: z\n .object({\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the next page of results (if available)\"),\n })\n .describe(\"Pagination links\"),\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(\"Pagination metadata\"),\n })\n .describe(\"Response for listing client credentials\");\n\nexport type ListClientCredentialsQuery = z.infer<\n typeof ListClientCredentialsQuerySchema\n>;\nexport type ListClientCredentialsResponse = z.infer<\n typeof ListClientCredentialsResponseSchema\n>;\n\n/**\n * Request body for creating client credentials\n */\nexport const CreateClientCredentialsRequestSchema = z\n .object({\n name: z\n .string()\n .min(1)\n .max(255)\n .describe(\"Human-readable name for the client credentials\"),\n allowed_scopes: z\n .array(ClientCredentialsScopeSchema)\n .min(1)\n .describe(\n \"List of OAuth scopes that this application will be allowed to request\",\n ),\n })\n .describe(\"Request body for creating client credentials\");\n\n/**\n * Response schema for createClientCredentials\n */\nexport const CreateClientCredentialsResponseSchema = z\n .object({\n data: ClientCredentialsCreatedItemSchema.describe(\n \"The created client credentials (includes client_secret)\",\n ),\n })\n .describe(\"Response for creating client credentials\");\n\nexport type CreateClientCredentialsRequest = z.infer<\n typeof CreateClientCredentialsRequestSchema\n>;\nexport type CreateClientCredentialsResponse = z.infer<\n typeof CreateClientCredentialsResponseSchema\n>;\n\n/**\n * Path parameters for deleting client credentials\n */\nexport const DeleteClientCredentialsParamSchema = z.object({\n clientId: z.string().describe(\"The client ID of the credentials to delete\"),\n});\n\nexport type DeleteClientCredentialsParam = z.infer<\n typeof DeleteClientCredentialsParamSchema\n>;\n"],"mappings":";AAAA,SAAS,SAAS;AAKX,IAAM,+BAA+B,EAAE,KAAK,CAAC,eAAe,UAAU,CAAC;AAc9E,IAAM,sCAAsC,EAAE,OAAO;AAAA,EACnD,WAAW,EAAE,OAAO;AAAA,EACpB,MAAM,EAAE,OAAO;AACjB,CAAC;AAKM,IAAM,sCACX,oCAAoC,OAAO;AAAA,EACzC,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,SAAS;AAAA,EACxD,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS;AAAA,EACnD,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS;AAC1C,CAAC;AAMI,IAAM,6CACX,oCAAoC,OAAO;AAAA,EACzC,eAAe,EAAE,OAAO;AAC1B,CAAC;AAKI,IAAM,8CAA8C,EAAE,OAAO;AAAA,EAClE,OAAO,EAAE,OAAO;AAAA,EAChB,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS;AAAA,EACrC,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS;AAAA,EACzC,SAAS,EAAE,MAAM,mCAAmC;AACtD,CAAC;AAoBD,IAAM,8BAA8B,EAAE,OAAO;AAAA,EAC3C,WAAW,EACR,OAAO,EACP,SAAS,4DAA4D;AAAA,EACxE,MAAM,EAAE,OAAO,EAAE,SAAS,8CAA8C;AAC1E,CAAC;AAMM,IAAM,8BAA8B,4BAA4B,OAAO;AAAA,EAC5E,gBAAgB,EACb,MAAM,4BAA4B,EAClC;AAAA,IACC;AAAA,EACF;AAAA,EACF,YAAY,EACT,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,6CAA6C;AAAA,EACzD,YAAY,EACT,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,kDAAkD;AAChE,CAAC;AAMM,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,EAAE,OAAO,EAAE,SAAS,4CAA4C;AAC5E,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../../src/v0/schemas/client-credentials.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Allowed scopes for client credentials\n */\nexport const ClientCredentialsScopeSchema = z.enum([\"credentials\", \"external\"]);\n\nexport type ClientCredentialsScope = z.infer<\n typeof ClientCredentialsScopeSchema\n>;\n\n// ============================================================================\n// Identity API Schemas (source of truth for upstream responses)\n// These use Identity API field names: created/updated (not created_at/updated_at)\n// ============================================================================\n\n/**\n * Base fields shared across Identity API client credentials responses\n */\nconst IdentityClientCredentialsBaseSchema = z.object({\n client_id: z.string(),\n name: z.string(),\n});\n\n/**\n * Identity API response for listing client credentials\n */\nexport const IdentityClientCredentialsItemSchema =\n IdentityClientCredentialsBaseSchema.extend({\n allowed_scopes: z.array(z.string()).nullable().optional(),\n created: z.string().datetime().nullable().optional(),\n updated: z.string().datetime().optional(),\n });\n\n/**\n * Identity API response for creating client credentials\n * Only returns client_id, client_secret, and name\n */\nexport const IdentityClientCredentialsCreatedItemSchema =\n IdentityClientCredentialsBaseSchema.extend({\n client_secret: z.string(),\n });\n\n/**\n * Identity API paginated response for listing\n */\nexport const IdentityClientCredentialsListResponseSchema = z.object({\n count: z.number(),\n next: z.string().nullable().optional(),\n previous: z.string().nullable().optional(),\n results: z.array(IdentityClientCredentialsItemSchema),\n});\n\nexport type IdentityClientCredentialsItem = z.infer<\n typeof IdentityClientCredentialsItemSchema\n>;\nexport type IdentityClientCredentialsCreatedItem = z.infer<\n typeof IdentityClientCredentialsCreatedItemSchema\n>;\nexport type IdentityClientCredentialsListResponse = z.infer<\n typeof IdentityClientCredentialsListResponseSchema\n>;\n\n// ============================================================================\n// SDK API Schemas (for OpenAPI documentation and response types)\n// These use SDK API field names: created_at/updated_at\n// ============================================================================\n\n/**\n * Base fields shared across SDK API client credentials responses\n */\nconst ClientCredentialsBaseSchema = z.object({\n client_id: z\n .string()\n .describe(\"The public identifier (Client ID) of the OAuth application\"),\n name: z.string().describe(\"Human-readable name of the OAuth application\"),\n});\n\n/**\n * Client credentials item returned in list responses\n * Note: client_secret is NOT included in list responses for security\n */\nexport const ClientCredentialsItemSchema = ClientCredentialsBaseSchema.extend({\n allowed_scopes: z\n .array(ClientCredentialsScopeSchema)\n .describe(\n \"List of OAuth scopes that this application is allowed to request\",\n ),\n created_at: z\n .string()\n .datetime()\n .nullable()\n .optional()\n .describe(\"When the application was created (ISO 8601)\"),\n updated_at: z\n .string()\n .datetime()\n .optional()\n .describe(\"When the application was last updated (ISO 8601)\"),\n});\n\n/**\n * Client credentials item returned when creating (includes client_secret)\n * The client_secret is only shown once on creation\n */\nexport const ClientCredentialsCreatedItemSchema =\n ClientCredentialsBaseSchema.extend({\n client_secret: z\n .string()\n .describe(\"The client secret (only shown once on creation)\"),\n });\n\nexport type ClientCredentialsItem = z.infer<typeof ClientCredentialsItemSchema>;\nexport type ClientCredentialsCreatedItem = z.infer<\n typeof ClientCredentialsCreatedItemSchema\n>;\n\n/**\n * Query parameters for listing client credentials\n */\nexport const ListClientCredentialsQuerySchema = z\n .object({\n /** @deprecated Use page_size instead */\n pageSize: z.coerce\n .number()\n .int()\n .min(1)\n .max(100)\n .optional()\n .describe(\n \"Deprecated: Use page_size instead. Number of items per page (default: 100, max: 100)\",\n ),\n page_size: z.coerce\n .number()\n .int()\n .min(1)\n .max(100)\n .optional()\n .describe(\"Number of items per page (default: 100, max: 100)\"),\n offset: z.coerce\n .number()\n .int()\n .min(0)\n .optional()\n .describe(\"Pagination offset\"),\n })\n .describe(\"Query parameters for listing client credentials\");\n\n/**\n * Response schema for listClientCredentials\n */\nexport const ListClientCredentialsResponseSchema = z\n .object({\n data: z\n .array(ClientCredentialsItemSchema)\n .describe(\"Array of client credentials\"),\n links: z\n .object({\n next: z\n .string()\n .nullable()\n .optional()\n .describe(\"URL for the next page of results (if available)\"),\n })\n .describe(\"Pagination links\"),\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(\"Pagination metadata\"),\n })\n .describe(\"Response for listing client credentials\");\n\nexport type ListClientCredentialsQuery = z.infer<\n typeof ListClientCredentialsQuerySchema\n>;\nexport type ListClientCredentialsResponse = z.infer<\n typeof ListClientCredentialsResponseSchema\n>;\n\n/**\n * Request body for creating client credentials\n */\nexport const CreateClientCredentialsRequestSchema = z\n .object({\n name: z\n .string()\n .min(1)\n .max(255)\n .describe(\"Human-readable name for the client credentials\"),\n allowed_scopes: z\n .array(ClientCredentialsScopeSchema)\n .min(1)\n .describe(\n \"List of OAuth scopes that this application will be allowed to request\",\n ),\n })\n .describe(\"Request body for creating client credentials\");\n\n/**\n * Response schema for createClientCredentials\n */\nexport const CreateClientCredentialsResponseSchema = z\n .object({\n data: ClientCredentialsCreatedItemSchema.describe(\n \"The created client credentials (includes client_secret)\",\n ),\n })\n .describe(\"Response for creating client credentials\");\n\nexport type CreateClientCredentialsRequest = z.infer<\n typeof CreateClientCredentialsRequestSchema\n>;\nexport type CreateClientCredentialsResponse = z.infer<\n typeof CreateClientCredentialsResponseSchema\n>;\n\n/**\n * Path parameters for deleting client credentials\n */\nexport const DeleteClientCredentialsParamSchema = z.object({\n clientId: z.string().describe(\"The client ID of the credentials to delete\"),\n});\n\nexport type DeleteClientCredentialsParam = z.infer<\n typeof DeleteClientCredentialsParamSchema\n>;\n"],"mappings":";AAAA,SAAS,SAAS;AAKX,IAAM,+BAA+B,EAAE,KAAK,CAAC,eAAe,UAAU,CAAC;AAc9E,IAAM,sCAAsC,EAAE,OAAO;AAAA,EACnD,WAAW,EAAE,OAAO;AAAA,EACpB,MAAM,EAAE,OAAO;AACjB,CAAC;AAKM,IAAM,sCACX,oCAAoC,OAAO;AAAA,EACzC,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,EAAE,SAAS;AAAA,EACxD,SAAS,EAAE,OAAO,EAAE,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