speakeasy_client_sdk_ruby 4.1.3 → 4.1.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 (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/speakeasy_client_sdk/models/operations/getchangesreportsignedurl_request.rb +24 -0
  3. data/lib/speakeasy_client_sdk/models/operations/getchangesreportsignedurl_response.rb +33 -0
  4. data/lib/speakeasy_client_sdk/models/operations/getchangesreportsignedurl_signedaccess.rb +24 -0
  5. data/lib/speakeasy_client_sdk/models/operations/getlintingreportsignedurl_request.rb +24 -0
  6. data/lib/speakeasy_client_sdk/models/operations/getlintingreportsignedurl_response.rb +33 -0
  7. data/lib/speakeasy_client_sdk/models/operations/getlintingreportsignedurl_signedaccess.rb +24 -0
  8. data/lib/speakeasy_client_sdk/models/operations/getmanifest_request.rb +1 -1
  9. data/lib/speakeasy_client_sdk/models/operations/getworkspacetargets_response.rb +1 -1
  10. data/lib/speakeasy_client_sdk/models/operations/postworkspaceevents_response.rb +1 -1
  11. data/lib/speakeasy_client_sdk/models/operations/registerschema_file.rb +27 -0
  12. data/lib/speakeasy_client_sdk/models/operations/registerschema_requestbody.rb +2 -2
  13. data/lib/speakeasy_client_sdk/models/operations/uploadreport_requestbody.rb +27 -0
  14. data/lib/speakeasy_client_sdk/models/operations/uploadreport_response.rb +33 -0
  15. data/lib/speakeasy_client_sdk/models/operations/uploadreport_uploadedreport.rb +24 -0
  16. data/lib/speakeasy_client_sdk/models/operations.rb +11 -1
  17. data/lib/speakeasy_client_sdk/models/shared/accesstoken_account_type.rb +20 -0
  18. data/lib/speakeasy_client_sdk/models/shared/apikeydetails.rb +5 -2
  19. data/lib/speakeasy_client_sdk/models/shared/feature_flags.rb +18 -0
  20. data/lib/speakeasy_client_sdk/models/shared/report.rb +24 -0
  21. data/lib/speakeasy_client_sdk/models/shared/revision.rb +6 -3
  22. data/lib/speakeasy_client_sdk/models/shared/tag.rb +8 -11
  23. data/lib/speakeasy_client_sdk/models/shared/type.rb +19 -0
  24. data/lib/speakeasy_client_sdk/models/shared/workspaces.rb +15 -2
  25. data/lib/speakeasy_client_sdk/models/shared.rb +4 -0
  26. data/lib/speakeasy_client_sdk/reports.rb +133 -0
  27. data/lib/speakeasy_client_sdk/sdk.rb +2 -1
  28. data/lib/speakeasy_client_sdk/sdkconfiguration.rb +3 -3
  29. data/lib/speakeasy_client_sdk_ruby.rb +1 -0
  30. metadata +17 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 87755a80fb67c002f7fa746acbb8fb3bf1db8c3e976ec9036bde770823127aa8
4
- data.tar.gz: 9cc70738a102faea7743736d9c7cdbc74a65000a7ccb6d71537b6b03b2cdf6ef
3
+ metadata.gz: ba760c3df1da27c7df35aff14a89340bfc01e0df77883e5fa776304704b921cc
4
+ data.tar.gz: 62333c7e652b3f8821630c8fa6901564218664cd527f7c296299743c580c28da
5
5
  SHA512:
6
- metadata.gz: 107f389b470354f5ba91455b90f35817dd2ea319bb0bf5c219fae680b1a34549e81bd2eb7e6273b8217843b6792e59c91ffc4c27b3190bba3307efbd7c348018
7
- data.tar.gz: 06d237845a8b8dfad8a34046198540d020ffc55ef4e021468fcf69c14ae30b989379e1c9f3b733331b9f60f204d8bb8251067c0e7eed003c6b8bf7272ca5d918
6
+ metadata.gz: 636556c2f993708e746ae7027f44a388d8682d4520ab9c3f887db940043097976186597e53bf910b7c6464acba27d6b7ceadb7f0064157a11dc9d83aa821112a
7
+ data.tar.gz: 18c512e9886244f8879d58f1903637907859bf23f4bc5e20be1b2b1d324f559596427324795dc810286061907b365d1cb7172d4d41aeaa53d772f2bb29ad954a
@@ -0,0 +1,24 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Operations
9
+
10
+
11
+ class GetChangesReportSignedUrlRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The checksum of the document to retrieve the signed access url for.
15
+ field :document_checksum, ::String, { 'path_param': { 'field_name': 'documentChecksum', 'style': 'simple', 'explode': false } }
16
+
17
+
18
+ sig { params(document_checksum: ::String).void }
19
+ def initialize(document_checksum: nil)
20
+ @document_checksum = document_checksum
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,33 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Operations
9
+
10
+
11
+ class GetChangesReportSignedUrlResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # HTTP response content type for this operation
15
+ field :content_type, ::String
16
+ # Raw HTTP response; suitable for custom response parsing
17
+ field :raw_response, ::Faraday::Response
18
+ # HTTP response status code for this operation
19
+ field :status_code, ::Integer
20
+ # OK
21
+ field :signed_access, T.nilable(::SpeakeasyClientSDK::Operations::GetChangesReportSignedUrlSignedAccess)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, signed_access: T.nilable(::SpeakeasyClientSDK::Operations::GetChangesReportSignedUrlSignedAccess)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, signed_access: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @signed_access = signed_access
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,24 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Operations
9
+
10
+ # OK
11
+ class GetChangesReportSignedUrlSignedAccess < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :url, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('url') } }
16
+
17
+
18
+ sig { params(url: ::String).void }
19
+ def initialize(url: nil)
20
+ @url = url
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Operations
9
+
10
+
11
+ class GetLintingReportSignedUrlRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The checksum of the document to retrieve the signed access url for.
15
+ field :document_checksum, ::String, { 'path_param': { 'field_name': 'documentChecksum', 'style': 'simple', 'explode': false } }
16
+
17
+
18
+ sig { params(document_checksum: ::String).void }
19
+ def initialize(document_checksum: nil)
20
+ @document_checksum = document_checksum
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,33 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Operations
9
+
10
+
11
+ class GetLintingReportSignedUrlResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # HTTP response content type for this operation
15
+ field :content_type, ::String
16
+ # Raw HTTP response; suitable for custom response parsing
17
+ field :raw_response, ::Faraday::Response
18
+ # HTTP response status code for this operation
19
+ field :status_code, ::Integer
20
+ # OK
21
+ field :signed_access, T.nilable(::SpeakeasyClientSDK::Operations::GetLintingReportSignedUrlSignedAccess)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, signed_access: T.nilable(::SpeakeasyClientSDK::Operations::GetLintingReportSignedUrlSignedAccess)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, signed_access: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @signed_access = signed_access
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,24 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Operations
9
+
10
+ # OK
11
+ class GetLintingReportSignedUrlSignedAccess < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :url, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('url') } }
16
+
17
+
18
+ sig { params(url: ::String).void }
19
+ def initialize(url: nil)
20
+ @url = url
21
+ end
22
+ end
23
+ end
24
+ end
@@ -15,7 +15,7 @@ module SpeakeasyClientSDK
15
15
  field :namespace_name, ::String, { 'path_param': { 'field_name': 'namespace_name', 'style': 'simple', 'explode': false } }
