ory-kratos-client 0.3.0.alpha1 → 0.4.6.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +14 -6
  4. data/docs/AdminApi.md +53 -5
  5. data/docs/CommonApi.md +53 -5
  6. data/docs/Form.md +2 -2
  7. data/docs/FormField.md +3 -3
  8. data/docs/GenericErrorPayload.md +1 -1
  9. data/docs/Identity.md +9 -7
  10. data/docs/LoginRequest.md +2 -0
  11. data/docs/LoginRequestMethodConfig.md +2 -2
  12. data/docs/Message.md +23 -0
  13. data/docs/PublicApi.md +153 -13
  14. data/docs/RecoveryAddress.md +21 -0
  15. data/docs/RecoveryRequest.md +31 -0
  16. data/docs/RecoveryRequestMethod.md +19 -0
  17. data/docs/RegistrationRequest.md +2 -0
  18. data/docs/RegistrationRequestMethodConfig.md +2 -2
  19. data/docs/RequestMethodConfig.md +2 -2
  20. data/docs/SettingsRequest.md +4 -2
  21. data/docs/VerificationRequest.md +2 -0
  22. data/lib/ory-kratos-client.rb +6 -3
  23. data/lib/ory-kratos-client/api/admin_api.rb +73 -10
  24. data/lib/ory-kratos-client/api/common_api.rb +73 -10
  25. data/lib/ory-kratos-client/api/health_api.rb +2 -2
  26. data/lib/ory-kratos-client/api/public_api.rb +198 -20
  27. data/lib/ory-kratos-client/api/version_api.rb +2 -2
  28. data/lib/ory-kratos-client/api_client.rb +9 -7
  29. data/lib/ory-kratos-client/api_error.rb +2 -2
  30. data/lib/ory-kratos-client/configuration.rb +2 -2
  31. data/lib/ory-kratos-client/models/complete_self_service_browser_settings_strategy_profile_flow_payload.rb +2 -2
  32. data/lib/ory-kratos-client/models/error_container.rb +2 -2
  33. data/lib/ory-kratos-client/models/form.rb +14 -15
  34. data/lib/ory-kratos-client/models/form_field.rb +11 -11
  35. data/lib/ory-kratos-client/models/generic_error.rb +2 -2
  36. data/lib/ory-kratos-client/models/generic_error_payload.rb +4 -6
  37. data/lib/ory-kratos-client/models/health_not_ready_status.rb +2 -2
  38. data/lib/ory-kratos-client/models/health_status.rb +2 -2
  39. data/lib/ory-kratos-client/models/identity.rb +48 -35
  40. data/lib/ory-kratos-client/models/login_request.rb +14 -3
  41. data/lib/ory-kratos-client/models/login_request_method.rb +2 -2
  42. data/lib/ory-kratos-client/models/login_request_method_config.rb +14 -15
  43. data/lib/ory-kratos-client/models/message.rb +233 -0
  44. data/lib/ory-kratos-client/models/provider_credentials_config.rb +2 -2
  45. data/lib/ory-kratos-client/models/recovery_address.rb +239 -0
  46. data/lib/ory-kratos-client/models/recovery_request.rb +309 -0
  47. data/lib/ory-kratos-client/models/recovery_request_method.rb +216 -0
  48. data/lib/ory-kratos-client/models/registration_request.rb +14 -3
  49. data/lib/ory-kratos-client/models/registration_request_method.rb +2 -2
  50. data/lib/ory-kratos-client/models/registration_request_method_config.rb +14 -15
  51. data/lib/ory-kratos-client/models/request_method_config.rb +14 -15
  52. data/lib/ory-kratos-client/models/session.rb +2 -2
  53. data/lib/ory-kratos-client/models/settings_request.rb +23 -13
  54. data/lib/ory-kratos-client/models/settings_request_method.rb +2 -2
  55. data/lib/ory-kratos-client/models/verifiable_address.rb +2 -2
  56. data/lib/ory-kratos-client/models/verification_request.rb +14 -3
  57. data/lib/ory-kratos-client/models/version.rb +2 -2
  58. data/lib/ory-kratos-client/version.rb +3 -3
  59. data/ory-kratos-client.gemspec +2 -2
  60. data/spec/models/message_spec.rb +59 -0
  61. data/spec/models/recovery_address_spec.rb +53 -0
  62. data/spec/models/recovery_request_method_spec.rb +47 -0
  63. data/spec/models/recovery_request_spec.rb +83 -0
  64. metadata +40 -24
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Welcome to the ORY Kratos HTTP API documentation!
5
5
 
