speakeasy_client_sdk_ruby 1.0.1 → 1.1.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: 11960b630a210166a8ce951fb1ee0b11c7656928c09f0cc67f39eb1f19f9a250
4
- data.tar.gz: 95a58d22504700eef1e268c82bddac5fc17738a64a98572b49b26d2a6f26bfa1
3
+ metadata.gz: 41266843a4248441bc5698c3eefe7179f6dacb703777c7f765ac6b8efae01bd9
4
+ data.tar.gz: 195680cd82ba4d79dc9cb71c46c282d5d2a6627613e263e3e95bf165b1cc6700
5
5
  SHA512:
6
- metadata.gz: e11ac96978766bd368a33fbf768c2928038d688465663c613f64cd72b8edb64fe0aa966b54159138fee9313e771a0ac4e25489b88ef659bab235745c267a0cc9
7
- data.tar.gz: 7069fb52eaae25736d2b99928b0e812ee6019a77f9e226545f78dfee8c3f49ff56213e8fc2b0eac1570c74c3de620b22f44ea6002ec21b9d20d13ab98f8e7d57
6
+ metadata.gz: 0afa531f868273660c148c601b15e0a87a95f6ea199cae8a6ff1d99d1db913a80fb33851f4fee98eb209160635379b51141b1f181ec12e3a3803cb0cba30f0ea
7
+ data.tar.gz: '0089610eb7c5be3cdfd0786d42d7ae3ff81081beba583bb258e7cefdf1b80b97cdf0af7422baf3e4c35e50df073d0ae1574af9e95c690fc59f3e04847ca2bc36'
@@ -11,14 +11,15 @@ module SpeakeasyClientSDK
11
11
  extend T::Sig
12
12
  class ApiEndpoints
13
13
  extend T::Sig
14
- sig { params(sdk: SpeakeasyClientSDK::SDK, client: Faraday::Connection, server_url: String, language: String, sdk_version: String, gen_version: String).void }
15
- def initialize(sdk, client, server_url, language, sdk_version, gen_version)
14
+ sig { params(sdk: SpeakeasyClientSDK::SDK, client: Faraday::Connection, server_url: String, language: String, sdk_version: String, gen_version: String, openapi_doc_version: String).void }
15
+ def initialize(sdk, client, server_url, language, sdk_version, gen_version, openapi_doc_version)
16
16
  @sdk = sdk
17
17
  @client = client
18
18
  @server_url = server_url
19
19
  @language = language
20
20
  @sdk_version = sdk_version
21
21
  @gen_version = gen_version
22
+ @openapi_doc_version = openapi_doc_version
22
23
  end
23
24
 
24
25
  sig { params(request: Operations::DeleteApiEndpointRequest).returns(Utils::FieldAugmented) }
@@ -34,7 +35,7 @@ module SpeakeasyClientSDK
34
35
  )
35
36
  headers = {}
36
37
  headers['Accept'] = 'application/json'
37
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
38
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
38
39
 
39
40
  r = @client.delete(url) do |req|
40
41
  req.headers = headers
@@ -70,7 +71,7 @@ module SpeakeasyClientSDK
70
71
  )
71
72
  headers = {}
72
73
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
73
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
74
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
74
75
 
75
76
  r = @client.get(url) do |req|
76
77
  req.headers = headers
@@ -110,7 +111,7 @@ module SpeakeasyClientSDK
110
111
  )
111
112
  headers = {}
112
113
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
113
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
114
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
114
115
 
115
116
  r = @client.get(url) do |req|
116
117
  req.headers = headers
@@ -149,7 +150,7 @@ module SpeakeasyClientSDK
149
150
  )
150
151
  headers = {}
151
152
  headers['Accept'] = 'application/json;q=1, application/octet-stream;q=0'
152
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
153
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
153
154
 
154
155
  r = @client.get(url) do |req|
155
156
  req.headers = headers
@@ -184,7 +185,7 @@ module SpeakeasyClientSDK
184
185
  )
