ory-kratos-client 0.1.1.alpha1 → 0.5.0.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +86 -48
  4. data/docs/AdminApi.md +290 -85
  5. data/docs/CommonApi.md +111 -16
  6. data/docs/CompleteSelfServiceBrowserSettingsStrategyProfileFlowPayload.md +19 -0
  7. data/docs/CompleteSelfServiceLoginFlowWithPasswordMethod.md +21 -0
  8. data/docs/CompleteSelfServiceRecoveryFlowWithLinkMethod.md +19 -0
  9. data/docs/CompleteSelfServiceSettingsFlowWithPasswordMethod.md +19 -0
  10. data/docs/CompleteSelfServiceVerificationFlowWithLinkMethod.md +19 -0
  11. data/docs/CreateIdentity.md +19 -0
  12. data/docs/CreateRecoveryLink.md +19 -0
  13. data/docs/ErrorContainer.md +2 -2
  14. data/docs/Form.md +3 -3
  15. data/docs/FormField.md +8 -8
  16. data/docs/GenericErrorPayload.md +1 -1
  17. data/docs/Identity.md +9 -7
  18. data/docs/LoginFlow.md +33 -0
  19. data/docs/LoginFlowMethod.md +19 -0
  20. data/docs/LoginFlowMethodConfig.md +25 -0
  21. data/docs/LoginRequest.md +4 -0
  22. data/docs/LoginRequestMethodConfig.md +3 -3
  23. data/docs/LoginViaApiResponse.md +19 -0
  24. data/docs/Message.md +23 -0
  25. data/docs/ProviderCredentialsConfig.md +19 -0
  26. data/docs/PublicApi.md +806 -141
  27. data/docs/RecoveryAddress.md +21 -0
  28. data/docs/RecoveryFlow.md +33 -0
  29. data/docs/RecoveryFlowMethod.md +19 -0
  30. data/docs/RecoveryFlowMethodConfig.md +23 -0
  31. data/docs/RecoveryLink.md +19 -0
  32. data/docs/RecoveryRequest.md +31 -0
  33. data/docs/RecoveryRequestMethod.md +19 -0
  34. data/docs/RegistrationFlow.md +31 -0
  35. data/docs/RegistrationFlowMethod.md +19 -0
  36. data/docs/RegistrationFlowMethodConfig.md +25 -0
  37. data/docs/RegistrationRequest.md +3 -1
  38. data/docs/RegistrationRequestMethodConfig.md +3 -3
  39. data/docs/RegistrationViaApiResponse.md +21 -0
  40. data/docs/RequestMethodConfig.md +23 -0
  41. data/docs/RevokeSession.md +17 -0
  42. data/docs/Session.md +6 -4
  43. data/docs/SettingsFlow.md +35 -0
  44. data/docs/SettingsFlowMethod.md +19 -0
  45. data/docs/SettingsFlowMethodConfig.md +23 -0
  46. data/docs/SettingsRequest.md +33 -0
  47. data/docs/SettingsRequestMethod.md +19 -0
  48. data/docs/SettingsViaApiResponse.md +19 -0
  49. data/docs/UpdateIdentity.md +19 -0
  50. data/docs/VerifiableAddress.md +4 -4
  51. data/docs/VerificationFlow.md +33 -0
  52. data/docs/VerificationFlowMethod.md +19 -0
  53. data/docs/VerificationFlowMethodConfig.md +23 -0
  54. data/docs/VerificationRequest.md +3 -1
  55. data/lib/ory-kratos-client.rb +31 -14
  56. data/lib/ory-kratos-client/api/admin_api.rb +379 -128
  57. data/lib/ory-kratos-client/api/common_api.rb +150 -27
  58. data/lib/ory-kratos-client/api/health_api.rb +2 -2
  59. data/lib/ory-kratos-client/api/public_api.rb +1000 -234
  60. data/lib/ory-kratos-client/api/version_api.rb +2 -2
  61. data/lib/ory-kratos-client/api_client.rb +10 -7
  62. data/lib/ory-kratos-client/api_error.rb +2 -2
  63. data/lib/ory-kratos-client/configuration.rb +9 -2
  64. data/lib/ory-kratos-client/models/complete_self_service_browser_settings_strategy_profile_flow_payload.rb +222 -0
  65. data/lib/ory-kratos-client/models/complete_self_service_login_flow_with_password_method.rb +227 -0
  66. data/lib/ory-kratos-client/models/complete_self_service_recovery_flow_with_link_method.rb +217 -0
  67. data/lib/ory-kratos-client/models/complete_self_service_settings_flow_with_password_method.rb +222 -0
  68. data/lib/ory-kratos-client/models/complete_self_service_verification_flow_with_link_method.rb +217 -0
  69. data/lib/ory-kratos-client/models/create_identity.rb +227 -0
  70. data/lib/ory-kratos-client/models/create_recovery_link.rb +238 -0
  71. data/lib/ory-kratos-client/models/error_container.rb +13 -2
  72. data/lib/ory-kratos-client/models/form.rb +15 -16
  73. data/lib/ory-kratos-client/models/form_field.rb +16 -22
  74. data/lib/ory-kratos-client/models/generic_error.rb +2 -2
  75. data/lib/ory-kratos-client/models/generic_error_payload.rb +4 -7
  76. data/lib/ory-kratos-client/models/health_not_ready_status.rb +2 -2
  77. data/lib/ory-kratos-client/models/health_status.rb +2 -2
  78. data/lib/ory-kratos-client/models/identity.rb +53 -35
  79. data/lib/ory-kratos-client/models/login_flow.rb +315 -0
  80. data/lib/ory-kratos-client/models/login_flow_method.rb +226 -0
  81. data/lib/ory-kratos-client/models/login_flow_method_config.rb +267 -0
  82. data/lib/ory-kratos-client/models/login_request.rb +24 -3
  83. data/lib/ory-kratos-client/models/login_request_method.rb +2 -2
  84. data/lib/ory-kratos-client/models/login_request_method_config.rb +15 -16
  85. data/lib/ory-kratos-client/models/login_via_api_response.rb +227 -0
  86. data/lib/ory-kratos-client/models/message.rb +234 -0
  87. data/lib/ory-kratos-client/models/provider_credentials_config.rb +215 -0
  88. data/lib/ory-kratos-client/models/recovery_address.rb +239 -0
  89. data/lib/ory-kratos-client/models/recovery_flow.rb +319 -0
  90. data/lib/ory-kratos-client/models/recovery_flow_method.rb +226 -0
  91. data/lib/ory-kratos-client/models/recovery_flow_method_config.rb +255 -0
  92. data/lib/ory-kratos-client/models/recovery_link.rb +222 -0
  93. data/lib/ory-kratos-client/models/recovery_request.rb +309 -0
  94. data/lib/ory-kratos-client/models/recovery_request_method.rb +216 -0
  95. data/lib/ory-kratos-client/models/registration_flow.rb +304 -0
  96. data/lib/ory-kratos-client/models/registration_flow_method.rb +226 -0
  97. data/lib/ory-kratos-client/models/registration_flow_method_config.rb +267 -0
  98. data/lib/ory-kratos-client/models/registration_request.rb +14 -8
  99. data/lib/ory-kratos-client/models/registration_request_method.rb +2 -2
  100. data/lib/ory-kratos-client/models/registration_request_method_config.rb +15 -16
  101. data/lib/ory-kratos-client/models/registration_via_api_response.rb +236 -0
  102. data/lib/ory-kratos-client/models/request_method_config.rb +255 -0
  103. data/lib/ory-kratos-client/models/revoke_session.rb +212 -0
  104. data/lib/ory-kratos-client/models/session.rb +29 -20
  105. data/lib/ory-kratos-client/models/settings_flow.rb +333 -0
  106. data/lib/ory-kratos-client/models/settings_flow_method.rb +226 -0
  107. data/lib/ory-kratos-client/models/settings_flow_method_config.rb +255 -0
  108. data/lib/ory-kratos-client/models/settings_request.rb +323 -0
  109. data/lib/ory-kratos-client/models/settings_request_method.rb +216 -0
  110. data/lib/ory-kratos-client/models/settings_via_api_response.rb +226 -0
  111. data/lib/ory-kratos-client/models/update_identity.rb +222 -0
  112. data/lib/ory-kratos-client/models/verifiable_address.rb +17 -22
  113. data/lib/ory-kratos-client/models/verification_flow.rb +299 -0
  114. data/lib/ory-kratos-client/models/verification_flow_method.rb +226 -0
  115. data/lib/ory-kratos-client/models/verification_flow_method_config.rb +255 -0
  116. data/lib/ory-kratos-client/models/verification_request.rb +15 -4
  117. data/lib/ory-kratos-client/models/version.rb +2 -2
  118. data/lib/ory-kratos-client/version.rb +3 -3
  119. data/ory-kratos-client.gemspec +2 -2
  120. data/spec/models/complete_self_service_browser_settings_strategy_profile_flow_payload_spec.rb +47 -0
  121. data/spec/models/complete_self_service_login_flow_with_password_method_spec.rb +53 -0
  122. data/spec/models/complete_self_service_recovery_flow_with_link_method_spec.rb +47 -0
  123. data/spec/models/complete_self_service_settings_flow_with_password_method_spec.rb +47 -0
  124. data/spec/models/complete_self_service_verification_flow_with_link_method_spec.rb +47 -0
  125. data/spec/models/create_identity_spec.rb +47 -0
  126. data/spec/models/create_recovery_link_spec.rb +47 -0
  127. data/spec/models/login_flow_method_config_spec.rb +65 -0
  128. data/spec/models/login_flow_method_spec.rb +47 -0
  129. data/spec/models/login_flow_spec.rb +89 -0
  130. data/spec/models/login_via_api_response_spec.rb +47 -0
  131. data/spec/models/message_spec.rb +59 -0
  132. data/spec/models/provider_credentials_config_spec.rb +47 -0
  133. data/spec/models/recovery_address_spec.rb +53 -0
  134. data/spec/models/recovery_flow_method_config_spec.rb +59 -0
  135. data/spec/models/recovery_flow_method_spec.rb +47 -0
  136. data/spec/models/recovery_flow_spec.rb +89 -0
  137. data/spec/models/recovery_link_spec.rb +47 -0
  138. data/spec/models/recovery_request_method_spec.rb +47 -0
  139. data/spec/models/recovery_request_spec.rb +83 -0
  140. data/spec/models/registration_flow_method_config_spec.rb +65 -0
  141. data/spec/models/registration_flow_method_spec.rb +47 -0
  142. data/spec/models/registration_flow_spec.rb +83 -0
  143. data/spec/models/registration_via_api_response_spec.rb +53 -0
  144. data/spec/models/request_method_config_spec.rb +59 -0
  145. data/spec/models/revoke_session_spec.rb +41 -0
  146. data/spec/models/settings_flow_method_config_spec.rb +59 -0
  147. data/spec/models/settings_flow_method_spec.rb +47 -0
  148. data/spec/models/settings_flow_spec.rb +95 -0
  149. data/spec/models/settings_request_method_spec.rb +47 -0
  150. data/spec/models/settings_request_spec.rb +83 -0
  151. data/spec/models/settings_via_api_response_spec.rb +47 -0
  152. data/spec/models/update_identity_spec.rb +47 -0
  153. data/spec/models/verification_flow_method_config_spec.rb +59 -0
  154. data/spec/models/verification_flow_method_spec.rb +47 -0
  155. data/spec/models/verification_flow_spec.rb +89 -0
  156. metadata +161 -17
@@ -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.5.0-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
 
@@ -14,6 +14,7 @@ require 'date'
14
14
 
15
15
  module OryHydraClient
16
16
  class ErrorContainer
17
+ # Errors in the container
17
18
  attr_accessor :errors
18
19
 
19
20
  attr_accessor :id
@@ -68,12 +69,22 @@ module OryHydraClient
68
69
  # @return Array for valid properties with the reasons
69
70
  def list_invalid_properties
70
71
  invalid_properties = Array.new
72
+ if @errors.nil?
73
+ invalid_properties.push('invalid value for "errors", errors cannot be nil.')
74
+ end
75
+
76
+ if @id.nil?
77
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
78
+ end
79
+
71
80
  invalid_properties
72
81
  end
73
82
 
74
83
  # Check to see if the all the properties in the model are valid
75
84
  # @return true if the model is valid
76
85
  def valid?
86
+ return false if @errors.nil?
87
+ return false if @id.nil?
77
88
  true
78
89
  end
79
90
 
@@ -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
 
@@ -15,15 +15,14 @@ require 'date'
15
15
  module OryHydraClient
16
16
  # HTMLForm represents a HTML Form. The container can work with both HTTP Form and JSON requests
17
17
  class Form
18
- # Action should be used as the form action URL (<form action=\"{{ .Action }}\" method=\"post\">).
18
+ # Action should be used as the form action URL `<form action=\"{{ .Action }}\" method=\"post\">`.
19
19
  attr_accessor :action