6
- The version of the OpenAPI document: latest
6
+ The version of the OpenAPI document: v0.4.6-alpha.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -25,6 +25,8 @@ module OryHydraClient
25
25
  # IssuedAt is the time (UTC) when the request occurred.
26
26
  attr_accessor :issued_at
27
27
 
28
+ attr_accessor :messages
29
+
28
30
  # Methods contains context for all enabled registration methods. If a registration request has been processed, but for example the password is incorrect, this will contain error messages.
29
31
  attr_accessor :methods
30
32
 
@@ -38,6 +40,7 @@ module OryHydraClient
38
40
  :'expires_at' => :'expires_at',
39
41
  :'id' => :'id',
40
42
  :'issued_at' => :'issued_at',
43
+ :'messages' => :'messages',
41
44
  :'methods' => :'methods',
42
45
  :'request_url' => :'request_url'
43
46
  }
@@ -50,6 +53,7 @@ module OryHydraClient
50
53
  :'expires_at' => :'DateTime',
51
54
  :'id' => :'String',
52
55
  :'issued_at' => :'DateTime',
56
+ :'messages' => :'Array<Message>',
53
57
  :'methods' => :'Hash<String, RegistrationRequestMethod>',
54
58
  :'request_url' => :'String'
55
59
  }
@@ -92,6 +96,12 @@ module OryHydraClient
92
96
  self.issued_at = attributes[:'issued_at']
93
97
  end
94
98
 
99
+ if attributes.key?(:'messages')
100
+ if (value = attributes[:'messages']).is_a?(Array)
101
+ self.messages = value
102
+ end
103
+ end
104
+
95
105
  if attributes.key?(:'methods')
96
106
  if (value = attributes[:'methods']).is_a?(Hash)
97
107
  self.methods = value
@@ -150,6 +160,7 @@ module OryHydraClient
150
160
  expires_at == o.expires_at &&
151
161
  id == o.id &&
152
162
  issued_at == o.issued_at &&
163
+ messages == o.messages &&
153
164
  methods == o.methods &&
154
165
  request_url == o.request_url
155
166
  end
@@ -163,7 +174,7 @@ module OryHydraClient
163
174
  # Calculates hash code according to all attributes.
164
175
  # @return [Integer] Hash code
165
176
  def hash
166
- [active, expires_at, id, issued_at, methods, request_url].hash
177
+ [active, expires_at, id, issued_at, messages, methods, request_url].hash
167
178
  end
168
179
 
169
180
  # Builds the object from hash
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Welcome to the ORY Kratos HTTP API documentation!
5
5
 
6
- The version of the OpenAPI document: latest
6
+ The version of the OpenAPI document: v0.4.6-alpha.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Welcome to the ORY Kratos HTTP API documentation!
5
5
 
6
- The version of the OpenAPI document: latest
6
+ The version of the OpenAPI document: v0.4.6-alpha.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -17,12 +17,11 @@ module OryHydraClient
17
17
  # Action should be used as the form action URL `<form action=\"{{ .Action }}\" method=\"post\">`.
18
18
  attr_accessor :action
19
19
 
20
- # Errors contains all form errors. These will be duplicates of the individual field errors.
21
- attr_accessor :errors
22
-
23
20
  # Fields contains multiple fields
24
21
  attr_accessor :fields
25
22
 
23
+ attr_accessor :messages
24
+
26
25
  # Method is the form method (e.g. POST)
27
26
  attr_accessor :method
28
27
 
@@ -33,8 +32,8 @@ module OryHydraClient
33
32
  def self.attribute_map
34
33
  {
35
34
  :'action' => :'action',
36
- :'errors' => :'errors',
37
35
  :'fields' => :'fields',
36
+ :'messages' => :'messages',
38
37
  :'method' => :'method',
39
38
  :'providers' => :'providers'
40
39
  }
