docspring 4.3.0 → 4.4.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 (160) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/release.yml +80 -0
  3. data/.openapi-generator/FILES +84 -0
  4. data/CHANGELOG.md +55 -0
  5. data/Gemfile.lock +2 -2
  6. data/README.md +20 -1
  7. data/docs/AddTemplateFieldsRequest.md +1 -1
  8. data/docs/Client.md +2311 -766
  9. data/docs/CombinedPdfSource.md +1 -1
  10. data/docs/CreateAccountEmailActionRequest.md +54 -0
  11. data/docs/CreateEmailActionRequest.md +50 -0
  12. data/docs/CreateEmailDomainRequest.md +18 -0
  13. data/docs/CreateSubmissionBatchRequest.md +2 -2
  14. data/docs/CreateSubmissionRequest.md +22 -4
  15. data/docs/CreateTemplateRequest.md +22 -6
  16. data/docs/DnsRecordType.md +15 -0
  17. data/docs/EmailAction.md +76 -0
  18. data/docs/EmailActionConditions.md +20 -0
  19. data/docs/EmailActionConditionsInput.md +20 -0
  20. data/docs/EmailActionCustomization.md +36 -0
  21. data/docs/EmailActionDelivery.md +15 -0
  22. data/docs/EmailActionFileFormats.md +15 -0
  23. data/docs/EmailActionList.md +20 -0
  24. data/docs/EmailActionSetting.md +15 -0
  25. data/docs/EmailActionSubmissionType.md +15 -0
  26. data/docs/EmailActionTestEmail.md +18 -0
  27. data/docs/EmailDomain.md +38 -0
  28. data/docs/EmailDomainDnsRecord.md +24 -0
  29. data/docs/EmailDomainDnsRecordPurpose.md +15 -0
  30. data/docs/EmailDomainList.md +20 -0
  31. data/docs/EmailDomainRecordState.md +15 -0
  32. data/docs/EmailDomainState.md +15 -0
  33. data/docs/ErrorInfo.md +12 -6
  34. data/docs/Field.md +1 -1
  35. data/docs/FieldInput.md +1 -1
  36. data/docs/HtmlEngineOptions.md +1 -1
  37. data/docs/HtmlEngineOptionsInput.md +1 -1
  38. data/docs/SendAccountEmailActionTestEmailRequest.md +18 -0
  39. data/docs/SignatureRequest.md +9 -1
  40. data/docs/SignatureRequestEmailAttachments.md +15 -0
  41. data/docs/SignatureRequestEmailStatus.md +15 -0
  42. data/docs/SignatureRequestInput.md +7 -3
  43. data/docs/SignatureRequestReminders.md +20 -0
  44. data/docs/SigningOrder.md +15 -0
  45. data/docs/Submission.md +4 -2
  46. data/docs/SubmissionAction.md +5 -3
  47. data/docs/SubmissionInput.md +3 -3
  48. data/docs/SubmissionSummary.md +1 -1
  49. data/docs/Template.md +23 -7
  50. data/docs/TemplateSourcePdf.md +1 -1
  51. data/docs/TemplateSummary.md +4 -4
  52. data/docs/UpdateAccountEmailActionRequest.md +54 -0
  53. data/docs/UpdateEmailActionCustomizationRequest.md +46 -0
  54. data/docs/UpdateEmailActionRequest.md +50 -0
  55. data/docs/UpdateTemplateDocumentRequest.md +1 -1
  56. data/docs/UpdateTemplateRequest.md +21 -5
  57. data/docs/ValidateSubmissionRequest.md +22 -4
  58. data/lib/docspring/api/client.rb +1749 -314
  59. data/lib/docspring/api_client.rb +1 -1
  60. data/lib/docspring/models/add_template_fields_request.rb +1 -1
  61. data/lib/docspring/models/combined_pdf_source.rb +1 -1
  62. data/lib/docspring/models/create_account_email_action_request.rb +388 -0
  63. data/lib/docspring/models/create_email_action_request.rb +364 -0
  64. data/lib/docspring/models/create_email_domain_request.rb +185 -0
  65. data/lib/docspring/models/create_submission_batch_request.rb +2 -2
  66. data/lib/docspring/models/create_submission_request.rb +143 -7
  67. data/lib/docspring/models/create_template_request.rb +107 -7
  68. data/lib/docspring/models/dns_record_type.rb +42 -0
  69. data/lib/docspring/models/email_action.rb +790 -0
  70. data/lib/docspring/models/email_action_conditions.rb +219 -0
  71. data/lib/docspring/models/email_action_conditions_input.rb +219 -0
  72. data/lib/docspring/models/email_action_customization.rb +360 -0
  73. data/lib/docspring/models/email_action_delivery.rb +41 -0
  74. data/lib/docspring/models/email_action_file_formats.rb +43 -0
  75. data/lib/docspring/models/email_action_list.rb +200 -0
  76. data/lib/docspring/models/email_action_setting.rb +53 -0
  77. data/lib/docspring/models/email_action_submission_type.rb +42 -0
  78. data/lib/docspring/models/email_action_test_email.rb +185 -0
  79. data/lib/docspring/models/email_domain.rb +423 -0
  80. data/lib/docspring/models/email_domain_dns_record.rb +288 -0
  81. data/lib/docspring/models/email_domain_dns_record_purpose.rb +42 -0
  82. data/lib/docspring/models/email_domain_list.rb +200 -0
  83. data/lib/docspring/models/email_domain_record_state.rb +42 -0
  84. data/lib/docspring/models/email_domain_state.rb +42 -0
  85. data/lib/docspring/models/error_code.rb +3 -1
  86. data/lib/docspring/models/error_info.rb +39 -9
  87. data/lib/docspring/models/field.rb +1 -1
  88. data/lib/docspring/models/field_input.rb +1 -1
  89. data/lib/docspring/models/html_engine_options.rb +1 -1
  90. data/lib/docspring/models/html_engine_options_input.rb +1 -1
  91. data/lib/docspring/models/send_account_email_action_test_email_request.rb +168 -0
  92. data/lib/docspring/models/signature_request.rb +68 -2
  93. data/lib/docspring/models/signature_request_email_attachments.rb +41 -0
  94. data/lib/docspring/models/signature_request_email_status.rb +47 -0
  95. data/lib/docspring/models/signature_request_event_type.rb +3 -1
  96. data/lib/docspring/models/signature_request_input.rb +25 -22
  97. data/lib/docspring/models/signature_request_reminders.rb +212 -0
  98. data/lib/docspring/models/signing_order.rb +41 -0
  99. data/lib/docspring/models/string_condition_type.rb +8 -1
  100. data/lib/docspring/models/submission.rb +30 -3
  101. data/lib/docspring/models/submission_action.rb +18 -5
  102. data/lib/docspring/models/submission_input.rb +3 -3
  103. data/lib/docspring/models/submission_summary.rb +1 -1
  104. data/lib/docspring/models/template.rb +144 -8
  105. data/lib/docspring/models/template_source_pdf.rb +1 -1
  106. data/lib/docspring/models/template_summary.rb +4 -4
  107. data/lib/docspring/models/template_type.rb +2 -1
  108. data/lib/docspring/models/update_account_email_action_request.rb +388 -0
  109. data/lib/docspring/models/update_email_action_customization_request.rb +343 -0
  110. data/lib/docspring/models/update_email_action_request.rb +364 -0
  111. data/lib/docspring/models/update_template_document_request.rb +1 -1
  112. data/lib/docspring/models/update_template_request.rb +108 -8
  113. data/lib/docspring/models/validate_submission_request.rb +143 -7
  114. data/lib/docspring/models/webhook_event_type.rb +3 -1
  115. data/lib/docspring/request_schemas.json +1691 -145
  116. data/lib/docspring/request_validator.rb +4 -0
  117. data/lib/docspring/version.rb +1 -1
  118. data/lib/docspring.rb +28 -0
  119. data/spec/api/client_spec.rb +306 -18
  120. data/spec/models/create_account_email_action_request_spec.rb +144 -0
  121. data/spec/models/create_email_action_request_spec.rb +132 -0
  122. data/spec/models/create_email_domain_request_spec.rb +36 -0
  123. data/spec/models/create_submission_request_spec.rb +54 -0
  124. data/spec/models/create_template_request_spec.rb +48 -0
  125. data/spec/models/dns_record_type_spec.rb +30 -0
  126. data/spec/models/email_action_conditions_input_spec.rb +42 -0
  127. data/spec/models/email_action_conditions_spec.rb +42 -0
  128. data/spec/models/email_action_customization_spec.rb +90 -0
  129. data/spec/models/email_action_delivery_spec.rb +30 -0
  130. data/spec/models/email_action_file_formats_spec.rb +30 -0
  131. data/spec/models/email_action_list_spec.rb +42 -0
  132. data/spec/models/email_action_setting_spec.rb +30 -0
  133. data/spec/models/email_action_spec.rb +210 -0
  134. data/spec/models/email_action_submission_type_spec.rb +30 -0
  135. data/spec/models/email_action_test_email_spec.rb +36 -0
  136. data/spec/models/email_domain_dns_record_purpose_spec.rb +30 -0
  137. data/spec/models/email_domain_dns_record_spec.rb +54 -0
  138. data/spec/models/email_domain_list_spec.rb +42 -0
  139. data/spec/models/email_domain_record_state_spec.rb +30 -0
  140. data/spec/models/email_domain_spec.rb +96 -0
  141. data/spec/models/email_domain_state_spec.rb +30 -0
  142. data/spec/models/error_info_spec.rb +18 -0
  143. data/spec/models/send_account_email_action_test_email_request_spec.rb +36 -0
  144. data/spec/models/signature_request_email_attachments_spec.rb +30 -0
  145. data/spec/models/signature_request_email_status_spec.rb +30 -0
  146. data/spec/models/signature_request_input_spec.rb +12 -0
  147. data/spec/models/signature_request_reminders_spec.rb +42 -0
  148. data/spec/models/signature_request_spec.rb +24 -0
  149. data/spec/models/signing_order_spec.rb +30 -0
  150. data/spec/models/submission_action_spec.rb +6 -0
  151. data/spec/models/submission_spec.rb +6 -0
  152. data/spec/models/template_spec.rb +48 -0
  153. data/spec/models/update_account_email_action_request_spec.rb +144 -0
  154. data/spec/models/update_email_action_customization_request_spec.rb +120 -0
  155. data/spec/models/update_email_action_request_spec.rb +132 -0
  156. data/spec/models/update_template_request_spec.rb +48 -0
  157. data/spec/models/validate_submission_request_spec.rb +54 -0
  158. metadata +115 -4
  159. data/.gitlab-ci.yml +0 -26
  160. data/.travis.yml +0 -11
