speakeasy_client_sdk_ruby 4.2.9 → 4.2.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/lib/speakeasy_client_sdk/artifacts.rb +43 -1
  3. data/lib/speakeasy_client_sdk/github.rb +38 -0
  4. data/lib/speakeasy_client_sdk/models/operations/applyoperationids_request.rb +27 -0
  5. data/lib/speakeasy_client_sdk/models/operations/applyoperationids_requestbody.rb +24 -0
  6. data/lib/speakeasy_client_sdk/models/operations/applyoperationids_response.rb +39 -0
  7. data/lib/speakeasy_client_sdk/models/operations/getaction_request.rb +30 -0
  8. data/lib/speakeasy_client_sdk/models/operations/getaction_response.rb +36 -0
  9. data/lib/speakeasy_client_sdk/models/operations/getoassummary_request.rb +27 -0
  10. data/lib/speakeasy_client_sdk/models/operations/getoassummary_response.rb +36 -0
  11. data/lib/speakeasy_client_sdk/models/operations/suggestoperationids_request.rb +30 -0
  12. data/lib/speakeasy_client_sdk/models/operations/suggestoperationids_requestbody.rb +2 -2
  13. data/lib/speakeasy_client_sdk/models/operations/suggestoperationids_response.rb +4 -4
  14. data/lib/speakeasy_client_sdk/models/operations/suggestoperationidsregistry_request.rb +36 -0
  15. data/lib/speakeasy_client_sdk/models/operations/suggestoperationidsregistry_response.rb +33 -0
  16. data/lib/speakeasy_client_sdk/models/operations.rb +10 -4
  17. data/lib/speakeasy_client_sdk/models/{operations → shared}/depth_style.rb +1 -1
  18. data/lib/speakeasy_client_sdk/models/shared/githubgetactionresponse.rb +27 -0
  19. data/lib/speakeasy_client_sdk/models/shared/githubtriggeractionrequest.rb +5 -2
  20. data/lib/speakeasy_client_sdk/models/shared/license.rb +24 -0
  21. data/lib/speakeasy_client_sdk/models/shared/oasinfo.rb +36 -0
  22. data/lib/speakeasy_client_sdk/models/shared/oasoperation.rb +36 -0
  23. data/lib/speakeasy_client_sdk/models/shared/oassummary.rb +27 -0
  24. data/lib/speakeasy_client_sdk/models/{operations → shared}/style.rb +1 -1
  25. data/lib/speakeasy_client_sdk/models/{operations/suggestoperationids_suggestion.rb → shared/suggestedoperationids.rb} +3 -3
  26. data/lib/speakeasy_client_sdk/models/shared/suggestoperationidsopts.rb +27 -0
  27. data/lib/speakeasy_client_sdk/models/shared.rb +9 -0
  28. data/lib/speakeasy_client_sdk/sdkconfiguration.rb +3 -3
  29. data/lib/speakeasy_client_sdk/suggest.rb +100 -5
  30. metadata +21 -6
  31. data/lib/speakeasy_client_sdk/models/operations/opts.rb +0 -27
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63371e8fd1ffc4446d688c7f3610445d7d240bd415573216eb281616a3796ac0
4
- data.tar.gz: 1351f6d7b4c51d9289b09e27e0edb7538050abd49bbe8187736d189a161a6930
3
+ metadata.gz: eb484d85a892a4f33c7b43d09efa0d37b9b0aec3a6976fbfad5de9c5bc96c281
4
+ data.tar.gz: 5fbb7ec7645e1c9b12e75888f2253ac445961a27e4b309ca115f6e188527483e
5
5
  SHA512:
6
- metadata.gz: 6d203cfb8423e6c2e69a1bdff249bc5f1407b695559a262dfd8bb19f6965a828567ad6f2925d84e9e091300f7cf24a35101c29e65d7ed7d1ca9407e74ecb7291
7
- data.tar.gz: 932b5709570694d6755c10e9f7216f154d51daaa87b7f71394ef5d177774a2c8fe8990af2bdb34c7490beaeb3ee541d3eebcdab655b4cd8018eea6efbc6fd45f
6
+ metadata.gz: 17344dc3bba2c0c28759f84518afcde5a1438809608e5dbda89b731b95f17f9b59045e39911ac8d8a9ba64eb3a06806513d8e83dd60f91ae7567cfd8b3b26227
7
+ data.tar.gz: 9ed88f5dd92102f73efc09357a139087a89d8bf0509a4a0e4bf91bdd7938e10d2aa5769e92c2d108c8b7bda903bc358f9f1bf6d8ed114e567ffa56991b264adb
@@ -11,7 +11,7 @@ module SpeakeasyClientSDK
11
11
  extend T::Sig
12
12
  class Artifacts
13
13
  extend T::Sig
14
-
14
+ # REST APIs for working with Registry artifacts
15
15
 
16
16
  sig { params(sdk_config: SDKConfiguration).void }
17
17
  def initialize(sdk_config)
@@ -137,6 +137,48 @@ module SpeakeasyClientSDK
137
137
  end
138
138
 
139
139
 
140
+ sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetOASSummaryRequest)).returns(::SpeakeasyClientSDK::Operations::GetOASSummaryResponse) }
141
+ def get_oas_summary(request)
142
+
143
+ url, params = @sdk_configuration.get_server_details
144
+ base_url = Utils.template_url(url, params)
145
+ url = Utils.generate_url(
146
+ ::SpeakeasyClientSDK::Operations::GetOASSummaryRequest,
147
+ base_url,
148
+ '/v1/artifacts/namespaces/{namespace_name}/revisions/{revision_reference}/summary',
149
+ request,
150
+ @sdk_configuration.globals
151
+ )
152
+ headers = {}
153
+ headers['Accept'] = 'application/json'
154
+ headers['user-agent'] = @sdk_configuration.user_agent
155
+
156
+ r = @sdk_configuration.client.get(url) do |req|
157
+ req.headers = headers
158
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
159
+ end
160
+
161
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
162
+
163
+ res = ::SpeakeasyClientSDK::Operations::GetOASSummaryResponse.new(
164
+ status_code: r.status, content_type: content_type, raw_response: r
165
+ )
166
+ if r.status == 200
167
+ if Utils.match_content_type(content_type, 'application/json')
168
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::OASSummary)
169
+ res.oas_summary = out
170
+ end
171
+ else
172
+
173
+ if Utils.match_content_type(content_type, 'application/json')
174
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
175
+ res.error = out
176
+ end
177
+ end
178
+ res
179
+ end
180
+
181
+
140
182
  sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetRevisionsRequest)).returns(::SpeakeasyClientSDK::Operations::GetRevisionsResponse) }
