cloudpdf 3.0.0.alpha.1 → 3.0.0.alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +2 -2
  3. data/README.md +5 -5
  4. data/lib/CloudPDF/client.rb +5 -0
  5. data/lib/CloudPDF/documents/client.rb +23 -6
  6. data/lib/CloudPDF/documents/types/documents_init_request.rb +2 -0
  7. data/lib/CloudPDF/documents/types/documents_init_request_upload_preference.rb +15 -0
  8. data/lib/CloudPDF/documents/types/upload_proxy_documents_request.rb +15 -0
  9. data/lib/CloudPDF/shares/client.rb +264 -0
  10. data/lib/CloudPDF/shares/types/delete_shares_request.rb +13 -0
  11. data/lib/CloudPDF/shares/types/get_shares_request.rb +13 -0
  12. data/lib/CloudPDF/shares/types/list_shares_request.rb +17 -0
  13. data/lib/CloudPDF/shares/types/shares_create_request.rb +25 -0
  14. data/lib/CloudPDF/shares/types/shares_exchange_request.rb +13 -0
  15. data/lib/CloudPDF/shares/types/shares_update_request.rb +25 -0
  16. data/lib/CloudPDF/tenants/client.rb +117 -0
  17. data/lib/CloudPDF/tenants/types/resume_tenants_request.rb +11 -0
  18. data/lib/CloudPDF/tenants/types/tenants_suspend_request.rb +13 -0
  19. data/lib/CloudPDF/tenants/types/usage_tenants_request.rb +13 -0
  20. data/lib/CloudPDF/types/doc_annotations_create400response_code.rb +1 -0
  21. data/lib/CloudPDF/types/doc_annotations_create404response_code.rb +1 -0
  22. data/lib/CloudPDF/types/doc_annotations_delete404response_code.rb +1 -0
  23. data/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_caret.rb +4 -0
  24. data/lib/CloudPDF/types/doc_annotations_list200response_annotations_item_caret_unrotated_rect.rb +15 -0
  25. data/lib/CloudPDF/types/doc_annotations_list404response_code.rb +1 -0
  26. data/lib/CloudPDF/types/doc_annotations_update400response_code.rb +1 -0
  27. data/lib/CloudPDF/types/doc_annotations_update404response_code.rb +1 -0
  28. data/lib/CloudPDF/types/doc_download_response_code.rb +1 -0
  29. data/lib/CloudPDF/types/doc_forms_export_data_response_code.rb +1 -0
  30. data/lib/CloudPDF/types/doc_forms_get404response_code.rb +1 -0
  31. data/lib/CloudPDF/types/doc_forms_import_data400response_code.rb +1 -0
  32. data/lib/CloudPDF/types/doc_forms_import_data404response_code.rb +1 -0
  33. data/lib/CloudPDF/types/doc_forms_reset404response_code.rb +1 -0
  34. data/lib/CloudPDF/types/doc_forms_set_value400response_code.rb +1 -0
  35. data/lib/CloudPDF/types/doc_forms_set_value404response_code.rb +1 -0
  36. data/lib/CloudPDF/types/doc_head404response_code.rb +1 -0
  37. data/lib/CloudPDF/types/doc_manifest404response_code.rb +1 -0
  38. data/lib/CloudPDF/types/doc_metadata_get404response_code.rb +1 -0
  39. data/lib/CloudPDF/types/doc_pages_delete400response_code.rb +1 -0
  40. data/lib/CloudPDF/types/doc_pages_delete404response_code.rb +1 -0
  41. data/lib/CloudPDF/types/doc_pages_flatten400response_code.rb +1 -0
  42. data/lib/CloudPDF/types/doc_pages_flatten404response_code.rb +1 -0
  43. data/lib/CloudPDF/types/doc_pages_move400response_code.rb +1 -0
  44. data/lib/CloudPDF/types/doc_pages_move404response_code.rb +1 -0
  45. data/lib/CloudPDF/types/doc_pages_rotate400response_code.rb +1 -0
  46. data/lib/CloudPDF/types/doc_pages_rotate404response_code.rb +1 -0
  47. data/lib/CloudPDF/types/doc_redactions_apply400response_code.rb +1 -0
  48. data/lib/CloudPDF/types/doc_redactions_apply404response_code.rb +1 -0
  49. data/lib/CloudPDF/types/doc_render_response_code.rb +1 -0
  50. data/lib/CloudPDF/types/doc_text200response.rb +2 -0
  51. data/lib/CloudPDF/types/doc_text404response_code.rb +1 -0
  52. data/lib/CloudPDF/types/documents_init200response_created_upload.rb +1 -1
  53. data/lib/CloudPDF/types/{documents_init200response_created_upload_direct.rb → documents_init200response_created_upload_proxy.rb} +1 -1
  54. data/lib/CloudPDF/types/documents_init200response_resumed_upload.rb +1 -1
  55. data/lib/CloudPDF/types/{documents_init200response_resumed_upload_direct.rb → documents_init200response_resumed_upload_proxy.rb} +1 -1
  56. data/lib/CloudPDF/types/{documents_upload_direct200response.rb → documents_upload_proxy200response.rb} +1 -1
  57. data/lib/CloudPDF/types/documents_upload_proxy400response.rb +9 -0
  58. data/lib/CloudPDF/types/{documents_upload_direct400response_error.rb → documents_upload_proxy400response_error.rb} +1 -1
  59. data/lib/CloudPDF/types/documents_upload_proxy409response.rb +9 -0
  60. data/lib/CloudPDF/types/documents_upload_proxy409response_error.rb +11 -0
  61. data/lib/CloudPDF/types/engine_error_payload_code.rb +1 -0
  62. data/lib/CloudPDF/types/shares_create200response.rb +9 -0
  63. data/lib/CloudPDF/types/shares_create200response_share.rb +37 -0
  64. data/lib/CloudPDF/types/shares_create400response.rb +9 -0
  65. data/lib/CloudPDF/types/shares_create400response_error.rb +11 -0
  66. data/lib/CloudPDF/types/shares_create403response.rb +9 -0
  67. data/lib/CloudPDF/types/shares_create403response_error.rb +11 -0
  68. data/lib/CloudPDF/types/shares_create404response.rb +9 -0
  69. data/lib/CloudPDF/types/shares_create404response_error.rb +11 -0
  70. data/lib/CloudPDF/types/shares_delete_response.rb +9 -0
  71. data/lib/CloudPDF/types/shares_delete_response_error.rb +11 -0
  72. data/lib/CloudPDF/types/shares_exchange200response.rb +15 -0
  73. data/lib/CloudPDF/types/shares_exchange400response.rb +9 -0
  74. data/lib/CloudPDF/types/shares_exchange400response_error.rb +11 -0
  75. data/lib/CloudPDF/types/shares_exchange403response.rb +9 -0
  76. data/lib/CloudPDF/types/shares_exchange403response_error.rb +11 -0
  77. data/lib/CloudPDF/types/shares_exchange404response.rb +9 -0
  78. data/lib/CloudPDF/types/shares_exchange404response_error.rb +11 -0
  79. data/lib/CloudPDF/types/shares_exchange410response.rb +9 -0
  80. data/lib/CloudPDF/types/shares_exchange410response_error.rb +11 -0
  81. data/lib/CloudPDF/types/shares_exchange422response.rb +9 -0
  82. data/lib/CloudPDF/types/shares_exchange422response_error.rb +11 -0
  83. data/lib/CloudPDF/types/shares_get200response.rb +9 -0
  84. data/lib/CloudPDF/types/shares_get200response_share.rb +37 -0
  85. data/lib/CloudPDF/types/shares_get404response.rb +9 -0
  86. data/lib/CloudPDF/types/shares_get404response_error.rb +11 -0
  87. data/lib/CloudPDF/types/shares_list200response.rb +11 -0
  88. data/lib/CloudPDF/types/shares_list200response_shares_item.rb +37 -0
  89. data/lib/CloudPDF/types/shares_list400response.rb +9 -0
  90. data/lib/CloudPDF/types/shares_list400response_error.rb +11 -0
  91. data/lib/CloudPDF/types/shares_update200response.rb +9 -0
  92. data/lib/CloudPDF/types/shares_update200response_share.rb +37 -0
  93. data/lib/CloudPDF/types/shares_update400response.rb +9 -0
  94. data/lib/CloudPDF/types/shares_update400response_error.rb +11 -0
  95. data/lib/CloudPDF/types/shares_update404response.rb +9 -0
  96. data/lib/CloudPDF/types/shares_update404response_error.rb +11 -0
  97. data/lib/CloudPDF/types/tenants_create200response_tenant.rb +2 -0
  98. data/lib/CloudPDF/types/tenants_create200response_tenant_status.rb +12 -0
  99. data/lib/CloudPDF/types/tenants_get200response_tenant.rb +2 -0
  100. data/lib/CloudPDF/types/tenants_get200response_tenant_status.rb +12 -0
  101. data/lib/CloudPDF/types/tenants_list200response_tenants_item.rb +2 -0
  102. data/lib/CloudPDF/types/tenants_list200response_tenants_item_status.rb +12 -0
  103. data/lib/CloudPDF/types/tenants_resume_response.rb +9 -0
  104. data/lib/CloudPDF/types/tenants_resume_response_error.rb +11 -0
  105. data/lib/CloudPDF/types/tenants_suspend_response.rb +9 -0
  106. data/lib/CloudPDF/types/tenants_suspend_response_error.rb +11 -0
  107. data/lib/CloudPDF/types/tenants_usage200response.rb +15 -0
  108. data/lib/CloudPDF/types/tenants_usage200response_metrics.rb +13 -0
  109. data/lib/CloudPDF/types/tenants_usage400response.rb +9 -0
  110. data/lib/CloudPDF/types/tenants_usage400response_error.rb +11 -0
  111. data/lib/CloudPDF/types/tenants_usage404response.rb +9 -0
  112. data/lib/CloudPDF/types/tenants_usage404response_error.rb +11 -0
  113. data/lib/CloudPDF/types/tokens_issue_request_doc.rb +2 -0
  114. data/lib/CloudPDF/types/tokens_issue_request_tenant_scope_item_one.rb +1 -0
  115. data/lib/CloudPDF/version.rb +1 -1
  116. data/lib/cloudpdf.rb +68 -5
  117. data/reference.md +762 -0
  118. metadata +70 -7
  119. data/lib/CloudPDF/types/documents_upload_direct400response.rb +0 -9