20
20
 
21
- # Errors contains all form errors. These will be duplicates of the individual field errors.
22
- attr_accessor :errors
23
-
24
21
  # Fields contains multiple fields
25
22
  attr_accessor :fields
26
23
 
24
+ attr_accessor :messages
25
+
27
26
  # Method is the form method (e.g. POST)
28
27
  attr_accessor :method
29
28
 
@@ -31,8 +30,8 @@ module OryHydraClient
31
30
  def self.attribute_map
32
31
  {
33
32
  :'action' => :'action',
34
- :'errors' => :'errors',
35
33
  :'fields' => :'fields',
34
+ :'messages' => :'messages',
36
35
  :'method' => :'method'
37
36
  }
38
37
  end
@@ -41,8 +40,8 @@ module OryHydraClient
41
40
  def self.openapi_types
42
41
  {
43
42
  :'action' => :'String',
44
- :'errors' => :'Array<Error>',
45
43
  :'fields' => :'Array<FormField>',
44
+ :'messages' => :'Array<Message>',
46
45
  :'method' => :'String'
47
46
  }
48
47
  end
@@ -72,18 +71,18 @@ module OryHydraClient
72
71
  self.action = attributes[:'action']
73
72
  end
74
73
 
75
- if attributes.key?(:'errors')
76
- if (value = attributes[:'errors']).is_a?(Array)
77
- self.errors = value
78
- end
79
- end
80
-
81
74
  if attributes.key?(:'fields')