185
186
  headers = {}
186
187
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
187
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
188
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
188
189
 
189
190
  r = @client.get(url) do |req|
190
191
  req.headers = headers
@@ -222,7 +223,7 @@ module SpeakeasyClientSDK
222
223
  )
223
224
  headers = {}
224
225
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
225
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
226
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
226
227
 
227
228
  r = @client.get(url) do |req|
228
229
  req.headers = headers
@@ -260,7 +261,7 @@ module SpeakeasyClientSDK
260
261
  )
261
262
  headers = {}
262
263
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
263
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
264
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
264
265
 
265
266
  r = @client.get(url) do |req|
266
267
  req.headers = headers
@@ -302,7 +303,7 @@ module SpeakeasyClientSDK
302
303
  headers['content-type'] = req_content_type
303
304
  raise StandardError, 'request body is required' if data.nil? && form.nil?
304
305
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
305
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
306
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
306
307
 
307
308
  r = @client.put(url) do |req|
308
309
  req.headers = headers
data/lib/sdk/apis.rb CHANGED
@@ -11,14 +11,15 @@ module SpeakeasyClientSDK
11
11
  extend T::Sig
12
12
  class Apis
13
13
  extend T::Sig
14
- sig { params(sdk: SpeakeasyClientSDK::SDK, client: Faraday::Connection, server_url: String, language: String, sdk_version: String, gen_version: String).void }
15
- def initialize(sdk, client, server_url, language, sdk_version, gen_version)
14
+ sig { params(sdk: SpeakeasyClientSDK::SDK, client: Faraday::Connection, server_url: String, language: String, sdk_version: String, gen_version: String, openapi_doc_version: String).void }
15
+ def initialize(sdk, client, server_url, language, sdk_version, gen_version, openapi_doc_version)
16
16
  @sdk = sdk
17
17
  @client = client
18
18
  @server_url = server_url
19
19
  @language = language
20
20
  @sdk_version = sdk_version
21
21
  @gen_version = gen_version
22
+ @openapi_doc_version = openapi_doc_version
22
23
  end
23
24
 
24
25
  sig { params(request: Operations::DeleteApiRequest).returns(Utils::FieldAugmented) }
@@ -34,7 +35,7 @@ module SpeakeasyClientSDK
34
35
  )
35
36
  headers = {}
36
37
  headers['Accept'] = 'application/json'
37
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
38
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
38
39
 
39
40
  r = @client.delete(url) do |req|
40
41
  req.headers = headers
@@ -70,7 +71,7 @@ module SpeakeasyClientSDK
70
71
  )
71
72
  headers = {}
72
73
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
73
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
74
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
74
75
 
75
76
  r = @client.get(url) do |req|
76
77
  req.headers = headers
@@ -109,7 +110,7 @@ module SpeakeasyClientSDK
109
110
  )
110
111
  headers = {}
111
112
  headers['Accept'] = 'application/json;q=1, application/octet-stream;q=0'
112
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
113
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
113
114
 
114
115
  r = @client.get(url) do |req|
115
116
  req.headers = headers
@@ -147,7 +148,7 @@ module SpeakeasyClientSDK
147
148
  headers = {}
148
149
  query_params = Utils.get_query_params(Operations::GetAllApiVersionsRequest, request)
149
150
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
150
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
151
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
151
152
 
152
153
  r = @client.get(url) do |req|
153
154
  req.headers = headers
@@ -184,7 +185,7 @@ module SpeakeasyClientSDK
184
185
  headers = {}
185
186
  query_params = Utils.get_query_params(Operations::GetApisRequest, request)
186
187
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
187
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
188
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
188
189
 
189
190
  r = @client.get(url) do |req|
190
191
  req.headers = headers
@@ -228,7 +229,7 @@ module SpeakeasyClientSDK
228
229
  headers['content-type'] = req_content_type
229
230
  raise StandardError, 'request body is required' if data.nil? && form.nil?
