speakeasy_client_sdk_ruby 4.2.8 → 4.2.9

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: cf4db7b5def901bfa756977967e4e1220120c02203ce6e66155fe35e555a3cb4
4
- data.tar.gz: a562f3f93f00a996dd17524414bfc32932e5a6c5190a3c0d76419e94e4e7a608
3
+ metadata.gz: 63371e8fd1ffc4446d688c7f3610445d7d240bd415573216eb281616a3796ac0
4
+ data.tar.gz: 1351f6d7b4c51d9289b09e27e0edb7538050abd49bbe8187736d189a161a6930
5
5
  SHA512:
6
- metadata.gz: d2e0c0572bd237f798212aed20256be15e1fcff20b8d3e6dd7c1d32e62a5989306e01afedff86d222d24aa09a6a9506c03140640236066becfefad061cc6be26
7
- data.tar.gz: 790daf447d5b0080401a2007cd5f4d70f44a6931d5a8ea501eeb6d062f9d7e1ded218e827ca0f5dd5e4f4d5dc5771ffeeb33bf39a14dc5f81fdebae4f20072c2
6
+ metadata.gz: 6d203cfb8423e6c2e69a1bdff249bc5f1407b695559a262dfd8bb19f6965a828567ad6f2925d84e9e091300f7cf24a35101c29e65d7ed7d1ca9407e74ecb7291
7
+ data.tar.gz: 932b5709570694d6755c10e9f7216f154d51daaa87b7f71394ef5d177774a2c8fe8990af2bdb34c7490beaeb3ee541d3eebcdab655b4cd8018eea6efbc6fd45f
@@ -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,10 +168,86 @@ 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(
172
+ status_code: r.status, content_type: content_type, raw_response: r
173
+ )
174
+ if r.status == 200
175
+ else
176
+
177
+ if Utils.match_content_type(content_type, 'application/json')
178
+ out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
179
+ res.error = out
180
+ end
181
+ end
182
+ res
183
+ end
184
+
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::GithubCheckPublishingSecretsRequest)).returns(::SpeakeasyClientSDK::Operations::GithubCheckPublishingSecretsResponse) }
225
+ def github_check_publishing_secrets(request)
226
+
227
+ url, params = @sdk_configuration.get_server_details
228
+ base_url = Utils.template_url(url, params)
229
+ url = "#{base_url}/v1/github/publishing_secrets"
230
+ headers = {}
231
+ query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GithubCheckPublishingSecretsRequest, 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::GithubCheckPublishingSecretsResponse.new(
160
244
  status_code: r.status, content_type: content_type, raw_response: r
161
245
  )
162
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::GithubMissingPublishingSecretsResponse)
249
+ res.github_missing_publishing_secrets_response = out
250
+ end
163
251
  else
164
252
 
165
253
  if Utils.match_content_type(content_type, 'application/json')
@@ -213,8 +301,8 @@ module SpeakeasyClientSDK
213
301
  end
214
302
 
215
303
 
216
- sig { params(request: ::SpeakeasyClientSDK::Shared::GithubTriggerActionRequest).returns(::SpeakeasyClientSDK::Operations::GithubTriggerActionResponse) }
217
- def github_trigger_action(request)
304
+ sig { params(request: ::SpeakeasyClientSDK::Shared::GithubTriggerActionRequest).returns(::SpeakeasyClientSDK::Operations::TriggerActionResponse) }
305
+ def trigger_action(request)
218
306
 
219
307
  url, params = @sdk_configuration.get_server_details
220
308
  base_url = Utils.template_url(url, params)
@@ -240,7 +328,7 @@ module SpeakeasyClientSDK
240
328
 
241
329
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
242
330
 
