speakeasy_client_sdk_ruby 1.27.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sdk/apiendpoints.rb +3 -3
- data/lib/sdk/apis.rb +3 -3
- data/lib/sdk/embeds.rb +1 -1
- data/lib/sdk/metadata.rb +2 -2
- data/lib/sdk/models/operations/downloadschema.rb +8 -5
- data/lib/sdk/models/operations/downloadschemarevision.rb +8 -5
- data/lib/sdk/models/operations/getallapiendpoints.rb +4 -4
- data/lib/sdk/models/operations/getallapiversions.rb +7 -7
- data/lib/sdk/models/operations/getallforversionapiendpoints.rb +4 -4
- data/lib/sdk/models/operations/getapis.rb +7 -7
- data/lib/sdk/models/operations/getplugins.rb +5 -5
- data/lib/sdk/models/operations/getschemas.rb +5 -5
- data/lib/sdk/models/operations/getvalidembedaccesstokens.rb +4 -4
- data/lib/sdk/models/operations/getversionmetadata.rb +5 -5
- data/lib/sdk/models/operations/insertversionmetadata.rb +4 -4
- data/lib/sdk/models/operations/queryeventlog.rb +4 -4
- data/lib/sdk/models/operations/registerschema.rb +7 -7
- data/lib/sdk/models/operations/runplugin.rb +4 -4
- data/lib/sdk/models/operations/upsertapi.rb +5 -5
- data/lib/sdk/models/operations/upsertapiendpoint.rb +5 -5
- data/lib/sdk/models/shared/schemadiff.rb +3 -3
- data/lib/sdk/plugins.rb +2 -2
- data/lib/sdk/requests.rb +1 -1
- data/lib/sdk/schemas.rb +5 -5
- data/lib/sdk/sdk.rb +5 -5
- data/lib/sdk/sdkconfiguration.rb +3 -3
- data/lib/speakeasy_client_sdk_ruby.rb +13 -13
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13642b1bdaf1e52006dfb614422cc2407f1b1b77b5a7bc5d0dc018255e54796c
|
4
|
+
data.tar.gz: 4124f51c911c114f06a853238b6dc4630aac6e60221d2a7e635aa36bc0ff9358
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ce5c6a7b28d65fd4e60587191c1a4f293783a6011ae4b70a2169c5761a45f3c58caadc132702571d6e7b596b73224c10b76718a110972e95ab0cf50010477ac
|
7
|
+
data.tar.gz: d06258e4611ef0a4efdb9cf2db280c63f889e8689a1cce27934ca7fff01c61ff50e2c125ddaee4aeb5a9b46afe6b4846c27e22b5edd22a57761cf9f53d33ff2a
|
data/lib/sdk/apiendpoints.rb
CHANGED
@@ -200,7 +200,7 @@ module SpeakeasyClientSDK
|
|
200
200
|
if r.status == 200
|
201
201
|
if Utils.match_content_type(content_type, 'application/json')
|
202
202
|
out = Utils.unmarshal_complex(r.env.response_body, T::Array[Shared::ApiEndpoint])
|
203
|
-
res.
|
203
|
+
res.classes = out
|
204
204
|
end
|
205
205
|
else
|
206
206
|
if Utils.match_content_type(content_type, 'application/json')
|
@@ -239,7 +239,7 @@ module SpeakeasyClientSDK
|
|
239
239
|
if r.status == 200
|
240
240
|
if Utils.match_content_type(content_type, 'application/json')
|
241
241
|
out = Utils.unmarshal_complex(r.env.response_body, T::Array[Shared::ApiEndpoint])
|
242
|
-
res.
|
242
|
+
res.classes = out
|
243
243
|
end
|
244
244
|
else
|
245
245
|
if Utils.match_content_type(content_type, 'application/json')
|
@@ -302,7 +302,7 @@ module SpeakeasyClientSDK
|
|
302
302
|
request
|
303
303
|
)
|
304
304
|
headers = {}
|
305
|
-
req_content_type, data, form = Utils.serialize_request_body(request, :
|
305
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :api_endpoint, :json)
|
306
306
|
headers['content-type'] = req_content_type
|
307
307
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
308
308
|
headers['Accept'] = 'application/json'
|
data/lib/sdk/apis.rb
CHANGED
@@ -163,7 +163,7 @@ module SpeakeasyClientSDK
|
|
163
163
|
if r.status == 200
|
164
164
|
if Utils.match_content_type(content_type, 'application/json')
|
165
165
|
out = Utils.unmarshal_complex(r.env.response_body, T::Array[Shared::Api])
|
166
|
-
res.
|
166
|
+
res.classes = out
|
167
167
|
end
|
168
168
|
else
|
169
169
|
if Utils.match_content_type(content_type, 'application/json')
|
@@ -201,7 +201,7 @@ module SpeakeasyClientSDK
|
|
201
201
|
if r.status == 200
|
202
202
|
if Utils.match_content_type(content_type, 'application/json')
|
203
203
|
out = Utils.unmarshal_complex(r.env.response_body, T::Array[Shared::Api])
|
204
|
-
res.
|
204
|
+
res.classes = out
|
205
205
|
end
|
206
206
|
else
|
207
207
|
if Utils.match_content_type(content_type, 'application/json')
|
@@ -226,7 +226,7 @@ module SpeakeasyClientSDK
|
|
226
226
|
request
|
227
227
|
)
|
228
228
|
headers = {}
|
229
|
-
req_content_type, data, form = Utils.serialize_request_body(request, :
|
229
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :api, :json)
|
230
230
|
headers['content-type'] = req_content_type
|
231
231
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
232
232
|
headers['Accept'] = 'application/json'
|
data/lib/sdk/embeds.rb
CHANGED
@@ -78,7 +78,7 @@ module SpeakeasyClientSDK
|
|
78
78
|
if r.status == 200
|
79
79
|
if Utils.match_content_type(content_type, 'application/json')
|
80
80
|
out = Utils.unmarshal_complex(r.env.response_body, T::Array[Shared::EmbedToken])
|
81
|
-
res.
|
81
|
+
res.classes = out
|
82
82
|
end
|
83
83
|
else
|
84
84
|
if Utils.match_content_type(content_type, 'application/json')
|
data/lib/sdk/metadata.rb
CHANGED
@@ -80,7 +80,7 @@ module SpeakeasyClientSDK
|
|
80
80
|
if r.status == 200
|
81
81
|
if Utils.match_content_type(content_type, 'application/json')
|
82
82
|
out = Utils.unmarshal_complex(r.env.response_body, T::Array[Shared::VersionMetadata])
|
83
|
-
res.
|
83
|
+
res.classes = out
|
84
84
|
end
|
85
85
|
else
|
86
86
|
if Utils.match_content_type(content_type, 'application/json')
|
@@ -103,7 +103,7 @@ module SpeakeasyClientSDK
|
|
103
103
|
request
|
104
104
|
)
|
105
105
|
headers = {}
|
106
|
-
req_content_type, data, form = Utils.serialize_request_body(request, :
|
106
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :version_metadata, :json)
|
107
107
|
headers['content-type'] = req_content_type
|
108
108
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
109
109
|
headers['Accept'] = 'application/json'
|
@@ -34,21 +34,24 @@ module SpeakeasyClientSDK
|
|
34
34
|
field :content_type, String
|
35
35
|
# HTTP response status code for this operation
|
36
36
|
field :status_code, Integer
|
37
|
+
# OK
|
38
|
+
field :two_hundred_application_json_schema, T.nilable(String)
|
39
|
+
# OK
|
40
|
+
field :two_hundred_application_x_yaml_schema, T.nilable(String)
|
37
41
|
# Default error response
|
38
42
|
field :error, T.nilable(Shared::Error)
|
39
43
|
# Raw HTTP response; suitable for custom response parsing
|
40
44
|
field :raw_response, T.nilable(Faraday::Response)
|
41
|
-
# OK
|
42
|
-
field :schema, T.nilable(String)
|
43
45
|
|
44
46
|
|
45
|
-
sig { params(content_type: String, status_code: Integer,
|
46
|
-
def initialize(content_type: nil, status_code: nil,
|
47
|
+
sig { params(content_type: String, status_code: Integer, two_hundred_application_json_schema: T.nilable(String), two_hundred_application_x_yaml_schema: T.nilable(String), error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void }
|
48
|
+
def initialize(content_type: nil, status_code: nil, two_hundred_application_json_schema: nil, two_hundred_application_x_yaml_schema: nil, error: nil, raw_response: nil)
|
47
49
|
@content_type = content_type
|
48
50
|
@status_code = status_code
|
51
|
+
@two_hundred_application_json_schema = two_hundred_application_json_schema
|
52
|
+
@two_hundred_application_x_yaml_schema = two_hundred_application_x_yaml_schema
|
49
53
|
@error = error
|
50
54
|
@raw_response = raw_response
|
51
|
-
@schema = schema
|
52
55
|
end
|
53
56
|
end
|
54
57
|
end
|
@@ -37,21 +37,24 @@ module SpeakeasyClientSDK
|
|
37
37
|
field :content_type, String
|
38
38
|
# HTTP response status code for this operation
|
39
39
|
field :status_code, Integer
|
40
|
+
# OK
|
41
|
+
field :two_hundred_application_json_schema, T.nilable(String)
|
42
|
+
# OK
|
43
|
+
field :two_hundred_application_x_yaml_schema, T.nilable(String)
|
40
44
|
# Default error response
|
41
45
|
field :error, T.nilable(Shared::Error)
|
42
46
|
# Raw HTTP response; suitable for custom response parsing
|
43
47
|
field :raw_response, T.nilable(Faraday::Response)
|
44
|
-
# OK
|
45
|
-
field :schema, T.nilable(String)
|
46
48
|
|
47
49
|
|
48
|
-
sig { params(content_type: String, status_code: Integer,
|
49
|
-
def initialize(content_type: nil, status_code: nil,
|
50
|
+
sig { params(content_type: String, status_code: Integer, two_hundred_application_json_schema: T.nilable(String), two_hundred_application_x_yaml_schema: T.nilable(String), error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void }
|
51
|
+
def initialize(content_type: nil, status_code: nil, two_hundred_application_json_schema: nil, two_hundred_application_x_yaml_schema: nil, error: nil, raw_response: nil)
|
50
52
|
@content_type = content_type
|
51
53
|
@status_code = status_code
|
54
|
+
@two_hundred_application_json_schema = two_hundred_application_json_schema
|
55
|
+
@two_hundred_application_x_yaml_schema = two_hundred_application_x_yaml_schema
|
52
56
|
@error = error
|
53
57
|
@raw_response = raw_response
|
54
|
-
@schema = schema
|
55
58
|
end
|
56
59
|
end
|
57
60
|
end
|
@@ -32,18 +32,18 @@ module SpeakeasyClientSDK
|
|
32
32
|
# HTTP response status code for this operation
|
33
33
|
field :status_code, Integer
|
34
34
|
# OK
|
35
|
-
field :
|
35
|
+
field :classes, T.nilable(T::Array[Shared::ApiEndpoint])
|
36
36
|
# Default error response
|
37
37
|
field :error, T.nilable(Shared::Error)
|
38
38
|
# Raw HTTP response; suitable for custom response parsing
|
39
39
|
field :raw_response, T.nilable(Faraday::Response)
|
40
40
|
|
41
41
|
|
42
|
-
sig { params(content_type: String, status_code: Integer,
|
43
|
-
def initialize(content_type: nil, status_code: nil,
|
42
|
+
sig { params(content_type: String, status_code: Integer, classes: T.nilable(T::Array[Shared::ApiEndpoint]), error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void }
|
43
|
+
def initialize(content_type: nil, status_code: nil, classes: nil, error: nil, raw_response: nil)
|
44
44
|
@content_type = content_type
|
45
45
|
@status_code = status_code
|
46
|
-
@
|
46
|
+
@classes = classes
|
47
47
|
@error = error
|
48
48
|
@raw_response = raw_response
|
49
49
|
end
|
@@ -10,7 +10,7 @@ require_relative '../shared/error'
|
|
10
10
|
module SpeakeasyClientSDK
|
11
11
|
module Operations
|
12
12
|
# Configuration for filter operations
|
13
|
-
class
|
13
|
+
class Op < SpeakeasyClientSDK::Utils::FieldAugmented
|
14
14
|
extend T::Sig
|
15
15
|
|
16
16
|
# Whether to AND or OR the filters
|
@@ -32,10 +32,10 @@ module SpeakeasyClientSDK
|
|
32
32
|
# Metadata to filter Apis on
|
33
33
|
field :metadata, T.nilable(T::Hash[Symbol, T::Array[String]]), { 'query_param': { 'field_name': 'metadata', 'style': 'deepObject', 'explode': true } }
|
34
34
|
# Configuration for filter operations
|
35
|
-
field :op, T.nilable(Operations::
|
35
|
+
field :op, T.nilable(Operations::Op), { 'query_param': { 'field_name': 'op', 'style': 'deepObject', 'explode': true } }
|
36
36
|
|
37
37
|
|
38
|
-
sig { params(api_id: String, metadata: T.nilable(T::Hash[Symbol, T::Array[String]]), op: T.nilable(Operations::
|
38
|
+
sig { params(api_id: String, metadata: T.nilable(T::Hash[Symbol, T::Array[String]]), op: T.nilable(Operations::Op)).void }
|
39
39
|
def initialize(api_id: nil, metadata: nil, op: nil)
|
40
40
|
@api_id = api_id
|
41
41
|
@metadata = metadata
|
@@ -52,18 +52,18 @@ module SpeakeasyClientSDK
|
|
52
52
|
# HTTP response status code for this operation
|
53
53
|
field :status_code, Integer
|
54
54
|
# OK
|
55
|
-
field :
|
55
|
+
field :classes, T.nilable(T::Array[Shared::Api])
|
56
56
|
# Default error response
|
57
57
|
field :error, T.nilable(Shared::Error)
|
58
58
|
# Raw HTTP response; suitable for custom response parsing
|
59
59
|
field :raw_response, T.nilable(Faraday::Response)
|
60
60
|
|
61
61
|
|
62
|
-
sig { params(content_type: String, status_code: Integer,
|
63
|
-
def initialize(content_type: nil, status_code: nil,
|
62
|
+
sig { params(content_type: String, status_code: Integer, classes: T.nilable(T::Array[Shared::Api]), error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void }
|
63
|
+
def initialize(content_type: nil, status_code: nil, classes: nil, error: nil, raw_response: nil)
|
64
64
|
@content_type = content_type
|
65
65
|
@status_code = status_code
|
66
|
-
@
|
66
|
+
@classes = classes
|
67
67
|
@error = error
|
68
68
|
@raw_response = raw_response
|
69
69
|
end
|
@@ -35,18 +35,18 @@ module SpeakeasyClientSDK
|
|
35
35
|
# HTTP response status code for this operation
|
36
36
|
field :status_code, Integer
|
37
37
|
# OK
|
38
|
-
field :
|
38
|
+
field :classes, T.nilable(T::Array[Shared::ApiEndpoint])
|
39
39
|
# Default error response
|
40
40
|
field :error, T.nilable(Shared::Error)
|
41
41
|
# Raw HTTP response; suitable for custom response parsing
|
42
42
|
field :raw_response, T.nilable(Faraday::Response)
|
43
43
|
|
44
44
|
|
45
|
-
sig { params(content_type: String, status_code: Integer,
|
46
|
-
def initialize(content_type: nil, status_code: nil,
|
45
|
+
sig { params(content_type: String, status_code: Integer, classes: T.nilable(T::Array[Shared::ApiEndpoint]), error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void }
|
46
|
+
def initialize(content_type: nil, status_code: nil, classes: nil, error: nil, raw_response: nil)
|
47
47
|
@content_type = content_type
|
48
48
|
@status_code = status_code
|
49
|
-
@
|
49
|
+
@classes = classes
|
50
50
|
@error = error
|
51
51
|
@raw_response = raw_response
|
52
52
|
end
|
@@ -10,7 +10,7 @@ require_relative '../shared/error'
|
|
10
10
|
module SpeakeasyClientSDK
|
11
11
|
module Operations
|
12
12
|
# Configuration for filter operations
|
13
|
-
class
|
13
|
+
class QueryParamOp < SpeakeasyClientSDK::Utils::FieldAugmented
|
14
14
|
extend T::Sig
|
15
15
|
|
16
16
|
# Whether to AND or OR the filters
|
@@ -30,10 +30,10 @@ module SpeakeasyClientSDK
|
|
30
30
|
# Metadata to filter Apis on
|
31
31
|
field :metadata, T.nilable(T::Hash[Symbol, T::Array[String]]), { 'query_param': { 'field_name': 'metadata', 'style': 'deepObject', 'explode': true } }
|
32
32
|
# Configuration for filter operations
|
33
|
-
field :op, T.nilable(Operations::
|
33
|
+
field :op, T.nilable(Operations::QueryParamOp), { 'query_param': { 'field_name': 'op', 'style': 'deepObject', 'explode': true } }
|
34
34
|
|
35
35
|
|
36
|
-
sig { params(metadata: T.nilable(T::Hash[Symbol, T::Array[String]]), op: T.nilable(Operations::
|
36
|
+
sig { params(metadata: T.nilable(T::Hash[Symbol, T::Array[String]]), op: T.nilable(Operations::QueryParamOp)).void }
|
37
37
|
def initialize(metadata: nil, op: nil)
|
38
38
|
@metadata = metadata
|
39
39
|
@op = op
|
@@ -49,18 +49,18 @@ module SpeakeasyClientSDK
|
|
49
49
|
# HTTP response status code for this operation
|
50
50
|
field :status_code, Integer
|
51
51
|
# OK
|
52
|
-
field :
|
52
|
+
field :classes, T.nilable(T::Array[Shared::Api])
|
53
53
|
# Default error response
|
54
54
|
field :error, T.nilable(Shared::Error)
|
55
55
|
# Raw HTTP response; suitable for custom response parsing
|
56
56
|
field :raw_response, T.nilable(Faraday::Response)
|
57
57
|
|
58
58
|
|
59
|
-
sig { params(content_type: String, status_code: Integer,
|
60
|
-
def initialize(content_type: nil, status_code: nil,
|
59
|
+
sig { params(content_type: String, status_code: Integer, classes: T.nilable(T::Array[Shared::Api]), error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void }
|
60
|
+
def initialize(content_type: nil, status_code: nil, classes: nil, error: nil, raw_response: nil)
|
61
61
|
@content_type = content_type
|
62
62
|
@status_code = status_code
|
63
|
-
@
|
63
|
+
@classes = classes
|
64
64
|
@error = error
|
65
65
|
@raw_response = raw_response
|
66
66
|
end
|
@@ -17,20 +17,20 @@ module SpeakeasyClientSDK
|
|
17
17
|
field :content_type, String
|
18
18
|
# HTTP response status code for this operation
|
19
19
|
field :status_code, Integer
|
20
|
+
# OK
|
21
|
+
field :classes, T.nilable(T::Array[Shared::Plugin])
|
20
22
|
# Default error response
|
21
23
|
field :error, T.nilable(Shared::Error)
|
22
|
-
# OK
|
23
|
-
field :plugins, T.nilable(T::Array[Shared::Plugin])
|
24
24
|
# Raw HTTP response; suitable for custom response parsing
|
25
25
|
field :raw_response, T.nilable(Faraday::Response)
|
26
26
|
|
27
27
|
|
28
|
-
sig { params(content_type: String, status_code: Integer,
|
29
|
-
def initialize(content_type: nil, status_code: nil,
|
28
|
+
sig { params(content_type: String, status_code: Integer, classes: T.nilable(T::Array[Shared::Plugin]), error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void }
|
29
|
+
def initialize(content_type: nil, status_code: nil, classes: nil, error: nil, raw_response: nil)
|
30
30
|
@content_type = content_type
|
31
31
|
@status_code = status_code
|
32
|
+
@classes = classes
|
32
33
|
@error = error
|
33
|
-
@plugins = plugins
|
34
34
|
@raw_response = raw_response
|
35
35
|
end
|
36
36
|
end
|
@@ -34,21 +34,21 @@ module SpeakeasyClientSDK
|
|
34
34
|
field :content_type, String
|
35
35
|
# HTTP response status code for this operation
|
36
36
|
field :status_code, Integer
|
37
|
+
# OK
|
38
|
+
field :classes, T.nilable(T::Array[Shared::Schema])
|
37
39
|
# Default error response
|
38
40
|
field :error, T.nilable(Shared::Error)
|
39
41
|
# Raw HTTP response; suitable for custom response parsing
|
40
42
|
field :raw_response, T.nilable(Faraday::Response)
|
41
|
-
# OK
|
42
|
-
field :schemata, T.nilable(T::Array[Shared::Schema])
|
43
43
|
|
44
44
|
|
45
|
-
sig { params(content_type: String, status_code: Integer,
|
46
|
-
def initialize(content_type: nil, status_code: nil,
|
45
|
+
sig { params(content_type: String, status_code: Integer, classes: T.nilable(T::Array[Shared::Schema]), error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void }
|
46
|
+
def initialize(content_type: nil, status_code: nil, classes: nil, error: nil, raw_response: nil)
|
47
47
|
@content_type = content_type
|
48
48
|
@status_code = status_code
|
49
|
+
@classes = classes
|
49
50
|
@error = error
|
50
51
|
@raw_response = raw_response
|
51
|
-
@schemata = schemata
|
52
52
|
end
|
53
53
|
end
|
54
54
|
end
|
@@ -18,18 +18,18 @@ module SpeakeasyClientSDK
|
|
18
18
|
# HTTP response status code for this operation
|
19
19
|
field :status_code, Integer
|
20
20
|
# OK
|
21
|
-
field :
|
21
|
+
field :classes, T.nilable(T::Array[Shared::EmbedToken])
|
22
22
|
# Default error response
|
23
23
|
field :error, T.nilable(Shared::Error)
|
24
24
|
# Raw HTTP response; suitable for custom response parsing
|
25
25
|
field :raw_response, T.nilable(Faraday::Response)
|
26
26
|
|
27
27
|
|
28
|
-
sig { params(content_type: String, status_code: Integer,
|
29
|
-
def initialize(content_type: nil, status_code: nil,
|
28
|
+
sig { params(content_type: String, status_code: Integer, classes: T.nilable(T::Array[Shared::EmbedToken]), error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void }
|
29
|
+
def initialize(content_type: nil, status_code: nil, classes: nil, error: nil, raw_response: nil)
|
30
30
|
@content_type = content_type
|
31
31
|
@status_code = status_code
|
32
|
-
@
|
32
|
+
@classes = classes
|
33
33
|
@error = error
|
34
34
|
@raw_response = raw_response
|
35
35
|
end
|
@@ -34,21 +34,21 @@ module SpeakeasyClientSDK
|
|
34
34
|
field :content_type, String
|
35
35
|
# HTTP response status code for this operation
|
36
36
|
field :status_code, Integer
|
37
|
+
# OK
|
38
|
+
field :classes, T.nilable(T::Array[Shared::VersionMetadata])
|
37
39
|
# Default error response
|
38
40
|
field :error, T.nilable(Shared::Error)
|
39
41
|
# Raw HTTP response; suitable for custom response parsing
|
40
42
|
field :raw_response, T.nilable(Faraday::Response)
|
41
|
-
# OK
|
42
|
-
field :version_metadata, T.nilable(T::Array[Shared::VersionMetadata])
|
43
43
|
|
44
44
|
|
45
|
-
sig { params(content_type: String, status_code: Integer,
|
46
|
-
def initialize(content_type: nil, status_code: nil,
|
45
|
+
sig { params(content_type: String, status_code: Integer, classes: T.nilable(T::Array[Shared::VersionMetadata]), error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void }
|
46
|
+
def initialize(content_type: nil, status_code: nil, classes: nil, error: nil, raw_response: nil)
|
47
47
|
@content_type = content_type
|
48
48
|
@status_code = status_code
|
49
|
+
@classes = classes
|
49
50
|
@error = error
|
50
51
|
@raw_response = raw_response
|
51
|
-
@version_metadata = version_metadata
|
52
52
|
end
|
53
53
|
end
|
54
54
|
end
|
@@ -19,14 +19,14 @@ module SpeakeasyClientSDK
|
|
19
19
|
# The version ID of the Api to insert metadata for.
|
20
20
|
field :version_id, String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
|
21
21
|
# A JSON representation of the metadata to insert.
|
22
|
-
field :
|
22
|
+
field :version_metadata, Shared::VersionMetadataInput, { 'request': { 'media_type': 'application/json' } }
|
23
23
|
|
24
24
|
|
25
|
-
sig { params(api_id: String, version_id: String,
|
26
|
-
def initialize(api_id: nil, version_id: nil,
|
25
|
+
sig { params(api_id: String, version_id: String, version_metadata: Shared::VersionMetadataInput).void }
|
26
|
+
def initialize(api_id: nil, version_id: nil, version_metadata: nil)
|
27
27
|
@api_id = api_id
|
28
28
|
@version_id = version_id
|
29
|
-
@
|
29
|
+
@version_metadata = version_metadata
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
@@ -33,18 +33,18 @@ module SpeakeasyClientSDK
|
|
33
33
|
# HTTP response status code for this operation
|
34
34
|
field :status_code, Integer
|
35
35
|
# OK
|
36
|
-
field :
|
36
|
+
field :classes, T.nilable(T::Array[Shared::BoundedRequest])
|
37
37
|
# Default error response
|
38
38
|
field :error, T.nilable(Shared::Error)
|
39
39
|
# Raw HTTP response; suitable for custom response parsing
|
40
40
|
field :raw_response, T.nilable(Faraday::Response)
|
41
41
|
|
42
42
|
|
43
|
-
sig { params(content_type: String, status_code: Integer,
|
44
|
-
def initialize(content_type: nil, status_code: nil,
|
43
|
+
sig { params(content_type: String, status_code: Integer, classes: T.nilable(T::Array[Shared::BoundedRequest]), error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void }
|
44
|
+
def initialize(content_type: nil, status_code: nil, classes: nil, error: nil, raw_response: nil)
|
45
45
|
@content_type = content_type
|
46
46
|
@status_code = status_code
|
47
|
-
@
|
47
|
+
@classes = classes
|
48
48
|
@error = error
|
49
49
|
@raw_response = raw_response
|
50
50
|
end
|
@@ -10,19 +10,19 @@ require_relative '../shared/error'
|
|
10
10
|
module SpeakeasyClientSDK
|
11
11
|
module Operations
|
12
12
|
|
13
|
-
class
|
13
|
+
class File < SpeakeasyClientSDK::Utils::FieldAugmented
|
14
14
|
extend T::Sig
|
15
15
|
|
16
16
|
|
17
17
|
field :content, String, { 'multipart_form': { 'content': true } }
|
18
18
|
|
19
|
-
field :
|
19
|
+
field :file_name, String, { 'multipart_form': { 'field_name': 'file' } }
|
20
20
|
|
21
21
|
|
22
|
-
sig { params(content: String,
|
23
|
-
def initialize(content: nil,
|
22
|
+
sig { params(content: String, file_name: String).void }
|
23
|
+
def initialize(content: nil, file_name: nil)
|
24
24
|
@content = content
|
25
|
-
@
|
25
|
+
@file_name = file_name
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -31,10 +31,10 @@ module SpeakeasyClientSDK
|
|
31
31
|
extend T::Sig
|
32
32
|
|
33
33
|
|
34
|
-
field :file, Operations::
|
34
|
+
field :file, Operations::File, { 'multipart_form': { 'file': true } }
|
35
35
|
|
36
36
|
|
37
|
-
sig { params(file: Operations::
|
37
|
+
sig { params(file: Operations::File).void }
|
38
38
|
def initialize(file: nil)
|
39
39
|
@file = file
|
40
40
|
end
|
@@ -36,18 +36,18 @@ module SpeakeasyClientSDK
|
|
36
36
|
# HTTP response status code for this operation
|
37
37
|
field :status_code, Integer
|
38
38
|
# OK
|
39
|
-
field :
|
39
|
+
field :classes, T.nilable(T::Array[Shared::BoundedRequest])
|
40
40
|
# Default error response
|
41
41
|
field :error, T.nilable(Shared::Error)
|
42
42
|
# Raw HTTP response; suitable for custom response parsing
|
43
43
|
field :raw_response, T.nilable(Faraday::Response)
|
44
44
|
|
45
45
|
|
46
|
-
sig { params(content_type: String, status_code: Integer,
|
47
|
-
def initialize(content_type: nil, status_code: nil,
|
46
|
+
sig { params(content_type: String, status_code: Integer, classes: T.nilable(T::Array[Shared::BoundedRequest]), error: T.nilable(Shared::Error), raw_response: T.nilable(Faraday::Response)).void }
|
47
|
+
def initialize(content_type: nil, status_code: nil, classes: nil, error: nil, raw_response: nil)
|
48
48
|
@content_type = content_type
|
49
49
|
@status_code = status_code
|
50
|
-
@
|
50
|
+
@classes = classes
|
51
51
|
@error = error
|
52
52
|
@raw_response = raw_response
|
53
53
|
end
|
@@ -14,16 +14,16 @@ module SpeakeasyClientSDK
|
|
14
14
|
class UpsertApiRequest < SpeakeasyClientSDK::Utils::FieldAugmented
|
15
15
|
extend T::Sig
|
16
16
|
|
17
|
+
# A JSON representation of the Api to upsert
|
18
|
+
field :api, Shared::ApiInput, { 'request': { 'media_type': 'application/json' } }
|
17
19
|
# The ID of the Api to upsert.
|
18
20
|
field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
|
19
|
-
# A JSON representation of the Api to upsert
|
20
|
-
field :api_input, Shared::ApiInput, { 'request': { 'media_type': 'application/json' } }
|
21
21
|
|
22
22
|
|
23
|
-
sig { params(
|
24
|
-
def initialize(
|
23
|
+
sig { params(api: Shared::ApiInput, api_id: String).void }
|
24
|
+
def initialize(api: nil, api_id: nil)
|
25
|
+
@api = api
|
25
26
|
@api_id = api_id
|
26
|
-
@api_input = api_input
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
@@ -14,20 +14,20 @@ module SpeakeasyClientSDK
|
|
14
14
|
class UpsertApiEndpointRequest < SpeakeasyClientSDK::Utils::FieldAugmented
|
15
15
|
extend T::Sig
|
16
16
|
|
17
|
+
# A JSON representation of the ApiEndpoint to upsert.
|
18
|
+
field :api_endpoint, Shared::ApiEndpointInput, { 'request': { 'media_type': 'application/json' } }
|
17
19
|
# The ID of the ApiEndpoint to upsert.
|
18
20
|
field :api_endpoint_id, String, { 'path_param': { 'field_name': 'apiEndpointID', 'style': 'simple', 'explode': false } }
|
19
|
-
# A JSON representation of the ApiEndpoint to upsert.
|
20
|
-
field :api_endpoint_input, Shared::ApiEndpointInput, { 'request': { 'media_type': 'application/json' } }
|
21
21
|
# The ID of the Api the ApiEndpoint belongs to.
|
22
22
|
field :api_id, String, { 'path_param': { 'field_name': 'apiID', 'style': 'simple', 'explode': false } }
|
23
23
|
# The version ID of the Api the ApiEndpoint belongs to.
|
24
24
|
field :version_id, String, { 'path_param': { 'field_name': 'versionID', 'style': 'simple', 'explode': false } }
|
25
25
|
|
26
26
|
|
27
|
-
sig { params(
|
28
|
-
def initialize(
|
27
|
+
sig { params(api_endpoint: Shared::ApiEndpointInput, api_endpoint_id: String, api_id: String, version_id: String).void }
|
28
|
+
def initialize(api_endpoint: nil, api_endpoint_id: nil, api_id: nil, version_id: nil)
|
29
|
+
@api_endpoint = api_endpoint
|
29
30
|
@api_endpoint_id = api_endpoint_id
|
30
|
-
@api_endpoint_input = api_endpoint_input
|
31
31
|
@api_id = api_id
|
32
32
|
@version_id = version_id
|
33
33
|
end
|
@@ -9,7 +9,7 @@ require 'faraday'
|
|
9
9
|
module SpeakeasyClientSDK
|
10
10
|
module Shared
|
11
11
|
|
12
|
-
class
|
12
|
+
class ValueChange < SpeakeasyClientSDK::Utils::FieldAugmented
|
13
13
|
extend T::Sig
|
14
14
|
|
15
15
|
# Represents the previous value of the element.
|
@@ -34,10 +34,10 @@ module SpeakeasyClientSDK
|
|
34
34
|
# Holds every deletion change in the diff.
|
35
35
|
field :deletions, T::Array[String], { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('deletions') } }
|
36
36
|
# Holds every modification change in the diff.
|
37
|
-
field :modifications, T::Hash[Symbol, Shared::
|
37
|
+
field :modifications, T::Hash[Symbol, Shared::ValueChange], { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('modifications') } }
|
38
38
|
|
39
39
|
|
40
|
-
sig { params(additions: T::Array[String], deletions: T::Array[String], modifications: T::Hash[Symbol, Shared::
|
40
|
+
sig { params(additions: T::Array[String], deletions: T::Array[String], modifications: T::Hash[Symbol, Shared::ValueChange]).void }
|
41
41
|
def initialize(additions: nil, deletions: nil, modifications: nil)
|
42
42
|
@additions = additions
|
43
43
|
@deletions = deletions
|
data/lib/sdk/plugins.rb
CHANGED
@@ -40,7 +40,7 @@ module SpeakeasyClientSDK
|
|
40
40
|
if r.status == 200
|
41
41
|
if Utils.match_content_type(content_type, 'application/json')
|
42
42
|
out = Utils.unmarshal_complex(r.env.response_body, T::Array[Shared::Plugin])
|
43
|
-
res.
|
43
|
+
res.classes = out
|
44
44
|
end
|
45
45
|
else
|
46
46
|
if Utils.match_content_type(content_type, 'application/json')
|
@@ -81,7 +81,7 @@ module SpeakeasyClientSDK
|
|
81
81
|
if r.status == 200
|
82
82
|
if Utils.match_content_type(content_type, 'application/json')
|
83
83
|
out = Utils.unmarshal_complex(r.env.response_body, T::Array[Shared::BoundedRequest])
|
84
|
-
res.
|
84
|
+
res.classes = out
|
85
85
|
end
|
86
86
|
else
|
87
87
|
if Utils.match_content_type(content_type, 'application/json')
|
data/lib/sdk/requests.rb
CHANGED
@@ -121,7 +121,7 @@ module SpeakeasyClientSDK
|
|
121
121
|
if r.status == 200
|
122
122
|
if Utils.match_content_type(content_type, 'application/json')
|
123
123
|
out = Utils.unmarshal_complex(r.env.response_body, T::Array[Shared::BoundedRequest])
|
124
|
-
res.
|
124
|
+
res.classes = out
|
125
125
|
end
|
126
126
|
else
|
127
127
|
if Utils.match_content_type(content_type, 'application/json')
|
data/lib/sdk/schemas.rb
CHANGED
@@ -78,8 +78,8 @@ module SpeakeasyClientSDK
|
|
78
78
|
status_code: r.status, content_type: content_type, raw_response: r
|
79
79
|
)
|
80
80
|
if r.status == 200
|
81
|
-
res.
|
82
|
-
res.
|
81
|
+
res.two_hundred_application_json_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/json')
|
82
|
+
res.two_hundred_application_x_yaml_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/x-yaml')
|
83
83
|
else
|
84
84
|
if Utils.match_content_type(content_type, 'application/json')
|
85
85
|
out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
|
@@ -115,8 +115,8 @@ module SpeakeasyClientSDK
|
|
115
115
|
status_code: r.status, content_type: content_type, raw_response: r
|
116
116
|
)
|
117
117
|
if r.status == 200
|
118
|
-
res.
|
119
|
-
res.
|
118
|
+
res.two_hundred_application_json_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/json')
|
119
|
+
res.two_hundred_application_x_yaml_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/x-yaml')
|
120
120
|
else
|
121
121
|
if Utils.match_content_type(content_type, 'application/json')
|
122
122
|
out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
|
@@ -277,7 +277,7 @@ module SpeakeasyClientSDK
|
|
277
277
|
if r.status == 200
|
278
278
|
if Utils.match_content_type(content_type, 'application/json')
|
279
279
|
out = Utils.unmarshal_complex(r.env.response_body, T::Array[Shared::Schema])
|
280
|
-
res.
|
280
|
+
res.classes = out
|
281
281
|
end
|
282
282
|
else
|
283
283
|
if Utils.match_content_type(content_type, 'application/json')
|
data/lib/sdk/sdk.rb
CHANGED
@@ -12,7 +12,7 @@ module SpeakeasyClientSDK
|
|
12
12
|
class SDK
|
13
13
|
extend T::Sig
|
14
14
|
|
15
|
-
attr_accessor :
|
15
|
+
attr_accessor :apis, :api_endpoints, :metadata, :schemas, :requests, :plugins, :embeds
|
16
16
|
|
17
17
|
attr_accessor :security, :language, :sdk_version, :gen_version
|
18
18
|
|
@@ -82,13 +82,13 @@ module SpeakeasyClientSDK
|
|
82
82
|
|
83
83
|
sig { void }
|
84
84
|
def init_sdks
|
85
|
-
@api_endpoints = ApiEndpoints.new(@sdk_configuration)
|
86
85
|
@apis = Apis.new(@sdk_configuration)
|
87
|
-
@
|
86
|
+
@api_endpoints = ApiEndpoints.new(@sdk_configuration)
|
88
87
|
@metadata = Metadata.new(@sdk_configuration)
|
89
|
-
@plugins = Plugins.new(@sdk_configuration)
|
90
|
-
@requests = Requests.new(@sdk_configuration)
|
91
88
|
@schemas = Schemas.new(@sdk_configuration)
|
89
|
+
@requests = Requests.new(@sdk_configuration)
|
90
|
+
@plugins = Plugins.new(@sdk_configuration)
|
91
|
+
@embeds = Embeds.new(@sdk_configuration)
|
92
92
|
end
|
93
93
|
|
94
94
|
|
data/lib/sdk/sdkconfiguration.rb
CHANGED
@@ -39,9 +39,9 @@ module OpenApiSDK
|
|
39
39
|
@server = server_url.nil? ? '' : server_url
|
40
40
|
@language = 'ruby'
|
41
41
|
@openapi_doc_version = '0.3.0'
|
42
|
-
@sdk_version = '
|
43
|
-
@gen_version = '2.
|
44
|
-
@user_agent = 'speakeasy-sdk/ruby
|
42
|
+
@sdk_version = '2.0.0'
|
43
|
+
@gen_version = '2.181.1'
|
44
|
+
@user_agent = 'speakeasy-sdk/ruby 2.0.0 2.181.1 0.3.0 speakeasy_client_sdk_ruby'
|
45
45
|
end
|
46
46
|
|
47
47
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
@@ -7,20 +7,20 @@ require_relative 'sdk/utils/utils'
|
|
7
7
|
require_relative 'sdk/utils/metadata_fields'
|
8
8
|
require_relative 'sdk/sdk'
|
9
9
|
require_relative 'sdk/models/shared/error'
|
10
|
-
require_relative 'sdk/models/shared/apiendpoint'
|
11
10
|
require_relative 'sdk/models/shared/generateopenapispecdiff'
|
12
11
|
require_relative 'sdk/models/shared/api'
|
13
|
-
require_relative 'sdk/models/shared/
|
14
|
-
require_relative 'sdk/models/shared/filters'
|
15
|
-
require_relative 'sdk/models/shared/filter'
|
16
|
-
require_relative 'sdk/models/shared/embedtoken'
|
12
|
+
require_relative 'sdk/models/shared/apiendpoint'
|
17
13
|
require_relative 'sdk/models/shared/versionmetadata'
|
18
|
-
require_relative 'sdk/models/shared/plugin'
|
19
|
-
require_relative 'sdk/models/shared/boundedrequest'
|
20
|
-
require_relative 'sdk/models/shared/requestmetadata'
|
21
|
-
require_relative 'sdk/models/shared/unboundedrequest'
|
22
14
|
require_relative 'sdk/models/shared/schema'
|
23
15
|
require_relative 'sdk/models/shared/schemadiff'
|
16
|
+
require_relative 'sdk/models/shared/unboundedrequest'
|
17
|
+
require_relative 'sdk/models/shared/boundedrequest'
|
18
|
+
require_relative 'sdk/models/shared/requestmetadata'
|
19
|
+
require_relative 'sdk/models/shared/filters'
|
20
|
+
require_relative 'sdk/models/shared/filter'
|
21
|
+
require_relative 'sdk/models/shared/plugin'
|
22
|
+
require_relative 'sdk/models/shared/embedaccesstokenresponse'
|
23
|
+
require_relative 'sdk/models/shared/embedtoken'
|
24
24
|
require_relative 'sdk/models/shared/security'
|
25
25
|
require_relative 'sdk/models/operations/deleteapi'
|
26
26
|
require_relative 'sdk/models/operations/deleteapiendpoint'
|
@@ -58,13 +58,13 @@ require_relative 'sdk/models/operations/upsertapiendpoint'
|
|
58
58
|
require_relative 'sdk/models/operations/upsertplugin'
|
59
59
|
require_relative 'sdk/models/operations/validateapikey'
|
60
60
|
require_relative 'sdk/sdkconfiguration'
|
61
|
-
require_relative 'sdk/apiendpoints'
|
62
61
|
require_relative 'sdk/apis'
|
63
|
-
require_relative 'sdk/
|
62
|
+
require_relative 'sdk/apiendpoints'
|
64
63
|
require_relative 'sdk/metadata'
|
65
|
-
require_relative 'sdk/plugins'
|
66
|
-
require_relative 'sdk/requests'
|
67
64
|
require_relative 'sdk/schemas'
|
65
|
+
require_relative 'sdk/requests'
|
66
|
+
require_relative 'sdk/plugins'
|
67
|
+
require_relative 'sdk/embeds'
|
68
68
|
|
69
69
|
module SpeakeasyClientSDK
|
70
70
|
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
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Speakeasy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|