16
16
 
17
17
  field :organization_slug, ::String, { 'path_param': { 'field_name': 'organization_slug', 'style': 'simple', 'explode': false } }
18
-
18
+ # Tag or digest
19
19
  field :revision_reference, ::String, { 'path_param': { 'field_name': 'revision_reference', 'style': 'simple', 'explode': false } }
20
20
 
21
21
  field :workspace_slug, ::String, { 'path_param': { 'field_name': 'workspace_slug', 'style': 'simple', 'explode': false } }
@@ -17,7 +17,7 @@ module SpeakeasyClientSDK
17
17
  field :raw_response, ::Faraday::Response
18
18
  # HTTP response status code for this operation
19
19
  field :status_code, ::Integer
20
-
20
+ # Error
21
21
  field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
22
22
  # Success
23
23
  field :target_sdk_list, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::TargetSDK])
@@ -17,7 +17,7 @@ module SpeakeasyClientSDK
17
17
  field :raw_response, ::Faraday::Response
18
18
  # HTTP response status code for this operation
19
19
  field :status_code, ::Integer
20
-
20
+ # Error
21
21
  field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
22
22
 
23
23
 
@@ -0,0 +1,27 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Operations
9
+
10
+
11
+ class RegisterSchemaFile < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :content, ::String, { 'multipart_form': { 'content': true } }
16
+
17
+ field :file_name, ::String, { 'multipart_form': { 'field_name': 'file' } }
18
+
19
+
20
+ sig { params(content: ::String, file_name: ::String).void }
21
+ def initialize(content: nil, file_name: nil)
22
+ @content = content
23
+ @file_name = file_name
24
+ end
25
+ end
26
+ end
27
+ end
@@ -12,10 +12,10 @@ module SpeakeasyClientSDK
12
12
  extend T::Sig
13
13
 
14
14
 
