speakeasy_client_sdk_ruby 3.0.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/lib/speakeasy_client_sdk/apiendpoints.rb +18 -10
  3. data/lib/speakeasy_client_sdk/apis.rb +14 -9
  4. data/lib/speakeasy_client_sdk/auth.rb +57 -0
  5. data/lib/speakeasy_client_sdk/embeds.rb +4 -3
  6. data/lib/speakeasy_client_sdk/events.rb +63 -0
  7. data/lib/speakeasy_client_sdk/metadata.rb +7 -4
  8. data/lib/speakeasy_client_sdk/models/operations/getallapiendpoints_response.rb +4 -4
  9. data/lib/speakeasy_client_sdk/models/operations/getallapiversions_response.rb +4 -4
  10. data/lib/speakeasy_client_sdk/models/operations/getallforversionapiendpoints_response.rb +4 -4
  11. data/lib/speakeasy_client_sdk/models/operations/getapis_response.rb +4 -4
  12. data/lib/speakeasy_client_sdk/models/operations/getvalidembedaccesstokens_response.rb +4 -4
  13. data/lib/speakeasy_client_sdk/models/operations/getversionmetadata_response.rb +5 -5
  14. data/lib/speakeasy_client_sdk/models/operations/postworkspaceevents_request.rb +27 -0
  15. data/lib/speakeasy_client_sdk/models/operations/{upsertplugin_response.rb → postworkspaceevents_response.rb} +3 -9
  16. data/lib/speakeasy_client_sdk/models/operations/queryeventlog_response.rb +4 -4
  17. data/lib/speakeasy_client_sdk/models/operations/validateapikey_response.rb +5 -2
  18. data/lib/speakeasy_client_sdk/models/operations.rb +3 -5
  19. data/lib/speakeasy_client_sdk/models/shared/apikeydetails.rb +24 -0
  20. data/lib/speakeasy_client_sdk/models/shared/clievent.rb +156 -0
  21. data/lib/speakeasy_client_sdk/models/shared/generate_bump_type.rb +22 -0
  22. data/lib/speakeasy_client_sdk/models/shared/interaction_type.rb +19 -0
  23. data/lib/speakeasy_client_sdk/models/shared.rb +4 -1
  24. data/lib/speakeasy_client_sdk/requests.rb +6 -4
  25. data/lib/speakeasy_client_sdk/schemas.rb +16 -8
  26. data/lib/speakeasy_client_sdk/sdk.rb +17 -36
  27. data/lib/speakeasy_client_sdk/sdkconfiguration.rb +9 -6
  28. data/lib/speakeasy_client_sdk/utils/utils.rb +2 -2
  29. data/lib/speakeasy_client_sdk_ruby.rb +2 -1
  30. metadata +10 -8
  31. data/lib/speakeasy_client_sdk/models/operations/getplugins_response.rb +0 -36
  32. data/lib/speakeasy_client_sdk/models/operations/runplugin_request.rb +0 -27
  33. data/lib/speakeasy_client_sdk/models/operations/runplugin_response.rb +0 -36
  34. data/lib/speakeasy_client_sdk/models/shared/plugin.rb +0 -42
  35. data/lib/speakeasy_client_sdk/plugins.rb +0 -146
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56eff8992da62014aaade6fee65af6c9b0cd6f3b9864d025555b2b390f7c258e
4
- data.tar.gz: d9f3f3962e7e21d11cf697098ce74709a2faf99816e26332b6d3b31538531386
3
+ metadata.gz: 44f27e3e09a07cc014a50265e1da6a0d87f0f31ff10748fa79c910bba8ca3329
4
+ data.tar.gz: cf31e4ea81072802c9c823f01cf1f56ac49b74d8288ab74a207606debc91d61a
5
5
  SHA512:
