kinde_sdk 1.2.1 → 1.2.2
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/Gemfile.lock +128 -0
- data/README.md +12 -434
- data/kinde_api/README.md +98 -27
- data/kinde_api/docs/APIsApi.md +356 -0
- data/kinde_api/docs/AddAPIsRequest.md +20 -0
- data/kinde_api/docs/Api.md +28 -0
- data/kinde_api/docs/ApiApplicationsInner.md +24 -0
- data/kinde_api/docs/Apis.md +24 -0
- data/kinde_api/docs/Applications.md +22 -0
- data/kinde_api/docs/ApplicationsApi.md +368 -0
- data/kinde_api/docs/BusinessApi.md +183 -0
- data/kinde_api/docs/CallbacksApi.md +385 -25
- data/kinde_api/docs/CreateApplicationRequest.md +20 -0
- data/kinde_api/docs/CreateApplicationResponse.md +22 -0
- data/kinde_api/docs/CreateApplicationResponseApplication.md +22 -0
- data/kinde_api/docs/CreateFeatureFlagRequest.md +28 -0
- data/kinde_api/docs/CreateOrganizationRequest.md +3 -1
- data/kinde_api/docs/CreateOrganizationUserPermissionRequest.md +18 -0
- data/kinde_api/docs/EnvironmentsApi.md +23 -23
- data/kinde_api/docs/FeatureFlagsApi.md +19 -29
- data/kinde_api/docs/GetApplicationResponse.md +22 -0
- data/kinde_api/docs/GetApplicationResponseApplication.md +26 -0
- data/kinde_api/docs/GetApplicationsResponse.md +2 -2
- data/kinde_api/docs/{GetOrganizationsUsersResponse.md → GetOrganizationUsersResponse.md} +2 -2
- data/kinde_api/docs/GetOrganizationsUserPermissionsResponse.md +22 -0
- data/kinde_api/docs/GetPermissionsResponse.md +24 -0
- data/kinde_api/docs/GetRolesResponse.md +24 -0
- data/kinde_api/docs/GetSubscriberResponse.md +22 -0
- data/kinde_api/docs/GetSubscribersResponse.md +24 -0
- data/kinde_api/docs/IndustriesApi.md +81 -0
- data/kinde_api/docs/LogoutRedirectUrls.md +18 -0
- data/kinde_api/docs/OAuthApi.md +153 -4
- data/kinde_api/docs/Organization.md +3 -1
- data/kinde_api/docs/OrganizationUserPermission.md +26 -0
- data/kinde_api/docs/OrganizationUserPermissionRolesInner.md +20 -0
- data/kinde_api/docs/OrganizationUserRolePermissions.md +22 -0
- data/kinde_api/docs/OrganizationUserRolePermissionsPermissions.md +18 -0
- data/kinde_api/docs/OrganizationsApi.md +328 -32
- data/kinde_api/docs/PermissionsApi.md +84 -14
- data/kinde_api/docs/ReplaceLogoutRedirectURLsRequest.md +18 -0
- data/kinde_api/docs/ReplaceRedirectCallbackURLsRequest.md +18 -0
- data/kinde_api/docs/Role.md +24 -0
- data/kinde_api/docs/Roles.md +2 -0
- data/kinde_api/docs/RolesApi.md +309 -17
- data/kinde_api/docs/RolesPermissionResponseInner.md +24 -0
- data/kinde_api/docs/Subscriber.md +24 -0
- data/kinde_api/docs/SubscribersApi.md +12 -14
- data/kinde_api/docs/SubscribersSubscriber.md +26 -0
- data/kinde_api/docs/TimezonesApi.md +81 -0
- data/kinde_api/docs/TokenErrorResponse.md +20 -0
- data/kinde_api/docs/TokenIntrospect.md +26 -0
- data/kinde_api/docs/UpdateAPIApplicationsRequest.md +18 -0
- data/kinde_api/docs/UpdateAPIApplicationsRequestApplicationsInner.md +20 -0
- data/kinde_api/docs/UpdateApplicationRequest.md +24 -0
- data/kinde_api/docs/UpdateEnvironementFeatureFlagOverrideRequest.md +18 -0
- data/kinde_api/docs/UpdateOrganizationRequest.md +3 -1
- data/kinde_api/docs/UpdateOrganizationUsersRequest.md +1 -1
- data/kinde_api/docs/UpdateRolePermissionsRequest.md +18 -0
- data/kinde_api/docs/UpdateRolePermissionsRequestPermissionsInner.md +20 -0
- data/kinde_api/docs/UpdateRolePermissionsResponse.md +24 -0
- data/kinde_api/docs/UpdateRolesRequest.md +24 -0
- data/kinde_api/docs/UpdateUserResponse.md +30 -0
- data/kinde_api/docs/User.md +7 -7
- data/kinde_api/docs/UserIdentitiesInner.md +20 -0
- data/kinde_api/docs/UsersApi.md +93 -15
- data/kinde_api/docs/UsersResponse.md +1 -1
- data/kinde_api/docs/UsersResponseUsersInner.md +42 -0
- data/kinde_api/lib/kinde_api/api/apis_api.rb +347 -0
- data/kinde_api/lib/kinde_api/api/applications_api.rb +352 -0
- data/kinde_api/lib/kinde_api/api/business_api.rb +210 -0
- data/kinde_api/lib/kinde_api/api/callbacks_api.rb +394 -31
- data/kinde_api/lib/kinde_api/api/environments_api.rb +22 -18
- data/kinde_api/lib/kinde_api/api/feature_flags_api.rb +20 -61
- data/kinde_api/lib/kinde_api/api/industries_api.rb +85 -0
- data/kinde_api/lib/kinde_api/api/o_auth_api.rb +141 -2
- data/kinde_api/lib/kinde_api/api/organizations_api.rb +318 -25
- data/kinde_api/lib/kinde_api/api/permissions_api.rb +75 -12
- data/kinde_api/lib/kinde_api/api/roles_api.rb +297 -15
- data/kinde_api/lib/kinde_api/api/subscribers_api.rb +8 -11
- data/kinde_api/lib/kinde_api/api/timezones_api.rb +85 -0
- data/kinde_api/lib/kinde_api/api/users_api.rb +87 -11
- data/kinde_api/lib/kinde_api/api_client.rb +14 -7
- data/kinde_api/lib/kinde_api/configuration.rb +81 -5
- data/kinde_api/lib/kinde_api/models/add_apis_request.rb +238 -0
- data/kinde_api/lib/kinde_api/models/add_organization_users_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/add_organization_users_request_users_inner.rb +2 -0
- data/kinde_api/lib/kinde_api/models/add_organization_users_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/api.rb +271 -0
- data/kinde_api/lib/kinde_api/models/api_applications_inner.rb +246 -0
- data/kinde_api/lib/kinde_api/models/api_result.rb +2 -0
- data/kinde_api/lib/kinde_api/models/apis.rb +250 -0
- data/kinde_api/lib/kinde_api/models/applications.rb +237 -0
- data/kinde_api/lib/kinde_api/models/connected_apps_access_token.rb +2 -0
- data/kinde_api/lib/kinde_api/models/connected_apps_auth_url.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_application_request.rb +264 -0
- data/kinde_api/lib/kinde_api/models/create_application_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/create_application_response_application.rb +240 -0
- data/kinde_api/lib/kinde_api/models/create_feature_flag_request.rb +336 -0
- data/kinde_api/lib/kinde_api/models/create_organization_request.rb +16 -4
- data/kinde_api/lib/kinde_api/models/create_organization_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_organization_response_organization.rb +2 -0
- data/kinde_api/lib/kinde_api/models/{application.rb → create_organization_user_permission_request.rb} +13 -19
- data/kinde_api/lib/kinde_api/models/create_organization_user_role_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_permission_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_role_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response_subscriber.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner_details.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_profile.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/error.rb +2 -0
- data/kinde_api/lib/kinde_api/models/error_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_application_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/get_application_response_application.rb +260 -0
- data/kinde_api/lib/kinde_api/models/get_applications_response.rb +10 -8
- data/kinde_api/lib/kinde_api/models/get_environment_feature_flags_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response_feature_flags_value.rb +2 -0
- data/kinde_api/lib/kinde_api/models/{get_organizations_users_response.rb → get_organization_users_response.rb} +5 -3
- data/kinde_api/lib/kinde_api/models/get_organizations_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_organizations_user_permissions_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/get_organizations_user_roles_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_permissions_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_redirect_callback_urls_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_roles_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_subscriber_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/get_subscribers_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/logout_redirect_urls.rb +222 -0
- data/kinde_api/lib/kinde_api/models/organization.rb +15 -4
- data/kinde_api/lib/kinde_api/models/organization_user.rb +2 -0
- data/kinde_api/lib/kinde_api/models/organization_user_permission.rb +257 -0
- data/kinde_api/lib/kinde_api/models/organization_user_permission_roles_inner.rb +228 -0
- data/kinde_api/lib/kinde_api/models/organization_user_role.rb +2 -0
- data/kinde_api/lib/kinde_api/models/organization_user_role_permissions.rb +237 -0
- data/kinde_api/lib/kinde_api/models/organization_user_role_permissions_permissions.rb +219 -0
- data/kinde_api/lib/kinde_api/models/permissions.rb +2 -0
- data/kinde_api/lib/kinde_api/models/redirect_callback_urls.rb +2 -0
- data/kinde_api/lib/kinde_api/models/replace_logout_redirect_urls_request.rb +222 -0
- data/kinde_api/lib/kinde_api/models/replace_redirect_callback_urls_request.rb +222 -0
- data/kinde_api/lib/kinde_api/models/role.rb +246 -0
- data/kinde_api/lib/kinde_api/models/roles.rb +13 -1
- data/kinde_api/lib/kinde_api/models/roles_permission_response_inner.rb +246 -0
- data/kinde_api/lib/kinde_api/models/subscriber.rb +246 -0
- data/kinde_api/lib/kinde_api/models/subscribers_subscriber.rb +255 -0
- data/kinde_api/lib/kinde_api/models/success_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/token_error_response.rb +230 -0
- data/kinde_api/lib/kinde_api/models/token_introspect.rb +262 -0
- data/kinde_api/lib/kinde_api/models/update_api_applications_request.rb +226 -0
- data/kinde_api/lib/kinde_api/models/update_api_applications_request_applications_inner.rb +235 -0
- data/kinde_api/lib/kinde_api/models/update_application_request.rb +254 -0
- data/kinde_api/lib/kinde_api/models/update_environement_feature_flag_override_request.rb +225 -0
- data/kinde_api/lib/kinde_api/models/update_organization_request.rb +16 -4
- data/kinde_api/lib/kinde_api/models/update_organization_users_request.rb +3 -1
- data/kinde_api/lib/kinde_api/models/update_organization_users_request_users_inner.rb +2 -0
- data/kinde_api/lib/kinde_api/models/update_organization_users_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/update_role_permissions_request.rb +222 -0
- data/kinde_api/lib/kinde_api/models/update_role_permissions_request_permissions_inner.rb +230 -0
- data/kinde_api/lib/kinde_api/models/update_role_permissions_response.rb +250 -0
- data/kinde_api/lib/kinde_api/models/update_roles_request.rb +260 -0
- data/kinde_api/lib/kinde_api/models/update_user_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/update_user_response.rb +280 -0
- data/kinde_api/lib/kinde_api/models/user.rb +37 -32
- data/kinde_api/lib/kinde_api/models/user_identities_inner.rb +228 -0
- data/kinde_api/lib/kinde_api/models/user_identity.rb +2 -0
- data/kinde_api/lib/kinde_api/models/user_identity_result.rb +2 -0
- data/kinde_api/lib/kinde_api/models/user_profile.rb +2 -0
- data/kinde_api/lib/kinde_api/models/user_profile_v2.rb +2 -0
- data/kinde_api/lib/kinde_api/models/users_response.rb +3 -1
- data/kinde_api/lib/kinde_api/models/users_response_users_inner.rb +348 -0
- data/kinde_api/lib/kinde_api.rb +47 -2
- data/kinde_api/spec/api/apis_api_spec.rb +95 -0
- data/kinde_api/spec/api/applications_api_spec.rb +98 -0
- data/kinde_api/spec/api/business_api_spec.rb +75 -0
- data/kinde_api/spec/api/callbacks_api_spec.rb +69 -5
- data/kinde_api/spec/api/environments_api_spec.rb +5 -5
- data/kinde_api/spec/api/feature_flags_api_spec.rb +4 -9
- data/kinde_api/spec/api/industries_api_spec.rb +48 -0
- data/kinde_api/spec/api/o_auth_api_spec.rb +28 -1
- data/kinde_api/spec/api/organizations_api_spec.rb +63 -8
- data/kinde_api/spec/api/permissions_api_spec.rb +16 -4
- data/kinde_api/spec/api/roles_api_spec.rb +57 -4
- data/kinde_api/spec/api/subscribers_api_spec.rb +3 -4
- data/kinde_api/spec/api/timezones_api_spec.rb +48 -0
- data/kinde_api/spec/api/users_api_spec.rb +17 -2
- data/kinde_api/spec/api_client_spec.rb +13 -2
- data/kinde_api/spec/models/{application_spec.rb → add_apis_request_spec.rb} +8 -8
- data/kinde_api/spec/models/api_applications_inner_spec.rb +52 -0
- data/kinde_api/spec/models/api_spec.rb +64 -0
- data/kinde_api/spec/models/apis_spec.rb +52 -0
- data/kinde_api/spec/models/applications_spec.rb +46 -0
- data/kinde_api/spec/models/create_application_request_spec.rb +44 -0
- data/kinde_api/spec/models/create_application_response_application_spec.rb +46 -0
- data/kinde_api/spec/models/create_application_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_feature_flag_request_spec.rb +72 -0
- data/kinde_api/spec/models/create_organization_request_spec.rb +6 -0
- data/kinde_api/spec/models/create_organization_user_permission_request_spec.rb +34 -0
- data/kinde_api/spec/models/get_application_response_application_spec.rb +58 -0
- data/kinde_api/spec/models/get_application_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_applications_response_spec.rb +1 -1
- data/kinde_api/spec/models/{get_organizations_users_response_spec.rb → get_organization_users_response_spec.rb} +6 -6
- data/kinde_api/spec/models/get_organizations_user_permissions_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_permissions_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_roles_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_subscriber_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_subscribers_response_spec.rb +52 -0
- data/kinde_api/spec/models/logout_redirect_urls_spec.rb +34 -0
- data/kinde_api/spec/models/organization_spec.rb +6 -0
- data/kinde_api/spec/models/organization_user_permission_roles_inner_spec.rb +40 -0
- data/kinde_api/spec/models/organization_user_permission_spec.rb +58 -0
- data/kinde_api/spec/models/organization_user_role_permissions_permissions_spec.rb +34 -0
- data/kinde_api/spec/models/organization_user_role_permissions_spec.rb +46 -0
- data/kinde_api/spec/models/replace_logout_redirect_urls_request_spec.rb +34 -0
- data/kinde_api/spec/models/replace_redirect_callback_urls_request_spec.rb +34 -0
- data/kinde_api/spec/models/role_spec.rb +52 -0
- data/kinde_api/spec/models/roles_permission_response_inner_spec.rb +52 -0
- data/kinde_api/spec/models/roles_spec.rb +6 -0
- data/kinde_api/spec/models/subscriber_spec.rb +52 -0
- data/kinde_api/spec/models/subscribers_subscriber_spec.rb +58 -0
- data/kinde_api/spec/models/token_error_response_spec.rb +40 -0
- data/kinde_api/spec/models/token_introspect_spec.rb +58 -0
- data/kinde_api/spec/models/update_api_applications_request_applications_inner_spec.rb +40 -0
- data/kinde_api/spec/models/update_api_applications_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_application_request_spec.rb +52 -0
- data/kinde_api/spec/models/update_environement_feature_flag_override_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_organization_request_spec.rb +6 -0
- data/kinde_api/spec/models/update_role_permissions_request_permissions_inner_spec.rb +40 -0
- data/kinde_api/spec/models/update_role_permissions_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_role_permissions_response_spec.rb +52 -0
- data/kinde_api/spec/models/update_roles_request_spec.rb +52 -0
- data/kinde_api/spec/models/update_user_response_spec.rb +70 -0
- data/kinde_api/spec/models/user_identities_inner_spec.rb +40 -0
- data/kinde_api/spec/models/user_spec.rb +9 -9
- data/kinde_api/spec/models/users_response_users_inner_spec.rb +106 -0
- data/kinde_sdk.gemspec +1 -1
- data/lib/kinde_sdk/version.rb +1 -1
- data/spec/kinde_sdk_spec.rb +0 -46
- metadata +193 -12
- data/kinde_api/docs/Application.md +0 -20
|
@@ -19,91 +19,50 @@ module KindeApi
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
# Create
|
|
22
|
+
# Create Feature Flag
|
|
23
23
|
# Create feature flag.
|
|
24
|
-
# @param
|
|
25
|
-
# @param description [String] Description of the flag purpose.
|
|
26
|
-
# @param key [String] The flag identifier to use in code.
|
|
27
|
-
# @param type [String] The variable type.
|
|
28
|
-
# @param allow_override_level [String] Allow the flag to be overridden at a different level.
|
|
29
|
-
# @param default_value [String] Default value for the flag used by environments and organizations.
|
|
24
|
+
# @param create_feature_flag_request [CreateFeatureFlagRequest] Flag details.
|
|
30
25
|
# @param [Hash] opts the optional parameters
|
|
31
26
|
# @return [SuccessResponse]
|
|
32
|
-
def create_feature_flag(
|
|
33
|
-
data, _status_code, _headers = create_feature_flag_with_http_info(
|
|
27
|
+
def create_feature_flag(create_feature_flag_request, opts = {})
|
|
28
|
+
data, _status_code, _headers = create_feature_flag_with_http_info(create_feature_flag_request, opts)
|
|
34
29
|
data
|
|
35
30
|
end
|
|
36
31
|
|
|
37
|
-
# Create
|
|
32
|
+
# Create Feature Flag
|
|
38
33
|
# Create feature flag.
|
|
39
|
-
# @param
|
|
40
|
-
# @param description [String] Description of the flag purpose.
|
|
41
|
-
# @param key [String] The flag identifier to use in code.
|
|
42
|
-
# @param type [String] The variable type.
|
|
43
|
-
# @param allow_override_level [String] Allow the flag to be overridden at a different level.
|
|
44
|
-
# @param default_value [String] Default value for the flag used by environments and organizations.
|
|
34
|
+
# @param create_feature_flag_request [CreateFeatureFlagRequest] Flag details.
|
|
45
35
|
# @param [Hash] opts the optional parameters
|
|
46
36
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
|
47
|
-
def create_feature_flag_with_http_info(
|
|
37
|
+
def create_feature_flag_with_http_info(create_feature_flag_request, opts = {})
|
|
48
38
|
if @api_client.config.debugging
|
|
49
39
|
@api_client.config.logger.debug 'Calling API: FeatureFlagsApi.create_feature_flag ...'
|
|
50
40
|
end
|
|
51
|
-
# verify the required parameter '
|
|
52
|
-
if @api_client.config.client_side_validation &&
|
|
53
|
-
fail ArgumentError, "Missing the required parameter '
|
|
54
|
-
end
|
|
55
|
-
# verify the required parameter 'description' is set
|
|
56
|
-
if @api_client.config.client_side_validation && description.nil?
|
|
57
|
-
fail ArgumentError, "Missing the required parameter 'description' when calling FeatureFlagsApi.create_feature_flag"
|
|
58
|
-
end
|
|
59
|
-
# verify the required parameter 'key' is set
|
|
60
|
-
if @api_client.config.client_side_validation && key.nil?
|
|
61
|
-
fail ArgumentError, "Missing the required parameter 'key' when calling FeatureFlagsApi.create_feature_flag"
|
|
62
|
-
end
|
|
63
|
-
# verify the required parameter 'type' is set
|
|
64
|
-
if @api_client.config.client_side_validation && type.nil?
|
|
65
|
-
fail ArgumentError, "Missing the required parameter 'type' when calling FeatureFlagsApi.create_feature_flag"
|
|
66
|
-
end
|
|
67
|
-
# verify enum value
|
|
68
|
-
allowable_values = ["str", "int", "bool"]
|
|
69
|
-
if @api_client.config.client_side_validation && !allowable_values.include?(type)
|
|
70
|
-
fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}"
|
|
71
|
-
end
|
|
72
|
-
# verify the required parameter 'allow_override_level' is set
|
|
73
|
-
if @api_client.config.client_side_validation && allow_override_level.nil?
|
|
74
|
-
fail ArgumentError, "Missing the required parameter 'allow_override_level' when calling FeatureFlagsApi.create_feature_flag"
|
|
75
|
-
end
|
|
76
|
-
# verify enum value
|
|
77
|
-
allowable_values = ["env", "org"]
|
|
78
|
-
if @api_client.config.client_side_validation && !allowable_values.include?(allow_override_level)
|
|
79
|
-
fail ArgumentError, "invalid value for \"allow_override_level\", must be one of #{allowable_values}"
|
|
80
|
-
end
|
|
81
|
-
# verify the required parameter 'default_value' is set
|
|
82
|
-
if @api_client.config.client_side_validation && default_value.nil?
|
|
83
|
-
fail ArgumentError, "Missing the required parameter 'default_value' when calling FeatureFlagsApi.create_feature_flag"
|
|
41
|
+
# verify the required parameter 'create_feature_flag_request' is set
|
|
42
|
+
if @api_client.config.client_side_validation && create_feature_flag_request.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'create_feature_flag_request' when calling FeatureFlagsApi.create_feature_flag"
|
|
84
44
|
end
|
|
85
45
|
# resource path
|
|
86
46
|
local_var_path = '/api/v1/feature_flags'
|
|
87
47
|
|
|
88
48
|
# query parameters
|
|
89
49
|
query_params = opts[:query_params] || {}
|
|
90
|
-
query_params[:'name'] = name
|
|
91
|
-
query_params[:'description'] = description
|
|
92
|
-
query_params[:'key'] = key
|
|
93
|
-
query_params[:'type'] = type
|
|
94
|
-
query_params[:'allow_override_level'] = allow_override_level
|
|
95
|
-
query_params[:'default_value'] = default_value
|
|
96
50
|
|
|
97
51
|
# header parameters
|
|
98
52
|
header_params = opts[:header_params] || {}
|
|
99
53
|
# HTTP header 'Accept' (if needed)
|
|
100
54
|
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
|
55
|
+
# HTTP header 'Content-Type'
|
|
56
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
57
|
+
if !content_type.nil?
|
|
58
|
+
header_params['Content-Type'] = content_type
|
|
59
|
+
end
|
|
101
60
|
|
|
102
61
|
# form parameters
|
|
103
62
|
form_params = opts[:form_params] || {}
|
|
104
63
|
|
|
105
64
|
# http body (model)
|
|
106
|
-
post_body = opts[:debug_body]
|
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_feature_flag_request)
|
|
107
66
|
|
|
108
67
|
# return_type
|
|
109
68
|
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
|
@@ -128,7 +87,7 @@ module KindeApi
|
|
|
128
87
|
return data, status_code, headers
|
|
129
88
|
end
|
|
130
89
|
|
|
131
|
-
# Delete
|
|
90
|
+
# Delete Feature Flag
|
|
132
91
|
# Delete feature flag
|
|
133
92
|
# @param feature_flag_key [String] The identifier for the feature flag.
|
|
134
93
|
# @param [Hash] opts the optional parameters
|
|
@@ -138,7 +97,7 @@ module KindeApi
|
|
|
138
97
|
data
|
|
139
98
|
end
|
|
140
99
|
|
|
141
|
-
# Delete
|
|
100
|
+
# Delete Feature Flag
|
|
142
101
|
# Delete feature flag
|
|
143
102
|
# @param feature_flag_key [String] The identifier for the feature flag.
|
|
144
103
|
# @param [Hash] opts the optional parameters
|
|
@@ -191,7 +150,7 @@ module KindeApi
|
|
|
191
150
|
return data, status_code, headers
|
|
192
151
|
end
|
|
193
152
|
|
|
194
|
-
#
|
|
153
|
+
# Replace Feature Flag
|
|
195
154
|
# Update feature flag.
|
|
196
155
|
# @param feature_flag_key [String] The key identifier for the feature flag.
|
|
197
156
|
# @param name [String] The name of the flag.
|
|
@@ -206,7 +165,7 @@ module KindeApi
|
|
|
206
165
|
data
|
|
207
166
|
end
|
|
208
167
|
|
|
209
|
-
#
|
|
168
|
+
# Replace Feature Flag
|
|
210
169
|
# Update feature flag.
|
|
211
170
|
# @param feature_flag_key [String] The key identifier for the feature flag.
|
|
212
171
|
# @param name [String] The name of the flag.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Kinde Management API
|
|
3
|
+
|
|
4
|
+
#Provides endpoints to manage your Kinde Businesses
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1
|
|
7
|
+
Contact: support@kinde.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.4.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module KindeApi
|
|
16
|
+
class IndustriesApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# List industries and industry keys.
|
|
23
|
+
# Get a list of industries and associated industry keys.
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [String] :industry_key Industry Key.
|
|
26
|
+
# @option opts [String] :name Industry name.
|
|
27
|
+
# @return [SuccessResponse]
|
|
28
|
+
def get_industries(opts = {})
|
|
29
|
+
data, _status_code, _headers = get_industries_with_http_info(opts)
|
|
30
|
+
data
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# List industries and industry keys.
|
|
34
|
+
# Get a list of industries and associated industry keys.
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @option opts [String] :industry_key Industry Key.
|
|
37
|
+
# @option opts [String] :name Industry name.
|
|
38
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
|
39
|
+
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
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/api/v1/industries'
|
|
45
|
+
|
|
46
|
+
# query parameters
|
|
47
|
+
query_params = opts[:query_params] || {}
|
|
48
|
+
query_params[:'industry_key'] = opts[:'industry_key'] if !opts[:'industry_key'].nil?
|
|
49
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = opts[:header_params] || {}
|
|
53
|
+
# HTTP header 'Accept' (if needed)
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
55
|
+
|
|
56
|
+
# form parameters
|
|
57
|
+
form_params = opts[:form_params] || {}
|
|
58
|
+
|
|
59
|
+
# http body (model)
|
|
60
|
+
post_body = opts[:debug_body]
|
|
61
|
+
|
|
62
|
+
# return_type
|
|
63
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
|
64
|
+
|
|
65
|
+
# auth_names
|
|
66
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
|
67
|
+
|
|
68
|
+
new_options = opts.merge(
|
|
69
|
+
:operation => :"IndustriesApi.get_industries",
|
|
70
|
+
:header_params => header_params,
|
|
71
|
+
:query_params => query_params,
|
|
72
|
+
:form_params => form_params,
|
|
73
|
+
:body => post_body,
|
|
74
|
+
:auth_names => auth_names,
|
|
75
|
+
:return_type => return_type
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
79
|
+
if @api_client.config.debugging
|
|
80
|
+
@api_client.config.logger.debug "API called: IndustriesApi#get_industries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
81
|
+
end
|
|
82
|
+
return data, status_code, headers
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
@@ -19,7 +19,7 @@ module KindeApi
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
#
|
|
22
|
+
# Get User Profile
|
|
23
23
|
# Contains the id, names and email of the currently logged in user.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @return [UserProfile]
|
|
@@ -28,7 +28,7 @@ module KindeApi
|
|
|
28
28
|
data
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
#
|
|
31
|
+
# Get User Profile
|
|
32
32
|
# Contains the id, names and email of the currently logged in user.
|
|
33
33
|
# @param [Hash] opts the optional parameters
|
|
34
34
|
# @return [Array<(UserProfile, Integer, Hash)>] UserProfile data, response status code and response headers
|
|
@@ -132,5 +132,144 @@ module KindeApi
|
|
|
132
132
|
end
|
|
133
133
|
return data, status_code, headers
|
|
134
134
|
end
|
|
135
|
+
|
|
136
|
+
# Get token details
|
|
137
|
+
# Retrieve information about the provided token.
|
|
138
|
+
# @param [Hash] opts the optional parameters
|
|
139
|
+
# @option opts [String] :token The token to be introspected.
|
|
140
|
+
# @option opts [String] :token_type The provided token's type.
|
|
141
|
+
# @return [TokenIntrospect]
|
|
142
|
+
def token_introspection(opts = {})
|
|
143
|
+
data, _status_code, _headers = token_introspection_with_http_info(opts)
|
|
144
|
+
data
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Get token details
|
|
148
|
+
# Retrieve information about the provided token.
|
|
149
|
+
# @param [Hash] opts the optional parameters
|
|
150
|
+
# @option opts [String] :token The token to be introspected.
|
|
151
|
+
# @option opts [String] :token_type The provided token's type.
|
|
152
|
+
# @return [Array<(TokenIntrospect, Integer, Hash)>] TokenIntrospect data, response status code and response headers
|
|
153
|
+
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
|
|
157
|
+
# resource path
|
|
158
|
+
local_var_path = '/oauth2/introspect'
|
|
159
|
+
|
|
160
|
+
# query parameters
|
|
161
|
+
query_params = opts[:query_params] || {}
|
|
162
|
+
|
|
163
|
+
# header parameters
|
|
164
|
+
header_params = opts[:header_params] || {}
|
|
165
|
+
# HTTP header 'Accept' (if needed)
|
|
166
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
|
167
|
+
# HTTP header 'Content-Type'
|
|
168
|
+
content_type = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
|
169
|
+
if !content_type.nil?
|
|
170
|
+
header_params['Content-Type'] = content_type
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# form parameters
|
|
174
|
+
form_params = opts[:form_params] || {}
|
|
175
|
+
form_params['token'] = opts[:'token'] if !opts[:'token'].nil?
|
|
176
|
+
form_params['token_type'] = opts[:'token_type'] if !opts[:'token_type'].nil?
|
|
177
|
+
|
|
178
|
+
# http body (model)
|
|
179
|
+
post_body = opts[:debug_body]
|
|
180
|
+
|
|
181
|
+
# return_type
|
|
182
|
+
return_type = opts[:debug_return_type] || 'TokenIntrospect'
|
|
183
|
+
|
|
184
|
+
# auth_names
|
|
185
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
|
186
|
+
|
|
187
|
+
new_options = opts.merge(
|
|
188
|
+
:operation => :"OAuthApi.token_introspection",
|
|
189
|
+
:header_params => header_params,
|
|
190
|
+
:query_params => query_params,
|
|
191
|
+
:form_params => form_params,
|
|
192
|
+
:body => post_body,
|
|
193
|
+
:auth_names => auth_names,
|
|
194
|
+
:return_type => return_type
|
|
195
|
+
)
|
|
196
|
+
|
|
197
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
198
|
+
if @api_client.config.debugging
|
|
199
|
+
@api_client.config.logger.debug "API called: OAuthApi#token_introspection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
200
|
+
end
|
|
201
|
+
return data, status_code, headers
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Revoke token
|
|
205
|
+
# Revoke a previously issued token.
|
|
206
|
+
# @param [Hash] opts the optional parameters
|
|
207
|
+
# @option opts [String] :token The token to be revoked.
|
|
208
|
+
# @option opts [String] :client_id The identifier for your client.
|
|
209
|
+
# @option opts [String] :client_secret The secret associated with your client.
|
|
210
|
+
# @return [nil]
|
|
211
|
+
def token_revocation(opts = {})
|
|
212
|
+
token_revocation_with_http_info(opts)
|
|
213
|
+
nil
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Revoke token
|
|
217
|
+
# Revoke a previously issued token.
|
|
218
|
+
# @param [Hash] opts the optional parameters
|
|
219
|
+
# @option opts [String] :token The token to be revoked.
|
|
220
|
+
# @option opts [String] :client_id The identifier for your client.
|
|
221
|
+
# @option opts [String] :client_secret The secret associated with your client.
|
|
222
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
223
|
+
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
|
|
227
|
+
# resource path
|
|
228
|
+
local_var_path = '/oauth2/revoke'
|
|
229
|
+
|
|
230
|
+
# query parameters
|
|
231
|
+
query_params = opts[:query_params] || {}
|
|
232
|
+
|
|
233
|
+
# header parameters
|
|
234
|
+
header_params = opts[:header_params] || {}
|
|
235
|
+
# HTTP header 'Accept' (if needed)
|
|
236
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
|
237
|
+
# HTTP header 'Content-Type'
|
|
238
|
+
content_type = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
|
239
|
+
if !content_type.nil?
|
|
240
|
+
header_params['Content-Type'] = content_type
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
# form parameters
|
|
244
|
+
form_params = opts[:form_params] || {}
|
|
245
|
+
form_params['token'] = opts[:'token'] if !opts[:'token'].nil?
|
|
246
|
+
form_params['client_id'] = opts[:'client_id'] if !opts[:'client_id'].nil?
|
|
247
|
+
form_params['client_secret'] = opts[:'client_secret'] if !opts[:'client_secret'].nil?
|
|
248
|
+
|
|
249
|
+
# http body (model)
|
|
250
|
+
post_body = opts[:debug_body]
|
|
251
|
+
|
|
252
|
+
# return_type
|
|
253
|
+
return_type = opts[:debug_return_type]
|
|
254
|
+
|
|
255
|
+
# auth_names
|
|
256
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
|
257
|
+
|
|
258
|
+
new_options = opts.merge(
|
|
259
|
+
:operation => :"OAuthApi.token_revocation",
|
|
260
|
+
:header_params => header_params,
|
|
261
|
+
:query_params => query_params,
|
|
262
|
+
:form_params => form_params,
|
|
263
|
+
:body => post_body,
|
|
264
|
+
:auth_names => auth_names,
|
|
265
|
+
:return_type => return_type
|
|
266
|
+
)
|
|
267
|
+
|
|
268
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
269
|
+
if @api_client.config.debugging
|
|
270
|
+
@api_client.config.logger.debug "API called: OAuthApi#token_revocation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
271
|
+
end
|
|
272
|
+
return data, status_code, headers
|
|
273
|
+
end
|
|
135
274
|
end
|
|
136
275
|
end
|