speakeasy_client_sdk_ruby 4.2.8 → 4.2.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/lib/speakeasy_client_sdk/artifacts.rb +43 -1
  3. data/lib/speakeasy_client_sdk/github.rb +159 -33
  4. data/lib/speakeasy_client_sdk/models/operations/applyoperationids_request.rb +27 -0
  5. data/lib/speakeasy_client_sdk/models/operations/applyoperationids_requestbody.rb +24 -0
  6. data/lib/speakeasy_client_sdk/models/operations/applyoperationids_response.rb +39 -0
  7. data/lib/speakeasy_client_sdk/models/operations/{githubcheckaccess_request.rb → checkaccess_request.rb} +1 -1
  8. data/lib/speakeasy_client_sdk/models/operations/{githubcheckaccess_response.rb → checkaccess_response.rb} +1 -1
  9. data/lib/speakeasy_client_sdk/models/operations/configurecodesamples_response.rb +36 -0
  10. data/lib/speakeasy_client_sdk/models/operations/{githubconfiguretarget_response.rb → configuremintlifyrepo_response.rb} +1 -1
  11. data/lib/speakeasy_client_sdk/models/operations/{githubtriggeraction_response.rb → configuretarget_response.rb} +1 -1
  12. data/lib/speakeasy_client_sdk/models/operations/getaction_request.rb +30 -0
  13. data/lib/speakeasy_client_sdk/models/operations/getaction_response.rb +36 -0
  14. data/lib/speakeasy_client_sdk/models/operations/getoassummary_request.rb +27 -0
  15. data/lib/speakeasy_client_sdk/models/operations/getoassummary_response.rb +36 -0
  16. data/lib/speakeasy_client_sdk/models/operations/suggestoperationids_request.rb +30 -0
  17. data/lib/speakeasy_client_sdk/models/operations/suggestoperationids_requestbody.rb +2 -2
  18. data/lib/speakeasy_client_sdk/models/operations/suggestoperationids_response.rb +4 -4
  19. data/lib/speakeasy_client_sdk/models/operations/suggestoperationidsregistry_request.rb +36 -0
  20. data/lib/speakeasy_client_sdk/models/operations/suggestoperationidsregistry_response.rb +33 -0
  21. data/lib/speakeasy_client_sdk/models/operations/triggeraction_response.rb +33 -0
  22. data/lib/speakeasy_client_sdk/models/operations.rb +16 -8
  23. data/lib/speakeasy_client_sdk/models/shared/auth.rb +27 -0
  24. data/lib/speakeasy_client_sdk/models/{operations → shared}/depth_style.rb +1 -1
  25. data/lib/speakeasy_client_sdk/models/shared/githubconfigurecodesamplesrequest.rb +30 -0
  26. data/lib/speakeasy_client_sdk/models/shared/githubconfigurecodesamplesresponse.rb +30 -0
  27. data/lib/speakeasy_client_sdk/models/shared/githubconfiguremintlifyreporequest.rb +33 -0
  28. data/lib/speakeasy_client_sdk/models/shared/githubgetactionresponse.rb +27 -0
  29. data/lib/speakeasy_client_sdk/models/shared/githubtriggeractionrequest.rb +5 -2
  30. data/lib/speakeasy_client_sdk/models/shared/license.rb +24 -0
  31. data/lib/speakeasy_client_sdk/models/shared/oasinfo.rb +36 -0
  32. data/lib/speakeasy_client_sdk/models/shared/oasoperation.rb +36 -0
  33. data/lib/speakeasy_client_sdk/models/shared/oassummary.rb +27 -0
  34. data/lib/speakeasy_client_sdk/models/{operations → shared}/style.rb +1 -1
  35. data/lib/speakeasy_client_sdk/models/{operations/suggestoperationids_suggestion.rb → shared/suggestedoperationids.rb} +3 -3
  36. data/lib/speakeasy_client_sdk/models/shared/suggestoperationidsopts.rb +27 -0
  37. data/lib/speakeasy_client_sdk/models/shared/targetsdk.rb +8 -2
  38. data/lib/speakeasy_client_sdk/models/shared/workflowdocument.rb +27 -0
  39. data/lib/speakeasy_client_sdk/models/shared.rb +15 -1
  40. data/lib/speakeasy_client_sdk/sdkconfiguration.rb +3 -3
  41. data/lib/speakeasy_client_sdk/suggest.rb +100 -5
  42. metadata +32 -10
  43. data/lib/speakeasy_client_sdk/models/operations/opts.rb +0 -27
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf4db7b5def901bfa756977967e4e1220120c02203ce6e66155fe35e555a3cb4
4
- data.tar.gz: a562f3f93f00a996dd17524414bfc32932e5a6c5190a3c0d76419e94e4e7a608
3
+ metadata.gz: eb484d85a892a4f33c7b43d09efa0d37b9b0aec3a6976fbfad5de9c5bc96c281
4
+ data.tar.gz: 5fbb7ec7645e1c9b12e75888f2253ac445961a27e4b309ca115f6e188527483e
5
5
  SHA512:
