kinde_sdk 1.6.3 → 1.6.5
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/app/controllers/kinde_sdk/auth_controller.rb +133 -67
- data/app/helpers/auth_helper.rb +88 -0
- data/config/routes.rb +3 -1
- data/kinde_api/Gemfile +9 -0
- data/kinde_api/README.md +316 -47
- data/kinde_api/Rakefile +10 -0
- data/kinde_api/docs/APIsApi.md +569 -60
- data/kinde_api/docs/AddAPIScopeRequest.md +20 -0
- data/kinde_api/docs/AddAPIsRequest.md +4 -4
- data/kinde_api/docs/AddOrganizationUsersRequestUsersInner.md +1 -1
- data/kinde_api/docs/AddRoleScopeRequest.md +18 -0
- data/kinde_api/docs/AddRoleScopeResponse.md +20 -0
- data/kinde_api/docs/ApplicationsApi.md +465 -38
- data/kinde_api/docs/AuthorizeAppApiResponse.md +24 -0
- data/kinde_api/docs/BillingAgreementsApi.md +157 -0
- data/kinde_api/docs/BillingEntitlementsApi.md +89 -0
- data/kinde_api/docs/BillingMeterUsageApi.md +77 -0
- data/kinde_api/docs/BusinessApi.md +27 -66
- data/kinde_api/docs/CallbacksApi.md +25 -25
- data/kinde_api/docs/Category.md +20 -0
- data/kinde_api/docs/ConnectedAppsApi.md +8 -8
- data/kinde_api/docs/Connection.md +22 -0
- data/kinde_api/docs/ConnectionConnection.md +24 -0
- data/kinde_api/docs/ConnectionsApi.md +439 -0
- data/kinde_api/docs/CreateApiScopesResponse.md +22 -0
- data/kinde_api/docs/CreateApiScopesResponseScope.md +18 -0
- data/kinde_api/docs/CreateApisResponse.md +22 -0
- data/kinde_api/docs/CreateApisResponseApi.md +18 -0
- data/kinde_api/docs/CreateApplicationRequest.md +3 -3
- data/kinde_api/docs/CreateApplicationResponseApplication.md +4 -4
- data/kinde_api/docs/CreateBillingAgreementRequest.md +24 -0
- data/kinde_api/docs/CreateCategoryRequest.md +20 -0
- data/kinde_api/docs/CreateCategoryResponse.md +22 -0
- data/kinde_api/docs/CreateCategoryResponseCategory.md +18 -0
- data/kinde_api/docs/CreateConnectionRequest.md +28 -0
- data/kinde_api/docs/CreateConnectionRequestOptions.md +51 -0
- data/kinde_api/docs/CreateConnectionRequestOptionsOneOf.md +22 -0
- data/kinde_api/docs/CreateConnectionRequestOptionsOneOf1.md +34 -0
- data/kinde_api/docs/CreateConnectionRequestOptionsOneOf2.md +44 -0
- data/kinde_api/docs/CreateConnectionResponse.md +22 -0
- data/kinde_api/docs/CreateConnectionResponseConnection.md +18 -0
- data/kinde_api/docs/CreateEnvironmentVariableRequest.md +22 -0
- data/kinde_api/docs/CreateEnvironmentVariableResponse.md +22 -0
- data/kinde_api/docs/CreateEnvironmentVariableResponseEnvironmentVariable.md +18 -0
- data/kinde_api/docs/CreateIdentityResponse.md +22 -0
- data/kinde_api/docs/CreateIdentityResponseIdentity.md +18 -0
- data/kinde_api/docs/CreateMeterUsageRecordRequest.md +26 -0
- data/kinde_api/docs/CreateMeterUsageRecordResponse.md +20 -0
- data/kinde_api/docs/CreateOrganizationRequest.md +17 -7
- data/kinde_api/docs/CreateOrganizationResponse.md +4 -4
- data/kinde_api/docs/CreateOrganizationResponseOrganization.md +4 -2
- data/kinde_api/docs/CreatePropertyRequest.md +30 -0
- data/kinde_api/docs/CreatePropertyResponse.md +22 -0
- data/kinde_api/docs/CreatePropertyResponseProperty.md +18 -0
- data/kinde_api/docs/CreateRolesResponse.md +22 -0
- data/kinde_api/docs/CreateRolesResponseRole.md +18 -0
- data/kinde_api/docs/CreateUserIdentityRequest.md +24 -0
- data/kinde_api/docs/CreateUserRequest.md +3 -1
- data/kinde_api/docs/CreateUserRequestIdentitiesInner.md +3 -1
- data/kinde_api/docs/CreateUserRequestIdentitiesInnerDetails.md +7 -1
- data/kinde_api/docs/CreateUserRequestProfile.md +3 -1
- data/kinde_api/docs/CreateUserResponse.md +1 -1
- data/kinde_api/docs/CreateWebHookRequest.md +24 -0
- data/kinde_api/docs/CreateWebhookResponse.md +22 -0
- data/kinde_api/docs/CreateWebhookResponseWebhook.md +20 -0
- data/kinde_api/docs/DeleteApiResponse.md +20 -0
- data/kinde_api/docs/DeleteEnvironmentVariableResponse.md +20 -0
- data/kinde_api/docs/DeleteRoleScopeResponse.md +20 -0
- data/kinde_api/docs/DeleteWebhookResponse.md +20 -0
- data/kinde_api/docs/EnvironmentVariable.md +26 -0
- data/kinde_api/docs/EnvironmentVariablesApi.md +356 -0
- data/kinde_api/docs/EnvironmentsApi.md +281 -5
- data/kinde_api/docs/EventType.md +26 -0
- data/kinde_api/docs/FeatureFlagsApi.md +4 -4
- data/kinde_api/docs/GetApiResponse.md +22 -0
- data/kinde_api/docs/GetApiResponseApi.md +28 -0
- data/kinde_api/docs/GetApiResponseApiApplicationsInner.md +24 -0
- data/kinde_api/docs/GetApiResponseApiScopesInner.md +20 -0
- data/kinde_api/docs/GetApiScopeResponse.md +22 -0
- data/kinde_api/docs/GetApiScopesResponse.md +22 -0
- data/kinde_api/docs/GetApiScopesResponseScopesInner.md +22 -0
- data/kinde_api/docs/GetApisResponse.md +24 -0
- data/kinde_api/docs/GetApisResponseApisInner.md +26 -0
- data/kinde_api/docs/GetApisResponseApisInnerScopesInner.md +20 -0
- data/kinde_api/docs/GetApplicationResponseApplication.md +11 -5
- data/kinde_api/docs/GetBillingAgreementsResponse.md +24 -0
- data/kinde_api/docs/GetBillingAgreementsResponseAgreementsInner.md +26 -0
- data/kinde_api/docs/GetBillingAgreementsResponseAgreementsInnerEntitlementsInner.md +20 -0
- data/kinde_api/docs/GetBillingEntitlementsResponse.md +26 -0
- data/kinde_api/docs/GetBillingEntitlementsResponseEntitlementsInner.md +32 -0
- data/kinde_api/docs/GetBillingEntitlementsResponsePlansInner.md +20 -0
- data/kinde_api/docs/GetBusinessResponse.md +22 -0
- data/kinde_api/docs/GetBusinessResponseBusiness.md +38 -0
- data/kinde_api/docs/GetCategoriesResponse.md +24 -0
- data/kinde_api/docs/GetConnectionsResponse.md +24 -0
- data/kinde_api/docs/GetEnvironmentResponse.md +22 -0
- data/kinde_api/docs/GetEnvironmentResponseEnvironment.md +68 -0
- data/kinde_api/docs/GetEnvironmentResponseEnvironmentBackgroundColor.md +22 -0
- data/kinde_api/docs/GetEnvironmentResponseEnvironmentLinkColor.md +22 -0
- data/kinde_api/docs/GetEnvironmentVariableResponse.md +22 -0
- data/kinde_api/docs/GetEnvironmentVariablesResponse.md +24 -0
- data/kinde_api/docs/GetEventResponse.md +22 -0
- data/kinde_api/docs/GetEventResponseEvent.md +26 -0
- data/kinde_api/docs/GetEventTypesResponse.md +22 -0
- data/kinde_api/docs/GetIdentitiesResponse.md +24 -0
- data/kinde_api/docs/GetIndustriesResponse.md +22 -0
- data/kinde_api/docs/GetIndustriesResponseIndustriesInner.md +20 -0
- data/kinde_api/docs/GetOrganizationResponse.md +72 -0
- data/kinde_api/docs/GetOrganizationResponseBilling.md +20 -0
- data/kinde_api/docs/GetOrganizationResponseBillingAgreementsInner.md +20 -0
- data/kinde_api/docs/GetOrganizationUsersResponse.md +2 -2
- data/kinde_api/docs/GetOrganizationsResponse.md +4 -4
- data/kinde_api/docs/GetPropertiesResponse.md +24 -0
- data/kinde_api/docs/GetPropertyValuesResponse.md +24 -0
- data/kinde_api/docs/GetRoleResponse.md +22 -0
- data/kinde_api/docs/GetRoleResponseRole.md +26 -0
- data/kinde_api/docs/GetTimezonesResponse.md +22 -0
- data/kinde_api/docs/GetTimezonesResponseTimezonesInner.md +20 -0
- data/kinde_api/docs/GetUserMfaResponse.md +22 -0
- data/kinde_api/docs/GetUserMfaResponseMfa.md +30 -0
- data/kinde_api/docs/GetUserSessionsResponse.md +24 -0
- data/kinde_api/docs/GetUserSessionsResponseSessionsInner.md +40 -0
- data/kinde_api/docs/GetWebhooksResponse.md +22 -0
- data/kinde_api/docs/IdentitiesApi.md +219 -0
- data/kinde_api/docs/Identity.md +34 -0
- data/kinde_api/docs/IndustriesApi.md +14 -21
- data/kinde_api/docs/LogoutRedirectUrls.md +6 -2
- data/kinde_api/docs/MFAApi.md +77 -0
- data/kinde_api/docs/NotFoundResponse.md +18 -0
- data/kinde_api/docs/NotFoundResponseErrors.md +20 -0
- data/kinde_api/docs/OAuthApi.md +32 -97
- data/kinde_api/docs/OrganizationItemSchema.md +28 -0
- data/kinde_api/docs/OrganizationUser.md +17 -11
- data/kinde_api/docs/OrganizationsApi.md +1440 -210
- data/kinde_api/docs/Permissions.md +1 -1
- data/kinde_api/docs/PermissionsApi.md +7 -7
- data/kinde_api/docs/PropertiesApi.md +297 -0
- data/kinde_api/docs/Property.md +28 -0
- data/kinde_api/docs/PropertyCategoriesApi.md +227 -0
- data/kinde_api/docs/PropertyValue.md +26 -0
- data/kinde_api/docs/ReadEnvLogoResponse.md +22 -0
- data/kinde_api/docs/ReadEnvLogoResponseLogosInner.md +20 -0
- data/kinde_api/docs/ReadLogoResponse.md +22 -0
- data/kinde_api/docs/ReadLogoResponseLogosInner.md +22 -0
- data/kinde_api/docs/ReplaceConnectionRequest.md +24 -0
- data/kinde_api/docs/ReplaceConnectionRequestOptions.md +51 -0
- data/kinde_api/docs/ReplaceConnectionRequestOptionsOneOf.md +32 -0
- data/kinde_api/docs/ReplaceConnectionRequestOptionsOneOf1.md +40 -0
- data/kinde_api/docs/ReplaceMFARequest.md +20 -0
- data/kinde_api/docs/ReplaceOrganizationMFARequest.md +18 -0
- data/kinde_api/docs/RolePermissionsResponse.md +24 -0
- data/kinde_api/docs/RoleScopesResponse.md +22 -0
- data/kinde_api/docs/Roles.md +4 -2
- data/kinde_api/docs/RolesApi.md +338 -54
- data/kinde_api/docs/Scopes.md +24 -0
- data/kinde_api/docs/SearchApi.md +89 -0
- data/kinde_api/docs/SearchUsersResponse.md +22 -0
- data/kinde_api/docs/SearchUsersResponseResultsInner.md +46 -0
- data/kinde_api/docs/SetUserPasswordRequest.md +26 -0
- data/kinde_api/docs/SubscribersApi.md +4 -4
- data/kinde_api/docs/SuccessResponse.md +2 -2
- data/kinde_api/docs/TimezonesApi.md +14 -21
- data/kinde_api/docs/TokenIntrospect.md +5 -5
- data/kinde_api/docs/UpdateAPIApplicationsRequestApplicationsInner.md +4 -4
- data/kinde_api/docs/UpdateAPIScopeRequest.md +18 -0
- data/kinde_api/docs/UpdateApplicationRequest.md +5 -1
- data/kinde_api/docs/UpdateApplicationTokensRequest.md +26 -0
- data/kinde_api/docs/UpdateApplicationsPropertyRequest.md +18 -0
- data/kinde_api/docs/UpdateApplicationsPropertyRequestValue.md +49 -0
- data/kinde_api/docs/UpdateBusinessRequest.md +36 -0
- data/kinde_api/docs/UpdateCategoryRequest.md +18 -0
- data/kinde_api/docs/UpdateConnectionRequest.md +24 -0
- data/kinde_api/docs/UpdateEnvironmentVariableRequest.md +22 -0
- data/kinde_api/docs/UpdateEnvironmentVariableResponse.md +20 -0
- data/kinde_api/docs/UpdateIdentityRequest.md +18 -0
- data/kinde_api/docs/UpdateOrganizationPropertiesRequest.md +18 -0
- data/kinde_api/docs/UpdateOrganizationRequest.md +27 -15
- data/kinde_api/docs/UpdateOrganizationSessionsRequest.md +24 -0
- data/kinde_api/docs/UpdateOrganizationUsersRequestUsersInner.md +2 -2
- data/kinde_api/docs/UpdateOrganizationUsersResponse.md +3 -1
- data/kinde_api/docs/UpdatePropertyRequest.md +24 -0
- data/kinde_api/docs/UpdateUserRequest.md +5 -1
- data/kinde_api/docs/UpdateUserResponse.md +1 -1
- data/kinde_api/docs/UpdateWebHookRequest.md +22 -0
- data/kinde_api/docs/UpdateWebhookResponse.md +22 -0
- data/kinde_api/docs/UpdateWebhookResponseWebhook.md +18 -0
- data/kinde_api/docs/User.md +6 -2
- data/kinde_api/docs/UserProfileV2.md +17 -13
- data/kinde_api/docs/UsersApi.md +893 -99
- data/kinde_api/docs/UsersResponseUsersInner.md +6 -2
- data/kinde_api/docs/Webhook.md +28 -0
- data/kinde_api/docs/WebhooksApi.md +423 -0
- data/kinde_api/git_push.sh +57 -0
- data/kinde_api/kinde_api.gemspec +38 -0
- data/kinde_api/lib/kinde_api/api/apis_api.rb +640 -127
- data/kinde_api/lib/kinde_api/api/applications_api.rb +524 -112
- data/kinde_api/lib/kinde_api/api/billing_agreements_api.rb +166 -0
- data/kinde_api/lib/kinde_api/api/billing_entitlements_api.rb +105 -0
- data/kinde_api/lib/kinde_api/api/billing_meter_usage_api.rb +90 -0
- data/kinde_api/lib/kinde_api/api/business_api.rb +61 -126
- data/kinde_api/lib/kinde_api/api/callbacks_api.rb +152 -172
- data/kinde_api/lib/kinde_api/api/connected_apps_api.rb +57 -67
- data/kinde_api/lib/kinde_api/api/connections_api.rb +433 -0
- data/kinde_api/lib/kinde_api/api/environment_variables_api.rb +347 -0
- data/kinde_api/lib/kinde_api/api/environments_api.rb +327 -78
- data/kinde_api/lib/kinde_api/api/feature_flags_api.rb +68 -88
- data/kinde_api/lib/kinde_api/api/identities_api.rb +222 -0
- data/kinde_api/lib/kinde_api/api/industries_api.rb +29 -34
- data/kinde_api/lib/kinde_api/api/mfa_api.rb +90 -0
- data/kinde_api/lib/kinde_api/api/o_auth_api.rb +104 -129
- data/kinde_api/lib/kinde_api/api/organizations_api.rb +1689 -544
- data/kinde_api/lib/kinde_api/api/permissions_api.rb +76 -80
- data/kinde_api/lib/kinde_api/api/properties_api.rb +300 -0
- data/kinde_api/lib/kinde_api/api/property_categories_api.rb +237 -0
- data/kinde_api/lib/kinde_api/api/roles_api.rb +432 -166
- data/kinde_api/lib/kinde_api/api/search_api.rb +97 -0
- data/kinde_api/lib/kinde_api/api/subscribers_api.rb +59 -60
- data/kinde_api/lib/kinde_api/api/timezones_api.rb +29 -34
- data/kinde_api/lib/kinde_api/api/users_api.rb +900 -150
- data/kinde_api/lib/kinde_api/api/webhooks_api.rb +404 -0
- data/kinde_api/lib/kinde_api/api_client.rb +79 -68
- data/kinde_api/lib/kinde_api/api_error.rb +16 -16
- data/kinde_api/lib/kinde_api/configuration.rb +101 -24
- data/kinde_api/lib/kinde_api/models/add_api_scope_request.rb +235 -0
- data/kinde_api/lib/kinde_api/models/add_apis_request.rb +54 -49
- data/kinde_api/lib/kinde_api/models/add_organization_users_request.rb +40 -42
- data/kinde_api/lib/kinde_api/models/add_organization_users_request_users_inner.rb +53 -51
- data/kinde_api/lib/kinde_api/models/add_organization_users_response.rb +52 -50
- data/kinde_api/lib/kinde_api/models/add_role_scope_request.rb +225 -0
- data/kinde_api/lib/kinde_api/models/add_role_scope_response.rb +230 -0
- data/kinde_api/lib/kinde_api/models/api_result.rb +38 -40
- data/kinde_api/lib/kinde_api/models/applications.rb +55 -50
- data/kinde_api/lib/kinde_api/models/authorize_app_api_response.rb +250 -0
- data/kinde_api/lib/kinde_api/models/category.rb +228 -0
- data/kinde_api/lib/kinde_api/models/connected_apps_access_token.rb +44 -45
- data/kinde_api/lib/kinde_api/models/connected_apps_auth_url.rb +44 -45
- data/kinde_api/lib/kinde_api/models/connection.rb +239 -0
- data/kinde_api/lib/kinde_api/models/connection_connection.rb +246 -0
- data/kinde_api/lib/kinde_api/models/create_api_scopes_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/create_api_scopes_response_scope.rb +220 -0
- data/kinde_api/lib/kinde_api/models/create_apis_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/create_apis_response_api.rb +220 -0
- data/kinde_api/lib/kinde_api/models/create_application_request.rb +60 -52
- data/kinde_api/lib/kinde_api/models/create_application_response.rb +50 -49
- data/kinde_api/lib/kinde_api/models/create_application_response_application.rb +51 -50
- data/kinde_api/lib/kinde_api/models/create_billing_agreement_request.rb +260 -0
- data/kinde_api/lib/kinde_api/models/create_category_request.rb +274 -0
- data/kinde_api/lib/kinde_api/models/create_category_response.rb +237 -0
- data/kinde_api/lib/kinde_api/models/create_category_response_category.rb +220 -0
- data/kinde_api/lib/kinde_api/models/create_connection_request.rb +306 -0
- data/kinde_api/lib/kinde_api/models/create_connection_request_options.rb +106 -0
- data/kinde_api/lib/kinde_api/models/create_connection_request_options_one_of.rb +241 -0
- data/kinde_api/lib/kinde_api/models/create_connection_request_options_one_of1.rb +303 -0
- data/kinde_api/lib/kinde_api/models/create_connection_request_options_one_of2.rb +333 -0
- data/kinde_api/lib/kinde_api/models/create_connection_response.rb +237 -0
- data/kinde_api/lib/kinde_api/models/create_connection_response_connection.rb +220 -0
- data/kinde_api/lib/kinde_api/models/create_environment_variable_request.rb +250 -0
- data/kinde_api/lib/kinde_api/models/create_environment_variable_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/create_environment_variable_response_environment_variable.rb +220 -0
- data/kinde_api/lib/kinde_api/models/create_feature_flag_request.rb +87 -77
- data/kinde_api/lib/kinde_api/models/create_identity_response.rb +237 -0
- data/kinde_api/lib/kinde_api/models/create_identity_response_identity.rb +220 -0
- data/kinde_api/lib/kinde_api/models/create_meter_usage_record_request.rb +309 -0
- data/kinde_api/lib/kinde_api/models/create_meter_usage_record_response.rb +230 -0
- data/kinde_api/lib/kinde_api/models/create_organization_request.rb +175 -100
- data/kinde_api/lib/kinde_api/models/create_organization_response.rb +57 -50
- data/kinde_api/lib/kinde_api/models/create_organization_response_organization.rb +49 -42
- data/kinde_api/lib/kinde_api/models/create_organization_user_permission_request.rb +38 -41
- data/kinde_api/lib/kinde_api/models/create_organization_user_role_request.rb +38 -41
- data/kinde_api/lib/kinde_api/models/create_permission_request.rb +50 -49
- data/kinde_api/lib/kinde_api/models/create_property_request.rb +356 -0
- data/kinde_api/lib/kinde_api/models/create_property_response.rb +237 -0
- data/kinde_api/lib/kinde_api/models/create_property_response_property.rb +220 -0
- data/kinde_api/lib/kinde_api/models/create_role_request.rb +56 -53
- data/kinde_api/lib/kinde_api/models/create_roles_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/create_roles_response_role.rb +220 -0
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response.rb +38 -41
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response_subscriber.rb +38 -41
- data/kinde_api/lib/kinde_api/models/create_user_identity_request.rb +284 -0
- data/kinde_api/lib/kinde_api/models/create_user_request.rb +62 -50
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner.rb +60 -52
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner_details.rb +67 -40
- data/kinde_api/lib/kinde_api/models/create_user_request_profile.rb +54 -45
- data/kinde_api/lib/kinde_api/models/create_user_response.rb +53 -51
- data/kinde_api/lib/kinde_api/models/create_web_hook_request.rb +268 -0
- data/kinde_api/lib/kinde_api/models/create_webhook_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/create_webhook_response_webhook.rb +228 -0
- data/kinde_api/lib/kinde_api/models/delete_api_response.rb +228 -0
- data/kinde_api/lib/kinde_api/models/delete_environment_variable_response.rb +230 -0
- data/kinde_api/lib/kinde_api/models/delete_role_scope_response.rb +230 -0
- data/kinde_api/lib/kinde_api/models/delete_webhook_response.rb +230 -0
- data/kinde_api/lib/kinde_api/models/environment_variable.rb +261 -0
- data/kinde_api/lib/kinde_api/models/error.rb +44 -44
- data/kinde_api/lib/kinde_api/models/error_response.rb +40 -42
- data/kinde_api/lib/kinde_api/models/event_type.rb +255 -0
- data/kinde_api/lib/kinde_api/models/get_api_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/get_api_response_api.rb +272 -0
- data/kinde_api/lib/kinde_api/models/get_api_response_api_applications_inner.rb +285 -0
- data/kinde_api/lib/kinde_api/models/get_api_response_api_scopes_inner.rb +230 -0
- data/kinde_api/lib/kinde_api/models/get_api_scope_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/get_api_scopes_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/get_api_scopes_response_scopes_inner.rb +240 -0
- data/kinde_api/lib/kinde_api/models/get_apis_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_apis_response_apis_inner.rb +261 -0
- data/kinde_api/lib/kinde_api/models/get_apis_response_apis_inner_scopes_inner.rb +228 -0
- data/kinde_api/lib/kinde_api/models/get_application_response.rb +50 -49
- data/kinde_api/lib/kinde_api/models/get_application_response_application.rb +126 -57
- data/kinde_api/lib/kinde_api/models/get_applications_response.rb +57 -54
- data/kinde_api/lib/kinde_api/models/get_billing_agreements_response.rb +252 -0
- data/kinde_api/lib/kinde_api/models/get_billing_agreements_response_agreements_inner.rb +262 -0
- data/kinde_api/lib/kinde_api/models/get_billing_agreements_response_agreements_inner_entitlements_inner.rb +230 -0
- data/kinde_api/lib/kinde_api/models/get_billing_entitlements_response.rb +264 -0
- data/kinde_api/lib/kinde_api/models/get_billing_entitlements_response_entitlements_inner.rb +290 -0
- data/kinde_api/lib/kinde_api/models/get_billing_entitlements_response_plans_inner.rb +229 -0
- data/kinde_api/lib/kinde_api/models/get_business_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/get_business_response_business.rb +326 -0
- data/kinde_api/lib/kinde_api/models/get_categories_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_connections_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_environment_feature_flags_response.rb +57 -54
- data/kinde_api/lib/kinde_api/models/get_environment_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/get_environment_response_environment.rb +526 -0
- data/kinde_api/lib/kinde_api/models/get_environment_response_environment_background_color.rb +237 -0
- data/kinde_api/lib/kinde_api/models/get_environment_response_environment_link_color.rb +237 -0
- data/kinde_api/lib/kinde_api/models/get_environment_variable_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/get_environment_variables_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_event_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/get_event_response_event.rb +257 -0
- data/kinde_api/lib/kinde_api/models/get_event_types_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/get_identities_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_industries_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/get_industries_response_industries_inner.rb +230 -0
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response.rb +52 -50
- 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_response.rb +547 -0
- data/kinde_api/lib/kinde_api/models/get_organization_response_billing.rb +232 -0
- data/kinde_api/lib/kinde_api/models/get_organization_response_billing_agreements_inner.rb +230 -0
- data/kinde_api/lib/kinde_api/models/get_organization_users_response.rb +57 -54
- data/kinde_api/lib/kinde_api/models/get_organizations_response.rb +57 -54
- data/kinde_api/lib/kinde_api/models/get_organizations_user_permissions_response.rb +52 -50
- data/kinde_api/lib/kinde_api/models/get_organizations_user_roles_response.rb +57 -54
- data/kinde_api/lib/kinde_api/models/get_permissions_response.rb +57 -54
- data/kinde_api/lib/kinde_api/models/get_properties_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_property_values_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_redirect_callback_urls_response.rb +40 -42
- data/kinde_api/lib/kinde_api/models/get_role_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/get_role_response_role.rb +260 -0
- data/kinde_api/lib/kinde_api/models/get_roles_response.rb +57 -54
- data/kinde_api/lib/kinde_api/models/get_subscriber_response.rb +52 -50
- data/kinde_api/lib/kinde_api/models/get_subscribers_response.rb +57 -54
- data/kinde_api/lib/kinde_api/models/get_timezones_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/get_timezones_response_timezones_inner.rb +230 -0
- data/kinde_api/lib/kinde_api/models/get_user_mfa_response.rb +237 -0
- data/kinde_api/lib/kinde_api/models/get_user_mfa_response_mfa.rb +280 -0
- data/kinde_api/lib/kinde_api/models/get_user_sessions_response.rb +248 -0
- data/kinde_api/lib/kinde_api/models/get_user_sessions_response_sessions_inner.rb +331 -0
- data/kinde_api/lib/kinde_api/models/get_webhooks_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/identity.rb +300 -0
- data/kinde_api/lib/kinde_api/models/logout_redirect_urls.rb +60 -42
- data/kinde_api/lib/kinde_api/models/not_found_response.rb +219 -0
- data/kinde_api/lib/kinde_api/models/not_found_response_errors.rb +228 -0
- data/kinde_api/lib/kinde_api/models/organization_item_schema.rb +272 -0
- data/kinde_api/lib/kinde_api/models/organization_user.rb +122 -62
- data/kinde_api/lib/kinde_api/models/organization_user_permission.rb +73 -59
- data/kinde_api/lib/kinde_api/models/organization_user_permission_roles_inner.rb +47 -46
- data/kinde_api/lib/kinde_api/models/organization_user_role.rb +55 -50
- data/kinde_api/lib/kinde_api/models/organization_user_role_permissions.rb +55 -50
- data/kinde_api/lib/kinde_api/models/organization_user_role_permissions_permissions.rb +38 -41
- data/kinde_api/lib/kinde_api/models/permissions.rb +57 -54
- data/kinde_api/lib/kinde_api/models/property.rb +264 -0
- data/kinde_api/lib/kinde_api/models/property_value.rb +257 -0
- data/kinde_api/lib/kinde_api/models/read_env_logo_response.rb +242 -0
- data/kinde_api/lib/kinde_api/models/read_env_logo_response_logos_inner.rb +230 -0
- data/kinde_api/lib/kinde_api/models/read_logo_response.rb +242 -0
- data/kinde_api/lib/kinde_api/models/read_logo_response_logos_inner.rb +240 -0
- data/kinde_api/lib/kinde_api/models/redirect_callback_urls.rb +40 -42
- data/kinde_api/lib/kinde_api/models/replace_connection_request.rb +251 -0
- data/kinde_api/lib/kinde_api/models/replace_connection_request_options.rb +106 -0
- data/kinde_api/lib/kinde_api/models/replace_connection_request_options_one_of.rb +293 -0
- data/kinde_api/lib/kinde_api/models/replace_connection_request_options_one_of1.rb +313 -0
- data/kinde_api/lib/kinde_api/models/replace_logout_redirect_urls_request.rb +40 -42
- data/kinde_api/lib/kinde_api/models/replace_mfa_request.rb +276 -0
- data/kinde_api/lib/kinde_api/models/replace_organization_mfa_request.rb +249 -0
- data/kinde_api/lib/kinde_api/models/replace_redirect_callback_urls_request.rb +40 -42
- data/kinde_api/lib/kinde_api/models/role.rb +63 -53
- data/kinde_api/lib/kinde_api/models/role_permissions_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/role_scopes_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/roles.rb +68 -53
- data/kinde_api/lib/kinde_api/models/scopes.rb +250 -0
- data/kinde_api/lib/kinde_api/models/search_users_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/search_users_response_results_inner.rb +374 -0
- data/kinde_api/lib/kinde_api/models/set_user_password_request.rb +311 -0
- data/kinde_api/lib/kinde_api/models/subscriber.rb +63 -54
- data/kinde_api/lib/kinde_api/models/subscribers_subscriber.rb +71 -58
- data/kinde_api/lib/kinde_api/models/success_response.rb +47 -46
- data/kinde_api/lib/kinde_api/models/token_error_response.rb +44 -45
- data/kinde_api/lib/kinde_api/models/token_introspect.rb +63 -58
- data/kinde_api/lib/kinde_api/models/update_api_applications_request.rb +42 -44
- data/kinde_api/lib/kinde_api/models/update_api_applications_request_applications_inner.rb +48 -49
- data/kinde_api/lib/kinde_api/models/update_api_scope_request.rb +220 -0
- data/kinde_api/lib/kinde_api/models/update_application_request.rb +78 -54
- data/kinde_api/lib/kinde_api/models/update_application_tokens_request.rb +260 -0
- data/kinde_api/lib/kinde_api/models/update_applications_property_request.rb +224 -0
- data/kinde_api/lib/kinde_api/models/update_applications_property_request_value.rb +106 -0
- data/kinde_api/lib/kinde_api/models/update_business_request.rb +320 -0
- data/kinde_api/lib/kinde_api/models/update_category_request.rb +220 -0
- data/kinde_api/lib/kinde_api/models/update_connection_request.rb +251 -0
- data/kinde_api/lib/kinde_api/models/update_environement_feature_flag_override_request.rb +40 -43
- data/kinde_api/lib/kinde_api/models/update_environment_variable_request.rb +240 -0
- data/kinde_api/lib/kinde_api/models/update_environment_variable_response.rb +230 -0
- data/kinde_api/lib/kinde_api/models/update_identity_request.rb +220 -0
- data/kinde_api/lib/kinde_api/models/update_organization_properties_request.rb +225 -0
- data/kinde_api/lib/kinde_api/models/update_organization_request.rb +209 -91
- data/kinde_api/lib/kinde_api/models/update_organization_sessions_request.rb +284 -0
- data/kinde_api/lib/kinde_api/models/update_organization_users_request.rb +40 -42
- data/kinde_api/lib/kinde_api/models/update_organization_users_request_users_inner.rb +59 -55
- data/kinde_api/lib/kinde_api/models/update_organization_users_response.rb +76 -57
- data/kinde_api/lib/kinde_api/models/update_property_request.rb +265 -0
- data/kinde_api/lib/kinde_api/models/update_role_permissions_request.rb +40 -42
- data/kinde_api/lib/kinde_api/models/update_role_permissions_request_permissions_inner.rb +44 -45
- data/kinde_api/lib/kinde_api/models/update_role_permissions_response.rb +66 -56
- data/kinde_api/lib/kinde_api/models/update_roles_request.rb +61 -56
- data/kinde_api/lib/kinde_api/models/update_user_request.rb +75 -52
- data/kinde_api/lib/kinde_api/models/update_user_response.rb +75 -67
- data/kinde_api/lib/kinde_api/models/update_web_hook_request.rb +243 -0
- data/kinde_api/lib/kinde_api/models/update_webhook_response.rb +237 -0
- data/kinde_api/lib/kinde_api/models/update_webhook_response_webhook.rb +219 -0
- data/kinde_api/lib/kinde_api/models/user.rb +138 -97
- data/kinde_api/lib/kinde_api/models/user_identities_inner.rb +47 -46
- data/kinde_api/lib/kinde_api/models/user_identity.rb +44 -45
- data/kinde_api/lib/kinde_api/models/user_identity_result.rb +38 -41
- data/kinde_api/lib/kinde_api/models/user_profile_v2.rb +113 -79
- data/kinde_api/lib/kinde_api/models/users_response.rb +57 -54
- data/kinde_api/lib/kinde_api/models/users_response_users_inner.rb +138 -98
- data/kinde_api/lib/kinde_api/models/webhook.rb +267 -0
- data/kinde_api/lib/kinde_api/version.rb +12 -12
- data/kinde_api/lib/kinde_api.rb +160 -36
- data/kinde_api/spec/api/billing_agreements_api_spec.rb +62 -0
- data/kinde_api/spec/api/billing_entitlements_api_spec.rb +52 -0
- data/kinde_api/spec/api/billing_meter_usage_api_spec.rb +47 -0
- data/kinde_api/spec/api/connections_api_spec.rb +112 -0
- data/kinde_api/spec/api/environment_variables_api_spec.rb +95 -0
- data/kinde_api/spec/api/identities_api_spec.rb +72 -0
- data/kinde_api/spec/api/mfa_api_spec.rb +47 -0
- data/kinde_api/spec/api/properties_api_spec.rb +87 -0
- data/kinde_api/spec/api/property_categories_api_spec.rb +75 -0
- data/kinde_api/spec/api/search_api_spec.rb +52 -0
- data/kinde_api/spec/api/webhooks_api_spec.rb +106 -0
- data/kinde_api/spec/api_client_spec.rb +27 -21
- data/kinde_api/spec/configuration_spec.rb +14 -14
- data/kinde_api/spec/models/add_api_scope_request_spec.rb +40 -0
- data/kinde_api/spec/models/add_role_scope_request_spec.rb +34 -0
- data/kinde_api/spec/models/add_role_scope_response_spec.rb +40 -0
- data/kinde_api/spec/models/authorize_app_api_response_spec.rb +52 -0
- data/kinde_api/spec/models/category_spec.rb +40 -0
- data/kinde_api/spec/models/connection_connection_spec.rb +52 -0
- data/kinde_api/spec/models/connection_spec.rb +46 -0
- data/kinde_api/spec/models/create_api_scopes_response_scope_spec.rb +34 -0
- data/kinde_api/spec/models/create_api_scopes_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_apis_response_api_spec.rb +34 -0
- data/kinde_api/spec/models/create_apis_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_billing_agreement_request_spec.rb +52 -0
- data/kinde_api/spec/models/create_category_request_spec.rb +44 -0
- data/kinde_api/spec/models/create_category_response_category_spec.rb +34 -0
- data/kinde_api/spec/models/create_category_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_connection_request_options_one_of1_spec.rb +82 -0
- data/kinde_api/spec/models/create_connection_request_options_one_of2_spec.rb +100 -0
- data/kinde_api/spec/models/create_connection_request_options_one_of_spec.rb +46 -0
- data/kinde_api/spec/models/create_connection_request_options_spec.rb +31 -0
- data/kinde_api/spec/models/create_connection_request_spec.rb +68 -0
- data/kinde_api/spec/models/create_connection_response_connection_spec.rb +34 -0
- data/kinde_api/spec/models/create_connection_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_environment_variable_request_spec.rb +46 -0
- data/kinde_api/spec/models/create_environment_variable_response_environment_variable_spec.rb +34 -0
- data/kinde_api/spec/models/create_environment_variable_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_identity_response_identity_spec.rb +34 -0
- data/kinde_api/spec/models/create_identity_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_meter_usage_record_request_spec.rb +62 -0
- data/kinde_api/spec/models/create_meter_usage_record_response_spec.rb +40 -0
- data/kinde_api/spec/models/create_property_request_spec.rb +78 -0
- data/kinde_api/spec/models/create_property_response_property_spec.rb +34 -0
- data/kinde_api/spec/models/create_property_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_roles_response_role_spec.rb +34 -0
- data/kinde_api/spec/models/create_roles_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_user_identity_request_spec.rb +56 -0
- data/kinde_api/spec/models/create_web_hook_request_spec.rb +52 -0
- data/kinde_api/spec/models/create_webhook_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_webhook_response_webhook_spec.rb +40 -0
- data/kinde_api/spec/models/delete_api_response_spec.rb +40 -0
- data/kinde_api/spec/models/delete_environment_variable_response_spec.rb +40 -0
- data/kinde_api/spec/models/delete_role_scope_response_spec.rb +40 -0
- data/kinde_api/spec/models/delete_webhook_response_spec.rb +40 -0
- data/kinde_api/spec/models/environment_variable_spec.rb +58 -0
- data/kinde_api/spec/models/event_type_spec.rb +58 -0
- data/kinde_api/spec/models/get_api_response_api_applications_inner_spec.rb +56 -0
- data/kinde_api/spec/models/get_api_response_api_scopes_inner_spec.rb +40 -0
- data/kinde_api/spec/models/get_api_response_api_spec.rb +64 -0
- data/kinde_api/spec/models/get_api_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_api_scope_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_api_scopes_response_scopes_inner_spec.rb +46 -0
- data/kinde_api/spec/models/get_api_scopes_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_apis_response_apis_inner_scopes_inner_spec.rb +40 -0
- data/kinde_api/spec/models/get_apis_response_apis_inner_spec.rb +58 -0
- data/kinde_api/spec/models/get_apis_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_billing_agreements_response_agreements_inner_entitlements_inner_spec.rb +40 -0
- data/kinde_api/spec/models/get_billing_agreements_response_agreements_inner_spec.rb +58 -0
- data/kinde_api/spec/models/get_billing_agreements_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_billing_entitlements_response_entitlements_inner_spec.rb +76 -0
- data/kinde_api/spec/models/get_billing_entitlements_response_plans_inner_spec.rb +40 -0
- data/kinde_api/spec/models/get_billing_entitlements_response_spec.rb +58 -0
- data/kinde_api/spec/models/get_business_response_business_spec.rb +94 -0
- data/kinde_api/spec/models/get_business_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_categories_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_connections_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_environment_response_environment_background_color_spec.rb +46 -0
- data/kinde_api/spec/models/get_environment_response_environment_link_color_spec.rb +46 -0
- data/kinde_api/spec/models/get_environment_response_environment_spec.rb +192 -0
- data/kinde_api/spec/models/get_environment_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_environment_variable_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_environment_variables_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_event_response_event_spec.rb +58 -0
- data/kinde_api/spec/models/get_event_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_event_types_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_identities_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_industries_response_industries_inner_spec.rb +40 -0
- data/kinde_api/spec/models/get_industries_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_organization_response_billing_agreements_inner_spec.rb +40 -0
- data/kinde_api/spec/models/get_organization_response_billing_spec.rb +40 -0
- data/kinde_api/spec/models/get_organization_response_spec.rb +204 -0
- data/kinde_api/spec/models/get_properties_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_property_values_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_role_response_role_spec.rb +58 -0
- data/kinde_api/spec/models/get_role_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_timezones_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_timezones_response_timezones_inner_spec.rb +40 -0
- data/kinde_api/spec/models/get_user_mfa_response_mfa_spec.rb +70 -0
- data/kinde_api/spec/models/get_user_mfa_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_user_sessions_response_sessions_inner_spec.rb +100 -0
- data/kinde_api/spec/models/get_user_sessions_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_webhooks_response_spec.rb +46 -0
- data/kinde_api/spec/models/identity_spec.rb +82 -0
- data/kinde_api/spec/models/not_found_response_errors_spec.rb +40 -0
- data/kinde_api/spec/models/not_found_response_spec.rb +34 -0
- data/kinde_api/spec/models/organization_item_schema_spec.rb +64 -0
- data/kinde_api/spec/models/property_spec.rb +64 -0
- data/kinde_api/spec/models/property_value_spec.rb +58 -0
- data/kinde_api/spec/models/read_env_logo_response_logos_inner_spec.rb +40 -0
- data/kinde_api/spec/models/read_env_logo_response_spec.rb +46 -0
- data/kinde_api/spec/models/read_logo_response_logos_inner_spec.rb +46 -0
- data/kinde_api/spec/models/read_logo_response_spec.rb +46 -0
- data/kinde_api/spec/models/replace_connection_request_options_one_of1_spec.rb +88 -0
- data/kinde_api/spec/models/replace_connection_request_options_one_of_spec.rb +76 -0
- data/kinde_api/spec/models/replace_connection_request_options_spec.rb +31 -0
- data/kinde_api/spec/models/replace_connection_request_spec.rb +52 -0
- data/kinde_api/spec/models/replace_mfa_request_spec.rb +48 -0
- data/kinde_api/spec/models/replace_organization_mfa_request_spec.rb +38 -0
- data/kinde_api/spec/models/role_permissions_response_spec.rb +52 -0
- data/kinde_api/spec/models/role_scopes_response_spec.rb +46 -0
- data/kinde_api/spec/models/scopes_spec.rb +52 -0
- data/kinde_api/spec/models/search_users_response_results_inner_spec.rb +118 -0
- data/kinde_api/spec/models/search_users_response_spec.rb +46 -0
- data/kinde_api/spec/models/set_user_password_request_spec.rb +66 -0
- data/kinde_api/spec/models/update_api_scope_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_application_tokens_request_spec.rb +58 -0
- data/kinde_api/spec/models/update_applications_property_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_applications_property_request_value_spec.rb +31 -0
- data/kinde_api/spec/models/update_business_request_spec.rb +88 -0
- data/kinde_api/spec/models/update_category_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_connection_request_spec.rb +52 -0
- data/kinde_api/spec/models/update_environment_variable_request_spec.rb +46 -0
- data/kinde_api/spec/models/update_environment_variable_response_spec.rb +40 -0
- data/kinde_api/spec/models/update_identity_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_organization_properties_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_organization_sessions_request_spec.rb +56 -0
- data/kinde_api/spec/models/update_property_request_spec.rb +52 -0
- data/kinde_api/spec/models/update_web_hook_request_spec.rb +46 -0
- data/kinde_api/spec/models/update_webhook_response_spec.rb +46 -0
- data/kinde_api/spec/models/update_webhook_response_webhook_spec.rb +34 -0
- data/kinde_api/spec/models/webhook_spec.rb +64 -0
- data/kinde_api/spec/spec_helper.rb +63 -62
- data/lib/kinde_sdk/client.rb +88 -19
- data/lib/kinde_sdk/current.rb +16 -0
- data/lib/kinde_sdk/engine.rb +6 -0
- data/lib/kinde_sdk/middleware.rb +16 -0
- data/lib/kinde_sdk/token_manager.rb +85 -0
- data/lib/kinde_sdk/token_store.rb +29 -0
- data/lib/kinde_sdk/version.rb +1 -1
- data/lib/kinde_sdk.rb +22 -14
- data/spec/examples.txt +24 -0
- data/spec/kinde_sdk_spec.rb +211 -125
- data/spec/spec_helper.rb +4 -4
- metadata +656 -88
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
=begin
|
2
|
+
#Kinde Management API
|
3
|
+
|
4
|
+
# Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
|
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
12
|
|
13
13
|
require 'cgi'
|
14
14
|
|
@@ -19,26 +19,29 @@ module KindeApi
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
|
-
# Create
|
24
|
-
#
|
22
|
+
# Create application
|
23
|
+
# Create a new client. <div> <code>create:applications</code> </div>
|
24
|
+
# @param create_application_request [CreateApplicationRequest]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @option opts [CreateApplicationRequest] :create_application_request Application details.
|
27
26
|
# @return [CreateApplicationResponse]
|
28
|
-
def create_application(opts = {})
|
29
|
-
data, _status_code, _headers = create_application_with_http_info(opts)
|
27
|
+
def create_application(create_application_request, opts = {})
|
28
|
+
data, _status_code, _headers = create_application_with_http_info(create_application_request, opts)
|
30
29
|
data
|
31
30
|
end
|
32
31
|
|
33
|
-
# Create
|
34
|
-
# Create
|
32
|
+
# Create application
|
33
|
+
# Create a new client. <div> <code>create:applications</code> </div>
|
34
|
+
# @param create_application_request [CreateApplicationRequest]
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @option opts [CreateApplicationRequest] :create_application_request Application details.
|
37
36
|
# @return [Array<(CreateApplicationResponse, Integer, Hash)>] CreateApplicationResponse data, response status code and response headers
|
38
|
-
def create_application_with_http_info(opts = {})
|
37
|
+
def create_application_with_http_info(create_application_request, opts = {})
|
39
38
|
if @api_client.config.debugging
|
40
39
|
@api_client.config.logger.debug 'Calling API: ApplicationsApi.create_application ...'
|
41
40
|
end
|
41
|
+
# verify the required parameter 'create_application_request' is set
|
42
|
+
if @api_client.config.client_side_validation && create_application_request.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'create_application_request' when calling ApplicationsApi.create_application"
|
44
|
+
end
|
42
45
|
# resource path
|
43
46
|
local_var_path = '/api/v1/applications'
|
44
47
|
|
@@ -48,17 +51,18 @@ module KindeApi
|
|
48
51
|
# header parameters
|
49
52
|
header_params = opts[:header_params] || {}
|
50
53
|
# HTTP header 'Accept' (if needed)
|
51
|
-
header_params['Accept'] =
|
52
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
55
|
# HTTP header 'Content-Type'
|
54
56
|
content_type = @api_client.select_header_content_type(['application/json'])
|
55
|
-
|
57
|
+
if !content_type.nil?
|
58
|
+
header_params['Content-Type'] = content_type
|
59
|
+
end
|
56
60
|
|
57
61
|
# form parameters
|
58
62
|
form_params = opts[:form_params] || {}
|
59
63
|
|
60
64
|
# http body (model)
|
61
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_application_request)
|
62
66
|
|
63
67
|
# return_type
|
64
68
|
return_type = opts[:debug_return_type] || 'CreateApplicationResponse'
|
@@ -67,24 +71,24 @@ module KindeApi
|
|
67
71
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
68
72
|
|
69
73
|
new_options = opts.merge(
|
70
|
-
operation
|
71
|
-
header_params
|
72
|
-
query_params
|
73
|
-
form_params
|
74
|
-
body
|
75
|
-
auth_names
|
76
|
-
return_type
|
74
|
+
:operation => :"ApplicationsApi.create_application",
|
75
|
+
:header_params => header_params,
|
76
|
+
:query_params => query_params,
|
77
|
+
:form_params => form_params,
|
78
|
+
:body => post_body,
|
79
|
+
:auth_names => auth_names,
|
80
|
+
:return_type => return_type
|
77
81
|
)
|
78
82
|
|
79
83
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
84
|
if @api_client.config.debugging
|
81
85
|
@api_client.config.logger.debug "API called: ApplicationsApi#create_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
86
|
end
|
83
|
-
|
87
|
+
return data, status_code, headers
|
84
88
|
end
|
85
89
|
|
86
|
-
# Delete
|
87
|
-
# Delete application.
|
90
|
+
# Delete application
|
91
|
+
# Delete a client / application. <div> <code>delete:applications</code> </div>
|
88
92
|
# @param application_id [String] The identifier for the application.
|
89
93
|
# @param [Hash] opts the optional parameters
|
90
94
|
# @return [SuccessResponse]
|
@@ -93,8 +97,8 @@ module KindeApi
|
|
93
97
|
data
|
94
98
|
end
|
95
99
|
|
96
|
-
# Delete
|
97
|
-
# Delete application.
|
100
|
+
# Delete application
|
101
|
+
# Delete a client / application. <div> <code>delete:applications</code> </div>
|
98
102
|
# @param application_id [String] The identifier for the application.
|
99
103
|
# @param [Hash] opts the optional parameters
|
100
104
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
@@ -104,13 +108,10 @@ module KindeApi
|
|
104
108
|
end
|
105
109
|
# verify the required parameter 'application_id' is set
|
106
110
|
if @api_client.config.client_side_validation && application_id.nil?
|
107
|
-
|
108
|
-
"Missing the required parameter 'application_id' when calling ApplicationsApi.delete_application"
|
111
|
+
fail ArgumentError, "Missing the required parameter 'application_id' when calling ApplicationsApi.delete_application"
|
109
112
|
end
|
110
|
-
|
111
113
|
# resource path
|
112
|
-
local_var_path = '/api/v1/applications/{application_id}'.sub('{application_id}',
|
113
|
-
CGI.escape(application_id.to_s))
|
114
|
+
local_var_path = '/api/v1/applications/{application_id}'.sub('{' + 'application_id' + '}', CGI.escape(application_id.to_s))
|
114
115
|
|
115
116
|
# query parameters
|
116
117
|
query_params = opts[:query_params] || {}
|
@@ -118,8 +119,7 @@ module KindeApi
|
|
118
119
|
# header parameters
|
119
120
|
header_params = opts[:header_params] || {}
|
120
121
|
# HTTP header 'Accept' (if needed)
|
121
|
-
header_params['Accept'] =
|
122
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
122
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
123
123
|
|
124
124
|
# form parameters
|
125
125
|
form_params = opts[:form_params] || {}
|
@@ -134,24 +134,93 @@ module KindeApi
|
|
134
134
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
135
135
|
|
136
136
|
new_options = opts.merge(
|
137
|
-
operation
|
138
|
-
header_params
|
139
|
-
query_params
|
140
|
-
form_params
|
141
|
-
body
|
142
|
-
auth_names
|
143
|
-
return_type
|
137
|
+
:operation => :"ApplicationsApi.delete_application",
|
138
|
+
:header_params => header_params,
|
139
|
+
:query_params => query_params,
|
140
|
+
:form_params => form_params,
|
141
|
+
:body => post_body,
|
142
|
+
:auth_names => auth_names,
|
143
|
+
:return_type => return_type
|
144
144
|
)
|
145
145
|
|
146
146
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
147
147
|
if @api_client.config.debugging
|
148
148
|
@api_client.config.logger.debug "API called: ApplicationsApi#delete_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
149
149
|
end
|
150
|
-
|
150
|
+
return data, status_code, headers
|
151
|
+
end
|
152
|
+
|
153
|
+
# Enable connection
|
154
|
+
# Enable an auth connection for an application. <div> <code>create:application_connections</code> </div>
|
155
|
+
# @param application_id [String] The identifier/client ID for the application.
|
156
|
+
# @param connection_id [String] The identifier for the connection.
|
157
|
+
# @param [Hash] opts the optional parameters
|
158
|
+
# @return [nil]
|
159
|
+
def enable_connection(application_id, connection_id, opts = {})
|
160
|
+
enable_connection_with_http_info(application_id, connection_id, opts)
|
161
|
+
nil
|
162
|
+
end
|
163
|
+
|
164
|
+
# Enable connection
|
165
|
+
# Enable an auth connection for an application. <div> <code>create:application_connections</code> </div>
|
166
|
+
# @param application_id [String] The identifier/client ID for the application.
|
167
|
+
# @param connection_id [String] The identifier for the connection.
|
168
|
+
# @param [Hash] opts the optional parameters
|
169
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
170
|
+
def enable_connection_with_http_info(application_id, connection_id, opts = {})
|
171
|
+
if @api_client.config.debugging
|
172
|
+
@api_client.config.logger.debug 'Calling API: ApplicationsApi.enable_connection ...'
|
173
|
+
end
|
174
|
+
# verify the required parameter 'application_id' is set
|
175
|
+
if @api_client.config.client_side_validation && application_id.nil?
|
176
|
+
fail ArgumentError, "Missing the required parameter 'application_id' when calling ApplicationsApi.enable_connection"
|
177
|
+
end
|
178
|
+
# verify the required parameter 'connection_id' is set
|
179
|
+
if @api_client.config.client_side_validation && connection_id.nil?
|
180
|
+
fail ArgumentError, "Missing the required parameter 'connection_id' when calling ApplicationsApi.enable_connection"
|
181
|
+
end
|
182
|
+
# resource path
|
183
|
+
local_var_path = '/api/v1/applications/{application_id}/connections/{connection_id}'.sub('{' + 'application_id' + '}', CGI.escape(application_id.to_s)).sub('{' + 'connection_id' + '}', CGI.escape(connection_id.to_s))
|
184
|
+
|
185
|
+
# query parameters
|
186
|
+
query_params = opts[:query_params] || {}
|
187
|
+
|
188
|
+
# header parameters
|
189
|
+
header_params = opts[:header_params] || {}
|
190
|
+
# HTTP header 'Accept' (if needed)
|
191
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
192
|
+
|
193
|
+
# form parameters
|
194
|
+
form_params = opts[:form_params] || {}
|
195
|
+
|
196
|
+
# http body (model)
|
197
|
+
post_body = opts[:debug_body]
|
198
|
+
|
199
|
+
# return_type
|
200
|
+
return_type = opts[:debug_return_type]
|
201
|
+
|
202
|
+
# auth_names
|
203
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
204
|
+
|
205
|
+
new_options = opts.merge(
|
206
|
+
:operation => :"ApplicationsApi.enable_connection",
|
207
|
+
:header_params => header_params,
|
208
|
+
:query_params => query_params,
|
209
|
+
:form_params => form_params,
|
210
|
+
:body => post_body,
|
211
|
+
:auth_names => auth_names,
|
212
|
+
:return_type => return_type
|
213
|
+
)
|
214
|
+
|
215
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
216
|
+
if @api_client.config.debugging
|
217
|
+
@api_client.config.logger.debug "API called: ApplicationsApi#enable_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
218
|
+
end
|
219
|
+
return data, status_code, headers
|
151
220
|
end
|
152
221
|
|
153
|
-
# Get
|
154
|
-
# Gets an application given the application's
|
222
|
+
# Get application
|
223
|
+
# Gets an application given the application's ID. <div> <code>read:applications</code> </div>
|
155
224
|
# @param application_id [String] The identifier for the application.
|
156
225
|
# @param [Hash] opts the optional parameters
|
157
226
|
# @return [GetApplicationResponse]
|
@@ -160,22 +229,21 @@ module KindeApi
|
|
160
229
|
data
|
161
230
|
end
|
162
231
|
|
163
|
-
# Get
|
164
|
-
# Gets an application given the application's
|
232
|
+
# Get application
|
233
|
+
# Gets an application given the application's ID. <div> <code>read:applications</code> </div>
|
165
234
|
# @param application_id [String] The identifier for the application.
|
166
235
|
# @param [Hash] opts the optional parameters
|
167
236
|
# @return [Array<(GetApplicationResponse, Integer, Hash)>] GetApplicationResponse data, response status code and response headers
|
168
237
|
def get_application_with_http_info(application_id, opts = {})
|
169
|
-
|
238
|
+
if @api_client.config.debugging
|
239
|
+
@api_client.config.logger.debug 'Calling API: ApplicationsApi.get_application ...'
|
240
|
+
end
|
170
241
|
# verify the required parameter 'application_id' is set
|
171
242
|
if @api_client.config.client_side_validation && application_id.nil?
|
172
|
-
|
173
|
-
"Missing the required parameter 'application_id' when calling ApplicationsApi.get_application"
|
243
|
+
fail ArgumentError, "Missing the required parameter 'application_id' when calling ApplicationsApi.get_application"
|
174
244
|
end
|
175
|
-
|
176
245
|
# resource path
|
177
|
-
local_var_path = '/api/v1/applications/{application_id}'.sub('{application_id}',
|
178
|
-
CGI.escape(application_id.to_s))
|
246
|
+
local_var_path = '/api/v1/applications/{application_id}'.sub('{' + 'application_id' + '}', CGI.escape(application_id.to_s))
|
179
247
|
|
180
248
|
# query parameters
|
181
249
|
query_params = opts[:query_params] || {}
|
@@ -183,8 +251,7 @@ module KindeApi
|
|
183
251
|
# header parameters
|
184
252
|
header_params = opts[:header_params] || {}
|
185
253
|
# HTTP header 'Accept' (if needed)
|
186
|
-
header_params['Accept'] =
|
187
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
254
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
188
255
|
|
189
256
|
# form parameters
|
190
257
|
form_params = opts[:form_params] || {}
|
@@ -199,24 +266,150 @@ module KindeApi
|
|
199
266
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
200
267
|
|
201
268
|
new_options = opts.merge(
|
202
|
-
operation
|
203
|
-
header_params
|
204
|
-
query_params
|
205
|
-
form_params
|
206
|
-
body
|
207
|
-
auth_names
|
208
|
-
return_type
|
269
|
+
:operation => :"ApplicationsApi.get_application",
|
270
|
+
:header_params => header_params,
|
271
|
+
:query_params => query_params,
|
272
|
+
:form_params => form_params,
|
273
|
+
:body => post_body,
|
274
|
+
:auth_names => auth_names,
|
275
|
+
:return_type => return_type
|
209
276
|
)
|
210
277
|
|
211
278
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
212
279
|
if @api_client.config.debugging
|
213
280
|
@api_client.config.logger.debug "API called: ApplicationsApi#get_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
214
281
|
end
|
215
|
-
|
282
|
+
return data, status_code, headers
|
283
|
+
end
|
284
|
+
|
285
|
+
# Get connections
|
286
|
+
# Gets all connections for an application. <div> <code>read:application_connections</code> </div>
|
287
|
+
# @param application_id [String] The identifier/client ID for the application.
|
288
|
+
# @param [Hash] opts the optional parameters
|
289
|
+
# @return [GetConnectionsResponse]
|
290
|
+
def get_application_connections(application_id, opts = {})
|
291
|
+
data, _status_code, _headers = get_application_connections_with_http_info(application_id, opts)
|
292
|
+
data
|
216
293
|
end
|
217
294
|
|
218
|
-
#
|
219
|
-
#
|
295
|
+
# Get connections
|
296
|
+
# Gets all connections for an application. <div> <code>read:application_connections</code> </div>
|
297
|
+
# @param application_id [String] The identifier/client ID for the application.
|
298
|
+
# @param [Hash] opts the optional parameters
|
299
|
+
# @return [Array<(GetConnectionsResponse, Integer, Hash)>] GetConnectionsResponse data, response status code and response headers
|
300
|
+
def get_application_connections_with_http_info(application_id, opts = {})
|
301
|
+
if @api_client.config.debugging
|
302
|
+
@api_client.config.logger.debug 'Calling API: ApplicationsApi.get_application_connections ...'
|
303
|
+
end
|
304
|
+
# verify the required parameter 'application_id' is set
|
305
|
+
if @api_client.config.client_side_validation && application_id.nil?
|
306
|
+
fail ArgumentError, "Missing the required parameter 'application_id' when calling ApplicationsApi.get_application_connections"
|
307
|
+
end
|
308
|
+
# resource path
|
309
|
+
local_var_path = '/api/v1/applications/{application_id}/connections'.sub('{' + 'application_id' + '}', CGI.escape(application_id.to_s))
|
310
|
+
|
311
|
+
# query parameters
|
312
|
+
query_params = opts[:query_params] || {}
|
313
|
+
|
314
|
+
# header parameters
|
315
|
+
header_params = opts[:header_params] || {}
|
316
|
+
# HTTP header 'Accept' (if needed)
|
317
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
318
|
+
|
319
|
+
# form parameters
|
320
|
+
form_params = opts[:form_params] || {}
|
321
|
+
|
322
|
+
# http body (model)
|
323
|
+
post_body = opts[:debug_body]
|
324
|
+
|
325
|
+
# return_type
|
326
|
+
return_type = opts[:debug_return_type] || 'GetConnectionsResponse'
|
327
|
+
|
328
|
+
# auth_names
|
329
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
330
|
+
|
331
|
+
new_options = opts.merge(
|
332
|
+
:operation => :"ApplicationsApi.get_application_connections",
|
333
|
+
:header_params => header_params,
|
334
|
+
:query_params => query_params,
|
335
|
+
:form_params => form_params,
|
336
|
+
:body => post_body,
|
337
|
+
:auth_names => auth_names,
|
338
|
+
:return_type => return_type
|
339
|
+
)
|
340
|
+
|
341
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
342
|
+
if @api_client.config.debugging
|
343
|
+
@api_client.config.logger.debug "API called: ApplicationsApi#get_application_connections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
344
|
+
end
|
345
|
+
return data, status_code, headers
|
346
|
+
end
|
347
|
+
|
348
|
+
# Get property values
|
349
|
+
# Gets properties for an application by client ID. <div> <code>read:application_properties</code> </div>
|
350
|
+
# @param application_id [String] The application's ID / client ID.
|
351
|
+
# @param [Hash] opts the optional parameters
|
352
|
+
# @return [GetPropertyValuesResponse]
|
353
|
+
def get_application_property_values(application_id, opts = {})
|
354
|
+
data, _status_code, _headers = get_application_property_values_with_http_info(application_id, opts)
|
355
|
+
data
|
356
|
+
end
|
357
|
+
|
358
|
+
# Get property values
|
359
|
+
# Gets properties for an application by client ID. <div> <code>read:application_properties</code> </div>
|
360
|
+
# @param application_id [String] The application's ID / client ID.
|
361
|
+
# @param [Hash] opts the optional parameters
|
362
|
+
# @return [Array<(GetPropertyValuesResponse, Integer, Hash)>] GetPropertyValuesResponse data, response status code and response headers
|
363
|
+
def get_application_property_values_with_http_info(application_id, opts = {})
|
364
|
+
if @api_client.config.debugging
|
365
|
+
@api_client.config.logger.debug 'Calling API: ApplicationsApi.get_application_property_values ...'
|
366
|
+
end
|
367
|
+
# verify the required parameter 'application_id' is set
|
368
|
+
if @api_client.config.client_side_validation && application_id.nil?
|
369
|
+
fail ArgumentError, "Missing the required parameter 'application_id' when calling ApplicationsApi.get_application_property_values"
|
370
|
+
end
|
371
|
+
# resource path
|
372
|
+
local_var_path = '/api/v1/applications/{application_id}/properties'.sub('{' + 'application_id' + '}', CGI.escape(application_id.to_s))
|
373
|
+
|
374
|
+
# query parameters
|
375
|
+
query_params = opts[:query_params] || {}
|
376
|
+
|
377
|
+
# header parameters
|
378
|
+
header_params = opts[:header_params] || {}
|
379
|
+
# HTTP header 'Accept' (if needed)
|
380
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
381
|
+
|
382
|
+
# form parameters
|
383
|
+
form_params = opts[:form_params] || {}
|
384
|
+
|
385
|
+
# http body (model)
|
386
|
+
post_body = opts[:debug_body]
|
387
|
+
|
388
|
+
# return_type
|
389
|
+
return_type = opts[:debug_return_type] || 'GetPropertyValuesResponse'
|
390
|
+
|
391
|
+
# auth_names
|
392
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
393
|
+
|
394
|
+
new_options = opts.merge(
|
395
|
+
:operation => :"ApplicationsApi.get_application_property_values",
|
396
|
+
:header_params => header_params,
|
397
|
+
:query_params => query_params,
|
398
|
+
:form_params => form_params,
|
399
|
+
:body => post_body,
|
400
|
+
:auth_names => auth_names,
|
401
|
+
:return_type => return_type
|
402
|
+
)
|
403
|
+
|
404
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
405
|
+
if @api_client.config.debugging
|
406
|
+
@api_client.config.logger.debug "API called: ApplicationsApi#get_application_property_values\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
407
|
+
end
|
408
|
+
return data, status_code, headers
|
409
|
+
end
|
410
|
+
|
411
|
+
# Get applications
|
412
|
+
# Get a list of applications / clients. <div> <code>read:applications</code> </div>
|
220
413
|
# @param [Hash] opts the optional parameters
|
221
414
|
# @option opts [String] :sort Field and order to sort the result by.
|
222
415
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
@@ -227,8 +420,8 @@ module KindeApi
|
|
227
420
|
data
|
228
421
|
end
|
229
422
|
|
230
|
-
#
|
231
|
-
# Get a list of applications.
|
423
|
+
# Get applications
|
424
|
+
# Get a list of applications / clients. <div> <code>read:applications</code> </div>
|
232
425
|
# @param [Hash] opts the optional parameters
|
233
426
|
# @option opts [String] :sort Field and order to sort the result by.
|
234
427
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
@@ -238,25 +431,23 @@ module KindeApi
|
|
238
431
|
if @api_client.config.debugging
|
239
432
|
@api_client.config.logger.debug 'Calling API: ApplicationsApi.get_applications ...'
|
240
433
|
end
|
241
|
-
allowable_values =
|
242
|
-
if @api_client.config.client_side_validation && opts[:sort] && !allowable_values.include?(opts[:sort])
|
243
|
-
|
434
|
+
allowable_values = ["name_asc", "name_desc"]
|
435
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
436
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
244
437
|
end
|
245
|
-
|
246
438
|
# resource path
|
247
439
|
local_var_path = '/api/v1/applications'
|
248
440
|
|
249
441
|
# query parameters
|
250
442
|
query_params = opts[:query_params] || {}
|
251
|
-
query_params[:sort] = opts[:sort]
|
252
|
-
query_params[:page_size] = opts[:page_size]
|
253
|
-
query_params[:next_token] = opts[:next_token]
|
443
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
444
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
445
|
+
query_params[:'next_token'] = opts[:'next_token'] if !opts[:'next_token'].nil?
|
254
446
|
|
255
447
|
# header parameters
|
256
448
|
header_params = opts[:header_params] || {}
|
257
449
|
# HTTP header 'Accept' (if needed)
|
258
|
-
header_params['Accept'] =
|
259
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
450
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
260
451
|
|
261
452
|
# form parameters
|
262
453
|
form_params = opts[:form_params] || {}
|
@@ -271,24 +462,93 @@ module KindeApi
|
|
271
462
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
272
463
|
|
273
464
|
new_options = opts.merge(
|
274
|
-
operation
|
275
|
-
header_params
|
276
|
-
query_params
|
277
|
-
form_params
|
278
|
-
body
|
279
|
-
auth_names
|
280
|
-
return_type
|
465
|
+
:operation => :"ApplicationsApi.get_applications",
|
466
|
+
:header_params => header_params,
|
467
|
+
:query_params => query_params,
|
468
|
+
:form_params => form_params,
|
469
|
+
:body => post_body,
|
470
|
+
:auth_names => auth_names,
|
471
|
+
:return_type => return_type
|
281
472
|
)
|
282
473
|
|
283
474
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
284
475
|
if @api_client.config.debugging
|
285
476
|
@api_client.config.logger.debug "API called: ApplicationsApi#get_applications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
286
477
|
end
|
287
|
-
|
478
|
+
return data, status_code, headers
|
479
|
+
end
|
480
|
+
|
481
|
+
# Remove connection
|
482
|
+
# Turn off an auth connection for an application <div> <code>delete:application_connections</code> </div>
|
483
|
+
# @param application_id [String] The identifier/client ID for the application.
|
484
|
+
# @param connection_id [String] The identifier for the connection.
|
485
|
+
# @param [Hash] opts the optional parameters
|
486
|
+
# @return [SuccessResponse]
|
487
|
+
def remove_connection(application_id, connection_id, opts = {})
|
488
|
+
data, _status_code, _headers = remove_connection_with_http_info(application_id, connection_id, opts)
|
489
|
+
data
|
490
|
+
end
|
491
|
+
|
492
|
+
# Remove connection
|
493
|
+
# Turn off an auth connection for an application <div> <code>delete:application_connections</code> </div>
|
494
|
+
# @param application_id [String] The identifier/client ID for the application.
|
495
|
+
# @param connection_id [String] The identifier for the connection.
|
496
|
+
# @param [Hash] opts the optional parameters
|
497
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
498
|
+
def remove_connection_with_http_info(application_id, connection_id, opts = {})
|
499
|
+
if @api_client.config.debugging
|
500
|
+
@api_client.config.logger.debug 'Calling API: ApplicationsApi.remove_connection ...'
|
501
|
+
end
|
502
|
+
# verify the required parameter 'application_id' is set
|
503
|
+
if @api_client.config.client_side_validation && application_id.nil?
|
504
|
+
fail ArgumentError, "Missing the required parameter 'application_id' when calling ApplicationsApi.remove_connection"
|
505
|
+
end
|
506
|
+
# verify the required parameter 'connection_id' is set
|
507
|
+
if @api_client.config.client_side_validation && connection_id.nil?
|
508
|
+
fail ArgumentError, "Missing the required parameter 'connection_id' when calling ApplicationsApi.remove_connection"
|
509
|
+
end
|
510
|
+
# resource path
|
511
|
+
local_var_path = '/api/v1/applications/{application_id}/connections/{connection_id}'.sub('{' + 'application_id' + '}', CGI.escape(application_id.to_s)).sub('{' + 'connection_id' + '}', CGI.escape(connection_id.to_s))
|
512
|
+
|
513
|
+
# query parameters
|
514
|
+
query_params = opts[:query_params] || {}
|
515
|
+
|
516
|
+
# header parameters
|
517
|
+
header_params = opts[:header_params] || {}
|
518
|
+
# HTTP header 'Accept' (if needed)
|
519
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
520
|
+
|
521
|
+
# form parameters
|
522
|
+
form_params = opts[:form_params] || {}
|
523
|
+
|
524
|
+
# http body (model)
|
525
|
+
post_body = opts[:debug_body]
|
526
|
+
|
527
|
+
# return_type
|
528
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
529
|
+
|
530
|
+
# auth_names
|
531
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
532
|
+
|
533
|
+
new_options = opts.merge(
|
534
|
+
:operation => :"ApplicationsApi.remove_connection",
|
535
|
+
:header_params => header_params,
|
536
|
+
:query_params => query_params,
|
537
|
+
:form_params => form_params,
|
538
|
+
:body => post_body,
|
539
|
+
:auth_names => auth_names,
|
540
|
+
:return_type => return_type
|
541
|
+
)
|
542
|
+
|
543
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
544
|
+
if @api_client.config.debugging
|
545
|
+
@api_client.config.logger.debug "API called: ApplicationsApi#remove_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
546
|
+
end
|
547
|
+
return data, status_code, headers
|
288
548
|
end
|
289
549
|
|
290
550
|
# Update Application
|
291
|
-
#
|
551
|
+
# Updates a client's settings. For more information, read [Applications in Kinde](https://docs.kinde.com/build/applications/about-applications) <div> <code>update:applications</code> </div>
|
292
552
|
# @param application_id [String] The identifier for the application.
|
293
553
|
# @param [Hash] opts the optional parameters
|
294
554
|
# @option opts [UpdateApplicationRequest] :update_application_request Application details.
|
@@ -299,7 +559,7 @@ module KindeApi
|
|
299
559
|
end
|
300
560
|
|
301
561
|
# Update Application
|
302
|
-
#
|
562
|
+
# Updates a client's settings. For more information, read [Applications in Kinde](https://docs.kinde.com/build/applications/about-applications) <div> <code>update:applications</code> </div>
|
303
563
|
# @param application_id [String] The identifier for the application.
|
304
564
|
# @param [Hash] opts the optional parameters
|
305
565
|
# @option opts [UpdateApplicationRequest] :update_application_request Application details.
|
@@ -310,13 +570,10 @@ module KindeApi
|
|
310
570
|
end
|
311
571
|
# verify the required parameter 'application_id' is set
|
312
572
|
if @api_client.config.client_side_validation && application_id.nil?
|
313
|
-
|
314
|
-
"Missing the required parameter 'application_id' when calling ApplicationsApi.update_application"
|
573
|
+
fail ArgumentError, "Missing the required parameter 'application_id' when calling ApplicationsApi.update_application"
|
315
574
|
end
|
316
|
-
|
317
575
|
# resource path
|
318
|
-
local_var_path = '/api/v1/applications/{application_id}'.sub('{application_id}',
|
319
|
-
CGI.escape(application_id.to_s))
|
576
|
+
local_var_path = '/api/v1/applications/{application_id}'.sub('{' + 'application_id' + '}', CGI.escape(application_id.to_s))
|
320
577
|
|
321
578
|
# query parameters
|
322
579
|
query_params = opts[:query_params] || {}
|
@@ -324,17 +581,18 @@ module KindeApi
|
|
324
581
|
# header parameters
|
325
582
|
header_params = opts[:header_params] || {}
|
326
583
|
# HTTP header 'Accept' (if needed)
|
327
|
-
header_params['Accept'] =
|
328
|
-
@api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
584
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
329
585
|
# HTTP header 'Content-Type'
|
330
586
|
content_type = @api_client.select_header_content_type(['application/json'])
|
331
|
-
|
587
|
+
if !content_type.nil?
|
588
|
+
header_params['Content-Type'] = content_type
|
589
|
+
end
|
332
590
|
|
333
591
|
# form parameters
|
334
592
|
form_params = opts[:form_params] || {}
|
335
593
|
|
336
594
|
# http body (model)
|
337
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:update_application_request])
|
595
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_application_request'])
|
338
596
|
|
339
597
|
# return_type
|
340
598
|
return_type = opts[:debug_return_type]
|
@@ -343,20 +601,174 @@ module KindeApi
|
|
343
601
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
344
602
|
|
345
603
|
new_options = opts.merge(
|
346
|
-
operation
|
347
|
-
header_params
|
348
|
-
query_params
|
349
|
-
form_params
|
350
|
-
body
|
351
|
-
auth_names
|
352
|
-
return_type
|
604
|
+
:operation => :"ApplicationsApi.update_application",
|
605
|
+
:header_params => header_params,
|
606
|
+
:query_params => query_params,
|
607
|
+
:form_params => form_params,
|
608
|
+
:body => post_body,
|
609
|
+
:auth_names => auth_names,
|
610
|
+
:return_type => return_type
|
353
611
|
)
|
354
612
|
|
355
613
|
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
356
614
|
if @api_client.config.debugging
|
357
615
|
@api_client.config.logger.debug "API called: ApplicationsApi#update_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
358
616
|
end
|
359
|
-
|
617
|
+
return data, status_code, headers
|
618
|
+
end
|
619
|
+
|
620
|
+
# Update application tokens
|
621
|
+
# Configure tokens for an application. <div> <code>update:application_tokens</code> </div>
|
622
|
+
# @param application_id [String] The identifier/client ID for the application.
|
623
|
+
# @param update_application_tokens_request [UpdateApplicationTokensRequest] Application tokens.
|
624
|
+
# @param [Hash] opts the optional parameters
|
625
|
+
# @return [SuccessResponse]
|
626
|
+
def update_application_tokens(application_id, update_application_tokens_request, opts = {})
|
627
|
+
data, _status_code, _headers = update_application_tokens_with_http_info(application_id, update_application_tokens_request, opts)
|
628
|
+
data
|
629
|
+
end
|
630
|
+
|
631
|
+
# Update application tokens
|
632
|
+
# Configure tokens for an application. <div> <code>update:application_tokens</code> </div>
|
633
|
+
# @param application_id [String] The identifier/client ID for the application.
|
634
|
+
# @param update_application_tokens_request [UpdateApplicationTokensRequest] Application tokens.
|
635
|
+
# @param [Hash] opts the optional parameters
|
636
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
637
|
+
def update_application_tokens_with_http_info(application_id, update_application_tokens_request, opts = {})
|
638
|
+
if @api_client.config.debugging
|
639
|
+
@api_client.config.logger.debug 'Calling API: ApplicationsApi.update_application_tokens ...'
|
640
|
+
end
|
641
|
+
# verify the required parameter 'application_id' is set
|
642
|
+
if @api_client.config.client_side_validation && application_id.nil?
|
643
|
+
fail ArgumentError, "Missing the required parameter 'application_id' when calling ApplicationsApi.update_application_tokens"
|
644
|
+
end
|
645
|
+
# verify the required parameter 'update_application_tokens_request' is set
|
646
|
+
if @api_client.config.client_side_validation && update_application_tokens_request.nil?
|
647
|
+
fail ArgumentError, "Missing the required parameter 'update_application_tokens_request' when calling ApplicationsApi.update_application_tokens"
|
648
|
+
end
|
649
|
+
# resource path
|
650
|
+
local_var_path = '/api/v1/applications/{application_id}/tokens'.sub('{' + 'application_id' + '}', CGI.escape(application_id.to_s))
|
651
|
+
|
652
|
+
# query parameters
|
653
|
+
query_params = opts[:query_params] || {}
|
654
|
+
|
655
|
+
# header parameters
|
656
|
+
header_params = opts[:header_params] || {}
|
657
|
+
# HTTP header 'Accept' (if needed)
|
658
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
659
|
+
# HTTP header 'Content-Type'
|
660
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
661
|
+
if !content_type.nil?
|
662
|
+
header_params['Content-Type'] = content_type
|
663
|
+
end
|
664
|
+
|
665
|
+
# form parameters
|
666
|
+
form_params = opts[:form_params] || {}
|
667
|
+
|
668
|
+
# http body (model)
|
669
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_application_tokens_request)
|
670
|
+
|
671
|
+
# return_type
|
672
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
673
|
+
|
674
|
+
# auth_names
|
675
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
676
|
+
|
677
|
+
new_options = opts.merge(
|
678
|
+
:operation => :"ApplicationsApi.update_application_tokens",
|
679
|
+
:header_params => header_params,
|
680
|
+
:query_params => query_params,
|
681
|
+
:form_params => form_params,
|
682
|
+
:body => post_body,
|
683
|
+
:auth_names => auth_names,
|
684
|
+
:return_type => return_type
|
685
|
+
)
|
686
|
+
|
687
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
688
|
+
if @api_client.config.debugging
|
689
|
+
@api_client.config.logger.debug "API called: ApplicationsApi#update_application_tokens\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
690
|
+
end
|
691
|
+
return data, status_code, headers
|
692
|
+
end
|
693
|
+
|
694
|
+
# Update property
|
695
|
+
# Update application property value. <div> <code>update:application_properties</code> </div>
|
696
|
+
# @param application_id [String] The application's ID / client ID.
|
697
|
+
# @param property_key [String] The property's key.
|
698
|
+
# @param update_applications_property_request [UpdateApplicationsPropertyRequest]
|
699
|
+
# @param [Hash] opts the optional parameters
|
700
|
+
# @return [SuccessResponse]
|
701
|
+
def update_applications_property(application_id, property_key, update_applications_property_request, opts = {})
|
702
|
+
data, _status_code, _headers = update_applications_property_with_http_info(application_id, property_key, update_applications_property_request, opts)
|
703
|
+
data
|
704
|
+
end
|
705
|
+
|
706
|
+
# Update property
|
707
|
+
# Update application property value. <div> <code>update:application_properties</code> </div>
|
708
|
+
# @param application_id [String] The application's ID / client ID.
|
709
|
+
# @param property_key [String] The property's key.
|
710
|
+
# @param update_applications_property_request [UpdateApplicationsPropertyRequest]
|
711
|
+
# @param [Hash] opts the optional parameters
|
712
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
713
|
+
def update_applications_property_with_http_info(application_id, property_key, update_applications_property_request, opts = {})
|
714
|
+
if @api_client.config.debugging
|
715
|
+
@api_client.config.logger.debug 'Calling API: ApplicationsApi.update_applications_property ...'
|
716
|
+
end
|
717
|
+
# verify the required parameter 'application_id' is set
|
718
|
+
if @api_client.config.client_side_validation && application_id.nil?
|
719
|
+
fail ArgumentError, "Missing the required parameter 'application_id' when calling ApplicationsApi.update_applications_property"
|
720
|
+
end
|
721
|
+
# verify the required parameter 'property_key' is set
|
722
|
+
if @api_client.config.client_side_validation && property_key.nil?
|
723
|
+
fail ArgumentError, "Missing the required parameter 'property_key' when calling ApplicationsApi.update_applications_property"
|
724
|
+
end
|
725
|
+
# verify the required parameter 'update_applications_property_request' is set
|
726
|
+
if @api_client.config.client_side_validation && update_applications_property_request.nil?
|
727
|
+
fail ArgumentError, "Missing the required parameter 'update_applications_property_request' when calling ApplicationsApi.update_applications_property"
|
728
|
+
end
|
729
|
+
# resource path
|
730
|
+
local_var_path = '/api/v1/applications/{application_id}/properties/{property_key}'.sub('{' + 'application_id' + '}', CGI.escape(application_id.to_s)).sub('{' + 'property_key' + '}', CGI.escape(property_key.to_s))
|
731
|
+
|
732
|
+
# query parameters
|
733
|
+
query_params = opts[:query_params] || {}
|
734
|
+
|
735
|
+
# header parameters
|
736
|
+
header_params = opts[:header_params] || {}
|
737
|
+
# HTTP header 'Accept' (if needed)
|
738
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
739
|
+
# HTTP header 'Content-Type'
|
740
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
741
|
+
if !content_type.nil?
|
742
|
+
header_params['Content-Type'] = content_type
|
743
|
+
end
|
744
|
+
|
745
|
+
# form parameters
|
746
|
+
form_params = opts[:form_params] || {}
|
747
|
+
|
748
|
+
# http body (model)
|
749
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_applications_property_request)
|
750
|
+
|
751
|
+
# return_type
|
752
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
753
|
+
|
754
|
+
# auth_names
|
755
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
756
|
+
|
757
|
+
new_options = opts.merge(
|
758
|
+
:operation => :"ApplicationsApi.update_applications_property",
|
759
|
+
:header_params => header_params,
|
760
|
+
:query_params => query_params,
|
761
|
+
:form_params => form_params,
|
762
|
+
:body => post_body,
|
763
|
+
:auth_names => auth_names,
|
764
|
+
:return_type => return_type
|
765
|
+
)
|
766
|
+
|
767
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
768
|
+
if @api_client.config.debugging
|
769
|
+
@api_client.config.logger.debug "API called: ApplicationsApi#update_applications_property\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
770
|
+
end
|
771
|
+
return data, status_code, headers
|
360
772
|
end
|
361
773
|
end
|
362
774
|
end
|