@epcc-sdk/sdks-files 0.2.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.
@@ -0,0 +1,175 @@
1
+ import * as z from "zod";
2
+ import {
3
+ dataUriFields,
4
+ decodeDataUris,
5
+ loose,
6
+ toToolResult
7
+ } from "./mcp-support.gen.mjs";
8
+ import { createAFile, deleteAFile, getAFile, getAllFiles } from "./sdk.gen.mjs";
9
+ import {
10
+ zCreateAFileBody,
11
+ zDeleteAFilePath,
12
+ zGetAFilePath,
13
+ zGetAllFilesQuery
14
+ } from "./zod.gen.mjs";
15
+ const getAllFilesInput = z.object({
16
+ query: zGetAllFilesQuery.strict().optional()
17
+ }).strict();
18
+ const getAllFilesTool = (options) => {
19
+ const handler = (args, extra) => toToolResult(
20
+ getAllFiles({
21
+ ...args,
22
+ client: options?.client,
23
+ signal: extra.signal,
24
+ throwOnError: false
25
+ })
26
+ );
27
+ return {
28
+ name: "files_get_all_files",
29
+ config: {
30
+ title: "Get all Files",
31
+ description: "Lists the files in the store, such as product images, videos and documents, with each file's link, name, type and size. Filter by file name, width, height or file size, or get several files at once by ID with the in operator; IDs that do not exist are left out without an error. Returns at most 100 files per page.",
32
+ inputSchema: getAllFilesInput,
33
+ annotations: {
34
+ readOnlyHint: true,
35
+ destructiveHint: false,
36
+ idempotentHint: true,
37
+ openWorldHint: true
38
+ },
39
+ _meta: {
40
+ "com.elasticpath/operation": {
41
+ id: "files.getAllFiles",
42
+ method: "GET",
43
+ path: "/v2/files",
44
+ risk: "read"
45
+ }
46
+ }
47
+ },
48
+ handler
49
+ };
50
+ };
51
+ const createAFileInput = z.object({
52
+ body: dataUriFields(loose(zCreateAFileBody), ["file"], 8388608)
53
+ }).strict();
54
+ const createAFileTool = (options) => {
55
+ const handler = (args, extra) => toToolResult(
56
+ decodeDataUris(args.body, ["file"], 8388608).then(
57
+ (body) => createAFile({
58
+ ...args,
59
+ client: options?.client,
60
+ signal: extra.signal,
61
+ throwOnError: false,
62
+ body
63
+ })
64
+ )
65
+ );
66
+ return {
67
+ name: "files_create_a_file",
68
+ config: {
69
+ title: "Create a File",
70
+ description: "Uploads a file, such as a product image, video or PDF, or registers an image hosted elsewhere by its URL. Files are limited to 8MB by default; store a larger file elsewhere and register it by URL. Returns the new file's ID and link, which you use to attach the file to a product.",
71
+ inputSchema: createAFileInput,
72
+ annotations: {
73
+ readOnlyHint: false,
74
+ destructiveHint: false,
75
+ idempotentHint: false,
76
+ openWorldHint: true
77
+ },
78
+ _meta: {
79
+ "com.elasticpath/operation": {
80
+ id: "files.createAFile",
81
+ method: "POST",
82
+ path: "/v2/files",
83
+ risk: "create"
84
+ }
85
+ }
86
+ },
87
+ handler
88
+ };
89
+ };
90
+ const deleteAFileInput = z.object({
91
+ path: zDeleteAFilePath.strict()
92
+ }).strict();
93
+ const deleteAFileTool = (options) => {
94
+ const handler = (args, extra) => toToolResult(
95
+ deleteAFile({
96
+ ...args,
97
+ client: options?.client,
98
+ signal: extra.signal,
99
+ throwOnError: false
100
+ })
101
+ );
102
+ return {
103
+ name: "files_delete_a_file",
104
+ config: {
105
+ title: "Delete a File",
106
+ description: "Deletes a file from the store by its ID. To find a file's ID, list the files and filter by file name.",
107
+ inputSchema: deleteAFileInput,
108
+ annotations: {
109
+ readOnlyHint: false,
110
+ destructiveHint: true,
111
+ idempotentHint: true,
112
+ openWorldHint: true
113
+ },
114
+ _meta: {
115
+ "com.elasticpath/operation": {
116
+ id: "files.deleteAFile",
117
+ method: "DELETE",
118
+ path: "/v2/files/{fileID}",
119
+ risk: "delete"
120
+ }
121
+ }
122
+ },
123
+ handler
124
+ };
125
+ };
126
+ const getAFileInput = z.object({
127
+ path: zGetAFilePath.strict()
128
+ }).strict();
129
+ const getAFileTool = (options) => {
130
+ const handler = (args, extra) => toToolResult(
131
+ getAFile({
132
+ ...args,
133
+ client: options?.client,
134
+ signal: extra.signal,
135
+ throwOnError: false
136
+ })
137
+ );
138
+ return {
139
+ name: "files_get_a_file",
140
+ config: {
141
+ title: "Get a File",
142
+ description: "Gets one file by ID, including its link, name, type, size and dimensions. To get several files at once, list the files filtered by ID.",
143
+ inputSchema: getAFileInput,
144
+ annotations: {
145
+ readOnlyHint: true,
146
+ destructiveHint: false,
147
+ idempotentHint: true,
148
+ openWorldHint: true
149
+ },
150
+ _meta: {
151
+ "com.elasticpath/operation": {
152
+ id: "files.getAFile",
153
+ method: "GET",
154
+ path: "/v2/files/{fileID}",
155
+ risk: "read"
156
+ }
157
+ }
158
+ },
159
+ handler
160
+ };
161
+ };
162
+ const tools = (options) => [
163
+ getAllFilesTool(options),
164
+ createAFileTool(options),
165
+ deleteAFileTool(options),
166
+ getAFileTool(options)
167
+ ];
168
+ export {
169
+ createAFileTool,
170
+ deleteAFileTool,
171
+ getAFileTool,
172
+ getAllFilesTool,
173
+ tools
174
+ };
175
+ //# sourceMappingURL=mcp.gen.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/client/mcp.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport type { ToolCallback } from \"@modelcontextprotocol/sdk/server/mcp.js\"\nimport * as z from \"zod\"\n\nimport type { Client } from \"./client\"\nimport {\n dataUriFields,\n decodeDataUris,\n loose,\n type Tool,\n toToolResult,\n} from \"./mcp-support.gen\"\nimport { createAFile, deleteAFile, getAFile, getAllFiles } from \"./sdk.gen\"\nimport {\n zCreateAFileBody,\n zDeleteAFilePath,\n zGetAFilePath,\n zGetAllFilesQuery,\n} from \"./zod.gen\"\n\ntype ToolOptions = {\n client?: Client\n}\n\nconst getAllFilesInput = z\n .object({\n query: zGetAllFilesQuery.strict().optional(),\n })\n .strict()\n\n/**\n * Get all Files\n *\n * Retrieves all files.\n *\n * ### Filtering\n *\n * For general filtering syntax, see [Filtering](/guides/Getting-Started/filtering).\n *\n * The following operators and attributes are available when filtering on this endpoint.\n *\n * | Attribute | Type | Operators | Example |\n * |:----------------------|:----------|:--------------------------|:-------------|\n * | `id` | `string` | `in` | `in(id,file-id-1,file-id-2,file-id-3)` |\n * | `file_name` | `string` | `eq` / `like` | `eq(file_name, my_image.jpg)` |\n * | `width` | `integer` | `gt` / `ge` / `lt` / `le` | `gt(width,200)` |\n * | `height` | `integer` | `gt` / `ge` / `lt` / `le` | `lt(height,500)` |\n * | `file_size` | `integer` | `gt` / `ge` / `lt` / `le` | `le(file_size,20953)` |\n *\n * #### Bulk File Retrieval\n *\n * To retrieve multiple files by their IDs in a single request, use the `in` operator with a comma-separated list of file IDs:\n *\n * ```\n * GET /v2/files?filter=in(id,06b881bd-f152-4c36-8658-7132a8fab49c,ec73567b-04e8-4000-a11a-7e1407cc2f21)\n * ```\n *\n * This is more efficient than making separate requests for each file and is recommended for bulk operations.\n *\n * **Note on invalid IDs**: If any IDs in the filter are missing, malformed, or do not exist in the store, they will be silently ignored. The response will only include files that were successfully found. For example, if you request 5 IDs but only 3 exist, the response will contain 3 files with `total: 3` in the metadata.\n *\n */\nexport const getAllFilesTool = (options?: ToolOptions) => {\n const handler: ToolCallback<typeof getAllFilesInput> = (args, extra) =>\n toToolResult(\n getAllFiles({\n ...args,\n client: options?.client,\n signal: extra.signal,\n throwOnError: false,\n }),\n )\n return {\n name: \"files_get_all_files\" as const,\n config: {\n title: \"Get all Files\",\n description:\n \"Lists the files in the store, such as product images, videos and documents, with each file's link, name, type and size. Filter by file name, width, height or file size, or get several files at once by ID with the in operator; IDs that do not exist are left out without an error. Returns at most 100 files per page.\",\n inputSchema: getAllFilesInput,\n annotations: {\n readOnlyHint: true,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: true,\n },\n _meta: {\n \"com.elasticpath/operation\": {\n id: \"files.getAllFiles\",\n method: \"GET\",\n path: \"/v2/files\",\n risk: \"read\" as const,\n },\n },\n },\n handler,\n }\n}\n\nconst createAFileInput = z\n .object({\n body: dataUriFields(loose(zCreateAFileBody), [\"file\"], 8388608),\n })\n .strict()\n\n/**\n * Create a File\n *\n * Create a File\n */\nexport const createAFileTool = (options?: ToolOptions) => {\n const handler: ToolCallback<typeof createAFileInput> = (args, extra) =>\n toToolResult(\n decodeDataUris(args.body, [\"file\"], 8388608).then((body) =>\n createAFile({\n ...args,\n client: options?.client,\n signal: extra.signal,\n throwOnError: false,\n body,\n }),\n ),\n )\n return {\n name: \"files_create_a_file\" as const,\n config: {\n title: \"Create a File\",\n description:\n \"Uploads a file, such as a product image, video or PDF, or registers an image hosted elsewhere by its URL. Files are limited to 8MB by default; store a larger file elsewhere and register it by URL. Returns the new file's ID and link, which you use to attach the file to a product.\",\n inputSchema: createAFileInput,\n annotations: {\n readOnlyHint: false,\n destructiveHint: false,\n idempotentHint: false,\n openWorldHint: true,\n },\n _meta: {\n \"com.elasticpath/operation\": {\n id: \"files.createAFile\",\n method: \"POST\",\n path: \"/v2/files\",\n risk: \"create\" as const,\n },\n },\n },\n handler,\n }\n}\n\nconst deleteAFileInput = z\n .object({\n path: zDeleteAFilePath.strict(),\n })\n .strict()\n\n/**\n * Delete a File\n *\n * Delete a File\n */\nexport const deleteAFileTool = (options?: ToolOptions) => {\n const handler: ToolCallback<typeof deleteAFileInput> = (args, extra) =>\n toToolResult(\n deleteAFile({\n ...args,\n client: options?.client,\n signal: extra.signal,\n throwOnError: false,\n }),\n )\n return {\n name: \"files_delete_a_file\" as const,\n config: {\n title: \"Delete a File\",\n description:\n \"Deletes a file from the store by its ID. To find a file's ID, list the files and filter by file name.\",\n inputSchema: deleteAFileInput,\n annotations: {\n readOnlyHint: false,\n destructiveHint: true,\n idempotentHint: true,\n openWorldHint: true,\n },\n _meta: {\n \"com.elasticpath/operation\": {\n id: \"files.deleteAFile\",\n method: \"DELETE\",\n path: \"/v2/files/{fileID}\",\n risk: \"delete\" as const,\n },\n },\n },\n handler,\n }\n}\n\nconst getAFileInput = z\n .object({\n path: zGetAFilePath.strict(),\n })\n .strict()\n\n/**\n * Get a File\n *\n * Get a File\n */\nexport const getAFileTool = (options?: ToolOptions) => {\n const handler: ToolCallback<typeof getAFileInput> = (args, extra) =>\n toToolResult(\n getAFile({\n ...args,\n client: options?.client,\n signal: extra.signal,\n throwOnError: false,\n }),\n )\n return {\n name: \"files_get_a_file\" as const,\n config: {\n title: \"Get a File\",\n description:\n \"Gets one file by ID, including its link, name, type, size and dimensions. To get several files at once, list the files filtered by ID.\",\n inputSchema: getAFileInput,\n annotations: {\n readOnlyHint: true,\n destructiveHint: false,\n idempotentHint: true,\n openWorldHint: true,\n },\n _meta: {\n \"com.elasticpath/operation\": {\n id: \"files.getAFile\",\n method: \"GET\",\n path: \"/v2/files/{fileID}\",\n risk: \"read\" as const,\n },\n },\n },\n handler,\n }\n}\n\nexport const tools = (options?: ToolOptions): Array<Tool> => [\n getAllFilesTool(options),\n createAFileTool(options),\n deleteAFileTool(options),\n getAFileTool(options),\n]\n"],"mappings":"AAGA,YAAY,OAAO;AAGnB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,OACK;AACP,SAAS,aAAa,aAAa,UAAU,mBAAmB;AAChE;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAMP,MAAM,mBAAmB,EACtB,OAAO;AAAA,EACN,OAAO,kBAAkB,OAAO,EAAE,SAAS;AAC7C,CAAC,EACA,OAAO;AAkCH,MAAM,kBAAkB,CAAC,YAA0B;AACxD,QAAM,UAAiD,CAAC,MAAM,UAC5D;AAAA,IACE,YAAY;AAAA,MACV,GAAG;AAAA,MACH,QAAQ,SAAS;AAAA,MACjB,QAAQ,MAAM;AAAA,MACd,cAAc;AAAA,IAChB,CAAC;AAAA,EACH;AACF,SAAO;AAAA,IACL,MAAM;AAAA,IACN,QAAQ;AAAA,MACN,OAAO;AAAA,MACP,aACE;AAAA,MACF,aAAa;AAAA,MACb,aAAa;AAAA,QACX,cAAc;AAAA,QACd,iBAAiB;AAAA,QACjB,gBAAgB;AAAA,QAChB,eAAe;AAAA,MACjB;AAAA,MACA,OAAO;AAAA,QAC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,MAAM;AAAA,IACN,QAAQ;AAAA,MACN,OAAO;AAAA,MACP,aACE;AAAA,MACF,aAAa;AAAA,MACb,aAAa;AAAA,QACX,cAAc;AAAA,QACd,iBAAiB;AAAA,QACjB,gBAAgB;AAAA,QAChB,eAAe;AAAA,MACjB;AAAA,MACA,OAAO;AAAA,QACL,6BAA6B;AAAA,UAC3B,IAAI;AAAA,UACJ,QAAQ;AAAA,UACR,MAAM;AAAA,UACN,MAAM;AAAA,QACR;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,EACF;AACF;AAEA,MAAM,gBAAgB,EACnB,OAAO;AAAA,EACN,MAAM,cAAc,OAAO;AAC7B,CAAC,EACA,OAAO;AAOH,MAAM,eAAe,CAAC,YAA0B;AACrD,QAAM,UAA8C,CAAC,MAAM,UACzD;AAAA,IACE,SAAS;AAAA,MACP,GAAG;AAAA,MACH,QAAQ,SAAS;AAAA,MACjB,QAAQ,MAAM;AAAA,MACd,cAAc;AAAA,IAChB,CAAC;AAAA,EACH;AACF,SAAO;AAAA,IACL,MAAM;AAAA,IACN,QAAQ;AAAA,MACN,OAAO;AAAA,MACP,aACE;AAAA,MACF,aAAa;AAAA,MACb,aAAa;AAAA,QACX,cAAc;AAAA,QACd,iBAAiB;AAAA,QACjB,gBAAgB;AAAA,QAChB,eAAe;AAAA,MACjB;AAAA,MACA,OAAO;AAAA,QACL,6BAA6B;AAAA,UAC3B,IAAI;AAAA,UACJ,QAAQ;AAAA,UACR,MAAM;AAAA,UACN,MAAM;AAAA,QACR;AAAA,MACF;AAAA,IACF;AAAA,IACA;AAAA,EACF;AACF;AAEO,MAAM,QAAQ,CAAC,YAAuC;AAAA,EAC3D,gBAAgB,OAAO;AAAA,EACvB,gBAAgB,OAAO;AAAA,EACvB,gBAAgB,OAAO;AAAA,EACvB,aAAa,OAAO;AACtB;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/client/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type ClientOptions = {\n baseUrl:\n | \"https://euwest.api.elasticpath.com\"\n | \"https://useast.api.elasticpath.com\"\n | (string & {})\n}\n\nexport type ErrorResponse = {\n errors: Array<Error>\n}\n\nexport type File = {\n /**\n * The unique identifier for this file.\n */\n id?: Uuid\n /**\n * The type represents the object being returned.\n */\n type?: string\n /**\n * The name of the file.\n */\n file_name?: string\n /**\n * The mime type of the file.\n */\n mime_type?: string\n /**\n * The size of the file. Required when uploading files.\n */\n file_size?: number\n /**\n * DEPRECATED Whether the file public or not. Required when uploading files.\n */\n public?: boolean\n meta?: FileMeta\n links?: Links\n link?: FileLink\n}\n\nexport type FileMeta = {\n /**\n * The date and time the file was created.\n */\n timestamps?: {\n /**\n * The date and time the file was created.\n */\n created_at?: string\n }\n /**\n * The file dimensions.\n */\n dimensions?: {\n /**\n * The width of the file.\n */\n width?: number\n /**\n * The height of the file.\n */\n height?: number\n }\n}\n\nexport type ResultsMeta = {\n /**\n * Contains the results for the entire collection.\n */\n page?: {\n /**\n * The maximum number of records for all pages.\n */\n limit?: number\n /**\n * The current offset by number of pages.\n */\n offset?: number\n /**\n * The current number of pages.\n */\n current?: number\n /**\n * The total number of records for the entire collection.\n */\n total?: number\n }\n /**\n * Contains the results for the entire collection.\n */\n results?: {\n /**\n * The total number of records for the entire collection.\n */\n total?: number\n }\n}\n\n/**\n * Links are used to allow you to move between requests.\n */\nexport type Links = {\n /**\n * Single entities use a self parameter with a link to that specific resource.\n */\n self?: string\n}\n\n/**\n * Links are used to allow you to move between requests.\n */\nexport type ResultsLinks = {\n /**\n * Single entities use a self parameter with a link to that specific resource.\n */\n self?: string | null\n /**\n * The current page.\n */\n current?: string | null\n /**\n * Always the first page.\n */\n first?: string | null\n /**\n * This is `null` if there is only one page.\n */\n last?: string | null\n /**\n * The previous page. This is `null` if on the first page.\n */\n prev?: string | null\n /**\n * The next page. This is `null` if there is no next page.\n */\n next?: string | null\n}\n\n/**\n * The publicly available URL for this file.\n */\nexport type FileLink = {\n /**\n * The publicly available URL for this file.\n */\n href?: string\n}\n\nexport type Uuid = string\n\nexport type Error = {\n /**\n * The HTTP response code of the error.\n */\n status: number\n /**\n * A brief summary of the error.\n */\n title: string\n /**\n * Optional additional detail about the error.\n */\n detail?: string\n /**\n * Internal request ID.\n */\n request_id?: string\n /**\n * Additional supporting meta data for the error.\n */\n meta?: {\n [key: string]: unknown\n }\n}\n\n/**\n *\n * Filtering is available for this endpoint. See [Filtering](/docs/api/pxm/files/get-all-files#filtering).\n *\n */\nexport type Filter = string\n\n/**\n * The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.\n */\nexport type PageOffset = string\n\n/**\n * The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.\n */\nexport type PageLimit = string\n\nexport type GetAllFilesData = {\n body?: never\n path?: never\n query?: {\n /**\n *\n * Filtering is available for this endpoint. See [Filtering](/docs/api/pxm/files/get-all-files#filtering).\n *\n */\n filter?: string\n /**\n * The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.\n */\n \"page[limit]\"?: string\n /**\n * The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.\n */\n \"page[offset]\"?: string\n }\n url: \"/v2/files\"\n}\n\nexport type GetAllFilesErrors = {\n /**\n * Bad request. The request failed validation.\n */\n 400: ErrorResponse\n /**\n * Internal server error. There was a system failure in the platform.\n */\n 500: ErrorResponse\n}\n\nexport type GetAllFilesError = GetAllFilesErrors[keyof GetAllFilesErrors]\n\nexport type GetAllFilesResponses = {\n /**\n * OK\n */\n 200: {\n data?: Array<File>\n meta?: ResultsMeta\n links?: ResultsLinks\n }\n}\n\nexport type GetAllFilesResponse =\n GetAllFilesResponses[keyof GetAllFilesResponses]\n\nexport type CreateAFileData = {\n body: {\n /**\n * Indicates the file you want to upload.\n */\n file?: Blob | File\n /**\n * Use this parameter to reference a file stored at a specific location. This must be the URL that points to an image file.\n */\n file_location?: string\n }\n path?: never\n query?: never\n url: \"/v2/files\"\n}\n\nexport type CreateAFileErrors = {\n /**\n * Bad request. The request failed validation.\n */\n 400: ErrorResponse\n /**\n * Bad request. The request failed validation.\n */\n 422: ErrorResponse\n /**\n * Internal server error. There was a system failure in the platform.\n */\n 500: ErrorResponse\n}\n\nexport type CreateAFileError = CreateAFileErrors[keyof CreateAFileErrors]\n\nexport type CreateAFileResponses = {\n /**\n * Created\n */\n 201: {\n data?: File\n }\n}\n\nexport type CreateAFileResponse =\n CreateAFileResponses[keyof CreateAFileResponses]\n\nexport type DeleteAFileData = {\n body?: never\n path: {\n /**\n * The unique identifier of the file you want to delete.\n */\n fileID: string\n }\n query?: never\n url: \"/v2/files/{fileID}\"\n}\n\nexport type DeleteAFileErrors = {\n /**\n * Bad request. The request failed validation.\n */\n 403: ErrorResponse\n /**\n * Forbidden. The operation is forbidden on this entity.\n */\n 404: ErrorResponse\n /**\n * Internal server error. There was a system failure in the platform.\n */\n 500: ErrorResponse\n}\n\nexport type DeleteAFileError = DeleteAFileErrors[keyof DeleteAFileErrors]\n\nexport type DeleteAFileResponses = {\n /**\n * No Content\n */\n 204: void\n}\n\nexport type DeleteAFileResponse =\n DeleteAFileResponses[keyof DeleteAFileResponses]\n\nexport type GetAFileData = {\n body?: never\n path: {\n /**\n * The unique identifier for a file.\n */\n fileID: string\n }\n query?: never\n url: \"/v2/files/{fileID}\"\n}\n\nexport type GetAFileErrors = {\n /**\n * Forbidden. The operation is forbidden on this entity.\n */\n 404: ErrorResponse\n /**\n * Internal server error. There was a system failure in the platform.\n */\n 500: ErrorResponse\n}\n\nexport type GetAFileError = GetAFileErrors[keyof GetAFileErrors]\n\nexport type GetAFileResponses = {\n 200: {\n data?: File\n }\n}\n\nexport type GetAFileResponse = GetAFileResponses[keyof GetAFileResponses]\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../src/client/types.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nexport type ClientOptions = {\n baseUrl:\n | \"https://euwest.api.elasticpath.com\"\n | \"https://useast.api.elasticpath.com\"\n | (string & {})\n}\n\nexport type ErrorResponse = {\n errors: Array<Error>\n}\n\nexport type File = {\n /**\n * The unique identifier for this file.\n */\n id?: Uuid\n /**\n * The type represents the object being returned.\n */\n type?: string\n /**\n * The name of the file.\n */\n file_name?: string\n /**\n * The mime type of the file.\n */\n mime_type?: string\n /**\n * The size of the file. Required when uploading files.\n */\n file_size?: number\n /**\n * DEPRECATED Whether the file public or not. Required when uploading files.\n */\n public?: boolean\n meta?: FileMeta\n links?: Links\n link?: FileLink\n}\n\nexport type FileMeta = {\n /**\n * The date and time the file was created.\n */\n timestamps?: {\n /**\n * The date and time the file was created.\n */\n created_at?: string\n }\n /**\n * The file dimensions.\n */\n dimensions?: {\n /**\n * The width of the file.\n */\n width?: number\n /**\n * The height of the file.\n */\n height?: number\n }\n}\n\nexport type ResultsMeta = {\n /**\n * Contains the results for the entire collection.\n */\n page?: {\n /**\n * The maximum number of records for all pages.\n */\n limit?: number\n /**\n * The current offset by number of pages.\n */\n offset?: number\n /**\n * The current number of pages.\n */\n current?: number\n /**\n * The total number of records for the entire collection.\n */\n total?: number\n }\n /**\n * Contains the results for the entire collection.\n */\n results?: {\n /**\n * The total number of records for the entire collection.\n */\n total?: number\n }\n}\n\n/**\n * Links are used to allow you to move between requests.\n */\nexport type Links = {\n /**\n * Single entities use a self parameter with a link to that specific resource.\n */\n self?: string\n}\n\n/**\n * Links are used to allow you to move between requests.\n */\nexport type ResultsLinks = {\n /**\n * Single entities use a self parameter with a link to that specific resource.\n */\n self?: string | null\n /**\n * The current page.\n */\n current?: string | null\n /**\n * Always the first page.\n */\n first?: string | null\n /**\n * This is `null` if there is only one page.\n */\n last?: string | null\n /**\n * The previous page. This is `null` if on the first page.\n */\n prev?: string | null\n /**\n * The next page. This is `null` if there is no next page.\n */\n next?: string | null\n}\n\n/**\n * The publicly available URL for this file.\n */\nexport type FileLink = {\n /**\n * The publicly available URL for this file.\n */\n href?: string\n}\n\nexport type Uuid = string\n\nexport type Error = {\n /**\n * The HTTP response code of the error.\n */\n status: number\n /**\n * A brief summary of the error.\n */\n title: string\n /**\n * Optional additional detail about the error.\n */\n detail?: string\n /**\n * Internal request ID.\n */\n request_id?: string\n /**\n * Additional supporting meta data for the error.\n */\n meta?: {\n [key: string]: unknown\n }\n}\n\n/**\n *\n * Filtering is available for this endpoint. See [Filtering](/docs/api/pxm/files/get-all-files#filtering).\n *\n */\nexport type Filter = string\n\n/**\n * The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.\n */\nexport type PageOffset = number\n\n/**\n * The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.\n */\nexport type PageLimit = number\n\nexport type GetAllFilesData = {\n body?: never\n path?: never\n query?: {\n /**\n *\n * Filtering is available for this endpoint. See [Filtering](/docs/api/pxm/files/get-all-files#filtering).\n *\n */\n filter?: string\n /**\n * The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.\n */\n \"page[limit]\"?: number\n /**\n * The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.\n */\n \"page[offset]\"?: number\n }\n url: \"/v2/files\"\n}\n\nexport type GetAllFilesErrors = {\n /**\n * Bad request. The request failed validation.\n */\n 400: ErrorResponse\n /**\n * Internal server error. There was a system failure in the platform.\n */\n 500: ErrorResponse\n}\n\nexport type GetAllFilesError = GetAllFilesErrors[keyof GetAllFilesErrors]\n\nexport type GetAllFilesResponses = {\n /**\n * OK\n */\n 200: {\n data?: Array<File>\n meta?: ResultsMeta\n links?: ResultsLinks\n }\n}\n\nexport type GetAllFilesResponse =\n GetAllFilesResponses[keyof GetAllFilesResponses]\n\nexport type CreateAFileData = {\n body: {\n /**\n * Indicates the file you want to upload.\n */\n file?: Blob | File\n /**\n * Use this parameter to reference a file stored at a specific location. This must be the URL that points to an image file.\n */\n file_location?: string\n }\n path?: never\n query?: never\n url: \"/v2/files\"\n}\n\nexport type CreateAFileErrors = {\n /**\n * Bad request. The request failed validation.\n */\n 400: ErrorResponse\n /**\n * Bad request. The request failed validation.\n */\n 422: ErrorResponse\n /**\n * Internal server error. There was a system failure in the platform.\n */\n 500: ErrorResponse\n}\n\nexport type CreateAFileError = CreateAFileErrors[keyof CreateAFileErrors]\n\nexport type CreateAFileResponses = {\n /**\n * Created\n */\n 201: {\n data?: File\n }\n}\n\nexport type CreateAFileResponse =\n CreateAFileResponses[keyof CreateAFileResponses]\n\nexport type DeleteAFileData = {\n body?: never\n path: {\n /**\n * The unique identifier of the file you want to delete.\n */\n fileID: string\n }\n query?: never\n url: \"/v2/files/{fileID}\"\n}\n\nexport type DeleteAFileErrors = {\n /**\n * Bad request. The request failed validation.\n */\n 403: ErrorResponse\n /**\n * Forbidden. The operation is forbidden on this entity.\n */\n 404: ErrorResponse\n /**\n * Internal server error. There was a system failure in the platform.\n */\n 500: ErrorResponse\n}\n\nexport type DeleteAFileError = DeleteAFileErrors[keyof DeleteAFileErrors]\n\nexport type DeleteAFileResponses = {\n /**\n * No Content\n */\n 204: void\n}\n\nexport type DeleteAFileResponse =\n DeleteAFileResponses[keyof DeleteAFileResponses]\n\nexport type GetAFileData = {\n body?: never\n path: {\n /**\n * The unique identifier for a file.\n */\n fileID: string\n }\n query?: never\n url: \"/v2/files/{fileID}\"\n}\n\nexport type GetAFileErrors = {\n /**\n * Forbidden. The operation is forbidden on this entity.\n */\n 404: ErrorResponse\n /**\n * Internal server error. There was a system failure in the platform.\n */\n 500: ErrorResponse\n}\n\nexport type GetAFileError = GetAFileErrors[keyof GetAFileErrors]\n\nexport type GetAFileResponses = {\n 200: {\n data?: File\n }\n}\n\nexport type GetAFileResponse = GetAFileResponses[keyof GetAFileResponses]\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -170,11 +170,11 @@ type Filter = string;
170
170
  /**
171
171
  * The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
172
172
  */