6
- metadata.gz: d2e0c0572bd237f798212aed20256be15e1fcff20b8d3e6dd7c1d32e62a5989306e01afedff86d222d24aa09a6a9506c03140640236066becfefad061cc6be26
7
- data.tar.gz: 790daf447d5b0080401a2007cd5f4d70f44a6931d5a8ea501eeb6d062f9d7e1ded218e827ca0f5dd5e4f4d5dc5771ffeeb33bf39a14dc5f81fdebae4f20072c2
6
+ metadata.gz: 17344dc3bba2c0c28759f84518afcde5a1438809608e5dbda89b731b95f17f9b59045e39911ac8d8a9ba64eb3a06806513d8e83dd60f91ae7567cfd8b3b26227
7
+ data.tar.gz: 9ed88f5dd92102f73efc09357a139087a89d8bf0509a4a0e4bf91bdd7938e10d2aa5769e92c2d108c8b7bda903bc358f9f1bf6d8ed114e567ffa56991b264adb
@@ -11,7 +11,7 @@ module SpeakeasyClientSDK
11
11
  extend T::Sig
12
12
  class Artifacts
13
13
  extend T::Sig
14
-
14
+ # REST APIs for working with Registry artifacts
15
15
 
16
16
  sig { params(sdk_config: SDKConfiguration).void }
17
17
  def initialize(sdk_config)
@@ -137,6 +137,48 @@ module SpeakeasyClientSDK
137
137
  end
138
138
 
139
139
 
140
+ sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetOASSummaryRequest)).returns(::SpeakeasyClientSDK::Operations::GetOASSummaryResponse) }
141
+ def get_oas_summary(request)
142
+
143
+ url, params = @sdk_configuration.get_server_details
144
+ base_url = Utils.template_url(url, params)
145
+ url = Utils.generate_url(
146
+ ::SpeakeasyClientSDK::Operations::GetOASSummaryRequest,
147
+ base_url,
148
+ '/v1/artifacts/namespaces/{namespace_name}/revisions/{revision_reference}/summary',
149
+ request,
150
+ @sdk_configuration.globals
151
+ )
152
+ headers = {}
153
+ headers['Accept'] = 'application/json'
154
+ headers['user-agent'] = @sdk_configuration.user_agent
155
+
156
+ r = @sdk_configuration.client.get(url) do |req|
157
+ req.headers = headers
158
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
159
+ end
160
+
161
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
162
+
163
+ res = ::SpeakeasyClientSDK::Operations::GetOASSummaryResponse.new(
164
+ status_code: r.status, content_type: content_type, raw_response: r
165
+ )
166
+ if r.status == 200
167
+ if Utils.match_content_type(content_type, 'application/json')
168
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::OASSummary)
169
+ res.oas_summary = out
170
+ end
171
+ else
172
+
173
+ if Utils.match_content_type(content_type, 'application/json')
174
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
175
+ res.error = out
176
+ end
177
+ end
178
+ res
179
+ end
180
+
181
+
140
182
  sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetRevisionsRequest)).returns(::SpeakeasyClientSDK::Operations::GetRevisionsResponse) }
141
183
  def get_revisions(request)
142
184
 
@@ -19,14 +19,14 @@ module SpeakeasyClientSDK
19
19
  end
20
20
 
21
21
 
