cloudpdf 3.2.0 → 3.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.
- checksums.yaml +4 -4
- data/.fern/metadata.json +2 -2
- data/lib/CloudPDF/client.rb +1 -1
- data/lib/CloudPDF/doc/signatures/client.rb +109 -2
- data/lib/CloudPDF/doc/signatures/types/doc_signatures_add_validation_info_request.rb +25 -0
- data/lib/CloudPDF/doc/signatures/types/validation_info_signatures_request.rb +17 -0
- data/lib/CloudPDF/doc/versions/client.rb +14 -3
- data/lib/CloudPDF/doc/versions/types/analysis_versions_request.rb +1 -1
- data/lib/CloudPDF/doc/versions/types/signatures_versions_request.rb +2 -0
- data/lib/CloudPDF/types/change_op_forms_set_signature_appearance_resources.rb +1 -1
- data/lib/CloudPDF/types/doc_signatures_add_validation_info_response.rb +11 -0
- data/lib/CloudPDF/types/doc_signatures_add_validation_info_response_added.rb +13 -0
- data/lib/CloudPDF/types/doc_signatures_prepare_response.rb +2 -0
- data/lib/CloudPDF/types/doc_signatures_validation_info_response.rb +13 -0
- data/lib/CloudPDF/types/form_field_checkbox.rb +2 -0
- data/lib/CloudPDF/types/form_field_combobox.rb +4 -0
- data/lib/CloudPDF/types/form_field_draft_checkbox.rb +2 -0
- data/lib/CloudPDF/types/form_field_draft_combobox.rb +4 -0
- data/lib/CloudPDF/types/form_field_draft_listbox.rb +2 -0
- data/lib/CloudPDF/types/form_field_draft_pushbutton.rb +2 -0
- data/lib/CloudPDF/types/form_field_draft_radio.rb +2 -0
- data/lib/CloudPDF/types/form_field_draft_signature.rb +2 -0
- data/lib/CloudPDF/types/form_field_draft_text.rb +4 -0
- data/lib/CloudPDF/types/form_field_format.rb +20 -0
- data/lib/CloudPDF/types/form_field_format_date.rb +9 -0
- data/lib/CloudPDF/types/form_field_format_other.rb +7 -0
- data/lib/CloudPDF/types/form_field_format_time.rb +9 -0
- data/lib/CloudPDF/types/form_field_format_writable.rb +15 -0
- data/lib/CloudPDF/types/form_field_format_writable_date.rb +9 -0
- data/lib/CloudPDF/types/form_field_format_writable_time.rb +9 -0
- data/lib/CloudPDF/types/form_field_listbox.rb +2 -0
- data/lib/CloudPDF/types/form_field_patch.rb +4 -0
- data/lib/CloudPDF/types/form_field_pushbutton.rb +2 -0
- data/lib/CloudPDF/types/form_field_radio.rb +2 -0
- data/lib/CloudPDF/types/form_field_signature.rb +2 -0
- data/lib/CloudPDF/types/form_field_text.rb +4 -0
- data/lib/CloudPDF/types/form_field_unknown.rb +2 -0
- data/lib/CloudPDF/version.rb +1 -1
- data/lib/cloudpdf.rb +12 -0
- data/reference.md +219 -3
- metadata +14 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4e2b23b83f7c50ec8e9df028560ba9667d57f648be9017e8ec9066825d815626
|
|
4
|
+
data.tar.gz: 4f4497b5ac4f3ddff8449e0f6edb477c74dc8e822c8c403b4347ca6fa624305c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 443467913b24cf33016c0512dc7d6a865b8d4613e9c98fe04859990f16641a89c38d4cbfd32f430541d9d335edb9d86db8fcf35ad1300d1f9290108223cbaba2
|
|
7
|
+
data.tar.gz: 613e0e40609681b4c55c97bef41b9d68106dfd960d8bd45d6364009baf1ca68ab41f8763d8a2ad83273244040fcb4faf1885c1619f6ea27cfe3f1292261a142d
|
data/.fern/metadata.json
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"generatorConfig": {
|
|
6
6
|
"moduleName": "CloudPDF"
|
|
7
7
|
},
|
|
8
|
-
"originGitCommit": "
|
|
8
|
+
"originGitCommit": "9af4d9ee755d6e5c20a8055654e895a81b95fb83",
|
|
9
9
|
"originGitCommitIsDirty": false,
|
|
10
10
|
"invokedBy": "ci",
|
|
11
|
-
"requestedVersion": "3.
|
|
11
|
+
"requestedVersion": "3.4.0",
|
|
12
12
|
"ciProvider": "github"
|
|
13
13
|
}
|
data/lib/CloudPDF/client.rb
CHANGED
|
@@ -225,8 +225,10 @@ module CloudPDF
|
|
|
225
225
|
# Multipart: a JSON `body` part (field, subFilter, digest, contentsSize, signer, certify, lock), naming the
|
|
226
226
|
# appearance PDF it may carry as `resources: { appearance: '<key>' }`, and that PDF as the part
|
|
227
227
|
# `resource:<key>`. A certification (`certify.permission`) additionally requires `doc.sign.certify`. The layer
|
|
228
|
-
# is read-only until the signing completes, is cancelled, or expires (15 minutes).
|
|
229
|
-
#
|
|
228
|
+
# is read-only until the signing completes, is cancelled, or expires (15 minutes). A document timestamp (`kind:
|
|
229
|
+
# 'timestamp'`) may leave `field` out, since 3.3: the engine then makes a field of no size for it, under a name
|
|
230
|
+
# no other field has, and the answer names it in `field`. That needs `doc.sign` for the document. The signature
|
|
231
|
+
# is made over the layer's own base: the upload, or the version its last signature made.
|
|
230
232
|
#
|
|
231
233
|
# @param request_options [Hash]
|
|
232
234
|
# @param params [void]
|
|
@@ -277,6 +279,111 @@ module CloudPDF
|
|
|
277
279
|
raise error_class.new(response.body, code: code)
|
|
278
280
|
end
|
|
279
281
|
end
|
|
282
|
+
|
|
283
|
+
# Each entry is one DER object, base64. It reads the layer as it is now, so entries stored and not yet sealed by
|
|
284
|
+
# a signature are among them. Arrived in 3.3.
|
|
285
|
+
#
|
|
286
|
+
# @param request_options [Hash]
|
|
287
|
+
# @param params [Hash]
|
|
288
|
+
# @option request_options [String] :base_url
|
|
289
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
290
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
291
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
292
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
293
|
+
# @option params [String] :doc_id
|
|
294
|
+
# @option params [String] :layer_name
|
|
295
|
+
# @option params [String, nil] :document_password
|
|
296
|
+
#
|
|
297
|
+
# @example
|
|
298
|
+
# client.doc.signatures.validation_info(
|
|
299
|
+
# doc_id: "docId",
|
|
300
|
+
# layer_name: "layerName"
|
|
301
|
+
# )
|
|
302
|
+
#
|
|
303
|
+
# @return [CloudPDF::Types::DocSignaturesValidationInfoResponse]
|
|
304
|
+
def validation_info(request_options: {}, **params)
|
|
305
|
+
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
306
|
+
headers = {}
|
|
307
|
+
headers["X-Document-Password"] = params[:document_password] if params[:document_password]
|
|
308
|
+
|
|
309
|
+
request = CloudPDF::Internal::JSON::Request.new(
|
|
310
|
+
base_url: request_options[:base_url],
|
|
311
|
+
method: "GET",
|
|
312
|
+
path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/signatures/validation-info",
|
|
313
|
+
headers: headers,
|
|
314
|
+
request_options: request_options
|
|
315
|
+
)
|
|
316
|
+
begin
|
|
317
|
+
response = @client.send(request)
|
|
318
|
+
rescue Net::HTTPRequestTimeout
|
|
319
|
+
raise CloudPDF::Errors::TimeoutError
|
|
320
|
+
end
|
|
321
|
+
code = response.code.to_i
|
|
322
|
+
if code.between?(200, 299)
|
|
323
|
+
(response.body.to_s.empty? ? nil : CloudPDF::Types::DocSignaturesValidationInfoResponse.load(response.body))
|
|
324
|
+
else
|
|
325
|
+
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
326
|
+
raise error_class.new(response.body, code: code)
|
|
327
|
+
end
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
# Each entry is one DER object of at most 16 MiB, base64. An entry the file already holds, byte for byte, is not
|
|
331
|
+
# stored again: `added` counts the new ones. An entry that is not one DER object fails the request and nothing
|
|
332
|
+
# is stored; the error names it, as in `certificates[1]`. The server stores what it is given and asks no
|
|
333
|
+
# certificate authority: collect the answers first. It needs `doc.sign` for the document, not for a group of
|
|
334
|
+
# fields, and is refused after a certification that allows no changes. It cannot be undone, and it leaves undo
|
|
335
|
+
# for earlier changes as it was. Arrived in 3.3.
|
|
336
|
+
#
|
|
337
|
+
# @param request_options [Hash]
|
|
338
|
+
# @param params [CloudPDF::Doc::Signatures::Types::DocSignaturesAddValidationInfoRequest]
|
|
339
|
+
# @option request_options [String] :base_url
|
|
340
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
341
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
342
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
343
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
344
|
+
# @option params [String] :doc_id
|
|
345
|
+
# @option params [String] :layer_name
|
|
346
|
+
# @option params [String, nil] :document_password
|
|
347
|
+
# @option params [String, nil] :idempotency_key
|
|
348
|
+
#
|
|
349
|
+
# @example
|
|
350
|
+
# client.doc.signatures.add_validation_info(
|
|
351
|
+
# doc_id: "docId",
|
|
352
|
+
# layer_name: "layerName"
|
|
353
|
+
# )
|
|
354
|
+
#
|
|
355
|
+
# @return [CloudPDF::Types::DocSignaturesAddValidationInfoResponse]
|
|
356
|
+
def add_validation_info(request_options: {}, **params)
|
|
357
|
+
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
358
|
+
request_data = CloudPDF::Doc::Signatures::Types::DocSignaturesAddValidationInfoRequest.new(params).to_h
|
|
359
|
+
non_body_param_names = %w[docId layerName X-Document-Password Idempotency-Key]
|
|
360
|
+
body = request_data.except(*non_body_param_names)
|
|
361
|
+
|
|
362
|
+
headers = {}
|
|
363
|
+
headers["X-Document-Password"] = params[:document_password] if params[:document_password]
|
|
364
|
+
headers["Idempotency-Key"] = params[:idempotency_key] if params[:idempotency_key]
|
|
365
|
+
|
|
366
|
+
request = CloudPDF::Internal::JSON::Request.new(
|
|
367
|
+
base_url: request_options[:base_url],
|
|
368
|
+
method: "POST",
|
|
369
|
+
path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/signatures/validation-info",
|
|
370
|
+
headers: headers,
|
|
371
|
+
body: body,
|
|
372
|
+
request_options: request_options
|
|
373
|
+
)
|
|
374
|
+
begin
|
|
375
|
+
response = @client.send(request)
|
|
376
|
+
rescue Net::HTTPRequestTimeout
|
|
377
|
+
raise CloudPDF::Errors::TimeoutError
|
|
378
|
+
end
|
|
379
|
+
code = response.code.to_i
|
|
380
|
+
if code.between?(200, 299)
|
|
381
|
+
(response.body.to_s.empty? ? nil : CloudPDF::Types::DocSignaturesAddValidationInfoResponse.load(response.body))
|
|
382
|
+
else
|
|
383
|
+
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
|
|
384
|
+
raise error_class.new(response.body, code: code)
|
|
385
|
+
end
|
|
386
|
+
end
|
|
280
387
|
end
|
|
281
388
|
end
|
|
282
389
|
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Doc
|
|
5
|
+
module Signatures
|
|
6
|
+
module Types
|
|
7
|
+
class DocSignaturesAddValidationInfoRequest < Internal::Types::Model
|
|
8
|
+
field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId"
|
|
9
|
+
|
|
10
|
+
field :layer_name, -> { String }, optional: false, nullable: false, api_name: "layerName"
|
|
11
|
+
|
|
12
|
+
field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password"
|
|
13
|
+
|
|
14
|
+
field :idempotency_key, -> { String }, optional: true, nullable: false, api_name: "Idempotency-Key"
|
|
15
|
+
|
|
16
|
+
field :certificates, -> { Internal::Types::Array[String] }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :ocsp_responses, -> { Internal::Types::Array[String] }, optional: true, nullable: false, api_name: "ocspResponses"
|
|
19
|
+
|
|
20
|
+
field :crls, -> { Internal::Types::Array[String] }, optional: true, nullable: false
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Doc
|
|
5
|
+
module Signatures
|
|
6
|
+
module Types
|
|
7
|
+
class ValidationInfoSignaturesRequest < Internal::Types::Model
|
|
8
|
+
field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId"
|
|
9
|
+
|
|
10
|
+
field :layer_name, -> { String }, optional: false, nullable: false, api_name: "layerName"
|
|
11
|
+
|
|
12
|
+
field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -59,7 +59,9 @@ module CloudPDF
|
|
|
59
59
|
end
|
|
60
60
|
|
|
61
61
|
# Exactly one of `since.signature` / `since.revision`; `until=<revision>` defaults to the last. The same answer
|
|
62
|
-
# for every caller.
|
|
62
|
+
# for every caller. A version never changes, but the rules that judge it can: with `engine`, the `analysis`
|
|
63
|
+
# value of the layer's head, a settled answer is `immutable`. Without it, or with another value, the answer is
|
|
64
|
+
# this server's own, with `no-store` and the current value in `EmbedPDF-Engine`.
|
|
63
65
|
#
|
|
64
66
|
# @param request_options [Hash]
|
|
65
67
|
# @param params [Hash]
|
|
@@ -75,7 +77,7 @@ module CloudPDF
|
|
|
75
77
|
# @option params [Integer, nil] :since_revision
|
|
76
78
|
# @option params [CloudPDF::Doc::Versions::Types::AnalysisVersionsRequestLevel, nil] :level
|
|
77
79
|
# @option params [Integer, nil] :until_
|
|
78
|
-
# @option params [
|
|
80
|
+
# @option params [String, nil] :engine
|
|
79
81
|
# @option params [String, nil] :document_password
|
|
80
82
|
#
|
|
81
83
|
# @example
|
|
@@ -93,7 +95,7 @@ module CloudPDF
|
|
|
93
95
|
query_params["since.revision"] = params[:since_revision] if params.key?(:since_revision)
|
|
94
96
|
query_params["level"] = params[:level] if params.key?(:level)
|
|
95
97
|
query_params["until"] = params[:until_] if params.key?(:until_)
|
|
96
|
-
query_params["
|
|
98
|
+
query_params["engine"] = params[:engine] if params.key?(:engine)
|
|
97
99
|
|
|
98
100
|
headers = {}
|
|
99
101
|
headers["X-Document-Password"] = params[:document_password] if params[:document_password]
|
|
@@ -210,6 +212,10 @@ module CloudPDF
|
|
|
210
212
|
raise error_class.new(response.body, code: code)
|
|
211
213
|
end
|
|
212
214
|
|
|
215
|
+
# A version never changes, but what the server reads from it can: with `engine`, the `signatures` value of the
|
|
216
|
+
# layer's head, the answer is `immutable`. Without it, or with another value, the answer is this server's own,
|
|
217
|
+
# with `no-store` and the current value in `EmbedPDF-Engine`.
|
|
218
|
+
#
|
|
213
219
|
# @param request_options [Hash]
|
|
214
220
|
# @param params [Hash]
|
|
215
221
|
# @option request_options [String] :base_url
|
|
@@ -220,6 +226,7 @@ module CloudPDF
|
|
|
220
226
|
# @option params [String] :doc_id
|
|
221
227
|
# @option params [String] :layer_name
|
|
222
228
|
# @option params [String] :sha256
|
|
229
|
+
# @option params [String, nil] :engine
|
|
223
230
|
# @option params [String, nil] :document_password
|
|
224
231
|
#
|
|
225
232
|
# @example
|
|
@@ -232,6 +239,9 @@ module CloudPDF
|
|
|
232
239
|
# @return [CloudPDF::Types::DocVersionsSignaturesResponse]
|
|
233
240
|
def signatures(request_options: {}, **params)
|
|
234
241
|
params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
|
|
242
|
+
query_params = {}
|
|
243
|
+
query_params["engine"] = params[:engine] if params.key?(:engine)
|
|
244
|
+
|
|
235
245
|
headers = {}
|
|
236
246
|
headers["X-Document-Password"] = params[:document_password] if params[:document_password]
|
|
237
247
|
|
|
@@ -240,6 +250,7 @@ module CloudPDF
|
|
|
240
250
|
method: "GET",
|
|
241
251
|
path: "v1/docs/#{URI.encode_uri_component(params[:doc_id].to_s)}/layers/#{URI.encode_uri_component(params[:layer_name].to_s)}/versions/signatures/#{URI.encode_uri_component(params[:sha256].to_s)}",
|
|
242
252
|
headers: headers,
|
|
253
|
+
query: query_params,
|
|
243
254
|
request_options: request_options
|
|
244
255
|
)
|
|
245
256
|
begin
|
|
@@ -19,7 +19,7 @@ module CloudPDF
|
|
|
19
19
|
|
|
20
20
|
field :until_, -> { Integer }, optional: true, nullable: false, api_name: "until"
|
|
21
21
|
|
|
22
|
-
field :
|
|
22
|
+
field :engine, -> { String }, optional: true, nullable: false
|
|
23
23
|
|
|
24
24
|
field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password"
|
|
25
25
|
end
|
|
@@ -11,6 +11,8 @@ module CloudPDF
|
|
|
11
11
|
|
|
12
12
|
field :sha256, -> { String }, optional: false, nullable: false
|
|
13
13
|
|
|
14
|
+
field :engine, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
14
16
|
field :document_password, -> { String }, optional: true, nullable: false, api_name: "X-Document-Password"
|
|
15
17
|
end
|
|
16
18
|
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class DocSignaturesAddValidationInfoResponse < Internal::Types::Model
|
|
6
|
+
field :added, -> { CloudPDF::Types::DocSignaturesAddValidationInfoResponseAdded }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :meta, -> { CloudPDF::Types::MutationMeta }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class DocSignaturesAddValidationInfoResponseAdded < Internal::Types::Model
|
|
6
|
+
field :certificates, -> { Integer }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :ocsp_responses, -> { Integer }, optional: false, nullable: false, api_name: "ocspResponses"
|
|
9
|
+
|
|
10
|
+
field :crls, -> { Integer }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -18,6 +18,8 @@ module CloudPDF
|
|
|
18
18
|
field :expected_version, -> { CloudPDF::Types::DocSignaturesPrepareResponseExpectedVersion }, optional: false, nullable: false, api_name: "expectedVersion"
|
|
19
19
|
|
|
20
20
|
field :expires_at, -> { String }, optional: false, nullable: true, api_name: "expiresAt"
|
|
21
|
+
|
|
22
|
+
field :field, -> { CloudPDF::Types::FormFieldRef }, optional: true, nullable: false
|
|
21
23
|
end
|
|
22
24
|
end
|
|
23
25
|
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class DocSignaturesValidationInfoResponse < Internal::Types::Model
|
|
6
|
+
field :certificates, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :ocsp_responses, -> { Internal::Types::Array[String] }, optional: false, nullable: false, api_name: "ocspResponses"
|
|
9
|
+
|
|
10
|
+
field :crls, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -27,6 +27,8 @@ module CloudPDF
|
|
|
27
27
|
|
|
28
28
|
field :group_id, -> { String }, optional: false, nullable: true, api_name: "groupId"
|
|
29
29
|
|
|
30
|
+
field :purpose, -> { String }, optional: false, nullable: true
|
|
31
|
+
|
|
30
32
|
field :created_by, -> { String }, optional: false, nullable: true, api_name: "createdBy"
|
|
31
33
|
|
|
32
34
|
field :created_at, -> { String }, optional: false, nullable: true, api_name: "createdAt"
|
|
@@ -27,6 +27,8 @@ module CloudPDF
|
|
|
27
27
|
|
|
28
28
|
field :group_id, -> { String }, optional: false, nullable: true, api_name: "groupId"
|
|
29
29
|
|
|
30
|
+
field :purpose, -> { String }, optional: false, nullable: true
|
|
31
|
+
|
|
30
32
|
field :created_by, -> { String }, optional: false, nullable: true, api_name: "createdBy"
|
|
31
33
|
|
|
32
34
|
field :created_at, -> { String }, optional: false, nullable: true, api_name: "createdAt"
|
|
@@ -48,6 +50,8 @@ module CloudPDF
|
|
|
48
50
|
field :edit, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
49
51
|
|
|
50
52
|
field :options, -> { Internal::Types::Array[CloudPDF::Types::FormFieldComboboxOptionsItem] }, optional: false, nullable: false
|
|
53
|
+
|
|
54
|
+
field :format, -> { CloudPDF::Types::FormFieldFormat }, optional: false, nullable: true
|
|
51
55
|
end
|
|
52
56
|
end
|
|
53
57
|
end
|
|
@@ -17,6 +17,8 @@ module CloudPDF
|
|
|
17
17
|
|
|
18
18
|
field :group_id, -> { String }, optional: true, nullable: false, api_name: "groupId"
|
|
19
19
|
|
|
20
|
+
field :purpose, -> { String }, optional: true, nullable: false
|
|
21
|
+
|
|
20
22
|
field :actions, -> { CloudPDF::Types::FieldActionsPatch }, optional: true, nullable: false
|
|
21
23
|
|
|
22
24
|
field :widgets, -> { Internal::Types::Array[CloudPDF::Types::WidgetPlacement] }, optional: true, nullable: false
|
|
@@ -17,6 +17,8 @@ module CloudPDF
|
|
|
17
17
|
|
|
18
18
|
field :group_id, -> { String }, optional: true, nullable: false, api_name: "groupId"
|
|
19
19
|
|
|
20
|
+
field :purpose, -> { String }, optional: true, nullable: false
|
|
21
|
+
|
|
20
22
|
field :actions, -> { CloudPDF::Types::FieldActionsPatch }, optional: true, nullable: false
|
|
21
23
|
|
|
22
24
|
field :widgets, -> { Internal::Types::Array[CloudPDF::Types::WidgetPlacement] }, optional: true, nullable: false
|
|
@@ -26,6 +28,8 @@ module CloudPDF
|
|
|
26
28
|
field :options, -> { Internal::Types::Array[CloudPDF::Types::FormFieldDraftComboboxOptionsItem] }, optional: true, nullable: false
|
|
27
29
|
|
|
28
30
|
field :default_value, -> { String }, optional: true, nullable: false, api_name: "defaultValue"
|
|
31
|
+
|
|
32
|
+
field :format, -> { CloudPDF::Types::FormFieldFormatWritable }, optional: true, nullable: false
|
|
29
33
|
end
|
|
30
34
|
end
|
|
31
35
|
end
|
|
@@ -17,6 +17,8 @@ module CloudPDF
|
|
|
17
17
|
|
|
18
18
|
field :group_id, -> { String }, optional: true, nullable: false, api_name: "groupId"
|
|
19
19
|
|
|
20
|
+
field :purpose, -> { String }, optional: true, nullable: false
|
|
21
|
+
|
|
20
22
|
field :actions, -> { CloudPDF::Types::FieldActionsPatch }, optional: true, nullable: false
|
|
21
23
|
|
|
22
24
|
field :widgets, -> { Internal::Types::Array[CloudPDF::Types::WidgetPlacement] }, optional: true, nullable: false
|
|
@@ -17,6 +17,8 @@ module CloudPDF
|
|
|
17
17
|
|
|
18
18
|
field :group_id, -> { String }, optional: true, nullable: false, api_name: "groupId"
|
|
19
19
|
|
|
20
|
+
field :purpose, -> { String }, optional: true, nullable: false
|
|
21
|
+
|
|
20
22
|
field :actions, -> { CloudPDF::Types::FieldActionsPatch }, optional: true, nullable: false
|
|
21
23
|
|
|
22
24
|
field :widgets, -> { Internal::Types::Array[CloudPDF::Types::WidgetPlacement] }, optional: true, nullable: false
|
|
@@ -17,6 +17,8 @@ module CloudPDF
|
|
|
17
17
|
|
|
18
18
|
field :group_id, -> { String }, optional: true, nullable: false, api_name: "groupId"
|
|
19
19
|
|
|
20
|
+
field :purpose, -> { String }, optional: true, nullable: false
|
|
21
|
+
|
|
20
22
|
field :actions, -> { CloudPDF::Types::FieldActionsPatch }, optional: true, nullable: false
|
|
21
23
|
|
|
22
24
|
field :widgets, -> { Internal::Types::Array[CloudPDF::Types::WidgetPlacement] }, optional: true, nullable: false
|
|
@@ -17,6 +17,8 @@ module CloudPDF
|
|
|
17
17
|
|
|
18
18
|
field :group_id, -> { String }, optional: true, nullable: false, api_name: "groupId"
|
|
19
19
|
|
|
20
|
+
field :purpose, -> { String }, optional: true, nullable: false
|
|
21
|
+
|
|
20
22
|
field :actions, -> { CloudPDF::Types::FieldActionsPatch }, optional: true, nullable: false
|
|
21
23
|
|
|
22
24
|
field :widgets, -> { Internal::Types::Array[CloudPDF::Types::WidgetPlacement] }, optional: true, nullable: false
|
|
@@ -17,6 +17,8 @@ module CloudPDF
|
|
|
17
17
|
|
|
18
18
|
field :group_id, -> { String }, optional: true, nullable: false, api_name: "groupId"
|
|
19
19
|
|
|
20
|
+
field :purpose, -> { String }, optional: true, nullable: false
|
|
21
|
+
|
|
20
22
|
field :actions, -> { CloudPDF::Types::FieldActionsPatch }, optional: true, nullable: false
|
|
21
23
|
|
|
22
24
|
field :widgets, -> { Internal::Types::Array[CloudPDF::Types::WidgetPlacement] }, optional: true, nullable: false
|
|
@@ -30,6 +32,8 @@ module CloudPDF
|
|
|
30
32
|
field :password, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
31
33
|
|
|
32
34
|
field :comb, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
35
|
+
|
|
36
|
+
field :format, -> { CloudPDF::Types::FormFieldFormatWritable }, optional: true, nullable: false
|
|
33
37
|
end
|
|
34
38
|
end
|
|
35
39
|
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
# The shape a text field's or a dropdown's value has, by its `kind`: a date or a time with the pattern it is shown
|
|
6
|
+
# in, or `other` for a format script the engine does not recognise. A newer server can add kinds: read one your
|
|
7
|
+
# client doesn't know as `other`.
|
|
8
|
+
class FormFieldFormat < Internal::Types::Model
|
|
9
|
+
extend CloudPDF::Internal::Types::Union
|
|
10
|
+
|
|
11
|
+
discriminant :kind
|
|
12
|
+
|
|
13
|
+
member -> { CloudPDF::Types::FormFieldFormatDate }, key: "DATE"
|
|
14
|
+
|
|
15
|
+
member -> { CloudPDF::Types::FormFieldFormatTime }, key: "TIME"
|
|
16
|
+
|
|
17
|
+
member -> { CloudPDF::Types::FormFieldFormatOther }, key: "OTHER"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class FormFieldFormatWritable < Internal::Types::Model
|
|
6
|
+
extend CloudPDF::Internal::Types::Union
|
|
7
|
+
|
|
8
|
+
discriminant :kind
|
|
9
|
+
|
|
10
|
+
member -> { CloudPDF::Types::FormFieldFormatWritableDate }, key: "DATE"
|
|
11
|
+
|
|
12
|
+
member -> { CloudPDF::Types::FormFieldFormatWritableTime }, key: "TIME"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -27,6 +27,8 @@ module CloudPDF
|
|
|
27
27
|
|
|
28
28
|
field :group_id, -> { String }, optional: false, nullable: true, api_name: "groupId"
|
|
29
29
|
|
|
30
|
+
field :purpose, -> { String }, optional: false, nullable: true
|
|
31
|
+
|
|
30
32
|
field :created_by, -> { String }, optional: false, nullable: true, api_name: "createdBy"
|
|
31
33
|
|
|
32
34
|
field :created_at, -> { String }, optional: false, nullable: true, api_name: "createdAt"
|
|
@@ -17,6 +17,8 @@ module CloudPDF
|
|
|
17
17
|
|
|
18
18
|
field :group_id, -> { String }, optional: true, nullable: false, api_name: "groupId"
|
|
19
19
|
|
|
20
|
+
field :purpose, -> { String }, optional: true, nullable: false
|
|
21
|
+
|
|
20
22
|
field :actions, -> { CloudPDF::Types::FieldActionsPatch }, optional: true, nullable: false
|
|
21
23
|
|
|
22
24
|
field :kind, -> { CloudPDF::Types::FormFieldPatchKind }, optional: true, nullable: false
|
|
@@ -40,6 +42,8 @@ module CloudPDF
|
|
|
40
42
|
field :multi_select, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "multiSelect"
|
|
41
43
|
|
|
42
44
|
field :options, -> { Internal::Types::Array[CloudPDF::Types::FormFieldPatchOptionsItem] }, optional: true, nullable: false
|
|
45
|
+
|
|
46
|
+
field :format, -> { CloudPDF::Types::FormFieldFormatWritable }, optional: true, nullable: false
|
|
43
47
|
end
|
|
44
48
|
end
|
|
45
49
|
end
|
|
@@ -27,6 +27,8 @@ module CloudPDF
|
|
|
27
27
|
|
|
28
28
|
field :group_id, -> { String }, optional: false, nullable: true, api_name: "groupId"
|
|
29
29
|
|
|
30
|
+
field :purpose, -> { String }, optional: false, nullable: true
|
|
31
|
+
|
|
30
32
|
field :created_by, -> { String }, optional: false, nullable: true, api_name: "createdBy"
|
|
31
33
|
|
|
32
34
|
field :created_at, -> { String }, optional: false, nullable: true, api_name: "createdAt"
|
|
@@ -27,6 +27,8 @@ module CloudPDF
|
|
|
27
27
|
|
|
28
28
|
field :group_id, -> { String }, optional: false, nullable: true, api_name: "groupId"
|
|
29
29
|
|
|
30
|
+
field :purpose, -> { String }, optional: false, nullable: true
|
|
31
|
+
|
|
30
32
|
field :created_by, -> { String }, optional: false, nullable: true, api_name: "createdBy"
|
|
31
33
|
|
|
32
34
|
field :created_at, -> { String }, optional: false, nullable: true, api_name: "createdAt"
|
|
@@ -27,6 +27,8 @@ module CloudPDF
|
|
|
27
27
|
|
|
28
28
|
field :group_id, -> { String }, optional: false, nullable: true, api_name: "groupId"
|
|
29
29
|
|
|
30
|
+
field :purpose, -> { String }, optional: false, nullable: true
|
|
31
|
+
|
|
30
32
|
field :created_by, -> { String }, optional: false, nullable: true, api_name: "createdBy"
|
|
31
33
|
|
|
32
34
|
field :created_at, -> { String }, optional: false, nullable: true, api_name: "createdAt"
|
|
@@ -27,6 +27,8 @@ module CloudPDF
|
|
|
27
27
|
|
|
28
28
|
field :group_id, -> { String }, optional: false, nullable: true, api_name: "groupId"
|
|
29
29
|
|
|
30
|
+
field :purpose, -> { String }, optional: false, nullable: true
|
|
31
|
+
|
|
30
32
|
field :created_by, -> { String }, optional: false, nullable: true, api_name: "createdBy"
|
|
31
33
|
|
|
32
34
|
field :created_at, -> { String }, optional: false, nullable: true, api_name: "createdAt"
|
|
@@ -52,6 +54,8 @@ module CloudPDF
|
|
|
52
54
|
field :password, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
53
55
|
|
|
54
56
|
field :comb, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
57
|
+
|
|
58
|
+
field :format, -> { CloudPDF::Types::FormFieldFormat }, optional: false, nullable: true
|
|
55
59
|
end
|
|
56
60
|
end
|
|
57
61
|
end
|
|
@@ -27,6 +27,8 @@ module CloudPDF
|
|
|
27
27
|
|
|
28
28
|
field :group_id, -> { String }, optional: false, nullable: true, api_name: "groupId"
|
|
29
29
|
|
|
30
|
+
field :purpose, -> { String }, optional: false, nullable: true
|
|
31
|
+
|
|
30
32
|
field :created_by, -> { String }, optional: false, nullable: true, api_name: "createdBy"
|
|
31
33
|
|
|
32
34
|
field :created_at, -> { String }, optional: false, nullable: true, api_name: "createdAt"
|
data/lib/CloudPDF/version.rb
CHANGED
data/lib/cloudpdf.rb
CHANGED
|
@@ -638,6 +638,9 @@ require_relative "CloudPDF/types/annotation_position"
|
|
|
638
638
|
require_relative "CloudPDF/types/form_field_ref_object_number"
|
|
639
639
|
require_relative "CloudPDF/types/form_field_ref_fqn"
|
|
640
640
|
require_relative "CloudPDF/types/form_field_ref"
|
|
641
|
+
require_relative "CloudPDF/types/form_field_format_writable_date"
|
|
642
|
+
require_relative "CloudPDF/types/form_field_format_writable_time"
|
|
643
|
+
require_relative "CloudPDF/types/form_field_format_writable"
|
|
641
644
|
require_relative "CloudPDF/types/form_field_value"
|
|
642
645
|
require_relative "CloudPDF/types/widget_placement_rect"
|
|
643
646
|
require_relative "CloudPDF/types/widget_placement_box"
|
|
@@ -1034,6 +1037,10 @@ require_relative "CloudPDF/types/annotation"
|
|
|
1034
1037
|
require_relative "CloudPDF/types/annotation_list"
|
|
1035
1038
|
require_relative "CloudPDF/types/annotation_mutation_meta"
|
|
1036
1039
|
require_relative "CloudPDF/types/form_field_text_origin"
|
|
1040
|
+
require_relative "CloudPDF/types/form_field_format_date"
|
|
1041
|
+
require_relative "CloudPDF/types/form_field_format_time"
|
|
1042
|
+
require_relative "CloudPDF/types/form_field_format_other"
|
|
1043
|
+
require_relative "CloudPDF/types/form_field_format"
|
|
1037
1044
|
require_relative "CloudPDF/types/form_value_entry_none"
|
|
1038
1045
|
require_relative "CloudPDF/types/form_value_entry_scalar"
|
|
1039
1046
|
require_relative "CloudPDF/types/form_value_entry_array"
|
|
@@ -1402,6 +1409,9 @@ require_relative "CloudPDF/types/doc_signatures_analysis_response_current"
|
|
|
1402
1409
|
require_relative "CloudPDF/types/doc_signatures_analysis_response_later"
|
|
1403
1410
|
require_relative "CloudPDF/types/doc_signatures_analysis_response_verdict"
|
|
1404
1411
|
require_relative "CloudPDF/types/doc_signatures_analysis_response"
|
|
1412
|
+
require_relative "CloudPDF/types/doc_signatures_validation_info_response"
|
|
1413
|
+
require_relative "CloudPDF/types/doc_signatures_add_validation_info_response_added"
|
|
1414
|
+
require_relative "CloudPDF/types/doc_signatures_add_validation_info_response"
|
|
1405
1415
|
require_relative "CloudPDF/types/doc_signatures_prepare_response_algorithm"
|
|
1406
1416
|
require_relative "CloudPDF/types/doc_signatures_prepare_response_expected_version"
|
|
1407
1417
|
require_relative "CloudPDF/types/doc_signatures_prepare_response"
|
|
@@ -1597,6 +1607,8 @@ require_relative "CloudPDF/doc/signatures/types/cancel_signatures_request"
|
|
|
1597
1607
|
require_relative "CloudPDF/doc/signatures/types/doc_signatures_complete_request"
|
|
1598
1608
|
require_relative "CloudPDF/doc/signatures/types/analysis_signatures_request"
|
|
1599
1609
|
require_relative "CloudPDF/doc/signatures/types/prepare_signatures_request"
|
|
1610
|
+
require_relative "CloudPDF/doc/signatures/types/validation_info_signatures_request"
|
|
1611
|
+
require_relative "CloudPDF/doc/signatures/types/doc_signatures_add_validation_info_request"
|
|
1600
1612
|
require_relative "CloudPDF/doc/versions/client"
|
|
1601
1613
|
require_relative "CloudPDF/doc/versions/types/list_versions_request"
|
|
1602
1614
|
require_relative "CloudPDF/doc/versions/types/analysis_versions_request"
|
data/reference.md
CHANGED
|
@@ -6342,7 +6342,7 @@ client.doc.signatures.analysis(
|
|
|
6342
6342
|
<dl>
|
|
6343
6343
|
<dd>
|
|
6344
6344
|
|
|
6345
|
-
Multipart: a JSON `body` part (field, subFilter, digest, contentsSize, signer, certify, lock), naming the appearance PDF it may carry as `resources: { appearance: '<key>' }`, and that PDF as the part `resource:<key>`. A certification (`certify.permission`) additionally requires `doc.sign.certify`. The layer is read-only until the signing completes, is cancelled, or expires (15 minutes). The signature is made over the layer's own base: the upload, or the version its last signature made.
|
|
6345
|
+
Multipart: a JSON `body` part (field, subFilter, digest, contentsSize, signer, certify, lock), naming the appearance PDF it may carry as `resources: { appearance: '<key>' }`, and that PDF as the part `resource:<key>`. A certification (`certify.permission`) additionally requires `doc.sign.certify`. The layer is read-only until the signing completes, is cancelled, or expires (15 minutes). A document timestamp (`kind: 'timestamp'`) may leave `field` out, since 3.3: the engine then makes a field of no size for it, under a name no other field has, and the answer names it in `field`. That needs `doc.sign` for the document. The signature is made over the layer's own base: the upload, or the version its last signature made.
|
|
6346
6346
|
</dd>
|
|
6347
6347
|
</dl>
|
|
6348
6348
|
</dd>
|
|
@@ -6407,6 +6407,200 @@ client.doc.signatures.prepare(
|
|
|
6407
6407
|
</dl>
|
|
6408
6408
|
|
|
6409
6409
|
|
|
6410
|
+
</dd>
|
|
6411
|
+
</dl>
|
|
6412
|
+
</details>
|
|
6413
|
+
|
|
6414
|
+
<details><summary><code>client.doc.signatures.<a href="/lib/CloudPDF/doc/signatures/client.rb">validation_info</a>(doc_id:, layer_name:) -> CloudPDF::Types::DocSignaturesValidationInfoResponse</code></summary>
|
|
6415
|
+
<dl>
|
|
6416
|
+
<dd>
|
|
6417
|
+
|
|
6418
|
+
#### 📝 Description
|
|
6419
|
+
|
|
6420
|
+
<dl>
|
|
6421
|
+
<dd>
|
|
6422
|
+
|
|
6423
|
+
<dl>
|
|
6424
|
+
<dd>
|
|
6425
|
+
|
|
6426
|
+
Each entry is one DER object, base64. It reads the layer as it is now, so entries stored and not yet sealed by a signature are among them. Arrived in 3.3.
|
|
6427
|
+
</dd>
|
|
6428
|
+
</dl>
|
|
6429
|
+
</dd>
|
|
6430
|
+
</dl>
|
|
6431
|
+
|
|
6432
|
+
#### 🔌 Usage
|
|
6433
|
+
|
|
6434
|
+
<dl>
|
|
6435
|
+
<dd>
|
|
6436
|
+
|
|
6437
|
+
<dl>
|
|
6438
|
+
<dd>
|
|
6439
|
+
|
|
6440
|
+
```ruby
|
|
6441
|
+
client.doc.signatures.validation_info(
|
|
6442
|
+
doc_id: "docId",
|
|
6443
|
+
layer_name: "layerName"
|
|
6444
|
+
)
|
|
6445
|
+
```
|
|
6446
|
+
</dd>
|
|
6447
|
+
</dl>
|
|
6448
|
+
</dd>
|
|
6449
|
+
</dl>
|
|
6450
|
+
|
|
6451
|
+
#### ⚙️ Parameters
|
|
6452
|
+
|
|
6453
|
+
<dl>
|
|
6454
|
+
<dd>
|
|
6455
|
+
|
|
6456
|
+
<dl>
|
|
6457
|
+
<dd>
|
|
6458
|
+
|
|
6459
|
+
**doc_id:** `String`
|
|
6460
|
+
|
|
6461
|
+
</dd>
|
|
6462
|
+
</dl>
|
|
6463
|
+
|
|
6464
|
+
<dl>
|
|
6465
|
+
<dd>
|
|
6466
|
+
|
|
6467
|
+
**layer_name:** `String`
|
|
6468
|
+
|
|
6469
|
+
</dd>
|
|
6470
|
+
</dl>
|
|
6471
|
+
|
|
6472
|
+
<dl>
|
|
6473
|
+
<dd>
|
|
6474
|
+
|
|
6475
|
+
**document_password:** `String` — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.
|
|
6476
|
+
|
|
6477
|
+
</dd>
|
|
6478
|
+
</dl>
|
|
6479
|
+
|
|
6480
|
+
<dl>
|
|
6481
|
+
<dd>
|
|
6482
|
+
|
|
6483
|
+
**request_options:** `CloudPDF::Doc::Signatures::RequestOptions`
|
|
6484
|
+
|
|
6485
|
+
</dd>
|
|
6486
|
+
</dl>
|
|
6487
|
+
</dd>
|
|
6488
|
+
</dl>
|
|
6489
|
+
|
|
6490
|
+
|
|
6491
|
+
</dd>
|
|
6492
|
+
</dl>
|
|
6493
|
+
</details>
|
|
6494
|
+
|
|
6495
|
+
<details><summary><code>client.doc.signatures.<a href="/lib/CloudPDF/doc/signatures/client.rb">add_validation_info</a>(doc_id:, layer_name:, request) -> CloudPDF::Types::DocSignaturesAddValidationInfoResponse</code></summary>
|
|
6496
|
+
<dl>
|
|
6497
|
+
<dd>
|
|
6498
|
+
|
|
6499
|
+
#### 📝 Description
|
|
6500
|
+
|
|
6501
|
+
<dl>
|
|
6502
|
+
<dd>
|
|
6503
|
+
|
|
6504
|
+
<dl>
|
|
6505
|
+
<dd>
|
|
6506
|
+
|
|
6507
|
+
Each entry is one DER object of at most 16 MiB, base64. An entry the file already holds, byte for byte, is not stored again: `added` counts the new ones. An entry that is not one DER object fails the request and nothing is stored; the error names it, as in `certificates[1]`. The server stores what it is given and asks no certificate authority: collect the answers first. It needs `doc.sign` for the document, not for a group of fields, and is refused after a certification that allows no changes. It cannot be undone, and it leaves undo for earlier changes as it was. Arrived in 3.3.
|
|
6508
|
+
</dd>
|
|
6509
|
+
</dl>
|
|
6510
|
+
</dd>
|
|
6511
|
+
</dl>
|
|
6512
|
+
|
|
6513
|
+
#### 🔌 Usage
|
|
6514
|
+
|
|
6515
|
+
<dl>
|
|
6516
|
+
<dd>
|
|
6517
|
+
|
|
6518
|
+
<dl>
|
|
6519
|
+
<dd>
|
|
6520
|
+
|
|
6521
|
+
```ruby
|
|
6522
|
+
client.doc.signatures.add_validation_info(
|
|
6523
|
+
doc_id: "docId",
|
|
6524
|
+
layer_name: "layerName"
|
|
6525
|
+
)
|
|
6526
|
+
```
|
|
6527
|
+
</dd>
|
|
6528
|
+
</dl>
|
|
6529
|
+
</dd>
|
|
6530
|
+
</dl>
|
|
6531
|
+
|
|
6532
|
+
#### ⚙️ Parameters
|
|
6533
|
+
|
|
6534
|
+
<dl>
|
|
6535
|
+
<dd>
|
|
6536
|
+
|
|
6537
|
+
<dl>
|
|
6538
|
+
<dd>
|
|
6539
|
+
|
|
6540
|
+
**doc_id:** `String`
|
|
6541
|
+
|
|
6542
|
+
</dd>
|
|
6543
|
+
</dl>
|
|
6544
|
+
|
|
6545
|
+
<dl>
|
|
6546
|
+
<dd>
|
|
6547
|
+
|
|
6548
|
+
**layer_name:** `String`
|
|
6549
|
+
|
|
6550
|
+
</dd>
|
|
6551
|
+
</dl>
|
|
6552
|
+
|
|
6553
|
+
<dl>
|
|
6554
|
+
<dd>
|
|
6555
|
+
|
|
6556
|
+
**document_password:** `String` — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.
|
|
6557
|
+
|
|
6558
|
+
</dd>
|
|
6559
|
+
</dl>
|
|
6560
|
+
|
|
6561
|
+
<dl>
|
|
6562
|
+
<dd>
|
|
6563
|
+
|
|
6564
|
+
**idempotency_key:** `String` — Names the change: 1 to 255 printable ASCII characters. A retry under the same key on the same layer answers with what the first request committed, and changes nothing.
|
|
6565
|
+
|
|
6566
|
+
</dd>
|
|
6567
|
+
</dl>
|
|
6568
|
+
|
|
6569
|
+
<dl>
|
|
6570
|
+
<dd>
|
|
6571
|
+
|
|
6572
|
+
**certificates:** `Internal::Types::Array[String]`
|
|
6573
|
+
|
|
6574
|
+
</dd>
|
|
6575
|
+
</dl>
|
|
6576
|
+
|
|
6577
|
+
<dl>
|
|
6578
|
+
<dd>
|
|
6579
|
+
|
|
6580
|
+
**ocsp_responses:** `Internal::Types::Array[String]`
|
|
6581
|
+
|
|
6582
|
+
</dd>
|
|
6583
|
+
</dl>
|
|
6584
|
+
|
|
6585
|
+
<dl>
|
|
6586
|
+
<dd>
|
|
6587
|
+
|
|
6588
|
+
**crls:** `Internal::Types::Array[String]`
|
|
6589
|
+
|
|
6590
|
+
</dd>
|
|
6591
|
+
</dl>
|
|
6592
|
+
|
|
6593
|
+
<dl>
|
|
6594
|
+
<dd>
|
|
6595
|
+
|
|
6596
|
+
**request_options:** `CloudPDF::Doc::Signatures::RequestOptions`
|
|
6597
|
+
|
|
6598
|
+
</dd>
|
|
6599
|
+
</dl>
|
|
6600
|
+
</dd>
|
|
6601
|
+
</dl>
|
|
6602
|
+
|
|
6603
|
+
|
|
6410
6604
|
</dd>
|
|
6411
6605
|
</dl>
|
|
6412
6606
|
</details>
|
|
@@ -6505,7 +6699,7 @@ client.doc.versions.list(
|
|
|
6505
6699
|
<dl>
|
|
6506
6700
|
<dd>
|
|
6507
6701
|
|
|
6508
|
-
Exactly one of `since.signature` / `since.revision`; `until=<revision>` defaults to the last. The same answer for every caller.
|
|
6702
|
+
Exactly one of `since.signature` / `since.revision`; `until=<revision>` defaults to the last. The same answer for every caller. A version never changes, but the rules that judge it can: with `engine`, the `analysis` value of the layer's head, a settled answer is `immutable`. Without it, or with another value, the answer is this server's own, with `no-store` and the current value in `EmbedPDF-Engine`.
|
|
6509
6703
|
</dd>
|
|
6510
6704
|
</dl>
|
|
6511
6705
|
</dd>
|
|
@@ -6595,7 +6789,7 @@ client.doc.versions.analysis(
|
|
|
6595
6789
|
<dl>
|
|
6596
6790
|
<dd>
|
|
6597
6791
|
|
|
6598
|
-
**
|
|
6792
|
+
**engine:** `String` — The `analysis` engine value from the layer's head (`engine.analysis`): the rules the answer is judged with. With it, a settled answer is cached.
|
|
6599
6793
|
|
|
6600
6794
|
</dd>
|
|
6601
6795
|
</dl>
|
|
@@ -6788,6 +6982,20 @@ client.doc.versions.revision(
|
|
|
6788
6982
|
<dl>
|
|
6789
6983
|
<dd>
|
|
6790
6984
|
|
|
6985
|
+
#### 📝 Description
|
|
6986
|
+
|
|
6987
|
+
<dl>
|
|
6988
|
+
<dd>
|
|
6989
|
+
|
|
6990
|
+
<dl>
|
|
6991
|
+
<dd>
|
|
6992
|
+
|
|
6993
|
+
A version never changes, but what the server reads from it can: with `engine`, the `signatures` value of the layer's head, the answer is `immutable`. Without it, or with another value, the answer is this server's own, with `no-store` and the current value in `EmbedPDF-Engine`.
|
|
6994
|
+
</dd>
|
|
6995
|
+
</dl>
|
|
6996
|
+
</dd>
|
|
6997
|
+
</dl>
|
|
6998
|
+
|
|
6791
6999
|
#### 🔌 Usage
|
|
6792
7000
|
|
|
6793
7001
|
<dl>
|
|
@@ -6840,6 +7048,14 @@ client.doc.versions.signatures(
|
|
|
6840
7048
|
<dl>
|
|
6841
7049
|
<dd>
|
|
6842
7050
|
|
|
7051
|
+
**engine:** `String` — The `signatures` engine value from the layer's head (`engine.signatures`): what the answer is computed with besides the file. With it, the answer is cached.
|
|
7052
|
+
|
|
7053
|
+
</dd>
|
|
7054
|
+
</dl>
|
|
7055
|
+
|
|
7056
|
+
<dl>
|
|
7057
|
+
<dd>
|
|
7058
|
+
|
|
6843
7059
|
**document_password:** `String` — Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead.
|
|
6844
7060
|
|
|
6845
7061
|
</dd>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cloudpdf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- CloudPDF
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: A typed Ruby client for deployment, tenant, and document operations in
|
|
14
14
|
the CloudPDF API.
|
|
@@ -96,10 +96,12 @@ files:
|
|
|
96
96
|
- lib/CloudPDF/doc/signatures/types/analysis_signatures_request.rb
|
|
97
97
|
- lib/CloudPDF/doc/signatures/types/analysis_signatures_request_level.rb
|
|
98
98
|
- lib/CloudPDF/doc/signatures/types/cancel_signatures_request.rb
|
|
99
|
+
- lib/CloudPDF/doc/signatures/types/doc_signatures_add_validation_info_request.rb
|
|
99
100
|
- lib/CloudPDF/doc/signatures/types/doc_signatures_complete_request.rb
|
|
100
101
|
- lib/CloudPDF/doc/signatures/types/doc_signatures_complete_request_expected_version.rb
|
|
101
102
|
- lib/CloudPDF/doc/signatures/types/list_signatures_request.rb
|
|
102
103
|
- lib/CloudPDF/doc/signatures/types/prepare_signatures_request.rb
|
|
104
|
+
- lib/CloudPDF/doc/signatures/types/validation_info_signatures_request.rb
|
|
103
105
|
- lib/CloudPDF/doc/types/doc_changes_request.rb
|
|
104
106
|
- lib/CloudPDF/doc/types/doc_changes_request_changes_item.rb
|
|
105
107
|
- lib/CloudPDF/doc/types/doc_download_link_request.rb
|
|
@@ -1130,6 +1132,8 @@ files:
|
|
|
1130
1132
|
- lib/CloudPDF/types/doc_redactions_apply_response_results_item.rb
|
|
1131
1133
|
- lib/CloudPDF/types/doc_redactions_apply_response_results_item_status.rb
|
|
1132
1134
|
- lib/CloudPDF/types/doc_redactions_apply_response_scope.rb
|
|
1135
|
+
- lib/CloudPDF/types/doc_signatures_add_validation_info_response.rb
|
|
1136
|
+
- lib/CloudPDF/types/doc_signatures_add_validation_info_response_added.rb
|
|
1133
1137
|
- lib/CloudPDF/types/doc_signatures_analysis_response.rb
|
|
1134
1138
|
- lib/CloudPDF/types/doc_signatures_analysis_response_basis.rb
|
|
1135
1139
|
- lib/CloudPDF/types/doc_signatures_analysis_response_basis_source.rb
|
|
@@ -1181,6 +1185,7 @@ files:
|
|
|
1181
1185
|
- lib/CloudPDF/types/doc_signatures_prepare_response.rb
|
|
1182
1186
|
- lib/CloudPDF/types/doc_signatures_prepare_response_algorithm.rb
|
|
1183
1187
|
- lib/CloudPDF/types/doc_signatures_prepare_response_expected_version.rb
|
|
1188
|
+
- lib/CloudPDF/types/doc_signatures_validation_info_response.rb
|
|
1184
1189
|
- lib/CloudPDF/types/doc_text_response.rb
|
|
1185
1190
|
- lib/CloudPDF/types/doc_versions_analysis_response.rb
|
|
1186
1191
|
- lib/CloudPDF/types/doc_versions_analysis_response_basis.rb
|
|
@@ -1326,6 +1331,13 @@ files:
|
|
|
1326
1331
|
- lib/CloudPDF/types/form_field_draft_radio.rb
|
|
1327
1332
|
- lib/CloudPDF/types/form_field_draft_signature.rb
|
|
1328
1333
|
- lib/CloudPDF/types/form_field_draft_text.rb
|
|
1334
|
+
- lib/CloudPDF/types/form_field_format.rb
|
|
1335
|
+
- lib/CloudPDF/types/form_field_format_date.rb
|
|
1336
|
+
- lib/CloudPDF/types/form_field_format_other.rb
|
|
1337
|
+
- lib/CloudPDF/types/form_field_format_time.rb
|
|
1338
|
+
- lib/CloudPDF/types/form_field_format_writable.rb
|
|
1339
|
+
- lib/CloudPDF/types/form_field_format_writable_date.rb
|
|
1340
|
+
- lib/CloudPDF/types/form_field_format_writable_time.rb
|
|
1329
1341
|
- lib/CloudPDF/types/form_field_listbox.rb
|
|
1330
1342
|
- lib/CloudPDF/types/form_field_listbox_options_item.rb
|
|
1331
1343
|
- lib/CloudPDF/types/form_field_listbox_origin.rb
|