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
|
-
|
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 'cgi'
|
14
14
|
|
@@ -19,8 +19,9 @@ module KindeApi
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
|
22
23
|
# Create User
|
23
|
-
# Creates a user record and optionally zero or more identities for the user. An example identity could be the email address of the user.
|
24
|
+
# Creates a user record and optionally zero or more identities for the user. An example identity could be the email address of the user.
|
24
25
|
# @param [Hash] opts the optional parameters
|
25
26
|
# @option opts [CreateUserRequest] :create_user_request The details of the user to create.
|
26
27
|
# @return [CreateUserResponse]
|
@@ -30,14 +31,12 @@ module KindeApi
|
|
30
31
|
end
|
31
32
|
|
32
33
|
# Create User
|
33
|
-
# Creates a user record and optionally zero or more identities for the user. An example identity could be the email address of the user.
|
34
|
+
# Creates a user record and optionally zero or more identities for the user. An example identity could be the email address of the user.
|
34
35
|
# @param [Hash] opts the optional parameters
|
35
36
|
# @option opts [CreateUserRequest] :create_user_request The details of the user to create.
|
36
37
|
# @return [Array<(CreateUserResponse, Integer, Hash)>] CreateUserResponse data, response status code and response headers
|
37
38
|
def create_user_with_http_info(opts = {})
|
38
|
-
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.create_user ...'
|
40
|
-
end
|
39
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.create_user ...' if @api_client.config.debugging
|
41
40
|
# resource path
|
42
41
|
local_var_path = '/api/v1/user'
|
43
42
|
|
@@ -47,18 +46,17 @@ module KindeApi
|
|
47
46
|
# header parameters
|
48
47
|
header_params = opts[:header_params] || {}
|
49
48
|
# HTTP header 'Accept' (if needed)
|
50
|
-
header_params['Accept'] =
|
49
|
+
header_params['Accept'] =
|
50
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
51
51
|
# HTTP header 'Content-Type'
|
52
52
|
content_type = @api_client.select_header_content_type(['application/json'])
|
53
|
-
|
54
|
-
header_params['Content-Type'] = content_type
|
55
|
-
end
|
53
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
56
54
|
|
57
55
|
# form parameters
|
58
56
|
form_params = opts[:form_params] || {}
|
59
57
|
|
60
58
|
# http body (model)
|
61
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:
|
59
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:create_user_request])
|
62
60
|
|
63
61
|
# return_type
|
64
62
|
return_type = opts[:debug_return_type] || 'CreateUserResponse'
|
@@ -67,24 +65,24 @@ module KindeApi
|
|
67
65
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
68
66
|
|
69
67
|
new_options = opts.merge(
|
70
|
-
:
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
:
|
75
|
-
|
76
|
-
:
|
68
|
+
operation: :"UsersApi.create_user",
|
69
|
+
header_params:,
|
70
|
+
query_params:,
|
71
|
+
form_params:,
|
72
|
+
body: post_body,
|
73
|
+
auth_names:,
|
74
|
+
return_type:
|
77
75
|
)
|
78
76
|
|
79
77
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
78
|
if @api_client.config.debugging
|
81
79
|
@api_client.config.logger.debug "API called: UsersApi#create_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
80
|
end
|
83
|
-
|
81
|
+
[data, status_code, headers]
|
84
82
|
end
|
85
83
|
|
86
84
|
# Delete User
|
87
|
-
# Delete a user record.
|
85
|
+
# Delete a user record.
|
88
86
|
# @param id [String] The user's id.
|
89
87
|
# @param [Hash] opts the optional parameters
|
90
88
|
# @option opts [Boolean] :is_delete_profile Delete all data and remove the user's profile from all of Kinde, including the subscriber list
|
@@ -95,31 +93,31 @@ module KindeApi
|
|
95
93
|
end
|
96
94
|
|
97
95
|
# Delete User
|
98
|
-
# Delete a user record.
|
96
|
+
# Delete a user record.
|
99
97
|
# @param id [String] The user's id.
|
100
98
|
# @param [Hash] opts the optional parameters
|
101
99
|
# @option opts [Boolean] :is_delete_profile Delete all data and remove the user's profile from all of Kinde, including the subscriber list
|
102
100
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
103
101
|
def delete_user_with_http_info(id, opts = {})
|
104
|
-
if @api_client.config.debugging
|
105
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.delete_user ...'
|
106
|
-
end
|
102
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.delete_user ...' if @api_client.config.debugging
|
107
103
|
# verify the required parameter 'id' is set
|
108
104
|
if @api_client.config.client_side_validation && id.nil?
|
109
|
-
|
105
|
+
raise ArgumentError, "Missing the required parameter 'id' when calling UsersApi.delete_user"
|
110
106
|
end
|
107
|
+
|
111
108
|
# resource path
|
112
109
|
local_var_path = '/api/v1/user'
|
113
110
|
|
114
111
|
# query parameters
|
115
112
|
query_params = opts[:query_params] || {}
|
116
|
-
query_params[:
|
117
|
-
query_params[:
|
113
|
+
query_params[:id] = id
|
114
|
+
query_params[:is_delete_profile] = opts[:is_delete_profile] unless opts[:is_delete_profile].nil?
|
118
115
|
|
119
116
|
# header parameters
|
120
117
|
header_params = opts[:header_params] || {}
|
121
118
|
# HTTP header 'Accept' (if needed)
|
122
|
-
header_params['Accept'] =
|
119
|
+
header_params['Accept'] =
|
120
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
123
121
|
|
124
122
|
# form parameters
|
125
123
|
form_params = opts[:form_params] || {}
|
@@ -134,24 +132,24 @@ module KindeApi
|
|
134
132
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
135
133
|
|
136
134
|
new_options = opts.merge(
|
137
|
-
:
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
:
|
142
|
-
|
143
|
-
:
|
135
|
+
operation: :"UsersApi.delete_user",
|
136
|
+
header_params:,
|
137
|
+
query_params:,
|
138
|
+
form_params:,
|
139
|
+
body: post_body,
|
140
|
+
auth_names:,
|
141
|
+
return_type:
|
144
142
|
)
|
145
143
|
|
146
144
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
147
145
|
if @api_client.config.debugging
|
148
146
|
@api_client.config.logger.debug "API called: UsersApi#delete_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
149
147
|
end
|
150
|
-
|
148
|
+
[data, status_code, headers]
|
151
149
|
end
|
152
150
|
|
153
151
|
# Get User
|
154
|
-
# Retrieve a user record.
|
152
|
+
# Retrieve a user record.
|
155
153
|
# @param id [String] The user's id.
|
156
154
|
# @param [Hash] opts the optional parameters
|
157
155
|
# @option opts [String] :expand Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".
|
@@ -162,31 +160,31 @@ module KindeApi
|
|
162
160
|
end
|
163
161
|
|
164
162
|
# Get User
|
165
|
-
# Retrieve a user record.
|
163
|
+
# Retrieve a user record.
|
166
164
|
# @param id [String] The user's id.
|
167
165
|
# @param [Hash] opts the optional parameters
|
168
166
|
# @option opts [String] :expand Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".
|
169
167
|
# @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
|
170
168
|
def get_user_data_with_http_info(id, opts = {})
|
171
|
-
if @api_client.config.debugging
|
172
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.get_user_data ...'
|
173
|
-
end
|
169
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.get_user_data ...' if @api_client.config.debugging
|
174
170
|
# verify the required parameter 'id' is set
|
175
171
|
if @api_client.config.client_side_validation && id.nil?
|
176
|
-
|
172
|
+
raise ArgumentError, "Missing the required parameter 'id' when calling UsersApi.get_user_data"
|
177
173
|
end
|
174
|
+
|
178
175
|
# resource path
|
179
176
|
local_var_path = '/api/v1/user'
|
180
177
|
|
181
178
|
# query parameters
|
182
179
|
query_params = opts[:query_params] || {}
|
183
|
-
query_params[:
|
184
|
-
query_params[:
|
180
|
+
query_params[:id] = id
|
181
|
+
query_params[:expand] = opts[:expand] unless opts[:expand].nil?
|
185
182
|
|
186
183
|
# header parameters
|
187
184
|
header_params = opts[:header_params] || {}
|
188
185
|
# HTTP header 'Accept' (if needed)
|
189
|
-
header_params['Accept'] =
|
186
|
+
header_params['Accept'] =
|
187
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
190
188
|
|
191
189
|
# form parameters
|
192
190
|
form_params = opts[:form_params] || {}
|
@@ -201,26 +199,25 @@ module KindeApi
|
|
201
199
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
202
200
|
|
203
201
|
new_options = opts.merge(
|
204
|
-
:
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
:
|
209
|
-
|
210
|
-
:
|
202
|
+
operation: :"UsersApi.get_user_data",
|
203
|
+
header_params:,
|
204
|
+
query_params:,
|
205
|
+
form_params:,
|
206
|
+
body: post_body,
|
207
|
+
auth_names:,
|
208
|
+
return_type:
|
211
209
|
)
|
212
210
|
|
213
211
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
214
212
|
if @api_client.config.debugging
|
215
213
|
@api_client.config.logger.debug "API called: UsersApi#get_user_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
216
214
|
end
|
217
|
-
|
215
|
+
[data, status_code, headers]
|
218
216
|
end
|
219
217
|
|
220
218
|
# List Users
|
221
|
-
# 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.
|
219
|
+
# 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.
|
222
220
|
# @param [Hash] opts the optional parameters
|
223
|
-
# @option opts [String] :sort Field and order to sort the result by.
|
224
221
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
225
222
|
# @option opts [String] :user_id ID of the user to filter by.
|
226
223
|
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
@@ -233,9 +230,8 @@ module KindeApi
|
|
233
230
|
end
|
234
231
|
|
235
232
|
# List Users
|
236
|
-
# 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.
|
233
|
+
# 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.
|
237
234
|
# @param [Hash] opts the optional parameters
|
238
|
-
# @option opts [String] :sort Field and order to sort the result by.
|
239
235
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
240
236
|
# @option opts [String] :user_id ID of the user to filter by.
|
241
237
|
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
@@ -243,29 +239,23 @@ module KindeApi
|
|
243
239
|
# @option opts [String] :expand Specify additional data to retrieve. Use \"organizations\" and/or \"identities\".
|
244
240
|
# @return [Array<(UsersResponse, Integer, Hash)>] UsersResponse data, response status code and response headers
|
245
241
|
def get_users_with_http_info(opts = {})
|
246
|
-
if @api_client.config.debugging
|
247
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.get_users ...'
|
248
|
-
end
|
249
|
-
allowable_values = ["name_asc", "name_desc", "email_asc", "email_desc"]
|
250
|
-
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
251
|
-
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
252
|
-
end
|
242
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.get_users ...' if @api_client.config.debugging
|
253
243
|
# resource path
|
254
244
|
local_var_path = '/api/v1/users'
|
255
245
|
|
256
246
|
# query parameters
|
257
247
|
query_params = opts[:query_params] || {}
|
258
|
-
query_params[:
|
259
|
-
query_params[:
|
260
|
-
query_params[:
|
261
|
-
query_params[:
|
262
|
-
query_params[:
|
263
|
-
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
248
|
+
query_params[:page_size] = opts[:page_size] unless opts[:page_size].nil?
|
249
|
+
query_params[:user_id] = opts[:user_id] unless opts[:user_id].nil?
|
250
|
+
query_params[:next_token] = opts[:next_token] unless opts[:next_token].nil?
|
251
|
+
query_params[:email] = opts[:email] unless opts[:email].nil?
|
252
|
+
query_params[:expand] = opts[:expand] unless opts[:expand].nil?
|
264
253
|
|
265
254
|
# header parameters
|
266
255
|
header_params = opts[:header_params] || {}
|
267
256
|
# HTTP header 'Accept' (if needed)
|
268
|
-
header_params['Accept'] =
|
257
|
+
header_params['Accept'] =
|
258
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
269
259
|
|
270
260
|
# form parameters
|
271
261
|
form_params = opts[:form_params] || {}
|
@@ -280,24 +270,24 @@ module KindeApi
|
|
280
270
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
281
271
|
|
282
272
|
new_options = opts.merge(
|
283
|
-
:
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
:
|
288
|
-
|
289
|
-
:
|
273
|
+
operation: :"UsersApi.get_users",
|
274
|
+
header_params:,
|
275
|
+
query_params:,
|
276
|
+
form_params:,
|
277
|
+
body: post_body,
|
278
|
+
auth_names:,
|
279
|
+
return_type:
|
290
280
|
)
|
291
281
|
|
292
282
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
293
283
|
if @api_client.config.debugging
|
294
284
|
@api_client.config.logger.debug "API called: UsersApi#get_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
295
285
|
end
|
296
|
-
|
286
|
+
[data, status_code, headers]
|
297
287
|
end
|
298
288
|
|
299
289
|
# Refresh User Claims and Invalidate Cache
|
300
|
-
# Refreshes the user's claims and invalidates the current cache.
|
290
|
+
# Refreshes the user's claims and invalidates the current cache.
|
301
291
|
# @param user_id [String] The id of the user whose claims needs to be updated.
|
302
292
|
# @param [Hash] opts the optional parameters
|
303
293
|
# @return [SuccessResponse]
|
@@ -307,20 +297,19 @@ module KindeApi
|
|
307
297
|
end
|
308
298
|
|
309
299
|
# Refresh User Claims and Invalidate Cache
|
310
|
-
# Refreshes the user's claims and invalidates the current cache.
|
300
|
+
# Refreshes the user's claims and invalidates the current cache.
|
311
301
|
# @param user_id [String] The id of the user whose claims needs to be updated.
|
312
302
|
# @param [Hash] opts the optional parameters
|
313
303
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
314
304
|
def refresh_user_claims_with_http_info(user_id, opts = {})
|
315
|
-
if @api_client.config.debugging
|
316
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.refresh_user_claims ...'
|
317
|
-
end
|
305
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.refresh_user_claims ...' if @api_client.config.debugging
|
318
306
|
# verify the required parameter 'user_id' is set
|
319
307
|
if @api_client.config.client_side_validation && user_id.nil?
|
320
|
-
|
308
|
+
raise ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.refresh_user_claims"
|
321
309
|
end
|
310
|
+
|
322
311
|
# resource path
|
323
|
-
local_var_path = '/api/v1/users/{user_id}/refresh_claims'.sub('{
|
312
|
+
local_var_path = '/api/v1/users/{user_id}/refresh_claims'.sub('{user_id}', CGI.escape(user_id.to_s))
|
324
313
|
|
325
314
|
# query parameters
|
326
315
|
query_params = opts[:query_params] || {}
|
@@ -328,7 +317,8 @@ module KindeApi
|
|
328
317
|
# header parameters
|
329
318
|
header_params = opts[:header_params] || {}
|
330
319
|
# HTTP header 'Accept' (if needed)
|
331
|
-
header_params['Accept'] =
|
320
|
+
header_params['Accept'] =
|
321
|
+
@api_client.select_header_accept(['application/json; charset=utf-8', 'application/json'])
|
332
322
|
|
333
323
|
# form parameters
|
334
324
|
form_params = opts[:form_params] || {}
|
@@ -343,63 +333,65 @@ module KindeApi
|
|
343
333
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
344
334
|
|
345
335
|
new_options = opts.merge(
|
346
|
-
:
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
:
|
351
|
-
|
352
|
-
:
|
336
|
+
operation: :"UsersApi.refresh_user_claims",
|
337
|
+
header_params:,
|
338
|
+
query_params:,
|
339
|
+
form_params:,
|
340
|
+
body: post_body,
|
341
|
+
auth_names:,
|
342
|
+
return_type:
|
353
343
|
)
|
354
344
|
|
355
345
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
356
346
|
if @api_client.config.debugging
|
357
347
|
@api_client.config.logger.debug "API called: UsersApi#refresh_user_claims\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
358
348
|
end
|
359
|
-
|
349
|
+
[data, status_code, headers]
|
360
350
|
end
|
361
351
|
|
362
352
|
# Update User
|
363
|
-
# Update a user record.
|
353
|
+
# Update a user record.
|
354
|
+
# @param id [String] The user's id.
|
364
355
|
# @param update_user_request [UpdateUserRequest] The user to update.
|
365
356
|
# @param [Hash] opts the optional parameters
|
366
|
-
# @option opts [String] :id The user's id.
|
367
357
|
# @return [UpdateUserResponse]
|
368
|
-
def update_user(update_user_request, opts = {})
|
369
|
-
data, _status_code, _headers = update_user_with_http_info(update_user_request, opts)
|
358
|
+
def update_user(id, update_user_request, opts = {})
|
359
|
+
data, _status_code, _headers = update_user_with_http_info(id, update_user_request, opts)
|
370
360
|
data
|
371
361
|
end
|
372
362
|
|
373
363
|
# Update User
|
374
|
-
# Update a user record.
|
364
|
+
# Update a user record.
|
365
|
+
# @param id [String] The user's id.
|
375
366
|
# @param update_user_request [UpdateUserRequest] The user to update.
|
376
367
|
# @param [Hash] opts the optional parameters
|
377
|
-
# @option opts [String] :id The user's id.
|
378
368
|
# @return [Array<(UpdateUserResponse, Integer, Hash)>] UpdateUserResponse data, response status code and response headers
|
379
|
-
def update_user_with_http_info(update_user_request, opts = {})
|
380
|
-
if @api_client.config.debugging
|
381
|
-
|
369
|
+
def update_user_with_http_info(id, update_user_request, opts = {})
|
370
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.update_user ...' if @api_client.config.debugging
|
371
|
+
# verify the required parameter 'id' is set
|
372
|
+
if @api_client.config.client_side_validation && id.nil?
|
373
|
+
raise ArgumentError, "Missing the required parameter 'id' when calling UsersApi.update_user"
|
382
374
|
end
|
383
375
|
# verify the required parameter 'update_user_request' is set
|
384
376
|
if @api_client.config.client_side_validation && update_user_request.nil?
|
385
|
-
|
377
|
+
raise ArgumentError, "Missing the required parameter 'update_user_request' when calling UsersApi.update_user"
|
386
378
|
end
|
379
|
+
|
387
380
|
# resource path
|
388
381
|
local_var_path = '/api/v1/user'
|
389
382
|
|
390
383
|
# query parameters
|
391
384
|
query_params = opts[:query_params] || {}
|
392
|
-
query_params[:
|
385
|
+
query_params[:id] = id
|
393
386
|
|
394
387
|
# header parameters
|
395
388
|
header_params = opts[:header_params] || {}
|
396
389
|
# HTTP header 'Accept' (if needed)
|
397
|
-
header_params['Accept'] =
|
390
|
+
header_params['Accept'] =
|
391
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
398
392
|
# HTTP header 'Content-Type'
|
399
393
|
content_type = @api_client.select_header_content_type(['application/json'])
|
400
|
-
|
401
|
-
header_params['Content-Type'] = content_type
|
402
|
-
end
|
394
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
403
395
|
|
404
396
|
# form parameters
|
405
397
|
form_params = opts[:form_params] || {}
|
@@ -414,20 +406,104 @@ module KindeApi
|
|
414
406
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
415
407
|
|
416
408
|
new_options = opts.merge(
|
417
|
-
:
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
:
|
422
|
-
|
423
|
-
:
|
409
|
+
operation: :"UsersApi.update_user",
|
410
|
+
header_params:,
|
411
|
+
query_params:,
|
412
|
+
form_params:,
|
413
|
+
body: post_body,
|
414
|
+
auth_names:,
|
415
|
+
return_type:
|
424
416
|
)
|
425
417
|
|
426
418
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
427
419
|
if @api_client.config.debugging
|
428
420
|
@api_client.config.logger.debug "API called: UsersApi#update_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
429
421
|
end
|
430
|
-
|
422
|
+
[data, status_code, headers]
|
423
|
+
end
|
424
|
+
|
425
|
+
# Update User Feature Flag Override
|
426
|
+
# Update user feature flag override.
|
427
|
+
# @param user_id [String] The identifier for the user
|
428
|
+
# @param feature_flag_key [String] The identifier for the feature flag
|
429
|
+
# @param value [String] Override value
|
430
|
+
# @param [Hash] opts the optional parameters
|
431
|
+
# @return [SuccessResponse]
|
432
|
+
def update_user_feature_flag_override(user_id, feature_flag_key, value, opts = {})
|
433
|
+
data, _status_code, _headers = update_user_feature_flag_override_with_http_info(user_id, feature_flag_key, value,
|
434
|
+
opts)
|
435
|
+
data
|
436
|
+
end
|
437
|
+
|
438
|
+
# Update User Feature Flag Override
|
439
|
+
# Update user feature flag override.
|
440
|
+
# @param user_id [String] The identifier for the user
|
441
|
+
# @param feature_flag_key [String] The identifier for the feature flag
|
442
|
+
# @param value [String] Override value
|
443
|
+
# @param [Hash] opts the optional parameters
|
444
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
445
|
+
def update_user_feature_flag_override_with_http_info(user_id, feature_flag_key, value, opts = {})
|
446
|
+
if @api_client.config.debugging
|
447
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.update_user_feature_flag_override ...'
|
448
|
+
end
|
449
|
+
# verify the required parameter 'user_id' is set
|
450
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
451
|
+
raise ArgumentError,
|
452
|
+
"Missing the required parameter 'user_id' when calling UsersApi.update_user_feature_flag_override"
|
453
|
+
end
|
454
|
+
# verify the required parameter 'feature_flag_key' is set
|
455
|
+
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
456
|
+
raise ArgumentError,
|
457
|
+
"Missing the required parameter 'feature_flag_key' when calling UsersApi.update_user_feature_flag_override"
|
458
|
+
end
|
459
|
+
# verify the required parameter 'value' is set
|
460
|
+
if @api_client.config.client_side_validation && value.nil?
|
461
|
+
raise ArgumentError,
|
462
|
+
"Missing the required parameter 'value' when calling UsersApi.update_user_feature_flag_override"
|
463
|
+
end
|
464
|
+
|
465
|
+
# resource path
|
466
|
+
local_var_path = '/api/v1/users/{user_id}/feature_flags/{feature_flag_key}'.sub('{user_id}', CGI.escape(user_id.to_s)).sub(
|
467
|
+
'{feature_flag_key}', CGI.escape(feature_flag_key.to_s)
|
468
|
+
)
|
469
|
+
|
470
|
+
# query parameters
|
471
|
+
query_params = opts[:query_params] || {}
|
472
|
+
query_params[:value] = value
|
473
|
+
|
474
|
+
# header parameters
|
475
|
+
header_params = opts[:header_params] || {}
|
476
|
+
# HTTP header 'Accept' (if needed)
|
477
|
+
header_params['Accept'] =
|
478
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
479
|
+
|
480
|
+
# form parameters
|
481
|
+
form_params = opts[:form_params] || {}
|
482
|
+
|
483
|
+
# http body (model)
|
484
|
+
post_body = opts[:debug_body]
|
485
|
+
|
486
|
+
# return_type
|
487
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
488
|
+
|
489
|
+
# auth_names
|
490
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
491
|
+
|
492
|
+
new_options = opts.merge(
|
493
|
+
operation: :"UsersApi.update_user_feature_flag_override",
|
494
|
+
header_params:,
|
495
|
+
query_params:,
|
496
|
+
form_params:,
|
497
|
+
body: post_body,
|
498
|
+
auth_names:,
|
499
|
+
return_type:
|
500
|
+
)
|
501
|
+
|
502
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
503
|
+
if @api_client.config.debugging
|
504
|
+
@api_client.config.logger.debug "API called: UsersApi#update_user_feature_flag_override\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
505
|
+
end
|
506
|
+
[data, status_code, headers]
|
431
507
|
end
|
432
508
|
end
|
433
509
|
end
|