22
- sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::FetchPublishingPRsRequest)).returns(::SpeakeasyClientSDK::Operations::FetchPublishingPRsResponse) }
23
- def fetch_publishing_p_rs(request)
22
+ sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::CheckAccessRequest)).returns(::SpeakeasyClientSDK::Operations::CheckAccessResponse) }
23
+ def check_access(request)
24
24
 
25
25
  url, params = @sdk_configuration.get_server_details
26
26
  base_url = Utils.template_url(url, params)
27
- url = "#{base_url}/v1/github/publishing_prs"
27
+ url = "#{base_url}/v1/github/check_access"
28
28
  headers = {}
29
- query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::FetchPublishingPRsRequest, request, @sdk_configuration.globals)
29
+ query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::CheckAccessRequest, request, @sdk_configuration.globals)
30
30
  headers['Accept'] = 'application/json'
31
31
  headers['user-agent'] = @sdk_configuration.user_agent
32
32
 
@@ -38,14 +38,10 @@ module SpeakeasyClientSDK
38
38
 
39
39
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
40
40
 
41
- res = ::SpeakeasyClientSDK::Operations::FetchPublishingPRsResponse.new(
41
+ res = ::SpeakeasyClientSDK::Operations::CheckAccessResponse.new(
42
42
  status_code: r.status, content_type: content_type, raw_response: r
43
43
  )
44
44
  if r.status == 200
45
- if Utils.match_content_type(content_type, 'application/json')
46
- out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::GithubPublishingPRResponse)
47
- res.github_publishing_pr_response = out
48
- end
49
45
  else
50
46
 
51
47
  if Utils.match_content_type(content_type, 'application/json')
@@ -57,29 +53,41 @@ module SpeakeasyClientSDK
57
53
  end
58
54
 
59
55
 
60
- sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GithubCheckAccessRequest)).returns(::SpeakeasyClientSDK::Operations::GithubCheckAccessResponse) }
61
- def github_check_access(request)
56
+ sig { params(request: ::SpeakeasyClientSDK::Shared::GithubConfigureCodeSamplesRequest).returns(::SpeakeasyClientSDK::Operations::ConfigureCodeSamplesResponse) }
57
+ def configure_code_samples(request)
62
58
 
63
59
  url, params = @sdk_configuration.get_server_details
64
60
  base_url = Utils.template_url(url, params)
65
- url = "#{base_url}/v1/github/check_access"
61
+ url = "#{base_url}/v1/github/configure_code_samples"
66
62
  headers = {}
67
- query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GithubCheckAccessRequest, request, @sdk_configuration.globals)
63
+ req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
64
+ headers['content-type'] = req_content_type
65
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
68
66
  headers['Accept'] = 'application/json'
69
67
  headers['user-agent'] = @sdk_configuration.user_agent
70
68
 
71
- r = @sdk_configuration.client.get(url) do |req|
69
+ r = @sdk_configuration.client.post(url) do |req|
72
70
  req.headers = headers
73
- req.params = query_params
74
71
  Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
72
+ if form
73
+ req.body = Utils.encode_form(form)
74
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
75
+ req.body = URI.encode_www_form(data)
76
+ else
77
+ req.body = data
78
+ end
75
79
  end
76
80
 
77
81
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
78
82
 
79
- res = ::SpeakeasyClientSDK::Operations::GithubCheckAccessResponse.new(
83
+ res = ::SpeakeasyClientSDK::Operations::ConfigureCodeSamplesResponse.new(
80
84
  status_code: r.status, content_type: content_type, raw_response: r
81
85
  )
82
86
  if r.status == 200
87
+ if Utils.match_content_type(content_type, 'application/json')
88
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::GithubConfigureCodeSamplesResponse)
89
+ res.github_configure_code_samples_response = out
90
+ end
83
91
  else
84
92
 
85
93
  if Utils.match_content_type(content_type, 'application/json')
@@ -91,33 +99,37 @@ module SpeakeasyClientSDK
91
99
  end
92
100
 
93
101
 
