ory-kratos-client 0.1.1.alpha1 → 0.2.0.alpha2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -12
  3. data/docs/AdminApi.md +68 -21
  4. data/docs/CommonApi.md +68 -21
  5. data/docs/CompleteSelfServiceBrowserSettingsStrategyProfileFlowPayload.md +19 -0
  6. data/docs/Form.md +1 -1
  7. data/docs/FormField.md +6 -6
  8. data/docs/GenericErrorPayload.md +1 -1
  9. data/docs/LoginRequest.md +2 -0
  10. data/docs/LoginRequestMethodConfig.md +1 -1
  11. data/docs/PublicApi.md +134 -44
  12. data/docs/RegistrationRequestMethodConfig.md +1 -1
  13. data/docs/RequestMethodConfig.md +23 -0
  14. data/docs/SettingsRequest.md +31 -0
  15. data/docs/SettingsRequestMethod.md +19 -0
  16. data/docs/VerifiableAddress.md +1 -1
  17. data/docs/VerificationRequest.md +1 -1
  18. data/lib/ory-kratos-client.rb +4 -2
  19. data/lib/ory-kratos-client/api/admin_api.rb +95 -35
  20. data/lib/ory-kratos-client/api/common_api.rb +95 -35
  21. data/lib/ory-kratos-client/api/public_api.rb +181 -65
  22. data/lib/ory-kratos-client/models/complete_self_service_browser_settings_strategy_profile_flow_payload.rb +222 -0
  23. data/lib/ory-kratos-client/models/form.rb +1 -1
  24. data/lib/ory-kratos-client/models/form_field.rb +6 -6
  25. data/lib/ory-kratos-client/models/generic_error_payload.rb +2 -3
  26. data/lib/ory-kratos-client/models/login_request.rb +11 -1
  27. data/lib/ory-kratos-client/models/login_request_method_config.rb +1 -1
  28. data/lib/ory-kratos-client/models/registration_request_method_config.rb +1 -1
  29. data/lib/ory-kratos-client/models/request_method_config.rb +256 -0
  30. data/lib/ory-kratos-client/models/settings_request.rb +313 -0
  31. data/lib/ory-kratos-client/models/settings_request_method.rb +216 -0
  32. data/lib/ory-kratos-client/models/verifiable_address.rb +0 -5
  33. data/lib/ory-kratos-client/models/verification_request.rb +1 -1
  34. data/lib/ory-kratos-client/version.rb +1 -1
  35. data/spec/models/complete_self_service_browser_settings_strategy_profile_flow_payload_spec.rb +47 -0
  36. data/spec/models/request_method_config_spec.rb +59 -0
  37. data/spec/models/settings_request_method_spec.rb +47 -0
  38. data/spec/models/settings_request_spec.rb +83 -0
  39. metadata +36 -20
