speakeasy_client_sdk_ruby 4.1.3 → 4.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/lib/speakeasy_client_sdk/models/operations/getlintingreportsignedurl_request.rb +24 -0
  3. data/lib/speakeasy_client_sdk/models/operations/getlintingreportsignedurl_response.rb +33 -0
  4. data/lib/speakeasy_client_sdk/models/operations/getlintingreportsignedurl_signedaccess.rb +24 -0
  5. data/lib/speakeasy_client_sdk/models/operations/getmanifest_request.rb +1 -1
  6. data/lib/speakeasy_client_sdk/models/operations/getworkspacetargets_response.rb +1 -1
  7. data/lib/speakeasy_client_sdk/models/operations/postworkspaceevents_response.rb +1 -1
  8. data/lib/speakeasy_client_sdk/models/operations/registerschema_file.rb +27 -0
  9. data/lib/speakeasy_client_sdk/models/operations/registerschema_requestbody.rb +2 -2
  10. data/lib/speakeasy_client_sdk/models/operations/uploadreport_requestbody.rb +27 -0
  11. data/lib/speakeasy_client_sdk/models/operations/uploadreport_response.rb +33 -0
  12. data/lib/speakeasy_client_sdk/models/operations/uploadreport_uploadedreport.rb +24 -0
  13. data/lib/speakeasy_client_sdk/models/operations.rb +8 -1
  14. data/lib/speakeasy_client_sdk/models/shared/accesstoken_account_type.rb +20 -0
  15. data/lib/speakeasy_client_sdk/models/shared/apikeydetails.rb +5 -2
  16. data/lib/speakeasy_client_sdk/models/shared/feature_flags.rb +18 -0
  17. data/lib/speakeasy_client_sdk/models/shared/report.rb +24 -0
  18. data/lib/speakeasy_client_sdk/models/shared/revision.rb +6 -3
  19. data/lib/speakeasy_client_sdk/models/shared/tag.rb +8 -11
  20. data/lib/speakeasy_client_sdk/models/shared/type.rb +19 -0
  21. data/lib/speakeasy_client_sdk/models/shared/workspaces.rb +15 -2
  22. data/lib/speakeasy_client_sdk/models/shared.rb +4 -0
  23. data/lib/speakeasy_client_sdk/reports.rb +97 -0
  24. data/lib/speakeasy_client_sdk/sdk.rb +2 -1
  25. data/lib/speakeasy_client_sdk/sdkconfiguration.rb +3 -3
  26. data/lib/speakeasy_client_sdk_ruby.rb +1 -0
  27. metadata +14 -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: 2972d37e1ac886b59f969f6ef16dae783432112940d77abb282f361ecf1dd62e
4
+ data.tar.gz: 807eb705202c5895b8095a9f0bf5d66725b1677295d2640b8bc47cdf7feaabcb
5
5
  SHA512:
6
- metadata.gz: 107f389b470354f5ba91455b90f35817dd2ea319bb0bf5c219fae680b1a34549e81bd2eb7e6273b8217843b6792e59c91ffc4c27b3190bba3307efbd7c348018
7
- data.tar.gz: 06d237845a8b8dfad8a34046198540d020ffc55ef4e021468fcf69c14ae30b989379e1c9f3b733331b9f60f204d8bb8251067c0e7eed003c6b8bf7272ca5d918
6
+ metadata.gz: df06b280a9aefb66c69bf5f58f967a71c80ad5a5f8837975b235305cdf481db1a63e5f68d488647205b2639bafbc53fdce7eecbae3268f3100e9d8ead431079e
7
+ data.tar.gz: 9d214ecf787d57b1f3f76c6e22f42560a90b654a1cf5c6bc052a67eae7dae9a792d8d291da73af60a31874868824582ae2cb67aba598601837716de273c14422
@@ -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,13 @@ 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 :GetLintingReportSignedUrlRequest, 'speakeasy_client_sdk/models/operations/getlintingreportsignedurl_request.rb'
86
+ autoload :GetLintingReportSignedUrlSignedAccess, 'speakeasy_client_sdk/models/operations/getlintingreportsignedurl_signedaccess.rb'
87
+ autoload :GetLintingReportSignedUrlResponse, 'speakeasy_client_sdk/models/operations/getlintingreportsignedurl_response.rb'
88
+ autoload :File, 'speakeasy_client_sdk/models/operations/file.rb'
89
+ autoload :UploadReportRequestBody, 'speakeasy_client_sdk/models/operations/uploadreport_requestbody.rb'
90
+ autoload :UploadReportUploadedReport, 'speakeasy_client_sdk/models/operations/uploadreport_uploadedreport.rb'
91
+ autoload :UploadReportResponse, 'speakeasy_client_sdk/models/operations/uploadreport_response.rb'
85
92
  autoload :GetEmbedAccessTokenRequest, 'speakeasy_client_sdk/models/operations/getembedaccesstoken_request.rb'
