@zapier/zapier-sdk-core 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/index.cjs +162 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +20 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +124 -0
- package/dist/index.js.map +1 -0
- package/dist/v0/common/responses.cjs +139 -0
- package/dist/v0/common/responses.cjs.map +1 -0
- package/dist/v0/common/responses.d.cts +157 -0
- package/dist/v0/common/responses.d.ts +157 -0
- package/dist/v0/common/responses.js +112 -0
- package/dist/v0/common/responses.js.map +1 -0
- package/dist/v0/config/metadata.cjs +75 -0
- package/dist/v0/config/metadata.cjs.map +1 -0
- package/dist/v0/config/metadata.d.cts +70 -0
- package/dist/v0/config/metadata.d.ts +70 -0
- package/dist/v0/config/metadata.js +46 -0
- package/dist/v0/config/metadata.js.map +1 -0
- package/dist/v0/schemas/apps.cjs +130 -0
- package/dist/v0/schemas/apps.cjs.map +1 -0
- package/dist/v0/schemas/apps.d.cts +139 -0
- package/dist/v0/schemas/apps.d.ts +139 -0
- package/dist/v0/schemas/apps.js +103 -0
- package/dist/v0/schemas/apps.js.map +1 -0
- package/dist/v0/schemas/authentications.cjs +87 -0
- package/dist/v0/schemas/authentications.cjs.map +1 -0
- package/dist/v0/schemas/authentications.d.cts +112 -0
- package/dist/v0/schemas/authentications.d.ts +112 -0
- package/dist/v0/schemas/authentications.js +59 -0
- package/dist/v0/schemas/authentications.js.map +1 -0
- package/dist/v0/schemas/errors.cjs +77 -0
- package/dist/v0/schemas/errors.cjs.map +1 -0
- package/dist/v0/schemas/errors.d.cts +64 -0
- package/dist/v0/schemas/errors.d.ts +64 -0
- package/dist/v0/schemas/errors.js +49 -0
- package/dist/v0/schemas/errors.js.map +1 -0
- package/dist/v0/schemas/implementations.cjs +93 -0
- package/dist/v0/schemas/implementations.cjs.map +1 -0
- package/dist/v0/schemas/implementations.d.cts +121 -0
- package/dist/v0/schemas/implementations.d.ts +121 -0
- package/dist/v0/schemas/implementations.js +67 -0
- package/dist/v0/schemas/implementations.js.map +1 -0
- package/openapi.yaml +267 -0
- package/package.json +11 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/index.ts
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
|
+
AuthenticationItemSchema: () => AuthenticationItemSchema,
|
|
34
|
+
AuthenticationSchema: () => AuthenticationSchema,
|
|
35
|
+
ErrorCodeSchema: () => ErrorCodeSchema,
|
|
36
|
+
ErrorObjectSchema: () => ErrorObjectSchema,
|
|
37
|
+
ErrorSourceSchema: () => ErrorSourceSchema,
|
|
38
|
+
ErrorsResponseSchema: () => ErrorsResponseSchema,
|
|
39
|
+
GetAuthenticationParamSchema: () => GetAuthenticationParamSchema,
|
|
40
|
+
openapiSpecPath: () => openapiSpecPath
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(index_exports);
|
|
43
|
+
|
|
44
|
+
// src/v0/schemas/authentications.ts
|
|
45
|
+
var import_zod = require("zod");
|
|
46
|
+
var AuthenticationSchema = import_zod.z.object({
|
|
47
|
+
id: import_zod.z.number().describe("Unique identifier for the authentication"),
|
|
48
|
+
date: import_zod.z.string().describe("Date created"),
|
|
49
|
+
lastchanged: import_zod.z.string().optional().describe("Date last changed"),
|
|
50
|
+
account_id: import_zod.z.number().describe("Account ID associated with this authentication"),
|
|
51
|
+
customuser_id: import_zod.z.number().optional().describe("Custom user ID (if applicable)"),
|
|
52
|
+
selected_api: import_zod.z.string().describe("Selected API key (internal identifier)"),
|
|
53
|
+
destination_selected_api: import_zod.z.string().nullable().optional().describe("Destination API key (if applicable)"),
|
|
54
|
+
is_invite_only: import_zod.z.boolean().describe("Whether the authentication is invite-only"),
|
|
55
|
+
is_private: import_zod.z.boolean().describe("Whether the authentication is private"),
|
|
56
|
+
shared_with_all: import_zod.z.boolean().describe("Whether the authentication is shared with all users"),
|
|
57
|
+
is_stale: import_zod.z.string().optional().describe("Stale status string"),
|
|
58
|
+
is_shared: import_zod.z.string().optional().describe("Shared status string"),
|
|
59
|
+
marked_stale_at: import_zod.z.string().nullable().optional().describe("Date when marked stale"),
|
|
60
|
+
label: import_zod.z.string().nullable().optional().describe("User label for the authentication"),
|
|
61
|
+
identifier: import_zod.z.string().nullable().optional().describe("Identifier"),
|
|
62
|
+
title: import_zod.z.string().nullable().optional().describe("Title of the authentication"),
|
|
63
|
+
url: import_zod.z.string().optional().describe("URL to the authentication resource"),
|
|
64
|
+
groups: import_zod.z.array(
|
|
65
|
+
import_zod.z.record(import_zod.z.string(), import_zod.z.unknown()).describe("Groups associated with the authentication")
|
|
66
|
+
).optional().describe("Array of groups associated with the authentication"),
|
|
67
|
+
members: import_zod.z.string().optional().describe("Members associated with the authentication"),
|
|
68
|
+
permissions: import_zod.z.record(import_zod.z.string(), import_zod.z.boolean()).optional().describe("Permissions for the authentication")
|
|
69
|
+
});
|
|
70
|
+
var AuthenticationItemSchema = AuthenticationSchema.omit({
|
|
71
|
+
selected_api: true,
|
|
72
|
+
customuser_id: true
|
|
73
|
+
}).extend({
|
|
74
|
+
// Override numeric IDs with string versions (converted by normalizeAuthenticationItem)
|
|
75
|
+
id: import_zod.z.string().describe("Unique identifier for the authentication"),
|
|
76
|
+
account_id: import_zod.z.string().describe("Account ID associated with this authentication"),
|
|
77
|
+
// Renamed fields
|
|
78
|
+
implementation_id: import_zod.z.string().optional().describe("Implementation ID (was selected_api)"),
|
|
79
|
+
profile_id: import_zod.z.string().optional().describe("Profile ID (was customuser_id)"),
|
|
80
|
+
// Mapped fields (originals preserved in ...restOfAuth)
|
|
81
|
+
is_expired: import_zod.z.string().optional().describe("Whether the authentication is expired (mapped from is_stale)"),
|
|
82
|
+
expired_at: import_zod.z.string().nullable().optional().describe("Date when authentication expired (mapped from marked_stale_at)"),
|
|
83
|
+
// Computed fields
|
|
84
|
+
app_key: import_zod.z.string().optional().describe("App Key extracted from implementation_id"),
|
|
85
|
+
app_version: import_zod.z.string().optional().describe("App Version extracted from implementation_id")
|
|
86
|
+
});
|
|
87
|
+
var AuthenticationsResponseSchema = import_zod.z.object({
|
|
88
|
+
count: import_zod.z.number().describe("Total number of items"),
|
|
89
|
+
next: import_zod.z.string().nullable().optional().describe("Cursor for the next page of results (if available)"),
|
|
90
|
+
previous: import_zod.z.string().nullable().optional().describe("Cursor for the previous page of results (if available)"),
|
|
91
|
+
results: import_zod.z.array(AuthenticationSchema).describe("Array of authentication items")
|
|
92
|
+
});
|
|
93
|
+
var GetAuthenticationParamSchema = import_zod.z.object({
|
|
94
|
+
authenticationId: import_zod.z.number().int().positive().describe("Authentication ID to retrieve")
|
|
95
|
+
}).describe("Get a specific authentication by ID");
|
|
96
|
+
|
|
97
|
+
// src/v0/schemas/errors.ts
|
|
98
|
+
var import_zod2 = require("zod");
|
|
99
|
+
var ErrorCodeSchema = import_zod2.z.string().describe("An application-specific error code, expressed as a string value.");
|
|
100
|
+
var ErrorSourceSchema = import_zod2.z.object({
|
|
101
|
+
pointer: import_zod2.z.string().optional().describe(
|
|
102
|
+
"A JSON Pointer [RFC6901](https://tools.ietf.org/html/rfc6901) to the associated entity in the request document [e.g. `/data` for a primary data object, or `/data/attributes/title` for a specific attribute]."
|
|
103
|
+
),
|
|
104
|
+
parameter: import_zod2.z.string().optional().describe(
|
|
105
|
+
"A string indicating which URI query parameter caused the error."
|
|
106
|
+
),
|
|
107
|
+
header: import_zod2.z.string().optional().describe("A string indicating the header that caused the error.")
|
|
108
|
+
}).strict().nullable().describe(
|
|
109
|
+
"Identifies the source of the error within the request payload, if relevant."
|
|
110
|
+
);
|
|
111
|
+
var ErrorObjectSchema = import_zod2.z.object({
|
|
112
|
+
id: import_zod2.z.string().nullable().optional().describe(
|
|
113
|
+
"A unique identifier for this particular occurrence of the problem."
|
|
114
|
+
),
|
|
115
|
+
links: import_zod2.z.object({
|
|
116
|
+
about: import_zod2.z.string().url().describe(
|
|
117
|
+
"A link that leads to further details about this particular occurrence of the problem."
|
|
118
|
+
)
|
|
119
|
+
}).strict().nullable().optional().describe("Relevant links about the error"),
|
|
120
|
+
status: import_zod2.z.string().optional().describe(
|
|
121
|
+
"The HTTP status code applicable to this problem, expressed as a string value."
|
|
122
|
+
),
|
|
123
|
+
code: ErrorCodeSchema.optional(),
|
|
124
|
+
title: import_zod2.z.string().optional().describe(
|
|
125
|
+
"A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization."
|
|
126
|
+
),
|
|
127
|
+
detail: import_zod2.z.string().optional().describe(
|
|
128
|
+
"A human-readable explanation specific to this occurrence of the problem. Like `title`, this field's value can be localized."
|
|
129
|
+
),
|
|
130
|
+
source: ErrorSourceSchema.optional()
|
|
131
|
+
}).strict().describe(
|
|
132
|
+
"An error object provides additional information about problems encountered while performing an operation. Error objects MUST be returned as an array keyed by `errors` in the top level of a JSON:API document."
|
|
133
|
+
);
|
|
134
|
+
var ErrorsResponseSchema = import_zod2.z.object({
|
|
135
|
+
errors: import_zod2.z.array(ErrorObjectSchema).describe("A collection of the errors returned.")
|
|
136
|
+
}).describe(
|
|
137
|
+
"A JSON:API error response document containing an array of error objects."
|
|
138
|
+
);
|
|
139
|
+
|
|
140
|
+
// src/index.ts
|
|
141
|
+
var import_node_url = require("url");
|
|
142
|
+
var import_node_path = require("path");
|
|
143
|
+
var import_meta = {};
|
|
144
|
+
var openapiSpecPath = (() => {
|
|
145
|
+
if (typeof import_meta?.url === "string") {
|
|
146
|
+
return (0, import_node_url.fileURLToPath)(new URL("../openapi.yaml", import_meta.url));
|
|
147
|
+
}
|
|
148
|
+
const currentDir = typeof __dirname !== "undefined" ? __dirname : (0, import_node_path.dirname)(require.resolve("@zapier/zapier-sdk-core/package.json"));
|
|
149
|
+
return (0, import_node_path.resolve)(currentDir, "../openapi.yaml");
|
|
150
|
+
})();
|
|
151
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
152
|
+
0 && (module.exports = {
|
|
153
|
+
AuthenticationItemSchema,
|
|
154
|
+
AuthenticationSchema,
|
|
155
|
+
ErrorCodeSchema,
|
|
156
|
+
ErrorObjectSchema,
|
|
157
|
+
ErrorSourceSchema,
|
|
158
|
+
ErrorsResponseSchema,
|
|
159
|
+
GetAuthenticationParamSchema,
|
|
160
|
+
openapiSpecPath
|
|
161
|
+
});
|
|
162
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/v0/schemas/authentications.ts","../src/v0/schemas/errors.ts"],"sourcesContent":["/**\n * Main entry point for @zapier/zapier-sdk-core\n *\n * Re-exports all public schemas and types for consumer convenience.\n * Routes and generation utilities are NOT exported (internal use only).\n */\n\n// Schema exports\nexport {\n AuthenticationSchema,\n AuthenticationItemSchema,\n GetAuthenticationParamSchema,\n type Authentication,\n type AuthenticationItem,\n type GetAuthenticationParam,\n type GetAuthenticationResponse,\n} from \"./v0/schemas/authentications.js\";\n\nexport {\n ErrorCodeSchema,\n ErrorSourceSchema,\n ErrorObjectSchema,\n ErrorsResponseSchema,\n type ErrorCode,\n type ErrorSource,\n type ErrorObject,\n type ErrorsResponse,\n} from \"./v0/schemas/errors.js\";\n\n// OpenAPI spec path export\nimport { fileURLToPath } from \"node:url\";\nimport { dirname, resolve } from \"node:path\";\n\n/**\n * Absolute filesystem path to the generated OpenAPI spec file.\n * Use this to reference the spec from consuming packages.\n *\n * Note: Works in both ESM and CJS environments.\n */\nexport const openapiSpecPath = (() => {\n // ESM environment\n if (typeof import.meta?.url === \"string\") {\n return fileURLToPath(new URL(\"../openapi.yaml\", import.meta.url));\n }\n // CJS environment - __dirname is available via tsup's shim\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n const currentDir =\n typeof __dirname !== \"undefined\"\n ? __dirname\n : dirname(require.resolve(\"@zapier/zapier-sdk-core/package.json\"));\n return resolve(currentDir, \"../openapi.yaml\");\n})();\n","import { z } from \"zod\";\n\n/**\n * Base Authentication schema matching the API response\n */\nexport const AuthenticationSchema = z.object({\n id: z.number().describe(\"Unique identifier for the authentication\"),\n date: z.string().describe(\"Date created\"),\n lastchanged: z.string().optional().describe(\"Date last changed\"),\n account_id: z\n .number()\n .describe(\"Account ID associated with this authentication\"),\n customuser_id: z\n .number()\n .optional()\n .describe(\"Custom user ID (if applicable)\"),\n selected_api: z.string().describe(\"Selected API key (internal identifier)\"),\n destination_selected_api: z\n .string()\n .nullable()\n .optional()\n .describe(\"Destination API key (if applicable)\"),\n is_invite_only: z\n .boolean()\n .describe(\"Whether the authentication is invite-only\"),\n is_private: z.boolean().describe(\"Whether the authentication is private\"),\n shared_with_all: z\n .boolean()\n .describe(\"Whether the authentication is shared with all users\"),\n is_stale: z.string().optional().describe(\"Stale status string\"),\n is_shared: z.string().optional().describe(\"Shared status string\"),\n marked_stale_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when marked stale\"),\n label: z\n .string()\n .nullable()\n .optional()\n .describe(\"User label for the authentication\"),\n identifier: z.string().nullable().optional().describe(\"Identifier\"),\n title: z\n .string()\n .nullable()\n .optional()\n .describe(\"Title of the authentication\"),\n url: z.string().optional().describe(\"URL to the authentication resource\"),\n groups: z\n .array(\n z\n .record(z.string(), z.unknown())\n .describe(\"Groups associated with the authentication\"),\n )\n .optional()\n .describe(\"Array of groups associated with the authentication\"),\n members: z\n .string()\n .optional()\n .describe(\"Members associated with the authentication\"),\n permissions: z\n .record(z.string(), z.boolean())\n .optional()\n .describe(\"Permissions for the authentication\"),\n});\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\n .number()\n .int()\n .positive()\n .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 * Error schema definitions for API error responses\n * Following JSON:API error object specification\n */\n\nimport { z } from \"zod\";\n\n/**\n * An application-specific error code, expressed as a string value.\n */\nexport const ErrorCodeSchema = z\n .string()\n .describe(\"An application-specific error code, expressed as a string value.\");\n\n/**\n * Identifies the source of the error within the request payload, if relevant.\n */\nexport const ErrorSourceSchema = z\n .object({\n pointer: z\n .string()\n .optional()\n .describe(\n \"A JSON Pointer [RFC6901](https://tools.ietf.org/html/rfc6901) to the associated entity in the request document [e.g. `/data` for a primary data object, or `/data/attributes/title` for a specific attribute].\",\n ),\n parameter: z\n .string()\n .optional()\n .describe(\n \"A string indicating which URI query parameter caused the error.\",\n ),\n header: z\n .string()\n .optional()\n .describe(\"A string indicating the header that caused the error.\"),\n })\n .strict()\n .nullable()\n .describe(\n \"Identifies the source of the error within the request payload, if relevant.\",\n );\n\n/**\n * An error object provides additional information about problems encountered while performing an operation.\n * Error objects MUST be returned as an array keyed by `errors` in the top level of a JSON:API document.\n */\nexport const ErrorObjectSchema = z\n .object({\n id: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"A unique identifier for this particular occurrence of the problem.\",\n ),\n links: z\n .object({\n about: z\n .string()\n .url()\n .describe(\n \"A link that leads to further details about this particular occurrence of the problem.\",\n ),\n })\n .strict()\n .nullable()\n .optional()\n .describe(\"Relevant links about the error\"),\n status: z\n .string()\n .optional()\n .describe(\n \"The HTTP status code applicable to this problem, expressed as a string value.\",\n ),\n code: ErrorCodeSchema.optional(),\n title: z\n .string()\n .optional()\n .describe(\n \"A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.\",\n ),\n detail: z\n .string()\n .optional()\n .describe(\n \"A human-readable explanation specific to this occurrence of the problem. Like `title`, this field's value can be localized.\",\n ),\n source: ErrorSourceSchema.optional(),\n })\n .strict()\n .describe(\n \"An error object provides additional information about problems encountered while performing an operation. Error objects MUST be returned as an array keyed by `errors` in the top level of a JSON:API document.\",\n );\n\n/**\n * A JSON:API error response document containing an array of error objects.\n */\nexport const ErrorsResponseSchema = z\n .object({\n errors: z\n .array(ErrorObjectSchema)\n .describe(\"A collection of the errors returned.\"),\n })\n .describe(\n \"A JSON:API error response document containing an array of error objects.\",\n );\n\n// Export TypeScript types\nexport type ErrorCode = z.infer<typeof ErrorCodeSchema>;\nexport type ErrorSource = z.infer<typeof ErrorSourceSchema>;\nexport type ErrorObject = z.infer<typeof ErrorObjectSchema>;\nexport type ErrorsResponse = z.infer<typeof ErrorsResponseSchema>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,iBAAkB;AAKX,IAAM,uBAAuB,aAAE,OAAO;AAAA,EAC3C,IAAI,aAAE,OAAO,EAAE,SAAS,0CAA0C;AAAA,EAClE,MAAM,aAAE,OAAO,EAAE,SAAS,cAAc;AAAA,EACxC,aAAa,aAAE,OAAO,EAAE,SAAS,EAAE,SAAS,mBAAmB;AAAA,EAC/D,YAAY,aACT,OAAO,EACP,SAAS,gDAAgD;AAAA,EAC5D,eAAe,aACZ,OAAO,EACP,SAAS,EACT,SAAS,gCAAgC;AAAA,EAC5C,cAAc,aAAE,OAAO,EAAE,SAAS,wCAAwC;AAAA,EAC1E,0BAA0B,aACvB,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,qCAAqC;AAAA,EACjD,gBAAgB,aACb,QAAQ,EACR,SAAS,2CAA2C;AAAA,EACvD,YAAY,aAAE,QAAQ,EAAE,SAAS,uCAAuC;AAAA,EACxE,iBAAiB,aACd,QAAQ,EACR,SAAS,qDAAqD;AAAA,EACjE,UAAU,aAAE,OAAO,EAAE,SAAS,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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K,IAAM,uBAAuB,cACjC,OAAO;AAAA,EACN,QAAQ,cACL,MAAM,iBAAiB,EACvB,SAAS,sCAAsC;AACpD,CAAC,EACA;AAAA,EACC;AACF;;;AF3EF,sBAA8B;AAC9B,uBAAiC;AA/BjC;AAuCO,IAAM,mBAAmB,MAAM;AAEpC,MAAI,OAAO,aAAa,QAAQ,UAAU;AACxC,eAAO,+BAAc,IAAI,IAAI,mBAAmB,YAAY,GAAG,CAAC;AAAA,EAClE;AAGA,QAAM,aACJ,OAAO,cAAc,cACjB,gBACA,0BAAQ,gBAAgB,sCAAsC,CAAC;AACrE,aAAO,0BAAQ,YAAY,iBAAiB;AAC9C,GAAG;","names":["import_zod"]}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { Authentication, AuthenticationItem, AuthenticationItemSchema, AuthenticationSchema, GetAuthenticationParam, GetAuthenticationParamSchema, GetAuthenticationResponse } from './v0/schemas/authentications.cjs';
|
|
2
|
+
export { ErrorCode, ErrorCodeSchema, ErrorObject, ErrorObjectSchema, ErrorSource, ErrorSourceSchema, ErrorsResponse, ErrorsResponseSchema } from './v0/schemas/errors.cjs';
|
|
3
|
+
import 'zod';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Main entry point for @zapier/zapier-sdk-core
|
|
7
|
+
*
|
|
8
|
+
* Re-exports all public schemas and types for consumer convenience.
|
|
9
|
+
* Routes and generation utilities are NOT exported (internal use only).
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Absolute filesystem path to the generated OpenAPI spec file.
|
|
14
|
+
* Use this to reference the spec from consuming packages.
|
|
15
|
+
*
|
|
16
|
+
* Note: Works in both ESM and CJS environments.
|
|
17
|
+
*/
|
|
18
|
+
declare const openapiSpecPath: string;
|
|
19
|
+
|
|
20
|
+
export { openapiSpecPath };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { Authentication, AuthenticationItem, AuthenticationItemSchema, AuthenticationSchema, GetAuthenticationParam, GetAuthenticationParamSchema, GetAuthenticationResponse } from './v0/schemas/authentications.js';
|
|
2
|
+
export { ErrorCode, ErrorCodeSchema, ErrorObject, ErrorObjectSchema, ErrorSource, ErrorSourceSchema, ErrorsResponse, ErrorsResponseSchema } from './v0/schemas/errors.js';
|
|
3
|
+
import 'zod';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Main entry point for @zapier/zapier-sdk-core
|
|
7
|
+
*
|
|
8
|
+
* Re-exports all public schemas and types for consumer convenience.
|
|
9
|
+
* Routes and generation utilities are NOT exported (internal use only).
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Absolute filesystem path to the generated OpenAPI spec file.
|
|
14
|
+
* Use this to reference the spec from consuming packages.
|
|
15
|
+
*
|
|
16
|
+
* Note: Works in both ESM and CJS environments.
|
|
17
|
+
*/
|
|
18
|
+
declare const openapiSpecPath: string;
|
|
19
|
+
|
|
20
|
+
export { openapiSpecPath };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
2
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
3
|
+
}) : x)(function(x) {
|
|
4
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
5
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
// src/v0/schemas/authentications.ts
|
|
9
|
+
import { z } from "zod";
|
|
10
|
+
var AuthenticationSchema = z.object({
|
|
11
|
+
id: z.number().describe("Unique identifier for the authentication"),
|
|
12
|
+
date: z.string().describe("Date created"),
|
|
13
|
+
lastchanged: z.string().optional().describe("Date last changed"),
|
|
14
|
+
account_id: z.number().describe("Account ID associated with this authentication"),
|
|
15
|
+
customuser_id: z.number().optional().describe("Custom user ID (if applicable)"),
|
|
16
|
+
selected_api: z.string().describe("Selected API key (internal identifier)"),
|
|
17
|
+
destination_selected_api: z.string().nullable().optional().describe("Destination API key (if applicable)"),
|
|
18
|
+
is_invite_only: z.boolean().describe("Whether the authentication is invite-only"),
|
|
19
|
+
is_private: z.boolean().describe("Whether the authentication is private"),
|
|
20
|
+
shared_with_all: z.boolean().describe("Whether the authentication is shared with all users"),
|
|
21
|
+
is_stale: z.string().optional().describe("Stale status string"),
|
|
22
|
+
is_shared: z.string().optional().describe("Shared status string"),
|
|
23
|
+
marked_stale_at: z.string().nullable().optional().describe("Date when marked stale"),
|
|
24
|
+
label: z.string().nullable().optional().describe("User label for the authentication"),
|
|
25
|
+
identifier: z.string().nullable().optional().describe("Identifier"),
|
|
26
|
+
title: z.string().nullable().optional().describe("Title of the authentication"),
|
|
27
|
+
url: z.string().optional().describe("URL to the authentication resource"),
|
|
28
|
+
groups: z.array(
|
|
29
|
+
z.record(z.string(), z.unknown()).describe("Groups associated with the authentication")
|
|
30
|
+
).optional().describe("Array of groups associated with the authentication"),
|
|
31
|
+
members: z.string().optional().describe("Members associated with the authentication"),
|
|
32
|
+
permissions: z.record(z.string(), z.boolean()).optional().describe("Permissions for the authentication")
|
|
33
|
+
});
|
|
34
|
+
var AuthenticationItemSchema = AuthenticationSchema.omit({
|
|
35
|
+
selected_api: true,
|
|
36
|
+
customuser_id: true
|
|
37
|
+
}).extend({
|
|
38
|
+
// Override numeric IDs with string versions (converted by normalizeAuthenticationItem)
|
|
39
|
+
id: z.string().describe("Unique identifier for the authentication"),
|
|
40
|
+
account_id: z.string().describe("Account ID associated with this authentication"),
|
|
41
|
+
// Renamed fields
|
|
42
|
+
implementation_id: z.string().optional().describe("Implementation ID (was selected_api)"),
|
|
43
|
+
profile_id: z.string().optional().describe("Profile ID (was customuser_id)"),
|
|
44
|
+
// Mapped fields (originals preserved in ...restOfAuth)
|
|
45
|
+
is_expired: z.string().optional().describe("Whether the authentication is expired (mapped from is_stale)"),
|
|
46
|
+
expired_at: z.string().nullable().optional().describe("Date when authentication expired (mapped from marked_stale_at)"),
|
|
47
|
+
// Computed fields
|
|
48
|
+
app_key: z.string().optional().describe("App Key extracted from implementation_id"),
|
|
49
|
+
app_version: z.string().optional().describe("App Version extracted from implementation_id")
|
|
50
|
+
});
|
|
51
|
+
var AuthenticationsResponseSchema = z.object({
|
|
52
|
+
count: z.number().describe("Total number of items"),
|
|
53
|
+
next: z.string().nullable().optional().describe("Cursor for the next page of results (if available)"),
|
|
54
|
+
previous: z.string().nullable().optional().describe("Cursor for the previous page of results (if available)"),
|
|
55
|
+
results: z.array(AuthenticationSchema).describe("Array of authentication items")
|
|
56
|
+
});
|
|
57
|
+
var GetAuthenticationParamSchema = z.object({
|
|
58
|
+
authenticationId: z.number().int().positive().describe("Authentication ID to retrieve")
|
|
59
|
+
}).describe("Get a specific authentication by ID");
|
|
60
|
+
|
|
61
|
+
// src/v0/schemas/errors.ts
|
|
62
|
+
import { z as z2 } from "zod";
|
|
63
|
+
var ErrorCodeSchema = z2.string().describe("An application-specific error code, expressed as a string value.");
|
|
64
|
+
var ErrorSourceSchema = z2.object({
|
|
65
|
+
pointer: z2.string().optional().describe(
|
|
66
|
+
"A JSON Pointer [RFC6901](https://tools.ietf.org/html/rfc6901) to the associated entity in the request document [e.g. `/data` for a primary data object, or `/data/attributes/title` for a specific attribute]."
|
|
67
|
+
),
|
|
68
|
+
parameter: z2.string().optional().describe(
|
|
69
|
+
"A string indicating which URI query parameter caused the error."
|
|
70
|
+
),
|
|
71
|
+
header: z2.string().optional().describe("A string indicating the header that caused the error.")
|
|
72
|
+
}).strict().nullable().describe(
|
|
73
|
+
"Identifies the source of the error within the request payload, if relevant."
|
|
74
|
+
);
|
|
75
|
+
var ErrorObjectSchema = z2.object({
|
|
76
|
+
id: z2.string().nullable().optional().describe(
|
|
77
|
+
"A unique identifier for this particular occurrence of the problem."
|
|
78
|
+
),
|
|
79
|
+
links: z2.object({
|
|
80
|
+
about: z2.string().url().describe(
|
|
81
|
+
"A link that leads to further details about this particular occurrence of the problem."
|
|
82
|
+
)
|
|
83
|
+
}).strict().nullable().optional().describe("Relevant links about the error"),
|
|
84
|
+
status: z2.string().optional().describe(
|
|
85
|
+
"The HTTP status code applicable to this problem, expressed as a string value."
|
|
86
|
+
),
|
|
87
|
+
code: ErrorCodeSchema.optional(),
|
|
88
|
+
title: z2.string().optional().describe(
|
|
89
|
+
"A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization."
|
|
90
|
+
),
|
|
91
|
+
detail: z2.string().optional().describe(
|
|
92
|
+
"A human-readable explanation specific to this occurrence of the problem. Like `title`, this field's value can be localized."
|
|
93
|
+
),
|
|
94
|
+
source: ErrorSourceSchema.optional()
|
|
95
|
+
}).strict().describe(
|
|
96
|
+
"An error object provides additional information about problems encountered while performing an operation. Error objects MUST be returned as an array keyed by `errors` in the top level of a JSON:API document."
|
|
97
|
+
);
|
|
98
|
+
var ErrorsResponseSchema = z2.object({
|
|
99
|
+
errors: z2.array(ErrorObjectSchema).describe("A collection of the errors returned.")
|
|
100
|
+
}).describe(
|
|
101
|
+
"A JSON:API error response document containing an array of error objects."
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
// src/index.ts
|
|
105
|
+
import { fileURLToPath } from "url";
|
|
106
|
+
import { dirname, resolve } from "path";
|
|
107
|
+
var openapiSpecPath = (() => {
|
|
108
|
+
if (typeof import.meta?.url === "string") {
|
|
109
|
+
return fileURLToPath(new URL("../openapi.yaml", import.meta.url));
|
|
110
|
+
}
|
|
111
|
+
const currentDir = typeof __dirname !== "undefined" ? __dirname : dirname(__require.resolve("@zapier/zapier-sdk-core/package.json"));
|
|
112
|
+
return resolve(currentDir, "../openapi.yaml");
|
|
113
|
+
})();
|
|
114
|
+
export {
|
|
115
|
+
AuthenticationItemSchema,
|
|
116
|
+
AuthenticationSchema,
|
|
117
|
+
ErrorCodeSchema,
|
|
118
|
+
ErrorObjectSchema,
|
|
119
|
+
ErrorSourceSchema,
|
|
120
|
+
ErrorsResponseSchema,
|
|
121
|
+
GetAuthenticationParamSchema,
|
|
122
|
+
openapiSpecPath
|
|
123
|
+
};
|
|
124
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/v0/schemas/authentications.ts","../src/v0/schemas/errors.ts","../src/index.ts"],"sourcesContent":["import { z } from \"zod\";\n\n/**\n * Base Authentication schema matching the API response\n */\nexport const AuthenticationSchema = z.object({\n id: z.number().describe(\"Unique identifier for the authentication\"),\n date: z.string().describe(\"Date created\"),\n lastchanged: z.string().optional().describe(\"Date last changed\"),\n account_id: z\n .number()\n .describe(\"Account ID associated with this authentication\"),\n customuser_id: z\n .number()\n .optional()\n .describe(\"Custom user ID (if applicable)\"),\n selected_api: z.string().describe(\"Selected API key (internal identifier)\"),\n destination_selected_api: z\n .string()\n .nullable()\n .optional()\n .describe(\"Destination API key (if applicable)\"),\n is_invite_only: z\n .boolean()\n .describe(\"Whether the authentication is invite-only\"),\n is_private: z.boolean().describe(\"Whether the authentication is private\"),\n shared_with_all: z\n .boolean()\n .describe(\"Whether the authentication is shared with all users\"),\n is_stale: z.string().optional().describe(\"Stale status string\"),\n is_shared: z.string().optional().describe(\"Shared status string\"),\n marked_stale_at: z\n .string()\n .nullable()\n .optional()\n .describe(\"Date when marked stale\"),\n label: z\n .string()\n .nullable()\n .optional()\n .describe(\"User label for the authentication\"),\n identifier: z.string().nullable().optional().describe(\"Identifier\"),\n title: z\n .string()\n .nullable()\n .optional()\n .describe(\"Title of the authentication\"),\n url: z.string().optional().describe(\"URL to the authentication resource\"),\n groups: z\n .array(\n z\n .record(z.string(), z.unknown())\n .describe(\"Groups associated with the authentication\"),\n )\n .optional()\n .describe(\"Array of groups associated with the authentication\"),\n members: z\n .string()\n .optional()\n .describe(\"Members associated with the authentication\"),\n permissions: z\n .record(z.string(), z.boolean())\n .optional()\n .describe(\"Permissions for the authentication\"),\n});\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\n .number()\n .int()\n .positive()\n .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 * Error schema definitions for API error responses\n * Following JSON:API error object specification\n */\n\nimport { z } from \"zod\";\n\n/**\n * An application-specific error code, expressed as a string value.\n */\nexport const ErrorCodeSchema = z\n .string()\n .describe(\"An application-specific error code, expressed as a string value.\");\n\n/**\n * Identifies the source of the error within the request payload, if relevant.\n */\nexport const ErrorSourceSchema = z\n .object({\n pointer: z\n .string()\n .optional()\n .describe(\n \"A JSON Pointer [RFC6901](https://tools.ietf.org/html/rfc6901) to the associated entity in the request document [e.g. `/data` for a primary data object, or `/data/attributes/title` for a specific attribute].\",\n ),\n parameter: z\n .string()\n .optional()\n .describe(\n \"A string indicating which URI query parameter caused the error.\",\n ),\n header: z\n .string()\n .optional()\n .describe(\"A string indicating the header that caused the error.\"),\n })\n .strict()\n .nullable()\n .describe(\n \"Identifies the source of the error within the request payload, if relevant.\",\n );\n\n/**\n * An error object provides additional information about problems encountered while performing an operation.\n * Error objects MUST be returned as an array keyed by `errors` in the top level of a JSON:API document.\n */\nexport const ErrorObjectSchema = z\n .object({\n id: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"A unique identifier for this particular occurrence of the problem.\",\n ),\n links: z\n .object({\n about: z\n .string()\n .url()\n .describe(\n \"A link that leads to further details about this particular occurrence of the problem.\",\n ),\n })\n .strict()\n .nullable()\n .optional()\n .describe(\"Relevant links about the error\"),\n status: z\n .string()\n .optional()\n .describe(\n \"The HTTP status code applicable to this problem, expressed as a string value.\",\n ),\n code: ErrorCodeSchema.optional(),\n title: z\n .string()\n .optional()\n .describe(\n \"A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.\",\n ),\n detail: z\n .string()\n .optional()\n .describe(\n \"A human-readable explanation specific to this occurrence of the problem. Like `title`, this field's value can be localized.\",\n ),\n source: ErrorSourceSchema.optional(),\n })\n .strict()\n .describe(\n \"An error object provides additional information about problems encountered while performing an operation. Error objects MUST be returned as an array keyed by `errors` in the top level of a JSON:API document.\",\n );\n\n/**\n * A JSON:API error response document containing an array of error objects.\n */\nexport const ErrorsResponseSchema = z\n .object({\n errors: z\n .array(ErrorObjectSchema)\n .describe(\"A collection of the errors returned.\"),\n })\n .describe(\n \"A JSON:API error response document containing an array of error objects.\",\n );\n\n// Export TypeScript types\nexport type ErrorCode = z.infer<typeof ErrorCodeSchema>;\nexport type ErrorSource = z.infer<typeof ErrorSourceSchema>;\nexport type ErrorObject = z.infer<typeof ErrorObjectSchema>;\nexport type ErrorsResponse = z.infer<typeof ErrorsResponseSchema>;\n","/**\n * Main entry point for @zapier/zapier-sdk-core\n *\n * Re-exports all public schemas and types for consumer convenience.\n * Routes and generation utilities are NOT exported (internal use only).\n */\n\n// Schema exports\nexport {\n AuthenticationSchema,\n AuthenticationItemSchema,\n GetAuthenticationParamSchema,\n type Authentication,\n type AuthenticationItem,\n type GetAuthenticationParam,\n type GetAuthenticationResponse,\n} from \"./v0/schemas/authentications.js\";\n\nexport {\n ErrorCodeSchema,\n ErrorSourceSchema,\n ErrorObjectSchema,\n ErrorsResponseSchema,\n type ErrorCode,\n type ErrorSource,\n type ErrorObject,\n type ErrorsResponse,\n} from \"./v0/schemas/errors.js\";\n\n// OpenAPI spec path export\nimport { fileURLToPath } from \"node:url\";\nimport { dirname, resolve } from \"node:path\";\n\n/**\n * Absolute filesystem path to the generated OpenAPI spec file.\n * Use this to reference the spec from consuming packages.\n *\n * Note: Works in both ESM and CJS environments.\n */\nexport const openapiSpecPath = (() => {\n // ESM environment\n if (typeof import.meta?.url === \"string\") {\n return fileURLToPath(new URL(\"../openapi.yaml\", import.meta.url));\n }\n // CJS environment - __dirname is available via tsup's shim\n // eslint-disable-next-line @typescript-eslint/no-require-imports\n const currentDir =\n typeof __dirname !== \"undefined\"\n ? __dirname\n : dirname(require.resolve(\"@zapier/zapier-sdk-core/package.json\"));\n return resolve(currentDir, \"../openapi.yaml\");\n})();\n"],"mappings":";;;;;;;;AAAA,SAAS,SAAS;AAKX,IAAM,uBAAuB,EAAE,OAAO;AAAA,EAC3C,IAAI,EAAE,OAAO,EAAE,SAAS,0CAA0C;AAAA,EAClE,MAAM,EAAE,OAAO,EAAE,SAAS,cAAc;AAAA,EACxC,aAAa,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,mBAAmB;AAAA,EAC/D,YAAY,EACT,OAAO,EACP,SAAS,gDAAgD;AAAA,EAC5D,eAAe,EACZ,OAAO,EACP,SAAS,EACT,SAAS,gCAAgC;AAAA,EAC5C,cAAc,EAAE,OAAO,EAAE,SAAS,wCAAwC;AAAA,EAC1E,0BAA0B,EACvB,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,qCAAqC;AAAA,EACjD,gBAAgB,EACb,QAAQ,EACR,SAAS,2CAA2C;AAAA,EACvD,YAAY,EAAE,QAAQ,EAAE,SAAS,uCAAuC;AAAA,EACxE,iBAAiB,EACd,QAAQ,EACR,SAAS,qDAAqD;AAAA,EACjE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,qBAAqB;AAAA,EAC9D,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,sBAAsB;AAAA,EAChE,iBAAiB,EACd,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,wBAAwB;AAAA,EACpC,OAAO,EACJ,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,mCAAmC;AAAA,EAC/C,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,YAAY;AAAA,EAClE,OAAO,EACJ,OAAO,EACP,SA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AAM,iBAAiB,EACvB,SAAS,sCAAsC;AACpD,CAAC,EACA;AAAA,EACC;AACF;;;AC3EF,SAAS,qBAAqB;AAC9B,SAAS,SAAS,eAAe;AAQ1B,IAAM,mBAAmB,MAAM;AAEpC,MAAI,OAAO,aAAa,QAAQ,UAAU;AACxC,WAAO,cAAc,IAAI,IAAI,mBAAmB,YAAY,GAAG,CAAC;AAAA,EAClE;AAGA,QAAM,aACJ,OAAO,cAAc,cACjB,YACA,QAAQ,UAAQ,QAAQ,sCAAsC,CAAC;AACrE,SAAO,QAAQ,YAAY,iBAAiB;AAC9C,GAAG;","names":["z"]}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/v0/common/responses.ts
|
|
21
|
+
var responses_exports = {};
|
|
22
|
+
__export(responses_exports, {
|
|
23
|
+
commonErrorResponses: () => commonErrorResponses,
|
|
24
|
+
rateLimitHeaders: () => rateLimitHeaders,
|
|
25
|
+
retryAfterHeader: () => retryAfterHeader
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(responses_exports);
|
|
28
|
+
var rateLimitHeaders = {
|
|
29
|
+
"X-RateLimit-Limit": {
|
|
30
|
+
schema: {
|
|
31
|
+
type: "integer"
|
|
32
|
+
},
|
|
33
|
+
description: "The number of requests remaining in the current rate limit window."
|
|
34
|
+
},
|
|
35
|
+
"X-RateLimit-Remaining": {
|
|
36
|
+
schema: {
|
|
37
|
+
type: "integer"
|
|
38
|
+
},
|
|
39
|
+
description: "The number of requests remaining in the current rate limit window."
|
|
40
|
+
},
|
|
41
|
+
"X-RateLimit-Reset": {
|
|
42
|
+
schema: {
|
|
43
|
+
type: "string"
|
|
44
|
+
},
|
|
45
|
+
description: "The timestamp when the rate limit will be reset."
|
|
46
|
+
},
|
|
47
|
+
"Retry-After": {
|
|
48
|
+
schema: {
|
|
49
|
+
type: "string"
|
|
50
|
+
},
|
|
51
|
+
description: "The number of seconds to wait before retrying."
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
var retryAfterHeader = {
|
|
55
|
+
"Retry-After": {
|
|
56
|
+
schema: {
|
|
57
|
+
type: "string"
|
|
58
|
+
},
|
|
59
|
+
description: "The number of seconds to wait before retrying."
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
var commonErrorResponses = {
|
|
63
|
+
/**
|
|
64
|
+
* 400 Bad Request - Invalid request parameters or body
|
|
65
|
+
*/
|
|
66
|
+
400: {
|
|
67
|
+
description: "Bad Request",
|
|
68
|
+
content: {
|
|
69
|
+
"application/json": {
|
|
70
|
+
schema: {
|
|
71
|
+
$ref: "#/components/schemas/ErrorsResponse"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
/**
|
|
77
|
+
* 401 Unauthorized - Missing or invalid authentication
|
|
78
|
+
*/
|
|
79
|
+
401: {
|
|
80
|
+
description: "Unauthorized",
|
|
81
|
+
content: {
|
|
82
|
+
"application/json": {
|
|
83
|
+
schema: {
|
|
84
|
+
$ref: "#/components/schemas/ErrorsResponse"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
/**
|
|
90
|
+
* 429 Too Many Requests - Rate limit exceeded
|
|
91
|
+
* Includes rate limit headers
|
|
92
|
+
*/
|
|
93
|
+
429: {
|
|
94
|
+
description: "Too Many Requests",
|
|
95
|
+
headers: rateLimitHeaders,
|
|
96
|
+
content: {
|
|
97
|
+
"application/json": {
|
|
98
|
+
schema: {
|
|
99
|
+
$ref: "#/components/schemas/ErrorsResponse"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
/**
|
|
105
|
+
* 500 Server Error - Internal server error
|
|
106
|
+
*/
|
|
107
|
+
500: {
|
|
108
|
+
description: "Server Error",
|
|
109
|
+
content: {
|
|
110
|
+
"application/json": {
|
|
111
|
+
schema: {
|
|
112
|
+
$ref: "#/components/schemas/ErrorsResponse"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
/**
|
|
118
|
+
* 503 Service Unavailable - Service temporarily unavailable
|
|
119
|
+
* Includes Retry-After header
|
|
120
|
+
*/
|
|
121
|
+
503: {
|
|
122
|
+
description: "Service Unavailable",
|
|
123
|
+
headers: retryAfterHeader,
|
|
124
|
+
content: {
|
|
125
|
+
"application/json": {
|
|
126
|
+
schema: {
|
|
127
|
+
$ref: "#/components/schemas/ErrorsResponse"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
134
|
+
0 && (module.exports = {
|
|
135
|
+
commonErrorResponses,
|
|
136
|
+
rateLimitHeaders,
|
|
137
|
+
retryAfterHeader
|
|
138
|
+
});
|
|
139
|
+
//# sourceMappingURL=responses.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/v0/common/responses.ts"],"sourcesContent":["/**\n * Common response definitions for v0 API routes\n *\n * This module provides reusable response definitions for error responses\n * and common headers to reduce duplication across route definitions.\n */\n\n/**\n * Rate limit headers included in 429 responses\n */\nexport const rateLimitHeaders = {\n \"X-RateLimit-Limit\": {\n schema: {\n type: \"integer\" as const,\n },\n description:\n \"The number of requests remaining in the current rate limit window.\",\n },\n \"X-RateLimit-Remaining\": {\n schema: {\n type: \"integer\" as const,\n },\n description:\n \"The number of requests remaining in the current rate limit window.\",\n },\n \"X-RateLimit-Reset\": {\n schema: {\n type: \"string\" as const,\n },\n description: \"The timestamp when the rate limit will be reset.\",\n },\n \"Retry-After\": {\n schema: {\n type: \"string\" as const,\n },\n description: \"The number of seconds to wait before retrying.\",\n },\n} as const;\n\n/**\n * Retry-After header included in 503 responses\n */\nexport const retryAfterHeader = {\n \"Retry-After\": {\n schema: {\n type: \"string\" as const,\n },\n description: \"The number of seconds to wait before retrying.\",\n },\n} as const;\n\n/**\n * Common error response definitions for all v0 API routes\n *\n * These responses follow the JSON:API error response format and are\n * consistent across all endpoints.\n */\nexport const commonErrorResponses = {\n /**\n * 400 Bad Request - Invalid request parameters or body\n */\n 400: {\n description: \"Bad Request\",\n content: {\n \"application/json\": {\n schema: {\n $ref: \"#/components/schemas/ErrorsResponse\",\n },\n },\n },\n },\n /**\n * 401 Unauthorized - Missing or invalid authentication\n */\n 401: {\n description: \"Unauthorized\",\n content: {\n \"application/json\": {\n schema: {\n $ref: \"#/components/schemas/ErrorsResponse\",\n },\n },\n },\n },\n /**\n * 429 Too Many Requests - Rate limit exceeded\n * Includes rate limit headers\n */\n 429: {\n description: \"Too Many Requests\",\n headers: rateLimitHeaders,\n content: {\n \"application/json\": {\n schema: {\n $ref: \"#/components/schemas/ErrorsResponse\",\n },\n },\n },\n },\n /**\n * 500 Server Error - Internal server error\n */\n 500: {\n description: \"Server Error\",\n content: {\n \"application/json\": {\n schema: {\n $ref: \"#/components/schemas/ErrorsResponse\",\n },\n },\n },\n },\n /**\n * 503 Service Unavailable - Service temporarily unavailable\n * Includes Retry-After header\n */\n 503: {\n description: \"Service Unavailable\",\n headers: retryAfterHeader,\n content: {\n \"application/json\": {\n schema: {\n $ref: \"#/components/schemas/ErrorsResponse\",\n },\n },\n },\n },\n} as const;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUO,IAAM,mBAAmB;AAAA,EAC9B,qBAAqB;AAAA,IACnB,QAAQ;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,aACE;AAAA,EACJ;AAAA,EACA,yBAAyB;AAAA,IACvB,QAAQ;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,aACE;AAAA,EACJ;AAAA,EACA,qBAAqB;AAAA,IACnB,QAAQ;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,aAAa;AAAA,EACf;AAAA,EACA,eAAe;AAAA,IACb,QAAQ;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,aAAa;AAAA,EACf;AACF;AAKO,IAAM,mBAAmB;AAAA,EAC9B,eAAe;AAAA,IACb,QAAQ;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,aAAa;AAAA,EACf;AACF;AAQO,IAAM,uBAAuB;AAAA;AAAA;AAAA;AAAA,EAIlC,KAAK;AAAA,IACH,aAAa;AAAA,IACb,SAAS;AAAA,MACP,oBAAoB;AAAA,QAClB,QAAQ;AAAA,UACN,MAAM;AAAA,QACR;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA;AAAA;AAAA;AAAA,EAIA,KAAK;AAAA,IACH,aAAa;AAAA,IACb,SAAS;AAAA,MACP,oBAAoB;AAAA,QAClB,QAAQ;AAAA,UACN,MAAM;AAAA,QACR;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAK;AAAA,IACH,aAAa;AAAA,I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