cloudpdf 3.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee0374b434f6ba9381bf11245bde123a29b451e6a56a59ac4373e763a6d2c702
4
- data.tar.gz: 92887c7c9ae44b417a31dc98779615c33349db7889afa67fb8cedbd7608a4aa3
3
+ metadata.gz: ab8453accf8f678434e029bb0d20116436f721012e0c2bcd01187b5d87026971
4
+ data.tar.gz: c6bca45a02ef2432aca92608f8be097c9a96934b3c24a502ce1b8291beb9ce5b
5
5
  SHA512:
6
- metadata.gz: c696cbe0450bc0c89858e4fc3896bba49d99ec83b763be9e96721fe52599ec1047f4c89c8c5243a614d0d10dfb0b71224379c6b1d80f8f71fd0ec4cbcdaa7249
7
- data.tar.gz: 266653a4f1b4ef3f923ab10279cbb564c7a038e4ff5e191607da058f8dade5a68b4838bdbed69fc103a928a6f7d9d025e918f8b36c4822e02cdfdb76b8bc7fc2
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": "e074ee8465006a168ff6d8cfa73928df13ae159c",
8
+ "originGitCommit": "4b156274cbffac1a19f266d36d27b4ed07bf2b53",
9
9
  "originGitCommitIsDirty": false,
10
10
  "invokedBy": "ci",
11
- "requestedVersion": "3.2.0",
11
+ "requestedVersion": "3.3.0",
12
12
  "ciProvider": "github"
13
13
  }
@@ -13,7 +13,7 @@ module CloudPDF
13
13
  headers: {
14
14
  "X-Fern-Language" => "Ruby",
15
15
  Authorization: "Bearer #{token}",
16
- "EmbedPDF-Version" => "3.2"
16
+ "EmbedPDF-Version" => "3.3"
17
17
  },
18
18
  max_retries: max_retries
19
19
  )
@@ -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). The signature is made over
229
- # the layer's own base: the upload, or the version its last signature made.
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 [Integer, nil] :policy
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["policy"] = params[:policy] if params.key?(:policy)
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 :policy, -> { Integer }, optional: true, nullable: false
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CloudPDF
4
- VERSION = "3.2.0"
4
+ VERSION = "3.3.0"
5
5
  end
data/lib/cloudpdf.rb CHANGED
@@ -1402,6 +1402,9 @@ require_relative "CloudPDF/types/doc_signatures_analysis_response_current"
1402
1402
  require_relative "CloudPDF/types/doc_signatures_analysis_response_later"
1403
1403
  require_relative "CloudPDF/types/doc_signatures_analysis_response_verdict"
1404
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"
1405
1408
  require_relative "CloudPDF/types/doc_signatures_prepare_response_algorithm"
1406
1409
  require_relative "CloudPDF/types/doc_signatures_prepare_response_expected_version"
1407
1410
  require_relative "CloudPDF/types/doc_signatures_prepare_response"
@@ -1597,6 +1600,8 @@ require_relative "CloudPDF/doc/signatures/types/cancel_signatures_request"
1597
1600
  require_relative "CloudPDF/doc/signatures/types/doc_signatures_complete_request"
1598
1601
  require_relative "CloudPDF/doc/signatures/types/analysis_signatures_request"
1599
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"
1600
1605
  require_relative "CloudPDF/doc/versions/client"
1601
1606
  require_relative "CloudPDF/doc/versions/types/list_versions_request"
1602
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
- **policy:** `Integer`
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.2.0
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 00:00:00.000000000 Z
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
@@ -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