15
- field :file, ::SpeakeasyClientSDK::Operations::File, { 'multipart_form': { 'file': true } }
15
+ field :file, ::SpeakeasyClientSDK::Operations::RegisterSchemaFile, { 'multipart_form': { 'file': true } }
16
16
 
17
17
 
18
- sig { params(file: ::SpeakeasyClientSDK::Operations::File).void }
18
+ sig { params(file: ::SpeakeasyClientSDK::Operations::RegisterSchemaFile).void }
19
19
  def initialize(file: nil)
20
20
  @file = file
21
21
  end
@@ -0,0 +1,27 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Operations
9
+
10
+ # The report file to upload provided as a multipart/form-data file segment.
11
+ class UploadReportRequestBody < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :data, ::SpeakeasyClientSDK::Shared::Report, { 'multipart_form': { 'field_name': 'data', 'json': true } }
16
+
17
+ field :file, ::SpeakeasyClientSDK::Operations::File, { 'multipart_form': { 'file': true } }
18
+
19
+
20
+ sig { params(data: ::SpeakeasyClientSDK::Shared::Report, file: ::SpeakeasyClientSDK::Operations::File).void }
21
+ def initialize(data: nil, file: nil)
22
+ @data = data
23
+ @file = file
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,33 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Operations
9
+
10
+
11
+ class UploadReportResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # HTTP response content type for this operation
15
+ field :content_type, ::String
16
+ # Raw HTTP response; suitable for custom response parsing
17
+ field :raw_response, ::Faraday::Response
18
+ # HTTP response status code for this operation
19
+ field :status_code, ::Integer
20
+ # OK
21
+ field :uploaded_report, T.nilable(::SpeakeasyClientSDK::Operations::UploadReportUploadedReport)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, uploaded_report: T.nilable(::SpeakeasyClientSDK::Operations::UploadReportUploadedReport)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, uploaded_report: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @uploaded_report = uploaded_report
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,24 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Operations
9
+
10
+ # OK
11
+ class UploadReportUploadedReport < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :url, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('url') } }
16
+
17
+
18
+ sig { params(url: ::String).void }
19
+ def initialize(url: nil)
20
+ @url = url
21
+ end
22
+ end
23
+ end
24
+ end
@@ -55,7 +55,7 @@ module SpeakeasyClientSDK
55
55
  autoload :GetSchemaRevisionResponse, 'speakeasy_client_sdk/models/operations/getschemarevision_response.rb'
56
56
  autoload :GetSchemasRequest, 'speakeasy_client_sdk/models/operations/getschemas_request.rb'
57
57
  autoload :GetSchemasResponse, 'speakeasy_client_sdk/models/operations/getschemas_response.rb'
58
- autoload :File, 'speakeasy_client_sdk/models/operations/file.rb'
58
+ autoload :RegisterSchemaFile, 'speakeasy_client_sdk/models/operations/registerschema_file.rb'
59
59
  autoload :RegisterSchemaRequestBody, 'speakeasy_client_sdk/models/operations/registerschema_requestbody.rb'
60
60
  autoload :RegisterSchemaRequest, 'speakeasy_client_sdk/models/operations/registerschema_request.rb'
61
61
  autoload :RegisterSchemaResponse, 'speakeasy_client_sdk/models/operations/registerschema_response.rb'
@@ -82,6 +82,16 @@ module SpeakeasyClientSDK
82
82
  autoload :QueryEventLogRequest, 'speakeasy_client_sdk/models/operations/queryeventlog_request.rb'
83
83
  autoload :QueryEventLogResponse, 'speakeasy_client_sdk/models/operations/queryeventlog_response.rb'
84
84
  autoload :GetOrganizationsResponse, 'speakeasy_client_sdk/models/operations/getorganizations_response.rb'
85
+ autoload :GetChangesReportSignedUrlRequest, 'speakeasy_client_sdk/models/operations/getchangesreportsignedurl_request.rb'
86
+ autoload :GetChangesReportSignedUrlSignedAccess, 'speakeasy_client_sdk/models/operations/getchangesreportsignedurl_signedaccess.rb'
87
+ autoload :GetChangesReportSignedUrlResponse, 'speakeasy_client_sdk/models/operations/getchangesreportsignedurl_response.rb'
88
+ autoload :GetLintingReportSignedUrlRequest, 'speakeasy_client_sdk/models/operations/getlintingreportsignedurl_request.rb'
89
+ autoload :GetLintingReportSignedUrlSignedAccess, 'speakeasy_client_sdk/models/operations/getlintingreportsignedurl_signedaccess.rb'
90
+ autoload :GetLintingReportSignedUrlResponse, 'speakeasy_client_sdk/models/operations/getlintingreportsignedurl_response.rb'
91
+ autoload :File, 'speakeasy_client_sdk/models/operations/file.rb'
92
+ autoload :UploadReportRequestBody, 'speakeasy_client_sdk/models/operations/uploadreport_requestbody.rb'
93
+ autoload :UploadReportUploadedReport, 'speakeasy_client_sdk/models/operations/uploadreport_uploadedreport.rb'
94
+ autoload :UploadReportResponse, 'speakeasy_client_sdk/models/operations/uploadreport_response.rb'
85
95
  autoload :GetEmbedAccessTokenRequest, 'speakeasy_client_sdk/models/operations/getembedaccesstoken_request.rb'