94
- sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GithubCheckPublishingSecretsRequest)).returns(::SpeakeasyClientSDK::Operations::GithubCheckPublishingSecretsResponse) }
95
- def github_check_publishing_secrets(request)
102
+ sig { params(request: ::SpeakeasyClientSDK::Shared::GithubConfigureMintlifyRepoRequest).returns(::SpeakeasyClientSDK::Operations::ConfigureMintlifyRepoResponse) }
103
+ def configure_mintlify_repo(request)
96
104
 
97
105
  url, params = @sdk_configuration.get_server_details
98
106
  base_url = Utils.template_url(url, params)
99
- url = "#{base_url}/v1/github/publishing_secrets"
107
+ url = "#{base_url}/v1/github/configure_mintlify_repo"
100
108
  headers = {}
101
- query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GithubCheckPublishingSecretsRequest, request, @sdk_configuration.globals)
109
+ req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
110
+ headers['content-type'] = req_content_type
111
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
102
112
  headers['Accept'] = 'application/json'
103
113
  headers['user-agent'] = @sdk_configuration.user_agent
104
114
 
105
- r = @sdk_configuration.client.get(url) do |req|
115
+ r = @sdk_configuration.client.post(url) do |req|
106
116
  req.headers = headers
107
- req.params = query_params
108
117
  Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
118
+ if form
119
+ req.body = Utils.encode_form(form)
120
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
121
+ req.body = URI.encode_www_form(data)
122
+ else
123
+ req.body = data
124
+ end
109
125
  end
110
126
 
111
127
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
112
128
 
113
- res = ::SpeakeasyClientSDK::Operations::GithubCheckPublishingSecretsResponse.new(
129
+ res = ::SpeakeasyClientSDK::Operations::ConfigureMintlifyRepoResponse.new(
114
130
  status_code: r.status, content_type: content_type, raw_response: r
115
131
  )
116
132
  if r.status == 200
117
- if Utils.match_content_type(content_type, 'application/json')
118
- out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::GithubMissingPublishingSecretsResponse)
119
- res.github_missing_publishing_secrets_response = out
120
- end
121
133
  else
122
134
 
123
135
  if Utils.match_content_type(content_type, 'application/json')
@@ -129,8 +141,8 @@ module SpeakeasyClientSDK
129
141
  end
130
142
 
131
143
 
132
- sig { params(request: ::SpeakeasyClientSDK::Shared::GithubConfigureTargetRequest).returns(::SpeakeasyClientSDK::Operations::GithubConfigureTargetResponse) }
133
- def github_configure_target(request)
144
+ sig { params(request: ::SpeakeasyClientSDK::Shared::GithubConfigureTargetRequest).returns(::SpeakeasyClientSDK::Operations::ConfigureTargetResponse) }
145
+ def configure_target(request)
134
146
 
135
147
  url, params = @sdk_configuration.get_server_details
136
148
  base_url = Utils.template_url(url, params)
@@ -156,7 +168,7 @@ module SpeakeasyClientSDK
156
168
 
157
169
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
158
170
 
