noresponse 8.1.3 → 8.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/no_response/accounts.rb +2069 -1
- data/lib/no_response/assessments.rb +893 -3
- data/lib/no_response/models/operations/associatecredential_request.rb +33 -0
- data/lib/no_response/models/operations/associatecredential_request.rbi +20 -0
- data/lib/no_response/models/operations/associatecredential_response.rb +34 -0
- data/lib/no_response/models/operations/associatecredential_response.rbi +20 -0
- data/lib/no_response/models/operations/bindprovisionalaccount_request.rb +37 -0
- data/lib/no_response/models/operations/bindprovisionalaccount_request.rbi +20 -0
- data/lib/no_response/models/operations/bindprovisionalaccount_response.rb +32 -0
- data/lib/no_response/models/operations/bindprovisionalaccount_response.rbi +20 -0
- data/lib/no_response/models/operations/exportaccount_request.rb +37 -0
- data/lib/no_response/models/operations/exportaccount_request.rbi +20 -0
- data/lib/no_response/models/operations/exportaccount_response.rb +32 -0
- data/lib/no_response/models/operations/exportaccount_response.rbi +20 -0
- data/lib/no_response/models/operations/getaccountdecision_request.rb +37 -0
- data/lib/no_response/models/operations/getaccountdecision_request.rbi +20 -0
- data/lib/no_response/models/operations/getaccountdecision_response.rb +34 -0
- data/lib/no_response/models/operations/getaccountdecision_response.rbi +20 -0
- data/lib/no_response/models/operations/getassessmentversion_request.rb +48 -0
- data/lib/no_response/models/operations/getassessmentversion_request.rbi +26 -0
- data/lib/no_response/models/operations/getassessmentversion_response.rb +32 -0
- data/lib/no_response/models/operations/getassessmentversion_response.rbi +20 -0
- data/lib/no_response/models/operations/listaccountcredentials_request.rb +45 -0
- data/lib/no_response/models/operations/listaccountcredentials_request.rbi +26 -0
- data/lib/no_response/models/operations/listaccountcredentials_response.rb +32 -0
- data/lib/no_response/models/operations/listaccountcredentials_response.rbi +20 -0
- data/lib/no_response/models/operations/listaccountoutcomes_request.rb +45 -0
- data/lib/no_response/models/operations/listaccountoutcomes_request.rbi +26 -0
- data/lib/no_response/models/operations/listaccountoutcomes_response.rb +32 -0
- data/lib/no_response/models/operations/listaccountoutcomes_response.rbi +20 -0
- data/lib/no_response/models/operations/listrequestdiagnostics_request.rb +84 -0
- data/lib/no_response/models/operations/listrequestdiagnostics_request.rbi +50 -0
- data/lib/no_response/models/operations/listrequestdiagnostics_response.rb +34 -0
- data/lib/no_response/models/operations/listrequestdiagnostics_response.rbi +20 -0
- data/lib/no_response/models/operations/recordaccountoutcome_request.rb +48 -0
- data/lib/no_response/models/operations/recordaccountoutcome_request.rbi +26 -0
- data/lib/no_response/models/operations/recordaccountoutcome_response.rb +32 -0
- data/lib/no_response/models/operations/recordaccountoutcome_response.rbi +20 -0
- data/lib/no_response/models/operations/retireaccountcredential_request.rb +37 -0
- data/lib/no_response/models/operations/retireaccountcredential_request.rbi +20 -0
- data/lib/no_response/models/operations/retireaccountcredential_response.rb +34 -0
- data/lib/no_response/models/operations/retireaccountcredential_response.rbi +20 -0
- data/lib/no_response/models/operations/searchassessments_response.rb +32 -0
- data/lib/no_response/models/operations/searchassessments_response.rbi +20 -0
- data/lib/no_response/models/operations.rb +21 -0
- data/lib/no_response/models/shared/accountbinding.rb +83 -0
- data/lib/no_response/models/shared/accountbinding.rbi +44 -0
- data/lib/no_response/models/shared/accountbindingactor.rb +40 -0
- data/lib/no_response/models/shared/accountbindingactor.rbi +20 -0
- data/lib/no_response/models/shared/accountbindingrequest.rb +33 -0
- data/lib/no_response/models/shared/accountbindingrequest.rbi +14 -0
- data/lib/no_response/models/shared/accountdecisionsnapshot.rb +94 -0
- data/lib/no_response/models/shared/accountdecisionsnapshot.rbi +44 -0
- data/lib/no_response/models/shared/accountexport.rb +178 -0
- data/lib/no_response/models/shared/accountexport.rbi +92 -0
- data/lib/no_response/models/shared/accountoutcome.rb +152 -0
- data/lib/no_response/models/shared/accountoutcome.rbi +80 -0
- data/lib/no_response/models/shared/accountoutcomeactor.rb +40 -0
- data/lib/no_response/models/shared/accountoutcomeactor.rbi +20 -0
- data/lib/no_response/models/shared/accountoutcomepage.rb +65 -0
- data/lib/no_response/models/shared/accountoutcomepage.rbi +32 -0
- data/lib/no_response/models/shared/accountoutcomerequest.rb +71 -0
- data/lib/no_response/models/shared/accountoutcomerequest.rbi +32 -0
- data/lib/no_response/models/shared/assessmentdetail.rb +10 -0
- data/lib/no_response/models/shared/assessmentdetail.rbi +6 -0
- data/lib/no_response/models/shared/assessmentrevision.rb +101 -0
- data/lib/no_response/models/shared/assessmentrevision.rbi +44 -0
- data/lib/no_response/models/shared/assessmentsearchpage.rb +68 -0
- data/lib/no_response/models/shared/assessmentsearchpage.rbi +32 -0
- data/lib/no_response/models/shared/assessmentsearchrequest.rb +146 -0
- data/lib/no_response/models/shared/assessmentsearchrequest.rbi +68 -0
- data/lib/no_response/models/shared/conflicterrorcode.rb +3 -0
- data/lib/no_response/models/shared/credentialassociation.rb +78 -0
- data/lib/no_response/models/shared/credentialassociation.rbi +44 -0
- data/lib/no_response/models/shared/credentialassociationactor.rb +40 -0
- data/lib/no_response/models/shared/credentialassociationactor.rbi +20 -0
- data/lib/no_response/models/shared/credentialassociationretiredby.rb +40 -0
- data/lib/no_response/models/shared/credentialassociationretiredby.rbi +20 -0
- data/lib/no_response/models/shared/credentialpage.rb +56 -0
- data/lib/no_response/models/shared/credentialpage.rbi +26 -0
- data/lib/no_response/models/shared/credentialrequest.rb +32 -0
- data/lib/no_response/models/shared/credentialrequest.rbi +14 -0
- data/lib/no_response/models/shared/decision.rb +18 -0
- data/lib/no_response/models/shared/decision.rbi +9 -0
- data/lib/no_response/models/shared/decisionreceipt.rb +112 -0
- data/lib/no_response/models/shared/decisionreceipt.rbi +50 -0
- data/lib/no_response/models/shared/exclusion.rb +23 -0
- data/lib/no_response/models/shared/exclusion.rbi +9 -0
- data/lib/no_response/models/shared/exportassessmentoutcome.rb +85 -0
- data/lib/no_response/models/shared/exportassessmentoutcome.rbi +44 -0
- data/lib/no_response/models/shared/reasoncode.rb +1 -0
- data/lib/no_response/models/shared/requestdiagnostic.rb +145 -0
- data/lib/no_response/models/shared/requestdiagnostic.rbi +80 -0
- data/lib/no_response/models/shared/requestdiagnosticpage.rb +40 -0
- data/lib/no_response/models/shared/requestdiagnosticpage.rbi +20 -0
- data/lib/no_response/models/shared/sentidentifiers.rb +74 -0
- data/lib/no_response/models/shared/sentidentifiers.rbi +38 -0
- data/lib/no_response/models/shared.rb +24 -0
- data/lib/no_response/noresponseclient.rb +12 -1
- data/lib/no_response/requests.rb +320 -0
- data/lib/no_response/sdkconfiguration.rb +2 -2
- data/lib/noresponse.rb +1 -0
- metadata +92 -1
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
require "faraday"
|
|
5
|
+
require "faraday/multipart"
|
|
6
|
+
require "faraday/retry"
|
|
7
|
+
require "sorbet-runtime"
|
|
8
|
+
|
|
9
|
+
require_relative "sdk_hooks/hooks"
|
|
10
|
+
require_relative "utils/retries"
|
|
11
|
+
|
|
12
|
+
module NoResponse
|
|
13
|
+
extend T::Sig
|
|
14
|
+
|
|
15
|
+
class Requests
|
|
16
|
+
extend T::Sig
|
|
17
|
+
|
|
18
|
+
sig { params(sdk_config: SDKConfiguration).void }
|
|
19
|
+
def initialize(sdk_config)
|
|
20
|
+
@sdk_configuration = sdk_config
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
sig { params(base_url: String, url_variables: T.nilable(T::Hash[Symbol, T.any(String, T::Enum)])).returns(String) }
|
|
24
|
+
def get_url(base_url:, url_variables: nil)
|
|
25
|
+
sd_base_url, sd_options = @sdk_configuration.get_server_details
|
|
26
|
+
|
|
27
|
+
if base_url.nil?
|
|
28
|
+
base_url = sd_base_url
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
if url_variables.nil?
|
|
32
|
+
url_variables = sd_options
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
return Utils.template_url(base_url, url_variables)
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
sig {
|
|
39
|
+
params(
|
|
40
|
+
request: Models::Operations::ListRequestDiagnosticsRequest,
|
|
41
|
+
retries: T.nilable(Utils::RetryConfig),
|
|
42
|
+
timeout_ms: T.nilable(Integer),
|
|
43
|
+
http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])
|
|
44
|
+
)
|
|
45
|
+
.returns(Models::Operations::ListRequestDiagnosticsResponse)
|
|
46
|
+
}
|
|
47
|
+
def list(request:, retries: nil, timeout_ms: nil, http_headers: nil)
|
|
48
|
+
# list - Search request diagnostics
|
|
49
|
+
# Search authenticated request attempts by time, route, status or request correlation id. The interval is at most seven days. Each attempt has a unique id and may include the exact served decision. Records are bounded best effort and exclude request bodies, secrets and source payloads. A repeated correlation id does not overwrite another attempt.
|
|
50
|
+
url, params = @sdk_configuration.get_server_details
|
|
51
|
+
base_url = Utils.template_url(url, params)
|
|
52
|
+
url = "#{base_url}/v1/requests"
|
|
53
|
+
headers = {}
|
|
54
|
+
headers = T.cast(headers, T::Hash[String, String])
|
|
55
|
+
query_params = Utils.get_query_params(Models::Operations::ListRequestDiagnosticsRequest, request, nil)
|
|
56
|
+
headers["Accept"] = "application/json"
|
|
57
|
+
headers["user-agent"] = @sdk_configuration.user_agent
|
|
58
|
+
retries ||= @sdk_configuration.retry_config
|
|
59
|
+
retries ||= Utils::RetryConfig.new(
|
|
60
|
+
backoff: Utils::BackoffStrategy.new(
|
|
61
|
+
exponent: 2.0,
|
|
62
|
+
initial_interval: 500,
|
|
63
|
+
max_elapsed_time: 30_000,
|
|
64
|
+
max_interval: 8000
|
|
65
|
+
),
|
|
66
|
+
retry_connection_errors: true,
|
|
67
|
+
strategy: "backoff"
|
|
68
|
+
)
|
|
69
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
70
|
+
retry_options[:retry_statuses] = [408, 429, 500, 501, 502, 503, 504, 505]
|
|
71
|
+
|
|
72
|
+
security = @sdk_configuration.security_source&.call
|
|
73
|
+
|
|
74
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
75
|
+
timeout ||= @sdk_configuration.timeout
|
|
76
|
+
|
|
77
|
+
connection = @sdk_configuration.client.dup
|
|
78
|
+
connection.use(Utils::RetryMiddleware, retry_options)
|
|
79
|
+
|
|
80
|
+
hook_ctx = SDKHooks::HookContext.new(
|
|
81
|
+
config: @sdk_configuration,
|
|
82
|
+
base_url: base_url,
|
|
83
|
+
oauth2_scopes: nil,
|
|
84
|
+
operation_id: "listRequestDiagnostics",
|
|
85
|
+
security_source: @sdk_configuration.security_source
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
error = T.let(nil, T.nilable(StandardError))
|
|
89
|
+
http_response = T.let(nil, T.nilable(Faraday::Response))
|
|
90
|
+
|
|
91
|
+
begin
|
|
92
|
+
http_response = T.must(connection).get(url) do |req|
|
|
93
|
+
req.headers.merge!(headers)
|
|
94
|
+
req.options.timeout = timeout unless timeout.nil?
|
|
95
|
+
req.params = query_params
|
|
96
|
+
Utils.configure_request_security(req, security)
|
|
97
|
+
http_headers&.each do |key, value|
|
|
98
|
+
req.headers[key.to_s] = value
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
@sdk_configuration.hooks.before_request(
|
|
102
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
103
|
+
hook_ctx: hook_ctx
|
|
104
|
+
),
|
|
105
|
+
request: req
|
|
106
|
+
)
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
rescue StandardError => e
|
|
110
|
+
error = e
|
|
111
|
+
ensure
|
|
112
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
113
|
+
http_response = @sdk_configuration.hooks.after_error(
|
|
114
|
+
error: error,
|
|
115
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
116
|
+
hook_ctx: hook_ctx
|
|
117
|
+
),
|
|
118
|
+
response: http_response
|
|
119
|
+
)
|
|
120
|
+
else
|
|
121
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
122
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
123
|
+
hook_ctx: hook_ctx
|
|
124
|
+
),
|
|
125
|
+
response: http_response
|
|
126
|
+
)
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if http_response.nil?
|
|
130
|
+
raise error if !error.nil?
|
|
131
|
+
raise "no response"
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
content_type = http_response.headers.fetch("Content-Type", "application/octet-stream")
|
|
136
|
+
if Utils.match_status_code(http_response.status, ["200"])
|
|
137
|
+
if Utils.match_content_type(content_type, "application/json")
|
|
138
|
+
@sdk_configuration.hooks.after_success(
|
|
139
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
140
|
+
hook_ctx: hook_ctx
|
|
141
|
+
),
|
|
142
|
+
response: http_response
|
|
143
|
+
)
|
|
144
|
+
response_data = http_response.env.response_body
|
|
145
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::RequestDiagnosticPage)
|
|
146
|
+
result = obj
|
|
147
|
+
response = Models::Operations::ListRequestDiagnosticsResponse.new(
|
|
148
|
+
result: result,
|
|
149
|
+
headers: http_response.headers
|
|
150
|
+
)
|
|
151
|
+
|
|
152
|
+
return response
|
|
153
|
+
else
|
|
154
|
+
raise(
|
|
155
|
+
::NoResponse::Models::Errors::APIStatusError.new(
|
|
156
|
+
status_code: http_response.status,
|
|
157
|
+
body: http_response.env.response_body,
|
|
158
|
+
raw_response: http_response
|
|
159
|
+
),
|
|
160
|
+
"Unknown content type received"
|
|
161
|
+
)
|
|
162
|
+
end
|
|
163
|
+
elsif Utils.match_status_code(http_response.status, ["400"])
|
|
164
|
+
if Utils.match_content_type(content_type, "application/problem+json")
|
|
165
|
+
@sdk_configuration.hooks.after_success(
|
|
166
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
167
|
+
hook_ctx: hook_ctx
|
|
168
|
+
),
|
|
169
|
+
response: http_response
|
|
170
|
+
)
|
|
171
|
+
response_data = http_response.env.response_body
|
|
172
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::BadRequestError)
|
|
173
|
+
raise obj
|
|
174
|
+
else
|
|
175
|
+
raise(
|
|
176
|
+
::NoResponse::Models::Errors::APIStatusError.new(
|
|
177
|
+
status_code: http_response.status,
|
|
178
|
+
body: http_response.env.response_body,
|
|
179
|
+
raw_response: http_response
|
|
180
|
+
),
|
|
181
|
+
"Unknown content type received"
|
|
182
|
+
)
|
|
183
|
+
end
|
|
184
|
+
elsif Utils.match_status_code(http_response.status, ["401"])
|
|
185
|
+
if Utils.match_content_type(content_type, "application/problem+json")
|
|
186
|
+
@sdk_configuration.hooks.after_success(
|
|
187
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
188
|
+
hook_ctx: hook_ctx
|
|
189
|
+
),
|
|
190
|
+
response: http_response
|
|
191
|
+
)
|
|
192
|
+
response_data = http_response.env.response_body
|
|
193
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::AuthenticationError)
|
|
194
|
+
raise obj
|
|
195
|
+
else
|
|
196
|
+
raise(
|
|
197
|
+
::NoResponse::Models::Errors::APIStatusError.new(
|
|
198
|
+
status_code: http_response.status,
|
|
199
|
+
body: http_response.env.response_body,
|
|
200
|
+
raw_response: http_response
|
|
201
|
+
),
|
|
202
|
+
"Unknown content type received"
|
|
203
|
+
)
|
|
204
|
+
end
|
|
205
|
+
elsif Utils.match_status_code(http_response.status, ["403"])
|
|
206
|
+
if Utils.match_content_type(content_type, "application/problem+json")
|
|
207
|
+
@sdk_configuration.hooks.after_success(
|
|
208
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
209
|
+
hook_ctx: hook_ctx
|
|
210
|
+
),
|
|
211
|
+
response: http_response
|
|
212
|
+
)
|
|
213
|
+
response_data = http_response.env.response_body
|
|
214
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::PermissionDeniedError)
|
|
215
|
+
raise obj
|
|
216
|
+
else
|
|
217
|
+
raise(
|
|
218
|
+
::NoResponse::Models::Errors::APIStatusError.new(
|
|
219
|
+
status_code: http_response.status,
|
|
220
|
+
body: http_response.env.response_body,
|
|
221
|
+
raw_response: http_response
|
|
222
|
+
),
|
|
223
|
+
"Unknown content type received"
|
|
224
|
+
)
|
|
225
|
+
end
|
|
226
|
+
elsif Utils.match_status_code(http_response.status, ["404"])
|
|
227
|
+
if Utils.match_content_type(content_type, "application/problem+json")
|
|
228
|
+
@sdk_configuration.hooks.after_success(
|
|
229
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
230
|
+
hook_ctx: hook_ctx
|
|
231
|
+
),
|
|
232
|
+
response: http_response
|
|
233
|
+
)
|
|
234
|
+
response_data = http_response.env.response_body
|
|
235
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::NotFoundError)
|
|
236
|
+
raise obj
|
|
237
|
+
else
|
|
238
|
+
raise(
|
|
239
|
+
::NoResponse::Models::Errors::APIStatusError.new(
|
|
240
|
+
status_code: http_response.status,
|
|
241
|
+
body: http_response.env.response_body,
|
|
242
|
+
raw_response: http_response
|
|
243
|
+
),
|
|
244
|
+
"Unknown content type received"
|
|
245
|
+
)
|
|
246
|
+
end
|
|
247
|
+
elsif Utils.match_status_code(http_response.status, ["409"])
|
|
248
|
+
if Utils.match_content_type(content_type, "application/problem+json")
|
|
249
|
+
@sdk_configuration.hooks.after_success(
|
|
250
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
251
|
+
hook_ctx: hook_ctx
|
|
252
|
+
),
|
|
253
|
+
response: http_response
|
|
254
|
+
)
|
|
255
|
+
response_data = http_response.env.response_body
|
|
256
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ConflictError)
|
|
257
|
+
raise obj
|
|
258
|
+
else
|
|
259
|
+
raise(
|
|
260
|
+
::NoResponse::Models::Errors::APIStatusError.new(
|
|
261
|
+
status_code: http_response.status,
|
|
262
|
+
body: http_response.env.response_body,
|
|
263
|
+
raw_response: http_response
|
|
264
|
+
),
|
|
265
|
+
"Unknown content type received"
|
|
266
|
+
)
|
|
267
|
+
end
|
|
268
|
+
elsif Utils.match_status_code(http_response.status, ["429"])
|
|
269
|
+
if Utils.match_content_type(content_type, "application/problem+json")
|
|
270
|
+
@sdk_configuration.hooks.after_success(
|
|
271
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
272
|
+
hook_ctx: hook_ctx
|
|
273
|
+
),
|
|
274
|
+
response: http_response
|
|
275
|
+
)
|
|
276
|
+
response_data = http_response.env.response_body
|
|
277
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::RateLimitError)
|
|
278
|
+
raise obj
|
|
279
|
+
else
|
|
280
|
+
raise(
|
|
281
|
+
::NoResponse::Models::Errors::APIStatusError.new(
|
|
282
|
+
status_code: http_response.status,
|
|
283
|
+
body: http_response.env.response_body,
|
|
284
|
+
raw_response: http_response
|
|
285
|
+
),
|
|
286
|
+
"Unknown content type received"
|
|
287
|
+
)
|
|
288
|
+
end
|
|
289
|
+
elsif Utils.match_status_code(http_response.status, ["4XX"])
|
|
290
|
+
raise(
|
|
291
|
+
::NoResponse::Models::Errors::APIStatusError.new(
|
|
292
|
+
status_code: http_response.status,
|
|
293
|
+
body: http_response.env.response_body,
|
|
294
|
+
raw_response: http_response
|
|
295
|
+
),
|
|
296
|
+
"API error occurred"
|
|
297
|
+
)
|
|
298
|
+
elsif Utils.match_status_code(http_response.status, ["5XX"])
|
|
299
|
+
raise(
|
|
300
|
+
::NoResponse::Models::Errors::APIStatusError.new(
|
|
301
|
+
status_code: http_response.status,
|
|
302
|
+
body: http_response.env.response_body,
|
|
303
|
+
raw_response: http_response
|
|
304
|
+
),
|
|
305
|
+
"API error occurred"
|
|
306
|
+
)
|
|
307
|
+
else
|
|
308
|
+
raise(
|
|
309
|
+
::NoResponse::Models::Errors::APIStatusError.new(
|
|
310
|
+
status_code: http_response.status,
|
|
311
|
+
body: http_response.env.response_body,
|
|
312
|
+
raw_response: http_response
|
|
313
|
+
),
|
|
314
|
+
"Unknown status code received"
|
|
315
|
+
)
|
|
316
|
+
|
|
317
|
+
end
|
|
318
|
+
end
|
|
319
|
+
end
|
|
320
|
+
end
|
|
@@ -95,9 +95,9 @@ module NoResponse
|
|
|
95
95
|
|
|
96
96
|
@language = "ruby"
|
|
97
97
|
@openapi_doc_version = "1"
|
|
98
|
-
@sdk_version = "8.1
|
|
98
|
+
@sdk_version = "8.2.1"
|
|
99
99
|
@gen_version = "internal"
|
|
100
|
-
@user_agent = "noresponse-sdk/ruby 8.1
|
|
100
|
+
@user_agent = "noresponse-sdk/ruby 8.2.1 internal 1 noresponse"
|
|
101
101
|
end
|
|
102
102
|
|
|
103
103
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
data/lib/noresponse.rb
CHANGED
|
@@ -10,6 +10,7 @@ module NoResponse
|
|
|
10
10
|
autoload :Integrations, "no_response/integrations"
|
|
11
11
|
autoload :WebhookEndpoints, "no_response/webhookendpoints"
|
|
12
12
|
autoload :Settings, "no_response/settings"
|
|
13
|
+
autoload :Requests, "no_response/requests"
|
|
13
14
|
autoload :Lists, "no_response/lists"
|
|
14
15
|
|
|
15
16
|
module Models
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: noresponse
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 8.1
|
|
4
|
+
version: 8.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- NoResponse
|
|
@@ -278,6 +278,14 @@ files:
|
|
|
278
278
|
- lib/no_response/models/errors/ratelimiterror.rb
|
|
279
279
|
- lib/no_response/models/errors/ratelimiterror.rbi
|
|
280
280
|
- lib/no_response/models/operations.rb
|
|
281
|
+
- lib/no_response/models/operations/associatecredential_request.rb
|
|
282
|
+
- lib/no_response/models/operations/associatecredential_request.rbi
|
|
283
|
+
- lib/no_response/models/operations/associatecredential_response.rb
|
|
284
|
+
- lib/no_response/models/operations/associatecredential_response.rbi
|
|
285
|
+
- lib/no_response/models/operations/bindprovisionalaccount_request.rb
|
|
286
|
+
- lib/no_response/models/operations/bindprovisionalaccount_request.rbi
|
|
287
|
+
- lib/no_response/models/operations/bindprovisionalaccount_response.rb
|
|
288
|
+
- lib/no_response/models/operations/bindprovisionalaccount_response.rbi
|
|
281
289
|
- lib/no_response/models/operations/createassessment_request.rb
|
|
282
290
|
- lib/no_response/models/operations/createassessment_request.rbi
|
|
283
291
|
- lib/no_response/models/operations/createassessment_response.rb
|
|
@@ -314,14 +322,26 @@ files:
|
|
|
314
322
|
- lib/no_response/models/operations/deletewebhookendpoint_request.rbi
|
|
315
323
|
- lib/no_response/models/operations/deletewebhookendpoint_response.rb
|
|
316
324
|
- lib/no_response/models/operations/deletewebhookendpoint_response.rbi
|
|
325
|
+
- lib/no_response/models/operations/exportaccount_request.rb
|
|
326
|
+
- lib/no_response/models/operations/exportaccount_request.rbi
|
|
327
|
+
- lib/no_response/models/operations/exportaccount_response.rb
|
|
328
|
+
- lib/no_response/models/operations/exportaccount_response.rbi
|
|
317
329
|
- lib/no_response/models/operations/getaccount_request.rb
|
|
318
330
|
- lib/no_response/models/operations/getaccount_request.rbi
|
|
319
331
|
- lib/no_response/models/operations/getaccount_response.rb
|
|
320
332
|
- lib/no_response/models/operations/getaccount_response.rbi
|
|
333
|
+
- lib/no_response/models/operations/getaccountdecision_request.rb
|
|
334
|
+
- lib/no_response/models/operations/getaccountdecision_request.rbi
|
|
335
|
+
- lib/no_response/models/operations/getaccountdecision_response.rb
|
|
336
|
+
- lib/no_response/models/operations/getaccountdecision_response.rbi
|
|
321
337
|
- lib/no_response/models/operations/getassessment_request.rb
|
|
322
338
|
- lib/no_response/models/operations/getassessment_request.rbi
|
|
323
339
|
- lib/no_response/models/operations/getassessment_response.rb
|
|
324
340
|
- lib/no_response/models/operations/getassessment_response.rbi
|
|
341
|
+
- lib/no_response/models/operations/getassessmentversion_request.rb
|
|
342
|
+
- lib/no_response/models/operations/getassessmentversion_request.rbi
|
|
343
|
+
- lib/no_response/models/operations/getassessmentversion_response.rb
|
|
344
|
+
- lib/no_response/models/operations/getassessmentversion_response.rbi
|
|
325
345
|
- lib/no_response/models/operations/getsettings_request.rb
|
|
326
346
|
- lib/no_response/models/operations/getsettings_request.rbi
|
|
327
347
|
- lib/no_response/models/operations/getsettings_response.rb
|
|
@@ -330,6 +350,14 @@ files:
|
|
|
330
350
|
- lib/no_response/models/operations/listaccountassessments_request.rbi
|
|
331
351
|
- lib/no_response/models/operations/listaccountassessments_response.rb
|
|
332
352
|
- lib/no_response/models/operations/listaccountassessments_response.rbi
|
|
353
|
+
- lib/no_response/models/operations/listaccountcredentials_request.rb
|
|
354
|
+
- lib/no_response/models/operations/listaccountcredentials_request.rbi
|
|
355
|
+
- lib/no_response/models/operations/listaccountcredentials_response.rb
|
|
356
|
+
- lib/no_response/models/operations/listaccountcredentials_response.rbi
|
|
357
|
+
- lib/no_response/models/operations/listaccountoutcomes_request.rb
|
|
358
|
+
- lib/no_response/models/operations/listaccountoutcomes_request.rbi
|
|
359
|
+
- lib/no_response/models/operations/listaccountoutcomes_response.rb
|
|
360
|
+
- lib/no_response/models/operations/listaccountoutcomes_response.rbi
|
|
333
361
|
- lib/no_response/models/operations/listaccounts_request.rb
|
|
334
362
|
- lib/no_response/models/operations/listaccounts_request.rbi
|
|
335
363
|
- lib/no_response/models/operations/listaccounts_response.rb
|
|
@@ -344,6 +372,10 @@ files:
|
|
|
344
372
|
- lib/no_response/models/operations/listlistentries_request.rbi
|
|
345
373
|
- lib/no_response/models/operations/listlistentries_response.rb
|
|
346
374
|
- lib/no_response/models/operations/listlistentries_response.rbi
|
|
375
|
+
- lib/no_response/models/operations/listrequestdiagnostics_request.rb
|
|
376
|
+
- lib/no_response/models/operations/listrequestdiagnostics_request.rbi
|
|
377
|
+
- lib/no_response/models/operations/listrequestdiagnostics_response.rb
|
|
378
|
+
- lib/no_response/models/operations/listrequestdiagnostics_response.rbi
|
|
347
379
|
- lib/no_response/models/operations/listwebhookdeliveries_request.rb
|
|
348
380
|
- lib/no_response/models/operations/listwebhookdeliveries_request.rbi
|
|
349
381
|
- lib/no_response/models/operations/listwebhookdeliveries_response.rb
|
|
@@ -352,6 +384,10 @@ files:
|
|
|
352
384
|
- lib/no_response/models/operations/listwebhookendpoints_response.rbi
|
|
353
385
|
- lib/no_response/models/operations/queryaccountassessments_response.rb
|
|
354
386
|
- lib/no_response/models/operations/queryaccountassessments_response.rbi
|
|
387
|
+
- lib/no_response/models/operations/recordaccountoutcome_request.rb
|
|
388
|
+
- lib/no_response/models/operations/recordaccountoutcome_request.rbi
|
|
389
|
+
- lib/no_response/models/operations/recordaccountoutcome_response.rb
|
|
390
|
+
- lib/no_response/models/operations/recordaccountoutcome_response.rbi
|
|
355
391
|
- lib/no_response/models/operations/recordassessmentoutcome_request.rb
|
|
356
392
|
- lib/no_response/models/operations/recordassessmentoutcome_request.rbi
|
|
357
393
|
- lib/no_response/models/operations/recordassessmentoutcome_response.rb
|
|
@@ -368,6 +404,10 @@ files:
|
|
|
368
404
|
- lib/no_response/models/operations/replaywebhookdelivery_request.rbi
|
|
369
405
|
- lib/no_response/models/operations/replaywebhookdelivery_response.rb
|
|
370
406
|
- lib/no_response/models/operations/replaywebhookdelivery_response.rbi
|
|
407
|
+
- lib/no_response/models/operations/retireaccountcredential_request.rb
|
|
408
|
+
- lib/no_response/models/operations/retireaccountcredential_request.rbi
|
|
409
|
+
- lib/no_response/models/operations/retireaccountcredential_response.rb
|
|
410
|
+
- lib/no_response/models/operations/retireaccountcredential_response.rbi
|
|
371
411
|
- lib/no_response/models/operations/revokekey_request.rb
|
|
372
412
|
- lib/no_response/models/operations/revokekey_request.rbi
|
|
373
413
|
- lib/no_response/models/operations/revokekey_response.rb
|
|
@@ -382,6 +422,8 @@ files:
|
|
|
382
422
|
- lib/no_response/models/operations/rotatewebhooksigningkey_request.rbi
|
|
383
423
|
- lib/no_response/models/operations/rotatewebhooksigningkey_response.rb
|
|
384
424
|
- lib/no_response/models/operations/rotatewebhooksigningkey_response.rbi
|
|
425
|
+
- lib/no_response/models/operations/searchassessments_response.rb
|
|
426
|
+
- lib/no_response/models/operations/searchassessments_response.rbi
|
|
385
427
|
- lib/no_response/models/operations/sendwebhooktestevent_request.rb
|
|
386
428
|
- lib/no_response/models/operations/sendwebhooktestevent_request.rbi
|
|
387
429
|
- lib/no_response/models/operations/sendwebhooktestevent_response.rb
|
|
@@ -393,18 +435,36 @@ files:
|
|
|
393
435
|
- lib/no_response/models/shared.rb
|
|
394
436
|
- lib/no_response/models/shared/account.rb
|
|
395
437
|
- lib/no_response/models/shared/account.rbi
|
|
438
|
+
- lib/no_response/models/shared/accountbinding.rb
|
|
439
|
+
- lib/no_response/models/shared/accountbinding.rbi
|
|
440
|
+
- lib/no_response/models/shared/accountbindingactor.rb
|
|
441
|
+
- lib/no_response/models/shared/accountbindingactor.rbi
|
|
442
|
+
- lib/no_response/models/shared/accountbindingrequest.rb
|
|
443
|
+
- lib/no_response/models/shared/accountbindingrequest.rbi
|
|
396
444
|
- lib/no_response/models/shared/accountdecision.rb
|
|
397
445
|
- lib/no_response/models/shared/accountdecision.rbi
|
|
398
446
|
- lib/no_response/models/shared/accountdecisionsbyflow.rb
|
|
399
447
|
- lib/no_response/models/shared/accountdecisionsbyflow.rbi
|
|
448
|
+
- lib/no_response/models/shared/accountdecisionsnapshot.rb
|
|
449
|
+
- lib/no_response/models/shared/accountdecisionsnapshot.rbi
|
|
400
450
|
- lib/no_response/models/shared/accountdeleted.rb
|
|
401
451
|
- lib/no_response/models/shared/accountdeleted.rbi
|
|
402
452
|
- lib/no_response/models/shared/accountdeletedevent.rb
|
|
403
453
|
- lib/no_response/models/shared/accountdeletedevent.rbi
|
|
404
454
|
- lib/no_response/models/shared/accountdeletion.rb
|
|
405
455
|
- lib/no_response/models/shared/accountdeletion.rbi
|
|
456
|
+
- lib/no_response/models/shared/accountexport.rb
|
|
457
|
+
- lib/no_response/models/shared/accountexport.rbi
|
|
406
458
|
- lib/no_response/models/shared/accountlist.rb
|
|
407
459
|
- lib/no_response/models/shared/accountlist.rbi
|
|
460
|
+
- lib/no_response/models/shared/accountoutcome.rb
|
|
461
|
+
- lib/no_response/models/shared/accountoutcome.rbi
|
|
462
|
+
- lib/no_response/models/shared/accountoutcomeactor.rb
|
|
463
|
+
- lib/no_response/models/shared/accountoutcomeactor.rbi
|
|
464
|
+
- lib/no_response/models/shared/accountoutcomepage.rb
|
|
465
|
+
- lib/no_response/models/shared/accountoutcomepage.rbi
|
|
466
|
+
- lib/no_response/models/shared/accountoutcomerequest.rb
|
|
467
|
+
- lib/no_response/models/shared/accountoutcomerequest.rbi
|
|
408
468
|
- lib/no_response/models/shared/accountrisk.rb
|
|
409
469
|
- lib/no_response/models/shared/accountrisk.rbi
|
|
410
470
|
- lib/no_response/models/shared/accountriskchanged.rb
|
|
@@ -453,6 +513,12 @@ files:
|
|
|
453
513
|
- lib/no_response/models/shared/assessmentrequestissuedcredential.rbi
|
|
454
514
|
- lib/no_response/models/shared/assessmentrequestpolicycontext.rb
|
|
455
515
|
- lib/no_response/models/shared/assessmentrequestpolicycontext.rbi
|
|
516
|
+
- lib/no_response/models/shared/assessmentrevision.rb
|
|
517
|
+
- lib/no_response/models/shared/assessmentrevision.rbi
|
|
518
|
+
- lib/no_response/models/shared/assessmentsearchpage.rb
|
|
519
|
+
- lib/no_response/models/shared/assessmentsearchpage.rbi
|
|
520
|
+
- lib/no_response/models/shared/assessmentsearchrequest.rb
|
|
521
|
+
- lib/no_response/models/shared/assessmentsearchrequest.rbi
|
|
456
522
|
- lib/no_response/models/shared/assessmentupdateddata.rb
|
|
457
523
|
- lib/no_response/models/shared/assessmentupdateddata.rbi
|
|
458
524
|
- lib/no_response/models/shared/assessmentupdatedevent.rb
|
|
@@ -491,6 +557,20 @@ files:
|
|
|
491
557
|
- lib/no_response/models/shared/consistencyvalue.rbi
|
|
492
558
|
- lib/no_response/models/shared/country.rb
|
|
493
559
|
- lib/no_response/models/shared/country.rbi
|
|
560
|
+
- lib/no_response/models/shared/credentialassociation.rb
|
|
561
|
+
- lib/no_response/models/shared/credentialassociation.rbi
|
|
562
|
+
- lib/no_response/models/shared/credentialassociationactor.rb
|
|
563
|
+
- lib/no_response/models/shared/credentialassociationactor.rbi
|
|
564
|
+
- lib/no_response/models/shared/credentialassociationretiredby.rb
|
|
565
|
+
- lib/no_response/models/shared/credentialassociationretiredby.rbi
|
|
566
|
+
- lib/no_response/models/shared/credentialpage.rb
|
|
567
|
+
- lib/no_response/models/shared/credentialpage.rbi
|
|
568
|
+
- lib/no_response/models/shared/credentialrequest.rb
|
|
569
|
+
- lib/no_response/models/shared/credentialrequest.rbi
|
|
570
|
+
- lib/no_response/models/shared/decision.rb
|
|
571
|
+
- lib/no_response/models/shared/decision.rbi
|
|
572
|
+
- lib/no_response/models/shared/decisionreceipt.rb
|
|
573
|
+
- lib/no_response/models/shared/decisionreceipt.rbi
|
|
494
574
|
- lib/no_response/models/shared/defaultdepth.rb
|
|
495
575
|
- lib/no_response/models/shared/defaultdepth.rbi
|
|
496
576
|
- lib/no_response/models/shared/depth.rb
|
|
@@ -519,6 +599,10 @@ files:
|
|
|
519
599
|
- lib/no_response/models/shared/enforcementstatus.rbi
|
|
520
600
|
- lib/no_response/models/shared/environment.rb
|
|
521
601
|
- lib/no_response/models/shared/environment.rbi
|
|
602
|
+
- lib/no_response/models/shared/exclusion.rb
|
|
603
|
+
- lib/no_response/models/shared/exclusion.rbi
|
|
604
|
+
- lib/no_response/models/shared/exportassessmentoutcome.rb
|
|
605
|
+
- lib/no_response/models/shared/exportassessmentoutcome.rbi
|
|
522
606
|
- lib/no_response/models/shared/failure.rb
|
|
523
607
|
- lib/no_response/models/shared/failure.rbi
|
|
524
608
|
- lib/no_response/models/shared/failurereason.rb
|
|
@@ -639,6 +723,10 @@ files:
|
|
|
639
723
|
- lib/no_response/models/shared/reasonidentifier.rbi
|
|
640
724
|
- lib/no_response/models/shared/recommendation.rb
|
|
641
725
|
- lib/no_response/models/shared/recommendation.rbi
|
|
726
|
+
- lib/no_response/models/shared/requestdiagnostic.rb
|
|
727
|
+
- lib/no_response/models/shared/requestdiagnostic.rbi
|
|
728
|
+
- lib/no_response/models/shared/requestdiagnosticpage.rb
|
|
729
|
+
- lib/no_response/models/shared/requestdiagnosticpage.rbi
|
|
642
730
|
- lib/no_response/models/shared/responsemode.rb
|
|
643
731
|
- lib/no_response/models/shared/responsemode.rbi
|
|
644
732
|
- lib/no_response/models/shared/risk.rb
|
|
@@ -669,6 +757,8 @@ files:
|
|
|
669
757
|
- lib/no_response/models/shared/risksummaryusername.rbi
|
|
670
758
|
- lib/no_response/models/shared/security.rb
|
|
671
759
|
- lib/no_response/models/shared/security.rbi
|
|
760
|
+
- lib/no_response/models/shared/sentidentifiers.rb
|
|
761
|
+
- lib/no_response/models/shared/sentidentifiers.rbi
|
|
672
762
|
- lib/no_response/models/shared/settings.rb
|
|
673
763
|
- lib/no_response/models/shared/settings.rbi
|
|
674
764
|
- lib/no_response/models/shared/settingsflows.rb
|
|
@@ -746,6 +836,7 @@ files:
|
|
|
746
836
|
- lib/no_response/models/shared/workspacedeletedevent.rb
|
|
747
837
|
- lib/no_response/models/shared/workspacedeletedevent.rbi
|
|
748
838
|
- lib/no_response/noresponseclient.rb
|
|
839
|
+
- lib/no_response/requests.rb
|
|
749
840
|
- lib/no_response/sdk_hooks/hooks.rb
|
|
750
841
|
- lib/no_response/sdk_hooks/idempotency_key_hook.rb
|
|
751
842
|
- lib/no_response/sdk_hooks/registration.rb
|