speakeasy_client_sdk_ruby 2.1.2 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be96c59bf77706bea4d129a9890d7d9741e36dac38c4c53adb153fd1ac341d13
4
- data.tar.gz: 00dbbca711babe32f90e2b02f194f55e331eda9d36ca28e2e2f3dbe99aff23d4
3
+ metadata.gz: 4544ed43424286b672d7f150853891e94594910385dffced4be6fdf6bb6f2c71
4
+ data.tar.gz: 31a13630acbb269a8cea1cc7b8bb9050ba672a6b6b4ddf5b1a78088317d51315
5
5
  SHA512:
6
- metadata.gz: b97a43bddce319c5b4bba65352ef9b42e68598bb459c63fe3e72b67af7c2d46e7fee01c07592ccf084832612b16329645938584bf3e1b5a5eb686e9482942719
7
- data.tar.gz: 4343d7893d4f909113d1edb215462a50e4fb3d4fa0ff929099b271cb69fdb5d6cbc1239acab06a3125dc075be351bf3f6687e5be7e17e34c6d68ac2fe4ad8be5
6
+ metadata.gz: '081b8dd1882b94eafaa6ef96714273978258f1c7b051968b4a2166540ed44f733e30b8020f46e884b3d1105467edc779d51708b5ef47e861eeff693c9ad01fe9'
7
+ data.tar.gz: 93db33b61601291e81abbae7b0ecc8d7d6719ff3e1fa8cfa2e2ff7a4907e94d7e8511b2ff94a70997f4cc1b1548a34d72855c0942ae98c43c8c4c41fe93a594c
@@ -45,6 +45,7 @@ module SpeakeasyClientSDK
45
45
  )
46
46
  if r.status == 200
47
47
  else
48
+
48
49
  if Utils.match_content_type(content_type, 'application/json')
49
50
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
50
51
  res.error = out
@@ -86,6 +87,7 @@ module SpeakeasyClientSDK
86
87
  res.api_endpoint = out
87
88
  end
88
89
  else
90
+
89
91
  if Utils.match_content_type(content_type, 'application/json')
90
92
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
91
93
  res.error = out
@@ -127,6 +129,7 @@ module SpeakeasyClientSDK
127
129
  res.generate_open_api_spec_diff = out
128
130
  end
129
131
  else
132
+
130
133
  if Utils.match_content_type(content_type, 'application/json')
131
134
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
132
135
  res.error = out
@@ -163,7 +166,9 @@ module SpeakeasyClientSDK
163
166
  )
164
167
  if r.status == 200
165
168
  res.postman_collection = r.env.response_body if Utils.match_content_type(content_type, 'application/octet-stream')
169
+
166
170
  else
171
+
167
172
  if Utils.match_content_type(content_type, 'application/json')
168
173
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
169
174
  res.error = out
@@ -203,6 +208,7 @@ module SpeakeasyClientSDK
203
208
  res.classes = out
204
209
  end
205
210
  else
211
+
206
212
  if Utils.match_content_type(content_type, 'application/json')
207
213
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
208
214
  res.error = out
@@ -242,6 +248,7 @@ module SpeakeasyClientSDK
242
248
  res.classes = out
243
249
  end
244
250
  else
251
+
245
252
  if Utils.match_content_type(content_type, 'application/json')
246
253
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
247
254
  res.error = out
@@ -281,6 +288,7 @@ module SpeakeasyClientSDK
281
288
  res.api_endpoint = out
282
289
  end
283
290
  else
291
+
284
292
  if Utils.match_content_type(content_type, 'application/json')
285
293
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
286
294
  res.error = out
@@ -331,6 +339,7 @@ module SpeakeasyClientSDK
331
339
  res.api_endpoint = out
332
340
  end
333
341
  else
342
+
334
343
  if Utils.match_content_type(content_type, 'application/json')
335
344
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
336
345
  res.error = out
data/lib/sdk/apis.rb CHANGED
@@ -45,6 +45,7 @@ module SpeakeasyClientSDK
45
45
  )
46
46
  if r.status == 200
47
47
  else
48
+
48
49
  if Utils.match_content_type(content_type, 'application/json')
49
50
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
50
51
  res.error = out
@@ -86,6 +87,7 @@ module SpeakeasyClientSDK
86
87
  res.generate_open_api_spec_diff = out
87
88
  end
88
89
  else
90
+
89
91
  if Utils.match_content_type(content_type, 'application/json')
90
92
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
91
93
  res.error = out
@@ -122,7 +124,9 @@ module SpeakeasyClientSDK
122
124
  )
123
125
  if r.status == 200
124
126
  res.postman_collection = r.env.response_body if Utils.match_content_type(content_type, 'application/octet-stream')
127
+
125
128
  else
129
+
126
130
  if Utils.match_content_type(content_type, 'application/json')
127
131
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
128
132
  res.error = out
@@ -166,6 +170,7 @@ module SpeakeasyClientSDK
166
170
  res.classes = out
167
171
  end
168
172
  else
173
+
169
174
  if Utils.match_content_type(content_type, 'application/json')
170
175
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
171
176
  res.error = out