243
- res = ::SpeakeasyClientSDK::Operations::GithubTriggerActionResponse.new(
331
+ res = ::SpeakeasyClientSDK::Operations::TriggerActionResponse.new(
244
332
  status_code: r.status, content_type: content_type, raw_response: r
245
333
  )
246
334
  if r.status == 200
@@ -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,33 @@
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 TriggerActionResponse < ::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
+
23
+
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
+ @content_type = content_type
27
+ @raw_response = raw_response
28
+ @status_code = status_code
29
+ @error = error
30
+ end
31
+ end
32
+ end
33
+ end
@@ -83,15 +83,17 @@ module SpeakeasyClientSDK
83
83
  autoload :GetRequestFromEventLogResponse, 'speakeasy_client_sdk/models/operations/getrequestfromeventlog_response.rb'
84
84
  autoload :QueryEventLogRequest, 'speakeasy_client_sdk/models/operations/queryeventlog_request.rb'
85
85
  autoload :QueryEventLogResponse, 'speakeasy_client_sdk/models/operations/queryeventlog_response.rb'
86
+ autoload :CheckAccessRequest, 'speakeasy_client_sdk/models/operations/checkaccess_request.rb'
87
+ autoload :CheckAccessResponse, 'speakeasy_client_sdk/models/operations/checkaccess_response.rb'
88
+ autoload :ConfigureCodeSamplesResponse, 'speakeasy_client_sdk/models/operations/configurecodesamples_response.rb'
89
+ autoload :ConfigureMintlifyRepoResponse, 'speakeasy_client_sdk/models/operations/configuremintlifyrepo_response.rb'
90
+ autoload :ConfigureTargetResponse, 'speakeasy_client_sdk/models/operations/configuretarget_response.rb'
86
91
  autoload :FetchPublishingPRsRequest, 'speakeasy_client_sdk/models/operations/fetchpublishingprs_request.rb'
87
92
  autoload :FetchPublishingPRsResponse, 'speakeasy_client_sdk/models/operations/fetchpublishingprs_response.rb'
88
- autoload :GithubCheckAccessRequest, 'speakeasy_client_sdk/models/operations/githubcheckaccess_request.rb'
89
- autoload :GithubCheckAccessResponse, 'speakeasy_client_sdk/models/operations/githubcheckaccess_response.rb'
90
93
  autoload :GithubCheckPublishingSecretsRequest, 'speakeasy_client_sdk/models/operations/githubcheckpublishingsecrets_request.rb'
91
94
  autoload :GithubCheckPublishingSecretsResponse, 'speakeasy_client_sdk/models/operations/githubcheckpublishingsecrets_response.rb'
92
- autoload :GithubConfigureTargetResponse, 'speakeasy_client_sdk/models/operations/githubconfiguretarget_response.rb'
93
95
  autoload :GithubStorePublishingSecretsResponse, 'speakeasy_client_sdk/models/operations/githubstorepublishingsecrets_response.rb'
94
- autoload :GithubTriggerActionResponse, 'speakeasy_client_sdk/models/operations/githubtriggeraction_response.rb'
96
+ autoload :TriggerActionResponse, 'speakeasy_client_sdk/models/operations/triggeraction_response.rb'
95
97
  autoload :CreateFreeTrialResponse, 'speakeasy_client_sdk/models/operations/createfreetrial_response.rb'
96
98
  autoload :GetOrganizationUsageResponse, 'speakeasy_client_sdk/models/operations/getorganizationusage_response.rb'
97
99
  autoload :GetOrganizationsResponse, 'speakeasy_client_sdk/models/operations/getorganizations_response.rb'
@@ -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 Shared
9
+
10
+
11
+ class Auth < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :header, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('header') } }
16
+
17
+ field :secret, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('secret') } }
18
+
19
+
20
+ sig { params(header: ::String, secret: ::String).void }
21
+ def initialize(header: nil, secret: nil)
22
+ @header = header
23
+ @secret = secret
24
+ end
25
+ end
26
+ end
27
+ end
@@ -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 Shared
9
+
10
+ # A request to configure GitHub code samples
11
+ class GithubConfigureCodeSamplesRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The GitHub organization name
15
+ field :org, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org') } }
16
+ # The GitHub repository name
17
+ field :repo, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('repo') } }
18
+ # The target name for the code samples
19
+ field :target_name, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('targetName') } }
20
+
21
+
22
+ sig { params(org: ::String, repo: ::String, target_name: ::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,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 Shared
9
+
10
+ # A response to configure GitHub code samples
11
+ class GithubConfigureCodeSamplesResponse < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The URL of the code sample overlay registry
15
+ field :code_sample_overlay_registry_url, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('codeSampleOverlayRegistryURL') } }
16
+ # A document referenced by a workflow
17
+ field :source, ::SpeakeasyClientSDK::Shared::WorkflowDocument, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('source') } }
18
+ # The ID of the GitHub action that was dispatched
19
+ field :gh_action_id, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('ghActionID') } }
20
+
21
+
22
+ sig { params(code_sample_overlay_registry_url: ::String, source: ::SpeakeasyClientSDK::Shared::WorkflowDocument, gh_action_id: T.nilable(::String)).void }
23
+ def initialize(code_sample_overlay_registry_url: nil, source: nil, gh_action_id: nil)
24
+ @code_sample_overlay_registry_url = code_sample_overlay_registry_url
25
+ @source = source
26
+ @gh_action_id = gh_action_id
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,33 @@
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 Shared
9
+
10
+ # A request to configure a GitHub repository for mintlify
11
+ class GithubConfigureMintlifyRepoRequest < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The input OpenAPI document
15
+ field :input, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('input') } }
16
+ # The GitHub organization name
17
+ field :org, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('org') } }
18
+ # The overlays to apply
19
+ field :overlays, T::Array[::String], { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('overlays') } }
20
+ # The GitHub repository name
21
+ field :repo, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('repo') } }
22
+
23
+
24
+ sig { params(input: ::String, org: ::String, overlays: T::Array[::String], repo: ::String).void }
25
+ def initialize(input: nil, org: nil, overlays: nil, repo: nil)
26
+ @input = input
27
+ @org = org
28
+ @overlays = overlays
29
+ @repo = repo
30
+ end
31
+ end
32
+ end
33
+ end
@@ -79,10 +79,14 @@ module SpeakeasyClientSDK
79
79
  field :source_revision_digest, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('source_revision_digest') } }