141
183
  def get_revisions(request)
142
184
 
@@ -221,6 +221,44 @@ module SpeakeasyClientSDK
221
221
  end
222
222
 
223
223
 
224
+ sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetActionRequest)).returns(::SpeakeasyClientSDK::Operations::GetActionResponse) }
225
+ def get_action(request)
226
+
227
+ url, params = @sdk_configuration.get_server_details
228
+ base_url = Utils.template_url(url, params)
229
+ url = "#{base_url}/v1/github/action"
230
+ headers = {}
231
+ query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GetActionRequest, request, @sdk_configuration.globals)
232
+ headers['Accept'] = 'application/json'
233
+ headers['user-agent'] = @sdk_configuration.user_agent
234
+
235
+ r = @sdk_configuration.client.get(url) do |req|
236
+ req.headers = headers
237
+ req.params = query_params
238
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
239
+ end
240
+
241
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
242
+
243
+ res = ::SpeakeasyClientSDK::Operations::GetActionResponse.new(
244
+ status_code: r.status, content_type: content_type, raw_response: r
245
+ )
246
+ if r.status == 200
247
+ if Utils.match_content_type(content_type, 'application/json')
248
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::GithubGetActionResponse)
249
+ res.github_get_action_response = out
250
+ end
251
+ else
252
+
253
+ if Utils.match_content_type(content_type, 'application/json')
254
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
255
+ res.error = out
256
+ end
257
+ end
258
+ res
259
+ end
260
+
261
+
224
262
  sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GithubCheckPublishingSecretsRequest)).returns(::SpeakeasyClientSDK::Operations::GithubCheckPublishingSecretsResponse) }
225
263
  def github_check_publishing_secrets(request)
226
264
 
@@ -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 ApplyOperationIDsRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :x_session_id, ::String, { 'header': { 'field_name': 'x-session-id', 'style': 'simple', 'explode': false } }
16
+ # Apply options
17
+ field :request_body, T.nilable(::SpeakeasyClientSDK::Operations::ApplyOperationIDsRequestBody), { 'request': { 'media_type': 'application/json' } }
18
+
19
+
20
+ sig { params(x_session_id: ::String, request_body: T.nilable(::SpeakeasyClientSDK::Operations::ApplyOperationIDsRequestBody)).void }
21
+ def initialize(x_session_id: nil, request_body: nil)
22
+ @x_session_id = x_session_id
23
+ @request_body = request_body
24
+ end
25
+ end
26
+ end
27
+ 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
+ # Apply options
11
+ class ApplyOperationIDsRequestBody < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # Whether to apply the suggestions as an overlay or replace the existing operationIDs. Default: false
15
+ field :as_overlay, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('as_overlay') } }
16
+
17
+
18
+ sig { params(as_overlay: T.nilable(T::Boolean)).void }
19
+ def initialize(as_overlay: nil)
20
+ @as_overlay = as_overlay
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,39 @@
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 ApplyOperationIDsResponse < ::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 :two_hundred_application_json_schema, T.nilable(::String)
22
+ # OK
23
+ field :two_hundred_application_x_yaml_schema, T.nilable(::String)
24
+ # Default error response
25
+ field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
26
+
27
+
28
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, two_hundred_application_json_schema: T.nilable(::String), two_hundred_application_x_yaml_schema: T.nilable(::String), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
29
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, two_hundred_application_json_schema: nil, two_hundred_application_x_yaml_schema: nil, error: nil)
30
+ @content_type = content_type
31
+ @raw_response = raw_response
32
+ @status_code = status_code
33
+ @two_hundred_application_json_schema = two_hundred_application_json_schema
34
+ @two_hundred_application_x_yaml_schema = two_hundred_application_x_yaml_schema
35
+ @error = error
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,30 @@
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 GetActionRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :org, ::String, { 'query_param': { 'field_name': 'org', 'style': 'form', 'explode': true } }
16
+
17
+ field :repo, ::String, { 'query_param': { 'field_name': 'repo', 'style': 'form', 'explode': true } }
18
+ # The targetName of the workflow target.
19
+ field :target_name, T.nilable(::String), { 'query_param': { 'field_name': 'targetName', 'style': 'form', 'explode': true } }
20
+
21
+
22
+ sig { params(org: ::String, repo: ::String, target_name: T.nilable(::String)).void }
23
+ def initialize(org: nil, repo: nil, target_name: nil)
24
+ @org = org
25
+ @repo = repo
26
+ @target_name = target_name
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,36 @@
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 GetActionResponse < ::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
+ # Default error response
21
+ field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
22
+ # OK
23
+ field :github_get_action_response, T.nilable(::SpeakeasyClientSDK::Shared::GithubGetActionResponse)
24
+
25
+
26
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error), github_get_action_response: T.nilable(::SpeakeasyClientSDK::Shared::GithubGetActionResponse)).void }
27
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, github_get_action_response: nil)
28
+ @content_type = content_type
29
+ @raw_response = raw_response
30
+ @status_code = status_code
31
+ @error = error
32
+ @github_get_action_response = github_get_action_response
33
+ end
34
+ end
35
+ end
36
+ 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
+
11
+ class GetOASSummaryRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :namespace_name, ::String, { 'path_param': { 'field_name': 'namespace_name', 'style': 'simple', 'explode': false } }
16
+
17
+ field :revision_reference, ::String, { 'path_param': { 'field_name': 'revision_reference', 'style': 'simple', 'explode': false } }
18
+
19
+
20
+ sig { params(namespace_name: ::String, revision_reference: ::String).void }
21
+ def initialize(namespace_name: nil, revision_reference: nil)
22
+ @namespace_name = namespace_name
23
+ @revision_reference = revision_reference
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,36 @@
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 GetOASSummaryResponse < ::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
+ # Default error response
21
+ field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
22
+ # OK
23
+ field :oas_summary, T.nilable(::SpeakeasyClientSDK::Shared::OASSummary)
24
+
25
+
26
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error), oas_summary: T.nilable(::SpeakeasyClientSDK::Shared::OASSummary)).void }
27
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, oas_summary: nil)
28
+ @content_type = content_type
29
+ @raw_response = raw_response
30
+ @status_code = status_code
31
+ @error = error
32
+ @oas_summary = oas_summary
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,30 @@
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 SuggestOperationIDsRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The schema file to upload provided as a multipart/form-data file segment.
15
+ field :request_body, ::SpeakeasyClientSDK::Operations::SuggestOperationIDsRequestBody, { 'request': { 'media_type': 'multipart/form-data' } }
16
+
17
+ field :x_session_id, ::String, { 'header': { 'field_name': 'x-session-id', 'style': 'simple', 'explode': false } }
18
+ # Max number of suggestions to request
19
+ field :limit, T.nilable(::Float), { 'query_param': { 'field_name': 'limit', 'style': 'form', 'explode': true } }
20
+
21
+
22
+ sig { params(request_body: ::SpeakeasyClientSDK::Operations::SuggestOperationIDsRequestBody, x_session_id: ::String, limit: T.nilable(::Float)).void }
23
+ def initialize(request_body: nil, x_session_id: nil, limit: nil)
24
+ @request_body = request_body
25
+ @x_session_id = x_session_id
26
+ @limit = limit
27
+ end
28
+ end
29
+ end
30
+ end
@@ -14,10 +14,10 @@ module SpeakeasyClientSDK
14
14
 
