ory-kratos-client 0.6.2.alpha1 → 0.6.3.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -24
  3. data/docs/AdminApi.md +15 -13
  4. data/docs/GenericError.md +14 -2
  5. data/docs/Identity.md +6 -2
  6. data/docs/IdentityCredentials.md +5 -1
  7. data/docs/JsonError.md +18 -0
  8. data/docs/LoginFlow.md +5 -1
  9. data/docs/PublicApi.md +216 -210
  10. data/docs/RecoveryAddress.md +4 -0
  11. data/docs/SelfServiceErrorContainer.md +24 -0
  12. data/docs/VerifiableIdentityAddress.md +32 -0
  13. data/lib/ory-kratos-client.rb +4 -4
  14. data/lib/ory-kratos-client/api/admin_api.rb +7 -4
  15. data/lib/ory-kratos-client/api/public_api.rb +171 -162
  16. data/lib/ory-kratos-client/api_client.rb +1 -1
  17. data/lib/ory-kratos-client/api_error.rb +1 -1
  18. data/lib/ory-kratos-client/configuration.rb +15 -22
  19. data/lib/ory-kratos-client/models/authenticate_ok_body.rb +1 -1
  20. data/lib/ory-kratos-client/models/container_change_response_item.rb +1 -1
  21. data/lib/ory-kratos-client/models/container_create_created_body.rb +1 -1
  22. data/lib/ory-kratos-client/models/container_top_ok_body.rb +1 -1
  23. data/lib/ory-kratos-client/models/container_update_ok_body.rb +1 -1
  24. data/lib/ory-kratos-client/models/container_wait_ok_body.rb +1 -1
  25. data/lib/ory-kratos-client/models/container_wait_ok_body_error.rb +1 -1
  26. data/lib/ory-kratos-client/models/create_identity.rb +1 -1
  27. data/lib/ory-kratos-client/models/create_recovery_link.rb +1 -1
  28. data/lib/ory-kratos-client/models/error_response.rb +1 -1
  29. data/lib/ory-kratos-client/models/generic_error.rb +76 -9
  30. data/lib/ory-kratos-client/models/graph_driver_data.rb +1 -1
  31. data/lib/ory-kratos-client/models/health_not_ready_status.rb +1 -1
  32. data/lib/ory-kratos-client/models/health_status.rb +1 -1
  33. data/lib/ory-kratos-client/models/id_response.rb +1 -1
  34. data/lib/ory-kratos-client/models/identity.rb +27 -9
  35. data/lib/ory-kratos-client/models/identity_credentials.rb +25 -5
  36. data/lib/ory-kratos-client/models/image_delete_response_item.rb +1 -1
  37. data/lib/ory-kratos-client/models/image_summary.rb +1 -1
  38. data/lib/ory-kratos-client/models/inline_response200.rb +1 -1
  39. data/lib/ory-kratos-client/models/inline_response2001.rb +1 -1
  40. data/lib/ory-kratos-client/models/inline_response503.rb +1 -1
  41. data/lib/ory-kratos-client/models/json_error.rb +224 -0
  42. data/lib/ory-kratos-client/models/login_flow.rb +25 -5
  43. data/lib/ory-kratos-client/models/login_via_api_response.rb +1 -1
  44. data/lib/ory-kratos-client/models/meta.rb +1 -1
  45. data/lib/ory-kratos-client/models/plugin.rb +1 -1
  46. data/lib/ory-kratos-client/models/plugin_config.rb +1 -1
  47. data/lib/ory-kratos-client/models/plugin_config_args.rb +1 -1
  48. data/lib/ory-kratos-client/models/plugin_config_interface.rb +1 -1
  49. data/lib/ory-kratos-client/models/plugin_config_linux.rb +1 -1
  50. data/lib/ory-kratos-client/models/plugin_config_network.rb +1 -1
  51. data/lib/ory-kratos-client/models/plugin_config_rootfs.rb +1 -1
  52. data/lib/ory-kratos-client/models/plugin_config_user.rb +1 -1
  53. data/lib/ory-kratos-client/models/plugin_device.rb +1 -1
  54. data/lib/ory-kratos-client/models/plugin_env.rb +1 -1
  55. data/lib/ory-kratos-client/models/plugin_interface_type.rb +1 -1
  56. data/lib/ory-kratos-client/models/plugin_mount.rb +1 -1
  57. data/lib/ory-kratos-client/models/plugin_settings.rb +1 -1
  58. data/lib/ory-kratos-client/models/port.rb +1 -1
  59. data/lib/ory-kratos-client/models/recovery_address.rb +22 -2
  60. data/lib/ory-kratos-client/models/recovery_flow.rb +1 -1
  61. data/lib/ory-kratos-client/models/recovery_link.rb +1 -1
  62. data/lib/ory-kratos-client/models/registration_flow.rb +1 -1
  63. data/lib/ory-kratos-client/models/registration_via_api_response.rb +1 -1
  64. data/lib/ory-kratos-client/models/revoke_session.rb +1 -1
  65. data/lib/ory-kratos-client/models/self_service_error_container.rb +260 -0
  66. data/lib/ory-kratos-client/models/service_update_response.rb +1 -1
  67. data/lib/ory-kratos-client/models/session.rb +1 -1
  68. data/lib/ory-kratos-client/models/settings_flow.rb +1 -1
  69. data/lib/ory-kratos-client/models/settings_profile_form_config.rb +1 -1
  70. data/lib/ory-kratos-client/models/settings_via_api_response.rb +1 -1
  71. data/lib/ory-kratos-client/models/submit_self_service_browser_settings_oidc_flow_payload.rb +1 -1
  72. data/lib/ory-kratos-client/models/submit_self_service_login_flow.rb +1 -1
  73. data/lib/ory-kratos-client/models/submit_self_service_login_flow_with_password_method.rb +1 -1
  74. data/lib/ory-kratos-client/models/submit_self_service_recovery_flow_with_link_method.rb +1 -1
  75. data/lib/ory-kratos-client/models/submit_self_service_registration_flow.rb +1 -1
  76. data/lib/ory-kratos-client/models/submit_self_service_registration_flow_with_password_method.rb +22 -1
  77. data/lib/ory-kratos-client/models/submit_self_service_settings_flow.rb +1 -1
  78. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_password_method.rb +1 -1
  79. data/lib/ory-kratos-client/models/submit_self_service_settings_flow_with_profile_method.rb +1 -1
  80. data/lib/ory-kratos-client/models/submit_self_service_verification_flow_with_link_method.rb +1 -1
  81. data/lib/ory-kratos-client/models/ui_container.rb +1 -1
  82. data/lib/ory-kratos-client/models/ui_node.rb +1 -1
  83. data/lib/ory-kratos-client/models/ui_node_anchor_attributes.rb +1 -1
  84. data/lib/ory-kratos-client/models/ui_node_attributes.rb +1 -1
  85. data/lib/ory-kratos-client/models/ui_node_image_attributes.rb +1 -1
  86. data/lib/ory-kratos-client/models/ui_node_input_attributes.rb +1 -1
  87. data/lib/ory-kratos-client/models/ui_node_input_attributes_value.rb +1 -1
  88. data/lib/ory-kratos-client/models/ui_node_text_attributes.rb +1 -1
  89. data/lib/ory-kratos-client/models/ui_text.rb +1 -1
  90. data/lib/ory-kratos-client/models/update_identity.rb +1 -1
  91. data/lib/ory-kratos-client/models/verifiable_identity_address.rb +313 -0
  92. data/lib/ory-kratos-client/models/verification_flow.rb +1 -1
  93. data/lib/ory-kratos-client/models/version.rb +1 -1
  94. data/lib/ory-kratos-client/models/volume.rb +1 -1
  95. data/lib/ory-kratos-client/models/volume_usage_data.rb +1 -1
  96. data/lib/ory-kratos-client/version.rb +2 -2
  97. data/ory-kratos-client.gemspec +1 -1
  98. data/spec/api_client_spec.rb +1 -1
  99. data/spec/configuration_spec.rb +4 -4
  100. data/spec/models/json_error_spec.rb +34 -0
  101. data/spec/models/self_service_error_container_spec.rb +52 -0
  102. data/spec/models/verifiable_identity_address_spec.rb +76 -0
  103. data/spec/spec_helper.rb +1 -1
  104. metadata +14 -2
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@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 Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@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 Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -138,9 +138,9 @@ module OryHydraClient
138
138
  attr_accessor :force_ending_format
