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