80
80
  # Indicates whether the event was successful.
81
81
  field :success, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('success') } }
82
+ # Workflow file (post execution)
83
+ field :workflow_post_raw, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workflow_post_raw') } }
84
+ # Workflow file (prior to execution)
85
+ field :workflow_pre_raw, T.nilable(::String), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('workflow_pre_raw') } }
82
86
 
83
87
 
84
- sig { params(generate_gen_lock_id: ::String, generate_target: ::String, id: ::String, last_event_created_at: ::DateTime, last_event_id: ::String, last_event_interaction_type: ::SpeakeasyClientSDK::Shared::InteractionType, commit_head: T.nilable(::String), continuous_integration_environment: T.nilable(::String), error: T.nilable(::String), generate_config_post_version: T.nilable(::String), generate_eligible_features: T.nilable(::String), generate_gen_lock_pre_features: T.nilable(::String), generate_gen_lock_pre_version: T.nilable(::String), generate_number_of_operations_ignored: T.nilable(::Integer), generate_number_of_operations_used: T.nilable(::Integer), generate_published: T.nilable(T::Boolean), generate_target_name: T.nilable(::String), generate_target_version: T.nilable(::String), gh_action_organization: T.nilable(::String), gh_action_ref: T.nilable(::String), gh_action_repository: T.nilable(::String), gh_action_run_link: T.nilable(::String), gh_action_version: T.nilable(::String), git_relative_cwd: T.nilable(::String), git_remote_default_owner: T.nilable(::String), git_remote_default_repo: T.nilable(::String), git_user_email: T.nilable(::String), git_user_name: T.nilable(::String), hostname: T.nilable(::String), repo_label: T.nilable(::String), source_blob_digest: T.nilable(::String), source_namespace_name: T.nilable(::String), source_revision_digest: T.nilable(::String), success: T.nilable(T::Boolean)).void }
85
- def initialize(generate_gen_lock_id: nil, generate_target: nil, id: nil, last_event_created_at: nil, last_event_id: nil, last_event_interaction_type: nil, commit_head: nil, continuous_integration_environment: nil, error: nil, generate_config_post_version: nil, generate_eligible_features: nil, generate_gen_lock_pre_features: nil, generate_gen_lock_pre_version: nil, generate_number_of_operations_ignored: nil, generate_number_of_operations_used: nil, generate_published: nil, generate_target_name: nil, generate_target_version: nil, gh_action_organization: nil, gh_action_ref: nil, gh_action_repository: nil, gh_action_run_link: nil, gh_action_version: nil, git_relative_cwd: nil, git_remote_default_owner: nil, git_remote_default_repo: nil, git_user_email: nil, git_user_name: nil, hostname: nil, repo_label: nil, source_blob_digest: nil, source_namespace_name: nil, source_revision_digest: nil, success: nil)
88
+ sig { params(generate_gen_lock_id: ::String, generate_target: ::String, id: ::String, last_event_created_at: ::DateTime, last_event_id: ::String, last_event_interaction_type: ::SpeakeasyClientSDK::Shared::InteractionType, commit_head: T.nilable(::String), continuous_integration_environment: T.nilable(::String), error: T.nilable(::String), generate_config_post_version: T.nilable(::String), generate_eligible_features: T.nilable(::String), generate_gen_lock_pre_features: T.nilable(::String), generate_gen_lock_pre_version: T.nilable(::String), generate_number_of_operations_ignored: T.nilable(::Integer), generate_number_of_operations_used: T.nilable(::Integer), generate_published: T.nilable(T::Boolean), generate_target_name: T.nilable(::String), generate_target_version: T.nilable(::String), gh_action_organization: T.nilable(::String), gh_action_ref: T.nilable(::String), gh_action_repository: T.nilable(::String), gh_action_run_link: T.nilable(::String), gh_action_version: T.nilable(::String), git_relative_cwd: T.nilable(::String), git_remote_default_owner: T.nilable(::String), git_remote_default_repo: T.nilable(::String), git_user_email: T.nilable(::String), git_user_name: T.nilable(::String), hostname: T.nilable(::String), repo_label: T.nilable(::String), source_blob_digest: T.nilable(::String), source_namespace_name: T.nilable(::String), source_revision_digest: T.nilable(::String), success: T.nilable(T::Boolean), workflow_post_raw: T.nilable(::String), workflow_pre_raw: T.nilable(::String)).void }
89
+ def initialize(generate_gen_lock_id: nil, generate_target: nil, id: nil, last_event_created_at: nil, last_event_id: nil, last_event_interaction_type: nil, commit_head: nil, continuous_integration_environment: nil, error: nil, generate_config_post_version: nil, generate_eligible_features: nil, generate_gen_lock_pre_features: nil, generate_gen_lock_pre_version: nil, generate_number_of_operations_ignored: nil, generate_number_of_operations_used: nil, generate_published: nil, generate_target_name: nil, generate_target_version: nil, gh_action_organization: nil, gh_action_ref: nil, gh_action_repository: nil, gh_action_run_link: nil, gh_action_version: nil, git_relative_cwd: nil, git_remote_default_owner: nil, git_remote_default_repo: nil, git_user_email: nil, git_user_name: nil, hostname: nil, repo_label: nil, source_blob_digest: nil, source_namespace_name: nil, source_revision_digest: nil, success: nil, workflow_post_raw: nil, workflow_pre_raw: nil)
86
90
  @generate_gen_lock_id = generate_gen_lock_id