139
139
 
140
140
  def initialize
141
- @scheme = 'https'
142
- @host = 'demo.tenants.oryapis.com'
143
- @base_path = '/api/kratos/public'
141
+ @scheme = 'http'
142
+ @host = 'localhost'
143
+ @base_path = ''
144
144
  @server_index = 0
145
145
  @server_operation_index = {}
146
146
  @server_variables = {}
@@ -215,6 +215,13 @@ module OryHydraClient
215
215
  # Returns Auth Settings hash for api client.
216
216
  def auth_settings
217
217
  {
218
+ 'oryToken' =>
219
+ {
220
+ type: 'bearer',
221
+ in: 'header',
222
+ key: 'Authorization',
223
+ value: "Bearer #{access_token}"
224
+ },
218
225
  'sessionCookie' =>
219
226
  {
220
227
  type: 'api_key',
@@ -224,10 +231,10 @@ module OryHydraClient
224
231
  },
225
232
  'sessionToken' =>
226
233
  {
227
- type: 'api_key',
234
+ type: 'bearer',
228
235
  in: 'header',
229
- key: 'X-Session-Token',
230
- value: api_key_with_prefix('sessionToken')
236
+ key: 'Authorization',
237
+ value: "Bearer #{access_token}"
231
238
  },
232
239
  }
