@wix/media 1.0.104 → 1.0.106
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/package.json +6 -6
- package/type-bundles/context.bundle.d.ts +3291 -4
- package/type-bundles/index.bundle.d.ts +261 -992
- package/type-bundles/meta.bundle.d.ts +461 -2285
|
@@ -1,3 +1,340 @@
|
|
|
1
|
+
interface EnterpriseCategory {
|
|
2
|
+
/**
|
|
3
|
+
* Id of the category
|
|
4
|
+
* @readonly
|
|
5
|
+
*/
|
|
6
|
+
_id?: string;
|
|
7
|
+
/** The display name that will be shown for the item */
|
|
8
|
+
displayName?: string | null;
|
|
9
|
+
/** Id of the parent category, will default to the account master category */
|
|
10
|
+
parentCategoryId?: string | null;
|
|
11
|
+
/** Sort order number of the category, will determine the order of the category with other categories under the same parent category */
|
|
12
|
+
sortOrder?: number | null;
|
|
13
|
+
/** Publish status of the category */
|
|
14
|
+
publishStatus?: PublishStatus$1;
|
|
15
|
+
/**
|
|
16
|
+
* Date and time the category was created.
|
|
17
|
+
* @readonly
|
|
18
|
+
*/
|
|
19
|
+
_createdDate?: Date;
|
|
20
|
+
/**
|
|
21
|
+
* Date and time the category was updated.
|
|
22
|
+
* @readonly
|
|
23
|
+
*/
|
|
24
|
+
_updatedDate?: Date;
|
|
25
|
+
}
|
|
26
|
+
declare enum PublishStatus$1 {
|
|
27
|
+
UNDEFINED = "UNDEFINED",
|
|
28
|
+
UNPUBLISHED = "UNPUBLISHED",
|
|
29
|
+
PUBLISHED = "PUBLISHED",
|
|
30
|
+
WIX_ONLY = "WIX_ONLY"
|
|
31
|
+
}
|
|
32
|
+
declare enum MediaType$2 {
|
|
33
|
+
MIXED = "MIXED",
|
|
34
|
+
IMAGE = "IMAGE",
|
|
35
|
+
VIDEO = "VIDEO",
|
|
36
|
+
AUDIO = "AUDIO",
|
|
37
|
+
DOCUMENT = "DOCUMENT",
|
|
38
|
+
VECTOR = "VECTOR",
|
|
39
|
+
ARCHIVE = "ARCHIVE",
|
|
40
|
+
MODEL3D = "MODEL3D"
|
|
41
|
+
}
|
|
42
|
+
interface CreateCategoryRequest {
|
|
43
|
+
/** The category object that will be created */
|
|
44
|
+
category: EnterpriseCategory;
|
|
45
|
+
}
|
|
46
|
+
interface CreateCategoryResponse {
|
|
47
|
+
/** A list of items matching the request */
|
|
48
|
+
category?: EnterpriseCategory;
|
|
49
|
+
}
|
|
50
|
+
interface DeleteCategoryRequest {
|
|
51
|
+
/** Category id */
|
|
52
|
+
categoryId: string;
|
|
53
|
+
}
|
|
54
|
+
interface DeleteCategoryResponse {
|
|
55
|
+
}
|
|
56
|
+
interface UpdateCategoryRequest {
|
|
57
|
+
/** The category object that will be created */
|
|
58
|
+
category: EnterpriseCategory;
|
|
59
|
+
}
|
|
60
|
+
interface UpdateCategoryResponse {
|
|
61
|
+
/** The updated category */
|
|
62
|
+
category?: EnterpriseCategory;
|
|
63
|
+
}
|
|
64
|
+
interface GetCategoryRequest {
|
|
65
|
+
/** Category id */
|
|
66
|
+
categoryId: string;
|
|
67
|
+
/** number of sub category levels */
|
|
68
|
+
levels?: number | null;
|
|
69
|
+
/** filter categories by publish statuses. When empty will return PUBLISHED and UNPUBLISHED */
|
|
70
|
+
publishStatus?: PublishStatus$1;
|
|
71
|
+
}
|
|
72
|
+
interface GetCategoryResponse {
|
|
73
|
+
/** The category details */
|
|
74
|
+
category?: EnterpriseCategoryTree;
|
|
75
|
+
}
|
|
76
|
+
interface EnterpriseCategoryTree {
|
|
77
|
+
/** Category information */
|
|
78
|
+
category?: EnterpriseCategory;
|
|
79
|
+
/** Information about the sub categories */
|
|
80
|
+
subCategories?: EnterpriseCategoryTree[];
|
|
81
|
+
}
|
|
82
|
+
interface EnterpriseOnboardingRequest {
|
|
83
|
+
/** The account id of the organization - will be used as the organization category id */
|
|
84
|
+
accountId: string;
|
|
85
|
+
/** The account name of the organization - will be used as the organization category name */
|
|
86
|
+
accountName?: string;
|
|
87
|
+
}
|
|
88
|
+
interface EnterpriseOnboardingResponse {
|
|
89
|
+
/** The enterprise category */
|
|
90
|
+
category?: EnterpriseCategory;
|
|
91
|
+
}
|
|
92
|
+
interface LinkItemsToCategoryRequest {
|
|
93
|
+
/** The category to link to */
|
|
94
|
+
categoryId?: string;
|
|
95
|
+
/** The item ids that will be added to the category */
|
|
96
|
+
itemIds?: string[];
|
|
97
|
+
}
|
|
98
|
+
interface LinkItemsToCategoryResponse {
|
|
99
|
+
}
|
|
100
|
+
interface UnlinkItemsFromCategoryRequest {
|
|
101
|
+
/** The category to link to */
|
|
102
|
+
categoryId?: string;
|
|
103
|
+
/** The item ids that will be added to the category */
|
|
104
|
+
itemIds?: string[];
|
|
105
|
+
}
|
|
106
|
+
interface UnlinkItemsFromCategoryResponse {
|
|
107
|
+
}
|
|
108
|
+
interface GetMediaManagerCategoriesRequest {
|
|
109
|
+
}
|
|
110
|
+
interface GetMediaManagerCategoriesResponse {
|
|
111
|
+
/** The category details */
|
|
112
|
+
category?: EnterpriseCategoryTree;
|
|
113
|
+
}
|
|
114
|
+
interface DomainEvent$3 extends DomainEventBodyOneOf$3 {
|
|
115
|
+
createdEvent?: EntityCreatedEvent$3;
|
|
116
|
+
updatedEvent?: EntityUpdatedEvent$3;
|
|
117
|
+
deletedEvent?: EntityDeletedEvent$3;
|
|
118
|
+
actionEvent?: ActionEvent$3;
|
|
119
|
+
/**
|
|
120
|
+
* Unique event ID.
|
|
121
|
+
* Allows clients to ignore duplicate webhooks.
|
|
122
|
+
*/
|
|
123
|
+
_id?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Assumes actions are also always typed to an entity_type
|
|
126
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
127
|
+
*/
|
|
128
|
+
entityFqdn?: string;
|
|
129
|
+
/**
|
|
130
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
131
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
132
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
133
|
+
*/
|
|
134
|
+
slug?: string;
|
|
135
|
+
/** ID of the entity associated with the event. */
|
|
136
|
+
entityId?: string;
|
|
137
|
+
/** Event timestamp. */
|
|
138
|
+
eventTime?: Date;
|
|
139
|
+
/**
|
|
140
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
141
|
+
* (for example, GDPR).
|
|
142
|
+
*/
|
|
143
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
144
|
+
/** If present, indicates the action that triggered the event. */
|
|
145
|
+
originatedFrom?: string | null;
|
|
146
|
+
/**
|
|
147
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
148
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
149
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
150
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
151
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
152
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
153
|
+
*/
|
|
154
|
+
entityEventSequence?: string | null;
|
|
155
|
+
}
|
|
156
|
+
/** @oneof */
|
|
157
|
+
interface DomainEventBodyOneOf$3 {
|
|
158
|
+
createdEvent?: EntityCreatedEvent$3;
|
|
159
|
+
updatedEvent?: EntityUpdatedEvent$3;
|
|
160
|
+
deletedEvent?: EntityDeletedEvent$3;
|
|
161
|
+
actionEvent?: ActionEvent$3;
|
|
162
|
+
}
|
|
163
|
+
interface EntityCreatedEvent$3 {
|
|
164
|
+
entity?: string;
|
|
165
|
+
}
|
|
166
|
+
interface EntityUpdatedEvent$3 {
|
|
167
|
+
/**
|
|
168
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
169
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
170
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
171
|
+
*/
|
|
172
|
+
currentEntity?: string;
|
|
173
|
+
}
|
|
174
|
+
interface EntityDeletedEvent$3 {
|
|
175
|
+
/** Entity that was deleted */
|
|
176
|
+
deletedEntity?: string | null;
|
|
177
|
+
}
|
|
178
|
+
interface ActionEvent$3 {
|
|
179
|
+
body?: string;
|
|
180
|
+
}
|
|
181
|
+
interface MessageEnvelope$3 {
|
|
182
|
+
/** App instance ID. */
|
|
183
|
+
instanceId?: string | null;
|
|
184
|
+
/** Event type. */
|
|
185
|
+
eventType?: string;
|
|
186
|
+
/** The identification type and identity data. */
|
|
187
|
+
identity?: IdentificationData$3;
|
|
188
|
+
/** Stringify payload. */
|
|
189
|
+
data?: string;
|
|
190
|
+
}
|
|
191
|
+
interface IdentificationData$3 extends IdentificationDataIdOneOf$3 {
|
|
192
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
193
|
+
anonymousVisitorId?: string;
|
|
194
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
195
|
+
memberId?: string;
|
|
196
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
197
|
+
wixUserId?: string;
|
|
198
|
+
/** ID of an app. */
|
|
199
|
+
appId?: string;
|
|
200
|
+
/** @readonly */
|
|
201
|
+
identityType?: WebhookIdentityType$3;
|
|
202
|
+
}
|
|
203
|
+
/** @oneof */
|
|
204
|
+
interface IdentificationDataIdOneOf$3 {
|
|
205
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
206
|
+
anonymousVisitorId?: string;
|
|
207
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
208
|
+
memberId?: string;
|
|
209
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
210
|
+
wixUserId?: string;
|
|
211
|
+
/** ID of an app. */
|
|
212
|
+
appId?: string;
|
|
213
|
+
}
|
|
214
|
+
declare enum WebhookIdentityType$3 {
|
|
215
|
+
UNKNOWN = "UNKNOWN",
|
|
216
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
217
|
+
MEMBER = "MEMBER",
|
|
218
|
+
WIX_USER = "WIX_USER",
|
|
219
|
+
APP = "APP"
|
|
220
|
+
}
|
|
221
|
+
interface EnterpriseCategoryNonNullableFields {
|
|
222
|
+
_id: string;
|
|
223
|
+
publishStatus: PublishStatus$1;
|
|
224
|
+
mediaType: MediaType$2;
|
|
225
|
+
}
|
|
226
|
+
interface CreateCategoryResponseNonNullableFields {
|
|
227
|
+
category?: EnterpriseCategoryNonNullableFields;
|
|
228
|
+
}
|
|
229
|
+
interface UpdateCategoryResponseNonNullableFields {
|
|
230
|
+
category?: EnterpriseCategoryNonNullableFields;
|
|
231
|
+
}
|
|
232
|
+
interface EnterpriseCategoryTreeNonNullableFields {
|
|
233
|
+
category?: EnterpriseCategoryNonNullableFields;
|
|
234
|
+
subCategories: EnterpriseCategoryTreeNonNullableFields[];
|
|
235
|
+
}
|
|
236
|
+
interface GetCategoryResponseNonNullableFields {
|
|
237
|
+
category?: EnterpriseCategoryTreeNonNullableFields;
|
|
238
|
+
}
|
|
239
|
+
interface EnterpriseOnboardingResponseNonNullableFields {
|
|
240
|
+
category?: EnterpriseCategoryNonNullableFields;
|
|
241
|
+
}
|
|
242
|
+
interface GetMediaManagerCategoriesResponseNonNullableFields {
|
|
243
|
+
category?: EnterpriseCategoryTreeNonNullableFields;
|
|
244
|
+
}
|
|
245
|
+
interface BaseEventMetadata$3 {
|
|
246
|
+
/** App instance ID. */
|
|
247
|
+
instanceId?: string | null;
|
|
248
|
+
/** Event type. */
|
|
249
|
+
eventType?: string;
|
|
250
|
+
/** The identification type and identity data. */
|
|
251
|
+
identity?: IdentificationData$3;
|
|
252
|
+
}
|
|
253
|
+
interface EventMetadata$3 extends BaseEventMetadata$3 {
|
|
254
|
+
/**
|
|
255
|
+
* Unique event ID.
|
|
256
|
+
* Allows clients to ignore duplicate webhooks.
|
|
257
|
+
*/
|
|
258
|
+
_id?: string;
|
|
259
|
+
/**
|
|
260
|
+
* Assumes actions are also always typed to an entity_type
|
|
261
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
262
|
+
*/
|
|
263
|
+
entityFqdn?: string;
|
|
264
|
+
/**
|
|
265
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
266
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
267
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
268
|
+
*/
|
|
269
|
+
slug?: string;
|
|
270
|
+
/** ID of the entity associated with the event. */
|
|
271
|
+
entityId?: string;
|
|
272
|
+
/** Event timestamp. */
|
|
273
|
+
eventTime?: Date;
|
|
274
|
+
/**
|
|
275
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
276
|
+
* (for example, GDPR).
|
|
277
|
+
*/
|
|
278
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
279
|
+
/** If present, indicates the action that triggered the event. */
|
|
280
|
+
originatedFrom?: string | null;
|
|
281
|
+
/**
|
|
282
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
283
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
284
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
285
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
286
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
287
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
288
|
+
*/
|
|
289
|
+
entityEventSequence?: string | null;
|
|
290
|
+
}
|
|
291
|
+
interface EnterpriseCategoryCreatedEnvelope {
|
|
292
|
+
entity: EnterpriseCategory;
|
|
293
|
+
metadata: EventMetadata$3;
|
|
294
|
+
}
|
|
295
|
+
interface EnterpriseCategoryDeletedEnvelope {
|
|
296
|
+
metadata: EventMetadata$3;
|
|
297
|
+
}
|
|
298
|
+
interface EnterpriseCategoryUpdatedEnvelope {
|
|
299
|
+
entity: EnterpriseCategory;
|
|
300
|
+
metadata: EventMetadata$3;
|
|
301
|
+
}
|
|
302
|
+
interface UpdateCategory {
|
|
303
|
+
/**
|
|
304
|
+
* Id of the category
|
|
305
|
+
* @readonly
|
|
306
|
+
*/
|
|
307
|
+
_id?: string;
|
|
308
|
+
/** The display name that will be shown for the item */
|
|
309
|
+
displayName?: string | null;
|
|
310
|
+
/** Id of the parent category, will default to the account master category */
|
|
311
|
+
parentCategoryId?: string | null;
|
|
312
|
+
/** Sort order number of the category, will determine the order of the category with other categories under the same parent category */
|
|
313
|
+
sortOrder?: number | null;
|
|
314
|
+
/** Publish status of the category */
|
|
315
|
+
publishStatus?: PublishStatus$1;
|
|
316
|
+
/**
|
|
317
|
+
* Date and time the category was created.
|
|
318
|
+
* @readonly
|
|
319
|
+
*/
|
|
320
|
+
_createdDate?: Date;
|
|
321
|
+
/**
|
|
322
|
+
* Date and time the category was updated.
|
|
323
|
+
* @readonly
|
|
324
|
+
*/
|
|
325
|
+
_updatedDate?: Date;
|
|
326
|
+
}
|
|
327
|
+
interface GetCategoryOptions {
|
|
328
|
+
/** number of sub category levels */
|
|
329
|
+
levels?: number | null;
|
|
330
|
+
/** filter categories by publish statuses. When empty will return PUBLISHED and UNPUBLISHED */
|
|
331
|
+
publishStatus?: PublishStatus$1;
|
|
332
|
+
}
|
|
333
|
+
interface EnterpriseOnboardingOptions {
|
|
334
|
+
/** The account name of the organization - will be used as the organization category name */
|
|
335
|
+
accountName?: string;
|
|
336
|
+
}
|
|
337
|
+
|
|
1
338
|
type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
|
|
2
339
|
interface HttpClient {
|
|
3
340
|
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
|
|
@@ -56,6 +393,37 @@ declare const onEnterpriseCategoryCreated: ReturnType<typeof createEventModule$3
|
|
|
56
393
|
declare const onEnterpriseCategoryDeleted: ReturnType<typeof createEventModule$3<typeof publicOnEnterpriseCategoryDeleted>>;
|
|
57
394
|
declare const onEnterpriseCategoryUpdated: ReturnType<typeof createEventModule$3<typeof publicOnEnterpriseCategoryUpdated>>;
|
|
58
395
|
|
|
396
|
+
type context$3_CreateCategoryRequest = CreateCategoryRequest;
|
|
397
|
+
type context$3_CreateCategoryResponse = CreateCategoryResponse;
|
|
398
|
+
type context$3_CreateCategoryResponseNonNullableFields = CreateCategoryResponseNonNullableFields;
|
|
399
|
+
type context$3_DeleteCategoryRequest = DeleteCategoryRequest;
|
|
400
|
+
type context$3_DeleteCategoryResponse = DeleteCategoryResponse;
|
|
401
|
+
type context$3_EnterpriseCategory = EnterpriseCategory;
|
|
402
|
+
type context$3_EnterpriseCategoryCreatedEnvelope = EnterpriseCategoryCreatedEnvelope;
|
|
403
|
+
type context$3_EnterpriseCategoryDeletedEnvelope = EnterpriseCategoryDeletedEnvelope;
|
|
404
|
+
type context$3_EnterpriseCategoryNonNullableFields = EnterpriseCategoryNonNullableFields;
|
|
405
|
+
type context$3_EnterpriseCategoryTree = EnterpriseCategoryTree;
|
|
406
|
+
type context$3_EnterpriseCategoryTreeNonNullableFields = EnterpriseCategoryTreeNonNullableFields;
|
|
407
|
+
type context$3_EnterpriseCategoryUpdatedEnvelope = EnterpriseCategoryUpdatedEnvelope;
|
|
408
|
+
type context$3_EnterpriseOnboardingOptions = EnterpriseOnboardingOptions;
|
|
409
|
+
type context$3_EnterpriseOnboardingRequest = EnterpriseOnboardingRequest;
|
|
410
|
+
type context$3_EnterpriseOnboardingResponse = EnterpriseOnboardingResponse;
|
|
411
|
+
type context$3_EnterpriseOnboardingResponseNonNullableFields = EnterpriseOnboardingResponseNonNullableFields;
|
|
412
|
+
type context$3_GetCategoryOptions = GetCategoryOptions;
|
|
413
|
+
type context$3_GetCategoryRequest = GetCategoryRequest;
|
|
414
|
+
type context$3_GetCategoryResponse = GetCategoryResponse;
|
|
415
|
+
type context$3_GetCategoryResponseNonNullableFields = GetCategoryResponseNonNullableFields;
|
|
416
|
+
type context$3_GetMediaManagerCategoriesRequest = GetMediaManagerCategoriesRequest;
|
|
417
|
+
type context$3_GetMediaManagerCategoriesResponse = GetMediaManagerCategoriesResponse;
|
|
418
|
+
type context$3_GetMediaManagerCategoriesResponseNonNullableFields = GetMediaManagerCategoriesResponseNonNullableFields;
|
|
419
|
+
type context$3_LinkItemsToCategoryRequest = LinkItemsToCategoryRequest;
|
|
420
|
+
type context$3_LinkItemsToCategoryResponse = LinkItemsToCategoryResponse;
|
|
421
|
+
type context$3_UnlinkItemsFromCategoryRequest = UnlinkItemsFromCategoryRequest;
|
|
422
|
+
type context$3_UnlinkItemsFromCategoryResponse = UnlinkItemsFromCategoryResponse;
|
|
423
|
+
type context$3_UpdateCategory = UpdateCategory;
|
|
424
|
+
type context$3_UpdateCategoryRequest = UpdateCategoryRequest;
|
|
425
|
+
type context$3_UpdateCategoryResponse = UpdateCategoryResponse;
|
|
426
|
+
type context$3_UpdateCategoryResponseNonNullableFields = UpdateCategoryResponseNonNullableFields;
|
|
59
427
|
declare const context$3_createCategory: typeof createCategory;
|
|
60
428
|
declare const context$3_deleteCategory: typeof deleteCategory;
|
|
61
429
|
declare const context$3_enterpriseOnboarding: typeof enterpriseOnboarding;
|
|
@@ -66,7 +434,831 @@ declare const context$3_onEnterpriseCategoryDeleted: typeof onEnterpriseCategory
|
|
|
66
434
|
declare const context$3_onEnterpriseCategoryUpdated: typeof onEnterpriseCategoryUpdated;
|
|
67
435
|
declare const context$3_updateCategory: typeof updateCategory;
|
|
68
436
|
declare namespace context$3 {
|
|
69
|
-
export { context$3_createCategory as createCategory, context$3_deleteCategory as deleteCategory, context$3_enterpriseOnboarding as enterpriseOnboarding, context$3_getCategory as getCategory, context$3_getMediaManagerCategories as getMediaManagerCategories, context$3_onEnterpriseCategoryCreated as onEnterpriseCategoryCreated, context$3_onEnterpriseCategoryDeleted as onEnterpriseCategoryDeleted, context$3_onEnterpriseCategoryUpdated as onEnterpriseCategoryUpdated, context$3_updateCategory as updateCategory };
|
|
437
|
+
export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$3 as BaseEventMetadata, type context$3_CreateCategoryRequest as CreateCategoryRequest, type context$3_CreateCategoryResponse as CreateCategoryResponse, type context$3_CreateCategoryResponseNonNullableFields as CreateCategoryResponseNonNullableFields, type context$3_DeleteCategoryRequest as DeleteCategoryRequest, type context$3_DeleteCategoryResponse as DeleteCategoryResponse, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type context$3_EnterpriseCategory as EnterpriseCategory, type context$3_EnterpriseCategoryCreatedEnvelope as EnterpriseCategoryCreatedEnvelope, type context$3_EnterpriseCategoryDeletedEnvelope as EnterpriseCategoryDeletedEnvelope, type context$3_EnterpriseCategoryNonNullableFields as EnterpriseCategoryNonNullableFields, type context$3_EnterpriseCategoryTree as EnterpriseCategoryTree, type context$3_EnterpriseCategoryTreeNonNullableFields as EnterpriseCategoryTreeNonNullableFields, type context$3_EnterpriseCategoryUpdatedEnvelope as EnterpriseCategoryUpdatedEnvelope, type context$3_EnterpriseOnboardingOptions as EnterpriseOnboardingOptions, type context$3_EnterpriseOnboardingRequest as EnterpriseOnboardingRequest, type context$3_EnterpriseOnboardingResponse as EnterpriseOnboardingResponse, type context$3_EnterpriseOnboardingResponseNonNullableFields as EnterpriseOnboardingResponseNonNullableFields, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type EventMetadata$3 as EventMetadata, type context$3_GetCategoryOptions as GetCategoryOptions, type context$3_GetCategoryRequest as GetCategoryRequest, type context$3_GetCategoryResponse as GetCategoryResponse, type context$3_GetCategoryResponseNonNullableFields as GetCategoryResponseNonNullableFields, type context$3_GetMediaManagerCategoriesRequest as GetMediaManagerCategoriesRequest, type context$3_GetMediaManagerCategoriesResponse as GetMediaManagerCategoriesResponse, type context$3_GetMediaManagerCategoriesResponseNonNullableFields as GetMediaManagerCategoriesResponseNonNullableFields, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, type context$3_LinkItemsToCategoryRequest as LinkItemsToCategoryRequest, type context$3_LinkItemsToCategoryResponse as LinkItemsToCategoryResponse, MediaType$2 as MediaType, type MessageEnvelope$3 as MessageEnvelope, PublishStatus$1 as PublishStatus, type context$3_UnlinkItemsFromCategoryRequest as UnlinkItemsFromCategoryRequest, type context$3_UnlinkItemsFromCategoryResponse as UnlinkItemsFromCategoryResponse, type context$3_UpdateCategory as UpdateCategory, type context$3_UpdateCategoryRequest as UpdateCategoryRequest, type context$3_UpdateCategoryResponse as UpdateCategoryResponse, type context$3_UpdateCategoryResponseNonNullableFields as UpdateCategoryResponseNonNullableFields, WebhookIdentityType$3 as WebhookIdentityType, context$3_createCategory as createCategory, context$3_deleteCategory as deleteCategory, context$3_enterpriseOnboarding as enterpriseOnboarding, context$3_getCategory as getCategory, context$3_getMediaManagerCategories as getMediaManagerCategories, context$3_onEnterpriseCategoryCreated as onEnterpriseCategoryCreated, context$3_onEnterpriseCategoryDeleted as onEnterpriseCategoryDeleted, context$3_onEnterpriseCategoryUpdated as onEnterpriseCategoryUpdated, context$3_updateCategory as updateCategory };
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* Duration for video fits better if there will be type specific media item.. however, is it ok to implement
|
|
442
|
+
* an additional one of field called details?
|
|
443
|
+
*/
|
|
444
|
+
interface EnterpriseMediaItem {
|
|
445
|
+
/**
|
|
446
|
+
* Id of the item in public media
|
|
447
|
+
* @readonly
|
|
448
|
+
*/
|
|
449
|
+
_id?: string;
|
|
450
|
+
/**
|
|
451
|
+
* Media type of the item
|
|
452
|
+
* @readonly
|
|
453
|
+
*/
|
|
454
|
+
mediaType?: MediaType$1;
|
|
455
|
+
/**
|
|
456
|
+
* Size of the uploaded file in bytes.
|
|
457
|
+
* @readonly
|
|
458
|
+
*/
|
|
459
|
+
sizeInBytes?: string | null;
|
|
460
|
+
/** The item title, part of searchable fields */
|
|
461
|
+
title?: string | null;
|
|
462
|
+
/**
|
|
463
|
+
* The aspect ratio of the item
|
|
464
|
+
* An object containing urls for different views of the item
|
|
465
|
+
* @readonly
|
|
466
|
+
*/
|
|
467
|
+
assets?: ItemAssets;
|
|
468
|
+
/** Tags describing the image, part of searchable fields */
|
|
469
|
+
displayTags?: string[] | null;
|
|
470
|
+
/** Tags for internal client use, part of searchable fields */
|
|
471
|
+
internalTags?: string[] | null;
|
|
472
|
+
/**
|
|
473
|
+
* Tags for filtering items in the search
|
|
474
|
+
* @readonly
|
|
475
|
+
*/
|
|
476
|
+
systemTags?: string[] | null;
|
|
477
|
+
/**
|
|
478
|
+
* Category ids this item belongs to
|
|
479
|
+
* @readonly
|
|
480
|
+
*/
|
|
481
|
+
parentCategoryIds?: string[] | null;
|
|
482
|
+
/** Status of the item */
|
|
483
|
+
publishStatus?: PublishStatus;
|
|
484
|
+
/**
|
|
485
|
+
* Date and time the item was created.
|
|
486
|
+
* @readonly
|
|
487
|
+
*/
|
|
488
|
+
_createdDate?: Date;
|
|
489
|
+
/**
|
|
490
|
+
* Date and time the item was updated.
|
|
491
|
+
* @readonly
|
|
492
|
+
*/
|
|
493
|
+
_updatedDate?: Date;
|
|
494
|
+
/**
|
|
495
|
+
* An internal id used with different wix media systems
|
|
496
|
+
* @readonly
|
|
497
|
+
*/
|
|
498
|
+
internalId?: string | null;
|
|
499
|
+
}
|
|
500
|
+
declare enum MediaType$1 {
|
|
501
|
+
MIXED = "MIXED",
|
|
502
|
+
IMAGE = "IMAGE",
|
|
503
|
+
VIDEO = "VIDEO",
|
|
504
|
+
AUDIO = "AUDIO",
|
|
505
|
+
DOCUMENT = "DOCUMENT",
|
|
506
|
+
VECTOR = "VECTOR",
|
|
507
|
+
ARCHIVE = "ARCHIVE",
|
|
508
|
+
MODEL3D = "MODEL3D"
|
|
509
|
+
}
|
|
510
|
+
interface ItemAssets extends ItemAssetsAssetsOneOf {
|
|
511
|
+
/** Assets for image media type */
|
|
512
|
+
image?: string;
|
|
513
|
+
/** Assets for video media type */
|
|
514
|
+
video?: string;
|
|
515
|
+
/** Assets for vector media type */
|
|
516
|
+
vector?: string;
|
|
517
|
+
/** Assets for audio media type */
|
|
518
|
+
audio?: string;
|
|
519
|
+
/** Assets for document media type */
|
|
520
|
+
document?: string;
|
|
521
|
+
/** Information about the archive. */
|
|
522
|
+
archive?: Archive$1;
|
|
523
|
+
/** Information about the 3D Model. */
|
|
524
|
+
model3d?: Model3D$1;
|
|
525
|
+
}
|
|
526
|
+
/** @oneof */
|
|
527
|
+
interface ItemAssetsAssetsOneOf {
|
|
528
|
+
/** Assets for image media type */
|
|
529
|
+
image?: string;
|
|
530
|
+
/** Assets for video media type */
|
|
531
|
+
video?: string;
|
|
532
|
+
/** Assets for vector media type */
|
|
533
|
+
vector?: string;
|
|
534
|
+
/** Assets for audio media type */
|
|
535
|
+
audio?: string;
|
|
536
|
+
/** Assets for document media type */
|
|
537
|
+
document?: string;
|
|
538
|
+
/** Information about the archive. */
|
|
539
|
+
archive?: Archive$1;
|
|
540
|
+
/** Information about the 3D Model. */
|
|
541
|
+
model3d?: Model3D$1;
|
|
542
|
+
}
|
|
543
|
+
interface VideoResolution$1 {
|
|
544
|
+
/** Video URL. */
|
|
545
|
+
url?: string;
|
|
546
|
+
/** Video height. */
|
|
547
|
+
height?: number;
|
|
548
|
+
/** Video width. */
|
|
549
|
+
width?: number;
|
|
550
|
+
/**
|
|
551
|
+
* Video format
|
|
552
|
+
* Possible values: ['144p.mp4' '144p.webm' '240p.mp4' '240p.webm' '360p.mp4' '360p.webm' '480p.mp4' '480p.webm'
|
|
553
|
+
* '720p.mp4' '720p.webm' '1080p.mp4' '1080p.webm' ]
|
|
554
|
+
*/
|
|
555
|
+
format?: string;
|
|
556
|
+
}
|
|
557
|
+
interface Archive$1 {
|
|
558
|
+
/** WixMedia ID. */
|
|
559
|
+
_id?: string;
|
|
560
|
+
/** Archive URL. */
|
|
561
|
+
url?: string;
|
|
562
|
+
/**
|
|
563
|
+
* Archive URL expiration date (when relevant).
|
|
564
|
+
* @readonly
|
|
565
|
+
*/
|
|
566
|
+
urlExpirationDate?: Date;
|
|
567
|
+
/** Archive size in bytes. */
|
|
568
|
+
sizeInBytes?: string | null;
|
|
569
|
+
/** Archive filename. */
|
|
570
|
+
filename?: string | null;
|
|
571
|
+
}
|
|
572
|
+
interface Model3D$1 {
|
|
573
|
+
/** WixMedia 3D ID. */
|
|
574
|
+
_id?: string;
|
|
575
|
+
/** 3D URL. */
|
|
576
|
+
url?: string;
|
|
577
|
+
/** 3D thumbnail Image */
|
|
578
|
+
thumbnail?: string;
|
|
579
|
+
/** 3D alt text. */
|
|
580
|
+
altText?: string | null;
|
|
581
|
+
/**
|
|
582
|
+
* 3D URL expiration date (when relevant).
|
|
583
|
+
* @readonly
|
|
584
|
+
*/
|
|
585
|
+
urlExpirationDate?: Date;
|
|
586
|
+
/**
|
|
587
|
+
* 3D filename.
|
|
588
|
+
* @readonly
|
|
589
|
+
*/
|
|
590
|
+
filename?: string | null;
|
|
591
|
+
/**
|
|
592
|
+
* 3D size in bytes.
|
|
593
|
+
* @readonly
|
|
594
|
+
*/
|
|
595
|
+
sizeInBytes?: string | null;
|
|
596
|
+
}
|
|
597
|
+
declare enum PublishStatus {
|
|
598
|
+
UNDEFINED = "UNDEFINED",
|
|
599
|
+
UNPUBLISHED = "UNPUBLISHED",
|
|
600
|
+
PUBLISHED = "PUBLISHED",
|
|
601
|
+
WIX_ONLY = "WIX_ONLY"
|
|
602
|
+
}
|
|
603
|
+
interface ItemCategoriesChanged {
|
|
604
|
+
/** A list of the current item categories */
|
|
605
|
+
itemCategoryIds?: string[] | null;
|
|
606
|
+
/** A list of the categories that where unlinked from the item */
|
|
607
|
+
unlinkedCategoryIds?: string[] | null;
|
|
608
|
+
/** A list of the categories that where linked to the item */
|
|
609
|
+
linkedCategoryIds?: string[] | null;
|
|
610
|
+
/** The full updated item information */
|
|
611
|
+
entity?: EnterpriseMediaItem;
|
|
612
|
+
}
|
|
613
|
+
interface ItemUploadCallbackRequest {
|
|
614
|
+
/** The item id of the created item */
|
|
615
|
+
itemId?: string;
|
|
616
|
+
/** The callback passed to the upload endpoint */
|
|
617
|
+
callbackToken?: string;
|
|
618
|
+
}
|
|
619
|
+
interface ItemUploadCallbackResponse {
|
|
620
|
+
}
|
|
621
|
+
interface GenerateFileUploadUrlRequest$1 {
|
|
622
|
+
/** The uploaded original file name including the extension */
|
|
623
|
+
fileName?: string;
|
|
624
|
+
/** The file mime-type - will be used to identify the type of media */
|
|
625
|
+
contentType?: string;
|
|
626
|
+
/** The file size in bytes */
|
|
627
|
+
sizeInBytes?: number;
|
|
628
|
+
/**
|
|
629
|
+
* An optional list of categories to link the created item to
|
|
630
|
+
* The item will be linked to the account category automatically
|
|
631
|
+
*/
|
|
632
|
+
categoryIds?: string[] | null;
|
|
633
|
+
}
|
|
634
|
+
interface GenerateFileUploadUrlResponse$1 {
|
|
635
|
+
/** The upload url to upload the file to */
|
|
636
|
+
uploadUrl?: string;
|
|
637
|
+
}
|
|
638
|
+
interface ImportFileRequest$1 {
|
|
639
|
+
/** The url to the file to be imported */
|
|
640
|
+
url: string;
|
|
641
|
+
/** The uploaded original file name including the extension - will be used as the initial display name */
|
|
642
|
+
fileName?: string | null;
|
|
643
|
+
/** The file mime-type - will be used to identify the type of media */
|
|
644
|
+
contentType?: string | null;
|
|
645
|
+
/** The file size in bytes */
|
|
646
|
+
sizeInBytes?: number | null;
|
|
647
|
+
/**
|
|
648
|
+
* An optional list of categories to link the created item to
|
|
649
|
+
* The item will be linked to the account category automatically
|
|
650
|
+
*/
|
|
651
|
+
categoryIds?: string[] | null;
|
|
652
|
+
/** The media type of the uploaded file */
|
|
653
|
+
mediaType?: MediaType$1;
|
|
654
|
+
/**
|
|
655
|
+
* A unique identifier of the client that imported the file
|
|
656
|
+
* This information will exist in the system_tags field prefixed by '_external_uploader:{uploader_system_tag}'
|
|
657
|
+
*/
|
|
658
|
+
uploaderSystemTag?: string | null;
|
|
659
|
+
/**
|
|
660
|
+
* An additional container for external information
|
|
661
|
+
* mostly used to pass identifying information of related entities in external services
|
|
662
|
+
* This information will exist in the system_tags field prefixed by '_external_uploader_info:{uploader_info_system_tag}'
|
|
663
|
+
*/
|
|
664
|
+
uploaderInfoSystemTag?: string | null;
|
|
665
|
+
}
|
|
666
|
+
interface ImportFileResponse$1 {
|
|
667
|
+
/**
|
|
668
|
+
* Partial item - without the assets
|
|
669
|
+
* At this stage of implementation only the 'internal_id' will be filled
|
|
670
|
+
* all other required values will be fake values
|
|
671
|
+
*/
|
|
672
|
+
item?: EnterpriseMediaItem;
|
|
673
|
+
}
|
|
674
|
+
interface SearchItemsRequest {
|
|
675
|
+
/** Items search query */
|
|
676
|
+
query?: Search;
|
|
677
|
+
}
|
|
678
|
+
interface Search extends SearchPagingMethodOneOf {
|
|
679
|
+
/** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */
|
|
680
|
+
paging?: Paging;
|
|
681
|
+
/** A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
|
|
682
|
+
filter?: Record<string, any> | null;
|
|
683
|
+
/** Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}] */
|
|
684
|
+
sort?: Sorting$2[];
|
|
685
|
+
/** free text to match in searchable fields */
|
|
686
|
+
search?: SearchDetails;
|
|
687
|
+
}
|
|
688
|
+
/** @oneof */
|
|
689
|
+
interface SearchPagingMethodOneOf {
|
|
690
|
+
/** Pointer to page of results using offset. Can not be used together with 'cursor_paging' */
|
|
691
|
+
paging?: Paging;
|
|
692
|
+
}
|
|
693
|
+
interface Sorting$2 {
|
|
694
|
+
/** Name of the field to sort by. */
|
|
695
|
+
fieldName?: string;
|
|
696
|
+
/** Sort order. */
|
|
697
|
+
order?: SortOrder$2;
|
|
698
|
+
}
|
|
699
|
+
declare enum SortOrder$2 {
|
|
700
|
+
ASC = "ASC",
|
|
701
|
+
DESC = "DESC"
|
|
702
|
+
}
|
|
703
|
+
interface SearchDetails {
|
|
704
|
+
/** search term or expression */
|
|
705
|
+
expression?: string | null;
|
|
706
|
+
}
|
|
707
|
+
interface Paging {
|
|
708
|
+
/** Number of items to load. */
|
|
709
|
+
limit?: number | null;
|
|
710
|
+
/** Number of items to skip in the current sort order. */
|
|
711
|
+
offset?: number | null;
|
|
712
|
+
}
|
|
713
|
+
interface SearchItemsResponse {
|
|
714
|
+
/** A list of items matching the request */
|
|
715
|
+
items?: EnterpriseMediaItem[];
|
|
716
|
+
/** Information about the search results. */
|
|
717
|
+
pagingMetadata?: PagingMetadataV2$2;
|
|
718
|
+
}
|
|
719
|
+
interface PagingMetadataV2$2 {
|
|
720
|
+
/** Number of items returned in the response. */
|
|
721
|
+
count?: number | null;
|
|
722
|
+
/** Offset that was requested. */
|
|
723
|
+
offset?: number | null;
|
|
724
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
725
|
+
total?: number | null;
|
|
726
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
727
|
+
cursors?: Cursors$2;
|
|
728
|
+
}
|
|
729
|
+
interface Cursors$2 {
|
|
730
|
+
/** Cursor pointing to next page in the list of results. */
|
|
731
|
+
next?: string | null;
|
|
732
|
+
}
|
|
733
|
+
interface QueryItemsRequest {
|
|
734
|
+
/** Items query */
|
|
735
|
+
query?: QueryV2;
|
|
736
|
+
}
|
|
737
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
738
|
+
/** Paging options to limit and skip the number of items. */
|
|
739
|
+
paging?: Paging;
|
|
740
|
+
/**
|
|
741
|
+
* Filter object in the following format:
|
|
742
|
+
* `"filter" : {
|
|
743
|
+
* "fieldName1": "value1",
|
|
744
|
+
* "fieldName2":{"$operator":"value2"}
|
|
745
|
+
* }`
|
|
746
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
747
|
+
*/
|
|
748
|
+
filter?: Record<string, any> | null;
|
|
749
|
+
/**
|
|
750
|
+
* Sort object in the following format:
|
|
751
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
752
|
+
*/
|
|
753
|
+
sort?: Sorting$2[];
|
|
754
|
+
}
|
|
755
|
+
/** @oneof */
|
|
756
|
+
interface QueryV2PagingMethodOneOf {
|
|
757
|
+
/** Paging options to limit and skip the number of items. */
|
|
758
|
+
paging?: Paging;
|
|
759
|
+
}
|
|
760
|
+
interface QueryItemsResponse {
|
|
761
|
+
/** A list of items matching the request */
|
|
762
|
+
items?: EnterpriseMediaItem[];
|
|
763
|
+
/** Information for the next request. */
|
|
764
|
+
pagingMetadata?: PagingMetadataV2$2;
|
|
765
|
+
}
|
|
766
|
+
interface UpdateItemRequest {
|
|
767
|
+
/** The category object that will be created */
|
|
768
|
+
item: EnterpriseMediaItem;
|
|
769
|
+
}
|
|
770
|
+
interface UpdateItemResponse {
|
|
771
|
+
/** Updated item info */
|
|
772
|
+
item?: EnterpriseMediaItem;
|
|
773
|
+
}
|
|
774
|
+
interface PublishStatusChanged {
|
|
775
|
+
/** The new item status */
|
|
776
|
+
publishStatus?: PublishStatus;
|
|
777
|
+
/** The full updated item information */
|
|
778
|
+
entity?: EnterpriseMediaItem;
|
|
779
|
+
}
|
|
780
|
+
interface BulkUpdateItemRequest {
|
|
781
|
+
/** Requests to update individual item */
|
|
782
|
+
updateItemRequests: UpdateItemRequest[];
|
|
783
|
+
/** Should the response return the updated item */
|
|
784
|
+
returnEntity?: boolean;
|
|
785
|
+
}
|
|
786
|
+
interface BulkUpdateItemResponse {
|
|
787
|
+
/** Requests to update individual item */
|
|
788
|
+
results?: BulkItemUpdateResult[];
|
|
789
|
+
/** Metadata of the operation */
|
|
790
|
+
bulkActionMetadata?: BulkActionMetadata$1;
|
|
791
|
+
}
|
|
792
|
+
interface BulkItemUpdateResult {
|
|
793
|
+
/** updated item metadata */
|
|
794
|
+
itemMetadata?: ItemMetadata$1;
|
|
795
|
+
/** only returned if operation was successful and if returnEntity flag was on */
|
|
796
|
+
item?: EnterpriseMediaItem;
|
|
797
|
+
}
|
|
798
|
+
interface ItemMetadata$1 {
|
|
799
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
800
|
+
_id?: string | null;
|
|
801
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
802
|
+
originalIndex?: number;
|
|
803
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
804
|
+
success?: boolean;
|
|
805
|
+
/** Details about the error in case of failure. */
|
|
806
|
+
error?: ApplicationError$1;
|
|
807
|
+
}
|
|
808
|
+
interface ApplicationError$1 {
|
|
809
|
+
/** Error code. */
|
|
810
|
+
code?: string;
|
|
811
|
+
/** Description of the error. */
|
|
812
|
+
description?: string;
|
|
813
|
+
/** Data related to the error. */
|
|
814
|
+
data?: Record<string, any> | null;
|
|
815
|
+
}
|
|
816
|
+
interface BulkActionMetadata$1 {
|
|
817
|
+
/** Number of items that were successfully processed. */
|
|
818
|
+
totalSuccesses?: number;
|
|
819
|
+
/** Number of items that couldn't be processed. */
|
|
820
|
+
totalFailures?: number;
|
|
821
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
822
|
+
undetailedFailures?: number;
|
|
823
|
+
}
|
|
824
|
+
interface GetItemRequest {
|
|
825
|
+
/** Item id */
|
|
826
|
+
itemId: string;
|
|
827
|
+
}
|
|
828
|
+
interface GetItemResponse {
|
|
829
|
+
/** item info */
|
|
830
|
+
item?: EnterpriseMediaItem;
|
|
831
|
+
}
|
|
832
|
+
interface LinkItemToCategoriesRequest {
|
|
833
|
+
/** The item id */
|
|
834
|
+
itemId: string;
|
|
835
|
+
/** The category ids that the item will be linked to */
|
|
836
|
+
categoryIds?: string[];
|
|
837
|
+
}
|
|
838
|
+
interface LinkItemToCategoriesResponse {
|
|
839
|
+
/** The linked category ids */
|
|
840
|
+
linkedCategoryIds?: string[] | null;
|
|
841
|
+
}
|
|
842
|
+
interface UnlinkItemFromCategoriesRequest {
|
|
843
|
+
/** The item id */
|
|
844
|
+
itemId: string;
|
|
845
|
+
/** The category ids that the item will be unlinked from */
|
|
846
|
+
categoryIds?: string[];
|
|
847
|
+
}
|
|
848
|
+
interface UnlinkItemFromCategoriesResponse {
|
|
849
|
+
/** The unlinked category ids */
|
|
850
|
+
unlinkedCategoryIds?: string[] | null;
|
|
851
|
+
}
|
|
852
|
+
interface OverwriteItemCategoriesRequest {
|
|
853
|
+
/** The item id */
|
|
854
|
+
itemId: string;
|
|
855
|
+
/** The category ids the item will be linked to after this operation */
|
|
856
|
+
categoryIds?: string[];
|
|
857
|
+
}
|
|
858
|
+
interface OverwriteItemCategoriesResponse {
|
|
859
|
+
/** The linked category ids */
|
|
860
|
+
linkedCategoryIds?: string[] | null;
|
|
861
|
+
/** The unlinked category ids */
|
|
862
|
+
unlinkedCategoryIds?: string[] | null;
|
|
863
|
+
}
|
|
864
|
+
interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
|
|
865
|
+
createdEvent?: EntityCreatedEvent$2;
|
|
866
|
+
updatedEvent?: EntityUpdatedEvent$2;
|
|
867
|
+
deletedEvent?: EntityDeletedEvent$2;
|
|
868
|
+
actionEvent?: ActionEvent$2;
|
|
869
|
+
/**
|
|
870
|
+
* Unique event ID.
|
|
871
|
+
* Allows clients to ignore duplicate webhooks.
|
|
872
|
+
*/
|
|
873
|
+
_id?: string;
|
|
874
|
+
/**
|
|
875
|
+
* Assumes actions are also always typed to an entity_type
|
|
876
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
877
|
+
*/
|
|
878
|
+
entityFqdn?: string;
|
|
879
|
+
/**
|
|
880
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
881
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
882
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
883
|
+
*/
|
|
884
|
+
slug?: string;
|
|
885
|
+
/** ID of the entity associated with the event. */
|
|
886
|
+
entityId?: string;
|
|
887
|
+
/** Event timestamp. */
|
|
888
|
+
eventTime?: Date;
|
|
889
|
+
/**
|
|
890
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
891
|
+
* (for example, GDPR).
|
|
892
|
+
*/
|
|
893
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
894
|
+
/** If present, indicates the action that triggered the event. */
|
|
895
|
+
originatedFrom?: string | null;
|
|
896
|
+
/**
|
|
897
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
898
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
899
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
900
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
901
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
902
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
903
|
+
*/
|
|
904
|
+
entityEventSequence?: string | null;
|
|
905
|
+
}
|
|
906
|
+
/** @oneof */
|
|
907
|
+
interface DomainEventBodyOneOf$2 {
|
|
908
|
+
createdEvent?: EntityCreatedEvent$2;
|
|
909
|
+
updatedEvent?: EntityUpdatedEvent$2;
|
|
910
|
+
deletedEvent?: EntityDeletedEvent$2;
|
|
911
|
+
actionEvent?: ActionEvent$2;
|
|
912
|
+
}
|
|
913
|
+
interface EntityCreatedEvent$2 {
|
|
914
|
+
entity?: string;
|
|
915
|
+
}
|
|
916
|
+
interface EntityUpdatedEvent$2 {
|
|
917
|
+
/**
|
|
918
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
919
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
920
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
921
|
+
*/
|
|
922
|
+
currentEntity?: string;
|
|
923
|
+
}
|
|
924
|
+
interface EntityDeletedEvent$2 {
|
|
925
|
+
/** Entity that was deleted */
|
|
926
|
+
deletedEntity?: string | null;
|
|
927
|
+
}
|
|
928
|
+
interface ActionEvent$2 {
|
|
929
|
+
body?: string;
|
|
930
|
+
}
|
|
931
|
+
interface MessageEnvelope$2 {
|
|
932
|
+
/** App instance ID. */
|
|
933
|
+
instanceId?: string | null;
|
|
934
|
+
/** Event type. */
|
|
935
|
+
eventType?: string;
|
|
936
|
+
/** The identification type and identity data. */
|
|
937
|
+
identity?: IdentificationData$2;
|
|
938
|
+
/** Stringify payload. */
|
|
939
|
+
data?: string;
|
|
940
|
+
}
|
|
941
|
+
interface IdentificationData$2 extends IdentificationDataIdOneOf$2 {
|
|
942
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
943
|
+
anonymousVisitorId?: string;
|
|
944
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
945
|
+
memberId?: string;
|
|
946
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
947
|
+
wixUserId?: string;
|
|
948
|
+
/** ID of an app. */
|
|
949
|
+
appId?: string;
|
|
950
|
+
/** @readonly */
|
|
951
|
+
identityType?: WebhookIdentityType$2;
|
|
952
|
+
}
|
|
953
|
+
/** @oneof */
|
|
954
|
+
interface IdentificationDataIdOneOf$2 {
|
|
955
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
956
|
+
anonymousVisitorId?: string;
|
|
957
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
958
|
+
memberId?: string;
|
|
959
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
960
|
+
wixUserId?: string;
|
|
961
|
+
/** ID of an app. */
|
|
962
|
+
appId?: string;
|
|
963
|
+
}
|
|
964
|
+
declare enum WebhookIdentityType$2 {
|
|
965
|
+
UNKNOWN = "UNKNOWN",
|
|
966
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
967
|
+
MEMBER = "MEMBER",
|
|
968
|
+
WIX_USER = "WIX_USER",
|
|
969
|
+
APP = "APP"
|
|
970
|
+
}
|
|
971
|
+
interface GenerateFileUploadUrlResponseNonNullableFields$1 {
|
|
972
|
+
uploadUrl: string;
|
|
973
|
+
}
|
|
974
|
+
interface ArchiveNonNullableFields$1 {
|
|
975
|
+
_id: string;
|
|
976
|
+
url: string;
|
|
977
|
+
}
|
|
978
|
+
interface Model3DNonNullableFields$1 {
|
|
979
|
+
_id: string;
|
|
980
|
+
url: string;
|
|
981
|
+
thumbnail: string;
|
|
982
|
+
}
|
|
983
|
+
interface ItemAssetsNonNullableFields {
|
|
984
|
+
image: string;
|
|
985
|
+
video: string;
|
|
986
|
+
vector: string;
|
|
987
|
+
audio: string;
|
|
988
|
+
document: string;
|
|
989
|
+
archive?: ArchiveNonNullableFields$1;
|
|
990
|
+
model3d?: Model3DNonNullableFields$1;
|
|
991
|
+
}
|
|
992
|
+
interface EnterpriseMediaItemNonNullableFields {
|
|
993
|
+
_id: string;
|
|
994
|
+
mediaType: MediaType$1;
|
|
995
|
+
assets?: ItemAssetsNonNullableFields;
|
|
996
|
+
publishStatus: PublishStatus;
|
|
997
|
+
}
|
|
998
|
+
interface ImportFileResponseNonNullableFields$1 {
|
|
999
|
+
item?: EnterpriseMediaItemNonNullableFields;
|
|
1000
|
+
}
|
|
1001
|
+
interface SearchItemsResponseNonNullableFields {
|
|
1002
|
+
items: EnterpriseMediaItemNonNullableFields[];
|
|
1003
|
+
}
|
|
1004
|
+
interface QueryItemsResponseNonNullableFields {
|
|
1005
|
+
items: EnterpriseMediaItemNonNullableFields[];
|
|
1006
|
+
}
|
|
1007
|
+
interface UpdateItemResponseNonNullableFields {
|
|
1008
|
+
item?: EnterpriseMediaItemNonNullableFields;
|
|
1009
|
+
}
|
|
1010
|
+
interface ApplicationErrorNonNullableFields$1 {
|
|
1011
|
+
code: string;
|
|
1012
|
+
description: string;
|
|
1013
|
+
}
|
|
1014
|
+
interface ItemMetadataNonNullableFields$1 {
|
|
1015
|
+
originalIndex: number;
|
|
1016
|
+
success: boolean;
|
|
1017
|
+
error?: ApplicationErrorNonNullableFields$1;
|
|
1018
|
+
}
|
|
1019
|
+
interface BulkItemUpdateResultNonNullableFields {
|
|
1020
|
+
itemMetadata?: ItemMetadataNonNullableFields$1;
|
|
1021
|
+
item?: EnterpriseMediaItemNonNullableFields;
|
|
1022
|
+
}
|
|
1023
|
+
interface BulkActionMetadataNonNullableFields$1 {
|
|
1024
|
+
totalSuccesses: number;
|
|
1025
|
+
totalFailures: number;
|
|
1026
|
+
undetailedFailures: number;
|
|
1027
|
+
}
|
|
1028
|
+
interface BulkUpdateItemResponseNonNullableFields {
|
|
1029
|
+
results: BulkItemUpdateResultNonNullableFields[];
|
|
1030
|
+
bulkActionMetadata?: BulkActionMetadataNonNullableFields$1;
|
|
1031
|
+
}
|
|
1032
|
+
interface GetItemResponseNonNullableFields {
|
|
1033
|
+
item?: EnterpriseMediaItemNonNullableFields;
|
|
1034
|
+
}
|
|
1035
|
+
interface BaseEventMetadata$2 {
|
|
1036
|
+
/** App instance ID. */
|
|
1037
|
+
instanceId?: string | null;
|
|
1038
|
+
/** Event type. */
|
|
1039
|
+
eventType?: string;
|
|
1040
|
+
/** The identification type and identity data. */
|
|
1041
|
+
identity?: IdentificationData$2;
|
|
1042
|
+
}
|
|
1043
|
+
interface EventMetadata$2 extends BaseEventMetadata$2 {
|
|
1044
|
+
/**
|
|
1045
|
+
* Unique event ID.
|
|
1046
|
+
* Allows clients to ignore duplicate webhooks.
|
|
1047
|
+
*/
|
|
1048
|
+
_id?: string;
|
|
1049
|
+
/**
|
|
1050
|
+
* Assumes actions are also always typed to an entity_type
|
|
1051
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
1052
|
+
*/
|
|
1053
|
+
entityFqdn?: string;
|
|
1054
|
+
/**
|
|
1055
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
1056
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
1057
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
1058
|
+
*/
|
|
1059
|
+
slug?: string;
|
|
1060
|
+
/** ID of the entity associated with the event. */
|
|
1061
|
+
entityId?: string;
|
|
1062
|
+
/** Event timestamp. */
|
|
1063
|
+
eventTime?: Date;
|
|
1064
|
+
/**
|
|
1065
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
1066
|
+
* (for example, GDPR).
|
|
1067
|
+
*/
|
|
1068
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
1069
|
+
/** If present, indicates the action that triggered the event. */
|
|
1070
|
+
originatedFrom?: string | null;
|
|
1071
|
+
/**
|
|
1072
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
1073
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
1074
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1075
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1076
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1077
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1078
|
+
*/
|
|
1079
|
+
entityEventSequence?: string | null;
|
|
1080
|
+
}
|
|
1081
|
+
interface EnterpriseItemCreatedEnvelope {
|
|
1082
|
+
entity: EnterpriseMediaItem;
|
|
1083
|
+
metadata: EventMetadata$2;
|
|
1084
|
+
}
|
|
1085
|
+
interface EnterpriseItemUpdatedEnvelope {
|
|
1086
|
+
entity: EnterpriseMediaItem;
|
|
1087
|
+
metadata: EventMetadata$2;
|
|
1088
|
+
}
|
|
1089
|
+
interface EnterpriseItemItemCategoriesChangedEnvelope {
|
|
1090
|
+
data: ItemCategoriesChanged;
|
|
1091
|
+
metadata: EventMetadata$2;
|
|
1092
|
+
}
|
|
1093
|
+
interface EnterpriseItemPublishStatusChangedEnvelope {
|
|
1094
|
+
data: PublishStatusChanged;
|
|
1095
|
+
metadata: EventMetadata$2;
|
|
1096
|
+
}
|
|
1097
|
+
interface ItemUploadCallbackOptions {
|
|
1098
|
+
/** The item id of the created item */
|
|
1099
|
+
itemId?: string;
|
|
1100
|
+
/** The callback passed to the upload endpoint */
|
|
1101
|
+
callbackToken?: string;
|
|
1102
|
+
}
|
|
1103
|
+
interface GenerateFileUploadUrlOptions$1 {
|
|
1104
|
+
/** The uploaded original file name including the extension */
|
|
1105
|
+
fileName?: string;
|
|
1106
|
+
/** The file mime-type - will be used to identify the type of media */
|
|
1107
|
+
contentType?: string;
|
|
1108
|
+
/** The file size in bytes */
|
|
1109
|
+
sizeInBytes?: number;
|
|
1110
|
+
/**
|
|
1111
|
+
* An optional list of categories to link the created item to
|
|
1112
|
+
* The item will be linked to the account category automatically
|
|
1113
|
+
*/
|
|
1114
|
+
categoryIds?: string[] | null;
|
|
1115
|
+
}
|
|
1116
|
+
interface ImportFileOptions$1 {
|
|
1117
|
+
/** The uploaded original file name including the extension - will be used as the initial display name */
|
|
1118
|
+
fileName?: string | null;
|
|
1119
|
+
/** The file mime-type - will be used to identify the type of media */
|
|
1120
|
+
contentType?: string | null;
|
|
1121
|
+
/** The file size in bytes */
|
|
1122
|
+
sizeInBytes?: number | null;
|
|
1123
|
+
/**
|
|
1124
|
+
* An optional list of categories to link the created item to
|
|
1125
|
+
* The item will be linked to the account category automatically
|
|
1126
|
+
*/
|
|
1127
|
+
categoryIds?: string[] | null;
|
|
1128
|
+
/** The media type of the uploaded file */
|
|
1129
|
+
mediaType?: MediaType$1;
|
|
1130
|
+
/**
|
|
1131
|
+
* A unique identifier of the client that imported the file
|
|
1132
|
+
* This information will exist in the system_tags field prefixed by '_external_uploader:{uploader_system_tag}'
|
|
1133
|
+
*/
|
|
1134
|
+
uploaderSystemTag?: string | null;
|
|
1135
|
+
/**
|
|
1136
|
+
* An additional container for external information
|
|
1137
|
+
* mostly used to pass identifying information of related entities in external services
|
|
1138
|
+
* This information will exist in the system_tags field prefixed by '_external_uploader_info:{uploader_info_system_tag}'
|
|
1139
|
+
*/
|
|
1140
|
+
uploaderInfoSystemTag?: string | null;
|
|
1141
|
+
}
|
|
1142
|
+
interface SearchItemsOptions {
|
|
1143
|
+
/** Items search query */
|
|
1144
|
+
query?: Search;
|
|
1145
|
+
}
|
|
1146
|
+
interface QueryOffsetResult {
|
|
1147
|
+
currentPage: number | undefined;
|
|
1148
|
+
totalPages: number | undefined;
|
|
1149
|
+
totalCount: number | undefined;
|
|
1150
|
+
hasNext: () => boolean;
|
|
1151
|
+
hasPrev: () => boolean;
|
|
1152
|
+
length: number;
|
|
1153
|
+
pageSize: number;
|
|
1154
|
+
}
|
|
1155
|
+
interface ItemsQueryResult extends QueryOffsetResult {
|
|
1156
|
+
items: EnterpriseMediaItem[];
|
|
1157
|
+
query: ItemsQueryBuilder;
|
|
1158
|
+
next: () => Promise<ItemsQueryResult>;
|
|
1159
|
+
prev: () => Promise<ItemsQueryResult>;
|
|
1160
|
+
}
|
|
1161
|
+
interface ItemsQueryBuilder {
|
|
1162
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
1163
|
+
* @param value - Value to compare against.
|
|
1164
|
+
* @documentationMaturity preview
|
|
1165
|
+
*/
|
|
1166
|
+
eq: (propertyName: 'sizeInBytes' | 'title' | '_createdDate' | '_updatedDate', value: any) => ItemsQueryBuilder;
|
|
1167
|
+
/** @param propertyName - Property whose value is compared with `values`.
|
|
1168
|
+
* @param values - List of values to compare against.
|
|
1169
|
+
* @documentationMaturity preview
|
|
1170
|
+
*/
|
|
1171
|
+
hasSome: (propertyName: 'parentCategoryIds', value: any[]) => ItemsQueryBuilder;
|
|
1172
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
1173
|
+
* @documentationMaturity preview
|
|
1174
|
+
*/
|
|
1175
|
+
ascending: (...propertyNames: Array<'sizeInBytes' | 'title' | '_createdDate' | '_updatedDate'>) => ItemsQueryBuilder;
|
|
1176
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
1177
|
+
* @documentationMaturity preview
|
|
1178
|
+
*/
|
|
1179
|
+
descending: (...propertyNames: Array<'sizeInBytes' | 'title' | '_createdDate' | '_updatedDate'>) => ItemsQueryBuilder;
|
|
1180
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
1181
|
+
* @documentationMaturity preview
|
|
1182
|
+
*/
|
|
1183
|
+
limit: (limit: number) => ItemsQueryBuilder;
|
|
1184
|
+
/** @param skip - Number of items to skip in the query results before returning the results.
|
|
1185
|
+
* @documentationMaturity preview
|
|
1186
|
+
*/
|
|
1187
|
+
skip: (skip: number) => ItemsQueryBuilder;
|
|
1188
|
+
/** @documentationMaturity preview */
|
|
1189
|
+
find: () => Promise<ItemsQueryResult>;
|
|
1190
|
+
}
|
|
1191
|
+
interface UpdateItem {
|
|
1192
|
+
/**
|
|
1193
|
+
* Id of the item in public media
|
|
1194
|
+
* @readonly
|
|
1195
|
+
*/
|
|
1196
|
+
_id?: string;
|
|
1197
|
+
/**
|
|
1198
|
+
* Media type of the item
|
|
1199
|
+
* @readonly
|
|
1200
|
+
*/
|
|
1201
|
+
mediaType?: MediaType$1;
|
|
1202
|
+
/**
|
|
1203
|
+
* Size of the uploaded file in bytes.
|
|
1204
|
+
* @readonly
|
|
1205
|
+
*/
|
|
1206
|
+
sizeInBytes?: string | null;
|
|
1207
|
+
/** The item title, part of searchable fields */
|
|
1208
|
+
title?: string | null;
|
|
1209
|
+
/**
|
|
1210
|
+
* The aspect ratio of the item
|
|
1211
|
+
* An object containing urls for different views of the item
|
|
1212
|
+
* @readonly
|
|
1213
|
+
*/
|
|
1214
|
+
assets?: ItemAssets;
|
|
1215
|
+
/** Tags describing the image, part of searchable fields */
|
|
1216
|
+
displayTags?: string[] | null;
|
|
1217
|
+
/** Tags for internal client use, part of searchable fields */
|
|
1218
|
+
internalTags?: string[] | null;
|
|
1219
|
+
/**
|
|
1220
|
+
* Tags for filtering items in the search
|
|
1221
|
+
* @readonly
|
|
1222
|
+
*/
|
|
1223
|
+
systemTags?: string[] | null;
|
|
1224
|
+
/**
|
|
1225
|
+
* Category ids this item belongs to
|
|
1226
|
+
* @readonly
|
|
1227
|
+
*/
|
|
1228
|
+
parentCategoryIds?: string[] | null;
|
|
1229
|
+
/** Status of the item */
|
|
1230
|
+
publishStatus?: PublishStatus;
|
|
1231
|
+
/**
|
|
1232
|
+
* Date and time the item was created.
|
|
1233
|
+
* @readonly
|
|
1234
|
+
*/
|
|
1235
|
+
_createdDate?: Date;
|
|
1236
|
+
/**
|
|
1237
|
+
* Date and time the item was updated.
|
|
1238
|
+
* @readonly
|
|
1239
|
+
*/
|
|
1240
|
+
_updatedDate?: Date;
|
|
1241
|
+
/**
|
|
1242
|
+
* An internal id used with different wix media systems
|
|
1243
|
+
* @readonly
|
|
1244
|
+
*/
|
|
1245
|
+
internalId?: string | null;
|
|
1246
|
+
}
|
|
1247
|
+
interface BulkUpdateItemOptions {
|
|
1248
|
+
/** Should the response return the updated item */
|
|
1249
|
+
returnEntity?: boolean;
|
|
1250
|
+
}
|
|
1251
|
+
interface LinkItemToCategoriesOptions {
|
|
1252
|
+
/** The category ids that the item will be linked to */
|
|
1253
|
+
categoryIds?: string[];
|
|
1254
|
+
}
|
|
1255
|
+
interface UnlinkItemFromCategoriesOptions {
|
|
1256
|
+
/** The category ids that the item will be unlinked from */
|
|
1257
|
+
categoryIds?: string[];
|
|
1258
|
+
}
|
|
1259
|
+
interface OverwriteItemCategoriesOptions {
|
|
1260
|
+
/** The category ids the item will be linked to after this operation */
|
|
1261
|
+
categoryIds?: string[];
|
|
70
1262
|
}
|
|
71
1263
|
|
|
72
1264
|
declare function createRESTModule$2<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
@@ -89,6 +1281,57 @@ declare const onEnterpriseItemUpdated: ReturnType<typeof createEventModule$2<typ
|
|
|
89
1281
|
declare const onEnterpriseItemItemCategoriesChanged: ReturnType<typeof createEventModule$2<typeof publicOnEnterpriseItemItemCategoriesChanged>>;
|
|
90
1282
|
declare const onEnterpriseItemPublishStatusChanged: ReturnType<typeof createEventModule$2<typeof publicOnEnterpriseItemPublishStatusChanged>>;
|
|
91
1283
|
|
|
1284
|
+
type context$2_BulkItemUpdateResult = BulkItemUpdateResult;
|
|
1285
|
+
type context$2_BulkUpdateItemOptions = BulkUpdateItemOptions;
|
|
1286
|
+
type context$2_BulkUpdateItemRequest = BulkUpdateItemRequest;
|
|
1287
|
+
type context$2_BulkUpdateItemResponse = BulkUpdateItemResponse;
|
|
1288
|
+
type context$2_BulkUpdateItemResponseNonNullableFields = BulkUpdateItemResponseNonNullableFields;
|
|
1289
|
+
type context$2_EnterpriseItemCreatedEnvelope = EnterpriseItemCreatedEnvelope;
|
|
1290
|
+
type context$2_EnterpriseItemItemCategoriesChangedEnvelope = EnterpriseItemItemCategoriesChangedEnvelope;
|
|
1291
|
+
type context$2_EnterpriseItemPublishStatusChangedEnvelope = EnterpriseItemPublishStatusChangedEnvelope;
|
|
1292
|
+
type context$2_EnterpriseItemUpdatedEnvelope = EnterpriseItemUpdatedEnvelope;
|
|
1293
|
+
type context$2_EnterpriseMediaItem = EnterpriseMediaItem;
|
|
1294
|
+
type context$2_EnterpriseMediaItemNonNullableFields = EnterpriseMediaItemNonNullableFields;
|
|
1295
|
+
type context$2_GetItemRequest = GetItemRequest;
|
|
1296
|
+
type context$2_GetItemResponse = GetItemResponse;
|
|
1297
|
+
type context$2_GetItemResponseNonNullableFields = GetItemResponseNonNullableFields;
|
|
1298
|
+
type context$2_ItemAssets = ItemAssets;
|
|
1299
|
+
type context$2_ItemAssetsAssetsOneOf = ItemAssetsAssetsOneOf;
|
|
1300
|
+
type context$2_ItemCategoriesChanged = ItemCategoriesChanged;
|
|
1301
|
+
type context$2_ItemUploadCallbackOptions = ItemUploadCallbackOptions;
|
|
1302
|
+
type context$2_ItemUploadCallbackRequest = ItemUploadCallbackRequest;
|
|
1303
|
+
type context$2_ItemUploadCallbackResponse = ItemUploadCallbackResponse;
|
|
1304
|
+
type context$2_ItemsQueryBuilder = ItemsQueryBuilder;
|
|
1305
|
+
type context$2_ItemsQueryResult = ItemsQueryResult;
|
|
1306
|
+
type context$2_LinkItemToCategoriesOptions = LinkItemToCategoriesOptions;
|
|
1307
|
+
type context$2_LinkItemToCategoriesRequest = LinkItemToCategoriesRequest;
|
|
1308
|
+
type context$2_LinkItemToCategoriesResponse = LinkItemToCategoriesResponse;
|
|
1309
|
+
type context$2_OverwriteItemCategoriesOptions = OverwriteItemCategoriesOptions;
|
|
1310
|
+
type context$2_OverwriteItemCategoriesRequest = OverwriteItemCategoriesRequest;
|
|
1311
|
+
type context$2_OverwriteItemCategoriesResponse = OverwriteItemCategoriesResponse;
|
|
1312
|
+
type context$2_Paging = Paging;
|
|
1313
|
+
type context$2_PublishStatus = PublishStatus;
|
|
1314
|
+
declare const context$2_PublishStatus: typeof PublishStatus;
|
|
1315
|
+
type context$2_PublishStatusChanged = PublishStatusChanged;
|
|
1316
|
+
type context$2_QueryItemsRequest = QueryItemsRequest;
|
|
1317
|
+
type context$2_QueryItemsResponse = QueryItemsResponse;
|
|
1318
|
+
type context$2_QueryItemsResponseNonNullableFields = QueryItemsResponseNonNullableFields;
|
|
1319
|
+
type context$2_QueryV2 = QueryV2;
|
|
1320
|
+
type context$2_QueryV2PagingMethodOneOf = QueryV2PagingMethodOneOf;
|
|
1321
|
+
type context$2_Search = Search;
|
|
1322
|
+
type context$2_SearchDetails = SearchDetails;
|
|
1323
|
+
type context$2_SearchItemsOptions = SearchItemsOptions;
|
|
1324
|
+
type context$2_SearchItemsRequest = SearchItemsRequest;
|
|
1325
|
+
type context$2_SearchItemsResponse = SearchItemsResponse;
|
|
1326
|
+
type context$2_SearchItemsResponseNonNullableFields = SearchItemsResponseNonNullableFields;
|
|
1327
|
+
type context$2_SearchPagingMethodOneOf = SearchPagingMethodOneOf;
|
|
1328
|
+
type context$2_UnlinkItemFromCategoriesOptions = UnlinkItemFromCategoriesOptions;
|
|
1329
|
+
type context$2_UnlinkItemFromCategoriesRequest = UnlinkItemFromCategoriesRequest;
|
|
1330
|
+
type context$2_UnlinkItemFromCategoriesResponse = UnlinkItemFromCategoriesResponse;
|
|
1331
|
+
type context$2_UpdateItem = UpdateItem;
|
|
1332
|
+
type context$2_UpdateItemRequest = UpdateItemRequest;
|
|
1333
|
+
type context$2_UpdateItemResponse = UpdateItemResponse;
|
|
1334
|
+
type context$2_UpdateItemResponseNonNullableFields = UpdateItemResponseNonNullableFields;
|
|
92
1335
|
declare const context$2_bulkUpdateItem: typeof bulkUpdateItem;
|
|
93
1336
|
declare const context$2_getItem: typeof getItem;
|
|
94
1337
|
declare const context$2_itemUploadCallback: typeof itemUploadCallback;
|
|
@@ -103,7 +1346,1393 @@ declare const context$2_searchItems: typeof searchItems;
|
|
|
103
1346
|
declare const context$2_unlinkItemFromCategories: typeof unlinkItemFromCategories;
|
|
104
1347
|
declare const context$2_updateItem: typeof updateItem;
|
|
105
1348
|
declare namespace context$2 {
|
|
106
|
-
export { context$2_bulkUpdateItem as bulkUpdateItem, generateFileUploadUrl$1 as generateFileUploadUrl, context$2_getItem as getItem, importFile$1 as importFile, context$2_itemUploadCallback as itemUploadCallback, context$2_linkItemToCategories as linkItemToCategories, context$2_onEnterpriseItemCreated as onEnterpriseItemCreated, context$2_onEnterpriseItemItemCategoriesChanged as onEnterpriseItemItemCategoriesChanged, context$2_onEnterpriseItemPublishStatusChanged as onEnterpriseItemPublishStatusChanged, context$2_onEnterpriseItemUpdated as onEnterpriseItemUpdated, context$2_overwriteItemCategories as overwriteItemCategories, context$2_queryItems as queryItems, context$2_searchItems as searchItems, context$2_unlinkItemFromCategories as unlinkItemFromCategories, context$2_updateItem as updateItem };
|
|
1349
|
+
export { type ActionEvent$2 as ActionEvent, type ApplicationError$1 as ApplicationError, type Archive$1 as Archive, type BaseEventMetadata$2 as BaseEventMetadata, type BulkActionMetadata$1 as BulkActionMetadata, type context$2_BulkItemUpdateResult as BulkItemUpdateResult, type context$2_BulkUpdateItemOptions as BulkUpdateItemOptions, type context$2_BulkUpdateItemRequest as BulkUpdateItemRequest, type context$2_BulkUpdateItemResponse as BulkUpdateItemResponse, type context$2_BulkUpdateItemResponseNonNullableFields as BulkUpdateItemResponseNonNullableFields, type Cursors$2 as Cursors, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type context$2_EnterpriseItemCreatedEnvelope as EnterpriseItemCreatedEnvelope, type context$2_EnterpriseItemItemCategoriesChangedEnvelope as EnterpriseItemItemCategoriesChangedEnvelope, type context$2_EnterpriseItemPublishStatusChangedEnvelope as EnterpriseItemPublishStatusChangedEnvelope, type context$2_EnterpriseItemUpdatedEnvelope as EnterpriseItemUpdatedEnvelope, type context$2_EnterpriseMediaItem as EnterpriseMediaItem, type context$2_EnterpriseMediaItemNonNullableFields as EnterpriseMediaItemNonNullableFields, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type GenerateFileUploadUrlOptions$1 as GenerateFileUploadUrlOptions, type GenerateFileUploadUrlRequest$1 as GenerateFileUploadUrlRequest, type GenerateFileUploadUrlResponse$1 as GenerateFileUploadUrlResponse, type GenerateFileUploadUrlResponseNonNullableFields$1 as GenerateFileUploadUrlResponseNonNullableFields, type context$2_GetItemRequest as GetItemRequest, type context$2_GetItemResponse as GetItemResponse, type context$2_GetItemResponseNonNullableFields as GetItemResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type ImportFileOptions$1 as ImportFileOptions, type ImportFileRequest$1 as ImportFileRequest, type ImportFileResponse$1 as ImportFileResponse, type ImportFileResponseNonNullableFields$1 as ImportFileResponseNonNullableFields, type context$2_ItemAssets as ItemAssets, type context$2_ItemAssetsAssetsOneOf as ItemAssetsAssetsOneOf, type context$2_ItemCategoriesChanged as ItemCategoriesChanged, type ItemMetadata$1 as ItemMetadata, type context$2_ItemUploadCallbackOptions as ItemUploadCallbackOptions, type context$2_ItemUploadCallbackRequest as ItemUploadCallbackRequest, type context$2_ItemUploadCallbackResponse as ItemUploadCallbackResponse, type context$2_ItemsQueryBuilder as ItemsQueryBuilder, type context$2_ItemsQueryResult as ItemsQueryResult, type context$2_LinkItemToCategoriesOptions as LinkItemToCategoriesOptions, type context$2_LinkItemToCategoriesRequest as LinkItemToCategoriesRequest, type context$2_LinkItemToCategoriesResponse as LinkItemToCategoriesResponse, MediaType$1 as MediaType, type MessageEnvelope$2 as MessageEnvelope, type Model3D$1 as Model3D, type context$2_OverwriteItemCategoriesOptions as OverwriteItemCategoriesOptions, type context$2_OverwriteItemCategoriesRequest as OverwriteItemCategoriesRequest, type context$2_OverwriteItemCategoriesResponse as OverwriteItemCategoriesResponse, type context$2_Paging as Paging, type PagingMetadataV2$2 as PagingMetadataV2, context$2_PublishStatus as PublishStatus, type context$2_PublishStatusChanged as PublishStatusChanged, type context$2_QueryItemsRequest as QueryItemsRequest, type context$2_QueryItemsResponse as QueryItemsResponse, type context$2_QueryItemsResponseNonNullableFields as QueryItemsResponseNonNullableFields, type context$2_QueryV2 as QueryV2, type context$2_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type context$2_Search as Search, type context$2_SearchDetails as SearchDetails, type context$2_SearchItemsOptions as SearchItemsOptions, type context$2_SearchItemsRequest as SearchItemsRequest, type context$2_SearchItemsResponse as SearchItemsResponse, type context$2_SearchItemsResponseNonNullableFields as SearchItemsResponseNonNullableFields, type context$2_SearchPagingMethodOneOf as SearchPagingMethodOneOf, SortOrder$2 as SortOrder, type Sorting$2 as Sorting, type context$2_UnlinkItemFromCategoriesOptions as UnlinkItemFromCategoriesOptions, type context$2_UnlinkItemFromCategoriesRequest as UnlinkItemFromCategoriesRequest, type context$2_UnlinkItemFromCategoriesResponse as UnlinkItemFromCategoriesResponse, type context$2_UpdateItem as UpdateItem, type context$2_UpdateItemRequest as UpdateItemRequest, type context$2_UpdateItemResponse as UpdateItemResponse, type context$2_UpdateItemResponseNonNullableFields as UpdateItemResponseNonNullableFields, type VideoResolution$1 as VideoResolution, WebhookIdentityType$2 as WebhookIdentityType, context$2_bulkUpdateItem as bulkUpdateItem, generateFileUploadUrl$1 as generateFileUploadUrl, context$2_getItem as getItem, importFile$1 as importFile, context$2_itemUploadCallback as itemUploadCallback, context$2_linkItemToCategories as linkItemToCategories, context$2_onEnterpriseItemCreated as onEnterpriseItemCreated, context$2_onEnterpriseItemItemCategoriesChanged as onEnterpriseItemItemCategoriesChanged, context$2_onEnterpriseItemPublishStatusChanged as onEnterpriseItemPublishStatusChanged, context$2_onEnterpriseItemUpdated as onEnterpriseItemUpdated, context$2_overwriteItemCategories as overwriteItemCategories, context$2_queryItems as queryItems, context$2_searchItems as searchItems, context$2_unlinkItemFromCategories as unlinkItemFromCategories, context$2_updateItem as updateItem };
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
interface FileDescriptor {
|
|
1353
|
+
/**
|
|
1354
|
+
* File ID. Generated when a file is uploaded to the Media Manager.
|
|
1355
|
+
* @readonly
|
|
1356
|
+
*/
|
|
1357
|
+
_id?: string;
|
|
1358
|
+
/** File name as it appears in the Media Manager. */
|
|
1359
|
+
displayName?: string;
|
|
1360
|
+
/**
|
|
1361
|
+
* Static URL of the file.
|
|
1362
|
+
* @readonly
|
|
1363
|
+
*/
|
|
1364
|
+
url?: string;
|
|
1365
|
+
/** ID of the file's parent folder. */
|
|
1366
|
+
parentFolderId?: string | null;
|
|
1367
|
+
/**
|
|
1368
|
+
* File hash.
|
|
1369
|
+
* @readonly
|
|
1370
|
+
*/
|
|
1371
|
+
hash?: string;
|
|
1372
|
+
/**
|
|
1373
|
+
* Size of the uploaded file in bytes.
|
|
1374
|
+
* @readonly
|
|
1375
|
+
*/
|
|
1376
|
+
sizeInBytes?: string | null;
|
|
1377
|
+
/**
|
|
1378
|
+
* Whether the link to the uploaded file is public or private. Private links require a token.
|
|
1379
|
+
* @readonly
|
|
1380
|
+
*/
|
|
1381
|
+
private?: boolean;
|
|
1382
|
+
/**
|
|
1383
|
+
* Media file type.
|
|
1384
|
+
* @readonly
|
|
1385
|
+
*/
|
|
1386
|
+
mediaType?: MediaType;
|
|
1387
|
+
/**
|
|
1388
|
+
* Media file content.
|
|
1389
|
+
* @readonly
|
|
1390
|
+
*/
|
|
1391
|
+
media?: FileMedia;
|
|
1392
|
+
/**
|
|
1393
|
+
* Status of the file that was uploaded.
|
|
1394
|
+
* * `FAILED`: The file failed to upload, for example, during media post processing.
|
|
1395
|
+
* * `READY`: The file uploaded, finished all processing, and is ready for use.
|
|
1396
|
+
* * `PENDING`: The file is processing and the URLs are not yet available. This response is returned when importing a file.
|
|
1397
|
+
* @readonly
|
|
1398
|
+
*/
|
|
1399
|
+
operationStatus?: OperationStatus;
|
|
1400
|
+
/**
|
|
1401
|
+
* URL where the file was uploaded from.
|
|
1402
|
+
* @readonly
|
|
1403
|
+
*/
|
|
1404
|
+
sourceUrl?: string | null;
|
|
1405
|
+
/**
|
|
1406
|
+
* URL of the file's thumbnail.
|
|
1407
|
+
* @readonly
|
|
1408
|
+
*/
|
|
1409
|
+
thumbnailUrl?: string | null;
|
|
1410
|
+
/** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
|
|
1411
|
+
labels?: string[];
|
|
1412
|
+
/**
|
|
1413
|
+
* Date and time the file was created.
|
|
1414
|
+
* @readonly
|
|
1415
|
+
*/
|
|
1416
|
+
_createdDate?: Date;
|
|
1417
|
+
/**
|
|
1418
|
+
* Date and time the file was updated.
|
|
1419
|
+
* @readonly
|
|
1420
|
+
*/
|
|
1421
|
+
_updatedDate?: Date;
|
|
1422
|
+
/**
|
|
1423
|
+
* The Wix site ID where the media file is stored.
|
|
1424
|
+
* @readonly
|
|
1425
|
+
*/
|
|
1426
|
+
siteId?: string;
|
|
1427
|
+
/**
|
|
1428
|
+
* State of the file.
|
|
1429
|
+
* @readonly
|
|
1430
|
+
*/
|
|
1431
|
+
state?: State$1;
|
|
1432
|
+
}
|
|
1433
|
+
declare enum MediaType {
|
|
1434
|
+
UNKNOWN = "UNKNOWN",
|
|
1435
|
+
IMAGE = "IMAGE",
|
|
1436
|
+
VIDEO = "VIDEO",
|
|
1437
|
+
AUDIO = "AUDIO",
|
|
1438
|
+
DOCUMENT = "DOCUMENT",
|
|
1439
|
+
VECTOR = "VECTOR",
|
|
1440
|
+
ARCHIVE = "ARCHIVE",
|
|
1441
|
+
MODEL3D = "MODEL3D",
|
|
1442
|
+
OTHER = "OTHER"
|
|
1443
|
+
}
|
|
1444
|
+
interface FileMedia extends FileMediaMediaOneOf {
|
|
1445
|
+
/** Information about the image. */
|
|
1446
|
+
image?: ImageMedia;
|
|
1447
|
+
/** Information about the video. */
|
|
1448
|
+
video?: string;
|
|
1449
|
+
/** Information about the audio. */
|
|
1450
|
+
audio?: AudioV2;
|
|
1451
|
+
/** Information about the document. */
|
|
1452
|
+
document?: string;
|
|
1453
|
+
/** Information about the vector. */
|
|
1454
|
+
vector?: ImageMedia;
|
|
1455
|
+
/** Information about the archive. */
|
|
1456
|
+
archive?: Archive;
|
|
1457
|
+
/** Information about the 3D Model. */
|
|
1458
|
+
model3d?: Model3D;
|
|
1459
|
+
}
|
|
1460
|
+
/** @oneof */
|
|
1461
|
+
interface FileMediaMediaOneOf {
|
|
1462
|
+
/** Information about the image. */
|
|
1463
|
+
image?: ImageMedia;
|
|
1464
|
+
/** Information about the video. */
|
|
1465
|
+
video?: string;
|
|
1466
|
+
/** Information about the audio. */
|
|
1467
|
+
audio?: AudioV2;
|
|
1468
|
+
/** Information about the document. */
|
|
1469
|
+
document?: string;
|
|
1470
|
+
/** Information about the vector. */
|
|
1471
|
+
vector?: ImageMedia;
|
|
1472
|
+
/** Information about the archive. */
|
|
1473
|
+
archive?: Archive;
|
|
1474
|
+
/** Information about the 3D Model. */
|
|
1475
|
+
model3d?: Model3D;
|
|
1476
|
+
}
|
|
1477
|
+
interface ImageMedia {
|
|
1478
|
+
/** Image data. */
|
|
1479
|
+
image?: string;
|
|
1480
|
+
/** Image colors. */
|
|
1481
|
+
colors?: Colors;
|
|
1482
|
+
/** Information about faces in the image. Use to crop images without cutting out faces. */
|
|
1483
|
+
faces?: FaceRecognition[];
|
|
1484
|
+
/**
|
|
1485
|
+
* Information about the image preview.
|
|
1486
|
+
* You can use this to display a preview for private images.
|
|
1487
|
+
*/
|
|
1488
|
+
previewImage?: string;
|
|
1489
|
+
/**
|
|
1490
|
+
* Optional, An AI generated description of the image
|
|
1491
|
+
* @readonly
|
|
1492
|
+
*/
|
|
1493
|
+
caption?: string | null;
|
|
1494
|
+
/**
|
|
1495
|
+
* Optional, return true or false if the image has text, or empty for unknown
|
|
1496
|
+
* @readonly
|
|
1497
|
+
*/
|
|
1498
|
+
containsText?: boolean | null;
|
|
1499
|
+
}
|
|
1500
|
+
interface Colors {
|
|
1501
|
+
/** Main color of the image. */
|
|
1502
|
+
prominent?: Color;
|
|
1503
|
+
/** Color palette of the image. */
|
|
1504
|
+
palette?: Color[];
|
|
1505
|
+
}
|
|
1506
|
+
interface Color {
|
|
1507
|
+
/** HEX color. */
|
|
1508
|
+
hex?: string | null;
|
|
1509
|
+
/** RGB color. */
|
|
1510
|
+
rgb?: ColorRGB;
|
|
1511
|
+
}
|
|
1512
|
+
interface ColorRGB {
|
|
1513
|
+
/** Red channel. */
|
|
1514
|
+
r?: number | null;
|
|
1515
|
+
/** Green channel. */
|
|
1516
|
+
g?: number | null;
|
|
1517
|
+
/** Blue channel. */
|
|
1518
|
+
b?: number | null;
|
|
1519
|
+
}
|
|
1520
|
+
/**
|
|
1521
|
+
* Using this object you can crop images while centering on faces
|
|
1522
|
+
* ------------------------
|
|
1523
|
+
* | |
|
|
1524
|
+
* | x,y |
|
|
1525
|
+
* | *-------- |
|
|
1526
|
+
* | | . . | |
|
|
1527
|
+
* | | | | height |
|
|
1528
|
+
* | | \ / | |
|
|
1529
|
+
* | | | |
|
|
1530
|
+
* | --------- |
|
|
1531
|
+
* | width |
|
|
1532
|
+
* | |
|
|
1533
|
+
* |______________________|
|
|
1534
|
+
*/
|
|
1535
|
+
interface FaceRecognition {
|
|
1536
|
+
/** The accuracy percentage of the face recognition. The likelihood that a face is detected. */
|
|
1537
|
+
confidence?: number;
|
|
1538
|
+
/** Top left x pixel coordinate of the face. */
|
|
1539
|
+
x?: number;
|
|
1540
|
+
/** Top left y pixel coordinate of the face. */
|
|
1541
|
+
y?: number;
|
|
1542
|
+
/** Face pixel height. */
|
|
1543
|
+
height?: number;
|
|
1544
|
+
/** Face pixel width. */
|
|
1545
|
+
width?: number;
|
|
1546
|
+
}
|
|
1547
|
+
interface VideoResolution {
|
|
1548
|
+
/** Video URL. */
|
|
1549
|
+
url?: string;
|
|
1550
|
+
/** Video height. */
|
|
1551
|
+
height?: number;
|
|
1552
|
+
/** Video width. */
|
|
1553
|
+
width?: number;
|
|
1554
|
+
/**
|
|
1555
|
+
* Video format
|
|
1556
|
+
* Possible values: ['144p.mp4' '144p.webm' '240p.mp4' '240p.webm' '360p.mp4' '360p.webm' '480p.mp4' '480p.webm'
|
|
1557
|
+
* '720p.mp4' '720p.webm' '1080p.mp4' '1080p.webm', 'hls' ]
|
|
1558
|
+
*/
|
|
1559
|
+
format?: string;
|
|
1560
|
+
}
|
|
1561
|
+
interface AudioV2 {
|
|
1562
|
+
/** WixMedia ID. */
|
|
1563
|
+
_id?: string;
|
|
1564
|
+
/** Audio formats available for this file. */
|
|
1565
|
+
assets?: string[];
|
|
1566
|
+
/**
|
|
1567
|
+
* Audio bitrate.
|
|
1568
|
+
* @readonly
|
|
1569
|
+
*/
|
|
1570
|
+
bitrate?: number | null;
|
|
1571
|
+
/**
|
|
1572
|
+
* Audio format.
|
|
1573
|
+
* @readonly
|
|
1574
|
+
*/
|
|
1575
|
+
format?: string | null;
|
|
1576
|
+
/**
|
|
1577
|
+
* Audio duration in seconds.
|
|
1578
|
+
* @readonly
|
|
1579
|
+
*/
|
|
1580
|
+
duration?: number | null;
|
|
1581
|
+
/**
|
|
1582
|
+
* Audio size in bytes.
|
|
1583
|
+
* @readonly
|
|
1584
|
+
*/
|
|
1585
|
+
sizeInBytes?: string | null;
|
|
1586
|
+
}
|
|
1587
|
+
interface Archive {
|
|
1588
|
+
/** WixMedia ID. */
|
|
1589
|
+
_id?: string;
|
|
1590
|
+
/** Archive URL. */
|
|
1591
|
+
url?: string;
|
|
1592
|
+
/**
|
|
1593
|
+
* Archive URL expiration date (when relevant).
|
|
1594
|
+
* @readonly
|
|
1595
|
+
*/
|
|
1596
|
+
urlExpirationDate?: Date;
|
|
1597
|
+
/** Archive size in bytes. */
|
|
1598
|
+
sizeInBytes?: string | null;
|
|
1599
|
+
/** Archive filename. */
|
|
1600
|
+
filename?: string | null;
|
|
1601
|
+
}
|
|
1602
|
+
interface Model3D {
|
|
1603
|
+
/** WixMedia 3D ID. */
|
|
1604
|
+
_id?: string;
|
|
1605
|
+
/** 3D URL. */
|
|
1606
|
+
url?: string;
|
|
1607
|
+
/** 3D thumbnail Image */
|
|
1608
|
+
thumbnail?: string;
|
|
1609
|
+
/** 3D alt text. */
|
|
1610
|
+
altText?: string | null;
|
|
1611
|
+
/**
|
|
1612
|
+
* 3D URL expiration date (when relevant).
|
|
1613
|
+
* @readonly
|
|
1614
|
+
*/
|
|
1615
|
+
urlExpirationDate?: Date;
|
|
1616
|
+
/**
|
|
1617
|
+
* 3D filename.
|
|
1618
|
+
* @readonly
|
|
1619
|
+
*/
|
|
1620
|
+
filename?: string | null;
|
|
1621
|
+
/**
|
|
1622
|
+
* 3D size in bytes.
|
|
1623
|
+
* @readonly
|
|
1624
|
+
*/
|
|
1625
|
+
sizeInBytes?: string | null;
|
|
1626
|
+
}
|
|
1627
|
+
interface OtherMedia {
|
|
1628
|
+
/** WixMedia ID. for use with Site Media APIs only */
|
|
1629
|
+
_id?: string;
|
|
1630
|
+
/**
|
|
1631
|
+
* The media type of the file: 'site_icon', 'swf', 'package', 'ufont'
|
|
1632
|
+
* @readonly
|
|
1633
|
+
*/
|
|
1634
|
+
internalMediaType?: string | null;
|
|
1635
|
+
/**
|
|
1636
|
+
* size in bytes. Optional.
|
|
1637
|
+
* @readonly
|
|
1638
|
+
*/
|
|
1639
|
+
sizeInBytes?: string | null;
|
|
1640
|
+
}
|
|
1641
|
+
declare enum OperationStatus {
|
|
1642
|
+
/** File upload or processing failed */
|
|
1643
|
+
FAILED = "FAILED",
|
|
1644
|
+
/** File is ready for consumption */
|
|
1645
|
+
READY = "READY",
|
|
1646
|
+
/** File is waiting for processing or currently being processed */
|
|
1647
|
+
PENDING = "PENDING"
|
|
1648
|
+
}
|
|
1649
|
+
declare enum State$1 {
|
|
1650
|
+
/** File is ready for consumption */
|
|
1651
|
+
OK = "OK",
|
|
1652
|
+
/** Deleted file */
|
|
1653
|
+
DELETED = "DELETED"
|
|
1654
|
+
}
|
|
1655
|
+
declare enum Namespace$1 {
|
|
1656
|
+
NO_NAMESPACE = "NO_NAMESPACE",
|
|
1657
|
+
OTHERS = "OTHERS",
|
|
1658
|
+
/** ANY = 2; */
|
|
1659
|
+
WIX_VIDEO = "WIX_VIDEO",
|
|
1660
|
+
/** _nsWixMusic */
|
|
1661
|
+
WIX_MUSIC = "WIX_MUSIC",
|
|
1662
|
+
/** _nsArtStore */
|
|
1663
|
+
ALBUMS_AND_ART_STORE = "ALBUMS_AND_ART_STORE",
|
|
1664
|
+
/** _nsDigitalProduct */
|
|
1665
|
+
WIX_ECOM = "WIX_ECOM",
|
|
1666
|
+
/** _nsPhotoShareApp */
|
|
1667
|
+
PHOTO_SHARE_APP = "PHOTO_SHARE_APP",
|
|
1668
|
+
/** _nsSharingApp, */
|
|
1669
|
+
SHARING_APP = "SHARING_APP",
|
|
1670
|
+
/** engage */
|
|
1671
|
+
CHAT = "CHAT",
|
|
1672
|
+
/** logobuilder */
|
|
1673
|
+
LOGO_BUILDER = "LOGO_BUILDER",
|
|
1674
|
+
/** WixExposure */
|
|
1675
|
+
ALBUMS_OLD = "ALBUMS_OLD",
|
|
1676
|
+
/** chat-mobile-uploads */
|
|
1677
|
+
CHAT_MOBILE = "CHAT_MOBILE",
|
|
1678
|
+
/** _nsWixForms */
|
|
1679
|
+
WIX_FORMS = "WIX_FORMS"
|
|
1680
|
+
}
|
|
1681
|
+
interface IdentityInfo {
|
|
1682
|
+
/** The type of the user that uploaded the file */
|
|
1683
|
+
identityType?: IdentityType;
|
|
1684
|
+
/** User Id. empty when UNKNOWN */
|
|
1685
|
+
identityId?: string | null;
|
|
1686
|
+
}
|
|
1687
|
+
declare enum IdentityType {
|
|
1688
|
+
UNKNOWN = "UNKNOWN",
|
|
1689
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1690
|
+
MEMBER = "MEMBER",
|
|
1691
|
+
WIX_USER = "WIX_USER",
|
|
1692
|
+
APP = "APP"
|
|
1693
|
+
}
|
|
1694
|
+
interface FileReady {
|
|
1695
|
+
/** File entity that is ready with full information */
|
|
1696
|
+
file?: FileDescriptor;
|
|
1697
|
+
/** External information passed in the file import or upload. */
|
|
1698
|
+
externalInfo?: ExternalInfo;
|
|
1699
|
+
/** The File was restored from the trash-bin */
|
|
1700
|
+
triggeredByUndelete?: boolean;
|
|
1701
|
+
}
|
|
1702
|
+
interface ExternalInfo {
|
|
1703
|
+
/** External information to pass in the File Ready or File Failed events. */
|
|
1704
|
+
origin?: string;
|
|
1705
|
+
/** External IDs to pass in the File Ready or File Failed events. */
|
|
1706
|
+
externalIds?: string[];
|
|
1707
|
+
}
|
|
1708
|
+
interface FileFailed {
|
|
1709
|
+
/** External information passed in the file import or upload. */
|
|
1710
|
+
externalInfo?: ExternalInfo;
|
|
1711
|
+
}
|
|
1712
|
+
interface GenerateFilesDownloadUrlRequest {
|
|
1713
|
+
/**
|
|
1714
|
+
* IDs of the files to download.
|
|
1715
|
+
*
|
|
1716
|
+
* You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
1717
|
+
* Learn more in the File and Folder IDs article.
|
|
1718
|
+
*/
|
|
1719
|
+
fileIds: string[];
|
|
1720
|
+
}
|
|
1721
|
+
interface GenerateFilesDownloadUrlResponse {
|
|
1722
|
+
/** URL for downloading the compressed file containing the specified files in the Media Manager. */
|
|
1723
|
+
downloadUrl?: string;
|
|
1724
|
+
}
|
|
1725
|
+
interface GenerateFileDownloadUrlRequest {
|
|
1726
|
+
/**
|
|
1727
|
+
* File ID.
|
|
1728
|
+
*
|
|
1729
|
+
* You can also pass the file's Wix media URL. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
1730
|
+
* Learn more in the File and Folder IDs article.
|
|
1731
|
+
*/
|
|
1732
|
+
fileId: string;
|
|
1733
|
+
/**
|
|
1734
|
+
* Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type. <br />
|
|
1735
|
+
*
|
|
1736
|
+
* **Note:** The name that appears in the Media Manager is taken from the `filename` query parameter in the upload request.
|
|
1737
|
+
*/
|
|
1738
|
+
downloadFileName?: string | null;
|
|
1739
|
+
/**
|
|
1740
|
+
* The time that it takes in minutes for the download URL to expire. <br />
|
|
1741
|
+
* Default: `600`. <br />
|
|
1742
|
+
* Limit: `525600` (1 year).
|
|
1743
|
+
*/
|
|
1744
|
+
expirationInMinutes?: number | null;
|
|
1745
|
+
/**
|
|
1746
|
+
* The redirect URL for when the temporary download URL with a token expires. <br />
|
|
1747
|
+
* Default: A 403 Forbidden response page.
|
|
1748
|
+
*/
|
|
1749
|
+
expirationRedirectUrl?: string | null;
|
|
1750
|
+
/**
|
|
1751
|
+
* Keys for downloading different assets (format and quality) of a file.
|
|
1752
|
+
* Default: `src`, key representing the original file's format and quality.
|
|
1753
|
+
*/
|
|
1754
|
+
assetKeys?: string[] | null;
|
|
1755
|
+
/**
|
|
1756
|
+
* Whether the link downloads the file or opens the file in the browser.
|
|
1757
|
+
*
|
|
1758
|
+
* - `ATTACHMENT`: The link downloads the file.
|
|
1759
|
+
* - `INLINE`: The link opens the file in the browser.
|
|
1760
|
+
*
|
|
1761
|
+
* Default: `ATTACHMENT`
|
|
1762
|
+
*/
|
|
1763
|
+
contentDisposition?: ContentDisposition;
|
|
1764
|
+
}
|
|
1765
|
+
declare enum ContentDisposition {
|
|
1766
|
+
/** Using the link in the browser will download the file */
|
|
1767
|
+
ATTACHMENT = "ATTACHMENT",
|
|
1768
|
+
/** Using the link in the browser will open the file in the browser */
|
|
1769
|
+
INLINE = "INLINE"
|
|
1770
|
+
}
|
|
1771
|
+
interface GenerateFileDownloadUrlResponse {
|
|
1772
|
+
/** URL for downloading a specific file in the Media Manager. */
|
|
1773
|
+
downloadUrls?: DownloadUrl[];
|
|
1774
|
+
}
|
|
1775
|
+
interface DownloadUrl {
|
|
1776
|
+
/** The file download URL. */
|
|
1777
|
+
url?: string;
|
|
1778
|
+
/**
|
|
1779
|
+
* Key for downloading a different asset (format and quality) of a file.
|
|
1780
|
+
* Default: `src`, key representing the original file's format and quality.
|
|
1781
|
+
*/
|
|
1782
|
+
assetKey?: string;
|
|
1783
|
+
}
|
|
1784
|
+
interface GetFileDescriptorRequest {
|
|
1785
|
+
/**
|
|
1786
|
+
* File ID.
|
|
1787
|
+
*
|
|
1788
|
+
* You can also pass the file's Wix media URL. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
1789
|
+
* Learn more in the File and Folder IDs article.
|
|
1790
|
+
*/
|
|
1791
|
+
fileId: string;
|
|
1792
|
+
}
|
|
1793
|
+
interface GetFileDescriptorResponse {
|
|
1794
|
+
/** Information about the file. */
|
|
1795
|
+
file?: FileDescriptor;
|
|
1796
|
+
}
|
|
1797
|
+
interface GetFileDescriptorsRequest {
|
|
1798
|
+
/**
|
|
1799
|
+
* File IDs.
|
|
1800
|
+
*
|
|
1801
|
+
* You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
1802
|
+
* Learn more in the File and Folder IDs article.
|
|
1803
|
+
*/
|
|
1804
|
+
fileIds: string[];
|
|
1805
|
+
}
|
|
1806
|
+
interface GetFileDescriptorsResponse {
|
|
1807
|
+
/** Information about the requested files. */
|
|
1808
|
+
files?: FileDescriptor[];
|
|
1809
|
+
}
|
|
1810
|
+
interface UpdateFileDescriptorRequest {
|
|
1811
|
+
/** The file to update. */
|
|
1812
|
+
file: FileDescriptor;
|
|
1813
|
+
}
|
|
1814
|
+
interface UpdateFileDescriptorResponse {
|
|
1815
|
+
/** Information about the updated file. */
|
|
1816
|
+
file?: FileDescriptor;
|
|
1817
|
+
}
|
|
1818
|
+
interface GenerateFileUploadUrlRequest {
|
|
1819
|
+
/** File mime type. */
|
|
1820
|
+
mimeType: string | null;
|
|
1821
|
+
/**
|
|
1822
|
+
* Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
|
|
1823
|
+
* <br /> **Note:** The name that appears in the Media Manager is taken from the `filename` query parameter in the upload request.
|
|
1824
|
+
*/
|
|
1825
|
+
fileName?: string | null;
|
|
1826
|
+
/**
|
|
1827
|
+
* File size in bytes.
|
|
1828
|
+
* @readonly
|
|
1829
|
+
*/
|
|
1830
|
+
sizeInBytes?: string | null;
|
|
1831
|
+
/**
|
|
1832
|
+
* ID of the file's parent folder. <br />
|
|
1833
|
+
* This folder is the path root for the `filePath`.<br />
|
|
1834
|
+
* Default: `media-root`.
|
|
1835
|
+
*/
|
|
1836
|
+
parentFolderId?: string | null;
|
|
1837
|
+
/** Whether the link to the uploaded file is public or private. See `Private Files` in terminology. */
|
|
1838
|
+
private?: boolean | null;
|
|
1839
|
+
/** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
|
|
1840
|
+
labels?: string[] | null;
|
|
1841
|
+
/** Information sent to the `onFileDescriptorFileReady( )` and `onFileDescriptorFileFailed( )` events. See the Importing Files article to learn more. */
|
|
1842
|
+
externalInfo?: ExternalInfo;
|
|
1843
|
+
/**
|
|
1844
|
+
* Path to the folder where the file will be stored.
|
|
1845
|
+
* For example, `/videos/2024/december`. <br/>
|
|
1846
|
+
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
1847
|
+
* The folders in the path will be created if they don't already exist. <br />
|
|
1848
|
+
*/
|
|
1849
|
+
filePath?: string | null;
|
|
1850
|
+
}
|
|
1851
|
+
interface GenerateFileUploadUrlResponse {
|
|
1852
|
+
/** The URL for uploading a file to the Media Manager. */
|
|
1853
|
+
uploadUrl?: string;
|
|
1854
|
+
}
|
|
1855
|
+
interface GenerateFileResumableUploadUrlRequest {
|
|
1856
|
+
/** File mime type. */
|
|
1857
|
+
mimeType: string | null;
|
|
1858
|
+
/**
|
|
1859
|
+
* Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
|
|
1860
|
+
* <br /> **Note:** The name that appears in the Media Manager is taken from the `filename` query parameter in the upload request.
|
|
1861
|
+
*/
|
|
1862
|
+
fileName?: string | null;
|
|
1863
|
+
/**
|
|
1864
|
+
* File size in bytes.
|
|
1865
|
+
* @readonly
|
|
1866
|
+
*/
|
|
1867
|
+
sizeInBytes?: string | null;
|
|
1868
|
+
/**
|
|
1869
|
+
* ID of the file's parent folder. <br />
|
|
1870
|
+
* This folder is the path root for the `filePath`.<br />
|
|
1871
|
+
* Default: `media-root`.
|
|
1872
|
+
*/
|
|
1873
|
+
parentFolderId?: string | null;
|
|
1874
|
+
/** Whether the link to the imported file is public or private. See `Private Files` in terminology. */
|
|
1875
|
+
private?: boolean | null;
|
|
1876
|
+
/** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
|
|
1877
|
+
labels?: string[] | null;
|
|
1878
|
+
/** The upload protocol to use for implementing the resumable upload. */
|
|
1879
|
+
uploadProtocol?: UploadProtocol;
|
|
1880
|
+
/**
|
|
1881
|
+
* Path to the folder where the file will be stored.
|
|
1882
|
+
* For example, `/videos/2024/december`. <br/>
|
|
1883
|
+
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
1884
|
+
* The folders in the path will be created if they don't already exist. <br />
|
|
1885
|
+
*/
|
|
1886
|
+
filePath?: string | null;
|
|
1887
|
+
}
|
|
1888
|
+
declare enum UploadProtocol {
|
|
1889
|
+
/** The upload protocol to use for implementing the resumable upload. */
|
|
1890
|
+
TUS = "TUS"
|
|
1891
|
+
}
|
|
1892
|
+
interface GenerateFileResumableUploadUrlResponse {
|
|
1893
|
+
/**
|
|
1894
|
+
* The upload protocol to use for implementing the resumable upload.
|
|
1895
|
+
*
|
|
1896
|
+
* Supported values: `"TUS"`
|
|
1897
|
+
*/
|
|
1898
|
+
uploadProtocol?: UploadProtocol;
|
|
1899
|
+
/** The URL for uploading a file to the Media Manager. */
|
|
1900
|
+
uploadUrl?: string;
|
|
1901
|
+
/** Single-use upload token. */
|
|
1902
|
+
uploadToken?: string;
|
|
1903
|
+
}
|
|
1904
|
+
interface ImportFileRequest {
|
|
1905
|
+
/** Publicly accessible external file URL. */
|
|
1906
|
+
url: string;
|
|
1907
|
+
/** Media type of the file to import. */
|
|
1908
|
+
mediaType?: MediaType;
|
|
1909
|
+
/** File name that appears in the Media Manager. */
|
|
1910
|
+
displayName?: string | null;
|
|
1911
|
+
/**
|
|
1912
|
+
* ID of the file's parent folder. <br />
|
|
1913
|
+
* This folder is the path root for the `filePath`. <br />
|
|
1914
|
+
* Default: `media-root`.
|
|
1915
|
+
*/
|
|
1916
|
+
parentFolderId?: string | null;
|
|
1917
|
+
/** Whether the link to the imported file is public or private. */
|
|
1918
|
+
private?: boolean | null;
|
|
1919
|
+
/** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
|
|
1920
|
+
labels?: string[] | null;
|
|
1921
|
+
/** File mime type. */
|
|
1922
|
+
mimeType?: string;
|
|
1923
|
+
/** Information sent to the `onFileDescriptorFileReady( )` and `onFileDescriptorFileFailed( )` events. See the Importing Files article to learn more. */
|
|
1924
|
+
externalInfo?: ExternalInfo;
|
|
1925
|
+
/** Optional parameters that should be sent with the external URL. */
|
|
1926
|
+
urlParams?: Record<string, any> | null;
|
|
1927
|
+
/** Optional headers that should be sent with the external URL. */
|
|
1928
|
+
urlHeaders?: Record<string, any> | null;
|
|
1929
|
+
/**
|
|
1930
|
+
* Path to the folder where the file will be stored.
|
|
1931
|
+
* For example, `/videos/2024/december`. <br/>
|
|
1932
|
+
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
1933
|
+
* The folders in the path will be created if they don't already exist. <br />
|
|
1934
|
+
*/
|
|
1935
|
+
filePath?: string | null;
|
|
1936
|
+
}
|
|
1937
|
+
interface ImportFileResponse {
|
|
1938
|
+
/** Information about the imported file. */
|
|
1939
|
+
file?: FileDescriptor;
|
|
1940
|
+
}
|
|
1941
|
+
interface BulkImportFilesRequest {
|
|
1942
|
+
/** Information about the files to import. */
|
|
1943
|
+
importFileRequests: ImportFileRequest[];
|
|
1944
|
+
}
|
|
1945
|
+
interface BulkImportFilesResponse {
|
|
1946
|
+
/** Information about the imported files. */
|
|
1947
|
+
files?: FileDescriptor[];
|
|
1948
|
+
}
|
|
1949
|
+
interface BulkImportFileRequest {
|
|
1950
|
+
/** Information about the files to import. */
|
|
1951
|
+
importFileRequests: ImportFileRequest[];
|
|
1952
|
+
/**
|
|
1953
|
+
* Whether to include the imported File Descriptor in the response. Set to `false` to exclude the File Descriptor from the returned object.
|
|
1954
|
+
*
|
|
1955
|
+
* Default: `true`
|
|
1956
|
+
*/
|
|
1957
|
+
returnEntity?: boolean | null;
|
|
1958
|
+
}
|
|
1959
|
+
interface BulkImportFileResponse {
|
|
1960
|
+
/** Items created by bulk action. */
|
|
1961
|
+
results?: BulkImportFileResult[];
|
|
1962
|
+
/** Bulk action metadata. */
|
|
1963
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
1964
|
+
}
|
|
1965
|
+
interface BulkImportFileResult {
|
|
1966
|
+
/** Item metadata. */
|
|
1967
|
+
itemMetadata?: ItemMetadata;
|
|
1968
|
+
/** Imported file. This field is returned if the operation was successful and `returnEntity` is not set to `false`. */
|
|
1969
|
+
item?: FileDescriptor;
|
|
1970
|
+
}
|
|
1971
|
+
interface ItemMetadata {
|
|
1972
|
+
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
1973
|
+
_id?: string | null;
|
|
1974
|
+
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
1975
|
+
originalIndex?: number;
|
|
1976
|
+
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
1977
|
+
success?: boolean;
|
|
1978
|
+
/** Details about the error in case of failure. */
|
|
1979
|
+
error?: ApplicationError;
|
|
1980
|
+
}
|
|
1981
|
+
interface ApplicationError {
|
|
1982
|
+
/** Error code. */
|
|
1983
|
+
code?: string;
|
|
1984
|
+
/** Description of the error. */
|
|
1985
|
+
description?: string;
|
|
1986
|
+
/** Data related to the error. */
|
|
1987
|
+
data?: Record<string, any> | null;
|
|
1988
|
+
}
|
|
1989
|
+
interface BulkActionMetadata {
|
|
1990
|
+
/** Number of items that were successfully processed. */
|
|
1991
|
+
totalSuccesses?: number;
|
|
1992
|
+
/** Number of items that couldn't be processed. */
|
|
1993
|
+
totalFailures?: number;
|
|
1994
|
+
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
1995
|
+
undetailedFailures?: number;
|
|
1996
|
+
}
|
|
1997
|
+
interface ListFilesRequest {
|
|
1998
|
+
/**
|
|
1999
|
+
* ID of the file's parent folder. <br />
|
|
2000
|
+
* Default:`media-root`.
|
|
2001
|
+
*/
|
|
2002
|
+
parentFolderId?: string | null;
|
|
2003
|
+
/**
|
|
2004
|
+
* File media type.
|
|
2005
|
+
* excluding: OTHER media type
|
|
2006
|
+
*/
|
|
2007
|
+
mediaTypes?: MediaType[];
|
|
2008
|
+
/** Whether the link to the imported file is public or private. */
|
|
2009
|
+
private?: boolean | null;
|
|
2010
|
+
/**
|
|
2011
|
+
* Field name and order to sort by. One of:
|
|
2012
|
+
*
|
|
2013
|
+
* - `displayName`
|
|
2014
|
+
* - `_updatedDate`
|
|
2015
|
+
* - `sizeInBytes`
|
|
2016
|
+
*
|
|
2017
|
+
* Default: `_updatedDate` in `"DESC"` order.
|
|
2018
|
+
*/
|
|
2019
|
+
sort?: Sorting$1;
|
|
2020
|
+
/** Cursor and paging information. */
|
|
2021
|
+
paging?: CursorPaging$1;
|
|
2022
|
+
}
|
|
2023
|
+
interface Sorting$1 {
|
|
2024
|
+
/** Name of the field to sort by. */
|
|
2025
|
+
fieldName?: string;
|
|
2026
|
+
/** Sort order. */
|
|
2027
|
+
order?: SortOrder$1;
|
|
2028
|
+
}
|
|
2029
|
+
declare enum SortOrder$1 {
|
|
2030
|
+
ASC = "ASC",
|
|
2031
|
+
DESC = "DESC"
|
|
2032
|
+
}
|
|
2033
|
+
interface CursorPaging$1 {
|
|
2034
|
+
/** Maximum number of items to return in the results. */
|
|
2035
|
+
limit?: number | null;
|
|
2036
|
+
/**
|
|
2037
|
+
* Pointer to the next or previous page in the list of results.
|
|
2038
|
+
*
|
|
2039
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
2040
|
+
* Not relevant for the first request.
|
|
2041
|
+
*/
|
|
2042
|
+
cursor?: string | null;
|
|
2043
|
+
}
|
|
2044
|
+
interface ListFilesResponse {
|
|
2045
|
+
/** List of files in the Media Manager. */
|
|
2046
|
+
files?: FileDescriptor[];
|
|
2047
|
+
/** The next cursor if it exists. */
|
|
2048
|
+
nextCursor?: PagingMetadataV2$1;
|
|
2049
|
+
}
|
|
2050
|
+
interface PagingMetadataV2$1 {
|
|
2051
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
2052
|
+
total?: number | null;
|
|
2053
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
2054
|
+
cursors?: Cursors$1;
|
|
2055
|
+
}
|
|
2056
|
+
interface Cursors$1 {
|
|
2057
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
2058
|
+
next?: string | null;
|
|
2059
|
+
}
|
|
2060
|
+
interface SearchFilesRequest {
|
|
2061
|
+
/**
|
|
2062
|
+
* Term to search for. Possible terms include the value of a file's
|
|
2063
|
+
* `displayName`, `mimeType`, and `label`. <br />
|
|
2064
|
+
* For example, if a file's label is cat, the search term is 'cat'.
|
|
2065
|
+
*/
|
|
2066
|
+
search?: string | null;
|
|
2067
|
+
/**
|
|
2068
|
+
* A root folder in the media manager to search in. <br />
|
|
2069
|
+
* Default: `MEDIA_ROOT`.
|
|
2070
|
+
*/
|
|
2071
|
+
rootFolder?: RootFolder$1;
|
|
2072
|
+
/**
|
|
2073
|
+
* File media type.
|
|
2074
|
+
* excluding: OTHER media type
|
|
2075
|
+
*/
|
|
2076
|
+
mediaTypes?: MediaType[];
|
|
2077
|
+
/** Whether the link to the imported file is public or private. */
|
|
2078
|
+
private?: boolean | null;
|
|
2079
|
+
/**
|
|
2080
|
+
* Field name and order to sort by. One of:
|
|
2081
|
+
*
|
|
2082
|
+
* - `displayName`
|
|
2083
|
+
* - `_updatedDate`
|
|
2084
|
+
* - `sizeInBytes`
|
|
2085
|
+
*
|
|
2086
|
+
* Default: `_updatedDate` in `"DESC"` order.
|
|
2087
|
+
*/
|
|
2088
|
+
sort?: Sorting$1;
|
|
2089
|
+
/** Cursor and paging information. */
|
|
2090
|
+
paging?: CursorPaging$1;
|
|
2091
|
+
}
|
|
2092
|
+
declare enum RootFolder$1 {
|
|
2093
|
+
/** Root of all site media */
|
|
2094
|
+
MEDIA_ROOT = "MEDIA_ROOT",
|
|
2095
|
+
/** Root of the trash system folder */
|
|
2096
|
+
TRASH_ROOT = "TRASH_ROOT",
|
|
2097
|
+
/** Root of all visitor uploads */
|
|
2098
|
+
VISITOR_UPLOADS_ROOT = "VISITOR_UPLOADS_ROOT"
|
|
2099
|
+
}
|
|
2100
|
+
interface SearchFilesResponse {
|
|
2101
|
+
/** Files matching the query. */
|
|
2102
|
+
files?: FileDescriptor[];
|
|
2103
|
+
/** The next cursor if it exists. */
|
|
2104
|
+
nextCursor?: PagingMetadataV2$1;
|
|
2105
|
+
}
|
|
2106
|
+
interface GenerateVideoStreamingUrlRequest {
|
|
2107
|
+
/**
|
|
2108
|
+
* File ID.
|
|
2109
|
+
*
|
|
2110
|
+
* You can also pass the file's Wix media URL. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
2111
|
+
* Learn more in the File and Folder IDs article.
|
|
2112
|
+
*/
|
|
2113
|
+
fileId: string;
|
|
2114
|
+
/** Video stream format. */
|
|
2115
|
+
format?: StreamFormat;
|
|
2116
|
+
}
|
|
2117
|
+
declare enum StreamFormat {
|
|
2118
|
+
UNKNOWN = "UNKNOWN",
|
|
2119
|
+
HLS = "HLS",
|
|
2120
|
+
DASH = "DASH"
|
|
2121
|
+
}
|
|
2122
|
+
interface GenerateVideoStreamingUrlResponse {
|
|
2123
|
+
/** URL for streaming a specific file in the Media Manager. */
|
|
2124
|
+
downloadUrl?: DownloadUrl;
|
|
2125
|
+
}
|
|
2126
|
+
interface GenerateWebSocketTokenRequest {
|
|
2127
|
+
}
|
|
2128
|
+
interface GenerateWebSocketTokenResponse {
|
|
2129
|
+
/** The web socket token for the identity in the request */
|
|
2130
|
+
token?: string;
|
|
2131
|
+
}
|
|
2132
|
+
interface BulkDeleteFilesRequest {
|
|
2133
|
+
/**
|
|
2134
|
+
* IDs of the files to move to the Media Manager's trash bin.
|
|
2135
|
+
*
|
|
2136
|
+
* You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
2137
|
+
* Learn more in the File and Folder IDs article.
|
|
2138
|
+
*/
|
|
2139
|
+
fileIds: string[];
|
|
2140
|
+
/**
|
|
2141
|
+
* Whether the specified files are permanently deleted. <br />
|
|
2142
|
+
* Default: `false`
|
|
2143
|
+
*/
|
|
2144
|
+
permanent?: boolean;
|
|
2145
|
+
}
|
|
2146
|
+
interface BulkDeleteFilesResponse {
|
|
2147
|
+
}
|
|
2148
|
+
interface BulkRestoreFilesFromTrashBinRequest {
|
|
2149
|
+
/**
|
|
2150
|
+
* IDs of the files to restore from the Media Manager's trash bin.
|
|
2151
|
+
*
|
|
2152
|
+
* You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
2153
|
+
* Learn more in the File and Folder IDs article.
|
|
2154
|
+
*/
|
|
2155
|
+
fileIds: string[];
|
|
2156
|
+
}
|
|
2157
|
+
interface BulkRestoreFilesFromTrashBinResponse {
|
|
2158
|
+
}
|
|
2159
|
+
interface ListDeletedFilesRequest {
|
|
2160
|
+
/**
|
|
2161
|
+
* ID of the file's parent folder. <br />
|
|
2162
|
+
* Default: `media-root`.
|
|
2163
|
+
*/
|
|
2164
|
+
parentFolderId?: string | null;
|
|
2165
|
+
/**
|
|
2166
|
+
* File media type.
|
|
2167
|
+
* excluding: OTHER media type
|
|
2168
|
+
*/
|
|
2169
|
+
mediaTypes?: MediaType[];
|
|
2170
|
+
/** Whether the link to the imported file is public or private. */
|
|
2171
|
+
private?: boolean | null;
|
|
2172
|
+
/**
|
|
2173
|
+
* Field name and order to sort by. One of:
|
|
2174
|
+
*
|
|
2175
|
+
* - `displayName`
|
|
2176
|
+
* - `_updatedDate`
|
|
2177
|
+
* - `sizeInBytes`
|
|
2178
|
+
*
|
|
2179
|
+
* Default: `_updatedDate` in `"DESC"` order.
|
|
2180
|
+
*/
|
|
2181
|
+
sort?: Sorting$1;
|
|
2182
|
+
/** Cursor and paging information. */
|
|
2183
|
+
paging?: CursorPaging$1;
|
|
2184
|
+
}
|
|
2185
|
+
interface ListDeletedFilesResponse {
|
|
2186
|
+
/** List of files in the Media Manager's trash bin. */
|
|
2187
|
+
files?: FileDescriptor[];
|
|
2188
|
+
/** The next cursor if it exists. */
|
|
2189
|
+
nextCursor?: PagingMetadataV2$1;
|
|
2190
|
+
}
|
|
2191
|
+
interface UpdateFileRequest {
|
|
2192
|
+
/**
|
|
2193
|
+
* ID of the file to update.
|
|
2194
|
+
*
|
|
2195
|
+
* You can also pass the file's Wix media URL. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
2196
|
+
* Learn more in the File and Folder IDs article.
|
|
2197
|
+
*/
|
|
2198
|
+
fileId?: string;
|
|
2199
|
+
/** File name that appears in the Media Manager. */
|
|
2200
|
+
displayName?: string | null;
|
|
2201
|
+
/**
|
|
2202
|
+
* ID of the file's parent folder. <br />
|
|
2203
|
+
* Default: `media-root`.
|
|
2204
|
+
*/
|
|
2205
|
+
parentFolderId?: string | null;
|
|
2206
|
+
/** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
|
|
2207
|
+
labels?: string[] | null;
|
|
2208
|
+
}
|
|
2209
|
+
interface UpdateFileResponse {
|
|
2210
|
+
/** Information about the updated file. */
|
|
2211
|
+
file?: FileDescriptor;
|
|
2212
|
+
}
|
|
2213
|
+
interface DomainEvent$1 extends DomainEventBodyOneOf$1 {
|
|
2214
|
+
createdEvent?: EntityCreatedEvent$1;
|
|
2215
|
+
updatedEvent?: EntityUpdatedEvent$1;
|
|
2216
|
+
deletedEvent?: EntityDeletedEvent$1;
|
|
2217
|
+
actionEvent?: ActionEvent$1;
|
|
2218
|
+
/**
|
|
2219
|
+
* Unique event ID.
|
|
2220
|
+
* Allows clients to ignore duplicate webhooks.
|
|
2221
|
+
*/
|
|
2222
|
+
_id?: string;
|
|
2223
|
+
/**
|
|
2224
|
+
* Assumes actions are also always typed to an entity_type
|
|
2225
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
2226
|
+
*/
|
|
2227
|
+
entityFqdn?: string;
|
|
2228
|
+
/**
|
|
2229
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
2230
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
2231
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
2232
|
+
*/
|
|
2233
|
+
slug?: string;
|
|
2234
|
+
/** ID of the entity associated with the event. */
|
|
2235
|
+
entityId?: string;
|
|
2236
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
2237
|
+
eventTime?: Date;
|
|
2238
|
+
/**
|
|
2239
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
2240
|
+
* (for example, GDPR).
|
|
2241
|
+
*/
|
|
2242
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
2243
|
+
/** If present, indicates the action that triggered the event. */
|
|
2244
|
+
originatedFrom?: string | null;
|
|
2245
|
+
/**
|
|
2246
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
2247
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
2248
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
2249
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
2250
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
2251
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
2252
|
+
*/
|
|
2253
|
+
entityEventSequence?: string | null;
|
|
2254
|
+
}
|
|
2255
|
+
/** @oneof */
|
|
2256
|
+
interface DomainEventBodyOneOf$1 {
|
|
2257
|
+
createdEvent?: EntityCreatedEvent$1;
|
|
2258
|
+
updatedEvent?: EntityUpdatedEvent$1;
|
|
2259
|
+
deletedEvent?: EntityDeletedEvent$1;
|
|
2260
|
+
actionEvent?: ActionEvent$1;
|
|
2261
|
+
}
|
|
2262
|
+
interface EntityCreatedEvent$1 {
|
|
2263
|
+
entity?: string;
|
|
2264
|
+
}
|
|
2265
|
+
interface RestoreInfo$1 {
|
|
2266
|
+
deletedDate?: Date;
|
|
2267
|
+
}
|
|
2268
|
+
interface EntityUpdatedEvent$1 {
|
|
2269
|
+
/**
|
|
2270
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
2271
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
2272
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
2273
|
+
*/
|
|
2274
|
+
currentEntity?: string;
|
|
2275
|
+
}
|
|
2276
|
+
interface EntityDeletedEvent$1 {
|
|
2277
|
+
/** Entity that was deleted */
|
|
2278
|
+
deletedEntity?: string | null;
|
|
2279
|
+
}
|
|
2280
|
+
interface ActionEvent$1 {
|
|
2281
|
+
body?: string;
|
|
2282
|
+
}
|
|
2283
|
+
interface MessageEnvelope$1 {
|
|
2284
|
+
/** App instance ID. */
|
|
2285
|
+
instanceId?: string | null;
|
|
2286
|
+
/** Event type. */
|
|
2287
|
+
eventType?: string;
|
|
2288
|
+
/** The identification type and identity data. */
|
|
2289
|
+
identity?: IdentificationData$1;
|
|
2290
|
+
/** Stringify payload. */
|
|
2291
|
+
data?: string;
|
|
2292
|
+
}
|
|
2293
|
+
interface IdentificationData$1 extends IdentificationDataIdOneOf$1 {
|
|
2294
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
2295
|
+
anonymousVisitorId?: string;
|
|
2296
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
2297
|
+
memberId?: string;
|
|
2298
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
2299
|
+
wixUserId?: string;
|
|
2300
|
+
/** ID of an app. */
|
|
2301
|
+
appId?: string;
|
|
2302
|
+
/** @readonly */
|
|
2303
|
+
identityType?: WebhookIdentityType$1;
|
|
2304
|
+
}
|
|
2305
|
+
/** @oneof */
|
|
2306
|
+
interface IdentificationDataIdOneOf$1 {
|
|
2307
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
2308
|
+
anonymousVisitorId?: string;
|
|
2309
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
2310
|
+
memberId?: string;
|
|
2311
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
2312
|
+
wixUserId?: string;
|
|
2313
|
+
/** ID of an app. */
|
|
2314
|
+
appId?: string;
|
|
2315
|
+
}
|
|
2316
|
+
declare enum WebhookIdentityType$1 {
|
|
2317
|
+
UNKNOWN = "UNKNOWN",
|
|
2318
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
2319
|
+
MEMBER = "MEMBER",
|
|
2320
|
+
WIX_USER = "WIX_USER",
|
|
2321
|
+
APP = "APP"
|
|
2322
|
+
}
|
|
2323
|
+
interface GenerateFilesDownloadUrlResponseNonNullableFields {
|
|
2324
|
+
downloadUrl: string;
|
|
2325
|
+
}
|
|
2326
|
+
interface DownloadUrlNonNullableFields {
|
|
2327
|
+
url: string;
|
|
2328
|
+
assetKey: string;
|
|
2329
|
+
}
|
|
2330
|
+
interface GenerateFileDownloadUrlResponseNonNullableFields {
|
|
2331
|
+
downloadUrls: DownloadUrlNonNullableFields[];
|
|
2332
|
+
}
|
|
2333
|
+
interface FaceRecognitionNonNullableFields {
|
|
2334
|
+
confidence: number;
|
|
2335
|
+
x: number;
|
|
2336
|
+
y: number;
|
|
2337
|
+
height: number;
|
|
2338
|
+
width: number;
|
|
2339
|
+
}
|
|
2340
|
+
interface ImageMediaNonNullableFields {
|
|
2341
|
+
image: string;
|
|
2342
|
+
faces: FaceRecognitionNonNullableFields[];
|
|
2343
|
+
previewImage: string;
|
|
2344
|
+
}
|
|
2345
|
+
interface AudioV2NonNullableFields {
|
|
2346
|
+
_id: string;
|
|
2347
|
+
assets: string[];
|
|
2348
|
+
}
|
|
2349
|
+
interface ArchiveNonNullableFields {
|
|
2350
|
+
_id: string;
|
|
2351
|
+
url: string;
|
|
2352
|
+
}
|
|
2353
|
+
interface Model3DNonNullableFields {
|
|
2354
|
+
_id: string;
|
|
2355
|
+
url: string;
|
|
2356
|
+
thumbnail: string;
|
|
2357
|
+
}
|
|
2358
|
+
interface OtherMediaNonNullableFields {
|
|
2359
|
+
_id: string;
|
|
2360
|
+
}
|
|
2361
|
+
interface FileMediaNonNullableFields {
|
|
2362
|
+
image?: ImageMediaNonNullableFields;
|
|
2363
|
+
video: string;
|
|
2364
|
+
audio?: AudioV2NonNullableFields;
|
|
2365
|
+
document: string;
|
|
2366
|
+
vector?: ImageMediaNonNullableFields;
|
|
2367
|
+
archive?: ArchiveNonNullableFields;
|
|
2368
|
+
model3d?: Model3DNonNullableFields;
|
|
2369
|
+
other?: OtherMediaNonNullableFields;
|
|
2370
|
+
}
|
|
2371
|
+
interface IdentityInfoNonNullableFields {
|
|
2372
|
+
identityType: IdentityType;
|
|
2373
|
+
}
|
|
2374
|
+
interface FileDescriptorNonNullableFields {
|
|
2375
|
+
_id: string;
|
|
2376
|
+
displayName: string;
|
|
2377
|
+
url: string;
|
|
2378
|
+
hash: string;
|
|
2379
|
+
private: boolean;
|
|
2380
|
+
mediaType: MediaType;
|
|
2381
|
+
media?: FileMediaNonNullableFields;
|
|
2382
|
+
operationStatus: OperationStatus;
|
|
2383
|
+
labels: string[];
|
|
2384
|
+
siteId: string;
|
|
2385
|
+
state: State$1;
|
|
2386
|
+
internalTags: string[];
|
|
2387
|
+
namespace: Namespace$1;
|
|
2388
|
+
addedBy?: IdentityInfoNonNullableFields;
|
|
2389
|
+
}
|
|
2390
|
+
interface GetFileDescriptorResponseNonNullableFields {
|
|
2391
|
+
file?: FileDescriptorNonNullableFields;
|
|
2392
|
+
}
|
|
2393
|
+
interface GetFileDescriptorsResponseNonNullableFields {
|
|
2394
|
+
files: FileDescriptorNonNullableFields[];
|
|
2395
|
+
}
|
|
2396
|
+
interface UpdateFileDescriptorResponseNonNullableFields {
|
|
2397
|
+
file?: FileDescriptorNonNullableFields;
|
|
2398
|
+
}
|
|
2399
|
+
interface GenerateFileUploadUrlResponseNonNullableFields {
|
|
2400
|
+
uploadUrl: string;
|
|
2401
|
+
}
|
|
2402
|
+
interface GenerateFileResumableUploadUrlResponseNonNullableFields {
|
|
2403
|
+
uploadProtocol: UploadProtocol;
|
|
2404
|
+
uploadUrl: string;
|
|
2405
|
+
uploadToken: string;
|
|
2406
|
+
}
|
|
2407
|
+
interface ImportFileResponseNonNullableFields {
|
|
2408
|
+
file?: FileDescriptorNonNullableFields;
|
|
2409
|
+
}
|
|
2410
|
+
interface BulkImportFilesResponseNonNullableFields {
|
|
2411
|
+
files: FileDescriptorNonNullableFields[];
|
|
2412
|
+
}
|
|
2413
|
+
interface ApplicationErrorNonNullableFields {
|
|
2414
|
+
code: string;
|
|
2415
|
+
description: string;
|
|
2416
|
+
}
|
|
2417
|
+
interface ItemMetadataNonNullableFields {
|
|
2418
|
+
originalIndex: number;
|
|
2419
|
+
success: boolean;
|
|
2420
|
+
error?: ApplicationErrorNonNullableFields;
|
|
2421
|
+
}
|
|
2422
|
+
interface BulkImportFileResultNonNullableFields {
|
|
2423
|
+
itemMetadata?: ItemMetadataNonNullableFields;
|
|
2424
|
+
item?: FileDescriptorNonNullableFields;
|
|
2425
|
+
}
|
|
2426
|
+
interface BulkActionMetadataNonNullableFields {
|
|
2427
|
+
totalSuccesses: number;
|
|
2428
|
+
totalFailures: number;
|
|
2429
|
+
undetailedFailures: number;
|
|
2430
|
+
}
|
|
2431
|
+
interface BulkImportFileResponseNonNullableFields {
|
|
2432
|
+
results: BulkImportFileResultNonNullableFields[];
|
|
2433
|
+
bulkActionMetadata?: BulkActionMetadataNonNullableFields;
|
|
2434
|
+
}
|
|
2435
|
+
interface ListFilesResponseNonNullableFields {
|
|
2436
|
+
files: FileDescriptorNonNullableFields[];
|
|
2437
|
+
}
|
|
2438
|
+
interface SearchFilesResponseNonNullableFields {
|
|
2439
|
+
files: FileDescriptorNonNullableFields[];
|
|
2440
|
+
}
|
|
2441
|
+
interface GenerateVideoStreamingUrlResponseNonNullableFields {
|
|
2442
|
+
downloadUrl?: DownloadUrlNonNullableFields;
|
|
2443
|
+
}
|
|
2444
|
+
interface ListDeletedFilesResponseNonNullableFields {
|
|
2445
|
+
files: FileDescriptorNonNullableFields[];
|
|
2446
|
+
}
|
|
2447
|
+
interface BaseEventMetadata$1 {
|
|
2448
|
+
/** App instance ID. */
|
|
2449
|
+
instanceId?: string | null;
|
|
2450
|
+
/** Event type. */
|
|
2451
|
+
eventType?: string;
|
|
2452
|
+
/** The identification type and identity data. */
|
|
2453
|
+
identity?: IdentificationData$1;
|
|
2454
|
+
}
|
|
2455
|
+
interface EventMetadata$1 extends BaseEventMetadata$1 {
|
|
2456
|
+
/**
|
|
2457
|
+
* Unique event ID.
|
|
2458
|
+
* Allows clients to ignore duplicate webhooks.
|
|
2459
|
+
*/
|
|
2460
|
+
_id?: string;
|
|
2461
|
+
/**
|
|
2462
|
+
* Assumes actions are also always typed to an entity_type
|
|
2463
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
2464
|
+
*/
|
|
2465
|
+
entityFqdn?: string;
|
|
2466
|
+
/**
|
|
2467
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
2468
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
2469
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
2470
|
+
*/
|
|
2471
|
+
slug?: string;
|
|
2472
|
+
/** ID of the entity associated with the event. */
|
|
2473
|
+
entityId?: string;
|
|
2474
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
2475
|
+
eventTime?: Date;
|
|
2476
|
+
/**
|
|
2477
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
2478
|
+
* (for example, GDPR).
|
|
2479
|
+
*/
|
|
2480
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
2481
|
+
/** If present, indicates the action that triggered the event. */
|
|
2482
|
+
originatedFrom?: string | null;
|
|
2483
|
+
/**
|
|
2484
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
2485
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
2486
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
2487
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
2488
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
2489
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
2490
|
+
*/
|
|
2491
|
+
entityEventSequence?: string | null;
|
|
2492
|
+
}
|
|
2493
|
+
interface FileDescriptorUpdatedEnvelope {
|
|
2494
|
+
entity: FileDescriptor;
|
|
2495
|
+
metadata: EventMetadata$1;
|
|
2496
|
+
}
|
|
2497
|
+
interface FileDescriptorDeletedEnvelope {
|
|
2498
|
+
metadata: EventMetadata$1;
|
|
2499
|
+
}
|
|
2500
|
+
interface FileDescriptorFileReadyEnvelope {
|
|
2501
|
+
data: FileReady;
|
|
2502
|
+
metadata: EventMetadata$1;
|
|
2503
|
+
}
|
|
2504
|
+
interface FileDescriptorFileFailedEnvelope {
|
|
2505
|
+
data: FileFailed;
|
|
2506
|
+
metadata: EventMetadata$1;
|
|
2507
|
+
}
|
|
2508
|
+
interface GenerateFileDownloadUrlOptions {
|
|
2509
|
+
/**
|
|
2510
|
+
* Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type. <br />
|
|
2511
|
+
*
|
|
2512
|
+
* **Note:** The name that appears in the Media Manager is taken from the `filename` query parameter in the upload request.
|
|
2513
|
+
*/
|
|
2514
|
+
downloadFileName?: string | null;
|
|
2515
|
+
/**
|
|
2516
|
+
* The time that it takes in minutes for the download URL to expire. <br />
|
|
2517
|
+
* Default: `600`. <br />
|
|
2518
|
+
* Limit: `525600` (1 year).
|
|
2519
|
+
*/
|
|
2520
|
+
expirationInMinutes?: number | null;
|
|
2521
|
+
/**
|
|
2522
|
+
* The redirect URL for when the temporary download URL with a token expires. <br />
|
|
2523
|
+
* Default: A 403 Forbidden response page.
|
|
2524
|
+
*/
|
|
2525
|
+
expirationRedirectUrl?: string | null;
|
|
2526
|
+
/**
|
|
2527
|
+
* Keys for downloading different assets (format and quality) of a file.
|
|
2528
|
+
* Default: `src`, key representing the original file's format and quality.
|
|
2529
|
+
*/
|
|
2530
|
+
assetKeys?: string[] | null;
|
|
2531
|
+
/**
|
|
2532
|
+
* Whether the link downloads the file or opens the file in the browser.
|
|
2533
|
+
*
|
|
2534
|
+
* - `ATTACHMENT`: The link downloads the file.
|
|
2535
|
+
* - `INLINE`: The link opens the file in the browser.
|
|
2536
|
+
*
|
|
2537
|
+
* Default: `ATTACHMENT`
|
|
2538
|
+
*/
|
|
2539
|
+
contentDisposition?: ContentDisposition;
|
|
2540
|
+
}
|
|
2541
|
+
interface GenerateFileUploadUrlOptions {
|
|
2542
|
+
/**
|
|
2543
|
+
* Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
|
|
2544
|
+
* <br /> **Note:** The name that appears in the Media Manager is taken from the `filename` query parameter in the upload request.
|
|
2545
|
+
*/
|
|
2546
|
+
fileName?: string | null;
|
|
2547
|
+
/**
|
|
2548
|
+
* File size in bytes.
|
|
2549
|
+
* @readonly
|
|
2550
|
+
*/
|
|
2551
|
+
sizeInBytes?: string | null;
|
|
2552
|
+
/**
|
|
2553
|
+
* ID of the file's parent folder. <br />
|
|
2554
|
+
* This folder is the path root for the `filePath`.<br />
|
|
2555
|
+
* Default: `media-root`.
|
|
2556
|
+
*/
|
|
2557
|
+
parentFolderId?: string | null;
|
|
2558
|
+
/** Whether the link to the uploaded file is public or private. See `Private Files` in terminology. */
|
|
2559
|
+
private?: boolean | null;
|
|
2560
|
+
/** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
|
|
2561
|
+
labels?: string[] | null;
|
|
2562
|
+
/** Information sent to the `onFileDescriptorFileReady( )` and `onFileDescriptorFileFailed( )` events. See the Importing Files article to learn more. */
|
|
2563
|
+
externalInfo?: ExternalInfo;
|
|
2564
|
+
/**
|
|
2565
|
+
* Path to the folder where the file will be stored.
|
|
2566
|
+
* For example, `/videos/2024/december`. <br/>
|
|
2567
|
+
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
2568
|
+
* The folders in the path will be created if they don't already exist. <br />
|
|
2569
|
+
*/
|
|
2570
|
+
filePath?: string | null;
|
|
2571
|
+
}
|
|
2572
|
+
interface GenerateFileResumableUploadUrlOptions {
|
|
2573
|
+
/**
|
|
2574
|
+
* Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
|
|
2575
|
+
* <br /> **Note:** The name that appears in the Media Manager is taken from the `filename` query parameter in the upload request.
|
|
2576
|
+
*/
|
|
2577
|
+
fileName?: string | null;
|
|
2578
|
+
/**
|
|
2579
|
+
* File size in bytes.
|
|
2580
|
+
* @readonly
|
|
2581
|
+
*/
|
|
2582
|
+
sizeInBytes?: string | null;
|
|
2583
|
+
/**
|
|
2584
|
+
* ID of the file's parent folder. <br />
|
|
2585
|
+
* This folder is the path root for the `filePath`.<br />
|
|
2586
|
+
* Default: `media-root`.
|
|
2587
|
+
*/
|
|
2588
|
+
parentFolderId?: string | null;
|
|
2589
|
+
/** Whether the link to the imported file is public or private. See `Private Files` in terminology. */
|
|
2590
|
+
private?: boolean | null;
|
|
2591
|
+
/** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
|
|
2592
|
+
labels?: string[] | null;
|
|
2593
|
+
/**
|
|
2594
|
+
* The upload protocol to use for implementing the resumable upload.
|
|
2595
|
+
*
|
|
2596
|
+
* Supported values: `"TUS"`
|
|
2597
|
+
*/
|
|
2598
|
+
uploadProtocol?: UploadProtocol;
|
|
2599
|
+
/**
|
|
2600
|
+
* Path to the folder where the file will be stored.
|
|
2601
|
+
* For example, `/videos/2024/december`. <br/>
|
|
2602
|
+
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
2603
|
+
* The folders in the path will be created if they don't already exist. <br />
|
|
2604
|
+
*/
|
|
2605
|
+
filePath?: string | null;
|
|
2606
|
+
}
|
|
2607
|
+
interface ImportFileOptions {
|
|
2608
|
+
/** Media type of the file to import. */
|
|
2609
|
+
mediaType?: MediaType;
|
|
2610
|
+
/** File name that appears in the Media Manager. */
|
|
2611
|
+
displayName?: string | null;
|
|
2612
|
+
/**
|
|
2613
|
+
* ID of the file's parent folder. <br />
|
|
2614
|
+
* This folder is the path root for the `filePath`. <br />
|
|
2615
|
+
* Default: `media-root`.
|
|
2616
|
+
*/
|
|
2617
|
+
parentFolderId?: string | null;
|
|
2618
|
+
/** Whether the link to the imported file is public or private. */
|
|
2619
|
+
private?: boolean | null;
|
|
2620
|
+
/** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
|
|
2621
|
+
labels?: string[] | null;
|
|
2622
|
+
/** File mime type. */
|
|
2623
|
+
mimeType?: string;
|
|
2624
|
+
/** Information sent to the `onFileDescriptorFileReady( )` and `onFileDescriptorFileFailed( )` events. See the Importing Files article to learn more. */
|
|
2625
|
+
externalInfo?: ExternalInfo;
|
|
2626
|
+
/** Optional parameters that should be sent with the external URL. */
|
|
2627
|
+
urlParams?: Record<string, any> | null;
|
|
2628
|
+
/** Optional headers that should be sent with the external URL. */
|
|
2629
|
+
urlHeaders?: Record<string, any> | null;
|
|
2630
|
+
/**
|
|
2631
|
+
* Path to the folder where the file will be stored.
|
|
2632
|
+
* For example, `/videos/2024/december`. <br/>
|
|
2633
|
+
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
2634
|
+
* The folders in the path will be created if they don't already exist. <br />
|
|
2635
|
+
*/
|
|
2636
|
+
filePath?: string | null;
|
|
2637
|
+
}
|
|
2638
|
+
interface BulkImportFileOptions {
|
|
2639
|
+
/**
|
|
2640
|
+
* Whether to include the imported File Descriptor in the response. Set to `false` to exclude the File Descriptor from the returned object.
|
|
2641
|
+
*
|
|
2642
|
+
* Default: `true`
|
|
2643
|
+
*/
|
|
2644
|
+
returnEntity?: boolean | null;
|
|
2645
|
+
}
|
|
2646
|
+
interface ListFilesOptions {
|
|
2647
|
+
/**
|
|
2648
|
+
* ID of the file's parent folder. <br />
|
|
2649
|
+
* Default:`media-root`.
|
|
2650
|
+
*/
|
|
2651
|
+
parentFolderId?: string | null;
|
|
2652
|
+
/** Media file type. */
|
|
2653
|
+
mediaTypes?: MediaType[];
|
|
2654
|
+
/** Whether the link to the imported file is public or private. */
|
|
2655
|
+
private?: boolean | null;
|
|
2656
|
+
/**
|
|
2657
|
+
* Field name and order to sort by. One of:
|
|
2658
|
+
*
|
|
2659
|
+
* - `displayName`
|
|
2660
|
+
* - `_updatedDate`
|
|
2661
|
+
* - `sizeInBytes`
|
|
2662
|
+
*
|
|
2663
|
+
* Default: `_updatedDate` in `"DESC"` order.
|
|
2664
|
+
*/
|
|
2665
|
+
sort?: Sorting$1;
|
|
2666
|
+
/** Cursor and paging information. */
|
|
2667
|
+
paging?: CursorPaging$1;
|
|
2668
|
+
}
|
|
2669
|
+
interface SearchFilesOptions {
|
|
2670
|
+
/**
|
|
2671
|
+
* Term to search for. Possible terms include the value of a file's
|
|
2672
|
+
* `displayName`, `mimeType`, and `label`. <br />
|
|
2673
|
+
* For example, if a file's label is cat, the search term is 'cat'.
|
|
2674
|
+
*/
|
|
2675
|
+
search?: string | null;
|
|
2676
|
+
/**
|
|
2677
|
+
* A root folder in the media manager to search in.
|
|
2678
|
+
*
|
|
2679
|
+
* Default: `MEDIA_ROOT`.
|
|
2680
|
+
*/
|
|
2681
|
+
rootFolder?: RootFolder$1;
|
|
2682
|
+
/** Media file type. */
|
|
2683
|
+
mediaTypes?: MediaType[];
|
|
2684
|
+
/**
|
|
2685
|
+
* Whether the link to the imported file is public or private.
|
|
2686
|
+
*
|
|
2687
|
+
* Default: `false`.
|
|
2688
|
+
*/
|
|
2689
|
+
private?: boolean | null;
|
|
2690
|
+
/**
|
|
2691
|
+
* Field name and order to sort by. One of:
|
|
2692
|
+
*
|
|
2693
|
+
* - `displayName`
|
|
2694
|
+
* - `_updatedDate`
|
|
2695
|
+
* - `sizeInBytes`
|
|
2696
|
+
*
|
|
2697
|
+
* Default: `_updatedDate` in `"DESC"` order.
|
|
2698
|
+
*/
|
|
2699
|
+
sort?: Sorting$1;
|
|
2700
|
+
/** Cursor and paging information. */
|
|
2701
|
+
paging?: CursorPaging$1;
|
|
2702
|
+
}
|
|
2703
|
+
interface GenerateVideoStreamingUrlOptions {
|
|
2704
|
+
/** Video stream format. */
|
|
2705
|
+
format?: StreamFormat;
|
|
2706
|
+
}
|
|
2707
|
+
interface BulkDeleteFilesOptions {
|
|
2708
|
+
/**
|
|
2709
|
+
* Whether the specified files are permanently deleted. <br />
|
|
2710
|
+
* Default: `false`
|
|
2711
|
+
*/
|
|
2712
|
+
permanent?: boolean;
|
|
2713
|
+
}
|
|
2714
|
+
interface ListDeletedFilesOptions {
|
|
2715
|
+
/**
|
|
2716
|
+
* ID of the file's parent folder. <br />
|
|
2717
|
+
* Default: `media-root`.
|
|
2718
|
+
*/
|
|
2719
|
+
parentFolderId?: string | null;
|
|
2720
|
+
/** Media file type. */
|
|
2721
|
+
mediaTypes?: MediaType[];
|
|
2722
|
+
/** Whether the link to the imported file is public or private. */
|
|
2723
|
+
private?: boolean | null;
|
|
2724
|
+
/**
|
|
2725
|
+
* Field name and order to sort by. One of:
|
|
2726
|
+
*
|
|
2727
|
+
* - `displayName`
|
|
2728
|
+
* - `_updatedDate`
|
|
2729
|
+
* - `sizeInBytes`
|
|
2730
|
+
*
|
|
2731
|
+
* Default: `_updatedDate` in `"DESC"` order.
|
|
2732
|
+
*/
|
|
2733
|
+
sort?: Sorting$1;
|
|
2734
|
+
/** Cursor and paging information. */
|
|
2735
|
+
paging?: CursorPaging$1;
|
|
107
2736
|
}
|
|
108
2737
|
|
|
109
2738
|
declare function createRESTModule$1<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
@@ -131,6 +2760,105 @@ declare const onFileDescriptorDeleted: ReturnType<typeof createEventModule$1<typ
|
|
|
131
2760
|
declare const onFileDescriptorFileReady: ReturnType<typeof createEventModule$1<typeof publicOnFileDescriptorFileReady>>;
|
|
132
2761
|
declare const onFileDescriptorFileFailed: ReturnType<typeof createEventModule$1<typeof publicOnFileDescriptorFileFailed>>;
|
|
133
2762
|
|
|
2763
|
+
type context$1_ApplicationError = ApplicationError;
|
|
2764
|
+
type context$1_Archive = Archive;
|
|
2765
|
+
type context$1_AudioV2 = AudioV2;
|
|
2766
|
+
type context$1_BulkActionMetadata = BulkActionMetadata;
|
|
2767
|
+
type context$1_BulkDeleteFilesOptions = BulkDeleteFilesOptions;
|
|
2768
|
+
type context$1_BulkDeleteFilesRequest = BulkDeleteFilesRequest;
|
|
2769
|
+
type context$1_BulkDeleteFilesResponse = BulkDeleteFilesResponse;
|
|
2770
|
+
type context$1_BulkImportFileOptions = BulkImportFileOptions;
|
|
2771
|
+
type context$1_BulkImportFileRequest = BulkImportFileRequest;
|
|
2772
|
+
type context$1_BulkImportFileResponse = BulkImportFileResponse;
|
|
2773
|
+
type context$1_BulkImportFileResponseNonNullableFields = BulkImportFileResponseNonNullableFields;
|
|
2774
|
+
type context$1_BulkImportFileResult = BulkImportFileResult;
|
|
2775
|
+
type context$1_BulkImportFilesRequest = BulkImportFilesRequest;
|
|
2776
|
+
type context$1_BulkImportFilesResponse = BulkImportFilesResponse;
|
|
2777
|
+
type context$1_BulkImportFilesResponseNonNullableFields = BulkImportFilesResponseNonNullableFields;
|
|
2778
|
+
type context$1_BulkRestoreFilesFromTrashBinRequest = BulkRestoreFilesFromTrashBinRequest;
|
|
2779
|
+
type context$1_BulkRestoreFilesFromTrashBinResponse = BulkRestoreFilesFromTrashBinResponse;
|
|
2780
|
+
type context$1_Color = Color;
|
|
2781
|
+
type context$1_ColorRGB = ColorRGB;
|
|
2782
|
+
type context$1_Colors = Colors;
|
|
2783
|
+
type context$1_ContentDisposition = ContentDisposition;
|
|
2784
|
+
declare const context$1_ContentDisposition: typeof ContentDisposition;
|
|
2785
|
+
type context$1_DownloadUrl = DownloadUrl;
|
|
2786
|
+
type context$1_ExternalInfo = ExternalInfo;
|
|
2787
|
+
type context$1_FaceRecognition = FaceRecognition;
|
|
2788
|
+
type context$1_FileDescriptor = FileDescriptor;
|
|
2789
|
+
type context$1_FileDescriptorDeletedEnvelope = FileDescriptorDeletedEnvelope;
|
|
2790
|
+
type context$1_FileDescriptorFileFailedEnvelope = FileDescriptorFileFailedEnvelope;
|
|
2791
|
+
type context$1_FileDescriptorFileReadyEnvelope = FileDescriptorFileReadyEnvelope;
|
|
2792
|
+
type context$1_FileDescriptorNonNullableFields = FileDescriptorNonNullableFields;
|
|
2793
|
+
type context$1_FileDescriptorUpdatedEnvelope = FileDescriptorUpdatedEnvelope;
|
|
2794
|
+
type context$1_FileFailed = FileFailed;
|
|
2795
|
+
type context$1_FileMedia = FileMedia;
|
|
2796
|
+
type context$1_FileMediaMediaOneOf = FileMediaMediaOneOf;
|
|
2797
|
+
type context$1_FileReady = FileReady;
|
|
2798
|
+
type context$1_GenerateFileDownloadUrlOptions = GenerateFileDownloadUrlOptions;
|
|
2799
|
+
type context$1_GenerateFileDownloadUrlRequest = GenerateFileDownloadUrlRequest;
|
|
2800
|
+
type context$1_GenerateFileDownloadUrlResponse = GenerateFileDownloadUrlResponse;
|
|
2801
|
+
type context$1_GenerateFileDownloadUrlResponseNonNullableFields = GenerateFileDownloadUrlResponseNonNullableFields;
|
|
2802
|
+
type context$1_GenerateFileResumableUploadUrlOptions = GenerateFileResumableUploadUrlOptions;
|
|
2803
|
+
type context$1_GenerateFileResumableUploadUrlRequest = GenerateFileResumableUploadUrlRequest;
|
|
2804
|
+
type context$1_GenerateFileResumableUploadUrlResponse = GenerateFileResumableUploadUrlResponse;
|
|
2805
|
+
type context$1_GenerateFileResumableUploadUrlResponseNonNullableFields = GenerateFileResumableUploadUrlResponseNonNullableFields;
|
|
2806
|
+
type context$1_GenerateFileUploadUrlOptions = GenerateFileUploadUrlOptions;
|
|
2807
|
+
type context$1_GenerateFileUploadUrlRequest = GenerateFileUploadUrlRequest;
|
|
2808
|
+
type context$1_GenerateFileUploadUrlResponse = GenerateFileUploadUrlResponse;
|
|
2809
|
+
type context$1_GenerateFileUploadUrlResponseNonNullableFields = GenerateFileUploadUrlResponseNonNullableFields;
|
|
2810
|
+
type context$1_GenerateFilesDownloadUrlRequest = GenerateFilesDownloadUrlRequest;
|
|
2811
|
+
type context$1_GenerateFilesDownloadUrlResponse = GenerateFilesDownloadUrlResponse;
|
|
2812
|
+
type context$1_GenerateFilesDownloadUrlResponseNonNullableFields = GenerateFilesDownloadUrlResponseNonNullableFields;
|
|
2813
|
+
type context$1_GenerateVideoStreamingUrlOptions = GenerateVideoStreamingUrlOptions;
|
|
2814
|
+
type context$1_GenerateVideoStreamingUrlRequest = GenerateVideoStreamingUrlRequest;
|
|
2815
|
+
type context$1_GenerateVideoStreamingUrlResponse = GenerateVideoStreamingUrlResponse;
|
|
2816
|
+
type context$1_GenerateVideoStreamingUrlResponseNonNullableFields = GenerateVideoStreamingUrlResponseNonNullableFields;
|
|
2817
|
+
type context$1_GenerateWebSocketTokenRequest = GenerateWebSocketTokenRequest;
|
|
2818
|
+
type context$1_GenerateWebSocketTokenResponse = GenerateWebSocketTokenResponse;
|
|
2819
|
+
type context$1_GetFileDescriptorRequest = GetFileDescriptorRequest;
|
|
2820
|
+
type context$1_GetFileDescriptorResponse = GetFileDescriptorResponse;
|
|
2821
|
+
type context$1_GetFileDescriptorResponseNonNullableFields = GetFileDescriptorResponseNonNullableFields;
|
|
2822
|
+
type context$1_GetFileDescriptorsRequest = GetFileDescriptorsRequest;
|
|
2823
|
+
type context$1_GetFileDescriptorsResponse = GetFileDescriptorsResponse;
|
|
2824
|
+
type context$1_GetFileDescriptorsResponseNonNullableFields = GetFileDescriptorsResponseNonNullableFields;
|
|
2825
|
+
type context$1_IdentityInfo = IdentityInfo;
|
|
2826
|
+
type context$1_IdentityType = IdentityType;
|
|
2827
|
+
declare const context$1_IdentityType: typeof IdentityType;
|
|
2828
|
+
type context$1_ImageMedia = ImageMedia;
|
|
2829
|
+
type context$1_ImportFileOptions = ImportFileOptions;
|
|
2830
|
+
type context$1_ImportFileRequest = ImportFileRequest;
|
|
2831
|
+
type context$1_ImportFileResponse = ImportFileResponse;
|
|
2832
|
+
type context$1_ImportFileResponseNonNullableFields = ImportFileResponseNonNullableFields;
|
|
2833
|
+
type context$1_ItemMetadata = ItemMetadata;
|
|
2834
|
+
type context$1_ListDeletedFilesOptions = ListDeletedFilesOptions;
|
|
2835
|
+
type context$1_ListDeletedFilesRequest = ListDeletedFilesRequest;
|
|
2836
|
+
type context$1_ListDeletedFilesResponse = ListDeletedFilesResponse;
|
|
2837
|
+
type context$1_ListDeletedFilesResponseNonNullableFields = ListDeletedFilesResponseNonNullableFields;
|
|
2838
|
+
type context$1_ListFilesOptions = ListFilesOptions;
|
|
2839
|
+
type context$1_ListFilesRequest = ListFilesRequest;
|
|
2840
|
+
type context$1_ListFilesResponse = ListFilesResponse;
|
|
2841
|
+
type context$1_ListFilesResponseNonNullableFields = ListFilesResponseNonNullableFields;
|
|
2842
|
+
type context$1_MediaType = MediaType;
|
|
2843
|
+
declare const context$1_MediaType: typeof MediaType;
|
|
2844
|
+
type context$1_Model3D = Model3D;
|
|
2845
|
+
type context$1_OperationStatus = OperationStatus;
|
|
2846
|
+
declare const context$1_OperationStatus: typeof OperationStatus;
|
|
2847
|
+
type context$1_OtherMedia = OtherMedia;
|
|
2848
|
+
type context$1_SearchFilesOptions = SearchFilesOptions;
|
|
2849
|
+
type context$1_SearchFilesRequest = SearchFilesRequest;
|
|
2850
|
+
type context$1_SearchFilesResponse = SearchFilesResponse;
|
|
2851
|
+
type context$1_SearchFilesResponseNonNullableFields = SearchFilesResponseNonNullableFields;
|
|
2852
|
+
type context$1_StreamFormat = StreamFormat;
|
|
2853
|
+
declare const context$1_StreamFormat: typeof StreamFormat;
|
|
2854
|
+
type context$1_UpdateFileDescriptorRequest = UpdateFileDescriptorRequest;
|
|
2855
|
+
type context$1_UpdateFileDescriptorResponse = UpdateFileDescriptorResponse;
|
|
2856
|
+
type context$1_UpdateFileDescriptorResponseNonNullableFields = UpdateFileDescriptorResponseNonNullableFields;
|
|
2857
|
+
type context$1_UpdateFileRequest = UpdateFileRequest;
|
|
2858
|
+
type context$1_UpdateFileResponse = UpdateFileResponse;
|
|
2859
|
+
type context$1_UploadProtocol = UploadProtocol;
|
|
2860
|
+
declare const context$1_UploadProtocol: typeof UploadProtocol;
|
|
2861
|
+
type context$1_VideoResolution = VideoResolution;
|
|
134
2862
|
declare const context$1_bulkDeleteFiles: typeof bulkDeleteFiles;
|
|
135
2863
|
declare const context$1_bulkImportFile: typeof bulkImportFile;
|
|
136
2864
|
declare const context$1_bulkImportFiles: typeof bulkImportFiles;
|
|
@@ -152,7 +2880,504 @@ declare const context$1_onFileDescriptorUpdated: typeof onFileDescriptorUpdated;
|
|
|
152
2880
|
declare const context$1_searchFiles: typeof searchFiles;
|
|
153
2881
|
declare const context$1_updateFileDescriptor: typeof updateFileDescriptor;
|
|
154
2882
|
declare namespace context$1 {
|
|
155
|
-
export { context$1_bulkDeleteFiles as bulkDeleteFiles, context$1_bulkImportFile as bulkImportFile, context$1_bulkImportFiles as bulkImportFiles, context$1_bulkRestoreFilesFromTrashBin as bulkRestoreFilesFromTrashBin, context$1_generateFileDownloadUrl as generateFileDownloadUrl, context$1_generateFileResumableUploadUrl as generateFileResumableUploadUrl, context$1_generateFileUploadUrl as generateFileUploadUrl, context$1_generateFilesDownloadUrl as generateFilesDownloadUrl, context$1_generateVideoStreamingUrl as generateVideoStreamingUrl, context$1_getFileDescriptor as getFileDescriptor, context$1_getFileDescriptors as getFileDescriptors, context$1_importFile as importFile, context$1_listDeletedFiles as listDeletedFiles, context$1_listFiles as listFiles, context$1_onFileDescriptorDeleted as onFileDescriptorDeleted, context$1_onFileDescriptorFileFailed as onFileDescriptorFileFailed, context$1_onFileDescriptorFileReady as onFileDescriptorFileReady, context$1_onFileDescriptorUpdated as onFileDescriptorUpdated, context$1_searchFiles as searchFiles, context$1_updateFileDescriptor as updateFileDescriptor };
|
|
2883
|
+
export { type ActionEvent$1 as ActionEvent, type context$1_ApplicationError as ApplicationError, type context$1_Archive as Archive, type context$1_AudioV2 as AudioV2, type BaseEventMetadata$1 as BaseEventMetadata, type context$1_BulkActionMetadata as BulkActionMetadata, type context$1_BulkDeleteFilesOptions as BulkDeleteFilesOptions, type context$1_BulkDeleteFilesRequest as BulkDeleteFilesRequest, type context$1_BulkDeleteFilesResponse as BulkDeleteFilesResponse, type context$1_BulkImportFileOptions as BulkImportFileOptions, type context$1_BulkImportFileRequest as BulkImportFileRequest, type context$1_BulkImportFileResponse as BulkImportFileResponse, type context$1_BulkImportFileResponseNonNullableFields as BulkImportFileResponseNonNullableFields, type context$1_BulkImportFileResult as BulkImportFileResult, type context$1_BulkImportFilesRequest as BulkImportFilesRequest, type context$1_BulkImportFilesResponse as BulkImportFilesResponse, type context$1_BulkImportFilesResponseNonNullableFields as BulkImportFilesResponseNonNullableFields, type context$1_BulkRestoreFilesFromTrashBinRequest as BulkRestoreFilesFromTrashBinRequest, type context$1_BulkRestoreFilesFromTrashBinResponse as BulkRestoreFilesFromTrashBinResponse, type context$1_Color as Color, type context$1_ColorRGB as ColorRGB, type context$1_Colors as Colors, context$1_ContentDisposition as ContentDisposition, type CursorPaging$1 as CursorPaging, type Cursors$1 as Cursors, type DomainEvent$1 as DomainEvent, type DomainEventBodyOneOf$1 as DomainEventBodyOneOf, type context$1_DownloadUrl as DownloadUrl, type EntityCreatedEvent$1 as EntityCreatedEvent, type EntityDeletedEvent$1 as EntityDeletedEvent, type EntityUpdatedEvent$1 as EntityUpdatedEvent, type EventMetadata$1 as EventMetadata, type context$1_ExternalInfo as ExternalInfo, type context$1_FaceRecognition as FaceRecognition, type context$1_FileDescriptor as FileDescriptor, type context$1_FileDescriptorDeletedEnvelope as FileDescriptorDeletedEnvelope, type context$1_FileDescriptorFileFailedEnvelope as FileDescriptorFileFailedEnvelope, type context$1_FileDescriptorFileReadyEnvelope as FileDescriptorFileReadyEnvelope, type context$1_FileDescriptorNonNullableFields as FileDescriptorNonNullableFields, type context$1_FileDescriptorUpdatedEnvelope as FileDescriptorUpdatedEnvelope, type context$1_FileFailed as FileFailed, type context$1_FileMedia as FileMedia, type context$1_FileMediaMediaOneOf as FileMediaMediaOneOf, type context$1_FileReady as FileReady, type context$1_GenerateFileDownloadUrlOptions as GenerateFileDownloadUrlOptions, type context$1_GenerateFileDownloadUrlRequest as GenerateFileDownloadUrlRequest, type context$1_GenerateFileDownloadUrlResponse as GenerateFileDownloadUrlResponse, type context$1_GenerateFileDownloadUrlResponseNonNullableFields as GenerateFileDownloadUrlResponseNonNullableFields, type context$1_GenerateFileResumableUploadUrlOptions as GenerateFileResumableUploadUrlOptions, type context$1_GenerateFileResumableUploadUrlRequest as GenerateFileResumableUploadUrlRequest, type context$1_GenerateFileResumableUploadUrlResponse as GenerateFileResumableUploadUrlResponse, type context$1_GenerateFileResumableUploadUrlResponseNonNullableFields as GenerateFileResumableUploadUrlResponseNonNullableFields, type context$1_GenerateFileUploadUrlOptions as GenerateFileUploadUrlOptions, type context$1_GenerateFileUploadUrlRequest as GenerateFileUploadUrlRequest, type context$1_GenerateFileUploadUrlResponse as GenerateFileUploadUrlResponse, type context$1_GenerateFileUploadUrlResponseNonNullableFields as GenerateFileUploadUrlResponseNonNullableFields, type context$1_GenerateFilesDownloadUrlRequest as GenerateFilesDownloadUrlRequest, type context$1_GenerateFilesDownloadUrlResponse as GenerateFilesDownloadUrlResponse, type context$1_GenerateFilesDownloadUrlResponseNonNullableFields as GenerateFilesDownloadUrlResponseNonNullableFields, type context$1_GenerateVideoStreamingUrlOptions as GenerateVideoStreamingUrlOptions, type context$1_GenerateVideoStreamingUrlRequest as GenerateVideoStreamingUrlRequest, type context$1_GenerateVideoStreamingUrlResponse as GenerateVideoStreamingUrlResponse, type context$1_GenerateVideoStreamingUrlResponseNonNullableFields as GenerateVideoStreamingUrlResponseNonNullableFields, type context$1_GenerateWebSocketTokenRequest as GenerateWebSocketTokenRequest, type context$1_GenerateWebSocketTokenResponse as GenerateWebSocketTokenResponse, type context$1_GetFileDescriptorRequest as GetFileDescriptorRequest, type context$1_GetFileDescriptorResponse as GetFileDescriptorResponse, type context$1_GetFileDescriptorResponseNonNullableFields as GetFileDescriptorResponseNonNullableFields, type context$1_GetFileDescriptorsRequest as GetFileDescriptorsRequest, type context$1_GetFileDescriptorsResponse as GetFileDescriptorsResponse, type context$1_GetFileDescriptorsResponseNonNullableFields as GetFileDescriptorsResponseNonNullableFields, type IdentificationData$1 as IdentificationData, type IdentificationDataIdOneOf$1 as IdentificationDataIdOneOf, type context$1_IdentityInfo as IdentityInfo, context$1_IdentityType as IdentityType, type context$1_ImageMedia as ImageMedia, type context$1_ImportFileOptions as ImportFileOptions, type context$1_ImportFileRequest as ImportFileRequest, type context$1_ImportFileResponse as ImportFileResponse, type context$1_ImportFileResponseNonNullableFields as ImportFileResponseNonNullableFields, type context$1_ItemMetadata as ItemMetadata, type context$1_ListDeletedFilesOptions as ListDeletedFilesOptions, type context$1_ListDeletedFilesRequest as ListDeletedFilesRequest, type context$1_ListDeletedFilesResponse as ListDeletedFilesResponse, type context$1_ListDeletedFilesResponseNonNullableFields as ListDeletedFilesResponseNonNullableFields, type context$1_ListFilesOptions as ListFilesOptions, type context$1_ListFilesRequest as ListFilesRequest, type context$1_ListFilesResponse as ListFilesResponse, type context$1_ListFilesResponseNonNullableFields as ListFilesResponseNonNullableFields, context$1_MediaType as MediaType, type MessageEnvelope$1 as MessageEnvelope, type context$1_Model3D as Model3D, Namespace$1 as Namespace, context$1_OperationStatus as OperationStatus, type context$1_OtherMedia as OtherMedia, type PagingMetadataV2$1 as PagingMetadataV2, type RestoreInfo$1 as RestoreInfo, RootFolder$1 as RootFolder, type context$1_SearchFilesOptions as SearchFilesOptions, type context$1_SearchFilesRequest as SearchFilesRequest, type context$1_SearchFilesResponse as SearchFilesResponse, type context$1_SearchFilesResponseNonNullableFields as SearchFilesResponseNonNullableFields, SortOrder$1 as SortOrder, type Sorting$1 as Sorting, State$1 as State, context$1_StreamFormat as StreamFormat, type context$1_UpdateFileDescriptorRequest as UpdateFileDescriptorRequest, type context$1_UpdateFileDescriptorResponse as UpdateFileDescriptorResponse, type context$1_UpdateFileDescriptorResponseNonNullableFields as UpdateFileDescriptorResponseNonNullableFields, type context$1_UpdateFileRequest as UpdateFileRequest, type context$1_UpdateFileResponse as UpdateFileResponse, context$1_UploadProtocol as UploadProtocol, type context$1_VideoResolution as VideoResolution, WebhookIdentityType$1 as WebhookIdentityType, context$1_bulkDeleteFiles as bulkDeleteFiles, context$1_bulkImportFile as bulkImportFile, context$1_bulkImportFiles as bulkImportFiles, context$1_bulkRestoreFilesFromTrashBin as bulkRestoreFilesFromTrashBin, context$1_generateFileDownloadUrl as generateFileDownloadUrl, context$1_generateFileResumableUploadUrl as generateFileResumableUploadUrl, context$1_generateFileUploadUrl as generateFileUploadUrl, context$1_generateFilesDownloadUrl as generateFilesDownloadUrl, context$1_generateVideoStreamingUrl as generateVideoStreamingUrl, context$1_getFileDescriptor as getFileDescriptor, context$1_getFileDescriptors as getFileDescriptors, context$1_importFile as importFile, context$1_listDeletedFiles as listDeletedFiles, context$1_listFiles as listFiles, context$1_onFileDescriptorDeleted as onFileDescriptorDeleted, context$1_onFileDescriptorFileFailed as onFileDescriptorFileFailed, context$1_onFileDescriptorFileReady as onFileDescriptorFileReady, context$1_onFileDescriptorUpdated as onFileDescriptorUpdated, context$1_searchFiles as searchFiles, context$1_updateFileDescriptor as updateFileDescriptor };
|
|
2884
|
+
}
|
|
2885
|
+
|
|
2886
|
+
interface Folder {
|
|
2887
|
+
/** Folder ID. Generated when a folder is created in the Media Manager. */
|
|
2888
|
+
_id?: string;
|
|
2889
|
+
/** Folder name as it appears in the Media Manager. */
|
|
2890
|
+
displayName?: string;
|
|
2891
|
+
/** ID of the folder's parent folder. <br /> Default: `media-root` folder. */
|
|
2892
|
+
parentFolderId?: string;
|
|
2893
|
+
/**
|
|
2894
|
+
* Date the folder was created.
|
|
2895
|
+
* @readonly
|
|
2896
|
+
*/
|
|
2897
|
+
_createdDate?: Date;
|
|
2898
|
+
/**
|
|
2899
|
+
* Date the folder was updated.
|
|
2900
|
+
* @readonly
|
|
2901
|
+
*/
|
|
2902
|
+
_updatedDate?: Date;
|
|
2903
|
+
/**
|
|
2904
|
+
* State of the folder.
|
|
2905
|
+
* @readonly
|
|
2906
|
+
*/
|
|
2907
|
+
state?: State;
|
|
2908
|
+
}
|
|
2909
|
+
declare enum State {
|
|
2910
|
+
OK = "OK",
|
|
2911
|
+
DELETED = "DELETED"
|
|
2912
|
+
}
|
|
2913
|
+
declare enum Namespace {
|
|
2914
|
+
NO_NAMESPACE = "NO_NAMESPACE",
|
|
2915
|
+
OTHERS = "OTHERS",
|
|
2916
|
+
/** ANY = 2; */
|
|
2917
|
+
WIX_VIDEO = "WIX_VIDEO",
|
|
2918
|
+
/** _nsWixMusic */
|
|
2919
|
+
WIX_MUSIC = "WIX_MUSIC",
|
|
2920
|
+
/** _nsArtStore */
|
|
2921
|
+
ALBUMS_AND_ART_STORE = "ALBUMS_AND_ART_STORE",
|
|
2922
|
+
/** _nsDigitalProduct */
|
|
2923
|
+
WIX_ECOM = "WIX_ECOM",
|
|
2924
|
+
/** _nsPhotoShareApp */
|
|
2925
|
+
PHOTO_SHARE_APP = "PHOTO_SHARE_APP",
|
|
2926
|
+
/** _nsSharingApp, */
|
|
2927
|
+
SHARING_APP = "SHARING_APP",
|
|
2928
|
+
/** engage */
|
|
2929
|
+
CHAT = "CHAT",
|
|
2930
|
+
/** logobuilder */
|
|
2931
|
+
LOGO_BUILDER = "LOGO_BUILDER",
|
|
2932
|
+
/** WixExposure */
|
|
2933
|
+
ALBUMS_OLD = "ALBUMS_OLD",
|
|
2934
|
+
/** chat-mobile-uploads */
|
|
2935
|
+
CHAT_MOBILE = "CHAT_MOBILE",
|
|
2936
|
+
/** _nsWixForms */
|
|
2937
|
+
WIX_FORMS = "WIX_FORMS"
|
|
2938
|
+
}
|
|
2939
|
+
interface CreateFolderRequest {
|
|
2940
|
+
/** Folder name that appears in the Media Manager. */
|
|
2941
|
+
displayName: string;
|
|
2942
|
+
/** ID of the folder's parent folder. */
|
|
2943
|
+
parentFolderId?: string | null;
|
|
2944
|
+
}
|
|
2945
|
+
interface CreateFolderResponse {
|
|
2946
|
+
/** Information about the newly created folder. */
|
|
2947
|
+
folder?: Folder;
|
|
2948
|
+
}
|
|
2949
|
+
interface GetFolderRequest {
|
|
2950
|
+
/** Folder ID. */
|
|
2951
|
+
folderId: string;
|
|
2952
|
+
}
|
|
2953
|
+
interface GetFolderResponse {
|
|
2954
|
+
/** Information about the folder. */
|
|
2955
|
+
folder?: Folder;
|
|
2956
|
+
}
|
|
2957
|
+
interface ListFoldersRequest {
|
|
2958
|
+
/**
|
|
2959
|
+
* ID of the folder's parent folder.
|
|
2960
|
+
* <br /> Default: `media-root` folder.
|
|
2961
|
+
*/
|
|
2962
|
+
parentFolderId?: string | null;
|
|
2963
|
+
/**
|
|
2964
|
+
* Field name and order to sort by. One of:
|
|
2965
|
+
* - `displayName`
|
|
2966
|
+
* - `_updatedDate`
|
|
2967
|
+
* Default: `_updatedDate` in `"DESC"` order.
|
|
2968
|
+
*/
|
|
2969
|
+
sort?: Sorting;
|
|
2970
|
+
/** Cursor and paging information. */
|
|
2971
|
+
paging?: CursorPaging;
|
|
2972
|
+
}
|
|
2973
|
+
interface Sorting {
|
|
2974
|
+
/** Name of the field to sort by. */
|
|
2975
|
+
fieldName?: string;
|
|
2976
|
+
/** Sort order. */
|
|
2977
|
+
order?: SortOrder;
|
|
2978
|
+
}
|
|
2979
|
+
declare enum SortOrder {
|
|
2980
|
+
ASC = "ASC",
|
|
2981
|
+
DESC = "DESC"
|
|
2982
|
+
}
|
|
2983
|
+
interface CursorPaging {
|
|
2984
|
+
/** Maximum number of items to return in the results. */
|
|
2985
|
+
limit?: number | null;
|
|
2986
|
+
/**
|
|
2987
|
+
* Pointer to the next or previous page in the list of results.
|
|
2988
|
+
*
|
|
2989
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
2990
|
+
* Not relevant for the first request.
|
|
2991
|
+
*/
|
|
2992
|
+
cursor?: string | null;
|
|
2993
|
+
}
|
|
2994
|
+
interface ListFoldersResponse {
|
|
2995
|
+
/** Information about the folders in the requested folder. */
|
|
2996
|
+
folders?: Folder[];
|
|
2997
|
+
/** The next cursor if it exists. */
|
|
2998
|
+
nextCursor?: PagingMetadataV2;
|
|
2999
|
+
}
|
|
3000
|
+
interface PagingMetadataV2 {
|
|
3001
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
3002
|
+
total?: number | null;
|
|
3003
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
3004
|
+
cursors?: Cursors;
|
|
3005
|
+
}
|
|
3006
|
+
interface Cursors {
|
|
3007
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
3008
|
+
next?: string | null;
|
|
3009
|
+
}
|
|
3010
|
+
interface SearchFoldersRequest {
|
|
3011
|
+
/**
|
|
3012
|
+
* A root folder in the media manager to search in. <br />
|
|
3013
|
+
* Default: `MEDIA_ROOT`.
|
|
3014
|
+
*/
|
|
3015
|
+
rootFolder?: RootFolder;
|
|
3016
|
+
/**
|
|
3017
|
+
* Field name and order to sort by. One of:
|
|
3018
|
+
* - `displayName`
|
|
3019
|
+
* - `_updatedDate`
|
|
3020
|
+
*
|
|
3021
|
+
* Default: `_updatedDate` in `"DESC"` order.
|
|
3022
|
+
*/
|
|
3023
|
+
sort?: Sorting;
|
|
3024
|
+
/** Cursor and paging information. */
|
|
3025
|
+
paging?: CursorPaging;
|
|
3026
|
+
/**
|
|
3027
|
+
* Term to search for, such as the value of a folder's `displayName`. <br />
|
|
3028
|
+
* For example, if a folder's `displayName` is 'my-videos-folder', the search term is 'my-videos-folder'.
|
|
3029
|
+
*/
|
|
3030
|
+
search?: string | null;
|
|
3031
|
+
}
|
|
3032
|
+
declare enum RootFolder {
|
|
3033
|
+
/** Root of all site media */
|
|
3034
|
+
MEDIA_ROOT = "MEDIA_ROOT",
|
|
3035
|
+
/** Root of the trash system folder */
|
|
3036
|
+
TRASH_ROOT = "TRASH_ROOT",
|
|
3037
|
+
/** Root of all visitor uploads */
|
|
3038
|
+
VISITOR_UPLOADS_ROOT = "VISITOR_UPLOADS_ROOT"
|
|
3039
|
+
}
|
|
3040
|
+
interface SearchFoldersResponse {
|
|
3041
|
+
/** Information about the folders in the requested folder. */
|
|
3042
|
+
folders?: Folder[];
|
|
3043
|
+
/** The next cursor if it exists. */
|
|
3044
|
+
nextCursor?: PagingMetadataV2;
|
|
3045
|
+
}
|
|
3046
|
+
interface UpdateFolderRequest {
|
|
3047
|
+
/** The folder to update. */
|
|
3048
|
+
folder: Folder;
|
|
3049
|
+
}
|
|
3050
|
+
interface UpdateFolderResponse {
|
|
3051
|
+
/** Information about the updated folder. */
|
|
3052
|
+
folder?: Folder;
|
|
3053
|
+
}
|
|
3054
|
+
interface GenerateFolderDownloadUrlRequest {
|
|
3055
|
+
/** Folder ID. */
|
|
3056
|
+
folderId: string;
|
|
3057
|
+
}
|
|
3058
|
+
interface GenerateFolderDownloadUrlResponse {
|
|
3059
|
+
/** URL for downloading a specific folder in the Media Manager. */
|
|
3060
|
+
downloadUrl?: string;
|
|
3061
|
+
}
|
|
3062
|
+
interface BulkDeleteFoldersRequest {
|
|
3063
|
+
/** IDs of the folders to move to the Media Manager's trash bin. */
|
|
3064
|
+
folderIds: string[];
|
|
3065
|
+
/**
|
|
3066
|
+
* Whether the specified folders are permanently deleted. <br />
|
|
3067
|
+
* Default: `false`
|
|
3068
|
+
*/
|
|
3069
|
+
permanent?: boolean;
|
|
3070
|
+
}
|
|
3071
|
+
interface BulkDeleteFoldersResponse {
|
|
3072
|
+
}
|
|
3073
|
+
interface BulkRestoreFoldersFromTrashBinRequest {
|
|
3074
|
+
/** IDs of the folders to restore from the Media Manager's trash bin. */
|
|
3075
|
+
folderIds: string[];
|
|
3076
|
+
}
|
|
3077
|
+
interface BulkRestoreFoldersFromTrashBinResponse {
|
|
3078
|
+
}
|
|
3079
|
+
interface ListDeletedFoldersRequest {
|
|
3080
|
+
/** ID of the folder's parent folder. */
|
|
3081
|
+
parentFolderId?: string | null;
|
|
3082
|
+
/**
|
|
3083
|
+
* Field name and order to sort by. One of:
|
|
3084
|
+
* - `displayName`
|
|
3085
|
+
* - `_updatedDate`
|
|
3086
|
+
*
|
|
3087
|
+
* Default: `_updatedDate` in `"DESC"` order.
|
|
3088
|
+
*/
|
|
3089
|
+
sort?: Sorting;
|
|
3090
|
+
/** Cursor and paging information. */
|
|
3091
|
+
paging?: CursorPaging;
|
|
3092
|
+
}
|
|
3093
|
+
interface ListDeletedFoldersResponse {
|
|
3094
|
+
/** List of folders in the Media Manager's trash bin. */
|
|
3095
|
+
folders?: Folder[];
|
|
3096
|
+
/** The next cursor if it exists. */
|
|
3097
|
+
nextCursor?: PagingMetadataV2;
|
|
3098
|
+
}
|
|
3099
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
3100
|
+
createdEvent?: EntityCreatedEvent;
|
|
3101
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
3102
|
+
deletedEvent?: EntityDeletedEvent;
|
|
3103
|
+
actionEvent?: ActionEvent;
|
|
3104
|
+
/**
|
|
3105
|
+
* Unique event ID.
|
|
3106
|
+
* Allows clients to ignore duplicate webhooks.
|
|
3107
|
+
*/
|
|
3108
|
+
_id?: string;
|
|
3109
|
+
/**
|
|
3110
|
+
* Assumes actions are also always typed to an entity_type
|
|
3111
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
3112
|
+
*/
|
|
3113
|
+
entityFqdn?: string;
|
|
3114
|
+
/**
|
|
3115
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
3116
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
3117
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
3118
|
+
*/
|
|
3119
|
+
slug?: string;
|
|
3120
|
+
/** ID of the entity associated with the event. */
|
|
3121
|
+
entityId?: string;
|
|
3122
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
3123
|
+
eventTime?: Date;
|
|
3124
|
+
/**
|
|
3125
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
3126
|
+
* (for example, GDPR).
|
|
3127
|
+
*/
|
|
3128
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
3129
|
+
/** If present, indicates the action that triggered the event. */
|
|
3130
|
+
originatedFrom?: string | null;
|
|
3131
|
+
/**
|
|
3132
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
3133
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
3134
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
3135
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
3136
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
3137
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
3138
|
+
*/
|
|
3139
|
+
entityEventSequence?: string | null;
|
|
3140
|
+
}
|
|
3141
|
+
/** @oneof */
|
|
3142
|
+
interface DomainEventBodyOneOf {
|
|
3143
|
+
createdEvent?: EntityCreatedEvent;
|
|
3144
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
3145
|
+
deletedEvent?: EntityDeletedEvent;
|
|
3146
|
+
actionEvent?: ActionEvent;
|
|
3147
|
+
}
|
|
3148
|
+
interface EntityCreatedEvent {
|
|
3149
|
+
entity?: string;
|
|
3150
|
+
}
|
|
3151
|
+
interface RestoreInfo {
|
|
3152
|
+
deletedDate?: Date;
|
|
3153
|
+
}
|
|
3154
|
+
interface EntityUpdatedEvent {
|
|
3155
|
+
/**
|
|
3156
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
3157
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
3158
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
3159
|
+
*/
|
|
3160
|
+
currentEntity?: string;
|
|
3161
|
+
}
|
|
3162
|
+
interface EntityDeletedEvent {
|
|
3163
|
+
/** Entity that was deleted */
|
|
3164
|
+
deletedEntity?: string | null;
|
|
3165
|
+
}
|
|
3166
|
+
interface ActionEvent {
|
|
3167
|
+
body?: string;
|
|
3168
|
+
}
|
|
3169
|
+
interface MessageEnvelope {
|
|
3170
|
+
/** App instance ID. */
|
|
3171
|
+
instanceId?: string | null;
|
|
3172
|
+
/** Event type. */
|
|
3173
|
+
eventType?: string;
|
|
3174
|
+
/** The identification type and identity data. */
|
|
3175
|
+
identity?: IdentificationData;
|
|
3176
|
+
/** Stringify payload. */
|
|
3177
|
+
data?: string;
|
|
3178
|
+
}
|
|
3179
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
3180
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
3181
|
+
anonymousVisitorId?: string;
|
|
3182
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
3183
|
+
memberId?: string;
|
|
3184
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
3185
|
+
wixUserId?: string;
|
|
3186
|
+
/** ID of an app. */
|
|
3187
|
+
appId?: string;
|
|
3188
|
+
/** @readonly */
|
|
3189
|
+
identityType?: WebhookIdentityType;
|
|
3190
|
+
}
|
|
3191
|
+
/** @oneof */
|
|
3192
|
+
interface IdentificationDataIdOneOf {
|
|
3193
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
3194
|
+
anonymousVisitorId?: string;
|
|
3195
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
3196
|
+
memberId?: string;
|
|
3197
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
3198
|
+
wixUserId?: string;
|
|
3199
|
+
/** ID of an app. */
|
|
3200
|
+
appId?: string;
|
|
3201
|
+
}
|
|
3202
|
+
declare enum WebhookIdentityType {
|
|
3203
|
+
UNKNOWN = "UNKNOWN",
|
|
3204
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
3205
|
+
MEMBER = "MEMBER",
|
|
3206
|
+
WIX_USER = "WIX_USER",
|
|
3207
|
+
APP = "APP"
|
|
3208
|
+
}
|
|
3209
|
+
interface FolderNonNullableFields {
|
|
3210
|
+
_id: string;
|
|
3211
|
+
displayName: string;
|
|
3212
|
+
parentFolderId: string;
|
|
3213
|
+
state: State;
|
|
3214
|
+
namespace: Namespace;
|
|
3215
|
+
}
|
|
3216
|
+
interface CreateFolderResponseNonNullableFields {
|
|
3217
|
+
folder?: FolderNonNullableFields;
|
|
3218
|
+
}
|
|
3219
|
+
interface GetFolderResponseNonNullableFields {
|
|
3220
|
+
folder?: FolderNonNullableFields;
|
|
3221
|
+
}
|
|
3222
|
+
interface ListFoldersResponseNonNullableFields {
|
|
3223
|
+
folders: FolderNonNullableFields[];
|
|
3224
|
+
}
|
|
3225
|
+
interface SearchFoldersResponseNonNullableFields {
|
|
3226
|
+
folders: FolderNonNullableFields[];
|
|
3227
|
+
}
|
|
3228
|
+
interface UpdateFolderResponseNonNullableFields {
|
|
3229
|
+
folder?: FolderNonNullableFields;
|
|
3230
|
+
}
|
|
3231
|
+
interface GenerateFolderDownloadUrlResponseNonNullableFields {
|
|
3232
|
+
downloadUrl: string;
|
|
3233
|
+
}
|
|
3234
|
+
interface ListDeletedFoldersResponseNonNullableFields {
|
|
3235
|
+
folders: FolderNonNullableFields[];
|
|
3236
|
+
}
|
|
3237
|
+
interface BaseEventMetadata {
|
|
3238
|
+
/** App instance ID. */
|
|
3239
|
+
instanceId?: string | null;
|
|
3240
|
+
/** Event type. */
|
|
3241
|
+
eventType?: string;
|
|
3242
|
+
/** The identification type and identity data. */
|
|
3243
|
+
identity?: IdentificationData;
|
|
3244
|
+
}
|
|
3245
|
+
interface EventMetadata extends BaseEventMetadata {
|
|
3246
|
+
/**
|
|
3247
|
+
* Unique event ID.
|
|
3248
|
+
* Allows clients to ignore duplicate webhooks.
|
|
3249
|
+
*/
|
|
3250
|
+
_id?: string;
|
|
3251
|
+
/**
|
|
3252
|
+
* Assumes actions are also always typed to an entity_type
|
|
3253
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
3254
|
+
*/
|
|
3255
|
+
entityFqdn?: string;
|
|
3256
|
+
/**
|
|
3257
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
3258
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
3259
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
3260
|
+
*/
|
|
3261
|
+
slug?: string;
|
|
3262
|
+
/** ID of the entity associated with the event. */
|
|
3263
|
+
entityId?: string;
|
|
3264
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
3265
|
+
eventTime?: Date;
|
|
3266
|
+
/**
|
|
3267
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
3268
|
+
* (for example, GDPR).
|
|
3269
|
+
*/
|
|
3270
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
3271
|
+
/** If present, indicates the action that triggered the event. */
|
|
3272
|
+
originatedFrom?: string | null;
|
|
3273
|
+
/**
|
|
3274
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
3275
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
3276
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
3277
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
3278
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
3279
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
3280
|
+
*/
|
|
3281
|
+
entityEventSequence?: string | null;
|
|
3282
|
+
}
|
|
3283
|
+
interface FolderCreatedEnvelope {
|
|
3284
|
+
entity: Folder;
|
|
3285
|
+
metadata: EventMetadata;
|
|
3286
|
+
}
|
|
3287
|
+
interface FolderUpdatedEnvelope {
|
|
3288
|
+
entity: Folder;
|
|
3289
|
+
metadata: EventMetadata;
|
|
3290
|
+
}
|
|
3291
|
+
interface FolderDeletedEnvelope {
|
|
3292
|
+
metadata: EventMetadata;
|
|
3293
|
+
}
|
|
3294
|
+
interface CreateFolderOptions {
|
|
3295
|
+
/** ID of the folder's parent folder. */
|
|
3296
|
+
parentFolderId?: string | null;
|
|
3297
|
+
}
|
|
3298
|
+
interface ListFoldersOptions {
|
|
3299
|
+
/**
|
|
3300
|
+
* ID of the folder's parent folder.
|
|
3301
|
+
* <br /> Default: `media-root` folder.
|
|
3302
|
+
*/
|
|
3303
|
+
parentFolderId?: string | null;
|
|
3304
|
+
/**
|
|
3305
|
+
* Field name and order to sort by. One of:
|
|
3306
|
+
* - `displayName`
|
|
3307
|
+
* - `_updatedDate`
|
|
3308
|
+
*
|
|
3309
|
+
* Default: `_updatedDate` in `"DESC"` order.
|
|
3310
|
+
*/
|
|
3311
|
+
sort?: Sorting;
|
|
3312
|
+
/** Cursor and paging information. */
|
|
3313
|
+
paging?: CursorPaging;
|
|
3314
|
+
}
|
|
3315
|
+
interface SearchFoldersOptions {
|
|
3316
|
+
/**
|
|
3317
|
+
* A root folder in the media manager to search in. <br />
|
|
3318
|
+
* Default: `MEDIA_ROOT`.
|
|
3319
|
+
*/
|
|
3320
|
+
rootFolder?: RootFolder;
|
|
3321
|
+
/**
|
|
3322
|
+
* Field name and order to sort by. One of:
|
|
3323
|
+
* - `displayName`
|
|
3324
|
+
* - `_updatedDate`
|
|
3325
|
+
*
|
|
3326
|
+
* Default: `_updatedDate` in `"DESC"` order.
|
|
3327
|
+
*/
|
|
3328
|
+
sort?: Sorting;
|
|
3329
|
+
/** Cursor and paging information. */
|
|
3330
|
+
paging?: CursorPaging;
|
|
3331
|
+
/**
|
|
3332
|
+
* Term to search for, such as the value of a folder's `displayName`.
|
|
3333
|
+
*
|
|
3334
|
+
* For example, if a folder's `displayName` is 'my-videos-folder', the search term is `'my-videos-folder'`.
|
|
3335
|
+
*/
|
|
3336
|
+
search?: string | null;
|
|
3337
|
+
}
|
|
3338
|
+
interface UpdateFolder {
|
|
3339
|
+
/** Folder ID. Generated when a folder is created in the Media Manager. */
|
|
3340
|
+
_id?: string;
|
|
3341
|
+
/** Folder name as it appears in the Media Manager. */
|
|
3342
|
+
displayName?: string;
|
|
3343
|
+
/** ID of the folder's parent folder. <br /> Default: `media-root` folder. */
|
|
3344
|
+
parentFolderId?: string;
|
|
3345
|
+
/**
|
|
3346
|
+
* Date the folder was created.
|
|
3347
|
+
* @readonly
|
|
3348
|
+
*/
|
|
3349
|
+
_createdDate?: Date;
|
|
3350
|
+
/**
|
|
3351
|
+
* Date the folder was updated.
|
|
3352
|
+
* @readonly
|
|
3353
|
+
*/
|
|
3354
|
+
_updatedDate?: Date;
|
|
3355
|
+
/**
|
|
3356
|
+
* State of the folder.
|
|
3357
|
+
* @readonly
|
|
3358
|
+
*/
|
|
3359
|
+
state?: State;
|
|
3360
|
+
}
|
|
3361
|
+
interface BulkDeleteFoldersOptions {
|
|
3362
|
+
/**
|
|
3363
|
+
* Whether the specified folders are permanently deleted. <br />
|
|
3364
|
+
* Default: `false`
|
|
3365
|
+
*/
|
|
3366
|
+
permanent?: boolean;
|
|
3367
|
+
}
|
|
3368
|
+
interface ListDeletedFoldersOptions {
|
|
3369
|
+
/** ID of the folder's parent folder. */
|
|
3370
|
+
parentFolderId?: string | null;
|
|
3371
|
+
/**
|
|
3372
|
+
* Field name and order to sort by. One of:
|
|
3373
|
+
* - `displayName`
|
|
3374
|
+
* - `_updatedDate`
|
|
3375
|
+
*
|
|
3376
|
+
* Default: `_updatedDate` in `"DESC"` order.
|
|
3377
|
+
*/
|
|
3378
|
+
sort?: Sorting;
|
|
3379
|
+
/** Cursor and paging information. */
|
|
3380
|
+
paging?: CursorPaging;
|
|
156
3381
|
}
|
|
157
3382
|
|
|
158
3383
|
declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
|
|
@@ -172,6 +3397,68 @@ declare const onFolderCreated: ReturnType<typeof createEventModule<typeof public
|
|
|
172
3397
|
declare const onFolderUpdated: ReturnType<typeof createEventModule<typeof publicOnFolderUpdated>>;
|
|
173
3398
|
declare const onFolderDeleted: ReturnType<typeof createEventModule<typeof publicOnFolderDeleted>>;
|
|
174
3399
|
|
|
3400
|
+
type context_ActionEvent = ActionEvent;
|
|
3401
|
+
type context_BaseEventMetadata = BaseEventMetadata;
|
|
3402
|
+
type context_BulkDeleteFoldersOptions = BulkDeleteFoldersOptions;
|
|
3403
|
+
type context_BulkDeleteFoldersRequest = BulkDeleteFoldersRequest;
|
|
3404
|
+
type context_BulkDeleteFoldersResponse = BulkDeleteFoldersResponse;
|
|
3405
|
+
type context_BulkRestoreFoldersFromTrashBinRequest = BulkRestoreFoldersFromTrashBinRequest;
|
|
3406
|
+
type context_BulkRestoreFoldersFromTrashBinResponse = BulkRestoreFoldersFromTrashBinResponse;
|
|
3407
|
+
type context_CreateFolderOptions = CreateFolderOptions;
|
|
3408
|
+
type context_CreateFolderRequest = CreateFolderRequest;
|
|
3409
|
+
type context_CreateFolderResponse = CreateFolderResponse;
|
|
3410
|
+
type context_CreateFolderResponseNonNullableFields = CreateFolderResponseNonNullableFields;
|
|
3411
|
+
type context_CursorPaging = CursorPaging;
|
|
3412
|
+
type context_Cursors = Cursors;
|
|
3413
|
+
type context_DomainEvent = DomainEvent;
|
|
3414
|
+
type context_DomainEventBodyOneOf = DomainEventBodyOneOf;
|
|
3415
|
+
type context_EntityCreatedEvent = EntityCreatedEvent;
|
|
3416
|
+
type context_EntityDeletedEvent = EntityDeletedEvent;
|
|
3417
|
+
type context_EntityUpdatedEvent = EntityUpdatedEvent;
|
|
3418
|
+
type context_EventMetadata = EventMetadata;
|
|
3419
|
+
type context_Folder = Folder;
|
|
3420
|
+
type context_FolderCreatedEnvelope = FolderCreatedEnvelope;
|
|
3421
|
+
type context_FolderDeletedEnvelope = FolderDeletedEnvelope;
|
|
3422
|
+
type context_FolderNonNullableFields = FolderNonNullableFields;
|
|
3423
|
+
type context_FolderUpdatedEnvelope = FolderUpdatedEnvelope;
|
|
3424
|
+
type context_GenerateFolderDownloadUrlRequest = GenerateFolderDownloadUrlRequest;
|
|
3425
|
+
type context_GenerateFolderDownloadUrlResponse = GenerateFolderDownloadUrlResponse;
|
|
3426
|
+
type context_GenerateFolderDownloadUrlResponseNonNullableFields = GenerateFolderDownloadUrlResponseNonNullableFields;
|
|
3427
|
+
type context_GetFolderRequest = GetFolderRequest;
|
|
3428
|
+
type context_GetFolderResponse = GetFolderResponse;
|
|
3429
|
+
type context_GetFolderResponseNonNullableFields = GetFolderResponseNonNullableFields;
|
|
3430
|
+
type context_IdentificationData = IdentificationData;
|
|
3431
|
+
type context_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
|
|
3432
|
+
type context_ListDeletedFoldersOptions = ListDeletedFoldersOptions;
|
|
3433
|
+
type context_ListDeletedFoldersRequest = ListDeletedFoldersRequest;
|
|
3434
|
+
type context_ListDeletedFoldersResponse = ListDeletedFoldersResponse;
|
|
3435
|
+
type context_ListDeletedFoldersResponseNonNullableFields = ListDeletedFoldersResponseNonNullableFields;
|
|
3436
|
+
type context_ListFoldersOptions = ListFoldersOptions;
|
|
3437
|
+
type context_ListFoldersRequest = ListFoldersRequest;
|
|
3438
|
+
type context_ListFoldersResponse = ListFoldersResponse;
|
|
3439
|
+
type context_ListFoldersResponseNonNullableFields = ListFoldersResponseNonNullableFields;
|
|
3440
|
+
type context_MessageEnvelope = MessageEnvelope;
|
|
3441
|
+
type context_Namespace = Namespace;
|
|
3442
|
+
declare const context_Namespace: typeof Namespace;
|
|
3443
|
+
type context_PagingMetadataV2 = PagingMetadataV2;
|
|
3444
|
+
type context_RestoreInfo = RestoreInfo;
|
|
3445
|
+
type context_RootFolder = RootFolder;
|
|
3446
|
+
declare const context_RootFolder: typeof RootFolder;
|
|
3447
|
+
type context_SearchFoldersOptions = SearchFoldersOptions;
|
|
3448
|
+
type context_SearchFoldersRequest = SearchFoldersRequest;
|
|
3449
|
+
type context_SearchFoldersResponse = SearchFoldersResponse;
|
|
3450
|
+
type context_SearchFoldersResponseNonNullableFields = SearchFoldersResponseNonNullableFields;
|
|
3451
|
+
type context_SortOrder = SortOrder;
|
|
3452
|
+
declare const context_SortOrder: typeof SortOrder;
|
|
3453
|
+
type context_Sorting = Sorting;
|
|
3454
|
+
type context_State = State;
|
|
3455
|
+
declare const context_State: typeof State;
|
|
3456
|
+
type context_UpdateFolder = UpdateFolder;
|
|
3457
|
+
type context_UpdateFolderRequest = UpdateFolderRequest;
|
|
3458
|
+
type context_UpdateFolderResponse = UpdateFolderResponse;
|
|
3459
|
+
type context_UpdateFolderResponseNonNullableFields = UpdateFolderResponseNonNullableFields;
|
|
3460
|
+
type context_WebhookIdentityType = WebhookIdentityType;
|
|
3461
|
+
declare const context_WebhookIdentityType: typeof WebhookIdentityType;
|
|
175
3462
|
declare const context_bulkDeleteFolders: typeof bulkDeleteFolders;
|
|
176
3463
|
declare const context_bulkRestoreFoldersFromTrashBin: typeof bulkRestoreFoldersFromTrashBin;
|
|
177
3464
|
declare const context_createFolder: typeof createFolder;
|
|
@@ -185,7 +3472,7 @@ declare const context_onFolderUpdated: typeof onFolderUpdated;
|
|
|
185
3472
|
declare const context_searchFolders: typeof searchFolders;
|
|
186
3473
|
declare const context_updateFolder: typeof updateFolder;
|
|
187
3474
|
declare namespace context {
|
|
188
|
-
export { context_bulkDeleteFolders as bulkDeleteFolders, context_bulkRestoreFoldersFromTrashBin as bulkRestoreFoldersFromTrashBin, context_createFolder as createFolder, context_generateFolderDownloadUrl as generateFolderDownloadUrl, context_getFolder as getFolder, context_listDeletedFolders as listDeletedFolders, context_listFolders as listFolders, context_onFolderCreated as onFolderCreated, context_onFolderDeleted as onFolderDeleted, context_onFolderUpdated as onFolderUpdated, context_searchFolders as searchFolders, context_updateFolder as updateFolder };
|
|
3475
|
+
export { type context_ActionEvent as ActionEvent, type context_BaseEventMetadata as BaseEventMetadata, type context_BulkDeleteFoldersOptions as BulkDeleteFoldersOptions, type context_BulkDeleteFoldersRequest as BulkDeleteFoldersRequest, type context_BulkDeleteFoldersResponse as BulkDeleteFoldersResponse, type context_BulkRestoreFoldersFromTrashBinRequest as BulkRestoreFoldersFromTrashBinRequest, type context_BulkRestoreFoldersFromTrashBinResponse as BulkRestoreFoldersFromTrashBinResponse, type context_CreateFolderOptions as CreateFolderOptions, type context_CreateFolderRequest as CreateFolderRequest, type context_CreateFolderResponse as CreateFolderResponse, type context_CreateFolderResponseNonNullableFields as CreateFolderResponseNonNullableFields, type context_CursorPaging as CursorPaging, type context_Cursors as Cursors, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_Folder as Folder, type context_FolderCreatedEnvelope as FolderCreatedEnvelope, type context_FolderDeletedEnvelope as FolderDeletedEnvelope, type context_FolderNonNullableFields as FolderNonNullableFields, type context_FolderUpdatedEnvelope as FolderUpdatedEnvelope, type context_GenerateFolderDownloadUrlRequest as GenerateFolderDownloadUrlRequest, type context_GenerateFolderDownloadUrlResponse as GenerateFolderDownloadUrlResponse, type context_GenerateFolderDownloadUrlResponseNonNullableFields as GenerateFolderDownloadUrlResponseNonNullableFields, type context_GetFolderRequest as GetFolderRequest, type context_GetFolderResponse as GetFolderResponse, type context_GetFolderResponseNonNullableFields as GetFolderResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_ListDeletedFoldersOptions as ListDeletedFoldersOptions, type context_ListDeletedFoldersRequest as ListDeletedFoldersRequest, type context_ListDeletedFoldersResponse as ListDeletedFoldersResponse, type context_ListDeletedFoldersResponseNonNullableFields as ListDeletedFoldersResponseNonNullableFields, type context_ListFoldersOptions as ListFoldersOptions, type context_ListFoldersRequest as ListFoldersRequest, type context_ListFoldersResponse as ListFoldersResponse, type context_ListFoldersResponseNonNullableFields as ListFoldersResponseNonNullableFields, type context_MessageEnvelope as MessageEnvelope, context_Namespace as Namespace, type context_PagingMetadataV2 as PagingMetadataV2, type context_RestoreInfo as RestoreInfo, context_RootFolder as RootFolder, type context_SearchFoldersOptions as SearchFoldersOptions, type context_SearchFoldersRequest as SearchFoldersRequest, type context_SearchFoldersResponse as SearchFoldersResponse, type context_SearchFoldersResponseNonNullableFields as SearchFoldersResponseNonNullableFields, context_SortOrder as SortOrder, type context_Sorting as Sorting, context_State as State, type context_UpdateFolder as UpdateFolder, type context_UpdateFolderRequest as UpdateFolderRequest, type context_UpdateFolderResponse as UpdateFolderResponse, type context_UpdateFolderResponseNonNullableFields as UpdateFolderResponseNonNullableFields, context_WebhookIdentityType as WebhookIdentityType, context_bulkDeleteFolders as bulkDeleteFolders, context_bulkRestoreFoldersFromTrashBin as bulkRestoreFoldersFromTrashBin, context_createFolder as createFolder, context_generateFolderDownloadUrl as generateFolderDownloadUrl, context_getFolder as getFolder, context_listDeletedFolders as listDeletedFolders, context_listFolders as listFolders, context_onFolderCreated as onFolderCreated, context_onFolderDeleted as onFolderDeleted, context_onFolderUpdated as onFolderUpdated, context_searchFolders as searchFolders, context_updateFolder as updateFolder };
|
|
189
3476
|
}
|
|
190
3477
|
|
|
191
3478
|
export { context$3 as enterpriseMediaCategories, context$2 as enterpriseMediaItems, context$1 as files, context as folders };
|