@wix/auto_sdk_papyrus_documents 1.0.3 → 1.0.4

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,235 +267,351 @@ interface DebugOptions {
267
267
  */
268
268
  staticsVersionOverride?: string | null;
269
269
  }
270
- interface RenderDocumentRequest {
271
- /** Template settings. */
272
- templateSettings?: TemplateSettings;
273
- /** Document content. */
274
- content?: DocumentContent;
275
- /** Output format, defaults to PDF. */
276
- outputFormat?: RenderFormatWithLiterals;
277
- /**
278
- * Overrides papyrusTemplatesStaticsUrl: "//static.parastorage.com/services/papyrus-templates-statics/${version_override}/"
279
- * @maxLength 100
280
- */
281
- versionOverride?: string | null;
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 {
282
283
  /**
283
- * Overrides static versions for the statics config.
284
- * @maxSize 10
284
+ * ID of the Document to retrieve
285
+ * @format GUID
285
286
  */
286
- staticOverrides?: Record<string, string>;
287
+ documentId: string;
288
+ /** @maxSize 1 */
289
+ fields?: RequestedFieldsWithLiterals[];
287
290
  }
288
- interface TemplateSettings {
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;
300
+ }
301
+ interface DeleteDocumentRequest {
289
302
  /**
290
- * Auto generated ID.
303
+ * ID of the Document to delete
291
304
  * @format GUID
292
- * @readonly
293
305
  */
294
- _id?: string | null;
306
+ documentId: string;
307
+ }
308
+ interface DeleteDocumentResponse {
309
+ /** Deleted document. */
310
+ document?: Document;
311
+ }
312
+ interface DeleteDocumentByExternalIdRequest {
295
313
  /**
296
- * Wix app definition ID.
314
+ * External ID of the Document to delete
297
315
  * @minLength 1
298
- * @maxLength 20
316
+ * @maxLength 100
299
317
  */
300
- appSlug?: string | null;
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;
301
335
  /**
302
- * The type of the template.
303
- * @minLength 1
304
- * @maxLength 20
336
+ * Filter object.
337
+ *
338
+ * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
305
339
  */
306
- templateType?: string | null;
340
+ filter?: Record<string, any> | null;
307
341
  /**
308
- * The id of the template.
309
- * @minLength 1
310
- * @maxLength 20
342
+ * Sort object.
343
+ *
344
+ * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).
311
345
  */
312
- templateId?: string | null;
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 {
313
360
  /**
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
361
+ * Name of the field to sort by.
362
+ * @maxLength 512
318
363
  */
319
- externalId?: string | null;
364
+ fieldName?: string;
365
+ /** Sort order. */
366
+ order?: SortOrderWithLiterals;
320
367
  /**
321
- * Date settings were created.
322
- * @readonly
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
323
379
  */
324
- _createdDate?: Date | null;
380
+ selectItemsBy?: Record<string, any>[] | null;
325
381
  /**
326
- * Date settings were updated.
327
- * @readonly
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).
328
384
  */
329
- _updatedDate?: Date | null;
330
- /** @maxSize 10 */
331
- settingGroups?: SettingsGroup[];
332
- /** Paper size */
333
- paperSize?: PaperSizeWithLiterals;
334
- pageOverflow?: PageOverflowWithLiterals;
385
+ origin?: AddressLocation;
335
386
  }
336
- interface TextSetting {
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;
404
+ }
405
+ interface CursorPaging {
337
406
  /**
338
- * Font family class name
339
- * @maxLength 20
407
+ * Maximum number of items to return in the results.
408
+ * @max 100
340
409
  */
341
- fontFamily?: string | null;
410
+ limit?: number | null;
342
411
  /**
343
- * Font style class names
344
- * @maxSize 10
345
- * @maxLength 20
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
346
417
  */
347
- fontStyle?: string[];
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;
348
437
  /**
349
- * Text alignment class name
350
- * @maxLength 20
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
351
442
  */
352
- textAlignment?: string | null;
443
+ hasNext?: boolean | null;
444
+ }
445
+ interface Cursors {
353
446
  /**
354
- * Text color hex code
355
- * @minLength 7
356
- * @maxLength 7
447
+ * Cursor string pointing to the next page in the list of results.
448
+ * @maxLength 16000
357
449
  */
358
- textColor?: string | null;
450
+ next?: string | null;
359
451
  /**
360
- * Font size
361
- * @min 1
452
+ * Cursor pointing to the previous page in the list of results.
453
+ * @maxLength 16000
362
454
  */
363
- fontSize?: number | null;
364
- /** Text content setting */
365
- textContent?: TextContent[];
455
+ prev?: string | null;
366
456
  }
367
- interface TextContent {
457
+ interface UpdateDocumentRequest {
368
458
  /**
369
- * @minLength 3
370
- * @maxLength 50
459
+ * Document ID.
460
+ * @format GUID
461
+ * @readonly
371
462
  */
372
- _id?: string;
373
- /** @maxLength 500 */
374
- value?: string | null;
375
- visible?: boolean;
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;
376
470
  }
377
- interface ImageSetting {
378
- /** Wix media Image */
379
- image?: string;
380
- /** Image resizing mode */
381
- resize?: ResizeOptionWithLiterals;
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;
382
480
  }
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;
481
+ interface UpdateDocumentResponse {
482
+ /** The created Document */
483
+ document?: Document;
392
484
  }
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"
485
+ interface DocumentRendered {
486
+ /** Rendered document */
487
+ document?: Document;
398
488
  }
399
- /** @enumType */
400
- type ResizeOptionWithLiterals = ResizeOption | 'FIT' | 'CROP';
401
- interface SelectSetting {
402
- /** Selected value */
403
- value?: string | null;
489
+ interface DocumentRenderFailed {
490
+ /** Document that failed to render */
491
+ document?: Document;
492
+ }
493
+ interface DownloadDocumentRequest {
404
494
  /**
405
- * Color hex code
406
- * @minLength 7
407
- * @maxLength 7
495
+ * ID of the Document to retrieve
496
+ * @format GUID
408
497
  */
409
- primaryColor?: string | null;
498
+ documentId: string;
410
499
  /**
411
- * Color hex code
412
- * @minLength 7
413
- * @maxLength 7
500
+ * URL expiration time. Only relevant for private documents.
501
+ * @min 600
502
+ * @max 86400
414
503
  */
415
- secondaryColor?: string | null;
416
- /** Size */
417
- size?: number | null;
418
- }
419
- interface BackgroundSetting {
504
+ urlExpirationInSeconds?: number | null;
420
505
  /**
421
- * Color of the background hex code
422
- * @minLength 7
423
- * @maxLength 9
506
+ * Whether the link downloads the file or opens the file in the browser.
507
+ * Default: `ATTACHMENT`
424
508
  */
425
- color?: string | null;
426
- /** Wix media Image */
427
- image?: string;
509
+ contentDisposition?: ContentDispositionWithLiterals;
428
510
  }
429
- interface SettingsGroup {
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"
518
+ }
519
+ /** @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;
430
539
  /**
431
- * Id of the control group
432
- * @minLength 5
433
- * @maxLength 50
540
+ * Signed file token
541
+ * @minLength 1
542
+ * @maxLength 500
434
543
  */
435
- groupId?: string;
544
+ fileToken?: string | null;
436
545
  /**
437
- * Display settings.
438
- * @maxSize 20
546
+ * URL expiration time. Only relevant for private documents.
547
+ * @min 600
548
+ * @max 86400
439
549
  */
440
- display?: Record<string, boolean>;
550
+ urlExpirationInSeconds?: number | null;
551
+ /** @maxLength 100 */
552
+ downloadButtonText?: string | null;
441
553
  /**
442
- * Texts settings.
443
- * @maxSize 20
554
+ * Whether the link downloads the file or opens the file in the browser.
555
+ * Default: `ATTACHMENT`
444
556
  */
445
- texts?: Record<string, TextSetting>;
557
+ contentDisposition?: ContentDispositionWithLiterals;
558
+ }
559
+ /** @oneof */
560
+ interface GetDownloadUrlRequestDocumentOneOf {
446
561
  /**
447
- * Images settings.
448
- * @maxSize 10
562
+ * ID of the Document to retrieve
563
+ * @format GUID
449
564
  */
450
- images?: Record<string, ImageSetting>;
565
+ documentId?: string | null;
451
566
  /**
452
- * Select option settings.
453
- * @maxSize 20
567
+ * ID of the Document to retrieve
568
+ * @minLength 1
569
+ * @maxLength 100
454
570
  */
455
- selects?: Record<string, SelectSetting>;
571
+ externalId?: string | null;
456
572
  /**
457
- * Backgrounds settings.
458
- * @maxSize 20
573
+ * Signed file token
574
+ * @minLength 1
575
+ * @maxLength 500
459
576
  */
460
- backgrounds?: Record<string, BackgroundSetting>;
461
- }
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;
577
+ fileToken?: string | null;
490
578
  }
491
- interface RenderDocumentByIdRequest {
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;
492
584
  /**
493
585
  * Document ID.
494
586
  * @format GUID
495
587
  */
496
588
  documentId?: string | null;
497
- /** Output format, defaults to PDF. */
498
- outputFormat?: RenderFormatWithLiterals;
589
+ /** Document render status. */
590
+ renderStatus?: RenderStatusWithLiterals;
591
+ /** Download URL. */
592
+ downloadPageUrl?: string | null;
593
+ /**
594
+ * Client defined content checksum. Can be used for content comparison.
595
+ * @minLength 1
596
+ * @maxLength 64
597
+ */
598
+ contentChecksum?: string | null;
599
+ }
600
+ interface DownloadDocumentSourceRequest {
601
+ /**
602
+ * ID of the Document to retrieve
603
+ * @format GUID
604
+ */
605
+ documentId: string;
606
+ /**
607
+ * Whether the link downloads the file or opens the file in the browser.
608
+ * Default: `ATTACHMENT`
609
+ */
610
+ contentDisposition?: ContentDispositionWithLiterals;
611
+ }
612
+ interface DownloadDocumentSourceResponse {
613
+ /** Download URL. Expires after 10 minutes. */
614
+ downloadUrl?: string;
499
615
  }
500
616
  interface DomainEvent extends DomainEventBodyOneOf {
501
617
  createdEvent?: EntityCreatedEvent;
@@ -561,468 +677,352 @@ interface ActionEvent {
561
677
  }
562
678
  interface Empty {
563
679
  }
564
- interface GetRendererInfoRequest {
565
- }
566
- interface GetRendererInfoResponse {
567
- /** Renderer info */
568
- info?: Record<string, string>;
569
- }
570
- interface GetCachedHtmlRequest {
571
- /**
572
- * Html Access Key.
573
- * @maxLength 100
574
- */
575
- htmlAccessKey?: string;
576
- /**
577
- * Meta Site Id.
578
- * @format GUID
579
- */
580
- metaSiteId?: string | null;
581
- }
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 {
603
- /**
604
- * ID of the Document to retrieve
605
- * @format GUID
606
- */
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 {
680
+ interface MessageEnvelope {
622
681
  /**
623
- * ID of the Document to delete
682
+ * App instance ID.
624
683
  * @format GUID
625
684
  */
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 {
685
+ instanceId?: string | null;
680
686
  /**
681
- * Name of the field to sort by.
682
- * @maxLength 512
687
+ * Event type.
688
+ * @maxLength 150
683
689
  */
684
- fieldName?: string;
685
- /** Sort order. */
686
- order?: SortOrderWithLiterals;
687
- /**
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
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;
697
+ }
698
+ interface IdentificationData extends IdentificationDataIdOneOf {
699
+ /**
700
+ * ID of a site visitor that has not logged in to the site.
701
+ * @format GUID
699
702
  */
700
- selectItemsBy?: Record<string, any>[] | null;
703
+ anonymousVisitorId?: string;
701
704
  /**
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).
705
+ * ID of a site visitor that has logged in to the site.
706
+ * @format GUID
704
707
  */
705
- origin?: AddressLocation;
706
- }
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 {
708
+ memberId?: string;
726
709
  /**
727
- * Maximum number of items to return in the results.
728
- * @max 100
710
+ * ID of a Wix user (site owner, contributor, etc.).
711
+ * @format GUID
729
712
  */
730
- limit?: number | null;
713
+ wixUserId?: string;
731
714
  /**
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
715
+ * ID of an app.
716
+ * @format GUID
737
717
  */
738
- cursor?: string | null;
739
- }
740
- interface QueryDocumentResponse {
741
- /** The retrieved Documents */
742
- documents?: Document[];
743
- /** Query results' metadata */
744
- metadata?: PagingMetadataV2;
718
+ appId?: string;
719
+ /** @readonly */
720
+ identityType?: WebhookIdentityTypeWithLiterals;
745
721
  }
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;
722
+ /** @oneof */
723
+ interface IdentificationDataIdOneOf {
757
724
  /**
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
725
+ * ID of a site visitor that has not logged in to the site.
726
+ * @format GUID
762
727
  */
763
- hasNext?: boolean | null;
764
- }
765
- interface Cursors {
728
+ anonymousVisitorId?: string;
766
729
  /**
767
- * Cursor string pointing to the next page in the list of results.
768
- * @maxLength 16000
730
+ * ID of a site visitor that has logged in to the site.
731
+ * @format GUID
769
732
  */
770
- next?: string | null;
733
+ memberId?: string;
771
734
  /**
772
- * Cursor pointing to the previous page in the list of results.
773
- * @maxLength 16000
735
+ * ID of a Wix user (site owner, contributor, etc.).
736
+ * @format GUID
774
737
  */
775
- prev?: string | null;
776
- }
777
- interface UpdateDocumentRequest {
738
+ wixUserId?: string;
778
739
  /**
779
- * Document ID.
740
+ * ID of an app.
780
741
  * @format GUID
781
- * @readonly
782
742
  */
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;
790
- }
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;
800
- }
801
- interface UpdateDocumentResponse {
802
- /** The created Document */
803
- document?: Document;
804
- }
805
- interface DocumentRendered {
806
- /** Rendered document */
807
- document?: Document;
743
+ appId?: string;
808
744
  }
809
- interface DocumentRenderFailed {
810
- /** Document that failed to render */
811
- document?: Document;
745
+ declare enum WebhookIdentityType {
746
+ UNKNOWN = "UNKNOWN",
747
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
748
+ MEMBER = "MEMBER",
749
+ WIX_USER = "WIX_USER",
750
+ APP = "APP"
812
751
  }
813
- interface DownloadDocumentRequest {
752
+ /** @enumType */
753
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
754
+ interface AccountInfo {
814
755
  /**
815
- * ID of the Document to retrieve
756
+ * ID of the Wix account associated with the event.
816
757
  * @format GUID
817
758
  */
818
- documentId: string;
759
+ accountId?: string | null;
819
760
  /**
820
- * URL expiration time. Only relevant for private documents.
821
- * @min 600
822
- * @max 86400
761
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
762
+ * @format GUID
823
763
  */
824
- urlExpirationInSeconds?: number | null;
764
+ parentAccountId?: string | null;
825
765
  /**
826
- * Whether the link downloads the file or opens the file in the browser.
827
- * Default: `ATTACHMENT`
766
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
767
+ * @format GUID
828
768
  */
829
- contentDisposition?: ContentDispositionWithLiterals;
769
+ siteId?: string | null;
830
770
  }
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"
771
+ interface GetDownloadPageRequest {
772
+ /** @maxLength 1000 */
773
+ file: string | null;
838
774
  }
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;
775
+ interface RawHttpResponse {
776
+ body?: Uint8Array;
777
+ statusCode?: number | null;
778
+ headers?: HeadersEntry[];
846
779
  }
847
- interface GetDownloadUrlRequest extends GetDownloadUrlRequestDocumentOneOf {
780
+ interface HeadersEntry {
781
+ key?: string;
782
+ value?: string;
783
+ }
784
+ interface RedirectToDocumentRequest {
785
+ /** @maxLength 1000 */
786
+ file: string | null;
787
+ }
788
+ interface RenderDocumentRequest {
789
+ /** Template settings. */
790
+ templateSettings?: TemplateSettings;
791
+ /** Document content. */
792
+ content?: DocumentContent;
793
+ /** Output format, defaults to PDF. */
794
+ outputFormat?: RenderFormatWithLiterals;
848
795
  /**
849
- * ID of the Document to retrieve
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>;
805
+ }
806
+ interface TemplateSettings {
807
+ /**
808
+ * Auto generated ID.
850
809
  * @format GUID
810
+ * @readonly
851
811
  */
852
- documentId?: string | null;
812
+ _id?: string | null;
853
813
  /**
854
- * ID of the Document to retrieve
814
+ * Wix app definition ID.
855
815
  * @minLength 1
856
- * @maxLength 100
816
+ * @maxLength 20
857
817
  */
858
- externalId?: string | null;
818
+ appSlug?: string | null;
859
819
  /**
860
- * Signed file token
820
+ * The type of the template.
861
821
  * @minLength 1
862
- * @maxLength 500
822
+ * @maxLength 20
863
823
  */
864
- fileToken?: string | null;
824
+ templateType?: string | null;
865
825
  /**
866
- * URL expiration time. Only relevant for private documents.
867
- * @min 600
868
- * @max 86400
826
+ * The id of the template.
827
+ * @minLength 1
828
+ * @maxLength 20
869
829
  */
870
- urlExpirationInSeconds?: number | null;
871
- /** @maxLength 100 */
872
- downloadButtonText?: string | null;
830
+ templateId?: string | null;
873
831
  /**
874
- * Whether the link downloads the file or opens the file in the browser.
875
- * Default: `ATTACHMENT`
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)
834
+ * @minLength 1
835
+ * @maxLength 100
876
836
  */
877
- contentDisposition?: ContentDispositionWithLiterals;
878
- }
879
- /** @oneof */
880
- interface GetDownloadUrlRequestDocumentOneOf {
837
+ externalId?: string | null;
881
838
  /**
882
- * ID of the Document to retrieve
883
- * @format GUID
839
+ * Date settings were created.
840
+ * @readonly
884
841
  */
885
- documentId?: string | null;
842
+ _createdDate?: Date | null;
843
+ /**
844
+ * Date settings were updated.
845
+ * @readonly
846
+ */
847
+ _updatedDate?: Date | null;
848
+ /** @maxSize 10 */
849
+ settingGroups?: SettingsGroup[];
850
+ /** Paper size */
851
+ paperSize?: PaperSizeWithLiterals;
852
+ pageOverflow?: PageOverflowWithLiterals;
853
+ }
854
+ interface TextSetting {
886
855
  /**
887
- * ID of the Document to retrieve
888
- * @minLength 1
889
- * @maxLength 100
856
+ * Font family class name
857
+ * @maxLength 20
890
858
  */
891
- externalId?: string | null;
859
+ fontFamily?: string | null;
892
860
  /**
893
- * Signed file token
894
- * @minLength 1
895
- * @maxLength 500
861
+ * Font style class names
862
+ * @maxSize 10
863
+ * @maxLength 20
896
864
  */
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;
865
+ fontStyle?: string[];
904
866
  /**
905
- * Document ID.
906
- * @format GUID
867
+ * Text alignment class name
868
+ * @maxLength 20
907
869
  */
908
- documentId?: string | null;
909
- /** Document render status. */
910
- renderStatus?: RenderStatusWithLiterals;
911
- /** Download URL. */
912
- downloadPageUrl?: string | null;
870
+ textAlignment?: string | null;
913
871
  /**
914
- * Client defined content checksum. Can be used for content comparison.
915
- * @minLength 1
916
- * @maxLength 64
872
+ * Text color hex code
873
+ * @minLength 7
874
+ * @maxLength 7
917
875
  */
918
- contentChecksum?: string | null;
919
- }
920
- interface DownloadDocumentSourceRequest {
876
+ textColor?: string | null;
921
877
  /**
922
- * ID of the Document to retrieve
923
- * @format GUID
878
+ * Font size
879
+ * @min 1
924
880
  */
925
- documentId: string;
881
+ fontSize?: number | null;
882
+ /** Text content setting */
883
+ textContent?: TextContent[];
884
+ }
885
+ interface TextContent {
926
886
  /**
927
- * Whether the link downloads the file or opens the file in the browser.
928
- * Default: `ATTACHMENT`
887
+ * @minLength 3
888
+ * @maxLength 50
929
889
  */
930
- contentDisposition?: ContentDispositionWithLiterals;
890
+ _id?: string;
891
+ /** @maxLength 500 */
892
+ value?: string | null;
893
+ visible?: boolean;
931
894
  }
932
- interface DownloadDocumentSourceResponse {
933
- /** Download URL. Expires after 10 minutes. */
934
- downloadUrl?: string;
895
+ interface ImageSetting {
896
+ /** Wix media Image */
897
+ image?: string;
898
+ /** Image resizing mode */
899
+ resize?: ResizeOptionWithLiterals;
935
900
  }
936
- interface MessageEnvelope {
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;
910
+ }
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"
916
+ }
917
+ /** @enumType */
918
+ type ResizeOptionWithLiterals = ResizeOption | 'FIT' | 'CROP';
919
+ interface SelectSetting {
920
+ /** Selected value */
921
+ value?: string | null;
937
922
  /**
938
- * App instance ID.
939
- * @format GUID
923
+ * Color hex code
924
+ * @minLength 7
925
+ * @maxLength 7
940
926
  */
941
- instanceId?: string | null;
927
+ primaryColor?: string | null;
942
928
  /**
943
- * Event type.
944
- * @maxLength 150
929
+ * Color hex code
930
+ * @minLength 7
931
+ * @maxLength 7
945
932
  */
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;
933
+ secondaryColor?: string | null;
934
+ /** Size */
935
+ size?: number | null;
953
936
  }
954
- interface IdentificationData extends IdentificationDataIdOneOf {
955
- /**
956
- * ID of a site visitor that has not logged in to the site.
957
- * @format GUID
958
- */
959
- anonymousVisitorId?: string;
937
+ interface BackgroundSetting {
960
938
  /**
961
- * ID of a site visitor that has logged in to the site.
962
- * @format GUID
939
+ * Color of the background hex code
940
+ * @minLength 7
941
+ * @maxLength 9
963
942
  */
964
- memberId?: string;
943
+ color?: string | null;
944
+ /** Wix media Image */
945
+ image?: string;
946
+ }
947
+ interface SettingsGroup {
965
948
  /**
966
- * ID of a Wix user (site owner, contributor, etc.).
967
- * @format GUID
949
+ * Id of the control group
950
+ * @minLength 5
951
+ * @maxLength 50
968
952
  */
969
- wixUserId?: string;
953
+ groupId?: string;
970
954
  /**
971
- * ID of an app.
972
- * @format GUID
955
+ * Display settings.
956
+ * @maxSize 20
973
957
  */
974
- appId?: string;
975
- /** @readonly */
976
- identityType?: WebhookIdentityTypeWithLiterals;
977
- }
978
- /** @oneof */
979
- interface IdentificationDataIdOneOf {
958
+ display?: Record<string, boolean>;
980
959
  /**
981
- * ID of a site visitor that has not logged in to the site.
982
- * @format GUID
960
+ * Texts settings.
961
+ * @maxSize 20
983
962
  */
984
- anonymousVisitorId?: string;
963
+ texts?: Record<string, TextSetting>;
985
964
  /**
986
- * ID of a site visitor that has logged in to the site.
987
- * @format GUID
965
+ * Images settings.
966
+ * @maxSize 10
988
967
  */
989
- memberId?: string;
968
+ images?: Record<string, ImageSetting>;
990
969
  /**
991
- * ID of a Wix user (site owner, contributor, etc.).
992
- * @format GUID
970
+ * Select option settings.
971
+ * @maxSize 20
993
972
  */
994
- wixUserId?: string;
973
+ selects?: Record<string, SelectSetting>;
995
974
  /**
996
- * ID of an app.
997
- * @format GUID
975
+ * Backgrounds settings.
976
+ * @maxSize 20
998
977
  */
999
- appId?: string;
978
+ backgrounds?: Record<string, BackgroundSetting>;
1000
979
  }
1001
- declare enum WebhookIdentityType {
1002
- UNKNOWN = "UNKNOWN",
1003
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1004
- MEMBER = "MEMBER",
1005
- WIX_USER = "WIX_USER",
1006
- APP = "APP"
980
+ declare enum PaperSize {
981
+ A4_PORTRAIT = "A4_PORTRAIT",
982
+ A4_LANDSCAPE = "A4_LANDSCAPE"
1007
983
  }
1008
984
  /** @enumType */
1009
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1010
- interface AccountInfo {
985
+ type PaperSizeWithLiterals = PaperSize | 'A4_PORTRAIT' | 'A4_LANDSCAPE';
986
+ declare enum PageOverflow {
987
+ CONTENT_HIDDEN = "CONTENT_HIDDEN",
988
+ CONTENT_BREAK = "CONTENT_BREAK"
989
+ }
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"
997
+ }
998
+ /** @enumType */
999
+ type RenderFormatWithLiterals = RenderFormat | 'PDF' | 'HTML';
1000
+ interface RenderDocumentByIdRequest {
1011
1001
  /**
1012
- * ID of the Wix account associated with the event.
1002
+ * Document ID.
1013
1003
  * @format GUID
1014
1004
  */
1015
- accountId?: string | null;
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 {
1016
1016
  /**
1017
- * ID of the parent Wix account. Only included when accountId belongs to a child account.
1018
- * @format GUID
1017
+ * Html Access Key.
1018
+ * @maxLength 100
1019
1019
  */
1020
- parentAccountId?: string | null;
1020
+ htmlAccessKey?: string;
1021
1021
  /**
1022
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
1022
+ * Meta Site Id.
1023
1023
  * @format GUID
1024
1024
  */
1025
- siteId?: string | null;
1025
+ metaSiteId?: string | null;
1026
1026
  }
1027
1027
  /** @docsIgnore */
1028
1028
  type DownloadDocumentApplicationErrors = {
@@ -1266,22 +1266,6 @@ 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>;
1285
1269
  /**
1286
1270
  * Creates a new Document
1287
1271
  * @public
@@ -1554,5 +1538,21 @@ interface DownloadDocumentSourceOptions {
1554
1538
  */
1555
1539
  contentDisposition?: ContentDispositionWithLiterals;
1556
1540
  }
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 };