speakeasy_client_sdk_ruby 4.2.21 → 4.2.22
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/getworkspacefeatureflags_request.rb +24 -0
- data/lib/speakeasy_client_sdk/models/operations/{applyoperationids_response.rb → getworkspacefeatureflags_response.rb} +7 -10
- data/lib/speakeasy_client_sdk/models/operations/suggest_request.rb +27 -0
- data/lib/speakeasy_client_sdk/models/operations/suggest_response.rb +33 -0
- data/lib/speakeasy_client_sdk/models/operations/suggestopenapi_requestbody.rb +2 -2
- data/lib/speakeasy_client_sdk/models/operations/suggestopenapiregistry_request.rb +4 -4
- data/lib/speakeasy_client_sdk/models/operations.rb +4 -3
- data/lib/speakeasy_client_sdk/models/shared/oasoperation.rb +8 -2
- data/lib/speakeasy_client_sdk/models/shared/{suggestopts.rb → suggestoptsold.rb} +1 -1
- data/lib/speakeasy_client_sdk/models/shared/suggestrequestbody.rb +30 -0
- data/lib/speakeasy_client_sdk/models/shared/suggestrequestbody_suggestion_type.rb +18 -0
- data/lib/speakeasy_client_sdk/models/shared/workspacefeatureflagresponse.rb +24 -0
- data/lib/speakeasy_client_sdk/models/shared.rb +5 -2
- data/lib/speakeasy_client_sdk/sdkconfiguration.rb +3 -3
- data/lib/speakeasy_client_sdk/suggest.rb +12 -18
- data/lib/speakeasy_client_sdk/workspaces.rb +41 -0
- metadata +10 -6
- data/lib/speakeasy_client_sdk/models/operations/applyoperationids_request.rb +0 -27
- data/lib/speakeasy_client_sdk/models/operations/applyoperationids_requestbody.rb +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8a5731c0420f94cc24b19628d709a5a5e5507d386b7c168ff06d30c60f3ec95
|
4
|
+
data.tar.gz: ab04beeffa7a6d6ce7423ebb698df763e81b4c2a8051bb0ddefecc49b5ed6e49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69f18cfa731720a8ee19f26997b307efde02a3d8680fc2ff6ee31fb94849e4b9537d08ad17291efed89a01d335ad7775093d00c620662607165510d5dc39a7fe
|
7
|
+
data.tar.gz: 5f79f2cb7290f3696ab0385eecbd701979093291fa2c8d99a77dfbc5277313500a948a7d6f2b9c2d6755a71eb49592bdbf5a7b1d88c0a14d9fff819b8629c503
|
@@ -0,0 +1,24 @@
|
|
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 Operations
|
9
|
+
|
10
|
+
|
11
|
+
class GetWorkspaceFeatureFlagsRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# Unique identifier of the workspace.
|
15
|
+
field :workspace_id, T.nilable(::String), { 'path_param': { 'field_name': 'workspaceID', 'style': 'simple', 'explode': false } }
|
16
|
+
|
17
|
+
|
18
|
+
sig { params(workspace_id: T.nilable(::String)).void }
|
19
|
+
def initialize(workspace_id: nil)
|
20
|
+
@workspace_id = workspace_id
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -8,7 +8,7 @@ module SpeakeasyClientSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class
|
11
|
+
class GetWorkspaceFeatureFlagsResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
# HTTP response content type for this operation
|
@@ -17,22 +17,19 @@ 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 :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
|
20
|
+
# Error
|
25
21
|
field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
|
22
|
+
# Success
|
23
|
+
field :workspace_feature_flag_response, T.nilable(::SpeakeasyClientSDK::Shared::WorkspaceFeatureFlagResponse)
|
26
24
|
|
27
25
|
|
28
|
-
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer,
|
29
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil,
|
26
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error), workspace_feature_flag_response: T.nilable(::SpeakeasyClientSDK::Shared::WorkspaceFeatureFlagResponse)).void }
|
27
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, workspace_feature_flag_response: nil)
|
30
28
|
@content_type = content_type
|
31
29
|
@raw_response = raw_response
|
32
30
|
@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
31
|
@error = error
|
32
|
+
@workspace_feature_flag_response = workspace_feature_flag_response
|
36
33
|
end
|
37
34
|
end
|
38
35
|
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 Operations
|
9
|
+
|
10
|
+
|
11
|
+
class SuggestRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The OAS summary and diagnostics to use for the suggestion.
|
15
|
+
field :suggest_request_body, ::SpeakeasyClientSDK::Shared::SuggestRequestBody, { 'request': { 'media_type': 'application/json' } }
|
16
|
+
|
17
|
+
field :x_session_id, ::String, { 'header': { 'field_name': 'x-session-id', 'style': 'simple', 'explode': false } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(suggest_request_body: ::SpeakeasyClientSDK::Shared::SuggestRequestBody, x_session_id: ::String).void }
|
21
|
+
def initialize(suggest_request_body: nil, x_session_id: nil)
|
22
|
+
@suggest_request_body = suggest_request_body
|
23
|
+
@x_session_id = x_session_id
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -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 Operations
|
9
|
+
|
10
|
+
|
11
|
+
class SuggestResponse < ::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
|
+
# An overlay containing the suggested spec modifications.
|
21
|
+
field :schema, T.nilable(::String)
|
22
|
+
|
23
|
+
|
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
|
+
@content_type = content_type
|
27
|
+
@raw_response = raw_response
|
28
|
+
@status_code = status_code
|
29
|
+
@schema = schema
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
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::Shared::
|
17
|
+
field :opts, T.nilable(::SpeakeasyClientSDK::Shared::SuggestOptsOld), { '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::SuggestOptsOld)).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
|
|
19
19
|
field :x_session_id, ::String, { 'header': { 'field_name': 'x-session-id', 'style': 'simple', 'explode': false } }
|
20
20
|
# Suggest options
|
21
|
-
field :
|
21
|
+
field :suggest_request_body, T.nilable(::SpeakeasyClientSDK::Shared::SuggestRequestBody), { 'request': { 'media_type': 'application/json' } }
|
22
22
|
|
23
23
|
|
24
|
-
sig { params(namespace_name: ::String, revision_reference: ::String, x_session_id: ::String,
|
25
|
-
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_request_body: T.nilable(::SpeakeasyClientSDK::Shared::SuggestRequestBody)).void }
|
25
|
+
def initialize(namespace_name: nil, revision_reference: nil, x_session_id: nil, suggest_request_body: nil)
|
26
26
|
@namespace_name = namespace_name
|
27
27
|
@revision_reference = revision_reference
|
28
28
|
@x_session_id = x_session_id
|
29
|
-
@
|
29
|
+
@suggest_request_body = suggest_request_body
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
@@ -115,9 +115,8 @@ module SpeakeasyClientSDK
|
|
115
115
|
autoload :UploadReportResponse, 'speakeasy_client_sdk/models/operations/uploadreport_response.rb'
|
116
116
|
autoload :CreateRequestBody, 'speakeasy_client_sdk/models/operations/create_requestbody.rb'
|
117
117
|
autoload :CreateResponse, 'speakeasy_client_sdk/models/operations/create_response.rb'
|
118
|
-
autoload :
|
119
|
-
autoload :
|
120
|
-
autoload :ApplyOperationIDsResponse, 'speakeasy_client_sdk/models/operations/applyoperationids_response.rb'
|
118
|
+
autoload :SuggestRequest, 'speakeasy_client_sdk/models/operations/suggest_request.rb'
|
119
|
+
autoload :SuggestResponse, 'speakeasy_client_sdk/models/operations/suggest_response.rb'
|
121
120
|
autoload :Schema, 'speakeasy_client_sdk/models/operations/schema.rb'
|
122
121
|
autoload :SuggestOpenAPIRequestBody, 'speakeasy_client_sdk/models/operations/suggestopenapi_requestbody.rb'
|
123
122
|
autoload :SuggestOpenAPIRequest, 'speakeasy_client_sdk/models/operations/suggestopenapi_request.rb'
|
@@ -131,6 +130,8 @@ module SpeakeasyClientSDK
|
|
131
130
|
autoload :RevokeEmbedAccessTokenResponse, 'speakeasy_client_sdk/models/operations/revokeembedaccesstoken_response.rb'
|
132
131
|
autoload :GetWorkspaceRequest, 'speakeasy_client_sdk/models/operations/getworkspace_request.rb'
|
133
132
|
autoload :GetWorkspaceResponse, 'speakeasy_client_sdk/models/operations/getworkspace_response.rb'
|
133
|
+
autoload :GetWorkspaceFeatureFlagsRequest, 'speakeasy_client_sdk/models/operations/getworkspacefeatureflags_request.rb'
|
134
|
+
autoload :GetWorkspaceFeatureFlagsResponse, 'speakeasy_client_sdk/models/operations/getworkspacefeatureflags_response.rb'
|
134
135
|
autoload :GetWorkspaceEventsByTargetRequest, 'speakeasy_client_sdk/models/operations/getworkspaceeventsbytarget_request.rb'
|
135
136
|
autoload :GetWorkspaceEventsByTargetResponse, 'speakeasy_client_sdk/models/operations/getworkspaceeventsbytarget_response.rb'
|
136
137
|
autoload :GetWorkspaceTargetsRequest, 'speakeasy_client_sdk/models/operations/getworkspacetargets_request.rb'
|
@@ -22,14 +22,20 @@ module SpeakeasyClientSDK
|
|
22
22
|
|
23
23
|
field :tags, T::Array[::String], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('tags') } }
|
24
24
|
|
25
|
+
field :group_override, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('group_override') } }
|
25
26
|
|
26
|
-
|
27
|
-
|
27
|
+
field :method_name_override, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('method_name_override') } }
|
28
|
+
|
29
|
+
|
30
|
+
sig { params(description: ::String, method: ::String, operation_id: ::String, path: ::String, tags: T::Array[::String], group_override: T.nilable(::String), method_name_override: T.nilable(::String)).void }
|
31
|
+
def initialize(description: nil, method: nil, operation_id: nil, path: nil, tags: nil, group_override: nil, method_name_override: nil)
|
28
32
|
@description = description
|
29
33
|
@method = method
|
30
34
|
@operation_id = operation_id
|
31
35
|
@path = path
|
32
36
|
@tags = tags
|
37
|
+
@group_override = group_override
|
38
|
+
@method_name_override = method_name_override
|
33
39
|
end
|
34
40
|
end
|
35
41
|
end
|
@@ -0,0 +1,30 @@
|
|
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 SuggestRequestBody < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :diagnostics, T::Array[::SpeakeasyClientSDK::Shared::Diagnostic], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('diagnostics') } }
|
16
|
+
|
17
|
+
field :oas_summary, ::SpeakeasyClientSDK::Shared::OASSummary, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('oas_summary') } }
|
18
|
+
|
19
|
+
field :suggestion_type, ::SpeakeasyClientSDK::Shared::SuggestRequestBodySuggestionType, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('suggestion_type'), 'decoder': Utils.enum_from_string(::SpeakeasyClientSDK::Shared::SuggestRequestBodySuggestionType, false) } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(diagnostics: T::Array[::SpeakeasyClientSDK::Shared::Diagnostic], oas_summary: ::SpeakeasyClientSDK::Shared::OASSummary, suggestion_type: ::SpeakeasyClientSDK::Shared::SuggestRequestBodySuggestionType).void }
|
23
|
+
def initialize(diagnostics: nil, oas_summary: nil, suggestion_type: nil)
|
24
|
+
@diagnostics = diagnostics
|
25
|
+
@oas_summary = oas_summary
|
26
|
+
@suggestion_type = suggestion_type
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,18 @@
|
|
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 SuggestRequestBodySuggestionType < T::Enum
|
12
|
+
enums do
|
13
|
+
METHOD_NAMES = new('method-names')
|
14
|
+
DIAGNOSTICS_ONLY = new('diagnostics-only')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,24 @@
|
|
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
|
+
# Workspace feature flag response
|
11
|
+
class WorkspaceFeatureFlagResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :feature_flags, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::FeatureFlag]), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('feature_flags') } }
|
16
|
+
|
17
|
+
|
18
|
+
sig { params(feature_flags: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::FeatureFlag])).void }
|
19
|
+
def initialize(feature_flags: nil)
|
20
|
+
@feature_flags = feature_flags
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -64,12 +64,15 @@ 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 :
|
67
|
+
autoload :SuggestRequestBodySuggestionType, 'speakeasy_client_sdk/models/shared/suggestrequestbody_suggestion_type.rb'
|
68
|
+
autoload :SuggestRequestBody, 'speakeasy_client_sdk/models/shared/suggestrequestbody.rb'
|
69
69
|
autoload :Diagnostic, 'speakeasy_client_sdk/models/shared/diagnostic.rb'
|
70
|
+
autoload :SuggestionType, 'speakeasy_client_sdk/models/shared/suggestion_type.rb'
|
71
|
+
autoload :SuggestOptsOld, 'speakeasy_client_sdk/models/shared/suggestoptsold.rb'
|
70
72
|
autoload :EmbedAccessTokenResponse, 'speakeasy_client_sdk/models/shared/embedaccesstokenresponse.rb'
|
71
73
|
autoload :EmbedToken, 'speakeasy_client_sdk/models/shared/embedtoken.rb'
|
72
74
|
autoload :Workspace, 'speakeasy_client_sdk/models/shared/workspace.rb'
|
75
|
+
autoload :WorkspaceFeatureFlagResponse, 'speakeasy_client_sdk/models/shared/workspacefeatureflagresponse.rb'
|
73
76
|
autoload :GenerateBumpType, 'speakeasy_client_sdk/models/shared/generate_bump_type.rb'
|
74
77
|
autoload :OpenapiDiffBumpType, 'speakeasy_client_sdk/models/shared/openapi_diff_bump_type.rb'
|
75
78
|
autoload :CliEvent, 'speakeasy_client_sdk/models/shared/clievent.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.415.
|
46
|
-
@user_agent = 'speakeasy-sdk/ruby 4.2.
|
44
|
+
@sdk_version = '4.2.22'
|
45
|
+
@gen_version = '2.415.8'
|
46
|
+
@user_agent = 'speakeasy-sdk/ruby 4.2.22 2.415.8 0.4.0 . speakeasy_client_sdk_ruby'
|
47
47
|
end
|
48
48
|
|
49
49
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
@@ -19,16 +19,18 @@ module SpeakeasyClientSDK
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
|
-
sig { params(request:
|
23
|
-
def
|
24
|
-
#
|
22
|
+
sig { params(request: ::SpeakeasyClientSDK::Operations::SuggestRequest).returns(::SpeakeasyClientSDK::Operations::SuggestResponse) }
|
23
|
+
def suggest(request)
|
24
|
+
# suggest - Generate suggestions for improving an OpenAPI document.
|
25
|
+
# Get suggestions from an LLM model for improving an OpenAPI document.
|
25
26
|
url, params = @sdk_configuration.get_server_details
|
26
27
|
base_url = Utils.template_url(url, params)
|
27
|
-
url = "#{base_url}/v1/suggest/
|
28
|
+
url = "#{base_url}/v1/suggest/openapi_from_summary"
|
28
29
|
headers = Utils.get_headers(request, @sdk_configuration.globals)
|
29
|
-
req_content_type, data, form = Utils.serialize_request_body(request, :
|
30
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :suggest_request_body, :json)
|
30
31
|
headers['content-type'] = req_content_type
|
31
|
-
|
32
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
33
|
+
headers['Accept'] = 'application/json'
|
32
34
|
headers['user-agent'] = @sdk_configuration.user_agent
|
33
35
|
|
34
36
|
r = @sdk_configuration.client.post(url) do |req|
|
@@ -45,20 +47,12 @@ module SpeakeasyClientSDK
|
|
45
47
|
|
46
48
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
47
49
|
|
48
|
-
res = ::SpeakeasyClientSDK::Operations::
|
50
|
+
res = ::SpeakeasyClientSDK::Operations::SuggestResponse.new(
|
49
51
|
status_code: r.status, content_type: content_type, raw_response: r
|
50
52
|
)
|
51
53
|
if r.status == 200
|
52
|
-
res.
|
53
|
-
|
54
|
-
res.two_hundred_application_x_yaml_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/x-yaml')
|
54
|
+
res.schema = r.env.response_body if Utils.match_content_type(content_type, 'application/json')
|
55
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
56
|
end
|
63
57
|
res
|
64
58
|
end
|
@@ -66,7 +60,7 @@ module SpeakeasyClientSDK
|
|
66
60
|
|
67
61
|
sig { params(request: ::SpeakeasyClientSDK::Operations::SuggestOpenAPIRequest).returns(::SpeakeasyClientSDK::Operations::SuggestOpenAPIResponse) }
|
68
62
|
def suggest_open_api(request)
|
69
|
-
# suggest_open_api - Generate suggestions for improving an OpenAPI document.
|
63
|
+
# suggest_open_api - (DEPRECATED) Generate suggestions for improving an OpenAPI document.
|
70
64
|
# Get suggestions from an LLM model for improving an OpenAPI document.
|
71
65
|
url, params = @sdk_configuration.get_server_details
|
72
66
|
base_url = Utils.template_url(url, params)
|
@@ -117,7 +111,7 @@ module SpeakeasyClientSDK
|
|
117
111
|
@sdk_configuration.globals
|
118
112
|
)
|
119
113
|
headers = Utils.get_headers(request, @sdk_configuration.globals)
|
120
|
-
req_content_type, data, form = Utils.serialize_request_body(request, :
|
114
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :suggest_request_body, :json)
|
121
115
|
headers['content-type'] = req_content_type
|
122
116
|
headers['Accept'] = 'application/json'
|
123
117
|
headers['user-agent'] = @sdk_configuration.user_agent
|
@@ -60,5 +60,46 @@ module SpeakeasyClientSDK
|
|
60
60
|
end
|
61
61
|
res
|
62
62
|
end
|
63
|
+
|
64
|
+
|
65
|
+
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetWorkspaceFeatureFlagsRequest)).returns(::SpeakeasyClientSDK::Operations::GetWorkspaceFeatureFlagsResponse) }
|
66
|
+
def get_workspace_feature_flags(request)
|
67
|
+
# get_workspace_feature_flags - Get workspace feature flags
|
68
|
+
url, params = @sdk_configuration.get_server_details
|
69
|
+
base_url = Utils.template_url(url, params)
|
70
|
+
url = Utils.generate_url(
|
71
|
+
::SpeakeasyClientSDK::Operations::GetWorkspaceFeatureFlagsRequest,
|
72
|
+
base_url,
|
73
|
+
'/v1/workspace/{workspaceID}/feature_flags',
|
74
|
+
request,
|
75
|
+
@sdk_configuration.globals
|
76
|
+
)
|
77
|
+
headers = {}
|
78
|
+
headers['Accept'] = 'application/json'
|
79
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
80
|
+
|
81
|
+
r = @sdk_configuration.client.get(url) do |req|
|
82
|
+
req.headers = headers
|
83
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
84
|
+
end
|
85
|
+
|
86
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
87
|
+
|
88
|
+
res = ::SpeakeasyClientSDK::Operations::GetWorkspaceFeatureFlagsResponse.new(
|
89
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
90
|
+
)
|
91
|
+
if r.status == 200
|
92
|
+
if Utils.match_content_type(content_type, 'application/json')
|
93
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::WorkspaceFeatureFlagResponse)
|
94
|
+
res.workspace_feature_flag_response = out
|
95
|
+
end
|
96
|
+
elsif r.status >= 500 && r.status < 600
|
97
|
+
if Utils.match_content_type(content_type, 'application/json')
|
98
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
99
|
+
res.error = out
|
100
|
+
end
|
101
|
+
end
|
102
|
+
res
|
103
|
+
end
|
63
104
|
end
|
64
105
|
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.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Speakeasy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -151,9 +151,6 @@ 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
|
157
154
|
- lib/speakeasy_client_sdk/models/operations/checkaccess_request.rb
|
158
155
|
- lib/speakeasy_client_sdk/models/operations/checkaccess_response.rb
|
159
156
|
- lib/speakeasy_client_sdk/models/operations/configurecodesamples_response.rb
|
@@ -246,6 +243,8 @@ files:
|
|
246
243
|
- lib/speakeasy_client_sdk/models/operations/getworkspaceaccess_response.rb
|
247
244
|
- lib/speakeasy_client_sdk/models/operations/getworkspaceeventsbytarget_request.rb
|
248
245
|
- lib/speakeasy_client_sdk/models/operations/getworkspaceeventsbytarget_response.rb
|
246
|
+
- lib/speakeasy_client_sdk/models/operations/getworkspacefeatureflags_request.rb
|
247
|
+
- lib/speakeasy_client_sdk/models/operations/getworkspacefeatureflags_response.rb
|
249
248
|
- lib/speakeasy_client_sdk/models/operations/getworkspacetargets_request.rb
|
250
249
|
- lib/speakeasy_client_sdk/models/operations/getworkspacetargets_response.rb
|
251
250
|
- lib/speakeasy_client_sdk/models/operations/githubcheckpublishingsecrets_request.rb
|
@@ -271,6 +270,8 @@ files:
|
|
271
270
|
- lib/speakeasy_client_sdk/models/operations/schema.rb
|
272
271
|
- lib/speakeasy_client_sdk/models/operations/searchworkspaceevents_request.rb
|
273
272
|
- lib/speakeasy_client_sdk/models/operations/searchworkspaceevents_response.rb
|
273
|
+
- lib/speakeasy_client_sdk/models/operations/suggest_request.rb
|
274
|
+
- lib/speakeasy_client_sdk/models/operations/suggest_response.rb
|
274
275
|
- lib/speakeasy_client_sdk/models/operations/suggestopenapi_request.rb
|
275
276
|
- lib/speakeasy_client_sdk/models/operations/suggestopenapi_requestbody.rb
|
276
277
|
- lib/speakeasy_client_sdk/models/operations/suggestopenapi_response.rb
|
@@ -344,7 +345,9 @@ files:
|
|
344
345
|
- lib/speakeasy_client_sdk/models/shared/security.rb
|
345
346
|
- lib/speakeasy_client_sdk/models/shared/shorturl.rb
|
346
347
|
- lib/speakeasy_client_sdk/models/shared/suggestion_type.rb
|
347
|
-
- lib/speakeasy_client_sdk/models/shared/
|
348
|
+
- lib/speakeasy_client_sdk/models/shared/suggestoptsold.rb
|
349
|
+
- lib/speakeasy_client_sdk/models/shared/suggestrequestbody.rb
|
350
|
+
- lib/speakeasy_client_sdk/models/shared/suggestrequestbody_suggestion_type.rb
|
348
351
|
- lib/speakeasy_client_sdk/models/shared/tag.rb
|
349
352
|
- lib/speakeasy_client_sdk/models/shared/targetsdk.rb
|
350
353
|
- lib/speakeasy_client_sdk/models/shared/type.rb
|
@@ -356,6 +359,7 @@ files:
|
|
356
359
|
- lib/speakeasy_client_sdk/models/shared/versionmetadata_input.rb
|
357
360
|
- lib/speakeasy_client_sdk/models/shared/workflowdocument.rb
|
358
361
|
- lib/speakeasy_client_sdk/models/shared/workspace.rb
|
362
|
+
- lib/speakeasy_client_sdk/models/shared/workspacefeatureflagresponse.rb
|
359
363
|
- lib/speakeasy_client_sdk/models/shared/workspaces.rb
|
360
364
|
- lib/speakeasy_client_sdk/organizations.rb
|
361
365
|
- lib/speakeasy_client_sdk/reports.rb
|
@@ -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 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
|
@@ -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 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
|