6
- metadata.gz: 8df73357bd9ca154d6e101c58347455ee3dfdd2d96a6ff3ef937f1bcf2b3ad43fc7829ccab253353492b6a94e018d2530cfa144371f3cc1b02ea315cb9a7d1d0
7
- data.tar.gz: 42b563898285acc6ca975ffc5792d312a22e146a916b0eb85d36c9e7d40049a490dda18e56cfc816b75cd37807da60b12c56f420b10d89997c9b2ed4fc32b9cf
6
+ metadata.gz: b33c3cc5fef52f6636ff17d3d69b78b6b05a00e75fc644193e69a633e7aaba3b6151defc70de7fd18ce7ae720624839784fb38e113cbffa847617c3be940d6e7
7
+ data.tar.gz: 55beebeb06f55c89f42271c77da97d03be1875696a45001aeb341bd7c0c23dc19cba149b9b7f586efe5d026e0818dfb5e630c7b0ab33fc02d2fbd40d4d5ed9d1
@@ -29,7 +29,8 @@ module SpeakeasyClientSDK
29
29
  ::SpeakeasyClientSDK::Operations::DeleteApiEndpointRequest,
30
30
  base_url,
31
31
  '/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}',
32
- request
32
+ request,
33
+ @sdk_configuration.globals
33
34
  )
34
35
  headers = {}
35
36
  headers['Accept'] = 'application/json'
@@ -68,7 +69,8 @@ module SpeakeasyClientSDK
68
69
  ::SpeakeasyClientSDK::Operations::FindApiEndpointRequest,
69
70
  base_url,
70
71
  '/v1/apis/{apiID}/version/{versionID}/api_endpoints/find/{displayName}',
71
- request
72
+ request,
73
+ @sdk_configuration.globals
72
74
  )
73
75
  headers = {}
74
76
  headers['Accept'] = 'application/json'
@@ -111,7 +113,8 @@ module SpeakeasyClientSDK
111
113
  ::SpeakeasyClientSDK::Operations::GenerateOpenApiSpecForApiEndpointRequest,
112
114
  base_url,
113
115
  '/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}/generate/openapi',
114
- request
116
+ request,
117
+ @sdk_configuration.globals
115
118
  )
116
119
  headers = {}
117
120
  headers['Accept'] = 'application/json'
@@ -153,7 +156,8 @@ module SpeakeasyClientSDK
153
156
  ::SpeakeasyClientSDK::Operations::GeneratePostmanCollectionForApiEndpointRequest,
154
157
  base_url,
155
158
  '/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}/generate/postman',
156
- request
159
+ request,
160
+ @sdk_configuration.globals
157
161
  )
158
162
  headers = {}
159
163
  headers['Accept'] = 'application/json;q=1, application/octet-stream;q=0'
@@ -192,7 +196,8 @@ module SpeakeasyClientSDK
192
196
  ::SpeakeasyClientSDK::Operations::GetAllApiEndpointsRequest,
193
197
  base_url,
194
198
  '/v1/apis/{apiID}/api_endpoints',
195
- request
199
+ request,
200
+ @sdk_configuration.globals
196
201
  )
197
202
  headers = {}
198
203
  headers['Accept'] = 'application/json'
@@ -211,7 +216,7 @@ module SpeakeasyClientSDK
211
216
  if r.status == 200
212
217
  if Utils.match_content_type(content_type, 'application/json')
213
218
  out = Utils.unmarshal_complex(r.env.response_body, T::Array[::SpeakeasyClientSDK::Shared::ApiEndpoint])
214
- res.classes = out
219
+ res.api_endpoints = out
215
220
  end
216
221
  else
217
222
 
@@ -233,7 +238,8 @@ module SpeakeasyClientSDK
233
238
  ::SpeakeasyClientSDK::Operations::GetAllForVersionApiEndpointsRequest,
234
239
  base_url,
235
240
  '/v1/apis/{apiID}/version/{versionID}/api_endpoints',
236
- request
241
+ request,
242
+ @sdk_configuration.globals
237
243
  )
238
244
  headers = {}
239
245
  headers['Accept'] = 'application/json'
@@ -252,7 +258,7 @@ module SpeakeasyClientSDK
252
258
  if r.status == 200
253
259
  if Utils.match_content_type(content_type, 'application/json')