@@ -446,10 +446,17 @@
446
446
  "type": "string",
447
447
  "enum": [
448
448
  "equals",
449
+ "not_equals",
449
450
  "contains",
451
+ "not_contains",
450
452
  "starts_with",
453
+ "not_starts_with",
451
454
  "ends_with",
452
- "regex"
455
+ "not_ends_with",
456
+ "regex",
457
+ "not_regex",
458
+ "blank",
459
+ "not_blank"
453
460
  ]
454
461
  },
455
462
  "number_condition_type": {
@@ -634,19 +641,21 @@
634
641
  "properties": {
635
642
  "name": {
636
643
  "type": "string",
637
- "minLength": 1,
638
- "maxLength": 512"[^ \t\n\u000b\f\r…   - 

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

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

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

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

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

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

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

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

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

   ]",
1248
+ "x-pattern-message": "can't be blank"
783
1249
  }
784
1250
  },
785
1251
  "required": [
@@ -864,7 +1330,7 @@
864
1330
  "required": false,
865
1331
  "schema": {
866
1332
  "type": "string",
867
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
1333
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
868
1334
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
869
1335
  }
870
1336
  },
@@ -946,7 +1412,9 @@
946
1412
  "string",
947
1413
  "null"
948
1414
  ],
949
- "maxLength": 254
1415
+ "maxLength": 254,
1416
+ "pattern": "^[^ \t\n\u000b\f\r@]+@[^ \t\n\u000b\f\r@]+$",
1417
+ "x-pattern-message": "must be an email address, like name@example.com"
950
1418
  },
951
1419
  "fields": {
952
1420
  "type": "array",
@@ -1029,14 +1497,83 @@
1029
1497
  },
1030
1498
  "prefilled_values_editable": {
1031
1499
  "type": "boolean"
1500
+ },
1501
+ "send_email": {
1502
+ "type": "boolean"
1503
+ },
1504
+ "signing_step": {
1505
+ "type": "integer",
1506
+ "minimum": 1,
1507
+ "maximum": 100
1032
1508
  }
1033
1509
  },
1034
1510
  "required": [
1035
- "fields",
1036
- "auth_type"
1511
+ "fields"
1037
1512
  ],
1038
1513
  "additionalProperties": false
1039
1514
  }
