docspring 4.3.0 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +80 -0
- data/.openapi-generator/FILES +90 -0
- data/AGENTS.md +2 -0
- data/CHANGELOG.md +70 -0
- data/Gemfile.lock +10 -10
- data/LICENSE +1 -1
- data/README.md +23 -1
- data/docs/AddTemplateFieldsRequest.md +1 -1
- data/docs/Client.md +2313 -766
- data/docs/CombinedPdfSource.md +1 -1
- data/docs/CreateAccountEmailActionRequest.md +54 -0
- data/docs/CreateEmailActionRequest.md +50 -0
- data/docs/CreateEmailDomainRequest.md +18 -0
- data/docs/CreateSubmissionBatchRequest.md +2 -2
- data/docs/CreateSubmissionRequest.md +24 -6
- data/docs/CreateTemplateRequest.md +32 -8
- data/docs/DnsRecordType.md +15 -0
- data/docs/EmailAction.md +76 -0
- data/docs/EmailActionConditions.md +20 -0
- data/docs/EmailActionConditionsInput.md +20 -0
- data/docs/EmailActionCustomization.md +36 -0
- data/docs/EmailActionDelivery.md +15 -0
- data/docs/EmailActionFileFormats.md +15 -0
- data/docs/EmailActionList.md +20 -0
- data/docs/EmailActionSetting.md +15 -0
- data/docs/EmailActionSubmissionType.md +15 -0
- data/docs/EmailActionTestEmail.md +18 -0
- data/docs/EmailDomain.md +38 -0
- data/docs/EmailDomainDnsRecord.md +24 -0
- data/docs/EmailDomainDnsRecordPurpose.md +15 -0
- data/docs/EmailDomainList.md +20 -0
- data/docs/EmailDomainRecordState.md +15 -0
- data/docs/EmailDomainState.md +15 -0
- data/docs/ErrorInfo.md +16 -6
- data/docs/Field.md +1 -1
- data/docs/FieldInput.md +1 -1
- data/docs/HtmlEngineOptions.md +5 -5
- data/docs/HtmlEngineOptionsInput.md +5 -5
- data/docs/SendAccountEmailActionTestEmailRequest.md +18 -0
- data/docs/SignatureRequest.md +9 -1
- data/docs/SignatureRequestEmailAttachments.md +15 -0
- data/docs/SignatureRequestEmailStatus.md +15 -0
- data/docs/SignatureRequestInput.md +7 -3
- data/docs/SignatureRequestReminders.md +20 -0
- data/docs/SigningOrder.md +15 -0
- data/docs/Submission.md +4 -2
- data/docs/SubmissionAction.md +5 -3
- data/docs/SubmissionInput.md +4 -4
- data/docs/SubmissionSummary.md +1 -1
- data/docs/Template.md +32 -8
- data/docs/TemplateFormSection.md +24 -0
- data/docs/TemplateFormSectionInput.md +24 -0
- data/docs/TemplateSourcePdf.md +1 -1
- data/docs/TemplateSummary.md +4 -4
- data/docs/UpdateAccountEmailActionRequest.md +54 -0
- data/docs/UpdateEmailActionCustomizationRequest.md +46 -0
- data/docs/UpdateEmailActionRequest.md +50 -0
- data/docs/UpdateTemplateDocumentRequest.md +1 -1
- data/docs/UpdateTemplateRequest.md +30 -6
- data/docs/ValidateSubmissionRequest.md +24 -6
- data/lib/docspring/api/client.rb +1752 -314
- data/lib/docspring/api_client.rb +1 -1
- data/lib/docspring/models/add_template_fields_request.rb +1 -1
- data/lib/docspring/models/combined_pdf_source.rb +1 -1
- data/lib/docspring/models/create_account_email_action_request.rb +388 -0
- data/lib/docspring/models/create_email_action_request.rb +364 -0
- data/lib/docspring/models/create_email_domain_request.rb +185 -0
- data/lib/docspring/models/create_submission_batch_request.rb +2 -2
- data/lib/docspring/models/create_submission_request.rb +145 -9
- data/lib/docspring/models/create_template_request.rb +153 -11
- data/lib/docspring/models/dns_record_type.rb +42 -0
- data/lib/docspring/models/email_action.rb +790 -0
- data/lib/docspring/models/email_action_conditions.rb +219 -0
- data/lib/docspring/models/email_action_conditions_input.rb +219 -0
- data/lib/docspring/models/email_action_customization.rb +360 -0
- data/lib/docspring/models/email_action_delivery.rb +41 -0
- data/lib/docspring/models/email_action_file_formats.rb +43 -0
- data/lib/docspring/models/email_action_list.rb +200 -0
- data/lib/docspring/models/email_action_setting.rb +53 -0
- data/lib/docspring/models/email_action_submission_type.rb +42 -0
- data/lib/docspring/models/email_action_test_email.rb +185 -0
- data/lib/docspring/models/email_domain.rb +423 -0
- data/lib/docspring/models/email_domain_dns_record.rb +288 -0
- data/lib/docspring/models/email_domain_dns_record_purpose.rb +42 -0
- data/lib/docspring/models/email_domain_list.rb +200 -0
- data/lib/docspring/models/email_domain_record_state.rb +42 -0
- data/lib/docspring/models/email_domain_state.rb +42 -0
- data/lib/docspring/models/error_code.rb +3 -1
- data/lib/docspring/models/error_info.rb +59 -9
- data/lib/docspring/models/field.rb +1 -1
- data/lib/docspring/models/field_input.rb +1 -1
- data/lib/docspring/models/html_engine_options.rb +5 -5
- data/lib/docspring/models/html_engine_options_input.rb +5 -5
- data/lib/docspring/models/send_account_email_action_test_email_request.rb +168 -0
- data/lib/docspring/models/signature_request.rb +68 -2
- data/lib/docspring/models/signature_request_email_attachments.rb +41 -0
- data/lib/docspring/models/signature_request_email_status.rb +47 -0
- data/lib/docspring/models/signature_request_event_type.rb +3 -1
- data/lib/docspring/models/signature_request_input.rb +25 -22
- data/lib/docspring/models/signature_request_reminders.rb +212 -0
- data/lib/docspring/models/signing_order.rb +41 -0
- data/lib/docspring/models/string_condition_type.rb +8 -1
- data/lib/docspring/models/submission.rb +30 -3
- data/lib/docspring/models/submission_action.rb +18 -5
- data/lib/docspring/models/submission_input.rb +4 -4
- data/lib/docspring/models/submission_summary.rb +1 -1
- data/lib/docspring/models/template.rb +227 -9
- data/lib/docspring/models/template_form_section.rb +254 -0
- data/lib/docspring/models/template_form_section_input.rb +252 -0
- data/lib/docspring/models/template_source_pdf.rb +1 -1
- data/lib/docspring/models/template_summary.rb +4 -4
- data/lib/docspring/models/template_type.rb +2 -1
- data/lib/docspring/models/update_account_email_action_request.rb +388 -0
- data/lib/docspring/models/update_email_action_customization_request.rb +343 -0
- data/lib/docspring/models/update_email_action_request.rb +364 -0
- data/lib/docspring/models/update_template_document_request.rb +1 -1
- data/lib/docspring/models/update_template_request.rb +153 -9
- data/lib/docspring/models/validate_submission_request.rb +145 -9
- data/lib/docspring/models/webhook_event_type.rb +3 -1
- data/lib/docspring/request_schemas.json +1708 -88
- data/lib/docspring/request_validator.rb +4 -0
- data/lib/docspring/version.rb +1 -1
- data/lib/docspring.rb +30 -0
- data/spec/api/client_spec.rb +307 -18
- data/spec/models/create_account_email_action_request_spec.rb +144 -0
- data/spec/models/create_email_action_request_spec.rb +132 -0
- data/spec/models/create_email_domain_request_spec.rb +36 -0
- data/spec/models/create_submission_request_spec.rb +54 -0
- data/spec/models/create_template_request_spec.rb +72 -0
- data/spec/models/dns_record_type_spec.rb +30 -0
- data/spec/models/email_action_conditions_input_spec.rb +42 -0
- data/spec/models/email_action_conditions_spec.rb +42 -0
- data/spec/models/email_action_customization_spec.rb +90 -0
- data/spec/models/email_action_delivery_spec.rb +30 -0
- data/spec/models/email_action_file_formats_spec.rb +30 -0
- data/spec/models/email_action_list_spec.rb +42 -0
- data/spec/models/email_action_setting_spec.rb +30 -0
- data/spec/models/email_action_spec.rb +210 -0
- data/spec/models/email_action_submission_type_spec.rb +30 -0
- data/spec/models/email_action_test_email_spec.rb +36 -0
- data/spec/models/email_domain_dns_record_purpose_spec.rb +30 -0
- data/spec/models/email_domain_dns_record_spec.rb +54 -0
- data/spec/models/email_domain_list_spec.rb +42 -0
- data/spec/models/email_domain_record_state_spec.rb +30 -0
- data/spec/models/email_domain_spec.rb +96 -0
- data/spec/models/email_domain_state_spec.rb +30 -0
- data/spec/models/error_info_spec.rb +30 -0
- data/spec/models/send_account_email_action_test_email_request_spec.rb +36 -0
- data/spec/models/signature_request_email_attachments_spec.rb +30 -0
- data/spec/models/signature_request_email_status_spec.rb +30 -0
- data/spec/models/signature_request_input_spec.rb +12 -0
- data/spec/models/signature_request_reminders_spec.rb +42 -0
- data/spec/models/signature_request_spec.rb +24 -0
- data/spec/models/signing_order_spec.rb +30 -0
- data/spec/models/submission_action_spec.rb +6 -0
- data/spec/models/submission_spec.rb +6 -0
- data/spec/models/template_form_section_input_spec.rb +54 -0
- data/spec/models/template_form_section_spec.rb +54 -0
- data/spec/models/template_spec.rb +72 -0
- data/spec/models/update_account_email_action_request_spec.rb +144 -0
- data/spec/models/update_email_action_customization_request_spec.rb +120 -0
- data/spec/models/update_email_action_request_spec.rb +132 -0
- data/spec/models/update_template_request_spec.rb +72 -0
- data/spec/models/validate_submission_request_spec.rb +54 -0
- metadata +123 -4
- data/.gitlab-ci.yml +0 -26
- data/.travis.yml +0 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cc16868d6e18877259bb5b73f6dd74122dc6990538dd517988adb02e77a4c87c
|
|
4
|
+
data.tar.gz: c0e126d95a0e2c7ded395fe479832a1d0a9318e5d81a5f5e575120d5250bb4cf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 692fa902d8f0e7b869cfe67e9fe48af9170cffb9259477df89a254428063d8dd4f0581b55df2f5cfbf2c1703b9b321bc9dbb23897abf08a886ffead1de1255a9
|
|
7
|
+
data.tar.gz: 4085af7743e15bcf577e7e57266288a148dffe44a85e43be10320045e5f0760b50c7a119c57d0ac9ed3c92a9c0ec7d1b5637c15d6332f8a437785691d30f1c87
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Written by DocSpring/docspring's api_clients/scripts/generate from api_clients/github_workflows/ruby/release.yml:
|
|
2
|
+
# change it there.
|
|
3
|
+
#
|
|
4
|
+
# Builds the gem on every push and pull request. A v* tag (pushed by the monorepo's api_clients/scripts/release) also
|
|
5
|
+
# pushes it to RubyGems.org with trusted publishing, in the release environment, and waits until RubyGems.org serves
|
|
6
|
+
# it.
|
|
7
|
+
name: Release
|
|
8
|
+
|
|
9
|
+
on:
|
|
10
|
+
push:
|
|
11
|
+
branches: ['**']
|
|
12
|
+
tags: ['v*']
|
|
13
|
+
pull_request:
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: read
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
build:
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
steps:
|
|
22
|
+
# The gemspec lists the gem's files with git ls-files
|
|
23
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
24
|
+
with:
|
|
25
|
+
persist-credentials: false
|
|
26
|
+
- uses: ruby/setup-ruby@de492cf36cbab201753d720ce4f4e336cd688c94 # v1.336.0
|
|
27
|
+
with:
|
|
28
|
+
ruby-version: '3.4'
|
|
29
|
+
- name: Check the tag matches the package version
|
|
30
|
+
if: github.ref_type == 'tag'
|
|
31
|
+
run: |
|
|
32
|
+
VERSION="$(ruby -e 'puts Gem::Specification.load("docspring.gemspec").version')"
|
|
33
|
+
if [ "v$VERSION" != "$GITHUB_REF_NAME" ]; then
|
|
34
|
+
echo "::error::The tag is $GITHUB_REF_NAME, but the package version is $VERSION"
|
|
35
|
+
exit 1
|
|
36
|
+
fi
|
|
37
|
+
- run: gem build docspring.gemspec
|
|
38
|
+
- if: github.ref_type == 'tag'
|
|
39
|
+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
40
|
+
with:
|
|
41
|
+
name: package
|
|
42
|
+
path: docspring-*.gem
|
|
43
|
+
if-no-files-found: error
|
|
44
|
+
|
|
45
|
+
publish:
|
|
46
|
+
needs: build
|
|
47
|
+
if: github.ref_type == 'tag'
|
|
48
|
+
runs-on: ubuntu-latest
|
|
49
|
+
environment: release
|
|
50
|
+
permissions:
|
|
51
|
+
contents: read
|
|
52
|
+
id-token: write
|
|
53
|
+
steps:
|
|
54
|
+
- uses: ruby/setup-ruby@de492cf36cbab201753d720ce4f4e336cd688c94 # v1.336.0
|
|
55
|
+
with:
|
|
56
|
+
ruby-version: '3.4'
|
|
57
|
+
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
58
|
+
with:
|
|
59
|
+
name: package
|
|
60
|
+
- uses: rubygems/configure-rubygems-credentials@dc5a8d8553e6ee01fc26761a49e99e733d17954a # v2.1.0
|
|
61
|
+
- name: Push to RubyGems.org
|
|
62
|
+
run: gem push "docspring-${GITHUB_REF_NAME#v}.gem"
|
|
63
|
+
|
|
64
|
+
verify:
|
|
65
|
+
needs: publish
|
|
66
|
+
runs-on: ubuntu-latest
|
|
67
|
+
timeout-minutes: 15
|
|
68
|
+
steps:
|
|
69
|
+
- name: Wait until RubyGems.org serves the version
|
|
70
|
+
run: |
|
|
71
|
+
VERSION="${GITHUB_REF_NAME#v}"
|
|
72
|
+
for _ in $(seq 60); do
|
|
73
|
+
if curl -fsS -o /dev/null "https://rubygems.org/api/v2/rubygems/docspring/versions/$VERSION.json"; then
|
|
74
|
+
echo "RubyGems.org serves docspring $VERSION"
|
|
75
|
+
exit 0
|
|
76
|
+
fi
|
|
77
|
+
sleep 10
|
|
78
|
+
done
|
|
79
|
+
echo "::error::RubyGems.org doesn't serve docspring $VERSION after 10 minutes"
|
|
80
|
+
exit 1
|
data/.openapi-generator/FILES
CHANGED
|
@@ -22,8 +22,11 @@ docs/CombinedPdfSourcePdf.md
|
|
|
22
22
|
docs/CombinedPdfSourceType.md
|
|
23
23
|
docs/CombinedPdfState.md
|
|
24
24
|
docs/CopyTemplateRequest.md
|
|
25
|
+
docs/CreateAccountEmailActionRequest.md
|
|
25
26
|
docs/CreateCombinedPdfRequest.md
|
|
26
27
|
docs/CreateCustomFileFromUploadRequest.md
|
|
28
|
+
docs/CreateEmailActionRequest.md
|
|
29
|
+
docs/CreateEmailDomainRequest.md
|
|
27
30
|
docs/CreateFolderRequest.md
|
|
28
31
|
docs/CreateSignatureRequestEventRequest.md
|
|
29
32
|
docs/CreateSignatureRequestTokenRequest.md
|
|
@@ -35,6 +38,23 @@ docs/CreateWebhookRequest.md
|
|
|
35
38
|
docs/CustomFile.md
|
|
36
39
|
docs/CustomFileList.md
|
|
37
40
|
docs/CustomFileSourcePdf.md
|
|
41
|
+
docs/DnsRecordType.md
|
|
42
|
+
docs/EmailAction.md
|
|
43
|
+
docs/EmailActionConditions.md
|
|
44
|
+
docs/EmailActionConditionsInput.md
|
|
45
|
+
docs/EmailActionCustomization.md
|
|
46
|
+
docs/EmailActionDelivery.md
|
|
47
|
+
docs/EmailActionFileFormats.md
|
|
48
|
+
docs/EmailActionList.md
|
|
49
|
+
docs/EmailActionSetting.md
|
|
50
|
+
docs/EmailActionSubmissionType.md
|
|
51
|
+
docs/EmailActionTestEmail.md
|
|
52
|
+
docs/EmailDomain.md
|
|
53
|
+
docs/EmailDomainDnsRecord.md
|
|
54
|
+
docs/EmailDomainDnsRecordPurpose.md
|
|
55
|
+
docs/EmailDomainList.md
|
|
56
|
+
docs/EmailDomainRecordState.md
|
|
57
|
+
docs/EmailDomainState.md
|
|
38
58
|
docs/ErrorCode.md
|
|
39
59
|
docs/ErrorDetail.md
|
|
40
60
|
docs/ErrorInfo.md
|
|
@@ -87,17 +107,22 @@ docs/RemoveTemplateFieldsRequest.md
|
|
|
87
107
|
docs/RenameFolderRequest.md
|
|
88
108
|
docs/ReorderTemplateFieldsRequest.md
|
|
89
109
|
docs/RestoreTemplateVersionRequest.md
|
|
110
|
+
docs/SendAccountEmailActionTestEmailRequest.md
|
|
90
111
|
docs/ShapeType.md
|
|
91
112
|
docs/SignatureRequest.md
|
|
92
113
|
docs/SignatureRequestAuthSecondFactorType.md
|
|
93
114
|
docs/SignatureRequestAuthType.md
|
|
115
|
+
docs/SignatureRequestEmailAttachments.md
|
|
116
|
+
docs/SignatureRequestEmailStatus.md
|
|
94
117
|
docs/SignatureRequestEvent.md
|
|
95
118
|
docs/SignatureRequestEventType.md
|
|
96
119
|
docs/SignatureRequestInput.md
|
|
97
120
|
docs/SignatureRequestMessageType.md
|
|
121
|
+
docs/SignatureRequestReminders.md
|
|
98
122
|
docs/SignatureRequestState.md
|
|
99
123
|
docs/SignatureRequestToken.md
|
|
100
124
|
docs/SignatureRequestTokenType.md
|
|
125
|
+
docs/SigningOrder.md
|
|
101
126
|
docs/StringConditionType.md
|
|
102
127
|
docs/Submission.md
|
|
103
128
|
docs/SubmissionAction.md
|
|
@@ -136,6 +161,8 @@ docs/TemplateFieldLogicStatus.md
|
|
|
136
161
|
docs/TemplateFieldMove.md
|
|
137
162
|
docs/TemplateFields.md
|
|
138
163
|
docs/TemplateFormMode.md
|
|
164
|
+
docs/TemplateFormSection.md
|
|
165
|
+
docs/TemplateFormSectionInput.md
|
|
139
166
|
docs/TemplateModelCode.md
|
|
140
167
|
docs/TemplatePageAiError.md
|
|
141
168
|
docs/TemplatePageAiNamingStatus.md
|
|
@@ -155,6 +182,9 @@ docs/TextAlignment.md
|
|
|
155
182
|
docs/TextOverflow.md
|
|
156
183
|
docs/TextVerticalAlignment.md
|
|
157
184
|
docs/Typeface.md
|
|
185
|
+
docs/UpdateAccountEmailActionRequest.md
|
|
186
|
+
docs/UpdateEmailActionCustomizationRequest.md
|
|
187
|
+
docs/UpdateEmailActionRequest.md
|
|
158
188
|
docs/UpdateSignatureRequestRequest.md
|
|
159
189
|
docs/UpdateTemplateDocumentRequest.md
|
|
160
190
|
docs/UpdateTemplateFieldsRequest.md
|
|
@@ -191,8 +221,11 @@ lib/docspring/models/combined_pdf_source_pdf.rb
|
|
|
191
221
|
lib/docspring/models/combined_pdf_source_type.rb
|
|
192
222
|
lib/docspring/models/combined_pdf_state.rb
|
|
193
223
|
lib/docspring/models/copy_template_request.rb
|
|
224
|
+
lib/docspring/models/create_account_email_action_request.rb
|
|
194
225
|
lib/docspring/models/create_combined_pdf_request.rb
|
|
195
226
|
lib/docspring/models/create_custom_file_from_upload_request.rb
|
|
227
|
+
lib/docspring/models/create_email_action_request.rb
|
|
228
|
+
lib/docspring/models/create_email_domain_request.rb
|
|
196
229
|
lib/docspring/models/create_folder_request.rb
|
|
197
230
|
lib/docspring/models/create_signature_request_event_request.rb
|
|
198
231
|
lib/docspring/models/create_signature_request_token_request.rb
|
|
@@ -204,6 +237,23 @@ lib/docspring/models/create_webhook_request.rb
|
|
|
204
237
|
lib/docspring/models/custom_file.rb
|
|
205
238
|
lib/docspring/models/custom_file_list.rb
|
|
206
239
|
lib/docspring/models/custom_file_source_pdf.rb
|
|
240
|
+
lib/docspring/models/dns_record_type.rb
|
|
241
|
+
lib/docspring/models/email_action.rb
|
|
242
|
+
lib/docspring/models/email_action_conditions.rb
|
|
243
|
+
lib/docspring/models/email_action_conditions_input.rb
|
|
244
|
+
lib/docspring/models/email_action_customization.rb
|
|
245
|
+
lib/docspring/models/email_action_delivery.rb
|
|
246
|
+
lib/docspring/models/email_action_file_formats.rb
|
|
247
|
+
lib/docspring/models/email_action_list.rb
|
|
248
|
+
lib/docspring/models/email_action_setting.rb
|
|
249
|
+
lib/docspring/models/email_action_submission_type.rb
|
|
250
|
+
lib/docspring/models/email_action_test_email.rb
|
|
251
|
+
lib/docspring/models/email_domain.rb
|
|
252
|
+
lib/docspring/models/email_domain_dns_record.rb
|
|
253
|
+
lib/docspring/models/email_domain_dns_record_purpose.rb
|
|
254
|
+
lib/docspring/models/email_domain_list.rb
|
|
255
|
+
lib/docspring/models/email_domain_record_state.rb
|
|
256
|
+
lib/docspring/models/email_domain_state.rb
|
|
207
257
|
lib/docspring/models/error_code.rb
|
|
208
258
|
lib/docspring/models/error_detail.rb
|
|
209
259
|
lib/docspring/models/error_info.rb
|
|
@@ -256,17 +306,22 @@ lib/docspring/models/remove_template_fields_request.rb
|
|
|
256
306
|
lib/docspring/models/rename_folder_request.rb
|
|
257
307
|
lib/docspring/models/reorder_template_fields_request.rb
|
|
258
308
|
lib/docspring/models/restore_template_version_request.rb
|
|
309
|
+
lib/docspring/models/send_account_email_action_test_email_request.rb
|
|
259
310
|
lib/docspring/models/shape_type.rb
|
|
260
311
|
lib/docspring/models/signature_request.rb
|
|
261
312
|
lib/docspring/models/signature_request_auth_second_factor_type.rb
|
|
262
313
|
lib/docspring/models/signature_request_auth_type.rb
|
|
314
|
+
lib/docspring/models/signature_request_email_attachments.rb
|
|
315
|
+
lib/docspring/models/signature_request_email_status.rb
|
|
263
316
|
lib/docspring/models/signature_request_event.rb
|
|
264
317
|
lib/docspring/models/signature_request_event_type.rb
|
|
265
318
|
lib/docspring/models/signature_request_input.rb
|
|
266
319
|
lib/docspring/models/signature_request_message_type.rb
|
|
320
|
+
lib/docspring/models/signature_request_reminders.rb
|
|
267
321
|
lib/docspring/models/signature_request_state.rb
|
|
268
322
|
lib/docspring/models/signature_request_token.rb
|
|
269
323
|
lib/docspring/models/signature_request_token_type.rb
|
|
324
|
+
lib/docspring/models/signing_order.rb
|
|
270
325
|
lib/docspring/models/string_condition_type.rb
|
|
271
326
|
lib/docspring/models/submission.rb
|
|
272
327
|
lib/docspring/models/submission_action.rb
|
|
@@ -305,6 +360,8 @@ lib/docspring/models/template_field_logic_status.rb
|
|
|
305
360
|
lib/docspring/models/template_field_move.rb
|
|
306
361
|
lib/docspring/models/template_fields.rb
|
|
307
362
|
lib/docspring/models/template_form_mode.rb
|
|
363
|
+
lib/docspring/models/template_form_section.rb
|
|
364
|
+
lib/docspring/models/template_form_section_input.rb
|
|
308
365
|
lib/docspring/models/template_model_code.rb
|
|
309
366
|
lib/docspring/models/template_page_ai_error.rb
|
|
310
367
|
lib/docspring/models/template_page_ai_naming_status.rb
|
|
@@ -324,6 +381,9 @@ lib/docspring/models/text_alignment.rb
|
|
|
324
381
|
lib/docspring/models/text_overflow.rb
|
|
325
382
|
lib/docspring/models/text_vertical_alignment.rb
|
|
326
383
|
lib/docspring/models/typeface.rb
|
|
384
|
+
lib/docspring/models/update_account_email_action_request.rb
|
|
385
|
+
lib/docspring/models/update_email_action_customization_request.rb
|
|
386
|
+
lib/docspring/models/update_email_action_request.rb
|
|
327
387
|
lib/docspring/models/update_signature_request_request.rb
|
|
328
388
|
lib/docspring/models/update_template_document_request.rb
|
|
329
389
|
lib/docspring/models/update_template_fields_request.rb
|
|
@@ -354,8 +414,11 @@ spec/models/combined_pdf_source_type_spec.rb
|
|
|
354
414
|
spec/models/combined_pdf_spec.rb
|
|
355
415
|
spec/models/combined_pdf_state_spec.rb
|
|
356
416
|
spec/models/copy_template_request_spec.rb
|
|
417
|
+
spec/models/create_account_email_action_request_spec.rb
|
|
357
418
|
spec/models/create_combined_pdf_request_spec.rb
|
|
358
419
|
spec/models/create_custom_file_from_upload_request_spec.rb
|
|
420
|
+
spec/models/create_email_action_request_spec.rb
|
|
421
|
+
spec/models/create_email_domain_request_spec.rb
|
|
359
422
|
spec/models/create_folder_request_spec.rb
|
|
360
423
|
spec/models/create_signature_request_event_request_spec.rb
|
|
361
424
|
spec/models/create_signature_request_token_request_spec.rb
|
|
@@ -367,6 +430,23 @@ spec/models/create_webhook_request_spec.rb
|
|
|
367
430
|
spec/models/custom_file_list_spec.rb
|
|
368
431
|
spec/models/custom_file_source_pdf_spec.rb
|
|
369
432
|
spec/models/custom_file_spec.rb
|
|
433
|
+
spec/models/dns_record_type_spec.rb
|
|
434
|
+
spec/models/email_action_conditions_input_spec.rb
|
|
435
|
+
spec/models/email_action_conditions_spec.rb
|
|
436
|
+
spec/models/email_action_customization_spec.rb
|
|
437
|
+
spec/models/email_action_delivery_spec.rb
|
|
438
|
+
spec/models/email_action_file_formats_spec.rb
|
|
439
|
+
spec/models/email_action_list_spec.rb
|
|
440
|
+
spec/models/email_action_setting_spec.rb
|
|
441
|
+
spec/models/email_action_spec.rb
|
|
442
|
+
spec/models/email_action_submission_type_spec.rb
|
|
443
|
+
spec/models/email_action_test_email_spec.rb
|
|
444
|
+
spec/models/email_domain_dns_record_purpose_spec.rb
|
|
445
|
+
spec/models/email_domain_dns_record_spec.rb
|
|
446
|
+
spec/models/email_domain_list_spec.rb
|
|
447
|
+
spec/models/email_domain_record_state_spec.rb
|
|
448
|
+
spec/models/email_domain_spec.rb
|
|
449
|
+
spec/models/email_domain_state_spec.rb
|
|
370
450
|
spec/models/error_code_spec.rb
|
|
371
451
|
spec/models/error_detail_spec.rb
|
|
372
452
|
spec/models/error_info_spec.rb
|
|
@@ -419,17 +499,22 @@ spec/models/remove_template_fields_request_spec.rb
|
|
|
419
499
|
spec/models/rename_folder_request_spec.rb
|
|
420
500
|
spec/models/reorder_template_fields_request_spec.rb
|
|
421
501
|
spec/models/restore_template_version_request_spec.rb
|
|
502
|
+
spec/models/send_account_email_action_test_email_request_spec.rb
|
|
422
503
|
spec/models/shape_type_spec.rb
|
|
423
504
|
spec/models/signature_request_auth_second_factor_type_spec.rb
|
|
424
505
|
spec/models/signature_request_auth_type_spec.rb
|
|
506
|
+
spec/models/signature_request_email_attachments_spec.rb
|
|
507
|
+
spec/models/signature_request_email_status_spec.rb
|
|
425
508
|
spec/models/signature_request_event_spec.rb
|
|
426
509
|
spec/models/signature_request_event_type_spec.rb
|
|
427
510
|
spec/models/signature_request_input_spec.rb
|
|
428
511
|
spec/models/signature_request_message_type_spec.rb
|
|
512
|
+
spec/models/signature_request_reminders_spec.rb
|
|
429
513
|
spec/models/signature_request_spec.rb
|
|
430
514
|
spec/models/signature_request_state_spec.rb
|
|
431
515
|
spec/models/signature_request_token_spec.rb
|
|
432
516
|
spec/models/signature_request_token_type_spec.rb
|
|
517
|
+
spec/models/signing_order_spec.rb
|
|
433
518
|
spec/models/string_condition_type_spec.rb
|
|
434
519
|
spec/models/submission_action_spec.rb
|
|
435
520
|
spec/models/submission_action_state_spec.rb
|
|
@@ -467,6 +552,8 @@ spec/models/template_field_logic_status_spec.rb
|
|
|
467
552
|
spec/models/template_field_move_spec.rb
|
|
468
553
|
spec/models/template_fields_spec.rb
|
|
469
554
|
spec/models/template_form_mode_spec.rb
|
|
555
|
+
spec/models/template_form_section_input_spec.rb
|
|
556
|
+
spec/models/template_form_section_spec.rb
|
|
470
557
|
spec/models/template_model_code_spec.rb
|
|
471
558
|
spec/models/template_page_ai_error_spec.rb
|
|
472
559
|
spec/models/template_page_ai_naming_status_spec.rb
|
|
@@ -487,6 +574,9 @@ spec/models/text_alignment_spec.rb
|
|
|
487
574
|
spec/models/text_overflow_spec.rb
|
|
488
575
|
spec/models/text_vertical_alignment_spec.rb
|
|
489
576
|
spec/models/typeface_spec.rb
|
|
577
|
+
spec/models/update_account_email_action_request_spec.rb
|
|
578
|
+
spec/models/update_email_action_customization_request_spec.rb
|
|
579
|
+
spec/models/update_email_action_request_spec.rb
|
|
490
580
|
spec/models/update_signature_request_request_spec.rb
|
|
491
581
|
spec/models/update_template_document_request_spec.rb
|
|
492
582
|
spec/models/update_template_fields_request_spec.rb
|
data/AGENTS.md
CHANGED
|
@@ -20,6 +20,8 @@ keeps it.
|
|
|
20
20
|
- https://docspring.com/docs/: the guides. https://docspring.com/docs/api/: the API reference, with Ruby code
|
|
21
21
|
for every method.
|
|
22
22
|
- https://docspring.com/api-docs/v2/openapi.json: the OpenAPI spec this SDK is generated from.
|
|
23
|
+
- https://docspring.com/docs/cli/: the DocSpring CLI (`docspring`), for scripts and terminal work outside Ruby
|
|
24
|
+
code. https://docspring.com/docs/mcp/: the MCP server, which connects AI assistants to a DocSpring account.
|
|
23
25
|
|
|
24
26
|
## Set up
|
|
25
27
|
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,73 @@
|
|
|
1
|
+
### 4.5.0 [November 7, 2026]
|
|
2
|
+
|
|
3
|
+
- New: `Template` has `form_sections`, the web form's sections in order (`TemplateFormSection`: an `id`, a `title`, a
|
|
4
|
+
`description` and the `field_ids` in it), which update_template takes too. Setting them replaces all of the sections.
|
|
5
|
+
- New: `Template` has `success_title`, `success_message` and `show_fill_again_button`, what the web form shows once
|
|
6
|
+
it's submitted, which create_template and update_template take too.
|
|
7
|
+
- New: create_template and upload_template take `include_office_use_fields`: with `detect_fields`, whether AI field
|
|
8
|
+
setup keeps the fields that only the office receiving the form fills in, such as a "For office use only" box. It
|
|
9
|
+
leaves them out by default (your account's template settings).
|
|
10
|
+
- Changed: the request validator refuses a `filename` that's blank or only whitespace (create_template,
|
|
11
|
+
update_template_document), and an empty `field_groups` list in update_template.
|
|
12
|
+
- New: a 409 `idempotency_key_in_use` error names what the first request with the key did: the email action
|
|
13
|
+
(`email_action_id`) or email domain (`email_domain_id`) it created, or the template whose fields it changed or whose
|
|
14
|
+
version it published (`template_id`).
|
|
15
|
+
|
|
16
|
+
### 4.4.0 [November 1, 2026]
|
|
17
|
+
|
|
18
|
+
- New: list_email_actions, create_email_action, get_email_action, update_email_action and delete_email_action manage a
|
|
19
|
+
template's email actions (`EmailAction`), which email each processed submission's files as attachments or a download
|
|
20
|
+
link. `to`, `cc` and `bcc` take addresses, and tags for an address in the submission's fields
|
|
21
|
+
(`{{ data.client_email }}`) or metadata (`{{ metadata.agent_email }}`). `send_when` sends only for the submissions
|
|
22
|
+
that meet its conditions. `file_name` names the attached files, and `file_formats` chooses them: a Word template's
|
|
23
|
+
Word document (`docx`), OpenDocument file (`odt`) or PDF (`pdf`), or every file the submission made (`all`). Attached
|
|
24
|
+
files over `max_attachment_mb` together (7 MB unless you raise it, up to 25) go as a link instead.
|
|
25
|
+
send_email_action_test_email sends one to you to check how it looks (`EmailActionTestEmail`). Without a paid plan
|
|
26
|
+
(Starter or higher), email actions only email your team: test emails, and test submissions' emails.
|
|
27
|
+
- New: list_account_email_actions, create_account_email_action, get_account_email_action, update_account_email_action
|
|
28
|
+
and delete_account_email_action manage your account's email actions, which send for every template, or for the
|
|
29
|
+
templates and folders they list (`template_ids`, `folder_ids`). send_account_email_action_test_email sends one to you
|
|
30
|
+
for one of its templates.
|
|
31
|
+
- New: list_email_actions also lists your account's email actions that send for the template, with the template's
|
|
32
|
+
changes in `customization` (`EmailActionCustomization`). update_email_action_customization changes one for that
|
|
33
|
+
template only, or turns it off there (`enabled`), and delete_email_action_customization removes the template's
|
|
34
|
+
changes.
|
|
35
|
+
- New: list_email_domains, create_email_domain, get_email_domain, verify_email_domain and delete_email_domain manage the
|
|
36
|
+
domains your email actions send from (`EmailDomain`), with the DNS records to add to each one (`EmailDomainDnsRecord`).
|
|
37
|
+
- A submission's `actions` include the emails its email actions sent (its template's and your account's), with each
|
|
38
|
+
recipient and what happened to their email, and a new `email_action_id`.
|
|
39
|
+
- New: a field's `string_condition_type` can be `not_equals`, `not_contains`, `not_starts_with`, `not_ends_with`,
|
|
40
|
+
`not_regex`, `blank` or `not_blank`, and a `regex` condition uses RE2 syntax (no lookarounds or backreferences).
|
|
41
|
+
- create_submission: DocSpring now emails the signers of a submission's `signature_requests` a link to sign, any
|
|
42
|
+
reminders, and the signed PDF once everyone has signed. Set `send_email` to false, for the submission or for one
|
|
43
|
+
signature request, when you send the links yourself or show the signing form in your app. A signature request that
|
|
44
|
+
DocSpring emails needs an `email`, and its `auth_type` is optional (`email_link`). Before anyone is emailed, the
|
|
45
|
+
request can be refused with a 402 (`insufficient_credits_to_send`), a 403 or a 429 (`daily_email_limit_reached`), and
|
|
46
|
+
nothing is saved.
|
|
47
|
+
- New create_submission properties for these emails: `signing_order` (`SigningOrder`) with each signature request's
|
|
48
|
+
`signing_step`, `email_subject`, `email_message`, `cc`, `reply_to`, `notification_emails`, `notify_when_signed` and
|
|
49
|
+
`reminders` (`SignatureRequestReminders`).
|
|
50
|
+
- A signature request has `send_email`, `signing_step`, `sent_at` and `email_status` (`SignatureRequestEmailStatus`),
|
|
51
|
+
and a submission has `signing_order`.
|
|
52
|
+
- Templates have new settings for these emails: `signature_request_from_name`, `signature_request_from_address`,
|
|
53
|
+
`signature_request_signing_url`, `signature_request_include_signing_token`, `signature_request_reply_to`,
|
|
54
|
+
`signature_request_notification_emails` and `signature_request_email_attachments`
|
|
55
|
+
(`SignatureRequestEmailAttachments`).
|
|
56
|
+
- New webhook event types: `signature_request.sent` and `signature_request.email_bounced`.
|
|
57
|
+
- New: page designs (`template_type` `page_designer`), PDFs designed in the Page Designer from a JSON layout, with no
|
|
58
|
+
document to start from. create_template makes one from its `layout`, or with an empty page when `layout` is left
|
|
59
|
+
out, and update_template replaces its layout. DocSpring adds a field for each value the layout reads. A template's
|
|
60
|
+
`layout` is in the [Page Designer layout format](https://docspring.com/docs/page-designer/layout-format/) (its
|
|
61
|
+
[JSON Schema](https://docspring.com/schemas/page-designer/layout.v1.json)), and is null for other templates.
|
|
62
|
+
- New: every method that creates, changes or deletes something takes an `Idempotency-Key` header, as the
|
|
63
|
+
`idempotency_key` option. Send the same key when you send a request again after a timeout or a network error: within
|
|
64
|
+
24 hours, DocSpring returns the first response instead of running the request twice. Arguments you already pass keep
|
|
65
|
+
their places.
|
|
66
|
+
- Changed: the request validator checks what API v2 now refuses: an ID, a query value or a template name that's blank or
|
|
67
|
+
only whitespace, an update with nothing to change, a version with a leading zero (`01`), a `filename` with a slash, a
|
|
68
|
+
signer `email` that isn't an email address, and an HTML template's `scale` outside 0.1 to 2.
|
|
69
|
+
- New: get_template_model_code takes `rust` as its `lang`, for Rust structs that serde reads and writes.
|
|
70
|
+
|
|
1
71
|
### 4.3.0 [October 31, 2026]
|
|
2
72
|
|
|
3
73
|
- New: get_template_model_code takes `rust` as its `lang`, for Rust structs that serde reads and writes.
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
docspring (4.
|
|
4
|
+
docspring (4.5.0)
|
|
5
5
|
logger
|
|
6
6
|
typhoeus (~> 1.0, >= 1.0.1)
|
|
7
7
|
|
|
@@ -55,15 +55,15 @@ GEM
|
|
|
55
55
|
rspec-core (~> 3.13.0)
|
|
56
56
|
rspec-expectations (~> 3.13.0)
|
|
57
57
|
rspec-mocks (~> 3.13.0)
|
|
58
|
-
rspec-core (3.13.
|
|
58
|
+
rspec-core (3.13.7)
|
|
59
59
|
rspec-support (~> 3.13.0)
|
|
60
|
-
rspec-expectations (3.13.
|
|
60
|
+
rspec-expectations (3.13.6)
|
|
61
61
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
62
62
|
rspec-support (~> 3.13.0)
|
|
63
|
-
rspec-mocks (3.13.
|
|
63
|
+
rspec-mocks (3.13.9)
|
|
64
64
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
65
65
|
rspec-support (~> 3.13.0)
|
|
66
|
-
rspec-support (3.13.
|
|
66
|
+
rspec-support (3.13.8)
|
|
67
67
|
rubocop (0.66.0)
|
|
68
68
|
jaro_winkler (~> 1.5.1)
|
|
69
69
|
parallel (~> 1.10)
|
|
@@ -105,7 +105,7 @@ CHECKSUMS
|
|
|
105
105
|
coderay (1.1.3) sha256=dc530018a4684512f8f38143cd2a096c9f02a1fc2459edcfe534787a7fc77d4b
|
|
106
106
|
date (3.6.0) sha256=18ac945c4e24ebd93534f8eab8c2fd8c5604b3e977105b3798d62a1e8d27b580
|
|
107
107
|
diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
|
|
108
|
-
docspring (4.
|
|
108
|
+
docspring (4.5.0)
|
|
109
109
|
ethon (0.19.1) sha256=f309dec67cfdefaf96b3d1ee0ed4f186eac518f131340f607bb3df3b4e13ddc4
|
|
110
110
|
ffi (1.17.4) sha256=bcd1642e06f0d16fc9e09ac6d49c3a7298b9789bcb58127302f934e437d60acf
|
|
111
111
|
ffi (1.17.4-aarch64-linux-gnu) sha256=b208f06f91ffd8f5e1193da3cae3d2ccfc27fc36fba577baf698d26d91c080df
|
|
@@ -132,10 +132,10 @@ CHECKSUMS
|
|
|
132
132
|
rake (13.0.6) sha256=5ce4bf5037b4196c24ac62834d8db1ce175470391026bd9e557d669beeb19097
|
|
133
133
|
reline (0.7.0) sha256=5b012d8e55dbf9d450f12bde2cf7d15ff546ae80b3f8f3b30e570d431815583d
|
|
134
134
|
rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
|
|
135
|
-
rspec-core (3.13.
|
|
136
|
-
rspec-expectations (3.13.
|
|
137
|
-
rspec-mocks (3.13.
|
|
138
|
-
rspec-support (3.13.
|
|
135
|
+
rspec-core (3.13.7) sha256=c64ff16d9788119805cbc6a3f4b6d87cc22417c2d25976a3330de136896b5469
|
|
136
|
+
rspec-expectations (3.13.6) sha256=bf538ca6d367ff5b0d85a87fdb5c0c6038f2cd1308a0eeba07476caa02d22f35
|
|
137
|
+
rspec-mocks (3.13.9) sha256=ea5c7ff3054a6098ca6039aacef80aec69d5a8a3ef80be8fc88337359b672a30
|
|
138
|
+
rspec-support (3.13.8) sha256=e4160030309b7e3e9d9863dfe720a35dfcc577162f5402cd68fc8c5258a0ffd6
|
|
139
139
|
rubocop (0.66.0) sha256=f05a6896f367765b3f0fba663d0add120444f8de604dada405662b10a0860f5a
|
|
140
140
|
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
141
141
|
stringio (3.2.0) sha256=c37cb2e58b4ffbd33fe5cd948c05934af997b36e0b6ca6fdf43afa234cf222e1
|
data/LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright © 2018-
|
|
1
|
+
Copyright © 2018-2026 DocSpring, Inc.
|
|
2
2
|
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
4
|
|
data/README.md
CHANGED
|
@@ -10,7 +10,10 @@ e-signatures.
|
|
|
10
10
|
The code in this repository is generated from DocSpring's OpenAPI spec ([About this SDK](#about-this-sdk)). Issues and
|
|
11
11
|
pull requests are welcome.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Outside Ruby code, the [DocSpring CLI](https://docspring.com/docs/cli/) calls the same API from a terminal or a
|
|
14
|
+
shell script, and the [MCP server](https://docspring.com/docs/mcp/) connects AI assistants to your account.
|
|
15
|
+
|
|
16
|
+
Version 4.5.0. Requires Ruby >= 2.7.
|
|
14
17
|
|
|
15
18
|
## Install and configure
|
|
16
19
|
|
|
@@ -89,8 +92,11 @@ Ruby code for every method.
|
|
|
89
92
|
| ------ | ----------- |
|
|
90
93
|
| [`add_template_fields`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#add_template_fields) | Add fields to a template |
|
|
91
94
|
| [`copy_template`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#copy_template) | Copy a template |
|
|
95
|
+
| [`create_account_email_action`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#create_account_email_action) | Create an account email action |
|
|
92
96
|
| [`create_combined_pdf`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#create_combined_pdf) | Combine PDFs |
|
|
93
97
|
| [`create_custom_file_from_upload`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#create_custom_file_from_upload) | Create a custom file from an upload |
|
|
98
|
+
| [`create_email_action`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#create_email_action) | Create an email action |
|
|
99
|
+
| [`create_email_domain`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#create_email_domain) | Add an email domain |
|
|
94
100
|
| [`create_folder`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#create_folder) | Create a folder |
|
|
95
101
|
| [`create_signature_request_event`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#create_signature_request_event) | Record a signature request event |
|
|
96
102
|
| [`create_signature_request_token`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#create_signature_request_token) | Create a signature request token |
|
|
@@ -99,7 +105,11 @@ Ruby code for every method.
|
|
|
99
105
|
| [`create_template`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#create_template) | Create a template |
|
|
100
106
|
| [`create_template_preview`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#create_template_preview) | Preview a template with data |
|
|
101
107
|
| [`create_webhook`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#create_webhook) | Create a webhook |
|
|
108
|
+
| [`delete_account_email_action`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#delete_account_email_action) | Delete an account email action |
|
|
102
109
|
| [`delete_custom_file`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#delete_custom_file) | Delete a custom file |
|
|
110
|
+
| [`delete_email_action`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#delete_email_action) | Delete an email action |
|
|
111
|
+
| [`delete_email_action_customization`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#delete_email_action_customization) | Reset an account email action's customization |
|
|
112
|
+
| [`delete_email_domain`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#delete_email_domain) | Remove an email domain |
|
|
103
113
|
| [`delete_folder`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#delete_folder) | Delete a folder |
|
|
104
114
|
| [`delete_template`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#delete_template) | Delete a template |
|
|
105
115
|
| [`delete_webhook`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#delete_webhook) | Delete a webhook |
|
|
@@ -107,8 +117,11 @@ Ruby code for every method.
|
|
|
107
117
|
| [`expire_submission`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#expire_submission) | Expire a submission |
|
|
108
118
|
| [`generate_submission_files`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#generate_submission_files) | Generate more files |
|
|
109
119
|
| [`generate_submission_preview`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#generate_submission_preview) | Generate a preview PDF |
|
|
120
|
+
| [`get_account_email_action`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#get_account_email_action) | Get an account email action |
|
|
110
121
|
| [`get_combined_pdf`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#get_combined_pdf) | Get a combined PDF |
|
|
111
122
|
| [`get_custom_file`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#get_custom_file) | Get a custom file |
|
|
123
|
+
| [`get_email_action`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#get_email_action) | Get an email action |
|
|
124
|
+
| [`get_email_domain`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#get_email_domain) | Get an email domain |
|
|
112
125
|
| [`get_folder`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#get_folder) | Get a folder |
|
|
113
126
|
| [`get_presign_url`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#get_presign_url) | Get a presigned URL to upload a file |
|
|
114
127
|
| [`get_signature_request`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#get_signature_request) | Get a signature request |
|
|
@@ -121,8 +134,11 @@ Ruby code for every method.
|
|
|
121
134
|
| [`get_template_preview`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#get_template_preview) | Get a template preview |
|
|
122
135
|
| [`get_template_schema`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#get_template_schema) | Get the JSON Schema of a template's submission data |
|
|
123
136
|
| [`get_webhook`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#get_webhook) | Get a webhook |
|
|
137
|
+
| [`list_account_email_actions`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#list_account_email_actions) | List account email actions |
|
|
124
138
|
| [`list_combined_pdfs`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#list_combined_pdfs) | List combined PDFs |
|
|
125
139
|
| [`list_custom_files`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#list_custom_files) | List custom files |
|
|
140
|
+
| [`list_email_actions`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#list_email_actions) | List email actions |
|
|
141
|
+
| [`list_email_domains`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#list_email_domains) | List email domains |
|
|
126
142
|
| [`list_folders`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#list_folders) | List folders |
|
|
127
143
|
| [`list_submissions`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#list_submissions) | List submissions |
|
|
128
144
|
| [`list_template_fields`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#list_template_fields) | List a template's fields |
|
|
@@ -136,7 +152,12 @@ Ruby code for every method.
|
|
|
136
152
|
| [`rename_folder`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#rename_folder) | Rename a folder |
|
|
137
153
|
| [`reorder_template_fields`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#reorder_template_fields) | Reorder a template's fields |
|
|
138
154
|
| [`restore_template_version`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#restore_template_version) | Restore a template version |
|
|
155
|
+
| [`send_account_email_action_test_email`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#send_account_email_action_test_email) | Send a test email for an account email action |
|
|
156
|
+
| [`send_email_action_test_email`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#send_email_action_test_email) | Send a test email |
|
|
139
157
|
| [`test_authentication`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#test_authentication) | Test authentication |
|
|
158
|
+
| [`update_account_email_action`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#update_account_email_action) | Update an account email action |
|
|
159
|
+
| [`update_email_action`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#update_email_action) | Update an email action |
|
|
160
|
+
| [`update_email_action_customization`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#update_email_action_customization) | Customize an account email action for a template |
|
|
140
161
|
| [`update_signature_request`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#update_signature_request) | Update a signature request |
|
|
141
162
|
| [`update_template`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#update_template) | Update a template |
|
|
142
163
|
| [`update_template_document`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#update_template_document) | Replace a template's document |
|
|
@@ -145,6 +166,7 @@ Ruby code for every method.
|
|
|
145
166
|
| [`upload_template`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#upload_template) | Create a template from an uploaded PDF or Word document |
|
|
146
167
|
| [`upload_template_document`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#upload_template_document) | Replace a template's document with an uploaded file |
|
|
147
168
|
| [`validate_submission`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#validate_submission) | Check a submission without creating it |
|
|
169
|
+
| [`verify_email_domain`](https://github.com/DocSpring/docspring-ruby/blob/main/docs/Client.md#verify_email_domain) | Verify an email domain |
|
|
148
170
|
|
|
149
171
|
## Errors
|
|
150
172
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **fields** | [**Array<FieldInput>**](FieldInput.md) | The fields to add. Settings left out have their defaults, except that a field with the name of other fields takes their shared settings.
|
|
7
|
+
| **fields** | [**Array<FieldInput>**](FieldInput.md) | The fields to add. Settings left out have their defaults, except that a field with the name of other fields takes their shared settings. It can't set one of them to another value: PUT /templates/{template_id}/fields changes them for every field with the name. | |
|
|
8
8
|
|
|
9
9
|
## Example
|
|
10
10
|
|