233
240
  end
@@ -236,22 +243,8 @@ module OryHydraClient
236
243
  def server_settings
237
244
  [
238
245
  {
239
- url: "https://{tenant}.tenants.oryapis.com/api/kratos/{api}",
246
+ url: "",
240
247
  description: "No description provided",
241
- variables: {
242
- api: {
243
- description: "Target the public or administrative API.",
244
- default_value: "public",
245
- enum_values: [
246
- "public",
247
- "admin"
248
- ]
249
- },
250
- tenant: {
251
- description: "Tenant ID as provided by Ory Cloud.",
252
- default_value: "demo",
253
- }
254
- }
255
248
  }
256
249
  ]
257
250
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@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 Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@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 Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@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 Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@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 Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@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 Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@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 Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@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 Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@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 Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@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 Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@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 Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -14,14 +14,38 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module OryHydraClient
17
- # Error responses are sent when an error (e.g. unauthorized, bad request, ...) occurred.
18
17
  class GenericError
19
- attr_accessor :error
18
+ # The status code
19
+ attr_accessor :code
20
+
21
+ # Debug information This field is often not exposed to protect against leaking sensitive information.
22
+ attr_accessor :debug
23
+
24
+ # Further error details
25
+ attr_accessor :details
26
+
27
+ # Error message The error's message.
28
+ attr_accessor :message
29
+
30
+ # A human-readable reason for the error
31
+ attr_accessor :reason
32
+
33
+ # The request ID The request ID is often exposed internally in order to trace errors across service architectures. This is often a UUID.
34
+ attr_accessor :request
35
+
36
+ # The status description
37
+ attr_accessor :status
20
38
 
21
39
  # Attribute mapping from ruby-style variable name to JSON key.
22
40
  def self.attribute_map
23
41
  {
24
- :'error' => :'error'
42
+ :'code' => :'code',
43
+ :'debug' => :'debug',
44
+ :'details' => :'details',
45
+ :'message' => :'message',
46
+ :'reason' => :'reason',
47
+ :'request' => :'request',
48
+ :'status' => :'status'
25
49
  }
26
50
  end
27
51
 
@@ -33,7 +57,13 @@ module OryHydraClient
33
57
  # Attribute type mapping.
34
58
  def self.openapi_types
