ory-kratos-client 0.1.0.alpha6 → 0.1.1.alpha1

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: 35721bdd1388e22b36f1c986b502e87ffb51ff21ba90f4d46ed24162df4e70d7
4
- data.tar.gz: e8d402dca0c629d4f0999b12536569a12f93fd2e7d7beea63d285c9a8a8f9b81
3
+ metadata.gz: 8a26e5161bcc964bfaaa7a7ad99583e7c6ea5952b7e722db0d73895058852f75
4
+ data.tar.gz: 95e2dfd04d08b9a7ade38a1cf3b2951e0b1c2ab4c165596c076c7c867c0e6293
5
5
  SHA512:
6
- metadata.gz: 12a9ef39ce270eebd5210c3bdc0956f1fb80634a60cad964469d452e41c5e560539822c0284cc4308b42091b2fc4ec0ebee9e4e09ffcc2a0ccf6e8fd78b93e81
7
- data.tar.gz: 7816d5332cae05f8af5f4d8dcbe968e875cc4a497dd7c51989fae5ba1ccf0e5a6fa7d2abb2ee62b2fe5bae706d6e7beee589e863ad064dd5ee41ceadbc95e455
6
+ metadata.gz: a6e6e5983467c053bcce0c79c18bc778c3b8e7031ecc202a3ebda3a3217ba1ba09acb902011cc0d41e15adbcbfc921f91055117345413cb6214d2351b13fcfbc
7
+ data.tar.gz: 2e0dac6d7a4a9a02e91c6463219e362dd6de5067168cf66544216a38cea233048871819ee122960a99be7725238a098531e6e459cd33652bb02f968ffc22f996
data/README.md CHANGED
@@ -7,7 +7,7 @@ Welcome to the ORY Kratos HTTP API documentation!
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: latest
10
- - Package version: v0.1.0-alpha.6
10
+ - Package version: v0.1.1-alpha.1
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,16 +23,16 @@ gem build ory-kratos-client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./ory-kratos-client-v0.1.0-alpha.6.gem
26
+ gem install ./ory-kratos-client-v0.1.1-alpha.1.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./ory-kratos-client-v0.1.0-alpha.6.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ory-kratos-client-v0.1.1-alpha.1.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'ory-kratos-client', '~> v0.1.0-alpha.6'
35
+ gem 'ory-kratos-client', '~> v0.1.1-alpha.1'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -93,7 +93,7 @@ Class | Method | HTTP request | Description
93
93
  *OryHydraClient::HealthApi* | [**is_instance_alive**](docs/HealthApi.md#is_instance_alive) | **GET** /health/alive | Check alive status
94
94
  *OryHydraClient::HealthApi* | [**is_instance_ready**](docs/HealthApi.md#is_instance_ready) | **GET** /health/ready | Check readiness status
95
95
  *OryHydraClient::PublicApi* | [**complete_self_service_browser_profile_management_flow**](docs/PublicApi.md#complete_self_service_browser_profile_management_flow) | **POST** /self-service/browser/flows/profile/update | Complete the browser-based profile management flows
96
- *OryHydraClient::PublicApi* | [**complete_self_service_browser_verification_flow**](docs/PublicApi.md#complete_self_service_browser_verification_flow) | **POST** /self-service/browser/flows/verification/complete | Complete the browser-based profile management flows
96
+ *OryHydraClient::PublicApi* | [**complete_self_service_browser_verification_flow**](docs/PublicApi.md#complete_self_service_browser_verification_flow) | **POST** /self-service/browser/flows/verification/{via}/complete | Complete the browser-based profile management flows
97
97
  *OryHydraClient::PublicApi* | [**get_self_service_browser_login_request**](docs/PublicApi.md#get_self_service_browser_login_request) | **GET** /self-service/browser/flows/requests/login | Get the request context of browser-based login user flows
98
98
  *OryHydraClient::PublicApi* | [**get_self_service_browser_profile_management_request**](docs/PublicApi.md#get_self_service_browser_profile_management_request) | **GET** /self-service/browser/flows/requests/profile | Get the request context of browser-based profile management flows
99
99
  *OryHydraClient::PublicApi* | [**get_self_service_browser_registration_request**](docs/PublicApi.md#get_self_service_browser_registration_request) | **GET** /self-service/browser/flows/requests/registration | Get the request context of browser-based registration user flows
@@ -104,7 +104,7 @@ Class | Method | HTTP request | Description
104
104
  *OryHydraClient::PublicApi* | [**initialize_self_service_browser_registration_flow**](docs/PublicApi.md#initialize_self_service_browser_registration_flow) | **GET** /self-service/browser/flows/registration | Initialize browser-based registration user flow
105
105
  *OryHydraClient::PublicApi* | [**initialize_self_service_browser_verification_flow**](docs/PublicApi.md#initialize_self_service_browser_verification_flow) | **GET** /self-service/browser/flows/verification/init/{via} | Initialize browser-based verification flow
106
106
  *OryHydraClient::PublicApi* | [**initialize_self_service_profile_management_flow**](docs/PublicApi.md#initialize_self_service_profile_management_flow) | **GET** /self-service/browser/flows/profile | Initialize browser-based profile management flow
107
- *OryHydraClient::PublicApi* | [**self_service_browser_verify**](docs/PublicApi.md#self_service_browser_verify) | **GET** /self-service/browser/flows/verification/confirm/{code} | Complete the browser-based verification flows
107
+ *OryHydraClient::PublicApi* | [**self_service_browser_verify**](docs/PublicApi.md#self_service_browser_verify) | **GET** /self-service/browser/flows/verification/{via}/confirm/{code} | Complete the browser-based verification flows
108
108
  *OryHydraClient::PublicApi* | [**whoami**](docs/PublicApi.md#whoami) | **GET** /sessions/whoami | Check who the current HTTP session belongs to
109
109
  *OryHydraClient::VersionApi* | [**get_version**](docs/VersionApi.md#get_version) | **GET** /version | Get service version
110
110
 
data/docs/PublicApi.md CHANGED
@@ -5,7 +5,7 @@ All URIs are relative to *http://localhost*
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**complete_self_service_browser_profile_management_flow**](PublicApi.md#complete_self_service_browser_profile_management_flow) | **POST** /self-service/browser/flows/profile/update | Complete the browser-based profile management flows
8
- [**complete_self_service_browser_verification_flow**](PublicApi.md#complete_self_service_browser_verification_flow) | **POST** /self-service/browser/flows/verification/complete | Complete the browser-based profile management flows
8
+ [**complete_self_service_browser_verification_flow**](PublicApi.md#complete_self_service_browser_verification_flow) | **POST** /self-service/browser/flows/verification/{via}/complete | Complete the browser-based profile management flows
9
9
  [**get_self_service_browser_login_request**](PublicApi.md#get_self_service_browser_login_request) | **GET** /self-service/browser/flows/requests/login | Get the request context of browser-based login user flows
10
10
  [**get_self_service_browser_profile_management_request**](PublicApi.md#get_self_service_browser_profile_management_request) | **GET** /self-service/browser/flows/requests/profile | Get the request context of browser-based profile management flows
11
11
  [**get_self_service_browser_registration_request**](PublicApi.md#get_self_service_browser_registration_request) | **GET** /self-service/browser/flows/requests/registration | Get the request context of browser-based registration user flows
@@ -16,7 +16,7 @@ Method | HTTP request | Description
16
16
  [**initialize_self_service_browser_registration_flow**](PublicApi.md#initialize_self_service_browser_registration_flow) | **GET** /self-service/browser/flows/registration | Initialize browser-based registration user flow
17
17
  [**initialize_self_service_browser_verification_flow**](PublicApi.md#initialize_self_service_browser_verification_flow) | **GET** /self-service/browser/flows/verification/init/{via} | Initialize browser-based verification flow
18
18
  [**initialize_self_service_profile_management_flow**](PublicApi.md#initialize_self_service_profile_management_flow) | **GET** /self-service/browser/flows/profile | Initialize browser-based profile management flow
19
- [**self_service_browser_verify**](PublicApi.md#self_service_browser_verify) | **GET** /self-service/browser/flows/verification/confirm/{code} | Complete the browser-based verification flows
19
+ [**self_service_browser_verify**](PublicApi.md#self_service_browser_verify) | **GET** /self-service/browser/flows/verification/{via}/confirm/{code} | Complete the browser-based verification flows
20
20
  [**whoami**](PublicApi.md#whoami) | **GET** /sessions/whoami | Check who the current HTTP session belongs to
21
21
 
22
22
 
@@ -71,7 +71,7 @@ No authorization required
71
71
 
72
72
  ## complete_self_service_browser_verification_flow
73
73
 
74
- > complete_self_service_browser_verification_flow(request)
74
+ > complete_self_service_browser_verification_flow(request, via)
75
75
 
76
76
  Complete the browser-based profile management flows
77
77
 
@@ -85,10 +85,11 @@ require 'ory-kratos-client'
85
85
 
86
86
  api_instance = OryHydraClient::PublicApi.new
87
87
  request = 'request_example' # String | Request is the Request ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/verify?request=abcde`).
88
+ via = 'via_example' # String | What to verify Currently only \"email\" is supported.
88
89
 
89
90
  begin
90
91
  #Complete the browser-based profile management flows
91
- api_instance.complete_self_service_browser_verification_flow(request)
92
+ api_instance.complete_self_service_browser_verification_flow(request, via)
92
93
  rescue OryHydraClient::ApiError => e
93
94
  puts "Exception when calling PublicApi->complete_self_service_browser_verification_flow: #{e}"
94
95
  end
@@ -100,6 +101,7 @@ end
100
101
  Name | Type | Description | Notes
101
102
  ------------- | ------------- | ------------- | -------------
102
103
  **request** | **String**| Request is the Request ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/verify?request=abcde`). |
104
+ **via** | **String**| What to verify Currently only \"email\" is supported. |
103
105
 
104
106
  ### Return type
105
107
 
@@ -568,7 +570,7 @@ No authorization required
568
570
 
569
571
  ## self_service_browser_verify
570
572
 
571
- > self_service_browser_verify(code)
573
+ > self_service_browser_verify(code, via)
572
574
 
573
575
  Complete the browser-based verification flows
574
576
 
@@ -582,10 +584,11 @@ require 'ory-kratos-client'
582
584
 
583
585
  api_instance = OryHydraClient::PublicApi.new
584
586
  code = 'code_example' # String |
587
+ via = 'via_example' # String | What to verify Currently only \"email\" is supported.
585
588
 
586
589
  begin
587
590
  #Complete the browser-based verification flows
588
- api_instance.self_service_browser_verify(code)
591
+ api_instance.self_service_browser_verify(code, via)
589
592
  rescue OryHydraClient::ApiError => e
590
593
  puts "Exception when calling PublicApi->self_service_browser_verify: #{e}"
591
594
  end
@@ -597,6 +600,7 @@ end
597
600
  Name | Type | Description | Notes
598
601
  ------------- | ------------- | ------------- | -------------
599
602
  **code** | **String**| |
603
+ **via** | **String**| What to verify Currently only \"email\" is supported. |
600
604
 
601
605
  ### Return type
602
606
 
@@ -93,19 +93,21 @@ module OryHydraClient
93
93
  # Complete the browser-based profile management flows
94
94
  # This endpoint completes a browser-based profile management flow. This is usually achieved by POSTing data to this endpoint. If the provided profile data is valid against the Identity's Traits JSON Schema, the data will be updated and the browser redirected to `url.profile_ui` for further steps. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...) and HTML Forms. More information can be found at [ORY Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
95
95
  # @param request [String] Request is the Request ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/verify?request=abcde`).
96
+ # @param via [String] What to verify Currently only \"email\" is supported.
96
97
  # @param [Hash] opts the optional parameters
97
98
  # @return [nil]
98
- def complete_self_service_browser_verification_flow(request, opts = {})
99
- complete_self_service_browser_verification_flow_with_http_info(request, opts)
99
+ def complete_self_service_browser_verification_flow(request, via, opts = {})
100
+ complete_self_service_browser_verification_flow_with_http_info(request, via, opts)
100
101
  nil
101
102
  end
102
103
 
103
104
  # Complete the browser-based profile management flows
104
105
  # This endpoint completes a browser-based profile management flow. This is usually achieved by POSTing data to this endpoint. If the provided profile data is valid against the Identity's Traits JSON Schema, the data will be updated and the browser redirected to `url.profile_ui` for further steps. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...) and HTML Forms. More information can be found at [ORY Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
105
106
  # @param request [String] Request is the Request ID The value for this parameter comes from `request` URL Query parameter sent to your application (e.g. `/verify?request=abcde`).
107
+ # @param via [String] What to verify Currently only \"email\" is supported.
106
108
  # @param [Hash] opts the optional parameters
107
109
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
108
- def complete_self_service_browser_verification_flow_with_http_info(request, opts = {})
110
+ def complete_self_service_browser_verification_flow_with_http_info(request, via, opts = {})
109
111
  if @api_client.config.debugging
110
112
  @api_client.config.logger.debug 'Calling API: PublicApi.complete_self_service_browser_verification_flow ...'
111
113
  end
@@ -113,8 +115,12 @@ module OryHydraClient
113
115
  if @api_client.config.client_side_validation && request.nil?
114
116
  fail ArgumentError, "Missing the required parameter 'request' when calling PublicApi.complete_self_service_browser_verification_flow"
115
117
  end
118
+ # verify the required parameter 'via' is set
119
+ if @api_client.config.client_side_validation && via.nil?
120
+ fail ArgumentError, "Missing the required parameter 'via' when calling PublicApi.complete_self_service_browser_verification_flow"
121
+ end
116
122
  # resource path
117
- local_var_path = '/self-service/browser/flows/verification/complete'
123
+ local_var_path = '/self-service/browser/flows/verification/{via}/complete'.sub('{' + 'via' + '}', CGI.escape(via.to_s))
118
124
 
119
125
  # query parameters
120
126
  query_params = opts[:query_params] || {}
@@ -753,19 +759,21 @@ module OryHydraClient
753
759
  # Complete the browser-based verification flows
754
760
  # This endpoint completes a browser-based verification flow. > This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...) and HTML Forms. More information can be found at [ORY Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
755
761
  # @param code [String]
762
+ # @param via [String] What to verify Currently only \&quot;email\&quot; is supported.
756
763
  # @param [Hash] opts the optional parameters
757
764
  # @return [nil]
758
- def self_service_browser_verify(code, opts = {})
759
- self_service_browser_verify_with_http_info(code, opts)
765
+ def self_service_browser_verify(code, via, opts = {})
766
+ self_service_browser_verify_with_http_info(code, via, opts)
760
767
  nil
761
768
  end
762
769
 
763
770
  # Complete the browser-based verification flows
764
771
  # This endpoint completes a browser-based verification flow. &gt; This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...) and HTML Forms. More information can be found at [ORY Kratos Email and Phone Verification Documentation](https://www.ory.sh/docs/kratos/selfservice/flows/verify-email-account-activation).
765
772
  # @param code [String]
773
+ # @param via [String] What to verify Currently only \&quot;email\&quot; is supported.
766
774
  # @param [Hash] opts the optional parameters
767
775
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
768
- def self_service_browser_verify_with_http_info(code, opts = {})
776
+ def self_service_browser_verify_with_http_info(code, via, opts = {})
769
777
  if @api_client.config.debugging
770
778
  @api_client.config.logger.debug 'Calling API: PublicApi.self_service_browser_verify ...'
771
779
  end
@@ -773,8 +781,12 @@ module OryHydraClient
773
781
  if @api_client.config.client_side_validation && code.nil?
774
782
  fail ArgumentError, "Missing the required parameter 'code' when calling PublicApi.self_service_browser_verify"
775
783
  end
784
+ # verify the required parameter 'via' is set
785
+ if @api_client.config.client_side_validation && via.nil?
786
+ fail ArgumentError, "Missing the required parameter 'via' when calling PublicApi.self_service_browser_verify"
787
+ end
776
788
  # resource path
777
- local_var_path = '/self-service/browser/flows/verification/confirm/{code}'.sub('{' + 'code' + '}', CGI.escape(code.to_s))
789
+ local_var_path = '/self-service/browser/flows/verification/{via}/confirm/{code}'.sub('{' + 'code' + '}', CGI.escape(code.to_s)).sub('{' + 'via' + '}', CGI.escape(via.to_s))
778
790
 
779
791
  # query parameters
780
792
  query_params = opts[:query_params] || {}
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module OryHydraClient
14
- VERSION = '0.1.0.alpha6'
14
+ VERSION = '0.1.1.alpha1'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ory-kratos-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.alpha6
4
+ version: 0.1.1.alpha1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ORY GmbH
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-16 00:00:00.000000000 Z
11
+ date: 2020-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -198,34 +198,34 @@ signing_key:
198
198
  specification_version: 4
199
199
  summary: Ory Kratos Ruby Gem
200
200
  test_files:
201
- - spec/api/version_api_spec.rb
201
+ - spec/api/public_api_spec.rb
202
202
  - spec/api/common_api_spec.rb
203
203
  - spec/api/admin_api_spec.rb
204
204
  - spec/api/health_api_spec.rb
205
- - spec/api/public_api_spec.rb
205
+ - spec/api/version_api_spec.rb
206
206
  - spec/api_client_spec.rb
207
207
  - spec/configuration_spec.rb
208
- - spec/models/verifiable_address_spec.rb
209
- - spec/models/health_status_spec.rb
210
- - spec/models/verification_request_spec.rb
211
- - spec/models/registration_request_method_config_spec.rb
208
+ - spec/models/form_spec.rb
209
+ - spec/models/identity_spec.rb
210
+ - spec/models/error_container_spec.rb
211
+ - spec/models/version_spec.rb
212
+ - spec/models/oidc_strategy_credentials_config_spec.rb
212
213
  - spec/models/error_spec.rb
213
- - spec/models/login_request_method_config_spec.rb
214
+ - spec/models/verifiable_address_spec.rb
214
215
  - spec/models/health_not_ready_status_spec.rb
215
- - spec/models/version_spec.rb
216
- - spec/models/login_request_spec.rb
217
- - spec/models/oidc_strategy_request_method_spec.rb
218
- - spec/models/identity_spec.rb
219
- - spec/models/form_spec.rb
220
- - spec/models/registration_request_spec.rb
221
- - spec/models/login_request_method_spec.rb
222
- - spec/models/session_spec.rb
216
+ - spec/models/login_request_method_config_spec.rb
223
217
  - spec/models/form_field_spec.rb
224
- - spec/models/oidc_strategy_credentials_config_spec.rb
218
+ - spec/models/verification_request_spec.rb
219
+ - spec/models/registration_request_method_config_spec.rb
225
220
  - spec/models/complete_self_service_browser_profile_management_flow_payload_spec.rb
226
221
  - spec/models/profile_management_request_spec.rb
222
+ - spec/models/login_request_method_spec.rb
223
+ - spec/models/generic_error_spec.rb
224
+ - spec/models/login_request_spec.rb
225
+ - spec/models/health_status_spec.rb
226
+ - spec/models/oidc_strategy_request_method_spec.rb
227
227
  - spec/models/generic_error_payload_spec.rb
228
+ - spec/models/session_spec.rb
228
229
  - spec/models/registration_request_method_spec.rb
229
- - spec/models/error_container_spec.rb
230
- - spec/models/generic_error_spec.rb
230
+ - spec/models/registration_request_spec.rb
231
231
  - spec/spec_helper.rb