254
260
  out = Utils.unmarshal_complex(r.env.response_body, T::Array[::SpeakeasyClientSDK::Shared::ApiEndpoint])
255
- res.classes = out
261
+ res.api_endpoints = out
256
262
  end
257
263
  else
258
264
 
@@ -274,7 +280,8 @@ module SpeakeasyClientSDK
274
280
  ::SpeakeasyClientSDK::Operations::GetApiEndpointRequest,
275
281
  base_url,
276
282
  '/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}',
277
- request
283
+ request,
284
+ @sdk_configuration.globals
278
285
  )
279
286
  headers = {}
280
287
  headers['Accept'] = 'application/json'
@@ -316,7 +323,8 @@ module SpeakeasyClientSDK
316
323
  ::SpeakeasyClientSDK::Operations::UpsertApiEndpointRequest,
317
324
  base_url,
318
325
  '/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}',
319
- request
326
+ request,
327
+ @sdk_configuration.globals
320
328
  )
321
329
  headers = {}
322
330
  req_content_type, data, form = Utils.serialize_request_body(request, :api_endpoint, :json)
@@ -29,7 +29,8 @@ module SpeakeasyClientSDK
29
29
  ::SpeakeasyClientSDK::Operations::DeleteApiRequest,
30
30
  base_url,
31
31
  '/v1/apis/{apiID}/version/{versionID}',
32
- request
32
+ request,
33
+ @sdk_configuration.globals
33
34
  )
34
35
  headers = {}
35
36
  headers['Accept'] = 'application/json'
@@ -68,7 +69,8 @@ module SpeakeasyClientSDK
68
69
  ::SpeakeasyClientSDK::Operations::GenerateOpenApiSpecRequest,
69
70
  base_url,
70
71
  '/v1/apis/{apiID}/version/{versionID}/generate/openapi',
71
- request
72
+ request,
73
+ @sdk_configuration.globals
72
74
  )
73
75
  headers = {}
74
76
  headers['Accept'] = 'application/json'
@@ -110,7 +112,8 @@ module SpeakeasyClientSDK
110
112
  ::SpeakeasyClientSDK::Operations::GeneratePostmanCollectionRequest,
111
113
  base_url,
112
114
  '/v1/apis/{apiID}/version/{versionID}/generate/postman',
113
- request
115
+ request,
116
+ @sdk_configuration.globals
114
117
  )
115
118
  headers = {}
116
119
  headers['Accept'] = 'application/json;q=1, application/octet-stream;q=0'
@@ -151,10 +154,11 @@ module SpeakeasyClientSDK
151
154
  ::SpeakeasyClientSDK::Operations::GetAllApiVersionsRequest,
152
155
  base_url,
153
156
  '/v1/apis/{apiID}',
154
- request
157
+ request,
158
+ @sdk_configuration.globals
155
159
  )
156
160
  headers = {}
157
- query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GetAllApiVersionsRequest, request)
161
+ query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GetAllApiVersionsRequest, request, @sdk_configuration.globals)
158
162
  headers['Accept'] = 'application/json'
159
163
  headers['user-agent'] = @sdk_configuration.user_agent
160
164
 
@@ -172,7 +176,7 @@ module SpeakeasyClientSDK
172
176
  if r.status == 200
173
177
  if Utils.match_content_type(content_type, 'application/json')
174
178
  out = Utils.unmarshal_complex(r.env.response_body, T::Array[::SpeakeasyClientSDK::Shared::Api])
175
- res.classes = out
179
+ res.apis = out
176
180
  end
177
181
  else
178
182
 
@@ -194,7 +198,7 @@ module SpeakeasyClientSDK
194
198
  base_url = Utils.template_url(url, params)
195
199
  url = "#{base_url}/v1/apis"
196
200
  headers = {}
197
- query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GetApisRequest, request)
201
+ query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GetApisRequest, request, @sdk_configuration.globals)
198
202
  headers['Accept'] = 'application/json'
199
203
  headers['user-agent'] = @sdk_configuration.user_agent
200
204
 
@@ -212,7 +216,7 @@ module SpeakeasyClientSDK
212
216
  if r.status == 200