159
- res = ::SpeakeasyClientSDK::Operations::GithubConfigureTargetResponse.new(
171
+ res = ::SpeakeasyClientSDK::Operations::ConfigureTargetResponse.new(
160
172
  status_code: r.status, content_type: content_type, raw_response: r
161
173
  )
162
174
  if r.status == 200
@@ -171,6 +183,120 @@ module SpeakeasyClientSDK
171
183
  end
172
184
 
173
185
 
186
+ sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::FetchPublishingPRsRequest)).returns(::SpeakeasyClientSDK::Operations::FetchPublishingPRsResponse) }
187
+ def fetch_publishing_p_rs(request)
188
+
189
+ url, params = @sdk_configuration.get_server_details
190
+ base_url = Utils.template_url(url, params)
191
+ url = "#{base_url}/v1/github/publishing_prs"
192
+ headers = {}
193
+ query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::FetchPublishingPRsRequest, request, @sdk_configuration.globals)
194
+ headers['Accept'] = 'application/json'
195
+ headers['user-agent'] = @sdk_configuration.user_agent
196
+
197
+ r = @sdk_configuration.client.get(url) do |req|
198
+ req.headers = headers
199
+ req.params = query_params
200
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
201
+ end
202
+
203
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
204
+
205
+ res = ::SpeakeasyClientSDK::Operations::FetchPublishingPRsResponse.new(
206
+ status_code: r.status, content_type: content_type, raw_response: r
207
+ )
208
+ if r.status == 200
209
+ if Utils.match_content_type(content_type, 'application/json')
210
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::GithubPublishingPRResponse)
211
+ res.github_publishing_pr_response = out
212
+ end
213
+ else
214
+
215
+ if Utils.match_content_type(content_type, 'application/json')
216
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
217
+ res.error = out
218
+ end
219
+ end
220
+ res
221
+ end
222
+
223
+
224
+ sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetActionRequest)).returns(::SpeakeasyClientSDK::Operations::GetActionResponse) }
225
+ def get_action(request)
226
+
227
+ url, params = @sdk_configuration.get_server_details
228
+ base_url = Utils.template_url(url, params)
229
+ url = "#{base_url}/v1/github/action"
230
+ headers = {}
231
+ query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GetActionRequest, request, @sdk_configuration.globals)
232
+ headers['Accept'] = 'application/json'
233
+ headers['user-agent'] = @sdk_configuration.user_agent
234
+
235
+ r = @sdk_configuration.client.get(url) do |req|
236
+ req.headers = headers
237
+ req.params = query_params
238
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
239
+ end
240
+
241
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
242
+
243
+ res = ::SpeakeasyClientSDK::Operations::GetActionResponse.new(
244
+ status_code: r.status, content_type: content_type, raw_response: r
245
+ )
246
+ if r.status == 200
247
+ if Utils.match_content_type(content_type, 'application/json')
248
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::GithubGetActionResponse)
249
+ res.github_get_action_response = out
250
+ end
251
+ else
252
+
253
+ if Utils.match_content_type(content_type, 'application/json')
254
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
255
+ res.error = out
256
+ end
257
+ end
258
+ res
259
+ end
260
+
261
+
262
+ sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GithubCheckPublishingSecretsRequest)).returns(::SpeakeasyClientSDK::Operations::GithubCheckPublishingSecretsResponse) }
263
+ def github_check_publishing_secrets(request)
264
+
265
+ url, params = @sdk_configuration.get_server_details
266
+ base_url = Utils.template_url(url, params)
267
+ url = "#{base_url}/v1/github/publishing_secrets"
268
+ headers = {}
269
+ query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GithubCheckPublishingSecretsRequest, request, @sdk_configuration.globals)
270
+ headers['Accept'] = 'application/json'
271
+ headers['user-agent'] = @sdk_configuration.user_agent
272
+
273
+ r = @sdk_configuration.client.get(url) do |req|
274
+ req.headers = headers
275
+ req.params = query_params
276
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
277
+ end
278
+
279
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
280
+
281
+ res = ::SpeakeasyClientSDK::Operations::GithubCheckPublishingSecretsResponse.new(
282
+ status_code: r.status, content_type: content_type, raw_response: r
283
+ )
284
+ if r.status == 200
285
+ if Utils.match_content_type(content_type, 'application/json')
286
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::GithubMissingPublishingSecretsResponse)
287
+ res.github_missing_publishing_secrets_response = out
288
+ end
289
+ else
290
+
291
+ if Utils.match_content_type(content_type, 'application/json')
292
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
293
+ res.error = out
294
+ end
295
+ end
296
+ res
297
+ end
298
+
299
+
174
300
  sig { params(request: ::SpeakeasyClientSDK::Shared::GithubStorePublishingSecretsRequest).returns(::SpeakeasyClientSDK::Operations::GithubStorePublishingSecretsResponse) }
175
301
  def github_store_publishing_secrets(request)
176
302
 
@@ -213,8 +339,8 @@ module SpeakeasyClientSDK
213
339
  end
214
340
 
215
341
 
216
- sig { params(request: ::SpeakeasyClientSDK::Shared::GithubTriggerActionRequest).returns(::SpeakeasyClientSDK::Operations::GithubTriggerActionResponse) }
217
- def github_trigger_action(request)
342
+ sig { params(request: ::SpeakeasyClientSDK::Shared::GithubTriggerActionRequest).returns(::SpeakeasyClientSDK::Operations::TriggerActionResponse) }
343
+ def trigger_action(request)
218
344
 