@@ -156,6 +156,123 @@ module CloudPDF
156
156
  error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
157
157
  raise error_class.new(response.body, code: code)
158
158
  end
159
+
160
+ # @param request_options [Hash]
161
+ # @param params [Hash]
162
+ # @option request_options [String] :base_url
163
+ # @option request_options [Hash{String => Object}] :additional_headers
164
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
165
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
166
+ # @option request_options [Integer] :timeout_in_seconds
167
+ # @option params [String] :tenant_id
168
+ #
169
+ # @example
170
+ # client.tenants.resume(tenant_id: "tenantId")
171
+ #
172
+ # @return [untyped]
173
+ def resume(request_options: {}, **params)
174
+ params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
175
+ request = CloudPDF::Internal::JSON::Request.new(
176
+ base_url: request_options[:base_url],
177
+ method: "POST",
178
+ path: "v1/tenants/#{URI.encode_uri_component(params[:tenant_id].to_s)}/resume",
179
+ request_options: request_options
180
+ )
181
+ begin
182
+ response = @client.send(request)
183
+ rescue Net::HTTPRequestTimeout
184
+ raise CloudPDF::Errors::TimeoutError
185
+ end
186
+ code = response.code.to_i
187
+ return if code.between?(200, 299)
188
+
189
+ error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
190
+ raise error_class.new(response.body, code: code)
191
+ end
192
+
193
+ # Instantly reversible with resume. The API token is exempt, so a suspended tenant can still be inspected,
194
+ # exported, resumed, or deleted.
195
+ #
196
+ # @param request_options [Hash]
197
+ # @param params [CloudPDF::Tenants::Types::TenantsSuspendRequest]
198
+ # @option request_options [String] :base_url
199
+ # @option request_options [Hash{String => Object}] :additional_headers
200
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
201
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
202
+ # @option request_options [Integer] :timeout_in_seconds
203
+ # @option params [String] :tenant_id
204
+ #
205
+ # @example
206
+ # client.tenants.suspend(tenant_id: "tenantId")
207
+ #
208
+ # @return [untyped]
209
+ def suspend(request_options: {}, **params)
210
+ params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
211
+ request_data = CloudPDF::Tenants::Types::TenantsSuspendRequest.new(params).to_h
212
+ non_body_param_names = %w[tenantId]
213
+ body = request_data.except(*non_body_param_names)
214
+
215
+ request = CloudPDF::Internal::JSON::Request.new(
216
+ base_url: request_options[:base_url],
217
+ method: "POST",
218
+ path: "v1/tenants/#{URI.encode_uri_component(params[:tenant_id].to_s)}/suspend",
219
+ body: body,
220
+ request_options: request_options
221
+ )
222
+ begin
223
+ response = @client.send(request)
224
+ rescue Net::HTTPRequestTimeout
225
+ raise CloudPDF::Errors::TimeoutError
226
+ end
227
+ code = response.code.to_i
228
+ return if code.between?(200, 299)
229
+
230
+ error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
231
+ raise error_class.new(response.body, code: code)
232
+ end
233
+
234
+ # Facts only — no limits or billing state. Views count share exchanges plus authorized /v1/access grants,
235
+ # deduplicated across the two.
236
+ #
237
+ # @param request_options [Hash]
238
+ # @param params [Hash]
239
+ # @option request_options [String] :base_url
240
+ # @option request_options [Hash{String => Object}] :additional_headers
241
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
242
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
243
+ # @option request_options [Integer] :timeout_in_seconds
244
+ # @option params [String] :tenant_id
245
+ # @option params [String, nil] :period
246
+ #
247
+ # @example
248
+ # client.tenants.usage(tenant_id: "tenantId")
249
+ #
250
+ # @return [CloudPDF::Types::TenantsUsage200Response]
251
+ def usage(request_options: {}, **params)
252
+ params = CloudPDF::Internal::Types::Utils.normalize_keys(params)
253
+ query_params = {}
254
+ query_params["period"] = params[:period] if params.key?(:period)
255
+
256
+ request = CloudPDF::Internal::JSON::Request.new(
257
+ base_url: request_options[:base_url],
258
+ method: "GET",
259
+ path: "v1/tenants/#{URI.encode_uri_component(params[:tenant_id].to_s)}/usage",
260
+ query: query_params,
261
+ request_options: request_options
262
+ )
263
+ begin
264
+ response = @client.send(request)
265
+ rescue Net::HTTPRequestTimeout
266
+ raise CloudPDF::Errors::TimeoutError
267
+ end
268
+ code = response.code.to_i
269
+ if code.between?(200, 299)
270
+ CloudPDF::Types::TenantsUsage200Response.load(response.body)
271
+ else
272
+ error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
273
+ raise error_class.new(response.body, code: code)
274
+ end
275
+ end
159
276
  end