213
217
  if Utils.match_content_type(content_type, 'application/json')
214
218
  out = Utils.unmarshal_complex(r.env.response_body, T::Array[::SpeakeasyClientSDK::Shared::Api])
215
- res.classes = out
219
+ res.apis = out
216
220
  end
217
221
  else
218
222
 
@@ -236,7 +240,8 @@ module SpeakeasyClientSDK
236
240
  ::SpeakeasyClientSDK::Operations::UpsertApiRequest,
237
241
  base_url,
238
242
  '/v1/apis/{apiID}',
239
- request
243
+ request,
244
+ @sdk_configuration.globals
240
245
  )
241
246
  headers = {}
242
247
  req_content_type, data, form = Utils.serialize_request_body(request, :api, :json)
@@ -0,0 +1,57 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+ require 'faraday'
7
+ require 'faraday/multipart'
8
+ require 'sorbet-runtime'
9
+
10
+ module SpeakeasyClientSDK
11
+ extend T::Sig
12
+ class Auth
13
+ extend T::Sig
14
+ # REST APIs for managing Authentication
15
+
16
+ sig { params(sdk_config: SDKConfiguration).void }
17
+ def initialize(sdk_config)
18
+ @sdk_configuration = sdk_config
19
+ end
20
+
21
+
22
+ sig { returns(::SpeakeasyClientSDK::Utils::FieldAugmented) }
23
+ def validate_api_key
24
+ # validate_api_key - Validate the current api key.
25
+ url, params = @sdk_configuration.get_server_details
26
+ base_url = Utils.template_url(url, params)
27
+ url = "#{base_url}/v1/auth/validate"
28
+ headers = {}
29
+ headers['Accept'] = 'application/json'
30
+ headers['user-agent'] = @sdk_configuration.user_agent
31
+
32
+ r = @sdk_configuration.client.get(url) do |req|
33
+ req.headers = headers
34
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
35
+ end
36
+
37
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
38
+
39
+ res = ::SpeakeasyClientSDK::Operations::ValidateApiKeyResponse.new(
40
+ status_code: r.status, content_type: content_type, raw_response: r
41
+ )
42
+ if r.status == 200
43
+ if Utils.match_content_type(content_type, 'application/json')
44
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::ApiKeyDetails)
45
+ res.api_key_details = out
46
+ end
47
+ else
48
+
49
+ if Utils.match_content_type(content_type, 'application/json')
50
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
51
+ res.error = out
52
+ end
53
+ end
54
+ res
55
+ end
56
+ end
57
+ end
@@ -28,7 +28,7 @@ module SpeakeasyClientSDK
28
28
  base_url = Utils.template_url(url, params)
29
29
  url = "#{base_url}/v1/workspace/embed-access-token"
30
30
  headers = {}
31
- query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GetEmbedAccessTokenRequest, request)
31
+ query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GetEmbedAccessTokenRequest, request, @sdk_configuration.globals)
32
32
  headers['Accept'] = 'application/json'
33
33
  headers['user-agent'] = @sdk_configuration.user_agent
34
34
 
@@ -82,7 +82,7 @@ module SpeakeasyClientSDK
82
82
  if r.status == 200
83
83
  if Utils.match_content_type(content_type, 'application/json')
84
84
  out = Utils.unmarshal_complex(r.env.response_body, T::Array[::SpeakeasyClientSDK::Shared::EmbedToken])
85
- res.classes = out
85
+ res.embed_tokens = out
86
86
  end
87
87
  else
88
88
 
@@ -104,7 +104,8 @@ module SpeakeasyClientSDK
104
104
  ::SpeakeasyClientSDK::Operations::RevokeEmbedAccessTokenRequest,
105
105
  base_url,
106
106
  '/v1/workspace/embed-access-tokens/{tokenID}',
107
- request
107
+ request,
108
+ @sdk_configuration.globals
108
109
  )
109
110
  headers = {}
110
111
  headers['Accept'] = 'application/json'
