kinde_sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +15 -0
- data/Gemfile.lock +119 -0
- data/LICENSE +21 -0
- data/README.md +342 -0
- data/Rakefile +10 -0
- data/kinde_api/.gitignore +39 -0
- data/kinde_api/.rspec +2 -0
- data/kinde_api/README.md +103 -0
- data/kinde_api/docs/AddOrganizationUsers200Response.md +22 -0
- data/kinde_api/docs/AddOrganizationUsersRequest.md +18 -0
- data/kinde_api/docs/ApiResult.md +18 -0
- data/kinde_api/docs/ConnectedAppsAccessToken.md +20 -0
- data/kinde_api/docs/ConnectedAppsApi.md +219 -0
- data/kinde_api/docs/ConnectedAppsAuthUrl.md +20 -0
- data/kinde_api/docs/CreateOrganization201Response.md +20 -0
- data/kinde_api/docs/CreateOrganizationRequest.md +20 -0
- data/kinde_api/docs/CreateUser200Response.md +22 -0
- data/kinde_api/docs/CreateUserRequest.md +20 -0
- data/kinde_api/docs/CreateUserRequestIdentitiesInner.md +20 -0
- data/kinde_api/docs/CreateUserRequestIdentitiesInnerDetails.md +18 -0
- data/kinde_api/docs/CreateUserRequestProfile.md +20 -0
- data/kinde_api/docs/EnvironmentsApi.md +216 -0
- data/kinde_api/docs/Error.md +20 -0
- data/kinde_api/docs/ErrorResponse.md +18 -0
- data/kinde_api/docs/FeatureFlagsApi.md +239 -0
- data/kinde_api/docs/GetOrganizationUsers200Response.md +24 -0
- data/kinde_api/docs/GetOrganizations200Response.md +24 -0
- data/kinde_api/docs/GetUsers200Response.md +24 -0
- data/kinde_api/docs/OAuthApi.md +141 -0
- data/kinde_api/docs/Organization.md +22 -0
- data/kinde_api/docs/OrganizationUser.md +26 -0
- data/kinde_api/docs/OrganizationsApi.md +671 -0
- data/kinde_api/docs/RemoveOrganizationUsers200Response.md +20 -0
- data/kinde_api/docs/RemoveOrganizationUsersRequest.md +18 -0
- data/kinde_api/docs/SuccessResponse.md +20 -0
- data/kinde_api/docs/UpdateUserRequest.md +22 -0
- data/kinde_api/docs/User.md +28 -0
- data/kinde_api/docs/UserIdentity.md +20 -0
- data/kinde_api/docs/UserIdentityResult.md +20 -0
- data/kinde_api/docs/UserProfile.md +26 -0
- data/kinde_api/docs/UserProfileV2.md +30 -0
- data/kinde_api/docs/UsersApi.md +603 -0
- data/kinde_api/lib/kinde_api/api/connected_apps_api.rb +221 -0
- data/kinde_api/lib/kinde_api/api/environments_api.rb +212 -0
- data/kinde_api/lib/kinde_api/api/feature_flags_api.rb +309 -0
- data/kinde_api/lib/kinde_api/api/o_auth_api.rb +136 -0
- data/kinde_api/lib/kinde_api/api/organizations_api.rb +634 -0
- data/kinde_api/lib/kinde_api/api/users_api.rb +560 -0
- data/kinde_api/lib/kinde_api/api_client.rb +397 -0
- data/kinde_api/lib/kinde_api/api_error.rb +58 -0
- data/kinde_api/lib/kinde_api/configuration.rb +295 -0
- data/kinde_api/lib/kinde_api/models/add_organization_users200_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/add_organization_users_request.rb +220 -0
- data/kinde_api/lib/kinde_api/models/api_result.rb +218 -0
- data/kinde_api/lib/kinde_api/models/connected_apps_access_token.rb +228 -0
- data/kinde_api/lib/kinde_api/models/connected_apps_auth_url.rb +228 -0
- data/kinde_api/lib/kinde_api/models/create_organization201_response.rb +228 -0
- data/kinde_api/lib/kinde_api/models/create_organization_request.rb +252 -0
- data/kinde_api/lib/kinde_api/models/create_user200_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/create_user_request.rb +229 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner.rb +228 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner_details.rb +219 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_profile.rb +229 -0
- data/kinde_api/lib/kinde_api/models/error.rb +228 -0
- data/kinde_api/lib/kinde_api/models/error_response.rb +219 -0
- data/kinde_api/lib/kinde_api/models/get_organization_users200_response.rb +249 -0
- data/kinde_api/lib/kinde_api/models/get_organizations200_response.rb +249 -0
- data/kinde_api/lib/kinde_api/models/get_users200_response.rb +249 -0
- data/kinde_api/lib/kinde_api/models/organization.rb +235 -0
- data/kinde_api/lib/kinde_api/models/organization_user.rb +253 -0
- data/kinde_api/lib/kinde_api/models/remove_organization_users200_response.rb +228 -0
- data/kinde_api/lib/kinde_api/models/remove_organization_users_request.rb +220 -0
- data/kinde_api/lib/kinde_api/models/success_response.rb +226 -0
- data/kinde_api/lib/kinde_api/models/update_user_request.rb +238 -0
- data/kinde_api/lib/kinde_api/models/user.rb +269 -0
- data/kinde_api/lib/kinde_api/models/user_identity.rb +227 -0
- data/kinde_api/lib/kinde_api/models/user_identity_result.rb +229 -0
- data/kinde_api/lib/kinde_api/models/user_profile.rb +259 -0
- data/kinde_api/lib/kinde_api/models/user_profile_v2.rb +279 -0
- data/kinde_api/lib/kinde_api/version.rb +15 -0
- data/kinde_api/lib/kinde_api.rb +73 -0
- data/kinde_api/spec/api/connected_apps_api_spec.rb +72 -0
- data/kinde_api/spec/api/environments_api_spec.rb +71 -0
- data/kinde_api/spec/api/feature_flags_api_spec.rb +82 -0
- data/kinde_api/spec/api/o_auth_api_spec.rb +57 -0
- data/kinde_api/spec/api/organizations_api_spec.rb +154 -0
- data/kinde_api/spec/api/users_api_spec.rb +141 -0
- data/kinde_api/spec/api_client_spec.rb +229 -0
- data/kinde_api/spec/configuration_spec.rb +42 -0
- data/kinde_api/spec/models/add_organization_users200_response_spec.rb +46 -0
- data/kinde_api/spec/models/add_organization_users_request_spec.rb +34 -0
- data/kinde_api/spec/models/api_result_spec.rb +34 -0
- data/kinde_api/spec/models/connected_apps_access_token_spec.rb +40 -0
- data/kinde_api/spec/models/connected_apps_auth_url_spec.rb +40 -0
- data/kinde_api/spec/models/create_organization201_response_spec.rb +40 -0
- data/kinde_api/spec/models/create_organization_request_spec.rb +44 -0
- data/kinde_api/spec/models/create_user200_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_user_request_identities_inner_details_spec.rb +34 -0
- data/kinde_api/spec/models/create_user_request_identities_inner_spec.rb +40 -0
- data/kinde_api/spec/models/create_user_request_profile_spec.rb +40 -0
- data/kinde_api/spec/models/create_user_request_spec.rb +40 -0
- data/kinde_api/spec/models/error_response_spec.rb +34 -0
- data/kinde_api/spec/models/error_spec.rb +40 -0
- data/kinde_api/spec/models/get_organization_users200_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_organizations200_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_users200_response_spec.rb +52 -0
- data/kinde_api/spec/models/organization_spec.rb +46 -0
- data/kinde_api/spec/models/organization_user_spec.rb +58 -0
- data/kinde_api/spec/models/remove_organization_users200_response_spec.rb +40 -0
- data/kinde_api/spec/models/remove_organization_users_request_spec.rb +34 -0
- data/kinde_api/spec/models/success_response_spec.rb +40 -0
- data/kinde_api/spec/models/update_user_request_spec.rb +46 -0
- data/kinde_api/spec/models/user_identity_result_spec.rb +40 -0
- data/kinde_api/spec/models/user_identity_spec.rb +40 -0
- data/kinde_api/spec/models/user_profile_spec.rb +58 -0
- data/kinde_api/spec/models/user_profile_v2_spec.rb +70 -0
- data/kinde_api/spec/models/user_spec.rb +64 -0
- data/kinde_api/spec/spec_helper.rb +111 -0
- data/kinde_sdk.gemspec +33 -0
- data/lib/kinde_sdk/client.rb +49 -0
- data/lib/kinde_sdk/configuration.rb +50 -0
- data/lib/kinde_sdk/version.rb +3 -0
- data/lib/kinde_sdk.rb +109 -0
- data/openapitools.json +7 -0
- data/spec/kinde_sdk_spec.rb +105 -0
- data/spec/spec_helper.rb +82 -0
- metadata +291 -0
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Kinde Management API
|
|
3
|
+
|
|
4
|
+
#Provides endpoints to manage your Kinde Businesses
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1
|
|
7
|
+
Contact: support@kinde.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.4.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module KindeApi
|
|
17
|
+
class UserProfileV2
|
|
18
|
+
# Unique id of the user in Kinde.
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
# Value of the user's id in a third-party system when the user is imported into Kinde.
|
|
22
|
+
attr_accessor :provided_id
|
|
23
|
+
|
|
24
|
+
# Users's first and last name separated by a space.
|
|
25
|
+
attr_accessor :name
|
|
26
|
+
|
|
27
|
+
# User's first name.
|
|
28
|
+
attr_accessor :given_name
|
|
29
|
+
|
|
30
|
+
# User's last name.
|
|
31
|
+
attr_accessor :family_name
|
|
32
|
+
|
|
33
|
+
# Date the user was last updated at (In Unix time).
|
|
34
|
+
attr_accessor :updated_at
|
|
35
|
+
|
|
36
|
+
# User's email address if available.
|
|
37
|
+
attr_accessor :email
|
|
38
|
+
|
|
39
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
40
|
+
def self.attribute_map
|
|
41
|
+
{
|
|
42
|
+
:'id' => :'id',
|
|
43
|
+
:'provided_id' => :'provided_id',
|
|
44
|
+
:'name' => :'name',
|
|
45
|
+
:'given_name' => :'given_name',
|
|
46
|
+
:'family_name' => :'family_name',
|
|
47
|
+
:'updated_at' => :'updated_at',
|
|
48
|
+
:'email' => :'email'
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Returns all the JSON keys this model knows about
|
|
53
|
+
def self.acceptable_attributes
|
|
54
|
+
attribute_map.values
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Attribute type mapping.
|
|
58
|
+
def self.openapi_types
|
|
59
|
+
{
|
|
60
|
+
:'id' => :'String',
|
|
61
|
+
:'provided_id' => :'String',
|
|
62
|
+
:'name' => :'String',
|
|
63
|
+
:'given_name' => :'String',
|
|
64
|
+
:'family_name' => :'String',
|
|
65
|
+
:'updated_at' => :'Integer',
|
|
66
|
+
:'email' => :'String'
|
|
67
|
+
}
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# List of attributes with nullable: true
|
|
71
|
+
def self.openapi_nullable
|
|
72
|
+
Set.new([
|
|
73
|
+
:'provided_id',
|
|
74
|
+
])
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Initializes the object
|
|
78
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
79
|
+
def initialize(attributes = {})
|
|
80
|
+
if (!attributes.is_a?(Hash))
|
|
81
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `KindeApi::UserProfileV2` initialize method"
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
85
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
86
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `KindeApi::UserProfileV2`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
88
|
+
end
|
|
89
|
+
h[k.to_sym] = v
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'id')
|
|
93
|
+
self.id = attributes[:'id']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'provided_id')
|
|
97
|
+
self.provided_id = attributes[:'provided_id']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'name')
|
|
101
|
+
self.name = attributes[:'name']
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'given_name')
|
|
105
|
+
self.given_name = attributes[:'given_name']
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'family_name')
|
|
109
|
+
self.family_name = attributes[:'family_name']
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'updated_at')
|
|
113
|
+
self.updated_at = attributes[:'updated_at']
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if attributes.key?(:'email')
|
|
117
|
+
self.email = attributes[:'email']
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
122
|
+
# @return Array for valid properties with the reasons
|
|
123
|
+
def list_invalid_properties
|
|
124
|
+
invalid_properties = Array.new
|
|
125
|
+
invalid_properties
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Check to see if the all the properties in the model are valid
|
|
129
|
+
# @return true if the model is valid
|
|
130
|
+
def valid?
|
|
131
|
+
true
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Checks equality by comparing each attribute.
|
|
135
|
+
# @param [Object] Object to be compared
|
|
136
|
+
def ==(o)
|
|
137
|
+
return true if self.equal?(o)
|
|
138
|
+
self.class == o.class &&
|
|
139
|
+
id == o.id &&
|
|
140
|
+
provided_id == o.provided_id &&
|
|
141
|
+
name == o.name &&
|
|
142
|
+
given_name == o.given_name &&
|
|
143
|
+
family_name == o.family_name &&
|
|
144
|
+
updated_at == o.updated_at &&
|
|
145
|
+
email == o.email
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# @see the `==` method
|
|
149
|
+
# @param [Object] Object to be compared
|
|
150
|
+
def eql?(o)
|
|
151
|
+
self == o
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Calculates hash code according to all attributes.
|
|
155
|
+
# @return [Integer] Hash code
|
|
156
|
+
def hash
|
|
157
|
+
[id, provided_id, name, given_name, family_name, updated_at, email].hash
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Builds the object from hash
|
|
161
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
162
|
+
# @return [Object] Returns the model itself
|
|
163
|
+
def self.build_from_hash(attributes)
|
|
164
|
+
new.build_from_hash(attributes)
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# Builds the object from hash
|
|
168
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
169
|
+
# @return [Object] Returns the model itself
|
|
170
|
+
def build_from_hash(attributes)
|
|
171
|
+
return nil unless attributes.is_a?(Hash)
|
|
172
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
173
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
174
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
175
|
+
self.send("#{key}=", nil)
|
|
176
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
177
|
+
# check to ensure the input is an array given that the attribute
|
|
178
|
+
# is documented as an array but the input is not
|
|
179
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
180
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
181
|
+
end
|
|
182
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
183
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
self
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Deserializes the data based on type
|
|
191
|
+
# @param string type Data type
|
|
192
|
+
# @param string value Value to be deserialized
|
|
193
|
+
# @return [Object] Deserialized data
|
|
194
|
+
def _deserialize(type, value)
|
|
195
|
+
case type.to_sym
|
|
196
|
+
when :Time
|
|
197
|
+
Time.parse(value)
|
|
198
|
+
when :Date
|
|
199
|
+
Date.parse(value)
|
|
200
|
+
when :String
|
|
201
|
+
value.to_s
|
|
202
|
+
when :Integer
|
|
203
|
+
value.to_i
|
|
204
|
+
when :Float
|
|
205
|
+
value.to_f
|
|
206
|
+
when :Boolean
|
|
207
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
208
|
+
true
|
|
209
|
+
else
|
|
210
|
+
false
|
|
211
|
+
end
|
|
212
|
+
when :Object
|
|
213
|
+
# generic object (usually a Hash), return directly
|
|
214
|
+
value
|
|
215
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
216
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
217
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
218
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
219
|
+
k_type = Regexp.last_match[:k_type]
|
|
220
|
+
v_type = Regexp.last_match[:v_type]
|
|
221
|
+
{}.tap do |hash|
|
|
222
|
+
value.each do |k, v|
|
|
223
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
else # model
|
|
227
|
+
# models (e.g. Pet) or oneOf
|
|
228
|
+
klass = KindeApi.const_get(type)
|
|
229
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# Returns the string representation of the object
|
|
234
|
+
# @return [String] String presentation of the object
|
|
235
|
+
def to_s
|
|
236
|
+
to_hash.to_s
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
240
|
+
# @return [Hash] Returns the object in the form of hash
|
|
241
|
+
def to_body
|
|
242
|
+
to_hash
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# Returns the object in the form of hash
|
|
246
|
+
# @return [Hash] Returns the object in the form of hash
|
|
247
|
+
def to_hash
|
|
248
|
+
hash = {}
|
|
249
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
250
|
+
value = self.send(attr)
|
|
251
|
+
if value.nil?
|
|
252
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
253
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
hash[param] = _to_hash(value)
|
|
257
|
+
end
|
|
258
|
+
hash
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
# Outputs non-array value in the form of hash
|
|
262
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
263
|
+
# @param [Object] value Any valid value
|
|
264
|
+
# @return [Hash] Returns the value in the form of hash
|
|
265
|
+
def _to_hash(value)
|
|
266
|
+
if value.is_a?(Array)
|
|
267
|
+
value.compact.map { |v| _to_hash(v) }
|
|
268
|
+
elsif value.is_a?(Hash)
|
|
269
|
+
{}.tap do |hash|
|
|
270
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
271
|
+
end
|
|
272
|
+
elsif value.respond_to? :to_hash
|
|
273
|
+
value.to_hash
|
|
274
|
+
else
|
|
275
|
+
value
|
|
276
|
+
end
|
|
277
|
+
end
|
|
278
|
+
end
|
|
279
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Kinde Management API
|
|
3
|
+
|
|
4
|
+
#Provides endpoints to manage your Kinde Businesses
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1
|
|
7
|
+
Contact: support@kinde.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.4.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
module KindeApi
|
|
14
|
+
VERSION = '1.0.0'
|
|
15
|
+
end
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Kinde Management API
|
|
3
|
+
|
|
4
|
+
#Provides endpoints to manage your Kinde Businesses
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1
|
|
7
|
+
Contact: support@kinde.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.4.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
# Common files
|
|
14
|
+
require 'kinde_api/api_client'
|
|
15
|
+
require 'kinde_api/api_error'
|
|
16
|
+
require 'kinde_api/version'
|
|
17
|
+
require 'kinde_api/configuration'
|
|
18
|
+
|
|
19
|
+
# Models
|
|
20
|
+
KindeApi.autoload :AddOrganizationUsers200Response, 'kinde_api/models/add_organization_users200_response'
|
|
21
|
+
KindeApi.autoload :AddOrganizationUsersRequest, 'kinde_api/models/add_organization_users_request'
|
|
22
|
+
KindeApi.autoload :ApiResult, 'kinde_api/models/api_result'
|
|
23
|
+
KindeApi.autoload :ConnectedAppsAccessToken, 'kinde_api/models/connected_apps_access_token'
|
|
24
|
+
KindeApi.autoload :ConnectedAppsAuthUrl, 'kinde_api/models/connected_apps_auth_url'
|
|
25
|
+
KindeApi.autoload :CreateOrganization201Response, 'kinde_api/models/create_organization201_response'
|
|
26
|
+
KindeApi.autoload :CreateOrganizationRequest, 'kinde_api/models/create_organization_request'
|
|
27
|
+
KindeApi.autoload :CreateUser200Response, 'kinde_api/models/create_user200_response'
|
|
28
|
+
KindeApi.autoload :CreateUserRequest, 'kinde_api/models/create_user_request'
|
|
29
|
+
KindeApi.autoload :CreateUserRequestIdentitiesInner, 'kinde_api/models/create_user_request_identities_inner'
|
|
30
|
+
KindeApi.autoload :CreateUserRequestIdentitiesInnerDetails, 'kinde_api/models/create_user_request_identities_inner_details'
|
|
31
|
+
KindeApi.autoload :CreateUserRequestProfile, 'kinde_api/models/create_user_request_profile'
|
|
32
|
+
KindeApi.autoload :Error, 'kinde_api/models/error'
|
|
33
|
+
KindeApi.autoload :ErrorResponse, 'kinde_api/models/error_response'
|
|
34
|
+
KindeApi.autoload :GetOrganizationUsers200Response, 'kinde_api/models/get_organization_users200_response'
|
|
35
|
+
KindeApi.autoload :GetOrganizations200Response, 'kinde_api/models/get_organizations200_response'
|
|
36
|
+
KindeApi.autoload :GetUsers200Response, 'kinde_api/models/get_users200_response'
|
|
37
|
+
KindeApi.autoload :Organization, 'kinde_api/models/organization'
|
|
38
|
+
KindeApi.autoload :OrganizationUser, 'kinde_api/models/organization_user'
|
|
39
|
+
KindeApi.autoload :RemoveOrganizationUsers200Response, 'kinde_api/models/remove_organization_users200_response'
|
|
40
|
+
KindeApi.autoload :RemoveOrganizationUsersRequest, 'kinde_api/models/remove_organization_users_request'
|
|
41
|
+
KindeApi.autoload :SuccessResponse, 'kinde_api/models/success_response'
|
|
42
|
+
KindeApi.autoload :UpdateUserRequest, 'kinde_api/models/update_user_request'
|
|
43
|
+
KindeApi.autoload :User, 'kinde_api/models/user'
|
|
44
|
+
KindeApi.autoload :UserIdentity, 'kinde_api/models/user_identity'
|
|
45
|
+
KindeApi.autoload :UserIdentityResult, 'kinde_api/models/user_identity_result'
|
|
46
|
+
KindeApi.autoload :UserProfile, 'kinde_api/models/user_profile'
|
|
47
|
+
KindeApi.autoload :UserProfileV2, 'kinde_api/models/user_profile_v2'
|
|
48
|
+
|
|
49
|
+
# APIs
|
|
50
|
+
KindeApi.autoload :ConnectedAppsApi, 'kinde_api/api/connected_apps_api'
|
|
51
|
+
KindeApi.autoload :EnvironmentsApi, 'kinde_api/api/environments_api'
|
|
52
|
+
KindeApi.autoload :FeatureFlagsApi, 'kinde_api/api/feature_flags_api'
|
|
53
|
+
KindeApi.autoload :OAuthApi, 'kinde_api/api/o_auth_api'
|
|
54
|
+
KindeApi.autoload :OrganizationsApi, 'kinde_api/api/organizations_api'
|
|
55
|
+
KindeApi.autoload :UsersApi, 'kinde_api/api/users_api'
|
|
56
|
+
|
|
57
|
+
module KindeApi
|
|
58
|
+
class << self
|
|
59
|
+
# Customize default settings for the SDK using block.
|
|
60
|
+
# KindeApi.configure do |config|
|
|
61
|
+
# config.username = "xxx"
|
|
62
|
+
# config.password = "xxx"
|
|
63
|
+
# end
|
|
64
|
+
# If no block given, return the default Configuration object.
|
|
65
|
+
def configure
|
|
66
|
+
if block_given?
|
|
67
|
+
yield(Configuration.default)
|
|
68
|
+
else
|
|
69
|
+
Configuration.default
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Kinde Management API
|
|
3
|
+
|
|
4
|
+
#Provides endpoints to manage your Kinde Businesses
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1
|
|
7
|
+
Contact: support@kinde.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.4.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for KindeApi::ConnectedAppsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'ConnectedAppsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = KindeApi::ConnectedAppsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of ConnectedAppsApi' do
|
|
30
|
+
it 'should create an instance of ConnectedAppsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(KindeApi::ConnectedAppsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for get_connected_app_auth_url
|
|
36
|
+
# Get Connected App URL
|
|
37
|
+
# Get a URL that authenticates and authorizes a user to a third-party connected app.
|
|
38
|
+
# @param key_code_ref The unique key code reference of the connected app to authenticate against.
|
|
39
|
+
# @param user_id The id of the user that needs to authenticate to the third-party connected app.
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @return [ConnectedAppsAuthUrl]
|
|
42
|
+
describe 'get_connected_app_auth_url test' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# unit tests for get_connected_app_token
|
|
49
|
+
# Get Connected App Token
|
|
50
|
+
# Get an access token that can be used to call the third-party provider linked to the connected app.
|
|
51
|
+
# @param session_id The unique sesssion id reprensenting the login session of a user.
|
|
52
|
+
# @param [Hash] opts the optional parameters
|
|
53
|
+
# @return [ConnectedAppsAccessToken]
|
|
54
|
+
describe 'get_connected_app_token test' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# unit tests for revoke_connected_app_token
|
|
61
|
+
# Revoke Connected App Token
|
|
62
|
+
# Revoke the tokens linked to the connected app session.
|
|
63
|
+
# @param session_id The unique sesssion id reprensenting the login session of a user.
|
|
64
|
+
# @param [Hash] opts the optional parameters
|
|
65
|
+
# @return [ApiResult]
|
|
66
|
+
describe 'revoke_connected_app_token test' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
end
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Kinde Management API
|
|
3
|
+
|
|
4
|
+
#Provides endpoints to manage your Kinde Businesses
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1
|
|
7
|
+
Contact: support@kinde.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.4.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for KindeApi::EnvironmentsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'EnvironmentsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = KindeApi::EnvironmentsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of EnvironmentsApi' do
|
|
30
|
+
it 'should create an instance of EnvironmentsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(KindeApi::EnvironmentsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for delete_environement_feature_flag_override
|
|
36
|
+
# Delete environment feature flag override
|
|
37
|
+
# Delete environment feature flag override.
|
|
38
|
+
# @param feature_flag_key The identifier for the feature flag.
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [SuccessResponse]
|
|
41
|
+
describe 'delete_environement_feature_flag_override test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# unit tests for delete_environement_feature_flag_overrides
|
|
48
|
+
# Delete all environment feature flag overrides
|
|
49
|
+
# Delete all environment feature flag overrides.
|
|
50
|
+
# @param [Hash] opts the optional parameters
|
|
51
|
+
# @return [SuccessResponse]
|
|
52
|
+
describe 'delete_environement_feature_flag_overrides test' do
|
|
53
|
+
it 'should work' do
|
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# unit tests for update_environement_feature_flag_override
|
|
59
|
+
# Update environment feature flag override
|
|
60
|
+
# Update environment feature flag override.
|
|
61
|
+
# @param feature_flag_key The identifier for the feature flag.
|
|
62
|
+
# @param value The override value for the feature flag.
|
|
63
|
+
# @param [Hash] opts the optional parameters
|
|
64
|
+
# @return [SuccessResponse]
|
|
65
|
+
describe 'update_environement_feature_flag_override test' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
end
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Kinde Management API
|
|
3
|
+
|
|
4
|
+
#Provides endpoints to manage your Kinde Businesses
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1
|
|
7
|
+
Contact: support@kinde.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.4.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for KindeApi::FeatureFlagsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'FeatureFlagsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = KindeApi::FeatureFlagsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of FeatureFlagsApi' do
|
|
30
|
+
it 'should create an instance of FeatureFlagsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(KindeApi::FeatureFlagsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for create_feature_flag
|
|
36
|
+
# Create a new feature flag
|
|
37
|
+
# Create feature flag.
|
|
38
|
+
# @param name The name of the flag.
|
|
39
|
+
# @param description Description of the flag purpose.
|
|
40
|
+
# @param key The flag identifier to use in code.
|
|
41
|
+
# @param type The variable type.
|
|
42
|
+
# @param allow_override_level Allow the flag to be overridden at a different level.
|
|
43
|
+
# @param default_value Default value for the flag used by environments and organizations.
|
|
44
|
+
# @param [Hash] opts the optional parameters
|
|
45
|
+
# @return [SuccessResponse]
|
|
46
|
+
describe 'create_feature_flag test' do
|
|
47
|
+
it 'should work' do
|
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# unit tests for delete_feature_flag
|
|
53
|
+
# Delete a feature flag
|
|
54
|
+
# Delete feature flag
|
|
55
|
+
# @param feature_flag_key The identifier for the feature flag.
|
|
56
|
+
# @param [Hash] opts the optional parameters
|
|
57
|
+
# @return [SuccessResponse]
|
|
58
|
+
describe 'delete_feature_flag test' do
|
|
59
|
+
it 'should work' do
|
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# unit tests for update_feature_flag
|
|
65
|
+
# Update a feature flag
|
|
66
|
+
# Update feature flag.
|
|
67
|
+
# @param feature_flag_key The identifier for the feature flag.
|
|
68
|
+
# @param name The name of the flag.
|
|
69
|
+
# @param description Description of the flag purpose.
|
|
70
|
+
# @param key The flag identifier to use in code.
|
|
71
|
+
# @param type The variable type
|
|
72
|
+
# @param allow_override_level Allow the flag to be overridden at a different level.
|
|
73
|
+
# @param default_value Default value for the flag used by environments and organizations.
|
|
74
|
+
# @param [Hash] opts the optional parameters
|
|
75
|
+
# @return [SuccessResponse]
|
|
76
|
+
describe 'update_feature_flag test' do
|
|
77
|
+
it 'should work' do
|
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
end
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Kinde Management API
|
|
3
|
+
|
|
4
|
+
#Provides endpoints to manage your Kinde Businesses
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1
|
|
7
|
+
Contact: support@kinde.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.4.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for KindeApi::OAuthApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'OAuthApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = KindeApi::OAuthApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of OAuthApi' do
|
|
30
|
+
it 'should create an instance of OAuthApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(KindeApi::OAuthApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for get_user
|
|
36
|
+
# Returns the details of the currently logged in user
|
|
37
|
+
# Contains the id, names and email of the currently logged in user.
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @return [UserProfile]
|
|
40
|
+
describe 'get_user test' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# unit tests for get_user_profile_v2
|
|
47
|
+
# Returns the details of the currently logged in user
|
|
48
|
+
# Contains the id, names, profile picture URL and email of the currently logged in user.
|
|
49
|
+
# @param [Hash] opts the optional parameters
|
|
50
|
+
# @return [UserProfileV2]
|
|
51
|
+
describe 'get_user_profile_v2 test' do
|
|
52
|
+
it 'should work' do
|
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
end
|