86
93
  autoload :GetEmbedAccessTokenResponse, 'speakeasy_client_sdk/models/operations/getembedaccesstoken_response.rb'
87
94
  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,97 @@
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::GetLintingReportSignedUrlRequest)).returns(::SpeakeasyClientSDK::Operations::GetLintingReportSignedUrlResponse) }
23
+ def get_linting_report_signed_url(request)
24
+ # get_linting_report_signed_url - Get the signed access url for the linting 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::GetLintingReportSignedUrlRequest,
29
+ base_url,
30
+ '/v1/reports/linting/{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::GetLintingReportSignedUrlResponse.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::GetLintingReportSignedUrlSignedAccess)
51
+ res.signed_access = out
52
+ end
53
+ end
54
+ res
55
+ end
56
+
57
+
58
+ sig { params(request: ::SpeakeasyClientSDK::Operations::UploadReportRequestBody).returns(::SpeakeasyClientSDK::Operations::UploadReportResponse) }
59
+ def upload_report(request)
60
+ # upload_report - Upload a report.
61
+ url, params = @sdk_configuration.get_server_details
62
+ base_url = Utils.template_url(url, params)
63
+ url = "#{base_url}/v1/reports"
64
+ headers = {}
65
+ req_content_type, data, form = Utils.serialize_request_body(request, :request, :multipart)
66
+ headers['content-type'] = req_content_type
67
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
68
+ headers['Accept'] = 'application/json'
69
+ headers['user-agent'] = @sdk_configuration.user_agent
70
+
71
+ r = @sdk_configuration.client.post(url) do |req|
72
+ req.headers = headers
73
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
74
+ if form
75
+ req.body = Utils.encode_form(form)
76
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
77
+ req.body = URI.encode_www_form(data)
78
+ else
79
+ req.body = data
80
+ end
81
+ end
82
+
83
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
84
+
85
+ res = ::SpeakeasyClientSDK::Operations::UploadReportResponse.new(
86
+ status_code: r.status, content_type: content_type, raw_response: r
87
+ )
88
+ if r.status == 200
89
+ if Utils.match_content_type(content_type, 'application/json')
90
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Operations::UploadReportUploadedReport)
91
+ res.uploaded_report = out
92
+ end
93
+ end
94
+ res
95
+ end
96
+ end
97
+ 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.4'
45
+ @gen_version = '2.306.3'
46
+ @user_agent = 'speakeasy-sdk/ruby 4.1.4 2.306.3 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.4
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-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -191,6 +191,9 @@ files:
191
191
  - lib/speakeasy_client_sdk/models/operations/getblob_response.rb
192
192
  - lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_request.rb
193
193
  - lib/speakeasy_client_sdk/models/operations/getembedaccesstoken_response.rb
194
+ - lib/speakeasy_client_sdk/models/operations/getlintingreportsignedurl_request.rb
195
+ - lib/speakeasy_client_sdk/models/operations/getlintingreportsignedurl_response.rb
196
+ - lib/speakeasy_client_sdk/models/operations/getlintingreportsignedurl_signedaccess.rb
194
197
  - lib/speakeasy_client_sdk/models/operations/getmanifest_request.rb
195
198
  - lib/speakeasy_client_sdk/models/operations/getmanifest_response.rb
196
199
  - lib/speakeasy_client_sdk/models/operations/getnamespaces_response.rb
@@ -228,11 +231,15 @@ files:
228
231
  - lib/speakeasy_client_sdk/models/operations/queryeventlog_request.rb
229
232
  - lib/speakeasy_client_sdk/models/operations/queryeventlog_response.rb