@@ -0,0 +1,63 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+ require 'faraday'
7
+ require 'faraday/multipart'
8
+ require 'sorbet-runtime'
9
+
10
+ module SpeakeasyClientSDK
11
+ extend T::Sig
12
+ class Events
13
+ extend T::Sig
14
+ # REST APIs for capturing event data
15
+
16
+ sig { params(sdk_config: SDKConfiguration).void }
17
+ def initialize(sdk_config)
18
+ @sdk_configuration = sdk_config
19
+ end
20
+
21
+
22
+ sig { params(request: ::SpeakeasyClientSDK::Operations::PostWorkspaceEventsRequest).returns(Utils::FieldAugmented) }
23
+ def post_workspace_events(request)
24
+ # post_workspace_events - Post events for a specific workspace
25
+ # Sends an array of events to be stored for a particular workspace.
26
+ url, params = @sdk_configuration.get_server_details
27
+ base_url = Utils.template_url(url, params)
28
+ url = Utils.generate_url(
29
+ ::SpeakeasyClientSDK::Operations::PostWorkspaceEventsRequest,
30
+ base_url,
31
+ '/v1/workspace/{workspaceID}/events',
32
+ request,
33
+ @sdk_configuration.globals
34
+ )
35
+ headers = {}
36
+ req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :json)
37
+ headers['content-type'] = req_content_type
38
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
39
+ headers['Accept'] = '*/*'
40
+ headers['user-agent'] = @sdk_configuration.user_agent
41
+
42
+ r = @sdk_configuration.client.post(url) do |req|
43
+ req.headers = headers
44
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
45
+ if form
46
+ req.body = Utils.encode_form(form)
47
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
48
+ req.body = URI.encode_www_form(data)
49
+ else
50
+ req.body = data
51
+ end
52
+ end
53
+
54
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
55
+
56
+ res = ::SpeakeasyClientSDK::Operations::PostWorkspaceEventsResponse.new(
57
+ status_code: r.status, content_type: content_type, raw_response: r
58
+ )
59
+
60
+ res
61
+ end
62
+ end
63
+ end
@@ -28,7 +28,8 @@ module SpeakeasyClientSDK
28
28
  ::SpeakeasyClientSDK::Operations::DeleteVersionMetadataRequest,
29
29
  base_url,
30
30
  '/v1/apis/{apiID}/version/{versionID}/metadata/{metaKey}/{metaValue}',
31
- request
31
+ request,
32
+ @sdk_configuration.globals
32
33
  )
33
34
  headers = {}
34
35
  headers['Accept'] = 'application/json'
@@ -65,7 +66,8 @@ module SpeakeasyClientSDK
65
66
  ::SpeakeasyClientSDK::Operations::GetVersionMetadataRequest,
66
67
  base_url,
67
68
  '/v1/apis/{apiID}/version/{versionID}/metadata',
68
- request
69
+ request,
70
+ @sdk_configuration.globals
69
71
  )
70
72
  headers = {}
71
73
  headers['Accept'] = 'application/json'
@@ -84,7 +86,7 @@ module SpeakeasyClientSDK
84
86
  if r.status == 200
85
87
  if Utils.match_content_type(content_type, 'application/json')
86
88
  out = Utils.unmarshal_complex(r.env.response_body, T::Array[::SpeakeasyClientSDK::Shared::VersionMetadata])
87
- res.classes = out
89
+ res.version_metadata = out
88
90
  end
89
91
  else
90
92
 
@@ -106,7 +108,8 @@ module SpeakeasyClientSDK
106
108
  ::SpeakeasyClientSDK::Operations::InsertVersionMetadataRequest,
107
109
  base_url,
108
110
  '/v1/apis/{apiID}/version/{versionID}/metadata',
109
- request
111
+ request,
112
+ @sdk_configuration.globals
110
113
  )
111
114
  headers = {}
112
115
  req_content_type, data, form = Utils.serialize_request_body(request, :version_metadata, :json)
@@ -18,17 +18,17 @@ module SpeakeasyClientSDK
18
18
  # HTTP response status code for this operation