160
277
  end
161
278
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CloudPDF
4
+ module Tenants
5
+ module Types
6
+ class ResumeTenantsRequest < Internal::Types::Model
7
+ field :tenant_id, -> { String }, optional: false, nullable: false, api_name: "tenantId"
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CloudPDF
4
+ module Tenants
5
+ module Types
6
+ class TenantsSuspendRequest < Internal::Types::Model
7
+ field :tenant_id, -> { String }, optional: false, nullable: false, api_name: "tenantId"
8
+
9
+ field :reason, -> { String }, optional: true, nullable: false
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CloudPDF
4
+ module Tenants
5
+ module Types
6
+ class UsageTenantsRequest < Internal::Types::Model
7
+ field :tenant_id, -> { String }, optional: false, nullable: false, api_name: "tenantId"
8
+
9
+ field :period, -> { String }, optional: true, nullable: false
10
+ end
11
+ end
12
+ end
13
+ end
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -48,6 +48,10 @@ module CloudPDF
48
48
  field :intent, -> { CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemCaretIntent }, optional: false, nullable: true
49
49
 
50
50
  field :rect_differences, -> { CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemCaretRectDifferences }, optional: false, nullable: true, api_name: "rectDifferences"
51
+
52
+ field :rotation, -> { Integer }, optional: true, nullable: false
53
+
54
+ field :unrotated_rect, -> { CloudPDF::Types::DocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect }, optional: true, nullable: false, api_name: "unrotatedRect"
51
55
  end