230
233
  - lib/speakeasy_client_sdk/models/operations/queryparam_op.rb
234
+ - lib/speakeasy_client_sdk/models/operations/registerschema_file.rb
231
235
  - lib/speakeasy_client_sdk/models/operations/registerschema_request.rb
232
236
  - lib/speakeasy_client_sdk/models/operations/registerschema_requestbody.rb
233
237
  - lib/speakeasy_client_sdk/models/operations/registerschema_response.rb
234
238
  - lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_request.rb
235
239
  - lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_response.rb
240
+ - lib/speakeasy_client_sdk/models/operations/uploadreport_requestbody.rb
241
+ - lib/speakeasy_client_sdk/models/operations/uploadreport_response.rb
242
+ - lib/speakeasy_client_sdk/models/operations/uploadreport_uploadedreport.rb
236
243
  - lib/speakeasy_client_sdk/models/operations/upsertapi_request.rb
237
244
  - lib/speakeasy_client_sdk/models/operations/upsertapi_response.rb
238
245
  - lib/speakeasy_client_sdk/models/operations/upsertapiendpoint_request.rb
@@ -241,6 +248,7 @@ files:
241
248
  - lib/speakeasy_client_sdk/models/shared.rb
242
249
  - lib/speakeasy_client_sdk/models/shared/accessdetails.rb
243
250
  - lib/speakeasy_client_sdk/models/shared/accesstoken.rb
251
+ - lib/speakeasy_client_sdk/models/shared/accesstoken_account_type.rb
244
252
  - lib/speakeasy_client_sdk/models/shared/accesstoken_user.rb
245
253
  - lib/speakeasy_client_sdk/models/shared/account_type.rb
246
254
  - lib/speakeasy_client_sdk/models/shared/annotations.rb
@@ -255,6 +263,7 @@ files:
255
263
  - lib/speakeasy_client_sdk/models/shared/embedaccesstokenresponse.rb
256
264
  - lib/speakeasy_client_sdk/models/shared/embedtoken.rb
257
265
  - lib/speakeasy_client_sdk/models/shared/error.rb
266
+ - lib/speakeasy_client_sdk/models/shared/feature_flags.rb
258
267
  - lib/speakeasy_client_sdk/models/shared/filter.rb
259
268
  - lib/speakeasy_client_sdk/models/shared/filters.rb
260
269
  - lib/speakeasy_client_sdk/models/shared/generate_bump_type.rb
@@ -270,6 +279,7 @@ files:
270
279
  - lib/speakeasy_client_sdk/models/shared/organization_account_type.rb
271
280
  - lib/speakeasy_client_sdk/models/shared/preflightrequest.rb
272
281
  - lib/speakeasy_client_sdk/models/shared/preflighttoken.rb
282
+ - lib/speakeasy_client_sdk/models/shared/report.rb
273
283
  - lib/speakeasy_client_sdk/models/shared/requestmetadata.rb
274
284
  - lib/speakeasy_client_sdk/models/shared/revision.rb
275
285
  - lib/speakeasy_client_sdk/models/shared/schema.rb
@@ -277,6 +287,7 @@ files:
277
287
  - lib/speakeasy_client_sdk/models/shared/security.rb
278
288
  - lib/speakeasy_client_sdk/models/shared/tag.rb
279
289
  - lib/speakeasy_client_sdk/models/shared/targetsdk.rb
290
+ - lib/speakeasy_client_sdk/models/shared/type.rb
280
291
  - lib/speakeasy_client_sdk/models/shared/unboundedrequest.rb
281
292
  - lib/speakeasy_client_sdk/models/shared/user.rb
282
293
  - lib/speakeasy_client_sdk/models/shared/v2descriptor.rb
@@ -285,6 +296,7 @@ files:
285
296
  - lib/speakeasy_client_sdk/models/shared/versionmetadata_input.rb
286
297
  - lib/speakeasy_client_sdk/models/shared/workspaces.rb
287
298
  - lib/speakeasy_client_sdk/organizations.rb
299
+ - lib/speakeasy_client_sdk/reports.rb
288
300
  - lib/speakeasy_client_sdk/requests.rb
289
301
  - lib/speakeasy_client_sdk/schemas.rb
290
302
  - lib/speakeasy_client_sdk/sdk.rb