15
15
  field :schema, ::SpeakeasyClientSDK::Operations::Schema, { 'multipart_form': { 'file': true } }
16
16
 
17
- field :opts, T.nilable(::SpeakeasyClientSDK::Operations::Opts), { 'multipart_form': { 'field_name': 'opts', 'json': true } }
17
+ field :opts, T.nilable(::SpeakeasyClientSDK::Shared::SuggestOperationIDsOpts), { 'multipart_form': { 'field_name': 'opts', 'json': true } }
18
18
 
19
19
 
20
- sig { params(schema: ::SpeakeasyClientSDK::Operations::Schema, opts: T.nilable(::SpeakeasyClientSDK::Operations::Opts)).void }
20
+ sig { params(schema: ::SpeakeasyClientSDK::Operations::Schema, opts: T.nilable(::SpeakeasyClientSDK::Shared::SuggestOperationIDsOpts)).void }
21
21
  def initialize(schema: nil, opts: nil)
22
22
  @schema = schema
23
23
  @opts = opts
@@ -18,15 +18,15 @@ module SpeakeasyClientSDK
18
18
  # HTTP response status code for this operation
19
19
  field :status_code, ::Integer
20
20
  # OK
21
- field :suggestion, T.nilable(::SpeakeasyClientSDK::Operations::SuggestOperationIDsSuggestion)
21
+ field :suggested_operation_i_ds, T.nilable(::SpeakeasyClientSDK::Shared::SuggestedOperationIDs)
22
22
 
23
23
 
24
- sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, suggestion: T.nilable(::SpeakeasyClientSDK::Operations::SuggestOperationIDsSuggestion)).void }
25
- def initialize(content_type: nil, raw_response: nil, status_code: nil, suggestion: nil)
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, suggested_operation_i_ds: T.nilable(::SpeakeasyClientSDK::Shared::SuggestedOperationIDs)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, suggested_operation_i_ds: nil)
26
26
  @content_type = content_type
27
27
  @raw_response = raw_response
28
28
  @status_code = status_code
29
- @suggestion = suggestion
29
+ @suggested_operation_i_ds = suggested_operation_i_ds
30
30
  end
31
31
  end
32
32
  end
@@ -0,0 +1,36 @@
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 SuggestOperationIDsRegistryRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :namespace_name, ::String, { 'path_param': { 'field_name': 'namespace_name', 'style': 'simple', 'explode': false } }
16
+ # Tag or digest
17
+ field :revision_reference, ::String, { 'path_param': { 'field_name': 'revision_reference', 'style': 'simple', 'explode': false } }
18
+
19
+ field :x_session_id, ::String, { 'header': { 'field_name': 'x-session-id', 'style': 'simple', 'explode': false } }
20
+ # Max number of suggestions to request
21
+ field :limit, T.nilable(::Float), { 'query_param': { 'field_name': 'limit', 'style': 'form', 'explode': true } }
22
+ # The schema file to upload provided as a multipart/form-data file segment.
23
+ field :suggest_operation_i_ds_opts, T.nilable(::SpeakeasyClientSDK::Shared::SuggestOperationIDsOpts), { 'request': { 'media_type': 'application/json' } }
24
+
25
+
26
+ sig { params(namespace_name: ::String, revision_reference: ::String, x_session_id: ::String, limit: T.nilable(::Float), suggest_operation_i_ds_opts: T.nilable(::SpeakeasyClientSDK::Shared::SuggestOperationIDsOpts)).void }
27
+ def initialize(namespace_name: nil, revision_reference: nil, x_session_id: nil, limit: nil, suggest_operation_i_ds_opts: nil)
28
+ @namespace_name = namespace_name
29
+ @revision_reference = revision_reference
30
+ @x_session_id = x_session_id
31
+ @limit = limit
32
+ @suggest_operation_i_ds_opts = suggest_operation_i_ds_opts
33
+ end
34
+ end
35
+ end
36
+ 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 SuggestOperationIDsRegistryResponse < ::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 :suggested_operation_i_ds, T.nilable(::SpeakeasyClientSDK::Shared::SuggestedOperationIDs)
22
+
23
+
24
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, suggested_operation_i_ds: T.nilable(::SpeakeasyClientSDK::Shared::SuggestedOperationIDs)).void }
25
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, suggested_operation_i_ds: nil)
26
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @suggested_operation_i_ds = suggested_operation_i_ds
30
+ end
31
+ end
32
+ end
33
+ end
@@ -64,6 +64,8 @@ module SpeakeasyClientSDK
64
64
  autoload :GetManifestRequest, 'speakeasy_client_sdk/models/operations/getmanifest_request.rb'