@@ -204,6 +209,7 @@ module SpeakeasyClientSDK
204
209
  res.classes = out
205
210
  end
206
211
  else
212
+
207
213
  if Utils.match_content_type(content_type, 'application/json')
208
214
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
209
215
  res.error = out
@@ -255,6 +261,7 @@ module SpeakeasyClientSDK
255
261
  res.api = out
256
262
  end
257
263
  else
264
+
258
265
  if Utils.match_content_type(content_type, 'application/json')
259
266
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
260
267
  res.error = out
data/lib/sdk/embeds.rb CHANGED
@@ -47,6 +47,7 @@ module SpeakeasyClientSDK
47
47
  res.embed_access_token_response = out
48
48
  end
49
49
  else
50
+
50
51
  if Utils.match_content_type(content_type, 'application/json')
51
52
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
52
53
  res.error = out
@@ -81,6 +82,7 @@ module SpeakeasyClientSDK
81
82
  res.classes = out
82
83
  end
83
84
  else
85
+
84
86
  if Utils.match_content_type(content_type, 'application/json')
85
87
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
86
88
  res.error = out
@@ -116,6 +118,7 @@ module SpeakeasyClientSDK
116
118
  )
117
119
  if r.status == 200
118
120
  else
121
+
119
122
  if Utils.match_content_type(content_type, 'application/json')
120
123
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
121
124
  res.error = out
data/lib/sdk/metadata.rb CHANGED
@@ -44,6 +44,7 @@ module SpeakeasyClientSDK
44
44
  )
45
45
  if r.status == 200
46
46
  else
47
+
47
48
  if Utils.match_content_type(content_type, 'application/json')
48
49
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
49
50
  res.error = out
@@ -83,6 +84,7 @@ module SpeakeasyClientSDK
83
84
  res.classes = out
84
85
  end
85
86
  else
87
+
86
88
  if Utils.match_content_type(content_type, 'application/json')
87
89
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
88
90
  res.error = out
@@ -132,6 +134,7 @@ module SpeakeasyClientSDK
132
134
  res.version_metadata = out
133
135
  end
134
136
  else
137
+
135
138
  if Utils.match_content_type(content_type, 'application/json')
136
139
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
137
140
  res.error = out
data/lib/sdk/plugins.rb CHANGED
@@ -43,6 +43,7 @@ module SpeakeasyClientSDK
43
43
  res.classes = out
44
44
  end
45
45
  else
46
+
46
47
  if Utils.match_content_type(content_type, 'application/json')
47
48
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
48
49
  res.error = out
@@ -84,6 +85,7 @@ module SpeakeasyClientSDK
84
85
  res.classes = out
85
86
  end
86
87
  else
88
+
87
89
  if Utils.match_content_type(content_type, 'application/json')
88
90
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
89
91
  res.error = out
@@ -128,6 +130,7 @@ module SpeakeasyClientSDK
128
130
  res.plugin = out
129
131
  end
130
132
  else
133
+
131
134
  if Utils.match_content_type(content_type, 'application/json')
132
135
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
133
136
  res.error = out
data/lib/sdk/requests.rb CHANGED
@@ -46,7 +46,9 @@ module SpeakeasyClientSDK
46
46
  )
47
47
  if r.status == 200
48
48
  res.postman_collection = r.env.response_body if Utils.match_content_type(content_type, 'application/octet-stream')
49
+
49
50
  else
51
+
50
52
  if Utils.match_content_type(content_type, 'application/json')
51
53
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
52
54
  res.error = out
@@ -86,6 +88,7 @@ module SpeakeasyClientSDK
86
88
  res.unbounded_request = out
87
89
  end
88
90
  else
91
+
89
92
  if Utils.match_content_type(content_type, 'application/json')
90
93
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
91
94
  res.error = out
@@ -124,6 +127,7 @@ module SpeakeasyClientSDK
124
127
  res.classes = out
125
128
  end
126
129
  else
130
+
127
131
  if Utils.match_content_type(content_type, 'application/json')
128
132
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
129
133
  res.error = out
data/lib/sdk/schemas.rb CHANGED
@@ -44,6 +44,7 @@ module SpeakeasyClientSDK
44
44
  )
45
45
  if r.status == 200
46
46
  else
47
+
47
48
  if Utils.match_content_type(content_type, 'application/json')
48
49
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
49
50
  res.error = out
@@ -79,8 +80,11 @@ module SpeakeasyClientSDK
79
80
  )
80
81
  if r.status == 200
81
82
  res.two_hundred_application_json_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/json')
83
+
82
84
  res.two_hundred_application_x_yaml_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/x-yaml')
85
+
83
86
  else
87
+
84
88
  if Utils.match_content_type(content_type, 'application/json')
85
89
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
86
90
  res.error = out
@@ -116,8 +120,11 @@ module SpeakeasyClientSDK
116
120
  )
117
121
  if r.status == 200
118
122
  res.two_hundred_application_json_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/json')
123
+
119
124
  res.two_hundred_application_x_yaml_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/x-yaml')
125
+
120
126
  else
127
+
121
128
  if Utils.match_content_type(content_type, 'application/json')
122
129
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
123
130
  res.error = out
@@ -159,6 +166,7 @@ module SpeakeasyClientSDK
159
166
  res.schema = out
160
167
  end
161
168
  else
169
+
162
170
  if Utils.match_content_type(content_type, 'application/json')
163
171
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
164
172
  res.error = out
@@ -198,6 +206,7 @@ module SpeakeasyClientSDK
198
206
  res.schema_diff = out
199
207
  end
200
208
  else
209
+
201
210
  if Utils.match_content_type(content_type, 'application/json')
202
211
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
203
212
  res.error = out
@@ -239,6 +248,7 @@ module SpeakeasyClientSDK
239
248
  res.schema = out
240
249
  end
241
250
  else
251
+
242
252
  if Utils.match_content_type(content_type, 'application/json')
243
253
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
244
254
  res.error = out
@@ -280,6 +290,7 @@ module SpeakeasyClientSDK
280
290
  res.classes = out
281
291
  end
282
292
  else
293
+
283
294
  if Utils.match_content_type(content_type, 'application/json')
284
295
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
285
296
  res.error = out
@@ -327,6 +338,7 @@ module SpeakeasyClientSDK
327
338
  )
328
339
  if r.status == 200
329
340
  else
341
+
330
342
  if Utils.match_content_type(content_type, 'application/json')
331
343
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
332
344
  res.error = out
data/lib/sdk/sdk.rb CHANGED
@@ -114,6 +114,7 @@ module SpeakeasyClientSDK
114
114
  )
115
115
  if r.status == 200
116
116
  else
117
+
117
118
  if Utils.match_content_type(content_type, 'application/json')
118
119
  out = Utils.unmarshal_complex(r.env.response_body, Shared::Error)
119
120
  res.error = out
@@ -25,7 +25,6 @@ module OpenApiSDK
25
25
  field :security, Shared::Security
26
26
  field :server_url, T.nilable(String)
27
27
  field :server, T.nilable(String)
28
- field :server_defaults, Hash[Symbol, Hash[Symbol, String]], { 'default_factory': Hash}
29
28
  field :language, String
30
29
  field :openapi_doc_version, String
31
30
  field :sdk_version, String
@@ -33,15 +32,15 @@ module OpenApiSDK
33
32
  field :user_agent, String
34
33
 
35
34
 
36
- sig { params(client: Faraday::Connection, security: T.nilable(Shared::Security), server_url: T.nilable(String), server_idx: T.nilable(Integer), server_defaults: T::Hash[Symbol, String], globals: T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]]).void }
37
- def initialize(client, security, server_url, server_idx, server_defaults, globals)
35
+ sig { params(client: Faraday::Connection, security: T.nilable(Shared::Security), server_url: T.nilable(String), server_idx: T.nilable(Integer)).void }
36
+ def initialize(client, security, server_url, server_idx)
38
37
  @client = client
39
38
  @server = server_url.nil? ? '' : server_url
40
39
  @language = 'ruby'
41
40
  @openapi_doc_version = '0.3.0'
42
- @sdk_version = '2.1.2'
43
- @gen_version = '2.194.1'
44
- @user_agent = 'speakeasy-sdk/ruby 2.1.2 2.194.1 0.3.0 speakeasy_client_sdk_ruby'
41
+ @sdk_version = '2.2.0'
42
+ @gen_version = '2.213.3'
43
+ @user_agent = 'speakeasy-sdk/ruby 2.2.0 2.213.3 0.3.0 speakeasy_client_sdk_ruby'
45
44
  end
46
45
 
47
46
  sig { returns([String, T::Hash[Symbol, String]]) }
@@ -279,8 +279,8 @@ module SpeakeasyClientSDK
279
279
  params
280
280
  end
281
281
 
282
- sig { params(clazz: Class, server_url: String, path: String, path_params: FieldAugmented, gbls: T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]]).returns(String) }
283
- def self.generate_url(clazz, server_url, path, path_params, gbls)
282
+ sig { params(clazz: Class, server_url: String, path: String, path_params: FieldAugmented, gbls: T.nilable(T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]])).returns(String) }
283
+ def self.generate_url(clazz, server_url, path, path_params, gbls = nil)
284
284
  clazz.fields.each do |f|
285
285
  param_metadata = f.metadata[:path_param]
286
286
  next if param_metadata.nil?
@@ -718,7 +718,7 @@ module SpeakeasyClientSDK
718
718
  url_with_params
719
719
  end
720
720
 
721
- sig { params(param_name: Symbol, value: Object, param_type: String, gbls: T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]]).returns(Object) }
721
+ sig { params(param_name: Symbol, value: Object, param_type: String, gbls: T.nilable(T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]])).returns(Object) }
722
722
  def self._populate_from_globals(param_name, value, param_type, gbls)
723
723
  if value.nil? && !gbls.nil?
724
724
  global_value = gbls.dig(:parameters, param_type.to_sym, param_name.to_sym)
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: 2.1.2
4
+ version: 2.2.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-18 00:00:00.000000000 Z
11
+ date: 2023-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday