clerk-http-client 1.0.0 → 2.0.0.beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +155 -191
- data/clerk-http-client.gemspec +1 -1
- data/docs/ActorTokensApi.md +26 -26
- data/docs/AllowListBlockListApi.md +72 -74
- data/docs/BetaFeaturesApi.md +42 -41
- data/docs/ClientsApi.md +36 -37
- data/docs/CreateBulkInvitationsRequestInner.md +28 -0
- data/docs/CreateInvitationRequest.md +6 -4
- data/docs/{CreateOAuthApplicationRequest.md → CreateOauthApplicationRequest.md} +1 -1
- data/docs/CreateOrganizationInvitationBulkRequestInner.md +2 -2
- data/docs/CreateOrganizationInvitationRequest.md +5 -3
- data/docs/CreateOrganizationRequest.md +3 -3
- data/docs/CreateSAMLConnectionRequest.md +2 -0
- data/docs/CreateSessionRequest.md +18 -0
- data/docs/CreateSessionToken200Response.md +20 -0
- data/docs/CreateSessionTokenFromTemplateRequest.md +18 -0
- data/docs/CreateSessionTokenRequest.md +18 -0
- data/docs/CreateUserRequest.md +3 -3
- data/docs/CreateWaitlistEntryRequest.md +20 -0
- data/docs/DomainsApi.md +46 -48
- data/docs/EmailAddress.md +2 -0
- data/docs/EmailAddressVerification.md +3 -3
- data/docs/EmailAddressesApi.md +52 -52
- data/docs/EmailSMSTemplatesApi.md +60 -66
- data/docs/FromOauth.md +26 -0
- data/docs/FromOauthError.md +47 -0
- data/docs/{GetOAuthAccessToken200ResponseInner.md → GetOauthAccessToken200ResponseInner.md} +4 -2
- data/docs/Instance.md +24 -0
- data/docs/InstanceSettingsApi.md +114 -45
- data/docs/Invitation.md +1 -1
- data/docs/InvitationsApi.md +110 -38
- data/docs/JWKS.md +18 -0
- data/docs/JWKSApi.md +14 -15
- data/docs/JWKSKeysInner.md +32 -0
- data/docs/JWTTemplatesApi.md +62 -63
- data/docs/ListWaitlistEntries200Response.md +20 -0
- data/docs/MergeOrganizationMetadataRequest.md +2 -2
- data/docs/MiscellaneousApi.md +11 -7
- data/docs/{OAuthApplication.md → OauthApplication.md} +4 -0
- data/docs/{OAuthApplicationWithSecret.md → OauthApplicationWithSecret.md} +4 -0
- data/docs/{OAuthApplicationsApi.md → OauthApplicationsApi.md} +90 -94
- data/docs/Organization.md +2 -2
- data/docs/OrganizationDomainApi.md +15 -13
- data/docs/OrganizationDomainsApi.md +103 -33
- data/docs/OrganizationInvitation.md +6 -2
- data/docs/OrganizationInvitationWithPublicOrganizationData.md +4 -2
- data/docs/OrganizationInvitationsApi.md +76 -81
- data/docs/OrganizationMembership.md +2 -2
- data/docs/OrganizationMembershipsApi.md +66 -70
- data/docs/OrganizationWithLogo.md +2 -2
- data/docs/OrganizationsApi.md +87 -93
- data/docs/PhoneNumbersApi.md +52 -52
- data/docs/ProxyChecksApi.md +16 -15
- data/docs/{RedirectURLsApi.md → RedirectUrlsApi.md} +46 -48
- data/docs/RevokeInvitation200Response.md +1 -1
- data/docs/SAML.md +1 -1
- data/docs/SAMLAccount.md +1 -1
- data/docs/SAMLConnectionsApi.md +59 -60
- data/docs/SchemasSAMLConnection.md +2 -0
- data/docs/SessionsApi.md +203 -60
- data/docs/SignInTokensApi.md +26 -26
- data/docs/SignUp.md +4 -2
- data/docs/SignUpsApi.md +16 -15
- data/docs/TestingTokensApi.md +11 -12
- data/docs/UpdateOrganizationMembershipMetadataRequest.md +2 -2
- data/docs/UpdateOrganizationRequest.md +2 -2
- data/docs/UpdateSAMLConnectionRequest.md +2 -0
- data/docs/UpdateUserRequest.md +3 -3
- data/docs/User.md +3 -3
- data/docs/UsersApi.md +297 -294
- data/docs/WaitlistEntriesApi.md +157 -0
- data/docs/WaitlistEntry.md +32 -0
- data/docs/WaitlistEntryInvitation.md +36 -0
- data/docs/WebhooksApi.md +30 -33
- data/lib/clerk-http-client/api/actor_tokens_api.rb +10 -14
- data/lib/clerk-http-client/api/allow_list_block_list_api.rb +25 -33
- data/lib/clerk-http-client/api/beta_features_api.rb +13 -21
- data/lib/clerk-http-client/api/clients_api.rb +13 -17
- data/lib/clerk-http-client/api/domains_api.rb +16 -20
- data/lib/clerk-http-client/api/email_addresses_api.rb +19 -27
- data/lib/clerk-http-client/api/email_sms_templates_api.rb +19 -19
- data/lib/clerk-http-client/api/instance_settings_api.rb +78 -31
- data/lib/clerk-http-client/api/invitations_api.rb +82 -17
- data/lib/clerk-http-client/api/jwks_api.rb +7 -7
- data/lib/clerk-http-client/api/jwt_templates_api.rb +22 -30
- data/lib/clerk-http-client/api/miscellaneous_api.rb +4 -4
- data/lib/clerk-http-client/api/{o_auth_applications_api.rb → oauth_applications_api.rb} +53 -57
- data/lib/clerk-http-client/api/organization_domains_api.rb +92 -10
- data/lib/clerk-http-client/api/organization_invitations_api.rb +25 -29
- data/lib/clerk-http-client/api/organization_memberships_api.rb +22 -26
- data/lib/clerk-http-client/api/organizations_api.rb +30 -34
- data/lib/clerk-http-client/api/phone_numbers_api.rb +19 -27
- data/lib/clerk-http-client/api/proxy_checks_api.rb +7 -11
- data/lib/clerk-http-client/api/redirect_urls_api.rb +16 -20
- data/lib/clerk-http-client/api/saml_connections_api.rb +22 -23
- data/lib/clerk-http-client/api/sessions_api.rb +165 -20
- data/lib/clerk-http-client/api/sign_in_tokens_api.rb +10 -14
- data/lib/clerk-http-client/api/sign_ups_api.rb +7 -11
- data/lib/clerk-http-client/api/testing_tokens_api.rb +6 -6
- data/lib/clerk-http-client/api/users_api.rb +149 -92
- data/lib/clerk-http-client/api/waitlist_entries_api.rb +178 -0
- data/lib/clerk-http-client/api/webhooks_api.rb +10 -10
- data/lib/clerk-http-client/api_client.rb +1 -1
- data/lib/clerk-http-client/api_error.rb +1 -1
- data/lib/clerk-http-client/configuration.rb +1 -1
- data/lib/clerk-http-client/models/actor_token.rb +2 -1
- data/lib/clerk-http-client/models/add_domain_request.rb +2 -1
- data/lib/clerk-http-client/models/admin.rb +2 -1
- data/lib/clerk-http-client/models/allowlist_identifier.rb +2 -1
- data/lib/clerk-http-client/models/blocklist_identifier.rb +2 -1
- data/lib/clerk-http-client/models/blocklist_identifiers.rb +2 -1
- data/lib/clerk-http-client/models/change_production_instance_domain_request.rb +2 -1
- data/lib/clerk-http-client/models/clerk_error.rb +2 -1
- data/lib/clerk-http-client/models/clerk_errors.rb +2 -1
- data/lib/clerk-http-client/models/client.rb +2 -1
- data/lib/clerk-http-client/models/{c_name_target.rb → cname_target.rb} +2 -1
- data/lib/clerk-http-client/models/create_actor_token_request.rb +2 -1
- data/lib/clerk-http-client/models/create_allowlist_identifier_request.rb +2 -1
- data/lib/clerk-http-client/models/create_blocklist_identifier_request.rb +2 -1
- data/lib/clerk-http-client/models/create_bulk_invitations_request_inner.rb +306 -0
- data/lib/clerk-http-client/models/create_email_address_request.rb +2 -1
- data/lib/clerk-http-client/models/create_invitation_request.rb +58 -10
- data/lib/clerk-http-client/models/create_jwt_template_request.rb +2 -1
- data/lib/clerk-http-client/models/{create_o_auth_application_request.rb → create_oauth_application_request.rb} +2 -8
- data/lib/clerk-http-client/models/create_organization_domain_request.rb +2 -1
- data/lib/clerk-http-client/models/create_organization_invitation_bulk_request_inner.rb +12 -7
- data/lib/clerk-http-client/models/create_organization_invitation_request.rb +51 -11
- data/lib/clerk-http-client/models/create_organization_membership_request.rb +2 -1
- data/lib/clerk-http-client/models/create_organization_request.rb +10 -12
- data/lib/clerk-http-client/models/create_phone_number_request.rb +2 -1
- data/lib/clerk-http-client/models/create_redirect_url_request.rb +2 -1
- data/lib/clerk-http-client/models/create_saml_connection_request.rb +14 -2
- data/lib/clerk-http-client/models/create_saml_connection_request_attribute_mapping.rb +2 -1
- data/lib/clerk-http-client/models/create_session_request.rb +216 -0
- data/lib/clerk-http-client/models/create_session_token200_response.rb +258 -0
- data/lib/clerk-http-client/models/create_session_token_from_template_request.rb +241 -0
- data/lib/clerk-http-client/models/create_session_token_request.rb +241 -0
- data/lib/clerk-http-client/models/create_sign_in_token_request.rb +2 -1
- data/lib/clerk-http-client/models/create_user_request.rb +14 -7
- data/lib/clerk-http-client/models/create_waitlist_entry_request.rb +233 -0
- data/lib/clerk-http-client/models/deleted_object.rb +2 -1
- data/lib/clerk-http-client/models/disable_mfa200_response.rb +2 -1
- data/lib/clerk-http-client/models/domain.rb +2 -1
- data/lib/clerk-http-client/models/domains.rb +2 -1
- data/lib/clerk-http-client/models/email_address.rb +13 -2
- data/lib/clerk-http-client/models/email_address_verification.rb +6 -3
- data/lib/clerk-http-client/models/from_o_auth.rb +324 -0
- data/{resources/templates/partial_anyof_module.mustache → lib/clerk-http-client/models/from_o_auth_error.rb} +29 -19
- data/lib/clerk-http-client/models/from_oauth.rb +325 -0
- data/{resources/templates/partial_oneof_module.mustache → lib/clerk-http-client/models/from_oauth_error.rb} +24 -54
- data/lib/clerk-http-client/models/{get_o_auth_access_token200_response_inner.rb → get_oauth_access_token200_response_inner.rb} +21 -7
- data/lib/clerk-http-client/models/identification_link.rb +4 -3
- data/lib/clerk-http-client/models/instance.rb +280 -0
- data/lib/clerk-http-client/models/instance_restrictions.rb +2 -1
- data/lib/clerk-http-client/models/invitation.rb +6 -3
- data/lib/clerk-http-client/models/jwks.rb +217 -0
- data/lib/clerk-http-client/models/jwks_keys_inner.rb +278 -0
- data/lib/clerk-http-client/models/jwt_template.rb +2 -1
- data/lib/clerk-http-client/models/list_waitlist_entries200_response.rb +241 -0
- data/lib/clerk-http-client/models/merge_organization_metadata_request.rb +10 -5
- data/lib/clerk-http-client/models/o_auth_application.rb +34 -2
- data/lib/clerk-http-client/models/o_auth_application_with_secret.rb +34 -2
- data/lib/clerk-http-client/models/o_auth_applications.rb +1 -1
- data/lib/clerk-http-client/models/oauth.rb +2 -2
- data/lib/clerk-http-client/models/oauth_application.rb +482 -0
- data/lib/clerk-http-client/models/oauth_application_with_secret.rb +499 -0
- data/lib/clerk-http-client/models/oauth_applications.rb +241 -0
- data/lib/clerk-http-client/models/organization.rb +11 -5
- data/lib/clerk-http-client/models/organization_domain.rb +2 -1
- data/lib/clerk-http-client/models/organization_domain_verification.rb +2 -1
- data/lib/clerk-http-client/models/organization_domains.rb +2 -1
- data/lib/clerk-http-client/models/organization_invitation.rb +32 -6
- data/lib/clerk-http-client/models/organization_invitation_with_public_organization_data.rb +21 -6
- data/lib/clerk-http-client/models/organization_invitation_with_public_organization_data_public_organization_data.rb +2 -1
- data/lib/clerk-http-client/models/organization_invitations.rb +2 -1
- data/lib/clerk-http-client/models/organization_invitations_with_public_organization_data.rb +2 -1
- data/lib/clerk-http-client/models/organization_membership.rb +10 -5
- data/lib/clerk-http-client/models/organization_membership_public_user_data.rb +2 -1
- data/lib/clerk-http-client/models/organization_memberships.rb +2 -1
- data/lib/clerk-http-client/models/organization_settings.rb +2 -1
- data/lib/clerk-http-client/models/organization_with_logo.rb +11 -5
- data/lib/clerk-http-client/models/organizations.rb +2 -1
- data/lib/clerk-http-client/models/otp.rb +2 -1
- data/lib/clerk-http-client/models/passkey.rb +2 -1
- data/lib/clerk-http-client/models/phone_number.rb +2 -1
- data/lib/clerk-http-client/models/phone_number_verification.rb +4 -1
- data/lib/clerk-http-client/models/preview_template_request.rb +2 -1
- data/lib/clerk-http-client/models/proxy_check.rb +2 -1
- data/lib/clerk-http-client/models/redirect_url.rb +2 -1
- data/lib/clerk-http-client/models/revoke_invitation200_response.rb +6 -3
- data/lib/clerk-http-client/models/revoke_organization_invitation_request.rb +2 -1
- data/lib/clerk-http-client/models/saml.rb +3 -2
- data/lib/clerk-http-client/models/saml_account.rb +6 -3
- data/lib/clerk-http-client/models/saml_account_saml_connection.rb +4 -1
- data/lib/clerk-http-client/models/saml_account_verification.rb +4 -1
- data/lib/clerk-http-client/models/saml_connection.rb +2 -1
- data/lib/clerk-http-client/models/saml_connections.rb +2 -1
- data/lib/clerk-http-client/models/schemas_passkey.rb +2 -1
- data/lib/clerk-http-client/models/schemas_passkey_verification.rb +4 -1
- data/lib/clerk-http-client/models/schemas_saml_connection.rb +13 -2
- data/lib/clerk-http-client/models/schemas_saml_connection_attribute_mapping.rb +2 -1
- data/lib/clerk-http-client/models/session.rb +2 -1
- data/lib/clerk-http-client/models/session_latest_activity.rb +2 -1
- data/lib/clerk-http-client/models/sign_in_token.rb +2 -1
- data/lib/clerk-http-client/models/sign_up.rb +22 -6
- data/lib/clerk-http-client/models/svix_url.rb +2 -1
- data/lib/clerk-http-client/models/template.rb +2 -1
- data/lib/clerk-http-client/models/testing_token.rb +2 -1
- data/lib/clerk-http-client/models/ticket.rb +2 -1
- data/lib/clerk-http-client/models/toggle_template_delivery_request.rb +2 -1
- data/lib/clerk-http-client/models/total_count.rb +2 -1
- data/lib/clerk-http-client/models/totp.rb +2 -1
- data/lib/clerk-http-client/models/update_domain_request.rb +2 -1
- data/lib/clerk-http-client/models/update_email_address_request.rb +2 -1
- data/lib/clerk-http-client/models/update_instance_auth_config200_response.rb +2 -1
- data/lib/clerk-http-client/models/update_instance_auth_config_request.rb +2 -1
- data/lib/clerk-http-client/models/update_instance_organization_settings_request.rb +2 -1
- data/lib/clerk-http-client/models/update_instance_request.rb +2 -1
- data/lib/clerk-http-client/models/update_instance_restrictions_request.rb +2 -1
- data/lib/clerk-http-client/models/{update_o_auth_application_request.rb → update_oauth_application_request.rb} +2 -1
- data/lib/clerk-http-client/models/update_organization_domain_request.rb +2 -1
- data/lib/clerk-http-client/models/update_organization_membership_metadata_request.rb +10 -5
- data/lib/clerk-http-client/models/update_organization_membership_request.rb +2 -1
- data/lib/clerk-http-client/models/update_organization_request.rb +10 -5
- data/lib/clerk-http-client/models/update_phone_number_request.rb +2 -1
- data/lib/clerk-http-client/models/update_production_instance_domain_request.rb +2 -1
- data/lib/clerk-http-client/models/update_saml_connection_request.rb +14 -2
- data/lib/clerk-http-client/models/update_saml_connection_request_attribute_mapping.rb +2 -1
- data/lib/clerk-http-client/models/update_sign_up_request.rb +2 -1
- data/lib/clerk-http-client/models/update_user_metadata_request.rb +2 -1
- data/lib/clerk-http-client/models/update_user_request.rb +14 -7
- data/lib/clerk-http-client/models/upsert_template_request.rb +2 -1
- data/lib/clerk-http-client/models/user.rb +14 -7
- data/lib/clerk-http-client/models/verify_client_request.rb +2 -1
- data/lib/clerk-http-client/models/verify_domain_proxy_request.rb +2 -1
- data/lib/clerk-http-client/models/verify_password200_response.rb +2 -1
- data/lib/clerk-http-client/models/verify_password_request.rb +2 -1
- data/lib/clerk-http-client/models/verify_session_request.rb +2 -1
- data/lib/clerk-http-client/models/verify_totp200_response.rb +2 -1
- data/lib/clerk-http-client/models/verify_totp_request.rb +2 -1
- data/lib/clerk-http-client/models/waitlist_entry.rb +370 -0
- data/lib/clerk-http-client/models/waitlist_entry_invitation.rb +397 -0
- data/lib/clerk-http-client/models/web3_signature.rb +4 -3
- data/lib/clerk-http-client/models/web3_wallet.rb +2 -1
- data/lib/clerk-http-client/models/web3_wallet_verification.rb +4 -1
- data/lib/clerk-http-client/version.rb +1 -1
- data/lib/clerk-http-client.rb +56 -59
- data/spec/api/actor_tokens_api_spec.rb +1 -1
- data/spec/api/allow_list_block_list_api_spec.rb +2 -2
- data/spec/api/beta_features_api_spec.rb +2 -2
- data/spec/api/clients_api_spec.rb +1 -1
- data/spec/api/domains_api_spec.rb +1 -1
- data/spec/api/email_addresses_api_spec.rb +2 -2
- data/spec/api/instance_settings_api_spec.rb +3 -3
- data/spec/api/invitations_api_spec.rb +1 -1
- data/spec/api/jwt_templates_api_spec.rb +2 -2
- data/spec/api/{o_auth_applications_api_spec.rb → oauth_applications_api_spec.rb} +15 -15
- data/spec/api/organizations_api_spec.rb +1 -1
- data/spec/api/phone_numbers_api_spec.rb +2 -2
- data/spec/api/proxy_checks_api_spec.rb +1 -1
- data/spec/api/redirect_urls_api_spec.rb +1 -1
- data/spec/api/saml_connections_api_spec.rb +1 -1
- data/spec/api/sign_in_tokens_api_spec.rb +1 -1
- data/spec/api/sign_ups_api_spec.rb +1 -1
- data/spec/api/users_api_spec.rb +3 -3
- data/spec/api/waitlist_entries_api_spec.rb +63 -0
- data/spec/models/cname_target_spec.rb +48 -0
- data/spec/models/create_bulk_invitations_request_inner_spec.rb +66 -0
- data/spec/models/create_oauth_application_request_spec.rb +54 -0
- data/spec/models/create_session_request_spec.rb +36 -0
- data/spec/models/create_session_token200_response_spec.rb +46 -0
- data/spec/models/create_session_token_from_template_request_spec.rb +36 -0
- data/spec/models/create_session_token_request_spec.rb +36 -0
- data/spec/models/create_waitlist_entry_request_spec.rb +42 -0
- data/spec/models/from_o_auth_error_spec.rb +32 -0
- data/spec/models/from_o_auth_spec.rb +64 -0
- data/spec/models/from_oauth_error_spec.rb +32 -0
- data/spec/models/from_oauth_spec.rb +64 -0
- data/spec/models/get_oauth_access_token200_response_inner_spec.rb +90 -0
- data/spec/models/identification_link_spec.rb +1 -1
- data/spec/models/instance_spec.rb +58 -0
- data/spec/models/jwks_keys_inner_spec.rb +78 -0
- data/spec/models/jwks_spec.rb +36 -0
- data/spec/models/list_waitlist_entries200_response_spec.rb +42 -0
- data/spec/models/oauth_application_spec.rb +124 -0
- data/spec/models/oauth_application_with_secret_spec.rb +130 -0
- data/spec/models/oauth_applications_spec.rb +42 -0
- data/spec/models/oauth_spec.rb +1 -1
- data/spec/models/update_oauth_application_request_spec.rb +48 -0
- data/spec/models/waitlist_entry_invitation_spec.rb +98 -0
- data/spec/models/waitlist_entry_spec.rb +86 -0
- data/spec/spec_helper.rb +1 -1
- metadata +104 -65
- data/bin/fmt +0 -5
- data/bin/generate +0 -8
- data/bin/setup +0 -7
- data/openapitools.json +0 -7
- 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 +0 -7238
- data/resources/templates/Gemfile.mustache +0 -9
- data/resources/templates/README.mustache +0 -163
- data/resources/templates/Rakefile.mustache +0 -10
- data/resources/templates/api.mustache +0 -257
- data/resources/templates/api_client.mustache +0 -246
- data/resources/templates/api_client_faraday_partial.mustache +0 -200
- data/resources/templates/api_client_httpx_partial.mustache +0 -134
- data/resources/templates/api_client_typhoeus_partial.mustache +0 -161
- data/resources/templates/api_doc.mustache +0 -132
- data/resources/templates/api_error.mustache +0 -50
- data/resources/templates/api_info.mustache +0 -12
- data/resources/templates/api_test.mustache +0 -47
- data/resources/templates/base_object.mustache +0 -114
- data/resources/templates/configuration.mustache +0 -491
- data/resources/templates/configuration_faraday_partial.mustache +0 -40
- data/resources/templates/configuration_httpx_partial.mustache +0 -11
- data/resources/templates/configuration_typhoeus_partial.mustache +0 -41
- data/resources/templates/gem.mustache +0 -89
- data/resources/templates/gemspec.mustache +0 -41
- data/resources/templates/git_push.sh.mustache +0 -57
- data/resources/templates/gitignore.mustache +0 -39
- data/resources/templates/gitlab-ci.mustache +0 -26
- data/resources/templates/model.mustache +0 -33
- data/resources/templates/model_doc.mustache +0 -12
- data/resources/templates/model_test.mustache +0 -82
- data/resources/templates/partial_model_enum_class.mustache +0 -23
- data/resources/templates/partial_model_generic.mustache +0 -377
- data/resources/templates/partial_model_generic_doc.mustache +0 -28
- data/resources/templates/partial_oneof_module_doc.mustache +0 -93
- data/resources/templates/rspec.mustache +0 -2
- data/resources/templates/rubocop.mustache +0 -148
- data/resources/templates/spec_helper.mustache +0 -103
- data/resources/templates/travis.mustache +0 -11
- data/resources/templates/version.mustache +0 -7
- data/sdk-generator-config.json +0 -25
- /data/docs/{CNameTarget.md → CnameTarget.md} +0 -0
- /data/docs/{CreateRedirectURLRequest.md → CreateRedirectUrlRequest.md} +0 -0
- /data/docs/{OAuthApplications.md → OauthApplications.md} +0 -0
- /data/docs/{RedirectURL.md → RedirectUrl.md} +0 -0
- /data/docs/{SvixURL.md → SvixUrl.md} +0 -0
- /data/docs/{UpdateOAuthApplicationRequest.md → UpdateOauthApplicationRequest.md} +0 -0
data/docs/ClientsApi.md
CHANGED
@@ -21,26 +21,25 @@ Returns the details of a client.
|
|
21
21
|
|
22
22
|
```ruby
|
23
23
|
require 'time'
|
24
|
-
require 'clerk
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
config.
|
24
|
+
require 'clerk'
|
25
|
+
|
26
|
+
## Setup
|
27
|
+
Clerk.configure do |config|
|
28
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
29
29
|
end
|
30
30
|
|
31
|
-
api_instance = ClerkHttpClient::ClientsApi.new
|
32
31
|
client_id = 'client_id_example' # String | Client ID.
|
33
32
|
|
34
33
|
begin
|
35
34
|
# Get a client
|
36
|
-
result =
|
35
|
+
result = Clerk::SDK.clients.get_client(client_id)
|
37
36
|
p result
|
38
37
|
rescue ClerkHttpClient::ApiError => e
|
39
|
-
puts "Error when calling
|
38
|
+
puts "Error when calling Clerk::SDK.clients->get_client: #{e}"
|
40
39
|
end
|
41
40
|
```
|
42
41
|
|
43
|
-
#### Using the get_client_with_http_info variant
|
42
|
+
#### Using the `get_client_with_http_info variant
|
44
43
|
|
45
44
|
This returns an Array which contains the response data, status code and headers.
|
46
45
|
|
@@ -49,12 +48,12 @@ This returns an Array which contains the response data, status code and headers.
|
|
49
48
|
```ruby
|
50
49
|
begin
|
51
50
|
# Get a client
|
52
|
-
data, status_code, headers =
|
51
|
+
data, status_code, headers = Clerk::SDK.clients.get_client_with_http_info(client_id)
|
53
52
|
p status_code # => 2xx
|
54
53
|
p headers # => { ... }
|
55
54
|
p data # => <Client>
|
56
55
|
rescue ClerkHttpClient::ApiError => e
|
57
|
-
puts "Error when calling
|
56
|
+
puts "Error when calling Clerk::SDK.clients->get_client_with_http_info: #{e}"
|
58
57
|
end
|
59
58
|
```
|
60
59
|
|
@@ -90,14 +89,13 @@ Returns a list of all clients. The clients are returned sorted by creation date,
|
|
90
89
|
|
91
90
|
```ruby
|
92
91
|
require 'time'
|
93
|
-
require 'clerk
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
config.
|
92
|
+
require 'clerk'
|
93
|
+
|
94
|
+
## Setup
|
95
|
+
Clerk.configure do |config|
|
96
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
98
97
|
end
|
99
98
|
|
100
|
-
api_instance = ClerkHttpClient::ClientsApi.new
|
101
99
|
opts = {
|
102
100
|
limit: 8.14, # Float | Applies a limit to the number of results returned. Can be used for paginating the results together with `offset`.
|
103
101
|
offset: 8.14 # Float | Skip the first `offset` results when paginating. Needs to be an integer greater or equal to zero. To be used in conjunction with `limit`.
|
@@ -105,14 +103,14 @@ opts = {
|
|
105
103
|
|
106
104
|
begin
|
107
105
|
# List all clients
|
108
|
-
result =
|
106
|
+
result = Clerk::SDK.clients.get_client_list(opts)
|
109
107
|
p result
|
110
108
|
rescue ClerkHttpClient::ApiError => e
|
111
|
-
puts "Error when calling
|
109
|
+
puts "Error when calling Clerk::SDK.clients->get_client_list: #{e}"
|
112
110
|
end
|
113
111
|
```
|
114
112
|
|
115
|
-
#### Using the get_client_list_with_http_info variant
|
113
|
+
#### Using the `get_client_list_with_http_info variant
|
116
114
|
|
117
115
|
This returns an Array which contains the response data, status code and headers.
|
118
116
|
|
@@ -121,12 +119,12 @@ This returns an Array which contains the response data, status code and headers.
|
|
121
119
|
```ruby
|
122
120
|
begin
|
123
121
|
# List all clients
|
124
|
-
data, status_code, headers =
|
122
|
+
data, status_code, headers = Clerk::SDK.clients.get_client_list_with_http_info(opts)
|
125
123
|
p status_code # => 2xx
|
126
124
|
p headers # => { ... }
|
127
125
|
p data # => <Array<Client>>
|
128
126
|
rescue ClerkHttpClient::ApiError => e
|
129
|
-
puts "Error when calling
|
127
|
+
puts "Error when calling Clerk::SDK.clients->get_client_list_with_http_info: #{e}"
|
130
128
|
end
|
131
129
|
```
|
132
130
|
|
@@ -153,7 +151,7 @@ end
|
|
153
151
|
|
154
152
|
## verify_client
|
155
153
|
|
156
|
-
> <Client> verify_client(
|
154
|
+
> <Client> verify_client(opts)
|
157
155
|
|
158
156
|
Verify a client
|
159
157
|
|
@@ -163,40 +161,41 @@ Verifies the client in the provided token
|
|
163
161
|
|
164
162
|
```ruby
|
165
163
|
require 'time'
|
166
|
-
require 'clerk
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
config.
|
164
|
+
require 'clerk'
|
165
|
+
|
166
|
+
## Setup
|
167
|
+
Clerk.configure do |config|
|
168
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
171
169
|
end
|
172
170
|
|
173
|
-
|
174
|
-
verify_client_request
|
171
|
+
opts = {
|
172
|
+
verify_client_request: ClerkHttpClient::VerifyClientRequest.new # VerifyClientRequest | Parameters.
|
173
|
+
}
|
175
174
|
|
176
175
|
begin
|
177
176
|
# Verify a client
|
178
|
-
result =
|
177
|
+
result = Clerk::SDK.clients.verify_client(opts)
|
179
178
|
p result
|
180
179
|
rescue ClerkHttpClient::ApiError => e
|
181
|
-
puts "Error when calling
|
180
|
+
puts "Error when calling Clerk::SDK.clients->verify_client: #{e}"
|
182
181
|
end
|
183
182
|
```
|
184
183
|
|
185
|
-
#### Using the verify_client_with_http_info variant
|
184
|
+
#### Using the `verify_client_with_http_info variant
|
186
185
|
|
187
186
|
This returns an Array which contains the response data, status code and headers.
|
188
187
|
|
189
|
-
> <Array(<Client>, Integer, Hash)> verify_client_with_http_info(
|
188
|
+
> <Array(<Client>, Integer, Hash)> verify_client_with_http_info(opts)
|
190
189
|
|
191
190
|
```ruby
|
192
191
|
begin
|
193
192
|
# Verify a client
|
194
|
-
data, status_code, headers =
|
193
|
+
data, status_code, headers = Clerk::SDK.clients.verify_client_with_http_info(opts)
|
195
194
|
p status_code # => 2xx
|
196
195
|
p headers # => { ... }
|
197
196
|
p data # => <Client>
|
198
197
|
rescue ClerkHttpClient::ApiError => e
|
199
|
-
puts "Error when calling
|
198
|
+
puts "Error when calling Clerk::SDK.clients->verify_client_with_http_info: #{e}"
|
200
199
|
end
|
201
200
|
```
|
202
201
|
|
@@ -204,7 +203,7 @@ end
|
|
204
203
|
|
205
204
|
| Name | Type | Description | Notes |
|
206
205
|
| ---- | ---- | ----------- | ----- |
|
207
|
-
| **verify_client_request** | [**VerifyClientRequest**](VerifyClientRequest.md) |
|
206
|
+
| **verify_client_request** | [**VerifyClientRequest**](VerifyClientRequest.md) | Parameters. | [optional] |
|
208
207
|
|
209
208
|
### Return type
|
210
209
|
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# ClerkHttpClient::CreateBulkInvitationsRequestInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **email_address** | **String** | The email address the invitation will be sent to | |
|
8
|
+
| **public_metadata** | **Hash<String, Object>** | Metadata that will be attached to the newly created invitation. The value of this property should be a well-formed JSON object. Once the user accepts the invitation and signs up, these metadata will end up in the user's public metadata. | [optional] |
|
9
|
+
| **redirect_url** | **String** | The URL where the user is redirected upon visiting the invitation link, where they can accept the invitation. Required if you have implemented a [custom flow for handling application invitations](/docs/custom-flows/invitations). | [optional] |
|
10
|
+
| **notify** | **Boolean** | Optional flag which denotes whether an email invitation should be sent to the given email address. Defaults to true. | [optional][default to true] |
|
11
|
+
| **ignore_existing** | **Boolean** | Whether an invitation should be created if there is already an existing invitation for this email address, or it's claimed by another user. | [optional][default to false] |
|
12
|
+
| **expires_in_days** | **Integer** | The number of days the invitation will be valid for. By default, the invitation expires after 30 days. | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'clerk-http-client'
|
18
|
+
|
19
|
+
instance = ClerkHttpClient::CreateBulkInvitationsRequestInner.new(
|
20
|
+
email_address: null,
|
21
|
+
public_metadata: null,
|
22
|
+
redirect_url: null,
|
23
|
+
notify: null,
|
24
|
+
ignore_existing: null,
|
25
|
+
expires_in_days: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -5,11 +5,12 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **email_address** | **String** | The email address the invitation will be sent to | |
|
8
|
-
| **public_metadata** | **Object
|
8
|
+
| **public_metadata** | **Hash<String, Object>** | Metadata that will be attached to the newly created invitation. The value of this property should be a well-formed JSON object. Once the user accepts the invitation and signs up, these metadata will end up in the user's public metadata. | [optional] |
|
9
9
|
| **redirect_url** | **String** | Optional URL which specifies where to redirect the user once they click the invitation link. This is only required if you have implemented a [custom flow](https://clerk.com/docs/authentication/invitations#custom-flow) and you're not using Clerk Hosted Pages or Clerk Components. | [optional] |
|
10
|
-
| **notify** | **Boolean** | Optional flag which denotes whether an email invitation should be sent to the given email address. Defaults to true
|
10
|
+
| **notify** | **Boolean** | Optional flag which denotes whether an email invitation should be sent to the given email address. Defaults to `true`. | [optional][default to true] |
|
11
11
|
| **ignore_existing** | **Boolean** | Whether an invitation should be created if there is already an existing invitation for this email address, or it's claimed by another user. | [optional][default to false] |
|
12
|
-
| **expires_in_days** | **Integer** | The number of days the invitation will be valid for. By default, the invitation
|
12
|
+
| **expires_in_days** | **Integer** | The number of days the invitation will be valid for. By default, the invitation expires after 30 days. | [optional] |
|
13
|
+
| **template_slug** | **String** | The slug of the email template to use for the invitation email. If not provided, the \"invitation\" template will be used. | [optional] |
|
13
14
|
|
14
15
|
## Example
|
15
16
|
|
@@ -22,7 +23,8 @@ instance = ClerkHttpClient::CreateInvitationRequest.new(
|
|
22
23
|
redirect_url: null,
|
23
24
|
notify: null,
|
24
25
|
ignore_existing: null,
|
25
|
-
expires_in_days: null
|
26
|
+
expires_in_days: null,
|
27
|
+
template_slug: null
|
26
28
|
)
|
27
29
|
```
|
28
30
|
|
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **name** | **String** | The name of the new OAuth application | |
|
8
|
-
| **callback_url** | **String** | The callback URL of the new OAuth application |
|
8
|
+
| **callback_url** | **String** | The callback URL of the new OAuth application | [optional] |
|
9
9
|
| **scopes** | **String** | Define the allowed scopes for the new OAuth applications that dictate the user payload of the OAuth user info endpoint. Available scopes are `profile`, `email`, `public_metadata`, `private_metadata`. Provide the requested scopes as a string, separated by spaces. | [optional][default to 'profile email'] |
|
10
10
|
| **public** | **Boolean** | If true, this client is public and cannot securely store a client secret. Only the authorization code flow with proof key for code exchange (PKCE) may be used. Public clients cannot be updated to be confidential clients, and vice versa. | [optional] |
|
11
11
|
|
@@ -7,8 +7,8 @@
|
|
7
7
|
| **email_address** | **String** | The email address of the new member that is going to be invited to the organization | |
|
8
8
|
| **inviter_user_id** | **String** | The ID of the user that invites the new member to the organization. Must be an administrator in the organization. | [optional] |
|
9
9
|
| **role** | **String** | The role of the new member in the organization. | |
|
10
|
-
| **public_metadata** | **Object
|
11
|
-
| **private_metadata** | **Object
|
10
|
+
| **public_metadata** | **Hash<String, Object>** | Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API. When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership. | [optional] |
|
11
|
+
| **private_metadata** | **Hash<String, Object>** | Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API. When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership. | [optional] |
|
12
12
|
| **redirect_url** | **String** | Optional URL that the invitee will be redirected to once they accept the invitation by clicking the join link in the invitation email. | [optional] |
|
13
13
|
|
14
14
|
## Example
|
@@ -7,9 +7,10 @@
|
|
7
7
|
| **email_address** | **String** | The email address of the new member that is going to be invited to the organization | |
|
8
8
|
| **inviter_user_id** | **String** | The ID of the user that invites the new member to the organization. Must be an administrator in the organization. | [optional] |
|
9
9
|
| **role** | **String** | The role of the new member in the organization | |
|
10
|
-
| **public_metadata** | **Object
|
11
|
-
| **private_metadata** | **Object
|
10
|
+
| **public_metadata** | **Hash<String, Object>** | Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API. When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership. | [optional] |
|
11
|
+
| **private_metadata** | **Hash<String, Object>** | Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API. When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership. | [optional] |
|
12
12
|
| **redirect_url** | **String** | Optional URL that the invitee will be redirected to once they accept the invitation by clicking the join link in the invitation email. | [optional] |
|
13
|
+
| **expires_in_days** | **Integer** | The number of days the invitation will be valid for. By default, the invitation has a 30 days expire. | [optional] |
|
13
14
|
|
14
15
|
## Example
|
15
16
|
|
@@ -22,7 +23,8 @@ instance = ClerkHttpClient::CreateOrganizationInvitationRequest.new(
|
|
22
23
|
role: null,
|
23
24
|
public_metadata: null,
|
24
25
|
private_metadata: null,
|
25
|
-
redirect_url: null
|
26
|
+
redirect_url: null,
|
27
|
+
expires_in_days: null
|
26
28
|
)
|
27
29
|
```
|
28
30
|
|
@@ -5,9 +5,9 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **name** | **String** | The name of the new organization. May not contain URLs or HTML. | |
|
8
|
-
| **created_by** | **String** | The ID of the User who will become the administrator for the new organization |
|
9
|
-
| **private_metadata** | **Object
|
10
|
-
| **public_metadata** | **Object
|
8
|
+
| **created_by** | **String** | The ID of the User who will become the administrator for the new organization | [optional] |
|
9
|
+
| **private_metadata** | **Hash<String, Object>** | Metadata saved on the organization, accessible only from the Backend API | [optional] |
|
10
|
+
| **public_metadata** | **Hash<String, Object>** | Metadata saved on the organization, read-only from the Frontend API and fully accessible (read/write) from the Backend API | [optional] |
|
11
11
|
| **slug** | **String** | A slug for the new organization. Can contain only lowercase alphanumeric characters and the dash \"-\". Must be unique for the instance. | [optional] |
|
12
12
|
| **max_allowed_memberships** | **Integer** | The maximum number of memberships allowed for this organization | [optional] |
|
13
13
|
| **created_at** | **String** | A custom date/time denoting _when_ the organization was created, specified in RFC3339 format (e.g. `2012-10-20T07:15:20.902Z`). | [optional] |
|
@@ -12,6 +12,7 @@
|
|
12
12
|
| **idp_certificate** | **String** | The X.509 certificate as provided by the IdP | [optional] |
|
13
13
|
| **idp_metadata_url** | **String** | The URL which serves the IdP metadata. If present, it takes priority over the corresponding individual properties | [optional] |
|
14
14
|
| **idp_metadata** | **String** | The XML content of the IdP metadata file. If present, it takes priority over the corresponding individual properties | [optional] |
|
15
|
+
| **organization_id** | **String** | The ID of the organization to which users of this SAML Connection will be added | [optional] |
|
15
16
|
| **attribute_mapping** | [**CreateSAMLConnectionRequestAttributeMapping**](CreateSAMLConnectionRequestAttributeMapping.md) | | [optional] |
|
16
17
|
|
17
18
|
## Example
|
@@ -28,6 +29,7 @@ instance = ClerkHttpClient::CreateSAMLConnectionRequest.new(
|
|
28
29
|
idp_certificate: null,
|
29
30
|
idp_metadata_url: null,
|
30
31
|
idp_metadata: null,
|
32
|
+
organization_id: null,
|
31
33
|
attribute_mapping: null
|
32
34
|
)
|
33
35
|
```
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# ClerkHttpClient::CreateSessionRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **user_id** | **String** | The ID representing the user | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'clerk-http-client'
|
13
|
+
|
14
|
+
instance = ClerkHttpClient::CreateSessionRequest.new(
|
15
|
+
user_id: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# ClerkHttpClient::CreateSessionToken200Response
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **object** | **String** | | [optional] |
|
8
|
+
| **jwt** | **String** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'clerk-http-client'
|
14
|
+
|
15
|
+
instance = ClerkHttpClient::CreateSessionToken200Response.new(
|
16
|
+
object: null,
|
17
|
+
jwt: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# ClerkHttpClient::CreateSessionTokenFromTemplateRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **expires_in_seconds** | **Float** | Use this parameter to override the JWT token lifetime. | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'clerk-http-client'
|
13
|
+
|
14
|
+
instance = ClerkHttpClient::CreateSessionTokenFromTemplateRequest.new(
|
15
|
+
expires_in_seconds: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# ClerkHttpClient::CreateSessionTokenRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **expires_in_seconds** | **Float** | Use this parameter to override the default session token lifetime. | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'clerk-http-client'
|
13
|
+
|
14
|
+
instance = ClerkHttpClient::CreateSessionTokenRequest.new(
|
15
|
+
expires_in_seconds: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/CreateUserRequest.md
CHANGED
@@ -18,9 +18,9 @@
|
|
18
18
|
| **skip_password_requirement** | **Boolean** | When set to `true`, `password` is not required anymore when creating the user and can be omitted. This is useful when you are trying to create a user that doesn't have a password, in an instance that is using passwords. Please note that you cannot use this flag if password is the only way for a user to sign into your instance. | [optional] |
|
19
19
|
| **totp_secret** | **String** | In case TOTP is configured on the instance, you can provide the secret to enable it on the newly created user without the need to reset it. Please note that currently the supported options are: * Period: 30 seconds * Code length: 6 digits * Algorithm: SHA1 | [optional] |
|
20
20
|
| **backup_codes** | **Array<String>** | If Backup Codes are configured on the instance, you can provide them to enable it on the newly created user without the need to reset them. You must provide the backup codes in plain format or the corresponding bcrypt digest. | [optional] |
|
21
|
-
| **public_metadata** | **Object
|
22
|
-
| **private_metadata** | **Object
|
23
|
-
| **unsafe_metadata** | **Object
|
21
|
+
| **public_metadata** | **Hash<String, Object>** | Metadata saved on the user, that is visible to both your Frontend and Backend APIs | [optional] |
|
22
|
+
| **private_metadata** | **Hash<String, Object>** | Metadata saved on the user, that is only visible to your Backend API | [optional] |
|
23
|
+
| **unsafe_metadata** | **Hash<String, Object>** | Metadata saved on the user, that can be updated from both the Frontend and Backend APIs. Note: Since this data can be modified from the frontend, it is not guaranteed to be safe. | [optional] |
|
24
24
|
| **delete_self_enabled** | **Boolean** | If enabled, user can delete themselves via FAPI. | [optional] |
|
25
25
|
| **legal_accepted_at** | **String** | A custom timestamp denoting _when_ the user accepted legal requirements, specified in RFC3339 format (e.g. `2012-10-20T07:15:20.902Z`). | [optional] |
|
26
26
|
| **skip_legal_checks** | **Boolean** | When set to `true` all legal checks are skipped. It is not recommended to skip legal checks unless you are migrating a user to Clerk. | [optional] |
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# ClerkHttpClient::CreateWaitlistEntryRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **email_address** | **String** | The email address to add to the waitlist | |
|
8
|
+
| **notify** | **Boolean** | Optional flag which denotes whether an email invitation should be sent to the given email address. Defaults to `true`. | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'clerk-http-client'
|
14
|
+
|
15
|
+
instance = ClerkHttpClient::CreateWaitlistEntryRequest.new(
|
16
|
+
email_address: null,
|
17
|
+
notify: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/DomainsApi.md
CHANGED
@@ -12,7 +12,7 @@ All URIs are relative to *https://api.clerk.com/v1*
|
|
12
12
|
|
13
13
|
## add_domain
|
14
14
|
|
15
|
-
> <Domain> add_domain(
|
15
|
+
> <Domain> add_domain(opts)
|
16
16
|
|
17
17
|
Add a domain
|
18
18
|
|
@@ -22,40 +22,41 @@ Add a new domain for your instance. Useful in the case of multi-domain instances
|
|
22
22
|
|
23
23
|
```ruby
|
24
24
|
require 'time'
|
25
|
-
require 'clerk
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
config.
|
25
|
+
require 'clerk'
|
26
|
+
|
27
|
+
## Setup
|
28
|
+
Clerk.configure do |config|
|
29
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
30
30
|
end
|
31
31
|
|
32
|
-
|
33
|
-
add_domain_request
|
32
|
+
opts = {
|
33
|
+
add_domain_request: ClerkHttpClient::AddDomainRequest.new({name: 'name_example', is_satellite: false}) # AddDomainRequest |
|
34
|
+
}
|
34
35
|
|
35
36
|
begin
|
36
37
|
# Add a domain
|
37
|
-
result =
|
38
|
+
result = Clerk::SDK.domains.add_domain(opts)
|
38
39
|
p result
|
39
40
|
rescue ClerkHttpClient::ApiError => e
|
40
|
-
puts "Error when calling
|
41
|
+
puts "Error when calling Clerk::SDK.domains->add_domain: #{e}"
|
41
42
|
end
|
42
43
|
```
|
43
44
|
|
44
|
-
#### Using the add_domain_with_http_info variant
|
45
|
+
#### Using the `add_domain_with_http_info variant
|
45
46
|
|
46
47
|
This returns an Array which contains the response data, status code and headers.
|
47
48
|
|
48
|
-
> <Array(<Domain>, Integer, Hash)> add_domain_with_http_info(
|
49
|
+
> <Array(<Domain>, Integer, Hash)> add_domain_with_http_info(opts)
|
49
50
|
|
50
51
|
```ruby
|
51
52
|
begin
|
52
53
|
# Add a domain
|
53
|
-
data, status_code, headers =
|
54
|
+
data, status_code, headers = Clerk::SDK.domains.add_domain_with_http_info(opts)
|
54
55
|
p status_code # => 2xx
|
55
56
|
p headers # => { ... }
|
56
57
|
p data # => <Domain>
|
57
58
|
rescue ClerkHttpClient::ApiError => e
|
58
|
-
puts "Error when calling
|
59
|
+
puts "Error when calling Clerk::SDK.domains->add_domain_with_http_info: #{e}"
|
59
60
|
end
|
60
61
|
```
|
61
62
|
|
@@ -63,7 +64,7 @@ end
|
|
63
64
|
|
64
65
|
| Name | Type | Description | Notes |
|
65
66
|
| ---- | ---- | ----------- | ----- |
|
66
|
-
| **add_domain_request** | [**AddDomainRequest**](AddDomainRequest.md) | |
|
67
|
+
| **add_domain_request** | [**AddDomainRequest**](AddDomainRequest.md) | | [optional] |
|
67
68
|
|
68
69
|
### Return type
|
69
70
|
|
@@ -91,26 +92,25 @@ Deletes a satellite domain for the instance. It is currently not possible to del
|
|
91
92
|
|
92
93
|
```ruby
|
93
94
|
require 'time'
|
94
|
-
require 'clerk
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
config.
|
95
|
+
require 'clerk'
|
96
|
+
|
97
|
+
## Setup
|
98
|
+
Clerk.configure do |config|
|
99
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
99
100
|
end
|
100
101
|
|
101
|
-
api_instance = ClerkHttpClient::DomainsApi.new
|
102
102
|
domain_id = 'domain_id_example' # String | The ID of the domain that will be deleted. Must be a satellite domain.
|
103
103
|
|
104
104
|
begin
|
105
105
|
# Delete a satellite domain
|
106
|
-
result =
|
106
|
+
result = Clerk::SDK.domains.delete_domain(domain_id)
|
107
107
|
p result
|
108
108
|
rescue ClerkHttpClient::ApiError => e
|
109
|
-
puts "Error when calling
|
109
|
+
puts "Error when calling Clerk::SDK.domains->delete_domain: #{e}"
|
110
110
|
end
|
111
111
|
```
|
112
112
|
|
113
|
-
#### Using the delete_domain_with_http_info variant
|
113
|
+
#### Using the `delete_domain_with_http_info variant
|
114
114
|
|
115
115
|
This returns an Array which contains the response data, status code and headers.
|
116
116
|
|
@@ -119,12 +119,12 @@ This returns an Array which contains the response data, status code and headers.
|
|
119
119
|
```ruby
|
120
120
|
begin
|
121
121
|
# Delete a satellite domain
|
122
|
-
data, status_code, headers =
|
122
|
+
data, status_code, headers = Clerk::SDK.domains.delete_domain_with_http_info(domain_id)
|
123
123
|
p status_code # => 2xx
|
124
124
|
p headers # => { ... }
|
125
125
|
p data # => <DeletedObject>
|
126
126
|
rescue ClerkHttpClient::ApiError => e
|
127
|
-
puts "Error when calling
|
127
|
+
puts "Error when calling Clerk::SDK.domains->delete_domain_with_http_info: #{e}"
|
128
128
|
end
|
129
129
|
```
|
130
130
|
|
@@ -160,25 +160,24 @@ Use this endpoint to get a list of all domains for an instance. The response wil
|
|
160
160
|
|
161
161
|
```ruby
|
162
162
|
require 'time'
|
163
|
-
require 'clerk
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
config.
|
163
|
+
require 'clerk'
|
164
|
+
|
165
|
+
## Setup
|
166
|
+
Clerk.configure do |config|
|
167
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
168
168
|
end
|
169
169
|
|
170
|
-
api_instance = ClerkHttpClient::DomainsApi.new
|
171
170
|
|
172
171
|
begin
|
173
172
|
# List all instance domains
|
174
|
-
result =
|
173
|
+
result = Clerk::SDK.domains.list_domains
|
175
174
|
p result
|
176
175
|
rescue ClerkHttpClient::ApiError => e
|
177
|
-
puts "Error when calling
|
176
|
+
puts "Error when calling Clerk::SDK.domains->list_domains: #{e}"
|
178
177
|
end
|
179
178
|
```
|
180
179
|
|
181
|
-
#### Using the list_domains_with_http_info variant
|
180
|
+
#### Using the `list_domains_with_http_info variant
|
182
181
|
|
183
182
|
This returns an Array which contains the response data, status code and headers.
|
184
183
|
|
@@ -187,12 +186,12 @@ This returns an Array which contains the response data, status code and headers.
|
|
187
186
|
```ruby
|
188
187
|
begin
|
189
188
|
# List all instance domains
|
190
|
-
data, status_code, headers =
|
189
|
+
data, status_code, headers = Clerk::SDK.domains.list_domains_with_http_info
|
191
190
|
p status_code # => 2xx
|
192
191
|
p headers # => { ... }
|
193
192
|
p data # => <Domains>
|
194
193
|
rescue ClerkHttpClient::ApiError => e
|
195
|
-
puts "Error when calling
|
194
|
+
puts "Error when calling Clerk::SDK.domains->list_domains_with_http_info: #{e}"
|
196
195
|
end
|
197
196
|
```
|
198
197
|
|
@@ -226,27 +225,26 @@ The `proxy_url` can be updated only for production instances. Update one of the
|
|
226
225
|
|
227
226
|
```ruby
|
228
227
|
require 'time'
|
229
|
-
require 'clerk
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
config.
|
228
|
+
require 'clerk'
|
229
|
+
|
230
|
+
## Setup
|
231
|
+
Clerk.configure do |config|
|
232
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
234
233
|
end
|
235
234
|
|
236
|
-
api_instance = ClerkHttpClient::DomainsApi.new
|
237
235
|
domain_id = 'domain_id_example' # String | The ID of the domain that will be updated.
|
238
236
|
update_domain_request = ClerkHttpClient::UpdateDomainRequest.new # UpdateDomainRequest |
|
239
237
|
|
240
238
|
begin
|
241
239
|
# Update a domain
|
242
|
-
result =
|
240
|
+
result = Clerk::SDK.domains.update_domain(domain_id, update_domain_request)
|
243
241
|
p result
|
244
242
|
rescue ClerkHttpClient::ApiError => e
|
245
|
-
puts "Error when calling
|
243
|
+
puts "Error when calling Clerk::SDK.domains->update_domain: #{e}"
|
246
244
|
end
|
247
245
|
```
|
248
246
|
|
249
|
-
#### Using the update_domain_with_http_info variant
|
247
|
+
#### Using the `update_domain_with_http_info variant
|
250
248
|
|
251
249
|
This returns an Array which contains the response data, status code and headers.
|
252
250
|
|
@@ -255,12 +253,12 @@ This returns an Array which contains the response data, status code and headers.
|
|
255
253
|
```ruby
|
256
254
|
begin
|
257
255
|
# Update a domain
|
258
|
-
data, status_code, headers =
|
256
|
+
data, status_code, headers = Clerk::SDK.domains.update_domain_with_http_info(domain_id, update_domain_request)
|
259
257
|
p status_code # => 2xx
|
260
258
|
p headers # => { ... }
|
261
259
|
p data # => <Domain>
|
262
260
|
rescue ClerkHttpClient::ApiError => e
|
263
|
-
puts "Error when calling
|
261
|
+
puts "Error when calling Clerk::SDK.domains->update_domain_with_http_info: #{e}"
|
264
262
|
end
|
265
263
|
```
|
266
264
|
|