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,47 +19,53 @@ module KindeApi
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
|
22
23
|
# Get Connected App URL
|
23
24
|
# Get a URL that authenticates and authorizes a user to a third-party connected app.
|
24
25
|
# @param key_code_ref [String] The unique key code reference of the connected app to authenticate against.
|
25
|
-
# @param user_id [String] The id of the user that needs to authenticate to the third-party connected app.
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
|
+
# @option opts [String] :user_id The id of the user that needs to authenticate to the third-party connected app.
|
28
|
+
# @option opts [String] :org_code The code of the Kinde organization that needs to authenticate to the third-party connected app.
|
29
|
+
# @option opts [String] :override_callback_url A URL that overrides the default callback URL setup in your connected app configuration
|
27
30
|
# @return [ConnectedAppsAuthUrl]
|
28
|
-
def get_connected_app_auth_url(key_code_ref,
|
29
|
-
data, _status_code, _headers = get_connected_app_auth_url_with_http_info(key_code_ref,
|
31
|
+
def get_connected_app_auth_url(key_code_ref, opts = {})
|
32
|
+
data, _status_code, _headers = get_connected_app_auth_url_with_http_info(key_code_ref, opts)
|
30
33
|
data
|
31
34
|
end
|
32
35
|
|
33
36
|
# Get Connected App URL
|
34
37
|
# Get a URL that authenticates and authorizes a user to a third-party connected app.
|
35
38
|
# @param key_code_ref [String] The unique key code reference of the connected app to authenticate against.
|
36
|
-
# @param user_id [String] The id of the user that needs to authenticate to the third-party connected app.
|
37
39
|
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [String] :user_id The id of the user that needs to authenticate to the third-party connected app.
|
41
|
+
# @option opts [String] :org_code The code of the Kinde organization that needs to authenticate to the third-party connected app.
|
42
|
+
# @option opts [String] :override_callback_url A URL that overrides the default callback URL setup in your connected app configuration
|
38
43
|
# @return [Array<(ConnectedAppsAuthUrl, Integer, Hash)>] ConnectedAppsAuthUrl data, response status code and response headers
|
39
|
-
def get_connected_app_auth_url_with_http_info(key_code_ref,
|
44
|
+
def get_connected_app_auth_url_with_http_info(key_code_ref, opts = {})
|
40
45
|
if @api_client.config.debugging
|
41
46
|
@api_client.config.logger.debug 'Calling API: ConnectedAppsApi.get_connected_app_auth_url ...'
|
42
47
|
end
|
43
48
|
# verify the required parameter 'key_code_ref' is set
|
44
49
|
if @api_client.config.client_side_validation && key_code_ref.nil?
|
45
|
-
|
46
|
-
|
47
|
-
# verify the required parameter 'user_id' is set
|
48
|
-
if @api_client.config.client_side_validation && user_id.nil?
|
49
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling ConnectedAppsApi.get_connected_app_auth_url"
|
50
|
+
raise ArgumentError,
|
51
|
+
"Missing the required parameter 'key_code_ref' when calling ConnectedAppsApi.get_connected_app_auth_url"
|
50
52
|
end
|
53
|
+
|
51
54
|
# resource path
|
52
55
|
local_var_path = '/api/v1/connected_apps/auth_url'
|
53
56
|
|
54
57
|
# query parameters
|
55
58
|
query_params = opts[:query_params] || {}
|
56
|
-
query_params[:
|
57
|
-
query_params[:
|
59
|
+
query_params[:key_code_ref] = key_code_ref
|
60
|
+
query_params[:user_id] = opts[:user_id] unless opts[:user_id].nil?
|
61
|
+
query_params[:org_code] = opts[:org_code] unless opts[:org_code].nil?
|
62
|
+
query_params[:override_callback_url] = opts[:override_callback_url] unless opts[:override_callback_url].nil?
|
58
63
|
|
59
64
|
# header parameters
|
60
65
|
header_params = opts[:header_params] || {}
|
61
66
|
# HTTP header 'Accept' (if needed)
|
62
|
-
header_params['Accept'] =
|
67
|
+
header_params['Accept'] =
|
68
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
63
69
|
|
64
70
|
# form parameters
|
65
71
|
form_params = opts[:form_params] || {}
|
@@ -74,20 +80,20 @@ module KindeApi
|
|
74
80
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
75
81
|
|
76
82
|
new_options = opts.merge(
|
77
|
-
:
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
:
|
82
|
-
|
83
|
-
:
|
83
|
+
operation: :"ConnectedAppsApi.get_connected_app_auth_url",
|
84
|
+
header_params:,
|
85
|
+
query_params:,
|
86
|
+
form_params:,
|
87
|
+
body: post_body,
|
88
|
+
auth_names:,
|
89
|
+
return_type:
|
84
90
|
)
|
85
91
|
|
86
92
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
87
93
|
if @api_client.config.debugging
|
88
94
|
@api_client.config.logger.debug "API called: ConnectedAppsApi#get_connected_app_auth_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
89
95
|
end
|
90
|
-
|
96
|
+
[data, status_code, headers]
|
91
97
|
end
|
92
98
|
|
93
99
|
# Get Connected App Token
|
@@ -111,19 +117,22 @@ module KindeApi
|
|
111
117
|
end
|
112
118
|
# verify the required parameter 'session_id' is set
|
113
119
|
if @api_client.config.client_side_validation && session_id.nil?
|
114
|
-
|
120
|
+
raise ArgumentError,
|
121
|
+
"Missing the required parameter 'session_id' when calling ConnectedAppsApi.get_connected_app_token"
|
115
122
|
end
|
123
|
+
|
116
124
|
# resource path
|
117
125
|
local_var_path = '/api/v1/connected_apps/token'
|
118
126
|
|
119
127
|
# query parameters
|
120
128
|
query_params = opts[:query_params] || {}
|
121
|
-
query_params[:
|
129
|
+
query_params[:session_id] = session_id
|
122
130
|
|
123
131
|
# header parameters
|
124
132
|
header_params = opts[:header_params] || {}
|
125
133
|
# HTTP header 'Accept' (if needed)
|
126
|
-
header_params['Accept'] =
|
134
|
+
header_params['Accept'] =
|
135
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
127
136
|
|
128
137
|
# form parameters
|
129
138
|
form_params = opts[:form_params] || {}
|
@@ -138,20 +147,20 @@ module KindeApi
|
|
138
147
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
139
148
|
|
140
149
|
new_options = opts.merge(
|
141
|
-
:
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
:
|
146
|
-
|
147
|
-
:
|
150
|
+
operation: :"ConnectedAppsApi.get_connected_app_token",
|
151
|
+
header_params:,
|
152
|
+
query_params:,
|
153
|
+
form_params:,
|
154
|
+
body: post_body,
|
155
|
+
auth_names:,
|
156
|
+
return_type:
|
148
157
|
)
|
149
158
|
|
150
159
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
151
160
|
if @api_client.config.debugging
|
152
161
|
@api_client.config.logger.debug "API called: ConnectedAppsApi#get_connected_app_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
153
162
|
end
|
154
|
-
|
163
|
+
[data, status_code, headers]
|
155
164
|
end
|
156
165
|
|
157
166
|
# Revoke Connected App Token
|
@@ -175,19 +184,22 @@ module KindeApi
|
|
175
184
|
end
|
176
185
|
# verify the required parameter 'session_id' is set
|
177
186
|
if @api_client.config.client_side_validation && session_id.nil?
|
178
|
-
|
187
|
+
raise ArgumentError,
|
188
|
+
"Missing the required parameter 'session_id' when calling ConnectedAppsApi.revoke_connected_app_token"
|
179
189
|
end
|
190
|
+
|
180
191
|
# resource path
|
181
192
|
local_var_path = '/api/v1/connected_apps/revoke'
|
182
193
|
|
183
194
|
# query parameters
|
184
195
|
query_params = opts[:query_params] || {}
|
185
|
-
query_params[:
|
196
|
+
query_params[:session_id] = session_id
|
186
197
|
|
187
198
|
# header parameters
|
188
199
|
header_params = opts[:header_params] || {}
|
189
200
|
# HTTP header 'Accept' (if needed)
|
190
|
-
header_params['Accept'] =
|
201
|
+
header_params['Accept'] =
|
202
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
191
203
|
|
192
204
|
# form parameters
|
193
205
|
form_params = opts[:form_params] || {}
|
@@ -202,20 +214,20 @@ module KindeApi
|
|
202
214
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
203
215
|
|
204
216
|
new_options = opts.merge(
|
205
|
-
:
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
:
|
210
|
-
|
211
|
-
:
|
217
|
+
operation: :"ConnectedAppsApi.revoke_connected_app_token",
|
218
|
+
header_params:,
|
219
|
+
query_params:,
|
220
|
+
form_params:,
|
221
|
+
body: post_body,
|
222
|
+
auth_names:,
|
223
|
+
return_type:
|
212
224
|
)
|
213
225
|
|
214
226
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
215
227
|
if @api_client.config.debugging
|
216
228
|
@api_client.config.logger.debug "API called: ConnectedAppsApi#revoke_connected_app_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
217
229
|
end
|
218
|
-
|
230
|
+
[data, status_code, headers]
|
219
231
|
end
|
220
232
|
end
|
221
233
|
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,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
|
# Delete Environment Feature Flag Override
|
23
24
|
# Delete environment feature flag override.
|
24
25
|
# @param feature_flag_key [String] The identifier for the feature flag.
|
@@ -40,10 +41,13 @@ module KindeApi
|
|
40
41
|
end
|
41
42
|
# verify the required parameter 'feature_flag_key' is set
|
42
43
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
43
|
-
|
44
|
+
raise ArgumentError,
|
45
|
+
"Missing the required parameter 'feature_flag_key' when calling EnvironmentsApi.delete_environement_feature_flag_override"
|
44
46
|
end
|
47
|
+
|
45
48
|
# resource path
|
46
|
-
local_var_path = '/api/v1/environment/feature_flags/{feature_flag_key}'.sub('{
|
49
|
+
local_var_path = '/api/v1/environment/feature_flags/{feature_flag_key}'.sub('{feature_flag_key}',
|
50
|
+
CGI.escape(feature_flag_key.to_s))
|
47
51
|
|
48
52
|
# query parameters
|
49
53
|
query_params = opts[:query_params] || {}
|
@@ -51,7 +55,8 @@ module KindeApi
|
|
51
55
|
# header parameters
|
52
56
|
header_params = opts[:header_params] || {}
|
53
57
|
# HTTP header 'Accept' (if needed)
|
54
|
-
header_params['Accept'] =
|
58
|
+
header_params['Accept'] =
|
59
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
55
60
|
|
56
61
|
# form parameters
|
57
62
|
form_params = opts[:form_params] || {}
|
@@ -66,20 +71,20 @@ module KindeApi
|
|
66
71
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
67
72
|
|
68
73
|
new_options = opts.merge(
|
69
|
-
:
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
:
|
74
|
-
|
75
|
-
:
|
74
|
+
operation: :"EnvironmentsApi.delete_environement_feature_flag_override",
|
75
|
+
header_params:,
|
76
|
+
query_params:,
|
77
|
+
form_params:,
|
78
|
+
body: post_body,
|
79
|
+
auth_names:,
|
80
|
+
return_type:
|
76
81
|
)
|
77
82
|
|
78
83
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
79
84
|
if @api_client.config.debugging
|
80
85
|
@api_client.config.logger.debug "API called: EnvironmentsApi#delete_environement_feature_flag_override\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
81
86
|
end
|
82
|
-
|
87
|
+
[data, status_code, headers]
|
83
88
|
end
|
84
89
|
|
85
90
|
# Delete Environment Feature Flag Overrides
|
@@ -108,7 +113,8 @@ module KindeApi
|
|
108
113
|
# header parameters
|
109
114
|
header_params = opts[:header_params] || {}
|
110
115
|
# HTTP header 'Accept' (if needed)
|
111
|
-
header_params['Accept'] =
|
116
|
+
header_params['Accept'] =
|
117
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
112
118
|
|
113
119
|
# form parameters
|
114
120
|
form_params = opts[:form_params] || {}
|
@@ -123,20 +129,20 @@ module KindeApi
|
|
123
129
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
124
130
|
|
125
131
|
new_options = opts.merge(
|
126
|
-
:
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
:
|
131
|
-
|
132
|
-
:
|
132
|
+
operation: :"EnvironmentsApi.delete_environement_feature_flag_overrides",
|
133
|
+
header_params:,
|
134
|
+
query_params:,
|
135
|
+
form_params:,
|
136
|
+
body: post_body,
|
137
|
+
auth_names:,
|
138
|
+
return_type:
|
133
139
|
)
|
134
140
|
|
135
141
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
136
142
|
if @api_client.config.debugging
|
137
143
|
@api_client.config.logger.debug "API called: EnvironmentsApi#delete_environement_feature_flag_overrides\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
138
144
|
end
|
139
|
-
|
145
|
+
[data, status_code, headers]
|
140
146
|
end
|
141
147
|
|
142
148
|
# List Environment Feature Flags
|
@@ -165,7 +171,8 @@ module KindeApi
|
|
165
171
|
# header parameters
|
166
172
|
header_params = opts[:header_params] || {}
|
167
173
|
# HTTP header 'Accept' (if needed)
|
168
|
-
header_params['Accept'] =
|
174
|
+
header_params['Accept'] =
|
175
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
169
176
|
|
170
177
|
# form parameters
|
171
178
|
form_params = opts[:form_params] || {}
|
@@ -180,20 +187,20 @@ module KindeApi
|
|
180
187
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
181
188
|
|
182
189
|
new_options = opts.merge(
|
183
|
-
:
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
:
|
188
|
-
|
189
|
-
:
|
190
|
+
operation: :"EnvironmentsApi.get_environement_feature_flags",
|
191
|
+
header_params:,
|
192
|
+
query_params:,
|
193
|
+
form_params:,
|
194
|
+
body: post_body,
|
195
|
+
auth_names:,
|
196
|
+
return_type:
|
190
197
|
)
|
191
198
|
|
192
199
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
193
200
|
if @api_client.config.debugging
|
194
201
|
@api_client.config.logger.debug "API called: EnvironmentsApi#get_environement_feature_flags\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
195
202
|
end
|
196
|
-
|
203
|
+
[data, status_code, headers]
|
197
204
|
end
|
198
205
|
|
199
206
|
# Update Environment Feature Flag Override
|
@@ -202,8 +209,10 @@ module KindeApi
|
|
202
209
|
# @param update_environement_feature_flag_override_request [UpdateEnvironementFeatureFlagOverrideRequest] Flag details.
|
203
210
|
# @param [Hash] opts the optional parameters
|
204
211
|
# @return [SuccessResponse]
|
205
|
-
def update_environement_feature_flag_override(feature_flag_key, update_environement_feature_flag_override_request,
|
206
|
-
|
212
|
+
def update_environement_feature_flag_override(feature_flag_key, update_environement_feature_flag_override_request,
|
213
|
+
opts = {})
|
214
|
+
data, _status_code, _headers = update_environement_feature_flag_override_with_http_info(feature_flag_key,
|
215
|
+
update_environement_feature_flag_override_request, opts)
|
207
216
|
data
|
208
217
|
end
|
209
218
|
|
@@ -213,20 +222,25 @@ module KindeApi
|
|
213
222
|
# @param update_environement_feature_flag_override_request [UpdateEnvironementFeatureFlagOverrideRequest] Flag details.
|
214
223
|
# @param [Hash] opts the optional parameters
|
215
224
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
216
|
-
def update_environement_feature_flag_override_with_http_info(feature_flag_key,
|
225
|
+
def update_environement_feature_flag_override_with_http_info(feature_flag_key,
|
226
|
+
update_environement_feature_flag_override_request, opts = {})
|
217
227
|
if @api_client.config.debugging
|
218
228
|
@api_client.config.logger.debug 'Calling API: EnvironmentsApi.update_environement_feature_flag_override ...'
|
219
229
|
end
|
220
230
|
# verify the required parameter 'feature_flag_key' is set
|
221
231
|
if @api_client.config.client_side_validation && feature_flag_key.nil?
|
222
|
-
|
232
|
+
raise ArgumentError,
|
233
|
+
"Missing the required parameter 'feature_flag_key' when calling EnvironmentsApi.update_environement_feature_flag_override"
|
223
234
|
end
|
224
235
|
# verify the required parameter 'update_environement_feature_flag_override_request' is set
|
225
236
|
if @api_client.config.client_side_validation && update_environement_feature_flag_override_request.nil?
|
226
|
-
|
237
|
+
raise ArgumentError,
|
238
|
+
"Missing the required parameter 'update_environement_feature_flag_override_request' when calling EnvironmentsApi.update_environement_feature_flag_override"
|
227
239
|
end
|
240
|
+
|
228
241
|
# resource path
|
229
|
-
local_var_path = '/api/v1/environment/feature_flags/{feature_flag_key}'.sub('{
|
242
|
+
local_var_path = '/api/v1/environment/feature_flags/{feature_flag_key}'.sub('{feature_flag_key}',
|
243
|
+
CGI.escape(feature_flag_key.to_s))
|
230
244
|
|
231
245
|
# query parameters
|
232
246
|
query_params = opts[:query_params] || {}
|
@@ -234,12 +248,11 @@ module KindeApi
|
|
234
248
|
# header parameters
|
235
249
|
header_params = opts[:header_params] || {}
|
236
250
|
# HTTP header 'Accept' (if needed)
|
237
|
-
header_params['Accept'] =
|
251
|
+
header_params['Accept'] =
|
252
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
238
253
|
# HTTP header 'Content-Type'
|
239
254
|
content_type = @api_client.select_header_content_type(['application/json'])
|
240
|
-
|
241
|
-
header_params['Content-Type'] = content_type
|
242
|
-
end
|
255
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
243
256
|
|
244
257
|
# form parameters
|
245
258
|
form_params = opts[:form_params] || {}
|
@@ -254,20 +267,20 @@ module KindeApi
|
|
254
267
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
255
268
|
|
256
269
|
new_options = opts.merge(
|
257
|
-
:
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
:
|
262
|
-
|
263
|
-
:
|
270
|
+
operation: :"EnvironmentsApi.update_environement_feature_flag_override",
|
271
|
+
header_params:,
|
272
|
+
query_params:,
|
273
|
+
form_params:,
|
274
|
+
body: post_body,
|
275
|
+
auth_names:,
|
276
|
+
return_type:
|
264
277
|
)
|
265
278
|
|
266
279
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
267
280
|
if @api_client.config.debugging
|
268
281
|
@api_client.config.logger.debug "API called: EnvironmentsApi#update_environement_feature_flag_override\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
269
282
|
end
|
270
|
-
|
283
|
+
[data, status_code, headers]
|
271
284
|
end
|
272
285
|
end
|
273
286
|
end
|