@wix/auto_sdk_stores_collections 1.0.40 → 1.0.41

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,549 @@
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
+ // schemas.ts
31
+ var schemas_exports = {};
32
+ __export(schemas_exports, {
33
+ GetCollectionBySlugRequest: () => GetCollectionBySlugRequest,
34
+ GetCollectionBySlugResponse: () => GetCollectionBySlugResponse,
35
+ GetCollectionRequest: () => GetCollectionRequest,
36
+ GetCollectionResponse: () => GetCollectionResponse,
37
+ QueryCollectionsRequest: () => QueryCollectionsRequest,
38
+ QueryCollectionsResponse: () => QueryCollectionsResponse
39
+ });
40
+ module.exports = __toCommonJS(schemas_exports);
41
+
42
+ // src/stores-catalog-v1-collection-collections.schemas.ts
43
+ var z = __toESM(require("zod"));
44
+ var QueryCollectionsRequest = z.object({
45
+ query: z.intersection(
46
+ z.object({
47
+ filter: z.record(z.string(), z.any()).describe("Filter object.").optional().nullable(),
48
+ sort: z.array(
49
+ z.object({
50
+ fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
51
+ order: z.enum(["ASC", "DESC"]).optional()
52
+ })
53
+ ).optional()
54
+ }),
55
+ z.xor([
56
+ z.object({
57
+ paging: z.never().optional(),
58
+ cursorPaging: z.never().optional()
59
+ }),
60
+ z.object({
61
+ cursorPaging: z.never().optional(),
62
+ paging: z.object({
63
+ limit: z.number().int().describe("Number of items to load.").min(0).max(100).optional().nullable(),
64
+ offset: z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
65
+ }).describe(
66
+ "Pointer to page of results using offset. Cannot be used together with `cursorPaging`."
67
+ )
68
+ }),
69
+ z.object({
70
+ paging: z.never().optional(),
71
+ cursorPaging: z.object({
72
+ limit: z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
73
+ cursor: z.string().describe(
74
+ "Pointer to the next or previous page in the list of results.\n\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
75
+ ).max(16e3).optional().nullable()
76
+ }).describe(
77
+ "Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`."
78
+ )
79
+ })
80
+ ])
81
+ )
82
+ });
83
+ var QueryCollectionsResponse = z.object({
84
+ collections: z.array(
85
+ z.object({
86
+ _id: z.string().describe("Collection ID (generated automatically by the catalog).").min(35).max(36).optional().nullable(),
87
+ name: z.string().describe("Collection name.").min(1).max(50).optional().nullable(),
88
+ media: z.object({
89
+ mainMedia: z.intersection(
90
+ z.object({
91
+ thumbnail: z.object({
92
+ url: z.string().describe("Media item URL.").url().optional(),
93
+ width: z.number().int().describe("Media item width.").min(0).optional(),
94
+ height: z.number().int().describe("Media item height.").min(0).optional(),
95
+ format: z.string().describe("Media format (mp4, png, etc.).").optional().nullable(),
96
+ altText: z.string().describe(
97
+ "Alt text. This text will be shown in case the image is not available."
98
+ ).optional().nullable()
99
+ }).describe("Media item thumbnail details.").optional(),
100
+ mediaType: z.enum([
101
+ "unspecified_media_item_type",
102
+ "image",
103
+ "video",
104
+ "audio",
105
+ "document",
106
+ "zip"
107
+ ]).describe("Media item type (image, video, etc.).").optional(),
108
+ title: z.string().describe("Media item title.").optional(),
109
+ _id: z.string().describe(
110
+ 'Media ID (for example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`).'
111
+ ).optional()
112
+ }),
113
+ z.xor([
114
+ z.object({
115
+ image: z.never().optional(),
116
+ video: z.never().optional()
117
+ }),
118
+ z.object({
119
+ video: z.never().optional(),
120
+ image: z.object({
121
+ url: z.string().describe("Media item URL.").url().optional(),
122
+ width: z.number().int().describe("Media item width.").min(0).optional(),
123
+ height: z.number().int().describe("Media item height.").min(0).optional(),
124
+ format: z.string().describe("Media format (mp4, png, etc.).").optional().nullable(),
125
+ altText: z.string().describe(
126
+ "Alt text. This text will be shown in case the image is not available."
127
+ ).optional().nullable()
128
+ }).describe("Image data (URL, size).")
129
+ }),
130
+ z.object({
131
+ image: z.never().optional(),
132
+ video: z.object({
133
+ files: z.array(
134
+ z.object({
135
+ url: z.string().describe("Media item URL.").url().optional(),
136
+ width: z.number().int().describe("Media item width.").min(0).optional(),
137
+ height: z.number().int().describe("Media item height.").min(0).optional(),
138
+ format: z.string().describe("Media format (mp4, png, etc.).").optional().nullable(),
139
+ altText: z.string().describe(
140
+ "Alt text. This text will be shown in case the image is not available."
141
+ ).optional().nullable()
142
+ })
143
+ ).optional(),
144
+ stillFrameMediaId: z.string().describe(
145
+ 'ID of an image taken from the video. Used primarily for Wix Search indexing. For example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`.'
146
+ ).optional()
147
+ }).describe("Video data (URL, size).")
148
+ })
149
+ ])
150
+ ).describe(
151
+ "Primary media (image, video etc) associated with this product."
152
+ ).optional(),
153
+ items: z.array(
154
+ z.intersection(
155
+ z.object({
156
+ thumbnail: z.object({
157
+ url: z.string().describe("Media item URL.").url().optional(),
158
+ width: z.number().int().describe("Media item width.").min(0).optional(),
159
+ height: z.number().int().describe("Media item height.").min(0).optional(),
160
+ format: z.string().describe("Media format (mp4, png, etc.).").optional().nullable(),
161
+ altText: z.string().describe(
162
+ "Alt text. This text will be shown in case the image is not available."
163
+ ).optional().nullable()
164
+ }).describe("Media item thumbnail details.").optional(),
165
+ mediaType: z.enum([
166
+ "unspecified_media_item_type",
167
+ "image",
168
+ "video",
169
+ "audio",
170
+ "document",
171
+ "zip"
172
+ ]).describe("Media item type (image, video, etc.).").optional(),
173
+ title: z.string().describe("Media item title.").optional(),
174
+ _id: z.string().describe(
175
+ 'Media ID (for example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`).'
176
+ ).optional()
177
+ }),
178
+ z.xor([
179
+ z.object({
180
+ image: z.never().optional(),
181
+ video: z.never().optional()
182
+ }),
183
+ z.object({
184
+ video: z.never().optional(),
185
+ image: z.object({
186
+ url: z.string().describe("Media item URL.").url().optional(),
187
+ width: z.number().int().describe("Media item width.").min(0).optional(),
188
+ height: z.number().int().describe("Media item height.").min(0).optional(),
189
+ format: z.string().describe("Media format (mp4, png, etc.).").optional().nullable(),
190
+ altText: z.string().describe(
191
+ "Alt text. This text will be shown in case the image is not available."
192
+ ).optional().nullable()
193
+ }).describe("Image data (URL, size).")
194
+ }),
195
+ z.object({
196
+ image: z.never().optional(),
197
+ video: z.object({
198
+ files: z.array(
199
+ z.object({
200
+ url: z.string().describe("Media item URL.").url().optional(),
201
+ width: z.number().int().describe("Media item width.").min(0).optional(),
202
+ height: z.number().int().describe("Media item height.").min(0).optional(),
203
+ format: z.string().describe("Media format (mp4, png, etc.).").optional().nullable(),
204
+ altText: z.string().describe(
205
+ "Alt text. This text will be shown in case the image is not available."
206
+ ).optional().nullable()
207
+ })
208
+ ).optional(),
209
+ stillFrameMediaId: z.string().describe(
210
+ 'ID of an image taken from the video. Used primarily for Wix Search indexing. For example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`.'
211
+ ).optional()
212
+ }).describe("Video data (URL, size).")
213
+ })
214
+ ])
215
+ )
216
+ ).optional()
217
+ }).describe(
218
+ "Media items (images, videos etc) associated with this collection. Read only."
219
+ ).optional(),
220
+ numberOfProducts: z.number().int().describe("Number of products in the collection. Read only.").optional(),
221
+ description: z.string().describe("Collection description.").min(0).max(600).optional().nullable(),
222
+ slug: z.string().describe("Collection slug.").min(1).max(100).optional().nullable(),
223
+ visible: z.boolean().describe(
224
+ "Collection visibility. Only impacts dynamic pages, no impact on static pages. Default: `true`."
225
+ ).optional().nullable()
226
+ })
227
+ ).max(100).optional(),
228
+ metadata: z.object({
229
+ count: z.number().int().describe("The number of items returned in this response.").optional().nullable(),
230
+ offset: z.number().int().describe(
231
+ "The offset which was requested. Returned if offset paging was used."
232
+ ).optional().nullable(),
233
+ total: z.number().int().describe(
234
+ "The total number of items that match the query. Returned if offset paging was used."
235
+ ).optional().nullable(),
236
+ cursors: z.object({
237
+ next: z.string().describe(
238
+ "Cursor string pointing to the next page in the list of results."
239
+ ).max(16e3).optional().nullable(),
240
+ prev: z.string().describe(
241
+ "Cursor pointing to the previous page in the list of results."
242
+ ).max(16e3).optional().nullable()
243
+ }).describe(
244
+ "Cursors to navigate through result pages. Returned if cursor paging was used."
245
+ ).optional()
246
+ }).optional()
247
+ });
248
+ var GetCollectionRequest = z.object({
249
+ _id: z.string().describe("Requested collection ID.")
250
+ });
251
+ var GetCollectionResponse = z.object({
252
+ _id: z.string().describe("Collection ID (generated automatically by the catalog).").min(35).max(36).optional().nullable(),
253
+ name: z.string().describe("Collection name.").min(1).max(50).optional().nullable(),
254
+ media: z.object({
255
+ mainMedia: z.intersection(
256
+ z.object({
257
+ thumbnail: z.object({
258
+ url: z.string().describe("Media item URL.").url().optional(),
259
+ width: z.number().int().describe("Media item width.").min(0).optional(),
260
+ height: z.number().int().describe("Media item height.").min(0).optional(),
261
+ format: z.string().describe("Media format (mp4, png, etc.).").optional().nullable(),
262
+ altText: z.string().describe(
263
+ "Alt text. This text will be shown in case the image is not available."
264
+ ).optional().nullable()
265
+ }).describe("Media item thumbnail details.").optional(),
266
+ mediaType: z.enum([
267
+ "unspecified_media_item_type",
268
+ "image",
269
+ "video",
270
+ "audio",
271
+ "document",
272
+ "zip"
273
+ ]).describe("Media item type (image, video, etc.).").optional(),
274
+ title: z.string().describe("Media item title.").optional(),
275
+ _id: z.string().describe(
276
+ 'Media ID (for example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`).'
277
+ ).optional()
278
+ }),
279
+ z.xor([
280
+ z.object({
281
+ image: z.never().optional(),
282
+ video: z.never().optional()
283
+ }),
284
+ z.object({
285
+ video: z.never().optional(),
286
+ image: z.object({
287
+ url: z.string().describe("Media item URL.").url().optional(),
288
+ width: z.number().int().describe("Media item width.").min(0).optional(),
289
+ height: z.number().int().describe("Media item height.").min(0).optional(),
290
+ format: z.string().describe("Media format (mp4, png, etc.).").optional().nullable(),
291
+ altText: z.string().describe(
292
+ "Alt text. This text will be shown in case the image is not available."
293
+ ).optional().nullable()
294
+ }).describe("Image data (URL, size).")
295
+ }),
296
+ z.object({
297
+ image: z.never().optional(),
298
+ video: z.object({
299
+ files: z.array(
300
+ z.object({
301
+ url: z.string().describe("Media item URL.").url().optional(),
302
+ width: z.number().int().describe("Media item width.").min(0).optional(),
303
+ height: z.number().int().describe("Media item height.").min(0).optional(),
304
+ format: z.string().describe("Media format (mp4, png, etc.).").optional().nullable(),
305
+ altText: z.string().describe(
306
+ "Alt text. This text will be shown in case the image is not available."
307
+ ).optional().nullable()
308
+ })
309
+ ).optional(),
310
+ stillFrameMediaId: z.string().describe(
311
+ 'ID of an image taken from the video. Used primarily for Wix Search indexing. For example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`.'
312
+ ).optional()
313
+ }).describe("Video data (URL, size).")
314
+ })
315
+ ])
316
+ ).describe(
317
+ "Primary media (image, video etc) associated with this product."
318
+ ).optional(),
319
+ items: z.array(
320
+ z.intersection(
321
+ z.object({
322
+ thumbnail: z.object({
323
+ url: z.string().describe("Media item URL.").url().optional(),
324
+ width: z.number().int().describe("Media item width.").min(0).optional(),
325
+ height: z.number().int().describe("Media item height.").min(0).optional(),
326
+ format: z.string().describe("Media format (mp4, png, etc.).").optional().nullable(),
327
+ altText: z.string().describe(
328
+ "Alt text. This text will be shown in case the image is not available."
329
+ ).optional().nullable()
330
+ }).describe("Media item thumbnail details.").optional(),
331
+ mediaType: z.enum([
332
+ "unspecified_media_item_type",
333
+ "image",
334
+ "video",
335
+ "audio",
336
+ "document",
337
+ "zip"
338
+ ]).describe("Media item type (image, video, etc.).").optional(),
339
+ title: z.string().describe("Media item title.").optional(),
340
+ _id: z.string().describe(
341
+ 'Media ID (for example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`).'
342
+ ).optional()
343
+ }),
344
+ z.xor([
345
+ z.object({
346
+ image: z.never().optional(),
347
+ video: z.never().optional()
348
+ }),
349
+ z.object({
350
+ video: z.never().optional(),
351
+ image: z.object({
352
+ url: z.string().describe("Media item URL.").url().optional(),
353
+ width: z.number().int().describe("Media item width.").min(0).optional(),
354
+ height: z.number().int().describe("Media item height.").min(0).optional(),
355
+ format: z.string().describe("Media format (mp4, png, etc.).").optional().nullable(),
356
+ altText: z.string().describe(
357
+ "Alt text. This text will be shown in case the image is not available."
358
+ ).optional().nullable()
359
+ }).describe("Image data (URL, size).")
360
+ }),
361
+ z.object({
362
+ image: z.never().optional(),
363
+ video: z.object({
364
+ files: z.array(
365
+ z.object({
366
+ url: z.string().describe("Media item URL.").url().optional(),
367
+ width: z.number().int().describe("Media item width.").min(0).optional(),
368
+ height: z.number().int().describe("Media item height.").min(0).optional(),
369
+ format: z.string().describe("Media format (mp4, png, etc.).").optional().nullable(),
370
+ altText: z.string().describe(
371
+ "Alt text. This text will be shown in case the image is not available."
372
+ ).optional().nullable()
373
+ })
374
+ ).optional(),
375
+ stillFrameMediaId: z.string().describe(
376
+ 'ID of an image taken from the video. Used primarily for Wix Search indexing. For example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`.'
377
+ ).optional()
378
+ }).describe("Video data (URL, size).")
379
+ })
380
+ ])
381
+ )
382
+ ).optional()
383
+ }).describe(
384
+ "Media items (images, videos etc) associated with this collection. Read only."
385
+ ).optional(),
386
+ numberOfProducts: z.number().int().describe("Number of products in the collection. Read only.").optional(),
387
+ description: z.string().describe("Collection description.").min(0).max(600).optional().nullable(),
388
+ slug: z.string().describe("Collection slug.").min(1).max(100).optional().nullable(),
389
+ visible: z.boolean().describe(
390
+ "Collection visibility. Only impacts dynamic pages, no impact on static pages. Default: `true`."
391
+ ).optional().nullable()
392
+ });
393
+ var GetCollectionBySlugRequest = z.object({
394
+ slug: z.string().describe("Slug of the collection to retrieve.").min(1).max(100)
395
+ });
396
+ var GetCollectionBySlugResponse = z.object({
397
+ collection: z.object({
398
+ _id: z.string().describe("Collection ID (generated automatically by the catalog).").min(35).max(36).optional().nullable(),
399
+ name: z.string().describe("Collection name.").min(1).max(50).optional().nullable(),
400
+ media: z.object({
401
+ mainMedia: z.intersection(
402
+ z.object({
403
+ thumbnail: z.object({
404
+ url: z.string().describe("Media item URL.").url().optional(),
405
+ width: z.number().int().describe("Media item width.").min(0).optional(),
406
+ height: z.number().int().describe("Media item height.").min(0).optional(),
407
+ format: z.string().describe("Media format (mp4, png, etc.).").optional().nullable(),
408
+ altText: z.string().describe(
409
+ "Alt text. This text will be shown in case the image is not available."
410
+ ).optional().nullable()
411
+ }).describe("Media item thumbnail details.").optional(),
412
+ mediaType: z.enum([
413
+ "unspecified_media_item_type",
414
+ "image",
415
+ "video",
416
+ "audio",
417
+ "document",
418
+ "zip"
419
+ ]).describe("Media item type (image, video, etc.).").optional(),
420
+ title: z.string().describe("Media item title.").optional(),
421
+ _id: z.string().describe(
422
+ 'Media ID (for example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`).'
423
+ ).optional()
424
+ }),
425
+ z.xor([
426
+ z.object({
427
+ image: z.never().optional(),
428
+ video: z.never().optional()
429
+ }),
430
+ z.object({
431
+ video: z.never().optional(),
432
+ image: z.object({
433
+ url: z.string().describe("Media item URL.").url().optional(),
434
+ width: z.number().int().describe("Media item width.").min(0).optional(),
435
+ height: z.number().int().describe("Media item height.").min(0).optional(),
436
+ format: z.string().describe("Media format (mp4, png, etc.).").optional().nullable(),
437
+ altText: z.string().describe(
438
+ "Alt text. This text will be shown in case the image is not available."
439
+ ).optional().nullable()
440
+ }).describe("Image data (URL, size).")
441
+ }),
442
+ z.object({
443
+ image: z.never().optional(),
444
+ video: z.object({
445
+ files: z.array(
446
+ z.object({
447
+ url: z.string().describe("Media item URL.").url().optional(),
448
+ width: z.number().int().describe("Media item width.").min(0).optional(),
449
+ height: z.number().int().describe("Media item height.").min(0).optional(),
450
+ format: z.string().describe("Media format (mp4, png, etc.).").optional().nullable(),
451
+ altText: z.string().describe(
452
+ "Alt text. This text will be shown in case the image is not available."
453
+ ).optional().nullable()
454
+ })
455
+ ).optional(),
456
+ stillFrameMediaId: z.string().describe(
457
+ 'ID of an image taken from the video. Used primarily for Wix Search indexing. For example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`.'
458
+ ).optional()
459
+ }).describe("Video data (URL, size).")
460
+ })
461
+ ])
462
+ ).describe(
463
+ "Primary media (image, video etc) associated with this product."
464
+ ).optional(),
465
+ items: z.array(
466
+ z.intersection(
467
+ z.object({
468
+ thumbnail: z.object({
469
+ url: z.string().describe("Media item URL.").url().optional(),
470
+ width: z.number().int().describe("Media item width.").min(0).optional(),
471
+ height: z.number().int().describe("Media item height.").min(0).optional(),
472
+ format: z.string().describe("Media format (mp4, png, etc.).").optional().nullable(),
473
+ altText: z.string().describe(
474
+ "Alt text. This text will be shown in case the image is not available."
475
+ ).optional().nullable()
476
+ }).describe("Media item thumbnail details.").optional(),
477
+ mediaType: z.enum([
478
+ "unspecified_media_item_type",
479
+ "image",
480
+ "video",
481
+ "audio",
482
+ "document",
483
+ "zip"
484
+ ]).describe("Media item type (image, video, etc.).").optional(),
485
+ title: z.string().describe("Media item title.").optional(),
486
+ _id: z.string().describe(
487
+ 'Media ID (for example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`).'
488
+ ).optional()
489
+ }),
490
+ z.xor([
491
+ z.object({
492
+ image: z.never().optional(),
493
+ video: z.never().optional()
494
+ }),
495
+ z.object({
496
+ video: z.never().optional(),
497
+ image: z.object({
498
+ url: z.string().describe("Media item URL.").url().optional(),
499
+ width: z.number().int().describe("Media item width.").min(0).optional(),
500
+ height: z.number().int().describe("Media item height.").min(0).optional(),
501
+ format: z.string().describe("Media format (mp4, png, etc.).").optional().nullable(),
502
+ altText: z.string().describe(
503
+ "Alt text. This text will be shown in case the image is not available."
504
+ ).optional().nullable()
505
+ }).describe("Image data (URL, size).")
506
+ }),
507
+ z.object({
508
+ image: z.never().optional(),
509
+ video: z.object({
510
+ files: z.array(
511
+ z.object({
512
+ url: z.string().describe("Media item URL.").url().optional(),
513
+ width: z.number().int().describe("Media item width.").min(0).optional(),
514
+ height: z.number().int().describe("Media item height.").min(0).optional(),
515
+ format: z.string().describe("Media format (mp4, png, etc.).").optional().nullable(),
516
+ altText: z.string().describe(
517
+ "Alt text. This text will be shown in case the image is not available."
518
+ ).optional().nullable()
519
+ })
520
+ ).optional(),
521
+ stillFrameMediaId: z.string().describe(
522
+ 'ID of an image taken from the video. Used primarily for Wix Search indexing. For example, `"nsplsh_306d666a123a4a74306459~mv2_d_4517_2992_s_4_2.jpg"`.'
523
+ ).optional()
524
+ }).describe("Video data (URL, size).")
525
+ })
526
+ ])
527
+ )
528
+ ).optional()
529
+ }).describe(
530
+ "Media items (images, videos etc) associated with this collection. Read only."
531
+ ).optional(),
532
+ numberOfProducts: z.number().int().describe("Number of products in the collection. Read only.").optional(),
533
+ description: z.string().describe("Collection description.").min(0).max(600).optional().nullable(),
534
+ slug: z.string().describe("Collection slug.").min(1).max(100).optional().nullable(),
535
+ visible: z.boolean().describe(
536
+ "Collection visibility. Only impacts dynamic pages, no impact on static pages. Default: `true`."
537
+ ).optional().nullable()
538
+ }).describe("The requested collection.").optional()
539
+ });
540
+ // Annotate the CommonJS export names for ESM import in node:
541
+ 0 && (module.exports = {
542
+ GetCollectionBySlugRequest,
543
+ GetCollectionBySlugResponse,
544
+ GetCollectionRequest,
545
+ GetCollectionResponse,
546
+ QueryCollectionsRequest,
547
+ QueryCollectionsResponse
548
+ });
549
+ //# sourceMappingURL=schemas.js.map