219
345
  url, params = @sdk_configuration.get_server_details
220
346
  base_url = Utils.template_url(url, params)
@@ -240,7 +366,7 @@ module SpeakeasyClientSDK
240
366
 
241
367
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
242
368
 
243
- res = ::SpeakeasyClientSDK::Operations::GithubTriggerActionResponse.new(
369
+ res = ::SpeakeasyClientSDK::Operations::TriggerActionResponse.new(
244
370
  status_code: r.status, content_type: content_type, raw_response: r
245
371
  )
246
372
  if r.status == 200
@@ -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 ApplyOperationIDsRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :x_session_id, ::String, { 'header': { 'field_name': 'x-session-id', 'style': 'simple', 'explode': false } }
16
+ # Apply options
17
+ field :request_body, T.nilable(::SpeakeasyClientSDK::Operations::ApplyOperationIDsRequestBody), { 'request': { 'media_type': 'application/json' } }
18
+
19
+
20
+ sig { params(x_session_id: ::String, request_body: T.nilable(::SpeakeasyClientSDK::Operations::ApplyOperationIDsRequestBody)).void }
21
+ def initialize(x_session_id: nil, request_body: nil)
22
+ @x_session_id = x_session_id
23
+ @request_body = request_body
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,24 @@
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
+ # Apply options
11
+ class ApplyOperationIDsRequestBody < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # Whether to apply the suggestions as an overlay or replace the existing operationIDs. Default: false
15
+ field :as_overlay, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('as_overlay') } }
16
+
17
+
18
+ sig { params(as_overlay: T.nilable(T::Boolean)).void }
19
+ def initialize(as_overlay: nil)
20
+ @as_overlay = as_overlay
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,39 @@
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 ApplyOperationIDsResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # HTTP response content type for this operation
15
+ field :content_type, ::String
16
+ # Raw HTTP response; suitable for custom response parsing
17
+ field :raw_response, ::Faraday::Response
18
+ # HTTP response status code for this operation
19
+ field :status_code, ::Integer
20
+ # OK
21
+ field :two_hundred_application_json_schema, T.nilable(::String)
22
+ # OK
23
+ field :two_hundred_application_x_yaml_schema, T.nilable(::String)
24
+ # Default error response
25
+ field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
26
+
27
+
28
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, two_hundred_application_json_schema: T.nilable(::String), two_hundred_application_x_yaml_schema: T.nilable(::String), error: T.nilable(::SpeakeasyClientSDK::Shared::Error)).void }
29
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, two_hundred_application_json_schema: nil, two_hundred_application_x_yaml_schema: nil, error: nil)
30
+ @content_type = content_type
31
+ @raw_response = raw_response
32
+ @status_code = status_code
33
+ @two_hundred_application_json_schema = two_hundred_application_json_schema
34
+ @two_hundred_application_x_yaml_schema = two_hundred_application_x_yaml_schema
35
+ @error = error
36
+ end
37
+ end
38
+ end
39
+ end
@@ -8,7 +8,7 @@ module SpeakeasyClientSDK
8
8
  module Operations
9
9
 
10
10
 
11
- class GithubCheckAccessRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
11
+ class CheckAccessRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
14
 
@@ -8,7 +8,7 @@ module SpeakeasyClientSDK
8
8
  module Operations
9
9
 
10
10
 
11
- class GithubCheckAccessResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
11
+ class CheckAccessResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
14
  # HTTP response content type for this operation
@@ -0,0 +1,36 @@
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 ConfigureCodeSamplesResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # HTTP response content type for this operation
15
+ field :content_type, ::String
16
+ # Raw HTTP response; suitable for custom response parsing
17
+ field :raw_response, ::Faraday::Response
18
+ # HTTP response status code for this operation
19
+ field :status_code, ::Integer
20
+ # Default error response
21
+ field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
22
+ # OK
23
+ field :github_configure_code_samples_response, T.nilable(::SpeakeasyClientSDK::Shared::GithubConfigureCodeSamplesResponse)
24
+
25
+
26
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error), github_configure_code_samples_response: T.nilable(::SpeakeasyClientSDK::Shared::GithubConfigureCodeSamplesResponse)).void }
27
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, github_configure_code_samples_response: nil)
28
+ @content_type = content_type
29
+ @raw_response = raw_response
30
+ @status_code = status_code
31
+ @error = error
32
+ @github_configure_code_samples_response = github_configure_code_samples_response
33
+ end
34
+ end
35
+ end
36
+ end
@@ -8,7 +8,7 @@ module SpeakeasyClientSDK
8
8
  module Operations
