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,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 Application
|
23
24
|
# Create an application.
|
24
25
|
# @param [Hash] opts the optional parameters
|
@@ -47,18 +48,17 @@ module KindeApi
|
|
47
48
|
# header parameters
|
48
49
|
header_params = opts[:header_params] || {}
|
49
50
|
# HTTP header 'Accept' (if needed)
|
50
|
-
header_params['Accept'] =
|
51
|
+
header_params['Accept'] =
|
52
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
51
53
|
# HTTP header 'Content-Type'
|
52
54
|
content_type = @api_client.select_header_content_type(['application/json'])
|
53
|
-
|
54
|
-
header_params['Content-Type'] = content_type
|
55
|
-
end
|
55
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
56
56
|
|
57
57
|
# form parameters
|
58
58
|
form_params = opts[:form_params] || {}
|
59
59
|
|
60
60
|
# http body (model)
|
61
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:
|
61
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:create_application_request])
|
62
62
|
|
63
63
|
# return_type
|
64
64
|
return_type = opts[:debug_return_type] || 'CreateApplicationResponse'
|
@@ -67,24 +67,24 @@ module KindeApi
|
|
67
67
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
68
68
|
|
69
69
|
new_options = opts.merge(
|
70
|
-
:
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
:
|
75
|
-
|
76
|
-
:
|
70
|
+
operation: :"ApplicationsApi.create_application",
|
71
|
+
header_params:,
|
72
|
+
query_params:,
|
73
|
+
form_params:,
|
74
|
+
body: post_body,
|
75
|
+
auth_names:,
|
76
|
+
return_type:
|
77
77
|
)
|
78
78
|
|
79
79
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
80
|
if @api_client.config.debugging
|
81
81
|
@api_client.config.logger.debug "API called: ApplicationsApi#create_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
82
|
end
|
83
|
-
|
83
|
+
[data, status_code, headers]
|
84
84
|
end
|
85
85
|
|
86
86
|
# Delete Application
|
87
|
-
# Delete application.
|
87
|
+
# Delete application.
|
88
88
|
# @param application_id [String] The identifier for the application.
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @return [SuccessResponse]
|
@@ -94,7 +94,7 @@ module KindeApi
|
|
94
94
|
end
|
95
95
|
|
96
96
|
# Delete Application
|
97
|
-
# Delete application.
|
97
|
+
# Delete application.
|
98
98
|
# @param application_id [String] The identifier for the application.
|
99
99
|
# @param [Hash] opts the optional parameters
|
100
100
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
@@ -104,10 +104,13 @@ module KindeApi
|
|
104
104
|
end
|
105
105
|
# verify the required parameter 'application_id' is set
|
106
106
|
if @api_client.config.client_side_validation && application_id.nil?
|
107
|
-
|
107
|
+
raise ArgumentError,
|
108
|
+
"Missing the required parameter 'application_id' when calling ApplicationsApi.delete_application"
|
108
109
|
end
|
110
|
+
|
109
111
|
# resource path
|
110
|
-
local_var_path = '/api/v1/applications/{application_id}'.sub('{
|
112
|
+
local_var_path = '/api/v1/applications/{application_id}'.sub('{application_id}',
|
113
|
+
CGI.escape(application_id.to_s))
|
111
114
|
|
112
115
|
# query parameters
|
113
116
|
query_params = opts[:query_params] || {}
|
@@ -115,7 +118,8 @@ module KindeApi
|
|
115
118
|
# header parameters
|
116
119
|
header_params = opts[:header_params] || {}
|
117
120
|
# HTTP header 'Accept' (if needed)
|
118
|
-
header_params['Accept'] =
|
121
|
+
header_params['Accept'] =
|
122
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
119
123
|
|
120
124
|
# form parameters
|
121
125
|
form_params = opts[:form_params] || {}
|
@@ -130,24 +134,24 @@ module KindeApi
|
|
130
134
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
131
135
|
|
132
136
|
new_options = opts.merge(
|
133
|
-
:
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
:
|
138
|
-
|
139
|
-
:
|
137
|
+
operation: :"ApplicationsApi.delete_application",
|
138
|
+
header_params:,
|
139
|
+
query_params:,
|
140
|
+
form_params:,
|
141
|
+
body: post_body,
|
142
|
+
auth_names:,
|
143
|
+
return_type:
|
140
144
|
)
|
141
145
|
|
142
146
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
143
147
|
if @api_client.config.debugging
|
144
148
|
@api_client.config.logger.debug "API called: ApplicationsApi#delete_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
145
149
|
end
|
146
|
-
|
150
|
+
[data, status_code, headers]
|
147
151
|
end
|
148
152
|
|
149
153
|
# Get Application
|
150
|
-
# Gets an application given the application's id.
|
154
|
+
# Gets an application given the application's id.
|
151
155
|
# @param application_id [String] The identifier for the application.
|
152
156
|
# @param [Hash] opts the optional parameters
|
153
157
|
# @return [GetApplicationResponse]
|
@@ -157,20 +161,21 @@ module KindeApi
|
|
157
161
|
end
|
158
162
|
|
159
163
|
# Get Application
|
160
|
-
# Gets an application given the application's id.
|
164
|
+
# Gets an application given the application's id.
|
161
165
|
# @param application_id [String] The identifier for the application.
|
162
166
|
# @param [Hash] opts the optional parameters
|
163
167
|
# @return [Array<(GetApplicationResponse, Integer, Hash)>] GetApplicationResponse data, response status code and response headers
|
164
168
|
def get_application_with_http_info(application_id, opts = {})
|
165
|
-
if @api_client.config.debugging
|
166
|
-
@api_client.config.logger.debug 'Calling API: ApplicationsApi.get_application ...'
|
167
|
-
end
|
169
|
+
@api_client.config.logger.debug 'Calling API: ApplicationsApi.get_application ...' if @api_client.config.debugging
|
168
170
|
# verify the required parameter 'application_id' is set
|
169
171
|
if @api_client.config.client_side_validation && application_id.nil?
|
170
|
-
|
172
|
+
raise ArgumentError,
|
173
|
+
"Missing the required parameter 'application_id' when calling ApplicationsApi.get_application"
|
171
174
|
end
|
175
|
+
|
172
176
|
# resource path
|
173
|
-
local_var_path = '/api/v1/applications/{application_id}'.sub('{
|
177
|
+
local_var_path = '/api/v1/applications/{application_id}'.sub('{application_id}',
|
178
|
+
CGI.escape(application_id.to_s))
|
174
179
|
|
175
180
|
# query parameters
|
176
181
|
query_params = opts[:query_params] || {}
|
@@ -178,7 +183,8 @@ module KindeApi
|
|
178
183
|
# header parameters
|
179
184
|
header_params = opts[:header_params] || {}
|
180
185
|
# HTTP header 'Accept' (if needed)
|
181
|
-
header_params['Accept'] =
|
186
|
+
header_params['Accept'] =
|
187
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
182
188
|
|
183
189
|
# form parameters
|
184
190
|
form_params = opts[:form_params] || {}
|
@@ -193,24 +199,24 @@ module KindeApi
|
|
193
199
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
194
200
|
|
195
201
|
new_options = opts.merge(
|
196
|
-
:
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
:
|
201
|
-
|
202
|
-
:
|
202
|
+
operation: :"ApplicationsApi.get_application",
|
203
|
+
header_params:,
|
204
|
+
query_params:,
|
205
|
+
form_params:,
|
206
|
+
body: post_body,
|
207
|
+
auth_names:,
|
208
|
+
return_type:
|
203
209
|
)
|
204
210
|
|
205
211
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
206
212
|
if @api_client.config.debugging
|
207
213
|
@api_client.config.logger.debug "API called: ApplicationsApi#get_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
208
214
|
end
|
209
|
-
|
215
|
+
[data, status_code, headers]
|
210
216
|
end
|
211
217
|
|
212
218
|
# List Applications
|
213
|
-
# Get a list of applications.
|
219
|
+
# Get a list of applications.
|
214
220
|
# @param [Hash] opts the optional parameters
|
215
221
|
# @option opts [String] :sort Field and order to sort the result by.
|
216
222
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
@@ -222,7 +228,7 @@ module KindeApi
|
|
222
228
|
end
|
223
229
|
|
224
230
|
# List Applications
|
225
|
-
# Get a list of applications.
|
231
|
+
# Get a list of applications.
|
226
232
|
# @param [Hash] opts the optional parameters
|
227
233
|
# @option opts [String] :sort Field and order to sort the result by.
|
228
234
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
@@ -232,23 +238,25 @@ module KindeApi
|
|
232
238
|
if @api_client.config.debugging
|
233
239
|
@api_client.config.logger.debug 'Calling API: ApplicationsApi.get_applications ...'
|
234
240
|
end
|
235
|
-
allowable_values = [
|
236
|
-
if @api_client.config.client_side_validation && opts[:
|
237
|
-
|
241
|
+
allowable_values = %w[name_asc name_desc]
|
242
|
+
if @api_client.config.client_side_validation && opts[:sort] && !allowable_values.include?(opts[:sort])
|
243
|
+
raise ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
238
244
|
end
|
245
|
+
|
239
246
|
# resource path
|
240
247
|
local_var_path = '/api/v1/applications'
|
241
248
|
|
242
249
|
# query parameters
|
243
250
|
query_params = opts[:query_params] || {}
|
244
|
-
query_params[:
|
245
|
-
query_params[:
|
246
|
-
query_params[:
|
251
|
+
query_params[:sort] = opts[:sort] unless opts[:sort].nil?
|
252
|
+
query_params[:page_size] = opts[:page_size] unless opts[:page_size].nil?
|
253
|
+
query_params[:next_token] = opts[:next_token] unless opts[:next_token].nil?
|
247
254
|
|
248
255
|
# header parameters
|
249
256
|
header_params = opts[:header_params] || {}
|
250
257
|
# HTTP header 'Accept' (if needed)
|
251
|
-
header_params['Accept'] =
|
258
|
+
header_params['Accept'] =
|
259
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
252
260
|
|
253
261
|
# form parameters
|
254
262
|
form_params = opts[:form_params] || {}
|
@@ -263,20 +271,20 @@ module KindeApi
|
|
263
271
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
264
272
|
|
265
273
|
new_options = opts.merge(
|
266
|
-
:
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
:
|
271
|
-
|
272
|
-
:
|
274
|
+
operation: :"ApplicationsApi.get_applications",
|
275
|
+
header_params:,
|
276
|
+
query_params:,
|
277
|
+
form_params:,
|
278
|
+
body: post_body,
|
279
|
+
auth_names:,
|
280
|
+
return_type:
|
273
281
|
)
|
274
282
|
|
275
283
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
276
284
|
if @api_client.config.debugging
|
277
285
|
@api_client.config.logger.debug "API called: ApplicationsApi#get_applications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
278
286
|
end
|
279
|
-
|
287
|
+
[data, status_code, headers]
|
280
288
|
end
|
281
289
|
|
282
290
|
# Update Application
|
@@ -302,10 +310,13 @@ module KindeApi
|
|
302
310
|
end
|
303
311
|
# verify the required parameter 'application_id' is set
|
304
312
|
if @api_client.config.client_side_validation && application_id.nil?
|
305
|
-
|
313
|
+
raise ArgumentError,
|
314
|
+
"Missing the required parameter 'application_id' when calling ApplicationsApi.update_application"
|
306
315
|
end
|
316
|
+
|
307
317
|
# resource path
|
308
|
-
local_var_path = '/api/v1/applications/{application_id}'.sub('{
|
318
|
+
local_var_path = '/api/v1/applications/{application_id}'.sub('{application_id}',
|
319
|
+
CGI.escape(application_id.to_s))
|
309
320
|
|
310
321
|
# query parameters
|
311
322
|
query_params = opts[:query_params] || {}
|
@@ -313,18 +324,17 @@ module KindeApi
|
|
313
324
|
# header parameters
|
314
325
|
header_params = opts[:header_params] || {}
|
315
326
|
# HTTP header 'Accept' (if needed)
|
316
|
-
header_params['Accept'] =
|
327
|
+
header_params['Accept'] =
|
328
|
+
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
317
329
|
# HTTP header 'Content-Type'
|
318
330
|
content_type = @api_client.select_header_content_type(['application/json'])
|
319
|
-
|
320
|
-
header_params['Content-Type'] = content_type
|
321
|
-
end
|
331
|
+
header_params['Content-Type'] = content_type unless content_type.nil?
|
322
332
|
|
323
333
|
# form parameters
|
324
334
|
form_params = opts[:form_params] || {}
|
325
335
|
|
326
336
|
# http body (model)
|
327
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:
|
337
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:update_application_request])
|
328
338
|
|
329
339
|
# return_type
|
330
340
|
return_type = opts[:debug_return_type]
|
@@ -333,20 +343,20 @@ module KindeApi
|
|
333
343
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
334
344
|
|
335
345
|
new_options = opts.merge(
|
336
|
-
:
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
:
|
341
|
-
|
342
|
-
:
|
346
|
+
operation: :"ApplicationsApi.update_application",
|
347
|
+
header_params:,
|
348
|
+
query_params:,
|
349
|
+
form_params:,
|
350
|
+
body: post_body,
|
351
|
+
auth_names:,
|
352
|
+
return_type:
|
343
353
|
)
|
344
354
|
|
345
355
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
346
356
|
if @api_client.config.debugging
|
347
357
|
@api_client.config.logger.debug "API called: ApplicationsApi#update_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
348
358
|
end
|
349
|
-
|
359
|
+
[data, status_code, headers]
|
350
360
|
end
|
351
361
|
end
|
352
362
|
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
|
# List business details
|
23
24
|
# Get your business details.
|
24
25
|
# @param code [String] Business code.
|
@@ -49,34 +50,33 @@ module KindeApi
|
|
49
50
|
# @option opts [String] :terms_url Your Terms and Conditions URL.
|
50
51
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
51
52
|
def get_business_with_http_info(code, name, email, opts = {})
|
52
|
-
if @api_client.config.debugging
|
53
|
-
@api_client.config.logger.debug 'Calling API: BusinessApi.get_business ...'
|
54
|
-
end
|
53
|
+
@api_client.config.logger.debug 'Calling API: BusinessApi.get_business ...' if @api_client.config.debugging
|
55
54
|
# verify the required parameter 'code' is set
|
56
55
|
if @api_client.config.client_side_validation && code.nil?
|
57
|
-
|
56
|
+
raise ArgumentError, "Missing the required parameter 'code' when calling BusinessApi.get_business"
|
58
57
|
end
|
59
58
|
# verify the required parameter 'name' is set
|
60
59
|
if @api_client.config.client_side_validation && name.nil?
|
61
|
-
|
60
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling BusinessApi.get_business"
|
62
61
|
end
|
63
62
|
# verify the required parameter 'email' is set
|
64
63
|
if @api_client.config.client_side_validation && email.nil?
|
65
|
-
|
64
|
+
raise ArgumentError, "Missing the required parameter 'email' when calling BusinessApi.get_business"
|
66
65
|
end
|
66
|
+
|
67
67
|
# resource path
|
68
68
|
local_var_path = '/api/v1/business'
|
69
69
|
|
70
70
|
# query parameters
|
71
71
|
query_params = opts[:query_params] || {}
|
72
|
-
query_params[:
|
73
|
-
query_params[:
|
74
|
-
query_params[:
|
75
|
-
query_params[:
|
76
|
-
query_params[:
|
77
|
-
query_params[:
|
78
|
-
query_params[:
|
79
|
-
query_params[:
|
72
|
+
query_params[:code] = code
|
73
|
+
query_params[:name] = name
|
74
|
+
query_params[:email] = email
|
75
|
+
query_params[:phone] = opts[:phone] unless opts[:phone].nil?
|
76
|
+
query_params[:industry] = opts[:industry] unless opts[:industry].nil?
|
77
|
+
query_params[:timezone] = opts[:timezone] unless opts[:timezone].nil?
|
78
|
+
query_params[:privacy_url] = opts[:privacy_url] unless opts[:privacy_url].nil?
|
79
|
+
query_params[:terms_url] = opts[:terms_url] unless opts[:terms_url].nil?
|
80
80
|
|
81
81
|
# header parameters
|
82
82
|
header_params = opts[:header_params] || {}
|
@@ -96,20 +96,20 @@ module KindeApi
|
|
96
96
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
97
97
|
|
98
98
|
new_options = opts.merge(
|
99
|
-
:
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
:
|
104
|
-
|
105
|
-
:
|
99
|
+
operation: :"BusinessApi.get_business",
|
100
|
+
header_params:,
|
101
|
+
query_params:,
|
102
|
+
form_params:,
|
103
|
+
body: post_body,
|
104
|
+
auth_names:,
|
105
|
+
return_type:
|
106
106
|
)
|
107
107
|
|
108
108
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
109
109
|
if @api_client.config.debugging
|
110
110
|
@api_client.config.logger.debug "API called: BusinessApi#get_business\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
111
111
|
end
|
112
|
-
|
112
|
+
[data, status_code, headers]
|
113
113
|
end
|
114
114
|
|
115
115
|
# Update business details
|
@@ -146,32 +146,34 @@ module KindeApi
|
|
146
146
|
# @option opts [String] :partner_code Your Kinde Perk code.
|
147
147
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
148
148
|
def update_business_with_http_info(business_name, primary_email, opts = {})
|
149
|
-
if @api_client.config.debugging
|
150
|
-
@api_client.config.logger.debug 'Calling API: BusinessApi.update_business ...'
|
151
|
-
end
|
149
|
+
@api_client.config.logger.debug 'Calling API: BusinessApi.update_business ...' if @api_client.config.debugging
|
152
150
|
# verify the required parameter 'business_name' is set
|
153
151
|
if @api_client.config.client_side_validation && business_name.nil?
|
154
|
-
|
152
|
+
raise ArgumentError, "Missing the required parameter 'business_name' when calling BusinessApi.update_business"
|
155
153
|
end
|
156
154
|
# verify the required parameter 'primary_email' is set
|
157
155
|
if @api_client.config.client_side_validation && primary_email.nil?
|
158
|
-
|
156
|
+
raise ArgumentError, "Missing the required parameter 'primary_email' when calling BusinessApi.update_business"
|
159
157
|
end
|
158
|
+
|
160
159
|
# resource path
|
161
160
|
local_var_path = '/api/v1/business'
|
162
161
|
|
163
162
|
# query parameters
|
164
163
|
query_params = opts[:query_params] || {}
|
165
|
-
query_params[:
|
166
|
-
query_params[:
|
167
|
-
query_params[:
|
168
|
-
query_params[:
|
169
|
-
query_params[:
|
170
|
-
query_params[:
|
171
|
-
query_params[:
|
172
|
-
|
173
|
-
|
174
|
-
|
164
|
+
query_params[:business_name] = business_name
|
165
|
+
query_params[:primary_email] = primary_email
|
166
|
+
query_params[:primary_phone] = opts[:primary_phone] unless opts[:primary_phone].nil?
|
167
|
+
query_params[:industry_key] = opts[:industry_key] unless opts[:industry_key].nil?
|
168
|
+
query_params[:timezone_id] = opts[:timezone_id] unless opts[:timezone_id].nil?
|
169
|
+
query_params[:privacy_url] = opts[:privacy_url] unless opts[:privacy_url].nil?
|
170
|
+
query_params[:terms_url] = opts[:terms_url] unless opts[:terms_url].nil?
|
171
|
+
unless opts[:is_show_kinde_branding].nil?
|
172
|
+
query_params[:is_show_kinde_branding] =
|
173
|
+
opts[:is_show_kinde_branding]
|
174
|
+
end
|
175
|
+
query_params[:is_click_wrap] = opts[:is_click_wrap] unless opts[:is_click_wrap].nil?
|
176
|
+
query_params[:partner_code] = opts[:partner_code] unless opts[:partner_code].nil?
|
175
177
|
|
176
178
|
# header parameters
|
177
179
|
header_params = opts[:header_params] || {}
|
@@ -191,20 +193,20 @@ module KindeApi
|
|
191
193
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
192
194
|
|
193
195
|
new_options = opts.merge(
|
194
|
-
:
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
:
|
199
|
-
|
200
|
-
:
|
196
|
+
operation: :"BusinessApi.update_business",
|
197
|
+
header_params:,
|
198
|
+
query_params:,
|
199
|
+
form_params:,
|
200
|
+
body: post_body,
|
201
|
+
auth_names:,
|
202
|
+
return_type:
|
201
203
|
)
|
202
204
|
|
203
205
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
204
206
|
if @api_client.config.debugging
|
205
207
|
@api_client.config.logger.debug "API called: BusinessApi#update_business\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
206
208
|
end
|
207
|
-
|
209
|
+
[data, status_code, headers]
|
208
210
|
end
|
209
211
|
end
|
210
212
|
end
|