ory-client 0.0.1.alpha13 → 0.0.1.alpha17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +81 -96
  3. data/docs/AdminCreateIdentityBody.md +20 -0
  4. data/docs/AdminCreateSelfServiceRecoveryLinkBody.md +20 -0
  5. data/docs/AdminUpdateIdentityBody.md +22 -0
  6. data/docs/GenericError.md +1 -1
  7. data/docs/Identity.md +6 -0
  8. data/docs/IdentityState.md +15 -0
  9. data/docs/MetadataApi.md +254 -0
  10. data/docs/SelfServiceError.md +24 -0
  11. data/docs/SelfServiceLoginFlow.md +36 -0
  12. data/docs/SelfServiceLogoutUrl.md +18 -0
  13. data/docs/SelfServiceRecoveryFlow.md +32 -0
  14. data/docs/SelfServiceRecoveryFlowState.md +15 -0
  15. data/docs/SelfServiceRecoveryLink.md +20 -0
  16. data/docs/SelfServiceRegistrationFlow.md +30 -0
  17. data/docs/SelfServiceSettingsFlow.md +34 -0
  18. data/docs/SelfServiceSettingsFlowState.md +15 -0
  19. data/docs/SelfServiceVerificationFlow.md +32 -0
  20. data/docs/SelfServiceVerificationFlowState.md +15 -0
  21. data/docs/Session.md +4 -4
  22. data/docs/SubmitSelfServiceLoginFlowBody.md +76 -0
  23. data/docs/SubmitSelfServiceLoginFlowWithOidcMethodBody.md +22 -0
  24. data/docs/SubmitSelfServiceLoginFlowWithPasswordMethodBody.md +24 -0
  25. data/docs/SubmitSelfServiceLogoutFlowWithoutBrowserBody.md +18 -0
  26. data/docs/SubmitSelfServiceRecoveryFlowBody.md +75 -0
  27. data/docs/SubmitSelfServiceRecoveryFlowWithLinkMethodBody.md +22 -0
  28. data/docs/SubmitSelfServiceRegistrationFlowBody.md +76 -0
  29. data/docs/SubmitSelfServiceRegistrationFlowWithOidcMethodBody.md +22 -0
  30. data/docs/SubmitSelfServiceRegistrationFlowWithPasswordMethodBody.md +24 -0
  31. data/docs/SubmitSelfServiceSettingsFlowBody.md +79 -0
  32. data/docs/SubmitSelfServiceSettingsFlowWithOidcMethodBody.md +24 -0
  33. data/docs/SubmitSelfServiceSettingsFlowWithPasswordMethodBody.md +22 -0
  34. data/docs/SubmitSelfServiceSettingsFlowWithProfileMethodBody.md +22 -0
  35. data/docs/SubmitSelfServiceVerificationFlowBody.md +75 -0
  36. data/docs/SubmitSelfServiceVerificationFlowWithLinkMethodBody.md +22 -0
  37. data/docs/SuccessfulSelfServiceLoginWithoutBrowser.md +20 -0
  38. data/docs/SuccessfulSelfServiceRegistrationWithoutBrowser.md +22 -0
  39. data/docs/SuccessfulSelfServiceSettingsWithoutBrowser.md +20 -0
  40. data/docs/V0alpha1Api.md +2184 -0
  41. data/lib/ory-client.rb +36 -26
  42. data/lib/ory-client/api/default_api.rb +1 -1
  43. data/lib/ory-client/api/metadata_api.rb +248 -0
  44. data/lib/ory-client/api/v0alpha1_api.rb +2054 -0
  45. data/lib/ory-client/api_client.rb +1 -1
  46. data/lib/ory-client/api_error.rb +1 -1
  47. data/lib/ory-client/configuration.rb +3 -17
  48. data/lib/ory-client/models/admin_create_identity_body.rb +239 -0
  49. data/lib/ory-client/models/admin_create_self_service_recovery_link_body.rb +250 -0
  50. data/lib/ory-client/models/admin_update_identity_body.rb +248 -0
  51. data/lib/ory-client/models/authenticate_ok_body.rb +1 -1
  52. data/lib/ory-client/models/container_change_response_item.rb +1 -1
  53. data/lib/ory-client/models/container_create_created_body.rb +1 -1
  54. data/lib/ory-client/models/container_top_ok_body.rb +1 -1
  55. data/lib/ory-client/models/container_update_ok_body.rb +1 -1
  56. data/lib/ory-client/models/container_wait_ok_body.rb +1 -1
  57. data/lib/ory-client/models/container_wait_ok_body_error.rb +1 -1
  58. data/lib/ory-client/models/create_identity.rb +1 -1
  59. data/lib/ory-client/models/create_recovery_link.rb +1 -1
  60. data/lib/ory-client/models/error_response.rb +1 -1
  61. data/lib/ory-client/models/generic_error.rb +3 -5
  62. data/lib/ory-client/models/graph_driver_data.rb +1 -1
  63. data/lib/ory-client/models/health_not_ready_status.rb +1 -1
  64. data/lib/ory-client/models/health_status.rb +1 -1
  65. data/lib/ory-client/models/id_response.rb +1 -1
  66. data/lib/ory-client/models/identity.rb +32 -2
  67. data/lib/ory-client/models/identity_credentials.rb +1 -1
  68. data/lib/ory-client/models/identity_state.rb +37 -0
  69. data/lib/ory-client/models/image_delete_response_item.rb +1 -1
  70. data/lib/ory-client/models/image_summary.rb +1 -1
  71. data/lib/ory-client/models/inline_response200.rb +1 -1
  72. data/lib/ory-client/models/inline_response2001.rb +1 -1
  73. data/lib/ory-client/models/inline_response503.rb +1 -1
  74. data/lib/ory-client/models/json_error.rb +1 -1
  75. data/lib/ory-client/models/login_flow.rb +1 -1
  76. data/lib/ory-client/models/login_via_api_response.rb +1 -1
  77. data/lib/ory-client/models/meta.rb +1 -1
  78. data/lib/ory-client/models/plugin.rb +1 -1
  79. data/lib/ory-client/models/plugin_config.rb +1 -1
  80. data/lib/ory-client/models/plugin_config_args.rb +1 -1
  81. data/lib/ory-client/models/plugin_config_interface.rb +1 -1
  82. data/lib/ory-client/models/plugin_config_linux.rb +1 -1
  83. data/lib/ory-client/models/plugin_config_network.rb +1 -1
  84. data/lib/ory-client/models/plugin_config_rootfs.rb +1 -1
  85. data/lib/ory-client/models/plugin_config_user.rb +1 -1
  86. data/lib/ory-client/models/plugin_device.rb +1 -1
  87. data/lib/ory-client/models/plugin_env.rb +1 -1
  88. data/lib/ory-client/models/plugin_interface_type.rb +1 -1
  89. data/lib/ory-client/models/plugin_mount.rb +1 -1
  90. data/lib/ory-client/models/plugin_settings.rb +1 -1
  91. data/lib/ory-client/models/port.rb +1 -1
  92. data/lib/ory-client/models/recovery_address.rb +1 -1
  93. data/lib/ory-client/models/recovery_flow.rb +1 -1
  94. data/lib/ory-client/models/recovery_link.rb +1 -1
  95. data/lib/ory-client/models/registration_flow.rb +1 -1
  96. data/lib/ory-client/models/registration_via_api_response.rb +1 -1
  97. data/lib/ory-client/models/revoke_session.rb +1 -1
  98. data/lib/ory-client/models/self_service_error.rb +252 -0
  99. data/lib/ory-client/models/self_service_error_container.rb +1 -1
  100. data/lib/ory-client/models/self_service_login_flow.rb +338 -0
  101. data/lib/ory-client/models/self_service_logout_url.rb +219 -0
  102. data/lib/ory-client/models/self_service_recovery_flow.rb +317 -0
  103. data/lib/ory-client/models/self_service_recovery_flow_state.rb +38 -0
  104. data/lib/ory-client/models/self_service_recovery_link.rb +234 -0
  105. data/lib/ory-client/models/self_service_registration_flow.rb +302 -0
  106. data/lib/ory-client/models/self_service_settings_flow.rb +331 -0
  107. data/lib/ory-client/models/self_service_settings_flow_state.rb +37 -0
  108. data/lib/ory-client/models/self_service_verification_flow.rb +307 -0
  109. data/lib/ory-client/models/self_service_verification_flow_state.rb +38 -0
  110. data/lib/ory-client/models/service_update_response.rb +1 -1
  111. data/lib/ory-client/models/session.rb +6 -16
  112. data/lib/ory-client/models/settings_flow.rb +1 -1
  113. data/lib/ory-client/models/settings_profile_form_config.rb +1 -1
  114. data/lib/ory-client/models/settings_via_api_response.rb +1 -1
  115. data/lib/ory-client/models/submit_self_service_browser_settings_oidc_flow_payload.rb +1 -1
  116. data/lib/ory-client/models/submit_self_service_login_flow.rb +1 -1
  117. data/lib/ory-client/models/submit_self_service_login_flow_body.rb +54 -0
  118. data/lib/ory-client/models/submit_self_service_login_flow_with_oidc_method_body.rb +250 -0
  119. data/lib/ory-client/models/submit_self_service_login_flow_with_password_method.rb +1 -1
  120. data/lib/ory-client/models/submit_self_service_login_flow_with_password_method_body.rb +298 -0
  121. data/lib/ory-client/models/submit_self_service_logout_flow_without_browser_body.rb +225 -0
  122. data/lib/ory-client/models/submit_self_service_recovery_flow_body.rb +53 -0
  123. data/lib/ory-client/models/submit_self_service_recovery_flow_with_link_method.rb +1 -1
  124. data/lib/ory-client/models/submit_self_service_recovery_flow_with_link_method_body.rb +283 -0
  125. data/lib/ory-client/models/submit_self_service_registration_flow.rb +1 -1
  126. data/lib/ory-client/models/submit_self_service_registration_flow_body.rb +54 -0
  127. data/lib/ory-client/models/submit_self_service_registration_flow_with_oidc_method_body.rb +250 -0
  128. data/lib/ory-client/models/submit_self_service_registration_flow_with_password_method.rb +1 -1
  129. data/lib/ory-client/models/submit_self_service_registration_flow_with_password_method_body.rb +299 -0
  130. data/lib/ory-client/models/submit_self_service_settings_flow.rb +1 -1
  131. data/lib/ory-client/models/submit_self_service_settings_flow_body.rb +56 -0
  132. data/lib/ory-client/models/submit_self_service_settings_flow_with_oidc_method_body.rb +255 -0
  133. data/lib/ory-client/models/submit_self_service_settings_flow_with_password_method.rb +1 -1
  134. data/lib/ory-client/models/submit_self_service_settings_flow_with_password_method_body.rb +283 -0
  135. data/lib/ory-client/models/submit_self_service_settings_flow_with_profile_method.rb +1 -1
  136. data/lib/ory-client/models/submit_self_service_settings_flow_with_profile_method_body.rb +250 -0
  137. data/lib/ory-client/models/submit_self_service_verification_flow_body.rb +54 -0
  138. data/lib/ory-client/models/submit_self_service_verification_flow_with_link_method.rb +1 -1
  139. data/lib/ory-client/models/submit_self_service_verification_flow_with_link_method_body.rb +283 -0
  140. data/lib/ory-client/models/successful_self_service_login_without_browser.rb +234 -0
  141. data/lib/ory-client/models/successful_self_service_registration_without_browser.rb +243 -0
  142. data/lib/ory-client/models/successful_self_service_settings_without_browser.rb +238 -0
  143. data/lib/ory-client/models/ui_container.rb +1 -1
  144. data/lib/ory-client/models/ui_node.rb +1 -1
  145. data/lib/ory-client/models/ui_node_anchor_attributes.rb +1 -1
  146. data/lib/ory-client/models/ui_node_attributes.rb +1 -1
  147. data/lib/ory-client/models/ui_node_image_attributes.rb +1 -1
  148. data/lib/ory-client/models/ui_node_input_attributes.rb +1 -1
  149. data/lib/ory-client/models/ui_node_text_attributes.rb +1 -1
  150. data/lib/ory-client/models/ui_text.rb +1 -1
  151. data/lib/ory-client/models/update_identity.rb +1 -1
  152. data/lib/ory-client/models/verifiable_identity_address.rb +1 -1
  153. data/lib/ory-client/models/verification_flow.rb +1 -1
  154. data/lib/ory-client/models/version.rb +1 -1
  155. data/lib/ory-client/models/volume.rb +1 -1
  156. data/lib/ory-client/models/volume_usage_data.rb +1 -1
  157. data/lib/ory-client/version.rb +2 -2
  158. data/ory-client.gemspec +1 -1
  159. data/spec/api/metadata_api_spec.rb +79 -0
  160. data/spec/api/v0alpha1_api_spec.rb +429 -0
  161. data/spec/api_client_spec.rb +1 -1
  162. data/spec/configuration_spec.rb +1 -1
  163. data/spec/models/admin_create_identity_body_spec.rb +40 -0
  164. data/spec/models/admin_create_self_service_recovery_link_body_spec.rb +40 -0
  165. data/spec/models/admin_update_identity_body_spec.rb +46 -0
  166. data/spec/models/identity_state_spec.rb +28 -0
  167. data/spec/models/self_service_error_spec.rb +52 -0
  168. data/spec/models/self_service_login_flow_spec.rb +88 -0
  169. data/spec/models/self_service_logout_url_spec.rb +34 -0
  170. data/spec/models/self_service_recovery_flow_spec.rb +76 -0
  171. data/spec/models/self_service_recovery_flow_state_spec.rb +28 -0
  172. data/spec/models/self_service_recovery_link_spec.rb +40 -0
  173. data/spec/models/self_service_registration_flow_spec.rb +70 -0
  174. data/spec/models/self_service_settings_flow_spec.rb +82 -0
  175. data/spec/models/self_service_settings_flow_state_spec.rb +28 -0
  176. data/spec/models/self_service_verification_flow_spec.rb +76 -0
  177. data/spec/models/self_service_verification_flow_state_spec.rb +28 -0
  178. data/spec/models/submit_self_service_login_flow_body_spec.rb +43 -0
  179. data/spec/models/submit_self_service_login_flow_with_oidc_method_body_spec.rb +46 -0
  180. data/spec/models/submit_self_service_login_flow_with_password_method_body_spec.rb +56 -0
  181. data/spec/models/submit_self_service_logout_flow_without_browser_body_spec.rb +34 -0
  182. data/spec/models/submit_self_service_recovery_flow_body_spec.rb +43 -0
  183. data/spec/models/submit_self_service_recovery_flow_with_link_method_body_spec.rb +50 -0
  184. data/spec/models/submit_self_service_registration_flow_body_spec.rb +43 -0
  185. data/spec/models/submit_self_service_registration_flow_with_oidc_method_body_spec.rb +46 -0
  186. data/spec/models/submit_self_service_registration_flow_with_password_method_body_spec.rb +56 -0
  187. data/spec/models/submit_self_service_settings_flow_body_spec.rb +43 -0
  188. data/spec/models/submit_self_service_settings_flow_with_oidc_method_body_spec.rb +52 -0
  189. data/spec/models/submit_self_service_settings_flow_with_password_method_body_spec.rb +50 -0
  190. data/spec/models/submit_self_service_settings_flow_with_profile_method_body_spec.rb +46 -0
  191. data/spec/models/submit_self_service_verification_flow_body_spec.rb +43 -0
  192. data/spec/models/submit_self_service_verification_flow_with_link_method_body_spec.rb +50 -0
  193. data/spec/models/successful_self_service_login_without_browser_spec.rb +40 -0
  194. data/spec/models/successful_self_service_registration_without_browser_spec.rb +46 -0
  195. data/spec/models/successful_self_service_settings_without_browser_spec.rb +40 -0
  196. data/spec/spec_helper.rb +1 -1
  197. metadata +142 -2
@@ -0,0 +1,248 @@
1
+ =begin
2
+ #Ory APIs
3
+
4
+ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
+
6
+ The version of the OpenAPI document: v0.0.1-alpha.17
7
+ Contact: support@ory.sh
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module OryHydraClient
17
+ class AdminUpdateIdentityBody
18
+ # SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID.
19
+ attr_accessor :schema_id
20
+
21
+ attr_accessor :state
22
+
23
+ # Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`.
24
+ attr_accessor :traits
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'schema_id' => :'schema_id',
30
+ :'state' => :'state',
31
+ :'traits' => :'traits'
32
+ }
33
+ end
34
+
35
+ # Returns all the JSON keys this model knows about
36
+ def self.acceptable_attributes
37
+ attribute_map.values
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.openapi_types
42
+ {
43
+ :'schema_id' => :'String',
44
+ :'state' => :'IdentityState',
45
+ :'traits' => :'Object'
46
+ }
47
+ end
48
+
49
+ # List of attributes with nullable: true
50
+ def self.openapi_nullable
51
+ Set.new([
52
+ ])
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param [Hash] attributes Model attributes in the form of hash
57
+ def initialize(attributes = {})
58
+ if (!attributes.is_a?(Hash))
59
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OryHydraClient::AdminUpdateIdentityBody` initialize method"
60
+ end
61
+
62
+ # check to see if the attribute exists and convert string to symbol for hash key
63
+ attributes = attributes.each_with_object({}) { |(k, v), h|
64
+ if (!self.class.attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OryHydraClient::AdminUpdateIdentityBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
+ end
67
+ h[k.to_sym] = v
68
+ }
69
+
70
+ if attributes.key?(:'schema_id')
71
+ self.schema_id = attributes[:'schema_id']
72
+ end
73
+
74
+ if attributes.key?(:'state')
75
+ self.state = attributes[:'state']
76
+ end
77
+
78
+ if attributes.key?(:'traits')
79
+ self.traits = attributes[:'traits']
80
+ end
81
+ end
82
+
83
+ # Show invalid properties with the reasons. Usually used together with valid?
84
+ # @return Array for valid properties with the reasons
85
+ def list_invalid_properties
86
+ invalid_properties = Array.new
87
+ if @state.nil?
88
+ invalid_properties.push('invalid value for "state", state cannot be nil.')
89
+ end
90
+
91
+ if @traits.nil?
92
+ invalid_properties.push('invalid value for "traits", traits cannot be nil.')
93
+ end
94
+
95
+ invalid_properties
96
+ end
97
+
98
+ # Check to see if the all the properties in the model are valid
99
+ # @return true if the model is valid
100
+ def valid?
101
+ return false if @state.nil?
102
+ return false if @traits.nil?
103
+ true
104
+ end
105
+
106
+ # Checks equality by comparing each attribute.
107
+ # @param [Object] Object to be compared
108
+ def ==(o)
109
+ return true if self.equal?(o)
110
+ self.class == o.class &&
111
+ schema_id == o.schema_id &&
112
+ state == o.state &&
113
+ traits == o.traits
114
+ end
115
+
116
+ # @see the `==` method
117
+ # @param [Object] Object to be compared
118
+ def eql?(o)
119
+ self == o
120
+ end
121
+
122
+ # Calculates hash code according to all attributes.
123
+ # @return [Integer] Hash code
124
+ def hash
125
+ [schema_id, state, traits].hash
126
+ end
127
+
128
+ # Builds the object from hash
129
+ # @param [Hash] attributes Model attributes in the form of hash
130
+ # @return [Object] Returns the model itself
131
+ def self.build_from_hash(attributes)
132
+ new.build_from_hash(attributes)
133
+ end
134
+
135
+ # Builds the object from hash
136
+ # @param [Hash] attributes Model attributes in the form of hash
137
+ # @return [Object] Returns the model itself
138
+ def build_from_hash(attributes)
139
+ return nil unless attributes.is_a?(Hash)
140
+ self.class.openapi_types.each_pair do |key, type|
141
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
142
+ self.send("#{key}=", nil)
143
+ elsif type =~ /\AArray<(.*)>/i
144
+ # check to ensure the input is an array given that the attribute
145
+ # is documented as an array but the input is not
146
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
147
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
148
+ end
149
+ elsif !attributes[self.class.attribute_map[key]].nil?
150
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
151
+ end
152
+ end
153
+
154
+ self
155
+ end
156
+
157
+ # Deserializes the data based on type
158
+ # @param string type Data type
159
+ # @param string value Value to be deserialized
160
+ # @return [Object] Deserialized data
161
+ def _deserialize(type, value)
162
+ case type.to_sym
163
+ when :Time
164
+ Time.parse(value)
165
+ when :Date
166
+ Date.parse(value)
167
+ when :String
168
+ value.to_s
169
+ when :Integer
170
+ value.to_i
171
+ when :Float
172
+ value.to_f
173
+ when :Boolean
174
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
175
+ true
176
+ else
177
+ false
178
+ end
179
+ when :Object
180
+ # generic object (usually a Hash), return directly
181
+ value
182
+ when /\AArray<(?<inner_type>.+)>\z/
183
+ inner_type = Regexp.last_match[:inner_type]
184
+ value.map { |v| _deserialize(inner_type, v) }
185
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
186
+ k_type = Regexp.last_match[:k_type]
187
+ v_type = Regexp.last_match[:v_type]
188
+ {}.tap do |hash|
189
+ value.each do |k, v|
190
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
191
+ end
192
+ end
193
+ else # model
194
+ # models (e.g. Pet) or oneOf
195
+ klass = OryHydraClient.const_get(type)
196
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
197
+ end
198
+ end
199
+
200
+ # Returns the string representation of the object
201
+ # @return [String] String presentation of the object
202
+ def to_s
203
+ to_hash.to_s
204
+ end
205
+
206
+ # to_body is an alias to to_hash (backward compatibility)
207
+ # @return [Hash] Returns the object in the form of hash
208
+ def to_body
209
+ to_hash
210
+ end
211
+
212
+ # Returns the object in the form of hash
213
+ # @return [Hash] Returns the object in the form of hash
214
+ def to_hash
215
+ hash = {}
216
+ self.class.attribute_map.each_pair do |attr, param|
217
+ value = self.send(attr)
218
+ if value.nil?
219
+ is_nullable = self.class.openapi_nullable.include?(attr)
220
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
221
+ end
222
+
223
+ hash[param] = _to_hash(value)
224
+ end
225
+ hash
226
+ end
227
+
228
+ # Outputs non-array value in the form of hash
229
+ # For object, use to_hash. Otherwise, just return the value
230
+ # @param [Object] value Any valid value
231
+ # @return [Hash] Returns the value in the form of hash
232
+ def _to_hash(value)
233
+ if value.is_a?(Array)
234
+ value.compact.map { |v| _to_hash(v) }
235
+ elsif value.is_a?(Hash)
236
+ {}.tap do |hash|
237
+ value.each { |k, v| hash[k] = _to_hash(v) }
238
+ end
239
+ elsif value.respond_to? :to_hash
240
+ value.to_hash
241
+ else
242
+ value
243
+ end
244
+ end
245
+
246
+ end
247
+
248
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.13
6
+ The version of the OpenAPI document: v0.0.1-alpha.17
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.13
6
+ The version of the OpenAPI document: v0.0.1-alpha.17
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.13
6
+ The version of the OpenAPI document: v0.0.1-alpha.17
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.13
6
+ The version of the OpenAPI document: v0.0.1-alpha.17
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.13
6
+ The version of the OpenAPI document: v0.0.1-alpha.17
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.13
6
+ The version of the OpenAPI document: v0.0.1-alpha.17
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.13
6
+ The version of the OpenAPI document: v0.0.1-alpha.17
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.13
6
+ The version of the OpenAPI document: v0.0.1-alpha.15
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.13
6
+ The version of the OpenAPI document: v0.0.1-alpha.15
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.13
6
+ The version of the OpenAPI document: v0.0.1-alpha.17
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.13
6
+ The version of the OpenAPI document: v0.0.1-alpha.17
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -59,7 +59,7 @@ module OryHydraClient
59
59
  {
60
60
  :'code' => :'Integer',
61
61
  :'debug' => :'String',
62
- :'details' => :'Hash<String, Object>',
62
+ :'details' => :'Object',
63
63
  :'message' => :'String',
64
64
  :'reason' => :'String',
65
65
  :'request' => :'String',
@@ -97,9 +97,7 @@ module OryHydraClient
97
97
  end
98
98
 
99
99
  if attributes.key?(:'details')
100
- if (value = attributes[:'details']).is_a?(Hash)
101
- self.details = value
102
- end
100
+ self.details = attributes[:'details']
103
101
  end
104
102
 
105
103
  if attributes.key?(:'message')
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.13
6
+ The version of the OpenAPI document: v0.0.1-alpha.17
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.13
6
+ The version of the OpenAPI document: v0.0.1-alpha.17
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.13
6
+ The version of the OpenAPI document: v0.0.1-alpha.17
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.13
6
+ The version of the OpenAPI document: v0.0.1-alpha.17
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers.
5
5
 
6
- The version of the OpenAPI document: v0.0.1-alpha.13
6
+ The version of the OpenAPI document: v0.0.1-alpha.17
7
7
  Contact: support@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -19,6 +19,9 @@ module OryHydraClient
19
19
  # CreatedAt is a helper struct field for gobuffalo.pop.
20
20
  attr_accessor :created_at
21
21
 
22
+ # Credentials represents all credentials that can be used for authenticating this identity.
23
+ attr_accessor :credentials
24
+
22
25
  attr_accessor :id
23
26
 
24
27
  # RecoveryAddresses contains all the addresses that can be used to recover an identity.
@@ -30,6 +33,10 @@ module OryHydraClient
30
33
  # SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url
31
34
  attr_accessor :schema_url
32
35
 
36
+ attr_accessor :state
37
+
38
+ attr_accessor :state_changed_at
39
+
33
40
  # Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`.