86
96
  autoload :GetEmbedAccessTokenResponse, 'speakeasy_client_sdk/models/operations/getembedaccesstoken_response.rb'
87
97
  autoload :GetValidEmbedAccessTokensResponse, 'speakeasy_client_sdk/models/operations/getvalidembedaccesstokens_response.rb'
@@ -0,0 +1,20 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Shared
9
+
10
+
11
+ class AccessTokenAccountType < T::Enum
12
+ enums do
13
+ FREE = new('free')
14
+ SCALE_UP = new('scale-up')
15
+ ENTERPRISE = new('enterprise')
16
+ end
17
+ end
18
+
19
+ end
20
+ end
@@ -14,14 +14,17 @@ module SpeakeasyClientSDK
14
14
 
15
15
  field :account_type, ::SpeakeasyClientSDK::Shared::AccountType, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('account_type'), 'decoder': Utils.enum_from_string(::SpeakeasyClientSDK::Shared::AccountType, false) } }
16
16
 
17
+ field :feature_flags, T::Array[::SpeakeasyClientSDK::Shared::FeatureFlags], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('feature_flags') } }
18
+
17
19
  field :workspace_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workspace_id') } }
18
20
 
19
21
  field :generation_access_unlimited, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('generation_access_unlimited') } }
20
22
 
21
23
 
22
- sig { params(account_type: ::SpeakeasyClientSDK::Shared::AccountType, workspace_id: ::String, generation_access_unlimited: T.nilable(T::Boolean)).void }
23
- def initialize(account_type: nil, workspace_id: nil, generation_access_unlimited: nil)
24
+ sig { params(account_type: ::SpeakeasyClientSDK::Shared::AccountType, feature_flags: T::Array[::SpeakeasyClientSDK::Shared::FeatureFlags], workspace_id: ::String, generation_access_unlimited: T.nilable(T::Boolean)).void }
25
+ def initialize(account_type: nil, feature_flags: nil, workspace_id: nil, generation_access_unlimited: nil)
24
26
  @account_type = account_type
27
+ @feature_flags = feature_flags
25
28
  @workspace_id = workspace_id
26
29
  @generation_access_unlimited = generation_access_unlimited
27
30
  end
@@ -0,0 +1,18 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Shared
9
+
10
+
11
+ class FeatureFlags < T::Enum
12
+ enums do
13
+ SCHEMA_REGISTRY = new('schema_registry')
14
+ end
15
+ end
16
+
17
+ end
18
+ end
@@ -0,0 +1,24 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Shared
9
+
10
+
11
+ class Report < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :type, T.nilable(::SpeakeasyClientSDK::Shared::Type), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(::SpeakeasyClientSDK::Shared::Type, true) } }
16
+
17
+
18
+ sig { params(type: T.nilable(::SpeakeasyClientSDK::Shared::Type)).void }
19
+ def initialize(type: nil)
20
+ @type = type
21
+ end
22
+ end
23
+ end
24
+ end
@@ -13,7 +13,9 @@ module SpeakeasyClientSDK
13
13
 
14
14
 
15
15
  field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
16
- # aka digest
16
+
17
+ field :digest, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('digest') } }
18
+ # Format {namespace_id}/{revision_digest}
17
19
  field :id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('id') } }
18
20
 
19
21
  field :namespace_name, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('namespace_name') } }
@@ -23,9 +25,10 @@ module SpeakeasyClientSDK
23
25
  field :updated_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
24
26
 
25
27
 
26
- sig { params(created_at: ::DateTime, id: ::String, namespace_name: ::String, tags: T::Array[::String], updated_at: ::DateTime).void }
27
- def initialize(created_at: nil, id: nil, namespace_name: nil, tags: nil, updated_at: nil)
28
+ sig { params(created_at: ::DateTime, digest: ::String, id: ::String, namespace_name: ::String, tags: T::Array[::String], updated_at: ::DateTime).void }
29
+ def initialize(created_at: nil, digest: nil, id: nil, namespace_name: nil, tags: nil, updated_at: nil)
28
30
  @created_at = created_at
31
+ @digest = digest
29
32
  @id = id