87
91
  @generate_target = generate_target
88
92
  @id = id
@@ -117,6 +121,8 @@ module SpeakeasyClientSDK
117
121
  @source_namespace_name = source_namespace_name
118
122
  @source_revision_digest = source_revision_digest
119
123
  @success = success
124
+ @workflow_post_raw = workflow_post_raw
125
+ @workflow_pre_raw = workflow_pre_raw
120
126
  end
121
127
  end
122
128
  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 Shared
9
+
10
+ # A document referenced by a workflow
11
+ class WorkflowDocument < ::SpeakeasyClientSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :location, ::String, { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('location') } }
16
+
17
+ field :auth, T.nilable(::SpeakeasyClientSDK::Shared::Auth), { 'format_json': { 'letter_case': ::SpeakeasyClientSDK::Utils.field_name('auth') } }
18
+
19
+
20
+ sig { params(location: ::String, auth: T.nilable(::SpeakeasyClientSDK::Shared::Auth)).void }
21
+ def initialize(location: nil, auth: nil)
22
+ @location = location
23
+ @auth = auth
24
+ end
25
+ end
26
+ end
27
+ end
@@ -44,9 +44,14 @@ module SpeakeasyClientSDK
44
44
  autoload :RequestMetadata, 'speakeasy_client_sdk/models/shared/requestmetadata.rb'