1515
+ },
1516
+ "send_email": {
1517
+ "type": "boolean"
1518
+ },
1519
+ "signing_order": {
1520
+ "type": "string",
1521
+ "enum": [
1522
+ "parallel",
1523
+ "sequential"
1524
+ ]
1525
+ },
1526
+ "email_subject": {
1527
+ "type": "string",
1528
+ "minLength": 1,
1529
+ "maxLength": 200
1530
+ },
1531
+ "email_message": {
1532
+ "type": "string",
1533
+ "minLength": 1,
1534
+ "maxLength": 2000
1535
+ },
1536
+ "cc": {
1537
+ "type": "array",
1538
+ "maxItems": 10,
1539
+ "uniqueItems": true,
1540
+ "items": {
1541
+ "type": "string"
1542
+ }
1543
+ },
1544
+ "reply_to": {
1545
+ "type": "string"
1546
+ },
1547
+ "notification_emails": {
1548
+ "type": "array",
1549
+ "maxItems": 10,
1550
+ "uniqueItems": true,
1551
+ "items": {
1552
+ "type": "string"
1553
+ }
1554
+ },
1555
+ "notify_when_signed": {
1556
+ "type": "boolean"
1557
+ },
1558
+ "reminders": {
1559
+ "type": "object",
1560
+ "additionalProperties": false,
1561
+ "required": [
1562
+ "interval_days",
1563
+ "max_count"
1564
+ ],
1565
+ "properties": {
1566
+ "interval_days": {
1567
+ "type": "integer",
1568
+ "minimum": 1,
1569
+ "maximum": 30
1570
+ },
1571
+ "max_count": {
1572
+ "type": "integer",
1573
+ "minimum": 1,
1574
+ "maximum": 10
1575
+ }
1576
+ }
1040
1577
  }
1041
1578
  },
1042
1579
  "additionalProperties": false
@@ -1062,11 +1599,13 @@
1062
1599
  "type": "object"
1063
1600
  },
1064
1601
  "template_id": {
1065
- "type": "string"
1602
+ "type": "string",
1603
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
1604
+ "x-pattern-message": "can't be blank"
1066
1605
  },
1067
1606
  "template_version": {
1068
1607
  "type": "string",
1069
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
1608
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
1070
1609
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
1071
1610
  },
1072
1611
  "test": {
@@ -1141,11 +1680,13 @@
1141
1680
  "type": "string"
1142
1681
  },
1143
1682
  "template_id": {
1144
- "type": "string"
1683
+ "type": "string",
1684
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
1685
+ "x-pattern-message": "can't be blank"
1145
1686
  },
1146
1687
  "template_version": {
1147
1688
  "type": "string",
1148
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
1689
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
1149
1690
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
1150
1691
  }
1151
1692
  },
@@ -1177,8 +1718,9 @@
1177
1718
  "properties": {
1178
1719
  "name": {
1179
1720
  "type": "string",
1180
- "minLength": 1,
1181
- "maxLength": 512"[^ \t\n\u000b\f\r…   - 

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

   ]",
1723
+ "x-pattern-message": "can't be blank"
1182
1724
  },
1183
1725
  "description": {
1184
1726
  "type": [
@@ -1191,7 +1733,8 @@
1191
1733
  "enum": [
1192
1734
  "pdf",
1193
1735
  "html",
1194
- "docx"
1736
+ "docx",
1737
+ "page_designer"
1195
1738
  ]
1196
1739
  },
1197
1740
  "output_format": {
@@ -1207,7 +1750,8 @@
1207
1750
  "string",
1208
1751
  "null"
1209
1752
  ],
1210
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

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

   ]",
1754
+ "x-pattern-message": "can't be blank"
1211
1755
  },
1212
1756
  "locked": {
1213
1757
  "type": "boolean"
@@ -1302,6 +1846,54 @@
1302
1846
  ],
1303
1847
  "format": "uri"
1304
1848
  },
1849
+ "signature_request_email_attachments": {
1850
+ "type": [
1851
+ "string",
1852
+ "null"
1853
+ ],
1854
+ "enum": [
1855
+ "attachment",
1856
+ "link",
1857
+ null
1858
+ ]
1859
+ },
1860
+ "signature_request_from_address": {
1861
+ "type": [
1862
+ "string",
1863
+ "null"
1864
+ ]
1865
+ },
1866
+ "signature_request_include_signing_token": {
1867
+ "type": "boolean"
1868
+ },
1869
+ "signature_request_from_name": {
1870
+ "type": [
1871
+ "string",
1872
+ "null"
1873
+ ],
1874
+ "maxLength": 64
1875
+ },
1876
+ "signature_request_notification_emails": {
1877
+ "type": "array",
1878
+ "maxItems": 10,
1879
+ "uniqueItems": true,
1880
+ "items": {
1881
+ "type": "string"
1882
+ }
1883
+ },
1884
+ "signature_request_reply_to": {
1885
+ "type": [
1886
+ "string",
1887
+ "null"
1888
+ ]
1889
+ },
1890
+ "signature_request_signing_url": {
1891
+ "type": [
1892
+ "string",
1893
+ "null"
1894
+ ],
1895
+ "maxLength": 2048
1896
+ },
1305
1897
  "slack_webhook_url": {
1306
1898
  "type": [
1307
1899
  "string",
@@ -1703,7 +2295,8 @@
1703
2295
  },
1704
2296
  "scale": {
1705
2297
  "type": "number",
1706
- "exclusiveMinimum": 0
2298
+ "minimum": 0.1,
2299
+ "maximum": 2
1707
2300
  },
1708
2301
  "landscape": {
1709
2302
  "type": "boolean"
@@ -1729,10 +2322,17 @@
1729
2322
  "html_escape_data": {
1730
2323
  "type": "boolean"
1731
2324
  },
2325
+ "layout": {
2326
+ "type": [
2327
+ "object",
2328
+ "null"
2329
+ ]
2330
+ },
1732
2331
  "cache_id": {
1733
2332
  "type": "string",
1734
- "minLength": 1,
1735
- "maxLength": 255"[^ \t\n\u000b\f\r…   - 

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

   ]",
2335
+ "x-pattern-message": "can't be blank"
1736
2336
  },
1737
2337
  "document_url": {
1738
2338
  "type": "string",
@@ -1748,7 +2348,9 @@
1748
2348
  "filename": {
1749
2349
  "type": "string",
1750
2350
  "minLength": 1,
1751
- "maxLength": 255
2351
+ "maxLength": 255,
2352
+ "pattern": "^[^/\\\\]*$",
2353
+ "x-pattern-message": "can't contain a slash (/ or \\)"
1752
2354
  },
1753
2355
  "detect_fields": {
1754
2356
  "type": "boolean"
@@ -1789,7 +2391,7 @@
1789
2391
  "required": false,
1790
2392
  "schema": {
1791
2393
  "type": "string",
1792
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2394
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
1793
2395
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
1794
2396
  }
1795
2397
  }
@@ -1842,9 +2444,11 @@
1842
2444
  "submission.processed",
1843
2445
  "submission.failed",
1844
2446
  "submission.declined",
2447
+ "signature_request.sent",
1845
2448
  "signature_request.viewed",
1846
2449
  "signature_request.completed",
1847
2450
  "signature_request.declined",
2451
+ "signature_request.email_bounced",
1848
2452
  "combined_pdf.processed",
1849
2453
  "combined_pdf.failed",
1850
2454
  "submission_batch.processed",
@@ -1882,21 +2486,27 @@
1882
2486
  "type": "array",
1883
2487
  "uniqueItems": true,
1884
2488
  "items": {
1885
- "type": "string"
2489
+ "type": "string",
2490
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2491
+ "x-pattern-message": "can't be blank"
1886
2492
  }
1887
2493
  },
1888
2494
  "template_ids": {
1889
2495
  "type": "array",
1890
2496
  "uniqueItems": true,
1891
2497
  "items": {
1892
- "type": "string"
2498
+ "type": "string",
2499
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2500
+ "x-pattern-message": "can't be blank"
1893
2501
  }
1894
2502
  },
1895
2503
  "folder_ids": {
1896
2504
  "type": "array",
1897
2505
  "uniqueItems": true,
1898
2506
  "items": {
1899
- "type": "string"
2507
+ "type": "string",
2508
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2509
+ "x-pattern-message": "can't be blank"
1900
2510
  }
1901
2511
  },
1902
2512
  "include_submission_data": {
@@ -1923,7 +2533,11 @@
1923
2533
  }
1924
2534
  }