173
- type PageOffset = string;
173
+ type PageOffset = number;
174
174
  /**
175
175
  * The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
176
176
  */
177
- type PageLimit = string;
177
+ type PageLimit = number;
178
178
  type GetAllFilesData = {
179
179
  body?: never;
180
180
  path?: never;
@@ -188,11 +188,11 @@ type GetAllFilesData = {
188
188
  /**
189
189
  * The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
190
190
  */
191
- "page[limit]"?: string;
191
+ "page[limit]"?: number;
192
192
  /**
193
193
  * The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
194
194
  */
195
- "page[offset]"?: string;
195
+ "page[offset]"?: number;
196
196
  };
197
197
  url: "/v2/files";
198
198
  };
@@ -170,11 +170,11 @@ type Filter = string;
170
170
  /**
171
171
  * The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
172
172
  */
173
- type PageOffset = string;
173
+ type PageOffset = number;
174
174
  /**
175
175
  * The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
176
176
  */
177
- type PageLimit = string;
177
+ type PageLimit = number;
178
178
  type GetAllFilesData = {
179
179
  body?: never;
180
180
  path?: never;
@@ -188,11 +188,11 @@ type GetAllFilesData = {
188
188
  /**
189
189
  * The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
190
190
  */
191
- "page[limit]"?: string;
191
+ "page[limit]"?: number;
192
192
  /**
193
193
  * The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
194
194
  */
195
- "page[offset]"?: string;
195
+ "page[offset]"?: number;
196
196
  };
197
197
  url: "/v2/files";
198
198
  };
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
8
  var __export = (target, all) => {
7
9
  for (var name in all)
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
15
17
  }
