ory-kratos-client 0.1.0.alpha5 → 0.1.0.alpha6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -4
- data/docs/AdminApi.md +48 -0
- data/docs/CommonApi.md +48 -0
- data/docs/Form.md +3 -3
- data/docs/FormField.md +4 -4
- data/docs/Identity.md +4 -2
- data/docs/LoginRequest.md +5 -5
- data/docs/LoginRequestMethod.md +2 -2
- data/docs/LoginRequestMethodConfig.md +10 -1
- data/docs/ProfileManagementRequest.md +7 -7
- data/docs/PublicApi.md +189 -0
- data/docs/RegistrationRequest.md +6 -6
- data/docs/RegistrationRequestMethodConfig.md +10 -1
- data/docs/Session.md +5 -5
- data/docs/VerifiableAddress.md +27 -0
- data/docs/VerificationRequest.md +29 -0
- data/lib/ory-kratos-client.rb +3 -1
- data/lib/ory-kratos-client/api/admin_api.rb +64 -1
- data/lib/ory-kratos-client/api/common_api.rb +64 -1
- data/lib/ory-kratos-client/api/health_api.rb +1 -1
- data/lib/ory-kratos-client/api/public_api.rb +251 -1
- data/lib/ory-kratos-client/api/version_api.rb +1 -1
- data/lib/ory-kratos-client/api_client.rb +1 -1
- data/lib/ory-kratos-client/api_error.rb +1 -1
- data/lib/ory-kratos-client/configuration.rb +1 -1
- data/lib/ory-kratos-client/models/complete_self_service_browser_profile_management_flow_payload.rb +1 -1
- data/lib/ory-kratos-client/models/error.rb +1 -1
- data/lib/ory-kratos-client/models/error_container.rb +1 -1
- data/lib/ory-kratos-client/models/form.rb +16 -1
- data/lib/ory-kratos-client/models/form_field.rb +17 -2
- data/lib/ory-kratos-client/models/generic_error.rb +1 -1
- data/lib/ory-kratos-client/models/generic_error_payload.rb +1 -1
- data/lib/ory-kratos-client/models/health_not_ready_status.rb +1 -1
- data/lib/ory-kratos-client/models/health_status.rb +1 -1
- data/lib/ory-kratos-client/models/identity.rb +18 -2
- data/lib/ory-kratos-client/models/login_request.rb +26 -1
- data/lib/ory-kratos-client/models/login_request_method.rb +11 -1
- data/lib/ory-kratos-client/models/login_request_method_config.rb +74 -3
- data/lib/ory-kratos-client/models/profile_management_request.rb +36 -1
- data/lib/ory-kratos-client/models/registration_request.rb +31 -1
- data/lib/ory-kratos-client/models/registration_request_method.rb +1 -1
- data/lib/ory-kratos-client/models/registration_request_method_config.rb +74 -3
- data/lib/ory-kratos-client/models/session.rb +26 -1
- data/lib/ory-kratos-client/models/verifiable_address.rb +281 -0
- data/lib/ory-kratos-client/models/verification_request.rb +265 -0
- data/lib/ory-kratos-client/models/version.rb +1 -1
- data/lib/ory-kratos-client/version.rb +2 -2
- data/ory-kratos-client.gemspec +1 -1
- data/spec/models/verifiable_address_spec.rb +71 -0
- data/spec/models/verification_request_spec.rb +77 -0
- metadata +28 -20
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: latest
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -93,12 +93,27 @@ module OryHydraClient
|
|
93
93
|
# @return Array for valid properties with the reasons
|
94
94
|
def list_invalid_properties
|
95
95
|
invalid_properties = Array.new
|
96
|
+
if @action.nil?
|
97
|
+
invalid_properties.push('invalid value for "action", action cannot be nil.')
|
98
|
+
end
|
99
|
+
|
100
|
+
if @fields.nil?
|
101
|
+
invalid_properties.push('invalid value for "fields", fields cannot be nil.')
|
102
|
+
end
|
103
|
+
|
104
|
+
if @method.nil?
|
105
|
+
invalid_properties.push('invalid value for "method", method cannot be nil.')
|
106
|
+
end
|
107
|
+
|
96
108
|
invalid_properties
|
97
109
|
end
|
98
110
|
|
99
111
|
# Check to see if the all the properties in the model are valid
|
100
112
|
# @return true if the model is valid
|
101
113
|
def valid?
|
114
|
+
return false if @action.nil?
|
115
|
+
return false if @fields.nil?
|
116
|
+
return false if @method.nil?
|
102
117
|
true
|
103
118
|
end
|
104
119
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: latest
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -52,7 +52,7 @@ module OryHydraClient
|
|
52
52
|
# Attribute type mapping.
|
53
53
|
def self.openapi_types
|
54
54
|
{
|
55
|
-
:'disabled' => :'
|
55
|
+
:'disabled' => :'Boolean',
|
56
56
|
:'errors' => :'Array<Error>',
|
57
57
|
:'name' => :'String',
|
58
58
|
:'pattern' => :'String',
|
@@ -118,12 +118,27 @@ module OryHydraClient
|
|
118
118
|
# @return Array for valid properties with the reasons
|
119
119
|
def list_invalid_properties
|
120
120
|
invalid_properties = Array.new
|
121
|
+
if @name.nil?
|
122
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
123
|
+
end
|
124
|
+
|
125
|
+
if @required.nil?
|
126
|
+
invalid_properties.push('invalid value for "required", required cannot be nil.')
|
127
|
+
end
|
128
|
+
|
129
|
+
if @type.nil?
|
130
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
131
|
+
end
|
132
|
+
|
121
133
|
invalid_properties
|
122
134
|
end
|
123
135
|
|
124
136
|
# Check to see if the all the properties in the model are valid
|
125
137
|
# @return true if the model is valid
|
126
138
|
def valid?
|
139
|
+
return false if @name.nil?
|
140
|
+
return false if @required.nil?
|
141
|
+
return false if @type.nil?
|
127
142
|
true
|
128
143
|
end
|
129
144
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: latest
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,6 +14,8 @@ require 'date'
|
|
14
14
|
|
15
15
|
module OryHydraClient
|
16
16
|
class Identity
|
17
|
+
attr_accessor :addresses
|
18
|
+
|
17
19
|
attr_accessor :id
|
18
20
|
|
19
21
|
attr_accessor :traits
|
@@ -27,6 +29,7 @@ module OryHydraClient
|
|
27
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
30
|
def self.attribute_map
|
29
31
|
{
|
32
|
+
:'addresses' => :'addresses',
|
30
33
|
:'id' => :'id',
|
31
34
|
:'traits' => :'traits',
|
32
35
|
:'traits_schema_id' => :'traits_schema_id',
|
@@ -37,6 +40,7 @@ module OryHydraClient
|
|
37
40
|
# Attribute type mapping.
|
38
41
|
def self.openapi_types
|
39
42
|
{
|
43
|
+
:'addresses' => :'Array<VerifiableAddress>',
|
40
44
|
:'id' => :'String',
|
41
45
|
:'traits' => :'Object',
|
42
46
|
:'traits_schema_id' => :'String',
|
@@ -65,6 +69,12 @@ module OryHydraClient
|
|
65
69
|
h[k.to_sym] = v
|
66
70
|
}
|
67
71
|
|
72
|
+
if attributes.key?(:'addresses')
|
73
|
+
if (value = attributes[:'addresses']).is_a?(Array)
|
74
|
+
self.addresses = value
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
68
78
|
if attributes.key?(:'id')
|
69
79
|
self.id = attributes[:'id']
|
70
80
|
end
|
@@ -94,6 +104,10 @@ module OryHydraClient
|
|
94
104
|
invalid_properties.push('invalid value for "traits", traits cannot be nil.')
|
95
105
|
end
|
96
106
|
|
107
|
+
if @traits_schema_id.nil?
|
108
|
+
invalid_properties.push('invalid value for "traits_schema_id", traits_schema_id cannot be nil.')
|
109
|
+
end
|
110
|
+
|
97
111
|
invalid_properties
|
98
112
|
end
|
99
113
|
|
@@ -102,6 +116,7 @@ module OryHydraClient
|
|
102
116
|
def valid?
|
103
117
|
return false if @id.nil?
|
104
118
|
return false if @traits.nil?
|
119
|
+
return false if @traits_schema_id.nil?
|
105
120
|
true
|
106
121
|
end
|
107
122
|
|
@@ -110,6 +125,7 @@ module OryHydraClient
|
|
110
125
|
def ==(o)
|
111
126
|
return true if self.equal?(o)
|
112
127
|
self.class == o.class &&
|
128
|
+
addresses == o.addresses &&
|
113
129
|
id == o.id &&
|
114
130
|
traits == o.traits &&
|
115
131
|
traits_schema_id == o.traits_schema_id &&
|
@@ -125,7 +141,7 @@ module OryHydraClient
|
|
125
141
|
# Calculates hash code according to all attributes.
|
126
142
|
# @return [Integer] Hash code
|
127
143
|
def hash
|
128
|
-
[id, traits, traits_schema_id, traits_schema_url].hash
|
144
|
+
[addresses, id, traits, traits_schema_id, traits_schema_url].hash
|
129
145
|
end
|
130
146
|
|
131
147
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: latest
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -107,12 +107,37 @@ module OryHydraClient
|
|
107
107
|
# @return Array for valid properties with the reasons
|
108
108
|
def list_invalid_properties
|
109
109
|
invalid_properties = Array.new
|
110
|
+
if @expires_at.nil?
|
111
|
+
invalid_properties.push('invalid value for "expires_at", expires_at cannot be nil.')
|
112
|
+
end
|
113
|
+
|
114
|
+
if @id.nil?
|
115
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
116
|
+
end
|
117
|
+
|
118
|
+
if @issued_at.nil?
|
119
|
+
invalid_properties.push('invalid value for "issued_at", issued_at cannot be nil.')
|
120
|
+
end
|
121
|
+
|
122
|
+
if @methods.nil?
|
123
|
+
invalid_properties.push('invalid value for "methods", methods cannot be nil.')
|
124
|
+
end
|
125
|
+
|
126
|
+
if @request_url.nil?
|
127
|
+
invalid_properties.push('invalid value for "request_url", request_url cannot be nil.')
|
128
|
+
end
|
129
|
+
|
110
130
|
invalid_properties
|
111
131
|
end
|
112
132
|
|
113
133
|
# Check to see if the all the properties in the model are valid
|
114
134
|
# @return true if the model is valid
|
115
135
|
def valid?
|
136
|
+
return false if @expires_at.nil?
|
137
|
+
return false if @id.nil?
|
138
|
+
return false if @issued_at.nil?
|
139
|
+
return false if @methods.nil?
|
140
|
+
return false if @request_url.nil?
|
116
141
|
true
|
117
142
|
end
|
118
143
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: latest
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -69,12 +69,22 @@ module OryHydraClient
|
|
69
69
|
# @return Array for valid properties with the reasons
|
70
70
|
def list_invalid_properties
|
71
71
|
invalid_properties = Array.new
|
72
|
+
if @config.nil?
|
73
|
+
invalid_properties.push('invalid value for "config", config cannot be nil.')
|
74
|
+
end
|
75
|
+
|
76
|
+
if @method.nil?
|
77
|
+
invalid_properties.push('invalid value for "method", method cannot be nil.')
|
78
|
+
end
|
79
|
+
|
72
80
|
invalid_properties
|
73
81
|
end
|
74
82
|
|
75
83
|
# Check to see if the all the properties in the model are valid
|
76
84
|
# @return true if the model is valid
|
77
85
|
def valid?
|
86
|
+
return false if @config.nil?
|
87
|
+
return false if @method.nil?
|
78
88
|
true
|
79
89
|
end
|
80
90
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: latest
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,15 +14,40 @@ require 'date'
|
|
14
14
|
|
15
15
|
module OryHydraClient
|
16
16
|
class LoginRequestMethodConfig
|
17
|
+
# Action should be used as the form action URL (<form action=\"{{ .Action }}\" method=\"post\">).
|
18
|
+
attr_accessor :action
|
19
|
+
|
20
|
+
# Errors contains all form errors. These will be duplicates of the individual field errors.
|
21
|
+
attr_accessor :errors
|
22
|
+
|
23
|
+
# Fields contains multiple fields
|
24
|
+
attr_accessor :fields
|
25
|
+
|
26
|
+
# Method is the form method (e.g. POST)
|
27
|
+
attr_accessor :method
|
28
|
+
|
29
|
+
# Providers is set for the \"oidc\" request method.
|
30
|
+
attr_accessor :providers
|
31
|
+
|
17
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
18
33
|
def self.attribute_map
|
19
34
|
{
|
35
|
+
:'action' => :'action',
|
36
|
+
:'errors' => :'errors',
|
37
|
+
:'fields' => :'fields',
|
38
|
+
:'method' => :'method',
|
39
|
+
:'providers' => :'providers'
|
20
40
|
}
|
21
41
|
end
|
22
42
|
|
23
43
|
# Attribute type mapping.
|
24
44
|
def self.openapi_types
|
25
45
|
{
|
46
|
+
:'action' => :'String',
|
47
|
+
:'errors' => :'Array<Error>',
|
48
|
+
:'fields' => :'Array<FormField>',
|
49
|
+
:'method' => :'String',
|
50
|
+
:'providers' => :'Array<FormField>'
|
26
51
|
}
|
27
52
|
end
|
28
53
|
|
@@ -46,18 +71,59 @@ module OryHydraClient
|
|
46
71
|
end
|
47
72
|
h[k.to_sym] = v
|
48
73
|
}
|
74
|
+
|
75
|
+
if attributes.key?(:'action')
|
76
|
+
self.action = attributes[:'action']
|
77
|
+
end
|
78
|
+
|
79
|
+
if attributes.key?(:'errors')
|
80
|
+
if (value = attributes[:'errors']).is_a?(Array)
|
81
|
+
self.errors = value
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.key?(:'fields')
|
86
|
+
if (value = attributes[:'fields']).is_a?(Array)
|
87
|
+
self.fields = value
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.key?(:'method')
|
92
|
+
self.method = attributes[:'method']
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.key?(:'providers')
|
96
|
+
if (value = attributes[:'providers']).is_a?(Array)
|
97
|
+
self.providers = value
|
98
|
+
end
|
99
|
+
end
|
49
100
|
end
|
50
101
|
|
51
102
|
# Show invalid properties with the reasons. Usually used together with valid?
|
52
103
|
# @return Array for valid properties with the reasons
|
53
104
|
def list_invalid_properties
|
54
105
|
invalid_properties = Array.new
|
106
|
+
if @action.nil?
|
107
|
+
invalid_properties.push('invalid value for "action", action cannot be nil.')
|
108
|
+
end
|
109
|
+
|
110
|
+
if @fields.nil?
|
111
|
+
invalid_properties.push('invalid value for "fields", fields cannot be nil.')
|
112
|
+
end
|
113
|
+
|
114
|
+
if @method.nil?
|
115
|
+
invalid_properties.push('invalid value for "method", method cannot be nil.')
|
116
|
+
end
|
117
|
+
|
55
118
|
invalid_properties
|
56
119
|
end
|
57
120
|
|
58
121
|
# Check to see if the all the properties in the model are valid
|
59
122
|
# @return true if the model is valid
|
60
123
|
def valid?
|
124
|
+
return false if @action.nil?
|
125
|
+
return false if @fields.nil?
|
126
|
+
return false if @method.nil?
|
61
127
|
true
|
62
128
|
end
|
63
129
|
|
@@ -65,7 +131,12 @@ module OryHydraClient
|
|
65
131
|
# @param [Object] Object to be compared
|
66
132
|
def ==(o)
|
67
133
|
return true if self.equal?(o)
|
68
|
-
self.class == o.class
|
134
|
+
self.class == o.class &&
|
135
|
+
action == o.action &&
|
136
|
+
errors == o.errors &&
|
137
|
+
fields == o.fields &&
|
138
|
+
method == o.method &&
|
139
|
+
providers == o.providers
|
69
140
|
end
|
70
141
|
|
71
142
|
# @see the `==` method
|
@@ -77,7 +148,7 @@ module OryHydraClient
|
|
77
148
|
# Calculates hash code according to all attributes.
|
78
149
|
# @return [Integer] Hash code
|
79
150
|
def hash
|
80
|
-
[].hash
|
151
|
+
[action, errors, fields, method, providers].hash
|
81
152
|
end
|
82
153
|
|
83
154
|
# Builds the object from hash
|