1925
2535
  },
2536
+ "deleteAccountEmailAction": {},
1926
2537
  "deleteCustomFile": {},
2538
+ "deleteEmailAction": {},
2539
+ "deleteEmailActionCustomization": {},
2540
+ "deleteEmailDomain": {},
1927
2541
  "deleteFolder": {},
1928
2542
  "deleteTemplate": {
1929
2543
  "query": {
@@ -1931,7 +2545,7 @@
1931
2545
  "required": false,
1932
2546
  "schema": {
1933
2547
  "type": "string",
1934
- "pattern": "^(\\d+\\.\\d+\\.\\d+|draft)$",
2548
+ "pattern": "^((0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)|draft)$",
1935
2549
  "x-pattern-message": "must be a full version like 1.2.3, or draft"
1936
2550
  }
1937
2551
  }
@@ -1978,8 +2592,11 @@
1978
2592
  }
1979
2593
  },
1980
2594
  "generateSubmissionPreview": {},
2595
+ "getAccountEmailAction": {},
1981
2596
  "getCombinedPdf": {},
1982
2597
  "getCustomFile": {},
2598
+ "getEmailAction": {},
2599
+ "getEmailDomain": {},
1983
2600
  "getFolder": {},
1984
2601
  "getPresignUrl": {},
1985
2602
  "getSignatureRequest": {},
@@ -2000,7 +2617,7 @@
2000
2617
  "required": false,
2001
2618
  "schema": {
2002
2619
  "type": "string",
2003
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2620
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
2004
2621
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
2005
2622
  }
2006
2623
  }
@@ -2012,7 +2629,7 @@
2012
2629
  "required": false,
2013
2630
  "schema": {
2014
2631
  "type": "string",
2015
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2632
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
2016
2633
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
2017
2634
  }
2018
2635
  }
@@ -2024,7 +2641,7 @@
2024
2641
  "required": false,
2025
2642
  "schema": {
2026
2643
  "type": "string",
2027
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2644
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
2028
2645
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
2029
2646
  }
2030
2647
  },
@@ -2060,7 +2677,7 @@
2060
2677
  "required": false,
2061
2678
  "schema": {
2062
2679
  "type": "string",
2063
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2680
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
2064
2681
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
2065
2682
  }
2066
2683
  }
@@ -2073,13 +2690,33 @@
2073
2690
  "required": false,
2074
2691
  "schema": {
2075
2692
  "type": "string",
2076
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2693
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
2077
2694
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
2078
2695
  }
2079
2696
  }
2080
2697
  }
2081
2698
  },
2082
2699
  "getWebhook": {},
2700
+ "listAccountEmailActions": {
2701
+ "query": {
2702
+ "limit": {
2703
+ "required": false,
2704
+ "schema": {
2705
+ "type": "integer",
2706
+ "minimum": 1,
2707
+ "maximum": 100
2708
+ }
2709
+ },
2710
+ "cursor": {
2711
+ "required": false,
2712
+ "schema": {
2713
+ "type": "string",
2714
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2715
+ "x-pattern-message": "can't be blank"
2716
+ }
2717
+ }
2718
+ }
2719
+ },
2083
2720
  "listCombinedPdfs": {
2084
2721
  "query": {
2085
2722
  "limit": {
@@ -2093,7 +2730,9 @@
2093
2730
  "cursor": {
2094
2731
  "required": false,
2095
2732
  "schema": {
2096
- "type": "string"
2733
+ "type": "string",
2734
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2735
+ "x-pattern-message": "can't be blank"
2097
2736
  }
2098
2737
  }
2099
2738
  }
@@ -2111,7 +2750,49 @@
2111
2750
  "cursor": {
2112
2751
  "required": false,
2113
2752
  "schema": {
2114
- "type": "string"
2753
+ "type": "string",
2754
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2755
+ "x-pattern-message": "can't be blank"
2756
+ }
2757
+ }
2758
+ }
2759
+ },
2760
+ "listEmailActions": {
2761
+ "query": {
2762
+ "limit": {
2763
+ "required": false,
2764
+ "schema": {
2765
+ "type": "integer",
2766
+ "minimum": 1,
2767
+ "maximum": 100
2768
+ }
2769
+ },
2770
+ "cursor": {
2771
+ "required": false,
2772
+ "schema": {
2773
+ "type": "string",
2774
+ "pattern": "[^ \t\n\u000b\f\r…   - 

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

   ]",
2795
+ "x-pattern-message": "can't be blank"
2115
2796
  }
2116
2797
  }
2117
2798
  }
@@ -2121,7 +2802,9 @@
2121
2802
  "parent_folder_id": {
2122
2803
  "required": false,
2123
2804
  "schema": {
2124
- "type": "string"
2805
+ "type": "string",
2806
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2807
+ "x-pattern-message": "can't be blank"
2125
2808
  }
2126
2809
  },