34
41
  attr_accessor :traits
35
42
 
@@ -43,10 +50,13 @@ module OryHydraClient
43
50
  def self.attribute_map
44
51
  {
45
52
  :'created_at' => :'created_at',
53
+ :'credentials' => :'credentials',
46
54
  :'id' => :'id',
47
55
  :'recovery_addresses' => :'recovery_addresses',
48
56
  :'schema_id' => :'schema_id',
49
57
  :'schema_url' => :'schema_url',
58
+ :'state' => :'state',
59
+ :'state_changed_at' => :'state_changed_at',
50
60
  :'traits' => :'traits',
51
61
  :'updated_at' => :'updated_at',
52
62
  :'verifiable_addresses' => :'verifiable_addresses'
@@ -62,10 +72,13 @@ module OryHydraClient
62
72
  def self.openapi_types
63
73
  {
64
74
  :'created_at' => :'Time',
75
+ :'credentials' => :'Hash<String, IdentityCredentials>',
65
76
  :'id' => :'String',
66
77
  :'recovery_addresses' => :'Array<RecoveryAddress>',
67
78
  :'schema_id' => :'String',
68
79
  :'schema_url' => :'String',
80
+ :'state' => :'IdentityState',
81
+ :'state_changed_at' => :'Time',
69
82
  :'traits' => :'AnyType',
70
83
  :'updated_at' => :'Time',
71
84
  :'verifiable_addresses' => :'Array<VerifiableIdentityAddress>'
@@ -98,6 +111,12 @@ module OryHydraClient
98
111
  self.created_at = attributes[:'created_at']
99
112
  end
100
113
 
114
+ if attributes.key?(:'credentials')
115
+ if (value = attributes[:'credentials']).is_a?(Hash)
116
+ self.credentials = value
117
+ end
118
+ end
119
+
101
120
  if attributes.key?(:'id')
102
121
  self.id = attributes[:'id']
103
122
  end
@@ -116,6 +135,14 @@ module OryHydraClient
116
135
  self.schema_url = attributes[:'schema_url']
117
136
  end
118
137
 
138
+ if attributes.key?(:'state')
139
+ self.state = attributes[:'state']
140
+ end
141
+
142
+ if attributes.key?(:'state_changed_at')
143
+ self.state_changed_at = attributes[:'state_changed_at']
144
+ end
145
+
119
146
  if attributes.key?(:'traits')
120
147
  self.traits = attributes[:'traits']
121
148
  end
@@ -165,10 +192,13 @@ module OryHydraClient
165
192
  return true if self.equal?(o)
166
193
  self.class == o.class &&
167
194
  created_at == o.created_at &&
195
+ credentials == o.credentials &&
168
196
  id == o.id &&
169
197
  recovery_addresses == o.recovery_addresses &&
170
198
  schema_id == o.schema_id &&
171
199
  schema_url == o.schema_url &&
200
+ state == o.state &&
201
+ state_changed_at == o.state_changed_at &&
172
202
  traits == o.traits &&
173
203
  updated_at == o.updated_at &&
174
204
  verifiable_addresses == o.verifiable_addresses
@@ -183,7 +213,7 @@ module OryHydraClient
183
213
  # Calculates hash code according to all attributes.
184
214
  # @return [Integer] Hash code
185
215
  def hash
186
- [created_at, id, recovery_addresses, schema_id, schema_url, traits, updated_at, verifiable_addresses].hash
216
+ [created_at, credentials, id, recovery_addresses, schema_id, schema_url, state, state_changed_at, traits, updated_at, verifiable_addresses].hash
187
217
  end
188
218
 
189
219
  # Builds the object from hash