19
19
  field :status_code, ::Integer
20
20
  # OK
21
- field :classes, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::ApiEndpoint])
21
+ field :api_endpoints, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::ApiEndpoint])
22
22
  # Default error response
23
23
  field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
24
24
 
25
25
 
26
- sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, classes: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::ApiEndpoint]), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
27
- def initialize(content_type: nil, raw_response: nil, status_code: nil, classes: nil, error: nil)
26
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, api_endpoints: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::ApiEndpoint]), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
27
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, api_endpoints: nil, error: nil)
28
28
  @content_type = content_type
29
29
  @raw_response = raw_response
30
30
  @status_code = status_code
31
- @classes = classes
31
+ @api_endpoints = api_endpoints
32
32
  @error = error
33
33
  end
34
34
  end
@@ -18,17 +18,17 @@ module SpeakeasyClientSDK
18
18
  # HTTP response status code for this operation
19
19
  field :status_code, ::Integer
20
20
  # OK
21
- field :classes, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::Api])
21
+ field :apis, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::Api])
22
22
  # Default error response
23
23
  field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
24
24
 
25
25
 
26
- sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, classes: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::Api]), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
27
- def initialize(content_type: nil, raw_response: nil, status_code: nil, classes: nil, error: nil)
26
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, apis: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::Api]), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
27
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, apis: nil, error: nil)
28
28
  @content_type = content_type
29
29
  @raw_response = raw_response
30
30
  @status_code = status_code
31
- @classes = classes
31
+ @apis = apis
32
32
  @error = error
33
33
  end
34
34
  end
@@ -18,17 +18,17 @@ module SpeakeasyClientSDK
18
18
  # HTTP response status code for this operation
19
19
  field :status_code, ::Integer
20
20
  # OK
21
- field :classes, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::ApiEndpoint])
21
+ field :api_endpoints, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::ApiEndpoint])
22
22
  # Default error response
23
23
  field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
24
24
 
25
25
 
26
- sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, classes: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::ApiEndpoint]), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
27
- def initialize(content_type: nil, raw_response: nil, status_code: nil, classes: nil, error: nil)
26
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, api_endpoints: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::ApiEndpoint]), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
27
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, api_endpoints: nil, error: nil)
28
28
  @content_type = content_type
29
29
  @raw_response = raw_response
30
30
  @status_code = status_code
31
- @classes = classes
31
+ @api_endpoints = api_endpoints
32
32
  @error = error
33
33
  end
34
34
  end
@@ -18,17 +18,17 @@ module SpeakeasyClientSDK
18
18
  # HTTP response status code for this operation
19
19
  field :status_code, ::Integer
20
20
  # OK
21
- field :classes, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::Api])
21
+ field :apis, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::Api])
22
22
  # Default error response
23
23
  field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
24
24
 
25
25
 
26
- sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, classes: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::Api]), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
27
- def initialize(content_type: nil, raw_response: nil, status_code: nil, classes: nil, error: nil)
26
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, apis: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::Api]), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
27
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, apis: nil, error: nil)
28
28
  @content_type = content_type
29
29
  @raw_response = raw_response
30
30
  @status_code = status_code
31
- @classes = classes
31
+ @apis = apis
32
32
  @error = error
33
33
  end
34
34
  end
@@ -18,17 +18,17 @@ module SpeakeasyClientSDK
18
18
  # HTTP response status code for this operation
19
19
  field :status_code, ::Integer
20
20
  # OK
21
- field :classes, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::EmbedToken])
21
+ field :embed_tokens, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::EmbedToken])
22
22
  # Default error response
23
23
  field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
24
24
 
25
25
 
26
- sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, classes: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::EmbedToken]), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
27
- def initialize(content_type: nil, raw_response: nil, status_code: nil, classes: nil, error: nil)
26
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, embed_tokens: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::EmbedToken]), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
27
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, embed_tokens: nil, error: nil)
28
28
  @content_type = content_type
29
29
  @raw_response = raw_response
30
30
  @status_code = status_code
31
- @classes = classes
31
+ @embed_tokens = embed_tokens
32
32
  @error = error