2127
2810
  "limit": {
@@ -2135,7 +2818,9 @@
2135
2818
  "cursor": {
2136
2819
  "required": false,
2137
2820
  "schema": {
2138
- "type": "string"
2821
+ "type": "string",
2822
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2823
+ "x-pattern-message": "can't be blank"
2139
2824
  }
2140
2825
  }
2141
2826
  }
@@ -2145,7 +2830,9 @@
2145
2830
  "template_id": {
2146
2831
  "required": false,
2147
2832
  "schema": {
2148
- "type": "string"
2833
+ "type": "string",
2834
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2835
+ "x-pattern-message": "can't be blank"
2149
2836
  }
2150
2837
  },
2151
2838
  "test": {
@@ -2185,7 +2872,9 @@
2185
2872
  "cursor": {
2186
2873
  "required": false,
2187
2874
  "schema": {
2188
- "type": "string"
2875
+ "type": "string",
2876
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2877
+ "x-pattern-message": "can't be blank"
2189
2878
  }
2190
2879
  },
2191
2880
  "state": {
@@ -2223,7 +2912,7 @@
2223
2912
  "required": false,
2224
2913
  "schema": {
2225
2914
  "type": "string",
2226
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
2915
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
2227
2916
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
2228
2917
  }
2229
2918
  }
@@ -2268,7 +2957,9 @@
2268
2957
  "cursor": {
2269
2958
  "required": false,
2270
2959
  "schema": {
2271
- "type": "string"
2960
+ "type": "string",
2961
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
2962
+ "x-pattern-message": "can't be blank"
2272
2963
  }
2273
2964
  },
2274
2965
  "state": {
@@ -2305,13 +2996,17 @@
2305
2996
  "query": {
2306
2997
  "required": false,
2307
2998
  "schema": {
2308
- "type": "string"
2999
+ "type": "string",
3000
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3001
+ "x-pattern-message": "can't be blank"
2309
3002
  }
2310
3003
  },
2311
3004
  "parent_folder_id": {
2312
3005
  "required": false,
2313
3006
  "schema": {
2314
- "type": "string"
3007
+ "type": "string",
3008
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3009
+ "x-pattern-message": "can't be blank"
2315
3010
  }
2316
3011
  },
2317
3012
  "limit": {
@@ -2325,7 +3020,9 @@
2325
3020
  "cursor": {
2326
3021
  "required": false,
2327
3022
  "schema": {
2328
- "type": "string"
3023
+ "type": "string",
3024
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3025
+ "x-pattern-message": "can't be blank"
2329
3026
  }
2330
3027
  }
2331
3028
  }
@@ -2340,9 +3037,11 @@
2340
3037
  "submission.processed",
2341
3038
  "submission.failed",
2342
3039
  "submission.declined",
3040
+ "signature_request.sent",
2343
3041
  "signature_request.viewed",
2344
3042
  "signature_request.completed",
2345
3043
  "signature_request.declined",
3044
+ "signature_request.email_bounced",
2346
3045
  "combined_pdf.processed",
2347
3046
  "combined_pdf.failed",
2348
3047
  "submission_batch.processed",
@@ -2378,19 +3077,25 @@
2378
3077
  "template_id": {
2379
3078
  "required": false,
2380
3079
  "schema": {
2381
- "type": "string"
3080
+ "type": "string",
3081
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3082
+ "x-pattern-message": "can't be blank"
2382
3083
  }
2383
3084
  },
2384
3085
  "folder_id": {
2385
3086
  "required": false,
2386
3087
  "schema": {
2387
- "type": "string"
3088
+ "type": "string",
3089
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3090
+ "x-pattern-message": "can't be blank"
2388
3091
  }
2389
3092
  },
2390
3093
  "api_token_id": {
2391
3094
  "required": false,
2392
3095
  "schema": {
2393
- "type": "string"
3096
+ "type": "string",
3097
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3098
+ "x-pattern-message": "can't be blank"
2394
3099
  }
2395
3100
  },
2396
3101
  "limit": {
@@ -2404,7 +3109,9 @@
2404
3109
  "cursor": {
2405
3110
  "required": false,
2406
3111
  "schema": {
2407
- "type": "string"
3112
+ "type": "string",
3113
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3114
+ "x-pattern-message": "can't be blank"
2408
3115
  }
2409
3116
  }
2410
3117
  }
@@ -2421,7 +3128,8 @@
2421
3128
  "string",
2422
3129
  "null"
2423
3130
  ],
2424
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

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

   ]",
3132
+ "x-pattern-message": "can't be blank"
2425
3133
  }
2426
3134
  },
2427
3135
  "required": [
@@ -2446,7 +3154,8 @@
2446
3154
  "string",
2447
3155
  "null"
2448
3156
  ],
2449
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

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

   ]",
3158
+ "x-pattern-message": "can't be blank"
2450
3159
  }
2451
3160
  },
2452
3161
  "additionalProperties": false
@@ -2480,94 +3189,749 @@
2480
3189
  }
2481
3190
  }
2482
3191
  },