30
33
  @namespace_name = namespace_name
31
34
  @tags = tags
@@ -11,25 +11,22 @@ module SpeakeasyClientSDK
11
11
  class Tag < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
-
15
- field :created_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('created_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
16
- # Human readable tag name
14
+ # Format {namespace_id}/{tag}
17
15
  field :id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('id') } }
16
+ # Human readable tag name
17
+ field :name, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('name') } }
18
18
 
19
19
  field :namespace_name, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('namespace_name') } }
20
20
 
21
- field :revision_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('revision_id') } }
22
-
23
- field :updated_at, ::DateTime, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(false) } }
21
+ field :revision_digest, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('revision_digest') } }
24
22
 
25
23
 
26
- sig { params(created_at: ::DateTime, id: ::String, namespace_name: ::String, revision_id: ::String, updated_at: ::DateTime).void }
27
- def initialize(created_at: nil, id: nil, namespace_name: nil, revision_id: nil, updated_at: nil)
28
- @created_at = created_at
24
+ sig { params(id: ::String, name: ::String, namespace_name: ::String, revision_digest: ::String).void }
25
+ def initialize(id: nil, name: nil, namespace_name: nil, revision_digest: nil)
29
26
  @id = id
27
+ @name = name
30
28
  @namespace_name = namespace_name
31
- @revision_id = revision_id
32
- @updated_at = updated_at
29
+ @revision_digest = revision_digest
33
30
  end
34
31
  end
35
32
  end
@@ -0,0 +1,19 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Shared
9
+
10
+
11
+ class Type < T::Enum
12
+ enums do
13
+ LINTING = new('linting')
14
+ CHANGES = new('changes')
15
+ end
16
+ end
17
+
18
+ end
19
+ end
@@ -12,9 +12,22 @@ module SpeakeasyClientSDK
12
12
  extend T::Sig
13
13
 
14
14
 
15
+ field :account_type, T.nilable(::SpeakeasyClientSDK::Shared::AccessTokenAccountType), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('account_type'), 'decoder': Utils.enum_from_string(::SpeakeasyClientSDK::Shared::AccessTokenAccountType, true) } }
15
16
 
16
-
17
- def initialize; end
17
+ field :id, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('id') } }
18
+
19
+ field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('name') } }
20
+
21
+ field :updated_at, T.nilable(::DateTime), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
22
+
23
+
24
+ sig { params(account_type: T.nilable(::SpeakeasyClientSDK::Shared::AccessTokenAccountType), id: T.nilable(::String), name: T.nilable(::String), updated_at: T.nilable(::DateTime)).void }
25
+ def initialize(account_type: nil, id: nil, name: nil, updated_at: nil)
26
+ @account_type = account_type
27
+ @id = id
28
+ @name = name
29
+ @updated_at = updated_at
30
+ end
18
31
  end
19
32
  end
20
33
  end
@@ -29,12 +29,14 @@ module SpeakeasyClientSDK
29
29
  autoload :PreflightRequest, 'speakeasy_client_sdk/models/shared/preflightrequest.rb'
30
30
  autoload :Claims, 'speakeasy_client_sdk/models/shared/claims.rb'
31
31
  autoload :AccessTokenUser, 'speakeasy_client_sdk/models/shared/accesstoken_user.rb'
32
+ autoload :AccessTokenAccountType, 'speakeasy_client_sdk/models/shared/accesstoken_account_type.rb'
32
33
  autoload :Workspaces, 'speakeasy_client_sdk/models/shared/workspaces.rb'
33
34
  autoload :AccessToken, 'speakeasy_client_sdk/models/shared/accesstoken.rb'
34
35
  autoload :User, 'speakeasy_client_sdk/models/shared/user.rb'
35
36
  autoload :Level, 'speakeasy_client_sdk/models/shared/level.rb'
36
37
  autoload :AccessDetails, 'speakeasy_client_sdk/models/shared/accessdetails.rb'
37
38
  autoload :AccountType, 'speakeasy_client_sdk/models/shared/account_type.rb'
39
+ autoload :FeatureFlags, 'speakeasy_client_sdk/models/shared/feature_flags.rb'
38
40
  autoload :ApiKeyDetails, 'speakeasy_client_sdk/models/shared/apikeydetails.rb'
39
41
  autoload :UnboundedRequest, 'speakeasy_client_sdk/models/shared/unboundedrequest.rb'
40
42
  autoload :BoundedRequest, 'speakeasy_client_sdk/models/shared/boundedrequest.rb'
@@ -43,6 +45,8 @@ module SpeakeasyClientSDK
43
45
  autoload :Filter, 'speakeasy_client_sdk/models/shared/filter.rb'
