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