2483
- "removeTemplateFields": {
3192
+ "removeTemplateFields": {
3193
+ "body": {
3194
+ "mediaType": "application/json",
3195
+ "required": true,
3196
+ "schema": {
3197
+ "type": "object",
3198
+ "required": [
3199
+ "field_ids"
3200
+ ],
3201
+ "properties": {
3202
+ "field_ids": {
3203
+ "type": "array",
3204
+ "minItems": 1,
3205
+ "maxItems": 1000,
3206
+ "items": {
3207
+ "type": "integer"
3208
+ }
3209
+ }
3210
+ },
3211
+ "additionalProperties": false
3212
+ }
3213
+ }
3214
+ },
3215
+ "renameFolder": {
3216
+ "body": {
3217
+ "mediaType": "application/json",
3218
+ "required": true,
3219
+ "schema": {
3220
+ "type": "object",
3221
+ "properties": {
3222
+ "name": {
3223
+ "type": "string",
3224
+ "minLength": 1,
3225
+ "maxLength": 255,
3226
+ "pattern": "^[^/]*$",
3227
+ "x-pattern-message": "can't contain a slash (/)"
3228
+ }
3229
+ },
3230
+ "required": [
3231
+ "name"
3232
+ ],
3233
+ "additionalProperties": false
3234
+ }
3235
+ }
3236
+ },
3237
+ "reorderTemplateFields": {
3238
+ "body": {
3239
+ "mediaType": "application/json",
3240
+ "required": true,
3241
+ "schema": {
3242
+ "type": "object",
3243
+ "required": [
3244
+ "field_ids"
3245
+ ],
3246
+ "properties": {
3247
+ "field_ids": {
3248
+ "type": "array",
3249
+ "minItems": 1,
3250
+ "items": {
3251
+ "type": "integer"
3252
+ }
3253
+ }
3254
+ },
3255
+ "additionalProperties": false
3256
+ }
3257
+ }
3258
+ },
3259
+ "restoreTemplateVersion": {
3260
+ "body": {
3261
+ "mediaType": "application/json",
3262
+ "required": true,
3263
+ "schema": {
3264
+ "type": "object",
3265
+ "required": [
3266
+ "version"
3267
+ ],
3268
+ "properties": {
3269
+ "version": {
3270
+ "type": "string",
3271
+ "pattern": "^(0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}$",
3272
+ "x-pattern-message": "must be a published version like 1.2.3 or 1"
3273
+ }
3274
+ },
3275
+ "additionalProperties": false
3276
+ }
3277
+ }
3278
+ },
3279
+ "sendAccountEmailActionTestEmail": {
3280
+ "body": {
3281
+ "mediaType": "application/json",
3282
+ "required": false,
3283
+ "schema": {
3284
+ "type": "object",
3285
+ "properties": {
3286
+ "template_id": {
3287
+ "type": "string",
3288
+ "maxLength": 255,
3289
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3290
+ "x-pattern-message": "can't be blank"
3291
+ }
3292
+ },
3293
+ "additionalProperties": false
3294
+ }
3295
+ }
3296
+ },
3297
+ "sendEmailActionTestEmail": {},
3298
+ "testAuthentication": {},
3299
+ "updateAccountEmailAction": {
3300
+ "body": {
3301
+ "mediaType": "application/json",
3302
+ "required": true,
3303
+ "schema": {
3304
+ "type": "object",
3305
+ "properties": {
3306
+ "template_ids": {
3307
+ "type": "array",
3308
+ "maxItems": 500,
3309
+ "items": {
3310
+ "type": "string",
3311
+ "maxLength": 255,
3312
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
3313
+ "x-pattern-message": "can't be blank"
3314
+ }
3315
+ },
3316
+ "folder_ids": {
3317
+ "type": "array",
3318
+ "maxItems": 500,
3319
+ "items": {
3320
+ "type": "string",
3321
+ "maxLength": 255,
3322
+ "pattern": "[^ \t\n\u000b\f\r…   - 

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

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

   ]",
4022
+ "x-pattern-message": "can't be blank"
2657
4023
  },
2658
4024
  "description": {
2659
4025
  "type": [
@@ -2674,7 +4040,8 @@
2674
4040
  "string",
2675
4041
  "null"
2676
4042
  ],
2677
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

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

   ]",
4044
+ "x-pattern-message": "can't be blank"
2678
4045
  },
2679
4046
  "locked": {
2680
4047
  "type": "boolean"
@@ -2769,6 +4136,54 @@
2769
4136
  ],
2770
4137
  "format": "uri"
2771
4138
  },
4139
+ "signature_request_email_attachments": {
4140
+ "type": [
4141
+ "string",
4142
+ "null"
4143
+ ],
4144
+ "enum": [
4145
+ "attachment",
4146
+ "link",
4147
+ null
4148
+ ]
4149
+ },
4150
+ "signature_request_from_address": {
4151
+ "type": [
4152
+ "string",
4153
+ "null"
4154
+ ]
4155
+ },
4156
+ "signature_request_include_signing_token": {
4157
+ "type": "boolean"
4158
+ },
4159
+ "signature_request_from_name": {
4160
+ "type": [
4161
+ "string",
4162
+ "null"
4163
+ ],
4164
+ "maxLength": 64
4165
+ },
4166
+ "signature_request_notification_emails": {
4167
+ "type": "array",
4168
+ "maxItems": 10,
4169
+ "uniqueItems": true,
4170
+ "items": {
4171
+ "type": "string"
4172
+ }
4173
+ },
4174
+ "signature_request_reply_to": {
4175
+ "type": [
4176
+ "string",
4177
+ "null"
4178
+ ]
4179
+ },
4180
+ "signature_request_signing_url": {
4181
+ "type": [
4182
+ "string",
4183
+ "null"
4184
+ ],
4185
+ "maxLength": 2048
4186
+ },
2772
4187
  "slack_webhook_url": {
2773
4188
  "type": [
2774
4189
  "string",
@@ -3212,7 +4627,8 @@
3212
4627
  },
3213
4628
  "scale": {
3214
4629
  "type": "number",
3215
- "exclusiveMinimum": 0
4630
+ "minimum": 0.1,
4631
+ "maximum": 2
3216
4632
  },
3217
4633
  "landscape": {
3218
4634
  "type": "boolean"
@@ -3237,8 +4653,15 @@
3237
4653
  },
3238
4654
  "html_escape_data": {
3239
4655
  "type": "boolean"
4656
+ },
4657
+ "layout": {
4658
+ "type": [
4659
+ "object",
4660
+ "null"
4661
+ ]
3240
4662
  }
3241
4663
  },
4664
+ "minProperties": 1,
3242
4665
  "additionalProperties": false
3243
4666
  }
3244
4667
  }
@@ -3260,8 +4683,9 @@
3260
4683
  "properties": {
3261
4684
  "cache_id": {
3262
4685
  "type": "string",
3263
- "minLength": 1,
3264
- "maxLength": 255"[^ \t\n\u000b\f\r…   - 

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

   ]",
4688
+ "x-pattern-message": "can't be blank"
3265
4689
  },
3266
4690
  "document_url": {
3267
4691
  "type": "string",
@@ -3277,7 +4701,9 @@
3277
4701
  "filename": {
3278
4702
  "type": "string",
3279
4703
  "minLength": 1,
3280
- "maxLength": 255
4704
+ "maxLength": 255,
4705
+ "pattern": "^[^/\\\\]*$",
4706
+ "x-pattern-message": "can't contain a slash (/ or \\)"
3281
4707
  },
3282
4708
  "reimport_fields": {
3283
4709
  "type": "boolean"
@@ -3733,10 +5159,17 @@
3733
5159
  "type": "string",
3734
5160
  "enum": [
3735
5161
  "equals",
5162
+ "not_equals",
3736
5163
  "contains",
5164
+ "not_contains",
3737
5165
  "starts_with",
5166
+ "not_starts_with",
3738
5167
  "ends_with",
3739
- "regex"
5168
+ "not_ends_with",
5169
+ "regex",
5170
+ "not_regex",
5171
+ "blank",
5172
+ "not_blank"
3740
5173
  ]
3741
5174
  },
3742
5175
  "number_condition_type": {
@@ -3943,9 +5376,11 @@
3943
5376
  "submission.processed",
3944
5377
  "submission.failed",
3945
5378
  "submission.declined",
5379
+ "signature_request.sent",
3946
5380
  "signature_request.viewed",
3947
5381
  "signature_request.completed",
3948
5382
  "signature_request.declined",
5383
+ "signature_request.email_bounced",
3949
5384
  "combined_pdf.processed",
3950
5385
  "combined_pdf.failed",
3951
5386
  "submission_batch.processed",
@@ -3983,21 +5418,27 @@
3983
5418
  "type": "array",
3984
5419
  "uniqueItems": true,
3985
5420
  "items": {
3986
- "type": "string"
5421
+ "type": "string",
5422
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
5423
+ "x-pattern-message": "can't be blank"
3987
5424
  }
3988
5425
  },
3989
5426
  "template_ids": {
3990
5427
  "type": "array",
3991
5428
  "uniqueItems": true,
3992
5429
  "items": {
3993
- "type": "string"
5430
+ "type": "string",
5431
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
5432
+ "x-pattern-message": "can't be blank"
3994
5433
  }
3995
5434
  },
3996
5435
  "folder_ids": {
3997
5436
  "type": "array",
3998
5437
  "uniqueItems": true,
3999
5438
  "items": {
4000
- "type": "string"
5439
+ "type": "string",
5440
+ "pattern": "[^ \t\n\u000b\f\r…   - 

   ]",
5441
+ "x-pattern-message": "can't be blank"
4001
5442
  }
4002
5443
  },
4003
5444
  "include_submission_data": {
@@ -4016,6 +5457,7 @@
4016
5457
  }
4017
5458
  }
