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