45
45
  autoload :Filters, 'speakeasy_client_sdk/models/shared/filters.rb'
46
46
  autoload :Filter, 'speakeasy_client_sdk/models/shared/filter.rb'
47
+ autoload :GithubConfigureCodeSamplesResponse, 'speakeasy_client_sdk/models/shared/githubconfigurecodesamplesresponse.rb'
48
+ autoload :Auth, 'speakeasy_client_sdk/models/shared/auth.rb'
49
+ autoload :WorkflowDocument, 'speakeasy_client_sdk/models/shared/workflowdocument.rb'
50
+ autoload :GithubConfigureCodeSamplesRequest, 'speakeasy_client_sdk/models/shared/githubconfigurecodesamplesrequest.rb'
51
+ autoload :GithubConfigureMintlifyRepoRequest, 'speakeasy_client_sdk/models/shared/githubconfiguremintlifyreporequest.rb'
52
+ autoload :GithubConfigureTargetRequest, 'speakeasy_client_sdk/models/shared/githubconfiguretargetrequest.rb'
47
53
  autoload :GithubPublishingPRResponse, 'speakeasy_client_sdk/models/shared/githubpublishingprresponse.rb'
48
54
  autoload :GithubMissingPublishingSecretsResponse, 'speakeasy_client_sdk/models/shared/githubmissingpublishingsecretsresponse.rb'
49
- autoload :GithubConfigureTargetRequest, 'speakeasy_client_sdk/models/shared/githubconfiguretargetrequest.rb'
50
55
  autoload :GithubStorePublishingSecretsRequest, 'speakeasy_client_sdk/models/shared/githubstorepublishingsecretsrequest.rb'
51
56
  autoload :GithubTriggerActionRequest, 'speakeasy_client_sdk/models/shared/githubtriggeractionrequest.rb'
52
57
  autoload :OrganizationUsageResponse, 'speakeasy_client_sdk/models/shared/organizationusageresponse.rb'
@@ -41,9 +41,9 @@ module SpeakeasyClientSDK
41
41
  @globals = globals.nil? ? {} : globals
42
42
  @language = 'ruby'
43
43
  @openapi_doc_version = '0.4.0 .'
44
- @sdk_version = '4.2.8'
45
- @gen_version = '2.347.8'
46
- @user_agent = 'speakeasy-sdk/ruby 4.2.8 2.347.8 0.4.0 . speakeasy_client_sdk_ruby'
44
+ @sdk_version = '4.2.9'
45
+ @gen_version = '2.349.6'
46
+ @user_agent = 'speakeasy-sdk/ruby 4.2.9 2.349.6 0.4.0 . speakeasy_client_sdk_ruby'
47
47
  end
48
48
 
49
49
  sig { returns([String, T::Hash[Symbol, String]]) }
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: 4.2.8
4
+ version: 4.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Speakeasy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-21 00:00:00.000000000 Z
11
+ date: 2024-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -151,6 +151,11 @@ files:
151
151
  - lib/speakeasy_client_sdk/github.rb
152
152
  - lib/speakeasy_client_sdk/metadata.rb
153
153
  - lib/speakeasy_client_sdk/models/operations.rb
154
+ - lib/speakeasy_client_sdk/models/operations/checkaccess_request.rb
155
+ - lib/speakeasy_client_sdk/models/operations/checkaccess_response.rb
156
+ - lib/speakeasy_client_sdk/models/operations/configurecodesamples_response.rb
157
+ - lib/speakeasy_client_sdk/models/operations/configuremintlifyrepo_response.rb
158
+ - lib/speakeasy_client_sdk/models/operations/configuretarget_response.rb
154
159
  - lib/speakeasy_client_sdk/models/operations/createfreetrial_response.rb
155
160
  - lib/speakeasy_client_sdk/models/operations/deleteapi_request.rb
156
161
  - lib/speakeasy_client_sdk/models/operations/deleteapi_response.rb
@@ -231,13 +236,9 @@ files:
231
236
  - lib/speakeasy_client_sdk/models/operations/getworkspaceeventsbytarget_response.rb