4018
5459
  },
5460
+ "minProperties": 1,
4019
5461
  "additionalProperties": false
4020
5462
  }
4021
5463
  }
@@ -4044,15 +5486,17 @@
4044
5486
  },
4045
5487
  "name": {
4046
5488
  "type": "string",
4047
- "minLength": 1,
4048
- "maxLength": 512"[^ \t\n\u000b\f\r…   - 

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

   ]",
5491
+ "x-pattern-message": "can't be blank"
4049
5492
  },
4050
5493
  "description": {
4051
5494
  "type": "string"
4052
5495
  },
4053
5496
  "parent_folder_id": {
4054
5497
  "type": "string",
4055
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

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

   ]",
5499
+ "x-pattern-message": "can't be blank"
4056
5500
  },
4057
5501
  "ai_field_naming_language": {
4058
5502
  "type": "string",
@@ -4136,7 +5580,7 @@
4136
5580
  "required": false,
4137
5581
  "schema": {
4138
5582
  "type": "string",
4139
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
5583
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
4140
5584
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
4141
5585
  }
4142
5586
  }
@@ -4212,7 +5656,9 @@
4212
5656
  "string",
4213
5657
  "null"
4214
5658
  ],
4215
- "maxLength": 254
5659
+ "maxLength": 254,
5660
+ "pattern": "^[^ \t\n\u000b\f\r@]+@[^ \t\n\u000b\f\r@]+$",
5661
+ "x-pattern-message": "must be an email address, like name@example.com"
4216
5662
  },
4217
5663
  "fields": {
4218
5664
  "type": "array",
@@ -4295,33 +5741,111 @@
4295
5741
  },
4296
5742
  "prefilled_values_editable": {
4297
5743
  "type": "boolean"
5744
+ },
5745
+ "send_email": {
5746
+ "type": "boolean"
5747
+ },
5748
+ "signing_step": {
5749
+ "type": "integer",
5750
+ "minimum": 1,
5751
+ "maximum": 100
4298
5752
  }
4299
5753
  },
4300
5754
  "required": [
4301
- "fields",
4302
- "auth_type"
5755
+ "fields"
4303
5756
  ],
4304
5757
  "additionalProperties": false
4305
5758
  }
5759
+ },
5760
+ "send_email": {
5761
+ "type": "boolean"
5762
+ },
5763
+ "signing_order": {
5764
+ "type": "string",
5765
+ "enum": [
5766
+ "parallel",
5767
+ "sequential"
5768
+ ]
5769
+ },
5770
+ "email_subject": {
5771
+ "type": "string",
5772
+ "minLength": 1,
5773
+ "maxLength": 200
5774
+ },
5775
+ "email_message": {
5776
+ "type": "string",
5777
+ "minLength": 1,
5778
+ "maxLength": 2000
5779
+ },
5780
+ "cc": {
5781
+ "type": "array",
5782
+ "maxItems": 10,
5783
+ "uniqueItems": true,
5784
+ "items": {
5785
+ "type": "string"
5786
+ }
5787
+ },
5788
+ "reply_to": {
5789
+ "type": "string"
5790
+ },
5791
+ "notification_emails": {
5792
+ "type": "array",
5793
+ "maxItems": 10,
5794
+ "uniqueItems": true,
5795
+ "items": {
5796
+ "type": "string"
5797
+ }
5798
+ },
5799
+ "notify_when_signed": {
5800
+ "type": "boolean"
5801
+ },
5802
+ "reminders": {
5803
+ "type": "object",
5804
+ "additionalProperties": false,
5805
+ "required": [
5806
+ "interval_days",
5807
+ "max_count"
5808
+ ],
5809
+ "properties": {
5810
+ "interval_days": {
5811
+ "type": "integer",
5812
+ "minimum": 1,
5813
+ "maximum": 30
5814
+ },
5815
+ "max_count": {
5816
+ "type": "integer",
5817
+ "minimum": 1,
5818
+ "maximum": 10
5819
+ }
5820
+ }
4306
5821
  }
4307
5822
  },
4308
5823
  "additionalProperties": false
4309
5824
  }
4310
5825
  }
4311
- }
5826
+ },
5827
+ "verifyEmailDomain": {}
4312
5828
  },