9
9
 
10
10
 
11
- class GithubConfigureTargetResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
11
+ class ConfigureMintlifyRepoResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
14
  # HTTP response content type for this operation
@@ -8,7 +8,7 @@ module SpeakeasyClientSDK
8
8
  module Operations
9
9
 
10
10
 
11
- class GithubTriggerActionResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
11
+ class ConfigureTargetResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
14
  # HTTP response content type for this operation
@@ -0,0 +1,30 @@
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 GetActionRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :org, ::String, { 'query_param': { 'field_name': 'org', 'style': 'form', 'explode': true } }
16
+
17
+ field :repo, ::String, { 'query_param': { 'field_name': 'repo', 'style': 'form', 'explode': true } }
18
+ # The targetName of the workflow target.
19
+ field :target_name, T.nilable(::String), { 'query_param': { 'field_name': 'targetName', 'style': 'form', 'explode': true } }
20
+
21
+
22
+ sig { params(org: ::String, repo: ::String, target_name: T.nilable(::String)).void }
23
+ def initialize(org: nil, repo: nil, target_name: nil)
24
+ @org = org
25
+ @repo = repo
26
+ @target_name = target_name
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,36 @@
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 GetActionResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # HTTP response content type for this operation
15
+ field :content_type, ::String
16
+ # Raw HTTP response; suitable for custom response parsing
17
+ field :raw_response, ::Faraday::Response
18
+ # HTTP response status code for this operation
19
+ field :status_code, ::Integer
20
+ # Default error response
21
+ field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
22
+ # OK
23
+ field :github_get_action_response, T.nilable(::SpeakeasyClientSDK::Shared::GithubGetActionResponse)
24
+
25
+
26
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error), github_get_action_response: T.nilable(::SpeakeasyClientSDK::Shared::GithubGetActionResponse)).void }
27
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, github_get_action_response: nil)
28
+ @content_type = content_type
29
+ @raw_response = raw_response
30
+ @status_code = status_code
31
+ @error = error
32
+ @github_get_action_response = github_get_action_response
33
+ end
34
+ end
35
+ end
36
+ 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 GetOASSummaryRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :namespace_name, ::String, { 'path_param': { 'field_name': 'namespace_name', 'style': 'simple', 'explode': false } }
16
+
17
+ field :revision_reference, ::String, { 'path_param': { 'field_name': 'revision_reference', 'style': 'simple', 'explode': false } }
18
+
19
+
20
+ sig { params(namespace_name: ::String, revision_reference: ::String).void }
21
+ def initialize(namespace_name: nil, revision_reference: nil)
22
+ @namespace_name = namespace_name
23
+ @revision_reference = revision_reference
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,36 @@
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 GetOASSummaryResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # HTTP response content type for this operation
15
+ field :content_type, ::String
16
+ # Raw HTTP response; suitable for custom response parsing
17
+ field :raw_response, ::Faraday::Response
18
+ # HTTP response status code for this operation
19
+ field :status_code, ::Integer
20
+ # Default error response
21
+ field :error, T.nilable(::SpeakeasyClientSDK::Shared::Error)
22
+ # OK
23
+ field :oas_summary, T.nilable(::SpeakeasyClientSDK::Shared::OASSummary)
24
+
25
+
26
+ sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, error: T.nilable(::SpeakeasyClientSDK::Shared::Error), oas_summary: T.nilable(::SpeakeasyClientSDK::Shared::OASSummary)).void }
27
+ def initialize(content_type: nil, raw_response: nil, status_code: nil, error: nil, oas_summary: nil)
28
+ @content_type = content_type
29
+ @raw_response = raw_response
30
+ @status_code = status_code
31
+ @error = error
32
+ @oas_summary = oas_summary
33
+ end
34
+ end
35
+ end
36
+ end