82
75
  if (value = attributes[:'fields']).is_a?(Array)
83
76
  self.fields = value
84
77
  end
85
78
  end
86
79
 
80
+ if attributes.key?(:'messages')
81
+ if (value = attributes[:'messages']).is_a?(Array)
82
+ self.messages = value
83
+ end
84
+ end
85
+
87
86
  if attributes.key?(:'method')
88
87
  self.method = attributes[:'method']
89
88
  end
@@ -123,8 +122,8 @@ module OryHydraClient
123
122
  return true if self.equal?(o)
124
123
  self.class == o.class &&
125
124
  action == o.action &&
126
- errors == o.errors &&
127
125
  fields == o.fields &&
126
+ messages == o.messages &&
128
127
  method == o.method
129
128
  end
130
129
 
@@ -137,7 +136,7 @@ module OryHydraClient
137
136
  # Calculates hash code according to all attributes.
138
137
  # @return [Integer] Hash code
139
138
  def hash
140
- [action, errors, fields, method].hash
139
+ [action, fields, messages, method].hash
141
140
  end
142
141
 
143
142
  # 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.5.0-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
 
@@ -15,32 +15,31 @@ require 'date'
15
15
  module OryHydraClient
16
16
  # Field represents a HTML Form Field
17
17
  class FormField