33
33
  end
34
34
  end
@@ -17,19 +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
- # OK
21
- field :classes, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::VersionMetadata])
22
20
  # Default error response
23
21
  field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
22
+ # OK
23
+ field :version_metadata, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::VersionMetadata])
24
24
 
25
25
 
26
- sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, classes: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::VersionMetadata]), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
27
- def initialize(content_type: nil, raw_response: nil, status_code: nil, classes: nil, error: nil)
26
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error), version_metadata: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::VersionMetadata])).void }
27
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, version_metadata: nil)
28
28
  @content_type = content_type
29
29
  @raw_response = raw_response
30
30
  @status_code = status_code
31
- @classes = classes
32
31
  @error = error
32
+ @version_metadata = version_metadata
33
33
  end
34
34
  end
35
35
  end
@@ -0,0 +1,27 @@
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module SpeakeasyClientSDK
8
+ module Operations
9
+
10
+
11
+ class PostWorkspaceEventsRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :request_body, T::Array[::SpeakeasyClientSDK::Shared::CliEvent], { 'request': { 'media_type': 'application/json' } }
16
+ # Unique identifier of the workspace.
17
+ field :workspace_id, T.nilable(::String), { 'path_param': { 'field_name': 'workspaceID', 'style': 'simple', 'explode': false } }
18
+
19
+
20
+ sig { params(request_body: T::Array[::SpeakeasyClientSDK::Shared::CliEvent], workspace_id: T.nilable(::String)).void }
21
+ def initialize(request_body: nil, workspace_id: nil)
22
+ @request_body = request_body
23
+ @workspace_id = workspace_id
24
+ end
25
+ end
26
+ end
27
+ end
@@ -8,7 +8,7 @@ module SpeakeasyClientSDK
8
8
  module Operations
9
9
 
10
10
 
11
- class UpsertPluginResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
11
+ class PostWorkspaceEventsResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
14
  # HTTP response content type for this operation
@@ -17,19 +17,13 @@ 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
- # Default error response
21
- field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
22
- # OK
23
- field :plugin, T.nilable(::SpeakeasyClientSDK::Shared::Plugin)
24
20
 
25
21
 
26
- sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error), plugin: T.nilable(::SpeakeasyClientSDK::Shared::Plugin)).void }
27
- def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, plugin: nil)
22
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer).void }
23
+ def initialize(content_type: nil, raw_response: nil, status_code: nil)
28
24
  @content_type = content_type
29
25
  @raw_response = raw_response
30
26
  @status_code = status_code
31
- @error = error
32
- @plugin = plugin
33
27
  end
34
28
  end
35
29
  end
@@ -18,17 +18,17 @@ module SpeakeasyClientSDK
18
18
  # HTTP response status code for this operation
19
19
  field :status_code, ::Integer
20
20
  # OK
21
- field :classes, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::BoundedRequest])
21
+ field :bounded_requests, T.nilable(T::Array[::SpeakeasyClientSDK::Shared::BoundedRequest])
22
22
  # Default error response
23
23
  field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
24
24
 
25
25
 
26
- sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, classes: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::BoundedRequest]), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
27
- def initialize(content_type: nil, raw_response: nil, status_code: nil, classes: nil, error: nil)
26
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bounded_requests: T.nilable(T::Array[::SpeakeasyClientSDK::Shared::BoundedRequest]), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
27
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, bounded_requests: nil, error: nil)
28
28
  @content_type = content_type
29
29
  @raw_response = raw_response
30
30
  @status_code = status_code
31
- @classes = classes
31
+ @bounded_requests = bounded_requests
32
32
  @error = error
33
33
  end
34
34
  end
@@ -17,15 +17,18 @@ 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
+ # OK
21
+ field :api_key_details, T.nilable(::SpeakeasyClientSDK::Shared::ApiKeyDetails)
20
22
  # Default error response
21
23
  field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
22
24
 
23
25
 