16
18
  return to;
17
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
+ ));
18
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
29
  var zod_gen_exports = {};
20
30
  __export(zod_gen_exports, {
@@ -40,103 +50,183 @@ __export(zod_gen_exports, {
40
50
  zUuid: () => zUuid
41
51
  });
42
52
  module.exports = __toCommonJS(zod_gen_exports);
43
- var import_zod = require("zod");
44
- const zFileMeta = import_zod.z.object({
45
- timestamps: import_zod.z.object({
46
- created_at: import_zod.z.string().optional()
53
+ var z = __toESM(require("zod"), 1);
54
+ const zFileMeta = z.object({
55
+ timestamps: z.object({
56
+ created_at: z.string().register(z.globalRegistry, {
57
+ description: "The date and time the file was created."
58
+ }).optional()
59
+ }).register(z.globalRegistry, {
60
+ description: "The date and time the file was created."
47
61
  }).optional(),
48
- dimensions: import_zod.z.object({
49
- width: import_zod.z.number().int().optional(),
50
- height: import_zod.z.number().int().optional()
62
+ dimensions: z.object({
63
+ width: z.int().register(z.globalRegistry, {
64
+ description: "The width of the file."
65
+ }).optional(),
66
+ height: z.int().register(z.globalRegistry, {
67
+ description: "The height of the file."
68
+ }).optional()
69
+ }).register(z.globalRegistry, {
70
+ description: "The file dimensions."
51
71
  }).optional()
52
72
  });
53
- const zResultsMeta = import_zod.z.object({
54
- page: import_zod.z.object({
55
- limit: import_zod.z.number().int().optional(),
56
- offset: import_zod.z.number().int().optional(),
57
- current: import_zod.z.number().int().optional(),
58
- total: import_zod.z.number().int().optional()
73
+ const zResultsMeta = z.object({
74
+ page: z.object({
75
+ limit: z.int().register(z.globalRegistry, {
76
+ description: "The maximum number of records for all pages."
77
+ }).optional(),
78
+ offset: z.int().register(z.globalRegistry, {
79
+ description: "The current offset by number of pages."
80
+ }).optional(),
81
+ current: z.int().register(z.globalRegistry, {
82
+ description: "The current number of pages."
83
+ }).optional(),
84
+ total: z.int().register(z.globalRegistry, {
85
+ description: "The total number of records for the entire collection."
86
+ }).optional()
87
+ }).register(z.globalRegistry, {
88
+ description: "Contains the results for the entire collection."
59
89
  }).optional(),
60
- results: import_zod.z.object({
61
- total: import_zod.z.number().int().optional()
90
+ results: z.object({
91
+ total: z.int().register(z.globalRegistry, {
92
+ description: "The total number of records for the entire collection."
93
+ }).optional()
94
+ }).register(z.globalRegistry, {
95
+ description: "Contains the results for the entire collection."
62
96
  }).optional()
63
97
  });
64
- const zLinks = import_zod.z.object({
65
- self: import_zod.z.string().optional()
66
- });
67
- const zResultsLinks = import_zod.z.object({
68
- self: import_zod.z.string().nullish(),
69
- current: import_zod.z.string().nullish(),
70
- first: import_zod.z.string().nullish(),
71
- last: import_zod.z.string().nullish(),
72
- prev: import_zod.z.string().nullish(),
73
- next: import_zod.z.string().nullish()
74
- });
75
- const zFileLink = import_zod.z.object({
76
- href: import_zod.z.string().optional()
98
+ const zLinks = z.object({
99
+ self: z.string().register(z.globalRegistry, {
100
+ description: "Single entities use a self parameter with a link to that specific resource."
101
+ }).optional()
102
+ }).register(z.globalRegistry, {
103
+ description: "Links are used to allow you to move between requests."
104
+ });
105
+ const zResultsLinks = z.object({
106
+ self: z.string().nullish(),
107
+ current: z.string().nullish(),
108
+ first: z.string().nullish(),
109
+ last: z.string().nullish(),
110
+ prev: z.string().nullish(),
111
+ next: z.string().nullish()
112
+ }).register(z.globalRegistry, {
113
+ description: "Links are used to allow you to move between requests."
114
+ });
115
+ const zFileLink = z.object({
116
+ href: z.string().register(z.globalRegistry, {
117
+ description: "The publicly available URL for this file."
118
+ }).optional()
119
+ }).register(z.globalRegistry, {
120
+ description: "The publicly available URL for this file."
77
121
  });
78
- const zUuid = import_zod.z.string().uuid();
79
- const zFile = import_zod.z.object({
122
+ const zUuid = z.uuid();
123
+ const zFile = z.object({
80
124
  id: zUuid.optional(),
81
- type: import_zod.z.string().optional(),
82
- file_name: import_zod.z.string().optional(),
83
- mime_type: import_zod.z.string().optional(),
84
- file_size: import_zod.z.number().int().optional(),
85
- public: import_zod.z.boolean().optional(),
125
+ type: z.string().register(z.globalRegistry, {
126
+ description: "The type represents the object being returned."
127
+ }).optional(),
128
+ file_name: z.string().register(z.globalRegistry, {
129
+ description: "The name of the file."
130
+ }).optional(),
131
+ mime_type: z.string().register(z.globalRegistry, {
132
+ description: "The mime type of the file."
133
+ }).optional(),
134
+ file_size: z.int().register(z.globalRegistry, {
135
+ description: "The size of the file. Required when uploading files."
136
+ }).optional(),
137
+ public: z.boolean().register(z.globalRegistry, {
138
+ description: "DEPRECATED Whether the file public or not. Required when uploading files."
139
+ }).optional(),
86
140
  meta: zFileMeta.optional(),
87
141
  links: zLinks.optional(),
88
142
  link: zFileLink.optional()
89
143
  });
90
- const zError = import_zod.z.object({
91
- status: import_zod.z.number().int(),
92
- title: import_zod.z.string(),
93
- detail: import_zod.z.string().optional(),
94
- request_id: import_zod.z.string().optional(),
95
- meta: import_zod.z.record(import_zod.z.unknown()).optional()
144
+ const zError = z.object({
145
+ status: z.int().register(z.globalRegistry, {
146
+ description: "The HTTP response code of the error."
147
+ }),
148
+ title: z.string().register(z.globalRegistry, {
149
+ description: "A brief summary of the error."
150
+ }),
151
+ detail: z.string().register(z.globalRegistry, {
152
+ description: "Optional additional detail about the error."
153
+ }).optional(),
154
+ request_id: z.string().register(z.globalRegistry, {
155
+ description: "Internal request ID."
156
+ }).optional(),
157
+ meta: z.record(z.string(), z.unknown()).register(z.globalRegistry, {
158
+ description: "Additional supporting meta data for the error."
159
+ }).optional()
160
+ });
161
+ const zErrorResponse = z.object({
162
+ errors: z.array(zError)
96
163
  });
97
- const zErrorResponse = import_zod.z.object({
98
- errors: import_zod.z.array(zError)
164
+ const zFilter = z.string().register(z.globalRegistry, {
165
+ description: "\nFiltering is available for this endpoint. See [Filtering](/docs/api/pxm/files/get-all-files#filtering).\n"
99
166
  });
100
- const zFilter = import_zod.z.string();
101
- const zPageOffset = import_zod.z.preprocess(
167
+ const zPageOffset = z.preprocess(
102
168
  (v) => typeof v === "string" ? Number(v) : v,
103
- import_zod.z.number().int().gte(0).lte(1e4)
104
- );
105
- const zPageLimit = import_zod.z.preprocess(
169
+ z.number().int().gte(0).lte(1e4)
170
+ ).register(z.globalRegistry, {
171
+ description: "The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used."
172
+ });
173
+ const zPageLimit = z.preprocess(
106
174
  (v) => typeof v === "string" ? Number(v) : v,
107
- import_zod.z.number().int().gte(0).lte(1e4)
108
- );
109
- const zGetAllFilesQuery = import_zod.z.object({
110
- filter: import_zod.z.string().optional(),
111
- "page[limit]": import_zod.z.preprocess(
175
+ z.number().int().gte(0).lte(1e4)
176
+ ).register(z.globalRegistry, {
177
+ description: "The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used."
178
+ });
179
+ const zGetAllFilesQuery = z.object({
180
+ filter: z.string().register(z.globalRegistry, {
181
+ description: "\nFiltering is available for this endpoint. See [Filtering](/docs/api/pxm/files/get-all-files#filtering).\n"
182
+ }).optional(),
183
+ "page[limit]": z.preprocess(
112
184
  (v) => typeof v === "string" ? Number(v) : v,
113
- import_zod.z.number().int().gte(0).lte(1e4)
114
- ).optional(),
115
- "page[offset]": import_zod.z.preprocess(
185
+ z.number().int().gte(0).lte(1e4)
186
+ ).register(z.globalRegistry, {
187
+ description: "The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used."
188
+ }).optional(),
189
+ "page[offset]": z.preprocess(
116
190
  (v) => typeof v === "string" ? Number(v) : v,
117
- import_zod.z.number().int().gte(0).lte(1e4)
118
- ).optional()
191
+ z.number().int().gte(0).lte(1e4)
192
+ ).register(z.globalRegistry, {
193
+ description: "The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used."
194
+ }).optional()
119
195
  });
120
- const zGetAllFilesResponse = import_zod.z.object({
121
- data: import_zod.z.array(zFile).optional(),
196
+ const zGetAllFilesResponse = z.object({
197
+ data: z.array(zFile).optional(),
122
198
  meta: zResultsMeta.optional(),
123
199
  links: zResultsLinks.optional()
200
+ }).register(z.globalRegistry, {
201
+ description: "OK"
124
202
  });
125
- const zCreateAFileBody = import_zod.z.object({
126
- file: import_zod.z.string().optional(),
127
- file_location: import_zod.z.string().optional()
203
+ const zCreateAFileBody = z.object({
204
+ file: z.string().register(z.globalRegistry, {
205
+ description: "Indicates the file you want to upload."
206
+ }).optional(),
207
+ file_location: z.string().register(z.globalRegistry, {
208
+ description: "Use this parameter to reference a file stored at a specific location. This must be the URL that points to an image file."
209
+ }).optional()
128
210
  });
129
- const zCreateAFileResponse = import_zod.z.object({
211
+ const zCreateAFileResponse = z.object({
130
212
  data: zFile.optional()
213
+ }).register(z.globalRegistry, {
214
+ description: "Created"
215
+ });
216
+ const zDeleteAFilePath = z.object({
217
+ fileID: z.string().register(z.globalRegistry, {
218
+ description: "The unique identifier of the file you want to delete."
219
+ })
131
220
  });
132
- const zDeleteAFilePath = import_zod.z.object({
133
- fileID: import_zod.z.string()
221
+ const zDeleteAFileResponse = z.void().register(z.globalRegistry, {
222
+ description: "No Content"
134
223
  });
135
- const zDeleteAFileResponse = import_zod.z.void();
136
- const zGetAFilePath = import_zod.z.object({
137
- fileID: import_zod.z.string()
224
+ const zGetAFilePath = z.object({
225
+ fileID: z.string().register(z.globalRegistry, {
226
+ description: "The unique identifier for a file."
227
+ })
138
228
  });
139
- const zGetAFileResponse = import_zod.z.object({
229
+ const zGetAFileResponse = z.object({
140
230
  data: zFile.optional()
141
231
  });
142
232
  // Annotate the CommonJS export names for ESM import in node:
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/client/zod.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport { z } from \"zod\"\n\nexport const zFileMeta = z.object({\n timestamps: z\n .object({\n created_at: z.string().optional(),\n })\n .optional(),\n dimensions: z\n .object({\n width: z.number().int().optional(),\n height: z.number().int().optional(),\n })\n .optional(),\n})\n\nexport const zResultsMeta = z.object({\n page: z\n .object({\n limit: z.number().int().optional(),\n offset: z.number().int().optional(),\n current: z.number().int().optional(),\n total: z.number().int().optional(),\n })\n .optional(),\n results: z\n .object({\n total: z.number().int().optional(),\n })\n .optional(),\n})\n\n/**\n * Links are used to allow you to move between requests.\n */\nexport const zLinks = z.object({\n self: z.string().optional(),\n})\n\n/**\n * Links are used to allow you to move between requests.\n */\nexport const zResultsLinks = z.object({\n self: z.string().nullish(),\n current: z.string().nullish(),\n first: z.string().nullish(),\n last: z.string().nullish(),\n prev: z.string().nullish(),\n next: z.string().nullish(),\n})\n\n/**\n * The publicly available URL for this file.\n */\nexport const zFileLink = z.object({\n href: z.string().optional(),\n})\n\nexport const zUuid = z.string().uuid()\n\nexport const zFile = z.object({\n id: zUuid.optional(),\n type: z.string().optional(),\n file_name: z.string().optional(),\n mime_type: z.string().optional(),\n file_size: z.number().int().optional(),\n public: z.boolean().optional(),\n meta: zFileMeta.optional(),\n links: zLinks.optional(),\n link: zFileLink.optional(),\n})\n\nexport const zError = z.object({\n status: z.number().int(),\n title: z.string(),\n detail: z.string().optional(),\n request_id: z.string().optional(),\n meta: z.record(z.unknown()).optional(),\n})\n\nexport const zErrorResponse = z.object({\n errors: z.array(zError),\n})\n\n/**\n *\n * Filtering is available for this endpoint. See [Filtering](/docs/api/pxm/files/get-all-files#filtering).\n *\n */\nexport const zFilter = z.string()\n\n/**\n * The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.\n */\nexport const zPageOffset = z.preprocess(\n (v) => (typeof v === \"string\" ? Number(v) : v),\n z.number().int().gte(0).lte(10000),\n)\n\n/**\n * The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.\n */\nexport const zPageLimit = z.preprocess(\n (v) => (typeof v === \"string\" ? Number(v) : v),\n z.number().int().gte(0).lte(10000),\n)\n\nexport const zGetAllFilesQuery = z.object({\n filter: z.string().optional(),\n \"page[limit]\": z\n .preprocess(\n (v) => (typeof v === \"string\" ? Number(v) : v),\n z.number().int().gte(0).lte(10000),\n )\n .optional(),\n \"page[offset]\": z\n .preprocess(\n (v) => (typeof v === \"string\" ? Number(v) : v),\n z.number().int().gte(0).lte(10000),\n )\n .optional(),\n})\n\n/**\n * OK\n */\nexport const zGetAllFilesResponse = z.object({\n data: z.array(zFile).optional(),\n meta: zResultsMeta.optional(),\n links: zResultsLinks.optional(),\n})\n\nexport const zCreateAFileBody = z.object({\n file: z.string().optional(),\n file_location: z.string().optional(),\n})\n\n/**\n * Created\n */\nexport const zCreateAFileResponse = z.object({\n data: zFile.optional(),\n})\n\nexport const zDeleteAFilePath = z.object({\n fileID: z.string(),\n})\n\n/**\n * No Content\n */\nexport const zDeleteAFileResponse = z.void()\n\nexport const zGetAFilePath = z.object({\n fileID: z.string(),\n})\n\nexport const zGetAFileResponse = z.object({\n data: zFile.optional(),\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,iBAAkB;AAEX,MAAM,YAAY,aAAE,OAAO;AAAA,EAChC,YAAY,aACT,OAAO;AAAA,IACN,YAAY,aAAE,OAAO,EAAE,SAAS;AAAA,EAClC,CAAC,EACA,SAAS;AAAA,EACZ,YAAY,aACT,OAAO;AAAA,IACN,OAAO,aAAE,OAAO,EAAE,IAAI,EAAE,SAAS;AAAA,IACjC,QAAQ,aAAE,OAAO,EAAE,IAAI,EAAE,SAAS;AAAA,EACpC,CAAC,EACA,SAAS;AACd,CAAC;AAEM,MAAM,eAAe,aAAE,OAAO;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,CAAC;AAKM,MAAM,uBAAuB,aAAE,OAAO;AAAA,EAC3C,MAAM,aAAE,MAAM,KAAK,EAAE,SAAS;AAAA,EAC9B,MAAM,aAAa,SAAS;AAAA,EAC5B,OAAO,cAAc,SAAS;AAChC,CAAC;AAEM,MAAM,mBAAmB,aAAE,OAAO;AAAA,EACvC,MAAM,aAAE,OAAO,EAAE,SAAS;AAAA,EAC1B,eAAe,aAAE,OAAO,EAAE,SAAS;AACrC,CAAC;AAKM,MAAM,uBAAuB,aAAE,OAAO;AAAA,EAC3C,MAAM,MAAM,SAAS;AACvB,CAAC;AAEM,MAAM,mBAAmB,aAAE,OAAO;AAAA,EACvC,QAAQ,aAAE,OAAO;AACnB,CAAC;AAKM,MAAM,uBAAuB,aAAE,KAAK;AAEpC,MAAM,gBAAgB,aAAE,OAAO;AAAA,EACpC,QAAQ,aAAE,OAAO;AACnB,CAAC;AAEM,MAAM,oBAAoB,aAAE,OAAO;AAAA,EACxC,MAAM,MAAM,SAAS;AACvB,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/client/zod.gen.ts"],"sourcesContent":["// This file is auto-generated by @hey-api/openapi-ts\n\nimport * as z from \"zod\"\n\nexport const zFileMeta = z.object({\n timestamps: z\n .object({\n created_at: z\n .string()\n .register(z.globalRegistry, {\n description: \"The date and time the file was created.\",\n })\n .optional(),\n })\n .register(z.globalRegistry, {\n description: \"The date and time the file was created.\",\n })\n .optional(),\n dimensions: z\n .object({\n width: z\n .int()\n .register(z.globalRegistry, {\n description: \"The width of the file.\",\n })\n .optional(),\n height: z\n .int()\n .register(z.globalRegistry, {\n description: \"The height of the file.\",\n })\n .optional(),\n })\n .register(z.globalRegistry, {\n description: \"The file dimensions.\",\n })\n .optional(),\n})\n\nexport const zResultsMeta = z.object({\n page: z\n .object({\n limit: z\n .int()\n .register(z.globalRegistry, {\n description: \"The maximum number of records for all pages.\",\n })\n .optional(),\n offset: z\n .int()\n .register(z.globalRegistry, {\n description: \"The current offset by number of pages.\",\n })\n .optional(),\n current: z\n .int()\n .register(z.globalRegistry, {\n description: \"The current number of pages.\",\n })\n .optional(),\n total: z\n .int()\n .register(z.globalRegistry, {\n description: \"The total number of records for the entire collection.\",\n })\n .optional(),\n })\n .register(z.globalRegistry, {\n description: \"Contains the results for the entire collection.\",\n })\n .optional(),\n results: z\n .object({\n total: z\n .int()\n .register(z.globalRegistry, {\n description: \"The total number of records for the entire collection.\",\n })\n .optional(),\n })\n .register(z.globalRegistry, {\n description: \"Contains the results for the entire collection.\",\n })\n .optional(),\n})\n\n/**\n * Links are used to allow you to move between requests.\n */\nexport const zLinks = z\n .object({\n self: z\n .string()\n .register(z.globalRegistry, {\n description:\n \"Single entities use a self parameter with a link to that specific resource.\",\n })\n .optional(),\n })\n .register(z.globalRegistry, {\n description: \"Links are used to allow you to move between requests.\",\n })\n\n/**\n * Links are used to allow you to move between requests.\n */\nexport const zResultsLinks = z\n .object({\n self: z.string().nullish(),\n current: z.string().nullish(),\n first: z.string().nullish(),\n last: z.string().nullish(),\n prev: z.string().nullish(),\n next: z.string().nullish(),\n })\n .register(z.globalRegistry, {\n description: \"Links are used to allow you to move between requests.\",\n })\n\n/**\n * The publicly available URL for this file.\n */\nexport const zFileLink = z\n .object({\n href: z\n .string()\n .register(z.globalRegistry, {\n description: \"The publicly available URL for this file.\",\n })\n .optional(),\n })\n .register(z.globalRegistry, {\n description: \"The publicly available URL for this file.\",\n })\n\nexport const zUuid = z.uuid()\n\nexport const zFile = z.object({\n id: zUuid.optional(),\n type: z\n .string()\n .register(z.globalRegistry, {\n description: \"The type represents the object being returned.\",\n })\n .optional(),\n file_name: z\n .string()\n .register(z.globalRegistry, {\n description: \"The name of the file.\",\n })\n .optional(),\n mime_type: z\n .string()\n .register(z.globalRegistry, {\n description: \"The mime type of the file.\",\n })\n .optional(),\n file_size: z\n .int()\n .register(z.globalRegistry, {\n description: \"The size of the file. Required when uploading files.\",\n })\n .optional(),\n public: z\n .boolean()\n .register(z.globalRegistry, {\n description:\n \"DEPRECATED Whether the file public or not. Required when uploading files.\",\n })\n .optional(),\n meta: zFileMeta.optional(),\n links: zLinks.optional(),\n link: zFileLink.optional(),\n})\n\nexport const zError = z.object({\n status: z.int().register(z.globalRegistry, {\n description: \"The HTTP response code of the error.\",\n }),\n title: z.string().register(z.globalRegistry, {\n description: \"A brief summary of the error.\",\n }),\n detail: z\n .string()\n .register(z.globalRegistry, {\n description: \"Optional additional detail about the error.\",\n })\n .optional(),\n request_id: z\n .string()\n .register(z.globalRegistry, {\n description: \"Internal request ID.\",\n })\n .optional(),\n meta: z\n .record(z.string(), z.unknown())\n .register(z.globalRegistry, {\n description: \"Additional supporting meta data for the error.\",\n })\n .optional(),\n})\n\nexport const zErrorResponse = z.object({\n errors: z.array(zError),\n})\n\n/**\n *\n * Filtering is available for this endpoint. See [Filtering](/docs/api/pxm/files/get-all-files#filtering).\n *\n */\nexport const zFilter = z.string().register(z.globalRegistry, {\n description:\n \"\\nFiltering is available for this endpoint. See [Filtering](/docs/api/pxm/files/get-all-files#filtering).\\n\",\n})\n\n/**\n * The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.\n */\nexport const zPageOffset = z\n .preprocess(\n (v) => (typeof v === \"string\" ? Number(v) : v),\n z.number().int().gte(0).lte(10000),\n )\n .register(z.globalRegistry, {\n description:\n \"The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.\",\n })\n\n/**\n * The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.\n */\nexport const zPageLimit = z\n .preprocess(\n (v) => (typeof v === \"string\" ? Number(v) : v),\n z.number().int().gte(0).lte(10000),\n )\n .register(z.globalRegistry, {\n description:\n \"The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.\",\n })\n\nexport const zGetAllFilesQuery = z.object({\n filter: z\n .string()\n .register(z.globalRegistry, {\n description:\n \"\\nFiltering is available for this endpoint. See [Filtering](/docs/api/pxm/files/get-all-files#filtering).\\n\",\n })\n .optional(),\n \"page[limit]\": z\n .preprocess(\n (v) => (typeof v === \"string\" ? Number(v) : v),\n z.number().int().gte(0).lte(10000),\n )\n .register(z.globalRegistry, {\n description:\n \"The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.\",\n })\n .optional(),\n \"page[offset]\": z\n .preprocess(\n (v) => (typeof v === \"string\" ? Number(v) : v),\n z.number().int().gte(0).lte(10000),\n )\n .register(z.globalRegistry, {\n description:\n \"The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.\",\n })\n .optional(),\n})\n\n/**\n * OK\n */\nexport const zGetAllFilesResponse = z\n .object({\n data: z.array(zFile).optional(),\n meta: zResultsMeta.optional(),\n links: zResultsLinks.optional(),\n })\n .register(z.globalRegistry, {\n description: \"OK\",\n })\n\nexport const zCreateAFileBody = z.object({\n file: z\n .string()\n .register(z.globalRegistry, {\n description: \"Indicates the file you want to upload.\",\n })\n .optional(),\n file_location: z\n .string()\n .register(z.globalRegistry, {\n description:\n \"Use this parameter to reference a file stored at a specific location. This must be the URL that points to an image file.\",\n })\n .optional(),\n})\n\n/**\n * Created\n */\nexport const zCreateAFileResponse = z\n .object({\n data: zFile.optional(),\n })\n .register(z.globalRegistry, {\n description: \"Created\",\n })\n\nexport const zDeleteAFilePath = z.object({\n fileID: z.string().register(z.globalRegistry, {\n description: \"The unique identifier of the file you want to delete.\",\n }),\n})\n\n/**\n * No Content\n */\nexport const zDeleteAFileResponse = z.void().register(z.globalRegistry, {\n description: \"No Content\",\n})\n\nexport const zGetAFilePath = z.object({\n fileID: z.string().register(z.globalRegistry, {\n description: \"The unique identifier for a file.\",\n }),\n})\n\nexport const zGetAFileResponse = z.object({\n data: zFile.optional(),\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,QAAmB;AAEZ,MAAM,YAAY,EAAE,OAAO;AAAA,EAChC,YAAY,EACT,OAAO;AAAA,IACN,YAAY,EACT,OAAO,EACP,SAAS,EAAE,gBAAgB;AAAA,MAC1B,aAAa;AAAA,IACf,CAAC,EACA,SAAS;AAAA,EACd,CAAC,EACA,SAAS,EAAE,gBAAgB;AAAA,IAC1B,aAAa;AAAA,EACf,CAAC,EACA,SAAS;AAAA,EACZ,YAAY,EACT,OAAO;AAAA,IACN,OAAO,EACJ,IAAI,EACJ,SAAS,EAAE,gBAAgB;AAAA,MAC1B,aAAa;AAAA,IACf,CAAC,EACA,SAAS;AAAA,IACZ,QAAQ,EACL,IAAI,EACJ,SAAS,EAAE,gBAAgB;AAAA,MAC1B,aAAa;AAAA,IACf,CAAC,EACA,SAAS;AAAA,EACd,CAAC,EACA,SAAS,EAAE,gBAAgB;AAAA,IAC1B,aAAa;AAAA,EACf,CAAC,EACA,SAAS;AACd,CAAC;AAEM,MAAM,eAAe,EAAE,OAAO;AAAA,EACnC,MAAM,EACH,OAAO;AAAA,IACN,OAAO,EACJ,IAAI,EACJ,SAAS,EAAE,gBAAgB;AAAA,MAC1B,aAAa;AAAA,IACf,CAAC,EACA,SAAS;AAAA,IACZ,QAAQ,EACL,IAAI,EACJ,SAAS,EAAE,gBAAgB;AAAA,MAC1B,aAAa;AAAA,IACf,CAAC,EACA,SAAS;AAAA,IACZ,SAAS,EACN,IAAI,EACJ,SAAS,EAAE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