clerk-http-client 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +87 -0
- data/README.md +360 -0
- data/Rakefile +10 -0
- data/bin/fmt +5 -0
- data/bin/generate +8 -0
- data/bin/setup +7 -0
- data/clerk-http-client.gemspec +41 -0
- data/docs/ActorToken.md +34 -0
- data/docs/ActorTokensApi.md +147 -0
- data/docs/AddDomainRequest.md +22 -0
- data/docs/Admin.md +24 -0
- data/docs/AllowListBlockListApi.md +421 -0
- data/docs/AllowlistIdentifier.md +32 -0
- data/docs/BetaFeaturesApi.md +217 -0
- data/docs/BlocklistIdentifier.md +30 -0
- data/docs/BlocklistIdentifiers.md +20 -0
- data/docs/CNameTarget.md +22 -0
- data/docs/ChangeProductionInstanceDomainRequest.md +20 -0
- data/docs/ClerkError.md +26 -0
- data/docs/ClerkErrors.md +20 -0
- data/docs/Client.md +34 -0
- data/docs/ClientsApi.md +221 -0
- data/docs/CreateActorTokenRequest.md +24 -0
- data/docs/CreateAllowlistIdentifierRequest.md +20 -0
- data/docs/CreateBlocklistIdentifierRequest.md +18 -0
- data/docs/CreateEmailAddressRequest.md +24 -0
- data/docs/CreateInvitationRequest.md +28 -0
- data/docs/CreateJWTTemplateRequest.md +30 -0
- data/docs/CreateOAuthApplicationRequest.md +24 -0
- data/docs/CreateOrganizationDomainRequest.md +22 -0
- data/docs/CreateOrganizationInvitationBulkRequestInner.md +28 -0
- data/docs/CreateOrganizationInvitationRequest.md +28 -0
- data/docs/CreateOrganizationMembershipRequest.md +20 -0
- data/docs/CreateOrganizationRequest.md +30 -0
- data/docs/CreatePhoneNumberRequest.md +26 -0
- data/docs/CreateRedirectURLRequest.md +18 -0
- data/docs/CreateSAMLConnectionRequest.md +34 -0
- data/docs/CreateSAMLConnectionRequestAttributeMapping.md +24 -0
- data/docs/CreateSessionTokenFromTemplate200Response.md +20 -0
- data/docs/CreateSignInTokenRequest.md +20 -0
- data/docs/CreateUserRequest.md +62 -0
- data/docs/DeletedObject.md +24 -0
- data/docs/DisableMFA200Response.md +18 -0
- data/docs/Domain.md +34 -0
- data/docs/Domains.md +20 -0
- data/docs/DomainsApi.md +286 -0
- data/docs/EmailAddress.md +32 -0
- data/docs/EmailAddressVerification.md +51 -0
- data/docs/EmailAddressesApi.md +289 -0
- data/docs/EmailSMSTemplatesApi.md +449 -0
- data/docs/GetOAuthAccessToken200ResponseInner.md +34 -0
- data/docs/IdentificationLink.md +20 -0
- data/docs/InstanceRestrictions.md +26 -0
- data/docs/InstanceSettingsApi.md +216 -0
- data/docs/Invitation.md +36 -0
- data/docs/InvitationsApi.md +223 -0
- data/docs/JWKSApi.md +74 -0
- data/docs/JWTTemplate.md +36 -0
- data/docs/JWTTemplatesApi.md +354 -0
- data/docs/MergeOrganizationMetadataRequest.md +20 -0
- data/docs/MiscellaneousApi.md +75 -0
- data/docs/OAuthApplication.md +42 -0
- data/docs/OAuthApplicationWithSecret.md +44 -0
- data/docs/OAuthApplications.md +20 -0
- data/docs/OAuthApplicationsApi.md +433 -0
- data/docs/OTP.md +24 -0
- data/docs/Oauth.md +28 -0
- data/docs/OauthError.md +47 -0
- data/docs/Organization.md +40 -0
- data/docs/OrganizationDomain.md +38 -0
- data/docs/OrganizationDomainApi.md +81 -0
- data/docs/OrganizationDomainVerification.md +24 -0
- data/docs/OrganizationDomains.md +20 -0
- data/docs/OrganizationDomainsApi.md +231 -0
- data/docs/OrganizationInvitation.md +38 -0
- data/docs/OrganizationInvitationWithPublicOrganizationData.md +40 -0
- data/docs/OrganizationInvitationWithPublicOrganizationDataPublicOrganizationData.md +26 -0
- data/docs/OrganizationInvitations.md +20 -0
- data/docs/OrganizationInvitationsApi.md +533 -0
- data/docs/OrganizationInvitationsWithPublicOrganizationData.md +20 -0
- data/docs/OrganizationMembership.md +38 -0
- data/docs/OrganizationMembershipPublicUserData.md +30 -0
- data/docs/OrganizationMemberships.md +20 -0
- data/docs/OrganizationMembershipsApi.md +453 -0
- data/docs/OrganizationSettings.md +36 -0
- data/docs/OrganizationWithLogo.md +46 -0
- data/docs/Organizations.md +20 -0
- data/docs/OrganizationsApi.md +591 -0
- data/docs/Passkey.md +26 -0
- data/docs/PhoneNumber.md +38 -0
- data/docs/PhoneNumberVerification.md +49 -0
- data/docs/PhoneNumbersApi.md +289 -0
- data/docs/PreviewTemplateRequest.md +24 -0
- data/docs/ProxyCheck.md +32 -0
- data/docs/ProxyChecksApi.md +77 -0
- data/docs/RedirectURL.md +26 -0
- data/docs/RedirectURLsApi.md +284 -0
- data/docs/RevokeInvitation200Response.md +36 -0
- data/docs/RevokeOrganizationInvitationRequest.md +18 -0
- data/docs/SAML.md +28 -0
- data/docs/SAMLAccount.md +38 -0
- data/docs/SAMLAccountSamlConnection.md +47 -0
- data/docs/SAMLAccountVerification.md +49 -0
- data/docs/SAMLConnection.md +38 -0
- data/docs/SAMLConnections.md +20 -0
- data/docs/SAMLConnectionsApi.md +363 -0
- data/docs/SchemasPasskey.md +26 -0
- data/docs/SchemasPasskeyVerification.md +47 -0
- data/docs/SchemasSAMLConnection.md +60 -0
- data/docs/SchemasSAMLConnectionAttributeMapping.md +24 -0
- data/docs/Session.md +42 -0
- data/docs/SessionLatestActivity.md +34 -0
- data/docs/SessionsApi.md +373 -0
- data/docs/SignInToken.md +32 -0
- data/docs/SignInTokensApi.md +147 -0
- data/docs/SignUp.md +62 -0
- data/docs/SignUpsApi.md +79 -0
- data/docs/SvixURL.md +18 -0
- data/docs/TOTP.md +28 -0
- data/docs/Template.md +60 -0
- data/docs/TestingToken.md +22 -0
- data/docs/TestingTokensApi.md +74 -0
- data/docs/Ticket.md +24 -0
- data/docs/ToggleTemplateDeliveryRequest.md +18 -0
- data/docs/TotalCount.md +20 -0
- data/docs/UpdateDomainRequest.md +22 -0
- data/docs/UpdateEmailAddressRequest.md +20 -0
- data/docs/UpdateInstanceAuthConfig200Response.md +28 -0
- data/docs/UpdateInstanceAuthConfigRequest.md +28 -0
- data/docs/UpdateInstanceOrganizationSettingsRequest.md +30 -0
- data/docs/UpdateInstanceRequest.md +34 -0
- data/docs/UpdateInstanceRestrictionsRequest.md +26 -0
- data/docs/UpdateOAuthApplicationRequest.md +22 -0
- data/docs/UpdateOrganizationDomainRequest.md +20 -0
- data/docs/UpdateOrganizationMembershipMetadataRequest.md +20 -0
- data/docs/UpdateOrganizationMembershipRequest.md +18 -0
- data/docs/UpdateOrganizationRequest.md +30 -0
- data/docs/UpdatePhoneNumberRequest.md +22 -0
- data/docs/UpdateProductionInstanceDomainRequest.md +18 -0
- data/docs/UpdateSAMLConnectionRequest.md +42 -0
- data/docs/UpdateSAMLConnectionRequestAttributeMapping.md +24 -0
- data/docs/UpdateSignUpRequest.md +18 -0
- data/docs/UpdateUserMetadataRequest.md +22 -0
- data/docs/UpdateUserRequest.md +66 -0
- data/docs/UpsertTemplateRequest.md +30 -0
- data/docs/User.md +94 -0
- data/docs/UsersApi.md +1829 -0
- data/docs/VerifyClientRequest.md +18 -0
- data/docs/VerifyDomainProxyRequest.md +20 -0
- data/docs/VerifyPassword200Response.md +18 -0
- data/docs/VerifyPasswordRequest.md +18 -0
- data/docs/VerifySessionRequest.md +18 -0
- data/docs/VerifyTOTP200Response.md +20 -0
- data/docs/VerifyTOTPRequest.md +18 -0
- data/docs/Web3Signature.md +28 -0
- data/docs/Web3Wallet.md +28 -0
- data/docs/Web3WalletVerification.md +49 -0
- data/docs/WebhooksApi.md +207 -0
- data/docs/WellKnownJWKS.md +18 -0
- data/docs/WellKnownJWKSKeysInner.md +28 -0
- data/git_push.sh +57 -0
- data/lib/clerk-http-client/api/actor_tokens_api.rb +157 -0
- data/lib/clerk-http-client/api/allow_list_block_list_api.rb +410 -0
- data/lib/clerk-http-client/api/beta_features_api.rb +228 -0
- data/lib/clerk-http-client/api/clients_api.rb +234 -0
- data/lib/clerk-http-client/api/domains_api.rb +292 -0
- data/lib/clerk-http-client/api/email_addresses_api.rb +298 -0
- data/lib/clerk-http-client/api/email_sms_templates_api.rb +488 -0
- data/lib/clerk-http-client/api/instance_settings_api.rb +232 -0
- data/lib/clerk-http-client/api/invitations_api.rb +241 -0
- data/lib/clerk-http-client/api/jwks_api.rb +81 -0
- data/lib/clerk-http-client/api/jwt_templates_api.rb +355 -0
- data/lib/clerk-http-client/api/miscellaneous_api.rb +85 -0
- data/lib/clerk-http-client/api/o_auth_applications_api.rb +440 -0
- data/lib/clerk-http-client/api/organization_domain_api.rb +104 -0
- data/lib/clerk-http-client/api/organization_domains_api.rb +258 -0
- data/lib/clerk-http-client/api/organization_invitations_api.rb +586 -0
- data/lib/clerk-http-client/api/organization_memberships_api.rb +499 -0
- data/lib/clerk-http-client/api/organizations_api.rb +606 -0
- data/lib/clerk-http-client/api/phone_numbers_api.rb +298 -0
- data/lib/clerk-http-client/api/proxy_checks_api.rb +92 -0
- data/lib/clerk-http-client/api/redirect_urls_api.rb +281 -0
- data/lib/clerk-http-client/api/saml_connections_api.rb +375 -0
- data/lib/clerk-http-client/api/sessions_api.rb +385 -0
- data/lib/clerk-http-client/api/sign_in_tokens_api.rb +157 -0
- data/lib/clerk-http-client/api/sign_ups_api.rb +98 -0
- data/lib/clerk-http-client/api/testing_tokens_api.rb +81 -0
- data/lib/clerk-http-client/api/users_api.rb +1828 -0
- data/lib/clerk-http-client/api/webhooks_api.rb +199 -0
- data/lib/clerk-http-client/api_client.rb +437 -0
- data/lib/clerk-http-client/api_error.rb +58 -0
- data/lib/clerk-http-client/configuration.rb +393 -0
- data/lib/clerk-http-client/models/actor_token.rb +385 -0
- data/lib/clerk-http-client/models/add_domain_request.rb +249 -0
- data/lib/clerk-http-client/models/admin.rb +303 -0
- data/lib/clerk-http-client/models/allowlist_identifier.rb +327 -0
- data/lib/clerk-http-client/models/blocklist_identifier.rb +318 -0
- data/lib/clerk-http-client/models/blocklist_identifiers.rb +240 -0
- data/lib/clerk-http-client/models/c_name_target.rb +254 -0
- data/lib/clerk-http-client/models/change_production_instance_domain_request.rb +225 -0
- data/lib/clerk-http-client/models/clerk_error.rb +271 -0
- data/lib/clerk-http-client/models/clerk_errors.rb +232 -0
- data/lib/clerk-http-client/models/client.rb +380 -0
- data/lib/clerk-http-client/models/create_actor_token_request.rb +263 -0
- data/lib/clerk-http-client/models/create_allowlist_identifier_request.rb +234 -0
- data/lib/clerk-http-client/models/create_blocklist_identifier_request.rb +222 -0
- data/lib/clerk-http-client/models/create_email_address_request.rb +247 -0
- data/lib/clerk-http-client/models/create_invitation_request.rb +303 -0
- data/lib/clerk-http-client/models/create_jwt_template_request.rb +327 -0
- data/lib/clerk-http-client/models/create_o_auth_application_request.rb +261 -0
- data/lib/clerk-http-client/models/create_organization_domain_request.rb +236 -0
- data/lib/clerk-http-client/models/create_organization_invitation_bulk_request_inner.rb +280 -0
- data/lib/clerk-http-client/models/create_organization_invitation_request.rb +280 -0
- data/lib/clerk-http-client/models/create_organization_membership_request.rb +239 -0
- data/lib/clerk-http-client/models/create_organization_request.rb +289 -0
- data/lib/clerk-http-client/models/create_phone_number_request.rb +258 -0
- data/lib/clerk-http-client/models/create_redirect_url_request.rb +215 -0
- data/lib/clerk-http-client/models/create_saml_connection_request.rb +355 -0
- data/lib/clerk-http-client/models/create_saml_connection_request_attribute_mapping.rb +242 -0
- data/lib/clerk-http-client/models/create_session_token_from_template200_response.rb +257 -0
- data/lib/clerk-http-client/models/create_sign_in_token_request.rb +227 -0
- data/lib/clerk-http-client/models/create_user_request.rb +453 -0
- data/lib/clerk-http-client/models/deleted_object.rb +255 -0
- data/lib/clerk-http-client/models/disable_mfa200_response.rb +214 -0
- data/lib/clerk-http-client/models/domain.rb +368 -0
- data/lib/clerk-http-client/models/domains.rb +240 -0
- data/lib/clerk-http-client/models/email_address.rb +361 -0
- data/lib/clerk-http-client/models/email_address_verification.rb +106 -0
- data/lib/clerk-http-client/models/get_o_auth_access_token200_response_inner.rb +295 -0
- data/lib/clerk-http-client/models/identification_link.rb +271 -0
- data/lib/clerk-http-client/models/instance_restrictions.rb +285 -0
- data/lib/clerk-http-client/models/invitation.rb +388 -0
- data/lib/clerk-http-client/models/jwt_template.rb +387 -0
- data/lib/clerk-http-client/models/merge_organization_metadata_request.rb +225 -0
- data/lib/clerk-http-client/models/o_auth_application.rb +449 -0
- data/lib/clerk-http-client/models/o_auth_application_with_secret.rb +466 -0
- data/lib/clerk-http-client/models/o_auth_applications.rb +240 -0
- data/lib/clerk-http-client/models/oauth.rb +328 -0
- data/lib/clerk-http-client/models/oauth_error.rb +104 -0
- data/lib/clerk-http-client/models/organization.rb +413 -0
- data/lib/clerk-http-client/models/organization_domain.rb +364 -0
- data/lib/clerk-http-client/models/organization_domain_verification.rb +281 -0
- data/lib/clerk-http-client/models/organization_domains.rb +240 -0
- data/lib/clerk-http-client/models/organization_invitation.rb +342 -0
- data/lib/clerk-http-client/models/organization_invitation_with_public_organization_data.rb +351 -0
- data/lib/clerk-http-client/models/organization_invitation_with_public_organization_data_public_organization_data.rb +250 -0
- data/lib/clerk-http-client/models/organization_invitations.rb +240 -0
- data/lib/clerk-http-client/models/organization_invitations_with_public_organization_data.rb +240 -0
- data/lib/clerk-http-client/models/organization_membership.rb +346 -0
- data/lib/clerk-http-client/models/organization_membership_public_user_data.rb +272 -0
- data/lib/clerk-http-client/models/organization_memberships.rb +240 -0
- data/lib/clerk-http-client/models/organization_settings.rb +391 -0
- data/lib/clerk-http-client/models/organization_with_logo.rb +454 -0
- data/lib/clerk-http-client/models/organizations.rb +240 -0
- data/lib/clerk-http-client/models/otp.rb +315 -0
- data/lib/clerk-http-client/models/passkey.rb +324 -0
- data/lib/clerk-http-client/models/phone_number.rb +391 -0
- data/lib/clerk-http-client/models/phone_number_verification.rb +105 -0
- data/lib/clerk-http-client/models/preview_template_request.rb +246 -0
- data/lib/clerk-http-client/models/proxy_check.rb +367 -0
- data/lib/clerk-http-client/models/redirect_url.rb +321 -0
- data/lib/clerk-http-client/models/revoke_invitation200_response.rb +395 -0
- data/lib/clerk-http-client/models/revoke_organization_invitation_request.rb +216 -0
- data/lib/clerk-http-client/models/saml.rb +331 -0
- data/lib/clerk-http-client/models/saml_account.rb +381 -0
- data/lib/clerk-http-client/models/saml_account_saml_connection.rb +104 -0
- data/lib/clerk-http-client/models/saml_account_verification.rb +105 -0
- data/lib/clerk-http-client/models/saml_connection.rb +362 -0
- data/lib/clerk-http-client/models/saml_connections.rb +240 -0
- data/lib/clerk-http-client/models/schemas_passkey.rb +310 -0
- data/lib/clerk-http-client/models/schemas_passkey_verification.rb +104 -0
- data/lib/clerk-http-client/models/schemas_saml_connection.rb +541 -0
- data/lib/clerk-http-client/models/schemas_saml_connection_attribute_mapping.rb +241 -0
- data/lib/clerk-http-client/models/session.rb +444 -0
- data/lib/clerk-http-client/models/session_latest_activity.rb +300 -0
- data/lib/clerk-http-client/models/sign_in_token.rb +368 -0
- data/lib/clerk-http-client/models/sign_up.rb +517 -0
- data/lib/clerk-http-client/models/svix_url.rb +221 -0
- data/lib/clerk-http-client/models/template.rb +460 -0
- data/lib/clerk-http-client/models/testing_token.rb +289 -0
- data/lib/clerk-http-client/models/ticket.rb +303 -0
- data/lib/clerk-http-client/models/toggle_template_delivery_request.rb +216 -0
- data/lib/clerk-http-client/models/total_count.rb +272 -0
- data/lib/clerk-http-client/models/totp.rb +289 -0
- data/lib/clerk-http-client/models/update_domain_request.rb +238 -0
- data/lib/clerk-http-client/models/update_email_address_request.rb +227 -0
- data/lib/clerk-http-client/models/update_instance_auth_config200_response.rb +294 -0
- data/lib/clerk-http-client/models/update_instance_auth_config_request.rb +273 -0
- data/lib/clerk-http-client/models/update_instance_organization_settings_request.rb +277 -0
- data/lib/clerk-http-client/models/update_instance_request.rb +300 -0
- data/lib/clerk-http-client/models/update_instance_restrictions_request.rb +255 -0
- data/lib/clerk-http-client/models/update_o_auth_application_request.rb +237 -0
- data/lib/clerk-http-client/models/update_organization_domain_request.rb +227 -0
- data/lib/clerk-http-client/models/update_organization_membership_metadata_request.rb +225 -0
- data/lib/clerk-http-client/models/update_organization_membership_request.rb +222 -0
- data/lib/clerk-http-client/models/update_organization_request.rb +279 -0
- data/lib/clerk-http-client/models/update_phone_number_request.rb +238 -0
- data/lib/clerk-http-client/models/update_production_instance_domain_request.rb +215 -0
- data/lib/clerk-http-client/models/update_saml_connection_request.rb +347 -0
- data/lib/clerk-http-client/models/update_saml_connection_request_attribute_mapping.rb +242 -0
- data/lib/clerk-http-client/models/update_sign_up_request.rb +216 -0
- data/lib/clerk-http-client/models/update_user_metadata_request.rb +241 -0
- data/lib/clerk-http-client/models/update_user_request.rb +472 -0
- data/lib/clerk-http-client/models/upsert_template_request.rb +278 -0
- data/lib/clerk-http-client/models/user.rb +633 -0
- data/lib/clerk-http-client/models/verify_client_request.rb +215 -0
- data/lib/clerk-http-client/models/verify_domain_proxy_request.rb +225 -0
- data/lib/clerk-http-client/models/verify_password200_response.rb +214 -0
- data/lib/clerk-http-client/models/verify_password_request.rb +222 -0
- data/lib/clerk-http-client/models/verify_session_request.rb +215 -0
- data/lib/clerk-http-client/models/verify_totp200_response.rb +257 -0
- data/lib/clerk-http-client/models/verify_totp_request.rb +222 -0
- data/lib/clerk-http-client/models/web3_signature.rb +323 -0
- data/lib/clerk-http-client/models/web3_wallet.rb +327 -0
- data/lib/clerk-http-client/models/web3_wallet_verification.rb +105 -0
- data/lib/clerk-http-client/models/well_known_jwks.rb +216 -0
- data/lib/clerk-http-client/models/well_known_jwks_keys_inner.rb +259 -0
- data/lib/clerk-http-client/version.rb +15 -0
- data/lib/clerk-http-client.rb +321 -0
- data/openapitools.json +7 -0
- data/pkg/clerk-http-client-1.0.0.gem +0 -0
- data/resources/.DS_Store +0 -0
- data/resources/oas/bapi-2024-10-01.yml +7238 -0
- data/resources/templates/Gemfile.mustache +9 -0
- data/resources/templates/README.mustache +163 -0
- data/resources/templates/Rakefile.mustache +10 -0
- data/resources/templates/api.mustache +257 -0
- data/resources/templates/api_client.mustache +246 -0
- data/resources/templates/api_client_faraday_partial.mustache +200 -0
- data/resources/templates/api_client_httpx_partial.mustache +134 -0
- data/resources/templates/api_client_typhoeus_partial.mustache +161 -0
- data/resources/templates/api_doc.mustache +132 -0
- data/resources/templates/api_error.mustache +50 -0
- data/resources/templates/api_info.mustache +12 -0
- data/resources/templates/api_test.mustache +47 -0
- data/resources/templates/base_object.mustache +114 -0
- data/resources/templates/configuration.mustache +491 -0
- data/resources/templates/configuration_faraday_partial.mustache +40 -0
- data/resources/templates/configuration_httpx_partial.mustache +11 -0
- data/resources/templates/configuration_typhoeus_partial.mustache +41 -0
- data/resources/templates/gem.mustache +89 -0
- data/resources/templates/gemspec.mustache +41 -0
- data/resources/templates/git_push.sh.mustache +57 -0
- data/resources/templates/gitignore.mustache +39 -0
- data/resources/templates/gitlab-ci.mustache +26 -0
- data/resources/templates/model.mustache +33 -0
- data/resources/templates/model_doc.mustache +12 -0
- data/resources/templates/model_test.mustache +82 -0
- data/resources/templates/partial_anyof_module.mustache +94 -0
- data/resources/templates/partial_model_enum_class.mustache +23 -0
- data/resources/templates/partial_model_generic.mustache +377 -0
- data/resources/templates/partial_model_generic_doc.mustache +28 -0
- data/resources/templates/partial_oneof_module.mustache +137 -0
- data/resources/templates/partial_oneof_module_doc.mustache +93 -0
- data/resources/templates/rspec.mustache +2 -0
- data/resources/templates/rubocop.mustache +148 -0
- data/resources/templates/spec_helper.mustache +103 -0
- data/resources/templates/travis.mustache +11 -0
- data/resources/templates/version.mustache +7 -0
- data/sdk-generator-config.json +20 -0
- data/spec/api/actor_tokens_api_spec.rb +59 -0
- data/spec/api/allow_list_block_list_api_spec.rb +105 -0
- data/spec/api/beta_features_api_spec.rb +71 -0
- data/spec/api/clients_api_spec.rb +72 -0
- data/spec/api/domains_api_spec.rb +83 -0
- data/spec/api/email_addresses_api_spec.rb +84 -0
- data/spec/api/email_sms_templates_api_spec.rb +115 -0
- data/spec/api/instance_settings_api_spec.rb +71 -0
- data/spec/api/invitations_api_spec.rb +73 -0
- data/spec/api/jwks_api_spec.rb +46 -0
- data/spec/api/jwt_templates_api_spec.rb +94 -0
- data/spec/api/miscellaneous_api_spec.rb +48 -0
- data/spec/api/o_auth_applications_api_spec.rb +109 -0
- data/spec/api/organization_domain_api_spec.rb +49 -0
- data/spec/api/organization_domains_api_spec.rb +77 -0
- data/spec/api/organization_invitations_api_spec.rb +133 -0
- data/spec/api/organization_memberships_api_spec.rb +118 -0
- data/spec/api/organizations_api_spec.rb +139 -0
- data/spec/api/phone_numbers_api_spec.rb +84 -0
- data/spec/api/proxy_checks_api_spec.rb +47 -0
- data/spec/api/redirect_urls_api_spec.rb +82 -0
- data/spec/api/saml_connections_api_spec.rb +97 -0
- data/spec/api/sessions_api_spec.rb +101 -0
- data/spec/api/sign_in_tokens_api_spec.rb +59 -0
- data/spec/api/sign_ups_api_spec.rb +48 -0
- data/spec/api/testing_tokens_api_spec.rb +46 -0
- data/spec/api/users_api_spec.rb +366 -0
- data/spec/api/webhooks_api_spec.rb +68 -0
- data/spec/models/actor_token_spec.rb +92 -0
- data/spec/models/add_domain_request_spec.rb +48 -0
- data/spec/models/admin_spec.rb +62 -0
- data/spec/models/allowlist_identifier_spec.rb +86 -0
- data/spec/models/blocklist_identifier_spec.rb +80 -0
- data/spec/models/blocklist_identifiers_spec.rb +42 -0
- data/spec/models/c_name_target_spec.rb +48 -0
- data/spec/models/change_production_instance_domain_request_spec.rb +42 -0
- data/spec/models/clerk_error_spec.rb +60 -0
- data/spec/models/clerk_errors_spec.rb +42 -0
- data/spec/models/client_spec.rb +88 -0
- data/spec/models/create_actor_token_request_spec.rb +54 -0
- data/spec/models/create_allowlist_identifier_request_spec.rb +42 -0
- data/spec/models/create_blocklist_identifier_request_spec.rb +36 -0
- data/spec/models/create_email_address_request_spec.rb +54 -0
- data/spec/models/create_invitation_request_spec.rb +66 -0
- data/spec/models/create_jwt_template_request_spec.rb +72 -0
- data/spec/models/create_o_auth_application_request_spec.rb +54 -0
- data/spec/models/create_organization_domain_request_spec.rb +48 -0
- data/spec/models/create_organization_invitation_bulk_request_inner_spec.rb +66 -0
- data/spec/models/create_organization_invitation_request_spec.rb +66 -0
- data/spec/models/create_organization_membership_request_spec.rb +42 -0
- data/spec/models/create_organization_request_spec.rb +72 -0
- data/spec/models/create_phone_number_request_spec.rb +60 -0
- data/spec/models/create_redirect_url_request_spec.rb +36 -0
- data/spec/models/create_saml_connection_request_attribute_mapping_spec.rb +54 -0
- data/spec/models/create_saml_connection_request_spec.rb +88 -0
- data/spec/models/create_session_token_from_template200_response_spec.rb +46 -0
- data/spec/models/create_sign_in_token_request_spec.rb +42 -0
- data/spec/models/create_user_request_spec.rb +168 -0
- data/spec/models/deleted_object_spec.rb +54 -0
- data/spec/models/disable_mfa200_response_spec.rb +36 -0
- data/spec/models/domain_spec.rb +88 -0
- data/spec/models/domains_spec.rb +42 -0
- data/spec/models/email_address_spec.rb +82 -0
- data/spec/models/email_address_verification_spec.rb +32 -0
- data/spec/models/get_o_auth_access_token200_response_inner_spec.rb +84 -0
- data/spec/models/identification_link_spec.rb +46 -0
- data/spec/models/instance_restrictions_spec.rb +64 -0
- data/spec/models/invitation_spec.rb +98 -0
- data/spec/models/jwt_template_spec.rb +94 -0
- data/spec/models/merge_organization_metadata_request_spec.rb +42 -0
- data/spec/models/o_auth_application_spec.rb +112 -0
- data/spec/models/o_auth_application_with_secret_spec.rb +118 -0
- data/spec/models/o_auth_applications_spec.rb +42 -0
- data/spec/models/oauth_error_spec.rb +32 -0
- data/spec/models/oauth_spec.rb +74 -0
- data/spec/models/organization_domain_spec.rb +104 -0
- data/spec/models/organization_domain_verification_spec.rb +58 -0
- data/spec/models/organization_domains_spec.rb +42 -0
- data/spec/models/organization_invitation_spec.rb +100 -0
- data/spec/models/organization_invitation_with_public_organization_data_public_organization_data_spec.rb +60 -0
- data/spec/models/organization_invitation_with_public_organization_data_spec.rb +106 -0
- data/spec/models/organization_invitations_spec.rb +42 -0
- data/spec/models/organization_invitations_with_public_organization_data_spec.rb +42 -0
- data/spec/models/organization_membership_public_user_data_spec.rb +72 -0
- data/spec/models/organization_membership_spec.rb +100 -0
- data/spec/models/organization_memberships_spec.rb +42 -0
- data/spec/models/organization_settings_spec.rb +98 -0
- data/spec/models/organization_spec.rb +106 -0
- data/spec/models/organization_with_logo_spec.rb +124 -0
- data/spec/models/organizations_spec.rb +42 -0
- data/spec/models/otp_spec.rb +62 -0
- data/spec/models/passkey_spec.rb +72 -0
- data/spec/models/phone_number_spec.rb +100 -0
- data/spec/models/phone_number_verification_spec.rb +32 -0
- data/spec/models/preview_template_request_spec.rb +54 -0
- data/spec/models/proxy_check_spec.rb +82 -0
- data/spec/models/redirect_url_spec.rb +64 -0
- data/spec/models/revoke_invitation200_response_spec.rb +98 -0
- data/spec/models/revoke_organization_invitation_request_spec.rb +36 -0
- data/spec/models/saml_account_saml_connection_spec.rb +32 -0
- data/spec/models/saml_account_spec.rb +100 -0
- data/spec/models/saml_account_verification_spec.rb +32 -0
- data/spec/models/saml_connection_spec.rb +96 -0
- data/spec/models/saml_connections_spec.rb +42 -0
- data/spec/models/saml_spec.rb +74 -0
- data/spec/models/schemas_passkey_spec.rb +64 -0
- data/spec/models/schemas_passkey_verification_spec.rb +32 -0
- data/spec/models/schemas_saml_connection_attribute_mapping_spec.rb +54 -0
- data/spec/models/schemas_saml_connection_spec.rb +166 -0
- data/spec/models/session_latest_activity_spec.rb +84 -0
- data/spec/models/session_spec.rb +116 -0
- data/spec/models/sign_in_token_spec.rb +86 -0
- data/spec/models/sign_up_spec.rb +176 -0
- data/spec/models/svix_url_spec.rb +36 -0
- data/spec/models/template_spec.rb +166 -0
- data/spec/models/testing_token_spec.rb +52 -0
- data/spec/models/ticket_spec.rb +62 -0
- data/spec/models/toggle_template_delivery_request_spec.rb +36 -0
- data/spec/models/total_count_spec.rb +46 -0
- data/spec/models/totp_spec.rb +66 -0
- data/spec/models/update_domain_request_spec.rb +48 -0
- data/spec/models/update_email_address_request_spec.rb +42 -0
- data/spec/models/update_instance_auth_config200_response_spec.rb +70 -0
- data/spec/models/update_instance_auth_config_request_spec.rb +66 -0
- data/spec/models/update_instance_organization_settings_request_spec.rb +72 -0
- data/spec/models/update_instance_request_spec.rb +84 -0
- data/spec/models/update_instance_restrictions_request_spec.rb +60 -0
- data/spec/models/update_o_auth_application_request_spec.rb +48 -0
- data/spec/models/update_organization_domain_request_spec.rb +42 -0
- data/spec/models/update_organization_membership_metadata_request_spec.rb +42 -0
- data/spec/models/update_organization_membership_request_spec.rb +36 -0
- data/spec/models/update_organization_request_spec.rb +72 -0
- data/spec/models/update_phone_number_request_spec.rb +48 -0
- data/spec/models/update_production_instance_domain_request_spec.rb +36 -0
- data/spec/models/update_saml_connection_request_attribute_mapping_spec.rb +54 -0
- data/spec/models/update_saml_connection_request_spec.rb +108 -0
- data/spec/models/update_sign_up_request_spec.rb +36 -0
- data/spec/models/update_user_metadata_request_spec.rb +48 -0
- data/spec/models/update_user_request_spec.rb +180 -0
- data/spec/models/upsert_template_request_spec.rb +72 -0
- data/spec/models/user_spec.rb +268 -0
- data/spec/models/verify_client_request_spec.rb +36 -0
- data/spec/models/verify_domain_proxy_request_spec.rb +42 -0
- data/spec/models/verify_password200_response_spec.rb +36 -0
- data/spec/models/verify_password_request_spec.rb +36 -0
- data/spec/models/verify_session_request_spec.rb +36 -0
- data/spec/models/verify_totp200_response_spec.rb +46 -0
- data/spec/models/verify_totp_request_spec.rb +36 -0
- data/spec/models/web3_signature_spec.rb +74 -0
- data/spec/models/web3_wallet_spec.rb +70 -0
- data/spec/models/web3_wallet_verification_spec.rb +32 -0
- data/spec/models/well_known_jwks_keys_inner_spec.rb +66 -0
- data/spec/models/well_known_jwks_spec.rb +36 -0
- data/spec/spec_helper.rb +111 -0
- data/test.rb +2 -0
- metadata +782 -0
@@ -0,0 +1,259 @@
|
|
1
|
+
=begin
|
2
|
+
#Clerk Backend API
|
3
|
+
|
4
|
+
#The Clerk REST Backend API, meant to be accessed by backend servers. ### Versions When the API changes in a way that isn't compatible with older versions, a new version is released. Each version is identified by its release date, e.g. `2021-02-05`. For more information, please see [Clerk API Versions](https://clerk.com/docs/backend-requests/versioning/overview). Please see https://clerk.com/docs for more information.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v1
|
7
|
+
Contact: support@clerk.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.9.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module ClerkHttpClient
|
17
|
+
class WellKnownJWKSKeysInner
|
18
|
+
attr_accessor :use
|
19
|
+
|
20
|
+
attr_accessor :kty
|
21
|
+
|
22
|
+
attr_accessor :kid
|
23
|
+
|
24
|
+
attr_accessor :alg
|
25
|
+
|
26
|
+
attr_accessor :n
|
27
|
+
|
28
|
+
attr_accessor :e
|
29
|
+
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
31
|
+
def self.attribute_map
|
32
|
+
{
|
33
|
+
:'use' => :'use',
|
34
|
+
:'kty' => :'kty',
|
35
|
+
:'kid' => :'kid',
|
36
|
+
:'alg' => :'alg',
|
37
|
+
:'n' => :'n',
|
38
|
+
:'e' => :'e'
|
39
|
+
}
|
40
|
+
end
|
41
|
+
|
42
|
+
# Returns all the JSON keys this model knows about
|
43
|
+
def self.acceptable_attributes
|
44
|
+
attribute_map.values
|
45
|
+
end
|
46
|
+
|
47
|
+
# Attribute type mapping.
|
48
|
+
def self.openapi_types
|
49
|
+
{
|
50
|
+
:'use' => :'String',
|
51
|
+
:'kty' => :'String',
|
52
|
+
:'kid' => :'String',
|
53
|
+
:'alg' => :'String',
|
54
|
+
:'n' => :'String',
|
55
|
+
:'e' => :'String'
|
56
|
+
}
|
57
|
+
end
|
58
|
+
|
59
|
+
# List of attributes with nullable: true
|
60
|
+
def self.openapi_nullable
|
61
|
+
Set.new([
|
62
|
+
])
|
63
|
+
end
|
64
|
+
|
65
|
+
# Initializes the object
|
66
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
67
|
+
def initialize(attributes = {})
|
68
|
+
if (!attributes.is_a?(Hash))
|
69
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `ClerkHttpClient::WellKnownJWKSKeysInner` initialize method"
|
70
|
+
end
|
71
|
+
|
72
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
73
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
74
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ClerkHttpClient::WellKnownJWKSKeysInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
76
|
+
end
|
77
|
+
h[k.to_sym] = v
|
78
|
+
}
|
79
|
+
|
80
|
+
if attributes.key?(:'use')
|
81
|
+
self.use = attributes[:'use']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.key?(:'kty')
|
85
|
+
self.kty = attributes[:'kty']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.key?(:'kid')
|
89
|
+
self.kid = attributes[:'kid']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'alg')
|
93
|
+
self.alg = attributes[:'alg']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'n')
|
97
|
+
self.n = attributes[:'n']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.key?(:'e')
|
101
|
+
self.e = attributes[:'e']
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
106
|
+
# @return Array for valid properties with the reasons
|
107
|
+
def list_invalid_properties
|
108
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
109
|
+
invalid_properties = Array.new
|
110
|
+
invalid_properties
|
111
|
+
end
|
112
|
+
|
113
|
+
# Check to see if the all the properties in the model are valid
|
114
|
+
# @return true if the model is valid
|
115
|
+
def valid?
|
116
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
117
|
+
true
|
118
|
+
end
|
119
|
+
|
120
|
+
# Checks equality by comparing each attribute.
|
121
|
+
# @param [Object] Object to be compared
|
122
|
+
def ==(o)
|
123
|
+
return true if self.equal?(o)
|
124
|
+
self.class == o.class &&
|
125
|
+
use == o.use &&
|
126
|
+
kty == o.kty &&
|
127
|
+
kid == o.kid &&
|
128
|
+
alg == o.alg &&
|
129
|
+
n == o.n &&
|
130
|
+
e == o.e
|
131
|
+
end
|
132
|
+
|
133
|
+
# @see the `==` method
|
134
|
+
# @param [Object] Object to be compared
|
135
|
+
def eql?(o)
|
136
|
+
self == o
|
137
|
+
end
|
138
|
+
|
139
|
+
# Calculates hash code according to all attributes.
|
140
|
+
# @return [Integer] Hash code
|
141
|
+
def hash
|
142
|
+
[use, kty, kid, alg, n, e].hash
|
143
|
+
end
|
144
|
+
|
145
|
+
# Builds the object from hash
|
146
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
147
|
+
# @return [Object] Returns the model itself
|
148
|
+
def self.build_from_hash(attributes)
|
149
|
+
return nil unless attributes.is_a?(Hash)
|
150
|
+
attributes = attributes.transform_keys(&:to_sym)
|
151
|
+
transformed_hash = {}
|
152
|
+
openapi_types.each_pair do |key, type|
|
153
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
154
|
+
transformed_hash["#{key}"] = nil
|
155
|
+
elsif type =~ /\AArray<(.*)>/i
|
156
|
+
# check to ensure the input is an array given that the attribute
|
157
|
+
# is documented as an array but the input is not
|
158
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
159
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
160
|
+
end
|
161
|
+
elsif !attributes[attribute_map[key]].nil?
|
162
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
163
|
+
end
|
164
|
+
end
|
165
|
+
new(transformed_hash)
|
166
|
+
end
|
167
|
+
|
168
|
+
# Deserializes the data based on type
|
169
|
+
# @param string type Data type
|
170
|
+
# @param string value Value to be deserialized
|
171
|
+
# @return [Object] Deserialized data
|
172
|
+
def self._deserialize(type, value)
|
173
|
+
case type.to_sym
|
174
|
+
when :Time
|
175
|
+
Time.parse(value)
|
176
|
+
when :Date
|
177
|
+
Date.parse(value)
|
178
|
+
when :String
|
179
|
+
value.to_s
|
180
|
+
when :Integer
|
181
|
+
value.to_i
|
182
|
+
when :Float
|
183
|
+
value.to_f
|
184
|
+
when :Boolean
|
185
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
186
|
+
true
|
187
|
+
else
|
188
|
+
false
|
189
|
+
end
|
190
|
+
when :Object
|
191
|
+
# generic object (usually a Hash), return directly
|
192
|
+
value
|
193
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
194
|
+
inner_type = Regexp.last_match[:inner_type]
|
195
|
+
value.map { |v| _deserialize(inner_type, v) }
|
196
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
197
|
+
k_type = Regexp.last_match[:k_type]
|
198
|
+
v_type = Regexp.last_match[:v_type]
|
199
|
+
{}.tap do |hash|
|
200
|
+
value.each do |k, v|
|
201
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
202
|
+
end
|
203
|
+
end
|
204
|
+
else # model
|
205
|
+
# models (e.g. Pet) or oneOf
|
206
|
+
klass = ClerkHttpClient.const_get(type)
|
207
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
# Returns the string representation of the object
|
212
|
+
# @return [String] String presentation of the object
|
213
|
+
def to_s
|
214
|
+
to_hash.to_s
|
215
|
+
end
|
216
|
+
|
217
|
+
# to_body is an alias to to_hash (backward compatibility)
|
218
|
+
# @return [Hash] Returns the object in the form of hash
|
219
|
+
def to_body
|
220
|
+
to_hash
|
221
|
+
end
|
222
|
+
|
223
|
+
# Returns the object in the form of hash
|
224
|
+
# @return [Hash] Returns the object in the form of hash
|
225
|
+
def to_hash
|
226
|
+
hash = {}
|
227
|
+
self.class.attribute_map.each_pair do |attr, param|
|
228
|
+
value = self.send(attr)
|
229
|
+
if value.nil?
|
230
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
231
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
232
|
+
end
|
233
|
+
|
234
|
+
hash[param] = _to_hash(value)
|
235
|
+
end
|
236
|
+
hash
|
237
|
+
end
|
238
|
+
|
239
|
+
# Outputs non-array value in the form of hash
|
240
|
+
# For object, use to_hash. Otherwise, just return the value
|
241
|
+
# @param [Object] value Any valid value
|
242
|
+
# @return [Hash] Returns the value in the form of hash
|
243
|
+
def _to_hash(value)
|
244
|
+
if value.is_a?(Array)
|
245
|
+
value.compact.map { |v| _to_hash(v) }
|
246
|
+
elsif value.is_a?(Hash)
|
247
|
+
{}.tap do |hash|
|
248
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
249
|
+
end
|
250
|
+
elsif value.respond_to? :to_hash
|
251
|
+
value.to_hash
|
252
|
+
else
|
253
|
+
value
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
end
|
258
|
+
|
259
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
=begin
|
2
|
+
#Clerk Backend API
|
3
|
+
|
4
|
+
#The Clerk REST Backend API, meant to be accessed by backend servers. ### Versions When the API changes in a way that isn't compatible with older versions, a new version is released. Each version is identified by its release date, e.g. `2021-02-05`. For more information, please see [Clerk API Versions](https://clerk.com/docs/backend-requests/versioning/overview). Please see https://clerk.com/docs for more information.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v1
|
7
|
+
Contact: support@clerk.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.9.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
module ClerkHttpClient
|
14
|
+
VERSION = '0.0.1'
|
15
|
+
end
|
@@ -0,0 +1,321 @@
|
|
1
|
+
=begin
|
2
|
+
#Clerk Backend API
|
3
|
+
|
4
|
+
#The Clerk REST Backend API, meant to be accessed by backend servers. ### Versions When the API changes in a way that isn't compatible with older versions, a new version is released. Each version is identified by its release date, e.g. `2021-02-05`. For more information, please see [Clerk API Versions](https://clerk.com/docs/backend-requests/versioning/overview). Please see https://clerk.com/docs for more information.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v1
|
7
|
+
Contact: support@clerk.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.9.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
# Common files
|
14
|
+
require 'clerk-http-client/api_client'
|
15
|
+
require 'clerk-http-client/api_error'
|
16
|
+
require 'clerk-http-client/version'
|
17
|
+
require 'clerk-http-client/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
ClerkHttpClient.autoload :ActorToken, 'clerk-http-client/models/actor_token'
|
21
|
+
ClerkHttpClient.autoload :AddDomainRequest, 'clerk-http-client/models/add_domain_request'
|
22
|
+
ClerkHttpClient.autoload :Admin, 'clerk-http-client/models/admin'
|
23
|
+
ClerkHttpClient.autoload :AllowlistIdentifier, 'clerk-http-client/models/allowlist_identifier'
|
24
|
+
ClerkHttpClient.autoload :BlocklistIdentifier, 'clerk-http-client/models/blocklist_identifier'
|
25
|
+
ClerkHttpClient.autoload :BlocklistIdentifiers, 'clerk-http-client/models/blocklist_identifiers'
|
26
|
+
ClerkHttpClient.autoload :CNameTarget, 'clerk-http-client/models/c_name_target'
|
27
|
+
ClerkHttpClient.autoload :ChangeProductionInstanceDomainRequest, 'clerk-http-client/models/change_production_instance_domain_request'
|
28
|
+
ClerkHttpClient.autoload :ClerkError, 'clerk-http-client/models/clerk_error'
|
29
|
+
ClerkHttpClient.autoload :ClerkErrors, 'clerk-http-client/models/clerk_errors'
|
30
|
+
ClerkHttpClient.autoload :Client, 'clerk-http-client/models/client'
|
31
|
+
ClerkHttpClient.autoload :CreateActorTokenRequest, 'clerk-http-client/models/create_actor_token_request'
|
32
|
+
ClerkHttpClient.autoload :CreateAllowlistIdentifierRequest, 'clerk-http-client/models/create_allowlist_identifier_request'
|
33
|
+
ClerkHttpClient.autoload :CreateBlocklistIdentifierRequest, 'clerk-http-client/models/create_blocklist_identifier_request'
|
34
|
+
ClerkHttpClient.autoload :CreateEmailAddressRequest, 'clerk-http-client/models/create_email_address_request'
|
35
|
+
ClerkHttpClient.autoload :CreateInvitationRequest, 'clerk-http-client/models/create_invitation_request'
|
36
|
+
ClerkHttpClient.autoload :CreateJWTTemplateRequest, 'clerk-http-client/models/create_jwt_template_request'
|
37
|
+
ClerkHttpClient.autoload :CreateOAuthApplicationRequest, 'clerk-http-client/models/create_o_auth_application_request'
|
38
|
+
ClerkHttpClient.autoload :CreateOrganizationDomainRequest, 'clerk-http-client/models/create_organization_domain_request'
|
39
|
+
ClerkHttpClient.autoload :CreateOrganizationInvitationBulkRequestInner, 'clerk-http-client/models/create_organization_invitation_bulk_request_inner'
|
40
|
+
ClerkHttpClient.autoload :CreateOrganizationInvitationRequest, 'clerk-http-client/models/create_organization_invitation_request'
|
41
|
+
ClerkHttpClient.autoload :CreateOrganizationMembershipRequest, 'clerk-http-client/models/create_organization_membership_request'
|
42
|
+
ClerkHttpClient.autoload :CreateOrganizationRequest, 'clerk-http-client/models/create_organization_request'
|
43
|
+
ClerkHttpClient.autoload :CreatePhoneNumberRequest, 'clerk-http-client/models/create_phone_number_request'
|
44
|
+
ClerkHttpClient.autoload :CreateRedirectURLRequest, 'clerk-http-client/models/create_redirect_url_request'
|
45
|
+
ClerkHttpClient.autoload :CreateSAMLConnectionRequest, 'clerk-http-client/models/create_saml_connection_request'
|
46
|
+
ClerkHttpClient.autoload :CreateSAMLConnectionRequestAttributeMapping, 'clerk-http-client/models/create_saml_connection_request_attribute_mapping'
|
47
|
+
ClerkHttpClient.autoload :CreateSessionTokenFromTemplate200Response, 'clerk-http-client/models/create_session_token_from_template200_response'
|
48
|
+
ClerkHttpClient.autoload :CreateSignInTokenRequest, 'clerk-http-client/models/create_sign_in_token_request'
|
49
|
+
ClerkHttpClient.autoload :CreateUserRequest, 'clerk-http-client/models/create_user_request'
|
50
|
+
ClerkHttpClient.autoload :DeletedObject, 'clerk-http-client/models/deleted_object'
|
51
|
+
ClerkHttpClient.autoload :DisableMFA200Response, 'clerk-http-client/models/disable_mfa200_response'
|
52
|
+
ClerkHttpClient.autoload :Domain, 'clerk-http-client/models/domain'
|
53
|
+
ClerkHttpClient.autoload :Domains, 'clerk-http-client/models/domains'
|
54
|
+
ClerkHttpClient.autoload :EmailAddress, 'clerk-http-client/models/email_address'
|
55
|
+
ClerkHttpClient.autoload :EmailAddressVerification, 'clerk-http-client/models/email_address_verification'
|
56
|
+
ClerkHttpClient.autoload :GetOAuthAccessToken200ResponseInner, 'clerk-http-client/models/get_o_auth_access_token200_response_inner'
|
57
|
+
ClerkHttpClient.autoload :IdentificationLink, 'clerk-http-client/models/identification_link'
|
58
|
+
ClerkHttpClient.autoload :InstanceRestrictions, 'clerk-http-client/models/instance_restrictions'
|
59
|
+
ClerkHttpClient.autoload :Invitation, 'clerk-http-client/models/invitation'
|
60
|
+
ClerkHttpClient.autoload :JWTTemplate, 'clerk-http-client/models/jwt_template'
|
61
|
+
ClerkHttpClient.autoload :MergeOrganizationMetadataRequest, 'clerk-http-client/models/merge_organization_metadata_request'
|
62
|
+
ClerkHttpClient.autoload :OAuthApplication, 'clerk-http-client/models/o_auth_application'
|
63
|
+
ClerkHttpClient.autoload :OAuthApplicationWithSecret, 'clerk-http-client/models/o_auth_application_with_secret'
|
64
|
+
ClerkHttpClient.autoload :OAuthApplications, 'clerk-http-client/models/o_auth_applications'
|
65
|
+
ClerkHttpClient.autoload :OTP, 'clerk-http-client/models/otp'
|
66
|
+
ClerkHttpClient.autoload :Oauth, 'clerk-http-client/models/oauth'
|
67
|
+
ClerkHttpClient.autoload :OauthError, 'clerk-http-client/models/oauth_error'
|
68
|
+
ClerkHttpClient.autoload :Organization, 'clerk-http-client/models/organization'
|
69
|
+
ClerkHttpClient.autoload :OrganizationDomain, 'clerk-http-client/models/organization_domain'
|
70
|
+
ClerkHttpClient.autoload :OrganizationDomainVerification, 'clerk-http-client/models/organization_domain_verification'
|
71
|
+
ClerkHttpClient.autoload :OrganizationDomains, 'clerk-http-client/models/organization_domains'
|
72
|
+
ClerkHttpClient.autoload :OrganizationInvitation, 'clerk-http-client/models/organization_invitation'
|
73
|
+
ClerkHttpClient.autoload :OrganizationInvitationWithPublicOrganizationData, 'clerk-http-client/models/organization_invitation_with_public_organization_data'
|
74
|
+
ClerkHttpClient.autoload :OrganizationInvitationWithPublicOrganizationDataPublicOrganizationData, 'clerk-http-client/models/organization_invitation_with_public_organization_data_public_organization_data'
|
75
|
+
ClerkHttpClient.autoload :OrganizationInvitations, 'clerk-http-client/models/organization_invitations'
|
76
|
+
ClerkHttpClient.autoload :OrganizationInvitationsWithPublicOrganizationData, 'clerk-http-client/models/organization_invitations_with_public_organization_data'
|
77
|
+
ClerkHttpClient.autoload :OrganizationMembership, 'clerk-http-client/models/organization_membership'
|
78
|
+
ClerkHttpClient.autoload :OrganizationMembershipPublicUserData, 'clerk-http-client/models/organization_membership_public_user_data'
|
79
|
+
ClerkHttpClient.autoload :OrganizationMemberships, 'clerk-http-client/models/organization_memberships'
|
80
|
+
ClerkHttpClient.autoload :OrganizationSettings, 'clerk-http-client/models/organization_settings'
|
81
|
+
ClerkHttpClient.autoload :OrganizationWithLogo, 'clerk-http-client/models/organization_with_logo'
|
82
|
+
ClerkHttpClient.autoload :Organizations, 'clerk-http-client/models/organizations'
|
83
|
+
ClerkHttpClient.autoload :Passkey, 'clerk-http-client/models/passkey'
|
84
|
+
ClerkHttpClient.autoload :PhoneNumber, 'clerk-http-client/models/phone_number'
|
85
|
+
ClerkHttpClient.autoload :PhoneNumberVerification, 'clerk-http-client/models/phone_number_verification'
|
86
|
+
ClerkHttpClient.autoload :PreviewTemplateRequest, 'clerk-http-client/models/preview_template_request'
|
87
|
+
ClerkHttpClient.autoload :ProxyCheck, 'clerk-http-client/models/proxy_check'
|
88
|
+
ClerkHttpClient.autoload :RedirectURL, 'clerk-http-client/models/redirect_url'
|
89
|
+
ClerkHttpClient.autoload :RevokeInvitation200Response, 'clerk-http-client/models/revoke_invitation200_response'
|
90
|
+
ClerkHttpClient.autoload :RevokeOrganizationInvitationRequest, 'clerk-http-client/models/revoke_organization_invitation_request'
|
91
|
+
ClerkHttpClient.autoload :SAML, 'clerk-http-client/models/saml'
|
92
|
+
ClerkHttpClient.autoload :SAMLAccount, 'clerk-http-client/models/saml_account'
|
93
|
+
ClerkHttpClient.autoload :SAMLAccountSamlConnection, 'clerk-http-client/models/saml_account_saml_connection'
|
94
|
+
ClerkHttpClient.autoload :SAMLAccountVerification, 'clerk-http-client/models/saml_account_verification'
|
95
|
+
ClerkHttpClient.autoload :SAMLConnection, 'clerk-http-client/models/saml_connection'
|
96
|
+
ClerkHttpClient.autoload :SAMLConnections, 'clerk-http-client/models/saml_connections'
|
97
|
+
ClerkHttpClient.autoload :SchemasPasskey, 'clerk-http-client/models/schemas_passkey'
|
98
|
+
ClerkHttpClient.autoload :SchemasPasskeyVerification, 'clerk-http-client/models/schemas_passkey_verification'
|
99
|
+
ClerkHttpClient.autoload :SchemasSAMLConnection, 'clerk-http-client/models/schemas_saml_connection'
|
100
|
+
ClerkHttpClient.autoload :SchemasSAMLConnectionAttributeMapping, 'clerk-http-client/models/schemas_saml_connection_attribute_mapping'
|
101
|
+
ClerkHttpClient.autoload :Session, 'clerk-http-client/models/session'
|
102
|
+
ClerkHttpClient.autoload :SessionLatestActivity, 'clerk-http-client/models/session_latest_activity'
|
103
|
+
ClerkHttpClient.autoload :SignInToken, 'clerk-http-client/models/sign_in_token'
|
104
|
+
ClerkHttpClient.autoload :SignUp, 'clerk-http-client/models/sign_up'
|
105
|
+
ClerkHttpClient.autoload :SvixURL, 'clerk-http-client/models/svix_url'
|
106
|
+
ClerkHttpClient.autoload :TOTP, 'clerk-http-client/models/totp'
|
107
|
+
ClerkHttpClient.autoload :Template, 'clerk-http-client/models/template'
|
108
|
+
ClerkHttpClient.autoload :TestingToken, 'clerk-http-client/models/testing_token'
|
109
|
+
ClerkHttpClient.autoload :Ticket, 'clerk-http-client/models/ticket'
|
110
|
+
ClerkHttpClient.autoload :ToggleTemplateDeliveryRequest, 'clerk-http-client/models/toggle_template_delivery_request'
|
111
|
+
ClerkHttpClient.autoload :TotalCount, 'clerk-http-client/models/total_count'
|
112
|
+
ClerkHttpClient.autoload :UpdateDomainRequest, 'clerk-http-client/models/update_domain_request'
|
113
|
+
ClerkHttpClient.autoload :UpdateEmailAddressRequest, 'clerk-http-client/models/update_email_address_request'
|
114
|
+
ClerkHttpClient.autoload :UpdateInstanceAuthConfig200Response, 'clerk-http-client/models/update_instance_auth_config200_response'
|
115
|
+
ClerkHttpClient.autoload :UpdateInstanceAuthConfigRequest, 'clerk-http-client/models/update_instance_auth_config_request'
|
116
|
+
ClerkHttpClient.autoload :UpdateInstanceOrganizationSettingsRequest, 'clerk-http-client/models/update_instance_organization_settings_request'
|
117
|
+
ClerkHttpClient.autoload :UpdateInstanceRequest, 'clerk-http-client/models/update_instance_request'
|
118
|
+
ClerkHttpClient.autoload :UpdateInstanceRestrictionsRequest, 'clerk-http-client/models/update_instance_restrictions_request'
|
119
|
+
ClerkHttpClient.autoload :UpdateOAuthApplicationRequest, 'clerk-http-client/models/update_o_auth_application_request'
|
120
|
+
ClerkHttpClient.autoload :UpdateOrganizationDomainRequest, 'clerk-http-client/models/update_organization_domain_request'
|
121
|
+
ClerkHttpClient.autoload :UpdateOrganizationMembershipMetadataRequest, 'clerk-http-client/models/update_organization_membership_metadata_request'
|
122
|
+
ClerkHttpClient.autoload :UpdateOrganizationMembershipRequest, 'clerk-http-client/models/update_organization_membership_request'
|
123
|
+
ClerkHttpClient.autoload :UpdateOrganizationRequest, 'clerk-http-client/models/update_organization_request'
|
124
|
+
ClerkHttpClient.autoload :UpdatePhoneNumberRequest, 'clerk-http-client/models/update_phone_number_request'
|
125
|
+
ClerkHttpClient.autoload :UpdateProductionInstanceDomainRequest, 'clerk-http-client/models/update_production_instance_domain_request'
|
126
|
+
ClerkHttpClient.autoload :UpdateSAMLConnectionRequest, 'clerk-http-client/models/update_saml_connection_request'
|
127
|
+
ClerkHttpClient.autoload :UpdateSAMLConnectionRequestAttributeMapping, 'clerk-http-client/models/update_saml_connection_request_attribute_mapping'
|
128
|
+
ClerkHttpClient.autoload :UpdateSignUpRequest, 'clerk-http-client/models/update_sign_up_request'
|
129
|
+
ClerkHttpClient.autoload :UpdateUserMetadataRequest, 'clerk-http-client/models/update_user_metadata_request'
|
130
|
+
ClerkHttpClient.autoload :UpdateUserRequest, 'clerk-http-client/models/update_user_request'
|
131
|
+
ClerkHttpClient.autoload :UpsertTemplateRequest, 'clerk-http-client/models/upsert_template_request'
|
132
|
+
ClerkHttpClient.autoload :User, 'clerk-http-client/models/user'
|
133
|
+
ClerkHttpClient.autoload :VerifyClientRequest, 'clerk-http-client/models/verify_client_request'
|
134
|
+
ClerkHttpClient.autoload :VerifyDomainProxyRequest, 'clerk-http-client/models/verify_domain_proxy_request'
|
135
|
+
ClerkHttpClient.autoload :VerifyPassword200Response, 'clerk-http-client/models/verify_password200_response'
|
136
|
+
ClerkHttpClient.autoload :VerifyPasswordRequest, 'clerk-http-client/models/verify_password_request'
|
137
|
+
ClerkHttpClient.autoload :VerifySessionRequest, 'clerk-http-client/models/verify_session_request'
|
138
|
+
ClerkHttpClient.autoload :VerifyTOTP200Response, 'clerk-http-client/models/verify_totp200_response'
|
139
|
+
ClerkHttpClient.autoload :VerifyTOTPRequest, 'clerk-http-client/models/verify_totp_request'
|
140
|
+
ClerkHttpClient.autoload :Web3Signature, 'clerk-http-client/models/web3_signature'
|
141
|
+
ClerkHttpClient.autoload :Web3Wallet, 'clerk-http-client/models/web3_wallet'
|
142
|
+
ClerkHttpClient.autoload :Web3WalletVerification, 'clerk-http-client/models/web3_wallet_verification'
|
143
|
+
ClerkHttpClient.autoload :WellKnownJWKS, 'clerk-http-client/models/well_known_jwks'
|
144
|
+
ClerkHttpClient.autoload :WellKnownJWKSKeysInner, 'clerk-http-client/models/well_known_jwks_keys_inner'
|
145
|
+
|
146
|
+
# APIs
|
147
|
+
ClerkHttpClient.autoload :ActorTokensApi, 'clerk-http-client/api/actor_tokens_api'
|
148
|
+
ClerkHttpClient.autoload :AllowListBlockListApi, 'clerk-http-client/api/allow_list_block_list_api'
|
149
|
+
ClerkHttpClient.autoload :BetaFeaturesApi, 'clerk-http-client/api/beta_features_api'
|
150
|
+
ClerkHttpClient.autoload :ClientsApi, 'clerk-http-client/api/clients_api'
|
151
|
+
ClerkHttpClient.autoload :DomainsApi, 'clerk-http-client/api/domains_api'
|
152
|
+
ClerkHttpClient.autoload :EmailAddressesApi, 'clerk-http-client/api/email_addresses_api'
|
153
|
+
ClerkHttpClient.autoload :EmailSMSTemplatesApi, 'clerk-http-client/api/email_sms_templates_api'
|
154
|
+
ClerkHttpClient.autoload :InstanceSettingsApi, 'clerk-http-client/api/instance_settings_api'
|
155
|
+
ClerkHttpClient.autoload :InvitationsApi, 'clerk-http-client/api/invitations_api'
|
156
|
+
ClerkHttpClient.autoload :JWKSApi, 'clerk-http-client/api/jwks_api'
|
157
|
+
ClerkHttpClient.autoload :JWTTemplatesApi, 'clerk-http-client/api/jwt_templates_api'
|
158
|
+
ClerkHttpClient.autoload :MiscellaneousApi, 'clerk-http-client/api/miscellaneous_api'
|
159
|
+
ClerkHttpClient.autoload :OAuthApplicationsApi, 'clerk-http-client/api/o_auth_applications_api'
|
160
|
+
ClerkHttpClient.autoload :OrganizationDomainApi, 'clerk-http-client/api/organization_domain_api'
|
161
|
+
ClerkHttpClient.autoload :OrganizationDomainsApi, 'clerk-http-client/api/organization_domains_api'
|
162
|
+
ClerkHttpClient.autoload :OrganizationInvitationsApi, 'clerk-http-client/api/organization_invitations_api'
|
163
|
+
ClerkHttpClient.autoload :OrganizationMembershipsApi, 'clerk-http-client/api/organization_memberships_api'
|
164
|
+
ClerkHttpClient.autoload :OrganizationsApi, 'clerk-http-client/api/organizations_api'
|
165
|
+
ClerkHttpClient.autoload :PhoneNumbersApi, 'clerk-http-client/api/phone_numbers_api'
|
166
|
+
ClerkHttpClient.autoload :ProxyChecksApi, 'clerk-http-client/api/proxy_checks_api'
|
167
|
+
ClerkHttpClient.autoload :RedirectURLsApi, 'clerk-http-client/api/redirect_urls_api'
|
168
|
+
ClerkHttpClient.autoload :SAMLConnectionsApi, 'clerk-http-client/api/saml_connections_api'
|
169
|
+
ClerkHttpClient.autoload :SessionsApi, 'clerk-http-client/api/sessions_api'
|
170
|
+
ClerkHttpClient.autoload :SignInTokensApi, 'clerk-http-client/api/sign_in_tokens_api'
|
171
|
+
ClerkHttpClient.autoload :SignUpsApi, 'clerk-http-client/api/sign_ups_api'
|
172
|
+
ClerkHttpClient.autoload :TestingTokensApi, 'clerk-http-client/api/testing_tokens_api'
|
173
|
+
ClerkHttpClient.autoload :UsersApi, 'clerk-http-client/api/users_api'
|
174
|
+
ClerkHttpClient.autoload :WebhooksApi, 'clerk-http-client/api/webhooks_api'
|
175
|
+
|
176
|
+
module ClerkHttpClient
|
177
|
+
class << self
|
178
|
+
# Customize default settings for the SDK using block.
|
179
|
+
# ClerkHttpClient.configure do |config|
|
180
|
+
# config.username = "xxx"
|
181
|
+
# config.password = "xxx"
|
182
|
+
# end
|
183
|
+
# If no block given, return the default Configuration object.
|
184
|
+
def configure
|
185
|
+
if block_given?
|
186
|
+
yield(Configuration.default)
|
187
|
+
else
|
188
|
+
Configuration.default
|
189
|
+
end
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
class SDK
|
194
|
+
attr_accessor :config
|
195
|
+
|
196
|
+
def initialize(config = Configuration.default)
|
197
|
+
@config = config
|
198
|
+
api_suffix = 'api'
|
199
|
+
|
200
|
+
methods.each do |m|
|
201
|
+
next unless m.end_with?(api_suffix)
|
202
|
+
|
203
|
+
alias_name = m.to_s.delete_suffix(api_suffix)
|
204
|
+
self.class.send(:alias_method, alias_name.to_sym, m)
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
def actortokensapi
|
209
|
+
ClerkHttpClient::ActorTokensApi.new
|
210
|
+
end
|
211
|
+
|
212
|
+
def allowlistblocklistapi
|
213
|
+
ClerkHttpClient::AllowListBlockListApi.new
|
214
|
+
end
|
215
|
+
|
216
|
+
def betafeaturesapi
|
217
|
+
ClerkHttpClient::BetaFeaturesApi.new
|
218
|
+
end
|
219
|
+
|
220
|
+
def clientsapi
|
221
|
+
ClerkHttpClient::ClientsApi.new
|
222
|
+
end
|
223
|
+
|
224
|
+
def domainsapi
|
225
|
+
ClerkHttpClient::DomainsApi.new
|
226
|
+
end
|
227
|
+
|
228
|
+
def emailaddressesapi
|
229
|
+
ClerkHttpClient::EmailAddressesApi.new
|
230
|
+
end
|
231
|
+
|
232
|
+
def emailsmstemplatesapi
|
233
|
+
ClerkHttpClient::EmailSMSTemplatesApi.new
|
234
|
+
end
|
235
|
+
|
236
|
+
def instancesettingsapi
|
237
|
+
ClerkHttpClient::InstanceSettingsApi.new
|
238
|
+
end
|
239
|
+
|
240
|
+
def invitationsapi
|
241
|
+
ClerkHttpClient::InvitationsApi.new
|
242
|
+
end
|
243
|
+
|
244
|
+
def jwksapi
|
245
|
+
ClerkHttpClient::JWKSApi.new
|
246
|
+
end
|
247
|
+
|
248
|
+
def jwttemplatesapi
|
249
|
+
ClerkHttpClient::JWTTemplatesApi.new
|
250
|
+
end
|
251
|
+
|
252
|
+
def miscellaneousapi
|
253
|
+
ClerkHttpClient::MiscellaneousApi.new
|
254
|
+
end
|
255
|
+
|
256
|
+
def oauthapplicationsapi
|
257
|
+
ClerkHttpClient::OAuthApplicationsApi.new
|
258
|
+
end
|
259
|
+
|
260
|
+
def organizationdomainapi
|
261
|
+
ClerkHttpClient::OrganizationDomainApi.new
|
262
|
+
end
|
263
|
+
|
264
|
+
def organizationdomainsapi
|
265
|
+
ClerkHttpClient::OrganizationDomainsApi.new
|
266
|
+
end
|
267
|
+
|
268
|
+
def organizationinvitationsapi
|
269
|
+
ClerkHttpClient::OrganizationInvitationsApi.new
|
270
|
+
end
|
271
|
+
|
272
|
+
def organizationmembershipsapi
|
273
|
+
ClerkHttpClient::OrganizationMembershipsApi.new
|
274
|
+
end
|
275
|
+
|
276
|
+
def organizationsapi
|
277
|
+
ClerkHttpClient::OrganizationsApi.new
|
278
|
+
end
|
279
|
+
|
280
|
+
def phonenumbersapi
|
281
|
+
ClerkHttpClient::PhoneNumbersApi.new
|
282
|
+
end
|
283
|
+
|
284
|
+
def proxychecksapi
|
285
|
+
ClerkHttpClient::ProxyChecksApi.new
|
286
|
+
end
|
287
|
+
|
288
|
+
def redirecturlsapi
|
289
|
+
ClerkHttpClient::RedirectURLsApi.new
|
290
|
+
end
|
291
|
+
|
292
|
+
def samlconnectionsapi
|
293
|
+
ClerkHttpClient::SAMLConnectionsApi.new
|
294
|
+
end
|
295
|
+
|
296
|
+
def sessionsapi
|
297
|
+
ClerkHttpClient::SessionsApi.new
|
298
|
+
end
|
299
|
+
|
300
|
+
def signintokensapi
|
301
|
+
ClerkHttpClient::SignInTokensApi.new
|
302
|
+
end
|
303
|
+
|
304
|
+
def signupsapi
|
305
|
+
ClerkHttpClient::SignUpsApi.new
|
306
|
+
end
|
307
|
+
|
308
|
+
def testingtokensapi
|
309
|
+
ClerkHttpClient::TestingTokensApi.new
|
310
|
+
end
|
311
|
+
|
312
|
+
def usersapi
|
313
|
+
ClerkHttpClient::UsersApi.new
|
314
|
+
end
|
315
|
+
|
316
|
+
def webhooksapi
|
317
|
+
ClerkHttpClient::WebhooksApi.new
|
318
|
+
end
|
319
|
+
|
320
|
+
end
|
321
|
+
end
|
data/openapitools.json
ADDED
Binary file
|
data/resources/.DS_Store
ADDED
Binary file
|