24
- sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
25
- def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil)
26
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, api_key_details: T.nilable(::SpeakeasyClientSDK::Shared::ApiKeyDetails), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
27
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, api_key_details: nil, error: nil)
26
28
  @content_type = content_type
27
29
  @raw_response = raw_response
28
30
  @status_code = status_code
31
+ @api_key_details = api_key_details
29
32
  @error = error
30
33
  end
31
34
  end
@@ -5,7 +5,6 @@
5
5
 
6
6
  module SpeakeasyClientSDK
7
7
  module Operations
8
- autoload :ValidateApiKeyResponse, 'speakeasy_client_sdk/models/operations/validateapikey_response.rb'
9
8
  autoload :DeleteApiRequest, 'speakeasy_client_sdk/models/operations/deleteapi_request.rb'
10
9
  autoload :DeleteApiResponse, 'speakeasy_client_sdk/models/operations/deleteapi_response.rb'
11
10
  autoload :GenerateOpenApiSpecRequest, 'speakeasy_client_sdk/models/operations/generateopenapispec_request.rb'
@@ -60,20 +59,19 @@ module SpeakeasyClientSDK
60
59
  autoload :RegisterSchemaRequestBody, 'speakeasy_client_sdk/models/operations/registerschema_requestbody.rb'
61
60
  autoload :RegisterSchemaRequest, 'speakeasy_client_sdk/models/operations/registerschema_request.rb'
62
61
  autoload :RegisterSchemaResponse, 'speakeasy_client_sdk/models/operations/registerschema_response.rb'
62
+ autoload :ValidateApiKeyResponse, 'speakeasy_client_sdk/models/operations/validateapikey_response.rb'
63
63
  autoload :GenerateRequestPostmanCollectionRequest, 'speakeasy_client_sdk/models/operations/generaterequestpostmancollection_request.rb'
64
64
  autoload :GenerateRequestPostmanCollectionResponse, 'speakeasy_client_sdk/models/operations/generaterequestpostmancollection_response.rb'
65
65
  autoload :GetRequestFromEventLogRequest, 'speakeasy_client_sdk/models/operations/getrequestfromeventlog_request.rb'
66
66
  autoload :GetRequestFromEventLogResponse, 'speakeasy_client_sdk/models/operations/getrequestfromeventlog_response.rb'
67
67
  autoload :QueryEventLogRequest, 'speakeasy_client_sdk/models/operations/queryeventlog_request.rb'
68
68
  autoload :QueryEventLogResponse, 'speakeasy_client_sdk/models/operations/queryeventlog_response.rb'
69
- autoload :GetPluginsResponse, 'speakeasy_client_sdk/models/operations/getplugins_response.rb'
70
- autoload :RunPluginRequest, 'speakeasy_client_sdk/models/operations/runplugin_request.rb'
71
- autoload :RunPluginResponse, 'speakeasy_client_sdk/models/operations/runplugin_response.rb'
72
- autoload :UpsertPluginResponse, 'speakeasy_client_sdk/models/operations/upsertplugin_response.rb'
73
69
  autoload :GetEmbedAccessTokenRequest, 'speakeasy_client_sdk/models/operations/getembedaccesstoken_request.rb'
74
70
  autoload :GetEmbedAccessTokenResponse, 'speakeasy_client_sdk/models/operations/getembedaccesstoken_response.rb'
75
71
  autoload :GetValidEmbedAccessTokensResponse, 'speakeasy_client_sdk/models/operations/getvalidembedaccesstokens_response.rb'
76
72
  autoload :RevokeEmbedAccessTokenRequest, 'speakeasy_client_sdk/models/operations/revokeembedaccesstoken_request.rb'
77
73
  autoload :RevokeEmbedAccessTokenResponse, 'speakeasy_client_sdk/models/operations/revokeembedaccesstoken_response.rb'
74
+ autoload :PostWorkspaceEventsRequest, 'speakeasy_client_sdk/models/operations/postworkspaceevents_request.rb'
75
+ autoload :PostWorkspaceEventsResponse, 'speakeasy_client_sdk/models/operations/postworkspaceevents_response.rb'
78
76
  end
79
77
  end