52
56
  end
53
57
  end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CloudPDF
4
+ module Types
5
+ class DocAnnotationsList200ResponseAnnotationsItemCaretUnrotatedRect < Internal::Types::Model
6
+ field :left, -> { Integer }, optional: false, nullable: false
7
+
8
+ field :bottom, -> { Integer }, optional: false, nullable: false
9
+
10
+ field :right, -> { Integer }, optional: false, nullable: false
11
+
12
+ field :top, -> { Integer }, optional: false, nullable: false
13
+ end
14
+ end
15
+ end
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -6,6 +6,8 @@ module CloudPDF
6
6
  field :text, -> { String }, optional: false, nullable: false
7
7
 
8
8
  field :char_count, -> { Integer }, optional: false, nullable: false, api_name: "charCount"
9
+
10
+ field :char_map, -> { Internal::Types::Array[Internal::Types::Array[Object]] }, optional: true, nullable: false, api_name: "charMap"
9
11
  end
10
12
  end
11
13
  end
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -9,7 +9,7 @@ module CloudPDF
9
9
 
10
10
  member -> { CloudPDF::Types::DocumentsInit200ResponseCreatedUploadPresigned }, key: "PRESIGNED"
11
11
 
12
- member -> { CloudPDF::Types::DocumentsInit200ResponseCreatedUploadDirect }, key: "DIRECT"
12
+ member -> { CloudPDF::Types::DocumentsInit200ResponseCreatedUploadProxy }, key: "PROXY"
13
13
  end
