docspring 4.3.0 → 4.5.0

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.
Files changed (145) hide show
  1. package/AGENTS.md +2 -0
  2. package/LICENSE +1 -1
  3. package/README.md +23 -1
  4. package/dist/ApiClient.js +2 -2
  5. package/dist/RequestSchemas.js +1212 -132
  6. package/dist/RequestValidator.js +4 -0
  7. package/dist/api/Client.js +1364 -207
  8. package/dist/index.js +210 -0
  9. package/dist/model/AddTemplateFieldsRequest.js +3 -3
  10. package/dist/model/AuthenticationCheck.js +1 -1
  11. package/dist/model/CombinedPdf.js +1 -1
  12. package/dist/model/CombinedPdfFiles.js +1 -1
  13. package/dist/model/CombinedPdfList.js +1 -1
  14. package/dist/model/CombinedPdfSource.js +2 -2
  15. package/dist/model/CombinedPdfSourceInput.js +2 -2
  16. package/dist/model/CombinedPdfSourcePdf.js +1 -1
  17. package/dist/model/CopyTemplateRequest.js +1 -1
  18. package/dist/model/CreateAccountEmailActionRequest.js +306 -0
  19. package/dist/model/CreateCombinedPdfRequest.js +1 -1
  20. package/dist/model/CreateCustomFileFromUploadRequest.js +1 -1
  21. package/dist/model/CreateEmailActionRequest.js +280 -0
  22. package/dist/model/CreateEmailDomainRequest.js +114 -0
  23. package/dist/model/CreateFolderRequest.js +1 -1
  24. package/dist/model/CreateSignatureRequestEventRequest.js +1 -1
  25. package/dist/model/CreateSignatureRequestTokenRequest.js +1 -1
  26. package/dist/model/CreateSubmissionBatchRequest.js +4 -4
  27. package/dist/model/CreateSubmissionRequest.js +114 -6
  28. package/dist/model/CreateTemplatePreviewRequest.js +1 -1
  29. package/dist/model/CreateTemplateRequest.js +148 -9
  30. package/dist/model/CreateWebhookRequest.js +1 -1
  31. package/dist/model/CustomFile.js +1 -1
  32. package/dist/model/CustomFileList.js +1 -1
  33. package/dist/model/CustomFileSourcePdf.js +1 -1
  34. package/dist/model/DnsRecordType.js +64 -0
  35. package/dist/model/EmailAction.js +510 -0
  36. package/dist/model/EmailActionConditions.js +142 -0
  37. package/dist/model/EmailActionConditionsInput.js +142 -0
  38. package/dist/model/EmailActionCustomization.js +222 -0
  39. package/dist/model/EmailActionDelivery.js +59 -0
  40. package/dist/model/EmailActionFileFormats.js +69 -0
  41. package/dist/model/EmailActionList.js +132 -0
  42. package/dist/model/EmailActionSetting.js +119 -0
  43. package/dist/model/EmailActionSubmissionType.js +64 -0
  44. package/dist/model/EmailActionTestEmail.js +116 -0
  45. package/dist/model/EmailDomain.js +245 -0
  46. package/dist/model/EmailDomainDnsRecord.js +155 -0
  47. package/dist/model/EmailDomainDnsRecordPurpose.js +64 -0
  48. package/dist/model/EmailDomainList.js +132 -0
  49. package/dist/model/EmailDomainRecordState.js +64 -0
  50. package/dist/model/EmailDomainState.js +64 -0
  51. package/dist/model/ErrorCode.js +10 -0
  52. package/dist/model/ErrorDetail.js +1 -1
  53. package/dist/model/ErrorInfo.js +72 -7
  54. package/dist/model/ErrorResponse.js +1 -1
  55. package/dist/model/Field.js +3 -3
  56. package/dist/model/FieldComparisonCondition.js +1 -1
  57. package/dist/model/FieldDependency.js +1 -1
  58. package/dist/model/FieldDependencyInput.js +1 -1
  59. package/dist/model/FieldEqualsCondition.js +1 -1
  60. package/dist/model/FieldGroup.js +1 -1
  61. package/dist/model/FieldGroupInput.js +1 -1
  62. package/dist/model/FieldInCondition.js +1 -1
  63. package/dist/model/FieldInput.js +2 -2
  64. package/dist/model/FieldOverride.js +1 -1
  65. package/dist/model/FieldPresenceCondition.js +1 -1
  66. package/dist/model/FieldRangeCondition.js +1 -1
  67. package/dist/model/Folder.js +1 -1
  68. package/dist/model/FolderList.js +1 -1
  69. package/dist/model/GenerateSubmissionFilesRequest.js +1 -1
  70. package/dist/model/GeneratedFile.js +1 -1
  71. package/dist/model/HtmlEngineOptions.js +9 -9
  72. package/dist/model/HtmlEngineOptionsInput.js +6 -6
  73. package/dist/model/MoveFolderRequest.js +1 -1
  74. package/dist/model/MoveTemplateRequest.js +1 -1
  75. package/dist/model/PageImage.js +1 -1
  76. package/dist/model/PageImages.js +1 -1
  77. package/dist/model/PredefinedField.js +1 -1
  78. package/dist/model/PredefinedFieldInput.js +1 -1
  79. package/dist/model/PublishTemplateVersionRequest.js +1 -1
  80. package/dist/model/RemoveTemplateFieldsRequest.js +1 -1
  81. package/dist/model/RenameFolderRequest.js +1 -1
  82. package/dist/model/ReorderTemplateFieldsRequest.js +1 -1
  83. package/dist/model/RestoreTemplateVersionRequest.js +1 -1
  84. package/dist/model/SendAccountEmailActionTestEmailRequest.js +91 -0
  85. package/dist/model/SignatureRequest.js +52 -7
  86. package/dist/model/SignatureRequestEmailAttachments.js +59 -0
  87. package/dist/model/SignatureRequestEmailStatus.js +89 -0
  88. package/dist/model/SignatureRequestEvent.js +1 -1
  89. package/dist/model/SignatureRequestEventType.js +11 -1
  90. package/dist/model/SignatureRequestInput.js +24 -8
  91. package/dist/model/SignatureRequestReminders.js +121 -0
  92. package/dist/model/SignatureRequestToken.js +1 -1
  93. package/dist/model/SigningOrder.js +59 -0
  94. package/dist/model/StringConditionType.js +36 -1
  95. package/dist/model/Submission.js +21 -9
  96. package/dist/model/SubmissionAction.js +27 -12
  97. package/dist/model/SubmissionBatch.js +1 -1
  98. package/dist/model/SubmissionFiles.js +1 -1
  99. package/dist/model/SubmissionInput.js +5 -5
  100. package/dist/model/SubmissionList.js +1 -1
  101. package/dist/model/SubmissionSourcePdf.js +1 -1
  102. package/dist/model/SubmissionSummary.js +3 -3
  103. package/dist/model/SubmissionValidation.js +1 -1
  104. package/dist/model/Template.js +189 -21
  105. package/dist/model/TemplateActor.js +1 -1
  106. package/dist/model/TemplateDefaults.js +1 -1
  107. package/dist/model/TemplateDefaultsInput.js +1 -1
  108. package/dist/model/TemplateDiff.js +1 -1
  109. package/dist/model/TemplateDiffSummary.js +1 -1
  110. package/dist/model/TemplateDocument.js +1 -1
  111. package/dist/model/TemplateDocumentSummary.js +1 -1
  112. package/dist/model/TemplateFieldChange.js +1 -1
  113. package/dist/model/TemplateFieldChanges.js +1 -1
  114. package/dist/model/TemplateFieldDependency.js +1 -1
  115. package/dist/model/TemplateFieldDependencyCondition.js +1 -1
  116. package/dist/model/TemplateFieldDependencyConditionInput.js +1 -1
  117. package/dist/model/TemplateFieldDependencyInput.js +1 -1
  118. package/dist/model/TemplateFieldMove.js +1 -1
  119. package/dist/model/TemplateFields.js +1 -1
  120. package/dist/model/TemplateFormSection.js +161 -0
  121. package/dist/model/TemplateFormSectionInput.js +157 -0
  122. package/dist/model/TemplateModelCode.js +1 -1
  123. package/dist/model/TemplatePageImages.js +1 -1
  124. package/dist/model/TemplatePageProcessingStatus.js +1 -1
  125. package/dist/model/TemplatePreview.js +1 -1
  126. package/dist/model/TemplateSourcePdf.js +2 -2
  127. package/dist/model/TemplateSummary.js +9 -9
  128. package/dist/model/TemplateSummaryList.js +1 -1
  129. package/dist/model/TemplateType.js +6 -1
  130. package/dist/model/TemplateVersion.js +1 -1
  131. package/dist/model/UpdateAccountEmailActionRequest.js +306 -0
  132. package/dist/model/UpdateEmailActionCustomizationRequest.js +258 -0
  133. package/dist/model/UpdateEmailActionRequest.js +280 -0
  134. package/dist/model/UpdateSignatureRequestRequest.js +1 -1
  135. package/dist/model/UpdateTemplateDocumentRequest.js +2 -2
  136. package/dist/model/UpdateTemplateFieldsRequest.js +1 -1
  137. package/dist/model/UpdateTemplateRequest.js +173 -12
  138. package/dist/model/UpdateWebhookRequest.js +1 -1
  139. package/dist/model/UploadPresign.js +1 -1
  140. package/dist/model/UrlSourcePdf.js +1 -1
  141. package/dist/model/ValidateSubmissionRequest.js +114 -6
  142. package/dist/model/Webhook.js +1 -1
  143. package/dist/model/WebhookEventType.js +10 -0
  144. package/dist/model/WebhookList.js +1 -1
  145. package/package.json +1 -1
@@ -297,7 +297,7 @@ var _default = exports["default"] = {
297
297
  },
298
298
  "string_condition_type": {
299
299
  "type": "string",
300
- "enum": ["equals", "contains", "starts_with", "ends_with", "regex"]
300
+ "enum": ["equals", "not_equals", "contains", "not_contains", "starts_with", "not_starts_with", "ends_with", "not_ends_with", "regex", "not_regex", "blank", "not_blank"]
301
301
  },