65
65
  autoload :GetManifestResponse, 'speakeasy_client_sdk/models/operations/getmanifest_response.rb'
66
66
  autoload :GetNamespacesResponse, 'speakeasy_client_sdk/models/operations/getnamespaces_response.rb'
67
+ autoload :GetOASSummaryRequest, 'speakeasy_client_sdk/models/operations/getoassummary_request.rb'
68
+ autoload :GetOASSummaryResponse, 'speakeasy_client_sdk/models/operations/getoassummary_response.rb'
67
69
  autoload :GetRevisionsRequest, 'speakeasy_client_sdk/models/operations/getrevisions_request.rb'
68
70
  autoload :GetRevisionsResponse, 'speakeasy_client_sdk/models/operations/getrevisions_response.rb'
69
71
  autoload :GetTagsRequest, 'speakeasy_client_sdk/models/operations/gettags_request.rb'
@@ -90,6 +92,8 @@ module SpeakeasyClientSDK
90
92
  autoload :ConfigureTargetResponse, 'speakeasy_client_sdk/models/operations/configuretarget_response.rb'
91
93
  autoload :FetchPublishingPRsRequest, 'speakeasy_client_sdk/models/operations/fetchpublishingprs_request.rb'
92
94
  autoload :FetchPublishingPRsResponse, 'speakeasy_client_sdk/models/operations/fetchpublishingprs_response.rb'
95
+ autoload :GetActionRequest, 'speakeasy_client_sdk/models/operations/getaction_request.rb'
96
+ autoload :GetActionResponse, 'speakeasy_client_sdk/models/operations/getaction_response.rb'
93
97
  autoload :GithubCheckPublishingSecretsRequest, 'speakeasy_client_sdk/models/operations/githubcheckpublishingsecrets_request.rb'
94
98
  autoload :GithubCheckPublishingSecretsResponse, 'speakeasy_client_sdk/models/operations/githubcheckpublishingsecrets_response.rb'
95
99
  autoload :GithubStorePublishingSecretsResponse, 'speakeasy_client_sdk/models/operations/githubstorepublishingsecrets_response.rb'
@@ -107,13 +111,15 @@ module SpeakeasyClientSDK
107
111
  autoload :UploadReportRequestBody, 'speakeasy_client_sdk/models/operations/uploadreport_requestbody.rb'
108
112
  autoload :UploadReportUploadedReport, 'speakeasy_client_sdk/models/operations/uploadreport_uploadedreport.rb'
109
113
  autoload :UploadReportResponse, 'speakeasy_client_sdk/models/operations/uploadreport_response.rb'
110
- autoload :DepthStyle, 'speakeasy_client_sdk/models/operations/depth_style.rb'
111
- autoload :Style, 'speakeasy_client_sdk/models/operations/style.rb'
112
- autoload :Opts, 'speakeasy_client_sdk/models/operations/opts.rb'
114
+ autoload :ApplyOperationIDsRequestBody, 'speakeasy_client_sdk/models/operations/applyoperationids_requestbody.rb'
115
+ autoload :ApplyOperationIDsRequest, 'speakeasy_client_sdk/models/operations/applyoperationids_request.rb'
116
+ autoload :ApplyOperationIDsResponse, 'speakeasy_client_sdk/models/operations/applyoperationids_response.rb'
113
117
  autoload :Schema, 'speakeasy_client_sdk/models/operations/schema.rb'
114
118
  autoload :SuggestOperationIDsRequestBody, 'speakeasy_client_sdk/models/operations/suggestoperationids_requestbody.rb'
115
- autoload :SuggestOperationIDsSuggestion, 'speakeasy_client_sdk/models/operations/suggestoperationids_suggestion.rb'
119
+ autoload :SuggestOperationIDsRequest, 'speakeasy_client_sdk/models/operations/suggestoperationids_request.rb'
116
120
  autoload :SuggestOperationIDsResponse, 'speakeasy_client_sdk/models/operations/suggestoperationids_response.rb'
121
+ autoload :SuggestOperationIDsRegistryRequest, 'speakeasy_client_sdk/models/operations/suggestoperationidsregistry_request.rb'
122
+ autoload :SuggestOperationIDsRegistryResponse, 'speakeasy_client_sdk/models/operations/suggestoperationidsregistry_response.rb'
117
123
  autoload :GetEmbedAccessTokenRequest, 'speakeasy_client_sdk/models/operations/getembedaccesstoken_request.rb'
118
124
  autoload :GetEmbedAccessTokenResponse, 'speakeasy_client_sdk/models/operations/getembedaccesstoken_response.rb'
119
125
  autoload :GetValidEmbedAccessTokensResponse, 'speakeasy_client_sdk/models/operations/getvalidembedaccesstokens_response.rb'
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
  module SpeakeasyClientSDK
8
- module Operations
8
+ module Shared
9
9
 
10
10
 
11
11
  class DepthStyle < T::Enum
@@ -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 Shared
9
+
10
+ # response to a getting the latest action run on a GitHub request
11
+ class GithubGetActionResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The status of the latest action run if available
15
+ field :run_status, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('run_status') } }
16
+ # The URL for latest action run if available
17
+ field :run_url, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('run_url') } }
18
+
19
+
20
+ sig { params(run_status: T.nilable(::String), run_url: T.nilable(::String)).void }
21
+ def initialize(run_status: nil, run_url: nil)
22
+ @run_status = run_status
23
+ @run_url = run_url
24
+ end
25
+ end
26
+ end
27
+ end
@@ -17,15 +17,18 @@ module SpeakeasyClientSDK
17
17
  field :org, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org') } }
