@wix/auto_sdk_portfolio_project-items 1.0.46 → 1.0.47

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.
@@ -56,150 +56,156 @@ module.exports = __toCommonJS(schemas_exports);
56
56
  // src/portfolio-project-items-v1-project-item-project-items.schemas.ts
57
57
  var z = __toESM(require("zod"));
58
58
  var CreateProjectItemRequest = /* @__PURE__ */ z.object({
59
- item: z.intersection(
60
- z.object({
61
- projectId: z.string().describe("Project ID.").regex(
59
+ item: /* @__PURE__ */ z.intersection(
60
+ /* @__PURE__ */ z.object({
61
+ projectId: /* @__PURE__ */ z.string().describe("Project ID.").regex(
62
62
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
63
63
  "Must be a valid GUID"
64
64
  ).optional().nullable(),
65
- _id: z.string().describe("Project item ID.").regex(
65
+ _id: /* @__PURE__ */ z.string().describe("Project item ID.").regex(
66
66
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
67
67
  "Must be a valid GUID"
68
68
  ).optional().nullable(),
69
- sortOrder: z.number().describe(
69
+ sortOrder: /* @__PURE__ */ z.number().describe(
70
70
  "Index that determines which position a project is displayed in the project. <br />\n\nDefault: [Epoch](https://www.epoch101.com/) timestamp. <br />"
71
71
  ).optional().nullable(),
72
- title: z.string().describe("Project item title.").optional().nullable(),
73
- description: z.string().describe("Project item description.").optional().nullable(),
74
- type: z.enum(["UNDEFINED", "IMAGE", "VIDEO"]).optional(),
75
- _createdDate: z.date().describe("Date and time the project item was created.").optional().nullable(),
76
- _updatedDate: z.date().describe("Date and time the project item was last updated.").optional().nullable(),
77
- link: z.object({
78
- text: z.string().describe("Display text of the link.").optional().nullable(),
79
- url: z.string().describe("Target URL of the link.").url().optional().nullable(),
80
- target: z.string().describe(
72
+ title: /* @__PURE__ */ z.string().describe("Project item title.").optional().nullable(),
73
+ description: /* @__PURE__ */ z.string().describe("Project item description.").optional().nullable(),
74
+ type: /* @__PURE__ */ z.enum(["UNDEFINED", "IMAGE", "VIDEO"]).optional(),
75
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the project item was created.").optional().nullable(),
76
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the project item was last updated.").optional().nullable(),
77
+ link: /* @__PURE__ */ z.object({
78
+ text: /* @__PURE__ */ z.string().describe("Display text of the link.").optional().nullable(),
79
+ url: /* @__PURE__ */ z.string().describe("Target URL of the link.").url().optional().nullable(),
80
+ target: /* @__PURE__ */ z.string().describe(
81
81
  "Whether the link opens in a new tab or window. One of:\n* `'_blank'`: The link opens in a new tab or window.\n* `'_self'`: The link opens in the same tab or window."
82
82
  ).max(50).optional().nullable()
83
83
  }).describe("Project item link.").optional()
84
84
  }),
85
- z.xor([
86
- z.object({ image: z.never().optional(), video: z.never().optional() }),
87
- z.object({
88
- video: z.never().optional(),
89
- image: z.object({
90
- imageInfo: z.string().describe("Information about the Wix Media image.").optional(),
91
- focalPoint: z.object({
92
- x: z.number().describe("X-coordinate of the focal point.").optional(),
93
- y: z.number().describe("Y-coordinate of the focal point.").optional()
85
+ /* @__PURE__ */ z.xor([
86
+ /* @__PURE__ */ z.object({
87
+ image: /* @__PURE__ */ z.never().optional(),
88
+ video: /* @__PURE__ */ z.never().optional()
89
+ }),
90
+ /* @__PURE__ */ z.object({
91
+ video: /* @__PURE__ */ z.never().optional(),
92
+ image: /* @__PURE__ */ z.object({
93
+ imageInfo: /* @__PURE__ */ z.string().describe("Information about the Wix Media image.").optional(),
94
+ focalPoint: /* @__PURE__ */ z.object({
95
+ x: /* @__PURE__ */ z.number().describe("X-coordinate of the focal point.").optional(),
96
+ y: /* @__PURE__ */ z.number().describe("Y-coordinate of the focal point.").optional()
94
97
  }).describe("Focal point of the image.").optional()
95
98
  }).describe("Information about the Wix Media image.")
96
99
  }),
97
- z.object({
98
- image: z.never().optional(),
99
- video: z.object({
100
- videoInfo: z.string().describe("Information about the Wix Media video.").optional(),
101
- durationInMillis: z.number().int().describe("Manually defined Video duration in milliseconds.").optional().nullable()
100
+ /* @__PURE__ */ z.object({
101
+ image: /* @__PURE__ */ z.never().optional(),
102
+ video: /* @__PURE__ */ z.object({
103
+ videoInfo: /* @__PURE__ */ z.string().describe("Information about the Wix Media video.").optional(),
104
+ durationInMillis: /* @__PURE__ */ z.number().int().describe("Manually defined Video duration in milliseconds.").optional().nullable()
102
105
  }).describe("Information about the Wix Media video.")
103
106
  })
104
107
  ])
105
108
  ).describe("Project item to create.")
106
109
  });
107
110
  var CreateProjectItemResponse = /* @__PURE__ */ z.intersection(
108
- z.object({
109
- projectId: z.string().describe("Project ID.").regex(
111
+ /* @__PURE__ */ z.object({
112
+ projectId: /* @__PURE__ */ z.string().describe("Project ID.").regex(
110
113
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
111
114
  "Must be a valid GUID"
112
115
  ).optional().nullable(),
113
- _id: z.string().describe("Project item ID.").regex(
116
+ _id: /* @__PURE__ */ z.string().describe("Project item ID.").regex(
114
117
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
115
118
  "Must be a valid GUID"
116
119
  ).optional().nullable(),
117
- sortOrder: z.number().describe(
120
+ sortOrder: /* @__PURE__ */ z.number().describe(
118
121
  "Index that determines which position a project is displayed in the project. <br />\n\nDefault: [Epoch](https://www.epoch101.com/) timestamp. <br />"
119
122
  ).optional().nullable(),
120
- title: z.string().describe("Project item title.").optional().nullable(),
121
- description: z.string().describe("Project item description.").optional().nullable(),
122
- type: z.enum(["UNDEFINED", "IMAGE", "VIDEO"]).describe("Project item data type.").optional(),
123
- _createdDate: z.date().describe("Date and time the project item was created.").optional().nullable(),
124
- _updatedDate: z.date().describe("Date and time the project item was last updated.").optional().nullable(),
125
- link: z.object({
126
- text: z.string().describe("Display text of the link.").optional().nullable(),
127
- url: z.string().describe("Target URL of the link.").url().optional().nullable(),
128
- target: z.string().describe(
123
+ title: /* @__PURE__ */ z.string().describe("Project item title.").optional().nullable(),
124
+ description: /* @__PURE__ */ z.string().describe("Project item description.").optional().nullable(),
125
+ type: /* @__PURE__ */ z.enum(["UNDEFINED", "IMAGE", "VIDEO"]).describe("Project item data type.").optional(),
126
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the project item was created.").optional().nullable(),
127
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the project item was last updated.").optional().nullable(),
128
+ link: /* @__PURE__ */ z.object({
129
+ text: /* @__PURE__ */ z.string().describe("Display text of the link.").optional().nullable(),
130
+ url: /* @__PURE__ */ z.string().describe("Target URL of the link.").url().optional().nullable(),
131
+ target: /* @__PURE__ */ z.string().describe(
129
132
  "Whether the link opens in a new tab or window. One of:\n* `'_blank'`: The link opens in a new tab or window.\n* `'_self'`: The link opens in the same tab or window."
130
133
  ).max(50).optional().nullable()
131
134
  }).describe("Project item link.").optional()
132
135
  }),
133
- z.xor([
134
- z.object({ image: z.never().optional(), video: z.never().optional() }),
135
- z.object({
136
- video: z.never().optional(),
137
- image: z.object({
138
- imageInfo: z.string().describe("Information about the Wix Media image.").optional(),
139
- focalPoint: z.object({
140
- x: z.number().describe("X-coordinate of the focal point.").optional(),
141
- y: z.number().describe("Y-coordinate of the focal point.").optional()
136
+ /* @__PURE__ */ z.xor([
137
+ /* @__PURE__ */ z.object({
138
+ image: /* @__PURE__ */ z.never().optional(),
139
+ video: /* @__PURE__ */ z.never().optional()
140
+ }),
141
+ /* @__PURE__ */ z.object({
142
+ video: /* @__PURE__ */ z.never().optional(),
143
+ image: /* @__PURE__ */ z.object({
144
+ imageInfo: /* @__PURE__ */ z.string().describe("Information about the Wix Media image.").optional(),
145
+ focalPoint: /* @__PURE__ */ z.object({
146
+ x: /* @__PURE__ */ z.number().describe("X-coordinate of the focal point.").optional(),
147
+ y: /* @__PURE__ */ z.number().describe("Y-coordinate of the focal point.").optional()
142
148
  }).describe("Focal point of the image.").optional()
143
149
  }).describe("Information about the Wix Media image.")
144
150
  }),
145
- z.object({
146
- image: z.never().optional(),
147
- video: z.object({
148
- videoInfo: z.string().describe("Information about the Wix Media video.").optional(),
149
- durationInMillis: z.number().int().describe("Manually defined Video duration in milliseconds.").optional().nullable()
151
+ /* @__PURE__ */ z.object({
152
+ image: /* @__PURE__ */ z.never().optional(),
153
+ video: /* @__PURE__ */ z.object({
154
+ videoInfo: /* @__PURE__ */ z.string().describe("Information about the Wix Media video.").optional(),
155
+ durationInMillis: /* @__PURE__ */ z.number().int().describe("Manually defined Video duration in milliseconds.").optional().nullable()
150
156
  }).describe("Information about the Wix Media video.")
151
157
  })
152
158
  ])
153
159
  );
154
160
  var BulkCreateProjectItemsRequest = /* @__PURE__ */ z.object({
155
- options: z.object({
156
- items: z.array(
157
- z.intersection(
158
- z.object({
159
- projectId: z.string().describe("Project ID.").regex(
161
+ options: /* @__PURE__ */ z.object({
162
+ items: /* @__PURE__ */ z.array(
163
+ /* @__PURE__ */ z.intersection(
164
+ /* @__PURE__ */ z.object({
165
+ projectId: /* @__PURE__ */ z.string().describe("Project ID.").regex(
160
166
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
161
167
  "Must be a valid GUID"
162
168
  ).optional().nullable(),
163
- _id: z.string().describe("Project item ID.").regex(
169
+ _id: /* @__PURE__ */ z.string().describe("Project item ID.").regex(
164
170
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
165
171
  "Must be a valid GUID"
166
172
  ).optional().nullable(),
167
- sortOrder: z.number().describe(
173
+ sortOrder: /* @__PURE__ */ z.number().describe(
168
174
  "Index that determines which position a project is displayed in the project. <br />\n\nDefault: [Epoch](https://www.epoch101.com/) timestamp. <br />"
169
175
  ).optional().nullable(),
170
- title: z.string().describe("Project item title.").optional().nullable(),
171
- description: z.string().describe("Project item description.").optional().nullable(),
172
- type: z.enum(["UNDEFINED", "IMAGE", "VIDEO"]).optional(),
173
- _createdDate: z.date().describe("Date and time the project item was created.").optional().nullable(),
174
- _updatedDate: z.date().describe("Date and time the project item was last updated.").optional().nullable(),
175
- link: z.object({
176
- text: z.string().describe("Display text of the link.").optional().nullable(),
177
- url: z.string().describe("Target URL of the link.").url().optional().nullable(),
178
- target: z.string().describe(
176
+ title: /* @__PURE__ */ z.string().describe("Project item title.").optional().nullable(),
177
+ description: /* @__PURE__ */ z.string().describe("Project item description.").optional().nullable(),
178
+ type: /* @__PURE__ */ z.enum(["UNDEFINED", "IMAGE", "VIDEO"]).optional(),
179
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the project item was created.").optional().nullable(),
180
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the project item was last updated.").optional().nullable(),
181
+ link: /* @__PURE__ */ z.object({
182
+ text: /* @__PURE__ */ z.string().describe("Display text of the link.").optional().nullable(),
183
+ url: /* @__PURE__ */ z.string().describe("Target URL of the link.").url().optional().nullable(),
184
+ target: /* @__PURE__ */ z.string().describe(
179
185
  "Whether the link opens in a new tab or window. One of:\n* `'_blank'`: The link opens in a new tab or window.\n* `'_self'`: The link opens in the same tab or window."
180
186
  ).max(50).optional().nullable()
181
187
  }).describe("Project item link.").optional()
182
188
  }),
183
- z.xor([
184
- z.object({
185
- image: z.never().optional(),
186
- video: z.never().optional()
189
+ /* @__PURE__ */ z.xor([
190
+ /* @__PURE__ */ z.object({
191
+ image: /* @__PURE__ */ z.never().optional(),
192
+ video: /* @__PURE__ */ z.never().optional()
187
193
  }),
188
- z.object({
189
- video: z.never().optional(),
190
- image: z.object({
191
- imageInfo: z.string().describe("Information about the Wix Media image.").optional(),
192
- focalPoint: z.object({
193
- x: z.number().describe("X-coordinate of the focal point.").optional(),
194
- y: z.number().describe("Y-coordinate of the focal point.").optional()
194
+ /* @__PURE__ */ z.object({
195
+ video: /* @__PURE__ */ z.never().optional(),
196
+ image: /* @__PURE__ */ z.object({
197
+ imageInfo: /* @__PURE__ */ z.string().describe("Information about the Wix Media image.").optional(),
198
+ focalPoint: /* @__PURE__ */ z.object({
199
+ x: /* @__PURE__ */ z.number().describe("X-coordinate of the focal point.").optional(),
200
+ y: /* @__PURE__ */ z.number().describe("Y-coordinate of the focal point.").optional()
195
201
  }).describe("Focal point of the image.").optional()
196
202
  }).describe("Information about the Wix Media image.")
197
203
  }),
198
- z.object({
199
- image: z.never().optional(),
200
- video: z.object({
201
- videoInfo: z.string().describe("Information about the Wix Media video.").optional(),
202
- durationInMillis: z.number().int().describe(
204
+ /* @__PURE__ */ z.object({
205
+ image: /* @__PURE__ */ z.never().optional(),
206
+ video: /* @__PURE__ */ z.object({
207
+ videoInfo: /* @__PURE__ */ z.string().describe("Information about the Wix Media video.").optional(),
208
+ durationInMillis: /* @__PURE__ */ z.number().int().describe(
203
209
  "Manually defined Video duration in milliseconds."
204
210
  ).optional().nullable()
205
211
  }).describe("Information about the Wix Media video.")
@@ -207,78 +213,78 @@ var BulkCreateProjectItemsRequest = /* @__PURE__ */ z.object({
207
213
  ])
208
214
  )
209
215
  ).min(1).max(1e3),
210
- returnFullEntity: z.boolean().describe(
216
+ returnFullEntity: /* @__PURE__ */ z.boolean().describe(
211
217
  "Whether to return the created project items.\n\nSet to `true` to return the project items in the response.\n\nDefault: `false`"
212
218
  ).optional().nullable()
213
219
  })
214
220
  });
215
221
  var BulkCreateProjectItemsResponse = /* @__PURE__ */ z.object({
216
- results: z.array(
217
- z.object({
218
- itemMetadata: z.object({
219
- _id: z.string().describe(
222
+ results: /* @__PURE__ */ z.array(
223
+ /* @__PURE__ */ z.object({
224
+ itemMetadata: /* @__PURE__ */ z.object({
225
+ _id: /* @__PURE__ */ z.string().describe(
220
226
  "Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
221
227
  ).optional().nullable(),
222
- originalIndex: z.number().int().describe(
228
+ originalIndex: /* @__PURE__ */ z.number().int().describe(
223
229
  "Index of the item within the request array. Allows for correlation between request and response items."
224
230
  ).optional(),
225
- success: z.boolean().describe(
231
+ success: /* @__PURE__ */ z.boolean().describe(
226
232
  "Whether the requested action was successful for this item. When `false`, the `error` field is populated."
227
233
  ).optional(),
228
- error: z.object({
229
- code: z.string().describe("Error code.").optional(),
230
- description: z.string().describe("Description of the error.").optional(),
231
- data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
234
+ error: /* @__PURE__ */ z.object({
235
+ code: /* @__PURE__ */ z.string().describe("Error code.").optional(),
236
+ description: /* @__PURE__ */ z.string().describe("Description of the error.").optional(),
237
+ data: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe("Data related to the error.").optional().nullable()
232
238
  }).describe("Details about the error in case of failure.").optional()
233
239
  }).describe(
234
240
  "Information about the created project item.\nIncluding its ID, index in the bulk request and whether it was successfully created."
235
241
  ).optional(),
236
- item: z.intersection(
237
- z.object({
238
- projectId: z.string().describe("Project ID.").regex(
242
+ item: /* @__PURE__ */ z.intersection(
243
+ /* @__PURE__ */ z.object({
244
+ projectId: /* @__PURE__ */ z.string().describe("Project ID.").regex(
239
245
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
240
246
  "Must be a valid GUID"
241
247
  ).optional().nullable(),
242
- _id: z.string().describe("Project item ID.").regex(
248
+ _id: /* @__PURE__ */ z.string().describe("Project item ID.").regex(
243
249
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
244
250
  "Must be a valid GUID"
245
251
  ).optional().nullable(),
246
- sortOrder: z.number().describe(
252
+ sortOrder: /* @__PURE__ */ z.number().describe(
247
253
  "Index that determines which position a project is displayed in the project. <br />\n\nDefault: [Epoch](https://www.epoch101.com/) timestamp. <br />"
248
254
  ).optional().nullable(),
249
- title: z.string().describe("Project item title.").optional().nullable(),
250
- description: z.string().describe("Project item description.").optional().nullable(),
251
- type: z.enum(["UNDEFINED", "IMAGE", "VIDEO"]).describe("Project item data type.").optional(),
252
- _createdDate: z.date().describe("Date and time the project item was created.").optional().nullable(),
253
- _updatedDate: z.date().describe("Date and time the project item was last updated.").optional().nullable(),
254
- link: z.object({
255
- text: z.string().describe("Display text of the link.").optional().nullable(),
256
- url: z.string().describe("Target URL of the link.").url().optional().nullable(),
257
- target: z.string().describe(
255
+ title: /* @__PURE__ */ z.string().describe("Project item title.").optional().nullable(),
256
+ description: /* @__PURE__ */ z.string().describe("Project item description.").optional().nullable(),
257
+ type: /* @__PURE__ */ z.enum(["UNDEFINED", "IMAGE", "VIDEO"]).describe("Project item data type.").optional(),
258
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the project item was created.").optional().nullable(),
259
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the project item was last updated.").optional().nullable(),
260
+ link: /* @__PURE__ */ z.object({
261
+ text: /* @__PURE__ */ z.string().describe("Display text of the link.").optional().nullable(),
262
+ url: /* @__PURE__ */ z.string().describe("Target URL of the link.").url().optional().nullable(),
263
+ target: /* @__PURE__ */ z.string().describe(
258
264
  "Whether the link opens in a new tab or window. One of:\n* `'_blank'`: The link opens in a new tab or window.\n* `'_self'`: The link opens in the same tab or window."
259
265
  ).max(50).optional().nullable()
260
266
  }).describe("Project item link.").optional()
261
267
  }),
262
- z.xor([
263
- z.object({
264
- image: z.never().optional(),
265
- video: z.never().optional()
268
+ /* @__PURE__ */ z.xor([
269
+ /* @__PURE__ */ z.object({
270
+ image: /* @__PURE__ */ z.never().optional(),
271
+ video: /* @__PURE__ */ z.never().optional()
266
272
  }),
267
- z.object({
268
- video: z.never().optional(),
269
- image: z.object({
270
- imageInfo: z.string().describe("Information about the Wix Media image.").optional(),
271
- focalPoint: z.object({
272
- x: z.number().describe("X-coordinate of the focal point.").optional(),
273
- y: z.number().describe("Y-coordinate of the focal point.").optional()
273
+ /* @__PURE__ */ z.object({
274
+ video: /* @__PURE__ */ z.never().optional(),
275
+ image: /* @__PURE__ */ z.object({
276
+ imageInfo: /* @__PURE__ */ z.string().describe("Information about the Wix Media image.").optional(),
277
+ focalPoint: /* @__PURE__ */ z.object({
278
+ x: /* @__PURE__ */ z.number().describe("X-coordinate of the focal point.").optional(),
279
+ y: /* @__PURE__ */ z.number().describe("Y-coordinate of the focal point.").optional()
274
280
  }).describe("Focal point of the image.").optional()
275
281
  }).describe("Information about the Wix Media image.")
276
282
  }),
277
- z.object({
278
- image: z.never().optional(),
279
- video: z.object({
280
- videoInfo: z.string().describe("Information about the Wix Media video.").optional(),
281
- durationInMillis: z.number().int().describe(
283
+ /* @__PURE__ */ z.object({
284
+ image: /* @__PURE__ */ z.never().optional(),
285
+ video: /* @__PURE__ */ z.object({
286
+ videoInfo: /* @__PURE__ */ z.string().describe("Information about the Wix Media video.").optional(),
287
+ durationInMillis: /* @__PURE__ */ z.number().int().describe(
282
288
  "Manually defined Video duration in milliseconds."
283
289
  ).optional().nullable()
284
290
  }).describe("Information about the Wix Media video.")
@@ -289,10 +295,10 @@ var BulkCreateProjectItemsResponse = /* @__PURE__ */ z.object({
289
295
  ).optional()
290
296
  })
291
297
  ).optional(),
292
- bulkActionMetadata: z.object({
293
- totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
294
- totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
295
- undetailedFailures: z.number().int().describe(
298
+ bulkActionMetadata: /* @__PURE__ */ z.object({
299
+ totalSuccesses: /* @__PURE__ */ z.number().int().describe("Number of items that were successfully processed.").optional(),
300
+ totalFailures: /* @__PURE__ */ z.number().int().describe("Number of items that couldn't be processed.").optional(),
301
+ undetailedFailures: /* @__PURE__ */ z.number().int().describe(
296
302
  "Number of failures without details because detailed failure threshold was exceeded."
297
303
  ).optional()
298
304
  }).describe(
@@ -300,157 +306,160 @@ var BulkCreateProjectItemsResponse = /* @__PURE__ */ z.object({
300
306
  ).optional()
301
307
  });
302
308
  var GetProjectItemRequest = /* @__PURE__ */ z.object({
303
- itemId: z.string().describe("Project item ID.").regex(
309
+ itemId: /* @__PURE__ */ z.string().describe("Project item ID.").regex(
304
310
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
305
311
  "Must be a valid GUID"
306
312
  )
307
313
  });
308
314
  var GetProjectItemResponse = /* @__PURE__ */ z.intersection(
309
- z.object({
310
- projectId: z.string().describe("Project ID.").regex(
315
+ /* @__PURE__ */ z.object({
316
+ projectId: /* @__PURE__ */ z.string().describe("Project ID.").regex(
311
317
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
312
318
  "Must be a valid GUID"
313
319
  ).optional().nullable(),
314
- _id: z.string().describe("Project item ID.").regex(
320
+ _id: /* @__PURE__ */ z.string().describe("Project item ID.").regex(
315
321
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
316
322
  "Must be a valid GUID"
317
323
  ).optional().nullable(),
318
- sortOrder: z.number().describe(
324
+ sortOrder: /* @__PURE__ */ z.number().describe(
319
325
  "Index that determines which position a project is displayed in the project. <br />\n\nDefault: [Epoch](https://www.epoch101.com/) timestamp. <br />"
320
326
  ).optional().nullable(),
321
- title: z.string().describe("Project item title.").optional().nullable(),
322
- description: z.string().describe("Project item description.").optional().nullable(),
323
- type: z.enum(["UNDEFINED", "IMAGE", "VIDEO"]).describe("Project item data type.").optional(),
324
- _createdDate: z.date().describe("Date and time the project item was created.").optional().nullable(),
325
- _updatedDate: z.date().describe("Date and time the project item was last updated.").optional().nullable(),
326
- link: z.object({
327
- text: z.string().describe("Display text of the link.").optional().nullable(),
328
- url: z.string().describe("Target URL of the link.").url().optional().nullable(),
329
- target: z.string().describe(
327
+ title: /* @__PURE__ */ z.string().describe("Project item title.").optional().nullable(),
328
+ description: /* @__PURE__ */ z.string().describe("Project item description.").optional().nullable(),
329
+ type: /* @__PURE__ */ z.enum(["UNDEFINED", "IMAGE", "VIDEO"]).describe("Project item data type.").optional(),
330
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the project item was created.").optional().nullable(),
331
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the project item was last updated.").optional().nullable(),
332
+ link: /* @__PURE__ */ z.object({
333
+ text: /* @__PURE__ */ z.string().describe("Display text of the link.").optional().nullable(),
334
+ url: /* @__PURE__ */ z.string().describe("Target URL of the link.").url().optional().nullable(),
335
+ target: /* @__PURE__ */ z.string().describe(
330
336
  "Whether the link opens in a new tab or window. One of:\n* `'_blank'`: The link opens in a new tab or window.\n* `'_self'`: The link opens in the same tab or window."
331
337
  ).max(50).optional().nullable()
332
338
  }).describe("Project item link.").optional()
333
339
  }),
334
- z.xor([
335
- z.object({ image: z.never().optional(), video: z.never().optional() }),
336
- z.object({
337
- video: z.never().optional(),
338
- image: z.object({
339
- imageInfo: z.string().describe("Information about the Wix Media image.").optional(),
340
- focalPoint: z.object({
341
- x: z.number().describe("X-coordinate of the focal point.").optional(),
342
- y: z.number().describe("Y-coordinate of the focal point.").optional()
340
+ /* @__PURE__ */ z.xor([
341
+ /* @__PURE__ */ z.object({
342
+ image: /* @__PURE__ */ z.never().optional(),
343
+ video: /* @__PURE__ */ z.never().optional()
344
+ }),
345
+ /* @__PURE__ */ z.object({
346
+ video: /* @__PURE__ */ z.never().optional(),
347
+ image: /* @__PURE__ */ z.object({
348
+ imageInfo: /* @__PURE__ */ z.string().describe("Information about the Wix Media image.").optional(),
349
+ focalPoint: /* @__PURE__ */ z.object({
350
+ x: /* @__PURE__ */ z.number().describe("X-coordinate of the focal point.").optional(),
351
+ y: /* @__PURE__ */ z.number().describe("Y-coordinate of the focal point.").optional()
343
352
  }).describe("Focal point of the image.").optional()
344
353
  }).describe("Information about the Wix Media image.")
345
354
  }),
346
- z.object({
347
- image: z.never().optional(),
348
- video: z.object({
349
- videoInfo: z.string().describe("Information about the Wix Media video.").optional(),
350
- durationInMillis: z.number().int().describe("Manually defined Video duration in milliseconds.").optional().nullable()
355
+ /* @__PURE__ */ z.object({
356
+ image: /* @__PURE__ */ z.never().optional(),
357
+ video: /* @__PURE__ */ z.object({
358
+ videoInfo: /* @__PURE__ */ z.string().describe("Information about the Wix Media video.").optional(),
359
+ durationInMillis: /* @__PURE__ */ z.number().int().describe("Manually defined Video duration in milliseconds.").optional().nullable()
351
360
  }).describe("Information about the Wix Media video.")
352
361
  })
353
362
  ])
354
363
  );
355
364
  var ListProjectItemsRequest = /* @__PURE__ */ z.object({
356
- projectId: z.string().describe("Project ID.").regex(
365
+ projectId: /* @__PURE__ */ z.string().describe("Project ID.").regex(
357
366
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
358
367
  "Must be a valid GUID"
359
368
  ),
360
- options: z.object({
361
- paging: z.object({
362
- limit: z.number().int().describe("Number of items to load.").min(0).optional().nullable(),
363
- offset: z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
369
+ options: /* @__PURE__ */ z.object({
370
+ paging: /* @__PURE__ */ z.object({
371
+ limit: /* @__PURE__ */ z.number().int().describe("Number of items to load.").min(0).optional().nullable(),
372
+ offset: /* @__PURE__ */ z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
364
373
  }).describe("Maximum number of items to return in the results.").optional()
365
374
  }).optional()
366
375
  });
367
376
  var ListProjectItemsResponse = /* @__PURE__ */ z.object({
368
- items: z.array(
369
- z.intersection(
370
- z.object({
371
- projectId: z.string().describe("Project ID.").regex(
377
+ items: /* @__PURE__ */ z.array(
378
+ /* @__PURE__ */ z.intersection(
379
+ /* @__PURE__ */ z.object({
380
+ projectId: /* @__PURE__ */ z.string().describe("Project ID.").regex(
372
381
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
373
382
  "Must be a valid GUID"
374
383
  ).optional().nullable(),
375
- _id: z.string().describe("Project item ID.").regex(
384
+ _id: /* @__PURE__ */ z.string().describe("Project item ID.").regex(
376
385
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
377
386
  "Must be a valid GUID"
378
387
  ).optional().nullable(),
379
- sortOrder: z.number().describe(
388
+ sortOrder: /* @__PURE__ */ z.number().describe(
380
389
  "Index that determines which position a project is displayed in the project. <br />\n\nDefault: [Epoch](https://www.epoch101.com/) timestamp. <br />"
381
390
  ).optional().nullable(),
382
- title: z.string().describe("Project item title.").optional().nullable(),
383
- description: z.string().describe("Project item description.").optional().nullable(),
384
- type: z.enum(["UNDEFINED", "IMAGE", "VIDEO"]).describe("Project item data type.").optional(),
385
- _createdDate: z.date().describe("Date and time the project item was created.").optional().nullable(),
386
- _updatedDate: z.date().describe("Date and time the project item was last updated.").optional().nullable(),
387
- link: z.object({
388
- text: z.string().describe("Display text of the link.").optional().nullable(),
389
- url: z.string().describe("Target URL of the link.").url().optional().nullable(),
390
- target: z.string().describe(
391
+ title: /* @__PURE__ */ z.string().describe("Project item title.").optional().nullable(),
392
+ description: /* @__PURE__ */ z.string().describe("Project item description.").optional().nullable(),
393
+ type: /* @__PURE__ */ z.enum(["UNDEFINED", "IMAGE", "VIDEO"]).describe("Project item data type.").optional(),
394
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the project item was created.").optional().nullable(),
395
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the project item was last updated.").optional().nullable(),
396
+ link: /* @__PURE__ */ z.object({
397
+ text: /* @__PURE__ */ z.string().describe("Display text of the link.").optional().nullable(),
398
+ url: /* @__PURE__ */ z.string().describe("Target URL of the link.").url().optional().nullable(),
399
+ target: /* @__PURE__ */ z.string().describe(
391
400
  "Whether the link opens in a new tab or window. One of:\n* `'_blank'`: The link opens in a new tab or window.\n* `'_self'`: The link opens in the same tab or window."
392
401
  ).max(50).optional().nullable()
393
402
  }).describe("Project item link.").optional()
394
403
  }),
395
- z.xor([
396
- z.object({
397
- image: z.never().optional(),
398
- video: z.never().optional()
404
+ /* @__PURE__ */ z.xor([
405
+ /* @__PURE__ */ z.object({
406
+ image: /* @__PURE__ */ z.never().optional(),
407
+ video: /* @__PURE__ */ z.never().optional()
399
408
  }),
400
- z.object({
401
- video: z.never().optional(),
402
- image: z.object({
403
- imageInfo: z.string().describe("Information about the Wix Media image.").optional(),
404
- focalPoint: z.object({
405
- x: z.number().describe("X-coordinate of the focal point.").optional(),
406
- y: z.number().describe("Y-coordinate of the focal point.").optional()
409
+ /* @__PURE__ */ z.object({
410
+ video: /* @__PURE__ */ z.never().optional(),
411
+ image: /* @__PURE__ */ z.object({
412
+ imageInfo: /* @__PURE__ */ z.string().describe("Information about the Wix Media image.").optional(),
413
+ focalPoint: /* @__PURE__ */ z.object({
414
+ x: /* @__PURE__ */ z.number().describe("X-coordinate of the focal point.").optional(),
415
+ y: /* @__PURE__ */ z.number().describe("Y-coordinate of the focal point.").optional()
407
416
  }).describe("Focal point of the image.").optional()
408
417
  }).describe("Information about the Wix Media image.")
409
418
  }),
410
- z.object({
411
- image: z.never().optional(),
412
- video: z.object({
413
- videoInfo: z.string().describe("Information about the Wix Media video.").optional(),
414
- durationInMillis: z.number().int().describe("Manually defined Video duration in milliseconds.").optional().nullable()
419
+ /* @__PURE__ */ z.object({
420
+ image: /* @__PURE__ */ z.never().optional(),
421
+ video: /* @__PURE__ */ z.object({
422
+ videoInfo: /* @__PURE__ */ z.string().describe("Information about the Wix Media video.").optional(),
423
+ durationInMillis: /* @__PURE__ */ z.number().int().describe("Manually defined Video duration in milliseconds.").optional().nullable()
415
424
  }).describe("Information about the Wix Media video.")
416
425
  })
417
426
  ])
418
427
  )
419
428
  ).optional(),
420
- pagingMetadataV2: z.object({
421
- count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
422
- offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
423
- total: z.number().int().describe(
429
+ pagingMetadataV2: /* @__PURE__ */ z.object({
430
+ count: /* @__PURE__ */ z.number().int().describe("Number of items returned in the response.").optional().nullable(),
431
+ offset: /* @__PURE__ */ z.number().int().describe("Offset that was requested.").optional().nullable(),
432
+ total: /* @__PURE__ */ z.number().int().describe(
424
433
  "Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set."
425
434
  ).optional().nullable(),
426
- tooManyToCount: z.boolean().describe(
435
+ tooManyToCount: /* @__PURE__ */ z.boolean().describe(
427
436
  "Flag that indicates the server failed to calculate the `total` field."
428
437
  ).optional().nullable(),
429
- cursors: z.object({
430
- next: z.string().describe(
438
+ cursors: /* @__PURE__ */ z.object({
439
+ next: /* @__PURE__ */ z.string().describe(
431
440
  "Cursor string pointing to the next page in the list of results."
432
441
  ).max(16e3).optional().nullable(),
433
- prev: z.string().describe(
442
+ prev: /* @__PURE__ */ z.string().describe(
434
443
  "Cursor pointing to the previous page in the list of results."
435
444
  ).max(16e3).optional().nullable()
436
445
  }).describe(
437
446
  "Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used."
438
447
  ).optional()
439
448
  }).optional(),
440
- metadata: z.object({
441
- count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
442
- offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
443
- total: z.number().int().describe(
449
+ metadata: /* @__PURE__ */ z.object({
450
+ count: /* @__PURE__ */ z.number().int().describe("Number of items returned in the response.").optional().nullable(),
451
+ offset: /* @__PURE__ */ z.number().int().describe("Offset that was requested.").optional().nullable(),
452
+ total: /* @__PURE__ */ z.number().int().describe(
444
453
  "Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set."
445
454
  ).optional().nullable(),
446
- tooManyToCount: z.boolean().describe(
455
+ tooManyToCount: /* @__PURE__ */ z.boolean().describe(
447
456
  "Flag that indicates the server failed to calculate the `total` field."
448
457
  ).optional().nullable(),
449
- cursors: z.object({
450
- next: z.string().describe(
458
+ cursors: /* @__PURE__ */ z.object({
459
+ next: /* @__PURE__ */ z.string().describe(
451
460
  "Cursor string pointing to the next page in the list of results."
452
461
  ).max(16e3).optional().nullable(),
453
- prev: z.string().describe(
462
+ prev: /* @__PURE__ */ z.string().describe(
454
463
  "Cursor pointing to the previous page in the list of results."
455
464
  ).max(16e3).optional().nullable()
456
465
  }).describe(
@@ -459,157 +468,163 @@ var ListProjectItemsResponse = /* @__PURE__ */ z.object({
459
468
  }).describe("Paging metadata.").optional()
460
469
  });
461
470
  var UpdateProjectItemRequest = /* @__PURE__ */ z.object({
462
- _id: z.string().describe("Project item ID.").regex(
471
+ _id: /* @__PURE__ */ z.string().describe("Project item ID.").regex(
463
472
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
464
473
  "Must be a valid GUID"
465
474
  ),
466
- item: z.intersection(
467
- z.object({
468
- projectId: z.string().describe("Project ID.").regex(
475
+ item: /* @__PURE__ */ z.intersection(
476
+ /* @__PURE__ */ z.object({
477
+ projectId: /* @__PURE__ */ z.string().describe("Project ID.").regex(
469
478
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
470
479
  "Must be a valid GUID"
471
480
  ).optional().nullable(),
472
- _id: z.string().describe("Project item ID.").regex(
481
+ _id: /* @__PURE__ */ z.string().describe("Project item ID.").regex(
473
482
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
474
483
  "Must be a valid GUID"
475
484
  ).optional().nullable(),
476
- sortOrder: z.number().describe(
485
+ sortOrder: /* @__PURE__ */ z.number().describe(
477
486
  "Index that determines which position a project is displayed in the project. <br />\n\nDefault: [Epoch](https://www.epoch101.com/) timestamp. <br />"
478
487
  ).optional().nullable(),
479
- title: z.string().describe("Project item title.").optional().nullable(),
480
- description: z.string().describe("Project item description.").optional().nullable(),
481
- type: z.enum(["UNDEFINED", "IMAGE", "VIDEO"]).optional(),
482
- _createdDate: z.date().describe("Date and time the project item was created.").optional().nullable(),
483
- _updatedDate: z.date().describe("Date and time the project item was last updated.").optional().nullable(),
484
- link: z.object({
485
- text: z.string().describe("Display text of the link.").optional().nullable(),
486
- url: z.string().describe("Target URL of the link.").url().optional().nullable(),
487
- target: z.string().describe(
488
+ title: /* @__PURE__ */ z.string().describe("Project item title.").optional().nullable(),
489
+ description: /* @__PURE__ */ z.string().describe("Project item description.").optional().nullable(),
490
+ type: /* @__PURE__ */ z.enum(["UNDEFINED", "IMAGE", "VIDEO"]).optional(),
491
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the project item was created.").optional().nullable(),
492
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the project item was last updated.").optional().nullable(),
493
+ link: /* @__PURE__ */ z.object({
494
+ text: /* @__PURE__ */ z.string().describe("Display text of the link.").optional().nullable(),
495
+ url: /* @__PURE__ */ z.string().describe("Target URL of the link.").url().optional().nullable(),
496
+ target: /* @__PURE__ */ z.string().describe(
488
497
  "Whether the link opens in a new tab or window. One of:\n* `'_blank'`: The link opens in a new tab or window.\n* `'_self'`: The link opens in the same tab or window."
489
498
  ).max(50).optional().nullable()
490
499
  }).describe("Project item link.").optional()
491
500
  }),
492
- z.xor([
493
- z.object({ image: z.never().optional(), video: z.never().optional() }),
494
- z.object({
495
- video: z.never().optional(),
496
- image: z.object({
497
- imageInfo: z.string().describe("Information about the Wix Media image.").optional(),
498
- focalPoint: z.object({
499
- x: z.number().describe("X-coordinate of the focal point.").optional(),
500
- y: z.number().describe("Y-coordinate of the focal point.").optional()
501
+ /* @__PURE__ */ z.xor([
502
+ /* @__PURE__ */ z.object({
503
+ image: /* @__PURE__ */ z.never().optional(),
504
+ video: /* @__PURE__ */ z.never().optional()
505
+ }),
506
+ /* @__PURE__ */ z.object({
507
+ video: /* @__PURE__ */ z.never().optional(),
508
+ image: /* @__PURE__ */ z.object({
509
+ imageInfo: /* @__PURE__ */ z.string().describe("Information about the Wix Media image.").optional(),
510
+ focalPoint: /* @__PURE__ */ z.object({
511
+ x: /* @__PURE__ */ z.number().describe("X-coordinate of the focal point.").optional(),
512
+ y: /* @__PURE__ */ z.number().describe("Y-coordinate of the focal point.").optional()
501
513
  }).describe("Focal point of the image.").optional()
502
514
  }).describe("Information about the Wix Media image.")
503
515
  }),
504
- z.object({
505
- image: z.never().optional(),
506
- video: z.object({
507
- videoInfo: z.string().describe("Information about the Wix Media video.").optional(),
508
- durationInMillis: z.number().int().describe("Manually defined Video duration in milliseconds.").optional().nullable()
516
+ /* @__PURE__ */ z.object({
517
+ image: /* @__PURE__ */ z.never().optional(),
518
+ video: /* @__PURE__ */ z.object({
519
+ videoInfo: /* @__PURE__ */ z.string().describe("Information about the Wix Media video.").optional(),
520
+ durationInMillis: /* @__PURE__ */ z.number().int().describe("Manually defined Video duration in milliseconds.").optional().nullable()
509
521
  }).describe("Information about the Wix Media video.")
510
522
  })
511
523
  ])
512
524
  ).describe("The project item to update.")
513
525
  });
514
526
  var UpdateProjectItemResponse = /* @__PURE__ */ z.intersection(
515
- z.object({
516
- projectId: z.string().describe("Project ID.").regex(
527
+ /* @__PURE__ */ z.object({
528
+ projectId: /* @__PURE__ */ z.string().describe("Project ID.").regex(
517
529
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
518
530
  "Must be a valid GUID"
519
531
  ).optional().nullable(),
520
- _id: z.string().describe("Project item ID.").regex(
532
+ _id: /* @__PURE__ */ z.string().describe("Project item ID.").regex(
521
533
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
522
534
  "Must be a valid GUID"
523
535
  ).optional().nullable(),
524
- sortOrder: z.number().describe(
536
+ sortOrder: /* @__PURE__ */ z.number().describe(
525
537
  "Index that determines which position a project is displayed in the project. <br />\n\nDefault: [Epoch](https://www.epoch101.com/) timestamp. <br />"
526
538
  ).optional().nullable(),
527
- title: z.string().describe("Project item title.").optional().nullable(),
528
- description: z.string().describe("Project item description.").optional().nullable(),
529
- type: z.enum(["UNDEFINED", "IMAGE", "VIDEO"]).describe("Project item data type.").optional(),
530
- _createdDate: z.date().describe("Date and time the project item was created.").optional().nullable(),
531
- _updatedDate: z.date().describe("Date and time the project item was last updated.").optional().nullable(),
532
- link: z.object({
533
- text: z.string().describe("Display text of the link.").optional().nullable(),
534
- url: z.string().describe("Target URL of the link.").url().optional().nullable(),
535
- target: z.string().describe(
539
+ title: /* @__PURE__ */ z.string().describe("Project item title.").optional().nullable(),
540
+ description: /* @__PURE__ */ z.string().describe("Project item description.").optional().nullable(),
541
+ type: /* @__PURE__ */ z.enum(["UNDEFINED", "IMAGE", "VIDEO"]).describe("Project item data type.").optional(),
542
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the project item was created.").optional().nullable(),
543
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the project item was last updated.").optional().nullable(),
544
+ link: /* @__PURE__ */ z.object({
545
+ text: /* @__PURE__ */ z.string().describe("Display text of the link.").optional().nullable(),
546
+ url: /* @__PURE__ */ z.string().describe("Target URL of the link.").url().optional().nullable(),
547
+ target: /* @__PURE__ */ z.string().describe(
536
548
  "Whether the link opens in a new tab or window. One of:\n* `'_blank'`: The link opens in a new tab or window.\n* `'_self'`: The link opens in the same tab or window."
537
549
  ).max(50).optional().nullable()
538
550
  }).describe("Project item link.").optional()
539
551
  }),
540
- z.xor([
541
- z.object({ image: z.never().optional(), video: z.never().optional() }),
542
- z.object({
543
- video: z.never().optional(),
544
- image: z.object({
545
- imageInfo: z.string().describe("Information about the Wix Media image.").optional(),
546
- focalPoint: z.object({
547
- x: z.number().describe("X-coordinate of the focal point.").optional(),
548
- y: z.number().describe("Y-coordinate of the focal point.").optional()
552
+ /* @__PURE__ */ z.xor([
553
+ /* @__PURE__ */ z.object({
554
+ image: /* @__PURE__ */ z.never().optional(),
555
+ video: /* @__PURE__ */ z.never().optional()
556
+ }),
557
+ /* @__PURE__ */ z.object({
558
+ video: /* @__PURE__ */ z.never().optional(),
559
+ image: /* @__PURE__ */ z.object({
560
+ imageInfo: /* @__PURE__ */ z.string().describe("Information about the Wix Media image.").optional(),
561
+ focalPoint: /* @__PURE__ */ z.object({
562
+ x: /* @__PURE__ */ z.number().describe("X-coordinate of the focal point.").optional(),
563
+ y: /* @__PURE__ */ z.number().describe("Y-coordinate of the focal point.").optional()
549
564
  }).describe("Focal point of the image.").optional()
550
565
  }).describe("Information about the Wix Media image.")
551
566
  }),
552
- z.object({
553
- image: z.never().optional(),
554
- video: z.object({
555
- videoInfo: z.string().describe("Information about the Wix Media video.").optional(),
556
- durationInMillis: z.number().int().describe("Manually defined Video duration in milliseconds.").optional().nullable()
567
+ /* @__PURE__ */ z.object({
568
+ image: /* @__PURE__ */ z.never().optional(),
569
+ video: /* @__PURE__ */ z.object({
570
+ videoInfo: /* @__PURE__ */ z.string().describe("Information about the Wix Media video.").optional(),
571
+ durationInMillis: /* @__PURE__ */ z.number().int().describe("Manually defined Video duration in milliseconds.").optional().nullable()
557
572
  }).describe("Information about the Wix Media video.")
558
573
  })
559
574
  ])
560
575
  );
561
576
  var BulkUpdateProjectItemsRequest = /* @__PURE__ */ z.object({
562
- options: z.object({
563
- items: z.array(
564
- z.object({
565
- item: z.intersection(
566
- z.object({
567
- projectId: z.string().describe("Project ID.").regex(
577
+ options: /* @__PURE__ */ z.object({
578
+ items: /* @__PURE__ */ z.array(
579
+ /* @__PURE__ */ z.object({
580
+ item: /* @__PURE__ */ z.intersection(
581
+ /* @__PURE__ */ z.object({
582
+ projectId: /* @__PURE__ */ z.string().describe("Project ID.").regex(
568
583
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
569
584
  "Must be a valid GUID"
570
585
  ).optional().nullable(),
571
- _id: z.string().describe("Project item ID.").regex(
586
+ _id: /* @__PURE__ */ z.string().describe("Project item ID.").regex(
572
587
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
573
588
  "Must be a valid GUID"
574
589
  ),
575
- sortOrder: z.number().describe(
590
+ sortOrder: /* @__PURE__ */ z.number().describe(
576
591
  "Index that determines which position a project is displayed in the project. <br />\n\nDefault: [Epoch](https://www.epoch101.com/) timestamp. <br />"
577
592
  ).optional().nullable(),
578
- title: z.string().describe("Project item title.").optional().nullable(),
579
- description: z.string().describe("Project item description.").optional().nullable(),
580
- type: z.enum(["UNDEFINED", "IMAGE", "VIDEO"]).optional(),
581
- _createdDate: z.date().describe("Date and time the project item was created.").optional().nullable(),
582
- _updatedDate: z.date().describe(
593
+ title: /* @__PURE__ */ z.string().describe("Project item title.").optional().nullable(),
594
+ description: /* @__PURE__ */ z.string().describe("Project item description.").optional().nullable(),
595
+ type: /* @__PURE__ */ z.enum(["UNDEFINED", "IMAGE", "VIDEO"]).optional(),
596
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the project item was created.").optional().nullable(),
597
+ _updatedDate: /* @__PURE__ */ z.date().describe(
583
598
  "Date and time the project item was last updated."
584
599
  ).optional().nullable(),
585
- link: z.object({
586
- text: z.string().describe("Display text of the link.").optional().nullable(),
587
- url: z.string().describe("Target URL of the link.").url().optional().nullable(),
588
- target: z.string().describe(
600
+ link: /* @__PURE__ */ z.object({
601
+ text: /* @__PURE__ */ z.string().describe("Display text of the link.").optional().nullable(),
602
+ url: /* @__PURE__ */ z.string().describe("Target URL of the link.").url().optional().nullable(),
603
+ target: /* @__PURE__ */ z.string().describe(
589
604
  "Whether the link opens in a new tab or window. One of:\n* `'_blank'`: The link opens in a new tab or window.\n* `'_self'`: The link opens in the same tab or window."
590
605
  ).max(50).optional().nullable()
591
606
  }).describe("Project item link.").optional()
592
607
  }),
593
- z.xor([
594
- z.object({
595
- image: z.never().optional(),
596
- video: z.never().optional()
608
+ /* @__PURE__ */ z.xor([
609
+ /* @__PURE__ */ z.object({
610
+ image: /* @__PURE__ */ z.never().optional(),
611
+ video: /* @__PURE__ */ z.never().optional()
597
612
  }),
598
- z.object({
599
- video: z.never().optional(),
600
- image: z.object({
601
- imageInfo: z.string().describe("Information about the Wix Media image.").optional(),
602
- focalPoint: z.object({
603
- x: z.number().describe("X-coordinate of the focal point.").optional(),
604
- y: z.number().describe("Y-coordinate of the focal point.").optional()
613
+ /* @__PURE__ */ z.object({
614
+ video: /* @__PURE__ */ z.never().optional(),
615
+ image: /* @__PURE__ */ z.object({
616
+ imageInfo: /* @__PURE__ */ z.string().describe("Information about the Wix Media image.").optional(),
617
+ focalPoint: /* @__PURE__ */ z.object({
618
+ x: /* @__PURE__ */ z.number().describe("X-coordinate of the focal point.").optional(),
619
+ y: /* @__PURE__ */ z.number().describe("Y-coordinate of the focal point.").optional()
605
620
  }).describe("Focal point of the image.").optional()
606
621
  }).describe("Information about the Wix Media image.")
607
622
  }),
608
- z.object({
609
- image: z.never().optional(),
610
- video: z.object({
611
- videoInfo: z.string().describe("Information about the Wix Media video.").optional(),
612
- durationInMillis: z.number().int().describe(
623
+ /* @__PURE__ */ z.object({
624
+ image: /* @__PURE__ */ z.never().optional(),
625
+ video: /* @__PURE__ */ z.object({
626
+ videoInfo: /* @__PURE__ */ z.string().describe("Information about the Wix Media video.").optional(),
627
+ durationInMillis: /* @__PURE__ */ z.number().int().describe(
613
628
  "Manually defined Video duration in milliseconds."
614
629
  ).optional().nullable()
615
630
  }).describe("Information about the Wix Media video.")
@@ -618,78 +633,78 @@ var BulkUpdateProjectItemsRequest = /* @__PURE__ */ z.object({
618
633
  ).describe("Item to be updated.")
619
634
  })
620
635
  ).max(100).optional(),
621
- returnFullEntity: z.boolean().describe(
636
+ returnFullEntity: /* @__PURE__ */ z.boolean().describe(
622
637
  "Whether to return the updated project items.\n\nSet to `true` to return the project items in the response.\n\nDefault: `false`"
623
638
  ).optional().nullable()
624
639
  }).optional()
625
640
  });
626
641
  var BulkUpdateProjectItemsResponse = /* @__PURE__ */ z.object({
627
- results: z.array(
628
- z.object({
629
- itemMetadata: z.object({
630
- _id: z.string().describe(
642
+ results: /* @__PURE__ */ z.array(
643
+ /* @__PURE__ */ z.object({
644
+ itemMetadata: /* @__PURE__ */ z.object({
645
+ _id: /* @__PURE__ */ z.string().describe(
631
646
  "Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
632
647
  ).optional().nullable(),
633
- originalIndex: z.number().int().describe(
648
+ originalIndex: /* @__PURE__ */ z.number().int().describe(
634
649
  "Index of the item within the request array. Allows for correlation between request and response items."
635
650
  ).optional(),
636
- success: z.boolean().describe(
651
+ success: /* @__PURE__ */ z.boolean().describe(
637
652
  "Whether the requested action was successful for this item. When `false`, the `error` field is populated."
638
653
  ).optional(),
639
- error: z.object({
640
- code: z.string().describe("Error code.").optional(),
641
- description: z.string().describe("Description of the error.").optional(),
642
- data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
654
+ error: /* @__PURE__ */ z.object({
655
+ code: /* @__PURE__ */ z.string().describe("Error code.").optional(),
656
+ description: /* @__PURE__ */ z.string().describe("Description of the error.").optional(),
657
+ data: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe("Data related to the error.").optional().nullable()
643
658
  }).describe("Details about the error in case of failure.").optional()
644
659
  }).describe(
645
660
  "Information about the updated project item.\nIncluding its ID, index in the bulk request and whether it was successfully updated."
646
661
  ).optional(),
647
- item: z.intersection(
648
- z.object({
649
- projectId: z.string().describe("Project ID.").regex(
662
+ item: /* @__PURE__ */ z.intersection(
663
+ /* @__PURE__ */ z.object({
664
+ projectId: /* @__PURE__ */ z.string().describe("Project ID.").regex(
650
665
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
651
666
  "Must be a valid GUID"
652
667
  ).optional().nullable(),
653
- _id: z.string().describe("Project item ID.").regex(
668
+ _id: /* @__PURE__ */ z.string().describe("Project item ID.").regex(
654
669
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
655
670
  "Must be a valid GUID"
656
671
  ).optional().nullable(),
657
- sortOrder: z.number().describe(
672
+ sortOrder: /* @__PURE__ */ z.number().describe(
658
673
  "Index that determines which position a project is displayed in the project. <br />\n\nDefault: [Epoch](https://www.epoch101.com/) timestamp. <br />"
659
674
  ).optional().nullable(),
660
- title: z.string().describe("Project item title.").optional().nullable(),
661
- description: z.string().describe("Project item description.").optional().nullable(),
662
- type: z.enum(["UNDEFINED", "IMAGE", "VIDEO"]).describe("Project item data type.").optional(),
663
- _createdDate: z.date().describe("Date and time the project item was created.").optional().nullable(),
664
- _updatedDate: z.date().describe("Date and time the project item was last updated.").optional().nullable(),
665
- link: z.object({
666
- text: z.string().describe("Display text of the link.").optional().nullable(),
667
- url: z.string().describe("Target URL of the link.").url().optional().nullable(),
668
- target: z.string().describe(
675
+ title: /* @__PURE__ */ z.string().describe("Project item title.").optional().nullable(),
676
+ description: /* @__PURE__ */ z.string().describe("Project item description.").optional().nullable(),
677
+ type: /* @__PURE__ */ z.enum(["UNDEFINED", "IMAGE", "VIDEO"]).describe("Project item data type.").optional(),
678
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the project item was created.").optional().nullable(),
679
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the project item was last updated.").optional().nullable(),
680
+ link: /* @__PURE__ */ z.object({
681
+ text: /* @__PURE__ */ z.string().describe("Display text of the link.").optional().nullable(),
682
+ url: /* @__PURE__ */ z.string().describe("Target URL of the link.").url().optional().nullable(),
683
+ target: /* @__PURE__ */ z.string().describe(
669
684
  "Whether the link opens in a new tab or window. One of:\n* `'_blank'`: The link opens in a new tab or window.\n* `'_self'`: The link opens in the same tab or window."
670
685
  ).max(50).optional().nullable()
671
686
  }).describe("Project item link.").optional()
672
687
  }),
673
- z.xor([
674
- z.object({
675
- image: z.never().optional(),
676
- video: z.never().optional()
688
+ /* @__PURE__ */ z.xor([
689
+ /* @__PURE__ */ z.object({
690
+ image: /* @__PURE__ */ z.never().optional(),
691
+ video: /* @__PURE__ */ z.never().optional()
677
692
  }),
678
- z.object({
679
- video: z.never().optional(),
680
- image: z.object({
681
- imageInfo: z.string().describe("Information about the Wix Media image.").optional(),
682
- focalPoint: z.object({
683
- x: z.number().describe("X-coordinate of the focal point.").optional(),
684
- y: z.number().describe("Y-coordinate of the focal point.").optional()
693
+ /* @__PURE__ */ z.object({
694
+ video: /* @__PURE__ */ z.never().optional(),
695
+ image: /* @__PURE__ */ z.object({
696
+ imageInfo: /* @__PURE__ */ z.string().describe("Information about the Wix Media image.").optional(),
697
+ focalPoint: /* @__PURE__ */ z.object({
698
+ x: /* @__PURE__ */ z.number().describe("X-coordinate of the focal point.").optional(),
699
+ y: /* @__PURE__ */ z.number().describe("Y-coordinate of the focal point.").optional()
685
700
  }).describe("Focal point of the image.").optional()
686
701
  }).describe("Information about the Wix Media image.")
687
702
  }),
688
- z.object({
689
- image: z.never().optional(),
690
- video: z.object({
691
- videoInfo: z.string().describe("Information about the Wix Media video.").optional(),
692
- durationInMillis: z.number().int().describe(
703
+ /* @__PURE__ */ z.object({
704
+ image: /* @__PURE__ */ z.never().optional(),
705
+ video: /* @__PURE__ */ z.object({
706
+ videoInfo: /* @__PURE__ */ z.string().describe("Information about the Wix Media video.").optional(),
707
+ durationInMillis: /* @__PURE__ */ z.number().int().describe(
693
708
  "Manually defined Video duration in milliseconds."
694
709
  ).optional().nullable()
695
710
  }).describe("Information about the Wix Media video.")
@@ -700,10 +715,10 @@ var BulkUpdateProjectItemsResponse = /* @__PURE__ */ z.object({
700
715
  ).optional()
701
716
  })
702
717
  ).optional(),
703
- bulkActionMetadata: z.object({
704
- totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
705
- totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
706
- undetailedFailures: z.number().int().describe(
718
+ bulkActionMetadata: /* @__PURE__ */ z.object({
719
+ totalSuccesses: /* @__PURE__ */ z.number().int().describe("Number of items that were successfully processed.").optional(),
720
+ totalFailures: /* @__PURE__ */ z.number().int().describe("Number of items that couldn't be processed.").optional(),
721
+ undetailedFailures: /* @__PURE__ */ z.number().int().describe(
707
722
  "Number of failures without details because detailed failure threshold was exceeded."
708
723
  ).optional()
709
724
  }).describe(
@@ -711,51 +726,53 @@ var BulkUpdateProjectItemsResponse = /* @__PURE__ */ z.object({
711
726
  ).optional()
712
727
  });
713
728
  var DeleteProjectItemRequest = /* @__PURE__ */ z.object({
714
- itemId: z.string().describe("ID of the project item to delete.").regex(
729
+ itemId: /* @__PURE__ */ z.string().describe("ID of the project item to delete.").regex(
715
730
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
716
731
  "Must be a valid GUID"
717
732
  )
718
733
  });
719
734
  var DeleteProjectItemResponse = /* @__PURE__ */ z.object({
720
- itemId: z.string().describe("ID of the deleted project item.").regex(
735
+ itemId: /* @__PURE__ */ z.string().describe("ID of the deleted project item.").regex(
721
736
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
722
737
  "Must be a valid GUID"
723
738
  ).optional()
724
739
  });
725
740
  var BulkDeleteProjectItemsRequest = /* @__PURE__ */ z.object({
726
- options: z.object({ itemIds: z.array(z.string()).min(1) })
741
+ options: /* @__PURE__ */ z.object({
742
+ itemIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).min(1)
743
+ })
727
744
  });
728
745
  var BulkDeleteProjectItemsResponse = /* @__PURE__ */ z.object({
729
- results: z.array(
730
- z.object({
731
- itemMetadata: z.object({
732
- _id: z.string().describe(
746
+ results: /* @__PURE__ */ z.array(
747
+ /* @__PURE__ */ z.object({
748
+ itemMetadata: /* @__PURE__ */ z.object({
749
+ _id: /* @__PURE__ */ z.string().describe(
733
750
  "Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
734
751
  ).optional().nullable(),
735
- originalIndex: z.number().int().describe(
752
+ originalIndex: /* @__PURE__ */ z.number().int().describe(
736
753
  "Index of the item within the request array. Allows for correlation between request and response items."
737
754
  ).optional(),
738
- success: z.boolean().describe(
755
+ success: /* @__PURE__ */ z.boolean().describe(
739
756
  "Whether the requested action was successful for this item. When `false`, the `error` field is populated."
740
757
  ).optional(),
741
- error: z.object({
742
- code: z.string().describe("Error code.").optional(),
743
- description: z.string().describe("Description of the error.").optional(),
744
- data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
758
+ error: /* @__PURE__ */ z.object({
759
+ code: /* @__PURE__ */ z.string().describe("Error code.").optional(),
760
+ description: /* @__PURE__ */ z.string().describe("Description of the error.").optional(),
761
+ data: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe("Data related to the error.").optional().nullable()
745
762
  }).describe("Details about the error in case of failure.").optional()
746
763
  }).describe(
747
764
  "Information about the deleted project item.\nIncluding its ID, index in the bulk request and whether it was successfully deleted."
748
765
  ).optional(),
749
- itemId: z.string().describe("ID of the deleted project item.").regex(
766
+ itemId: /* @__PURE__ */ z.string().describe("ID of the deleted project item.").regex(
750
767
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
751
768
  "Must be a valid GUID"
752
769
  ).optional()
753
770
  })
754
771
  ).optional(),
755
- bulkActionMetadata: z.object({
756
- totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
757
- totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
758
- undetailedFailures: z.number().int().describe(
772
+ bulkActionMetadata: /* @__PURE__ */ z.object({
773
+ totalSuccesses: /* @__PURE__ */ z.number().int().describe("Number of items that were successfully processed.").optional(),
774
+ totalFailures: /* @__PURE__ */ z.number().int().describe("Number of items that couldn't be processed.").optional(),
775
+ undetailedFailures: /* @__PURE__ */ z.number().int().describe(
759
776
  "Number of failures without details because detailed failure threshold was exceeded."
760
777
  ).optional()
761
778
  }).describe(
@@ -763,38 +780,38 @@ var BulkDeleteProjectItemsResponse = /* @__PURE__ */ z.object({
763
780
  ).optional()
764
781
  });
765
782
  var DuplicateProjectItemsRequest = /* @__PURE__ */ z.object({
766
- originProjectId: z.string().describe("ID of the project containing the items to duplicate.").regex(
783
+ originProjectId: /* @__PURE__ */ z.string().describe("ID of the project containing the items to duplicate.").regex(
767
784
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
768
785
  "Must be a valid GUID"
769
786
  ),
770
- options: z.object({
771
- targetProjectId: z.string().describe("ID of the project where the duplicated items will be added.").regex(
787
+ options: /* @__PURE__ */ z.object({
788
+ targetProjectId: /* @__PURE__ */ z.string().describe("ID of the project where the duplicated items will be added.").regex(
772
789
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
773
790
  "Must be a valid GUID"
774
791
  )
775
792
  })
776
793
  });
777
794
  var DuplicateProjectItemsResponse = /* @__PURE__ */ z.object({
778
- projectId: z.string().describe("Project ID where the duplicated items have been added.").regex(
795
+ projectId: /* @__PURE__ */ z.string().describe("Project ID where the duplicated items have been added.").regex(
779
796
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
780
797
  "Must be a valid GUID"
781
798
  ).optional(),
782
- bulkActionMetadata: z.object({
783
- totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
784
- totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
785
- undetailedFailures: z.number().int().describe(
799
+ bulkActionMetadata: /* @__PURE__ */ z.object({
800
+ totalSuccesses: /* @__PURE__ */ z.number().int().describe("Number of items that were successfully processed.").optional(),
801
+ totalFailures: /* @__PURE__ */ z.number().int().describe("Number of items that couldn't be processed.").optional(),
802
+ undetailedFailures: /* @__PURE__ */ z.number().int().describe(
786
803
  "Number of failures without details because detailed failure threshold was exceeded."
787
804
  ).optional()
788
805
  }).describe("Bulk action metadata.").optional()
789
806
  });
790
807
  var GenerateTokenForProjectItemsRequest = /* @__PURE__ */ z.object({
791
- mediaIds: z.array(z.string()).min(1)
808
+ mediaIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).min(1)
792
809
  });
793
810
  var GenerateTokenForProjectItemsResponse = /* @__PURE__ */ z.object({
794
- mediaTokens: z.array(
795
- z.object({
796
- mediaId: z.string().describe("Media id of project item").optional(),
797
- mediaToken: z.string().describe("Generated media token for project item").optional()
811
+ mediaTokens: /* @__PURE__ */ z.array(
812
+ /* @__PURE__ */ z.object({
813
+ mediaId: /* @__PURE__ */ z.string().describe("Media id of project item").optional(),
814
+ mediaToken: /* @__PURE__ */ z.string().describe("Generated media token for project item").optional()
798
815
  })
799
816
  ).optional()
800
817
  });