@@ -44,8 +43,8 @@ module OryHydraClient
44
43
  def self.openapi_types
45
44
  {
46
45
  :'action' => :'String',
47
- :'errors' => :'Array<Error>',
48
46
  :'fields' => :'Array<FormField>',
47
+ :'messages' => :'Array<Message>',
49
48
  :'method' => :'String',
50
49
  :'providers' => :'Array<FormField>'
51
50
  }
@@ -76,18 +75,18 @@ module OryHydraClient
76
75
  self.action = attributes[:'action']
77
76
  end
78
77
 
79
- if attributes.key?(:'errors')
80
- if (value = attributes[:'errors']).is_a?(Array)
81
- self.errors = value
82
- end
83
- end
84
-
85
78
  if attributes.key?(:'fields')
86
79
  if (value = attributes[:'fields']).is_a?(Array)
87
80
  self.fields = value
88
81
  end
89
82
  end
90
83
 
84
+ if attributes.key?(:'messages')
85
+ if (value = attributes[:'messages']).is_a?(Array)
86
+ self.messages = value
87
+ end
88
+ end
89
+
91
90
  if attributes.key?(:'method')
92
91
  self.method = attributes[:'method']
93
92
  end
@@ -133,8 +132,8 @@ module OryHydraClient
133
132
  return true if self.equal?(o)
134
133
  self.class == o.class &&
135
134
  action == o.action &&
136
- errors == o.errors &&
137
135
  fields == o.fields &&
136
+ messages == o.messages &&
138
137
  method == o.method &&
139
138
  providers == o.providers
140
139
  end
@@ -148,7 +147,7 @@ module OryHydraClient
148
147
  # Calculates hash code according to all attributes.
149
148
  # @return [Integer] Hash code
150
149
  def hash
151
- [action, errors, fields, method, providers].hash
150
+ [action, fields, messages, method, providers].hash
152
151
  end
153
152
 
154
153
  # Builds the object from hash
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Welcome to the ORY Kratos HTTP API documentation!
5
5
 
6
- The version of the OpenAPI document: latest
6
+ The version of the OpenAPI document: v0.4.6-alpha.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -17,12 +17,11 @@ module OryHydraClient
17
17
  # Action should be used as the form action URL `<form action=\"{{ .Action }}\" method=\"post\">`.
18
18
  attr_accessor :action
19
19
 
20
- # Errors contains all form errors. These will be duplicates of the individual field errors.
21
- attr_accessor :errors
22
-
23
20
  # Fields contains multiple fields
24
21
  attr_accessor :fields
25
22
 
23
+ attr_accessor :messages
24
+
26
25
  # Method is the form method (e.g. POST)
27
26
  attr_accessor :method
28
27
 
@@ -30,8 +29,8 @@ module OryHydraClient
30
29
  def self.attribute_map
31
30
  {
32
31
  :'action' => :'action',
33
- :'errors' => :'errors',
34
32
  :'fields' => :'fields',
33
+ :'messages' => :'messages',
35
34
  :'method' => :'method'
36
35
  }
37
36
  end
@@ -40,8 +39,8 @@ module OryHydraClient
40
39
  def self.openapi_types
41
40
  {
42
41
  :'action' => :'String',
43
- :'errors' => :'Array<Error>',
44
42
  :'fields' => :'Array<FormField>',
43
+ :'messages' => :'Array<Message>',
45
44
  :'method' => :'String'
46
45
  }
47
46
  end
@@ -71,18 +70,18 @@ module OryHydraClient
71
70
  self.action = attributes[:'action']
72
71
  end
73
72
 
74
- if attributes.key?(:'errors')
75
- if (value = attributes[:'errors']).is_a?(Array)
76
- self.errors = value
77
- end
78
- end
79
-
80
73
  if attributes.key?(:'fields')
81
74
  if (value = attributes[:'fields']).is_a?(Array)
82
75
  self.fields = value
83
76
  end
84
77
  end
85
78
 
79
+ if attributes.key?(:'messages')
80
+ if (value = attributes[:'messages']).is_a?(Array)
81
+ self.messages = value
82
+ end
83
+ end
84
+
86
85
  if attributes.key?(:'method')
87
86
  self.method = attributes[:'method']
88
87
  end