14
14
  end
15
15
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CloudPDF
4
4
  module Types
5
- class DocumentsInit200ResponseCreatedUploadDirect < Internal::Types::Model
5
+ class DocumentsInit200ResponseCreatedUploadProxy < Internal::Types::Model
6
6
  field :url, -> { String }, optional: false, nullable: false
7
7
 
8
8
  field :key, -> { String }, optional: false, nullable: false
@@ -9,7 +9,7 @@ module CloudPDF
9
9
 
10
10
  member -> { CloudPDF::Types::DocumentsInit200ResponseResumedUploadPresigned }, key: "PRESIGNED"
11
11
 
12
- member -> { CloudPDF::Types::DocumentsInit200ResponseResumedUploadDirect }, key: "DIRECT"
12
+ member -> { CloudPDF::Types::DocumentsInit200ResponseResumedUploadProxy }, key: "PROXY"
13
13
  end
14
14
  end
15
15
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CloudPDF
4
4
  module Types
5
- class DocumentsInit200ResponseResumedUploadDirect < Internal::Types::Model
5
+ class DocumentsInit200ResponseResumedUploadProxy < Internal::Types::Model
6
6
  field :url, -> { String }, optional: false, nullable: false
7
7
 
8
8
  field :key, -> { String }, optional: false, nullable: false
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CloudPDF
4
4
  module Types
5
- class DocumentsUploadDirect200Response < Internal::Types::Model
5
+ class DocumentsUploadProxy200Response < Internal::Types::Model
6
6
  field :sha256, -> { String }, optional: false, nullable: false