35
59
  {
36
- :'error' => :'GenericErrorPayload'
60
+ :'code' => :'Integer',
61
+ :'debug' => :'String',
62
+ :'details' => :'Hash<String, Object>',
63
+ :'message' => :'String',
64
+ :'reason' => :'String',
65
+ :'request' => :'String',
66
+ :'status' => :'String'
37
67
  }
38
68
  end
39
69
 
@@ -58,8 +88,34 @@ module OryHydraClient
58
88
  h[k.to_sym] = v
59
89
  }
60
90
 
61
- if attributes.key?(:'error')
62
- self.error = attributes[:'error']
91
+ if attributes.key?(:'code')
92
+ self.code = attributes[:'code']
93
+ end
94
+
95
+ if attributes.key?(:'debug')
96
+ self.debug = attributes[:'debug']
97
+ end
98
+
99
+ if attributes.key?(:'details')
100
+ if (value = attributes[:'details']).is_a?(Hash)
101
+ self.details = value
102
+ end
103
+ end
104
+
105
+ if attributes.key?(:'message')
106
+ self.message = attributes[:'message']
107
+ end
108
+
109
+ if attributes.key?(:'reason')
110
+ self.reason = attributes[:'reason']
111
+ end
112
+
113
+ if attributes.key?(:'request')
114
+ self.request = attributes[:'request']
115
+ end
116
+
117
+ if attributes.key?(:'status')
118
+ self.status = attributes[:'status']
63
119
  end
64
120
  end
65
121
 
@@ -67,12 +123,17 @@ module OryHydraClient
67
123
  # @return Array for valid properties with the reasons
68
124
  def list_invalid_properties
69
125
  invalid_properties = Array.new
126
+ if @message.nil?
127
+ invalid_properties.push('invalid value for "message", message cannot be nil.')
128
+ end
129
+
70
130
  invalid_properties
71
131
  end
72
132
 
73
133
  # Check to see if the all the properties in the model are valid
74
134
  # @return true if the model is valid
75
135
  def valid?
136
+ return false if @message.nil?
76
137
  true
77
138
  end
78
139
 
@@ -81,7 +142,13 @@ module OryHydraClient
81
142
  def ==(o)
82
143
  return true if self.equal?(o)
83
144
  self.class == o.class &&
84
- error == o.error
145
+ code == o.code &&
146
+ debug == o.debug &&
147
+ details == o.details &&
148
+ message == o.message &&
149
+ reason == o.reason &&
150
+ request == o.request &&
151
+ status == o.status
85
152
  end
86
153
 
87
154
  # @see the `==` method
@@ -93,7 +160,7 @@ module OryHydraClient
93
160
  # Calculates hash code according to all attributes.
94
161
  # @return [Integer] Hash code
95
162
  def hash
96
- [error].hash
163
+ [code, debug, details, message, reason, request, status].hash
97
164
  end
98
165
 
99
166
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@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 Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@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 Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@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 Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@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 Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the administative API port you should use something like Nginx, Ory Oathkeeper, or any other technology capable of authorizing incoming requests.
5
5
 
6
- The version of the OpenAPI document: v0.6.2-alpha.1
6
+ The version of the OpenAPI document: v0.6.3-alpha.1
7
7
  Contact: hi@ory.sh
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.1.1
@@ -14,7 +14,11 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module OryHydraClient
17
+ # An identity can be a real human, a service, an IoT device - everything that can be described as an \"actor\" in a system.
17
18
  class Identity
19
+ # CreatedAt is a helper struct field for gobuffalo.pop.
20
+ attr_accessor :created_at
21
+
18
22
  attr_accessor :id
19
23
 
20
24
  # RecoveryAddresses contains all the addresses that can be used to recover an identity.
@@ -26,19 +30,25 @@ module OryHydraClient
26
30
  # SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url
27
31
  attr_accessor :schema_url
28
32
 
33
+ # 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`.
29
34
  attr_accessor :traits
30
35
 
36
+ # UpdatedAt is a helper struct field for gobuffalo.pop.
37
+ attr_accessor :updated_at
38
+
31
39
  # VerifiableAddresses contains all the addresses that can be verified by the user.
32
40
  attr_accessor :verifiable_addresses
33
41
 
