kinde_sdk 1.2.2 → 1.3.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 +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/configuration.rb +1 -1
- data/lib/kinde_sdk/version.rb +1 -1
- data/lib/kinde_sdk.rb +63 -16
- metadata +85 -94
- 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,6 +19,7 @@ module KindeApi
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
|
22
23
|
# Create Feature Flag
|
23
24
|
# Create feature flag.
|
24
25
|
# @param create_feature_flag_request [CreateFeatureFlagRequest] Flag details.
|
@@ -40,8 +41,10 @@ module KindeApi
|
|
40
41
|
end
|
41
42
|
# verify the required parameter 'create_feature_flag_request' is set
|
42
43
|
if @api_client.config.client_side_validation && create_feature_flag_request.nil?
|
43
|
-
|
44
|
+
raise ArgumentError,
|
45
|
+
"Missing the required parameter 'create_feature_flag_request' when calling FeatureFlagsApi.create_feature_flag"
|
44
46
|
end
|
47
|
+
|
45
48
|
# resource path
|
46
49
|
local_var_path = '/api/v1/feature_flags'
|
47
50
|
|
@@ -51,12 +54,11 @@ module KindeApi
|
|
51
54
|
# header parameters
|
52
55
|
header_params = opts[:header_params] || {}
|
53
56
|
# HTTP header 'Accept' (if needed)
|
54
|
-
header_params['Accept'] =
|
57
|
+
header_params['Accept'] =
|
58
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
55
59
|
# HTTP header 'Content-Type'
|
56
60
|
content_type = @api_client.select_header_content_type(['application/json'])
|
57
|
-
|
58
|
-
header_params['Content-Type'] = content_type
|
59
|
-
end
|
61
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
60
62
|
|
61
63
|
# form parameters
|
62
64
|
form_params = opts[:form_params] || {}
|
@@ -71,20 +73,20 @@ module KindeApi
|
|
71
73
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
72
74
|
|
73
75
|
new_options = opts.merge(
|
74
|
-
:
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
:
|
79
|
-
|
80
|
-
:
|
76
|
+
operation: :"FeatureFlagsApi.create_feature_flag",
|
77
|
+
header_params:,
|
78
|
+
query_params:,
|
79
|
+
form_params:,
|
80
|
+
body: post_body,
|
81
|
+
auth_names:,
|
82
|
+
return_type:
|
81
83
|
)
|
82
84
|
|
83
85
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
84
86
|
if @api_client.config.debugging
|
85
87
|
@api_client.config.logger.debug "API called: FeatureFlagsApi#create_feature_flag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
86
88
|
end
|
87
|
-
|
89
|
+
[data, status_code, headers]
|
88
90
|
end
|
89
91
|
|
90
92
|
# Delete Feature Flag
|
@@ -108,10 +110,13 @@ module KindeApi
|
|
108
110
|
end
|
109
111
|
# verify the required parameter 'feature_flag_key' is set
|
110
112
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
111
|
-
|
113
|
+
raise ArgumentError,
|
114
|
+
"Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.delete_feature_flag"
|
112
115
|
end
|
116
|
+
|
113
117
|
# resource path
|
114
|
-
local_var_path = '/api/v1/feature_flags/{feature_flag_key}'.sub('{
|
118
|
+
local_var_path = '/api/v1/feature_flags/{feature_flag_key}'.sub('{feature_flag_key}',
|
119
|
+
CGI.escape(feature_flag_key.to_s))
|
115
120
|
|
116
121
|
# query parameters
|
117
122
|
query_params = opts[:query_params] || {}
|
@@ -119,7 +124,8 @@ module KindeApi
|
|
119
124
|
# header parameters
|
120
125
|
header_params = opts[:header_params] || {}
|
121
126
|
# HTTP header 'Accept' (if needed)
|
122
|
-
header_params['Accept'] =
|
127
|
+
header_params['Accept'] =
|
128
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
123
129
|
|
124
130
|
# form parameters
|
125
131
|
form_params = opts[:form_params] || {}
|
@@ -134,20 +140,20 @@ module KindeApi
|
|
134
140
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
135
141
|
|
136
142
|
new_options = opts.merge(
|
137
|
-
:
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
:
|
142
|
-
|
143
|
-
:
|
143
|
+
operation: :"FeatureFlagsApi.delete_feature_flag",
|
144
|
+
header_params:,
|
145
|
+
query_params:,
|
146
|
+
form_params:,
|
147
|
+
body: post_body,
|
148
|
+
auth_names:,
|
149
|
+
return_type:
|
144
150
|
)
|
145
151
|
|
146
152
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
147
153
|
if @api_client.config.debugging
|
148
154
|
@api_client.config.logger.debug "API called: FeatureFlagsApi#delete_feature_flag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
149
155
|
end
|
150
|
-
|
156
|
+
[data, status_code, headers]
|
151
157
|
end
|
152
158
|
|
153
159
|
# Replace Feature Flag
|
@@ -161,7 +167,8 @@ module KindeApi
|
|
161
167
|
# @param [Hash] opts the optional parameters
|
162
168
|
# @return [SuccessResponse]
|
163
169
|
def update_feature_flag(feature_flag_key, name, description, type, allow_override_level, default_value, opts = {})
|
164
|
-
data, _status_code, _headers = update_feature_flag_with_http_info(feature_flag_key, name, description, type,
|
170
|
+
data, _status_code, _headers = update_feature_flag_with_http_info(feature_flag_key, name, description, type,
|
171
|
+
allow_override_level, default_value, opts)
|
165
172
|
data
|
166
173
|
end
|
167
174
|
|
@@ -175,59 +182,72 @@ module KindeApi
|
|
175
182
|
# @param default_value [String] Default value for the flag used by environments and organizations.
|
176
183
|
# @param [Hash] opts the optional parameters
|
177
184
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
178
|
-
def update_feature_flag_with_http_info(feature_flag_key, name, description, type, allow_override_level,
|
185
|
+
def update_feature_flag_with_http_info(feature_flag_key, name, description, type, allow_override_level,
|
186
|
+
default_value, opts = {})
|
179
187
|
if @api_client.config.debugging
|
180
188
|
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.update_feature_flag ...'
|
181
189
|
end
|
182
190
|
# verify the required parameter 'feature_flag_key' is set
|
183
191
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
184
|
-
|
192
|
+
raise ArgumentError,
|
193
|
+
"Missing the required parameter 'feature_flag_key' when calling FeatureFlagsApi.update_feature_flag"
|
185
194
|
end
|
186
195
|
# verify the required parameter 'name' is set
|
187
196
|
if @api_client.config.client_side_validation && name.nil?
|
188
|
-
|
197
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling FeatureFlagsApi.update_feature_flag"
|
189
198
|
end
|
199
|
+
|
190
200
|
# verify the required parameter 'description' is set
|
191
201
|
if @api_client.config.client_side_validation && description.nil?
|
192
|
-
|
202
|
+
raise ArgumentError,
|
203
|
+
"Missing the required parameter 'description' when calling FeatureFlagsApi.update_feature_flag"
|
193
204
|
end
|
194
205
|
# verify the required parameter 'type' is set
|
195
206
|
if @api_client.config.client_side_validation && type.nil?
|
196
|
-
|
207
|
+
raise ArgumentError, "Missing the required parameter 'type' when calling FeatureFlagsApi.update_feature_flag"
|
197
208
|
end
|
209
|
+
|
198
210
|
# verify enum value
|
199
|
-
allowable_values = [
|
211
|
+
allowable_values = %w[str int bool]
|
200
212
|
if @api_client.config.client_side_validation && !allowable_values.include?(type)
|
201
|
-
|
213
|
+
raise ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}"
|
202
214
|
end
|
215
|
+
|
203
216
|
# verify the required parameter 'allow_override_level' is set
|
204
217
|
if @api_client.config.client_side_validation && allow_override_level.nil?
|
205
|
-
|
218
|
+
raise ArgumentError,
|
219
|
+
"Missing the required parameter 'allow_override_level' when calling FeatureFlagsApi.update_feature_flag"
|
206
220
|
end
|
221
|
+
|
207
222
|
# verify enum value
|
208
|
-
allowable_values = [
|
223
|
+
allowable_values = %w[env org]
|
209
224
|
if @api_client.config.client_side_validation && !allowable_values.include?(allow_override_level)
|
210
|
-
|
225
|
+
raise ArgumentError, "invalid value for \"allow_override_level\", must be one of #{allowable_values}"
|
211
226
|
end
|
227
|
+
|
212
228
|
# verify the required parameter 'default_value' is set
|
213
229
|
if @api_client.config.client_side_validation && default_value.nil?
|
214
|
-
|
230
|
+
raise ArgumentError,
|
231
|
+
"Missing the required parameter 'default_value' when calling FeatureFlagsApi.update_feature_flag"
|
215
232
|
end
|
233
|
+
|
216
234
|
# resource path
|
217
|
-
local_var_path = '/api/v1/feature_flags/{feature_flag_key}'.sub('{
|
235
|
+
local_var_path = '/api/v1/feature_flags/{feature_flag_key}'.sub('{feature_flag_key}',
|
236
|
+
CGI.escape(feature_flag_key.to_s))
|
218
237
|
|
219
238
|
# query parameters
|
220
239
|
query_params = opts[:query_params] || {}
|
221
|
-
query_params[:
|
222
|
-
query_params[:
|
223
|
-
query_params[:
|
224
|
-
query_params[:
|
225
|
-
query_params[:
|
240
|
+
query_params[:name] = name
|
241
|
+
query_params[:description] = description
|
242
|
+
query_params[:type] = type
|
243
|
+
query_params[:allow_override_level] = allow_override_level
|
244
|
+
query_params[:default_value] = default_value
|
226
245
|
|
227
246
|
# header parameters
|
228
247
|
header_params = opts[:header_params] || {}
|
229
248
|
# HTTP header 'Accept' (if needed)
|
230
|
-
header_params['Accept'] =
|
249
|
+
header_params['Accept'] =
|
250
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
231
251
|
|
232
252
|
# form parameters
|
233
253
|
form_params = opts[:form_params] || {}
|
@@ -242,20 +262,20 @@ module KindeApi
|
|
242
262
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
243
263
|
|
244
264
|
new_options = opts.merge(
|
245
|
-
:
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
:
|
250
|
-
|
251
|
-
:
|
265
|
+
operation: :"FeatureFlagsApi.update_feature_flag",
|
266
|
+
header_params:,
|
267
|
+
query_params:,
|
268
|
+
form_params:,
|
269
|
+
body: post_body,
|
270
|
+
auth_names:,
|
271
|
+
return_type:
|
252
272
|
)
|
253
273
|
|
254
274
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
255
275
|
if @api_client.config.debugging
|
256
276
|
@api_client.config.logger.debug "API called: FeatureFlagsApi#update_feature_flag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
257
277
|
end
|
258
|
-
|
278
|
+
[data, status_code, headers]
|
259
279
|
end
|
260
280
|
end
|
261
281
|
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 'cgi'
|
14
14
|
|
@@ -19,6 +19,7 @@ module KindeApi
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
|
22
23
|
# List industries and industry keys.
|
23
24
|
# Get a list of industries and associated industry keys.
|
24
25
|
# @param [Hash] opts the optional parameters
|
@@ -37,16 +38,14 @@ module KindeApi
|
|
37
38
|
# @option opts [String] :name Industry name.
|
38
39
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
39
40
|
def get_industries_with_http_info(opts = {})
|
40
|
-
if @api_client.config.debugging
|
41
|
-
@api_client.config.logger.debug 'Calling API: IndustriesApi.get_industries ...'
|
42
|
-
end
|
41
|
+
@api_client.config.logger.debug 'Calling API: IndustriesApi.get_industries ...' if @api_client.config.debugging
|
43
42
|
# resource path
|
44
43
|
local_var_path = '/api/v1/industries'
|
45
44
|
|
46
45
|
# query parameters
|
47
46
|
query_params = opts[:query_params] || {}
|
48
|
-
query_params[:
|
49
|
-
query_params[:
|
47
|
+
query_params[:industry_key] = opts[:industry_key] unless opts[:industry_key].nil?
|
48
|
+
query_params[:name] = opts[:name] unless opts[:name].nil?
|
50
49
|
|
51
50
|
# header parameters
|
52
51
|
header_params = opts[:header_params] || {}
|
@@ -66,20 +65,20 @@ module KindeApi
|
|
66
65
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
67
66
|
|
68
67
|
new_options = opts.merge(
|
69
|
-
:
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
:
|
74
|
-
|
75
|
-
:
|
68
|
+
operation: :"IndustriesApi.get_industries",
|
69
|
+
header_params:,
|
70
|
+
query_params:,
|
71
|
+
form_params:,
|
72
|
+
body: post_body,
|
73
|
+
auth_names:,
|
74
|
+
return_type:
|
76
75
|
)
|
77
76
|
|
78
77
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
79
78
|
if @api_client.config.debugging
|
80
79
|
@api_client.config.logger.debug "API called: IndustriesApi#get_industries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
81
80
|
end
|
82
|
-
|
81
|
+
[data, status_code, headers]
|
83
82
|
end
|
84
83
|
end
|
85
84
|
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 '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
|
# Get User Profile
|
23
|
-
# Contains the id, names and email of the currently logged in user.
|
24
|
+
# Contains the id, names and email of the currently logged in user.
|
24
25
|
# @param [Hash] opts the optional parameters
|
25
26
|
# @return [UserProfile]
|
26
27
|
def get_user(opts = {})
|
@@ -29,13 +30,11 @@ module KindeApi
|
|
29
30
|
end
|
30
31
|
|
31
32
|
# Get User Profile
|
32
|
-
# Contains the id, names and email of the currently logged in user.
|
33
|
+
# Contains the id, names and email of the currently logged in user.
|
33
34
|
# @param [Hash] opts the optional parameters
|
34
35
|
# @return [Array<(UserProfile, Integer, Hash)>] UserProfile data, response status code and response headers
|
35
36
|
def get_user_with_http_info(opts = {})
|
36
|
-
if @api_client.config.debugging
|
37
|
-
@api_client.config.logger.debug 'Calling API: OAuthApi.get_user ...'
|
38
|
-
end
|
37
|
+
@api_client.config.logger.debug 'Calling API: OAuthApi.get_user ...' if @api_client.config.debugging
|
39
38
|
# resource path
|
40
39
|
local_var_path = '/oauth2/user_profile'
|
41
40
|
|
@@ -60,24 +59,24 @@ module KindeApi
|
|
60
59
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
61
60
|
|
62
61
|
new_options = opts.merge(
|
63
|
-
:
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
:
|
68
|
-
|
69
|
-
:
|
62
|
+
operation: :"OAuthApi.get_user",
|
63
|
+
header_params:,
|
64
|
+
query_params:,
|
65
|
+
form_params:,
|
66
|
+
body: post_body,
|
67
|
+
auth_names:,
|
68
|
+
return_type:
|
70
69
|
)
|
71
70
|
|
72
71
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
73
72
|
if @api_client.config.debugging
|
74
73
|
@api_client.config.logger.debug "API called: OAuthApi#get_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
75
74
|
end
|
76
|
-
|
75
|
+
[data, status_code, headers]
|
77
76
|
end
|
78
77
|
|
79
78
|
# Returns the details of the currently logged in user
|
80
|
-
# Contains the id, names, profile picture URL and email of the currently logged in user.
|
79
|
+
# Contains the id, names, profile picture URL and email of the currently logged in user.
|
81
80
|
# @param [Hash] opts the optional parameters
|
82
81
|
# @return [UserProfileV2]
|
83
82
|
def get_user_profile_v2(opts = {})
|
@@ -86,13 +85,11 @@ module KindeApi
|
|
86
85
|
end
|
87
86
|
|
88
87
|
# Returns the details of the currently logged in user
|
89
|
-
# Contains the id, names, profile picture URL and email of the currently logged in user.
|
88
|
+
# Contains the id, names, profile picture URL and email of the currently logged in user.
|
90
89
|
# @param [Hash] opts the optional parameters
|
91
90
|
# @return [Array<(UserProfileV2, Integer, Hash)>] UserProfileV2 data, response status code and response headers
|
92
91
|
def get_user_profile_v2_with_http_info(opts = {})
|
93
|
-
if @api_client.config.debugging
|
94
|
-
@api_client.config.logger.debug 'Calling API: OAuthApi.get_user_profile_v2 ...'
|
95
|
-
end
|
92
|
+
@api_client.config.logger.debug 'Calling API: OAuthApi.get_user_profile_v2 ...' if @api_client.config.debugging
|
96
93
|
# resource path
|
97
94
|
local_var_path = '/oauth2/v2/user_profile'
|
98
95
|
|
@@ -117,20 +114,20 @@ module KindeApi
|
|
117
114
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
118
115
|
|
119
116
|
new_options = opts.merge(
|
120
|
-
:
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
:
|
125
|
-
|
126
|
-
:
|
117
|
+
operation: :"OAuthApi.get_user_profile_v2",
|
118
|
+
header_params:,
|
119
|
+
query_params:,
|
120
|
+
form_params:,
|
121
|
+
body: post_body,
|
122
|
+
auth_names:,
|
123
|
+
return_type:
|
127
124
|
)
|
128
125
|
|
129
126
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
130
127
|
if @api_client.config.debugging
|
131
128
|
@api_client.config.logger.debug "API called: OAuthApi#get_user_profile_v2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
132
129
|
end
|
133
|
-
|
130
|
+
[data, status_code, headers]
|
134
131
|
end
|
135
132
|
|
136
133
|
# Get token details
|
@@ -151,9 +148,7 @@ module KindeApi
|
|
151
148
|
# @option opts [String] :token_type The provided token's type.
|
152
149
|
# @return [Array<(TokenIntrospect, Integer, Hash)>] TokenIntrospect data, response status code and response headers
|
153
150
|
def token_introspection_with_http_info(opts = {})
|
154
|
-
if @api_client.config.debugging
|
155
|
-
@api_client.config.logger.debug 'Calling API: OAuthApi.token_introspection ...'
|
156
|
-
end
|
151
|
+
@api_client.config.logger.debug 'Calling API: OAuthApi.token_introspection ...' if @api_client.config.debugging
|
157
152
|
# resource path
|
158
153
|
local_var_path = '/oauth2/introspect'
|
159
154
|
|
@@ -163,17 +158,16 @@ module KindeApi
|
|
163
158
|
# header parameters
|
164
159
|
header_params = opts[:header_params] || {}
|
165
160
|
# HTTP header 'Accept' (if needed)
|
166
|
-
header_params['Accept'] =
|
161
|
+
header_params['Accept'] =
|
162
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
167
163
|
# HTTP header 'Content-Type'
|
168
164
|
content_type = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
169
|
-
|
170
|
-
header_params['Content-Type'] = content_type
|
171
|
-
end
|
165
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
172
166
|
|
173
167
|
# form parameters
|
174
168
|
form_params = opts[:form_params] || {}
|
175
|
-
form_params['token'] = opts[:
|
176
|
-
form_params['token_type'] = opts[:
|
169
|
+
form_params['token'] = opts[:token] unless opts[:token].nil?
|
170
|
+
form_params['token_type'] = opts[:token_type] unless opts[:token_type].nil?
|
177
171
|
|
178
172
|
# http body (model)
|
179
173
|
post_body = opts[:debug_body]
|
@@ -185,20 +179,20 @@ module KindeApi
|
|
185
179
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
186
180
|
|
187
181
|
new_options = opts.merge(
|
188
|
-
:
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
:
|
193
|
-
|
194
|
-
:
|
182
|
+
operation: :"OAuthApi.token_introspection",
|
183
|
+
header_params:,
|
184
|
+
query_params:,
|
185
|
+
form_params:,
|
186
|
+
body: post_body,
|
187
|
+
auth_names:,
|
188
|
+
return_type:
|
195
189
|
)
|
196
190
|
|
197
191
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
198
192
|
if @api_client.config.debugging
|
199
193
|
@api_client.config.logger.debug "API called: OAuthApi#token_introspection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
200
194
|
end
|
201
|
-
|
195
|
+
[data, status_code, headers]
|
202
196
|
end
|
203
197
|
|
204
198
|
# Revoke token
|
@@ -221,9 +215,7 @@ module KindeApi
|
|
221
215
|
# @option opts [String] :client_secret The secret associated with your client.
|
222
216
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
223
217
|
def token_revocation_with_http_info(opts = {})
|
224
|
-
if @api_client.config.debugging
|
225
|
-
@api_client.config.logger.debug 'Calling API: OAuthApi.token_revocation ...'
|
226
|
-
end
|
218
|
+
@api_client.config.logger.debug 'Calling API: OAuthApi.token_revocation ...' if @api_client.config.debugging
|
227
219
|
# resource path
|
228
220
|
local_var_path = '/oauth2/revoke'
|
229
221
|
|
@@ -233,18 +225,17 @@ module KindeApi
|
|
233
225
|
# header parameters
|
234
226
|
header_params = opts[:header_params] || {}
|
235
227
|
# HTTP header 'Accept' (if needed)
|
236
|
-
header_params['Accept'] =
|
228
|
+
header_params['Accept'] =
|
229
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
237
230
|
# HTTP header 'Content-Type'
|
238
231
|
content_type = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
239
|
-
|
240
|
-
header_params['Content-Type'] = content_type
|
241
|
-
end
|
232
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
242
233
|
|
243
234
|
# form parameters
|
244
235
|
form_params = opts[:form_params] || {}
|
245
|
-
form_params['token'] = opts[:
|
246
|
-
form_params['client_id'] = opts[:
|
247
|
-
form_params['client_secret'] = opts[:
|
236
|
+
form_params['token'] = opts[:token] unless opts[:token].nil?
|
237
|
+
form_params['client_id'] = opts[:client_id] unless opts[:client_id].nil?
|
238
|
+
form_params['client_secret'] = opts[:client_secret] unless opts[:client_secret].nil?
|
248
239
|
|
249
240
|
# http body (model)
|
250
241
|
post_body = opts[:debug_body]
|
@@ -256,20 +247,20 @@ module KindeApi
|
|
256
247
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
257
248
|
|
258
249
|
new_options = opts.merge(
|
259
|
-
:
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
:
|
264
|
-
|
265
|
-
:
|
250
|
+
operation: :"OAuthApi.token_revocation",
|
251
|
+
header_params:,
|
252
|
+
query_params:,
|
253
|
+
form_params:,
|
254
|
+
body: post_body,
|
255
|
+
auth_names:,
|
256
|
+
return_type:
|
266
257
|
)
|
267
258
|
|
268
259
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
269
260
|
if @api_client.config.debugging
|
270
261
|
@api_client.config.logger.debug "API called: OAuthApi#token_revocation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
271
262
|
end
|
272
|
-
|
263
|
+
[data, status_code, headers]
|
273
264
|
end
|
274
265
|
end
|
275
266
|
end
|