18
18
  # The GitHub repository name
19
19
  field :repo_name, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('repo_name') } }
20
+ # A version to override the SDK too in workflow dispatch
21
+ field :set_version, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('set_version') } }
20
22
  # The target name for the action
21
23
  field :target_name, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('target_name') } }
22
24
 
23
25
 
24
- sig { params(gen_lock_id: ::String, org: ::String, repo_name: ::String, target_name: T.nilable(::String)).void }
25
- def initialize(gen_lock_id: nil, org: nil, repo_name: nil, target_name: nil)
26
+ sig { params(gen_lock_id: ::String, org: ::String, repo_name: ::String, set_version: T.nilable(::String), target_name: T.nilable(::String)).void }
27
+ def initialize(gen_lock_id: nil, org: nil, repo_name: nil, set_version: nil, target_name: nil)
26
28
  @gen_lock_id = gen_lock_id
27
29
  @org = org
28
30
  @repo_name = repo_name
31
+ @set_version = set_version
29
32
  @target_name = target_name
30
33
  end
31
34
  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 License < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :identifier, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('identifier') } }
16
+
17
+
18
+ sig { params(identifier: T.nilable(::String)).void }
19
+ def initialize(identifier: nil)
20
+ @identifier = identifier
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,36 @@
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 OASInfo < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :description, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
16
+
17
+ field :license, ::SpeakeasyClientSDK::Shared::License, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('license') } }
18
+
19
+ field :summary, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('summary') } }
20
+
21
+ field :title, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('title') } }
22
+
23
+ field :version, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('version') } }
24
+
25
+
26
+ sig { params(description: ::String, license: ::SpeakeasyClientSDK::Shared::License, summary: ::String, title: ::String, version: ::String).void }
27
+ def initialize(description: nil, license: nil, summary: nil, title: nil, version: nil)
28
+ @description = description
29
+ @license = license
30
+ @summary = summary
31
+ @title = title
32
+ @version = version
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,36 @@
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 OASOperation < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :description, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('description') } }
16
+
17
+ field :method, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('method') } }
18
+
19
+ field :operation_id, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('operation_id') } }
20
+
21
+ field :path, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('path') } }
22
+
23
+ field :tags, T::Array[::String], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('tags') } }
24
+
25
+
26
+ sig { params(description: ::String, method: ::String, operation_id: ::String, path: ::String, tags: T::Array[::String]).void }
27
+ def initialize(description: nil, method: nil, operation_id: nil, path: nil, tags: nil)
28
+ @description = description
29
+ @method = method
30
+ @operation_id = operation_id
31
+ @path = path
32
+ @tags = tags
33
+ end
34
+ end
35
+ end
36
+ 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 Shared
9
+
10
+
11
+ class OASSummary < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :info, ::SpeakeasyClientSDK::Shared::OASInfo, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('info') } }
16
+
17
+ field :operations, T::Array[::SpeakeasyClientSDK::Shared::OASOperation], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('operations') } }
18
+
19
+
20
+ sig { params(info: ::SpeakeasyClientSDK::Shared::OASInfo, operations: T::Array[::SpeakeasyClientSDK::Shared::OASOperation]).void }
21
+ def initialize(info: nil, operations: nil)
22
+ @info = info
23
+ @operations = operations
24
+ end
25
+ end
26
+ end
27
+ end
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
  module SpeakeasyClientSDK
8
- module Operations
8
+ module Shared
9
9
 
10
10
 
11
11
  class Style < T::Enum
@@ -5,10 +5,10 @@
5
5
 
6
6
 
7
7
  module SpeakeasyClientSDK
8
- module Operations
8
+ module Shared
9
9
 
10
- # OK
11
- class SuggestOperationIDsSuggestion < ::SpeakeasyClientSDK::Utils::FieldAugmented
10
+
11
+ class SuggestedOperationIDs < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
14
 
@@ -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 Shared
9
+
10
+
11
+ class SuggestOperationIDsOpts < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :depth_style, T.nilable(::SpeakeasyClientSDK::Shared::DepthStyle), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('depth_style'), 'decoder': Utils.enum_from_string(::SpeakeasyClientSDK::Shared::DepthStyle, true) } }
16
+
17
+ field :style, T.nilable(::SpeakeasyClientSDK::Shared::Style), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('style'), 'decoder': Utils.enum_from_string(::SpeakeasyClientSDK::Shared::Style, true) } }
18
+
19
+
20
+ sig { params(depth_style: T.nilable(::SpeakeasyClientSDK::Shared::DepthStyle), style: T.nilable(::SpeakeasyClientSDK::Shared::Style)).void }
21
+ def initialize(depth_style: nil, style: nil)
22
+ @depth_style = depth_style
23
+ @style = style
24
+ end
25
+ end
26
+ end
27
+ end
@@ -21,6 +21,10 @@ module SpeakeasyClientSDK
21
21
  autoload :Annotations, 'speakeasy_client_sdk/models/shared/annotations.rb'
22
22
  autoload :GetNamespacesResponse, 'speakeasy_client_sdk/models/shared/getnamespacesresponse.rb'
23
23
  autoload :Namespace, 'speakeasy_client_sdk/models/shared/namespace.rb'
24
+ autoload :OASSummary, 'speakeasy_client_sdk/models/shared/oassummary.rb'
25
+ autoload :OASOperation, 'speakeasy_client_sdk/models/shared/oasoperation.rb'
26
+ autoload :License, 'speakeasy_client_sdk/models/shared/license.rb'
27
+ autoload :OASInfo, 'speakeasy_client_sdk/models/shared/oasinfo.rb'
24
28
  autoload :GetRevisionsResponse, 'speakeasy_client_sdk/models/shared/getrevisionsresponse.rb'
25
29
  autoload :Revision, 'speakeasy_client_sdk/models/shared/revision.rb'
26
30
  autoload :GetTagsResponse, 'speakeasy_client_sdk/models/shared/gettagsresponse.rb'
@@ -51,6 +55,7 @@ module SpeakeasyClientSDK
51
55
  autoload :GithubConfigureMintlifyRepoRequest, 'speakeasy_client_sdk/models/shared/githubconfiguremintlifyreporequest.rb'
