speakeasy_client_sdk_ruby 4.2.19 → 4.2.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/speakeasy_client_sdk/models/operations/{suggestoperationids_request.rb → suggestopenapi_request.rb} +4 -7
- data/lib/speakeasy_client_sdk/models/operations/{suggestoperationids_requestbody.rb → suggestopenapi_requestbody.rb} +3 -3
- data/lib/speakeasy_client_sdk/models/operations/{suggestoperationids_response.rb → suggestopenapi_response.rb} +6 -6
- data/lib/speakeasy_client_sdk/models/operations/{suggestoperationidsregistry_request.rb → suggestopenapiregistry_request.rb} +6 -9
- data/lib/speakeasy_client_sdk/models/operations/{suggestoperationidsregistry_response.rb → suggestopenapiregistry_response.rb} +6 -6
- data/lib/speakeasy_client_sdk/models/operations.rb +5 -5
- data/lib/speakeasy_client_sdk/models/shared/accounttype.rb +0 -1
- data/lib/speakeasy_client_sdk/models/shared/diagnostic.rb +33 -0
- data/lib/speakeasy_client_sdk/models/shared/generate_bump_type.rb +0 -1
- data/lib/speakeasy_client_sdk/models/shared/interactiontype.rb +0 -1
- data/lib/speakeasy_client_sdk/models/shared/level.rb +0 -1
- data/lib/speakeasy_client_sdk/models/shared/openapi_diff_bump_type.rb +0 -1
- data/lib/speakeasy_client_sdk/models/shared/{style.rb → suggestion_type.rb} +3 -4
- data/lib/speakeasy_client_sdk/models/shared/suggestopts.rb +27 -0
- data/lib/speakeasy_client_sdk/models/shared/type.rb +0 -1
- data/lib/speakeasy_client_sdk/models/shared.rb +3 -4
- data/lib/speakeasy_client_sdk/sdkconfiguration.rb +3 -3
- data/lib/speakeasy_client_sdk/suggest.rb +18 -26
- metadata +10 -11
- data/lib/speakeasy_client_sdk/models/shared/depth_style.rb +0 -21
- data/lib/speakeasy_client_sdk/models/shared/suggestedoperationids.rb +0 -24
- data/lib/speakeasy_client_sdk/models/shared/suggestoperationidsopts.rb +0 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adeba11dbb6c98836bff322c77476b5ff8d09d1dd13b851b1437b1089417688f
|
4
|
+
data.tar.gz: 3f394a828ee2173ef02d3e4e304b1a212d6be8ac0634aa46b0978a2f02fe98aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49bc01f9d5da49208513a2c05d98eed67576c0eb2ebd7cb2b134bd27229db9d4cfdbe9481b91a5b97fb8c5a73c528a17eacdbe7f4f20837984e517c1699303c7
|
7
|
+
data.tar.gz: f72ab08a9c06af4a1cdb2ccd3800e17fbabbd818fd2ed5c816fcd0c82baf0b1643649eddc3da8193775955c793404098527c80bad70192555b37d67a46465267
|
@@ -8,22 +8,19 @@ module SpeakeasyClientSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class
|
11
|
+
class SuggestOpenAPIRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
# The schema file to upload provided as a multipart/form-data file segment.
|
15
|
-
field :request_body, ::SpeakeasyClientSDK::Operations::
|
15
|
+
field :request_body, ::SpeakeasyClientSDK::Operations::SuggestOpenAPIRequestBody, { 'request': { 'media_type': 'multipart/form-data' } }
|
16
16
|
|
17
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
18
|
|
21
19
|
|
22
|
-
sig { params(request_body: ::SpeakeasyClientSDK::Operations::
|
23
|
-
def initialize(request_body: nil, x_session_id: nil
|
20
|
+
sig { params(request_body: ::SpeakeasyClientSDK::Operations::SuggestOpenAPIRequestBody, x_session_id: ::String).void }
|
21
|
+
def initialize(request_body: nil, x_session_id: nil)
|
24
22
|
@request_body = request_body
|
25
23
|
@x_session_id = x_session_id
|
26
|
-
@limit = limit
|
27
24
|
end
|
28
25
|
end
|
29
26
|
end
|
@@ -8,16 +8,16 @@ module SpeakeasyClientSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
# The schema file to upload provided as a multipart/form-data file segment.
|
11
|
-
class
|
11
|
+
class SuggestOpenAPIRequestBody < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
|
15
15
|
field :schema, ::SpeakeasyClientSDK::Operations::Schema, { 'multipart_form': { 'file': true } }
|
16
16
|
|
17
|
-
field :opts, T.nilable(::SpeakeasyClientSDK::Shared::
|
17
|
+
field :opts, T.nilable(::SpeakeasyClientSDK::Shared::SuggestOpts), { 'multipart_form': { 'field_name': 'opts', 'json': true } }
|
18
18
|
|
19
19
|
|
20
|
-
sig { params(schema: ::SpeakeasyClientSDK::Operations::Schema, opts: T.nilable(::SpeakeasyClientSDK::Shared::
|
20
|
+
sig { params(schema: ::SpeakeasyClientSDK::Operations::Schema, opts: T.nilable(::SpeakeasyClientSDK::Shared::SuggestOpts)).void }
|
21
21
|
def initialize(schema: nil, opts: nil)
|
22
22
|
@schema = schema
|
23
23
|
@opts = opts
|
@@ -8,7 +8,7 @@ module SpeakeasyClientSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class
|
11
|
+
class SuggestOpenAPIResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
# HTTP response content type for this operation
|
@@ -17,16 +17,16 @@ 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
|
-
#
|
21
|
-
field :
|
20
|
+
# An overlay containing the suggested spec modifications.
|
21
|
+
field :schema, T.nilable(::String)
|
22
22
|
|
23
23
|
|
24
|
-
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer,
|
25
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil,
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, schema: T.nilable(::String)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, schema: nil)
|
26
26
|
@content_type = content_type
|
27
27
|
@raw_response = raw_response
|
28
28
|
@status_code = status_code
|
29
|
-
@
|
29
|
+
@schema = schema
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
@@ -8,7 +8,7 @@ module SpeakeasyClientSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class
|
11
|
+
class SuggestOpenAPIRegistryRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
|
@@ -17,19 +17,16 @@ module SpeakeasyClientSDK
|
|
17
17
|
field :revision_reference, ::String, { 'path_param': { 'field_name': 'revision_reference', 'style': 'simple', 'explode': false } }
|
18
18
|
|
19
19
|
field :x_session_id, ::String, { 'header': { 'field_name': 'x-session-id', 'style': 'simple', 'explode': false } }
|
20
|
-
#
|
21
|
-
field :
|
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' } }
|
20
|
+
# Suggest options
|
21
|
+
field :suggest_opts, T.nilable(::SpeakeasyClientSDK::Shared::SuggestOpts), { 'request': { 'media_type': 'application/json' } }
|
24
22
|
|
25
23
|
|
26
|
-
sig { params(namespace_name: ::String, revision_reference: ::String, x_session_id: ::String,
|
27
|
-
def initialize(namespace_name: nil, revision_reference: nil, x_session_id: nil,
|
24
|
+
sig { params(namespace_name: ::String, revision_reference: ::String, x_session_id: ::String, suggest_opts: T.nilable(::SpeakeasyClientSDK::Shared::SuggestOpts)).void }
|
25
|
+
def initialize(namespace_name: nil, revision_reference: nil, x_session_id: nil, suggest_opts: nil)
|
28
26
|
@namespace_name = namespace_name
|
29
27
|
@revision_reference = revision_reference
|
30
28
|
@x_session_id = x_session_id
|
31
|
-
@
|
32
|
-
@suggest_operation_i_ds_opts = suggest_operation_i_ds_opts
|
29
|
+
@suggest_opts = suggest_opts
|
33
30
|
end
|
34
31
|
end
|
35
32
|
end
|
@@ -8,7 +8,7 @@ module SpeakeasyClientSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class
|
11
|
+
class SuggestOpenAPIRegistryResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
# HTTP response content type for this operation
|
@@ -17,16 +17,16 @@ 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
|
-
#
|
21
|
-
field :
|
20
|
+
# An overlay containing the suggested spec modifications.
|
21
|
+
field :schema, T.nilable(::String)
|
22
22
|
|
23
23
|
|
24
|
-
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer,
|
25
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil,
|
24
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, schema: T.nilable(::String)).void }
|
25
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, schema: nil)
|
26
26
|
@content_type = content_type
|
27
27
|
@raw_response = raw_response
|
28
28
|
@status_code = status_code
|
29
|
-
@
|
29
|
+
@schema = schema
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
@@ -119,11 +119,11 @@ module SpeakeasyClientSDK
|
|
119
119
|
autoload :ApplyOperationIDsRequest, 'speakeasy_client_sdk/models/operations/applyoperationids_request.rb'
|
120
120
|
autoload :ApplyOperationIDsResponse, 'speakeasy_client_sdk/models/operations/applyoperationids_response.rb'
|
121
121
|
autoload :Schema, 'speakeasy_client_sdk/models/operations/schema.rb'
|
122
|
-
autoload :
|
123
|
-
autoload :
|
124
|
-
autoload :
|
125
|
-
autoload :
|
126
|
-
autoload :
|
122
|
+
autoload :SuggestOpenAPIRequestBody, 'speakeasy_client_sdk/models/operations/suggestopenapi_requestbody.rb'
|
123
|
+
autoload :SuggestOpenAPIRequest, 'speakeasy_client_sdk/models/operations/suggestopenapi_request.rb'
|
124
|
+
autoload :SuggestOpenAPIResponse, 'speakeasy_client_sdk/models/operations/suggestopenapi_response.rb'
|
125
|
+
autoload :SuggestOpenAPIRegistryRequest, 'speakeasy_client_sdk/models/operations/suggestopenapiregistry_request.rb'
|
126
|
+
autoload :SuggestOpenAPIRegistryResponse, 'speakeasy_client_sdk/models/operations/suggestopenapiregistry_response.rb'
|
127
127
|
autoload :GetEmbedAccessTokenRequest, 'speakeasy_client_sdk/models/operations/getembedaccesstoken_request.rb'
|
128
128
|
autoload :GetEmbedAccessTokenResponse, 'speakeasy_client_sdk/models/operations/getembedaccesstoken_response.rb'
|
129
129
|
autoload :GetValidEmbedAccessTokensResponse, 'speakeasy_client_sdk/models/operations/getvalidembedaccesstokens_response.rb'
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module SpeakeasyClientSDK
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class Diagnostic < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Message describing the issue
|
15
|
+
field :message, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('message') } }
|
16
|
+
# Schema path to the issue
|
17
|
+
field :path, T::Array[::String], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('path') } }
|
18
|
+
# Issue type
|
19
|
+
field :type, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('type') } }
|
20
|
+
# Help message for how to fix the issue
|
21
|
+
field :help_message, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('helpMessage') } }
|
22
|
+
|
23
|
+
|
24
|
+
sig { params(message: ::String, path: T::Array[::String], type: ::String, help_message: T.nilable(::String)).void }
|
25
|
+
def initialize(message: nil, path: nil, type: nil, help_message: nil)
|
26
|
+
@message = message
|
27
|
+
@path = path
|
28
|
+
@type = type
|
29
|
+
@help_message = help_message
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -8,12 +8,11 @@ module SpeakeasyClientSDK
|
|
8
8
|
module Shared
|
9
9
|
|
10
10
|
|
11
|
-
class
|
11
|
+
class SuggestionType < T::Enum
|
12
12
|
enums do
|
13
|
-
|
14
|
-
|
13
|
+
METHOD_NAMES = new('method-names')
|
14
|
+
DIAGNOSTICS_ONLY = new('diagnostics-only')
|
15
15
|
end
|
16
16
|
end
|
17
|
-
|
18
17
|
end
|
19
18
|
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module SpeakeasyClientSDK
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class SuggestOpts < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :suggestion_type, ::SpeakeasyClientSDK::Shared::SuggestionType, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('suggestion_type'), 'decoder': Utils.enum_from_string(::SpeakeasyClientSDK::Shared::SuggestionType, false) } }
|
16
|
+
|
17
|
+
field :diagnostics, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::Diagnostic]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('diagnostics') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(suggestion_type: ::SpeakeasyClientSDK::Shared::SuggestionType, diagnostics: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::Diagnostic])).void }
|
21
|
+
def initialize(suggestion_type: nil, diagnostics: nil)
|
22
|
+
@suggestion_type = suggestion_type
|
23
|
+
@diagnostics = diagnostics
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -64,10 +64,9 @@ module SpeakeasyClientSDK
|
|
64
64
|
autoload :Type, 'speakeasy_client_sdk/models/shared/type.rb'
|
65
65
|
autoload :Report, 'speakeasy_client_sdk/models/shared/report.rb'
|
66
66
|
autoload :ShortURL, 'speakeasy_client_sdk/models/shared/shorturl.rb'
|
67
|
-
autoload :
|
68
|
-
autoload :
|
69
|
-
autoload :
|
70
|
-
autoload :SuggestOperationIDsOpts, 'speakeasy_client_sdk/models/shared/suggestoperationidsopts.rb'
|
67
|
+
autoload :SuggestionType, 'speakeasy_client_sdk/models/shared/suggestion_type.rb'
|
68
|
+
autoload :SuggestOpts, 'speakeasy_client_sdk/models/shared/suggestopts.rb'
|
69
|
+
autoload :Diagnostic, 'speakeasy_client_sdk/models/shared/diagnostic.rb'
|
71
70
|
autoload :EmbedAccessTokenResponse, 'speakeasy_client_sdk/models/shared/embedaccesstokenresponse.rb'
|
72
71
|
autoload :EmbedToken, 'speakeasy_client_sdk/models/shared/embedtoken.rb'
|
73
72
|
autoload :Workspace, 'speakeasy_client_sdk/models/shared/workspace.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.
|
45
|
-
@gen_version = '2.
|
46
|
-
@user_agent = 'speakeasy-sdk/ruby 4.2.
|
44
|
+
@sdk_version = '4.2.20'
|
45
|
+
@gen_version = '2.409.0'
|
46
|
+
@user_agent = 'speakeasy-sdk/ruby 4.2.20 2.409.0 0.4.0 . speakeasy_client_sdk_ruby'
|
47
47
|
end
|
48
48
|
|
49
49
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
@@ -64,24 +64,22 @@ module SpeakeasyClientSDK
|
|
64
64
|
end
|
65
65
|
|
66
66
|
|
67
|
-
sig { params(request: ::SpeakeasyClientSDK::Operations::
|
68
|
-
def
|
69
|
-
#
|
70
|
-
# Get suggestions from an LLM model for improving
|
67
|
+
sig { params(request: ::SpeakeasyClientSDK::Operations::SuggestOpenAPIRequest).returns(::SpeakeasyClientSDK::Operations::SuggestOpenAPIResponse) }
|
68
|
+
def suggest_open_api(request)
|
69
|
+
# suggest_open_api - Generate suggestions for improving an OpenAPI document.
|
70
|
+
# Get suggestions from an LLM model for improving an OpenAPI document.
|
71
71
|
url, params = @sdk_configuration.get_server_details
|
72
72
|
base_url = Utils.template_url(url, params)
|
73
|
-
url = "#{base_url}/v1/suggest/
|
73
|
+
url = "#{base_url}/v1/suggest/openapi"
|
74
74
|
headers = Utils.get_headers(request, @sdk_configuration.globals)
|
75
75
|
req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :multipart)
|
76
76
|
headers['content-type'] = req_content_type
|
77
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)
|
79
78
|
headers['Accept'] = 'application/json'
|
80
79
|
headers['user-agent'] = @sdk_configuration.user_agent
|
81
80
|
|
82
81
|
r = @sdk_configuration.client.post(url) do |req|
|
83
82
|
req.headers = headers
|
84
|
-
req.params = query_params
|
85
83
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
86
84
|
if form
|
87
85
|
req.body = Utils.encode_form(form)
|
@@ -94,42 +92,38 @@ module SpeakeasyClientSDK
|
|
94
92
|
|
95
93
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
96
94
|
|
97
|
-
res = ::SpeakeasyClientSDK::Operations::
|
95
|
+
res = ::SpeakeasyClientSDK::Operations::SuggestOpenAPIResponse.new(
|
98
96
|
status_code: r.status, content_type: content_type, raw_response: r
|
99
97
|
)
|
100
98
|
if r.status == 200
|
101
|
-
if Utils.match_content_type(content_type, 'application/json')
|
102
|
-
|
103
|
-
res.suggested_operation_i_ds = out
|
104
|
-
end
|
99
|
+
res.schema = r.env.response_body if Utils.match_content_type(content_type, 'application/json')
|
100
|
+
|
105
101
|
end
|
106
102
|
res
|
107
103
|
end
|
108
104
|
|
109
105
|
|
110
|
-
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::
|
111
|
-
def
|
112
|
-
#
|
113
|
-
# Get suggestions from an LLM model for improving
|
106
|
+
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::SuggestOpenAPIRegistryRequest)).returns(::SpeakeasyClientSDK::Operations::SuggestOpenAPIRegistryResponse) }
|
107
|
+
def suggest_open_api_registry(request)
|
108
|
+
# suggest_open_api_registry - Generate suggestions for improving an OpenAPI document stored in the registry.
|
109
|
+
# Get suggestions from an LLM model for improving an OpenAPI document stored in the registry.
|
114
110
|
url, params = @sdk_configuration.get_server_details
|
115
111
|
base_url = Utils.template_url(url, params)
|
116
112
|
url = Utils.generate_url(
|
117
|
-
::SpeakeasyClientSDK::Operations::
|
113
|
+
::SpeakeasyClientSDK::Operations::SuggestOpenAPIRegistryRequest,
|
118
114
|
base_url,
|
119
|
-
'/v1/suggest/
|
115
|
+
'/v1/suggest/openapi/{namespace_name}/{revision_reference}',
|
120
116
|
request,
|
121
117
|
@sdk_configuration.globals
|
122
118
|
)
|
123
119
|
headers = Utils.get_headers(request, @sdk_configuration.globals)
|
124
|
-
req_content_type, data, form = Utils.serialize_request_body(request, :
|
120
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :suggest_opts, :json)
|
125
121
|
headers['content-type'] = req_content_type
|
126
|
-
query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::SuggestOperationIDsRegistryRequest, request, @sdk_configuration.globals)
|
127
122
|
headers['Accept'] = 'application/json'
|
128
123
|
headers['user-agent'] = @sdk_configuration.user_agent
|
129
124
|
|
130
125
|
r = @sdk_configuration.client.post(url) do |req|
|
131
126
|
req.headers = headers
|
132
|
-
req.params = query_params
|
133
127
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
134
128
|
if form
|
135
129
|
req.body = Utils.encode_form(form)
|
@@ -142,14 +136,12 @@ module SpeakeasyClientSDK
|
|
142
136
|
|
143
137
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
144
138
|
|
145
|
-
res = ::SpeakeasyClientSDK::Operations::
|
139
|
+
res = ::SpeakeasyClientSDK::Operations::SuggestOpenAPIRegistryResponse.new(
|
146
140
|
status_code: r.status, content_type: content_type, raw_response: r
|
147
141
|
)
|
148
142
|
if r.status == 200
|
149
|
-
if Utils.match_content_type(content_type, 'application/json')
|
150
|
-
|
151
|
-
res.suggested_operation_i_ds = out
|
152
|
-
end
|
143
|
+
res.schema = r.env.response_body if Utils.match_content_type(content_type, 'application/json')
|
144
|
+
|
153
145
|
end
|
154
146
|
res
|
155
147
|
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.2.
|
4
|
+
version: 4.2.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Speakeasy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -271,11 +271,11 @@ files:
|
|
271
271
|
- lib/speakeasy_client_sdk/models/operations/schema.rb
|
272
272
|
- lib/speakeasy_client_sdk/models/operations/searchworkspaceevents_request.rb
|
273
273
|
- lib/speakeasy_client_sdk/models/operations/searchworkspaceevents_response.rb
|
274
|
-
- lib/speakeasy_client_sdk/models/operations/
|
275
|
-
- lib/speakeasy_client_sdk/models/operations/
|
276
|
-
- lib/speakeasy_client_sdk/models/operations/
|
277
|
-
- lib/speakeasy_client_sdk/models/operations/
|
278
|
-
- lib/speakeasy_client_sdk/models/operations/
|
274
|
+
- lib/speakeasy_client_sdk/models/operations/suggestopenapi_request.rb
|
275
|
+
- lib/speakeasy_client_sdk/models/operations/suggestopenapi_requestbody.rb
|
276
|
+
- lib/speakeasy_client_sdk/models/operations/suggestopenapi_response.rb
|
277
|
+
- lib/speakeasy_client_sdk/models/operations/suggestopenapiregistry_request.rb
|
278
|
+
- lib/speakeasy_client_sdk/models/operations/suggestopenapiregistry_response.rb
|
279
279
|
- lib/speakeasy_client_sdk/models/operations/triggeraction_response.rb
|
280
280
|
- lib/speakeasy_client_sdk/models/operations/uploadreport_requestbody.rb
|
281
281
|
- lib/speakeasy_client_sdk/models/operations/uploadreport_response.rb
|
@@ -301,7 +301,7 @@ files:
|
|
301
301
|
- lib/speakeasy_client_sdk/models/shared/boundedrequest.rb
|
302
302
|
- lib/speakeasy_client_sdk/models/shared/claims.rb
|
303
303
|
- lib/speakeasy_client_sdk/models/shared/clievent.rb
|
304
|
-
- lib/speakeasy_client_sdk/models/shared/
|
304
|
+
- lib/speakeasy_client_sdk/models/shared/diagnostic.rb
|
305
305
|
- lib/speakeasy_client_sdk/models/shared/embedaccesstokenresponse.rb
|
306
306
|
- lib/speakeasy_client_sdk/models/shared/embedtoken.rb
|
307
307
|
- lib/speakeasy_client_sdk/models/shared/error.rb
|
@@ -343,9 +343,8 @@ files:
|
|
343
343
|
- lib/speakeasy_client_sdk/models/shared/schemadiff.rb
|
344
344
|
- lib/speakeasy_client_sdk/models/shared/security.rb
|
345
345
|
- lib/speakeasy_client_sdk/models/shared/shorturl.rb
|
346
|
-
- lib/speakeasy_client_sdk/models/shared/
|
347
|
-
- lib/speakeasy_client_sdk/models/shared/
|
348
|
-
- lib/speakeasy_client_sdk/models/shared/suggestoperationidsopts.rb
|
346
|
+
- lib/speakeasy_client_sdk/models/shared/suggestion_type.rb
|
347
|
+
- lib/speakeasy_client_sdk/models/shared/suggestopts.rb
|
349
348
|
- lib/speakeasy_client_sdk/models/shared/tag.rb
|
350
349
|
- lib/speakeasy_client_sdk/models/shared/targetsdk.rb
|
351
350
|
- lib/speakeasy_client_sdk/models/shared/type.rb
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
|
7
|
-
module SpeakeasyClientSDK
|
8
|
-
module Shared
|
9
|
-
|
10
|
-
|
11
|
-
class DepthStyle < T::Enum
|
12
|
-
enums do
|
13
|
-
ORIGINAL = new('original')
|
14
|
-
FLAT = new('flat')
|
15
|
-
NESTED = new('nested')
|
16
|
-
DEEP = new('deep')
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
end
|
21
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
|
7
|
-
module SpeakeasyClientSDK
|
8
|
-
module Shared
|
9
|
-
|
10
|
-
|
11
|
-
class SuggestedOperationIDs < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
|
15
|
-
field :operation_ids, T::Hash[Symbol, T::Array[::String]], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('operation_ids') } }
|
16
|
-
|
17
|
-
|
18
|
-
sig { params(operation_ids: T::Hash[Symbol, T::Array[::String]]).void }
|
19
|
-
def initialize(operation_ids: nil)
|
20
|
-
@operation_ids = operation_ids
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasy.com). 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
|