@@ -0,0 +1,19 @@
1
+ # OryHydraClient::SettingsRequestMethod
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **config** | [**RequestMethodConfig**](RequestMethodConfig.md) | | [optional]
8
+ **method** | **String** | Method contains the request credentials type. | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'OryHydraClient'
14
+
15
+ instance = OryHydraClient::SettingsRequestMethod.new(config: null,
16
+ method: null)
17
+ ```
18
+
19
+
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **id** | **String** | |
9
9
  **value** | **String** | |
10
10
  **verified** | **Boolean** | |
11
- **verified_at** | **DateTime** | |
11
+ **verified_at** | **DateTime** | | [optional]
12
12
  **via** | **String** | |
13
13
 
14
14
  ## Code Sample
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **expires_at** | **DateTime** | ExpiresAt is the time (UTC) when the request expires. If the user still wishes to update the profile, a new request has to be initiated. | [optional]
7
+ **expires_at** | **DateTime** | ExpiresAt is the time (UTC) when the request expires. If the user still wishes to verify the address, a new request has to be initiated. | [optional]
8
8
  **form** | [**Form**](Form.md) | | [optional]
9
9
  **id** | **String** | | [optional]
10
10
  **issued_at** | **DateTime** | IssuedAt is the time (UTC) when the request occurred. | [optional]
@@ -17,7 +17,7 @@ require 'ory-kratos-client/version'
17
17
  require 'ory-kratos-client/configuration'
18
18
 
19
19
  # Models
20
- require 'ory-kratos-client/models/complete_self_service_browser_profile_management_flow_payload'
20
+ require 'ory-kratos-client/models/complete_self_service_browser_settings_strategy_profile_flow_payload'
21
21
  require 'ory-kratos-client/models/error'
22
22
  require 'ory-kratos-client/models/error_container'
23
23
  require 'ory-kratos-client/models/form'
@@ -30,11 +30,13 @@ require 'ory-kratos-client/models/identity'
30
30
  require 'ory-kratos-client/models/login_request'
31
31
  require 'ory-kratos-client/models/login_request_method'
32
32
  require 'ory-kratos-client/models/login_request_method_config'
33
- require 'ory-kratos-client/models/profile_management_request'
34
33
  require 'ory-kratos-client/models/registration_request'
35
34
  require 'ory-kratos-client/models/registration_request_method'
36
35
  require 'ory-kratos-client/models/registration_request_method_config'
36
+ require 'ory-kratos-client/models/request_method_config'
37
37
  require 'ory-kratos-client/models/session'
38
+ require 'ory-kratos-client/models/settings_request'
39
+ require 'ory-kratos-client/models/settings_request_method'
38
40
  require 'ory-kratos-client/models/verifiable_address'
39
41
  require 'ory-kratos-client/models/verification_request'
40
42
  require 'ory-kratos-client/models/version'
@@ -207,6 +207,66 @@ module OryHydraClient
207
207
  return data, status_code, headers
208
208
  end
209
209
 
210
+ # Get a traits schema definition
211
+ # @param id [String] ID must be set to the ID of schema you want to get
212
+ # @param [Hash] opts the optional parameters
213
+ # @return [Object]
214
+ def get_schema(id, opts = {})
215
+ data, _status_code, _headers = get_schema_with_http_info(id, opts)
216
+ data
217
+ end
218
+
219
+ # Get a traits schema definition
220
+ # @param id [String] ID must be set to the ID of schema you want to get
221
+ # @param [Hash] opts the optional parameters
222
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
223
+ def get_schema_with_http_info(id, opts = {})
224
+ if @api_client.config.debugging
225
+ @api_client.config.logger.debug 'Calling API: AdminApi.get_schema ...'
226
+ end
227
+ # verify the required parameter 'id' is set
228
+ if @api_client.config.client_side_validation && id.nil?
229
+ fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.get_schema"
230
+ end
231
+ # resource path
232
+ local_var_path = '/schemas/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
233
+
234
+ # query parameters
235
+ query_params = opts[:query_params] || {}
236
+
237
+ # header parameters
238
+ header_params = opts[:header_params] || {}
239
+ # HTTP header 'Accept' (if needed)
240
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
241
+
242
+ # form parameters
243
+ form_params = opts[:form_params] || {}
244
+
245
+ # http body (model)
246
+ post_body = opts[:body]
247
+
248
+ # return_type
249
+ return_type = opts[:return_type] || 'Object'
250
+
251
+ # auth_names
252
+ auth_names = opts[:auth_names] || []
253
+
254
+ new_options = opts.merge(
255
+ :header_params => header_params,
256
+ :query_params => query_params,
257
+ :form_params => form_params,
258
+ :body => post_body,
259
+ :auth_names => auth_names,
260
+ :return_type => return_type
261
+ )
262
+
263
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
264
+ if @api_client.config.debugging
265
+ @api_client.config.logger.debug "API called: AdminApi#get_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
266
+ end
267
+ return data, status_code, headers
268
+ end
269
+
210
270
  # Get the request context of browser-based login user flows
211
271
  # This endpoint returns a login request's context with, for example, error details and other information. When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes to prevent scanning attacks. More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
212
272
  # @param request [String] Request is the Login Request ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/login?request&#x3D;abcde&#x60;).
@@ -270,31 +330,31 @@ module OryHydraClient
270
330
  return data, status_code, headers
271
331
  end
272
332
 
273
- # Get the request context of browser-based profile management flows
274
- # When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for checking the auth session. To prevent scanning attacks, the public endpoint does not return 404 status codes but instead 403 or 500. More information can be found at [ORY Kratos Profile Management Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-profile-management).
275
- # @param request [String] Request is the Login Request ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/login?request&#x3D;abcde&#x60;).
333
+ # Get the request context of browser-based registration user flows
334
+ # This endpoint returns a registration request's context with, for example, error details and other information. When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes to prevent scanning attacks. More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
335
+ # @param request [String] Request is the Registration Request ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/registration?request&#x3D;abcde&#x60;).
276
336
  # @param [Hash] opts the optional parameters
277
- # @return [ProfileManagementRequest]
278
- def get_self_service_browser_profile_management_request(request, opts = {})
279
- data, _status_code, _headers = get_self_service_browser_profile_management_request_with_http_info(request, opts)
337
+ # @return [RegistrationRequest]
338
+ def get_self_service_browser_registration_request(request, opts = {})
339
+ data, _status_code, _headers = get_self_service_browser_registration_request_with_http_info(request, opts)
280
340
  data
281
341
  end
282
342
 
283
- # Get the request context of browser-based profile management flows
284
- # When accessing this endpoint through ORY Kratos&#39; Public API, ensure that cookies are set as they are required for checking the auth session. To prevent scanning attacks, the public endpoint does not return 404 status codes but instead 403 or 500. More information can be found at [ORY Kratos Profile Management Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-profile-management).
285
- # @param request [String] Request is the Login Request ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/login?request&#x3D;abcde&#x60;).
343
+ # Get the request context of browser-based registration user flows
344
+ # This endpoint returns a registration request&#39;s context with, for example, error details and other information. When accessing this endpoint through ORY Kratos&#39; Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes to prevent scanning attacks. More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
345
+ # @param request [String] Request is the Registration Request ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/registration?request&#x3D;abcde&#x60;).
286
346
  # @param [Hash] opts the optional parameters
287
- # @return [Array<(ProfileManagementRequest, Integer, Hash)>] ProfileManagementRequest data, response status code and response headers
288
- def get_self_service_browser_profile_management_request_with_http_info(request, opts = {})
347
+ # @return [Array<(RegistrationRequest, Integer, Hash)>] RegistrationRequest data, response status code and response headers
348
+ def get_self_service_browser_registration_request_with_http_info(request, opts = {})
289
349
  if @api_client.config.debugging
290
- @api_client.config.logger.debug 'Calling API: AdminApi.get_self_service_browser_profile_management_request ...'
350
+ @api_client.config.logger.debug 'Calling API: AdminApi.get_self_service_browser_registration_request ...'
291
351
  end
292
352
  # verify the required parameter 'request' is set
293
353
  if @api_client.config.client_side_validation && request.nil?
294
- fail ArgumentError, "Missing the required parameter 'request' when calling AdminApi.get_self_service_browser_profile_management_request"
354
+ fail ArgumentError, "Missing the required parameter 'request' when calling AdminApi.get_self_service_browser_registration_request"
295
355
  end
296
356
  # resource path
297
- local_var_path = '/self-service/browser/flows/requests/profile'
357
+ local_var_path = '/self-service/browser/flows/requests/registration'
298
358
 
299
359
  # query parameters
300
360
  query_params = opts[:query_params] || {}
@@ -312,7 +372,7 @@ module OryHydraClient
312
372
  post_body = opts[:body]
313
373
 
314
374
  # return_type
315
- return_type = opts[:return_type] || 'ProfileManagementRequest'
375
+ return_type = opts[:return_type] || 'RegistrationRequest'
316
376
 
317
377
  # auth_names
318
378
  auth_names = opts[:auth_names] || []
@@ -328,36 +388,36 @@ module OryHydraClient
328
388
 
329
389
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
330
390
  if @api_client.config.debugging
331
- @api_client.config.logger.debug "API called: AdminApi#get_self_service_browser_profile_management_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
391
+ @api_client.config.logger.debug "API called: AdminApi#get_self_service_browser_registration_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
332
392
  end
333
393
  return data, status_code, headers
334
394
  end
335
395
 
336
- # Get the request context of browser-based registration user flows
337
- # This endpoint returns a registration request's context with, for example, error details and other information. When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes to prevent scanning attacks. More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
338
- # @param request [String] Request is the Registration Request ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/registration?request&#x3D;abcde&#x60;).
396
+ # Get the request context of browser-based settings flows
397
+ # When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for checking the auth session. To prevent scanning attacks, the public endpoint does not return 404 status codes but instead 403 or 500. More information can be found at [ORY Kratos User Settings & Profile Management Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-settings-profile-management).
398
+ # @param request [String] Request is the Login Request ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/login?request&#x3D;abcde&#x60;).
339
399
  # @param [Hash] opts the optional parameters
340
- # @return [RegistrationRequest]
341
- def get_self_service_browser_registration_request(request, opts = {})
342
- data, _status_code, _headers = get_self_service_browser_registration_request_with_http_info(request, opts)
400
+ # @return [SettingsRequest]
401
+ def get_self_service_browser_settings_request(request, opts = {})
402
+ data, _status_code, _headers = get_self_service_browser_settings_request_with_http_info(request, opts)
343
403
  data
344
404
  end
345
405
 
346
- # Get the request context of browser-based registration user flows
347
- # This endpoint returns a registration request&#39;s context with, for example, error details and other information. When accessing this endpoint through ORY Kratos&#39; Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes to prevent scanning attacks. More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
348
- # @param request [String] Request is the Registration Request ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/registration?request&#x3D;abcde&#x60;).
406
+ # Get the request context of browser-based settings flows
407
+ # When accessing this endpoint through ORY Kratos&#39; Public API, ensure that cookies are set as they are required for checking the auth session. To prevent scanning attacks, the public endpoint does not return 404 status codes but instead 403 or 500. More information can be found at [ORY Kratos User Settings &amp; Profile Management Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-settings-profile-management).
408
+ # @param request [String] Request is the Login Request ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/login?request&#x3D;abcde&#x60;).
349
409
  # @param [Hash] opts the optional parameters
350
- # @return [Array<(RegistrationRequest, Integer, Hash)>] RegistrationRequest data, response status code and response headers
351
- def get_self_service_browser_registration_request_with_http_info(request, opts = {})
410
+ # @return [Array<(SettingsRequest, Integer, Hash)>] SettingsRequest data, response status code and response headers
411
+ def get_self_service_browser_settings_request_with_http_info(request, opts = {})
352
412
  if @api_client.config.debugging
353
- @api_client.config.logger.debug 'Calling API: AdminApi.get_self_service_browser_registration_request ...'
413
+ @api_client.config.logger.debug 'Calling API: AdminApi.get_self_service_browser_settings_request ...'
354
414
  end
355
415
  # verify the required parameter 'request' is set
356
416
  if @api_client.config.client_side_validation && request.nil?
357
- fail ArgumentError, "Missing the required parameter 'request' when calling AdminApi.get_self_service_browser_registration_request"
417
+ fail ArgumentError, "Missing the required parameter 'request' when calling AdminApi.get_self_service_browser_settings_request"
358
418
  end
359
419
  # resource path
360
- local_var_path = '/self-service/browser/flows/requests/registration'
420
+ local_var_path = '/self-service/browser/flows/requests/settings'
361
421
 
362
422
  # query parameters
363
423
  query_params = opts[:query_params] || {}
@@ -375,7 +435,7 @@ module OryHydraClient
375
435
  post_body = opts[:body]
376
436
 
377
437
  # return_type
378
- return_type = opts[:return_type] || 'RegistrationRequest'
438
+ return_type = opts[:return_type] || 'SettingsRequest'
379
439
 
380
440
  # auth_names
381
441
  auth_names = opts[:auth_names] || []
@@ -391,7 +451,7 @@ module OryHydraClient
391
451
 
392
452
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
393
453
  if @api_client.config.debugging
394
- @api_client.config.logger.debug "API called: AdminApi#get_self_service_browser_registration_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
454
+ @api_client.config.logger.debug "API called: AdminApi#get_self_service_browser_settings_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
395
455
  end
396
456
  return data, status_code, headers
397
457
  end
@@ -399,7 +459,7 @@ module OryHydraClient
399
459
  # Get user-facing self-service errors
400
460
  # This endpoint returns the error associated with a user-facing self service errors. When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes to prevent scanning attacks. More information can be found at [ORY Kratos User User Facing Error Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors).
401
461
  # @param [Hash] opts the optional parameters
402
- # @option opts [String] :id
462
+ # @option opts [String] :error
403
463
  # @return [ErrorContainer]
404
464
  def get_self_service_error(opts = {})
405
465
  data, _status_code, _headers = get_self_service_error_with_http_info(opts)
@@ -409,7 +469,7 @@ module OryHydraClient
409
469
  # Get user-facing self-service errors
410
470
  # This endpoint returns the error associated with a user-facing self service errors. When accessing this endpoint through ORY Kratos&#39; Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes to prevent scanning attacks. More information can be found at [ORY Kratos User User Facing Error Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors).
411
471
  # @param [Hash] opts the optional parameters
412
- # @option opts [String] :id
472
+ # @option opts [String] :error
413
473
  # @return [Array<(ErrorContainer, Integer, Hash)>] ErrorContainer data, response status code and response headers
414
474
  def get_self_service_error_with_http_info(opts = {})
415
475
  if @api_client.config.debugging
@@ -420,7 +480,7 @@ module OryHydraClient
420
480
 
421
481
  # query parameters
422
482
  query_params = opts[:query_params] || {}
423
- query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
483
+ query_params[:'error'] = opts[:'error'] if !opts[:'error'].nil?
424
484
 
425
485
  # header parameters
426
486
  header_params = opts[:header_params] || {}
@@ -19,6 +19,66 @@ module OryHydraClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Get a traits schema definition
23
+ # @param id [String] ID must be set to the ID of schema you want to get
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [Object]
26
+ def get_schema(id, opts = {})
27
+ data, _status_code, _headers = get_schema_with_http_info(id, opts)
28
+ data
29
+ end
30
+
31
+ # Get a traits schema definition
32
+ # @param id [String] ID must be set to the ID of schema you want to get
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
35
+ def get_schema_with_http_info(id, opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: CommonApi.get_schema ...'
38
+ end
39
+ # verify the required parameter 'id' is set
40
+ if @api_client.config.client_side_validation && id.nil?
41
+ fail ArgumentError, "Missing the required parameter 'id' when calling CommonApi.get_schema"
42
+ end
43
+ # resource path
44
+ local_var_path = '/schemas/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
45
+
46
+ # query parameters
47
+ query_params = opts[:query_params] || {}
48
+
49
+ # header parameters
50
+ header_params = opts[:header_params] || {}
51
+ # HTTP header 'Accept' (if needed)
52
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
53
+
54
+ # form parameters
55
+ form_params = opts[:form_params] || {}
56
+
57
+ # http body (model)
58
+ post_body = opts[:body]
59
+
60
+ # return_type
61
+ return_type = opts[:return_type] || 'Object'
62
+
63
+ # auth_names
64
+ auth_names = opts[:auth_names] || []
65
+
66
+ new_options = opts.merge(
67
+ :header_params => header_params,
68
+ :query_params => query_params,
69
+ :form_params => form_params,
70
+ :body => post_body,
71
+ :auth_names => auth_names,
72
+ :return_type => return_type
73
+ )
74
+
75
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
76
+ if @api_client.config.debugging
77
+ @api_client.config.logger.debug "API called: CommonApi#get_schema\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
78
+ end
79
+ return data, status_code, headers
80
+ end
81
+
22
82
  # Get the request context of browser-based login user flows
23
83
  # This endpoint returns a login request's context with, for example, error details and other information. When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes to prevent scanning attacks. More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
24
84
  # @param request [String] Request is the Login Request ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/login?request&#x3D;abcde&#x60;).
@@ -82,31 +142,31 @@ module OryHydraClient
82
142
  return data, status_code, headers
83
143
  end
84
144
 
85
- # Get the request context of browser-based profile management flows
86
- # When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for checking the auth session. To prevent scanning attacks, the public endpoint does not return 404 status codes but instead 403 or 500. More information can be found at [ORY Kratos Profile Management Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-profile-management).
87
- # @param request [String] Request is the Login Request ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/login?request&#x3D;abcde&#x60;).
145
+ # Get the request context of browser-based registration user flows
146
+ # This endpoint returns a registration request's context with, for example, error details and other information. When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes to prevent scanning attacks. More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
147
+ # @param request [String] Request is the Registration Request ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/registration?request&#x3D;abcde&#x60;).
88
148
  # @param [Hash] opts the optional parameters
89
- # @return [ProfileManagementRequest]
90
- def get_self_service_browser_profile_management_request(request, opts = {})
91
- data, _status_code, _headers = get_self_service_browser_profile_management_request_with_http_info(request, opts)
149
+ # @return [RegistrationRequest]
150
+ def get_self_service_browser_registration_request(request, opts = {})
151
+ data, _status_code, _headers = get_self_service_browser_registration_request_with_http_info(request, opts)
92
152
  data
93
153
  end
94
154
 
95
- # Get the request context of browser-based profile management flows
96
- # When accessing this endpoint through ORY Kratos&#39; Public API, ensure that cookies are set as they are required for checking the auth session. To prevent scanning attacks, the public endpoint does not return 404 status codes but instead 403 or 500. More information can be found at [ORY Kratos Profile Management Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-profile-management).
97
- # @param request [String] Request is the Login Request ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/login?request&#x3D;abcde&#x60;).
155
+ # Get the request context of browser-based registration user flows
156
+ # This endpoint returns a registration request&#39;s context with, for example, error details and other information. When accessing this endpoint through ORY Kratos&#39; Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes to prevent scanning attacks. More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
157
+ # @param request [String] Request is the Registration Request ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/registration?request&#x3D;abcde&#x60;).
98
158
  # @param [Hash] opts the optional parameters
99
- # @return [Array<(ProfileManagementRequest, Integer, Hash)>] ProfileManagementRequest data, response status code and response headers
100
- def get_self_service_browser_profile_management_request_with_http_info(request, opts = {})
159
+ # @return [Array<(RegistrationRequest, Integer, Hash)>] RegistrationRequest data, response status code and response headers
160
+ def get_self_service_browser_registration_request_with_http_info(request, opts = {})
101
161
  if @api_client.config.debugging
102
- @api_client.config.logger.debug 'Calling API: CommonApi.get_self_service_browser_profile_management_request ...'
162
+ @api_client.config.logger.debug 'Calling API: CommonApi.get_self_service_browser_registration_request ...'
103
163
  end
104
164
  # verify the required parameter 'request' is set
105
165
  if @api_client.config.client_side_validation && request.nil?
106
- fail ArgumentError, "Missing the required parameter 'request' when calling CommonApi.get_self_service_browser_profile_management_request"
166
+ fail ArgumentError, "Missing the required parameter 'request' when calling CommonApi.get_self_service_browser_registration_request"
107
167
  end
108
168
  # resource path
109
- local_var_path = '/self-service/browser/flows/requests/profile'
169
+ local_var_path = '/self-service/browser/flows/requests/registration'
110
170
 
111
171
  # query parameters
112
172
  query_params = opts[:query_params] || {}
@@ -124,7 +184,7 @@ module OryHydraClient
124
184
  post_body = opts[:body]
125
185
 
126
186
  # return_type
127
- return_type = opts[:return_type] || 'ProfileManagementRequest'
187
+ return_type = opts[:return_type] || 'RegistrationRequest'
128
188
 
129
189
  # auth_names
130
190
  auth_names = opts[:auth_names] || []
@@ -140,36 +200,36 @@ module OryHydraClient
140
200
 
141
201
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
142
202
  if @api_client.config.debugging
143
- @api_client.config.logger.debug "API called: CommonApi#get_self_service_browser_profile_management_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
203
+ @api_client.config.logger.debug "API called: CommonApi#get_self_service_browser_registration_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
144
204
  end
145
205
  return data, status_code, headers
146
206
  end
147
207
 
148
- # Get the request context of browser-based registration user flows
149
- # This endpoint returns a registration request's context with, for example, error details and other information. When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes to prevent scanning attacks. More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
150
- # @param request [String] Request is the Registration Request ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/registration?request&#x3D;abcde&#x60;).
208
+ # Get the request context of browser-based settings flows
209
+ # When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for checking the auth session. To prevent scanning attacks, the public endpoint does not return 404 status codes but instead 403 or 500. More information can be found at [ORY Kratos User Settings & Profile Management Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-settings-profile-management).
210
+ # @param request [String] Request is the Login Request ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/login?request&#x3D;abcde&#x60;).
151
211
  # @param [Hash] opts the optional parameters
152
- # @return [RegistrationRequest]
153
- def get_self_service_browser_registration_request(request, opts = {})
154
- data, _status_code, _headers = get_self_service_browser_registration_request_with_http_info(request, opts)
212
+ # @return [SettingsRequest]
213
+ def get_self_service_browser_settings_request(request, opts = {})
214
+ data, _status_code, _headers = get_self_service_browser_settings_request_with_http_info(request, opts)
155
215
  data
156
216
  end
157
217
 
158
- # Get the request context of browser-based registration user flows
159
- # This endpoint returns a registration request&#39;s context with, for example, error details and other information. When accessing this endpoint through ORY Kratos&#39; Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes to prevent scanning attacks. More information can be found at [ORY Kratos User Login and User Registration Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-login-user-registration).
160
- # @param request [String] Request is the Registration Request ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/registration?request&#x3D;abcde&#x60;).
218
+ # Get the request context of browser-based settings flows
219
+ # When accessing this endpoint through ORY Kratos&#39; Public API, ensure that cookies are set as they are required for checking the auth session. To prevent scanning attacks, the public endpoint does not return 404 status codes but instead 403 or 500. More information can be found at [ORY Kratos User Settings &amp; Profile Management Documentation](https://www.ory.sh/docs/next/kratos/self-service/flows/user-settings-profile-management).
220
+ # @param request [String] Request is the Login Request ID The value for this parameter comes from &#x60;request&#x60; URL Query parameter sent to your application (e.g. &#x60;/login?request&#x3D;abcde&#x60;).
161
221
  # @param [Hash] opts the optional parameters
162
- # @return [Array<(RegistrationRequest, Integer, Hash)>] RegistrationRequest data, response status code and response headers
163
- def get_self_service_browser_registration_request_with_http_info(request, opts = {})
222
+ # @return [Array<(SettingsRequest, Integer, Hash)>] SettingsRequest data, response status code and response headers
223
+ def get_self_service_browser_settings_request_with_http_info(request, opts = {})
164
224
  if @api_client.config.debugging
165
- @api_client.config.logger.debug 'Calling API: CommonApi.get_self_service_browser_registration_request ...'
225
+ @api_client.config.logger.debug 'Calling API: CommonApi.get_self_service_browser_settings_request ...'
166
226
  end
167
227
  # verify the required parameter 'request' is set
168
228
  if @api_client.config.client_side_validation && request.nil?
169
- fail ArgumentError, "Missing the required parameter 'request' when calling CommonApi.get_self_service_browser_registration_request"
229
+ fail ArgumentError, "Missing the required parameter 'request' when calling CommonApi.get_self_service_browser_settings_request"
170
230
  end
171
231
  # resource path
172
- local_var_path = '/self-service/browser/flows/requests/registration'
232
+ local_var_path = '/self-service/browser/flows/requests/settings'
173
233
 
174
234
  # query parameters
175
235
  query_params = opts[:query_params] || {}
@@ -187,7 +247,7 @@ module OryHydraClient
187
247
  post_body = opts[:body]
188
248
 
189
249
  # return_type
190
- return_type = opts[:return_type] || 'RegistrationRequest'
250
+ return_type = opts[:return_type] || 'SettingsRequest'
191
251
 
192
252
  # auth_names
193
253
  auth_names = opts[:auth_names] || []
@@ -203,7 +263,7 @@ module OryHydraClient
203
263
 
204
264
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
205
265
  if @api_client.config.debugging
206
- @api_client.config.logger.debug "API called: CommonApi#get_self_service_browser_registration_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
266
+ @api_client.config.logger.debug "API called: CommonApi#get_self_service_browser_settings_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
207
267
  end
208
268
  return data, status_code, headers
209
269
  end
@@ -211,7 +271,7 @@ module OryHydraClient
211
271
  # Get user-facing self-service errors
212
272
  # This endpoint returns the error associated with a user-facing self service errors. When accessing this endpoint through ORY Kratos' Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes to prevent scanning attacks. More information can be found at [ORY Kratos User User Facing Error Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors).
213
273
  # @param [Hash] opts the optional parameters
214
- # @option opts [String] :id
274
+ # @option opts [String] :error
215
275
  # @return [ErrorContainer]
216
276
  def get_self_service_error(opts = {})
217
277
  data, _status_code, _headers = get_self_service_error_with_http_info(opts)
@@ -221,7 +281,7 @@ module OryHydraClient
221
281
  # Get user-facing self-service errors
222
282
  # This endpoint returns the error associated with a user-facing self service errors. When accessing this endpoint through ORY Kratos&#39; Public API, ensure that cookies are set as they are required for CSRF to work. To prevent token scanning attacks, the public endpoint does not return 404 status codes to prevent scanning attacks. More information can be found at [ORY Kratos User User Facing Error Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-facing-errors).
223
283
  # @param [Hash] opts the optional parameters
224
- # @option opts [String] :id
284
+ # @option opts [String] :error
225
285
  # @return [Array<(ErrorContainer, Integer, Hash)>] ErrorContainer data, response status code and response headers
226
286
  def get_self_service_error_with_http_info(opts = {})
227
287
  if @api_client.config.debugging
@@ -232,7 +292,7 @@ module OryHydraClient
232
292
 
233
293
  # query parameters
234
294
  query_params = opts[:query_params] || {}
235
- query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
295
+ query_params[:'error'] = opts[:'error'] if !opts[:'error'].nil?
236
296
 
237
297
  # header parameters
238
298
  header_params = opts[:header_params] || {}