cloudpdf 3.1.0 → 3.3.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_item.rb +4 -0
- data/lib/CloudPDF/types/change_item_annotations_copy.rb +15 -0
- data/lib/CloudPDF/types/change_item_annotations_copy_dropped_item.rb +13 -0
- data/lib/CloudPDF/types/change_item_annotations_copy_dropped_item_reason.rb +20 -0
- data/lib/CloudPDF/types/change_item_annotations_copy_ref_map_item.rb +11 -0
- data/lib/CloudPDF/types/change_item_forms_copy.rb +19 -0
- data/lib/CloudPDF/types/change_item_forms_copy_dropped_item.rb +15 -0
- data/lib/CloudPDF/types/change_item_forms_copy_dropped_item_reason.rb +15 -0
- data/lib/CloudPDF/types/change_item_forms_copy_ref_map_item.rb +11 -0
- data/lib/CloudPDF/types/change_item_skipped_op.rb +2 -0
- data/lib/CloudPDF/types/change_op.rb +4 -0
- data/lib/CloudPDF/types/change_op_annotations_copy.rb +15 -0
- data/lib/CloudPDF/types/change_op_annotations_copy_offset.rb +11 -0
- data/lib/CloudPDF/types/change_op_forms_copy.rb +19 -0
- data/lib/CloudPDF/types/change_op_forms_copy_offset.rb +11 -0
- 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/version.rb +1 -1
- data/lib/cloudpdf.rb +17 -0
- data/reference.md +219 -3
- metadata +19 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ab8453accf8f678434e029bb0d20116436f721012e0c2bcd01187b5d87026971
|
|
4
|
+
data.tar.gz: c6bca45a02ef2432aca92608f8be097c9a96934b3c24a502ce1b8291beb9ce5b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1e396f8514cc63acbbfd6a68f0994db950e5e97db484407ffa8c8f9dd1eba310346513924819c3bc30b27f44a12574827bdd19bab526801e78b79cfc6147eeb8
|
|
7
|
+
data.tar.gz: 25ac8fe7625985d1ae02171a955c88fa2f2387d6953def4c8128557ef76c2710f37f4ac86f60015620ee9377e8a1c20eaeb2acb88255b2fb2973a7e138719c7c
|
data/.fern/metadata.json
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
"generatorConfig": {
|
|
6
6
|
"moduleName": "CloudPDF"
|
|
7
7
|
},
|
|
8
|
-
"originGitCommit": "
|
|
8
|
+
"originGitCommit": "4b156274cbffac1a19f266d36d27b4ed07bf2b53",
|
|
9
9
|
"originGitCommitIsDirty": false,
|
|
10
10
|
"invokedBy": "ci",
|
|
11
|
-
"requestedVersion": "3.
|
|
11
|
+
"requestedVersion": "3.3.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
|
|
@@ -17,6 +17,8 @@ module CloudPDF
|
|
|
17
17
|
|
|
18
18
|
member -> { CloudPDF::Types::ChangeItemAnnotationsReorder }, key: "ANNOTATIONS_REORDER"
|
|
19
19
|
|
|
20
|
+
member -> { CloudPDF::Types::ChangeItemAnnotationsCopy }, key: "ANNOTATIONS_COPY"
|
|
21
|
+
|
|
20
22
|
member -> { CloudPDF::Types::ChangeItemAnnotationsRestore }, key: "ANNOTATIONS_RESTORE"
|
|
21
23
|
|
|
22
24
|
member -> { CloudPDF::Types::ChangeItemFormsSetValue }, key: "FORMS_SET_VALUE"
|
|
@@ -29,6 +31,8 @@ module CloudPDF
|
|
|
29
31
|
|
|
30
32
|
member -> { CloudPDF::Types::ChangeItemFormsCreate }, key: "FORMS_CREATE"
|
|
31
33
|
|
|
34
|
+
member -> { CloudPDF::Types::ChangeItemFormsCopy }, key: "FORMS_COPY"
|
|
35
|
+
|
|
32
36
|
member -> { CloudPDF::Types::ChangeItemFormsUpdate }, key: "FORMS_UPDATE"
|
|
33
37
|
|
|
34
38
|
member -> { CloudPDF::Types::ChangeItemFormsDelete }, key: "FORMS_DELETE"
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class ChangeItemAnnotationsCopy < Internal::Types::Model
|
|
6
|
+
field :annotations, -> { Internal::Types::Array[CloudPDF::Types::Annotation] }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :ref_map, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemAnnotationsCopyRefMapItem] }, optional: false, nullable: false, api_name: "refMap"
|
|
9
|
+
|
|
10
|
+
field :dropped, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemAnnotationsCopyDroppedItem] }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :meta, -> { CloudPDF::Types::AnnotationMutationMeta }, optional: false, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class ChangeItemAnnotationsCopyDroppedItem < Internal::Types::Model
|
|
6
|
+
field :ref, -> { CloudPDF::Types::AnnotationRef }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :field, -> { String }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :reason, -> { CloudPDF::Types::ChangeItemAnnotationsCopyDroppedItemReason }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
module ChangeItemAnnotationsCopyDroppedItemReason
|
|
6
|
+
extend CloudPDF::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
UNSUPPORTED_KIND = "unsupported-kind"
|
|
9
|
+
WIDGET = "widget"
|
|
10
|
+
GEOSPATIAL = "geospatial"
|
|
11
|
+
UNKNOWN_MEASURE = "unknown-measure"
|
|
12
|
+
UNSUPPORTED_ACTION = "unsupported-action"
|
|
13
|
+
UNSUPPORTED_VALUE = "unsupported-value"
|
|
14
|
+
NAME_CONFLICT = "name-conflict"
|
|
15
|
+
PARENT_DROPPED = "parent-dropped"
|
|
16
|
+
PARENT_MISSING = "parent-missing"
|
|
17
|
+
POPUP_TAKEN = "popup-taken"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class ChangeItemAnnotationsCopyRefMapItem < Internal::Types::Model
|
|
6
|
+
field :from, -> { CloudPDF::Types::AnnotationRef }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :to, -> { CloudPDF::Types::AnnotationRef }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class ChangeItemFormsCopy < Internal::Types::Model
|
|
6
|
+
field :fields, -> { Internal::Types::Array[CloudPDF::Types::FormField] }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :widgets, -> { Internal::Types::Array[CloudPDF::Types::WidgetAnnotation] }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :ref_map, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemFormsCopyRefMapItem] }, optional: false, nullable: false, api_name: "refMap"
|
|
11
|
+
|
|
12
|
+
field :dropped, -> { Internal::Types::Array[CloudPDF::Types::ChangeItemFormsCopyDroppedItem] }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :calculation_order, -> { Internal::Types::Array[CloudPDF::Types::FormFieldRef] }, optional: true, nullable: false, api_name: "calculationOrder"
|
|
15
|
+
|
|
16
|
+
field :meta, -> { CloudPDF::Types::FormMutationMeta }, optional: false, nullable: false
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class ChangeItemFormsCopyDroppedItem < Internal::Types::Model
|
|
6
|
+
field :ref, -> { CloudPDF::Types::FormFieldRef }, optional: false, nullable: true
|
|
7
|
+
|
|
8
|
+
field :widget, -> { CloudPDF::Types::AnnotationRef }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :field, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :reason, -> { CloudPDF::Types::ChangeItemFormsCopyDroppedItemReason }, optional: false, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
module ChangeItemFormsCopyDroppedItemReason
|
|
6
|
+
extend CloudPDF::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
NAME_CONFLICT = "name-conflict"
|
|
9
|
+
NO_FIELD = "no-field"
|
|
10
|
+
UNSUPPORTED_KIND = "unsupported-kind"
|
|
11
|
+
SCRIPT_NOT_ALLOWED = "script-not-allowed"
|
|
12
|
+
UNSUPPORTED_ACTION = "unsupported-action"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class ChangeItemFormsCopyRefMapItem < Internal::Types::Model
|
|
6
|
+
field :from, -> { CloudPDF::Types::FormFieldRef }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :to, -> { CloudPDF::Types::FormFieldRef }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -9,11 +9,13 @@ module CloudPDF
|
|
|
9
9
|
ANNOTATIONS_UPDATE = "annotations.update"
|
|
10
10
|
ANNOTATIONS_DELETE = "annotations.delete"
|
|
11
11
|
ANNOTATIONS_REORDER = "annotations.reorder"
|
|
12
|
+
ANNOTATIONS_COPY = "annotations.copy"
|
|
12
13
|
FORMS_SET_VALUE = "forms.setValue"
|
|
13
14
|
FORMS_SET_DISPLAY = "forms.setDisplay"
|
|
14
15
|
FORMS_SET_APPEARANCE_TEXT = "forms.setAppearanceText"
|
|
15
16
|
FORMS_RESET = "forms.reset"
|
|
16
17
|
FORMS_CREATE = "forms.create"
|
|
18
|
+
FORMS_COPY = "forms.copy"
|
|
17
19
|
FORMS_UPDATE = "forms.update"
|
|
18
20
|
FORMS_DELETE = "forms.delete"
|
|
19
21
|
FORMS_ADD_WIDGET = "forms.addWidget"
|
|
@@ -15,6 +15,8 @@ module CloudPDF
|
|
|
15
15
|
|
|
16
16
|
member -> { CloudPDF::Types::ChangeOpAnnotationsReorder }, key: "ANNOTATIONS_REORDER"
|
|
17
17
|
|
|
18
|
+
member -> { CloudPDF::Types::ChangeOpAnnotationsCopy }, key: "ANNOTATIONS_COPY"
|
|
19
|
+
|
|
18
20
|
member -> { CloudPDF::Types::ChangeOpFormsSetValue }, key: "FORMS_SET_VALUE"
|
|
19
21
|
|
|
20
22
|
member -> { CloudPDF::Types::ChangeOpFormsSetDisplay }, key: "FORMS_SET_DISPLAY"
|
|
@@ -25,6 +27,8 @@ module CloudPDF
|
|
|
25
27
|
|
|
26
28
|
member -> { CloudPDF::Types::ChangeOpFormsCreate }, key: "FORMS_CREATE"
|
|
27
29
|
|
|
30
|
+
member -> { CloudPDF::Types::ChangeOpFormsCopy }, key: "FORMS_COPY"
|
|
31
|
+
|
|
28
32
|
member -> { CloudPDF::Types::ChangeOpFormsUpdate }, key: "FORMS_UPDATE"
|
|
29
33
|
|
|
30
34
|
member -> { CloudPDF::Types::ChangeOpFormsDelete }, key: "FORMS_DELETE"
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class ChangeOpAnnotationsCopy < Internal::Types::Model
|
|
6
|
+
field :refs, -> { Internal::Types::Array[CloudPDF::Types::AnnotationRef] }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :page, -> { CloudPDF::Types::PageRef }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :offset, -> { CloudPDF::Types::ChangeOpAnnotationsCopyOffset }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :object_numbers, -> { Internal::Types::Array[Integer] }, optional: true, nullable: false, api_name: "objectNumbers"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class ChangeOpAnnotationsCopyOffset < Internal::Types::Model
|
|
6
|
+
field :x, -> { Integer }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :y, -> { Integer }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class ChangeOpFormsCopy < Internal::Types::Model
|
|
6
|
+
field :fields, -> { Internal::Types::Array[CloudPDF::Types::FormFieldRef] }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :widgets, -> { Internal::Types::Array[CloudPDF::Types::AnnotationRef] }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :page, -> { CloudPDF::Types::PageRef }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :offset, -> { CloudPDF::Types::ChangeOpFormsCopyOffset }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :values, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :object_numbers, -> { Internal::Types::Array[Integer] }, optional: true, nullable: false, api_name: "objectNumbers"
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module CloudPDF
|
|
4
|
+
module Types
|
|
5
|
+
class ChangeOpFormsCopyOffset < Internal::Types::Model
|
|
6
|
+
field :x, -> { Integer }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :y, -> { Integer }, optional: false, nullable: false
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
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
|
data/lib/CloudPDF/version.rb
CHANGED
data/lib/cloudpdf.rb
CHANGED
|
@@ -678,12 +678,16 @@ require_relative "CloudPDF/types/change_op_annotations_update_resources"
|
|
|
678
678
|
require_relative "CloudPDF/types/change_op_annotations_update"
|
|
679
679
|
require_relative "CloudPDF/types/change_op_annotations_delete"
|
|
680
680
|
require_relative "CloudPDF/types/change_op_annotations_reorder"
|
|
681
|
+
require_relative "CloudPDF/types/change_op_annotations_copy_offset"
|
|
682
|
+
require_relative "CloudPDF/types/change_op_annotations_copy"
|
|
681
683
|
require_relative "CloudPDF/types/change_op_forms_set_value"
|
|
682
684
|
require_relative "CloudPDF/types/change_op_forms_set_display_display"
|
|
683
685
|
require_relative "CloudPDF/types/change_op_forms_set_display"
|
|
684
686
|
require_relative "CloudPDF/types/change_op_forms_set_appearance_text"
|
|
685
687
|
require_relative "CloudPDF/types/change_op_forms_reset"
|
|
686
688
|
require_relative "CloudPDF/types/change_op_forms_create"
|
|
689
|
+
require_relative "CloudPDF/types/change_op_forms_copy_offset"
|
|
690
|
+
require_relative "CloudPDF/types/change_op_forms_copy"
|
|
687
691
|
require_relative "CloudPDF/types/change_op_forms_update"
|
|
688
692
|
require_relative "CloudPDF/types/change_op_forms_delete"
|
|
689
693
|
require_relative "CloudPDF/types/change_op_forms_add_widget"
|
|
@@ -1092,12 +1096,20 @@ require_relative "CloudPDF/types/change_item_annotations_update_appearance"
|
|
|
1092
1096
|
require_relative "CloudPDF/types/change_item_annotations_update"
|
|
1093
1097
|
require_relative "CloudPDF/types/change_item_annotations_delete"
|
|
1094
1098
|
require_relative "CloudPDF/types/change_item_annotations_reorder"
|
|
1099
|
+
require_relative "CloudPDF/types/change_item_annotations_copy_ref_map_item"
|
|
1100
|
+
require_relative "CloudPDF/types/change_item_annotations_copy_dropped_item_reason"
|
|
1101
|
+
require_relative "CloudPDF/types/change_item_annotations_copy_dropped_item"
|
|
1102
|
+
require_relative "CloudPDF/types/change_item_annotations_copy"
|
|
1095
1103
|
require_relative "CloudPDF/types/change_item_annotations_restore"
|
|
1096
1104
|
require_relative "CloudPDF/types/change_item_forms_set_value"
|
|
1097
1105
|
require_relative "CloudPDF/types/change_item_forms_set_display"
|
|
1098
1106
|
require_relative "CloudPDF/types/change_item_forms_set_appearance_text"
|
|
1099
1107
|
require_relative "CloudPDF/types/change_item_forms_reset"
|
|
1100
1108
|
require_relative "CloudPDF/types/change_item_forms_create"
|
|
1109
|
+
require_relative "CloudPDF/types/change_item_forms_copy_ref_map_item"
|
|
1110
|
+
require_relative "CloudPDF/types/change_item_forms_copy_dropped_item_reason"
|
|
1111
|
+
require_relative "CloudPDF/types/change_item_forms_copy_dropped_item"
|
|
1112
|
+
require_relative "CloudPDF/types/change_item_forms_copy"
|
|
1101
1113
|
require_relative "CloudPDF/types/change_item_forms_update"
|
|
1102
1114
|
require_relative "CloudPDF/types/change_item_forms_delete"
|
|
1103
1115
|
require_relative "CloudPDF/types/change_item_forms_restore"
|
|
@@ -1390,6 +1402,9 @@ require_relative "CloudPDF/types/doc_signatures_analysis_response_current"
|
|
|
1390
1402
|
require_relative "CloudPDF/types/doc_signatures_analysis_response_later"
|
|
1391
1403
|
require_relative "CloudPDF/types/doc_signatures_analysis_response_verdict"
|
|
1392
1404
|
require_relative "CloudPDF/types/doc_signatures_analysis_response"
|
|
1405
|
+
require_relative "CloudPDF/types/doc_signatures_validation_info_response"
|
|
1406
|
+
require_relative "CloudPDF/types/doc_signatures_add_validation_info_response_added"
|
|
1407
|
+
require_relative "CloudPDF/types/doc_signatures_add_validation_info_response"
|
|
1393
1408
|
require_relative "CloudPDF/types/doc_signatures_prepare_response_algorithm"
|
|
1394
1409
|
require_relative "CloudPDF/types/doc_signatures_prepare_response_expected_version"
|
|
1395
1410
|
require_relative "CloudPDF/types/doc_signatures_prepare_response"
|
|
@@ -1585,6 +1600,8 @@ require_relative "CloudPDF/doc/signatures/types/cancel_signatures_request"
|
|
|
1585
1600
|
require_relative "CloudPDF/doc/signatures/types/doc_signatures_complete_request"
|
|
1586
1601
|
require_relative "CloudPDF/doc/signatures/types/analysis_signatures_request"
|
|
1587
1602
|
require_relative "CloudPDF/doc/signatures/types/prepare_signatures_request"
|
|
1603
|
+
require_relative "CloudPDF/doc/signatures/types/validation_info_signatures_request"
|
|
1604
|
+
require_relative "CloudPDF/doc/signatures/types/doc_signatures_add_validation_info_request"
|
|
1588
1605
|
require_relative "CloudPDF/doc/versions/client"
|
|
1589
1606
|
require_relative "CloudPDF/doc/versions/types/list_versions_request"
|
|
1590
1607
|
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.3.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-16 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
|
|
@@ -903,6 +905,10 @@ files:
|
|
|
903
905
|
- lib/CloudPDF/types/cache_delta_pages_item.rb
|
|
904
906
|
- lib/CloudPDF/types/cache_delta_pages_item_cache.rb
|
|
905
907
|
- lib/CloudPDF/types/change_item.rb
|
|
908
|
+
- lib/CloudPDF/types/change_item_annotations_copy.rb
|
|
909
|
+
- lib/CloudPDF/types/change_item_annotations_copy_dropped_item.rb
|
|
910
|
+
- lib/CloudPDF/types/change_item_annotations_copy_dropped_item_reason.rb
|
|
911
|
+
- lib/CloudPDF/types/change_item_annotations_copy_ref_map_item.rb
|
|
906
912
|
- lib/CloudPDF/types/change_item_annotations_create.rb
|
|
907
913
|
- lib/CloudPDF/types/change_item_annotations_delete.rb
|
|
908
914
|
- lib/CloudPDF/types/change_item_annotations_reorder.rb
|
|
@@ -914,6 +920,10 @@ files:
|
|
|
914
920
|
- lib/CloudPDF/types/change_item_attachments_delete.rb
|
|
915
921
|
- lib/CloudPDF/types/change_item_attachments_restore.rb
|
|
916
922
|
- lib/CloudPDF/types/change_item_forms_add_widget.rb
|
|
923
|
+
- lib/CloudPDF/types/change_item_forms_copy.rb
|
|
924
|
+
- lib/CloudPDF/types/change_item_forms_copy_dropped_item.rb
|
|
925
|
+
- lib/CloudPDF/types/change_item_forms_copy_dropped_item_reason.rb
|
|
926
|
+
- lib/CloudPDF/types/change_item_forms_copy_ref_map_item.rb
|
|
917
927
|
- lib/CloudPDF/types/change_item_forms_create.rb
|
|
918
928
|
- lib/CloudPDF/types/change_item_forms_delete.rb
|
|
919
929
|
- lib/CloudPDF/types/change_item_forms_delete_widget.rb
|
|
@@ -970,6 +980,8 @@ files:
|
|
|
970
980
|
- lib/CloudPDF/types/change_item_skipped.rb
|
|
971
981
|
- lib/CloudPDF/types/change_item_skipped_op.rb
|
|
972
982
|
- lib/CloudPDF/types/change_op.rb
|
|
983
|
+
- lib/CloudPDF/types/change_op_annotations_copy.rb
|
|
984
|
+
- lib/CloudPDF/types/change_op_annotations_copy_offset.rb
|
|
973
985
|
- lib/CloudPDF/types/change_op_annotations_create.rb
|
|
974
986
|
- lib/CloudPDF/types/change_op_annotations_create_resources.rb
|
|
975
987
|
- lib/CloudPDF/types/change_op_annotations_delete.rb
|
|
@@ -980,6 +992,8 @@ files:
|
|
|
980
992
|
- lib/CloudPDF/types/change_op_attachments_create_resources.rb
|
|
981
993
|
- lib/CloudPDF/types/change_op_attachments_delete.rb
|
|
982
994
|
- lib/CloudPDF/types/change_op_forms_add_widget.rb
|
|
995
|
+
- lib/CloudPDF/types/change_op_forms_copy.rb
|
|
996
|
+
- lib/CloudPDF/types/change_op_forms_copy_offset.rb
|
|
983
997
|
- lib/CloudPDF/types/change_op_forms_create.rb
|
|
984
998
|
- lib/CloudPDF/types/change_op_forms_delete.rb
|
|
985
999
|
- lib/CloudPDF/types/change_op_forms_delete_widget.rb
|
|
@@ -1118,6 +1132,8 @@ files:
|
|
|
1118
1132
|
- lib/CloudPDF/types/doc_redactions_apply_response_results_item.rb
|
|
1119
1133
|
- lib/CloudPDF/types/doc_redactions_apply_response_results_item_status.rb
|
|
1120
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
|
|
1121
1137
|
- lib/CloudPDF/types/doc_signatures_analysis_response.rb
|
|
1122
1138
|
- lib/CloudPDF/types/doc_signatures_analysis_response_basis.rb
|
|
1123
1139
|
- lib/CloudPDF/types/doc_signatures_analysis_response_basis_source.rb
|
|
@@ -1169,6 +1185,7 @@ files:
|
|
|
1169
1185
|
- lib/CloudPDF/types/doc_signatures_prepare_response.rb
|
|
1170
1186
|
- lib/CloudPDF/types/doc_signatures_prepare_response_algorithm.rb
|
|
1171
1187
|
- lib/CloudPDF/types/doc_signatures_prepare_response_expected_version.rb
|
|
1188
|
+
- lib/CloudPDF/types/doc_signatures_validation_info_response.rb
|
|
1172
1189
|
- lib/CloudPDF/types/doc_text_response.rb
|
|
1173
1190
|
- lib/CloudPDF/types/doc_versions_analysis_response.rb
|
|
1174
1191
|
- lib/CloudPDF/types/doc_versions_analysis_response_basis.rb
|