44
46
  autoload :OrganizationAccountType, 'speakeasy_client_sdk/models/shared/organization_account_type.rb'
45
47
  autoload :Organization, 'speakeasy_client_sdk/models/shared/organization.rb'
48
+ autoload :Type, 'speakeasy_client_sdk/models/shared/type.rb'
49
+ autoload :Report, 'speakeasy_client_sdk/models/shared/report.rb'
46
50
  autoload :EmbedAccessTokenResponse, 'speakeasy_client_sdk/models/shared/embedaccesstokenresponse.rb'
47
51
  autoload :EmbedToken, 'speakeasy_client_sdk/models/shared/embedtoken.rb'
48
52
  autoload :GenerateBumpType, 'speakeasy_client_sdk/models/shared/generate_bump_type.rb'
@@ -0,0 +1,133 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+ require 'faraday'
7
+ require 'faraday/multipart'
8
+ require 'sorbet-runtime'
9
+
10
+ module SpeakeasyClientSDK
11
+ extend T::Sig
12
+ class Reports
13
+ extend T::Sig
14
+ # REST APIs for managing reports
15
+
16
+ sig { params(sdk_config: SDKConfiguration).void }
17
+ def initialize(sdk_config)
18
+ @sdk_configuration = sdk_config
19
+ end
20
+
21
+
22
+ sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetChangesReportSignedUrlRequest)).returns(::SpeakeasyClientSDK::Operations::GetChangesReportSignedUrlResponse) }
23
+ def get_changes_report_signed_url(request)
24
+ # get_changes_report_signed_url - Get the signed access url for the change reports for a particular document.
25
+ url, params = @sdk_configuration.get_server_details
26
+ base_url = Utils.template_url(url, params)
27
+ url = Utils.generate_url(
28
+ ::SpeakeasyClientSDK::Operations::GetChangesReportSignedUrlRequest,
29
+ base_url,
30
+ '/v1/reports/changes/{documentChecksum}',
31
+ request,
32
+ @sdk_configuration.globals
33
+ )
34
+ headers = {}
35
+ headers['Accept'] = 'application/json'
36
+ headers['user-agent'] = @sdk_configuration.user_agent
37
+
38
+ r = @sdk_configuration.client.get(url) do |req|
39
+ req.headers = headers
40
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
41
+ end
42
+
43
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
44
+
45
+ res = ::SpeakeasyClientSDK::Operations::GetChangesReportSignedUrlResponse.new(
46
+ status_code: r.status, content_type: content_type, raw_response: r
47
+ )
48
+ if r.status == 200
49
+ if Utils.match_content_type(content_type, 'application/json')
50
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Operations::GetChangesReportSignedUrlSignedAccess)
51
+ res.signed_access = out
52
+ end
53
+ end
54
+ res
55
+ end
56
+
57
+
58
+ sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetLintingReportSignedUrlRequest)).returns(::SpeakeasyClientSDK::Operations::GetLintingReportSignedUrlResponse) }
59
+ def get_linting_report_signed_url(request)
60
+ # get_linting_report_signed_url - Get the signed access url for the linting reports for a particular document.
61
+ url, params = @sdk_configuration.get_server_details
62
+ base_url = Utils.template_url(url, params)
63
+ url = Utils.generate_url(
64
+ ::SpeakeasyClientSDK::Operations::GetLintingReportSignedUrlRequest,
65
+ base_url,
66
+ '/v1/reports/linting/{documentChecksum}',
67
+ request,
68
+ @sdk_configuration.globals
69
+ )
70
+ headers = {}
71
+ headers['Accept'] = 'application/json'
72
+ headers['user-agent'] = @sdk_configuration.user_agent
73
+
74
+ r = @sdk_configuration.client.get(url) do |req|
75
+ req.headers = headers
76
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
77
+ end
78
+
79
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
80
+
81
+ res = ::SpeakeasyClientSDK::Operations::GetLintingReportSignedUrlResponse.new(
82
+ status_code: r.status, content_type: content_type, raw_response: r
83
+ )
84
+ if r.status == 200
85
+ if Utils.match_content_type(content_type, 'application/json')
86
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Operations::GetLintingReportSignedUrlSignedAccess)
87
+ res.signed_access = out
88
+ end
89
+ end
90
+ res
91
+ end
92
+
93
+
94
+ sig { params(request: ::SpeakeasyClientSDK::Operations::UploadReportRequestBody).returns(::SpeakeasyClientSDK::Operations::UploadReportResponse) }
95
+ def upload_report(request)
96
+ # upload_report - Upload a report.
97
+ url, params = @sdk_configuration.get_server_details
98
+ base_url = Utils.template_url(url, params)
99
+ url = "#{base_url}/v1/reports"
100
+ headers = {}
101
+ req_content_type, data, form = Utils.serialize_request_body(request, :request, :multipart)
102
+ headers['content-type'] = req_content_type
103
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
104
+ headers['Accept'] = 'application/json'
105
+ headers['user-agent'] = @sdk_configuration.user_agent
106
+
107
+ r = @sdk_configuration.client.post(url) do |req|
108
+ req.headers = headers
109
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
110
+ if form
111
+ req.body = Utils.encode_form(form)
112
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
113
+ req.body = URI.encode_www_form(data)
114
+ else
115
+ req.body = data
116
+ end
117
+ end
118
+
119
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
120
+
121
+ res = ::SpeakeasyClientSDK::Operations::UploadReportResponse.new(
122
+ status_code: r.status, content_type: content_type, raw_response: r
123
+ )
124
+ if r.status == 200
125
+ if Utils.match_content_type(content_type, 'application/json')
126
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Operations::UploadReportUploadedReport)
127
+ res.uploaded_report = out
128
+ end
129
+ end
130
+ res
131
+ end
132
+ end
133
+ end
@@ -13,7 +13,7 @@ module SpeakeasyClientSDK
13
13
  class SDK