7
7
  end
8
8
  end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CloudPDF
4
+ module Types
5
+ class DocumentsUploadProxy400Response < Internal::Types::Model
6
+ field :error, -> { CloudPDF::Types::DocumentsUploadProxy400ResponseError }, optional: false, nullable: false
7
+ end
8
+ end
9
+ end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module CloudPDF
4
4
  module Types
5
- class DocumentsUploadDirect400ResponseError < Internal::Types::Model
5
+ class DocumentsUploadProxy400ResponseError < Internal::Types::Model
6
6
  field :code, -> { String }, optional: false, nullable: false
7
7
 
8
8
  field :message, -> { String }, optional: false, nullable: false
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CloudPDF
4
+ module Types
5
+ class DocumentsUploadProxy409Response < Internal::Types::Model
6
+ field :error, -> { CloudPDF::Types::DocumentsUploadProxy409ResponseError }, optional: false, nullable: false
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CloudPDF
4
+ module Types
5
+ class DocumentsUploadProxy409ResponseError < Internal::Types::Model
6
+ field :code, -> { String }, optional: false, nullable: false
7
+
8
+ field :message, -> { String }, optional: false, nullable: false
9
+ end
10
+ end
11
+ end
@@ -11,6 +11,7 @@ module CloudPDF
11
11
  DOC_OPEN_FAILED = "DocOpenFailed"
12
12
  DOC_PASSWORD_REQUIRED = "DocPasswordRequired"
13
13
  DOC_PASSWORD_INCORRECT = "DocPasswordIncorrect"
14
+ SHARE_PASSWORD_REQUIRED = "SharePasswordRequired"
14
15
  ABORTED = "Aborted"
15
16
  NETWORK = "Network"
16
17
  UNAUTHENTICATED = "Unauthenticated"
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CloudPDF
4
+ module Types
5
+ class SharesCreate200Response < Internal::Types::Model
6
+ field :share, -> { CloudPDF::Types::SharesCreate200ResponseShare }, optional: false, nullable: false
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CloudPDF
4
+ module Types
5
+ class SharesCreate200ResponseShare < Internal::Types::Model
6
+ field :id, -> { String }, optional: false, nullable: false
7
+
8
+ field :tenant_id, -> { String }, optional: false, nullable: false, api_name: "tenantId"
9
+
10
+ field :doc_id, -> { String }, optional: false, nullable: false, api_name: "docId"
11
+
12
+ field :layer_name, -> { String }, optional: false, nullable: false, api_name: "layerName"
13
+
14
+ field :scope, -> { Internal::Types::Array[String] }, optional: false, nullable: false
15
+
16
+ field :origins, -> { Internal::Types::Array[String] }, optional: false, nullable: true
17
+
18
+ field :password_protected, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "passwordProtected"
19
+
20
+ field :session_ttl_seconds, -> { Integer }, optional: false, nullable: false, api_name: "sessionTtlSeconds"
21
+
22
+ field :disabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
23
+
24
+ field :expires_at, -> { Integer }, optional: false, nullable: true, api_name: "expiresAt"
25
+
26
+ field :exchange_count, -> { Integer }, optional: false, nullable: false, api_name: "exchangeCount"
27
+
28
+ field :last_exchanged_at, -> { Integer }, optional: false, nullable: true, api_name: "lastExchangedAt"
29
+
30
+ field :created_by, -> { String }, optional: false, nullable: false, api_name: "createdBy"
31
+
32
+ field :created_at, -> { Integer }, optional: false, nullable: false, api_name: "createdAt"
33
+
34
+ field :updated_at, -> { Integer }, optional: false, nullable: false, api_name: "updatedAt"
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CloudPDF
4
+ module Types
5
+ class SharesCreate400Response < Internal::Types::Model
6
+ field :error, -> { CloudPDF::Types::SharesCreate400ResponseError }, optional: false, nullable: false
7
+ end
8
+ end
9
+ end