@@ -122,8 +121,8 @@ module OryHydraClient
122
121
  return true if self.equal?(o)
123
122
  self.class == o.class &&
124
123
  action == o.action &&
125
- errors == o.errors &&
126
124
  fields == o.fields &&
125
+ messages == o.messages &&
127
126
  method == o.method
128
127
  end
129
128
 
@@ -136,7 +135,7 @@ module OryHydraClient
136
135
  # Calculates hash code according to all attributes.
137
136
  # @return [Integer] Hash code
138
137
  def hash
139
- [action, errors, fields, method].hash
138
+ [action, fields, messages, method].hash
140
139
  end
141
140
 
142
141
  # Builds the object from hash
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Welcome to the ORY Kratos HTTP API documentation!
5
5
 
6
- The version of the OpenAPI document: latest
6
+ The version of the OpenAPI document: v0.4.6-alpha.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Welcome to the ORY Kratos HTTP API documentation!
5
5
 
6
- The version of the OpenAPI document: latest
6
+ The version of the OpenAPI document: v0.4.6-alpha.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -28,14 +28,15 @@ module OryHydraClient
28
28
  # IssuedAt is the time (UTC) when the request occurred.
29
29
  attr_accessor :issued_at
30
30
 
31
+ attr_accessor :messages
32
+
31
33
  # Methods contains context for all enabled registration methods. If a registration request has been processed, but for example the password is incorrect, this will contain error messages.
32
34
  attr_accessor :methods
33
35
 
34
36
  # RequestURL is the initial URL that was requested from ORY Kratos. It can be used to forward information contained in the URL's path or query for example.
35
37
  attr_accessor :request_url
36
38
 
37
- # UpdateSuccessful, if true, indicates that the settings request has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a request with invalid (e.g. \"please use a valid phone number\") data was sent.
38
- attr_accessor :update_successful
39
+ attr_accessor :state
39
40
 
40
41
  # Attribute mapping from ruby-style variable name to JSON key.
41
42
  def self.attribute_map
@@ -45,9 +46,10 @@ module OryHydraClient
45
46
  :'id' => :'id',
46
47
  :'identity' => :'identity',
47
48
  :'issued_at' => :'issued_at',
49
+ :'messages' => :'messages',
48
50
  :'methods' => :'methods',
49
51
  :'request_url' => :'request_url',
50
- :'update_successful' => :'update_successful'
52
+ :'state' => :'state'
51
53
  }
52
54
  end
53
55
 
@@ -59,9 +61,10 @@ module OryHydraClient
59
61
  :'id' => :'String',
60
62
  :'identity' => :'Identity',
61
63
  :'issued_at' => :'DateTime',
64
+ :'messages' => :'Array<Message>',
62
65
  :'methods' => :'Hash<String, SettingsRequestMethod>',
63
66
  :'request_url' => :'String',
64
- :'update_successful' => :'Boolean'
67
+ :'state' => :'String'
65
68
  }
66
69
  end
67
70
 
@@ -106,6 +109,12 @@ module OryHydraClient
106
109
  self.issued_at = attributes[:'issued_at']
107
110
  end
108
111
 
112
+ if attributes.key?(:'messages')
113
+ if (value = attributes[:'messages']).is_a?(Array)
114
+ self.messages = value
115
+ end
116
+ end
117
+
109
118
  if attributes.key?(:'methods')
110
119
  if (value = attributes[:'methods']).is_a?(Hash)
111
120
  self.methods = value
@@ -116,8 +125,8 @@ module OryHydraClient
116
125
  self.request_url = attributes[:'request_url']
117
126
  end
118
127
 
119
- if attributes.key?(:'update_successful')
120
- self.update_successful = attributes[:'update_successful']
128
+ if attributes.key?(:'state')
129
+ self.state = attributes[:'state']
121
130
  end
122
131
  end
123
132
 
@@ -149,8 +158,8 @@ module OryHydraClient
149
158
  invalid_properties.push('invalid value for "request_url", request_url cannot be nil.')
150
159
  end
151
160
 
152
- if @update_successful.nil?
153
- invalid_properties.push('invalid value for "update_successful", update_successful cannot be nil.')
161
+ if @state.nil?
162
+ invalid_properties.push('invalid value for "state", state cannot be nil.')
154
163
  end