34
42
  # Attribute mapping from ruby-style variable name to JSON key.
35
43
  def self.attribute_map
36
44
  {
45
+ :'created_at' => :'created_at',
37
46
  :'id' => :'id',
38
47
  :'recovery_addresses' => :'recovery_addresses',
39
48
  :'schema_id' => :'schema_id',
40
49
  :'schema_url' => :'schema_url',
41
50
  :'traits' => :'traits',
51
+ :'updated_at' => :'updated_at',
42
52
  :'verifiable_addresses' => :'verifiable_addresses'
43
53
  }
44
54
  end
@@ -51,18 +61,21 @@ module OryHydraClient
51
61
  # Attribute type mapping.
52
62
  def self.openapi_types
53
63
  {
64
+ :'created_at' => :'Time',
54
65
  :'id' => :'String',
55
66
  :'recovery_addresses' => :'Array<RecoveryAddress>',
56
67
  :'schema_id' => :'String',
57
68
  :'schema_url' => :'String',
58
- :'traits' => :'Object',
59
- :'verifiable_addresses' => :'Array<VerifiableAddress>'
69
+ :'traits' => :'AnyType',
70
+ :'updated_at' => :'Time',
71
+ :'verifiable_addresses' => :'Array<VerifiableIdentityAddress>'
60
72
  }
61
73
  end
62
74
 
63
75
  # List of attributes with nullable: true
64
76
  def self.openapi_nullable
65
77
  Set.new([
78
+ :'traits',
66
79
  ])
67
80
  end
68
81
 
@@ -81,6 +94,10 @@ module OryHydraClient
81
94
  h[k.to_sym] = v
82
95
  }
83
96
 
97
+ if attributes.key?(:'created_at')
98
+ self.created_at = attributes[:'created_at']
99
+ end
100
+
84
101
  if attributes.key?(:'id')
85
102
  self.id = attributes[:'id']
86
103
  end
@@ -103,6 +120,10 @@ module OryHydraClient
103
120
  self.traits = attributes[:'traits']
104
121
  end
105
122
 
123
+ if attributes.key?(:'updated_at')
124
+ self.updated_at = attributes[:'updated_at']
125
+ end
126
+
106
127
  if attributes.key?(:'verifiable_addresses')
107
128
  if (value = attributes[:'verifiable_addresses']).is_a?(Array)
108
129
  self.verifiable_addresses = value
@@ -126,10 +147,6 @@ module OryHydraClient
126
147
  invalid_properties.push('invalid value for "schema_url", schema_url cannot be nil.')
127
148
  end
128
149
 
129
- if @traits.nil?
130
- invalid_properties.push('invalid value for "traits", traits cannot be nil.')
131
- end
132
-
133
150
  invalid_properties
134
151
  end
135
152
 
@@ -139,7 +156,6 @@ module OryHydraClient
139
156
  return false if @id.nil?
140
157
  return false if @schema_id.nil?
141
158
  return false if @schema_url.nil?
142
- return false if @traits.nil?
143
159
  true
144
160
  end
145
161
 
@@ -148,11 +164,13 @@ module OryHydraClient
148
164
  def ==(o)
149
165
  return true if self.equal?(o)
150
166
  self.class == o.class &&
167
+ created_at == o.created_at &&
151
168
  id == o.id &&
152
169
  recovery_addresses == o.recovery_addresses &&
153
170
  schema_id == o.schema_id &&
154
171
  schema_url == o.schema_url &&
155
172
  traits == o.traits &&
173
+ updated_at == o.updated_at &&
156
174
  verifiable_addresses == o.verifiable_addresses
157
175
  end
158
176
 
@@ -165,7 +183,7 @@ module OryHydraClient
165
183
  # Calculates hash code according to all attributes.
166
184
  # @return [Integer] Hash code
167
185
  def hash
168
- [id, recovery_addresses, schema_id, schema_url, traits, verifiable_addresses].hash
186
+ [created_at, id, recovery_addresses, schema_id, schema_url, traits, updated_at, verifiable_addresses].hash
169
187
  end
170
188
 
171
189
  # Builds the object from hash