230
231
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
231
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
232
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
232
233
 
233
234
  r = @client.put(url) do |req|
234
235
  req.headers = headers
data/lib/sdk/embeds.rb CHANGED
@@ -11,14 +11,15 @@ module SpeakeasyClientSDK
11
11
  extend T::Sig
12
12
  class Embeds
13
13
  extend T::Sig
14
- sig { params(sdk: SpeakeasyClientSDK::SDK, client: Faraday::Connection, server_url: String, language: String, sdk_version: String, gen_version: String).void }
15
- def initialize(sdk, client, server_url, language, sdk_version, gen_version)
14
+ sig { params(sdk: SpeakeasyClientSDK::SDK, client: Faraday::Connection, server_url: String, language: String, sdk_version: String, gen_version: String, openapi_doc_version: String).void }
15
+ def initialize(sdk, client, server_url, language, sdk_version, gen_version, openapi_doc_version)
16
16
  @sdk = sdk
17
17
  @client = client
18
18
  @server_url = server_url
19
19
  @language = language
20
20
  @sdk_version = sdk_version
21
21
  @gen_version = gen_version
22
+ @openapi_doc_version = openapi_doc_version
22
23
  end
23
24
 
24
25
  sig { params(request: Operations::GetEmbedAccessTokenRequest).returns(Utils::FieldAugmented) }
@@ -31,7 +32,7 @@ module SpeakeasyClientSDK
31
32
  headers = {}
32
33
  query_params = Utils.get_query_params(Operations::GetEmbedAccessTokenRequest, request)
33
34
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
34
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
35
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
35
36
 
36
37
  r = @client.get(url) do |req|
37
38
  req.headers = headers
@@ -65,7 +66,7 @@ module SpeakeasyClientSDK
65
66
  url = "#{base_url.delete_suffix('/')}/v1/workspace/embed-access-tokens/valid"
66
67
  headers = {}
67
68
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
68
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
69
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
69
70
 
70
71
  r = @client.get(url) do |req|
71
72
  req.headers = headers
@@ -103,7 +104,7 @@ module SpeakeasyClientSDK
103
104
  )
104
105
  headers = {}
105
106
  headers['Accept'] = 'application/json'
106
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
107
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
107
108
 
108
109
  r = @client.delete(url) do |req|
109
110
  req.headers = headers
data/lib/sdk/metadata.rb CHANGED
@@ -11,14 +11,15 @@ module SpeakeasyClientSDK
11
11
  extend T::Sig
12
12
  class Metadata
13
13
  extend T::Sig
14
- sig { params(sdk: SpeakeasyClientSDK::SDK, client: Faraday::Connection, server_url: String, language: String, sdk_version: String, gen_version: String).void }
15
- def initialize(sdk, client, server_url, language, sdk_version, gen_version)
14
+ sig { params(sdk: SpeakeasyClientSDK::SDK, client: Faraday::Connection, server_url: String, language: String, sdk_version: String, gen_version: String, openapi_doc_version: String).void }
15
+ def initialize(sdk, client, server_url, language, sdk_version, gen_version, openapi_doc_version)
16
16
  @sdk = sdk
17
17
  @client = client
18
18
  @server_url = server_url
19
19
  @language = language
20
20
  @sdk_version = sdk_version
21
21
  @gen_version = gen_version
22
+ @openapi_doc_version = openapi_doc_version
22
23
  end
23
24
 
24
25
  sig { params(request: Operations::DeleteVersionMetadataRequest).returns(Utils::FieldAugmented) }
@@ -33,7 +34,7 @@ module SpeakeasyClientSDK
33
34
  )
34
35
  headers = {}
35
36
  headers['Accept'] = 'application/json'
36
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
37
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
37
38
 
38
39
  r = @client.delete(url) do |req|
39
40
  req.headers = headers
@@ -67,7 +68,7 @@ module SpeakeasyClientSDK
67
68
  )