4313
5829
  "routes": {
4314
5830
  "DELETE /combined_pdfs/{combined_pdf_id}": "expireCombinedPdf",
4315
5831
  "DELETE /custom_files/{custom_file_id}": "deleteCustomFile",
5832
+ "DELETE /email_actions/{email_action_id}": "deleteAccountEmailAction",
5833
+ "DELETE /email_domains/{email_domain_id}": "deleteEmailDomain",
4316
5834
  "DELETE /folders/{folder_id}": "deleteFolder",
4317
5835
  "DELETE /submissions/{submission_id}": "expireSubmission",
4318
5836
  "DELETE /templates/{template_id}": "deleteTemplate",
5837
+ "DELETE /templates/{template_id}/email_actions/{email_action_id}": "deleteEmailAction",
5838
+ "DELETE /templates/{template_id}/email_actions/{email_action_id}/customization": "deleteEmailActionCustomization",
4319
5839
  "DELETE /webhooks/{webhook_id}": "deleteWebhook",
4320
5840
  "GET /authentication": "testAuthentication",
4321
5841
  "GET /combined_pdfs": "listCombinedPdfs",
4322
5842
  "GET /combined_pdfs/{combined_pdf_id}": "getCombinedPdf",
4323
5843
  "GET /custom_files": "listCustomFiles",
4324
5844
  "GET /custom_files/{custom_file_id}": "getCustomFile",
5845
+ "GET /email_actions": "listAccountEmailActions",
5846
+ "GET /email_actions/{email_action_id}": "getAccountEmailAction",
5847
+ "GET /email_domains": "listEmailDomains",
5848
+ "GET /email_domains/{email_domain_id}": "getEmailDomain",
4325
5849
  "GET /folders": "listFolders",
4326
5850
  "GET /folders/{folder_id}": "getFolder",
4327
5851
  "GET /signature_requests/{signature_request_id}": "getSignatureRequest",
@@ -4331,6 +5855,8 @@
4331
5855
  "GET /templates": "listTemplates",
4332
5856
  "GET /templates/{template_id}": "getTemplate",
4333
5857
  "GET /templates/{template_id}/diff": "getTemplateDiff",
5858
+ "GET /templates/{template_id}/email_actions": "listEmailActions",
5859
+ "GET /templates/{template_id}/email_actions/{email_action_id}": "getEmailAction",
4334
5860
  "GET /templates/{template_id}/fields": "listTemplateFields",
4335
5861
  "GET /templates/{template_id}/model_code": "getTemplateModelCode",
4336
5862
  "GET /templates/{template_id}/page_images": "getTemplatePageImages",
@@ -4342,6 +5868,10 @@
4342
5868
  "GET /webhooks/{webhook_id}": "getWebhook",
4343
5869
  "POST /combined_pdfs": "createCombinedPdf",
4344
5870
  "POST /custom_files": "createCustomFileFromUpload",
5871
+ "POST /email_actions": "createAccountEmailAction",
5872
+ "POST /email_actions/{email_action_id}/test_email": "sendAccountEmailActionTestEmail",
5873
+ "POST /email_domains": "createEmailDomain",
5874
+ "POST /email_domains/{email_domain_id}/verify": "verifyEmailDomain",
4345
5875
  "POST /folders": "createFolder",
4346
5876
  "POST /folders/{folder_id}/move": "moveFolder",
4347
5877
  "POST /folders/{folder_id}/rename": "renameFolder",
@@ -4353,6 +5883,8 @@
4353
5883
  "POST /templates": "createTemplate",
4354
5884
  "POST /templates/upload": "uploadTemplate",
4355
5885
  "POST /templates/{template_id}/copy": "copyTemplate",
5886
+ "POST /templates/{template_id}/email_actions": "createEmailAction",
5887
+ "POST /templates/{template_id}/email_actions/{email_action_id}/test_email": "sendEmailActionTestEmail",
4356
5888
  "POST /templates/{template_id}/fields": "addTemplateFields",
4357
5889
  "POST /templates/{template_id}/fields/remove": "removeTemplateFields",
4358
5890
  "POST /templates/{template_id}/fields/reorder": "reorderTemplateFields",
@@ -4363,10 +5895,13 @@
4363
5895
  "POST /templates/{template_id}/submissions": "createSubmission",
4364
5896
  "POST /templates/{template_id}/submissions/validate": "validateSubmission",
4365
5897
  "POST /webhooks": "createWebhook",
5898
+ "PUT /email_actions/{email_action_id}": "updateAccountEmailAction",
4366
5899
  "PUT /signature_requests/{signature_request_id}": "updateSignatureRequest",
4367
5900
  "PUT /templates/{template_id}": "updateTemplate",
4368
5901
  "PUT /templates/{template_id}/document": "updateTemplateDocument",
4369
5902
  "PUT /templates/{template_id}/document/upload": "uploadTemplateDocument",
5903
+ "PUT /templates/{template_id}/email_actions/{email_action_id}": "updateEmailAction",
5904
+ "PUT /templates/{template_id}/email_actions/{email_action_id}/customization": "updateEmailActionCustomization",
4370
5905
  "PUT /templates/{template_id}/fields": "updateTemplateFields",
4371
5906
  "PUT /webhooks/{webhook_id}": "updateWebhook"
4372
5907
  },
@@ -4385,7 +5920,8 @@
4385
5920
  },
4386
5921
  "id": {
4387
5922
  "type": "string",
4388
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

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

   ]",
5924
+ "x-pattern-message": "can't be blank"
4389
5925
  }
4390
5926
  },
4391
5927
  "additionalProperties": false,
@@ -4408,7 +5944,8 @@
4408
5944
  },
4409
5945
  "id": {
4410
5946
  "type": "string",
4411
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

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

   ]",
5948
+ "x-pattern-message": "can't be blank"
4412
5949
  }
4413
5950
  },
4414
5951
  "additionalProperties": false,
@@ -4833,10 +6370,17 @@
4833
6370
  "type": "string",
4834
6371
  "enum": [
4835
6372
  "equals",
6373
+ "not_equals",
4836
6374
  "contains",
6375
+ "not_contains",
4837
6376
  "starts_with",
6377
+ "not_starts_with",
4838
6378
  "ends_with",
4839
- "regex"
6379
+ "not_ends_with",
6380
+ "regex",
6381
+ "not_regex",
6382
+ "blank",
6383
+ "not_blank"
4840
6384
  ]
4841
6385
  },
4842
6386
  "number_condition_type": {
@@ -5030,7 +6574,8 @@
5030
6574
  },
5031
6575
  "id": {
5032
6576
  "type": "string",
5033
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

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

   ]",
6578
+ "x-pattern-message": "can't be blank"
5034
6579
  }
5035
6580
  },
5036
6581
  "additionalProperties": false,
@@ -5053,11 +6598,12 @@
5053
6598
  },
5054
6599
  "id": {
5055
6600
  "type": "string",
5056
- "minLength": 1"[^ \t\n\u000b\f\r…   - 

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

   ]",
6602
+ "x-pattern-message": "can't be blank"
5057
6603
  },
5058
6604
  "template_version": {
5059
6605
  "type": "string",
5060
- "pattern": "^(\\d+(\\.\\d+(\\.\\d+)?)?|latest|draft)$",
6606
+ "pattern": "^((0|[1-9]\\d*)(\\.(0|[1-9]\\d*)){0,2}|latest|draft)$",
5061
6607
  "x-pattern-message": "must be a version like 1.2.3 or 1, or latest or draft"
5062
6608
  },
5063
6609
  "processed": {