52
56
  autoload :GithubConfigureTargetRequest, 'speakeasy_client_sdk/models/shared/githubconfiguretargetrequest.rb'
53
57
  autoload :GithubPublishingPRResponse, 'speakeasy_client_sdk/models/shared/githubpublishingprresponse.rb'
58
+ autoload :GithubGetActionResponse, 'speakeasy_client_sdk/models/shared/githubgetactionresponse.rb'
54
59
  autoload :GithubMissingPublishingSecretsResponse, 'speakeasy_client_sdk/models/shared/githubmissingpublishingsecretsresponse.rb'
55
60
  autoload :GithubStorePublishingSecretsRequest, 'speakeasy_client_sdk/models/shared/githubstorepublishingsecretsrequest.rb'
56
61
  autoload :GithubTriggerActionRequest, 'speakeasy_client_sdk/models/shared/githubtriggeractionrequest.rb'
@@ -60,6 +65,10 @@ module SpeakeasyClientSDK
60
65
  autoload :Organization, 'speakeasy_client_sdk/models/shared/organization.rb'
61
66
  autoload :Type, 'speakeasy_client_sdk/models/shared/type.rb'
62
67
  autoload :Report, 'speakeasy_client_sdk/models/shared/report.rb'
68
+ autoload :SuggestedOperationIDs, 'speakeasy_client_sdk/models/shared/suggestedoperationids.rb'
69
+ autoload :DepthStyle, 'speakeasy_client_sdk/models/shared/depth_style.rb'
70
+ autoload :Style, 'speakeasy_client_sdk/models/shared/style.rb'
71
+ autoload :SuggestOperationIDsOpts, 'speakeasy_client_sdk/models/shared/suggestoperationidsopts.rb'
63
72
  autoload :EmbedAccessTokenResponse, 'speakeasy_client_sdk/models/shared/embedaccesstokenresponse.rb'
64
73
  autoload :EmbedToken, 'speakeasy_client_sdk/models/shared/embedtoken.rb'
65
74
  autoload :GenerateBumpType, 'speakeasy_client_sdk/models/shared/generate_bump_type.rb'
@@ -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.2.9'
45
- @gen_version = '2.349.6'
46
- @user_agent = 'speakeasy-sdk/ruby 4.2.9 2.349.6 0.4.0 . speakeasy_client_sdk_ruby'
44
+ @sdk_version = '4.2.10'
45
+ @gen_version = '2.352.0'
46
+ @user_agent = 'speakeasy-sdk/ruby 4.2.10 2.352.0 0.4.0 . speakeasy_client_sdk_ruby'
47
47
  end
48
48
 
49
49
  sig { returns([String, T::Hash[Symbol, String]]) }
@@ -19,22 +19,69 @@ module SpeakeasyClientSDK
19
19
  end
20
20
 
21
21
 
22
- sig { params(request: ::SpeakeasyClientSDK::Operations::SuggestOperationIDsRequestBody).returns(::SpeakeasyClientSDK::Operations::SuggestOperationIDsResponse) }
22
+ sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::ApplyOperationIDsRequest)).returns(::SpeakeasyClientSDK::Operations::ApplyOperationIDsResponse) }
23
+ def apply_operation_i_ds(request)
24
+ # apply_operation_i_ds - Apply operation ID suggestions and download result.
25
+ url, params = @sdk_configuration.get_server_details
26
+ base_url = Utils.template_url(url, params)
27
+ url = "#{base_url}/v1/suggest/operation_ids/apply"
28
+ headers = Utils.get_headers(request, @sdk_configuration.globals)
29
+ req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :json)
30
+ headers['content-type'] = req_content_type
31
+ headers['Accept'] = 'application/json;q=1, application/x-yaml;q=0'
32
+ headers['user-agent'] = @sdk_configuration.user_agent
33
+
34
+ r = @sdk_configuration.client.post(url) do |req|
35
+ req.headers = headers
36
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
37
+ if form
38
+ req.body = Utils.encode_form(form)
39
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
40
+ req.body = URI.encode_www_form(data)
41
+ else
42
+ req.body = data
43
+ end
44
+ end
45
+
46
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
47
+
48
+ res = ::SpeakeasyClientSDK::Operations::ApplyOperationIDsResponse.new(
49
+ status_code: r.status, content_type: content_type, raw_response: r
50
+ )
51
+ if r.status == 200
52
+ res.two_hundred_application_json_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/json')
53
+
54
+ res.two_hundred_application_x_yaml_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/x-yaml')
55
+
56
+ else
57
+
58
+ if Utils.match_content_type(content_type, 'application/json')
59
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
60
+ res.error = out
61
+ end
62
+ end
63
+ res
64
+ end
65
+
66
+
67
+ sig { params(request: ::SpeakeasyClientSDK::Operations::SuggestOperationIDsRequest).returns(::SpeakeasyClientSDK::Operations::SuggestOperationIDsResponse) }
23
68
  def suggest_operation_i_ds(request)
24
69
  # suggest_operation_i_ds - Generate operation ID suggestions.
25
70
  # Get suggestions from an LLM model for improving the operationIDs in the provided schema.
26
71
  url, params = @sdk_configuration.get_server_details
27
72
  base_url = Utils.template_url(url, params)
28
73
  url = "#{base_url}/v1/suggest/operation_ids"
29
- headers = {}
30
- req_content_type, data, form = Utils.serialize_request_body(request, :request, :multipart)
74
+ headers = Utils.get_headers(request, @sdk_configuration.globals)
75
+ req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :multipart)
31
76
  headers['content-type'] = req_content_type
32
77
  raise StandardError, 'request body is required' if data.nil? && form.nil?
78
+ query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::SuggestOperationIDsRequest, request, @sdk_configuration.globals)
33
79
  headers['Accept'] = 'application/json'
34
80
  headers['user-agent'] = @sdk_configuration.user_agent
35
81
 
36
82
  r = @sdk_configuration.client.post(url) do |req|
37
83
  req.headers = headers
84
+ req.params = query_params
38
85
  Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
39
86
  if form
40
87
  req.body = Utils.encode_form(form)
@@ -52,8 +99,56 @@ module SpeakeasyClientSDK
52
99
  )
53
100
  if r.status == 200
54
101
  if Utils.match_content_type(content_type, 'application/json')
55
- out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Operations::SuggestOperationIDsSuggestion)
56
- res.suggestion = out
102
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::SuggestedOperationIDs)
103
+ res.suggested_operation_i_ds = out
104
+ end
105
+ end
106
+ res
107
+ end
108
+
109
+
110
+ sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::SuggestOperationIDsRegistryRequest)).returns(::SpeakeasyClientSDK::Operations::SuggestOperationIDsRegistryResponse) }
111
+ def suggest_operation_i_ds_registry(request)
112
+ # suggest_operation_i_ds_registry - Generate operation ID suggestions.
113
+ # Get suggestions from an LLM model for improving the operationIDs in the provided schema.
114
+ url, params = @sdk_configuration.get_server_details
115
+ base_url = Utils.template_url(url, params)
116
+ url = Utils.generate_url(
117
+ ::SpeakeasyClientSDK::Operations::SuggestOperationIDsRegistryRequest,
118
+ base_url,
119
+ '/v1/suggest/operation_ids/{namespace_name}/{revision_reference}',
120
+ request,
121
+ @sdk_configuration.globals
122
+ )
123
+ headers = Utils.get_headers(request, @sdk_configuration.globals)
124
+ req_content_type, data, form = Utils.serialize_request_body(request, :suggest_operation_i_ds_opts, :json)
125
+ headers['content-type'] = req_content_type
126
+ query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::SuggestOperationIDsRegistryRequest, request, @sdk_configuration.globals)
127
+ headers['Accept'] = 'application/json'
128
+ headers['user-agent'] = @sdk_configuration.user_agent
129
+
130
+ r = @sdk_configuration.client.post(url) do |req|
131
+ req.headers = headers
132
+ req.params = query_params
133
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
134
+ if form
135
+ req.body = Utils.encode_form(form)
136
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
137
+ req.body = URI.encode_www_form(data)
138
+ else
139
+ req.body = data
140
+ end
141
+ end
142
+
143
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
144
+
145
+ res = ::SpeakeasyClientSDK::Operations::SuggestOperationIDsRegistryResponse.new(
146
+ status_code: r.status, content_type: content_type, raw_response: r
147
+ )
148
+ if r.status == 200
149
+ if Utils.match_content_type(content_type, 'application/json')
150
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::SuggestedOperationIDs)
151
+ res.suggested_operation_i_ds = out
57
152
  end
58
153
  end
59
154
  res
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.2.9
4
+ version: 4.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Speakeasy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-22 00:00:00.000000000 Z
11
+ date: 2024-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -151,6 +151,9 @@ files:
151
151
  - lib/speakeasy_client_sdk/github.rb
152
152
  - lib/speakeasy_client_sdk/metadata.rb
153
153
  - lib/speakeasy_client_sdk/models/operations.rb
154
+ - lib/speakeasy_client_sdk/models/operations/applyoperationids_request.rb
155
+ - lib/speakeasy_client_sdk/models/operations/applyoperationids_requestbody.rb
156
+ - lib/speakeasy_client_sdk/models/operations/applyoperationids_response.rb
154
157
  - lib/speakeasy_client_sdk/models/operations/checkaccess_request.rb
155
158
  - lib/speakeasy_client_sdk/models/operations/checkaccess_response.rb
156
159
  - lib/speakeasy_client_sdk/models/operations/configurecodesamples_response.rb
@@ -165,7 +168,6 @@ files:
165
168
  - lib/speakeasy_client_sdk/models/operations/deleteschema_response.rb
166
169
  - lib/speakeasy_client_sdk/models/operations/deleteversionmetadata_request.rb
167
170
  - lib/speakeasy_client_sdk/models/operations/deleteversionmetadata_response.rb
168
- - lib/speakeasy_client_sdk/models/operations/depth_style.rb
169
171
  - lib/speakeasy_client_sdk/models/operations/downloadschema_request.rb
170
172
  - lib/speakeasy_client_sdk/models/operations/downloadschema_response.rb
171
173
  - lib/speakeasy_client_sdk/models/operations/downloadschemarevision_request.rb
@@ -187,6 +189,8 @@ files:
187
189
  - lib/speakeasy_client_sdk/models/operations/generaterequestpostmancollection_response.rb
188
190
  - lib/speakeasy_client_sdk/models/operations/getaccesstoken_request.rb
189
191
  - lib/speakeasy_client_sdk/models/operations/getaccesstoken_response.rb
192
+ - lib/speakeasy_client_sdk/models/operations/getaction_request.rb
193
+ - lib/speakeasy_client_sdk/models/operations/getaction_response.rb
190
194
  - lib/speakeasy_client_sdk/models/operations/getallapiendpoints_request.rb
191
195
  - lib/speakeasy_client_sdk/models/operations/getallapiendpoints_response.rb
192
196
  - lib/speakeasy_client_sdk/models/operations/getallapiversions_request.rb
@@ -210,6 +214,8 @@ files:
210
214
  - lib/speakeasy_client_sdk/models/operations/getmanifest_request.rb
211
215
  - lib/speakeasy_client_sdk/models/operations/getmanifest_response.rb
212
216
  - lib/speakeasy_client_sdk/models/operations/getnamespaces_response.rb
217
+ - lib/speakeasy_client_sdk/models/operations/getoassummary_request.rb
218
+ - lib/speakeasy_client_sdk/models/operations/getoassummary_response.rb
213
219
  - lib/speakeasy_client_sdk/models/operations/getorganizations_response.rb
214
220
  - lib/speakeasy_client_sdk/models/operations/getorganizationusage_response.rb
215
221
  - lib/speakeasy_client_sdk/models/operations/getrequestfromeventlog_request.rb
@@ -242,7 +248,6 @@ files:
242
248
  - lib/speakeasy_client_sdk/models/operations/insertversionmetadata_request.rb