68
69
  headers = {}
69
70
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
70
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
71
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
71
72
 
72
73
  r = @client.get(url) do |req|
73
74
  req.headers = headers
@@ -108,7 +109,7 @@ module SpeakeasyClientSDK
108
109
  headers['content-type'] = req_content_type
109
110
  raise StandardError, 'request body is required' if data.nil? && form.nil?
110
111
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
111
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
112
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
112
113
 
113
114
  r = @client.post(url) do |req|
114
115
  req.headers = headers
data/lib/sdk/plugins.rb CHANGED
@@ -11,14 +11,15 @@ module SpeakeasyClientSDK
11
11
  extend T::Sig
12
12
  class Plugins
13
13
  extend T::Sig
14
- sig { params(sdk: SpeakeasyClientSDK::SDK, client: Faraday::Connection, server_url: String, language: String, sdk_version: String, gen_version: String).void }
15
- def initialize(sdk, client, server_url, language, sdk_version, gen_version)
14
+ sig { params(sdk: SpeakeasyClientSDK::SDK, client: Faraday::Connection, server_url: String, language: String, sdk_version: String, gen_version: String, openapi_doc_version: String).void }
15
+ def initialize(sdk, client, server_url, language, sdk_version, gen_version, openapi_doc_version)
16
16
  @sdk = sdk
17
17
  @client = client
18
18
  @server_url = server_url
19
19
  @language = language
20
20
  @sdk_version = sdk_version
21
21
  @gen_version = gen_version
22
+ @openapi_doc_version = openapi_doc_version
22
23
  end
23
24
 
24
25
  sig { returns(Utils::FieldAugmented) }
@@ -28,7 +29,7 @@ module SpeakeasyClientSDK
28
29
  url = "#{base_url.delete_suffix('/')}/v1/plugins"
29
30
  headers = {}
30
31
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
31
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
32
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
32
33
 
33
34
  r = @client.get(url) do |req|
34
35
  req.headers = headers
@@ -67,7 +68,7 @@ module SpeakeasyClientSDK
67
68
  headers = {}
68
69
  query_params = Utils.get_query_params(Operations::RunPluginRequest, request)
69
70
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
70
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
71
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
71
72
 
72
73
  r = @client.post(url) do |req|
73
74
  req.headers = headers
@@ -104,7 +105,7 @@ module SpeakeasyClientSDK
104
105
  headers['content-type'] = req_content_type
105
106
  raise StandardError, 'request body is required' if data.nil? && form.nil?
106
107
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
107
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
108
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
108
109
 
109
110
  r = @client.put(url) do |req|
110
111
  req.headers = headers
data/lib/sdk/requests.rb CHANGED
@@ -11,14 +11,15 @@ module SpeakeasyClientSDK
11
11
  extend T::Sig
12
12
  class Requests
13
13
  extend T::Sig
14
- sig { params(sdk: SpeakeasyClientSDK::SDK, client: Faraday::Connection, server_url: String, language: String, sdk_version: String, gen_version: String).void }
15
- def initialize(sdk, client, server_url, language, sdk_version, gen_version)
14
+ sig { params(sdk: SpeakeasyClientSDK::SDK, client: Faraday::Connection, server_url: String, language: String, sdk_version: String, gen_version: String, openapi_doc_version: String).void }
15
+ def initialize(sdk, client, server_url, language, sdk_version, gen_version, openapi_doc_version)
16
16
  @sdk = sdk
17
17
  @client = client
18
18
  @server_url = server_url
19
19
  @language = language
20
20
  @sdk_version = sdk_version
21
21
  @gen_version = gen_version
22
+ @openapi_doc_version = openapi_doc_version
22
23
  end
23
24
 
24
25
  sig { params(request: Operations::GenerateRequestPostmanCollectionRequest).returns(Utils::FieldAugmented) }
@@ -35,7 +36,7 @@ module SpeakeasyClientSDK
35
36
  )
36
37
  headers = {}
37
38
  headers['Accept'] = 'application/json;q=1, application/octet-stream;q=0'
38
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
39
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
39
40
 
40
41
  r = @client.get(url) do |req|
41
42
  req.headers = headers
@@ -70,7 +71,7 @@ module SpeakeasyClientSDK
70
71
  )
71
72
  headers = {}
72
73
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
73
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
74
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
74
75
 
75
76
  r = @client.get(url) do |req|
76
77
  req.headers = headers
@@ -106,7 +107,7 @@ module SpeakeasyClientSDK
106
107
  headers = {}
107
108
  query_params = Utils.get_query_params(Operations::QueryEventLogRequest, request)
108
109
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
109
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
110
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
110
111
 
111
112
  r = @client.get(url) do |req|
112
113
  req.headers = headers
data/lib/sdk/schemas.rb CHANGED
@@ -11,14 +11,15 @@ module SpeakeasyClientSDK
11
11
  extend T::Sig
12
12
  class Schemas
13
13
  extend T::Sig
14
- sig { params(sdk: SpeakeasyClientSDK::SDK, client: Faraday::Connection, server_url: String, language: String, sdk_version: String, gen_version: String).void }
15
- def initialize(sdk, client, server_url, language, sdk_version, gen_version)
14
+ sig { params(sdk: SpeakeasyClientSDK::SDK, client: Faraday::Connection, server_url: String, language: String, sdk_version: String, gen_version: String, openapi_doc_version: String).void }
15
+ def initialize(sdk, client, server_url, language, sdk_version, gen_version, openapi_doc_version)
16
16
  @sdk = sdk
17
17
  @client = client
18
18
  @server_url = server_url
19
19
  @language = language
20
20
  @sdk_version = sdk_version
21
21
  @gen_version = gen_version
22
+ @openapi_doc_version = openapi_doc_version
22
23
  end
23
24
 
24
25
  sig { params(request: Operations::DeleteSchemaRequest).returns(Utils::FieldAugmented) }
@@ -33,7 +34,7 @@ module SpeakeasyClientSDK
33
34
  )
34
35
  headers = {}
35
36
  headers['Accept'] = 'application/json'
36
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
37
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
37
38
 
38
39
  r = @client.delete(url) do |req|
39
40
  req.headers = headers
@@ -67,7 +68,7 @@ module SpeakeasyClientSDK
67
68
  )
68
69
  headers = {}
69
70
  headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/x-yaml;q=0'
70
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
71
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
71
72
 
72
73
  r = @client.get(url) do |req|
73
74
  req.headers = headers
@@ -103,7 +104,7 @@ module SpeakeasyClientSDK
103
104
  )
104
105
  headers = {}
105
106
  headers['Accept'] = 'application/json;q=1, application/json;q=0.7, application/x-yaml;q=0'
106
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
107
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
107
108
 
108
109
  r = @client.get(url) do |req|
109
110
  req.headers = headers
@@ -141,7 +142,7 @@ module SpeakeasyClientSDK
141
142
  )
142
143
  headers = {}
143
144
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
144
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
145
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
145
146
 
146
147
  r = @client.get(url) do |req|
147
148
  req.headers = headers
@@ -179,7 +180,7 @@ module SpeakeasyClientSDK
179
180
  )
180
181
  headers = {}
181
182
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
182
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
183
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
183
184
 
184
185
  r = @client.get(url) do |req|
185
186
  req.headers = headers
@@ -219,7 +220,7 @@ module SpeakeasyClientSDK
219
220
  )
220
221
  headers = {}
221
222
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
222
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
223
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
223
224
 
224
225
  r = @client.get(url) do |req|
225
226
  req.headers = headers
@@ -259,7 +260,7 @@ module SpeakeasyClientSDK
259
260
  )
260
261
  headers = {}
261
262
  headers['Accept'] = 'application/json;q=1, application/json;q=0'
262
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
263
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
263
264
 
264
265
  r = @client.get(url) do |req|
265
266
  req.headers = headers
@@ -302,7 +303,7 @@ module SpeakeasyClientSDK
302
303
  headers['content-type'] = req_content_type
303
304
  raise StandardError, 'request body is required' if data.nil? && form.nil?
304
305
  headers['Accept'] = 'application/json'
305
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
306
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
306
307
 
307
308
  r = @client.post(url) do |req|
308
309
  req.headers = headers
data/lib/sdk/sdk.rb CHANGED
@@ -52,8 +52,9 @@ module SpeakeasyClientSDK
52
52
  @security = nil
53
53
  @server_url = SERVERS[SERVER_PROD]
54
54
  @language = 'ruby'
55
- @sdk_version = '1.0.1'
56
- @gen_version = '2.35.9'
55
+ @sdk_version = '1.1.0'
56
+ @gen_version = '2.37.0'
57
+ @openapi_doc_version = '0.3.0'
57
58
  init_sdks
58
59
  end
59
60
 
@@ -88,7 +89,8 @@ module SpeakeasyClientSDK
88
89
  @server_url,
89
90
  @language,
90
91
  @sdk_version,
91
- @gen_version
92
+ @gen_version,
93
+ @openapi_doc_version
92
94
  )
93
95
  @apis = Apis.new(
94
96
  self,
@@ -96,7 +98,8 @@ module SpeakeasyClientSDK
96
98
  @server_url,
97
99
  @language,
98
100
  @sdk_version,
99
- @gen_version
101
+ @gen_version,
102
+ @openapi_doc_version
100
103
  )
101
104
  @embeds = Embeds.new(
102
105
  self,
@@ -104,7 +107,8 @@ module SpeakeasyClientSDK
104
107
  @server_url,
105
108
  @language,
106
109
  @sdk_version,
107
- @gen_version
110
+ @gen_version,
111
+ @openapi_doc_version
108
112
  )
109
113
  @metadata = Metadata.new(
110
114
  self,
@@ -112,7 +116,8 @@ module SpeakeasyClientSDK
112
116
  @server_url,
113
117
  @language,
114
118
  @sdk_version,
115
- @gen_version
119
+ @gen_version,
120
+ @openapi_doc_version
116
121
  )
117
122
  @plugins = Plugins.new(
118
123
  self,
@@ -120,7 +125,8 @@ module SpeakeasyClientSDK
120
125
  @server_url,
121
126
  @language,
122
127
  @sdk_version,
123
- @gen_version
128
+ @gen_version,
129
+ @openapi_doc_version
124
130
  )
125
131
  @requests = Requests.new(
126
132
  self,
@@ -128,7 +134,8 @@ module SpeakeasyClientSDK
128
134
  @server_url,
129
135
  @language,
130
136
  @sdk_version,
131
- @gen_version
137
+ @gen_version,
138
+ @openapi_doc_version
132
139
  )
133
140
  @schemas = Schemas.new(
134
141
  self,
@@ -136,7 +143,8 @@ module SpeakeasyClientSDK
136
143
  @server_url,
137
144
  @language,
138
145
  @sdk_version,
139
- @gen_version
146
+ @gen_version,
147
+ @openapi_doc_version
140
148
  )
141
149
  end
142
150
 
@@ -148,7 +156,7 @@ module SpeakeasyClientSDK
148
156
  url = "#{base_url.delete_suffix('/')}/v1/auth/validate"
149
157
  headers = {}
150
158
  headers['Accept'] = 'application/json'
151
- headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version}"
159
+ headers['user-agent'] = "speakeasy-sdk/#{@language} #{@sdk_version} #{@gen_version} #{@openapi_doc_version}"
152
160
 
153
161
  r = @client.get(url) do |req|
154
162
  req.headers = headers
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: 1.0.1
4
+ version: 1.1.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-06-06 00:00:00.000000000 Z
11
+ date: 2023-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday