@wix/auto_sdk_papyrus_documents 1.0.6 → 1.0.7

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.
@@ -267,351 +267,235 @@ interface DebugOptions {
267
267
  */
268
268
  staticsVersionOverride?: string | null;
269
269
  }
270
- interface DocumentRenderDelayed {
271
- /** Document that is being rendered. */
272
- document?: Document;
273
- }
274
- interface CreateDocumentRequest {
275
- /** Document to be created */
276
- document?: Document;
277
- }
278
- interface CreateDocumentResponse {
279
- /** The created Document */
280
- document?: Document;
281
- }
282
- interface GetDocumentRequest {
270
+ interface RenderDocumentRequest {
271
+ /** Template settings. */
272
+ templateSettings?: TemplateSettings;
273
+ /** Document content. */
274
+ content?: DocumentContent;
275
+ /** Output format, defaults to PDF. */
276
+ outputFormat?: RenderFormatWithLiterals;
283
277
  /**
284
- * ID of the Document to retrieve
285
- * @format GUID
278
+ * Overrides papyrusTemplatesStaticsUrl: "//static.parastorage.com/services/papyrus-templates-statics/${version_override}/"
279
+ * @maxLength 100
286
280
  */
287
- documentId: string;
288
- /** @maxSize 1 */
289
- fields?: RequestedFieldsWithLiterals[];
290
- }
291
- declare enum RequestedFields {
292
- /** Include `documentContent` in the response. */
293
- DOCUMENT_CONTENT = "DOCUMENT_CONTENT"
294
- }
295
- /** @enumType */
296
- type RequestedFieldsWithLiterals = RequestedFields | 'DOCUMENT_CONTENT';
297
- interface GetDocumentResponse {
298
- /** The retrieved Document */
299
- document?: Document;
281
+ versionOverride?: string | null;
282
+ /**
283
+ * Overrides static versions for the statics config.
284
+ * @maxSize 10
285
+ */
286
+ staticOverrides?: Record<string, string>;
300
287
  }
301
- interface DeleteDocumentRequest {
288
+ interface TemplateSettings {
302
289
  /**
303
- * ID of the Document to delete
290
+ * Auto generated ID.
304
291
  * @format GUID
292
+ * @readonly
305
293
  */
306
- documentId: string;
307
- }
308
- interface DeleteDocumentResponse {
309
- /** Deleted document. */
310
- document?: Document;
311
- }
312
- interface DeleteDocumentByExternalIdRequest {
294
+ _id?: string | null;
313
295
  /**
314
- * External ID of the Document to delete
296
+ * Wix app definition ID.
315
297
  * @minLength 1
316
- * @maxLength 100
298
+ * @maxLength 20
317
299
  */
318
- externalId?: string;
319
- }
320
- interface DeleteDocumentByExternalIdResponse {
321
- /** Deleted document. */
322
- document?: Document;
323
- }
324
- interface QueryDocumentRequest {
325
- /** WQL expression */
326
- query: QueryV2;
327
- /** @maxSize 1 */
328
- fields?: RequestedFieldsWithLiterals[];
329
- }
330
- interface QueryV2 extends QueryV2PagingMethodOneOf {
331
- /** Paging options to limit and offset the number of items. */
332
- paging?: Paging;
333
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
334
- cursorPaging?: CursorPaging;
300
+ appSlug?: string | null;
335
301
  /**
336
- * Filter object.
337
- *
338
- * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
302
+ * The type of the template.
303
+ * @minLength 1
304
+ * @maxLength 20
339
305
  */
340
- filter?: Record<string, any> | null;
306
+ templateType?: string | null;
341
307
  /**
342
- * Sort object.
343
- *
344
- * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
308
+ * The id of the template.
309
+ * @minLength 1
310
+ * @maxLength 20
345
311
  */
346
- sort?: Sorting[];
347
- /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
348
- fields?: string[];
349
- /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
350
- fieldsets?: string[];
351
- }
352
- /** @oneof */
353
- interface QueryV2PagingMethodOneOf {
354
- /** Paging options to limit and offset the number of items. */
355
- paging?: Paging;
356
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
357
- cursorPaging?: CursorPaging;
358
- }
359
- interface Sorting {
312
+ templateId?: string | null;
360
313
  /**
361
- * Name of the field to sort by.
362
- * @maxLength 512
314
+ * Template settings external ID. For example ticket definition ID.
315
+ * Must be unique per tenant where tenant is taken from authorization (wix_app_id + meta_site_id)
316
+ * @minLength 1
317
+ * @maxLength 100
363
318
  */
364
- fieldName?: string;
365
- /** Sort order. */
366
- order?: SortOrderWithLiterals;
319
+ externalId?: string | null;
367
320
  /**
368
- * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
369
- * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
370
- *
371
- * If multiple filters are provided, they are combined with AND operator.
372
- *
373
- * Example:
374
- * Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
375
- * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
376
- * { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
377
- * @internal
378
- * @maxSize 10
321
+ * Date settings were created.
322
+ * @readonly
379
323
  */
380
- selectItemsBy?: Record<string, any>[] | null;
324
+ _createdDate?: Date | null;
381
325
  /**
382
- * Origin point for geo-distance sorting on a GEO field
383
- * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
326
+ * Date settings were updated.
327
+ * @readonly
384
328
  */
385
- origin?: AddressLocation;
386
- }
387
- declare enum SortOrder {
388
- ASC = "ASC",
389
- DESC = "DESC"
390
- }
391
- /** @enumType */
392
- type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
393
- interface AddressLocation {
394
- /** Address latitude. */
395
- latitude?: number | null;
396
- /** Address longitude. */
397
- longitude?: number | null;
398
- }
399
- interface Paging {
400
- /** Number of items to load. */
401
- limit?: number | null;
402
- /** Number of items to skip in the current sort order. */
403
- offset?: number | null;
329
+ _updatedDate?: Date | null;
330
+ /** @maxSize 10 */
331
+ settingGroups?: SettingsGroup[];
332
+ /** Paper size */
333
+ paperSize?: PaperSizeWithLiterals;
334
+ pageOverflow?: PageOverflowWithLiterals;
404
335
  }
405
- interface CursorPaging {
336
+ interface TextSetting {
406
337
  /**
407
- * Maximum number of items to return in the results.
408
- * @max 100
338
+ * Font family class name
339
+ * @maxLength 20
409
340
  */
410
- limit?: number | null;
341
+ fontFamily?: string | null;
411
342
  /**
412
- * Pointer to the next or previous page in the list of results.
413
- *
414
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
415
- * Not relevant for the first request.
416
- * @maxLength 16000
343
+ * Font style class names
344
+ * @maxSize 10
345
+ * @maxLength 20
417
346
  */
418
- cursor?: string | null;
419
- }
420
- interface QueryDocumentResponse {
421
- /** The retrieved Documents */
422
- documents?: Document[];
423
- /** Query results' metadata */
424
- metadata?: PagingMetadataV2;
425
- }
426
- interface PagingMetadataV2 {
427
- /** Number of items returned in the response. */
428
- count?: number | null;
429
- /** Offset that was requested. */
430
- offset?: number | null;
431
- /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
432
- total?: number | null;
433
- /** Flag that indicates the server failed to calculate the `total` field. */
434
- tooManyToCount?: boolean | null;
435
- /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
436
- cursors?: Cursors;
347
+ fontStyle?: string[];
437
348
  /**
438
- * Indicates if there are more results after the current page.
439
- * If `true`, another page of results can be retrieved.
440
- * If `false`, this is the last page.
441
- * @internal
349
+ * Text alignment class name
350
+ * @maxLength 20
442
351
  */
443
- hasNext?: boolean | null;
444
- }
445
- interface Cursors {
352
+ textAlignment?: string | null;
446
353
  /**
447
- * Cursor string pointing to the next page in the list of results.
448
- * @maxLength 16000
354
+ * Text color hex code
355
+ * @minLength 7
356
+ * @maxLength 7
449
357
  */
450
- next?: string | null;
358
+ textColor?: string | null;
451
359
  /**
452
- * Cursor pointing to the previous page in the list of results.
453
- * @maxLength 16000
360
+ * Font size
361
+ * @min 1
454
362
  */
455
- prev?: string | null;
363
+ fontSize?: number | null;
364
+ /** Text content setting */
365
+ textContent?: TextContent[];
456
366
  }
457
- interface UpdateDocumentRequest {
367
+ interface TextContent {
458
368
  /**
459
- * Document ID.
460
- * @format GUID
461
- * @readonly
369
+ * @minLength 3
370
+ * @maxLength 50
462
371
  */
463
- _id: string | null;
464
- /** Document render status. */
465
- renderStatus?: RenderStatusWithLiterals;
466
- /** Rendered document file. */
467
- file?: DocumentFile;
468
- /** Rendered document source HTML file. */
469
- sourceFile?: DocumentFile;
470
- }
471
- interface DocumentFile {
472
- /** File ID. */
473
- fileId?: string | null;
474
- /** File URL. Defined only for public documents. */
475
- staticUrl?: string | null;
476
- /** File path. */
477
- filePath?: string | null;
478
- /** Size in bytes. */
479
- sizeInBytes?: number | null;
480
- }
481
- interface UpdateDocumentResponse {
482
- /** The created Document */
483
- document?: Document;
484
- }
485
- interface DocumentRendered {
486
- /** Rendered document */
487
- document?: Document;
372
+ _id?: string;
373
+ /** @maxLength 500 */
374
+ value?: string | null;
375
+ visible?: boolean;
488
376
  }
489
- interface DocumentRenderFailed {
490
- /** Document that failed to render */
491
- document?: Document;
377
+ interface ImageSetting {
378
+ /** Wix media Image */
379
+ image?: string;
380
+ /** Image resizing mode */
381
+ resize?: ResizeOptionWithLiterals;
492
382
  }
493
- interface DownloadDocumentRequest {
494
- /**
495
- * ID of the Document to retrieve
496
- * @format GUID
497
- */
498
- documentId: string;
499
- /**
500
- * URL expiration time. Only relevant for private documents.
501
- * @min 600
502
- * @max 86400
503
- */
504
- urlExpirationInSeconds?: number | null;
505
- /**
506
- * Whether the link downloads the file or opens the file in the browser.
507
- * Default: `ATTACHMENT`
508
- */
509
- contentDisposition?: ContentDispositionWithLiterals;
383
+ interface FocalPoint {
384
+ /** X-coordinate of the focal point. */
385
+ x?: number;
386
+ /** Y-coordinate of the focal point. */
387
+ y?: number;
388
+ /** crop by height */
389
+ height?: number | null;
390
+ /** crop by width */
391
+ width?: number | null;
510
392
  }
511
- declare enum ContentDisposition {
512
- /** @internal */
513
- UNKNOWN_CONTENT_DISPOSITION = "UNKNOWN_CONTENT_DISPOSITION",
514
- /** The link downloads the file. */
515
- ATTACHMENT = "ATTACHMENT",
516
- /** The link opens the file in the browser. */
517
- INLINE = "INLINE"
393
+ declare enum ResizeOption {
394
+ /** Automatically resizes full image to fit image field */
395
+ FIT = "FIT",
396
+ /** Enables user to manually crop image to fit image field */
397
+ CROP = "CROP"
518
398
  }
519
399
  /** @enumType */
520
- type ContentDispositionWithLiterals = ContentDisposition | 'ATTACHMENT' | 'INLINE';
521
- interface DownloadDocumentResponse {
522
- /** Download URL. */
523
- downloadUrl?: string;
524
- /** URL expiration timestamp. Not provided for public documents because their links do not expire. */
525
- expirationDate?: Date | null;
526
- }
527
- interface GetDownloadUrlRequest extends GetDownloadUrlRequestDocumentOneOf {
528
- /**
529
- * ID of the Document to retrieve
530
- * @format GUID
531
- */
532
- documentId?: string | null;
533
- /**
534
- * ID of the Document to retrieve
535
- * @minLength 1
536
- * @maxLength 100
537
- */
538
- externalId?: string | null;
539
- /**
540
- * Signed file token
541
- * @minLength 1
542
- * @maxLength 500
543
- */
544
- fileToken?: string | null;
400
+ type ResizeOptionWithLiterals = ResizeOption | 'FIT' | 'CROP';
401
+ interface SelectSetting {
402
+ /** Selected value */
403
+ value?: string | null;
545
404
  /**
546
- * URL expiration time. Only relevant for private documents.
547
- * @min 600
548
- * @max 86400
405
+ * Color hex code
406
+ * @minLength 7
407
+ * @maxLength 7
549
408
  */
550
- urlExpirationInSeconds?: number | null;
551
- /** @maxLength 100 */
552
- downloadButtonText?: string | null;
409
+ primaryColor?: string | null;
553
410
  /**
554
- * Whether the link downloads the file or opens the file in the browser.
555
- * Default: `ATTACHMENT`
411
+ * Color hex code
412
+ * @minLength 7
413
+ * @maxLength 7
556
414
  */
557
- contentDisposition?: ContentDispositionWithLiterals;
415
+ secondaryColor?: string | null;
416
+ /** Size */
417
+ size?: number | null;
558
418
  }
559
- /** @oneof */
560
- interface GetDownloadUrlRequestDocumentOneOf {
419
+ interface BackgroundSetting {
561
420
  /**
562
- * ID of the Document to retrieve
563
- * @format GUID
421
+ * Color of the background hex code
422
+ * @minLength 7
423
+ * @maxLength 9
564
424
  */
565
- documentId?: string | null;
425
+ color?: string | null;
426
+ /** Wix media Image */
427
+ image?: string;
428
+ }
429
+ interface SettingsGroup {
566
430
  /**
567
- * ID of the Document to retrieve
568
- * @minLength 1
569
- * @maxLength 100
431
+ * Id of the control group
432
+ * @minLength 5
433
+ * @maxLength 50
570
434
  */
571
- externalId?: string | null;
435
+ groupId?: string;
572
436
  /**
573
- * Signed file token
574
- * @minLength 1
575
- * @maxLength 500
437
+ * Display settings.
438
+ * @maxSize 20
576
439
  */
577
- fileToken?: string | null;
578
- }
579
- interface GetDownloadUrlResponse {
580
- /** Download URL. */
581
- downloadUrl?: string | null;
582
- /** URL expiration timestamp. Not provided for public documents because their links do not expire. */
583
- expirationDate?: Date | null;
440
+ display?: Record<string, boolean>;
584
441
  /**
585
- * Document ID.
586
- * @format GUID
442
+ * Texts settings.
443
+ * @maxSize 20
587
444
  */
588
- documentId?: string | null;
589
- /** Document render status. */
590
- renderStatus?: RenderStatusWithLiterals;
591
- /** Download URL. */
592
- downloadPageUrl?: string | null;
445
+ texts?: Record<string, TextSetting>;
593
446
  /**
594
- * Client defined content checksum. Can be used for content comparison.
595
- * @minLength 1
596
- * @maxLength 64
447
+ * Images settings.
448
+ * @maxSize 10
597
449
  */
598
- contentChecksum?: string | null;
599
- }
600
- interface DownloadDocumentSourceRequest {
450
+ images?: Record<string, ImageSetting>;
601
451
  /**
602
- * ID of the Document to retrieve
603
- * @format GUID
452
+ * Select option settings.
453
+ * @maxSize 20
604
454
  */
605
- documentId: string;
455
+ selects?: Record<string, SelectSetting>;
606
456
  /**
607
- * Whether the link downloads the file or opens the file in the browser.
608
- * Default: `ATTACHMENT`
457
+ * Backgrounds settings.
458
+ * @maxSize 20
609
459
  */
610
- contentDisposition?: ContentDispositionWithLiterals;
460
+ backgrounds?: Record<string, BackgroundSetting>;
611
461
  }
612
- interface DownloadDocumentSourceResponse {
613
- /** Download URL. Expires after 10 minutes. */
614
- downloadUrl?: string;
462
+ declare enum PaperSize {
463
+ A4_PORTRAIT = "A4_PORTRAIT",
464
+ A4_LANDSCAPE = "A4_LANDSCAPE"
465
+ }
466
+ /** @enumType */
467
+ type PaperSizeWithLiterals = PaperSize | 'A4_PORTRAIT' | 'A4_LANDSCAPE';
468
+ declare enum PageOverflow {
469
+ CONTENT_HIDDEN = "CONTENT_HIDDEN",
470
+ CONTENT_BREAK = "CONTENT_BREAK"
471
+ }
472
+ /** @enumType */
473
+ type PageOverflowWithLiterals = PageOverflow | 'CONTENT_HIDDEN' | 'CONTENT_BREAK';
474
+ declare enum RenderFormat {
475
+ /** content-type: application/pdf */
476
+ PDF = "PDF",
477
+ /** content-type: text/html */
478
+ HTML = "HTML"
479
+ }
480
+ /** @enumType */
481
+ type RenderFormatWithLiterals = RenderFormat | 'PDF' | 'HTML';
482
+ interface RawHttpResponse {
483
+ body?: Uint8Array;
484
+ statusCode?: number | null;
485
+ headers?: HeadersEntry[];
486
+ }
487
+ interface HeadersEntry {
488
+ key?: string;
489
+ value?: string;
490
+ }
491
+ interface RenderDocumentByIdRequest {
492
+ /**
493
+ * Document ID.
494
+ * @format GUID
495
+ */
496
+ documentId?: string | null;
497
+ /** Output format, defaults to PDF. */
498
+ outputFormat?: RenderFormatWithLiterals;
615
499
  }
616
500
  interface DomainEvent extends DomainEventBodyOneOf {
617
501
  createdEvent?: EntityCreatedEvent;
@@ -677,352 +561,468 @@ interface ActionEvent {
677
561
  }
678
562
  interface Empty {
679
563
  }
680
- interface MessageEnvelope {
564
+ interface GetRendererInfoRequest {
565
+ }
566
+ interface GetRendererInfoResponse {
567
+ /** Renderer info */
568
+ info?: Record<string, string>;
569
+ }
570
+ interface GetCachedHtmlRequest {
681
571
  /**
682
- * App instance ID.
683
- * @format GUID
572
+ * Html Access Key.
573
+ * @maxLength 100
684
574
  */
685
- instanceId?: string | null;
575
+ htmlAccessKey?: string;
686
576
  /**
687
- * Event type.
688
- * @maxLength 150
577
+ * Meta Site Id.
578
+ * @format GUID
689
579
  */
690
- eventType?: string;
691
- /** The identification type and identity data. */
692
- identity?: IdentificationData;
693
- /** Stringify payload. */
694
- data?: string;
695
- /** Details related to the account */
696
- accountInfo?: AccountInfo;
580
+ metaSiteId?: string | null;
697
581
  }
698
- interface IdentificationData extends IdentificationDataIdOneOf {
582
+ interface GetDownloadPageRequest {
583
+ /** @maxLength 1000 */
584
+ file: string | null;
585
+ }
586
+ interface RedirectToDocumentRequest {
587
+ /** @maxLength 1000 */
588
+ file: string | null;
589
+ }
590
+ interface DocumentRenderDelayed {
591
+ /** Document that is being rendered. */
592
+ document?: Document;
593
+ }
594
+ interface CreateDocumentRequest {
595
+ /** Document to be created */
596
+ document?: Document;
597
+ }
598
+ interface CreateDocumentResponse {
599
+ /** The created Document */
600
+ document?: Document;
601
+ }
602
+ interface GetDocumentRequest {
699
603
  /**
700
- * ID of a site visitor that has not logged in to the site.
604
+ * ID of the Document to retrieve
701
605
  * @format GUID
702
606
  */
703
- anonymousVisitorId?: string;
607
+ documentId: string;
608
+ /** @maxSize 1 */
609
+ fields?: RequestedFieldsWithLiterals[];
610
+ }
611
+ declare enum RequestedFields {
612
+ /** Include `documentContent` in the response. */
613
+ DOCUMENT_CONTENT = "DOCUMENT_CONTENT"
614
+ }
615
+ /** @enumType */
616
+ type RequestedFieldsWithLiterals = RequestedFields | 'DOCUMENT_CONTENT';
617
+ interface GetDocumentResponse {
618
+ /** The retrieved Document */
619
+ document?: Document;
620
+ }
621
+ interface DeleteDocumentRequest {
704
622
  /**
705
- * ID of a site visitor that has logged in to the site.
623
+ * ID of the Document to delete
706
624
  * @format GUID
707
625
  */
708
- memberId?: string;
626
+ documentId: string;
627
+ }
628
+ interface DeleteDocumentResponse {
629
+ /** Deleted document. */
630
+ document?: Document;
631
+ }
632
+ interface DeleteDocumentByExternalIdRequest {
633
+ /**
634
+ * External ID of the Document to delete
635
+ * @minLength 1
636
+ * @maxLength 100
637
+ */
638
+ externalId?: string;
639
+ }
640
+ interface DeleteDocumentByExternalIdResponse {
641
+ /** Deleted document. */
642
+ document?: Document;
643
+ }
644
+ interface QueryDocumentRequest {
645
+ /** WQL expression */
646
+ query: QueryV2;
647
+ /** @maxSize 1 */
648
+ fields?: RequestedFieldsWithLiterals[];
649
+ }
650
+ interface QueryV2 extends QueryV2PagingMethodOneOf {
651
+ /** Paging options to limit and offset the number of items. */
652
+ paging?: Paging;
653
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
654
+ cursorPaging?: CursorPaging;
655
+ /**
656
+ * Filter object.
657
+ *
658
+ * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
659
+ */
660
+ filter?: Record<string, any> | null;
661
+ /**
662
+ * Sort object.
663
+ *
664
+ * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
665
+ */
666
+ sort?: Sorting[];
667
+ /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
668
+ fields?: string[];
669
+ /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
670
+ fieldsets?: string[];
671
+ }
672
+ /** @oneof */
673
+ interface QueryV2PagingMethodOneOf {
674
+ /** Paging options to limit and offset the number of items. */
675
+ paging?: Paging;
676
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
677
+ cursorPaging?: CursorPaging;
678
+ }
679
+ interface Sorting {
680
+ /**
681
+ * Name of the field to sort by.
682
+ * @maxLength 512
683
+ */
684
+ fieldName?: string;
685
+ /** Sort order. */
686
+ order?: SortOrderWithLiterals;
709
687
  /**
710
- * ID of a Wix user (site owner, contributor, etc.).
711
- * @format GUID
688
+ * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
689
+ * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
690
+ *
691
+ * If multiple filters are provided, they are combined with AND operator.
692
+ *
693
+ * Example:
694
+ * Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
695
+ * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
696
+ * { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
697
+ * @internal
698
+ * @maxSize 10
712
699
  */
713
- wixUserId?: string;
700
+ selectItemsBy?: Record<string, any>[] | null;
714
701
  /**
715
- * ID of an app.
716
- * @format GUID
702
+ * Origin point for geo-distance sorting on a GEO field
703
+ * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
717
704
  */
718
- appId?: string;
719
- /** @readonly */
720
- identityType?: WebhookIdentityTypeWithLiterals;
705
+ origin?: AddressLocation;
721
706
  }
722
- /** @oneof */
723
- interface IdentificationDataIdOneOf {
724
- /**
725
- * ID of a site visitor that has not logged in to the site.
726
- * @format GUID
727
- */
728
- anonymousVisitorId?: string;
707
+ declare enum SortOrder {
708
+ ASC = "ASC",
709
+ DESC = "DESC"
710
+ }
711
+ /** @enumType */
712
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
713
+ interface AddressLocation {
714
+ /** Address latitude. */
715
+ latitude?: number | null;
716
+ /** Address longitude. */
717
+ longitude?: number | null;
718
+ }
719
+ interface Paging {
720
+ /** Number of items to load. */
721
+ limit?: number | null;
722
+ /** Number of items to skip in the current sort order. */
723
+ offset?: number | null;
724
+ }
725
+ interface CursorPaging {
729
726
  /**
730
- * ID of a site visitor that has logged in to the site.
731
- * @format GUID
727
+ * Maximum number of items to return in the results.
728
+ * @max 100
732
729
  */
733
- memberId?: string;
730
+ limit?: number | null;
734
731
  /**
735
- * ID of a Wix user (site owner, contributor, etc.).
736
- * @format GUID
732
+ * Pointer to the next or previous page in the list of results.
733
+ *
734
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
735
+ * Not relevant for the first request.
736
+ * @maxLength 16000
737
737
  */
738
- wixUserId?: string;
738
+ cursor?: string | null;
739
+ }
740
+ interface QueryDocumentResponse {
741
+ /** The retrieved Documents */
742
+ documents?: Document[];
743
+ /** Query results' metadata */
744
+ metadata?: PagingMetadataV2;
745
+ }
746
+ interface PagingMetadataV2 {
747
+ /** Number of items returned in the response. */
748
+ count?: number | null;
749
+ /** Offset that was requested. */
750
+ offset?: number | null;
751
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
752
+ total?: number | null;
753
+ /** Flag that indicates the server failed to calculate the `total` field. */
754
+ tooManyToCount?: boolean | null;
755
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
756
+ cursors?: Cursors;
739
757
  /**
740
- * ID of an app.
741
- * @format GUID
758
+ * Indicates if there are more results after the current page.
759
+ * If `true`, another page of results can be retrieved.
760
+ * If `false`, this is the last page.
761
+ * @internal
742
762
  */
743
- appId?: string;
744
- }
745
- declare enum WebhookIdentityType {
746
- UNKNOWN = "UNKNOWN",
747
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
748
- MEMBER = "MEMBER",
749
- WIX_USER = "WIX_USER",
750
- APP = "APP"
763
+ hasNext?: boolean | null;
751
764
  }
752
- /** @enumType */
753
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
754
- interface AccountInfo {
765
+ interface Cursors {
755
766
  /**
756
- * ID of the Wix account associated with the event.
757
- * @format GUID
767
+ * Cursor string pointing to the next page in the list of results.
768
+ * @maxLength 16000
758
769
  */
759
- accountId?: string | null;
770
+ next?: string | null;
760
771
  /**
761
- * ID of the parent Wix account. Only included when accountId belongs to a child account.
762
- * @format GUID
772
+ * Cursor pointing to the previous page in the list of results.
773
+ * @maxLength 16000
763
774
  */
764
- parentAccountId?: string | null;
775
+ prev?: string | null;
776
+ }
777
+ interface UpdateDocumentRequest {
765
778
  /**
766
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
779
+ * Document ID.
767
780
  * @format GUID
781
+ * @readonly
768
782
  */
769
- siteId?: string | null;
770
- }
771
- interface GetDownloadPageRequest {
772
- /** @maxLength 1000 */
773
- file: string | null;
783
+ _id: string | null;
784
+ /** Document render status. */
785
+ renderStatus?: RenderStatusWithLiterals;
786
+ /** Rendered document file. */
787
+ file?: DocumentFile;
788
+ /** Rendered document source HTML file. */
789
+ sourceFile?: DocumentFile;
774
790
  }
775
- interface RawHttpResponse {
776
- body?: Uint8Array;
777
- statusCode?: number | null;
778
- headers?: HeadersEntry[];
791
+ interface DocumentFile {
792
+ /** File ID. */
793
+ fileId?: string | null;
794
+ /** File URL. Defined only for public documents. */
795
+ staticUrl?: string | null;
796
+ /** File path. */
797
+ filePath?: string | null;
798
+ /** Size in bytes. */
799
+ sizeInBytes?: number | null;
779
800
  }
780
- interface HeadersEntry {
781
- key?: string;
782
- value?: string;
801
+ interface UpdateDocumentResponse {
802
+ /** The created Document */
803
+ document?: Document;
783
804
  }
784
- interface RedirectToDocumentRequest {
785
- /** @maxLength 1000 */
786
- file: string | null;
805
+ interface DocumentRendered {
806
+ /** Rendered document */
807
+ document?: Document;
787
808
  }
788
- interface RenderDocumentRequest {
789
- /** Template settings. */
790
- templateSettings?: TemplateSettings;
791
- /** Document content. */
792
- content?: DocumentContent;
793
- /** Output format, defaults to PDF. */
794
- outputFormat?: RenderFormatWithLiterals;
795
- /**
796
- * Overrides papyrusTemplatesStaticsUrl: "//static.parastorage.com/services/papyrus-templates-statics/${version_override}/"
797
- * @maxLength 100
798
- */
799
- versionOverride?: string | null;
800
- /**
801
- * Overrides static versions for the statics config.
802
- * @maxSize 10
803
- */
804
- staticOverrides?: Record<string, string>;
809
+ interface DocumentRenderFailed {
810
+ /** Document that failed to render */
811
+ document?: Document;
805
812
  }
806
- interface TemplateSettings {
813
+ interface DownloadDocumentRequest {
807
814
  /**
808
- * Auto generated ID.
815
+ * ID of the Document to retrieve
809
816
  * @format GUID
810
- * @readonly
811
817
  */
812
- _id?: string | null;
818
+ documentId: string;
813
819
  /**
814
- * Wix app definition ID.
815
- * @minLength 1
816
- * @maxLength 20
820
+ * URL expiration time. Only relevant for private documents.
821
+ * @min 600
822
+ * @max 86400
817
823
  */
818
- appSlug?: string | null;
824
+ urlExpirationInSeconds?: number | null;
819
825
  /**
820
- * The type of the template.
821
- * @minLength 1
822
- * @maxLength 20
826
+ * Whether the link downloads the file or opens the file in the browser.
827
+ * Default: `ATTACHMENT`
823
828
  */
824
- templateType?: string | null;
829
+ contentDisposition?: ContentDispositionWithLiterals;
830
+ }
831
+ declare enum ContentDisposition {
832
+ /** @internal */
833
+ UNKNOWN_CONTENT_DISPOSITION = "UNKNOWN_CONTENT_DISPOSITION",
834
+ /** The link downloads the file. */
835
+ ATTACHMENT = "ATTACHMENT",
836
+ /** The link opens the file in the browser. */
837
+ INLINE = "INLINE"
838
+ }
839
+ /** @enumType */
840
+ type ContentDispositionWithLiterals = ContentDisposition | 'ATTACHMENT' | 'INLINE';
841
+ interface DownloadDocumentResponse {
842
+ /** Download URL. */
843
+ downloadUrl?: string;
844
+ /** URL expiration timestamp. Not provided for public documents because their links do not expire. */
845
+ expirationDate?: Date | null;
846
+ }
847
+ interface GetDownloadUrlRequest extends GetDownloadUrlRequestDocumentOneOf {
825
848
  /**
826
- * The id of the template.
827
- * @minLength 1
828
- * @maxLength 20
849
+ * ID of the Document to retrieve
850
+ * @format GUID
829
851
  */
830
- templateId?: string | null;
852
+ documentId?: string | null;
831
853
  /**
832
- * Template settings external ID. For example ticket definition ID.
833
- * Must be unique per tenant where tenant is taken from authorization (wix_app_id + meta_site_id)
854
+ * ID of the Document to retrieve
834
855
  * @minLength 1
835
856
  * @maxLength 100
836
857
  */
837
858
  externalId?: string | null;
838
859
  /**
839
- * Date settings were created.
840
- * @readonly
860
+ * Signed file token
861
+ * @minLength 1
862
+ * @maxLength 500
841
863
  */
842
- _createdDate?: Date | null;
864
+ fileToken?: string | null;
843
865
  /**
844
- * Date settings were updated.
845
- * @readonly
866
+ * URL expiration time. Only relevant for private documents.
867
+ * @min 600
868
+ * @max 86400
846
869
  */
847
- _updatedDate?: Date | null;
848
- /** @maxSize 10 */
849
- settingGroups?: SettingsGroup[];
850
- /** Paper size */
851
- paperSize?: PaperSizeWithLiterals;
852
- pageOverflow?: PageOverflowWithLiterals;
870
+ urlExpirationInSeconds?: number | null;
871
+ /** @maxLength 100 */
872
+ downloadButtonText?: string | null;
873
+ /**
874
+ * Whether the link downloads the file or opens the file in the browser.
875
+ * Default: `ATTACHMENT`
876
+ */
877
+ contentDisposition?: ContentDispositionWithLiterals;
853
878
  }
854
- interface TextSetting {
879
+ /** @oneof */
880
+ interface GetDownloadUrlRequestDocumentOneOf {
855
881
  /**
856
- * Font family class name
857
- * @maxLength 20
882
+ * ID of the Document to retrieve
883
+ * @format GUID
858
884
  */
859
- fontFamily?: string | null;
885
+ documentId?: string | null;
860
886
  /**
861
- * Font style class names
862
- * @maxSize 10
863
- * @maxLength 20
887
+ * ID of the Document to retrieve
888
+ * @minLength 1
889
+ * @maxLength 100
864
890
  */
865
- fontStyle?: string[];
891
+ externalId?: string | null;
866
892
  /**
867
- * Text alignment class name
868
- * @maxLength 20
893
+ * Signed file token
894
+ * @minLength 1
895
+ * @maxLength 500
869
896
  */
870
- textAlignment?: string | null;
897
+ fileToken?: string | null;
898
+ }
899
+ interface GetDownloadUrlResponse {
900
+ /** Download URL. */
901
+ downloadUrl?: string | null;
902
+ /** URL expiration timestamp. Not provided for public documents because their links do not expire. */
903
+ expirationDate?: Date | null;
871
904
  /**
872
- * Text color hex code
873
- * @minLength 7
874
- * @maxLength 7
905
+ * Document ID.
906
+ * @format GUID
875
907
  */
876
- textColor?: string | null;
908
+ documentId?: string | null;
909
+ /** Document render status. */
910
+ renderStatus?: RenderStatusWithLiterals;
911
+ /** Download URL. */
912
+ downloadPageUrl?: string | null;
877
913
  /**
878
- * Font size
879
- * @min 1
914
+ * Client defined content checksum. Can be used for content comparison.
915
+ * @minLength 1
916
+ * @maxLength 64
880
917
  */
881
- fontSize?: number | null;
882
- /** Text content setting */
883
- textContent?: TextContent[];
918
+ contentChecksum?: string | null;
884
919
  }
885
- interface TextContent {
920
+ interface DownloadDocumentSourceRequest {
886
921
  /**
887
- * @minLength 3
888
- * @maxLength 50
922
+ * ID of the Document to retrieve
923
+ * @format GUID
889
924
  */
890
- _id?: string;
891
- /** @maxLength 500 */
892
- value?: string | null;
893
- visible?: boolean;
894
- }
895
- interface ImageSetting {
896
- /** Wix media Image */
897
- image?: string;
898
- /** Image resizing mode */
899
- resize?: ResizeOptionWithLiterals;
900
- }
901
- interface FocalPoint {
902
- /** X-coordinate of the focal point. */
903
- x?: number;
904
- /** Y-coordinate of the focal point. */
905
- y?: number;
906
- /** crop by height */
907
- height?: number | null;
908
- /** crop by width */
909
- width?: number | null;
925
+ documentId: string;
926
+ /**
927
+ * Whether the link downloads the file or opens the file in the browser.
928
+ * Default: `ATTACHMENT`
929
+ */
930
+ contentDisposition?: ContentDispositionWithLiterals;
910
931
  }
911
- declare enum ResizeOption {
912
- /** Automatically resizes full image to fit image field */
913
- FIT = "FIT",
914
- /** Enables user to manually crop image to fit image field */
915
- CROP = "CROP"
932
+ interface DownloadDocumentSourceResponse {
933
+ /** Download URL. Expires after 10 minutes. */
934
+ downloadUrl?: string;
916
935
  }
917
- /** @enumType */
918
- type ResizeOptionWithLiterals = ResizeOption | 'FIT' | 'CROP';
919
- interface SelectSetting {
920
- /** Selected value */
921
- value?: string | null;
936
+ interface MessageEnvelope {
922
937
  /**
923
- * Color hex code
924
- * @minLength 7
925
- * @maxLength 7
938
+ * App instance ID.
939
+ * @format GUID
926
940
  */
927
- primaryColor?: string | null;
941
+ instanceId?: string | null;
928
942
  /**
929
- * Color hex code
930
- * @minLength 7
931
- * @maxLength 7
943
+ * Event type.
944
+ * @maxLength 150
932
945
  */
933
- secondaryColor?: string | null;
934
- /** Size */
935
- size?: number | null;
946
+ eventType?: string;
947
+ /** The identification type and identity data. */
948
+ identity?: IdentificationData;
949
+ /** Stringify payload. */
950
+ data?: string;
951
+ /** Details related to the account */
952
+ accountInfo?: AccountInfo;
936
953
  }
937
- interface BackgroundSetting {
954
+ interface IdentificationData extends IdentificationDataIdOneOf {
938
955
  /**
939
- * Color of the background hex code
940
- * @minLength 7
941
- * @maxLength 9
956
+ * ID of a site visitor that has not logged in to the site.
957
+ * @format GUID
942
958
  */
943
- color?: string | null;
944
- /** Wix media Image */
945
- image?: string;
946
- }
947
- interface SettingsGroup {
959
+ anonymousVisitorId?: string;
948
960
  /**
949
- * Id of the control group
950
- * @minLength 5
951
- * @maxLength 50
961
+ * ID of a site visitor that has logged in to the site.
962
+ * @format GUID
952
963
  */
953
- groupId?: string;
964
+ memberId?: string;
954
965
  /**
955
- * Display settings.
956
- * @maxSize 20
966
+ * ID of a Wix user (site owner, contributor, etc.).
967
+ * @format GUID
957
968
  */
958
- display?: Record<string, boolean>;
969
+ wixUserId?: string;
959
970
  /**
960
- * Texts settings.
961
- * @maxSize 20
971
+ * ID of an app.
972
+ * @format GUID
962
973
  */
963
- texts?: Record<string, TextSetting>;
974
+ appId?: string;
975
+ /** @readonly */
976
+ identityType?: WebhookIdentityTypeWithLiterals;
977
+ }
978
+ /** @oneof */
979
+ interface IdentificationDataIdOneOf {
964
980
  /**
965
- * Images settings.
966
- * @maxSize 10
981
+ * ID of a site visitor that has not logged in to the site.
982
+ * @format GUID
967
983
  */
968
- images?: Record<string, ImageSetting>;
984
+ anonymousVisitorId?: string;
969
985
  /**
970
- * Select option settings.
971
- * @maxSize 20
986
+ * ID of a site visitor that has logged in to the site.
987
+ * @format GUID
972
988
  */
973
- selects?: Record<string, SelectSetting>;
989
+ memberId?: string;
974
990
  /**
975
- * Backgrounds settings.
976
- * @maxSize 20
991
+ * ID of a Wix user (site owner, contributor, etc.).
992
+ * @format GUID
977
993
  */
978
- backgrounds?: Record<string, BackgroundSetting>;
979
- }
980
- declare enum PaperSize {
981
- A4_PORTRAIT = "A4_PORTRAIT",
982
- A4_LANDSCAPE = "A4_LANDSCAPE"
983
- }
984
- /** @enumType */
985
- type PaperSizeWithLiterals = PaperSize | 'A4_PORTRAIT' | 'A4_LANDSCAPE';
986
- declare enum PageOverflow {
987
- CONTENT_HIDDEN = "CONTENT_HIDDEN",
988
- CONTENT_BREAK = "CONTENT_BREAK"
994
+ wixUserId?: string;
995
+ /**
996
+ * ID of an app.
997
+ * @format GUID
998
+ */
999
+ appId?: string;
989
1000
  }
990
- /** @enumType */
991
- type PageOverflowWithLiterals = PageOverflow | 'CONTENT_HIDDEN' | 'CONTENT_BREAK';
992
- declare enum RenderFormat {
993
- /** content-type: application/pdf */
994
- PDF = "PDF",
995
- /** content-type: text/html */
996
- HTML = "HTML"
1001
+ declare enum WebhookIdentityType {
1002
+ UNKNOWN = "UNKNOWN",
1003
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1004
+ MEMBER = "MEMBER",
1005
+ WIX_USER = "WIX_USER",
1006
+ APP = "APP"
997
1007
  }
998
1008
  /** @enumType */
999
- type RenderFormatWithLiterals = RenderFormat | 'PDF' | 'HTML';
1000
- interface RenderDocumentByIdRequest {
1009
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1010
+ interface AccountInfo {
1001
1011
  /**
1002
- * Document ID.
1012
+ * ID of the Wix account associated with the event.
1003
1013
  * @format GUID
1004
1014
  */
1005
- documentId?: string | null;
1006
- /** Output format, defaults to PDF. */
1007
- outputFormat?: RenderFormatWithLiterals;
1008
- }
1009
- interface GetRendererInfoRequest {
1010
- }
1011
- interface GetRendererInfoResponse {
1012
- /** Renderer info */
1013
- info?: Record<string, string>;
1014
- }
1015
- interface GetCachedHtmlRequest {
1015
+ accountId?: string | null;
1016
1016
  /**
1017
- * Html Access Key.
1018
- * @maxLength 100
1017
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
1018
+ * @format GUID
1019
1019
  */
1020
- htmlAccessKey?: string;
1020
+ parentAccountId?: string | null;
1021
1021
  /**
1022
- * Meta Site Id.
1022
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
1023
1023
  * @format GUID
1024
1024
  */
1025
- metaSiteId?: string | null;
1025
+ siteId?: string | null;
1026
1026
  }
1027
1027
  /** @docsIgnore */
1028
1028
  type DownloadDocumentApplicationErrors = {
@@ -1266,6 +1266,22 @@ interface DocumentUpdatedEnvelope {
1266
1266
  * @slug updated
1267
1267
  */
1268
1268
  declare function onDocumentUpdated(handler: (event: DocumentUpdatedEnvelope) => void | Promise<void>): void;
1269
+ /**
1270
+ * Get Document.
1271
+ * @public
1272
+ * @requiredField file
1273
+ * @permissionId PAPYRUS.DOWNLOAD_DOCUMENT
1274
+ * @fqn wix.papyrus.v1.DownloadPageController.GetDownloadPage
1275
+ */
1276
+ declare function getDownloadPage(file: string | null): Promise<RawHttpResponse>;
1277
+ /**
1278
+ * Get Document.
1279
+ * @public
1280
+ * @requiredField file
1281
+ * @permissionId PAPYRUS.DOWNLOAD_DOCUMENT
1282
+ * @fqn wix.papyrus.v1.DownloadPageController.RedirectToDocument
1283
+ */
1284
+ declare function redirectToDocument(file: string | null): Promise<RawHttpResponse>;
1269
1285
  /**
1270
1286
  * Creates a new Document
1271
1287
  * @public
@@ -1538,21 +1554,5 @@ interface DownloadDocumentSourceOptions {
1538
1554
  */
1539
1555
  contentDisposition?: ContentDispositionWithLiterals;
1540
1556
  }
1541
- /**
1542
- * Get Document.
1543
- * @public
1544
- * @requiredField file
1545
- * @permissionId PAPYRUS.DOWNLOAD_DOCUMENT
1546
- * @fqn wix.papyrus.v1.DownloadPageController.GetDownloadPage
1547
- */
1548
- declare function getDownloadPage(file: string | null): Promise<RawHttpResponse>;
1549
- /**
1550
- * Get Document.
1551
- * @public
1552
- * @requiredField file
1553
- * @permissionId PAPYRUS.DOWNLOAD_DOCUMENT
1554
- * @fqn wix.papyrus.v1.DownloadPageController.RedirectToDocument
1555
- */
1556
- declare function redirectToDocument(file: string | null): Promise<RawHttpResponse>;
1557
1557
 
1558
1558
  export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type AddressLocation, type BackgroundSetting, type BaseEventMetadata, type CommonQueryWithEntityContext, ContentDisposition, type ContentDispositionWithLiterals, type CreateDocumentOptions, type CreateDocumentRequest, type CreateDocumentResponse, type CursorPaging, type Cursors, type DebugOptions, type DeleteDocumentByExternalIdRequest, type DeleteDocumentByExternalIdResponse, type DeleteDocumentRequest, type DeleteDocumentResponse, type Document, type DocumentContent, type DocumentCreatedEnvelope, type DocumentDeletedEnvelope, type DocumentFile, type DocumentQuery, type DocumentQuerySpec, type DocumentRenderDelayed, type DocumentRenderDelayedEnvelope, type DocumentRenderFailed, type DocumentRenderFailedEnvelope, type DocumentRendered, type DocumentRenderedEnvelope, type DocumentUpdatedEnvelope, type DocumentsQueryBuilder, type DocumentsQueryResult, type DomainEvent, type DomainEventBodyOneOf, type DownloadDocumentApplicationErrors, type DownloadDocumentOptions, type DownloadDocumentRequest, type DownloadDocumentResponse, type DownloadDocumentSourceApplicationErrors, type DownloadDocumentSourceOptions, type DownloadDocumentSourceRequest, type DownloadDocumentSourceResponse, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type FocalPoint, Format, type FormatWithLiterals, type GetCachedHtmlRequest, type GetDocumentOptions, type GetDocumentRequest, type GetDocumentResponse, type GetDownloadPageRequest, type GetDownloadUrlOptions, type GetDownloadUrlOptionsDocumentOneOf, type GetDownloadUrlRequest, type GetDownloadUrlRequestDocumentOneOf, type GetDownloadUrlResponse, type GetRendererInfoRequest, type GetRendererInfoResponse, type HeadersEntry, type IdentificationData, type IdentificationDataIdOneOf, type ImageSetting, type MessageEnvelope, PageOverflow, type PageOverflowWithLiterals, type PageSettings, type Paging, type PagingMetadataV2, PaperSize, type PaperSizeWithLiterals, type QueryDocumentOptions, type QueryDocumentRequest, type QueryDocumentResponse, type QueryV2, type QueryV2PagingMethodOneOf, type RawHttpResponse, type RedirectToDocumentRequest, type RenderDelayedEventConfig, type RenderDocumentByIdRequest, type RenderDocumentRequest, RenderFormat, type RenderFormatWithLiterals, RenderStatus, type RenderStatusWithLiterals, RequestedFields, type RequestedFieldsWithLiterals, ResizeOption, type ResizeOptionWithLiterals, type RestoreInfo, type SelectSetting, type SettingsGroup, SortOrder, type SortOrderWithLiterals, type Sorting, type TemplateSettings, type TemplateSettingsOverride, type TextContent, type TextSetting, type UpdateDocumentOptions, type UpdateDocumentRequest, type UpdateDocumentResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WixMpClientVersion, type WixMpClientVersionWithLiterals, createDocument, deleteDocument, downloadDocument, downloadDocumentSource, getDocument, getDownloadPage, getDownloadUrl, onDocumentCreated, onDocumentDeleted, onDocumentRenderDelayed, onDocumentRenderFailed, onDocumentRendered, onDocumentUpdated, queryDocument, redirectToDocument, typedQueryDocument, updateDocument, utils };