kinde_sdk 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/kinde_api/README.md +3 -1
- data/kinde_api/docs/ConnectedAppsApi.md +12 -6
- data/kinde_api/docs/CreateOrganizationRequest.md +14 -2
- data/kinde_api/docs/CreateUserRequest.md +2 -0
- data/kinde_api/docs/OrganizationsApi.md +6 -8
- data/kinde_api/docs/Permissions.md +3 -1
- data/kinde_api/docs/RolesApi.md +2 -2
- data/kinde_api/docs/UpdateOrganizationRequest.md +13 -1
- data/kinde_api/docs/UsersApi.md +80 -10
- data/kinde_api/lib/kinde_api/api/apis_api.rb +95 -96
- data/kinde_api/lib/kinde_api/api/applications_api.rb +95 -85
- data/kinde_api/lib/kinde_api/api/business_api.rb +58 -56
- data/kinde_api/lib/kinde_api/api/callbacks_api.rb +164 -144
- data/kinde_api/lib/kinde_api/api/connected_apps_api.rb +66 -54
- data/kinde_api/lib/kinde_api/api/environments_api.rb +71 -58
- data/kinde_api/lib/kinde_api/api/feature_flags_api.rb +82 -62
- data/kinde_api/lib/kinde_api/api/industries_api.rb +22 -23
- data/kinde_api/lib/kinde_api/api/o_auth_api.rb +63 -72
- data/kinde_api/lib/kinde_api/api/organizations_api.rb +376 -287
- data/kinde_api/lib/kinde_api/api/permissions_api.rb +72 -68
- data/kinde_api/lib/kinde_api/api/roles_api.rb +137 -134
- data/kinde_api/lib/kinde_api/api/subscribers_api.rb +58 -57
- data/kinde_api/lib/kinde_api/api/timezones_api.rb +22 -23
- data/kinde_api/lib/kinde_api/api/users_api.rb +204 -128
- data/kinde_api/lib/kinde_api/api_client.rb +68 -79
- data/kinde_api/lib/kinde_api/api_error.rb +16 -16
- data/kinde_api/lib/kinde_api/configuration.rb +23 -100
- data/kinde_api/lib/kinde_api/models/add_apis_request.rb +49 -52
- data/kinde_api/lib/kinde_api/models/add_organization_users_request.rb +42 -40
- data/kinde_api/lib/kinde_api/models/add_organization_users_request_users_inner.rb +51 -53
- data/kinde_api/lib/kinde_api/models/add_organization_users_response.rb +50 -52
- data/kinde_api/lib/kinde_api/models/api.rb +61 -70
- data/kinde_api/lib/kinde_api/models/api_applications_inner.rb +54 -63
- data/kinde_api/lib/kinde_api/models/api_result.rb +40 -38
- data/kinde_api/lib/kinde_api/models/apis.rb +52 -56
- data/kinde_api/lib/kinde_api/models/applications.rb +50 -55
- data/kinde_api/lib/kinde_api/models/connected_apps_access_token.rb +45 -44
- data/kinde_api/lib/kinde_api/models/connected_apps_auth_url.rb +45 -44
- data/kinde_api/lib/kinde_api/models/create_application_request.rb +51 -49
- data/kinde_api/lib/kinde_api/models/create_application_response.rb +49 -50
- data/kinde_api/lib/kinde_api/models/create_application_response_application.rb +49 -50
- data/kinde_api/lib/kinde_api/models/create_feature_flag_request.rb +77 -87
- data/kinde_api/lib/kinde_api/models/create_organization_request.rb +125 -83
- data/kinde_api/lib/kinde_api/models/create_organization_response.rb +50 -55
- data/kinde_api/lib/kinde_api/models/create_organization_response_organization.rb +41 -38
- data/kinde_api/lib/kinde_api/models/create_organization_user_permission_request.rb +41 -38
- data/kinde_api/lib/kinde_api/models/create_organization_user_role_request.rb +41 -38
- data/kinde_api/lib/kinde_api/models/create_permission_request.rb +49 -50
- data/kinde_api/lib/kinde_api/models/create_role_request.rb +53 -56
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response.rb +41 -38
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response_subscriber.rb +41 -38
- data/kinde_api/lib/kinde_api/models/create_user_request.rb +55 -47
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner.rb +51 -49
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner_details.rb +41 -38
- data/kinde_api/lib/kinde_api/models/create_user_request_profile.rb +45 -44
- data/kinde_api/lib/kinde_api/models/create_user_response.rb +50 -52
- data/kinde_api/lib/kinde_api/models/error.rb +44 -44
- data/kinde_api/lib/kinde_api/models/error_response.rb +42 -40
- data/kinde_api/lib/kinde_api/models/get_application_response.rb +49 -50
- data/kinde_api/lib/kinde_api/models/get_application_response_application.rb +57 -62
- data/kinde_api/lib/kinde_api/models/get_applications_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/get_environment_feature_flags_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response.rb +50 -52
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response_feature_flags_value.rb +52 -52
- data/kinde_api/lib/kinde_api/models/get_organization_users_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/get_organizations_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/get_organizations_user_permissions_response.rb +50 -52
- data/kinde_api/lib/kinde_api/models/get_organizations_user_roles_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/get_permissions_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/get_redirect_callback_urls_response.rb +42 -40
- data/kinde_api/lib/kinde_api/models/get_roles_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/get_subscriber_response.rb +50 -52
- data/kinde_api/lib/kinde_api/models/get_subscribers_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/logout_redirect_urls.rb +42 -40
- data/kinde_api/lib/kinde_api/models/organization.rb +54 -63
- data/kinde_api/lib/kinde_api/models/organization_user.rb +63 -81
- data/kinde_api/lib/kinde_api/models/organization_user_permission.rb +59 -73
- data/kinde_api/lib/kinde_api/models/organization_user_permission_roles_inner.rb +46 -47
- data/kinde_api/lib/kinde_api/models/organization_user_role.rb +50 -55
- data/kinde_api/lib/kinde_api/models/organization_user_role_permissions.rb +50 -55
- data/kinde_api/lib/kinde_api/models/organization_user_role_permissions_permissions.rb +41 -38
- data/kinde_api/lib/kinde_api/models/permissions.rb +59 -52
- data/kinde_api/lib/kinde_api/models/redirect_callback_urls.rb +42 -40
- data/kinde_api/lib/kinde_api/models/replace_logout_redirect_urls_request.rb +42 -40
- data/kinde_api/lib/kinde_api/models/replace_redirect_callback_urls_request.rb +42 -40
- data/kinde_api/lib/kinde_api/models/role.rb +53 -63
- data/kinde_api/lib/kinde_api/models/roles.rb +52 -56
- data/kinde_api/lib/kinde_api/models/roles_permission_response_inner.rb +54 -63
- data/kinde_api/lib/kinde_api/models/subscriber.rb +54 -63
- data/kinde_api/lib/kinde_api/models/subscribers_subscriber.rb +58 -71
- data/kinde_api/lib/kinde_api/models/success_response.rb +46 -47
- data/kinde_api/lib/kinde_api/models/token_error_response.rb +45 -44
- data/kinde_api/lib/kinde_api/models/token_introspect.rb +58 -63
- data/kinde_api/lib/kinde_api/models/update_api_applications_request.rb +44 -42
- data/kinde_api/lib/kinde_api/models/update_api_applications_request_applications_inner.rb +47 -46
- data/kinde_api/lib/kinde_api/models/update_application_request.rb +55 -59
- data/kinde_api/lib/kinde_api/models/update_environement_feature_flag_override_request.rb +43 -40
- data/kinde_api/lib/kinde_api/models/update_organization_request.rb +115 -75
- data/kinde_api/lib/kinde_api/models/update_organization_users_request.rb +42 -40
- data/kinde_api/lib/kinde_api/models/update_organization_users_request_users_inner.rb +55 -59
- data/kinde_api/lib/kinde_api/models/update_organization_users_response.rb +57 -67
- data/kinde_api/lib/kinde_api/models/update_role_permissions_request.rb +42 -40
- data/kinde_api/lib/kinde_api/models/update_role_permissions_request_permissions_inner.rb +45 -44
- data/kinde_api/lib/kinde_api/models/update_role_permissions_response.rb +56 -66
- data/kinde_api/lib/kinde_api/models/update_roles_request.rb +56 -61
- data/kinde_api/lib/kinde_api/models/update_user_request.rb +53 -56
- data/kinde_api/lib/kinde_api/models/update_user_response.rb +66 -73
- data/kinde_api/lib/kinde_api/models/user.rb +97 -118
- data/kinde_api/lib/kinde_api/models/user_identities_inner.rb +46 -47
- data/kinde_api/lib/kinde_api/models/user_identity.rb +45 -44
- data/kinde_api/lib/kinde_api/models/user_identity_result.rb +41 -38
- data/kinde_api/lib/kinde_api/models/user_profile.rb +62 -68
- data/kinde_api/lib/kinde_api/models/user_profile_v2.rb +74 -86
- data/kinde_api/lib/kinde_api/models/users_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/users_response_users_inner.rb +98 -118
- data/kinde_api/lib/kinde_api/version.rb +11 -11
- data/kinde_api/lib/kinde_api.rb +30 -20
- data/kinde_api/spec/api/apis_api_spec.rb +20 -21
- data/kinde_api/spec/api/applications_api_spec.rb +18 -19
- data/kinde_api/spec/api/business_api_spec.rb +12 -13
- data/kinde_api/spec/api/callbacks_api_spec.rb +27 -28
- data/kinde_api/spec/api/connected_apps_api_spec.rb +16 -15
- data/kinde_api/spec/api/environments_api_spec.rb +14 -15
- data/kinde_api/spec/api/feature_flags_api_spec.rb +13 -14
- data/kinde_api/spec/api/industries_api_spec.rb +12 -13
- data/kinde_api/spec/api/o_auth_api_spec.rb +16 -17
- data/kinde_api/spec/api/organizations_api_spec.rb +34 -35
- data/kinde_api/spec/api/permissions_api_spec.rb +15 -16
- data/kinde_api/spec/api/roles_api_spec.rb +20 -21
- data/kinde_api/spec/api/subscribers_api_spec.rb +15 -16
- data/kinde_api/spec/api/timezones_api_spec.rb +12 -13
- data/kinde_api/spec/api/users_api_spec.rb +36 -24
- data/kinde_api/spec/api_client_spec.rb +21 -27
- data/kinde_api/spec/configuration_spec.rb +11 -11
- data/kinde_api/spec/models/add_apis_request_spec.rb +13 -14
- data/kinde_api/spec/models/add_organization_users_request_spec.rb +11 -12
- data/kinde_api/spec/models/add_organization_users_request_users_inner_spec.rb +14 -15
- data/kinde_api/spec/models/add_organization_users_response_spec.rb +14 -15
- data/kinde_api/spec/models/api_applications_inner_spec.rb +15 -16
- data/kinde_api/spec/models/api_result_spec.rb +11 -12
- data/kinde_api/spec/models/api_spec.rb +17 -18
- data/kinde_api/spec/models/apis_spec.rb +15 -16
- data/kinde_api/spec/models/applications_spec.rb +14 -15
- data/kinde_api/spec/models/connected_apps_access_token_spec.rb +13 -14
- data/kinde_api/spec/models/connected_apps_auth_url_spec.rb +13 -14
- data/kinde_api/spec/models/create_application_request_spec.rb +13 -14
- data/kinde_api/spec/models/create_application_response_application_spec.rb +14 -15
- data/kinde_api/spec/models/create_application_response_spec.rb +14 -15
- data/kinde_api/spec/models/create_feature_flag_request_spec.rb +17 -18
- data/kinde_api/spec/models/create_organization_request_spec.rb +53 -18
- data/kinde_api/spec/models/create_organization_response_organization_spec.rb +11 -12
- data/kinde_api/spec/models/create_organization_response_spec.rb +14 -15
- data/kinde_api/spec/models/create_organization_user_permission_request_spec.rb +11 -12
- data/kinde_api/spec/models/create_organization_user_role_request_spec.rb +11 -12
- data/kinde_api/spec/models/create_permission_request_spec.rb +14 -15
- data/kinde_api/spec/models/create_role_request_spec.rb +15 -16
- data/kinde_api/spec/models/create_subscriber_success_response_spec.rb +11 -12
- data/kinde_api/spec/models/create_subscriber_success_response_subscriber_spec.rb +11 -12
- data/kinde_api/spec/models/create_user_request_identities_inner_details_spec.rb +11 -12
- data/kinde_api/spec/models/create_user_request_identities_inner_spec.rb +13 -14
- data/kinde_api/spec/models/create_user_request_profile_spec.rb +13 -14
- data/kinde_api/spec/models/create_user_request_spec.rb +19 -14
- data/kinde_api/spec/models/create_user_response_spec.rb +14 -15
- data/kinde_api/spec/models/error_response_spec.rb +11 -12
- data/kinde_api/spec/models/error_spec.rb +13 -14
- data/kinde_api/spec/models/get_application_response_application_spec.rb +16 -17
- data/kinde_api/spec/models/get_application_response_spec.rb +14 -15
- data/kinde_api/spec/models/get_applications_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_environment_feature_flags_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_organization_feature_flags_response_feature_flags_value_spec.rb +13 -14
- data/kinde_api/spec/models/get_organization_feature_flags_response_spec.rb +14 -15
- data/kinde_api/spec/models/get_organization_users_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_organizations_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_organizations_user_permissions_response_spec.rb +14 -15
- data/kinde_api/spec/models/get_organizations_user_roles_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_permissions_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_redirect_callback_urls_response_spec.rb +11 -12
- data/kinde_api/spec/models/get_roles_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_subscriber_response_spec.rb +14 -15
- data/kinde_api/spec/models/get_subscribers_response_spec.rb +15 -16
- data/kinde_api/spec/models/logout_redirect_urls_spec.rb +11 -12
- data/kinde_api/spec/models/organization_spec.rb +15 -16
- data/kinde_api/spec/models/organization_user_permission_roles_inner_spec.rb +13 -14
- data/kinde_api/spec/models/organization_user_permission_spec.rb +16 -17
- data/kinde_api/spec/models/organization_user_role_permissions_permissions_spec.rb +11 -12
- data/kinde_api/spec/models/organization_user_role_permissions_spec.rb +14 -15
- data/kinde_api/spec/models/organization_user_role_spec.rb +14 -15
- data/kinde_api/spec/models/organization_user_spec.rb +17 -18
- data/kinde_api/spec/models/permissions_spec.rb +20 -15
- data/kinde_api/spec/models/redirect_callback_urls_spec.rb +11 -12
- data/kinde_api/spec/models/replace_logout_redirect_urls_request_spec.rb +11 -12
- data/kinde_api/spec/models/replace_redirect_callback_urls_request_spec.rb +11 -12
- data/kinde_api/spec/models/role_spec.rb +15 -16
- data/kinde_api/spec/models/roles_permission_response_inner_spec.rb +15 -16
- data/kinde_api/spec/models/roles_spec.rb +15 -16
- data/kinde_api/spec/models/subscriber_spec.rb +15 -16
- data/kinde_api/spec/models/subscribers_subscriber_spec.rb +16 -17
- data/kinde_api/spec/models/success_response_spec.rb +13 -14
- data/kinde_api/spec/models/token_error_response_spec.rb +13 -14
- data/kinde_api/spec/models/token_introspect_spec.rb +16 -17
- data/kinde_api/spec/models/update_api_applications_request_applications_inner_spec.rb +13 -14
- data/kinde_api/spec/models/update_api_applications_request_spec.rb +11 -12
- data/kinde_api/spec/models/update_application_request_spec.rb +15 -16
- data/kinde_api/spec/models/update_environement_feature_flag_override_request_spec.rb +11 -12
- data/kinde_api/spec/models/update_organization_request_spec.rb +52 -17
- data/kinde_api/spec/models/update_organization_users_request_spec.rb +11 -12
- data/kinde_api/spec/models/update_organization_users_request_users_inner_spec.rb +15 -16
- data/kinde_api/spec/models/update_organization_users_response_spec.rb +15 -16
- data/kinde_api/spec/models/update_role_permissions_request_permissions_inner_spec.rb +13 -14
- data/kinde_api/spec/models/update_role_permissions_request_spec.rb +11 -12
- data/kinde_api/spec/models/update_role_permissions_response_spec.rb +15 -16
- data/kinde_api/spec/models/update_roles_request_spec.rb +15 -16
- data/kinde_api/spec/models/update_user_request_spec.rb +15 -16
- data/kinde_api/spec/models/update_user_response_spec.rb +17 -18
- data/kinde_api/spec/models/user_identities_inner_spec.rb +13 -14
- data/kinde_api/spec/models/user_identity_result_spec.rb +11 -12
- data/kinde_api/spec/models/user_identity_spec.rb +13 -14
- data/kinde_api/spec/models/user_profile_spec.rb +17 -18
- data/kinde_api/spec/models/user_profile_v2_spec.rb +19 -20
- data/kinde_api/spec/models/user_spec.rb +24 -25
- data/kinde_api/spec/models/users_response_spec.rb +15 -16
- data/kinde_api/spec/models/users_response_users_inner_spec.rb +24 -25
- data/kinde_api/spec/spec_helper.rb +61 -63
- data/lib/kinde_sdk/version.rb +1 -1
- metadata +12 -21
- data/Gemfile +0 -15
- data/Gemfile.lock +0 -128
- data/LICENSE +0 -21
- data/README.md +0 -23
- data/Rakefile +0 -10
- data/kinde_api/.gitignore +0 -39
- data/kinde_api/.rspec +0 -2
- data/kinde_sdk.gemspec +0 -33
- data/openapitools.json +0 -7
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
#Kinde Management API
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
3
|
+
# #Kinde Management API
|
4
|
+
#
|
5
|
+
# Provides endpoints to manage your Kinde Businesses
|
6
|
+
#
|
7
|
+
# The version of the OpenAPI document: 1
|
8
|
+
# Contact: support@kinde.com
|
9
|
+
# Generated by: https://openapi-generator.tech
|
10
|
+
# OpenAPI Generator version: 7.0.0-SNAPSHOT
|
11
|
+
#
|
12
12
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
@@ -34,47 +34,46 @@ describe 'UsersApi' do
|
|
34
34
|
|
35
35
|
# unit tests for create_user
|
36
36
|
# Create User
|
37
|
-
# Creates a user record and optionally zero or more identities for the user. An example identity could be the email address of the user.
|
37
|
+
# Creates a user record and optionally zero or more identities for the user. An example identity could be the email address of the user.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @option opts [CreateUserRequest] :create_user_request The details of the user to create.
|
40
40
|
# @return [CreateUserResponse]
|
41
41
|
describe 'create_user test' do
|
42
42
|
it 'should work' do
|
43
|
-
# assertion here. ref: https://
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
47
|
# unit tests for delete_user
|
48
48
|
# Delete User
|
49
|
-
# Delete a user record.
|
49
|
+
# Delete a user record.
|
50
50
|
# @param id The user's id.
|
51
51
|
# @param [Hash] opts the optional parameters
|
52
52
|
# @option opts [Boolean] :is_delete_profile Delete all data and remove the user's profile from all of Kinde, including the subscriber list
|
53
53
|
# @return [SuccessResponse]
|
54
54
|
describe 'delete_user test' do
|
55
55
|
it 'should work' do
|
56
|
-
# assertion here. ref: https://
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
60
|
# unit tests for get_user_data
|
61
61
|
# Get User
|
62
|
-
# Retrieve a user record.
|
62
|
+
# Retrieve a user record.
|
63
63
|
# @param id The user's id.
|
64
64
|
# @param [Hash] opts the optional parameters
|
65
65
|
# @option opts [String] :expand Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".
|
66
66
|
# @return [User]
|
67
67
|
describe 'get_user_data test' do
|
68
68
|
it 'should work' do
|
69
|
-
# assertion here. ref: https://
|
69
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
73
73
|
# unit tests for get_users
|
74
74
|
# List Users
|
75
|
-
# The returned list can be sorted by full name or email address in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter.
|
75
|
+
# The returned list can be sorted by full name or email address in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter.
|
76
76
|
# @param [Hash] opts the optional parameters
|
77
|
-
# @option opts [String] :sort Field and order to sort the result by.
|
78
77
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
79
78
|
# @option opts [String] :user_id ID of the user to filter by.
|
80
79
|
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
@@ -83,33 +82,46 @@ describe 'UsersApi' do
|
|
83
82
|
# @return [UsersResponse]
|
84
83
|
describe 'get_users test' do
|
85
84
|
it 'should work' do
|
86
|
-
# assertion here. ref: https://
|
85
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
87
86
|
end
|
88
87
|
end
|
89
88
|
|
90
89
|
# unit tests for refresh_user_claims
|
91
90
|
# Refresh User Claims and Invalidate Cache
|
92
|
-
# Refreshes the user's claims and invalidates the current cache.
|
91
|
+
# Refreshes the user's claims and invalidates the current cache.
|
93
92
|
# @param user_id The id of the user whose claims needs to be updated.
|
94
93
|
# @param [Hash] opts the optional parameters
|
95
94
|
# @return [SuccessResponse]
|
96
95
|
describe 'refresh_user_claims test' do
|
97
96
|
it 'should work' do
|
98
|
-
# assertion here. ref: https://
|
97
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
99
98
|
end
|
100
99
|
end
|
101
100
|
|
102
101
|
# unit tests for update_user
|
103
102
|
# Update User
|
104
|
-
# Update a user record.
|
103
|
+
# Update a user record.
|
104
|
+
# @param id The user's id.
|
105
105
|
# @param update_user_request The user to update.
|
106
106
|
# @param [Hash] opts the optional parameters
|
107
|
-
# @option opts [String] :id The user's id.
|
108
107
|
# @return [UpdateUserResponse]
|
109
108
|
describe 'update_user test' do
|
110
109
|
it 'should work' do
|
111
|
-
# assertion here. ref: https://
|
110
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
112
111
|
end
|
113
112
|
end
|
114
113
|
|
114
|
+
# unit tests for update_user_feature_flag_override
|
115
|
+
# Update User Feature Flag Override
|
116
|
+
# Update user feature flag override.
|
117
|
+
# @param user_id The identifier for the user
|
118
|
+
# @param feature_flag_key The identifier for the feature flag
|
119
|
+
# @param value Override value
|
120
|
+
# @param [Hash] opts the optional parameters
|
121
|
+
# @return [SuccessResponse]
|
122
|
+
describe 'update_user_feature_flag_override test' do
|
123
|
+
it 'should work' do
|
124
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
125
|
+
end
|
126
|
+
end
|
115
127
|
end
|
@@ -1,14 +1,4 @@
|
|
1
|
-
|
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
|
1
|
+
# frozen_string_literal: true
|
12
2
|
|
13
3
|
require 'spec_helper'
|
14
4
|
|
@@ -33,7 +23,7 @@ describe KindeApi::ApiClient do
|
|
33
23
|
end
|
34
24
|
|
35
25
|
context 'base_path' do
|
36
|
-
it
|
26
|
+
it 'prepends a slash to base_path' do
|
37
27
|
KindeApi.configure { |c| c.base_path = 'v4/dog' }
|
38
28
|
expect(KindeApi::Configuration.default.base_path).to eq('/v4/dog')
|
39
29
|
end
|
@@ -43,7 +33,7 @@ describe KindeApi::ApiClient do
|
|
43
33
|
expect(KindeApi::Configuration.default.base_path).to eq('/v4/dog')
|
44
34
|
end
|
45
35
|
|
46
|
-
it
|
36
|
+
it 'ends up as a blank string if nil' do
|
47
37
|
KindeApi.configure { |c| c.base_path = nil }
|
48
38
|
expect(KindeApi::Configuration.default.base_path).to eq('')
|
49
39
|
end
|
@@ -89,13 +79,11 @@ describe KindeApi::ApiClient do
|
|
89
79
|
end
|
90
80
|
end
|
91
81
|
|
92
|
-
|
93
|
-
|
94
82
|
describe '#deserialize' do
|
95
|
-
it
|
83
|
+
it 'handles Array<Integer>' do
|
96
84
|
api_client = KindeApi::ApiClient.new
|
97
85
|
headers = { 'Content-Type' => 'application/json' }
|
98
|
-
response = double('response', headers
|
86
|
+
response = double('response', headers:, body: '[12, 34]')
|
99
87
|
data = api_client.deserialize(response, 'Array<Integer>')
|
100
88
|
expect(data).to be_instance_of(Array)
|
101
89
|
expect(data).to eq([12, 34])
|
@@ -104,7 +92,7 @@ describe KindeApi::ApiClient do
|
|
104
92
|
it 'handles Array<Array<Integer>>' do
|
105
93
|
api_client = KindeApi::ApiClient.new
|
106
94
|
headers = { 'Content-Type' => 'application/json' }
|
107
|
-
response = double('response', headers
|
95
|
+
response = double('response', headers:, body: '[[12, 34], [56]]')
|
108
96
|
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
109
97
|
expect(data).to be_instance_of(Array)
|
110
98
|
expect(data).to eq([[12, 34], [56]])
|
@@ -113,14 +101,14 @@ describe KindeApi::ApiClient do
|
|
113
101
|
it 'handles Hash<String, String>' do
|
114
102
|
api_client = KindeApi::ApiClient.new
|
115
103
|
headers = { 'Content-Type' => 'application/json' }
|
116
|
-
response = double('response', headers
|
104
|
+
response = double('response', headers:, body: '{"message": "Hello"}')
|
117
105
|
data = api_client.deserialize(response, 'Hash<String, String>')
|
118
106
|
expect(data).to be_instance_of(Hash)
|
119
|
-
expect(data).to eq(:
|
107
|
+
expect(data).to eq(message: 'Hello')
|
120
108
|
end
|
121
109
|
end
|
122
110
|
|
123
|
-
describe
|
111
|
+
describe '#object_to_hash' do
|
124
112
|
it 'ignores nils and includes empty arrays' do
|
125
113
|
# uncomment below to test object_to_hash for model
|
126
114
|
# api_client = KindeApi::ApiClient.new
|
@@ -134,7 +122,7 @@ describe KindeApi::ApiClient do
|
|
134
122
|
end
|
135
123
|
|
136
124
|
describe '#build_collection_param' do
|
137
|
-
let(:param) { [
|
125
|
+
let(:param) { %w[aa bb cc] }
|
138
126
|
let(:api_client) { KindeApi::ApiClient.new }
|
139
127
|
|
140
128
|
it 'works for csv' do
|
@@ -154,11 +142,14 @@ describe KindeApi::ApiClient do
|
|
154
142
|
end
|
155
143
|
|
156
144
|
it 'works for multi' do
|
157
|
-
expect(api_client.build_collection_param(param, :multi)).to eq([
|
145
|
+
expect(api_client.build_collection_param(param, :multi)).to eq(%w[aa bb cc])
|
158
146
|
end
|
159
147
|
|
160
148
|
it 'fails for invalid collection format' do
|
161
|
-
expect
|
149
|
+
expect do
|
150
|
+
api_client.build_collection_param(param,
|
151
|
+
:INVALID)
|
152
|
+
end.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
162
153
|
end
|
163
154
|
end
|
164
155
|
|
@@ -172,9 +163,10 @@ describe KindeApi::ApiClient do
|
|
172
163
|
expect(api_client.json_mime?('application/json')).to eq true
|
173
164
|
expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
|
174
165
|
expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
|
166
|
+
expect(api_client.json_mime?('text/plain')).to eq true
|
167
|
+
expect(api_client.json_mime?('text/plain; charset=utf-8')).to eq true
|
175
168
|
|
176
169
|
expect(api_client.json_mime?('application/xml')).to eq false
|
177
|
-
expect(api_client.json_mime?('text/plain')).to eq false
|
178
170
|
expect(api_client.json_mime?('application/jsonp')).to eq false
|
179
171
|
end
|
180
172
|
end
|
@@ -187,7 +179,8 @@ describe KindeApi::ApiClient do
|
|
187
179
|
expect(api_client.select_header_accept([])).to be_nil
|
188
180
|
|
189
181
|
expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
|
190
|
-
expect(api_client.select_header_accept(['application/xml',
|
182
|
+
expect(api_client.select_header_accept(['application/xml',
|
183
|
+
'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
191
184
|
expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
192
185
|
|
193
186
|
expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
|
@@ -203,7 +196,8 @@ describe KindeApi::ApiClient do
|
|
203
196
|
expect(api_client.select_header_content_type([])).to be_nil
|
204
197
|
|
205
198
|
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
206
|
-
expect(api_client.select_header_content_type(['application/xml',
|
199
|
+
expect(api_client.select_header_content_type(['application/xml',
|
200
|
+
'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
207
201
|
expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
208
202
|
expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
|
209
203
|
expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
|
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# #Kinde Management API
|
4
|
+
#
|
5
|
+
# Provides endpoints to manage your Kinde Businesses
|
6
|
+
#
|
7
|
+
# The version of the OpenAPI document: 1
|
8
|
+
# Contact: support@kinde.com
|
9
|
+
# Generated by: https://openapi-generator.tech
|
10
|
+
# OpenAPI Generator version: 7.0.0-SNAPSHOT
|
11
|
+
#
|
12
12
|
|
13
13
|
require 'spec_helper'
|
14
14
|
|
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# #Kinde Management API
|
4
|
+
#
|
5
|
+
# Provides endpoints to manage your Kinde Businesses
|
6
|
+
#
|
7
|
+
# The version of the OpenAPI document: 1
|
8
|
+
# Contact: support@kinde.com
|
9
|
+
# Generated by: https://openapi-generator.tech
|
10
|
+
# OpenAPI Generator version: 7.0.0-SNAPSHOT
|
11
|
+
#
|
12
12
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
@@ -27,14 +27,13 @@ describe KindeApi::AddAPIsRequest do
|
|
27
27
|
end
|
28
28
|
describe 'test attribute "name"' do
|
29
29
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
34
|
describe 'test attribute "audience"' do
|
35
35
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
37
|
end
|
38
38
|
end
|
39
|
-
|
40
39
|
end
|
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
#Kinde Management API
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
3
|
+
# #Kinde Management API
|
4
|
+
#
|
5
|
+
# Provides endpoints to manage your Kinde Businesses
|
6
|
+
#
|
7
|
+
# The version of the OpenAPI document: 1
|
8
|
+
# Contact: support@kinde.com
|
9
|
+
# Generated by: https://openapi-generator.tech
|
10
|
+
# OpenAPI Generator version: 7.0.0-SNAPSHOT
|
11
|
+
#
|
12
12
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
@@ -27,8 +27,7 @@ describe KindeApi::AddOrganizationUsersRequest do
|
|
27
27
|
end
|
28
28
|
describe 'test attribute "users"' do
|
29
29
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
31
|
end
|
32
32
|
end
|
33
|
-
|
34
33
|
end
|
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# #Kinde Management API
|
4
|
+
#
|
5
|
+
# Provides endpoints to manage your Kinde Businesses
|
6
|
+
#
|
7
|
+
# The version of the OpenAPI document: 1
|
8
|
+
# Contact: support@kinde.com
|
9
|
+
# Generated by: https://openapi-generator.tech
|
10
|
+
# OpenAPI Generator version: 7.0.0-SNAPSHOT
|
11
|
+
#
|
12
12
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
@@ -27,20 +27,19 @@ describe KindeApi::AddOrganizationUsersRequestUsersInner do
|
|
27
27
|
end
|
28
28
|
describe 'test attribute "id"' do
|
29
29
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
34
|
describe 'test attribute "roles"' do
|
35
35
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
40
|
describe 'test attribute "permissions"' do
|
41
41
|
it 'should work' do
|
42
|
-
# assertion here. ref: https://
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
43
|
end
|
44
44
|
end
|
45
|
-
|
46
45
|
end
|
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# #Kinde Management API
|
4
|
+
#
|
5
|
+
# Provides endpoints to manage your Kinde Businesses
|
6
|
+
#
|
7
|
+
# The version of the OpenAPI document: 1
|
8
|
+
# Contact: support@kinde.com
|
9
|
+
# Generated by: https://openapi-generator.tech
|
10
|
+
# OpenAPI Generator version: 7.0.0-SNAPSHOT
|
11
|
+
#
|
12
12
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
@@ -27,20 +27,19 @@ describe KindeApi::AddOrganizationUsersResponse do
|
|
27
27
|
end
|
28
28
|
describe 'test attribute "code"' do
|
29
29
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
34
|
describe 'test attribute "message"' do
|
35
35
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
40
|
describe 'test attribute "users_added"' do
|
41
41
|
it 'should work' do
|
42
|
-
# assertion here. ref: https://
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
43
|
end
|
44
44
|
end
|
45
|
-
|
46
45
|
end
|
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# #Kinde Management API
|
4
|
+
#
|
5
|
+
# Provides endpoints to manage your Kinde Businesses
|
6
|
+
#
|
7
|
+
# The version of the OpenAPI document: 1
|
8
|
+
# Contact: support@kinde.com
|
9
|
+
# Generated by: https://openapi-generator.tech
|
10
|
+
# OpenAPI Generator version: 7.0.0-SNAPSHOT
|
11
|
+
#
|
12
12
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
@@ -27,26 +27,25 @@ describe KindeApi::ApiApplicationsInner do
|
|
27
27
|
end
|
28
28
|
describe 'test attribute "id"' do
|
29
29
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
34
|
describe 'test attribute "name"' do
|
35
35
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
40
|
describe 'test attribute "type"' do
|
41
41
|
it 'should work' do
|
42
|
-
# assertion here. ref: https://
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
46
|
describe 'test attribute "is_active"' do
|
47
47
|
it 'should work' do
|
48
|
-
# assertion here. ref: https://
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
49
|
end
|
50
50
|
end
|
51
|
-
|
52
51
|
end
|
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
#Kinde Management API
|
1
|
+
# frozen_string_literal: true
|
3
2
|
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
3
|
+
# #Kinde Management API
|
4
|
+
#
|
5
|
+
# Provides endpoints to manage your Kinde Businesses
|
6
|
+
#
|
7
|
+
# The version of the OpenAPI document: 1
|
8
|
+
# Contact: support@kinde.com
|
9
|
+
# Generated by: https://openapi-generator.tech
|
10
|
+
# OpenAPI Generator version: 7.0.0-SNAPSHOT
|
11
|
+
#
|
12
12
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
@@ -27,8 +27,7 @@ describe KindeApi::ApiResult do
|
|
27
27
|
end
|
28
28
|
describe 'test attribute "result"' do
|
29
29
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
31
|
end
|
32
32
|
end
|
33
|
-
|
34
33
|
end
|
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# #Kinde Management API
|
4
|
+
#
|
5
|
+
# Provides endpoints to manage your Kinde Businesses
|
6
|
+
#
|
7
|
+
# The version of the OpenAPI document: 1
|
8
|
+
# Contact: support@kinde.com
|
9
|
+
# Generated by: https://openapi-generator.tech
|
10
|
+
# OpenAPI Generator version: 7.0.0-SNAPSHOT
|
11
|
+
#
|
12
12
|
|
13
13
|
require 'spec_helper'
|
14
14
|
require 'json'
|
@@ -27,38 +27,37 @@ describe KindeApi::Api do
|
|
27
27
|
end
|
28
28
|
describe 'test attribute "id"' do
|
29
29
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
34
|
describe 'test attribute "code"' do
|
35
35
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
40
|
describe 'test attribute "name"' do
|
41
41
|
it 'should work' do
|
42
|
-
# assertion here. ref: https://
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
46
|
describe 'test attribute "message"' do
|
47
47
|
it 'should work' do
|
48
|
-
# assertion here. ref: https://
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
52
|
describe 'test attribute "audience"' do
|
53
53
|
it 'should work' do
|
54
|
-
# assertion here. ref: https://
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
58
|
describe 'test attribute "applications"' do
|
59
59
|
it 'should work' do
|
60
|
-
# assertion here. ref: https://
|
60
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
61
61
|
end
|
62
62
|
end
|
63
|
-
|
64
63
|
end
|