155
164
 
156
165
  invalid_properties
@@ -165,7 +174,7 @@ module OryHydraClient
165
174
  return false if @issued_at.nil?
166
175
  return false if @methods.nil?
167
176
  return false if @request_url.nil?
168
- return false if @update_successful.nil?
177
+ return false if @state.nil?
169
178
  true
170
179
  end
171
180
 
@@ -179,9 +188,10 @@ module OryHydraClient
179
188
  id == o.id &&
180
189
  identity == o.identity &&
181
190
  issued_at == o.issued_at &&
191
+ messages == o.messages &&
182
192
  methods == o.methods &&
183
193
  request_url == o.request_url &&
184
- update_successful == o.update_successful
194
+ state == o.state
185
195
  end
186
196
 
187
197
  # @see the `==` method
@@ -193,7 +203,7 @@ module OryHydraClient
193
203
  # Calculates hash code according to all attributes.
194
204
  # @return [Integer] Hash code
195
205
  def hash
196
- [active, expires_at, id, identity, issued_at, methods, request_url, update_successful].hash
206
+ [active, expires_at, id, identity, issued_at, messages, methods, request_url, state].hash
197
207
  end
198
208
 
199
209
  # Builds the object from hash
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Welcome to the ORY Kratos HTTP API documentation!
5
5
 
6
- The version of the OpenAPI document: latest
6
+ The version of the OpenAPI document: v0.4.6-alpha.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Welcome to the ORY Kratos HTTP API documentation!
5
5
 
6
- The version of the OpenAPI document: latest
6
+ The version of the OpenAPI document: v0.4.6-alpha.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Welcome to the ORY Kratos HTTP API documentation!
5
5
 
6
- The version of the OpenAPI document: latest
6
+ The version of the OpenAPI document: v0.4.6-alpha.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -25,6 +25,8 @@ module OryHydraClient
25
25
  # IssuedAt is the time (UTC) when the request occurred.
26
26
  attr_accessor :issued_at
27
27
 
28
+ attr_accessor :messages
29
+
28
30
  # RequestURL is the initial URL that was requested from ORY Kratos. It can be used to forward information contained in the URL's path or query for example.
29
31
  attr_accessor :request_url
30
32
 
@@ -40,6 +42,7 @@ module OryHydraClient
40
42
  :'form' => :'form',
41
43
  :'id' => :'id',
42
44
  :'issued_at' => :'issued_at',
45
+ :'messages' => :'messages',
43
46
  :'request_url' => :'request_url',
44
47
  :'success' => :'success',
45
48
  :'via' => :'via'
@@ -53,6 +56,7 @@ module OryHydraClient
53
56
  :'form' => :'Form',
54
57
  :'id' => :'String',
55
58
  :'issued_at' => :'DateTime',
59
+ :'messages' => :'Array<Message>',
56
60
  :'request_url' => :'String',
57
61
  :'success' => :'Boolean',
58
62
  :'via' => :'String'
@@ -96,6 +100,12 @@ module OryHydraClient
96
100
  self.issued_at = attributes[:'issued_at']
97
101
  end
98
102
 
103
+ if attributes.key?(:'messages')
104
+ if (value = attributes[:'messages']).is_a?(Array)
105
+ self.messages = value
106
+ end
107
+ end
108
+
99
109
  if attributes.key?(:'request_url')
100
110
  self.request_url = attributes[:'request_url']
101
111
  end
@@ -131,6 +141,7 @@ module OryHydraClient
131
141
  form == o.form &&
132
142
  id == o.id &&
133
143
  issued_at == o.issued_at &&
144
+ messages == o.messages &&
134
145
  request_url == o.request_url &&
135
146
  success == o.success &&
136
147
  via == o.via
@@ -145,7 +156,7 @@ module OryHydraClient
145
156
  # Calculates hash code according to all attributes.
146
157
  # @return [Integer] Hash code
147
158
  def hash
148
- [expires_at, form, id, issued_at, request_url, success, via].hash
159
+ [expires_at, form, id, issued_at, messages, request_url, success, via].hash
149
160
  end
150
161
 
151
162
  # Builds the object from hash