@wix/auto_sdk_portfolio_project-items 1.0.39 → 1.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/schemas.d.ts +517 -0
- package/build/cjs/schemas.js +824 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/schemas.d.mts +517 -0
- package/build/es/schemas.mjs +768 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/schemas.d.ts +517 -0
- package/build/internal/cjs/schemas.js +824 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/schemas.d.mts +517 -0
- package/build/internal/es/schemas.mjs +768 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/package.json +12 -5
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,824 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// schemas.ts
|
|
31
|
+
var schemas_exports = {};
|
|
32
|
+
__export(schemas_exports, {
|
|
33
|
+
BulkCreateProjectItemsRequest: () => BulkCreateProjectItemsRequest,
|
|
34
|
+
BulkCreateProjectItemsResponse: () => BulkCreateProjectItemsResponse,
|
|
35
|
+
BulkDeleteProjectItemsRequest: () => BulkDeleteProjectItemsRequest,
|
|
36
|
+
BulkDeleteProjectItemsResponse: () => BulkDeleteProjectItemsResponse,
|
|
37
|
+
BulkUpdateProjectItemsRequest: () => BulkUpdateProjectItemsRequest,
|
|
38
|
+
BulkUpdateProjectItemsResponse: () => BulkUpdateProjectItemsResponse,
|
|
39
|
+
CreateProjectItemRequest: () => CreateProjectItemRequest,
|
|
40
|
+
CreateProjectItemResponse: () => CreateProjectItemResponse,
|
|
41
|
+
DeleteProjectItemRequest: () => DeleteProjectItemRequest,
|
|
42
|
+
DeleteProjectItemResponse: () => DeleteProjectItemResponse,
|
|
43
|
+
DuplicateProjectItemsRequest: () => DuplicateProjectItemsRequest,
|
|
44
|
+
DuplicateProjectItemsResponse: () => DuplicateProjectItemsResponse,
|
|
45
|
+
GenerateTokenForProjectItemsRequest: () => GenerateTokenForProjectItemsRequest,
|
|
46
|
+
GenerateTokenForProjectItemsResponse: () => GenerateTokenForProjectItemsResponse,
|
|
47
|
+
GetProjectItemRequest: () => GetProjectItemRequest,
|
|
48
|
+
GetProjectItemResponse: () => GetProjectItemResponse,
|
|
49
|
+
ListProjectItemsRequest: () => ListProjectItemsRequest,
|
|
50
|
+
ListProjectItemsResponse: () => ListProjectItemsResponse,
|
|
51
|
+
UpdateProjectItemRequest: () => UpdateProjectItemRequest,
|
|
52
|
+
UpdateProjectItemResponse: () => UpdateProjectItemResponse
|
|
53
|
+
});
|
|
54
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
55
|
+
|
|
56
|
+
// src/portfolio-project-items-v1-project-item-project-items.schemas.ts
|
|
57
|
+
var z = __toESM(require("zod"));
|
|
58
|
+
var CreateProjectItemRequest = z.object({
|
|
59
|
+
item: z.intersection(
|
|
60
|
+
z.object({
|
|
61
|
+
projectId: z.string().describe("Project ID.").regex(
|
|
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
|
+
"Must be a valid GUID"
|
|
64
|
+
).optional().nullable(),
|
|
65
|
+
_id: z.string().describe("Project item ID.").regex(
|
|
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
|
+
"Must be a valid GUID"
|
|
68
|
+
).optional().nullable(),
|
|
69
|
+
sortOrder: z.number().describe(
|
|
70
|
+
"Index that determines which position a project is displayed in the project. <br />\n\nDefault: [Epoch](https://www.epoch101.com/) timestamp. <br />"
|
|
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(
|
|
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
|
+
).max(50).optional().nullable()
|
|
83
|
+
}).describe("Project item link.").optional()
|
|
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()
|
|
94
|
+
}).describe("Focal point of the image.").optional()
|
|
95
|
+
}).describe("Information about the Wix Media image.")
|
|
96
|
+
}),
|
|
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()
|
|
102
|
+
}).describe("Information about the Wix Media video.")
|
|
103
|
+
})
|
|
104
|
+
])
|
|
105
|
+
).describe("Project item to create.")
|
|
106
|
+
});
|
|
107
|
+
var CreateProjectItemResponse = z.intersection(
|
|
108
|
+
z.object({
|
|
109
|
+
projectId: z.string().describe("Project ID.").regex(
|
|
110
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
112
|
+
).optional().nullable(),
|
|
113
|
+
_id: z.string().describe("Project item ID.").regex(
|
|
114
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
116
|
+
).optional().nullable(),
|
|
117
|
+
sortOrder: z.number().describe(
|
|
118
|
+
"Index that determines which position a project is displayed in the project. <br />\n\nDefault: [Epoch](https://www.epoch101.com/) timestamp. <br />"
|
|
119
|
+
).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(
|
|
129
|
+
"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
|
+
).max(50).optional().nullable()
|
|
131
|
+
}).describe("Project item link.").optional()
|
|
132
|
+
}),
|
|
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()
|
|
142
|
+
}).describe("Focal point of the image.").optional()
|
|
143
|
+
}).describe("Information about the Wix Media image.")
|
|
144
|
+
}),
|
|
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()
|
|
150
|
+
}).describe("Information about the Wix Media video.")
|
|
151
|
+
})
|
|
152
|
+
])
|
|
153
|
+
);
|
|
154
|
+
var BulkCreateProjectItemsRequest = z.object({
|
|
155
|
+
options: z.object({
|
|
156
|
+
items: z.array(
|
|
157
|
+
z.intersection(
|
|
158
|
+
z.object({
|
|
159
|
+
projectId: z.string().describe("Project ID.").regex(
|
|
160
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
162
|
+
).optional().nullable(),
|
|
163
|
+
_id: z.string().describe("Project item ID.").regex(
|
|
164
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
166
|
+
).optional().nullable(),
|
|
167
|
+
sortOrder: z.number().describe(
|
|
168
|
+
"Index that determines which position a project is displayed in the project. <br />\n\nDefault: [Epoch](https://www.epoch101.com/) timestamp. <br />"
|
|
169
|
+
).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(
|
|
179
|
+
"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
|
+
).max(50).optional().nullable()
|
|
181
|
+
}).describe("Project item link.").optional()
|
|
182
|
+
}),
|
|
183
|
+
z.xor([
|
|
184
|
+
z.object({
|
|
185
|
+
image: z.never().optional(),
|
|
186
|
+
video: z.never().optional()
|
|
187
|
+
}),
|
|
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()
|
|
195
|
+
}).describe("Focal point of the image.").optional()
|
|
196
|
+
}).describe("Information about the Wix Media image.")
|
|
197
|
+
}),
|
|
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(
|
|
203
|
+
"Manually defined Video duration in milliseconds."
|
|
204
|
+
).optional().nullable()
|
|
205
|
+
}).describe("Information about the Wix Media video.")
|
|
206
|
+
})
|
|
207
|
+
])
|
|
208
|
+
)
|
|
209
|
+
).min(1).max(1e3),
|
|
210
|
+
returnFullEntity: z.boolean().describe(
|
|
211
|
+
"Whether to return the created project items.\n\nSet to `true` to return the project items in the response.\n\nDefault: `false`"
|
|
212
|
+
).optional().nullable()
|
|
213
|
+
})
|
|
214
|
+
});
|
|
215
|
+
var BulkCreateProjectItemsResponse = z.object({
|
|
216
|
+
results: z.array(
|
|
217
|
+
z.object({
|
|
218
|
+
itemMetadata: z.object({
|
|
219
|
+
_id: z.string().describe(
|
|
220
|
+
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
221
|
+
).optional().nullable(),
|
|
222
|
+
originalIndex: z.number().int().describe(
|
|
223
|
+
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
224
|
+
).optional(),
|
|
225
|
+
success: z.boolean().describe(
|
|
226
|
+
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
227
|
+
).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()
|
|
232
|
+
}).describe("Details about the error in case of failure.").optional()
|
|
233
|
+
}).describe(
|
|
234
|
+
"Information about the created project item.\nIncluding its ID, index in the bulk request and whether it was successfully created."
|
|
235
|
+
).optional(),
|
|
236
|
+
item: z.intersection(
|
|
237
|
+
z.object({
|
|
238
|
+
projectId: z.string().describe("Project ID.").regex(
|
|
239
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
241
|
+
).optional().nullable(),
|
|
242
|
+
_id: z.string().describe("Project item ID.").regex(
|
|
243
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
245
|
+
).optional().nullable(),
|
|
246
|
+
sortOrder: z.number().describe(
|
|
247
|
+
"Index that determines which position a project is displayed in the project. <br />\n\nDefault: [Epoch](https://www.epoch101.com/) timestamp. <br />"
|
|
248
|
+
).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(
|
|
258
|
+
"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
|
+
).max(50).optional().nullable()
|
|
260
|
+
}).describe("Project item link.").optional()
|
|
261
|
+
}),
|
|
262
|
+
z.xor([
|
|
263
|
+
z.object({
|
|
264
|
+
image: z.never().optional(),
|
|
265
|
+
video: z.never().optional()
|
|
266
|
+
}),
|
|
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()
|
|
274
|
+
}).describe("Focal point of the image.").optional()
|
|
275
|
+
}).describe("Information about the Wix Media image.")
|
|
276
|
+
}),
|
|
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(
|
|
282
|
+
"Manually defined Video duration in milliseconds."
|
|
283
|
+
).optional().nullable()
|
|
284
|
+
}).describe("Information about the Wix Media video.")
|
|
285
|
+
})
|
|
286
|
+
])
|
|
287
|
+
).describe(
|
|
288
|
+
"Created project item. Only returned if `returnEntity` is set to `true` in the request."
|
|
289
|
+
).optional()
|
|
290
|
+
})
|
|
291
|
+
).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(
|
|
296
|
+
"Number of failures without details because detailed failure threshold was exceeded."
|
|
297
|
+
).optional()
|
|
298
|
+
}).describe(
|
|
299
|
+
"Total number of successes and failures for Bulk Create Project Items."
|
|
300
|
+
).optional()
|
|
301
|
+
});
|
|
302
|
+
var GetProjectItemRequest = z.object({
|
|
303
|
+
itemId: z.string().describe("Project item ID.").regex(
|
|
304
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
306
|
+
)
|
|
307
|
+
});
|
|
308
|
+
var GetProjectItemResponse = z.intersection(
|
|
309
|
+
z.object({
|
|
310
|
+
projectId: z.string().describe("Project ID.").regex(
|
|
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}$/,
|
|
312
|
+
"Must be a valid GUID"
|
|
313
|
+
).optional().nullable(),
|
|
314
|
+
_id: z.string().describe("Project item ID.").regex(
|
|
315
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
317
|
+
).optional().nullable(),
|
|
318
|
+
sortOrder: z.number().describe(
|
|
319
|
+
"Index that determines which position a project is displayed in the project. <br />\n\nDefault: [Epoch](https://www.epoch101.com/) timestamp. <br />"
|
|
320
|
+
).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(
|
|
330
|
+
"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
|
+
).max(50).optional().nullable()
|
|
332
|
+
}).describe("Project item link.").optional()
|
|
333
|
+
}),
|
|
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()
|
|
343
|
+
}).describe("Focal point of the image.").optional()
|
|
344
|
+
}).describe("Information about the Wix Media image.")
|
|
345
|
+
}),
|
|
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()
|
|
351
|
+
}).describe("Information about the Wix Media video.")
|
|
352
|
+
})
|
|
353
|
+
])
|
|
354
|
+
);
|
|
355
|
+
var ListProjectItemsRequest = z.object({
|
|
356
|
+
projectId: z.string().describe("Project ID.").regex(
|
|
357
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
359
|
+
),
|
|
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()
|
|
364
|
+
}).describe("Maximum number of items to return in the results.").optional()
|
|
365
|
+
}).optional()
|
|
366
|
+
});
|
|
367
|
+
var ListProjectItemsResponse = z.object({
|
|
368
|
+
items: z.array(
|
|
369
|
+
z.intersection(
|
|
370
|
+
z.object({
|
|
371
|
+
projectId: z.string().describe("Project ID.").regex(
|
|
372
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
374
|
+
).optional().nullable(),
|
|
375
|
+
_id: z.string().describe("Project item ID.").regex(
|
|
376
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
378
|
+
).optional().nullable(),
|
|
379
|
+
sortOrder: z.number().describe(
|
|
380
|
+
"Index that determines which position a project is displayed in the project. <br />\n\nDefault: [Epoch](https://www.epoch101.com/) timestamp. <br />"
|
|
381
|
+
).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
|
+
"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
|
+
).max(50).optional().nullable()
|
|
393
|
+
}).describe("Project item link.").optional()
|
|
394
|
+
}),
|
|
395
|
+
z.xor([
|
|
396
|
+
z.object({
|
|
397
|
+
image: z.never().optional(),
|
|
398
|
+
video: z.never().optional()
|
|
399
|
+
}),
|
|
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()
|
|
407
|
+
}).describe("Focal point of the image.").optional()
|
|
408
|
+
}).describe("Information about the Wix Media image.")
|
|
409
|
+
}),
|
|
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()
|
|
415
|
+
}).describe("Information about the Wix Media video.")
|
|
416
|
+
})
|
|
417
|
+
])
|
|
418
|
+
)
|
|
419
|
+
).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(
|
|
424
|
+
"Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set."
|
|
425
|
+
).optional().nullable(),
|
|
426
|
+
tooManyToCount: z.boolean().describe(
|
|
427
|
+
"Flag that indicates the server failed to calculate the `total` field."
|
|
428
|
+
).optional().nullable(),
|
|
429
|
+
cursors: z.object({
|
|
430
|
+
next: z.string().describe(
|
|
431
|
+
"Cursor string pointing to the next page in the list of results."
|
|
432
|
+
).max(16e3).optional().nullable(),
|
|
433
|
+
prev: z.string().describe(
|
|
434
|
+
"Cursor pointing to the previous page in the list of results."
|
|
435
|
+
).max(16e3).optional().nullable()
|
|
436
|
+
}).describe(
|
|
437
|
+
"Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used."
|
|
438
|
+
).optional()
|
|
439
|
+
}).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(
|
|
444
|
+
"Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set."
|
|
445
|
+
).optional().nullable(),
|
|
446
|
+
tooManyToCount: z.boolean().describe(
|
|
447
|
+
"Flag that indicates the server failed to calculate the `total` field."
|
|
448
|
+
).optional().nullable(),
|
|
449
|
+
cursors: z.object({
|
|
450
|
+
next: z.string().describe(
|
|
451
|
+
"Cursor string pointing to the next page in the list of results."
|
|
452
|
+
).max(16e3).optional().nullable(),
|
|
453
|
+
prev: z.string().describe(
|
|
454
|
+
"Cursor pointing to the previous page in the list of results."
|
|
455
|
+
).max(16e3).optional().nullable()
|
|
456
|
+
}).describe(
|
|
457
|
+
"Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used."
|
|
458
|
+
).optional()
|
|
459
|
+
}).describe("Paging metadata.").optional()
|
|
460
|
+
});
|
|
461
|
+
var UpdateProjectItemRequest = z.object({
|
|
462
|
+
_id: z.string().describe("Project item ID.").regex(
|
|
463
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
465
|
+
),
|
|
466
|
+
item: z.intersection(
|
|
467
|
+
z.object({
|
|
468
|
+
projectId: z.string().describe("Project ID.").regex(
|
|
469
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
471
|
+
).optional().nullable(),
|
|
472
|
+
_id: z.string().describe("Project item ID.").regex(
|
|
473
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
475
|
+
).optional().nullable(),
|
|
476
|
+
sortOrder: z.number().describe(
|
|
477
|
+
"Index that determines which position a project is displayed in the project. <br />\n\nDefault: [Epoch](https://www.epoch101.com/) timestamp. <br />"
|
|
478
|
+
).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
|
+
"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
|
+
).max(50).optional().nullable()
|
|
490
|
+
}).describe("Project item link.").optional()
|
|
491
|
+
}),
|
|
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
|
+
}).describe("Focal point of the image.").optional()
|
|
502
|
+
}).describe("Information about the Wix Media image.")
|
|
503
|
+
}),
|
|
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()
|
|
509
|
+
}).describe("Information about the Wix Media video.")
|
|
510
|
+
})
|
|
511
|
+
])
|
|
512
|
+
).describe("The project item to update.")
|
|
513
|
+
});
|
|
514
|
+
var UpdateProjectItemResponse = z.intersection(
|
|
515
|
+
z.object({
|
|
516
|
+
projectId: z.string().describe("Project ID.").regex(
|
|
517
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
519
|
+
).optional().nullable(),
|
|
520
|
+
_id: z.string().describe("Project item ID.").regex(
|
|
521
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
523
|
+
).optional().nullable(),
|
|
524
|
+
sortOrder: z.number().describe(
|
|
525
|
+
"Index that determines which position a project is displayed in the project. <br />\n\nDefault: [Epoch](https://www.epoch101.com/) timestamp. <br />"
|
|
526
|
+
).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(
|
|
536
|
+
"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
|
+
).max(50).optional().nullable()
|
|
538
|
+
}).describe("Project item link.").optional()
|
|
539
|
+
}),
|
|
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()
|
|
549
|
+
}).describe("Focal point of the image.").optional()
|
|
550
|
+
}).describe("Information about the Wix Media image.")
|
|
551
|
+
}),
|
|
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()
|
|
557
|
+
}).describe("Information about the Wix Media video.")
|
|
558
|
+
})
|
|
559
|
+
])
|
|
560
|
+
);
|
|
561
|
+
var BulkUpdateProjectItemsRequest = 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(
|
|
568
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
570
|
+
).optional().nullable(),
|
|
571
|
+
_id: z.string().describe("Project item ID.").regex(
|
|
572
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
574
|
+
),
|
|
575
|
+
sortOrder: z.number().describe(
|
|
576
|
+
"Index that determines which position a project is displayed in the project. <br />\n\nDefault: [Epoch](https://www.epoch101.com/) timestamp. <br />"
|
|
577
|
+
).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(
|
|
583
|
+
"Date and time the project item was last updated."
|
|
584
|
+
).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(
|
|
589
|
+
"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
|
+
).max(50).optional().nullable()
|
|
591
|
+
}).describe("Project item link.").optional()
|
|
592
|
+
}),
|
|
593
|
+
z.xor([
|
|
594
|
+
z.object({
|
|
595
|
+
image: z.never().optional(),
|
|
596
|
+
video: z.never().optional()
|
|
597
|
+
}),
|
|
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()
|
|
605
|
+
}).describe("Focal point of the image.").optional()
|
|
606
|
+
}).describe("Information about the Wix Media image.")
|
|
607
|
+
}),
|
|
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(
|
|
613
|
+
"Manually defined Video duration in milliseconds."
|
|
614
|
+
).optional().nullable()
|
|
615
|
+
}).describe("Information about the Wix Media video.")
|
|
616
|
+
})
|
|
617
|
+
])
|
|
618
|
+
).describe("Item to be updated.")
|
|
619
|
+
})
|
|
620
|
+
).max(100).optional(),
|
|
621
|
+
returnFullEntity: z.boolean().describe(
|
|
622
|
+
"Whether to return the updated project items.\n\nSet to `true` to return the project items in the response.\n\nDefault: `false`"
|
|
623
|
+
).optional().nullable()
|
|
624
|
+
}).optional()
|
|
625
|
+
});
|
|
626
|
+
var BulkUpdateProjectItemsResponse = z.object({
|
|
627
|
+
results: z.array(
|
|
628
|
+
z.object({
|
|
629
|
+
itemMetadata: z.object({
|
|
630
|
+
_id: z.string().describe(
|
|
631
|
+
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
632
|
+
).optional().nullable(),
|
|
633
|
+
originalIndex: z.number().int().describe(
|
|
634
|
+
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
635
|
+
).optional(),
|
|
636
|
+
success: z.boolean().describe(
|
|
637
|
+
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
638
|
+
).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()
|
|
643
|
+
}).describe("Details about the error in case of failure.").optional()
|
|
644
|
+
}).describe(
|
|
645
|
+
"Information about the updated project item.\nIncluding its ID, index in the bulk request and whether it was successfully updated."
|
|
646
|
+
).optional(),
|
|
647
|
+
item: z.intersection(
|
|
648
|
+
z.object({
|
|
649
|
+
projectId: z.string().describe("Project ID.").regex(
|
|
650
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
652
|
+
).optional().nullable(),
|
|
653
|
+
_id: z.string().describe("Project item ID.").regex(
|
|
654
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
656
|
+
).optional().nullable(),
|
|
657
|
+
sortOrder: z.number().describe(
|
|
658
|
+
"Index that determines which position a project is displayed in the project. <br />\n\nDefault: [Epoch](https://www.epoch101.com/) timestamp. <br />"
|
|
659
|
+
).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(
|
|
669
|
+
"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
|
+
).max(50).optional().nullable()
|
|
671
|
+
}).describe("Project item link.").optional()
|
|
672
|
+
}),
|
|
673
|
+
z.xor([
|
|
674
|
+
z.object({
|
|
675
|
+
image: z.never().optional(),
|
|
676
|
+
video: z.never().optional()
|
|
677
|
+
}),
|
|
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()
|
|
685
|
+
}).describe("Focal point of the image.").optional()
|
|
686
|
+
}).describe("Information about the Wix Media image.")
|
|
687
|
+
}),
|
|
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(
|
|
693
|
+
"Manually defined Video duration in milliseconds."
|
|
694
|
+
).optional().nullable()
|
|
695
|
+
}).describe("Information about the Wix Media video.")
|
|
696
|
+
})
|
|
697
|
+
])
|
|
698
|
+
).describe(
|
|
699
|
+
"Updated project item. Only returned if `returnEntity` is set to `true` in the request."
|
|
700
|
+
).optional()
|
|
701
|
+
})
|
|
702
|
+
).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(
|
|
707
|
+
"Number of failures without details because detailed failure threshold was exceeded."
|
|
708
|
+
).optional()
|
|
709
|
+
}).describe(
|
|
710
|
+
"Total number of successes and failures for Bulk Update Project Items."
|
|
711
|
+
).optional()
|
|
712
|
+
});
|
|
713
|
+
var DeleteProjectItemRequest = z.object({
|
|
714
|
+
itemId: z.string().describe("ID of the project item to delete.").regex(
|
|
715
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
717
|
+
)
|
|
718
|
+
});
|
|
719
|
+
var DeleteProjectItemResponse = z.object({
|
|
720
|
+
itemId: z.string().describe("ID of the deleted project item.").regex(
|
|
721
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
723
|
+
).optional()
|
|
724
|
+
});
|
|
725
|
+
var BulkDeleteProjectItemsRequest = z.object({
|
|
726
|
+
options: z.object({ itemIds: z.array(z.string()).min(1) })
|
|
727
|
+
});
|
|
728
|
+
var BulkDeleteProjectItemsResponse = z.object({
|
|
729
|
+
results: z.array(
|
|
730
|
+
z.object({
|
|
731
|
+
itemMetadata: z.object({
|
|
732
|
+
_id: z.string().describe(
|
|
733
|
+
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
734
|
+
).optional().nullable(),
|
|
735
|
+
originalIndex: z.number().int().describe(
|
|
736
|
+
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
737
|
+
).optional(),
|
|
738
|
+
success: z.boolean().describe(
|
|
739
|
+
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
740
|
+
).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()
|
|
745
|
+
}).describe("Details about the error in case of failure.").optional()
|
|
746
|
+
}).describe(
|
|
747
|
+
"Information about the deleted project item.\nIncluding its ID, index in the bulk request and whether it was successfully deleted."
|
|
748
|
+
).optional(),
|
|
749
|
+
itemId: z.string().describe("ID of the deleted project item.").regex(
|
|
750
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
752
|
+
).optional()
|
|
753
|
+
})
|
|
754
|
+
).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(
|
|
759
|
+
"Number of failures without details because detailed failure threshold was exceeded."
|
|
760
|
+
).optional()
|
|
761
|
+
}).describe(
|
|
762
|
+
"Total number of successes and failures for Bulk Delete Project Items."
|
|
763
|
+
).optional()
|
|
764
|
+
});
|
|
765
|
+
var DuplicateProjectItemsRequest = z.object({
|
|
766
|
+
originProjectId: z.string().describe("ID of the project containing the items to duplicate.").regex(
|
|
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}$/,
|
|
768
|
+
"Must be a valid GUID"
|
|
769
|
+
),
|
|
770
|
+
options: z.object({
|
|
771
|
+
targetProjectId: z.string().describe("ID of the project where the duplicated items will be added.").regex(
|
|
772
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
774
|
+
)
|
|
775
|
+
})
|
|
776
|
+
});
|
|
777
|
+
var DuplicateProjectItemsResponse = z.object({
|
|
778
|
+
projectId: z.string().describe("Project ID where the duplicated items have been added.").regex(
|
|
779
|
+
/^[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
|
+
"Must be a valid GUID"
|
|
781
|
+
).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(
|
|
786
|
+
"Number of failures without details because detailed failure threshold was exceeded."
|
|
787
|
+
).optional()
|
|
788
|
+
}).describe("Bulk action metadata.").optional()
|
|
789
|
+
});
|
|
790
|
+
var GenerateTokenForProjectItemsRequest = z.object({
|
|
791
|
+
mediaIds: z.array(z.string()).min(1)
|
|
792
|
+
});
|
|
793
|
+
var GenerateTokenForProjectItemsResponse = 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()
|
|
798
|
+
})
|
|
799
|
+
).optional()
|
|
800
|
+
});
|
|
801
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
802
|
+
0 && (module.exports = {
|
|
803
|
+
BulkCreateProjectItemsRequest,
|
|
804
|
+
BulkCreateProjectItemsResponse,
|
|
805
|
+
BulkDeleteProjectItemsRequest,
|
|
806
|
+
BulkDeleteProjectItemsResponse,
|
|
807
|
+
BulkUpdateProjectItemsRequest,
|
|
808
|
+
BulkUpdateProjectItemsResponse,
|
|
809
|
+
CreateProjectItemRequest,
|
|
810
|
+
CreateProjectItemResponse,
|
|
811
|
+
DeleteProjectItemRequest,
|
|
812
|
+
DeleteProjectItemResponse,
|
|
813
|
+
DuplicateProjectItemsRequest,
|
|
814
|
+
DuplicateProjectItemsResponse,
|
|
815
|
+
GenerateTokenForProjectItemsRequest,
|
|
816
|
+
GenerateTokenForProjectItemsResponse,
|
|
817
|
+
GetProjectItemRequest,
|
|
818
|
+
GetProjectItemResponse,
|
|
819
|
+
ListProjectItemsRequest,
|
|
820
|
+
ListProjectItemsResponse,
|
|
821
|
+
UpdateProjectItemRequest,
|
|
822
|
+
UpdateProjectItemResponse
|
|
823
|
+
});
|
|
824
|
+
//# sourceMappingURL=schemas.js.map
|