243
249
  - lib/speakeasy_client_sdk/models/operations/insertversionmetadata_response.rb
244
250
  - lib/speakeasy_client_sdk/models/operations/op.rb
245
- - lib/speakeasy_client_sdk/models/operations/opts.rb
246
251
  - lib/speakeasy_client_sdk/models/operations/posttags_request.rb
247
252
  - lib/speakeasy_client_sdk/models/operations/posttags_response.rb
248
253
  - lib/speakeasy_client_sdk/models/operations/postworkspaceevents_request.rb
@@ -260,10 +265,11 @@ files:
260
265
  - lib/speakeasy_client_sdk/models/operations/schema.rb
261
266
  - lib/speakeasy_client_sdk/models/operations/searchworkspaceevents_request.rb
262
267
  - lib/speakeasy_client_sdk/models/operations/searchworkspaceevents_response.rb
263
- - lib/speakeasy_client_sdk/models/operations/style.rb
268
+ - lib/speakeasy_client_sdk/models/operations/suggestoperationids_request.rb
264
269
  - lib/speakeasy_client_sdk/models/operations/suggestoperationids_requestbody.rb
265
270
  - lib/speakeasy_client_sdk/models/operations/suggestoperationids_response.rb
266
- - lib/speakeasy_client_sdk/models/operations/suggestoperationids_suggestion.rb
271
+ - lib/speakeasy_client_sdk/models/operations/suggestoperationidsregistry_request.rb
272
+ - lib/speakeasy_client_sdk/models/operations/suggestoperationidsregistry_response.rb
267
273
  - lib/speakeasy_client_sdk/models/operations/triggeraction_response.rb
268
274
  - lib/speakeasy_client_sdk/models/operations/uploadreport_requestbody.rb
269
275
  - lib/speakeasy_client_sdk/models/operations/uploadreport_response.rb
@@ -290,6 +296,7 @@ files:
290
296
  - lib/speakeasy_client_sdk/models/shared/boundedrequest.rb
291
297
  - lib/speakeasy_client_sdk/models/shared/claims.rb
292
298
  - lib/speakeasy_client_sdk/models/shared/clievent.rb
299
+ - lib/speakeasy_client_sdk/models/shared/depth_style.rb
293
300
  - lib/speakeasy_client_sdk/models/shared/embedaccesstokenresponse.rb
294
301
  - lib/speakeasy_client_sdk/models/shared/embedtoken.rb
295
302
  - lib/speakeasy_client_sdk/models/shared/error.rb
@@ -305,14 +312,19 @@ files:
305
312
  - lib/speakeasy_client_sdk/models/shared/githubconfigurecodesamplesresponse.rb
306
313
  - lib/speakeasy_client_sdk/models/shared/githubconfiguremintlifyreporequest.rb
307
314
  - lib/speakeasy_client_sdk/models/shared/githubconfiguretargetrequest.rb
315
+ - lib/speakeasy_client_sdk/models/shared/githubgetactionresponse.rb
308
316
  - lib/speakeasy_client_sdk/models/shared/githubmissingpublishingsecretsresponse.rb
309
317
  - lib/speakeasy_client_sdk/models/shared/githubpublishingprresponse.rb
310
318
  - lib/speakeasy_client_sdk/models/shared/githubstorepublishingsecretsrequest.rb
311
319
  - lib/speakeasy_client_sdk/models/shared/githubtriggeractionrequest.rb
312
320
  - lib/speakeasy_client_sdk/models/shared/interactiontype.rb
313
321
  - lib/speakeasy_client_sdk/models/shared/level.rb
322
+ - lib/speakeasy_client_sdk/models/shared/license.rb
314
323
  - lib/speakeasy_client_sdk/models/shared/manifest.rb
315
324
  - lib/speakeasy_client_sdk/models/shared/namespace.rb
325
+ - lib/speakeasy_client_sdk/models/shared/oasinfo.rb
326
+ - lib/speakeasy_client_sdk/models/shared/oasoperation.rb
327
+ - lib/speakeasy_client_sdk/models/shared/oassummary.rb
316
328
  - lib/speakeasy_client_sdk/models/shared/openapi_diff_bump_type.rb
317
329
  - lib/speakeasy_client_sdk/models/shared/organization.rb
318
330
  - lib/speakeasy_client_sdk/models/shared/organization_account_type.rb
@@ -326,6 +338,9 @@ files:
326
338
  - lib/speakeasy_client_sdk/models/shared/schema.rb
327
339
  - lib/speakeasy_client_sdk/models/shared/schemadiff.rb
328
340
  - lib/speakeasy_client_sdk/models/shared/security.rb
341
+ - lib/speakeasy_client_sdk/models/shared/style.rb
342
+ - lib/speakeasy_client_sdk/models/shared/suggestedoperationids.rb
343
+ - lib/speakeasy_client_sdk/models/shared/suggestoperationidsopts.rb
329
344
  - lib/speakeasy_client_sdk/models/shared/tag.rb
330
345
  - lib/speakeasy_client_sdk/models/shared/targetsdk.rb
331
346
  - lib/speakeasy_client_sdk/models/shared/type.rb
@@ -1,27 +0,0 @@
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 Opts < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
- extend T::Sig
13
-
14
-
15
- field :depth_style, T.nilable(::SpeakeasyClientSDK::Operations::DepthStyle), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('depth_style'), 'decoder': Utils.enum_from_string(::SpeakeasyClientSDK::Operations::DepthStyle, true) } }
16
-
17
- field :style, T.nilable(::SpeakeasyClientSDK::Operations::Style), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('style'), 'decoder': Utils.enum_from_string(::SpeakeasyClientSDK::Operations::Style, true) } }
18
-
19
-
20
- sig { params(depth_style: T.nilable(::SpeakeasyClientSDK::Operations::DepthStyle), style: T.nilable(::SpeakeasyClientSDK::Operations::Style)).void }
21
- def initialize(depth_style: nil, style: nil)
22
- @depth_style = depth_style
23
- @style = style
24
- end
25
- end
26
- end
27
- end