18
- # Disabled is the equivalent of <input disabled=\"{{.Disabled}}\">
18
+ # Disabled is the equivalent of `<input {{if .Disabled}}disabled{{end}}\">`
19
19
  attr_accessor :disabled
20
20
 
21
- # Errors contains all validation errors this particular field has caused.
22
- attr_accessor :errors
21
+ attr_accessor :messages
23
22
 
24
- # Name is the equivalent of <input name=\"{{.Name}}\">
23
+ # Name is the equivalent of `<input name=\"{{.Name}}\">`
25
24
  attr_accessor :name
26
25
 
27
- # Pattern is the equivalent of <input pattern=\"{{.Pattern}}\">
26
+ # Pattern is the equivalent of `<input pattern=\"{{.Pattern}}\">`
28
27
  attr_accessor :pattern
29
28
 
30
- # Required is the equivalent of <input required=\"{{.Required}}\">
29
+ # Required is the equivalent of `<input required=\"{{.Required}}\">`
31
30
  attr_accessor :required
32
31
 
33
- # Type is the equivalent of <input type=\"{{.Type}}\">
32
+ # Type is the equivalent of `<input type=\"{{.Type}}\">`
34
33
  attr_accessor :type
35
34
 
36
- # Value is the equivalent of <input value=\"{{.Value}}\">
35
+ # Value is the equivalent of `<input value=\"{{.Value}}\">`
37
36
  attr_accessor :value
38
37
 
39
38
  # Attribute mapping from ruby-style variable name to JSON key.
40
39
  def self.attribute_map
