├── .github ├── dependabot.yml └── workflows │ └── ruby.yml ├── .gitignore ├── .rspec ├── .rubocop.yml ├── .ruby-version ├── Gemfile ├── LICENSE ├── README.md ├── Rakefile ├── app ├── assets │ ├── images │ │ └── kinde │ │ │ └── ruby │ │ │ └── sdk │ │ │ └── .keep │ └── stylesheets │ │ └── kinde │ │ └── ruby │ │ └── sdk │ │ └── application.css ├── controllers │ ├── concerns │ │ └── .keep │ └── kinde_sdk │ │ └── auth_controller.rb ├── helpers │ ├── .keep │ └── auth_helper.rb ├── jobs │ └── .keep ├── mailers │ └── .keep ├── models │ └── concerns │ │ └── .keep └── views │ └── .keep ├── bin ├── rails └── rubocop ├── config └── routes.rb ├── kinde_api ├── .gitignore ├── .rspec ├── README.md ├── docs │ ├── APIsApi.md │ ├── AddAPIsRequest.md │ ├── AddOrganizationUsersRequest.md │ ├── AddOrganizationUsersRequestUsersInner.md │ ├── AddOrganizationUsersResponse.md │ ├── Api.md │ ├── ApiApplicationsInner.md │ ├── ApiResult.md │ ├── Apis.md │ ├── Applications.md │ ├── ApplicationsApi.md │ ├── BusinessApi.md │ ├── CallbacksApi.md │ ├── ConnectedAppsAccessToken.md │ ├── ConnectedAppsApi.md │ ├── ConnectedAppsAuthUrl.md │ ├── CreateApplicationRequest.md │ ├── CreateApplicationResponse.md │ ├── CreateApplicationResponseApplication.md │ ├── CreateFeatureFlagRequest.md │ ├── CreateOrganizationRequest.md │ ├── CreateOrganizationResponse.md │ ├── CreateOrganizationResponseOrganization.md │ ├── CreateOrganizationUserPermissionRequest.md │ ├── CreateOrganizationUserRoleRequest.md │ ├── CreatePermissionRequest.md │ ├── CreateRoleRequest.md │ ├── CreateSubscriberSuccessResponse.md │ ├── CreateSubscriberSuccessResponseSubscriber.md │ ├── CreateUserRequest.md │ ├── CreateUserRequestIdentitiesInner.md │ ├── CreateUserRequestIdentitiesInnerDetails.md │ ├── CreateUserRequestProfile.md │ ├── CreateUserResponse.md │ ├── EnvironmentsApi.md │ ├── Error.md │ ├── ErrorResponse.md │ ├── FeatureFlagsApi.md │ ├── GetApplicationResponse.md │ ├── GetApplicationResponseApplication.md │ ├── GetApplicationsResponse.md │ ├── GetEnvironmentFeatureFlagsResponse.md │ ├── GetOrganizationFeatureFlagsResponse.md │ ├── GetOrganizationFeatureFlagsResponseFeatureFlagsValue.md │ ├── GetOrganizationUsersResponse.md │ ├── GetOrganizationsResponse.md │ ├── GetOrganizationsUserPermissionsResponse.md │ ├── GetOrganizationsUserRolesResponse.md │ ├── GetPermissionsResponse.md │ ├── GetRedirectCallbackUrlsResponse.md │ ├── GetRolesResponse.md │ ├── GetSubscriberResponse.md │ ├── GetSubscribersResponse.md │ ├── IndustriesApi.md │ ├── LogoutRedirectUrls.md │ ├── OAuthApi.md │ ├── Organization.md │ ├── OrganizationUser.md │ ├── OrganizationUserPermission.md │ ├── OrganizationUserPermissionRolesInner.md │ ├── OrganizationUserRole.md │ ├── OrganizationUserRolePermissions.md │ ├── OrganizationUserRolePermissionsPermissions.md │ ├── OrganizationsApi.md │ ├── Permissions.md │ ├── PermissionsApi.md │ ├── RedirectCallbackUrls.md │ ├── ReplaceLogoutRedirectURLsRequest.md │ ├── ReplaceRedirectCallbackURLsRequest.md │ ├── Role.md │ ├── Roles.md │ ├── RolesApi.md │ ├── RolesPermissionResponseInner.md │ ├── Subscriber.md │ ├── SubscribersApi.md │ ├── SubscribersSubscriber.md │ ├── SuccessResponse.md │ ├── TimezonesApi.md │ ├── TokenErrorResponse.md │ ├── TokenIntrospect.md │ ├── UpdateAPIApplicationsRequest.md │ ├── UpdateAPIApplicationsRequestApplicationsInner.md │ ├── UpdateApplicationRequest.md │ ├── UpdateEnvironementFeatureFlagOverrideRequest.md │ ├── UpdateOrganizationRequest.md │ ├── UpdateOrganizationUsersRequest.md │ ├── UpdateOrganizationUsersRequestUsersInner.md │ ├── UpdateOrganizationUsersResponse.md │ ├── UpdateRolePermissionsRequest.md │ ├── UpdateRolePermissionsRequestPermissionsInner.md │ ├── UpdateRolePermissionsResponse.md │ ├── UpdateRolesRequest.md │ ├── UpdateUserRequest.md │ ├── UpdateUserResponse.md │ ├── User.md │ ├── UserIdentitiesInner.md │ ├── UserIdentity.md │ ├── UserIdentityResult.md │ ├── UserProfile.md │ ├── UserProfileV2.md │ ├── UsersApi.md │ ├── UsersResponse.md │ └── UsersResponseUsersInner.md ├── lib │ ├── kinde_api.rb │ └── kinde_api │ │ ├── api │ │ ├── apis_api.rb │ │ ├── applications_api.rb │ │ ├── business_api.rb │ │ ├── callbacks_api.rb │ │ ├── connected_apps_api.rb │ │ ├── environments_api.rb │ │ ├── feature_flags_api.rb │ │ ├── industries_api.rb │ │ ├── o_auth_api.rb │ │ ├── organizations_api.rb │ │ ├── permissions_api.rb │ │ ├── roles_api.rb │ │ ├── subscribers_api.rb │ │ ├── timezones_api.rb │ │ └── users_api.rb │ │ ├── api_client.rb │ │ ├── api_error.rb │ │ ├── configuration.rb │ │ ├── models │ │ ├── add_apis_request.rb │ │ ├── add_organization_users_request.rb │ │ ├── add_organization_users_request_users_inner.rb │ │ ├── add_organization_users_response.rb │ │ ├── api.rb │ │ ├── api_applications_inner.rb │ │ ├── api_result.rb │ │ ├── apis.rb │ │ ├── applications.rb │ │ ├── connected_apps_access_token.rb │ │ ├── connected_apps_auth_url.rb │ │ ├── create_application_request.rb │ │ ├── create_application_response.rb │ │ ├── create_application_response_application.rb │ │ ├── create_feature_flag_request.rb │ │ ├── create_organization_request.rb │ │ ├── create_organization_response.rb │ │ ├── create_organization_response_organization.rb │ │ ├── create_organization_user_permission_request.rb │ │ ├── create_organization_user_role_request.rb │ │ ├── create_permission_request.rb │ │ ├── create_role_request.rb │ │ ├── create_subscriber_success_response.rb │ │ ├── create_subscriber_success_response_subscriber.rb │ │ ├── create_user_request.rb │ │ ├── create_user_request_identities_inner.rb │ │ ├── create_user_request_identities_inner_details.rb │ │ ├── create_user_request_profile.rb │ │ ├── create_user_response.rb │ │ ├── error.rb │ │ ├── error_response.rb │ │ ├── get_application_response.rb │ │ ├── get_application_response_application.rb │ │ ├── get_applications_response.rb │ │ ├── get_environment_feature_flags_response.rb │ │ ├── get_organization_feature_flags_response.rb │ │ ├── get_organization_feature_flags_response_feature_flags_value.rb │ │ ├── get_organization_users_response.rb │ │ ├── get_organizations_response.rb │ │ ├── get_organizations_user_permissions_response.rb │ │ ├── get_organizations_user_roles_response.rb │ │ ├── get_permissions_response.rb │ │ ├── get_redirect_callback_urls_response.rb │ │ ├── get_roles_response.rb │ │ ├── get_subscriber_response.rb │ │ ├── get_subscribers_response.rb │ │ ├── logout_redirect_urls.rb │ │ ├── organization.rb │ │ ├── organization_user.rb │ │ ├── organization_user_permission.rb │ │ ├── organization_user_permission_roles_inner.rb │ │ ├── organization_user_role.rb │ │ ├── organization_user_role_permissions.rb │ │ ├── organization_user_role_permissions_permissions.rb │ │ ├── permissions.rb │ │ ├── redirect_callback_urls.rb │ │ ├── replace_logout_redirect_urls_request.rb │ │ ├── replace_redirect_callback_urls_request.rb │ │ ├── role.rb │ │ ├── roles.rb │ │ ├── roles_permission_response_inner.rb │ │ ├── subscriber.rb │ │ ├── subscribers_subscriber.rb │ │ ├── success_response.rb │ │ ├── token_error_response.rb │ │ ├── token_introspect.rb │ │ ├── update_api_applications_request.rb │ │ ├── update_api_applications_request_applications_inner.rb │ │ ├── update_application_request.rb │ │ ├── update_environement_feature_flag_override_request.rb │ │ ├── update_organization_request.rb │ │ ├── update_organization_users_request.rb │ │ ├── update_organization_users_request_users_inner.rb │ │ ├── update_organization_users_response.rb │ │ ├── update_role_permissions_request.rb │ │ ├── update_role_permissions_request_permissions_inner.rb │ │ ├── update_role_permissions_response.rb │ │ ├── update_roles_request.rb │ │ ├── update_user_request.rb │ │ ├── update_user_response.rb │ │ ├── user.rb │ │ ├── user_identities_inner.rb │ │ ├── user_identity.rb │ │ ├── user_identity_result.rb │ │ ├── user_profile.rb │ │ ├── user_profile_v2.rb │ │ ├── users_response.rb │ │ └── users_response_users_inner.rb │ │ └── version.rb └── spec │ ├── api │ ├── apis_api_spec.rb │ ├── applications_api_spec.rb │ ├── business_api_spec.rb │ ├── callbacks_api_spec.rb │ ├── connected_apps_api_spec.rb │ ├── environments_api_spec.rb │ ├── feature_flags_api_spec.rb │ ├── industries_api_spec.rb │ ├── o_auth_api_spec.rb │ ├── organizations_api_spec.rb │ ├── permissions_api_spec.rb │ ├── roles_api_spec.rb │ ├── subscribers_api_spec.rb │ ├── timezones_api_spec.rb │ └── users_api_spec.rb │ ├── api_client_spec.rb │ ├── configuration_spec.rb │ ├── models │ ├── add_apis_request_spec.rb │ ├── add_organization_users_request_spec.rb │ ├── add_organization_users_request_users_inner_spec.rb │ ├── add_organization_users_response_spec.rb │ ├── api_applications_inner_spec.rb │ ├── api_result_spec.rb │ ├── api_spec.rb │ ├── apis_spec.rb │ ├── applications_spec.rb │ ├── connected_apps_access_token_spec.rb │ ├── connected_apps_auth_url_spec.rb │ ├── create_application_request_spec.rb │ ├── create_application_response_application_spec.rb │ ├── create_application_response_spec.rb │ ├── create_feature_flag_request_spec.rb │ ├── create_organization_request_spec.rb │ ├── create_organization_response_organization_spec.rb │ ├── create_organization_response_spec.rb │ ├── create_organization_user_permission_request_spec.rb │ ├── create_organization_user_role_request_spec.rb │ ├── create_permission_request_spec.rb │ ├── create_role_request_spec.rb │ ├── create_subscriber_success_response_spec.rb │ ├── create_subscriber_success_response_subscriber_spec.rb │ ├── create_user_request_identities_inner_details_spec.rb │ ├── create_user_request_identities_inner_spec.rb │ ├── create_user_request_profile_spec.rb │ ├── create_user_request_spec.rb │ ├── create_user_response_spec.rb │ ├── error_response_spec.rb │ ├── error_spec.rb │ ├── get_application_response_application_spec.rb │ ├── get_application_response_spec.rb │ ├── get_applications_response_spec.rb │ ├── get_environment_feature_flags_response_spec.rb │ ├── get_organization_feature_flags_response_feature_flags_value_spec.rb │ ├── get_organization_feature_flags_response_spec.rb │ ├── get_organization_users_response_spec.rb │ ├── get_organizations_response_spec.rb │ ├── get_organizations_user_permissions_response_spec.rb │ ├── get_organizations_user_roles_response_spec.rb │ ├── get_permissions_response_spec.rb │ ├── get_redirect_callback_urls_response_spec.rb │ ├── get_roles_response_spec.rb │ ├── get_subscriber_response_spec.rb │ ├── get_subscribers_response_spec.rb │ ├── logout_redirect_urls_spec.rb │ ├── organization_spec.rb │ ├── organization_user_permission_roles_inner_spec.rb │ ├── organization_user_permission_spec.rb │ ├── organization_user_role_permissions_permissions_spec.rb │ ├── organization_user_role_permissions_spec.rb │ ├── organization_user_role_spec.rb │ ├── organization_user_spec.rb │ ├── permissions_spec.rb │ ├── redirect_callback_urls_spec.rb │ ├── replace_logout_redirect_urls_request_spec.rb │ ├── replace_redirect_callback_urls_request_spec.rb │ ├── role_spec.rb │ ├── roles_permission_response_inner_spec.rb │ ├── roles_spec.rb │ ├── subscriber_spec.rb │ ├── subscribers_subscriber_spec.rb │ ├── success_response_spec.rb │ ├── token_error_response_spec.rb │ ├── token_introspect_spec.rb │ ├── update_api_applications_request_applications_inner_spec.rb │ ├── update_api_applications_request_spec.rb │ ├── update_application_request_spec.rb │ ├── update_environement_feature_flag_override_request_spec.rb │ ├── update_organization_request_spec.rb │ ├── update_organization_users_request_spec.rb │ ├── update_organization_users_request_users_inner_spec.rb │ ├── update_organization_users_response_spec.rb │ ├── update_role_permissions_request_permissions_inner_spec.rb │ ├── update_role_permissions_request_spec.rb │ ├── update_role_permissions_response_spec.rb │ ├── update_roles_request_spec.rb │ ├── update_user_request_spec.rb │ ├── update_user_response_spec.rb │ ├── user_identities_inner_spec.rb │ ├── user_identity_result_spec.rb │ ├── user_identity_spec.rb │ ├── user_profile_spec.rb │ ├── user_profile_v2_spec.rb │ ├── user_spec.rb │ ├── users_response_spec.rb │ └── users_response_users_inner_spec.rb │ └── spec_helper.rb ├── kinde_sdk.gemspec ├── lib ├── kinde_sdk.rb └── kinde_sdk │ ├── client.rb │ ├── client │ ├── feature_flags.rb │ └── permissions.rb │ ├── configuration.rb │ ├── current.rb │ ├── engine.rb │ ├── middleware.rb │ ├── token_manager.rb │ ├── token_store.rb │ └── version.rb ├── openapitools.json ├── spec ├── examples.txt ├── kinde_sdk_spec.rb └── spec_helper.rb └── test ├── controllers └── .keep ├── dummy ├── Rakefile ├── app │ ├── assets │ │ ├── images │ │ │ └── .keep │ │ └── stylesheets │ │ │ └── application.css │ ├── controllers │ │ ├── application_controller.rb │ │ └── concerns │ │ │ └── .keep │ ├── helpers │ │ └── application_helper.rb │ ├── jobs │ │ └── application_job.rb │ ├── mailers │ │ └── application_mailer.rb │ ├── models │ │ ├── application_record.rb │ │ └── concerns │ │ │ └── .keep │ └── views │ │ ├── layouts │ │ ├── application.html.erb │ │ ├── mailer.html.erb │ │ └── mailer.text.erb │ │ └── pwa │ │ ├── manifest.json.erb │ │ └── service-worker.js ├── bin │ ├── dev │ ├── rails │ ├── rake │ └── setup ├── config.ru ├── config │ ├── application.rb │ ├── boot.rb │ ├── cable.yml │ ├── database.yml │ ├── environment.rb │ ├── environments │ │ ├── development.rb │ │ ├── production.rb │ │ └── test.rb │ ├── initializers │ │ ├── assets.rb │ │ ├── content_security_policy.rb │ │ ├── filter_parameter_logging.rb │ │ └── inflections.rb │ ├── locales │ │ └── en.yml │ ├── puma.rb │ ├── routes.rb │ └── storage.yml ├── log │ └── .keep ├── public │ ├── 400.html │ ├── 404.html │ ├── 406-unsupported-browser.html │ ├── 422.html │ ├── 500.html │ ├── icon.png │ └── icon.svg ├── storage │ └── .keep └── tmp │ ├── .keep │ ├── pids │ └── .keep │ └── storage │ └── .keep ├── fixtures └── files │ └── .keep ├── helpers └── .keep ├── integration ├── .keep └── navigation_test.rb ├── kinde_sdk └── ruby │ └── sdk_test.rb ├── mailers └── .keep ├── models └── .keep └── test_helper.rb /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: bundler 4 | directory: "/" 5 | schedule: 6 | interval: daily 7 | open-pull-requests-limit: 10 8 | - package-ecosystem: github-actions 9 | directory: "/" 10 | schedule: 11 | interval: daily 12 | open-pull-requests-limit: 10 13 | -------------------------------------------------------------------------------- /.github/workflows/ruby.yml: -------------------------------------------------------------------------------- 1 | name: Ruby 2 | 3 | on: 4 | push: 5 | branches: [ "main" ] 6 | pull_request: 7 | branches: [ "main" ] 8 | 9 | permissions: 10 | contents: read 11 | 12 | jobs: 13 | test: 14 | runs-on: ubuntu-latest 15 | strategy: 16 | fail-fast: false 17 | matrix: 18 | ruby: ['3.4.2'] 19 | 20 | steps: 21 | - uses: actions/checkout@v4 22 | - uses: ruby/setup-ruby@v1 23 | with: 24 | ruby-version: ${{ matrix.ruby }} 25 | bundler-cache: true # runs 'bundle install' and caches installed gems automatically 26 | - run: bundle exec rspec 27 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | Gemfile.lock 2 | 3 | .idea/ 4 | 5 | *.gem 6 | log/* 7 | tmp/*spec/examples.txt 8 | -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | --require spec_helper 3 | -------------------------------------------------------------------------------- /.ruby-version: -------------------------------------------------------------------------------- 1 | 3.4.0 2 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | # Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" 4 | gem "rails", "~> 7.0.4" 5 | gem 'mutex_m' # Required for Ruby 3.4.0+ 6 | gem 'rspec-core' 7 | gem 'rspec' 8 | gem 'typhoeus', '~> 1.0', '>= 1.0.1' 9 | gem 'oauth2', '~> 2.0' 10 | gem 'pkce_challenge' 11 | gem 'faraday-follow_redirects' 12 | gem 'httparty', '~> 0.23.1' 13 | gem 'jwt', '~> 2.2' 14 | 15 | group :development, :test do 16 | gem "rake", "~> 13.0.1" 17 | gem "pry-byebug" 18 | gem "rubocop" 19 | gem "rubocop-rake", require: false 20 | gem "rubocop-rspec", require: false 21 | end 22 | 23 | group :test do 24 | gem 'webmock' 25 | end 26 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Kinde 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Kinde Ruby SDK 2 | 3 | The Kinde SDK for Ruby. 4 | 5 | You can also use the Ruby starter kit [here](https://github.com/kinde-starter-kits/ruby-starter-kit). 6 | 7 | [](https://makeapullrequest.com) [](https://kinde.com/docs/developer-tools) [](https://thekindecommunity.slack.com) 8 | 9 | ## Documentation 10 | 11 | For details on integrating this SDK into your project, head over to the [Kinde docs](https://kinde.com/docs/) and see the [Ruby SDK](https://kinde.com/docs/developer-tools/ruby-sdk) doc 👍🏼. 12 | 13 | ## Publishing 14 | 15 | The core team handles publishing. 16 | 17 | ## Contributing 18 | 19 | Please refer to Kinde’s [contributing guidelines](https://github.com/kinde-oss/.github/blob/489e2ca9c3307c2b2e098a885e22f2239116394a/CONTRIBUTING.md). 20 | 21 | ## License 22 | 23 | By contributing to Kinde, you agree that your contributions will be licensed under its MIT License. 24 | -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- 1 | require "bundler/gem_tasks" 2 | 3 | begin 4 | require 'rspec/core/rake_task' 5 | RSpec::Core::RakeTask.new(:spec) do |t| 6 | t.pattern = ['spec/*_spec.rb', 'kinde_api/spec/*_spec.rb', 'kinde_api/spec/*/*_spec.rb'] 7 | t.rspec_opts = '--require spec_helper' # Ensures spec/spec_helper.rb is loaded 8 | end 9 | task default: :spec 10 | rescue LoadError 11 | # Handle case where rspec-core isn't available 12 | end -------------------------------------------------------------------------------- /app/assets/images/kinde/ruby/sdk/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kinde-oss/kinde-ruby-sdk/f4d134345b0897650c72124a44a2a8ed1ecda48b/app/assets/images/kinde/ruby/sdk/.keep -------------------------------------------------------------------------------- /app/assets/stylesheets/kinde/ruby/sdk/application.css: -------------------------------------------------------------------------------- 1 | /* 2 | * This is a manifest file that'll be compiled into application.css, which will include all the files 3 | * listed below. 4 | * 5 | * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, 6 | * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. 7 | * 8 | * You're free to add application-wide styles to this file and they'll appear at the bottom of the 9 | * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS 10 | * files in this directory. Styles in this file should be added after the last require_* statement. 11 | * It is generally better to create a new file per style scope. 12 | * 13 | *= require_tree . 14 | *= require_self 15 | */ 16 | -------------------------------------------------------------------------------- /app/controllers/concerns/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kinde-oss/kinde-ruby-sdk/f4d134345b0897650c72124a44a2a8ed1ecda48b/app/controllers/concerns/.keep -------------------------------------------------------------------------------- /app/helpers/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kinde-oss/kinde-ruby-sdk/f4d134345b0897650c72124a44a2a8ed1ecda48b/app/helpers/.keep -------------------------------------------------------------------------------- /app/jobs/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kinde-oss/kinde-ruby-sdk/f4d134345b0897650c72124a44a2a8ed1ecda48b/app/jobs/.keep -------------------------------------------------------------------------------- /app/mailers/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kinde-oss/kinde-ruby-sdk/f4d134345b0897650c72124a44a2a8ed1ecda48b/app/mailers/.keep -------------------------------------------------------------------------------- /app/models/concerns/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kinde-oss/kinde-ruby-sdk/f4d134345b0897650c72124a44a2a8ed1ecda48b/app/models/concerns/.keep -------------------------------------------------------------------------------- /app/views/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kinde-oss/kinde-ruby-sdk/f4d134345b0897650c72124a44a2a8ed1ecda48b/app/views/.keep -------------------------------------------------------------------------------- /bin/rails: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | # This command will automatically be run when you run "rails" with Rails gems 3 | # installed from the root of your application. 4 | 5 | ENGINE_ROOT = File.expand_path("..", __dir__) 6 | ENGINE_PATH = File.expand_path("../lib/kinde/ruby/sdk/engine", __dir__) 7 | APP_PATH = File.expand_path("../test/dummy/config/application", __dir__) 8 | 9 | # Set up gems listed in the Gemfile. 10 | ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) 11 | require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"]) 12 | 13 | require "rails/all" 14 | require "rails/engine/commands" 15 | -------------------------------------------------------------------------------- /bin/rubocop: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require "rubygems" 3 | require "bundler/setup" 4 | 5 | # explicit rubocop config increases performance slightly while avoiding config confusion. 6 | ARGV.unshift("--config", File.expand_path("../.rubocop.yml", __dir__)) 7 | 8 | load Gem.bin_path("rubocop", "rubocop") 9 | -------------------------------------------------------------------------------- /config/routes.rb: -------------------------------------------------------------------------------- 1 | KindeSdk::Engine.routes.draw do 2 | # Authentication routes 3 | get "auth" => "auth#auth" 4 | get "callback" => "auth#callback" 5 | get "logout" => "auth#logout" 6 | get "logout_callback" => "auth#logout_callback" 7 | get "refresh_token" => "auth#refresh_token" 8 | get "client_credentials_auth" => "auth#client_credentials_auth" 9 | end -------------------------------------------------------------------------------- /kinde_api/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated by: https://openapi-generator.tech 2 | # 3 | 4 | *.gem 5 | *.rbc 6 | /.config 7 | /coverage/ 8 | /InstalledFiles 9 | /pkg/ 10 | /spec/reports/ 11 | /spec/examples.txt 12 | /test/tmp/ 13 | /test/version_tmp/ 14 | /tmp/ 15 | 16 | ## Specific to RubyMotion: 17 | .dat* 18 | .repl_history 19 | build/ 20 | 21 | ## Documentation cache and generated files: 22 | /.yardoc/ 23 | /_yardoc/ 24 | /doc/ 25 | /rdoc/ 26 | 27 | ## Environment normalization: 28 | /.bundle/ 29 | /vendor/bundle 30 | /lib/bundler/man/ 31 | 32 | # for a library or gem, you might want to ignore these files since the code is 33 | # intended to run in multiple environments; otherwise, check them in: 34 | # Gemfile.lock 35 | # .ruby-version 36 | # .ruby-gemset 37 | 38 | # unless supporting rvm < 1.11.0 or doing something fancy, ignore this: 39 | .rvmrc 40 | -------------------------------------------------------------------------------- /kinde_api/.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | --require spec_helper 3 | -------------------------------------------------------------------------------- /kinde_api/docs/AddAPIsRequest.md: -------------------------------------------------------------------------------- 1 | # KindeApi::AddAPIsRequest 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **name** | **String** | | | 8 | | **audience** | **String** | | | 9 | 10 | ## Example 11 | 12 | ```ruby 13 | require 'kinde_api' 14 | 15 | instance = KindeApi::AddAPIsRequest.new( 16 | name: null, 17 | audience: null 18 | ) 19 | ``` 20 | 21 | -------------------------------------------------------------------------------- /kinde_api/docs/AddOrganizationUsersRequest.md: -------------------------------------------------------------------------------- 1 | # KindeApi::AddOrganizationUsersRequest 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **users** | [**Array<AddOrganizationUsersRequestUsersInner>**](AddOrganizationUsersRequestUsersInner.md) | Users to be added to the organization. | [optional] | 8 | 9 | ## Example 10 | 11 | ```ruby 12 | require 'kinde_api' 13 | 14 | instance = KindeApi::AddOrganizationUsersRequest.new( 15 | users: null 16 | ) 17 | ``` 18 | 19 | -------------------------------------------------------------------------------- /kinde_api/docs/AddOrganizationUsersRequestUsersInner.md: -------------------------------------------------------------------------------- 1 | # KindeApi::AddOrganizationUsersRequestUsersInner 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | The users id. | [optional] | 8 | | **roles** | **Array<String>** | Role keys to assign to the user. | [optional] | 9 | | **permissions** | **Array<String>** | Permission keys to assign to the user. | [optional] | 10 | 11 | ## Example 12 | 13 | ```ruby 14 | require 'kinde_api' 15 | 16 | instance = KindeApi::AddOrganizationUsersRequestUsersInner.new( 17 | id: null, 18 | roles: null, 19 | permissions: null 20 | ) 21 | ``` 22 | 23 | -------------------------------------------------------------------------------- /kinde_api/docs/AddOrganizationUsersResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::AddOrganizationUsersResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **code** | **String** | Response code. | [optional] | 8 | | **message** | **String** | Response message. | [optional] | 9 | | **users_added** | **Array<String>** | | [optional] | 10 | 11 | ## Example 12 | 13 | ```ruby 14 | require 'kinde_api' 15 | 16 | instance = KindeApi::AddOrganizationUsersResponse.new( 17 | code: null, 18 | message: null, 19 | users_added: null 20 | ) 21 | ``` 22 | 23 | -------------------------------------------------------------------------------- /kinde_api/docs/Api.md: -------------------------------------------------------------------------------- 1 | # KindeApi::Api 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | The API's unique identifier. | [optional] | 8 | | **code** | **String** | Response code. | [optional] | 9 | | **name** | **String** | The API's name. | [optional] | 10 | | **message** | **String** | Response message. | [optional] | 11 | | **audience** | **String** | The API's audience. | [optional] | 12 | | **applications** | [**Array<ApiApplicationsInner>**](ApiApplicationsInner.md) | | [optional] | 13 | 14 | ## Example 15 | 16 | ```ruby 17 | require 'kinde_api' 18 | 19 | instance = KindeApi::Api.new( 20 | id: null, 21 | code: null, 22 | name: null, 23 | message: null, 24 | audience: null, 25 | applications: null 26 | ) 27 | ``` 28 | 29 | -------------------------------------------------------------------------------- /kinde_api/docs/ApiApplicationsInner.md: -------------------------------------------------------------------------------- 1 | # KindeApi::ApiApplicationsInner 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | | [optional] | 8 | | **name** | **String** | | [optional] | 9 | | **type** | **String** | | [optional] | 10 | | **is_active** | **Boolean** | | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::ApiApplicationsInner.new( 18 | id: null, 19 | name: null, 20 | type: null, 21 | is_active: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/ApiResult.md: -------------------------------------------------------------------------------- 1 | # KindeApi::ApiResult 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **result** | **String** | The result of the api operation. | [optional] | 8 | 9 | ## Example 10 | 11 | ```ruby 12 | require 'kinde_api' 13 | 14 | instance = KindeApi::ApiResult.new( 15 | result: null 16 | ) 17 | ``` 18 | 19 | -------------------------------------------------------------------------------- /kinde_api/docs/Apis.md: -------------------------------------------------------------------------------- 1 | # KindeApi::Apis 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | Unique id of the API. | [optional] | 8 | | **name** | **String** | The API's name. | [optional] | 9 | | **audience** | **String** | The logical identifier for the API. | [optional] | 10 | | **is_management_api** | **Boolean** | Whether it is the management API or not. | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::Apis.new( 18 | id: null, 19 | name: null, 20 | audience: null, 21 | is_management_api: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/Applications.md: -------------------------------------------------------------------------------- 1 | # KindeApi::Applications 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | | [optional] | 8 | | **name** | **String** | | [optional] | 9 | | **type** | **String** | | [optional] | 10 | 11 | ## Example 12 | 13 | ```ruby 14 | require 'kinde_api' 15 | 16 | instance = KindeApi::Applications.new( 17 | id: null, 18 | name: null, 19 | type: null 20 | ) 21 | ``` 22 | 23 | -------------------------------------------------------------------------------- /kinde_api/docs/ConnectedAppsAccessToken.md: -------------------------------------------------------------------------------- 1 | # KindeApi::ConnectedAppsAccessToken 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **access_token** | **String** | The access token to access a third-party provider. | [optional] | 8 | | **access_token_expiry** | **String** | The date and time that the access token expires. | [optional] | 9 | 10 | ## Example 11 | 12 | ```ruby 13 | require 'kinde_api' 14 | 15 | instance = KindeApi::ConnectedAppsAccessToken.new( 16 | access_token: null, 17 | access_token_expiry: null 18 | ) 19 | ``` 20 | 21 | -------------------------------------------------------------------------------- /kinde_api/docs/ConnectedAppsAuthUrl.md: -------------------------------------------------------------------------------- 1 | # KindeApi::ConnectedAppsAuthUrl 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **url** | **String** | A URL that is used to authenticate an end-user against a connected app. | [optional] | 8 | | **session_id** | **String** | A unique identifier for the login session. | [optional] | 9 | 10 | ## Example 11 | 12 | ```ruby 13 | require 'kinde_api' 14 | 15 | instance = KindeApi::ConnectedAppsAuthUrl.new( 16 | url: null, 17 | session_id: null 18 | ) 19 | ``` 20 | 21 | -------------------------------------------------------------------------------- /kinde_api/docs/CreateApplicationRequest.md: -------------------------------------------------------------------------------- 1 | # KindeApi::CreateApplicationRequest 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **name** | **String** | The application's name. | [optional] | 8 | | **type** | **String** | The application's type. | [optional] | 9 | 10 | ## Example 11 | 12 | ```ruby 13 | require 'kinde_api' 14 | 15 | instance = KindeApi::CreateApplicationRequest.new( 16 | name: null, 17 | type: null 18 | ) 19 | ``` 20 | 21 | -------------------------------------------------------------------------------- /kinde_api/docs/CreateApplicationResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::CreateApplicationResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **code** | **String** | Response code. | [optional] | 8 | | **message** | **String** | Response message. | [optional] | 9 | | **application** | [**CreateApplicationResponseApplication**](CreateApplicationResponseApplication.md) | | [optional] | 10 | 11 | ## Example 12 | 13 | ```ruby 14 | require 'kinde_api' 15 | 16 | instance = KindeApi::CreateApplicationResponse.new( 17 | code: null, 18 | message: null, 19 | application: null 20 | ) 21 | ``` 22 | 23 | -------------------------------------------------------------------------------- /kinde_api/docs/CreateApplicationResponseApplication.md: -------------------------------------------------------------------------------- 1 | # KindeApi::CreateApplicationResponseApplication 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | The application's identifier. | [optional] | 8 | | **client_id** | **String** | The application's client id. | [optional] | 9 | | **client_secret** | **String** | The application's client secret. | [optional] | 10 | 11 | ## Example 12 | 13 | ```ruby 14 | require 'kinde_api' 15 | 16 | instance = KindeApi::CreateApplicationResponseApplication.new( 17 | id: null, 18 | client_id: null, 19 | client_secret: null 20 | ) 21 | ``` 22 | 23 | -------------------------------------------------------------------------------- /kinde_api/docs/CreateFeatureFlagRequest.md: -------------------------------------------------------------------------------- 1 | # KindeApi::CreateFeatureFlagRequest 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **name** | **String** | The name of the flag. | | 8 | | **description** | **String** | Description of the flag purpose. | [optional] | 9 | | **key** | **String** | The flag identifier to use in code. | | 10 | | **type** | **String** | The variable type. | | 11 | | **allow_override_level** | **String** | Allow the flag to be overridden at a different level. | [optional] | 12 | | **default_value** | **String** | Default value for the flag used by environments and organizations. | | 13 | 14 | ## Example 15 | 16 | ```ruby 17 | require 'kinde_api' 18 | 19 | instance = KindeApi::CreateFeatureFlagRequest.new( 20 | name: null, 21 | description: null, 22 | key: null, 23 | type: null, 24 | allow_override_level: null, 25 | default_value: null 26 | ) 27 | ``` 28 | 29 | -------------------------------------------------------------------------------- /kinde_api/docs/CreateOrganizationResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::CreateOrganizationResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **message** | **String** | | [optional] | 8 | | **code** | **String** | | [optional] | 9 | | **organization** | [**CreateOrganizationResponseOrganization**](CreateOrganizationResponseOrganization.md) | | [optional] | 10 | 11 | ## Example 12 | 13 | ```ruby 14 | require 'kinde_api' 15 | 16 | instance = KindeApi::CreateOrganizationResponse.new( 17 | message: null, 18 | code: null, 19 | organization: null 20 | ) 21 | ``` 22 | 23 | -------------------------------------------------------------------------------- /kinde_api/docs/CreateOrganizationResponseOrganization.md: -------------------------------------------------------------------------------- 1 | # KindeApi::CreateOrganizationResponseOrganization 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **code** | **String** | The organization's code. | [optional] | 8 | 9 | ## Example 10 | 11 | ```ruby 12 | require 'kinde_api' 13 | 14 | instance = KindeApi::CreateOrganizationResponseOrganization.new( 15 | code: null 16 | ) 17 | ``` 18 | 19 | -------------------------------------------------------------------------------- /kinde_api/docs/CreateOrganizationUserPermissionRequest.md: -------------------------------------------------------------------------------- 1 | # KindeApi::CreateOrganizationUserPermissionRequest 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **permission_id** | **String** | The permission id. | [optional] | 8 | 9 | ## Example 10 | 11 | ```ruby 12 | require 'kinde_api' 13 | 14 | instance = KindeApi::CreateOrganizationUserPermissionRequest.new( 15 | permission_id: null 16 | ) 17 | ``` 18 | 19 | -------------------------------------------------------------------------------- /kinde_api/docs/CreateOrganizationUserRoleRequest.md: -------------------------------------------------------------------------------- 1 | # KindeApi::CreateOrganizationUserRoleRequest 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **role_id** | **String** | The role id. | [optional] | 8 | 9 | ## Example 10 | 11 | ```ruby 12 | require 'kinde_api' 13 | 14 | instance = KindeApi::CreateOrganizationUserRoleRequest.new( 15 | role_id: null 16 | ) 17 | ``` 18 | 19 | -------------------------------------------------------------------------------- /kinde_api/docs/CreatePermissionRequest.md: -------------------------------------------------------------------------------- 1 | # KindeApi::CreatePermissionRequest 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **name** | **String** | The permission's name. | [optional] | 8 | | **description** | **String** | The permission's description. | [optional] | 9 | | **key** | **String** | The permission identifier to use in code. | [optional] | 10 | 11 | ## Example 12 | 13 | ```ruby 14 | require 'kinde_api' 15 | 16 | instance = KindeApi::CreatePermissionRequest.new( 17 | name: null, 18 | description: null, 19 | key: null 20 | ) 21 | ``` 22 | 23 | -------------------------------------------------------------------------------- /kinde_api/docs/CreateRoleRequest.md: -------------------------------------------------------------------------------- 1 | # KindeApi::CreateRoleRequest 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **name** | **String** | The role's name. | [optional] | 8 | | **description** | **String** | The role's description. | [optional] | 9 | | **key** | **String** | The role identifier to use in code. | [optional] | 10 | | **is_default_role** | **Boolean** | Set role as default for new users. | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::CreateRoleRequest.new( 18 | name: null, 19 | description: null, 20 | key: null, 21 | is_default_role: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/CreateSubscriberSuccessResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::CreateSubscriberSuccessResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **subscriber** | [**CreateSubscriberSuccessResponseSubscriber**](CreateSubscriberSuccessResponseSubscriber.md) | | [optional] | 8 | 9 | ## Example 10 | 11 | ```ruby 12 | require 'kinde_api' 13 | 14 | instance = KindeApi::CreateSubscriberSuccessResponse.new( 15 | subscriber: null 16 | ) 17 | ``` 18 | 19 | -------------------------------------------------------------------------------- /kinde_api/docs/CreateSubscriberSuccessResponseSubscriber.md: -------------------------------------------------------------------------------- 1 | # KindeApi::CreateSubscriberSuccessResponseSubscriber 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **subscriber_id** | **String** | A unique identifier for the subscriber. | [optional] | 8 | 9 | ## Example 10 | 11 | ```ruby 12 | require 'kinde_api' 13 | 14 | instance = KindeApi::CreateSubscriberSuccessResponseSubscriber.new( 15 | subscriber_id: null 16 | ) 17 | ``` 18 | 19 | -------------------------------------------------------------------------------- /kinde_api/docs/CreateUserRequest.md: -------------------------------------------------------------------------------- 1 | # KindeApi::CreateUserRequest 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **profile** | [**CreateUserRequestProfile**](CreateUserRequestProfile.md) | | [optional] | 8 | | **organization_code** | **String** | The unique code associated with the organization you want the user to join. | [optional] | 9 | | **identities** | [**Array<CreateUserRequestIdentitiesInner>**](CreateUserRequestIdentitiesInner.md) | Array of identities to assign to the created user | [optional] | 10 | 11 | ## Example 12 | 13 | ```ruby 14 | require 'kinde_api' 15 | 16 | instance = KindeApi::CreateUserRequest.new( 17 | profile: null, 18 | organization_code: null, 19 | identities: null 20 | ) 21 | ``` 22 | 23 | -------------------------------------------------------------------------------- /kinde_api/docs/CreateUserRequestIdentitiesInner.md: -------------------------------------------------------------------------------- 1 | # KindeApi::CreateUserRequestIdentitiesInner 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **type** | **String** | The type of identity to create, for e.g. email. | [optional] | 8 | | **details** | [**CreateUserRequestIdentitiesInnerDetails**](CreateUserRequestIdentitiesInnerDetails.md) | | [optional] | 9 | 10 | ## Example 11 | 12 | ```ruby 13 | require 'kinde_api' 14 | 15 | instance = KindeApi::CreateUserRequestIdentitiesInner.new( 16 | type: null, 17 | details: null 18 | ) 19 | ``` 20 | 21 | -------------------------------------------------------------------------------- /kinde_api/docs/CreateUserRequestIdentitiesInnerDetails.md: -------------------------------------------------------------------------------- 1 | # KindeApi::CreateUserRequestIdentitiesInnerDetails 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **email** | **String** | The email address of the user. | [optional] | 8 | 9 | ## Example 10 | 11 | ```ruby 12 | require 'kinde_api' 13 | 14 | instance = KindeApi::CreateUserRequestIdentitiesInnerDetails.new( 15 | email: null 16 | ) 17 | ``` 18 | 19 | -------------------------------------------------------------------------------- /kinde_api/docs/CreateUserRequestProfile.md: -------------------------------------------------------------------------------- 1 | # KindeApi::CreateUserRequestProfile 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **given_name** | **String** | User's first name. | [optional] | 8 | | **family_name** | **String** | User's last name. | [optional] | 9 | 10 | ## Example 11 | 12 | ```ruby 13 | require 'kinde_api' 14 | 15 | instance = KindeApi::CreateUserRequestProfile.new( 16 | given_name: null, 17 | family_name: null 18 | ) 19 | ``` 20 | 21 | -------------------------------------------------------------------------------- /kinde_api/docs/CreateUserResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::CreateUserResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | Unique id of the user in Kinde. | [optional] | 8 | | **created** | **Boolean** | True if the user was successfully created. | [optional] | 9 | | **identities** | [**Array<UserIdentity>**](UserIdentity.md) | | [optional] | 10 | 11 | ## Example 12 | 13 | ```ruby 14 | require 'kinde_api' 15 | 16 | instance = KindeApi::CreateUserResponse.new( 17 | id: null, 18 | created: null, 19 | identities: null 20 | ) 21 | ``` 22 | 23 | -------------------------------------------------------------------------------- /kinde_api/docs/Error.md: -------------------------------------------------------------------------------- 1 | # KindeApi::Error 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **code** | **String** | Error code. | [optional] | 8 | | **message** | **String** | Error message. | [optional] | 9 | 10 | ## Example 11 | 12 | ```ruby 13 | require 'kinde_api' 14 | 15 | instance = KindeApi::Error.new( 16 | code: null, 17 | message: null 18 | ) 19 | ``` 20 | 21 | -------------------------------------------------------------------------------- /kinde_api/docs/ErrorResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::ErrorResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **errors** | [**Array<Error>**](Error.md) | | [optional] | 8 | 9 | ## Example 10 | 11 | ```ruby 12 | require 'kinde_api' 13 | 14 | instance = KindeApi::ErrorResponse.new( 15 | errors: null 16 | ) 17 | ``` 18 | 19 | -------------------------------------------------------------------------------- /kinde_api/docs/GetApplicationResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::GetApplicationResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **code** | **String** | Response code. | [optional] | 8 | | **message** | **String** | Response message. | [optional] | 9 | | **application** | [**GetApplicationResponseApplication**](GetApplicationResponseApplication.md) | | [optional] | 10 | 11 | ## Example 12 | 13 | ```ruby 14 | require 'kinde_api' 15 | 16 | instance = KindeApi::GetApplicationResponse.new( 17 | code: null, 18 | message: null, 19 | application: null 20 | ) 21 | ``` 22 | 23 | -------------------------------------------------------------------------------- /kinde_api/docs/GetApplicationResponseApplication.md: -------------------------------------------------------------------------------- 1 | # KindeApi::GetApplicationResponseApplication 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | The application's identifier. | [optional] | 8 | | **name** | **String** | The application's name. | [optional] | 9 | | **type** | **String** | The application's type. | [optional] | 10 | | **client_id** | **String** | The application's client id. | [optional] | 11 | | **client_secret** | **String** | The application's client secret. | [optional] | 12 | 13 | ## Example 14 | 15 | ```ruby 16 | require 'kinde_api' 17 | 18 | instance = KindeApi::GetApplicationResponseApplication.new( 19 | id: null, 20 | name: null, 21 | type: null, 22 | client_id: null, 23 | client_secret: null 24 | ) 25 | ``` 26 | 27 | -------------------------------------------------------------------------------- /kinde_api/docs/GetApplicationsResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::GetApplicationsResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **code** | **String** | Response code. | [optional] | 8 | | **message** | **String** | Response message. | [optional] | 9 | | **applications** | [**Array<Applications>**](Applications.md) | | [optional] | 10 | | **next_token** | **String** | Pagination token. | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::GetApplicationsResponse.new( 18 | code: null, 19 | message: null, 20 | applications: null, 21 | next_token: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/GetEnvironmentFeatureFlagsResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::GetEnvironmentFeatureFlagsResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **code** | **String** | Response code. | [optional] | 8 | | **message** | **String** | Response message. | [optional] | 9 | | **feature_flags** | [**Hash<String, GetOrganizationFeatureFlagsResponseFeatureFlagsValue>**](GetOrganizationFeatureFlagsResponseFeatureFlagsValue.md) | The environment's feature flag settings. | [optional] | 10 | | **next_token** | **String** | Pagination token. | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::GetEnvironmentFeatureFlagsResponse.new( 18 | code: null, 19 | message: null, 20 | feature_flags: null, 21 | next_token: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/GetOrganizationFeatureFlagsResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::GetOrganizationFeatureFlagsResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **code** | **String** | Response code. | [optional] | 8 | | **message** | **String** | Response message. | [optional] | 9 | | **feature_flags** | [**Hash<String, GetOrganizationFeatureFlagsResponseFeatureFlagsValue>**](GetOrganizationFeatureFlagsResponseFeatureFlagsValue.md) | The environment's feature flag settings. | [optional] | 10 | 11 | ## Example 12 | 13 | ```ruby 14 | require 'kinde_api' 15 | 16 | instance = KindeApi::GetOrganizationFeatureFlagsResponse.new( 17 | code: null, 18 | message: null, 19 | feature_flags: null 20 | ) 21 | ``` 22 | 23 | -------------------------------------------------------------------------------- /kinde_api/docs/GetOrganizationFeatureFlagsResponseFeatureFlagsValue.md: -------------------------------------------------------------------------------- 1 | # KindeApi::GetOrganizationFeatureFlagsResponseFeatureFlagsValue 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **type** | **String** | | [optional] | 8 | | **value** | **String** | | [optional] | 9 | 10 | ## Example 11 | 12 | ```ruby 13 | require 'kinde_api' 14 | 15 | instance = KindeApi::GetOrganizationFeatureFlagsResponseFeatureFlagsValue.new( 16 | type: null, 17 | value: null 18 | ) 19 | ``` 20 | 21 | -------------------------------------------------------------------------------- /kinde_api/docs/GetOrganizationUsersResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::GetOrganizationUsersResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **code** | **String** | Response code. | [optional] | 8 | | **message** | **String** | Response message. | [optional] | 9 | | **organization_users** | [**Array<OrganizationUser>**](OrganizationUser.md) | | [optional] | 10 | | **next_token** | **String** | Pagination token. | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::GetOrganizationUsersResponse.new( 18 | code: null, 19 | message: null, 20 | organization_users: null, 21 | next_token: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/GetOrganizationsResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::GetOrganizationsResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **code** | **String** | Response code. | [optional] | 8 | | **message** | **String** | Response message. | [optional] | 9 | | **organizations** | [**Array<Organization>**](Organization.md) | | [optional] | 10 | | **next_token** | **String** | Pagination token. | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::GetOrganizationsResponse.new( 18 | code: null, 19 | message: null, 20 | organizations: null, 21 | next_token: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/GetOrganizationsUserPermissionsResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::GetOrganizationsUserPermissionsResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **code** | **String** | Response code. | [optional] | 8 | | **message** | **String** | Response message. | [optional] | 9 | | **permissions** | [**Array<OrganizationUserPermission>**](OrganizationUserPermission.md) | | [optional] | 10 | 11 | ## Example 12 | 13 | ```ruby 14 | require 'kinde_api' 15 | 16 | instance = KindeApi::GetOrganizationsUserPermissionsResponse.new( 17 | code: null, 18 | message: null, 19 | permissions: null 20 | ) 21 | ``` 22 | 23 | -------------------------------------------------------------------------------- /kinde_api/docs/GetOrganizationsUserRolesResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::GetOrganizationsUserRolesResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **code** | **String** | Response code. | [optional] | 8 | | **message** | **String** | Response message. | [optional] | 9 | | **roles** | [**Array<OrganizationUserRole>**](OrganizationUserRole.md) | | [optional] | 10 | | **next_token** | **String** | Pagination token. | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::GetOrganizationsUserRolesResponse.new( 18 | code: null, 19 | message: null, 20 | roles: null, 21 | next_token: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/GetPermissionsResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::GetPermissionsResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **code** | **String** | Response code. | [optional] | 8 | | **message** | **String** | Response message. | [optional] | 9 | | **permissions** | [**Array<Permissions>**](Permissions.md) | | [optional] | 10 | | **next_token** | **String** | Pagination token. | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::GetPermissionsResponse.new( 18 | code: null, 19 | message: null, 20 | permissions: null, 21 | next_token: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/GetRedirectCallbackUrlsResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::GetRedirectCallbackUrlsResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **redirect_urls** | [**Array<RedirectCallbackUrls>**](RedirectCallbackUrls.md) | An application's redirect callback URLs. | [optional] | 8 | 9 | ## Example 10 | 11 | ```ruby 12 | require 'kinde_api' 13 | 14 | instance = KindeApi::GetRedirectCallbackUrlsResponse.new( 15 | redirect_urls: null 16 | ) 17 | ``` 18 | 19 | -------------------------------------------------------------------------------- /kinde_api/docs/GetRolesResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::GetRolesResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **code** | **String** | Response code. | [optional] | 8 | | **message** | **String** | Response message. | [optional] | 9 | | **roles** | [**Array<Roles>**](Roles.md) | | [optional] | 10 | | **next_token** | **String** | Pagination token. | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::GetRolesResponse.new( 18 | code: null, 19 | message: null, 20 | roles: null, 21 | next_token: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/GetSubscriberResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::GetSubscriberResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **code** | **String** | Response code. | [optional] | 8 | | **message** | **String** | Response message. | [optional] | 9 | | **subscribers** | [**Array<Subscriber>**](Subscriber.md) | | [optional] | 10 | 11 | ## Example 12 | 13 | ```ruby 14 | require 'kinde_api' 15 | 16 | instance = KindeApi::GetSubscriberResponse.new( 17 | code: null, 18 | message: null, 19 | subscribers: null 20 | ) 21 | ``` 22 | 23 | -------------------------------------------------------------------------------- /kinde_api/docs/GetSubscribersResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::GetSubscribersResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **code** | **String** | Response code. | [optional] | 8 | | **message** | **String** | Response message. | [optional] | 9 | | **subscribers** | [**Array<SubscribersSubscriber>**](SubscribersSubscriber.md) | | [optional] | 10 | | **next_token** | **String** | Pagination token. | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::GetSubscribersResponse.new( 18 | code: null, 19 | message: null, 20 | subscribers: null, 21 | next_token: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/LogoutRedirectUrls.md: -------------------------------------------------------------------------------- 1 | # KindeApi::LogoutRedirectUrls 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **redirect_urls** | **Array<String>** | An application's logout URLs. | [optional] | 8 | 9 | ## Example 10 | 11 | ```ruby 12 | require 'kinde_api' 13 | 14 | instance = KindeApi::LogoutRedirectUrls.new( 15 | redirect_urls: null 16 | ) 17 | ``` 18 | 19 | -------------------------------------------------------------------------------- /kinde_api/docs/Organization.md: -------------------------------------------------------------------------------- 1 | # KindeApi::Organization 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **code** | **String** | | [optional] | 8 | | **name** | **String** | | [optional] | 9 | | **is_default** | **Boolean** | | [optional] | 10 | | **external_id** | **String** | | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::Organization.new( 18 | code: null, 19 | name: null, 20 | is_default: null, 21 | external_id: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/OrganizationUser.md: -------------------------------------------------------------------------------- 1 | # KindeApi::OrganizationUser 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | | [optional] | 8 | | **email** | **String** | | [optional] | 9 | | **full_name** | **String** | | [optional] | 10 | | **last_name** | **String** | | [optional] | 11 | | **first_name** | **String** | | [optional] | 12 | | **roles** | **Array<String>** | | [optional] | 13 | 14 | ## Example 15 | 16 | ```ruby 17 | require 'kinde_api' 18 | 19 | instance = KindeApi::OrganizationUser.new( 20 | id: null, 21 | email: null, 22 | full_name: null, 23 | last_name: null, 24 | first_name: null, 25 | roles: null 26 | ) 27 | ``` 28 | 29 | -------------------------------------------------------------------------------- /kinde_api/docs/OrganizationUserPermission.md: -------------------------------------------------------------------------------- 1 | # KindeApi::OrganizationUserPermission 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | | [optional] | 8 | | **key** | **String** | | [optional] | 9 | | **name** | **String** | | [optional] | 10 | | **description** | **String** | | [optional] | 11 | | **roles** | [**Array<OrganizationUserPermissionRolesInner>**](OrganizationUserPermissionRolesInner.md) | | [optional] | 12 | 13 | ## Example 14 | 15 | ```ruby 16 | require 'kinde_api' 17 | 18 | instance = KindeApi::OrganizationUserPermission.new( 19 | id: null, 20 | key: null, 21 | name: null, 22 | description: null, 23 | roles: null 24 | ) 25 | ``` 26 | 27 | -------------------------------------------------------------------------------- /kinde_api/docs/OrganizationUserPermissionRolesInner.md: -------------------------------------------------------------------------------- 1 | # KindeApi::OrganizationUserPermissionRolesInner 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | | [optional] | 8 | | **key** | **String** | | [optional] | 9 | 10 | ## Example 11 | 12 | ```ruby 13 | require 'kinde_api' 14 | 15 | instance = KindeApi::OrganizationUserPermissionRolesInner.new( 16 | id: null, 17 | key: null 18 | ) 19 | ``` 20 | 21 | -------------------------------------------------------------------------------- /kinde_api/docs/OrganizationUserRole.md: -------------------------------------------------------------------------------- 1 | # KindeApi::OrganizationUserRole 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | | [optional] | 8 | | **key** | **String** | | [optional] | 9 | | **name** | **String** | | [optional] | 10 | 11 | ## Example 12 | 13 | ```ruby 14 | require 'kinde_api' 15 | 16 | instance = KindeApi::OrganizationUserRole.new( 17 | id: null, 18 | key: null, 19 | name: null 20 | ) 21 | ``` 22 | 23 | -------------------------------------------------------------------------------- /kinde_api/docs/OrganizationUserRolePermissions.md: -------------------------------------------------------------------------------- 1 | # KindeApi::OrganizationUserRolePermissions 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | | [optional] | 8 | | **role** | **String** | | [optional] | 9 | | **permissions** | [**OrganizationUserRolePermissionsPermissions**](OrganizationUserRolePermissionsPermissions.md) | | [optional] | 10 | 11 | ## Example 12 | 13 | ```ruby 14 | require 'kinde_api' 15 | 16 | instance = KindeApi::OrganizationUserRolePermissions.new( 17 | id: null, 18 | role: null, 19 | permissions: null 20 | ) 21 | ``` 22 | 23 | -------------------------------------------------------------------------------- /kinde_api/docs/OrganizationUserRolePermissionsPermissions.md: -------------------------------------------------------------------------------- 1 | # KindeApi::OrganizationUserRolePermissionsPermissions 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **key** | **String** | | [optional] | 8 | 9 | ## Example 10 | 11 | ```ruby 12 | require 'kinde_api' 13 | 14 | instance = KindeApi::OrganizationUserRolePermissionsPermissions.new( 15 | key: null 16 | ) 17 | ``` 18 | 19 | -------------------------------------------------------------------------------- /kinde_api/docs/Permissions.md: -------------------------------------------------------------------------------- 1 | # KindeApi::Permissions 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | The permission's id. | [optional] | 8 | | **key** | **String** | The permission identifier to use in code. | [optional] | 9 | | **name** | **String** | The permission's name. | [optional] | 10 | | **description** | **String** | The permission's description. | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::Permissions.new( 18 | id: null, 19 | key: null, 20 | name: null, 21 | description: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/RedirectCallbackUrls.md: -------------------------------------------------------------------------------- 1 | # KindeApi::RedirectCallbackUrls 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **redirect_urls** | **Array<String>** | An application's redirect URLs. | [optional] | 8 | 9 | ## Example 10 | 11 | ```ruby 12 | require 'kinde_api' 13 | 14 | instance = KindeApi::RedirectCallbackUrls.new( 15 | redirect_urls: null 16 | ) 17 | ``` 18 | 19 | -------------------------------------------------------------------------------- /kinde_api/docs/ReplaceLogoutRedirectURLsRequest.md: -------------------------------------------------------------------------------- 1 | # KindeApi::ReplaceLogoutRedirectURLsRequest 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **urls** | **Array<String>** | Array of logout urls. | [optional] | 8 | 9 | ## Example 10 | 11 | ```ruby 12 | require 'kinde_api' 13 | 14 | instance = KindeApi::ReplaceLogoutRedirectURLsRequest.new( 15 | urls: null 16 | ) 17 | ``` 18 | 19 | -------------------------------------------------------------------------------- /kinde_api/docs/ReplaceRedirectCallbackURLsRequest.md: -------------------------------------------------------------------------------- 1 | # KindeApi::ReplaceRedirectCallbackURLsRequest 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **urls** | **Array<String>** | Array of callback urls. | [optional] | 8 | 9 | ## Example 10 | 11 | ```ruby 12 | require 'kinde_api' 13 | 14 | instance = KindeApi::ReplaceRedirectCallbackURLsRequest.new( 15 | urls: null 16 | ) 17 | ``` 18 | 19 | -------------------------------------------------------------------------------- /kinde_api/docs/Role.md: -------------------------------------------------------------------------------- 1 | # KindeApi::Role 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | | [optional] | 8 | | **key** | **String** | | [optional] | 9 | | **name** | **String** | | [optional] | 10 | | **description** | **String** | | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::Role.new( 18 | id: null, 19 | key: null, 20 | name: null, 21 | description: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/Roles.md: -------------------------------------------------------------------------------- 1 | # KindeApi::Roles 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | The role's id. | [optional] | 8 | | **key** | **String** | The role identifier to use in code. | [optional] | 9 | | **name** | **String** | The role's name. | [optional] | 10 | | **description** | **String** | The role's description. | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::Roles.new( 18 | id: null, 19 | key: null, 20 | name: null, 21 | description: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/RolesPermissionResponseInner.md: -------------------------------------------------------------------------------- 1 | # KindeApi::RolesPermissionResponseInner 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | | [optional] | 8 | | **key** | **String** | | [optional] | 9 | | **name** | **String** | | [optional] | 10 | | **description** | **String** | | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::RolesPermissionResponseInner.new( 18 | id: null, 19 | key: null, 20 | name: null, 21 | description: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/Subscriber.md: -------------------------------------------------------------------------------- 1 | # KindeApi::Subscriber 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | | [optional] | 8 | | **preferred_email** | **String** | | [optional] | 9 | | **first_name** | **String** | | [optional] | 10 | | **last_name** | **String** | | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::Subscriber.new( 18 | id: null, 19 | preferred_email: null, 20 | first_name: null, 21 | last_name: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/SubscribersSubscriber.md: -------------------------------------------------------------------------------- 1 | # KindeApi::SubscribersSubscriber 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | | [optional] | 8 | | **email** | **String** | | [optional] | 9 | | **full_name** | **String** | | [optional] | 10 | | **first_name** | **String** | | [optional] | 11 | | **last_name** | **String** | | [optional] | 12 | 13 | ## Example 14 | 15 | ```ruby 16 | require 'kinde_api' 17 | 18 | instance = KindeApi::SubscribersSubscriber.new( 19 | id: null, 20 | email: null, 21 | full_name: null, 22 | first_name: null, 23 | last_name: null 24 | ) 25 | ``` 26 | 27 | -------------------------------------------------------------------------------- /kinde_api/docs/SuccessResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::SuccessResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **message** | **String** | | [optional] | 8 | | **code** | **String** | | [optional] | 9 | 10 | ## Example 11 | 12 | ```ruby 13 | require 'kinde_api' 14 | 15 | instance = KindeApi::SuccessResponse.new( 16 | message: null, 17 | code: null 18 | ) 19 | ``` 20 | 21 | -------------------------------------------------------------------------------- /kinde_api/docs/TokenErrorResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::TokenErrorResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **error** | **String** | Error. | [optional] | 8 | | **error_description** | **String** | The error description. | [optional] | 9 | 10 | ## Example 11 | 12 | ```ruby 13 | require 'kinde_api' 14 | 15 | instance = KindeApi::TokenErrorResponse.new( 16 | error: null, 17 | error_description: null 18 | ) 19 | ``` 20 | 21 | -------------------------------------------------------------------------------- /kinde_api/docs/TokenIntrospect.md: -------------------------------------------------------------------------------- 1 | # KindeApi::TokenIntrospect 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **active** | **Boolean** | Indicates the status of the token. | [optional] | 8 | | **aud** | **Array<String>** | Array of intended token recipients. | [optional] | 9 | | **client_id** | **String** | Identifier for the requesting client. | [optional] | 10 | | **exp** | **String** | Token expiration timestamp. | [optional] | 11 | | **iat** | **String** | Token issuance timestamp. | [optional] | 12 | 13 | ## Example 14 | 15 | ```ruby 16 | require 'kinde_api' 17 | 18 | instance = KindeApi::TokenIntrospect.new( 19 | active: null, 20 | aud: null, 21 | client_id: null, 22 | exp: null, 23 | iat: null 24 | ) 25 | ``` 26 | 27 | -------------------------------------------------------------------------------- /kinde_api/docs/UpdateAPIApplicationsRequest.md: -------------------------------------------------------------------------------- 1 | # KindeApi::UpdateAPIApplicationsRequest 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **applications** | [**Array<UpdateAPIApplicationsRequestApplicationsInner>**](UpdateAPIApplicationsRequestApplicationsInner.md) | | | 8 | 9 | ## Example 10 | 11 | ```ruby 12 | require 'kinde_api' 13 | 14 | instance = KindeApi::UpdateAPIApplicationsRequest.new( 15 | applications: null 16 | ) 17 | ``` 18 | 19 | -------------------------------------------------------------------------------- /kinde_api/docs/UpdateAPIApplicationsRequestApplicationsInner.md: -------------------------------------------------------------------------------- 1 | # KindeApi::UpdateAPIApplicationsRequestApplicationsInner 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | The application's id. | | 8 | | **operation** | **String** | Optional operation, set to 'delete' to remove the user from the organization. | [optional] | 9 | 10 | ## Example 11 | 12 | ```ruby 13 | require 'kinde_api' 14 | 15 | instance = KindeApi::UpdateAPIApplicationsRequestApplicationsInner.new( 16 | id: null, 17 | operation: null 18 | ) 19 | ``` 20 | 21 | -------------------------------------------------------------------------------- /kinde_api/docs/UpdateApplicationRequest.md: -------------------------------------------------------------------------------- 1 | # KindeApi::UpdateApplicationRequest 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **name** | **String** | The application's name. | [optional] | 8 | | **language_key** | **String** | The application's language key. | [optional] | 9 | | **logout_uris** | **Array<String>** | The application's logout uris. | [optional] | 10 | | **redirect_uris** | **Array<String>** | The application's redirect uris. | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::UpdateApplicationRequest.new( 18 | name: null, 19 | language_key: null, 20 | logout_uris: null, 21 | redirect_uris: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/UpdateEnvironementFeatureFlagOverrideRequest.md: -------------------------------------------------------------------------------- 1 | # KindeApi::UpdateEnvironementFeatureFlagOverrideRequest 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **value** | **String** | The flag override value. | | 8 | 9 | ## Example 10 | 11 | ```ruby 12 | require 'kinde_api' 13 | 14 | instance = KindeApi::UpdateEnvironementFeatureFlagOverrideRequest.new( 15 | value: null 16 | ) 17 | ``` 18 | 19 | -------------------------------------------------------------------------------- /kinde_api/docs/UpdateOrganizationUsersRequest.md: -------------------------------------------------------------------------------- 1 | # KindeApi::UpdateOrganizationUsersRequest 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **users** | [**Array<UpdateOrganizationUsersRequestUsersInner>**](UpdateOrganizationUsersRequestUsersInner.md) | Users to add, update or remove from the organization. | [optional] | 8 | 9 | ## Example 10 | 11 | ```ruby 12 | require 'kinde_api' 13 | 14 | instance = KindeApi::UpdateOrganizationUsersRequest.new( 15 | users: null 16 | ) 17 | ``` 18 | 19 | -------------------------------------------------------------------------------- /kinde_api/docs/UpdateOrganizationUsersRequestUsersInner.md: -------------------------------------------------------------------------------- 1 | # KindeApi::UpdateOrganizationUsersRequestUsersInner 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | The users id. | [optional] | 8 | | **operation** | **String** | Optional operation, set to 'delete' to remove the user from the organization. | [optional] | 9 | | **roles** | **Array<String>** | Role keys to assign to the user. | [optional] | 10 | | **permissions** | **Array<String>** | Permission keys to assign to the user. | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::UpdateOrganizationUsersRequestUsersInner.new( 18 | id: null, 19 | operation: null, 20 | roles: null, 21 | permissions: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/UpdateOrganizationUsersResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::UpdateOrganizationUsersResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **message** | **String** | | [optional] | 8 | | **users_added** | **Array<String>** | | [optional] | 9 | | **users_updated** | **Array<String>** | | [optional] | 10 | | **users_removed** | **Array<String>** | | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::UpdateOrganizationUsersResponse.new( 18 | message: null, 19 | users_added: null, 20 | users_updated: null, 21 | users_removed: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/UpdateRolePermissionsRequest.md: -------------------------------------------------------------------------------- 1 | # KindeApi::UpdateRolePermissionsRequest 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **permissions** | [**Array<UpdateRolePermissionsRequestPermissionsInner>**](UpdateRolePermissionsRequestPermissionsInner.md) | Permissions to add or remove from the role. | [optional] | 8 | 9 | ## Example 10 | 11 | ```ruby 12 | require 'kinde_api' 13 | 14 | instance = KindeApi::UpdateRolePermissionsRequest.new( 15 | permissions: null 16 | ) 17 | ``` 18 | 19 | -------------------------------------------------------------------------------- /kinde_api/docs/UpdateRolePermissionsRequestPermissionsInner.md: -------------------------------------------------------------------------------- 1 | # KindeApi::UpdateRolePermissionsRequestPermissionsInner 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | The permission id. | [optional] | 8 | | **operation** | **String** | Optional operation, set to 'delete' to remove the permission from the role. | [optional] | 9 | 10 | ## Example 11 | 12 | ```ruby 13 | require 'kinde_api' 14 | 15 | instance = KindeApi::UpdateRolePermissionsRequestPermissionsInner.new( 16 | id: null, 17 | operation: null 18 | ) 19 | ``` 20 | 21 | -------------------------------------------------------------------------------- /kinde_api/docs/UpdateRolePermissionsResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::UpdateRolePermissionsResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **code** | **String** | | [optional] | 8 | | **message** | **String** | | [optional] | 9 | | **permissions_added** | **Array<String>** | | [optional] | 10 | | **permissions_removed** | **Array<String>** | | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::UpdateRolePermissionsResponse.new( 18 | code: null, 19 | message: null, 20 | permissions_added: null, 21 | permissions_removed: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/UpdateRolesRequest.md: -------------------------------------------------------------------------------- 1 | # KindeApi::UpdateRolesRequest 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **name** | **String** | The role's name. | | 8 | | **description** | **String** | The role's description. | [optional] | 9 | | **key** | **String** | The role identifier to use in code. | | 10 | | **is_default_role** | **Boolean** | Set role as default for new users. | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::UpdateRolesRequest.new( 18 | name: null, 19 | description: null, 20 | key: null, 21 | is_default_role: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/UpdateUserRequest.md: -------------------------------------------------------------------------------- 1 | # KindeApi::UpdateUserRequest 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **given_name** | **String** | User's first name. | [optional] | 8 | | **family_name** | **String** | User's last name. | [optional] | 9 | | **is_suspended** | **Boolean** | Whether the user is currently suspended or not. | [optional] | 10 | | **is_password_reset_requested** | **Boolean** | Prompt the user to change their password on next sign in. | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::UpdateUserRequest.new( 18 | given_name: null, 19 | family_name: null, 20 | is_suspended: null, 21 | is_password_reset_requested: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/UpdateUserResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::UpdateUserResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | Unique id of the user in Kinde. | [optional] | 8 | | **given_name** | **String** | User's first name. | [optional] | 9 | | **family_name** | **String** | User's last name. | [optional] | 10 | | **email** | **String** | User's preferred email. | [optional] | 11 | | **is_suspended** | **Boolean** | Whether the user is currently suspended or not. | [optional] | 12 | | **is_password_reset_requested** | **Boolean** | Whether a password reset has been requested. | [optional] | 13 | | **picture** | **String** | User's profile picture URL. | [optional] | 14 | 15 | ## Example 16 | 17 | ```ruby 18 | require 'kinde_api' 19 | 20 | instance = KindeApi::UpdateUserResponse.new( 21 | id: null, 22 | given_name: null, 23 | family_name: null, 24 | email: null, 25 | is_suspended: null, 26 | is_password_reset_requested: null, 27 | picture: null 28 | ) 29 | ``` 30 | 31 | -------------------------------------------------------------------------------- /kinde_api/docs/User.md: -------------------------------------------------------------------------------- 1 | # KindeApi::User 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | Unique id of the user in Kinde. | [optional] | 8 | | **provided_id** | **String** | External id for user. | [optional] | 9 | | **preferred_email** | **String** | Default email address of the user in Kinde. | [optional] | 10 | | **last_name** | **String** | User's last name. | [optional] | 11 | | **first_name** | **String** | User's first name. | [optional] | 12 | | **is_suspended** | **Boolean** | Whether the user is currently suspended or not. | [optional] | 13 | | **picture** | **String** | User's profile picture URL. | [optional] | 14 | | **total_sign_ins** | **Integer** | Total number of user sign ins. | [optional] | 15 | | **failed_sign_ins** | **Integer** | Number of consecutive failed user sign ins. | [optional] | 16 | | **last_signed_in** | **String** | Last sign in date in ISO 8601 format. | [optional] | 17 | | **created_on** | **String** | Date of user creation in ISO 8601 format. | [optional] | 18 | | **organizations** | **Array<String>** | Array of organizations a user belongs to. | [optional] | 19 | | **identities** | [**Array<UserIdentitiesInner>**](UserIdentitiesInner.md) | Array of identities belonging to the user. | [optional] | 20 | 21 | ## Example 22 | 23 | ```ruby 24 | require 'kinde_api' 25 | 26 | instance = KindeApi::User.new( 27 | id: null, 28 | provided_id: null, 29 | preferred_email: null, 30 | last_name: null, 31 | first_name: null, 32 | is_suspended: null, 33 | picture: null, 34 | total_sign_ins: null, 35 | failed_sign_ins: null, 36 | last_signed_in: null, 37 | created_on: null, 38 | organizations: null, 39 | identities: null 40 | ) 41 | ``` 42 | 43 | -------------------------------------------------------------------------------- /kinde_api/docs/UserIdentitiesInner.md: -------------------------------------------------------------------------------- 1 | # KindeApi::UserIdentitiesInner 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **type** | **String** | | [optional] | 8 | | **identity** | **String** | | [optional] | 9 | 10 | ## Example 11 | 12 | ```ruby 13 | require 'kinde_api' 14 | 15 | instance = KindeApi::UserIdentitiesInner.new( 16 | type: null, 17 | identity: null 18 | ) 19 | ``` 20 | 21 | -------------------------------------------------------------------------------- /kinde_api/docs/UserIdentity.md: -------------------------------------------------------------------------------- 1 | # KindeApi::UserIdentity 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **type** | **String** | The type of identity object created. | [optional] | 8 | | **result** | [**UserIdentityResult**](UserIdentityResult.md) | | [optional] | 9 | 10 | ## Example 11 | 12 | ```ruby 13 | require 'kinde_api' 14 | 15 | instance = KindeApi::UserIdentity.new( 16 | type: null, 17 | result: null 18 | ) 19 | ``` 20 | 21 | -------------------------------------------------------------------------------- /kinde_api/docs/UserIdentityResult.md: -------------------------------------------------------------------------------- 1 | # KindeApi::UserIdentityResult 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **created** | **Boolean** | True if the user identity was successfully created. | [optional] | 8 | 9 | ## Example 10 | 11 | ```ruby 12 | require 'kinde_api' 13 | 14 | instance = KindeApi::UserIdentityResult.new( 15 | created: null 16 | ) 17 | ``` 18 | 19 | -------------------------------------------------------------------------------- /kinde_api/docs/UserProfile.md: -------------------------------------------------------------------------------- 1 | # KindeApi::UserProfile 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | Unique id of the user in Kinde. | [optional] | 8 | | **preferred_email** | **String** | Default email address of the user in Kinde. | [optional] | 9 | | **provided_id** | **String** | Value of the user's id in a third-party system when the user is imported into Kinde. | [optional] | 10 | | **last_name** | **String** | User's last name. | [optional] | 11 | | **first_name** | **String** | User's first name. | [optional] | 12 | | **picture** | **String** | URL that point's to the user's picture or avatar | [optional] | 13 | 14 | ## Example 15 | 16 | ```ruby 17 | require 'kinde_api' 18 | 19 | instance = KindeApi::UserProfile.new( 20 | id: null, 21 | preferred_email: null, 22 | provided_id: null, 23 | last_name: null, 24 | first_name: null, 25 | picture: null 26 | ) 27 | ``` 28 | 29 | -------------------------------------------------------------------------------- /kinde_api/docs/UserProfileV2.md: -------------------------------------------------------------------------------- 1 | # KindeApi::UserProfileV2 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | Unique id of the user in Kinde (deprecated). | [optional] | 8 | | **sub** | **String** | Unique id of the user in Kinde. | [optional] | 9 | | **provided_id** | **String** | Value of the user's id in a third-party system when the user is imported into Kinde. | [optional] | 10 | | **name** | **String** | Users's first and last name separated by a space. | [optional] | 11 | | **given_name** | **String** | User's first name. | [optional] | 12 | | **family_name** | **String** | User's last name. | [optional] | 13 | | **updated_at** | **Integer** | Date the user was last updated at (In Unix time). | [optional] | 14 | | **email** | **String** | User's email address if available. | [optional] | 15 | | **picture** | **String** | URL that point's to the user's picture or avatar | [optional] | 16 | 17 | ## Example 18 | 19 | ```ruby 20 | require 'kinde_api' 21 | 22 | instance = KindeApi::UserProfileV2.new( 23 | id: null, 24 | sub: null, 25 | provided_id: null, 26 | name: null, 27 | given_name: null, 28 | family_name: null, 29 | updated_at: null, 30 | email: null, 31 | picture: null 32 | ) 33 | ``` 34 | 35 | -------------------------------------------------------------------------------- /kinde_api/docs/UsersResponse.md: -------------------------------------------------------------------------------- 1 | # KindeApi::UsersResponse 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **code** | **String** | Response code. | [optional] | 8 | | **message** | **String** | Response message. | [optional] | 9 | | **users** | [**Array<UsersResponseUsersInner>**](UsersResponseUsersInner.md) | | [optional] | 10 | | **next_token** | **String** | Pagination token. | [optional] | 11 | 12 | ## Example 13 | 14 | ```ruby 15 | require 'kinde_api' 16 | 17 | instance = KindeApi::UsersResponse.new( 18 | code: null, 19 | message: null, 20 | users: null, 21 | next_token: null 22 | ) 23 | ``` 24 | 25 | -------------------------------------------------------------------------------- /kinde_api/docs/UsersResponseUsersInner.md: -------------------------------------------------------------------------------- 1 | # KindeApi::UsersResponseUsersInner 2 | 3 | ## Properties 4 | 5 | | Name | Type | Description | Notes | 6 | | ---- | ---- | ----------- | ----- | 7 | | **id** | **String** | Unique id of the user in Kinde. | [optional] | 8 | | **provided_id** | **String** | External id for user. | [optional] | 9 | | **email** | **String** | Default email address of the user in Kinde. | [optional] | 10 | | **last_name** | **String** | User's last name. | [optional] | 11 | | **first_name** | **String** | User's first name. | [optional] | 12 | | **is_suspended** | **Boolean** | Whether the user is currently suspended or not. | [optional] | 13 | | **picture** | **String** | User's profile picture URL. | [optional] | 14 | | **total_sign_ins** | **Integer** | Total number of user sign ins. | [optional] | 15 | | **failed_sign_ins** | **Integer** | Number of consecutive failed user sign ins. | [optional] | 16 | | **last_signed_in** | **String** | Last sign in date in ISO 8601 format. | [optional] | 17 | | **created_on** | **String** | Date of user creation in ISO 8601 format. | [optional] | 18 | | **organizations** | **Array<String>** | Array of organizations a user belongs to. | [optional] | 19 | | **identities** | [**Array<UserIdentitiesInner>**](UserIdentitiesInner.md) | Array of identities belonging to the user. | [optional] | 20 | 21 | ## Example 22 | 23 | ```ruby 24 | require 'kinde_api' 25 | 26 | instance = KindeApi::UsersResponseUsersInner.new( 27 | id: null, 28 | provided_id: null, 29 | email: null, 30 | last_name: null, 31 | first_name: null, 32 | is_suspended: null, 33 | picture: null, 34 | total_sign_ins: null, 35 | failed_sign_ins: null, 36 | last_signed_in: null, 37 | created_on: null, 38 | organizations: null, 39 | identities: null 40 | ) 41 | ``` 42 | 43 | -------------------------------------------------------------------------------- /kinde_api/lib/kinde_api/api_error.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | module KindeApi 14 | class ApiError < StandardError 15 | attr_reader :code, :response_headers, :response_body 16 | 17 | # Usage examples: 18 | # ApiError.new 19 | # ApiError.new("message") 20 | # ApiError.new(:code => 500, :response_headers => {}, :response_body => "") 21 | # ApiError.new(:code => 404, :message => "Not Found") 22 | def initialize(arg = nil) 23 | if arg.is_a? Hash 24 | if arg.key?(:message) || arg.key?('message') 25 | super(arg[:message] || arg['message']) 26 | else 27 | super arg 28 | end 29 | 30 | arg.each do |k, v| 31 | instance_variable_set "@#{k}", v 32 | end 33 | else 34 | super arg 35 | @message = arg 36 | end 37 | end 38 | 39 | # Override to_s to display a friendly error message 40 | def to_s 41 | message 42 | end 43 | 44 | def message 45 | msg = if @message.nil? 46 | 'Error message: the server returns an error' 47 | else 48 | @message 49 | end 50 | 51 | msg += "\nHTTP status code: #{code}" if code 52 | msg += "\nResponse headers: #{response_headers}" if response_headers 53 | msg += "\nResponse body: #{response_body}" if response_body 54 | 55 | msg 56 | end 57 | end 58 | end 59 | -------------------------------------------------------------------------------- /kinde_api/lib/kinde_api/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | module KindeApi 14 | VERSION = '1.0.0' 15 | end 16 | -------------------------------------------------------------------------------- /kinde_api/spec/api/industries_api_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | 16 | # Unit tests for KindeApi::IndustriesApi 17 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 18 | # Please update as you see appropriate 19 | describe 'IndustriesApi' do 20 | before do 21 | # run before each test 22 | @api_instance = KindeApi::IndustriesApi.new 23 | end 24 | 25 | after do 26 | # run after each test 27 | end 28 | 29 | describe 'test an instance of IndustriesApi' do 30 | it 'should create an instance of IndustriesApi' do 31 | expect(@api_instance).to be_instance_of(KindeApi::IndustriesApi) 32 | end 33 | end 34 | 35 | # unit tests for get_industries 36 | # List industries and industry keys. 37 | # Get a list of industries and associated industry keys. 38 | # @param [Hash] opts the optional parameters 39 | # @option opts [String] :industry_key Industry Key. 40 | # @option opts [String] :name Industry name. 41 | # @return [SuccessResponse] 42 | describe 'get_industries test' do 43 | it 'should work' do 44 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 45 | end 46 | end 47 | end 48 | -------------------------------------------------------------------------------- /kinde_api/spec/api/timezones_api_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | 16 | # Unit tests for KindeApi::TimezonesApi 17 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 18 | # Please update as you see appropriate 19 | describe 'TimezonesApi' do 20 | before do 21 | # run before each test 22 | @api_instance = KindeApi::TimezonesApi.new 23 | end 24 | 25 | after do 26 | # run after each test 27 | end 28 | 29 | describe 'test an instance of TimezonesApi' do 30 | it 'should create an instance of TimezonesApi' do 31 | expect(@api_instance).to be_instance_of(KindeApi::TimezonesApi) 32 | end 33 | end 34 | 35 | # unit tests for get_timezones 36 | # List timezones and timezone IDs. 37 | # Get a list of timezones and associated timezone keys. 38 | # @param [Hash] opts the optional parameters 39 | # @option opts [String] :timezone_key Timezone Key. 40 | # @option opts [String] :name Timezone. 41 | # @return [SuccessResponse] 42 | describe 'get_timezones test' do 43 | it 'should work' do 44 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 45 | end 46 | end 47 | end 48 | -------------------------------------------------------------------------------- /kinde_api/spec/configuration_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | 15 | describe KindeApi::Configuration do 16 | let(:config) { KindeApi::Configuration.default } 17 | 18 | before(:each) do 19 | # uncomment below to setup host and base_path 20 | # require 'URI' 21 | # uri = URI.parse("https://app.kinde.com") 22 | # KindeApi.configure do |c| 23 | # c.host = uri.host 24 | # c.base_path = uri.path 25 | # end 26 | end 27 | 28 | describe '#base_url' do 29 | it 'should have the default value' do 30 | # uncomment below to test default value of the base path 31 | # expect(config.base_url).to eq("https://app.kinde.com") 32 | end 33 | 34 | it 'should remove trailing slashes' do 35 | [nil, '', '/', '//'].each do |base_path| 36 | config.base_path = base_path 37 | # uncomment below to test trailing slashes 38 | # expect(config.base_url).to eq("https://app.kinde.com") 39 | end 40 | end 41 | end 42 | end 43 | -------------------------------------------------------------------------------- /kinde_api/spec/models/add_apis_request_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::AddAPIsRequest 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::AddAPIsRequest do 21 | let(:instance) { KindeApi::AddAPIsRequest.new } 22 | 23 | describe 'test an instance of AddAPIsRequest' do 24 | it 'should create an instance of AddAPIsRequest' do 25 | expect(instance).to be_instance_of(KindeApi::AddAPIsRequest) 26 | end 27 | end 28 | describe 'test attribute "name"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "audience"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /kinde_api/spec/models/add_organization_users_request_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::AddOrganizationUsersRequest 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::AddOrganizationUsersRequest do 21 | let(:instance) { KindeApi::AddOrganizationUsersRequest.new } 22 | 23 | describe 'test an instance of AddOrganizationUsersRequest' do 24 | it 'should create an instance of AddOrganizationUsersRequest' do 25 | expect(instance).to be_instance_of(KindeApi::AddOrganizationUsersRequest) 26 | end 27 | end 28 | describe 'test attribute "users"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /kinde_api/spec/models/add_organization_users_request_users_inner_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::AddOrganizationUsersRequestUsersInner 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::AddOrganizationUsersRequestUsersInner do 21 | let(:instance) { KindeApi::AddOrganizationUsersRequestUsersInner.new } 22 | 23 | describe 'test an instance of AddOrganizationUsersRequestUsersInner' do 24 | it 'should create an instance of AddOrganizationUsersRequestUsersInner' do 25 | expect(instance).to be_instance_of(KindeApi::AddOrganizationUsersRequestUsersInner) 26 | end 27 | end 28 | describe 'test attribute "id"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "roles"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "permissions"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | end 46 | -------------------------------------------------------------------------------- /kinde_api/spec/models/add_organization_users_response_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::AddOrganizationUsersResponse 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::AddOrganizationUsersResponse do 21 | let(:instance) { KindeApi::AddOrganizationUsersResponse.new } 22 | 23 | describe 'test an instance of AddOrganizationUsersResponse' do 24 | it 'should create an instance of AddOrganizationUsersResponse' do 25 | expect(instance).to be_instance_of(KindeApi::AddOrganizationUsersResponse) 26 | end 27 | end 28 | describe 'test attribute "code"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "message"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "users_added"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | end 46 | -------------------------------------------------------------------------------- /kinde_api/spec/models/api_applications_inner_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::ApiApplicationsInner 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::ApiApplicationsInner do 21 | let(:instance) { KindeApi::ApiApplicationsInner.new } 22 | 23 | describe 'test an instance of ApiApplicationsInner' do 24 | it 'should create an instance of ApiApplicationsInner' do 25 | expect(instance).to be_instance_of(KindeApi::ApiApplicationsInner) 26 | end 27 | end 28 | describe 'test attribute "id"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "name"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "type"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | 46 | describe 'test attribute "is_active"' do 47 | it 'should work' do 48 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 49 | end 50 | end 51 | end 52 | -------------------------------------------------------------------------------- /kinde_api/spec/models/api_result_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::ApiResult 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::ApiResult do 21 | let(:instance) { KindeApi::ApiResult.new } 22 | 23 | describe 'test an instance of ApiResult' do 24 | it 'should create an instance of ApiResult' do 25 | expect(instance).to be_instance_of(KindeApi::ApiResult) 26 | end 27 | end 28 | describe 'test attribute "result"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /kinde_api/spec/models/apis_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::Apis 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::Apis do 21 | let(:instance) { KindeApi::Apis.new } 22 | 23 | describe 'test an instance of Apis' do 24 | it 'should create an instance of Apis' do 25 | expect(instance).to be_instance_of(KindeApi::Apis) 26 | end 27 | end 28 | describe 'test attribute "id"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "name"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "audience"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | 46 | describe 'test attribute "is_management_api"' do 47 | it 'should work' do 48 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 49 | end 50 | end 51 | end 52 | -------------------------------------------------------------------------------- /kinde_api/spec/models/applications_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::Applications 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::Applications do 21 | let(:instance) { KindeApi::Applications.new } 22 | 23 | describe 'test an instance of Applications' do 24 | it 'should create an instance of Applications' do 25 | expect(instance).to be_instance_of(KindeApi::Applications) 26 | end 27 | end 28 | describe 'test attribute "id"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "name"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "type"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | end 46 | -------------------------------------------------------------------------------- /kinde_api/spec/models/connected_apps_access_token_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::ConnectedAppsAccessToken 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::ConnectedAppsAccessToken do 21 | let(:instance) { KindeApi::ConnectedAppsAccessToken.new } 22 | 23 | describe 'test an instance of ConnectedAppsAccessToken' do 24 | it 'should create an instance of ConnectedAppsAccessToken' do 25 | expect(instance).to be_instance_of(KindeApi::ConnectedAppsAccessToken) 26 | end 27 | end 28 | describe 'test attribute "access_token"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "access_token_expiry"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /kinde_api/spec/models/connected_apps_auth_url_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::ConnectedAppsAuthUrl 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::ConnectedAppsAuthUrl do 21 | let(:instance) { KindeApi::ConnectedAppsAuthUrl.new } 22 | 23 | describe 'test an instance of ConnectedAppsAuthUrl' do 24 | it 'should create an instance of ConnectedAppsAuthUrl' do 25 | expect(instance).to be_instance_of(KindeApi::ConnectedAppsAuthUrl) 26 | end 27 | end 28 | describe 'test attribute "url"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "session_id"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /kinde_api/spec/models/create_application_request_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::CreateApplicationRequest 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::CreateApplicationRequest do 21 | let(:instance) { KindeApi::CreateApplicationRequest.new } 22 | 23 | describe 'test an instance of CreateApplicationRequest' do 24 | it 'should create an instance of CreateApplicationRequest' do 25 | expect(instance).to be_instance_of(KindeApi::CreateApplicationRequest) 26 | end 27 | end 28 | describe 'test attribute "name"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "type"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["reg", "spa", "m2m"]) 38 | # validator.allowable_values.each do |value| 39 | # expect { instance.type = value }.not_to raise_error 40 | # end 41 | end 42 | end 43 | end 44 | -------------------------------------------------------------------------------- /kinde_api/spec/models/create_application_response_application_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::CreateApplicationResponseApplication 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::CreateApplicationResponseApplication do 21 | let(:instance) { KindeApi::CreateApplicationResponseApplication.new } 22 | 23 | describe 'test an instance of CreateApplicationResponseApplication' do 24 | it 'should create an instance of CreateApplicationResponseApplication' do 25 | expect(instance).to be_instance_of(KindeApi::CreateApplicationResponseApplication) 26 | end 27 | end 28 | describe 'test attribute "id"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "client_id"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "client_secret"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | end 46 | -------------------------------------------------------------------------------- /kinde_api/spec/models/create_application_response_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::CreateApplicationResponse 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::CreateApplicationResponse do 21 | let(:instance) { KindeApi::CreateApplicationResponse.new } 22 | 23 | describe 'test an instance of CreateApplicationResponse' do 24 | it 'should create an instance of CreateApplicationResponse' do 25 | expect(instance).to be_instance_of(KindeApi::CreateApplicationResponse) 26 | end 27 | end 28 | describe 'test attribute "code"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "message"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "application"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | end 46 | -------------------------------------------------------------------------------- /kinde_api/spec/models/create_organization_response_organization_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::CreateOrganizationResponseOrganization 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::CreateOrganizationResponseOrganization do 21 | let(:instance) { KindeApi::CreateOrganizationResponseOrganization.new } 22 | 23 | describe 'test an instance of CreateOrganizationResponseOrganization' do 24 | it 'should create an instance of CreateOrganizationResponseOrganization' do 25 | expect(instance).to be_instance_of(KindeApi::CreateOrganizationResponseOrganization) 26 | end 27 | end 28 | describe 'test attribute "code"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /kinde_api/spec/models/create_organization_response_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::CreateOrganizationResponse 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::CreateOrganizationResponse do 21 | let(:instance) { KindeApi::CreateOrganizationResponse.new } 22 | 23 | describe 'test an instance of CreateOrganizationResponse' do 24 | it 'should create an instance of CreateOrganizationResponse' do 25 | expect(instance).to be_instance_of(KindeApi::CreateOrganizationResponse) 26 | end 27 | end 28 | describe 'test attribute "message"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "code"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "organization"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | end 46 | -------------------------------------------------------------------------------- /kinde_api/spec/models/create_organization_user_permission_request_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::CreateOrganizationUserPermissionRequest 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::CreateOrganizationUserPermissionRequest do 21 | let(:instance) { KindeApi::CreateOrganizationUserPermissionRequest.new } 22 | 23 | describe 'test an instance of CreateOrganizationUserPermissionRequest' do 24 | it 'should create an instance of CreateOrganizationUserPermissionRequest' do 25 | expect(instance).to be_instance_of(KindeApi::CreateOrganizationUserPermissionRequest) 26 | end 27 | end 28 | describe 'test attribute "permission_id"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /kinde_api/spec/models/create_organization_user_role_request_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::CreateOrganizationUserRoleRequest 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::CreateOrganizationUserRoleRequest do 21 | let(:instance) { KindeApi::CreateOrganizationUserRoleRequest.new } 22 | 23 | describe 'test an instance of CreateOrganizationUserRoleRequest' do 24 | it 'should create an instance of CreateOrganizationUserRoleRequest' do 25 | expect(instance).to be_instance_of(KindeApi::CreateOrganizationUserRoleRequest) 26 | end 27 | end 28 | describe 'test attribute "role_id"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /kinde_api/spec/models/create_permission_request_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::CreatePermissionRequest 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::CreatePermissionRequest do 21 | let(:instance) { KindeApi::CreatePermissionRequest.new } 22 | 23 | describe 'test an instance of CreatePermissionRequest' do 24 | it 'should create an instance of CreatePermissionRequest' do 25 | expect(instance).to be_instance_of(KindeApi::CreatePermissionRequest) 26 | end 27 | end 28 | describe 'test attribute "name"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "description"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "key"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | end 46 | -------------------------------------------------------------------------------- /kinde_api/spec/models/create_role_request_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::CreateRoleRequest 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::CreateRoleRequest do 21 | let(:instance) { KindeApi::CreateRoleRequest.new } 22 | 23 | describe 'test an instance of CreateRoleRequest' do 24 | it 'should create an instance of CreateRoleRequest' do 25 | expect(instance).to be_instance_of(KindeApi::CreateRoleRequest) 26 | end 27 | end 28 | describe 'test attribute "name"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "description"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "key"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | 46 | describe 'test attribute "is_default_role"' do 47 | it 'should work' do 48 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 49 | end 50 | end 51 | end 52 | -------------------------------------------------------------------------------- /kinde_api/spec/models/create_subscriber_success_response_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::CreateSubscriberSuccessResponse 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::CreateSubscriberSuccessResponse do 21 | let(:instance) { KindeApi::CreateSubscriberSuccessResponse.new } 22 | 23 | describe 'test an instance of CreateSubscriberSuccessResponse' do 24 | it 'should create an instance of CreateSubscriberSuccessResponse' do 25 | expect(instance).to be_instance_of(KindeApi::CreateSubscriberSuccessResponse) 26 | end 27 | end 28 | describe 'test attribute "subscriber"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /kinde_api/spec/models/create_subscriber_success_response_subscriber_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::CreateSubscriberSuccessResponseSubscriber 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::CreateSubscriberSuccessResponseSubscriber do 21 | let(:instance) { KindeApi::CreateSubscriberSuccessResponseSubscriber.new } 22 | 23 | describe 'test an instance of CreateSubscriberSuccessResponseSubscriber' do 24 | it 'should create an instance of CreateSubscriberSuccessResponseSubscriber' do 25 | expect(instance).to be_instance_of(KindeApi::CreateSubscriberSuccessResponseSubscriber) 26 | end 27 | end 28 | describe 'test attribute "subscriber_id"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /kinde_api/spec/models/create_user_request_identities_inner_details_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::CreateUserRequestIdentitiesInnerDetails 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::CreateUserRequestIdentitiesInnerDetails do 21 | let(:instance) { KindeApi::CreateUserRequestIdentitiesInnerDetails.new } 22 | 23 | describe 'test an instance of CreateUserRequestIdentitiesInnerDetails' do 24 | it 'should create an instance of CreateUserRequestIdentitiesInnerDetails' do 25 | expect(instance).to be_instance_of(KindeApi::CreateUserRequestIdentitiesInnerDetails) 26 | end 27 | end 28 | describe 'test attribute "email"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /kinde_api/spec/models/create_user_request_identities_inner_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::CreateUserRequestIdentitiesInner 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::CreateUserRequestIdentitiesInner do 21 | let(:instance) { KindeApi::CreateUserRequestIdentitiesInner.new } 22 | 23 | describe 'test an instance of CreateUserRequestIdentitiesInner' do 24 | it 'should create an instance of CreateUserRequestIdentitiesInner' do 25 | expect(instance).to be_instance_of(KindeApi::CreateUserRequestIdentitiesInner) 26 | end 27 | end 28 | describe 'test attribute "type"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["email"]) 32 | # validator.allowable_values.each do |value| 33 | # expect { instance.type = value }.not_to raise_error 34 | # end 35 | end 36 | end 37 | 38 | describe 'test attribute "details"' do 39 | it 'should work' do 40 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 41 | end 42 | end 43 | end 44 | -------------------------------------------------------------------------------- /kinde_api/spec/models/create_user_request_profile_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::CreateUserRequestProfile 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::CreateUserRequestProfile do 21 | let(:instance) { KindeApi::CreateUserRequestProfile.new } 22 | 23 | describe 'test an instance of CreateUserRequestProfile' do 24 | it 'should create an instance of CreateUserRequestProfile' do 25 | expect(instance).to be_instance_of(KindeApi::CreateUserRequestProfile) 26 | end 27 | end 28 | describe 'test attribute "given_name"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "family_name"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /kinde_api/spec/models/create_user_request_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::CreateUserRequest 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::CreateUserRequest do 21 | let(:instance) { KindeApi::CreateUserRequest.new } 22 | 23 | describe 'test an instance of CreateUserRequest' do 24 | it 'should create an instance of CreateUserRequest' do 25 | expect(instance).to be_instance_of(KindeApi::CreateUserRequest) 26 | end 27 | end 28 | describe 'test attribute "profile"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "organization_code"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "identities"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | end 46 | -------------------------------------------------------------------------------- /kinde_api/spec/models/create_user_response_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::CreateUserResponse 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::CreateUserResponse do 21 | let(:instance) { KindeApi::CreateUserResponse.new } 22 | 23 | describe 'test an instance of CreateUserResponse' do 24 | it 'should create an instance of CreateUserResponse' do 25 | expect(instance).to be_instance_of(KindeApi::CreateUserResponse) 26 | end 27 | end 28 | describe 'test attribute "id"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "created"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "identities"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | end 46 | -------------------------------------------------------------------------------- /kinde_api/spec/models/error_response_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::ErrorResponse 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::ErrorResponse do 21 | let(:instance) { KindeApi::ErrorResponse.new } 22 | 23 | describe 'test an instance of ErrorResponse' do 24 | it 'should create an instance of ErrorResponse' do 25 | expect(instance).to be_instance_of(KindeApi::ErrorResponse) 26 | end 27 | end 28 | describe 'test attribute "errors"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /kinde_api/spec/models/error_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::Error 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::Error do 21 | let(:instance) { KindeApi::Error.new } 22 | 23 | describe 'test an instance of Error' do 24 | it 'should create an instance of Error' do 25 | expect(instance).to be_instance_of(KindeApi::Error) 26 | end 27 | end 28 | describe 'test attribute "code"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "message"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /kinde_api/spec/models/get_application_response_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::GetApplicationResponse 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::GetApplicationResponse do 21 | let(:instance) { KindeApi::GetApplicationResponse.new } 22 | 23 | describe 'test an instance of GetApplicationResponse' do 24 | it 'should create an instance of GetApplicationResponse' do 25 | expect(instance).to be_instance_of(KindeApi::GetApplicationResponse) 26 | end 27 | end 28 | describe 'test attribute "code"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "message"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "application"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | end 46 | -------------------------------------------------------------------------------- /kinde_api/spec/models/get_applications_response_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::GetApplicationsResponse 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::GetApplicationsResponse do 21 | let(:instance) { KindeApi::GetApplicationsResponse.new } 22 | 23 | describe 'test an instance of GetApplicationsResponse' do 24 | it 'should create an instance of GetApplicationsResponse' do 25 | expect(instance).to be_instance_of(KindeApi::GetApplicationsResponse) 26 | end 27 | end 28 | describe 'test attribute "code"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "message"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "applications"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | 46 | describe 'test attribute "next_token"' do 47 | it 'should work' do 48 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 49 | end 50 | end 51 | end 52 | -------------------------------------------------------------------------------- /kinde_api/spec/models/get_organization_feature_flags_response_feature_flags_value_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::GetOrganizationFeatureFlagsResponseFeatureFlagsValue 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::GetOrganizationFeatureFlagsResponseFeatureFlagsValue do 21 | let(:instance) { KindeApi::GetOrganizationFeatureFlagsResponseFeatureFlagsValue.new } 22 | 23 | describe 'test an instance of GetOrganizationFeatureFlagsResponseFeatureFlagsValue' do 24 | it 'should create an instance of GetOrganizationFeatureFlagsResponseFeatureFlagsValue' do 25 | expect(instance).to be_instance_of(KindeApi::GetOrganizationFeatureFlagsResponseFeatureFlagsValue) 26 | end 27 | end 28 | describe 'test attribute "type"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["str", "int", "bool"]) 32 | # validator.allowable_values.each do |value| 33 | # expect { instance.type = value }.not_to raise_error 34 | # end 35 | end 36 | end 37 | 38 | describe 'test attribute "value"' do 39 | it 'should work' do 40 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 41 | end 42 | end 43 | end 44 | -------------------------------------------------------------------------------- /kinde_api/spec/models/get_organization_feature_flags_response_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::GetOrganizationFeatureFlagsResponse 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::GetOrganizationFeatureFlagsResponse do 21 | let(:instance) { KindeApi::GetOrganizationFeatureFlagsResponse.new } 22 | 23 | describe 'test an instance of GetOrganizationFeatureFlagsResponse' do 24 | it 'should create an instance of GetOrganizationFeatureFlagsResponse' do 25 | expect(instance).to be_instance_of(KindeApi::GetOrganizationFeatureFlagsResponse) 26 | end 27 | end 28 | describe 'test attribute "code"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "message"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "feature_flags"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | end 46 | -------------------------------------------------------------------------------- /kinde_api/spec/models/get_organizations_response_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::GetOrganizationsResponse 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::GetOrganizationsResponse do 21 | let(:instance) { KindeApi::GetOrganizationsResponse.new } 22 | 23 | describe 'test an instance of GetOrganizationsResponse' do 24 | it 'should create an instance of GetOrganizationsResponse' do 25 | expect(instance).to be_instance_of(KindeApi::GetOrganizationsResponse) 26 | end 27 | end 28 | describe 'test attribute "code"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "message"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "organizations"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | 46 | describe 'test attribute "next_token"' do 47 | it 'should work' do 48 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 49 | end 50 | end 51 | end 52 | -------------------------------------------------------------------------------- /kinde_api/spec/models/get_organizations_user_permissions_response_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::GetOrganizationsUserPermissionsResponse 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::GetOrganizationsUserPermissionsResponse do 21 | let(:instance) { KindeApi::GetOrganizationsUserPermissionsResponse.new } 22 | 23 | describe 'test an instance of GetOrganizationsUserPermissionsResponse' do 24 | it 'should create an instance of GetOrganizationsUserPermissionsResponse' do 25 | expect(instance).to be_instance_of(KindeApi::GetOrganizationsUserPermissionsResponse) 26 | end 27 | end 28 | describe 'test attribute "code"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "message"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "permissions"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | end 46 | -------------------------------------------------------------------------------- /kinde_api/spec/models/get_permissions_response_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::GetPermissionsResponse 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::GetPermissionsResponse do 21 | let(:instance) { KindeApi::GetPermissionsResponse.new } 22 | 23 | describe 'test an instance of GetPermissionsResponse' do 24 | it 'should create an instance of GetPermissionsResponse' do 25 | expect(instance).to be_instance_of(KindeApi::GetPermissionsResponse) 26 | end 27 | end 28 | describe 'test attribute "code"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "message"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "permissions"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | 46 | describe 'test attribute "next_token"' do 47 | it 'should work' do 48 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 49 | end 50 | end 51 | end 52 | -------------------------------------------------------------------------------- /kinde_api/spec/models/get_redirect_callback_urls_response_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::GetRedirectCallbackUrlsResponse 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::GetRedirectCallbackUrlsResponse do 21 | let(:instance) { KindeApi::GetRedirectCallbackUrlsResponse.new } 22 | 23 | describe 'test an instance of GetRedirectCallbackUrlsResponse' do 24 | it 'should create an instance of GetRedirectCallbackUrlsResponse' do 25 | expect(instance).to be_instance_of(KindeApi::GetRedirectCallbackUrlsResponse) 26 | end 27 | end 28 | describe 'test attribute "redirect_urls"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /kinde_api/spec/models/get_roles_response_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::GetRolesResponse 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::GetRolesResponse do 21 | let(:instance) { KindeApi::GetRolesResponse.new } 22 | 23 | describe 'test an instance of GetRolesResponse' do 24 | it 'should create an instance of GetRolesResponse' do 25 | expect(instance).to be_instance_of(KindeApi::GetRolesResponse) 26 | end 27 | end 28 | describe 'test attribute "code"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "message"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "roles"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | 46 | describe 'test attribute "next_token"' do 47 | it 'should work' do 48 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 49 | end 50 | end 51 | end 52 | -------------------------------------------------------------------------------- /kinde_api/spec/models/get_subscriber_response_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::GetSubscriberResponse 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::GetSubscriberResponse do 21 | let(:instance) { KindeApi::GetSubscriberResponse.new } 22 | 23 | describe 'test an instance of GetSubscriberResponse' do 24 | it 'should create an instance of GetSubscriberResponse' do 25 | expect(instance).to be_instance_of(KindeApi::GetSubscriberResponse) 26 | end 27 | end 28 | describe 'test attribute "code"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "message"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "subscribers"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | end 46 | -------------------------------------------------------------------------------- /kinde_api/spec/models/get_subscribers_response_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::GetSubscribersResponse 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::GetSubscribersResponse do 21 | let(:instance) { KindeApi::GetSubscribersResponse.new } 22 | 23 | describe 'test an instance of GetSubscribersResponse' do 24 | it 'should create an instance of GetSubscribersResponse' do 25 | expect(instance).to be_instance_of(KindeApi::GetSubscribersResponse) 26 | end 27 | end 28 | describe 'test attribute "code"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "message"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "subscribers"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | 46 | describe 'test attribute "next_token"' do 47 | it 'should work' do 48 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 49 | end 50 | end 51 | end 52 | -------------------------------------------------------------------------------- /kinde_api/spec/models/logout_redirect_urls_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::LogoutRedirectUrls 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::LogoutRedirectUrls do 21 | let(:instance) { KindeApi::LogoutRedirectUrls.new } 22 | 23 | describe 'test an instance of LogoutRedirectUrls' do 24 | it 'should create an instance of LogoutRedirectUrls' do 25 | expect(instance).to be_instance_of(KindeApi::LogoutRedirectUrls) 26 | end 27 | end 28 | describe 'test attribute "redirect_urls"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /kinde_api/spec/models/organization_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::Organization 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::Organization do 21 | let(:instance) { KindeApi::Organization.new } 22 | 23 | describe 'test an instance of Organization' do 24 | it 'should create an instance of Organization' do 25 | expect(instance).to be_instance_of(KindeApi::Organization) 26 | end 27 | end 28 | describe 'test attribute "code"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "name"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "is_default"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | 46 | describe 'test attribute "external_id"' do 47 | it 'should work' do 48 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 49 | end 50 | end 51 | end 52 | -------------------------------------------------------------------------------- /kinde_api/spec/models/organization_user_permission_roles_inner_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::OrganizationUserPermissionRolesInner 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::OrganizationUserPermissionRolesInner do 21 | let(:instance) { KindeApi::OrganizationUserPermissionRolesInner.new } 22 | 23 | describe 'test an instance of OrganizationUserPermissionRolesInner' do 24 | it 'should create an instance of OrganizationUserPermissionRolesInner' do 25 | expect(instance).to be_instance_of(KindeApi::OrganizationUserPermissionRolesInner) 26 | end 27 | end 28 | describe 'test attribute "id"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "key"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /kinde_api/spec/models/organization_user_role_permissions_permissions_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::OrganizationUserRolePermissionsPermissions 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::OrganizationUserRolePermissionsPermissions do 21 | let(:instance) { KindeApi::OrganizationUserRolePermissionsPermissions.new } 22 | 23 | describe 'test an instance of OrganizationUserRolePermissionsPermissions' do 24 | it 'should create an instance of OrganizationUserRolePermissionsPermissions' do 25 | expect(instance).to be_instance_of(KindeApi::OrganizationUserRolePermissionsPermissions) 26 | end 27 | end 28 | describe 'test attribute "key"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /kinde_api/spec/models/organization_user_role_permissions_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::OrganizationUserRolePermissions 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::OrganizationUserRolePermissions do 21 | let(:instance) { KindeApi::OrganizationUserRolePermissions.new } 22 | 23 | describe 'test an instance of OrganizationUserRolePermissions' do 24 | it 'should create an instance of OrganizationUserRolePermissions' do 25 | expect(instance).to be_instance_of(KindeApi::OrganizationUserRolePermissions) 26 | end 27 | end 28 | describe 'test attribute "id"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "role"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "permissions"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | end 46 | -------------------------------------------------------------------------------- /kinde_api/spec/models/organization_user_role_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::OrganizationUserRole 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::OrganizationUserRole do 21 | let(:instance) { KindeApi::OrganizationUserRole.new } 22 | 23 | describe 'test an instance of OrganizationUserRole' do 24 | it 'should create an instance of OrganizationUserRole' do 25 | expect(instance).to be_instance_of(KindeApi::OrganizationUserRole) 26 | end 27 | end 28 | describe 'test attribute "id"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "key"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "name"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | end 46 | -------------------------------------------------------------------------------- /kinde_api/spec/models/permissions_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::Permissions 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::Permissions do 21 | let(:instance) { KindeApi::Permissions.new } 22 | 23 | describe 'test an instance of Permissions' do 24 | it 'should create an instance of Permissions' do 25 | expect(instance).to be_instance_of(KindeApi::Permissions) 26 | end 27 | end 28 | describe 'test attribute "id"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "key"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "name"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | 46 | describe 'test attribute "description"' do 47 | it 'should work' do 48 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 49 | end 50 | end 51 | end 52 | -------------------------------------------------------------------------------- /kinde_api/spec/models/redirect_callback_urls_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::RedirectCallbackUrls 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::RedirectCallbackUrls do 21 | let(:instance) { KindeApi::RedirectCallbackUrls.new } 22 | 23 | describe 'test an instance of RedirectCallbackUrls' do 24 | it 'should create an instance of RedirectCallbackUrls' do 25 | expect(instance).to be_instance_of(KindeApi::RedirectCallbackUrls) 26 | end 27 | end 28 | describe 'test attribute "redirect_urls"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /kinde_api/spec/models/replace_logout_redirect_urls_request_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::ReplaceLogoutRedirectURLsRequest 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::ReplaceLogoutRedirectURLsRequest do 21 | let(:instance) { KindeApi::ReplaceLogoutRedirectURLsRequest.new } 22 | 23 | describe 'test an instance of ReplaceLogoutRedirectURLsRequest' do 24 | it 'should create an instance of ReplaceLogoutRedirectURLsRequest' do 25 | expect(instance).to be_instance_of(KindeApi::ReplaceLogoutRedirectURLsRequest) 26 | end 27 | end 28 | describe 'test attribute "urls"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /kinde_api/spec/models/replace_redirect_callback_urls_request_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::ReplaceRedirectCallbackURLsRequest 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::ReplaceRedirectCallbackURLsRequest do 21 | let(:instance) { KindeApi::ReplaceRedirectCallbackURLsRequest.new } 22 | 23 | describe 'test an instance of ReplaceRedirectCallbackURLsRequest' do 24 | it 'should create an instance of ReplaceRedirectCallbackURLsRequest' do 25 | expect(instance).to be_instance_of(KindeApi::ReplaceRedirectCallbackURLsRequest) 26 | end 27 | end 28 | describe 'test attribute "urls"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /kinde_api/spec/models/role_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::Role 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::Role do 21 | let(:instance) { KindeApi::Role.new } 22 | 23 | describe 'test an instance of Role' do 24 | it 'should create an instance of Role' do 25 | expect(instance).to be_instance_of(KindeApi::Role) 26 | end 27 | end 28 | describe 'test attribute "id"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "key"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "name"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | 46 | describe 'test attribute "description"' do 47 | it 'should work' do 48 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 49 | end 50 | end 51 | end 52 | -------------------------------------------------------------------------------- /kinde_api/spec/models/roles_permission_response_inner_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::RolesPermissionResponseInner 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::RolesPermissionResponseInner do 21 | let(:instance) { KindeApi::RolesPermissionResponseInner.new } 22 | 23 | describe 'test an instance of RolesPermissionResponseInner' do 24 | it 'should create an instance of RolesPermissionResponseInner' do 25 | expect(instance).to be_instance_of(KindeApi::RolesPermissionResponseInner) 26 | end 27 | end 28 | describe 'test attribute "id"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "key"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "name"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | 46 | describe 'test attribute "description"' do 47 | it 'should work' do 48 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 49 | end 50 | end 51 | end 52 | -------------------------------------------------------------------------------- /kinde_api/spec/models/roles_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::Roles 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::Roles do 21 | let(:instance) { KindeApi::Roles.new } 22 | 23 | describe 'test an instance of Roles' do 24 | it 'should create an instance of Roles' do 25 | expect(instance).to be_instance_of(KindeApi::Roles) 26 | end 27 | end 28 | describe 'test attribute "id"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "key"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "name"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | 46 | describe 'test attribute "description"' do 47 | it 'should work' do 48 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 49 | end 50 | end 51 | end 52 | -------------------------------------------------------------------------------- /kinde_api/spec/models/subscriber_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::Subscriber 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::Subscriber do 21 | let(:instance) { KindeApi::Subscriber.new } 22 | 23 | describe 'test an instance of Subscriber' do 24 | it 'should create an instance of Subscriber' do 25 | expect(instance).to be_instance_of(KindeApi::Subscriber) 26 | end 27 | end 28 | describe 'test attribute "id"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "preferred_email"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "first_name"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | 46 | describe 'test attribute "last_name"' do 47 | it 'should work' do 48 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 49 | end 50 | end 51 | end 52 | -------------------------------------------------------------------------------- /kinde_api/spec/models/success_response_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::SuccessResponse 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::SuccessResponse do 21 | let(:instance) { KindeApi::SuccessResponse.new } 22 | 23 | describe 'test an instance of SuccessResponse' do 24 | it 'should create an instance of SuccessResponse' do 25 | expect(instance).to be_instance_of(KindeApi::SuccessResponse) 26 | end 27 | end 28 | describe 'test attribute "message"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "code"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /kinde_api/spec/models/token_error_response_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::TokenErrorResponse 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::TokenErrorResponse do 21 | let(:instance) { KindeApi::TokenErrorResponse.new } 22 | 23 | describe 'test an instance of TokenErrorResponse' do 24 | it 'should create an instance of TokenErrorResponse' do 25 | expect(instance).to be_instance_of(KindeApi::TokenErrorResponse) 26 | end 27 | end 28 | describe 'test attribute "error"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "error_description"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /kinde_api/spec/models/update_api_applications_request_applications_inner_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::UpdateAPIApplicationsRequestApplicationsInner 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::UpdateAPIApplicationsRequestApplicationsInner do 21 | let(:instance) { KindeApi::UpdateAPIApplicationsRequestApplicationsInner.new } 22 | 23 | describe 'test an instance of UpdateAPIApplicationsRequestApplicationsInner' do 24 | it 'should create an instance of UpdateAPIApplicationsRequestApplicationsInner' do 25 | expect(instance).to be_instance_of(KindeApi::UpdateAPIApplicationsRequestApplicationsInner) 26 | end 27 | end 28 | describe 'test attribute "id"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "operation"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /kinde_api/spec/models/update_api_applications_request_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::UpdateAPIApplicationsRequest 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::UpdateAPIApplicationsRequest do 21 | let(:instance) { KindeApi::UpdateAPIApplicationsRequest.new } 22 | 23 | describe 'test an instance of UpdateAPIApplicationsRequest' do 24 | it 'should create an instance of UpdateAPIApplicationsRequest' do 25 | expect(instance).to be_instance_of(KindeApi::UpdateAPIApplicationsRequest) 26 | end 27 | end 28 | describe 'test attribute "applications"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /kinde_api/spec/models/update_application_request_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::UpdateApplicationRequest 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::UpdateApplicationRequest do 21 | let(:instance) { KindeApi::UpdateApplicationRequest.new } 22 | 23 | describe 'test an instance of UpdateApplicationRequest' do 24 | it 'should create an instance of UpdateApplicationRequest' do 25 | expect(instance).to be_instance_of(KindeApi::UpdateApplicationRequest) 26 | end 27 | end 28 | describe 'test attribute "name"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "language_key"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "logout_uris"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | 46 | describe 'test attribute "redirect_uris"' do 47 | it 'should work' do 48 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 49 | end 50 | end 51 | end 52 | -------------------------------------------------------------------------------- /kinde_api/spec/models/update_environement_feature_flag_override_request_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::UpdateEnvironementFeatureFlagOverrideRequest 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::UpdateEnvironementFeatureFlagOverrideRequest do 21 | let(:instance) { KindeApi::UpdateEnvironementFeatureFlagOverrideRequest.new } 22 | 23 | describe 'test an instance of UpdateEnvironementFeatureFlagOverrideRequest' do 24 | it 'should create an instance of UpdateEnvironementFeatureFlagOverrideRequest' do 25 | expect(instance).to be_instance_of(KindeApi::UpdateEnvironementFeatureFlagOverrideRequest) 26 | end 27 | end 28 | describe 'test attribute "value"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /kinde_api/spec/models/update_organization_users_request_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::UpdateOrganizationUsersRequest 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::UpdateOrganizationUsersRequest do 21 | let(:instance) { KindeApi::UpdateOrganizationUsersRequest.new } 22 | 23 | describe 'test an instance of UpdateOrganizationUsersRequest' do 24 | it 'should create an instance of UpdateOrganizationUsersRequest' do 25 | expect(instance).to be_instance_of(KindeApi::UpdateOrganizationUsersRequest) 26 | end 27 | end 28 | describe 'test attribute "users"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /kinde_api/spec/models/update_role_permissions_request_permissions_inner_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::UpdateRolePermissionsRequestPermissionsInner 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::UpdateRolePermissionsRequestPermissionsInner do 21 | let(:instance) { KindeApi::UpdateRolePermissionsRequestPermissionsInner.new } 22 | 23 | describe 'test an instance of UpdateRolePermissionsRequestPermissionsInner' do 24 | it 'should create an instance of UpdateRolePermissionsRequestPermissionsInner' do 25 | expect(instance).to be_instance_of(KindeApi::UpdateRolePermissionsRequestPermissionsInner) 26 | end 27 | end 28 | describe 'test attribute "id"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "operation"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /kinde_api/spec/models/update_role_permissions_request_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::UpdateRolePermissionsRequest 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::UpdateRolePermissionsRequest do 21 | let(:instance) { KindeApi::UpdateRolePermissionsRequest.new } 22 | 23 | describe 'test an instance of UpdateRolePermissionsRequest' do 24 | it 'should create an instance of UpdateRolePermissionsRequest' do 25 | expect(instance).to be_instance_of(KindeApi::UpdateRolePermissionsRequest) 26 | end 27 | end 28 | describe 'test attribute "permissions"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /kinde_api/spec/models/update_roles_request_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::UpdateRolesRequest 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::UpdateRolesRequest do 21 | let(:instance) { KindeApi::UpdateRolesRequest.new } 22 | 23 | describe 'test an instance of UpdateRolesRequest' do 24 | it 'should create an instance of UpdateRolesRequest' do 25 | expect(instance).to be_instance_of(KindeApi::UpdateRolesRequest) 26 | end 27 | end 28 | describe 'test attribute "name"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "description"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "key"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | 46 | describe 'test attribute "is_default_role"' do 47 | it 'should work' do 48 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 49 | end 50 | end 51 | end 52 | -------------------------------------------------------------------------------- /kinde_api/spec/models/update_user_request_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::UpdateUserRequest 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::UpdateUserRequest do 21 | let(:instance) { KindeApi::UpdateUserRequest.new } 22 | 23 | describe 'test an instance of UpdateUserRequest' do 24 | it 'should create an instance of UpdateUserRequest' do 25 | expect(instance).to be_instance_of(KindeApi::UpdateUserRequest) 26 | end 27 | end 28 | describe 'test attribute "given_name"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "family_name"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "is_suspended"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | 46 | describe 'test attribute "is_password_reset_requested"' do 47 | it 'should work' do 48 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 49 | end 50 | end 51 | end 52 | -------------------------------------------------------------------------------- /kinde_api/spec/models/user_identities_inner_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::UserIdentitiesInner 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::UserIdentitiesInner do 21 | let(:instance) { KindeApi::UserIdentitiesInner.new } 22 | 23 | describe 'test an instance of UserIdentitiesInner' do 24 | it 'should create an instance of UserIdentitiesInner' do 25 | expect(instance).to be_instance_of(KindeApi::UserIdentitiesInner) 26 | end 27 | end 28 | describe 'test attribute "type"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "identity"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /kinde_api/spec/models/user_identity_result_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::UserIdentityResult 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::UserIdentityResult do 21 | let(:instance) { KindeApi::UserIdentityResult.new } 22 | 23 | describe 'test an instance of UserIdentityResult' do 24 | it 'should create an instance of UserIdentityResult' do 25 | expect(instance).to be_instance_of(KindeApi::UserIdentityResult) 26 | end 27 | end 28 | describe 'test attribute "created"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | end 34 | -------------------------------------------------------------------------------- /kinde_api/spec/models/user_identity_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::UserIdentity 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::UserIdentity do 21 | let(:instance) { KindeApi::UserIdentity.new } 22 | 23 | describe 'test an instance of UserIdentity' do 24 | it 'should create an instance of UserIdentity' do 25 | expect(instance).to be_instance_of(KindeApi::UserIdentity) 26 | end 27 | end 28 | describe 'test attribute "type"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "result"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | end 40 | -------------------------------------------------------------------------------- /kinde_api/spec/models/users_response_spec.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | # #Kinde Management API 4 | # 5 | # Provides endpoints to manage your Kinde Businesses 6 | # 7 | # The version of the OpenAPI document: 1 8 | # Contact: support@kinde.com 9 | # Generated by: https://openapi-generator.tech 10 | # OpenAPI Generator version: 7.0.0-SNAPSHOT 11 | # 12 | 13 | require 'spec_helper' 14 | require 'json' 15 | require 'date' 16 | 17 | # Unit tests for KindeApi::UsersResponse 18 | # Automatically generated by openapi-generator (https://openapi-generator.tech) 19 | # Please update as you see appropriate 20 | describe KindeApi::UsersResponse do 21 | let(:instance) { KindeApi::UsersResponse.new } 22 | 23 | describe 'test an instance of UsersResponse' do 24 | it 'should create an instance of UsersResponse' do 25 | expect(instance).to be_instance_of(KindeApi::UsersResponse) 26 | end 27 | end 28 | describe 'test attribute "code"' do 29 | it 'should work' do 30 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 31 | end 32 | end 33 | 34 | describe 'test attribute "message"' do 35 | it 'should work' do 36 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 37 | end 38 | end 39 | 40 | describe 'test attribute "users"' do 41 | it 'should work' do 42 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 43 | end 44 | end 45 | 46 | describe 'test attribute "next_token"' do 47 | it 'should work' do 48 | # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ 49 | end 50 | end 51 | end 52 | -------------------------------------------------------------------------------- /kinde_sdk.gemspec: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | SDK_PATH = "kinde_api" 4 | 5 | $LOAD_PATH.push File.expand_path("lib", __dir__) 6 | $LOAD_PATH.push File.expand_path("app", __dir__) 7 | $LOAD_PATH.push File.expand_path("config", __dir__) 8 | $LOAD_PATH.push File.expand_path("#{SDK_PATH}/lib", __dir__) 9 | 10 | require "kinde_sdk/version" 11 | 12 | Gem::Specification.new do |s| 13 | s.name = "kinde_sdk" 14 | s.version = KindeSdk::VERSION 15 | s.platform = Gem::Platform::RUBY 16 | s.authors = ["Kinde Australia Pty Ltd"] 17 | s.email = ["support@kinde.com"] 18 | s.homepage = "https://kinde.com/" 19 | s.summary = "Kinde Management API Ruby Gem" 20 | s.description = "Integrate the Kinde API into any ruby-based applications, Rails or non-Rails" 21 | s.license = "MIT" 22 | s.required_ruby_version = ">= 3.0" 23 | 24 | s.add_runtime_dependency "typhoeus", "~> 1.0", ">= 1.0.1" 25 | s.add_runtime_dependency "oauth2", "~> 2.0" 26 | s.add_runtime_dependency "pkce_challenge" 27 | s.add_runtime_dependency "faraday-follow_redirects" 28 | 29 | s.add_dependency "rails", ">= 7.0.4" 30 | s.add_dependency "httparty", "~> 0.23.1" 31 | s.add_dependency "jwt", "~> 2.2" 32 | 33 | s.add_development_dependency "rspec", "~> 3.6", ">= 3.6.0" 34 | 35 | s.files = Dir.glob(['lib/**/*', 'kinde_api/**/*', 'config/**/*', 'app/**/*']).reject do |f| 36 | File.directory?(f) || f.start_with?('kinde_api/spec/') 37 | end 38 | 39 | s.test_files = `find spec/* #{SDK_PATH}/spec/*`.split("\n") 40 | s.executables = [] 41 | s.require_paths = %W[lib #{SDK_PATH}/lib] 42 | end -------------------------------------------------------------------------------- /lib/kinde_sdk/client/permissions.rb: -------------------------------------------------------------------------------- 1 | module KindeSdk 2 | class Client 3 | module Permissions 4 | def get_permissions(token_type = :access_token) 5 | get_claim("permissions", token_type)&.dig(:value) 6 | end 7 | 8 | def get_permission(permission, token_type = :access_token) 9 | { 10 | org_code: get_claim("org_code", token_type)&.dig(:value), 11 | is_granted: permission_granted?(permission) 12 | } 13 | end 14 | 15 | def permission_granted?(permission, token_type = :access_token) 16 | get_claim("permissions", token_type)&.dig(:value)&.include?(permission) || false 17 | end 18 | end 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /lib/kinde_sdk/configuration.rb: -------------------------------------------------------------------------------- 1 | module KindeSdk 2 | class Configuration 3 | attr_accessor :domain 4 | attr_accessor :client_id 5 | attr_accessor :client_secret 6 | attr_accessor :callback_url 7 | attr_accessor :logout_url 8 | attr_accessor :scope 9 | 10 | attr_accessor :authorize_url 11 | attr_accessor :token_url 12 | 13 | attr_accessor :jwks_url 14 | attr_accessor :jwks 15 | attr_accessor :expected_issuer 16 | attr_accessor :expected_audience 17 | 18 | attr_accessor :logger 19 | attr_accessor :debugging 20 | attr_accessor :oauth_client 21 | attr_accessor :pkce_enabled 22 | attr_accessor :auto_refresh_tokens 23 | 24 | def initialize 25 | @authorize_url = '/oauth2/auth' 26 | @token_url = '/oauth2/token' 27 | @jwks_url = '/.well-known/jwks.json' 28 | @expected_audience = nil 29 | @expected_issuer = nil 30 | @debugging = false 31 | @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT) 32 | @scope = 'openid offline email profile' 33 | @pkce_enabled = true 34 | @auto_refresh_tokens = true 35 | 36 | yield(self) if block_given? 37 | end 38 | 39 | def self.default 40 | @@default ||= Configuration.new 41 | end 42 | 43 | def configure 44 | yield(self) if block_given? 45 | end 46 | 47 | def oauth_client(client_id: @client_id, client_secret: @client_secret, domain: @domain, authorize_url: @authorize_url, token_url: @token_url ) 48 | ::OAuth2::Client.new( 49 | client_id, 50 | client_secret, 51 | site: domain, 52 | authorize_url: authorize_url, 53 | token_url: token_url, 54 | logger: logger 55 | ) 56 | end 57 | end 58 | end 59 | -------------------------------------------------------------------------------- /lib/kinde_sdk/current.rb: -------------------------------------------------------------------------------- 1 | module KindeSdk 2 | class Current < ActiveSupport::CurrentAttributes 3 | attribute :session 4 | attribute :token_store 5 | 6 | def self.set_session(session) 7 | self.session = session 8 | self.token_store = TokenStore.from_session(session[:kinde_token_store]) if session[:kinde_token_store] 9 | end 10 | 11 | def self.clear_session 12 | self.session = nil 13 | self.token_store = nil 14 | end 15 | end 16 | end -------------------------------------------------------------------------------- /lib/kinde_sdk/engine.rb: -------------------------------------------------------------------------------- 1 | require "kinde_sdk/version" 2 | require "kinde_sdk/configuration" 3 | require "kinde_sdk/current" 4 | require "kinde_sdk/middleware" 5 | 6 | module KindeSdk 7 | class Engine < ::Rails::Engine 8 | isolate_namespace KindeSdk # Optional, for mountable engines 9 | config.app_middleware.use KindeSdk::Middleware 10 | end 11 | end -------------------------------------------------------------------------------- /lib/kinde_sdk/middleware.rb: -------------------------------------------------------------------------------- 1 | module KindeSdk 2 | class Middleware 3 | def initialize(app) 4 | @app = app 5 | end 6 | 7 | def call(env) 8 | request = ActionDispatch::Request.new(env) 9 | Current.set_session(request.session) 10 | 11 | @app.call(env) 12 | ensure 13 | Current.clear_session 14 | end 15 | end 16 | end -------------------------------------------------------------------------------- /lib/kinde_sdk/token_store.rb: -------------------------------------------------------------------------------- 1 | module KindeSdk 2 | class TokenStore 3 | attr_reader :tokens, :bearer_token, :expires_at 4 | 5 | def initialize(tokens = nil) 6 | set_tokens(tokens) if tokens 7 | end 8 | 9 | def set_tokens(tokens) 10 | @tokens = (tokens || {}).transform_keys(&:to_sym) 11 | @bearer_token = @tokens[:access_token] 12 | @expires_at = @tokens[:expires_at] 13 | @tokens 14 | end 15 | 16 | def to_session 17 | { 18 | access_token: @bearer_token, 19 | refresh_token: @tokens[:refresh_token], 20 | expires_at: @expires_at 21 | } 22 | end 23 | 24 | def self.from_session(session_data) 25 | return nil unless session_data 26 | new(session_data) 27 | end 28 | end 29 | end -------------------------------------------------------------------------------- /lib/kinde_sdk/version.rb: -------------------------------------------------------------------------------- 1 | module KindeSdk 2 | VERSION = "1.6.3" 3 | end 4 | -------------------------------------------------------------------------------- /openapitools.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", 3 | "spaces": 2, 4 | "generator-cli": { 5 | "version": "6.4.0" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /spec/examples.txt: -------------------------------------------------------------------------------- 1 | example_id | status | run_time | 2 | ------------------------------------- | ------ | --------------- | 3 | ./spec/kinde_sdk_spec.rb[1:1:1] | passed | 0.10316 seconds | 4 | ./spec/kinde_sdk_spec.rb[1:1:2] | passed | 0.16665 seconds | 5 | ./spec/kinde_sdk_spec.rb[1:2:1] | passed | 0.07416 seconds | 6 | ./spec/kinde_sdk_spec.rb[1:2:2:1] | passed | 0.04853 seconds | 7 | ./spec/kinde_sdk_spec.rb[1:3:1] | passed | 0.04732 seconds | 8 | ./spec/kinde_sdk_spec.rb[1:4:1] | passed | 0.04722 seconds | 9 | ./spec/kinde_sdk_spec.rb[1:4:2:1] | passed | 0.06794 seconds | 10 | ./spec/kinde_sdk_spec.rb[1:5:1] | passed | 0.0553 seconds | 11 | ./spec/kinde_sdk_spec.rb[1:5:2:1] | passed | 0.0278 seconds | 12 | ./spec/kinde_sdk_spec.rb[1:6:1:1] | passed | 0.02283 seconds | 13 | ./spec/kinde_sdk_spec.rb[1:6:1:2] | passed | 0.08432 seconds | 14 | ./spec/kinde_sdk_spec.rb[1:6:1:3] | passed | 0.16113 seconds | 15 | ./spec/kinde_sdk_spec.rb[1:6:2:1] | passed | 0.06135 seconds | 16 | ./spec/kinde_sdk_spec.rb[1:6:2:2:1:1] | passed | 0.10337 seconds | 17 | ./spec/kinde_sdk_spec.rb[1:6:2:2:2:1] | passed | 0.10402 seconds | 18 | ./spec/kinde_sdk_spec.rb[1:6:3:1] | passed | 0.03322 seconds | 19 | ./spec/kinde_sdk_spec.rb[1:6:3:2] | passed | 0.10214 seconds | 20 | ./spec/kinde_sdk_spec.rb[1:6:3:3] | passed | 0.05754 seconds | 21 | ./spec/kinde_sdk_spec.rb[1:6:3:4] | passed | 0.07104 seconds | 22 | ./spec/kinde_sdk_spec.rb[1:6:3:5] | passed | 0.0866 seconds | 23 | ./spec/kinde_sdk_spec.rb[1:6:3:6] | passed | 0.14772 seconds | 24 | ./spec/kinde_sdk_spec.rb[1:6:4:1:1] | passed | 0.09268 seconds | 25 | -------------------------------------------------------------------------------- /test/controllers/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kinde-oss/kinde-ruby-sdk/f4d134345b0897650c72124a44a2a8ed1ecda48b/test/controllers/.keep -------------------------------------------------------------------------------- /test/dummy/Rakefile: -------------------------------------------------------------------------------- 1 | # Add your own tasks in files placed in lib/tasks ending in .rake, 2 | # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. 3 | 4 | require_relative "config/application" 5 | 6 | Rails.application.load_tasks 7 | -------------------------------------------------------------------------------- /test/dummy/app/assets/images/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kinde-oss/kinde-ruby-sdk/f4d134345b0897650c72124a44a2a8ed1ecda48b/test/dummy/app/assets/images/.keep -------------------------------------------------------------------------------- /test/dummy/app/assets/stylesheets/application.css: -------------------------------------------------------------------------------- 1 | /* 2 | * This is a manifest file that'll be compiled into application.css, which will include all the files 3 | * listed below. 4 | * 5 | * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, 6 | * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. 7 | * 8 | * You're free to add application-wide styles to this file and they'll appear at the bottom of the 9 | * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS 10 | * files in this directory. Styles in this file should be added after the last require_* statement. 11 | * It is generally better to create a new file per style scope. 12 | * 13 | *= require_tree . 14 | *= require_self 15 | */ 16 | -------------------------------------------------------------------------------- /test/dummy/app/controllers/application_controller.rb: -------------------------------------------------------------------------------- 1 | class ApplicationController < ActionController::Base 2 | # Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has. 3 | allow_browser versions: :modern 4 | end 5 | -------------------------------------------------------------------------------- /test/dummy/app/controllers/concerns/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kinde-oss/kinde-ruby-sdk/f4d134345b0897650c72124a44a2a8ed1ecda48b/test/dummy/app/controllers/concerns/.keep -------------------------------------------------------------------------------- /test/dummy/app/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | module ApplicationHelper 2 | end 3 | -------------------------------------------------------------------------------- /test/dummy/app/jobs/application_job.rb: -------------------------------------------------------------------------------- 1 | class ApplicationJob < ActiveJob::Base 2 | # Automatically retry jobs that encountered a deadlock 3 | # retry_on ActiveRecord::Deadlocked 4 | 5 | # Most jobs are safe to ignore if the underlying records are no longer available 6 | # discard_on ActiveJob::DeserializationError 7 | end 8 | -------------------------------------------------------------------------------- /test/dummy/app/mailers/application_mailer.rb: -------------------------------------------------------------------------------- 1 | class ApplicationMailer < ActionMailer::Base 2 | default from: "from@example.com" 3 | layout "mailer" 4 | end 5 | -------------------------------------------------------------------------------- /test/dummy/app/models/application_record.rb: -------------------------------------------------------------------------------- 1 | class ApplicationRecord < ActiveRecord::Base 2 | primary_abstract_class 3 | end 4 | -------------------------------------------------------------------------------- /test/dummy/app/models/concerns/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kinde-oss/kinde-ruby-sdk/f4d134345b0897650c72124a44a2a8ed1ecda48b/test/dummy/app/models/concerns/.keep -------------------------------------------------------------------------------- /test/dummy/app/views/layouts/application.html.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |