@@ -11,14 +11,15 @@ module SpeakeasyClientSDK
1111 extend T ::Sig
1212 class ApiEndpoints
1313 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 )
1616 @sdk = sdk
1717 @client = client
1818 @server_url = server_url
1919 @language = language
2020 @sdk_version = sdk_version
2121 @gen_version = gen_version
22+ @openapi_doc_version = openapi_doc_version
2223 end
2324
2425 sig { params ( request : Operations ::DeleteApiEndpointRequest ) . returns ( Utils ::FieldAugmented ) }
@@ -34,7 +35,7 @@ def delete_api_endpoint(request)
3435 )
3536 headers = { }
3637 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 } "
3839
3940 r = @client . delete ( url ) do |req |
4041 req . headers = headers
@@ -70,7 +71,7 @@ def find_api_endpoint(request)
7071 )
7172 headers = { }
7273 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 } "
7475
7576 r = @client . get ( url ) do |req |
7677 req . headers = headers
@@ -110,7 +111,7 @@ def generate_open_api_spec_for_api_endpoint(request)
110111 )
111112 headers = { }
112113 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 } "
114115
115116 r = @client . get ( url ) do |req |
116117 req . headers = headers
@@ -149,7 +150,7 @@ def generate_postman_collection_for_api_endpoint(request)
149150 )
150151 headers = { }
151152 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 } "
153154
154155 r = @client . get ( url ) do |req |
155156 req . headers = headers
@@ -184,7 +185,7 @@ def get_all_api_endpoints(request)
184185 )
185186 headers = { }
186187 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 } "
188189
189190 r = @client . get ( url ) do |req |
190191 req . headers = headers
@@ -222,7 +223,7 @@ def get_all_for_version_api_endpoints(request)
222223 )
223224 headers = { }
224225 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 } "
226227
227228 r = @client . get ( url ) do |req |
228229 req . headers = headers
@@ -260,7 +261,7 @@ def get_api_endpoint(request)
260261 )
261262 headers = { }
262263 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 } "
264265
265266 r = @client . get ( url ) do |req |
266267 req . headers = headers
@@ -302,7 +303,7 @@ def upsert_api_endpoint(request)
302303 headers [ 'content-type' ] = req_content_type
303304 raise StandardError , 'request body is required' if data . nil? && form . nil?
304305 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 } "
306307
307308 r = @client . put ( url ) do |req |
308309 req . headers = headers
0 commit comments