docspring-ts 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 (162) hide show
  1. package/AGENTS.md +2 -0
  2. package/LICENSE +1 -1
  3. package/README.md +23 -1
  4. package/dist/RequestSchemas.js +1708 -88
  5. package/dist/RequestSchemas.js.map +1 -1
  6. package/dist/RequestValidator.js +3 -0
  7. package/dist/RequestValidator.js.map +1 -1
  8. package/dist/apis/Client.d.ts +82 -32
  9. package/dist/apis/Client.js +3661 -1666
  10. package/dist/apis/Client.js.map +1 -1
  11. package/dist/http/isomorphic-fetch.js +1 -1
  12. package/dist/models/CreateAccountEmailActionRequest.d.ts +42 -0
  13. package/dist/models/CreateAccountEmailActionRequest.js +131 -0
  14. package/dist/models/CreateAccountEmailActionRequest.js.map +1 -0
  15. package/dist/models/CreateEmailActionRequest.d.ts +40 -0
  16. package/dist/models/CreateEmailActionRequest.js +119 -0
  17. package/dist/models/CreateEmailActionRequest.js.map +1 -0
  18. package/dist/models/CreateEmailDomainRequest.d.ts +20 -0
  19. package/dist/models/CreateEmailDomainRequest.js +23 -0
  20. package/dist/models/CreateEmailDomainRequest.js.map +1 -0
  21. package/dist/models/CreateSubmissionRequest.d.ts +11 -0
  22. package/dist/models/CreateSubmissionRequest.js +54 -0
  23. package/dist/models/CreateSubmissionRequest.js.map +1 -1
  24. package/dist/models/CreateTemplateRequest.d.ts +15 -0
  25. package/dist/models/CreateTemplateRequest.js +72 -0
  26. package/dist/models/CreateTemplateRequest.js.map +1 -1
  27. package/dist/models/DnsRecordType.d.ts +6 -0
  28. package/dist/models/DnsRecordType.js +9 -0
  29. package/dist/models/DnsRecordType.js.map +1 -0
  30. package/dist/models/EmailAction.d.ts +54 -0
  31. package/dist/models/EmailAction.js +197 -0
  32. package/dist/models/EmailAction.js.map +1 -0
  33. package/dist/models/EmailActionConditions.d.ts +23 -0
  34. package/dist/models/EmailActionConditions.js +29 -0
  35. package/dist/models/EmailActionConditions.js.map +1 -0
  36. package/dist/models/EmailActionConditionsInput.d.ts +23 -0
  37. package/dist/models/EmailActionConditionsInput.js +29 -0
  38. package/dist/models/EmailActionConditionsInput.js.map +1 -0
  39. package/dist/models/EmailActionCustomization.d.ts +30 -0
  40. package/dist/models/EmailActionCustomization.js +77 -0
  41. package/dist/models/EmailActionCustomization.js.map +1 -0
  42. package/dist/models/EmailActionDelivery.d.ts +5 -0
  43. package/dist/models/EmailActionDelivery.js +8 -0
  44. package/dist/models/EmailActionDelivery.js.map +1 -0
  45. package/dist/models/EmailActionFileFormats.d.ts +7 -0
  46. package/dist/models/EmailActionFileFormats.js +10 -0
  47. package/dist/models/EmailActionFileFormats.js.map +1 -0
  48. package/dist/models/EmailActionList.d.ts +22 -0
  49. package/dist/models/EmailActionList.js +29 -0
  50. package/dist/models/EmailActionList.js.map +1 -0
  51. package/dist/models/EmailActionSetting.d.ts +17 -0
  52. package/dist/models/EmailActionSetting.js +20 -0
  53. package/dist/models/EmailActionSetting.js.map +1 -0
  54. package/dist/models/EmailActionSubmissionType.d.ts +6 -0
  55. package/dist/models/EmailActionSubmissionType.js +9 -0
  56. package/dist/models/EmailActionSubmissionType.js.map +1 -0
  57. package/dist/models/EmailActionTestEmail.d.ts +20 -0
  58. package/dist/models/EmailActionTestEmail.js +23 -0
  59. package/dist/models/EmailActionTestEmail.js.map +1 -0
  60. package/dist/models/EmailDomain.d.ts +33 -0
  61. package/dist/models/EmailDomain.js +83 -0
  62. package/dist/models/EmailDomain.js.map +1 -0
  63. package/dist/models/EmailDomainDnsRecord.d.ts +25 -0
  64. package/dist/models/EmailDomainDnsRecord.js +41 -0
  65. package/dist/models/EmailDomainDnsRecord.js.map +1 -0
  66. package/dist/models/EmailDomainDnsRecordPurpose.d.ts +6 -0
  67. package/dist/models/EmailDomainDnsRecordPurpose.js +9 -0
  68. package/dist/models/EmailDomainDnsRecordPurpose.js.map +1 -0
  69. package/dist/models/EmailDomainList.d.ts +22 -0
  70. package/dist/models/EmailDomainList.js +29 -0
  71. package/dist/models/EmailDomainList.js.map +1 -0
  72. package/dist/models/EmailDomainRecordState.d.ts +6 -0
  73. package/dist/models/EmailDomainRecordState.js +9 -0
  74. package/dist/models/EmailDomainRecordState.js.map +1 -0
  75. package/dist/models/EmailDomainState.d.ts +6 -0
  76. package/dist/models/EmailDomainState.js +9 -0
  77. package/dist/models/EmailDomainState.js.map +1 -0
  78. package/dist/models/ErrorCode.d.ts +2 -0
  79. package/dist/models/ErrorCode.js +2 -0
  80. package/dist/models/ErrorCode.js.map +1 -1
  81. package/dist/models/ErrorInfo.d.ts +5 -0
  82. package/dist/models/ErrorInfo.js +30 -0
  83. package/dist/models/ErrorInfo.js.map +1 -1
  84. package/dist/models/ObjectSerializer.d.ts +30 -0
  85. package/dist/models/ObjectSerializer.js +79 -0
  86. package/dist/models/ObjectSerializer.js.map +1 -1
  87. package/dist/models/SendAccountEmailActionTestEmailRequest.d.ts +20 -0
  88. package/dist/models/SendAccountEmailActionTestEmailRequest.js +23 -0
  89. package/dist/models/SendAccountEmailActionTestEmailRequest.js.map +1 -0
  90. package/dist/models/SignatureRequest.d.ts +5 -0
  91. package/dist/models/SignatureRequest.js +24 -0
  92. package/dist/models/SignatureRequest.js.map +1 -1
  93. package/dist/models/SignatureRequestEmailAttachments.d.ts +5 -0
  94. package/dist/models/SignatureRequestEmailAttachments.js +8 -0
  95. package/dist/models/SignatureRequestEmailAttachments.js.map +1 -0
  96. package/dist/models/SignatureRequestEmailStatus.d.ts +11 -0
  97. package/dist/models/SignatureRequestEmailStatus.js +14 -0
  98. package/dist/models/SignatureRequestEmailStatus.js.map +1 -0
  99. package/dist/models/SignatureRequestEventType.d.ts +2 -0
  100. package/dist/models/SignatureRequestEventType.js +3 -1
  101. package/dist/models/SignatureRequestEventType.js.map +1 -1
  102. package/dist/models/SignatureRequestInput.d.ts +3 -1
  103. package/dist/models/SignatureRequestInput.js +12 -0
  104. package/dist/models/SignatureRequestInput.js.map +1 -1
  105. package/dist/models/SignatureRequestReminders.d.ts +21 -0
  106. package/dist/models/SignatureRequestReminders.js +29 -0
  107. package/dist/models/SignatureRequestReminders.js.map +1 -0
  108. package/dist/models/SigningOrder.d.ts +5 -0
  109. package/dist/models/SigningOrder.js +8 -0
  110. package/dist/models/SigningOrder.js.map +1 -0
  111. package/dist/models/StringConditionType.d.ts +7 -0
  112. package/dist/models/StringConditionType.js +8 -1
  113. package/dist/models/StringConditionType.js.map +1 -1
  114. package/dist/models/Submission.d.ts +2 -0
  115. package/dist/models/Submission.js +6 -0
  116. package/dist/models/Submission.js.map +1 -1
  117. package/dist/models/SubmissionAction.d.ts +1 -0
  118. package/dist/models/SubmissionAction.js +6 -0
  119. package/dist/models/SubmissionAction.js.map +1 -1
  120. package/dist/models/Template.d.ts +16 -0
  121. package/dist/models/Template.js +72 -0
  122. package/dist/models/Template.js.map +1 -1
  123. package/dist/models/TemplateFormSection.d.ts +23 -0
  124. package/dist/models/TemplateFormSection.js +41 -0
  125. package/dist/models/TemplateFormSection.js.map +1 -0
  126. package/dist/models/TemplateFormSectionInput.d.ts +23 -0
  127. package/dist/models/TemplateFormSectionInput.js +41 -0
  128. package/dist/models/TemplateFormSectionInput.js.map +1 -0
  129. package/dist/models/TemplateType.d.ts +1 -0
  130. package/dist/models/TemplateType.js +2 -1
  131. package/dist/models/TemplateType.js.map +1 -1
  132. package/dist/models/UpdateAccountEmailActionRequest.d.ts +42 -0
  133. package/dist/models/UpdateAccountEmailActionRequest.js +131 -0
  134. package/dist/models/UpdateAccountEmailActionRequest.js.map +1 -0
  135. package/dist/models/UpdateEmailActionCustomizationRequest.d.ts +38 -0
  136. package/dist/models/UpdateEmailActionCustomizationRequest.js +107 -0
  137. package/dist/models/UpdateEmailActionCustomizationRequest.js.map +1 -0
  138. package/dist/models/UpdateEmailActionRequest.d.ts +40 -0
  139. package/dist/models/UpdateEmailActionRequest.js +119 -0
  140. package/dist/models/UpdateEmailActionRequest.js.map +1 -0
  141. package/dist/models/UpdateTemplateRequest.d.ts +16 -0
  142. package/dist/models/UpdateTemplateRequest.js +72 -0
  143. package/dist/models/UpdateTemplateRequest.js.map +1 -1
  144. package/dist/models/ValidateSubmissionRequest.d.ts +11 -0
  145. package/dist/models/ValidateSubmissionRequest.js +54 -0
  146. package/dist/models/ValidateSubmissionRequest.js.map +1 -1
  147. package/dist/models/WebhookEventType.d.ts +2 -0
  148. package/dist/models/WebhookEventType.js +2 -0
  149. package/dist/models/WebhookEventType.js.map +1 -1
  150. package/dist/models/all.d.ts +30 -0
  151. package/dist/models/all.js +30 -0
  152. package/dist/models/all.js.map +1 -1
  153. package/dist/types/ObjectParamAPI.d.ts +168 -0
  154. package/dist/types/ObjectParamAPI.js +182 -64
  155. package/dist/types/ObjectParamAPI.js.map +1 -1
  156. package/dist/types/ObservableAPI.d.ts +114 -64
  157. package/dist/types/ObservableAPI.js +819 -287
  158. package/dist/types/ObservableAPI.js.map +1 -1
  159. package/dist/types/PromiseAPI.d.ts +114 -64
  160. package/dist/types/PromiseAPI.js +318 -128
  161. package/dist/types/PromiseAPI.js.map +1 -1
  162. package/package.json +1 -1
@@ -449,10 +449,17 @@ exports.requestSchemas = {
449
449
  "type": "string",
450
450
  "enum": [
451
451
  "equals",
452
+ "not_equals",
452
453
  "contains",
454
+ "not_contains",
453
455
  "starts_with",
456
+ "not_starts_with",
454
457
  "ends_with",
455
- "regex"
458
+ "not_ends_with",
459
+ "regex",
460
+ "not_regex",
461
+ "blank",
462
+ "not_blank"
456
463
  ]
457
464
  },
458
465
  "number_condition_type": {
@@ -637,19 +644,21 @@ exports.requestSchemas = {
637
644
  "properties": {
638
645
  "name": {
639
646
  "type": "string",
640
- "minLength": 1,
641
- "maxLength": 512"[^ \t\n\u000b\f\r…   - 

   ]",
647
+ "maxLength": 512,
648
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
649
+ "x-pattern-message": "can't be blank"
642
650
  },
643
651
  "parent_folder_id": {
644
652
  "type": [
645
653
  "string",
646
654
  "null"
647
655
  ],
648
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

   ]",
656
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
657
+ "x-pattern-message": "can't be blank"
649
658
  },
650
659
  "version": {
651
660
  "type": "string",
652
- "pattern": "^\\d+(\\.\\d+(\\.\\d+)?)?$",
661
+ "pattern": "^(0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}$",
653
662
  "x-pattern-message": "must be a published version like 1.2.3 or 1"
654
663
  }
655
664
  },
@@ -657,6 +666,234 @@ exports.requestSchemas = {
657
666
  }
658
667
  }
659
668
  },
669
+ "createAccountEmailAction": {
670
+ "body": {
671
+ "mediaType": "application/json",
672
+ "required": true,
673
+ "schema": {
674
+ "type": "object",
675
+ "properties": {
676
+ "template_ids": {
677
+ "type": "array",
678
+ "maxItems": 500,
679
+ "items": {
680
+ "type": "string",
681
+ "maxLength": 255,
682
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
683
+ "x-pattern-message": "can't be blank"
684
+ }
685
+ },
686
+ "folder_ids": {
687
+ "type": "array",
688
+ "maxItems": 500,
689
+ "items": {
690
+ "type": "string",
691
+ "maxLength": 255,
692
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
693
+ "x-pattern-message": "can't be blank"
694
+ }
695
+ },
696
+ "name": {
697
+ "type": [
698
+ "string",
699
+ "null"
700
+ ],
701
+ "maxLength": 512
702
+ },
703
+ "enabled": {
704
+ "type": "boolean"
705
+ },
706
+ "to": {
707
+ "type": "array",
708
+ "maxItems": 10,
709
+ "items": {
710
+ "type": "string",
711
+ "maxLength": 512
712
+ }
713
+ },
714
+ "cc": {
715
+ "type": "array",
716
+ "maxItems": 10,
717
+ "items": {
718
+ "type": "string",
719
+ "maxLength": 512
720
+ }
721
+ },
722
+ "bcc": {
723
+ "type": "array",
724
+ "maxItems": 10,
725
+ "items": {
726
+ "type": "string",
727
+ "maxLength": 512
728
+ }
729
+ },
730
+ "from_name": {
731
+ "type": [
732
+ "string",
733
+ "null"
734
+ ],
735
+ "maxLength": 64
736
+ },
737
+ "from_address": {
738
+ "type": [
739
+ "string",
740
+ "null"
741
+ ],
742
+ "maxLength": 254
743
+ },
744
+ "reply_to": {
745
+ "type": [
746
+ "string",
747
+ "null"
748
+ ],
749
+ "maxLength": 254
750
+ },
751
+ "subject": {
752
+ "type": [
753
+ "string",
754
+ "null"
755
+ ],
756
+ "maxLength": 200
757
+ },
758
+ "message": {
759
+ "type": [
760
+ "string",
761
+ "null"
762
+ ],
763
+ "maxLength": 2000
764
+ },
765
+ "file_name": {
766
+ "type": [
767
+ "string",
768
+ "null"
769
+ ],
770
+ "maxLength": 200
771
+ },
772
+ "file_formats": {
773
+ "type": "string",
774
+ "enum": [
775
+ "docx",
776
+ "odt",
777
+ "pdf",
778
+ "all"
779
+ ]
780
+ },
781
+ "delivery": {
782
+ "type": "string",
783
+ "enum": [
784
+ "attachment",
785
+ "link"
786
+ ]
787
+ },
788
+ "max_attachment_mb": {
789
+ "type": "integer",
790
+ "minimum": 1,
791
+ "maximum": 25
792
+ },
793
+ "submission_type": {
794
+ "type": "string",
795
+ "enum": [
796
+ "live",
797
+ "test",
798
+ "all"
799
+ ]
800
+ },
801
+ "send_when": {
802
+ "type": [
803
+ "object",
804
+ "null"
805
+ ],
806
+ "required": [
807
+ "conditions"
808
+ ],
809
+ "properties": {
810
+ "match": {
811
+ "type": "string",
812
+ "enum": [
813
+ "all",
814
+ "any"
815
+ ]
816
+ },
817
+ "conditions": {
818
+ "type": "array",
819
+ "items": {
820
+ "oneOf": [
821
+ {
822
+ "$ref": "#/components/schemas/FieldPresenceCondition"
823
+ },
824
+ {
825
+ "$ref": "#/components/schemas/FieldEqualsCondition"
826
+ },
827
+ {
828
+ "$ref": "#/components/schemas/FieldInCondition"
829
+ },
830
+ {
831
+ "$ref": "#/components/schemas/FieldComparisonCondition"
832
+ },
833
+ {
834
+ "$ref": "#/components/schemas/FieldRangeCondition"
835
+ }
836
+ ],
837
+ "discriminator": {
838
+ "propertyName": "operator",
839
+ "mapping": [
840
+ [
841
+ "present",
842
+ "#/components/schemas/FieldPresenceCondition"
843
+ ],
844
+ [
845
+ "blank",
846
+ "#/components/schemas/FieldPresenceCondition"
847
+ ],
848
+ [
849
+ "equals",
850
+ "#/components/schemas/FieldEqualsCondition"
851
+ ],
852
+ [
853
+ "not_equals",
854
+ "#/components/schemas/FieldEqualsCondition"
855
+ ],
856
+ [
857
+ "in",
858
+ "#/components/schemas/FieldInCondition"
859
+ ],
860
+ [
861
+ "gt",
862
+ "#/components/schemas/FieldComparisonCondition"
863
+ ],
864
+ [
865
+ "gte",
866
+ "#/components/schemas/FieldComparisonCondition"
867
+ ],
868
+ [
869
+ "lt",
870
+ "#/components/schemas/FieldComparisonCondition"
871
+ ],
872
+ [
873
+ "lte",
874
+ "#/components/schemas/FieldComparisonCondition"
875
+ ],
876
+ [
877
+ "range",
878
+ "#/components/schemas/FieldRangeCondition"
879
+ ]
880
+ ]
881
+ }
882
+ },
883
+ "minItems": 1,
884
+ "maxItems": 20
885
+ }
886
+ },
887
+ "additionalProperties": false
888
+ },
889
+ "failure_notifications_enabled": {
890
+ "type": "boolean"
891
+ }
892
+ },
893
+ "additionalProperties": false
894
+ }
895
+ }
896
+ },
660
897
  "createCombinedPdf": {
661
898
  "query": {
662
899
  "wait": {
@@ -755,14 +992,242 @@ exports.requestSchemas = {
755
992
  "properties": {
756
993
  "cache_id": {
757
994
  "type": "string",
758
- "minLength": 1,
759
- "maxLength": 255"[^ \t\n\u000b\f\r…   - 

   ]",
995
+ "maxLength": 255,
996
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
997
+ "x-pattern-message": "can't be blank"
998
+ }
999
+ },
1000
+ "additionalProperties": false
1001
+ }
1002
+ }
1003
+ },
1004
+ "createEmailAction": {
1005
+ "body": {
1006
+ "mediaType": "application/json",
1007
+ "required": true,
1008
+ "schema": {
1009
+ "type": "object",
1010
+ "properties": {
1011
+ "name": {
1012
+ "type": [
1013
+ "string",
1014
+ "null"
1015
+ ],
1016
+ "maxLength": 512
1017
+ },
1018
+ "enabled": {
1019
+ "type": "boolean"
1020
+ },
1021
+ "to": {
1022
+ "type": "array",
1023
+ "maxItems": 10,
1024
+ "items": {
1025
+ "type": "string",
1026
+ "maxLength": 512
1027
+ }
1028
+ },
1029
+ "cc": {
1030
+ "type": "array",
1031
+ "maxItems": 10,
1032
+ "items": {
1033
+ "type": "string",
1034
+ "maxLength": 512
1035
+ }
1036
+ },
1037
+ "bcc": {
1038
+ "type": "array",
1039
+ "maxItems": 10,
1040
+ "items": {
1041
+ "type": "string",
1042
+ "maxLength": 512
1043
+ }
1044
+ },
1045
+ "from_name": {
1046
+ "type": [
1047
+ "string",
1048
+ "null"
1049
+ ],
1050
+ "maxLength": 64
1051
+ },
1052
+ "from_address": {
1053
+ "type": [
1054
+ "string",
1055
+ "null"
1056
+ ],
1057
+ "maxLength": 254
1058
+ },
1059
+ "reply_to": {
1060
+ "type": [
1061
+ "string",
1062
+ "null"
1063
+ ],
1064
+ "maxLength": 254
1065
+ },
1066
+ "subject": {
1067
+ "type": [
1068
+ "string",
1069
+ "null"
1070
+ ],
1071
+ "maxLength": 200
1072
+ },
1073
+ "message": {
1074
+ "type": [
1075
+ "string",
1076
+ "null"
1077
+ ],
1078
+ "maxLength": 2000
1079
+ },
1080
+ "file_name": {
1081
+ "type": [
1082
+ "string",
1083
+ "null"
1084
+ ],
1085
+ "maxLength": 200
1086
+ },
1087
+ "file_formats": {
1088
+ "type": "string",
1089
+ "enum": [
1090
+ "docx",
1091
+ "odt",
1092
+ "pdf",
1093
+ "all"
1094
+ ]
1095
+ },
1096
+ "delivery": {
1097
+ "type": "string",
1098
+ "enum": [
1099
+ "attachment",
1100
+ "link"
1101
+ ]
1102
+ },
1103
+ "max_attachment_mb": {
1104
+ "type": "integer",
1105
+ "minimum": 1,
1106
+ "maximum": 25
1107
+ },
1108
+ "submission_type": {
1109
+ "type": "string",
1110
+ "enum": [
1111
+ "live",
1112
+ "test",
1113
+ "all"
1114
+ ]
1115
+ },
1116
+ "send_when": {
1117
+ "type": [
1118
+ "object",
1119
+ "null"
1120
+ ],
1121
+ "required": [
1122
+ "conditions"
1123
+ ],
1124
+ "properties": {
1125
+ "match": {
1126
+ "type": "string",
1127
+ "enum": [
1128
+ "all",
1129
+ "any"
1130
+ ]
1131
+ },
1132
+ "conditions": {
1133
+ "type": "array",
1134
+ "items": {
1135
+ "oneOf": [
1136
+ {
1137
+ "$ref": "#/components/schemas/FieldPresenceCondition"
1138
+ },
1139
+ {
1140
+ "$ref": "#/components/schemas/FieldEqualsCondition"
1141
+ },
1142
+ {
1143
+ "$ref": "#/components/schemas/FieldInCondition"
1144
+ },
1145
+ {
1146
+ "$ref": "#/components/schemas/FieldComparisonCondition"
1147
+ },
1148
+ {
1149
+ "$ref": "#/components/schemas/FieldRangeCondition"
1150
+ }
1151
+ ],
1152
+ "discriminator": {
1153
+ "propertyName": "operator",
1154
+ "mapping": [
1155
+ [
1156
+ "present",
1157
+ "#/components/schemas/FieldPresenceCondition"
1158
+ ],
1159
+ [
1160
+ "blank",
1161
+ "#/components/schemas/FieldPresenceCondition"
1162
+ ],
1163
+ [
1164
+ "equals",
1165
+ "#/components/schemas/FieldEqualsCondition"
1166
+ ],
1167
+ [
1168
+ "not_equals",
1169
+ "#/components/schemas/FieldEqualsCondition"
1170
+ ],
1171
+ [
1172
+ "in",
1173
+ "#/components/schemas/FieldInCondition"
1174
+ ],
1175
+ [
1176
+ "gt",
1177
+ "#/components/schemas/FieldComparisonCondition"
1178
+ ],
1179
+ [
1180
+ "gte",
1181
+ "#/components/schemas/FieldComparisonCondition"
1182
+ ],
1183
+ [
1184
+ "lt",
1185
+ "#/components/schemas/FieldComparisonCondition"
1186
+ ],
1187
+ [
1188
+ "lte",
1189
+ "#/components/schemas/FieldComparisonCondition"
1190
+ ],
1191
+ [
1192
+ "range",
1193
+ "#/components/schemas/FieldRangeCondition"
1194
+ ]
1195
+ ]
1196
+ }
1197
+ },
1198
+ "minItems": 1,
1199
+ "maxItems": 20
1200
+ }
1201
+ },
1202
+ "additionalProperties": false
1203
+ },
1204
+ "failure_notifications_enabled": {
1205
+ "type": "boolean"
760
1206
  }
761
1207
  },
762
1208
  "additionalProperties": false
763
1209
  }
764
1210
  }
765
1211
  },
1212
+ "createEmailDomain": {
1213
+ "body": {
1214
+ "mediaType": "application/json",
1215
+ "required": true,
1216
+ "schema": {
1217
+ "type": "object",
1218
+ "properties": {
1219
+ "domain": {
1220
+ "type": "string",
1221
+ "maxLength": 253
1222
+ }
1223
+ },
1224
+ "required": [
1225
+ "domain"
1226
+ ],
1227
+ "additionalProperties": false
1228
+ }
1229
+ }
1230
+ },
766
1231
  "createFolder": {
767
1232
  "body": {
768
1233
  "mediaType": "application/json",
@@ -782,7 +1247,8 @@ exports.requestSchemas = {
782
1247
  "string",
783
1248
  "null"
784
1249
  ],
785
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

   ]",
1250
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
1251
+ "x-pattern-message": "can't be blank"
786
1252
  }
787
1253
  },
788
1254
  "required": [
@@ -867,7 +1333,7 @@ exports.requestSchemas = {
867
1333
  "required": false,
868
1334
  "schema": {
869
1335
  "type": "string",
870
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
1336
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
871
1337
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
872
1338
  }
873
1339
  },
@@ -949,7 +1415,9 @@ exports.requestSchemas = {
949
1415
  "string",
950
1416
  "null"
951
1417
  ],
952
- "maxLength": 254
1418
+ "maxLength": 254,
1419
+ "pattern": "^[^ \t\n\u000b\f\r@]+@[^ \t\n\u000b\f\r@]+$",
1420
+ "x-pattern-message": "must be an email address, like name@example.com"
953
1421
  },
954
1422
  "fields": {
955
1423
  "type": "array",
@@ -1032,14 +1500,83 @@ exports.requestSchemas = {
1032
1500
  },
1033
1501
  "prefilled_values_editable": {
1034
1502
  "type": "boolean"
1503
+ },
1504
+ "send_email": {
1505
+ "type": "boolean"
1506
+ },
1507
+ "signing_step": {
1508
+ "type": "integer",
1509
+ "minimum": 1,
1510
+ "maximum": 100
1035
1511
  }
1036
1512
  },
1037
1513
  "required": [
1038
- "fields",
1039
- "auth_type"
1514
+ "fields"
1040
1515
  ],
1041
1516
  "additionalProperties": false
1042
1517
  }
1518
+ },
1519
+ "send_email": {
1520
+ "type": "boolean"
1521
+ },
1522
+ "signing_order": {
1523
+ "type": "string",
1524
+ "enum": [
1525
+ "parallel",
1526
+ "sequential"
1527
+ ]
1528
+ },
1529
+ "email_subject": {
1530
+ "type": "string",
1531
+ "minLength": 1,
1532
+ "maxLength": 200
1533
+ },
1534
+ "email_message": {
1535
+ "type": "string",
1536
+ "minLength": 1,
1537
+ "maxLength": 2000
1538
+ },
1539
+ "cc": {
1540
+ "type": "array",
1541
+ "maxItems": 10,
1542
+ "uniqueItems": true,
1543
+ "items": {
1544
+ "type": "string"
1545
+ }
1546
+ },
1547
+ "reply_to": {
1548
+ "type": "string"
1549
+ },
1550
+ "notification_emails": {
1551
+ "type": "array",
1552
+ "maxItems": 10,
1553
+ "uniqueItems": true,
1554
+ "items": {
1555
+ "type": "string"
1556
+ }
1557
+ },
1558
+ "notify_when_signed": {
1559
+ "type": "boolean"
1560
+ },
1561
+ "reminders": {
1562
+ "type": "object",
1563
+ "additionalProperties": false,
1564
+ "required": [
1565
+ "interval_days",
1566
+ "max_count"
1567
+ ],
1568
+ "properties": {
1569
+ "interval_days": {
1570
+ "type": "integer",
1571
+ "minimum": 1,
1572
+ "maximum": 30
1573
+ },
1574
+ "max_count": {
1575
+ "type": "integer",
1576
+ "minimum": 1,
1577
+ "maximum": 10
1578
+ }
1579
+ }
1043
1580
  }
1044
1581
  },
1045
1582
  "additionalProperties": false
@@ -1065,11 +1602,13 @@ exports.requestSchemas = {
1065
1602
  "type": "object"
1066
1603
  },
1067
1604
  "template_id": {
1068
- "type": "string"
1605
+ "type": "string",
1606
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
1607
+ "x-pattern-message": "can't be blank"
1069
1608
  },
1070
1609
  "template_version": {
1071
1610
  "type": "string",
1072
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
1611
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
1073
1612
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
1074
1613
  },
1075
1614
  "test": {
@@ -1144,11 +1683,13 @@ exports.requestSchemas = {
1144
1683
  "type": "string"
1145
1684
  },
1146
1685
  "template_id": {
1147
- "type": "string"
1686
+ "type": "string",
1687
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
1688
+ "x-pattern-message": "can't be blank"
1148
1689
  },
1149
1690
  "template_version": {
1150
1691
  "type": "string",
1151
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
1692
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
1152
1693
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
1153
1694
  }
1154
1695
  },
@@ -1180,8 +1721,9 @@ exports.requestSchemas = {
1180
1721
  "properties": {
1181
1722
  "name": {
1182
1723
  "type": "string",
1183
- "minLength": 1,
1184
- "maxLength": 512"[^ \t\n\u000b\f\r…   - 

   ]",
1724
+ "maxLength": 512,
1725
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
1726
+ "x-pattern-message": "can't be blank"
1185
1727
  },
1186
1728
  "description": {
1187
1729
  "type": [
@@ -1194,7 +1736,8 @@ exports.requestSchemas = {
1194
1736
  "enum": [
1195
1737
  "pdf",
1196
1738
  "html",
1197
- "docx"
1739
+ "docx",
1740
+ "page_designer"
1198
1741
  ]
1199
1742
  },
1200
1743
  "output_format": {
@@ -1210,7 +1753,8 @@ exports.requestSchemas = {
1210
1753
  "string",
1211
1754
  "null"
1212
1755
  ],
1213
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

   ]",
1756
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
1757
+ "x-pattern-message": "can't be blank"
1214
1758
  },
1215
1759
  "locked": {
1216
1760
  "type": "boolean"
@@ -1299,11 +1843,75 @@ exports.requestSchemas = {
1299
1843
  "type": "boolean"
1300
1844
  },
1301
1845
  "redirect_url": {
1846
+ "type": [
1847
+ "string",
1848
+ "null"
1849
+ ]
1850
+ },
1851
+ "signature_request_email_attachments": {
1302
1852
  "type": [
1303
1853
  "string",
1304
1854
  "null"
1305
1855
  ],
1306
- "format": "uri"
1856
+ "enum": [
1857
+ "attachment",
1858
+ "link",
1859
+ null
1860
+ ]
1861
+ },
1862
+ "signature_request_from_address": {
1863
+ "type": [
1864
+ "string",
1865
+ "null"
1866
+ ]
1867
+ },
1868
+ "signature_request_include_signing_token": {
1869
+ "type": "boolean"
1870
+ },
1871
+ "signature_request_from_name": {
1872
+ "type": [
1873
+ "string",
1874
+ "null"
1875
+ ],
1876
+ "maxLength": 64
1877
+ },
1878
+ "signature_request_notification_emails": {
1879
+ "type": "array",
1880
+ "maxItems": 10,
1881
+ "uniqueItems": true,
1882
+ "items": {
1883
+ "type": "string"
1884
+ }
1885
+ },
1886
+ "signature_request_reply_to": {
1887
+ "type": [
1888
+ "string",
1889
+ "null"
1890
+ ]
1891
+ },
1892
+ "signature_request_signing_url": {
1893
+ "type": [
1894
+ "string",
1895
+ "null"
1896
+ ],
1897
+ "maxLength": 2048
1898
+ },
1899
+ "success_title": {
1900
+ "type": [
1901
+ "string",
1902
+ "null"
1903
+ ],
1904
+ "maxLength": 512
1905
+ },
1906
+ "success_message": {
1907
+ "type": [
1908
+ "string",
1909
+ "null"
1910
+ ],
1911
+ "maxLength": 5000
1912
+ },
1913
+ "show_fill_again_button": {
1914
+ "type": "boolean"
1307
1915
  },
1308
1916
  "slack_webhook_url": {
1309
1917
  "type": [
@@ -1706,7 +2314,8 @@ exports.requestSchemas = {
1706
2314
  },
1707
2315
  "scale": {
1708
2316
  "type": "number",
1709
- "exclusiveMinimum": 0
2317
+ "minimum": 0.1,
2318
+ "maximum": 2
1710
2319
  },
1711
2320
  "landscape": {
1712
2321
  "type": "boolean"
@@ -1732,10 +2341,17 @@ exports.requestSchemas = {
1732
2341
  "html_escape_data": {
1733
2342
  "type": "boolean"
1734
2343
  },
2344
+ "layout": {
2345
+ "type": [
2346
+ "object",
2347
+ "null"
2348
+ ]
2349
+ },
1735
2350
  "cache_id": {
1736
2351
  "type": "string",
1737
- "minLength": 1,
1738
- "maxLength": 255"[^ \t\n\u000b\f\r…   - 

   ]",
2352
+ "maxLength": 255,
2353
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2354
+ "x-pattern-message": "can't be blank"
1739
2355
  },
1740
2356
  "document_url": {
1741
2357
  "type": "string",
@@ -1750,8 +2366,9 @@ exports.requestSchemas = {
1750
2366
  },
1751
2367
  "filename": {
1752
2368
  "type": "string",
1753
- "minLength": 1,
1754
- "maxLength": 255"^[^/\\\\]*[^/\\\\ \t\n\u000b\f\r…   - 

   ][^/\\\\]*$",
2369
+ "maxLength": 255,
2370
+ "pattern": "^[^/\\\\]*[^/\\\\ \t\n\u000b\f\r…   - 

   ][^/\\\\]*$",
2371
+ "x-pattern-message": "can't be blank or contain a slash (/ or \\)"
1755
2372
  },
1756
2373
  "detect_fields": {
1757
2374
  "type": "boolean"
@@ -1777,6 +2394,9 @@ exports.requestSchemas = {
1777
2394
  "ai",
1778
2395
  "none"
1779
2396
  ]
2397
+ },
2398
+ "include_office_use_fields": {
2399
+ "type": "boolean"
1780
2400
  }
1781
2401
  },
1782
2402
  "required": [
@@ -1792,7 +2412,7 @@ exports.requestSchemas = {
1792
2412
  "required": false,
1793
2413
  "schema": {
1794
2414
  "type": "string",
1795
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2415
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
1796
2416
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
1797
2417
  }
1798
2418
  }
@@ -1845,9 +2465,11 @@ exports.requestSchemas = {
1845
2465
  "submission.processed",
1846
2466
  "submission.failed",
1847
2467
  "submission.declined",
2468
+ "signature_request.sent",
1848
2469
  "signature_request.viewed",
1849
2470
  "signature_request.completed",
1850
2471
  "signature_request.declined",
2472
+ "signature_request.email_bounced",
1851
2473
  "combined_pdf.processed",
1852
2474
  "combined_pdf.failed",
1853
2475
  "submission_batch.processed",
@@ -1885,21 +2507,27 @@ exports.requestSchemas = {
1885
2507
  "type": "array",
1886
2508
  "uniqueItems": true,
1887
2509
  "items": {
1888
- "type": "string"
2510
+ "type": "string",
2511
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2512
+ "x-pattern-message": "can't be blank"
1889
2513
  }
1890
2514
  },
1891
2515
  "template_ids": {
1892
2516
  "type": "array",
1893
2517
  "uniqueItems": true,
1894
2518
  "items": {
1895
- "type": "string"
2519
+ "type": "string",
2520
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2521
+ "x-pattern-message": "can't be blank"
1896
2522
  }
1897
2523
  },
1898
2524
  "folder_ids": {
1899
2525
  "type": "array",
1900
2526
  "uniqueItems": true,
1901
2527
  "items": {
1902
- "type": "string"
2528
+ "type": "string",
2529
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2530
+ "x-pattern-message": "can't be blank"
1903
2531
  }
1904
2532
  },
1905
2533
  "include_submission_data": {
@@ -1926,7 +2554,11 @@ exports.requestSchemas = {
1926
2554
  }
1927
2555
  }
1928
2556
  },
2557
+ "deleteAccountEmailAction": {},
1929
2558
  "deleteCustomFile": {},
2559
+ "deleteEmailAction": {},
2560
+ "deleteEmailActionCustomization": {},
2561
+ "deleteEmailDomain": {},
1930
2562
  "deleteFolder": {},
1931
2563
  "deleteTemplate": {
1932
2564
  "query": {
@@ -1934,7 +2566,7 @@ exports.requestSchemas = {
1934
2566
  "required": false,
1935
2567
  "schema": {
1936
2568
  "type": "string",
1937
- "pattern": "^(\\d+\\.\\d+\\.\\d+|draft)$",
2569
+ "pattern": "^((0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)|draft)$",
1938
2570
  "x-pattern-message": "must be a full version like 1.2.3, or draft"
1939
2571
  }
1940
2572
  }
@@ -1981,8 +2613,11 @@ exports.requestSchemas = {
1981
2613
  }
1982
2614
  },
1983
2615
  "generateSubmissionPreview": {},
2616
+ "getAccountEmailAction": {},
1984
2617
  "getCombinedPdf": {},
1985
2618
  "getCustomFile": {},
2619
+ "getEmailAction": {},
2620
+ "getEmailDomain": {},
1986
2621
  "getFolder": {},
1987
2622
  "getPresignUrl": {},
1988
2623
  "getSignatureRequest": {},
@@ -2003,7 +2638,7 @@ exports.requestSchemas = {
2003
2638
  "required": false,
2004
2639
  "schema": {
2005
2640
  "type": "string",
2006
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2641
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
2007
2642
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
2008
2643
  }
2009
2644
  }
@@ -2015,7 +2650,7 @@ exports.requestSchemas = {
2015
2650
  "required": false,
2016
2651
  "schema": {
2017
2652
  "type": "string",
2018
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2653
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
2019
2654
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
2020
2655
  }
2021
2656
  }
@@ -2027,7 +2662,7 @@ exports.requestSchemas = {
2027
2662
  "required": false,
2028
2663
  "schema": {
2029
2664
  "type": "string",
2030
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2665
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
2031
2666
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
2032
2667
  }
2033
2668
  },
@@ -2063,7 +2698,7 @@ exports.requestSchemas = {
2063
2698
  "required": false,
2064
2699
  "schema": {
2065
2700
  "type": "string",
2066
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2701
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
2067
2702
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
2068
2703
  }
2069
2704
  }
@@ -2076,13 +2711,33 @@ exports.requestSchemas = {
2076
2711
  "required": false,
2077
2712
  "schema": {
2078
2713
  "type": "string",
2079
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2714
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
2080
2715
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
2081
2716
  }
2082
2717
  }
2083
2718
  }
2084
2719
  },
2085
2720
  "getWebhook": {},
2721
+ "listAccountEmailActions": {
2722
+ "query": {
2723
+ "limit": {
2724
+ "required": false,
2725
+ "schema": {
2726
+ "type": "integer",
2727
+ "minimum": 1,
2728
+ "maximum": 100
2729
+ }
2730
+ },
2731
+ "cursor": {
2732
+ "required": false,
2733
+ "schema": {
2734
+ "type": "string",
2735
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2736
+ "x-pattern-message": "can't be blank"
2737
+ }
2738
+ }
2739
+ }
2740
+ },
2086
2741
  "listCombinedPdfs": {
2087
2742
  "query": {
2088
2743
  "limit": {
@@ -2096,7 +2751,9 @@ exports.requestSchemas = {
2096
2751
  "cursor": {
2097
2752
  "required": false,
2098
2753
  "schema": {
2099
- "type": "string"
2754
+ "type": "string",
2755
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2756
+ "x-pattern-message": "can't be blank"
2100
2757
  }
2101
2758
  }
2102
2759
  }
@@ -2114,7 +2771,49 @@ exports.requestSchemas = {
2114
2771
  "cursor": {
2115
2772
  "required": false,
2116
2773
  "schema": {
2117
- "type": "string"
2774
+ "type": "string",
2775
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2776
+ "x-pattern-message": "can't be blank"
2777
+ }
2778
+ }
2779
+ }
2780
+ },
2781
+ "listEmailActions": {
2782
+ "query": {
2783
+ "limit": {
2784
+ "required": false,
2785
+ "schema": {
2786
+ "type": "integer",
2787
+ "minimum": 1,
2788
+ "maximum": 100
2789
+ }
2790
+ },
2791
+ "cursor": {
2792
+ "required": false,
2793
+ "schema": {
2794
+ "type": "string",
2795
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2796
+ "x-pattern-message": "can't be blank"
2797
+ }
2798
+ }
2799
+ }
2800
+ },
2801
+ "listEmailDomains": {
2802
+ "query": {
2803
+ "limit": {
2804
+ "required": false,
2805
+ "schema": {
2806
+ "type": "integer",
2807
+ "minimum": 1,
2808
+ "maximum": 100
2809
+ }
2810
+ },
2811
+ "cursor": {
2812
+ "required": false,
2813
+ "schema": {
2814
+ "type": "string",
2815
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2816
+ "x-pattern-message": "can't be blank"
2118
2817
  }
2119
2818
  }
2120
2819
  }
@@ -2124,7 +2823,9 @@ exports.requestSchemas = {
2124
2823
  "parent_folder_id": {
2125
2824
  "required": false,
2126
2825
  "schema": {
2127
- "type": "string"
2826
+ "type": "string",
2827
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2828
+ "x-pattern-message": "can't be blank"
2128
2829
  }
2129
2830
  },
2130
2831
  "limit": {
@@ -2138,7 +2839,9 @@ exports.requestSchemas = {
2138
2839
  "cursor": {
2139
2840
  "required": false,
2140
2841
  "schema": {
2141
- "type": "string"
2842
+ "type": "string",
2843
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2844
+ "x-pattern-message": "can't be blank"
2142
2845
  }
2143
2846
  }
2144
2847
  }
@@ -2148,7 +2851,9 @@ exports.requestSchemas = {
2148
2851
  "template_id": {
2149
2852
  "required": false,
2150
2853
  "schema": {
2151
- "type": "string"
2854
+ "type": "string",
2855
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2856
+ "x-pattern-message": "can't be blank"
2152
2857
  }
2153
2858
  },
2154
2859
  "test": {
@@ -2188,7 +2893,9 @@ exports.requestSchemas = {
2188
2893
  "cursor": {
2189
2894
  "required": false,
2190
2895
  "schema": {
2191
- "type": "string"
2896
+ "type": "string",
2897
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2898
+ "x-pattern-message": "can't be blank"
2192
2899
  }
2193
2900
  },
2194
2901
  "state": {
@@ -2226,7 +2933,7 @@ exports.requestSchemas = {
2226
2933
  "required": false,
2227
2934
  "schema": {
2228
2935
  "type": "string",
2229
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2936
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
2230
2937
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
2231
2938
  }
2232
2939
  }
@@ -2271,7 +2978,9 @@ exports.requestSchemas = {
2271
2978
  "cursor": {
2272
2979
  "required": false,
2273
2980
  "schema": {
2274
- "type": "string"
2981
+ "type": "string",
2982
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2983
+ "x-pattern-message": "can't be blank"
2275
2984
  }
2276
2985
  },
2277
2986
  "state": {
@@ -2308,13 +3017,17 @@ exports.requestSchemas = {
2308
3017
  "query": {
2309
3018
  "required": false,
2310
3019
  "schema": {
2311
- "type": "string"
3020
+ "type": "string",
3021
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3022
+ "x-pattern-message": "can't be blank"
2312
3023
  }
2313
3024
  },
2314
3025
  "parent_folder_id": {
2315
3026
  "required": false,
2316
3027
  "schema": {
2317
- "type": "string"
3028
+ "type": "string",
3029
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3030
+ "x-pattern-message": "can't be blank"
2318
3031
  }
2319
3032
  },
2320
3033
  "limit": {
@@ -2328,7 +3041,9 @@ exports.requestSchemas = {
2328
3041
  "cursor": {
2329
3042
  "required": false,
2330
3043
  "schema": {
2331
- "type": "string"
3044
+ "type": "string",
3045
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3046
+ "x-pattern-message": "can't be blank"
2332
3047
  }
2333
3048
  }
2334
3049
  }
@@ -2343,9 +3058,11 @@ exports.requestSchemas = {
2343
3058
  "submission.processed",
2344
3059
  "submission.failed",
2345
3060
  "submission.declined",
3061
+ "signature_request.sent",
2346
3062
  "signature_request.viewed",
2347
3063
  "signature_request.completed",
2348
3064
  "signature_request.declined",
3065
+ "signature_request.email_bounced",
2349
3066
  "combined_pdf.processed",
2350
3067
  "combined_pdf.failed",
2351
3068
  "submission_batch.processed",
@@ -2381,19 +3098,25 @@ exports.requestSchemas = {
2381
3098
  "template_id": {
2382
3099
  "required": false,
2383
3100
  "schema": {
2384
- "type": "string"
3101
+ "type": "string",
3102
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3103
+ "x-pattern-message": "can't be blank"
2385
3104
  }
2386
3105
  },
2387
3106
  "folder_id": {
2388
3107
  "required": false,
2389
3108
  "schema": {
2390
- "type": "string"
3109
+ "type": "string",
3110
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3111
+ "x-pattern-message": "can't be blank"
2391
3112
  }
2392
3113
  },
2393
3114
  "api_token_id": {
2394
3115
  "required": false,
2395
3116
  "schema": {
2396
- "type": "string"
3117
+ "type": "string",
3118
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3119
+ "x-pattern-message": "can't be blank"
2397
3120
  }
2398
3121
  },
2399
3122
  "limit": {
@@ -2407,7 +3130,9 @@ exports.requestSchemas = {
2407
3130
  "cursor": {
2408
3131
  "required": false,
2409
3132
  "schema": {
2410
- "type": "string"
3133
+ "type": "string",
3134
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3135
+ "x-pattern-message": "can't be blank"
2411
3136
  }
2412
3137
  }
2413
3138
  }
@@ -2424,7 +3149,8 @@ exports.requestSchemas = {
2424
3149
  "string",
2425
3150
  "null"
2426
3151
  ],
2427
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

   ]",
3152
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3153
+ "x-pattern-message": "can't be blank"
2428
3154
  }
2429
3155
  },
2430
3156
  "required": [
@@ -2449,7 +3175,8 @@ exports.requestSchemas = {
2449
3175
  "string",
2450
3176
  "null"
2451
3177
  ],
2452
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

   ]",
3178
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3179
+ "x-pattern-message": "can't be blank"
2453
3180
  }
2454
3181
  },
2455
3182
  "additionalProperties": false
@@ -2550,27 +3277,682 @@ exports.requestSchemas = {
2550
3277
  }
2551
3278
  }
2552
3279
  },
2553
- "restoreTemplateVersion": {
3280
+ "restoreTemplateVersion": {
3281
+ "body": {
3282
+ "mediaType": "application/json",
3283
+ "required": true,
3284
+ "schema": {
3285
+ "type": "object",
3286
+ "required": [
3287
+ "version"
3288
+ ],
3289
+ "properties": {
3290
+ "version": {
3291
+ "type": "string",
3292
+ "pattern": "^(0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}$",
3293
+ "x-pattern-message": "must be a published version like 1.2.3 or 1"
3294
+ }
3295
+ },
3296
+ "additionalProperties": false
3297
+ }
3298
+ }
3299
+ },
3300
+ "sendAccountEmailActionTestEmail": {
3301
+ "body": {
3302
+ "mediaType": "application/json",
3303
+ "required": false,
3304
+ "schema": {
3305
+ "type": "object",
3306
+ "properties": {
3307
+ "template_id": {
3308
+ "type": "string",
3309
+ "maxLength": 255,
3310
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3311
+ "x-pattern-message": "can't be blank"
3312
+ }
3313
+ },
3314
+ "additionalProperties": false
3315
+ }
3316
+ }
3317
+ },
3318
+ "sendEmailActionTestEmail": {},
3319
+ "testAuthentication": {},
3320
+ "updateAccountEmailAction": {
3321
+ "body": {
3322
+ "mediaType": "application/json",
3323
+ "required": true,
3324
+ "schema": {
3325
+ "type": "object",
3326
+ "properties": {
3327
+ "template_ids": {
3328
+ "type": "array",
3329
+ "maxItems": 500,
3330
+ "items": {
3331
+ "type": "string",
3332
+ "maxLength": 255,
3333
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3334
+ "x-pattern-message": "can't be blank"
3335
+ }
3336
+ },
3337
+ "folder_ids": {
3338
+ "type": "array",
3339
+ "maxItems": 500,
3340
+ "items": {
3341
+ "type": "string",
3342
+ "maxLength": 255,
3343
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3344
+ "x-pattern-message": "can't be blank"
3345
+ }
3346
+ },
3347
+ "name": {
3348
+ "type": [
3349
+ "string",
3350
+ "null"
3351
+ ],
3352
+ "maxLength": 512
3353
+ },
3354
+ "enabled": {
3355
+ "type": "boolean"
3356
+ },
3357
+ "to": {
3358
+ "type": "array",
3359
+ "maxItems": 10,
3360
+ "items": {
3361
+ "type": "string",
3362
+ "maxLength": 512
3363
+ }
3364
+ },
3365
+ "cc": {
3366
+ "type": "array",
3367
+ "maxItems": 10,
3368
+ "items": {
3369
+ "type": "string",
3370
+ "maxLength": 512
3371
+ }
3372
+ },
3373
+ "bcc": {
3374
+ "type": "array",
3375
+ "maxItems": 10,
3376
+ "items": {
3377
+ "type": "string",
3378
+ "maxLength": 512
3379
+ }
3380
+ },
3381
+ "from_name": {
3382
+ "type": [
3383
+ "string",
3384
+ "null"
3385
+ ],
3386
+ "maxLength": 64
3387
+ },
3388
+ "from_address": {
3389
+ "type": [
3390
+ "string",
3391
+ "null"
3392
+ ],
3393
+ "maxLength": 254
3394
+ },
3395
+ "reply_to": {
3396
+ "type": [
3397
+ "string",
3398
+ "null"
3399
+ ],
3400
+ "maxLength": 254
3401
+ },
3402
+ "subject": {
3403
+ "type": [
3404
+ "string",
3405
+ "null"
3406
+ ],
3407
+ "maxLength": 200
3408
+ },
3409
+ "message": {
3410
+ "type": [
3411
+ "string",
3412
+ "null"
3413
+ ],
3414
+ "maxLength": 2000
3415
+ },
3416
+ "file_name": {
3417
+ "type": [
3418
+ "string",
3419
+ "null"
3420
+ ],
3421
+ "maxLength": 200
3422
+ },
3423
+ "file_formats": {
3424
+ "type": "string",
3425
+ "enum": [
3426
+ "docx",
3427
+ "odt",
3428
+ "pdf",
3429
+ "all"
3430
+ ]
3431
+ },
3432
+ "delivery": {
3433
+ "type": "string",
3434
+ "enum": [
3435
+ "attachment",
3436
+ "link"
3437
+ ]
3438
+ },
3439
+ "max_attachment_mb": {
3440
+ "type": "integer",
3441
+ "minimum": 1,
3442
+ "maximum": 25
3443
+ },
3444
+ "submission_type": {
3445
+ "type": "string",
3446
+ "enum": [
3447
+ "live",
3448
+ "test",
3449
+ "all"
3450
+ ]
3451
+ },
3452
+ "send_when": {
3453
+ "type": [
3454
+ "object",
3455
+ "null"
3456
+ ],
3457
+ "required": [
3458
+ "conditions"
3459
+ ],
3460
+ "properties": {
3461
+ "match": {
3462
+ "type": "string",
3463
+ "enum": [
3464
+ "all",
3465
+ "any"
3466
+ ]
3467
+ },
3468
+ "conditions": {
3469
+ "type": "array",
3470
+ "items": {
3471
+ "oneOf": [
3472
+ {
3473
+ "$ref": "#/components/schemas/FieldPresenceCondition"
3474
+ },
3475
+ {
3476
+ "$ref": "#/components/schemas/FieldEqualsCondition"
3477
+ },
3478
+ {
3479
+ "$ref": "#/components/schemas/FieldInCondition"
3480
+ },
3481
+ {
3482
+ "$ref": "#/components/schemas/FieldComparisonCondition"
3483
+ },
3484
+ {
3485
+ "$ref": "#/components/schemas/FieldRangeCondition"
3486
+ }
3487
+ ],
3488
+ "discriminator": {
3489
+ "propertyName": "operator",
3490
+ "mapping": [
3491
+ [
3492
+ "present",
3493
+ "#/components/schemas/FieldPresenceCondition"
3494
+ ],
3495
+ [
3496
+ "blank",
3497
+ "#/components/schemas/FieldPresenceCondition"
3498
+ ],
3499
+ [
3500
+ "equals",
3501
+ "#/components/schemas/FieldEqualsCondition"
3502
+ ],
3503
+ [
3504
+ "not_equals",
3505
+ "#/components/schemas/FieldEqualsCondition"
3506
+ ],
3507
+ [
3508
+ "in",
3509
+ "#/components/schemas/FieldInCondition"
3510
+ ],
3511
+ [
3512
+ "gt",
3513
+ "#/components/schemas/FieldComparisonCondition"
3514
+ ],
3515
+ [
3516
+ "gte",
3517
+ "#/components/schemas/FieldComparisonCondition"
3518
+ ],
3519
+ [
3520
+ "lt",
3521
+ "#/components/schemas/FieldComparisonCondition"
3522
+ ],
3523
+ [
3524
+ "lte",
3525
+ "#/components/schemas/FieldComparisonCondition"
3526
+ ],
3527
+ [
3528
+ "range",
3529
+ "#/components/schemas/FieldRangeCondition"
3530
+ ]
3531
+ ]
3532
+ }
3533
+ },
3534
+ "minItems": 1,
3535
+ "maxItems": 20
3536
+ }
3537
+ },
3538
+ "additionalProperties": false
3539
+ },
3540
+ "failure_notifications_enabled": {
3541
+ "type": "boolean"
3542
+ }
3543
+ },
3544
+ "minProperties": 1,
3545
+ "additionalProperties": false
3546
+ }
3547
+ }
3548
+ },
3549
+ "updateEmailAction": {
3550
+ "body": {
3551
+ "mediaType": "application/json",
3552
+ "required": true,
3553
+ "schema": {
3554
+ "type": "object",
3555
+ "properties": {
3556
+ "name": {
3557
+ "type": [
3558
+ "string",
3559
+ "null"
3560
+ ],
3561
+ "maxLength": 512
3562
+ },
3563
+ "enabled": {
3564
+ "type": "boolean"
3565
+ },
3566
+ "to": {
3567
+ "type": "array",
3568
+ "maxItems": 10,
3569
+ "items": {
3570
+ "type": "string",
3571
+ "maxLength": 512
3572
+ }
3573
+ },
3574
+ "cc": {
3575
+ "type": "array",
3576
+ "maxItems": 10,
3577
+ "items": {
3578
+ "type": "string",
3579
+ "maxLength": 512
3580
+ }
3581
+ },
3582
+ "bcc": {
3583
+ "type": "array",
3584
+ "maxItems": 10,
3585
+ "items": {
3586
+ "type": "string",
3587
+ "maxLength": 512
3588
+ }
3589
+ },
3590
+ "from_name": {
3591
+ "type": [
3592
+ "string",
3593
+ "null"
3594
+ ],
3595
+ "maxLength": 64
3596
+ },
3597
+ "from_address": {
3598
+ "type": [
3599
+ "string",
3600
+ "null"
3601
+ ],
3602
+ "maxLength": 254
3603
+ },
3604
+ "reply_to": {
3605
+ "type": [
3606
+ "string",
3607
+ "null"
3608
+ ],
3609
+ "maxLength": 254
3610
+ },
3611
+ "subject": {
3612
+ "type": [
3613
+ "string",
3614
+ "null"
3615
+ ],
3616
+ "maxLength": 200
3617
+ },
3618
+ "message": {
3619
+ "type": [
3620
+ "string",
3621
+ "null"
3622
+ ],
3623
+ "maxLength": 2000
3624
+ },
3625
+ "file_name": {
3626
+ "type": [
3627
+ "string",
3628
+ "null"
3629
+ ],
3630
+ "maxLength": 200
3631
+ },
3632
+ "file_formats": {
3633
+ "type": "string",
3634
+ "enum": [
3635
+ "docx",
3636
+ "odt",
3637
+ "pdf",
3638
+ "all"
3639
+ ]
3640
+ },
3641
+ "delivery": {
3642
+ "type": "string",
3643
+ "enum": [
3644
+ "attachment",
3645
+ "link"
3646
+ ]
3647
+ },
3648
+ "max_attachment_mb": {
3649
+ "type": "integer",
3650
+ "minimum": 1,
3651
+ "maximum": 25
3652
+ },
3653
+ "submission_type": {
3654
+ "type": "string",
3655
+ "enum": [
3656
+ "live",
3657
+ "test",
3658
+ "all"
3659
+ ]
3660
+ },
3661
+ "send_when": {
3662
+ "type": [
3663
+ "object",
3664
+ "null"
3665
+ ],
3666
+ "required": [
3667
+ "conditions"
3668
+ ],
3669
+ "properties": {
3670
+ "match": {
3671
+ "type": "string",
3672
+ "enum": [
3673
+ "all",
3674
+ "any"
3675
+ ]
3676
+ },
3677
+ "conditions": {
3678
+ "type": "array",
3679
+ "items": {
3680
+ "oneOf": [
3681
+ {
3682
+ "$ref": "#/components/schemas/FieldPresenceCondition"
3683
+ },
3684
+ {
3685
+ "$ref": "#/components/schemas/FieldEqualsCondition"
3686
+ },
3687
+ {
3688
+ "$ref": "#/components/schemas/FieldInCondition"
3689
+ },
3690
+ {
3691
+ "$ref": "#/components/schemas/FieldComparisonCondition"
3692
+ },
3693
+ {
3694
+ "$ref": "#/components/schemas/FieldRangeCondition"
3695
+ }
3696
+ ],
3697
+ "discriminator": {
3698
+ "propertyName": "operator",
3699
+ "mapping": [
3700
+ [
3701
+ "present",
3702
+ "#/components/schemas/FieldPresenceCondition"
3703
+ ],
3704
+ [
3705
+ "blank",
3706
+ "#/components/schemas/FieldPresenceCondition"
3707
+ ],
3708
+ [
3709
+ "equals",
3710
+ "#/components/schemas/FieldEqualsCondition"
3711
+ ],
3712
+ [
3713
+ "not_equals",
3714
+ "#/components/schemas/FieldEqualsCondition"
3715
+ ],
3716
+ [
3717
+ "in",
3718
+ "#/components/schemas/FieldInCondition"
3719
+ ],
3720
+ [
3721
+ "gt",
3722
+ "#/components/schemas/FieldComparisonCondition"
3723
+ ],
3724
+ [
3725
+ "gte",
3726
+ "#/components/schemas/FieldComparisonCondition"
3727
+ ],
3728
+ [
3729
+ "lt",
3730
+ "#/components/schemas/FieldComparisonCondition"
3731
+ ],
3732
+ [
3733
+ "lte",
3734
+ "#/components/schemas/FieldComparisonCondition"
3735
+ ],
3736
+ [
3737
+ "range",
3738
+ "#/components/schemas/FieldRangeCondition"
3739
+ ]
3740
+ ]
3741
+ }
3742
+ },
3743
+ "minItems": 1,
3744
+ "maxItems": 20
3745
+ }
3746
+ },
3747
+ "additionalProperties": false
3748
+ },
3749
+ "failure_notifications_enabled": {
3750
+ "type": "boolean"
3751
+ }
3752
+ },
3753
+ "minProperties": 1,
3754
+ "additionalProperties": false
3755
+ }
3756
+ }
3757
+ },
3758
+ "updateEmailActionCustomization": {
2554
3759
  "body": {
2555
3760
  "mediaType": "application/json",
2556
3761
  "required": true,
2557
3762
  "schema": {
2558
3763
  "type": "object",
2559
- "required": [
2560
- "version"
2561
- ],
2562
3764
  "properties": {
2563
- "version": {
3765
+ "enabled": {
3766
+ "type": "boolean"
3767
+ },
3768
+ "to": {
3769
+ "type": "array",
3770
+ "maxItems": 10,
3771
+ "items": {
3772
+ "type": "string",
3773
+ "maxLength": 512
3774
+ }
3775
+ },
3776
+ "cc": {
3777
+ "type": "array",
3778
+ "maxItems": 10,
3779
+ "items": {
3780
+ "type": "string",
3781
+ "maxLength": 512
3782
+ }
3783
+ },
3784
+ "bcc": {
3785
+ "type": "array",
3786
+ "maxItems": 10,
3787
+ "items": {
3788
+ "type": "string",
3789
+ "maxLength": 512
3790
+ }
3791
+ },
3792
+ "from_name": {
3793
+ "type": [
3794
+ "string",
3795
+ "null"
3796
+ ],
3797
+ "maxLength": 64
3798
+ },
3799
+ "from_address": {
3800
+ "type": [
3801
+ "string",
3802
+ "null"
3803
+ ],
3804
+ "maxLength": 254
3805
+ },
3806
+ "reply_to": {
3807
+ "type": [
3808
+ "string",
3809
+ "null"
3810
+ ],
3811
+ "maxLength": 254
3812
+ },
3813
+ "subject": {
3814
+ "type": [
3815
+ "string",
3816
+ "null"
3817
+ ],
3818
+ "maxLength": 200
3819
+ },
3820
+ "message": {
3821
+ "type": [
3822
+ "string",
3823
+ "null"
3824
+ ],
3825
+ "maxLength": 2000
3826
+ },
3827
+ "file_name": {
3828
+ "type": [
3829
+ "string",
3830
+ "null"
3831
+ ],
3832
+ "maxLength": 200
3833
+ },
3834
+ "file_formats": {
2564
3835
  "type": "string",
2565
- "pattern": "^\\d+(\\.\\d+(\\.\\d+)?)?$",
2566
- "x-pattern-message": "must be a published version like 1.2.3 or 1"
3836
+ "enum": [
3837
+ "docx",
3838
+ "odt",
3839
+ "pdf",
3840
+ "all"
3841
+ ]
3842
+ },
3843
+ "delivery": {
3844
+ "type": "string",
3845
+ "enum": [
3846
+ "attachment",
3847
+ "link"
3848
+ ]
3849
+ },
3850
+ "max_attachment_mb": {
3851
+ "type": "integer",
3852
+ "minimum": 1,
3853
+ "maximum": 25
3854
+ },
3855
+ "submission_type": {
3856
+ "type": "string",
3857
+ "enum": [
3858
+ "live",
3859
+ "test",
3860
+ "all"
3861
+ ]
3862
+ },
3863
+ "send_when": {
3864
+ "type": [
3865
+ "object",
3866
+ "null"
3867
+ ],
3868
+ "required": [
3869
+ "conditions"
3870
+ ],
3871
+ "properties": {
3872
+ "match": {
3873
+ "type": "string",
3874
+ "enum": [
3875
+ "all",
3876
+ "any"
3877
+ ]
3878
+ },
3879
+ "conditions": {
3880
+ "type": "array",
3881
+ "items": {
3882
+ "oneOf": [
3883
+ {
3884
+ "$ref": "#/components/schemas/FieldPresenceCondition"
3885
+ },
3886
+ {
3887
+ "$ref": "#/components/schemas/FieldEqualsCondition"
3888
+ },
3889
+ {
3890
+ "$ref": "#/components/schemas/FieldInCondition"
3891
+ },
3892
+ {
3893
+ "$ref": "#/components/schemas/FieldComparisonCondition"
3894
+ },
3895
+ {
3896
+ "$ref": "#/components/schemas/FieldRangeCondition"
3897
+ }
3898
+ ],
3899
+ "discriminator": {
3900
+ "propertyName": "operator",
3901
+ "mapping": [
3902
+ [
3903
+ "present",
3904
+ "#/components/schemas/FieldPresenceCondition"
3905
+ ],
3906
+ [
3907
+ "blank",
3908
+ "#/components/schemas/FieldPresenceCondition"
3909
+ ],
3910
+ [
3911
+ "equals",
3912
+ "#/components/schemas/FieldEqualsCondition"
3913
+ ],
3914
+ [
3915
+ "not_equals",
3916
+ "#/components/schemas/FieldEqualsCondition"
3917
+ ],
3918
+ [
3919
+ "in",
3920
+ "#/components/schemas/FieldInCondition"
3921
+ ],
3922
+ [
3923
+ "gt",
3924
+ "#/components/schemas/FieldComparisonCondition"
3925
+ ],
3926
+ [
3927
+ "gte",
3928
+ "#/components/schemas/FieldComparisonCondition"
3929
+ ],
3930
+ [
3931
+ "lt",
3932
+ "#/components/schemas/FieldComparisonCondition"
3933
+ ],
3934
+ [
3935
+ "lte",
3936
+ "#/components/schemas/FieldComparisonCondition"
3937
+ ],
3938
+ [
3939
+ "range",
3940
+ "#/components/schemas/FieldRangeCondition"
3941
+ ]
3942
+ ]
3943
+ }
3944
+ },
3945
+ "minItems": 1,
3946
+ "maxItems": 20
3947
+ }
3948
+ },
3949
+ "additionalProperties": false
2567
3950
  }
2568
3951
  },
2569
3952
  "additionalProperties": false
2570
3953
  }
2571
3954
  }
2572
3955
  },
2573
- "testAuthentication": {},
2574
3956
  "updateSignatureRequest": {
2575
3957
  "body": {
2576
3958
  "mediaType": "application/json",
@@ -2642,6 +4024,7 @@ exports.requestSchemas = {
2642
4024
  ]
2643
4025
  }
2644
4026
  },
4027
+ "minProperties": 1,
2645
4028
  "additionalProperties": false
2646
4029
  }
2647
4030
  }
@@ -2655,8 +4038,9 @@ exports.requestSchemas = {
2655
4038
  "properties": {
2656
4039
  "name": {
2657
4040
  "type": "string",
2658
- "minLength": 1,
2659
- "maxLength": 512"[^ \t\n\u000b\f\r…   - 

   ]",
4041
+ "maxLength": 512,
4042
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
4043
+ "x-pattern-message": "can't be blank"
2660
4044
  },
2661
4045
  "description": {
2662
4046
  "type": [
@@ -2677,7 +4061,8 @@ exports.requestSchemas = {
2677
4061
  "string",
2678
4062
  "null"
2679
4063
  ],
2680
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

   ]",
4064
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
4065
+ "x-pattern-message": "can't be blank"
2681
4066
  },
2682
4067
  "locked": {
2683
4068
  "type": "boolean"
@@ -2766,11 +4151,75 @@ exports.requestSchemas = {
2766
4151
  "type": "boolean"
2767
4152
  },
2768
4153
  "redirect_url": {
4154
+ "type": [
4155
+ "string",
4156
+ "null"
4157
+ ]
4158
+ },
4159
+ "signature_request_email_attachments": {
2769
4160
  "type": [
2770
4161
  "string",
2771
4162
  "null"
2772
4163
  ],
2773
- "format": "uri"
4164
+ "enum": [
4165
+ "attachment",
4166
+ "link",
4167
+ null
4168
+ ]
4169
+ },
4170
+ "signature_request_from_address": {
4171
+ "type": [
4172
+ "string",
4173
+ "null"
4174
+ ]
4175
+ },
4176
+ "signature_request_include_signing_token": {
4177
+ "type": "boolean"
4178
+ },
4179
+ "signature_request_from_name": {
4180
+ "type": [
4181
+ "string",
4182
+ "null"
4183
+ ],
4184
+ "maxLength": 64
4185
+ },
4186
+ "signature_request_notification_emails": {
4187
+ "type": "array",
4188
+ "maxItems": 10,
4189
+ "uniqueItems": true,
4190
+ "items": {
4191
+ "type": "string"
4192
+ }
4193
+ },
4194
+ "signature_request_reply_to": {
4195
+ "type": [
4196
+ "string",
4197
+ "null"
4198
+ ]
4199
+ },
4200
+ "signature_request_signing_url": {
4201
+ "type": [
4202
+ "string",
4203
+ "null"
4204
+ ],
4205
+ "maxLength": 2048
4206
+ },
4207
+ "success_title": {
4208
+ "type": [
4209
+ "string",
4210
+ "null"
4211
+ ],
4212
+ "maxLength": 512
4213
+ },
4214
+ "success_message": {
4215
+ "type": [
4216
+ "string",
4217
+ "null"
4218
+ ],
4219
+ "maxLength": 5000
4220
+ },
4221
+ "show_fill_again_button": {
4222
+ "type": "boolean"
2774
4223
  },
2775
4224
  "slack_webhook_url": {
2776
4225
  "type": [
@@ -3053,6 +4502,7 @@ exports.requestSchemas = {
3053
4502
  },
3054
4503
  "field_groups": {
3055
4504
  "type": "array",
4505
+ "minItems": 1,
3056
4506
  "items": {
3057
4507
  "type": "object",
3058
4508
  "properties": {
@@ -3093,6 +4543,43 @@ exports.requestSchemas = {
3093
4543
  "additionalProperties": false
3094
4544
  }
3095
4545
  },
4546
+ "form_sections": {
4547
+ "type": "array",
4548
+ "items": {
4549
+ "type": "object",
4550
+ "properties": {
4551
+ "id": {
4552
+ "type": "string",
4553
+ "maxLength": 255,
4554
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
4555
+ "x-pattern-message": "can't be blank"
4556
+ },
4557
+ "title": {
4558
+ "type": "string",
4559
+ "maxLength": 512
4560
+ },
4561
+ "description": {
4562
+ "type": [
4563
+ "string",
4564
+ "null"
4565
+ ],
4566
+ "maxLength": 5000
4567
+ },
4568
+ "field_ids": {
4569
+ "type": "array",
4570
+ "items": {
4571
+ "type": "integer"
4572
+ }
4573
+ }
4574
+ },
4575
+ "required": [
4576
+ "id",
4577
+ "title",
4578
+ "field_ids"
4579
+ ],
4580
+ "additionalProperties": false
4581
+ }
4582
+ },
3096
4583
  "predefined_fields": {
3097
4584
  "type": "array",
3098
4585
  "items": {
@@ -3215,7 +4702,8 @@ exports.requestSchemas = {
3215
4702
  },
3216
4703
  "scale": {
3217
4704
  "type": "number",
3218
- "exclusiveMinimum": 0
4705
+ "minimum": 0.1,
4706
+ "maximum": 2
3219
4707
  },
3220
4708
  "landscape": {
3221
4709
  "type": "boolean"
@@ -3240,8 +4728,15 @@ exports.requestSchemas = {
3240
4728
  },
3241
4729
  "html_escape_data": {
3242
4730
  "type": "boolean"
4731
+ },
4732
+ "layout": {
4733
+ "type": [
4734
+ "object",
4735
+ "null"
4736
+ ]
3243
4737
  }
3244
4738
  },
4739
+ "minProperties": 1,
3245
4740
  "additionalProperties": false
3246
4741
  }
3247
4742
  }
@@ -3263,8 +4758,9 @@ exports.requestSchemas = {
3263
4758
  "properties": {
3264
4759
  "cache_id": {
3265
4760
  "type": "string",
3266
- "minLength": 1,
3267
- "maxLength": 255"[^ \t\n\u000b\f\r…   - 

   ]",
4761
+ "maxLength": 255,
4762
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
4763
+ "x-pattern-message": "can't be blank"
3268
4764
  },
3269
4765
  "document_url": {
3270
4766
  "type": "string",
@@ -3279,8 +4775,9 @@ exports.requestSchemas = {
3279
4775
  },
3280
4776
  "filename": {
3281
4777
  "type": "string",
3282
- "minLength": 1,
3283
- "maxLength": 255"^[^/\\\\]*[^/\\\\ \t\n\u000b\f\r…   - 

   ][^/\\\\]*$",
4778
+ "maxLength": 255,
4779
+ "pattern": "^[^/\\\\]*[^/\\\\ \t\n\u000b\f\r…   - 

   ][^/\\\\]*$",
4780
+ "x-pattern-message": "can't be blank or contain a slash (/ or \\)"
3284
4781
  },
3285
4782
  "reimport_fields": {
3286
4783
  "type": "boolean"
@@ -3736,10 +5233,17 @@ exports.requestSchemas = {
3736
5233
  "type": "string",
3737
5234
  "enum": [
3738
5235
  "equals",
5236
+ "not_equals",
3739
5237
  "contains",
5238
+ "not_contains",
3740
5239
  "starts_with",
5240
+ "not_starts_with",
3741
5241
  "ends_with",
3742
- "regex"
5242
+ "not_ends_with",
5243
+ "regex",
5244
+ "not_regex",
5245
+ "blank",
5246
+ "not_blank"
3743
5247
  ]
3744
5248
  },
3745
5249
  "number_condition_type": {
@@ -3946,9 +5450,11 @@ exports.requestSchemas = {
3946
5450
  "submission.processed",
3947
5451
  "submission.failed",
3948
5452
  "submission.declined",
5453
+ "signature_request.sent",
3949
5454
  "signature_request.viewed",
3950
5455
  "signature_request.completed",
3951
5456
  "signature_request.declined",
5457
+ "signature_request.email_bounced",
3952
5458
  "combined_pdf.processed",
3953
5459
  "combined_pdf.failed",
3954
5460
  "submission_batch.processed",
@@ -3986,21 +5492,27 @@ exports.requestSchemas = {
3986
5492
  "type": "array",
3987
5493
  "uniqueItems": true,
3988
5494
  "items": {
3989
- "type": "string"
5495
+ "type": "string",
5496
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
5497
+ "x-pattern-message": "can't be blank"
3990
5498
  }
3991
5499
  },
3992
5500
  "template_ids": {
3993
5501
  "type": "array",
3994
5502
  "uniqueItems": true,
3995
5503
  "items": {
3996
- "type": "string"
5504
+ "type": "string",
5505
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
5506
+ "x-pattern-message": "can't be blank"
3997
5507
  }
3998
5508
  },
3999
5509
  "folder_ids": {
4000
5510
  "type": "array",
4001
5511
  "uniqueItems": true,
4002
5512
  "items": {
4003
- "type": "string"
5513
+ "type": "string",
5514
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
5515
+ "x-pattern-message": "can't be blank"
4004
5516
  }
4005
5517
  },
4006
5518
  "include_submission_data": {
@@ -4019,6 +5531,7 @@ exports.requestSchemas = {
4019
5531
  }
4020
5532
  }
4021
5533
  },
5534
+ "minProperties": 1,
4022
5535
  "additionalProperties": false
4023
5536
  }
4024
5537
  }
@@ -4047,15 +5560,17 @@ exports.requestSchemas = {
4047
5560
  },
4048
5561
  "name": {
4049
5562
  "type": "string",
4050
- "minLength": 1,
4051
- "maxLength": 512"[^ \t\n\u000b\f\r…   - 

   ]",
5563
+ "maxLength": 512,
5564
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
5565
+ "x-pattern-message": "can't be blank"
4052
5566
  },
4053
5567
  "description": {
4054
5568
  "type": "string"
4055
5569
  },
4056
5570
  "parent_folder_id": {
4057
5571
  "type": "string",
4058
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

   ]",
5572
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
5573
+ "x-pattern-message": "can't be blank"
4059
5574
  },
4060
5575
  "ai_field_naming_language": {
4061
5576
  "type": "string",
@@ -4097,6 +5612,9 @@ exports.requestSchemas = {
4097
5612
  "docx",
4098
5613
  "odt"
4099
5614
  ]
5615
+ },
5616
+ "include_office_use_fields": {
5617
+ "type": "boolean"
4100
5618
  }
4101
5619
  },
4102
5620
  "additionalProperties": false
@@ -4139,7 +5657,7 @@ exports.requestSchemas = {
4139
5657
  "required": false,
4140
5658
  "schema": {
4141
5659
  "type": "string",
4142
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
5660
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
4143
5661
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
4144
5662
  }
4145
5663
  }
@@ -4215,7 +5733,9 @@ exports.requestSchemas = {
4215
5733
  "string",
4216
5734
  "null"
4217
5735
  ],
4218
- "maxLength": 254
5736
+ "maxLength": 254,
5737
+ "pattern": "^[^ \t\n\u000b\f\r@]+@[^ \t\n\u000b\f\r@]+$",
5738
+ "x-pattern-message": "must be an email address, like name@example.com"
4219
5739
  },
4220
5740
  "fields": {
4221
5741
  "type": "array",
@@ -4298,33 +5818,111 @@ exports.requestSchemas = {
4298
5818
  },
4299
5819
  "prefilled_values_editable": {
4300
5820
  "type": "boolean"
5821
+ },
5822
+ "send_email": {
5823
+ "type": "boolean"
5824
+ },
5825
+ "signing_step": {
5826
+ "type": "integer",
5827
+ "minimum": 1,
5828
+ "maximum": 100
4301
5829
  }
4302
5830
  },
4303
5831
  "required": [
4304
- "fields",
4305
- "auth_type"
5832
+ "fields"
4306
5833
  ],
4307
5834
  "additionalProperties": false
4308
5835
  }
5836
+ },
5837
+ "send_email": {
5838
+ "type": "boolean"
5839
+ },
5840
+ "signing_order": {
5841
+ "type": "string",
5842
+ "enum": [
5843
+ "parallel",
5844
+ "sequential"
5845
+ ]
5846
+ },
5847
+ "email_subject": {
5848
+ "type": "string",
5849
+ "minLength": 1,
5850
+ "maxLength": 200
5851
+ },
5852
+ "email_message": {
5853
+ "type": "string",
5854
+ "minLength": 1,
5855
+ "maxLength": 2000
5856
+ },
5857
+ "cc": {
5858
+ "type": "array",
5859
+ "maxItems": 10,
5860
+ "uniqueItems": true,
5861
+ "items": {
5862
+ "type": "string"
5863
+ }
5864
+ },
5865
+ "reply_to": {
5866
+ "type": "string"
5867
+ },
5868
+ "notification_emails": {
5869
+ "type": "array",
5870
+ "maxItems": 10,
5871
+ "uniqueItems": true,
5872
+ "items": {
5873
+ "type": "string"
5874
+ }
5875
+ },
5876
+ "notify_when_signed": {
5877
+ "type": "boolean"
5878
+ },
5879
+ "reminders": {
5880
+ "type": "object",
5881
+ "additionalProperties": false,
5882
+ "required": [
5883
+ "interval_days",
5884
+ "max_count"
5885
+ ],
5886
+ "properties": {
5887
+ "interval_days": {
5888
+ "type": "integer",
5889
+ "minimum": 1,
5890
+ "maximum": 30
5891
+ },
5892
+ "max_count": {
5893
+ "type": "integer",
5894
+ "minimum": 1,
5895
+ "maximum": 10
5896
+ }
5897
+ }
4309
5898
  }
4310
5899
  },
4311
5900
  "additionalProperties": false
4312
5901
  }
4313
5902
  }
4314
- }
5903
+ },
5904
+ "verifyEmailDomain": {}
4315
5905
  },
4316
5906
  "routes": {
4317
5907
  "DELETE /combined_pdfs/{combined_pdf_id}": "expireCombinedPdf",
4318
5908
  "DELETE /custom_files/{custom_file_id}": "deleteCustomFile",
5909
+ "DELETE /email_actions/{email_action_id}": "deleteAccountEmailAction",
5910
+ "DELETE /email_domains/{email_domain_id}": "deleteEmailDomain",
4319
5911
  "DELETE /folders/{folder_id}": "deleteFolder",
4320
5912
  "DELETE /submissions/{submission_id}": "expireSubmission",
4321
5913
  "DELETE /templates/{template_id}": "deleteTemplate",
5914
+ "DELETE /templates/{template_id}/email_actions/{email_action_id}": "deleteEmailAction",
5915
+ "DELETE /templates/{template_id}/email_actions/{email_action_id}/customization": "deleteEmailActionCustomization",
4322
5916
  "DELETE /webhooks/{webhook_id}": "deleteWebhook",
4323
5917
  "GET /authentication": "testAuthentication",
4324
5918
  "GET /combined_pdfs": "listCombinedPdfs",
4325
5919
  "GET /combined_pdfs/{combined_pdf_id}": "getCombinedPdf",
4326
5920
  "GET /custom_files": "listCustomFiles",
4327
5921
  "GET /custom_files/{custom_file_id}": "getCustomFile",
5922
+ "GET /email_actions": "listAccountEmailActions",
5923
+ "GET /email_actions/{email_action_id}": "getAccountEmailAction",
5924
+ "GET /email_domains": "listEmailDomains",
5925
+ "GET /email_domains/{email_domain_id}": "getEmailDomain",
4328
5926
  "GET /folders": "listFolders",
4329
5927
  "GET /folders/{folder_id}": "getFolder",
4330
5928
  "GET /signature_requests/{signature_request_id}": "getSignatureRequest",
@@ -4334,6 +5932,8 @@ exports.requestSchemas = {
4334
5932
  "GET /templates": "listTemplates",
4335
5933
  "GET /templates/{template_id}": "getTemplate",
4336
5934
  "GET /templates/{template_id}/diff": "getTemplateDiff",
5935
+ "GET /templates/{template_id}/email_actions": "listEmailActions",
5936
+ "GET /templates/{template_id}/email_actions/{email_action_id}": "getEmailAction",
4337
5937
  "GET /templates/{template_id}/fields": "listTemplateFields",
4338
5938
  "GET /templates/{template_id}/model_code": "getTemplateModelCode",
4339
5939
  "GET /templates/{template_id}/page_images": "getTemplatePageImages",
@@ -4345,6 +5945,10 @@ exports.requestSchemas = {
4345
5945
  "GET /webhooks/{webhook_id}": "getWebhook",
4346
5946
  "POST /combined_pdfs": "createCombinedPdf",
4347
5947
  "POST /custom_files": "createCustomFileFromUpload",
5948
+ "POST /email_actions": "createAccountEmailAction",
5949
+ "POST /email_actions/{email_action_id}/test_email": "sendAccountEmailActionTestEmail",
5950
+ "POST /email_domains": "createEmailDomain",
5951
+ "POST /email_domains/{email_domain_id}/verify": "verifyEmailDomain",
4348
5952
  "POST /folders": "createFolder",
4349
5953
  "POST /folders/{folder_id}/move": "moveFolder",
4350
5954
  "POST /folders/{folder_id}/rename": "renameFolder",
@@ -4356,6 +5960,8 @@ exports.requestSchemas = {
4356
5960
  "POST /templates": "createTemplate",
4357
5961
  "POST /templates/upload": "uploadTemplate",
4358
5962
  "POST /templates/{template_id}/copy": "copyTemplate",
5963
+ "POST /templates/{template_id}/email_actions": "createEmailAction",
5964
+ "POST /templates/{template_id}/email_actions/{email_action_id}/test_email": "sendEmailActionTestEmail",
4359
5965
  "POST /templates/{template_id}/fields": "addTemplateFields",
4360
5966
  "POST /templates/{template_id}/fields/remove": "removeTemplateFields",
4361
5967
  "POST /templates/{template_id}/fields/reorder": "reorderTemplateFields",
@@ -4366,10 +5972,13 @@ exports.requestSchemas = {
4366
5972
  "POST /templates/{template_id}/submissions": "createSubmission",
4367
5973
  "POST /templates/{template_id}/submissions/validate": "validateSubmission",
4368
5974
  "POST /webhooks": "createWebhook",
5975
+ "PUT /email_actions/{email_action_id}": "updateAccountEmailAction",
4369
5976
  "PUT /signature_requests/{signature_request_id}": "updateSignatureRequest",
4370
5977
  "PUT /templates/{template_id}": "updateTemplate",
4371
5978
  "PUT /templates/{template_id}/document": "updateTemplateDocument",
4372
5979
  "PUT /templates/{template_id}/document/upload": "uploadTemplateDocument",
5980
+ "PUT /templates/{template_id}/email_actions/{email_action_id}": "updateEmailAction",
5981
+ "PUT /templates/{template_id}/email_actions/{email_action_id}/customization": "updateEmailActionCustomization",
4373
5982
  "PUT /templates/{template_id}/fields": "updateTemplateFields",
4374
5983
  "PUT /webhooks/{webhook_id}": "updateWebhook"
4375
5984
  },
@@ -4388,7 +5997,8 @@ exports.requestSchemas = {
4388
5997
  },
4389
5998
  "id": {
4390
5999
  "type": "string",
4391
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

   ]",
6000
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
6001
+ "x-pattern-message": "can't be blank"
4392
6002
  }
4393
6003
  },
4394
6004
  "additionalProperties": false,
@@ -4411,7 +6021,8 @@ exports.requestSchemas = {
4411
6021
  },
4412
6022
  "id": {
4413
6023
  "type": "string",
4414
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

   ]",
6024
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
6025
+ "x-pattern-message": "can't be blank"
4415
6026
  }
4416
6027
  },
4417
6028
  "additionalProperties": false,
@@ -4836,10 +6447,17 @@ exports.requestSchemas = {
4836
6447
  "type": "string",
4837
6448
  "enum": [
4838
6449
  "equals",
6450
+ "not_equals",
4839
6451
  "contains",
6452
+ "not_contains",
4840
6453
  "starts_with",
6454
+ "not_starts_with",
4841
6455
  "ends_with",
4842
- "regex"
6456
+ "not_ends_with",
6457
+ "regex",
6458
+ "not_regex",
6459
+ "blank",
6460
+ "not_blank"
4843
6461
  ]
4844
6462
  },
4845
6463
  "number_condition_type": {
@@ -5033,7 +6651,8 @@ exports.requestSchemas = {
5033
6651
  },
5034
6652
  "id": {
5035
6653
  "type": "string",
5036
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

   ]",
6654
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
6655
+ "x-pattern-message": "can't be blank"
5037
6656
  }
5038
6657
  },
5039
6658
  "additionalProperties": false,
@@ -5056,11 +6675,12 @@ exports.requestSchemas = {
5056
6675
  },
5057
6676
  "id": {
5058
6677
  "type": "string",
5059
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

   ]",
6678
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
6679
+ "x-pattern-message": "can't be blank"
5060
6680
  },
5061
6681
  "template_version": {
5062
6682
  "type": "string",
5063
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
6683
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
5064
6684
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
5065
6685
  },
5066
6686
  "processed": {