41
40
  {
42
41
  :'disabled' => :'disabled',
43
- :'errors' => :'errors',
42
+ :'messages' => :'messages',
44
43
  :'name' => :'name',
45
44
  :'pattern' => :'pattern',
46
45
  :'required' => :'required',
@@ -53,7 +52,7 @@ module OryHydraClient
53
52
  def self.openapi_types
54
53
  {
55
54
  :'disabled' => :'Boolean',
56
- :'errors' => :'Array<Error>',
55
+ :'messages' => :'Array<Message>',
57
56
  :'name' => :'String',
58
57
  :'pattern' => :'String',
59
58
  :'required' => :'Boolean',
@@ -87,9 +86,9 @@ module OryHydraClient
87
86
  self.disabled = attributes[:'disabled']
88
87
  end
89
88
 
90
- if attributes.key?(:'errors')
91
- if (value = attributes[:'errors']).is_a?(Array)
92
- self.errors = value
89
+ if attributes.key?(:'messages')
90
+ if (value = attributes[:'messages']).is_a?(Array)
91
+ self.messages = value
93
92
  end
94
93
  end
95
94
 
@@ -122,10 +121,6 @@ module OryHydraClient
122
121
  invalid_properties.push('invalid value for "name", name cannot be nil.')
123
122
  end
124
123
 
125
- if @required.nil?
126
- invalid_properties.push('invalid value for "required", required cannot be nil.')
127
- end
128
-
129
124
  if @type.nil?
130
125
  invalid_properties.push('invalid value for "type", type cannot be nil.')
131
126
  end
@@ -137,7 +132,6 @@ module OryHydraClient
137
132
  # @return true if the model is valid
138
133
  def valid?
139
134
  return false if @name.nil?
140
- return false if @required.nil?
141
135
  return false if @type.nil?
142
136
  true
143
137
  end
@@ -148,7 +142,7 @@ module OryHydraClient
148
142
  return true if self.equal?(o)
149
143
  self.class == o.class &&
150
144
  disabled == o.disabled &&
151
- errors == o.errors &&
145
+ messages == o.messages &&
152
146
  name == o.name &&
153
147
  pattern == o.pattern &&
154
148
  required == o.required &&
@@ -165,7 +159,7 @@ module OryHydraClient
165
159
  # Calculates hash code according to all attributes.
166
160
  # @return [Integer] Hash code
167
161
  def hash
168
- [disabled, errors, name, pattern, required, type, value].hash
162
+ [disabled, messages, name, pattern, required, type, value].hash
169
163
  end
170
164
 
171
165
  # 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.5.0-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,17 +3,16 @@
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.5.0-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
 
13
13
  require 'date'
14
14
 
15
15
  module OryHydraClient
16
- # nolint:deadcode,unused
17
16
  class GenericErrorPayload
18
17
  # Code represents the error status code (404, 403, 401, ...).
19
18
  attr_accessor :code
@@ -49,7 +48,7 @@ module OryHydraClient
49
48
  {
50
49
  :'code' => :'Integer',
51
50
  :'debug' => :'String',
52
- :'details' => :'Array<Hash<String, Object>>',
51
+ :'details' => :'Object',
53
52
  :'message' => :'String',
54
53
  :'reason' => :'String',
55
54
  :'request' => :'String',
@@ -87,9 +86,7 @@ module OryHydraClient
87
86
  end
88
87
 
89
88
  if attributes.key?(:'details')
90
- if (value = attributes[:'details']).is_a?(Array)
91
- self.details = value
92
- end
89
+ self.details = attributes[:'details']
93
90
  end
94
91
 
95
92
  if attributes.key?(:'message')
@@ -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.5.0-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.5.0-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.5.0-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
 
@@ -14,37 +14,43 @@ require 'date'
14
14
 
15
15
  module OryHydraClient
16
16
  class Identity
17
- attr_accessor :addresses
18
-
19
17
  attr_accessor :id
20
18
 
21
- attr_accessor :traits
19
+ # RecoveryAddresses contains all the addresses that can be used to recover an identity.
20
+ attr_accessor :recovery_addresses
21
+
22
+ # SchemaID is the ID of the JSON Schema to be used for validating the identity's traits.
23
+ attr_accessor :schema_id
22
24
 
23
- # TraitsSchemaID is the ID of the JSON Schema to be used for validating the identity's traits.
24
- attr_accessor :traits_schema_id
25
+ # SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url
26
+ attr_accessor :schema_url
25
27
 
26
- # TraitsSchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url
27
- attr_accessor :traits_schema_url
28
+ attr_accessor :traits
29
+
30
+ # VerifiableAddresses contains all the addresses that can be verified by the user.
31
+ attr_accessor :verifiable_addresses
28
32
 
29
33
  # Attribute mapping from ruby-style variable name to JSON key.
30
34
  def self.attribute_map
31
35
  {
32
- :'addresses' => :'addresses',
33
36
  :'id' => :'id',
37
+ :'recovery_addresses' => :'recovery_addresses',
38
+ :'schema_id' => :'schema_id',
39
+ :'schema_url' => :'schema_url',
34
40
  :'traits' => :'traits',
35
- :'traits_schema_id' => :'traits_schema_id',
36
- :'traits_schema_url' => :'traits_schema_url'
41
+ :'verifiable_addresses' => :'verifiable_addresses'
37
42
  }
38
43
  end
39
44
 
40
45
  # Attribute type mapping.
41
46
  def self.openapi_types
42
47
  {
43
- :'addresses' => :'Array<VerifiableAddress>',
44
48
  :'id' => :'String',
49
+ :'recovery_addresses' => :'Array<RecoveryAddress>',
50
+ :'schema_id' => :'String',
51
+ :'schema_url' => :'String',
45
52
  :'traits' => :'Object',
46
- :'traits_schema_id' => :'String',
47
- :'traits_schema_url' => :'String'
53
+ :'verifiable_addresses' => :'Array<VerifiableAddress>'
48
54
  }
49
55
  end
50
56
 
@@ -69,26 +75,32 @@ module OryHydraClient
69
75
  h[k.to_sym] = v
70
76
  }
71
77
 
72
- if attributes.key?(:'addresses')
73
- if (value = attributes[:'addresses']).is_a?(Array)
74
- self.addresses = value
78
+ if attributes.key?(:'id')
79
+ self.id = attributes[:'id']
80
+ end
81
+
82
+ if attributes.key?(:'recovery_addresses')
83
+ if (value = attributes[:'recovery_addresses']).is_a?(Array)
84
+ self.recovery_addresses = value
75
85
  end
76
86
  end
77
87
 
78
- if attributes.key?(:'id')
79
- self.id = attributes[:'id']
88
+ if attributes.key?(:'schema_id')
89
+ self.schema_id = attributes[:'schema_id']
80
90
  end
81
91
 
82
- if attributes.key?(:'traits')
83
- self.traits = attributes[:'traits']
92
+ if attributes.key?(:'schema_url')
93
+ self.schema_url = attributes[:'schema_url']
84
94
  end
85
95
 
86
- if attributes.key?(:'traits_schema_id')
87
- self.traits_schema_id = attributes[:'traits_schema_id']
96
+ if attributes.key?(:'traits')
97
+ self.traits = attributes[:'traits']
88
98
  end
89
99
 
90
- if attributes.key?(:'traits_schema_url')
91
- self.traits_schema_url = attributes[:'traits_schema_url']
100
+ if attributes.key?(:'verifiable_addresses')
101
+ if (value = attributes[:'verifiable_addresses']).is_a?(Array)
102
+ self.verifiable_addresses = value
103
+ end
92
104
  end
93
105
  end
94
106
 
@@ -100,12 +112,16 @@ module OryHydraClient
100
112
  invalid_properties.push('invalid value for "id", id cannot be nil.')
101
113
  end
102
114
 
103
- if @traits.nil?
104
- invalid_properties.push('invalid value for "traits", traits cannot be nil.')
115
+ if @schema_id.nil?
116
+ invalid_properties.push('invalid value for "schema_id", schema_id cannot be nil.')
117
+ end
118
+
119
+ if @schema_url.nil?
120
+ invalid_properties.push('invalid value for "schema_url", schema_url cannot be nil.')
105
121
  end
106
122
 
107
- if @traits_schema_id.nil?
108
- invalid_properties.push('invalid value for "traits_schema_id", traits_schema_id cannot be nil.')
123
+ if @traits.nil?
124
+ invalid_properties.push('invalid value for "traits", traits cannot be nil.')
109
125
  end
110
126
 
111
127
  invalid_properties
@@ -115,8 +131,9 @@ module OryHydraClient
115
131
  # @return true if the model is valid
116
132
  def valid?
117
133
  return false if @id.nil?
134
+ return false if @schema_id.nil?
135
+ return false if @schema_url.nil?
118
136
  return false if @traits.nil?
119
- return false if @traits_schema_id.nil?
120
137
  true
121
138
  end
122
139
 
@@ -125,11 +142,12 @@ module OryHydraClient
125
142
  def ==(o)
126
143
  return true if self.equal?(o)
127
144
  self.class == o.class &&
128
- addresses == o.addresses &&
129
145
  id == o.id &&
146
+ recovery_addresses == o.recovery_addresses &&
147
+ schema_id == o.schema_id &&
148
+ schema_url == o.schema_url &&
130
149
  traits == o.traits &&
131
- traits_schema_id == o.traits_schema_id &&
132
- traits_schema_url == o.traits_schema_url
150
+ verifiable_addresses == o.verifiable_addresses
133
151
  end
134
152
 
135
153
  # @see the `==` method
@@ -141,7 +159,7 @@ module OryHydraClient
141
159
  # Calculates hash code according to all attributes.
142
160
  # @return [Integer] Hash code
143
161
  def hash
144
- [addresses, id, traits, traits_schema_id, traits_schema_url].hash
162
+ [id, recovery_addresses, schema_id, schema_url, traits, verifiable_addresses].hash
145
163
  end
146
164
 
147
165
  # Builds the object from hash