302
302
  "number_condition_type": {
303
303
  "type": "string",
@@ -391,16 +391,18 @@ var _default = exports["default"] = {
391
391
  "properties": {
392
392
  "name": {
393
393
  "type": "string",
394
- "minLength": 1,
395
- "maxLength": 512
394
+ "maxLength": 512,
395
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
396
+ "x-pattern-message": "can't be blank"
396
397
  },
397
398
  "parent_folder_id": {
398
399
  "type": ["string", "null"],
399
- "minLength": 1
400
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
401
+ "x-pattern-message": "can't be blank"
400
402
  },
401
403
  "version": {
402
404
  "type": "string",
403
- "pattern": "^\\d+(\\.\\d+(\\.\\d+)?)?$",
405
+ "pattern": "^(0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}$",
404
406
  "x-pattern-message": "must be a published version like 1.2.3 or 1"
405
407
  }
406
408
  },
@@ -408,6 +410,146 @@ var _default = exports["default"] = {
408
410
  }
409
411
  }
410
412
  },
413
+ "createAccountEmailAction": {
414
+ "body": {
415
+ "mediaType": "application/json",
416
+ "required": true,
417
+ "schema": {
418
+ "type": "object",
419
+ "properties": {
420
+ "template_ids": {
421
+ "type": "array",
422
+ "maxItems": 500,
423
+ "items": {
424
+ "type": "string",
425
+ "maxLength": 255,
426
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
427
+ "x-pattern-message": "can't be blank"
428
+ }
429
+ },
430
+ "folder_ids": {
431
+ "type": "array",
432
+ "maxItems": 500,
433
+ "items": {
434
+ "type": "string",
435
+ "maxLength": 255,
436
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
437
+ "x-pattern-message": "can't be blank"
438
+ }
439
+ },
440
+ "name": {
441
+ "type": ["string", "null"],
442
+ "maxLength": 512
443
+ },
444
+ "enabled": {
445
+ "type": "boolean"
446
+ },
447
+ "to": {
448
+ "type": "array",
449
+ "maxItems": 10,
450
+ "items": {
451
+ "type": "string",
452
+ "maxLength": 512
453
+ }
454
+ },
455
+ "cc": {
456
+ "type": "array",
457
+ "maxItems": 10,
458
+ "items": {
459
+ "type": "string",
460
+ "maxLength": 512
461
+ }
462
+ },
463
+ "bcc": {
464
+ "type": "array",
465
+ "maxItems": 10,
466
+ "items": {
467
+ "type": "string",
468
+ "maxLength": 512
469
+ }
470
+ },
471
+ "from_name": {
472
+ "type": ["string", "null"],
473
+ "maxLength": 64
474
+ },
475
+ "from_address": {
476
+ "type": ["string", "null"],
477
+ "maxLength": 254
478
+ },
479
+ "reply_to": {
480
+ "type": ["string", "null"],
481
+ "maxLength": 254
482
+ },
483
+ "subject": {
484
+ "type": ["string", "null"],
485
+ "maxLength": 200
486
+ },
487
+ "message": {
488
+ "type": ["string", "null"],
489
+ "maxLength": 2000
490
+ },
491
+ "file_name": {
492
+ "type": ["string", "null"],
493
+ "maxLength": 200
494
+ },
495
+ "file_formats": {
496
+ "type": "string",
497
+ "enum": ["docx", "odt", "pdf", "all"]
498
+ },
499
+ "delivery": {
500
+ "type": "string",
501
+ "enum": ["attachment", "link"]
502
+ },
503
+ "max_attachment_mb": {
504
+ "type": "integer",
505
+ "minimum": 1,
506
+ "maximum": 25
507
+ },
508
+ "submission_type": {
509
+ "type": "string",
510
+ "enum": ["live", "test", "all"]
511
+ },
512
+ "send_when": {
513
+ "type": ["object", "null"],
514
+ "required": ["conditions"],
515
+ "properties": {
516
+ "match": {
517
+ "type": "string",
518
+ "enum": ["all", "any"]
519
+ },
520
+ "conditions": {
521
+ "type": "array",
522
+ "items": {
523
+ "oneOf": [{
524
+ "$ref": "#/components/schemas/FieldPresenceCondition"
525
+ }, {
526
+ "$ref": "#/components/schemas/FieldEqualsCondition"
527
+ }, {
528
+ "$ref": "#/components/schemas/FieldInCondition"
529
+ }, {
530
+ "$ref": "#/components/schemas/FieldComparisonCondition"
531
+ }, {
532
+ "$ref": "#/components/schemas/FieldRangeCondition"
533
+ }],
534
+ "discriminator": {
535
+ "propertyName": "operator",
536
+ "mapping": [["present", "#/components/schemas/FieldPresenceCondition"], ["blank", "#/components/schemas/FieldPresenceCondition"], ["equals", "#/components/schemas/FieldEqualsCondition"], ["not_equals", "#/components/schemas/FieldEqualsCondition"], ["in", "#/components/schemas/FieldInCondition"], ["gt", "#/components/schemas/FieldComparisonCondition"], ["gte", "#/components/schemas/FieldComparisonCondition"], ["lt", "#/components/schemas/FieldComparisonCondition"], ["lte", "#/components/schemas/FieldComparisonCondition"], ["range", "#/components/schemas/FieldRangeCondition"]]
537
+ }
538
+ },
539
+ "minItems": 1,
540
+ "maxItems": 20
541
+ }
542
+ },
543
+ "additionalProperties": false
544
+ },
545
+ "failure_notifications_enabled": {
546
+ "type": "boolean"
547
+ }
548
+ },
549
+ "additionalProperties": false
550
+ }
551
+ }
552
+ },
411
553
  "createCombinedPdf": {
412
554
  "query": {
413
555
  "wait": {
@@ -475,10 +617,148 @@ var _default = exports["default"] = {
475
617
  "properties": {
476
618
  "cache_id": {
477
619
  "type": "string",
478
- "minLength": 1,
479
- "maxLength": 255
620
+ "maxLength": 255,
621
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
622
+ "x-pattern-message": "can't be blank"
623
+ }
624
+ },
625
+ "additionalProperties": false
626
+ }
627
+ }
628
+ },
629
+ "createEmailAction": {
630
+ "body": {
631
+ "mediaType": "application/json",
632
+ "required": true,
633
+ "schema": {
634
+ "type": "object",
635
+ "properties": {
636
+ "name": {
637
+ "type": ["string", "null"],
638
+ "maxLength": 512
639
+ },
640
+ "enabled": {
641
+ "type": "boolean"
642
+ },
643
+ "to": {
644
+ "type": "array",
645
+ "maxItems": 10,
646
+ "items": {
647
+ "type": "string",
648
+ "maxLength": 512
649
+ }
650
+ },
651
+ "cc": {
652
+ "type": "array",
653
+ "maxItems": 10,
654
+ "items": {
655
+ "type": "string",
656
+ "maxLength": 512
657
+ }
658
+ },
659
+ "bcc": {
660
+ "type": "array",
661
+ "maxItems": 10,
662
+ "items": {
663
+ "type": "string",
664
+ "maxLength": 512
665
+ }
666
+ },
667
+ "from_name": {
668
+ "type": ["string", "null"],
669
+ "maxLength": 64
670
+ },
671
+ "from_address": {
672
+ "type": ["string", "null"],
673
+ "maxLength": 254
674
+ },
675
+ "reply_to": {
676
+ "type": ["string", "null"],
677
+ "maxLength": 254
678
+ },
679
+ "subject": {
680
+ "type": ["string", "null"],
681
+ "maxLength": 200
682
+ },
683
+ "message": {
684
+ "type": ["string", "null"],
685
+ "maxLength": 2000
686
+ },
687
+ "file_name": {
688
+ "type": ["string", "null"],
689
+ "maxLength": 200
690
+ },
691
+ "file_formats": {
692
+ "type": "string",
693
+ "enum": ["docx", "odt", "pdf", "all"]
694
+ },
695
+ "delivery": {
696
+ "type": "string",
697
+ "enum": ["attachment", "link"]
698
+ },
699
+ "max_attachment_mb": {
700
+ "type": "integer",
701
+ "minimum": 1,
702
+ "maximum": 25
703
+ },
704
+ "submission_type": {
705
+ "type": "string",
706
+ "enum": ["live", "test", "all"]
707
+ },
708
+ "send_when": {
709
+ "type": ["object", "null"],
710
+ "required": ["conditions"],
711
+ "properties": {
712
+ "match": {
713
+ "type": "string",
714
+ "enum": ["all", "any"]
715
+ },
716
+ "conditions": {
717
+ "type": "array",
718
+ "items": {
719
+ "oneOf": [{
720
+ "$ref": "#/components/schemas/FieldPresenceCondition"
721
+ }, {
722
+ "$ref": "#/components/schemas/FieldEqualsCondition"
723
+ }, {
724
+ "$ref": "#/components/schemas/FieldInCondition"
725
+ }, {
726
+ "$ref": "#/components/schemas/FieldComparisonCondition"
727
+ }, {
728
+ "$ref": "#/components/schemas/FieldRangeCondition"
729
+ }],
730
+ "discriminator": {
731
+ "propertyName": "operator",
732
+ "mapping": [["present", "#/components/schemas/FieldPresenceCondition"], ["blank", "#/components/schemas/FieldPresenceCondition"], ["equals", "#/components/schemas/FieldEqualsCondition"], ["not_equals", "#/components/schemas/FieldEqualsCondition"], ["in", "#/components/schemas/FieldInCondition"], ["gt", "#/components/schemas/FieldComparisonCondition"], ["gte", "#/components/schemas/FieldComparisonCondition"], ["lt", "#/components/schemas/FieldComparisonCondition"], ["lte", "#/components/schemas/FieldComparisonCondition"], ["range", "#/components/schemas/FieldRangeCondition"]]
733
+ }
734
+ },
735
+ "minItems": 1,
736
+ "maxItems": 20
737
+ }
738
+ },
739
+ "additionalProperties": false
740
+ },
741
+ "failure_notifications_enabled": {
742
+ "type": "boolean"
743
+ }
744
+ },
745
+ "additionalProperties": false
746
+ }
747
+ }
748
+ },
749
+ "createEmailDomain": {
750
+ "body": {
751
+ "mediaType": "application/json",
752
+ "required": true,
753
+ "schema": {
754
+ "type": "object",
755
+ "properties": {
756
+ "domain": {
757
+ "type": "string",
758
+ "maxLength": 253
480
759
  }
481
760
  },
761
+ "required": ["domain"],
482
762
  "additionalProperties": false
483
763
  }
484
764
  }
@@ -499,7 +779,8 @@ var _default = exports["default"] = {
499
779
  },
500
780
  "parent_folder_id": {
501
781
  "type": ["string", "null"],
502
- "minLength": 1
782
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
783
+ "x-pattern-message": "can't be blank"
503
784
  }
504
785
  },
505
786
  "required": ["name"],
@@ -558,7 +839,7 @@ var _default = exports["default"] = {
558
839
  "required": false,
559
840
  "schema": {
560
841
  "type": "string",
561
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
842
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
562
843
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
563
844
  }
564
845
  },
@@ -629,7 +910,9 @@ var _default = exports["default"] = {
629
910
  },
630
911
  "email": {
631
912
  "type": ["string", "null"],
632
- "maxLength": 254
913
+ "maxLength": 254,
914
+ "pattern": "^[^ \t\n\x0B\f\r@]+@[^ \t\n\x0B\f\r@]+$",
915
+ "x-pattern-message": "must be an email address, like name@example.com"
633
916
  },
634
917
  "fields": {
635
918
  "type": "array",
@@ -680,11 +963,75 @@ var _default = exports["default"] = {
680
963
  },
681
964
  "prefilled_values_editable": {
682
965
  "type": "boolean"
966
+ },
967
+ "send_email": {
968
+ "type": "boolean"
969
+ },
970
+ "signing_step": {
971
+ "type": "integer",
972
+ "minimum": 1,
973
+ "maximum": 100
683
974
  }
684
975
  },
685
- "required": ["fields", "auth_type"],
976
+ "required": ["fields"],
686
977
  "additionalProperties": false
687
978
  }
979
+ },
980
+ "send_email": {
981
+ "type": "boolean"
982
+ },
983
+ "signing_order": {
984
+ "type": "string",
985
+ "enum": ["parallel", "sequential"]
986
+ },
987
+ "email_subject": {
988
+ "type": "string",
989
+ "minLength": 1,
990
+ "maxLength": 200
991
+ },
992
+ "email_message": {
993
+ "type": "string",
994
+ "minLength": 1,
995
+ "maxLength": 2000
996
+ },
997
+ "cc": {
998
+ "type": "array",
999
+ "maxItems": 10,
1000
+ "uniqueItems": true,
1001
+ "items": {
1002
+ "type": "string"
1003
+ }
1004
+ },
1005
+ "reply_to": {
1006
+ "type": "string"
1007
+ },
1008
+ "notification_emails": {
1009
+ "type": "array",
1010
+ "maxItems": 10,
1011
+ "uniqueItems": true,
1012
+ "items": {
1013
+ "type": "string"
1014
+ }
1015
+ },
1016
+ "notify_when_signed": {
1017
+ "type": "boolean"
1018
+ },
1019
+ "reminders": {
1020
+ "type": "object",
1021
+ "additionalProperties": false,
1022
+ "required": ["interval_days", "max_count"],
1023
+ "properties": {
1024
+ "interval_days": {
1025
+ "type": "integer",
1026
+ "minimum": 1,
1027
+ "maximum": 30
1028
+ },
1029
+ "max_count": {
1030
+ "type": "integer",
1031
+ "minimum": 1,
1032
+ "maximum": 10
1033
+ }
1034
+ }
688
1035
  }
689
1036
  },
690
1037
  "additionalProperties": false
@@ -710,11 +1057,13 @@ var _default = exports["default"] = {
710
1057
  "type": "object"
711
1058
  },
712
1059
  "template_id": {
713
- "type": "string"
1060
+ "type": "string",
1061
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
1062
+ "x-pattern-message": "can't be blank"
714
1063
  },
715
1064
  "template_version": {
716
1065
  "type": "string",
717
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
1066
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
718
1067
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
719
1068
  },
720
1069
  "test": {
@@ -779,11 +1128,13 @@ var _default = exports["default"] = {
779
1128
  "type": "string"
780
1129
  },
781
1130
  "template_id": {
782
- "type": "string"
1131
+ "type": "string",
1132
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
1133
+ "x-pattern-message": "can't be blank"
783
1134
  },
784
1135
  "template_version": {
785
1136
  "type": "string",
786
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
1137
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
787
1138
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
788
1139
  }
789
1140
  },
@@ -813,15 +1164,16 @@ var _default = exports["default"] = {
813
1164
  "properties": {
814
1165
  "name": {
815
1166
  "type": "string",
816
- "minLength": 1,
817
- "maxLength": 512
1167
+ "maxLength": 512,
1168
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
1169
+ "x-pattern-message": "can't be blank"
818
1170
  },
819
1171
  "description": {
820
1172
  "type": ["string", "null"]
821
1173
  },
822
1174
  "template_type": {
823
1175
  "type": "string",
824
- "enum": ["pdf", "html", "docx"]
1176
+ "enum": ["pdf", "html", "docx", "page_designer"]
825
1177
  },
826
1178
  "output_format": {
827
1179
  "type": "string",
@@ -829,7 +1181,8 @@ var _default = exports["default"] = {
829
1181
  },
830
1182
  "parent_folder_id": {
831
1183
  "type": ["string", "null"],
832
- "minLength": 1
1184
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
1185
+ "x-pattern-message": "can't be blank"
833
1186
  },
834
1187
  "locked": {
835
1188
  "type": "boolean"
@@ -903,8 +1256,47 @@ var _default = exports["default"] = {
903
1256
  "type": "boolean"
904
1257
  },
905
1258
  "redirect_url": {
1259
+ "type": ["string", "null"]
1260
+ },
1261
+ "signature_request_email_attachments": {
906
1262
  "type": ["string", "null"],
907
- "format": "uri"
1263
+ "enum": ["attachment", "link", null]
1264
+ },
1265
+ "signature_request_from_address": {
1266
+ "type": ["string", "null"]
1267
+ },
1268
+ "signature_request_include_signing_token": {
1269
+ "type": "boolean"
1270
+ },
1271
+ "signature_request_from_name": {
1272
+ "type": ["string", "null"],
1273
+ "maxLength": 64
1274
+ },
1275
+ "signature_request_notification_emails": {
1276
+ "type": "array",
1277
+ "maxItems": 10,
1278
+ "uniqueItems": true,
1279
+ "items": {
1280
+ "type": "string"
1281
+ }
1282
+ },
1283
+ "signature_request_reply_to": {
1284
+ "type": ["string", "null"]
1285
+ },
1286
+ "signature_request_signing_url": {
1287
+ "type": ["string", "null"],
1288
+ "maxLength": 2048
1289
+ },
1290
+ "success_title": {
1291
+ "type": ["string", "null"],
1292
+ "maxLength": 512
1293
+ },
1294
+ "success_message": {
1295
+ "type": ["string", "null"],
1296
+ "maxLength": 5000
1297
+ },
1298
+ "show_fill_again_button": {
1299
+ "type": "boolean"
908
1300
  },
909
1301
  "slack_webhook_url": {
910
1302
  "type": ["string", "null"],
@@ -1112,7 +1504,8 @@ var _default = exports["default"] = {
1112
1504
  },
1113
1505
  "scale": {
1114
1506
  "type": "number",
1115
- "exclusiveMinimum": 0
1507
+ "minimum": 0.1,
1508
+ "maximum": 2
1116
1509
  },
1117
1510
  "landscape": {
1118
1511
  "type": "boolean"
@@ -1138,10 +1531,14 @@ var _default = exports["default"] = {
1138
1531
  "html_escape_data": {
1139
1532
  "type": "boolean"
1140
1533
  },
1534
+ "layout": {
1535
+ "type": ["object", "null"]
1536
+ },
1141
1537
  "cache_id": {
1142
1538
  "type": "string",
1143
- "minLength": 1,
1144
- "maxLength": 255
1539
+ "maxLength": 255,
1540
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
1541
+ "x-pattern-message": "can't be blank"
1145
1542
  },
1146
1543
  "document_url": {
1147
1544
  "type": "string",
@@ -1156,8 +1553,9 @@ var _default = exports["default"] = {
1156
1553
  },
1157
1554
  "filename": {
1158
1555
  "type": "string",
1159
- "minLength": 1,
1160
- "maxLength": 255
1556
+ "maxLength": 255,
1557
+ "pattern": "^[^/\\\\]*[^/\\\\ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000][^/\\\\]*$",
1558
+ "x-pattern-message": "can't be blank or contain a slash (/ or \\)"
1161
1559
  },
1162
1560
  "detect_fields": {
1163
1561
  "type": "boolean"
@@ -1173,6 +1571,9 @@ var _default = exports["default"] = {
1173
1571
  "field_logic": {
1174
1572
  "type": "string",
1175
1573
  "enum": ["ai", "none"]
1574
+ },
1575
+ "include_office_use_fields": {
1576
+ "type": "boolean"
1176
1577
  }
1177
1578
  },
1178
1579
  "required": ["template_type"],
@@ -1186,7 +1587,7 @@ var _default = exports["default"] = {
1186
1587
  "required": false,
1187
1588
  "schema": {
1188
1589
  "type": "string",
1189
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
1590
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
1190
1591
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
1191
1592
  }
1192
1593
  }
@@ -1230,7 +1631,7 @@ var _default = exports["default"] = {
1230
1631
  "uniqueItems": true,
1231
1632
  "items": {
1232
1633
  "type": "string",
1233
- "enum": ["submission.processed", "submission.failed", "submission.declined", "signature_request.viewed", "signature_request.completed", "signature_request.declined", "combined_pdf.processed", "combined_pdf.failed", "submission_batch.processed", "submission_batch.failed", "submission.created", "submission.updated", "submission.expired", "signature_request.updated", "combined_pdf.expired", "template.created", "template.updated", "template.deleted", "webhook.created", "webhook.updated", "webhook.deleted", "custom_file.created", "folder.created", "folder.updated", "folder.deleted"]
1634
+ "enum": ["submission.processed", "submission.failed", "submission.declined", "signature_request.sent", "signature_request.viewed", "signature_request.completed", "signature_request.declined", "signature_request.email_bounced", "combined_pdf.processed", "combined_pdf.failed", "submission_batch.processed", "submission_batch.failed", "submission.created", "submission.updated", "submission.expired", "signature_request.updated", "combined_pdf.expired", "template.created", "template.updated", "template.deleted", "webhook.created", "webhook.updated", "webhook.deleted", "custom_file.created", "folder.created", "folder.updated", "folder.deleted"]
1234
1635
  }
1235
1636
  },
1236
1637
  "mode": {
@@ -1241,21 +1642,27 @@ var _default = exports["default"] = {
1241
1642
  "type": "array",
1242
1643
  "uniqueItems": true,
1243
1644
  "items": {
1244
- "type": "string"
1645
+ "type": "string",
1646
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
1647
+ "x-pattern-message": "can't be blank"
1245
1648
  }
1246
1649
  },
1247
1650
  "template_ids": {
1248
1651
  "type": "array",
1249
1652
  "uniqueItems": true,
1250
1653
  "items": {
1251
- "type": "string"
1654
+ "type": "string",
1655
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
1656
+ "x-pattern-message": "can't be blank"
1252
1657
  }
1253
1658
  },
1254
1659
  "folder_ids": {
1255
1660
  "type": "array",
1256
1661
  "uniqueItems": true,
1257
1662
  "items": {
1258
- "type": "string"
1663
+ "type": "string",
1664
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
1665
+ "x-pattern-message": "can't be blank"
1259
1666
  }
1260
1667
  },
1261
1668
  "include_submission_data": {
@@ -1279,7 +1686,11 @@ var _default = exports["default"] = {
1279
1686
  }
1280
1687
  }
1281
1688
  },
1689
+ "deleteAccountEmailAction": {},
1282
1690
  "deleteCustomFile": {},
1691
+ "deleteEmailAction": {},
1692
+ "deleteEmailActionCustomization": {},
1693
+ "deleteEmailDomain": {},
1283
1694
  "deleteFolder": {},
1284
1695
  "deleteTemplate": {
1285
1696
  "query": {
@@ -1287,7 +1698,7 @@ var _default = exports["default"] = {
1287
1698
  "required": false,
1288
1699
  "schema": {
1289
1700
  "type": "string",
1290
- "pattern": "^(\\d+\\.\\d+\\.\\d+|draft)$",
1701
+ "pattern": "^((0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)|draft)$",
1291
1702
  "x-pattern-message": "must be a full version like 1.2.3, or draft"
1292
1703
  }
1293
1704
  }
@@ -1327,8 +1738,11 @@ var _default = exports["default"] = {
1327
1738
  }
1328
1739
  },
1329
1740
  "generateSubmissionPreview": {},
1741
+ "getAccountEmailAction": {},
1330
1742
  "getCombinedPdf": {},
1331
1743
  "getCustomFile": {},
1744
+ "getEmailAction": {},
1745
+ "getEmailDomain": {},
1332
1746
  "getFolder": {},
1333
1747
  "getPresignUrl": {},
1334
1748
  "getSignatureRequest": {},
@@ -1349,7 +1763,7 @@ var _default = exports["default"] = {
1349
1763
  "required": false,
1350
1764
  "schema": {
1351
1765
  "type": "string",
1352
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
1766
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
1353
1767
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
1354
1768
  }
1355
1769
  }
@@ -1361,7 +1775,7 @@ var _default = exports["default"] = {
1361
1775
  "required": false,
1362
1776
  "schema": {
1363
1777
  "type": "string",
1364
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
1778
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
1365
1779
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
1366
1780
  }
1367
1781
  }
@@ -1373,7 +1787,7 @@ var _default = exports["default"] = {
1373
1787
  "required": false,
1374
1788
  "schema": {
1375
1789
  "type": "string",
1376
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
1790
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
1377
1791
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
1378
1792
  }
1379
1793
  },
@@ -1398,7 +1812,7 @@ var _default = exports["default"] = {
1398
1812
  "required": false,
1399
1813
  "schema": {
1400
1814
  "type": "string",
1401
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
1815
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
1402
1816
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
1403
1817
  }
1404
1818
  }
@@ -1411,13 +1825,33 @@ var _default = exports["default"] = {
1411
1825
  "required": false,
1412
1826
  "schema": {
1413
1827
  "type": "string",
1414
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
1828
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
1415
1829
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
1416
1830
  }
1417
1831
  }
1418
1832
  }
1419
1833
  },
1420
1834
  "getWebhook": {},
1835
+ "listAccountEmailActions": {
1836
+ "query": {
1837
+ "limit": {
1838
+ "required": false,
1839
+ "schema": {
1840
+ "type": "integer",
1841
+ "minimum": 1,
1842
+ "maximum": 100
1843
+ }
1844
+ },
1845
+ "cursor": {
1846
+ "required": false,
1847
+ "schema": {
1848
+ "type": "string",
1849
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
1850
+ "x-pattern-message": "can't be blank"
1851
+ }
1852
+ }
1853
+ }
1854
+ },
1421
1855
  "listCombinedPdfs": {
1422
1856
  "query": {
1423
1857
  "limit": {
@@ -1431,7 +1865,9 @@ var _default = exports["default"] = {
1431
1865
  "cursor": {
1432
1866
  "required": false,
1433
1867
  "schema": {
1434
- "type": "string"
1868
+ "type": "string",
1869
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
1870
+ "x-pattern-message": "can't be blank"
1435
1871
  }
1436
1872
  }
1437
1873
  }
@@ -1449,7 +1885,49 @@ var _default = exports["default"] = {
1449
1885
  "cursor": {
1450
1886
  "required": false,
1451
1887
  "schema": {
1452
- "type": "string"
1888
+ "type": "string",
1889
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
1890
+ "x-pattern-message": "can't be blank"
1891
+ }
1892
+ }
1893
+ }
1894
+ },
1895
+ "listEmailActions": {
1896
+ "query": {
1897
+ "limit": {
1898
+ "required": false,
1899
+ "schema": {
1900
+ "type": "integer",
1901
+ "minimum": 1,
1902
+ "maximum": 100
1903
+ }
1904
+ },
1905
+ "cursor": {
1906
+ "required": false,
1907
+ "schema": {
1908
+ "type": "string",
1909
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
1910
+ "x-pattern-message": "can't be blank"
1911
+ }
1912
+ }
1913
+ }
1914
+ },
1915
+ "listEmailDomains": {
1916
+ "query": {
1917
+ "limit": {
1918
+ "required": false,
1919
+ "schema": {
1920
+ "type": "integer",
1921
+ "minimum": 1,
1922
+ "maximum": 100
1923
+ }
1924
+ },
1925
+ "cursor": {
1926
+ "required": false,
1927
+ "schema": {
1928
+ "type": "string",
1929
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
1930
+ "x-pattern-message": "can't be blank"
1453
1931
  }
1454
1932
  }
1455
1933
  }
@@ -1459,7 +1937,9 @@ var _default = exports["default"] = {
1459
1937
  "parent_folder_id": {
1460
1938
  "required": false,
1461
1939
  "schema": {
1462
- "type": "string"
1940
+ "type": "string",
1941
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
1942
+ "x-pattern-message": "can't be blank"
1463
1943
  }
1464
1944
  },
1465
1945
  "limit": {
@@ -1473,7 +1953,9 @@ var _default = exports["default"] = {
1473
1953
  "cursor": {
1474
1954
  "required": false,
1475
1955
  "schema": {
1476
- "type": "string"
1956
+ "type": "string",
1957
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
1958
+ "x-pattern-message": "can't be blank"
1477
1959
  }
1478
1960
  }
1479
1961
  }
@@ -1483,7 +1965,9 @@ var _default = exports["default"] = {
1483
1965
  "template_id": {
1484
1966
  "required": false,
1485
1967
  "schema": {
1486
- "type": "string"
1968
+ "type": "string",
1969
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
1970
+ "x-pattern-message": "can't be blank"
1487
1971
  }
1488
1972
  },
1489
1973
  "test": {
@@ -1523,7 +2007,9 @@ var _default = exports["default"] = {
1523
2007
  "cursor": {
1524
2008
  "required": false,
1525
2009
  "schema": {
1526
- "type": "string"
2010
+ "type": "string",
2011
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
2012
+ "x-pattern-message": "can't be blank"
1527
2013
  }
1528
2014
  },
1529
2015
  "state": {
@@ -1547,7 +2033,7 @@ var _default = exports["default"] = {
1547
2033
  "required": false,
1548
2034
  "schema": {
1549
2035
  "type": "string",
1550
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2036
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
1551
2037
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
1552
2038
  }
1553
2039
  }
@@ -1592,7 +2078,9 @@ var _default = exports["default"] = {
1592
2078
  "cursor": {
1593
2079
  "required": false,
1594
2080
  "schema": {
1595
- "type": "string"
2081
+ "type": "string",
2082
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
2083
+ "x-pattern-message": "can't be blank"
1596
2084
  }
1597
2085
  },
1598
2086
  "state": {
@@ -1615,13 +2103,17 @@ var _default = exports["default"] = {
1615
2103
  "query": {
1616
2104
  "required": false,
1617
2105
  "schema": {
1618
- "type": "string"
2106
+ "type": "string",
2107
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
2108
+ "x-pattern-message": "can't be blank"
1619
2109
  }
1620
2110
  },
1621
2111
  "parent_folder_id": {
1622
2112
  "required": false,
1623
2113
  "schema": {
1624
- "type": "string"
2114
+ "type": "string",
2115
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
2116
+ "x-pattern-message": "can't be blank"
1625
2117
  }
1626
2118
  },
1627
2119
  "limit": {
@@ -1635,7 +2127,9 @@ var _default = exports["default"] = {
1635
2127
  "cursor": {
1636
2128
  "required": false,
1637
2129
  "schema": {
1638
- "type": "string"
2130
+ "type": "string",
2131
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
2132
+ "x-pattern-message": "can't be blank"
1639
2133
  }
1640
2134
  }
1641
2135
  }
@@ -1646,7 +2140,7 @@ var _default = exports["default"] = {
1646
2140
  "required": false,
1647
2141
  "schema": {
1648
2142
  "type": "string",
1649
- "enum": ["submission.processed", "submission.failed", "submission.declined", "signature_request.viewed", "signature_request.completed", "signature_request.declined", "combined_pdf.processed", "combined_pdf.failed", "submission_batch.processed", "submission_batch.failed", "submission.created", "submission.updated", "submission.expired", "signature_request.updated", "combined_pdf.expired", "template.created", "template.updated", "template.deleted", "webhook.created", "webhook.updated", "webhook.deleted", "custom_file.created", "folder.created", "folder.updated", "folder.deleted"]
2143
+ "enum": ["submission.processed", "submission.failed", "submission.declined", "signature_request.sent", "signature_request.viewed", "signature_request.completed", "signature_request.declined", "signature_request.email_bounced", "combined_pdf.processed", "combined_pdf.failed", "submission_batch.processed", "submission_batch.failed", "submission.created", "submission.updated", "submission.expired", "signature_request.updated", "combined_pdf.expired", "template.created", "template.updated", "template.deleted", "webhook.created", "webhook.updated", "webhook.deleted", "custom_file.created", "folder.created", "folder.updated", "folder.deleted"]
1650
2144
  }
1651
2145
  },
1652
2146
  "mode": {
@@ -1659,19 +2153,25 @@ var _default = exports["default"] = {
1659
2153
  "template_id": {
1660
2154
  "required": false,
1661
2155
  "schema": {
1662
- "type": "string"
2156
+ "type": "string",
2157
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
2158
+ "x-pattern-message": "can't be blank"
1663
2159
  }
1664
2160
  },
1665
2161
  "folder_id": {
1666
2162
  "required": false,
1667
2163
  "schema": {
1668
- "type": "string"
2164
+ "type": "string",
2165
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
2166
+ "x-pattern-message": "can't be blank"
1669
2167
  }
1670
2168
  },
1671
2169
  "api_token_id": {
1672
2170
  "required": false,
1673
2171
  "schema": {
1674
- "type": "string"
2172
+ "type": "string",
2173
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
2174
+ "x-pattern-message": "can't be blank"
1675
2175
  }
1676
2176
  },
1677
2177
  "limit": {
@@ -1685,7 +2185,9 @@ var _default = exports["default"] = {
1685
2185
  "cursor": {
1686
2186
  "required": false,
1687
2187
  "schema": {
1688
- "type": "string"
2188
+ "type": "string",
2189
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
2190
+ "x-pattern-message": "can't be blank"
1689
2191
  }
1690
2192
  }
1691
2193
  }
@@ -1699,7 +2201,8 @@ var _default = exports["default"] = {
1699
2201
  "properties": {
1700
2202
  "parent_folder_id": {
1701
2203
  "type": ["string", "null"],
1702
- "minLength": 1
2204
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
2205
+ "x-pattern-message": "can't be blank"
1703
2206
  }
1704
2207
  },
1705
2208
  "required": ["parent_folder_id"],
@@ -1717,7 +2220,8 @@ var _default = exports["default"] = {
1717
2220
  "properties": {
1718
2221
  "parent_folder_id": {
1719
2222
  "type": ["string", "null"],
1720
- "minLength": 1
2223
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
2224
+ "x-pattern-message": "can't be blank"
1721
2225
  }
1722
2226
  },
1723
2227
  "additionalProperties": false
@@ -1736,95 +2240,489 @@ var _default = exports["default"] = {
1736
2240
  "type": "string",
1737
2241
  "enum": ["major", "minor", "patch"]
1738
2242
  },
1739
- "description": {
1740
- "type": "string",
1741
- "maxLength": 500
2243
+ "description": {
2244
+ "type": "string",
2245
+ "maxLength": 500
2246
+ }
2247
+ },
2248
+ "additionalProperties": false
2249
+ }
2250
+ }
2251
+ },
2252
+ "removeTemplateFields": {
2253
+ "body": {
2254
+ "mediaType": "application/json",
2255
+ "required": true,
2256
+ "schema": {
2257
+ "type": "object",
2258
+ "required": ["field_ids"],
2259
+ "properties": {
2260
+ "field_ids": {
2261
+ "type": "array",
2262
+ "minItems": 1,
2263
+ "maxItems": 1000,
2264
+ "items": {
2265
+ "type": "integer"
2266
+ }
2267
+ }
2268
+ },
2269
+ "additionalProperties": false
2270
+ }
2271
+ }
2272
+ },
2273
+ "renameFolder": {
2274
+ "body": {
2275
+ "mediaType": "application/json",
2276
+ "required": true,
2277
+ "schema": {
2278
+ "type": "object",
2279
+ "properties": {
2280
+ "name": {
2281
+ "type": "string",
2282
+ "minLength": 1,
2283
+ "maxLength": 255,
2284
+ "pattern": "^[^/]*$",
2285
+ "x-pattern-message": "can't contain a slash (/)"
2286
+ }
2287
+ },
2288
+ "required": ["name"],
2289
+ "additionalProperties": false
2290
+ }
2291
+ }
2292
+ },
2293
+ "reorderTemplateFields": {
2294
+ "body": {
2295
+ "mediaType": "application/json",
2296
+ "required": true,
2297
+ "schema": {
2298
+ "type": "object",
2299
+ "required": ["field_ids"],
2300
+ "properties": {
2301
+ "field_ids": {
2302
+ "type": "array",
2303
+ "minItems": 1,
2304
+ "items": {
2305
+ "type": "integer"
2306
+ }
2307
+ }
2308
+ },
2309
+ "additionalProperties": false
2310
+ }
2311
+ }
2312
+ },
2313
+ "restoreTemplateVersion": {
2314
+ "body": {
2315
+ "mediaType": "application/json",
2316
+ "required": true,
2317
+ "schema": {
2318
+ "type": "object",
2319
+ "required": ["version"],
2320
+ "properties": {
2321
+ "version": {
2322
+ "type": "string",
2323
+ "pattern": "^(0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}$",
2324
+ "x-pattern-message": "must be a published version like 1.2.3 or 1"
2325
+ }
2326
+ },
2327
+ "additionalProperties": false
2328
+ }
2329
+ }
2330
+ },
2331
+ "sendAccountEmailActionTestEmail": {
2332
+ "body": {
2333
+ "mediaType": "application/json",
2334
+ "required": false,
2335
+ "schema": {
2336
+ "type": "object",
2337
+ "properties": {
2338
+ "template_id": {
2339
+ "type": "string",
2340
+ "maxLength": 255,
2341
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
2342
+ "x-pattern-message": "can't be blank"
2343
+ }
2344
+ },
2345
+ "additionalProperties": false
2346
+ }
2347
+ }
2348
+ },
2349
+ "sendEmailActionTestEmail": {},
2350
+ "testAuthentication": {},
2351
+ "updateAccountEmailAction": {
2352
+ "body": {
2353
+ "mediaType": "application/json",
2354
+ "required": true,
2355
+ "schema": {
2356
+ "type": "object",
2357
+ "properties": {
2358
+ "template_ids": {
2359
+ "type": "array",
2360
+ "maxItems": 500,
2361
+ "items": {
2362
+ "type": "string",
2363
+ "maxLength": 255,
2364
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
2365
+ "x-pattern-message": "can't be blank"
2366
+ }
2367
+ },
2368
+ "folder_ids": {
2369
+ "type": "array",
2370
+ "maxItems": 500,
2371
+ "items": {
2372
+ "type": "string",
2373
+ "maxLength": 255,
2374
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
2375
+ "x-pattern-message": "can't be blank"
2376
+ }
2377
+ },
2378
+ "name": {
2379
+ "type": ["string", "null"],
2380
+ "maxLength": 512
2381
+ },
2382
+ "enabled": {
2383
+ "type": "boolean"
2384
+ },
2385
+ "to": {
2386
+ "type": "array",
2387
+ "maxItems": 10,
2388
+ "items": {
2389
+ "type": "string",
2390
+ "maxLength": 512
2391
+ }
2392
+ },
2393
+ "cc": {
2394
+ "type": "array",
2395
+ "maxItems": 10,
2396
+ "items": {
2397
+ "type": "string",
2398
+ "maxLength": 512
2399
+ }
2400
+ },
2401
+ "bcc": {
2402
+ "type": "array",
2403
+ "maxItems": 10,
2404
+ "items": {
2405
+ "type": "string",
2406
+ "maxLength": 512
2407
+ }
2408
+ },
2409
+ "from_name": {
2410
+ "type": ["string", "null"],
2411
+ "maxLength": 64
2412
+ },
2413
+ "from_address": {
2414
+ "type": ["string", "null"],
2415
+ "maxLength": 254
2416
+ },
2417
+ "reply_to": {
2418
+ "type": ["string", "null"],
2419
+ "maxLength": 254
2420
+ },
2421
+ "subject": {
2422
+ "type": ["string", "null"],
2423
+ "maxLength": 200
2424
+ },
2425
+ "message": {
2426
+ "type": ["string", "null"],
2427
+ "maxLength": 2000
2428
+ },
2429
+ "file_name": {
2430
+ "type": ["string", "null"],
2431
+ "maxLength": 200
2432
+ },
2433
+ "file_formats": {
2434
+ "type": "string",
2435
+ "enum": ["docx", "odt", "pdf", "all"]
2436
+ },
2437
+ "delivery": {
2438
+ "type": "string",
2439
+ "enum": ["attachment", "link"]
2440
+ },
2441
+ "max_attachment_mb": {
2442
+ "type": "integer",
2443
+ "minimum": 1,
2444
+ "maximum": 25
2445
+ },
2446
+ "submission_type": {
2447
+ "type": "string",
2448
+ "enum": ["live", "test", "all"]
2449
+ },
2450
+ "send_when": {
2451
+ "type": ["object", "null"],
2452
+ "required": ["conditions"],
2453
+ "properties": {
2454
+ "match": {
2455
+ "type": "string",
2456
+ "enum": ["all", "any"]
2457
+ },
2458
+ "conditions": {
2459
+ "type": "array",
2460
+ "items": {
2461
+ "oneOf": [{
2462
+ "$ref": "#/components/schemas/FieldPresenceCondition"
2463
+ }, {
2464
+ "$ref": "#/components/schemas/FieldEqualsCondition"
2465
+ }, {
2466
+ "$ref": "#/components/schemas/FieldInCondition"
2467
+ }, {
2468
+ "$ref": "#/components/schemas/FieldComparisonCondition"
2469
+ }, {
2470
+ "$ref": "#/components/schemas/FieldRangeCondition"
2471
+ }],
2472
+ "discriminator": {
2473
+ "propertyName": "operator",
2474
+ "mapping": [["present", "#/components/schemas/FieldPresenceCondition"], ["blank", "#/components/schemas/FieldPresenceCondition"], ["equals", "#/components/schemas/FieldEqualsCondition"], ["not_equals", "#/components/schemas/FieldEqualsCondition"], ["in", "#/components/schemas/FieldInCondition"], ["gt", "#/components/schemas/FieldComparisonCondition"], ["gte", "#/components/schemas/FieldComparisonCondition"], ["lt", "#/components/schemas/FieldComparisonCondition"], ["lte", "#/components/schemas/FieldComparisonCondition"], ["range", "#/components/schemas/FieldRangeCondition"]]
2475
+ }
2476
+ },
2477
+ "minItems": 1,
2478
+ "maxItems": 20
2479
+ }
2480
+ },
2481
+ "additionalProperties": false
2482
+ },
2483
+ "failure_notifications_enabled": {
2484
+ "type": "boolean"
1742
2485
  }
1743
2486
  },
2487
+ "minProperties": 1,
1744
2488
  "additionalProperties": false
1745
2489
  }
1746
2490
  }
1747
2491
  },
1748
- "removeTemplateFields": {
2492
+ "updateEmailAction": {
1749
2493
  "body": {
1750
2494
  "mediaType": "application/json",
1751
2495
  "required": true,
1752
2496
  "schema": {
1753
2497
  "type": "object",
1754
- "required": ["field_ids"],
1755
2498
  "properties": {
1756
- "field_ids": {
2499
+ "name": {
2500
+ "type": ["string", "null"],
2501
+ "maxLength": 512
2502
+ },
2503
+ "enabled": {
2504
+ "type": "boolean"
2505
+ },
2506
+ "to": {
1757
2507
  "type": "array",
1758
- "minItems": 1,
1759
- "maxItems": 1000,
2508
+ "maxItems": 10,
1760
2509
  "items": {
1761
- "type": "integer"
2510
+ "type": "string",
2511
+ "maxLength": 512
1762
2512
  }
1763
- }
1764
- },
1765
- "additionalProperties": false
1766
- }
1767
- }
1768
- },
1769
- "renameFolder": {
1770
- "body": {
1771
- "mediaType": "application/json",
1772
- "required": true,
1773
- "schema": {
1774
- "type": "object",
1775
- "properties": {
1776
- "name": {
2513
+ },
2514
+ "cc": {
2515
+ "type": "array",
2516
+ "maxItems": 10,
2517
+ "items": {
2518
+ "type": "string",
2519
+ "maxLength": 512
2520
+ }
2521
+ },
2522
+ "bcc": {
2523
+ "type": "array",
2524
+ "maxItems": 10,
2525
+ "items": {
2526
+ "type": "string",
2527
+ "maxLength": 512
2528
+ }
2529
+ },
2530
+ "from_name": {
2531
+ "type": ["string", "null"],
2532
+ "maxLength": 64
2533
+ },
2534
+ "from_address": {
2535
+ "type": ["string", "null"],
2536
+ "maxLength": 254
2537
+ },
2538
+ "reply_to": {
2539
+ "type": ["string", "null"],
2540
+ "maxLength": 254
2541
+ },
2542
+ "subject": {
2543
+ "type": ["string", "null"],
2544
+ "maxLength": 200
2545
+ },
2546
+ "message": {
2547
+ "type": ["string", "null"],
2548
+ "maxLength": 2000
2549
+ },
2550
+ "file_name": {
2551
+ "type": ["string", "null"],
2552
+ "maxLength": 200
2553
+ },
2554
+ "file_formats": {
1777
2555
  "type": "string",
1778
- "minLength": 1,
1779
- "maxLength": 255,
1780
- "pattern": "^[^/]*$",
1781
- "x-pattern-message": "can't contain a slash (/)"
2556
+ "enum": ["docx", "odt", "pdf", "all"]
2557
+ },
2558
+ "delivery": {
2559
+ "type": "string",
2560
+ "enum": ["attachment", "link"]
2561
+ },
2562
+ "max_attachment_mb": {
2563
+ "type": "integer",
2564
+ "minimum": 1,
2565
+ "maximum": 25
2566
+ },
2567
+ "submission_type": {
2568
+ "type": "string",
2569
+ "enum": ["live", "test", "all"]
2570
+ },
2571
+ "send_when": {
2572
+ "type": ["object", "null"],
2573
+ "required": ["conditions"],
2574
+ "properties": {
2575
+ "match": {
2576
+ "type": "string",
2577
+ "enum": ["all", "any"]
2578
+ },
2579
+ "conditions": {
2580
+ "type": "array",
2581
+ "items": {
2582
+ "oneOf": [{
2583
+ "$ref": "#/components/schemas/FieldPresenceCondition"
2584
+ }, {
2585
+ "$ref": "#/components/schemas/FieldEqualsCondition"
2586
+ }, {
2587
+ "$ref": "#/components/schemas/FieldInCondition"
2588
+ }, {
2589
+ "$ref": "#/components/schemas/FieldComparisonCondition"
2590
+ }, {
2591
+ "$ref": "#/components/schemas/FieldRangeCondition"
2592
+ }],
2593
+ "discriminator": {
2594
+ "propertyName": "operator",
2595
+ "mapping": [["present", "#/components/schemas/FieldPresenceCondition"], ["blank", "#/components/schemas/FieldPresenceCondition"], ["equals", "#/components/schemas/FieldEqualsCondition"], ["not_equals", "#/components/schemas/FieldEqualsCondition"], ["in", "#/components/schemas/FieldInCondition"], ["gt", "#/components/schemas/FieldComparisonCondition"], ["gte", "#/components/schemas/FieldComparisonCondition"], ["lt", "#/components/schemas/FieldComparisonCondition"], ["lte", "#/components/schemas/FieldComparisonCondition"], ["range", "#/components/schemas/FieldRangeCondition"]]
2596
+ }
2597
+ },
2598
+ "minItems": 1,
2599
+ "maxItems": 20
2600
+ }
2601
+ },
2602
+ "additionalProperties": false
2603
+ },
2604
+ "failure_notifications_enabled": {
2605
+ "type": "boolean"
1782
2606
  }
1783
2607
  },
1784
- "required": ["name"],
2608
+ "minProperties": 1,
1785
2609
  "additionalProperties": false
1786
2610
  }
1787
2611
  }
1788
2612
  },
1789
- "reorderTemplateFields": {
2613
+ "updateEmailActionCustomization": {
1790
2614
  "body": {
1791
2615
  "mediaType": "application/json",
1792
2616
  "required": true,
1793
2617
  "schema": {
1794
2618
  "type": "object",
1795
- "required": ["field_ids"],
1796
2619
  "properties": {
1797
- "field_ids": {
2620
+ "enabled": {
2621
+ "type": "boolean"
2622
+ },
2623
+ "to": {
1798
2624
  "type": "array",
1799
- "minItems": 1,
2625
+ "maxItems": 10,
1800
2626
  "items": {
1801
- "type": "integer"
2627
+ "type": "string",
2628
+ "maxLength": 512
1802
2629
  }
1803
- }
1804
- },
1805
- "additionalProperties": false
1806
- }
1807
- }
1808
- },
1809
- "restoreTemplateVersion": {
1810
- "body": {
1811
- "mediaType": "application/json",
1812
- "required": true,
1813
- "schema": {
1814
- "type": "object",
1815
- "required": ["version"],
1816
- "properties": {
1817
- "version": {
2630
+ },
2631
+ "cc": {
2632
+ "type": "array",
2633
+ "maxItems": 10,
2634
+ "items": {
2635
+ "type": "string",
2636
+ "maxLength": 512
2637
+ }
2638
+ },
2639
+ "bcc": {
2640
+ "type": "array",
2641
+ "maxItems": 10,
2642
+ "items": {
2643
+ "type": "string",
2644
+ "maxLength": 512
2645
+ }
2646
+ },
2647
+ "from_name": {
2648
+ "type": ["string", "null"],
2649
+ "maxLength": 64
2650
+ },
2651
+ "from_address": {
2652
+ "type": ["string", "null"],
2653
+ "maxLength": 254
2654
+ },
2655
+ "reply_to": {
2656
+ "type": ["string", "null"],
2657
+ "maxLength": 254
2658
+ },
2659
+ "subject": {
2660
+ "type": ["string", "null"],
2661
+ "maxLength": 200
2662
+ },
2663
+ "message": {
2664
+ "type": ["string", "null"],
2665
+ "maxLength": 2000
2666
+ },
2667
+ "file_name": {
2668
+ "type": ["string", "null"],
2669
+ "maxLength": 200
2670
+ },
2671
+ "file_formats": {
1818
2672
  "type": "string",
1819
- "pattern": "^\\d+(\\.\\d+(\\.\\d+)?)?$",
1820
- "x-pattern-message": "must be a published version like 1.2.3 or 1"
2673
+ "enum": ["docx", "odt", "pdf", "all"]
2674
+ },
2675
+ "delivery": {
2676
+ "type": "string",
2677
+ "enum": ["attachment", "link"]
2678
+ },
2679
+ "max_attachment_mb": {
2680
+ "type": "integer",
2681
+ "minimum": 1,
2682
+ "maximum": 25
2683
+ },
2684
+ "submission_type": {
2685
+ "type": "string",
2686
+ "enum": ["live", "test", "all"]
2687
+ },
2688
+ "send_when": {
2689
+ "type": ["object", "null"],
2690
+ "required": ["conditions"],
2691
+ "properties": {
2692
+ "match": {
2693
+ "type": "string",
2694
+ "enum": ["all", "any"]
2695
+ },
2696
+ "conditions": {
2697
+ "type": "array",
2698
+ "items": {
2699
+ "oneOf": [{
2700
+ "$ref": "#/components/schemas/FieldPresenceCondition"
2701
+ }, {
2702
+ "$ref": "#/components/schemas/FieldEqualsCondition"
2703
+ }, {
2704
+ "$ref": "#/components/schemas/FieldInCondition"
2705
+ }, {
2706
+ "$ref": "#/components/schemas/FieldComparisonCondition"
2707
+ }, {
2708
+ "$ref": "#/components/schemas/FieldRangeCondition"
2709
+ }],
2710
+ "discriminator": {
2711
+ "propertyName": "operator",
2712
+ "mapping": [["present", "#/components/schemas/FieldPresenceCondition"], ["blank", "#/components/schemas/FieldPresenceCondition"], ["equals", "#/components/schemas/FieldEqualsCondition"], ["not_equals", "#/components/schemas/FieldEqualsCondition"], ["in", "#/components/schemas/FieldInCondition"], ["gt", "#/components/schemas/FieldComparisonCondition"], ["gte", "#/components/schemas/FieldComparisonCondition"], ["lt", "#/components/schemas/FieldComparisonCondition"], ["lte", "#/components/schemas/FieldComparisonCondition"], ["range", "#/components/schemas/FieldRangeCondition"]]
2713
+ }
2714
+ },
2715
+ "minItems": 1,
2716
+ "maxItems": 20
2717
+ }
2718
+ },
2719
+ "additionalProperties": false
1821
2720
  }
1822
2721
  },
1823
2722
  "additionalProperties": false
1824
2723
  }
1825
2724
  }
1826
2725
  },
1827
- "testAuthentication": {},
1828
2726
  "updateSignatureRequest": {
1829
2727
  "body": {
1830
2728
  "mediaType": "application/json",
@@ -1864,6 +2762,7 @@ var _default = exports["default"] = {
1864
2762
  "type": ["string", "null"]
1865
2763
  }
1866
2764
  },
2765
+ "minProperties": 1,
1867
2766
  "additionalProperties": false
1868
2767
  }
1869
2768
  }
@@ -1877,8 +2776,9 @@ var _default = exports["default"] = {
1877
2776
  "properties": {
1878
2777
  "name": {
1879
2778
  "type": "string",
1880
- "minLength": 1,
1881
- "maxLength": 512
2779
+ "maxLength": 512,
2780
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
2781
+ "x-pattern-message": "can't be blank"
1882
2782
  },
1883
2783
  "description": {
1884
2784
  "type": ["string", "null"]
@@ -1889,7 +2789,8 @@ var _default = exports["default"] = {
1889
2789
  },
1890
2790
  "parent_folder_id": {
1891
2791
  "type": ["string", "null"],
1892
- "minLength": 1
2792
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
2793
+ "x-pattern-message": "can't be blank"
1893
2794
  },
1894
2795
  "locked": {
1895
2796
  "type": "boolean"
@@ -1963,8 +2864,47 @@ var _default = exports["default"] = {
1963
2864
  "type": "boolean"
1964
2865
  },
1965
2866
  "redirect_url": {
2867
+ "type": ["string", "null"]
2868
+ },
2869
+ "signature_request_email_attachments": {
1966
2870
  "type": ["string", "null"],
1967
- "format": "uri"
2871
+ "enum": ["attachment", "link", null]
2872
+ },
2873
+ "signature_request_from_address": {
2874
+ "type": ["string", "null"]
2875
+ },
2876
+ "signature_request_include_signing_token": {
2877
+ "type": "boolean"
2878
+ },
2879
+ "signature_request_from_name": {
2880
+ "type": ["string", "null"],
2881
+ "maxLength": 64
2882
+ },
2883
+ "signature_request_notification_emails": {
2884
+ "type": "array",
2885
+ "maxItems": 10,
2886
+ "uniqueItems": true,
2887
+ "items": {
2888
+ "type": "string"
2889
+ }
2890
+ },
2891
+ "signature_request_reply_to": {
2892
+ "type": ["string", "null"]
2893
+ },
2894
+ "signature_request_signing_url": {
2895
+ "type": ["string", "null"],
2896
+ "maxLength": 2048
2897
+ },
2898
+ "success_title": {
2899
+ "type": ["string", "null"],
2900
+ "maxLength": 512
2901
+ },
2902
+ "success_message": {
2903
+ "type": ["string", "null"],
2904
+ "maxLength": 5000
2905
+ },
2906
+ "show_fill_again_button": {
2907
+ "type": "boolean"
1968
2908
  },
1969
2909
  "slack_webhook_url": {
1970
2910
  "type": ["string", "null"],
@@ -2110,6 +3050,7 @@ var _default = exports["default"] = {
2110
3050
  },
2111
3051
  "field_groups": {
2112
3052
  "type": "array",
3053
+ "minItems": 1,
2113
3054
  "items": {
2114
3055
  "type": "object",
2115
3056
  "properties": {
@@ -2142,6 +3083,36 @@ var _default = exports["default"] = {
2142
3083
  "additionalProperties": false
2143
3084
  }
2144
3085
  },
3086
+ "form_sections": {
3087
+ "type": "array",
3088
+ "items": {
3089
+ "type": "object",
3090
+ "properties": {
3091
+ "id": {
3092
+ "type": "string",
3093
+ "maxLength": 255,
3094
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
3095
+ "x-pattern-message": "can't be blank"
3096
+ },
3097
+ "title": {
3098
+ "type": "string",
3099
+ "maxLength": 512
3100
+ },
3101
+ "description": {
3102
+ "type": ["string", "null"],
3103
+ "maxLength": 5000
3104
+ },
3105
+ "field_ids": {
3106
+ "type": "array",
3107
+ "items": {
3108
+ "type": "integer"
3109
+ }
3110
+ }
3111
+ },
3112
+ "required": ["id", "title", "field_ids"],
3113
+ "additionalProperties": false
3114
+ }
3115
+ },
2145
3116
  "predefined_fields": {
2146
3117
  "type": "array",
2147
3118
  "items": {
@@ -2206,7 +3177,8 @@ var _default = exports["default"] = {
2206
3177
  },
2207
3178
  "scale": {
2208
3179
  "type": "number",
2209
- "exclusiveMinimum": 0
3180
+ "minimum": 0.1,
3181
+ "maximum": 2
2210
3182
  },
2211
3183
  "landscape": {
2212
3184
  "type": "boolean"
@@ -2231,8 +3203,12 @@ var _default = exports["default"] = {
2231
3203
  },
2232
3204
  "html_escape_data": {
2233
3205
  "type": "boolean"
3206
+ },
3207
+ "layout": {
3208
+ "type": ["object", "null"]
2234
3209
  }
2235
3210
  },
3211
+ "minProperties": 1,
2236
3212
  "additionalProperties": false
2237
3213
  }
2238
3214
  }
@@ -2254,8 +3230,9 @@ var _default = exports["default"] = {
2254
3230
  "properties": {
2255
3231
  "cache_id": {
2256
3232
  "type": "string",
2257
- "minLength": 1,
2258
- "maxLength": 255
3233
+ "maxLength": 255,
3234
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
3235
+ "x-pattern-message": "can't be blank"
2259
3236
  },
2260
3237
  "document_url": {
2261
3238
  "type": "string",
@@ -2270,8 +3247,9 @@ var _default = exports["default"] = {
2270
3247
  },
2271
3248
  "filename": {
2272
3249
  "type": "string",
2273
- "minLength": 1,
2274
- "maxLength": 255
3250
+ "maxLength": 255,
3251
+ "pattern": "^[^/\\\\]*[^/\\\\ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000][^/\\\\]*$",
3252
+ "x-pattern-message": "can't be blank or contain a slash (/ or \\)"
2275
3253
  },
2276
3254
  "reimport_fields": {
2277
3255
  "type": "boolean"
@@ -2571,7 +3549,7 @@ var _default = exports["default"] = {
2571
3549
  },
2572
3550
  "string_condition_type": {
2573
3551
  "type": "string",
2574
- "enum": ["equals", "contains", "starts_with", "ends_with", "regex"]
3552
+ "enum": ["equals", "not_equals", "contains", "not_contains", "starts_with", "not_starts_with", "ends_with", "not_ends_with", "regex", "not_regex", "blank", "not_blank"]
2575
3553
  },
2576
3554
  "number_condition_type": {
2577
3555
  "type": "string",
@@ -2680,7 +3658,7 @@ var _default = exports["default"] = {
2680
3658
  "uniqueItems": true,
2681
3659
  "items": {
2682
3660
  "type": "string",
2683
- "enum": ["submission.processed", "submission.failed", "submission.declined", "signature_request.viewed", "signature_request.completed", "signature_request.declined", "combined_pdf.processed", "combined_pdf.failed", "submission_batch.processed", "submission_batch.failed", "submission.created", "submission.updated", "submission.expired", "signature_request.updated", "combined_pdf.expired", "template.created", "template.updated", "template.deleted", "webhook.created", "webhook.updated", "webhook.deleted", "custom_file.created", "folder.created", "folder.updated", "folder.deleted"]
3661
+ "enum": ["submission.processed", "submission.failed", "submission.declined", "signature_request.sent", "signature_request.viewed", "signature_request.completed", "signature_request.declined", "signature_request.email_bounced", "combined_pdf.processed", "combined_pdf.failed", "submission_batch.processed", "submission_batch.failed", "submission.created", "submission.updated", "submission.expired", "signature_request.updated", "combined_pdf.expired", "template.created", "template.updated", "template.deleted", "webhook.created", "webhook.updated", "webhook.deleted", "custom_file.created", "folder.created", "folder.updated", "folder.deleted"]
2684
3662
  }
2685
3663
  },
2686
3664
  "mode": {
@@ -2691,21 +3669,27 @@ var _default = exports["default"] = {
2691
3669
  "type": "array",
2692
3670
  "uniqueItems": true,
2693
3671
  "items": {
2694
- "type": "string"
3672
+ "type": "string",
3673
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
3674
+ "x-pattern-message": "can't be blank"
2695
3675
  }
2696
3676
  },
2697
3677
  "template_ids": {
2698
3678
  "type": "array",
2699
3679
  "uniqueItems": true,
2700
3680
  "items": {
2701
- "type": "string"
3681
+ "type": "string",
3682
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
3683
+ "x-pattern-message": "can't be blank"
2702
3684
  }
2703
3685
  },
2704
3686
  "folder_ids": {
2705
3687
  "type": "array",
2706
3688
  "uniqueItems": true,
2707
3689
  "items": {
2708
- "type": "string"
3690
+ "type": "string",
3691
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
3692
+ "x-pattern-message": "can't be blank"
2709
3693
  }
2710
3694
  },
2711
3695
  "include_submission_data": {
@@ -2724,6 +3708,7 @@ var _default = exports["default"] = {
2724
3708
  }
2725
3709
  }
2726
3710
  },
3711
+ "minProperties": 1,
2727
3712
  "additionalProperties": false
2728
3713
  }
2729
3714
  }
@@ -2750,15 +3735,17 @@ var _default = exports["default"] = {
2750
3735
  },
2751
3736
  "name": {
2752
3737
  "type": "string",
2753
- "minLength": 1,
2754
- "maxLength": 512
3738
+ "maxLength": 512,
3739
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
3740
+ "x-pattern-message": "can't be blank"
2755
3741
  },
2756
3742
  "description": {
2757
3743
  "type": "string"
2758
3744
  },
2759
3745
  "parent_folder_id": {
2760
3746
  "type": "string",
2761
- "minLength": 1
3747
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
3748
+ "x-pattern-message": "can't be blank"
2762
3749
  },
2763
3750
  "ai_field_naming_language": {
2764
3751
  "type": "string",
@@ -2782,6 +3769,9 @@ var _default = exports["default"] = {
2782
3769
  "output_format": {
2783
3770
  "type": "string",
2784
3771
  "enum": ["pdf", "docx", "odt"]
3772
+ },
3773
+ "include_office_use_fields": {
3774
+ "type": "boolean"
2785
3775
  }
2786
3776
  },
2787
3777
  "additionalProperties": false
@@ -2822,7 +3812,7 @@ var _default = exports["default"] = {
2822
3812
  "required": false,
2823
3813
  "schema": {
2824
3814
  "type": "string",
2825
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
3815
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
2826
3816
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
2827
3817
  }
2828
3818
  }
@@ -2887,7 +3877,9 @@ var _default = exports["default"] = {
2887
3877
  },
2888
3878
  "email": {
2889
3879
  "type": ["string", "null"],
2890
- "maxLength": 254
3880
+ "maxLength": 254,
3881
+ "pattern": "^[^ \t\n\x0B\f\r@]+@[^ \t\n\x0B\f\r@]+$",
3882
+ "x-pattern-message": "must be an email address, like name@example.com"
2891
3883
  },
2892
3884
  "fields": {
2893
3885
  "type": "array",
@@ -2938,30 +3930,103 @@ var _default = exports["default"] = {
2938
3930
  },
2939
3931
  "prefilled_values_editable": {
2940
3932
  "type": "boolean"
3933
+ },
3934
+ "send_email": {
3935
+ "type": "boolean"
3936
+ },
3937
+ "signing_step": {
3938
+ "type": "integer",
3939
+ "minimum": 1,
3940
+ "maximum": 100
2941
3941
  }
2942
3942
  },
2943
- "required": ["fields", "auth_type"],
3943
+ "required": ["fields"],
2944
3944
  "additionalProperties": false
2945
3945
  }
3946
+ },
3947
+ "send_email": {
3948
+ "type": "boolean"
3949
+ },
3950
+ "signing_order": {
3951
+ "type": "string",
3952
+ "enum": ["parallel", "sequential"]
3953
+ },
3954
+ "email_subject": {
3955
+ "type": "string",
3956
+ "minLength": 1,
3957
+ "maxLength": 200
3958
+ },
3959
+ "email_message": {
3960
+ "type": "string",
3961
+ "minLength": 1,
3962
+ "maxLength": 2000
3963
+ },
3964
+ "cc": {
3965
+ "type": "array",
3966
+ "maxItems": 10,
3967
+ "uniqueItems": true,
3968
+ "items": {
3969
+ "type": "string"
3970
+ }
3971
+ },
3972
+ "reply_to": {
3973
+ "type": "string"
3974
+ },
3975
+ "notification_emails": {
3976
+ "type": "array",
3977
+ "maxItems": 10,
3978
+ "uniqueItems": true,
3979
+ "items": {
3980
+ "type": "string"
3981
+ }
3982
+ },
3983
+ "notify_when_signed": {
3984
+ "type": "boolean"
3985
+ },
3986
+ "reminders": {
3987
+ "type": "object",
3988
+ "additionalProperties": false,
3989
+ "required": ["interval_days", "max_count"],
3990
+ "properties": {
3991
+ "interval_days": {
3992
+ "type": "integer",
3993
+ "minimum": 1,
3994
+ "maximum": 30
3995
+ },
3996
+ "max_count": {
3997
+ "type": "integer",
3998
+ "minimum": 1,
3999
+ "maximum": 10
4000
+ }
4001
+ }
2946
4002
  }
2947
4003
  },
2948
4004
  "additionalProperties": false
2949
4005
  }
2950
4006
  }
2951
- }
4007
+ },
4008
+ "verifyEmailDomain": {}
2952
4009
  },
2953
4010
  "routes": {
2954
4011
  "DELETE /combined_pdfs/{combined_pdf_id}": "expireCombinedPdf",
2955
4012
  "DELETE /custom_files/{custom_file_id}": "deleteCustomFile",
4013
+ "DELETE /email_actions/{email_action_id}": "deleteAccountEmailAction",
4014
+ "DELETE /email_domains/{email_domain_id}": "deleteEmailDomain",
2956
4015
  "DELETE /folders/{folder_id}": "deleteFolder",
2957
4016
  "DELETE /submissions/{submission_id}": "expireSubmission",
2958
4017
  "DELETE /templates/{template_id}": "deleteTemplate",
4018
+ "DELETE /templates/{template_id}/email_actions/{email_action_id}": "deleteEmailAction",
4019
+ "DELETE /templates/{template_id}/email_actions/{email_action_id}/customization": "deleteEmailActionCustomization",
2959
4020
  "DELETE /webhooks/{webhook_id}": "deleteWebhook",
2960
4021
  "GET /authentication": "testAuthentication",
2961
4022
  "GET /combined_pdfs": "listCombinedPdfs",
2962
4023
  "GET /combined_pdfs/{combined_pdf_id}": "getCombinedPdf",
2963
4024
  "GET /custom_files": "listCustomFiles",
2964
4025
  "GET /custom_files/{custom_file_id}": "getCustomFile",
4026
+ "GET /email_actions": "listAccountEmailActions",
4027
+ "GET /email_actions/{email_action_id}": "getAccountEmailAction",
4028
+ "GET /email_domains": "listEmailDomains",
4029
+ "GET /email_domains/{email_domain_id}": "getEmailDomain",
2965
4030
  "GET /folders": "listFolders",
2966
4031
  "GET /folders/{folder_id}": "getFolder",
2967
4032
  "GET /signature_requests/{signature_request_id}": "getSignatureRequest",
@@ -2971,6 +4036,8 @@ var _default = exports["default"] = {
2971
4036
  "GET /templates": "listTemplates",
2972
4037
  "GET /templates/{template_id}": "getTemplate",
2973
4038
  "GET /templates/{template_id}/diff": "getTemplateDiff",
4039
+ "GET /templates/{template_id}/email_actions": "listEmailActions",
4040
+ "GET /templates/{template_id}/email_actions/{email_action_id}": "getEmailAction",
2974
4041
  "GET /templates/{template_id}/fields": "listTemplateFields",
2975
4042
  "GET /templates/{template_id}/model_code": "getTemplateModelCode",
2976
4043
  "GET /templates/{template_id}/page_images": "getTemplatePageImages",
@@ -2982,6 +4049,10 @@ var _default = exports["default"] = {
2982
4049
  "GET /webhooks/{webhook_id}": "getWebhook",
2983
4050
  "POST /combined_pdfs": "createCombinedPdf",
2984
4051
  "POST /custom_files": "createCustomFileFromUpload",
4052
+ "POST /email_actions": "createAccountEmailAction",
4053
+ "POST /email_actions/{email_action_id}/test_email": "sendAccountEmailActionTestEmail",
4054
+ "POST /email_domains": "createEmailDomain",
4055
+ "POST /email_domains/{email_domain_id}/verify": "verifyEmailDomain",
2985
4056
  "POST /folders": "createFolder",
2986
4057
  "POST /folders/{folder_id}/move": "moveFolder",
2987
4058
  "POST /folders/{folder_id}/rename": "renameFolder",
@@ -2993,6 +4064,8 @@ var _default = exports["default"] = {
2993
4064
  "POST /templates": "createTemplate",
2994
4065
  "POST /templates/upload": "uploadTemplate",
2995
4066
  "POST /templates/{template_id}/copy": "copyTemplate",
4067
+ "POST /templates/{template_id}/email_actions": "createEmailAction",
4068
+ "POST /templates/{template_id}/email_actions/{email_action_id}/test_email": "sendEmailActionTestEmail",
2996
4069
  "POST /templates/{template_id}/fields": "addTemplateFields",
2997
4070
  "POST /templates/{template_id}/fields/remove": "removeTemplateFields",
2998
4071
  "POST /templates/{template_id}/fields/reorder": "reorderTemplateFields",
@@ -3003,10 +4076,13 @@ var _default = exports["default"] = {
3003
4076
  "POST /templates/{template_id}/submissions": "createSubmission",
3004
4077
  "POST /templates/{template_id}/submissions/validate": "validateSubmission",
3005
4078
  "POST /webhooks": "createWebhook",
4079
+ "PUT /email_actions/{email_action_id}": "updateAccountEmailAction",
3006
4080
  "PUT /signature_requests/{signature_request_id}": "updateSignatureRequest",
3007
4081
  "PUT /templates/{template_id}": "updateTemplate",
3008
4082
  "PUT /templates/{template_id}/document": "updateTemplateDocument",
3009
4083
  "PUT /templates/{template_id}/document/upload": "uploadTemplateDocument",
4084
+ "PUT /templates/{template_id}/email_actions/{email_action_id}": "updateEmailAction",
4085
+ "PUT /templates/{template_id}/email_actions/{email_action_id}/customization": "updateEmailActionCustomization",
3010
4086
  "PUT /templates/{template_id}/fields": "updateTemplateFields",
3011
4087
  "PUT /webhooks/{webhook_id}": "updateWebhook"
3012
4088
  },
@@ -3022,7 +4098,8 @@ var _default = exports["default"] = {
3022
4098
  },
3023
4099
  "id": {
3024
4100
  "type": "string",
3025
- "minLength": 1
4101
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
4102
+ "x-pattern-message": "can't be blank"
3026
4103
  }
3027
4104
  },
3028
4105
  "additionalProperties": false,
@@ -3042,7 +4119,8 @@ var _default = exports["default"] = {
3042
4119
  },
3043
4120
  "id": {
3044
4121
  "type": "string",
3045
- "minLength": 1
4122
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
4123
+ "x-pattern-message": "can't be blank"
3046
4124
  }
3047
4125
  },
3048
4126
  "additionalProperties": false,
@@ -3323,7 +4401,7 @@ var _default = exports["default"] = {
3323
4401
  },
3324
4402
  "string_condition_type": {
3325
4403
  "type": "string",
3326
- "enum": ["equals", "contains", "starts_with", "ends_with", "regex"]
4404
+ "enum": ["equals", "not_equals", "contains", "not_contains", "starts_with", "not_starts_with", "ends_with", "not_ends_with", "regex", "not_regex", "blank", "not_blank"]
3327
4405
  },
3328
4406
  "number_condition_type": {
3329
4407
  "type": "string",
@@ -3466,7 +4544,8 @@ var _default = exports["default"] = {
3466
4544
  },
3467
4545
  "id": {
3468
4546
  "type": "string",
3469
- "minLength": 1
4547
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
4548
+ "x-pattern-message": "can't be blank"
3470
4549
  }
3471
4550
  },
3472
4551
  "additionalProperties": false,
@@ -3486,11 +4565,12 @@ var _default = exports["default"] = {
3486
4565
  },
3487
4566
  "id": {
3488
4567
  "type": "string",
3489
- "minLength": 1
4568
+ "pattern": "[^ \t\n\x0B\f\r\x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]",
4569
+ "x-pattern-message": "can't be blank"
3490
4570
  },
3491
4571
  "template_version": {
3492
4572
  "type": "string",
3493
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
4573
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
3494
4574
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
3495
4575
  },
3496
4576
  "processed": {