232
237
  - lib/speakeasy_client_sdk/models/operations/getworkspacetargets_request.rb
233
238
  - lib/speakeasy_client_sdk/models/operations/getworkspacetargets_response.rb
234
- - lib/speakeasy_client_sdk/models/operations/githubcheckaccess_request.rb
235
- - lib/speakeasy_client_sdk/models/operations/githubcheckaccess_response.rb
236
239
  - lib/speakeasy_client_sdk/models/operations/githubcheckpublishingsecrets_request.rb
237
240
  - lib/speakeasy_client_sdk/models/operations/githubcheckpublishingsecrets_response.rb
238
- - lib/speakeasy_client_sdk/models/operations/githubconfiguretarget_response.rb
239
241
  - lib/speakeasy_client_sdk/models/operations/githubstorepublishingsecrets_response.rb
240
- - lib/speakeasy_client_sdk/models/operations/githubtriggeraction_response.rb
241
242
  - lib/speakeasy_client_sdk/models/operations/insertversionmetadata_request.rb
242
243
  - lib/speakeasy_client_sdk/models/operations/insertversionmetadata_response.rb
243
244
  - lib/speakeasy_client_sdk/models/operations/op.rb
@@ -263,6 +264,7 @@ files:
263
264
  - lib/speakeasy_client_sdk/models/operations/suggestoperationids_requestbody.rb
264
265
  - lib/speakeasy_client_sdk/models/operations/suggestoperationids_response.rb
265
266
  - lib/speakeasy_client_sdk/models/operations/suggestoperationids_suggestion.rb
267
+ - lib/speakeasy_client_sdk/models/operations/triggeraction_response.rb
266
268
  - lib/speakeasy_client_sdk/models/operations/uploadreport_requestbody.rb
267
269
  - lib/speakeasy_client_sdk/models/operations/uploadreport_response.rb
268
270
  - lib/speakeasy_client_sdk/models/operations/uploadreport_uploadedreport.rb
@@ -284,6 +286,7 @@ files:
284
286
  - lib/speakeasy_client_sdk/models/shared/apiendpoint.rb
285
287
  - lib/speakeasy_client_sdk/models/shared/apiendpoint_input.rb
286
288
  - lib/speakeasy_client_sdk/models/shared/apikeydetails.rb
289
+ - lib/speakeasy_client_sdk/models/shared/auth.rb
287
290
  - lib/speakeasy_client_sdk/models/shared/boundedrequest.rb
288
291
  - lib/speakeasy_client_sdk/models/shared/claims.rb
289
292
  - lib/speakeasy_client_sdk/models/shared/clievent.rb
@@ -298,6 +301,9 @@ files:
298
301
  - lib/speakeasy_client_sdk/models/shared/getnamespacesresponse.rb
299
302
  - lib/speakeasy_client_sdk/models/shared/getrevisionsresponse.rb
300
303
  - lib/speakeasy_client_sdk/models/shared/gettagsresponse.rb
304
+ - lib/speakeasy_client_sdk/models/shared/githubconfigurecodesamplesrequest.rb
305
+ - lib/speakeasy_client_sdk/models/shared/githubconfigurecodesamplesresponse.rb
306
+ - lib/speakeasy_client_sdk/models/shared/githubconfiguremintlifyreporequest.rb
301
307
  - lib/speakeasy_client_sdk/models/shared/githubconfiguretargetrequest.rb
302
308
  - lib/speakeasy_client_sdk/models/shared/githubmissingpublishingsecretsresponse.rb
303
309
  - lib/speakeasy_client_sdk/models/shared/githubpublishingprresponse.rb
@@ -329,6 +335,7 @@ files:
329
335
  - lib/speakeasy_client_sdk/models/shared/valuechange.rb
330
336
  - lib/speakeasy_client_sdk/models/shared/versionmetadata.rb
331
337
  - lib/speakeasy_client_sdk/models/shared/versionmetadata_input.rb
338
+ - lib/speakeasy_client_sdk/models/shared/workflowdocument.rb
332
339
  - lib/speakeasy_client_sdk/models/shared/workspaces.rb
333
340
  - lib/speakeasy_client_sdk/organizations.rb
334
341
  - lib/speakeasy_client_sdk/reports.rb