14
14
  extend T::Sig
15
15
 
16
- attr_accessor :apis, :api_endpoints, :metadata, :schemas, :artifacts, :auth, :requests, :organizations, :embeds, :events
16
+ attr_accessor :apis, :api_endpoints, :metadata, :schemas, :artifacts, :auth, :requests, :organizations, :reports, :embeds, :events
17
17
 
18
18
  sig do
19
19
  params(client: Faraday::Request,
@@ -97,6 +97,7 @@ module SpeakeasyClientSDK
97
97
  @auth = Auth.new(@sdk_configuration)
98
98
  @requests = Requests.new(@sdk_configuration)
99
99
  @organizations = Organizations.new(@sdk_configuration)
100
+ @reports = Reports.new(@sdk_configuration)
100
101
  @embeds = Embeds.new(@sdk_configuration)
101
102
  @events = Events.new(@sdk_configuration)
102
103
  end
@@ -41,9 +41,9 @@ module SpeakeasyClientSDK
41
41
  @globals = globals.nil? ? {} : globals
42
42
  @language = 'ruby'
43
43
  @openapi_doc_version = '0.4.0'
44
- @sdk_version = '4.1.3'
45
- @gen_version = '2.306.0'
46
- @user_agent = 'speakeasy-sdk/ruby 4.1.3 2.306.0 0.4.0 speakeasy_client_sdk_ruby'
44
+ @sdk_version = '4.1.5'
45
+ @gen_version = '2.308.2'
46
+ @user_agent = 'speakeasy-sdk/ruby 4.1.5 2.308.2 0.4.0 speakeasy_client_sdk_ruby'
47
47
  end
48
48
 
49
49
  sig { returns([String, T::Hash[Symbol, String]]) }
@@ -15,6 +15,7 @@ module SpeakeasyClientSDK
15
15
  autoload :Auth, 'speakeasy_client_sdk/auth'
16
16
  autoload :Requests, 'speakeasy_client_sdk/requests'
17
17
  autoload :Organizations, 'speakeasy_client_sdk/organizations'
18
+ autoload :Reports, 'speakeasy_client_sdk/reports'
18
19
  autoload :Embeds, 'speakeasy_client_sdk/embeds'
19
20
  autoload :Events, 'speakeasy_client_sdk/events'
20
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: speakeasy_client_sdk_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.3
4
+ version: 4.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Speakeasy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-13 00:00:00.000000000 Z
11
+ date: 2024-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -189,8 +189,14 @@ files:
189
189
  - lib/speakeasy_client_sdk/models/operations/getapis_response.rb
190
190
  - lib/speakeasy_client_sdk/models/operations/getblob_request.rb
191
191
  - lib/speakeasy_client_sdk/models/operations/getblob_response.rb
192
+ - lib/speakeasy_client_sdk/models/operations/getchangesreportsignedurl_request.rb
193
+ - lib/speakeasy_client_sdk/models/operations/getchangesreportsignedurl_response.rb
194
+ - lib/speakeasy_client_sdk/models/operations/getchangesreportsignedurl_signedaccess.rb
192
195
  - lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_request.rb
193
196
  - lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_response.rb
197
+ - lib/speakeasy_client_sdk/models/operations/getlintingreportsignedurl_request.rb
198
+ - lib/speakeasy_client_sdk/models/operations/getlintingreportsignedurl_response.rb
199
+ - lib/speakeasy_client_sdk/models/operations/getlintingreportsignedurl_signedaccess.rb
194
200
  - lib/speakeasy_client_sdk/models/operations/getmanifest_request.rb
195
201
  - lib/speakeasy_client_sdk/models/operations/getmanifest_response.rb
196
202
  - lib/speakeasy_client_sdk/models/operations/getnamespaces_response.rb
@@ -228,11 +234,15 @@ files:
228
234
  - lib/speakeasy_client_sdk/models/operations/queryeventlog_request.rb
229
235
  - lib/speakeasy_client_sdk/models/operations/queryeventlog_response.rb
230
236
  - lib/speakeasy_client_sdk/models/operations/queryparam_op.rb
237
+ - lib/speakeasy_client_sdk/models/operations/registerschema_file.rb
231
238
  - lib/speakeasy_client_sdk/models/operations/registerschema_request.rb
232
239
  - lib/speakeasy_client_sdk/models/operations/registerschema_requestbody.rb
233
240
  - lib/speakeasy_client_sdk/models/operations/registerschema_response.rb
234
241
  - lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_request.rb
235
242
  - lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_response.rb
243
+ - lib/speakeasy_client_sdk/models/operations/uploadreport_requestbody.rb
244
+ - lib/speakeasy_client_sdk/models/operations/uploadreport_response.rb
245
+ - lib/speakeasy_client_sdk/models/operations/uploadreport_uploadedreport.rb
236
246
  - lib/speakeasy_client_sdk/models/operations/upsertapi_request.rb
237
247
  - lib/speakeasy_client_sdk/models/operations/upsertapi_response.rb
238
248
  - lib/speakeasy_client_sdk/models/operations/upsertapiendpoint_request.rb
@@ -241,6 +251,7 @@ files:
241
251
  - lib/speakeasy_client_sdk/models/shared.rb
242
252
  - lib/speakeasy_client_sdk/models/shared/accessdetails.rb
243
253
  - lib/speakeasy_client_sdk/models/shared/accesstoken.rb
254
+ - lib/speakeasy_client_sdk/models/shared/accesstoken_account_type.rb
244
255
  - lib/speakeasy_client_sdk/models/shared/accesstoken_user.rb
245
256
  - lib/speakeasy_client_sdk/models/shared/account_type.rb
246
257
  - lib/speakeasy_client_sdk/models/shared/annotations.rb
@@ -255,6 +266,7 @@ files:
255
266
  - lib/speakeasy_client_sdk/models/shared/embedaccesstokenresponse.rb
256
267
  - lib/speakeasy_client_sdk/models/shared/embedtoken.rb
257
268
  - lib/speakeasy_client_sdk/models/shared/error.rb
269
+ - lib/speakeasy_client_sdk/models/shared/feature_flags.rb
258
270
  - lib/speakeasy_client_sdk/models/shared/filter.rb
259
271
  - lib/speakeasy_client_sdk/models/shared/filters.rb
260
272
  - lib/speakeasy_client_sdk/models/shared/generate_bump_type.rb
@@ -270,6 +282,7 @@ files:
270
282
  - lib/speakeasy_client_sdk/models/shared/organization_account_type.rb
271
283
  - lib/speakeasy_client_sdk/models/shared/preflightrequest.rb
272
284
  - lib/speakeasy_client_sdk/models/shared/preflighttoken.rb
285
+ - lib/speakeasy_client_sdk/models/shared/report.rb
273
286
  - lib/speakeasy_client_sdk/models/shared/requestmetadata.rb
274
287
  - lib/speakeasy_client_sdk/models/shared/revision.rb
275
288
  - lib/speakeasy_client_sdk/models/shared/schema.rb
@@ -277,6 +290,7 @@ files:
277
290
  - lib/speakeasy_client_sdk/models/shared/security.rb
278
291
  - lib/speakeasy_client_sdk/models/shared/tag.rb
279
292
  - lib/speakeasy_client_sdk/models/shared/targetsdk.rb
293
+ - lib/speakeasy_client_sdk/models/shared/type.rb
280
294
  - lib/speakeasy_client_sdk/models/shared/unboundedrequest.rb
281
295
  - lib/speakeasy_client_sdk/models/shared/user.rb
282
296
  - lib/speakeasy_client_sdk/models/shared/v2descriptor.rb
@@ -285,6 +299,7 @@ files:
285
299
  - lib/speakeasy_client_sdk/models/shared/versionmetadata_input.rb
286
300
  - lib/speakeasy_client_sdk/models/shared/workspaces.rb
287
301
  - lib/speakeasy_client_sdk/organizations.rb
302
+ - lib/speakeasy_client_sdk/reports.rb
288
303
  - lib/speakeasy_client_sdk/requests.rb
289
304
  - lib/speakeasy_client_sdk/schemas.rb
290
305
  - lib/speakeasy_client_sdk/sdk.rb