clerk-http-client 0.0.1 → 2.0.0.beta1
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 +5 -5
- 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 +1 -1
- data/lib/clerk-http-client/models/add_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/admin.rb +1 -1
- data/lib/clerk-http-client/models/allowlist_identifier.rb +1 -1
- data/lib/clerk-http-client/models/blocklist_identifier.rb +1 -1
- data/lib/clerk-http-client/models/blocklist_identifiers.rb +1 -1
- data/lib/clerk-http-client/models/change_production_instance_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/clerk_error.rb +1 -1
- data/lib/clerk-http-client/models/clerk_errors.rb +1 -1
- data/lib/clerk-http-client/models/client.rb +1 -1
- data/lib/clerk-http-client/models/{c_name_target.rb → cname_target.rb} +1 -1
- data/lib/clerk-http-client/models/create_actor_token_request.rb +1 -1
- data/lib/clerk-http-client/models/create_allowlist_identifier_request.rb +1 -1
- data/lib/clerk-http-client/models/create_blocklist_identifier_request.rb +1 -1
- data/lib/clerk-http-client/models/create_bulk_invitations_request_inner.rb +305 -0
- data/lib/clerk-http-client/models/create_email_address_request.rb +1 -1
- data/lib/clerk-http-client/models/create_invitation_request.rb +57 -10
- data/lib/clerk-http-client/models/create_jwt_template_request.rb +1 -1
- data/lib/clerk-http-client/models/{create_o_auth_application_request.rb → create_oauth_application_request.rb} +1 -8
- data/lib/clerk-http-client/models/create_organization_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/create_organization_invitation_bulk_request_inner.rb +11 -7
- data/lib/clerk-http-client/models/create_organization_invitation_request.rb +50 -11
- data/lib/clerk-http-client/models/create_organization_membership_request.rb +1 -1
- data/lib/clerk-http-client/models/create_organization_request.rb +9 -12
- data/lib/clerk-http-client/models/create_phone_number_request.rb +1 -1
- data/lib/clerk-http-client/models/create_redirect_url_request.rb +1 -1
- data/lib/clerk-http-client/models/create_saml_connection_request.rb +13 -2
- data/lib/clerk-http-client/models/create_saml_connection_request_attribute_mapping.rb +1 -1
- data/lib/clerk-http-client/models/create_session_request.rb +215 -0
- data/lib/clerk-http-client/models/create_session_token200_response.rb +257 -0
- data/lib/clerk-http-client/models/create_session_token_from_template_request.rb +240 -0
- data/lib/clerk-http-client/models/create_session_token_request.rb +240 -0
- data/lib/clerk-http-client/models/create_sign_in_token_request.rb +1 -1
- data/lib/clerk-http-client/models/create_user_request.rb +13 -7
- data/lib/clerk-http-client/models/create_waitlist_entry_request.rb +232 -0
- data/lib/clerk-http-client/models/deleted_object.rb +1 -1
- data/lib/clerk-http-client/models/disable_mfa200_response.rb +1 -1
- data/lib/clerk-http-client/models/domain.rb +1 -1
- data/lib/clerk-http-client/models/domains.rb +1 -1
- data/lib/clerk-http-client/models/email_address.rb +12 -2
- data/lib/clerk-http-client/models/email_address_verification.rb +3 -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 +324 -0
- data/{resources/templates/partial_oneof_module.mustache → lib/clerk-http-client/models/from_oauth_error.rb} +21 -54
- data/lib/clerk-http-client/models/{get_o_auth_access_token200_response_inner.rb → get_oauth_access_token200_response_inner.rb} +20 -7
- data/lib/clerk-http-client/models/identification_link.rb +3 -3
- data/lib/clerk-http-client/models/instance.rb +279 -0
- data/lib/clerk-http-client/models/instance_restrictions.rb +1 -1
- data/lib/clerk-http-client/models/invitation.rb +5 -3
- data/lib/clerk-http-client/models/jwks.rb +216 -0
- data/lib/clerk-http-client/models/jwks_keys_inner.rb +277 -0
- data/lib/clerk-http-client/models/jwt_template.rb +1 -1
- data/lib/clerk-http-client/models/list_waitlist_entries200_response.rb +240 -0
- data/lib/clerk-http-client/models/merge_organization_metadata_request.rb +9 -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 +481 -0
- data/lib/clerk-http-client/models/oauth_application_with_secret.rb +498 -0
- data/lib/clerk-http-client/models/oauth_applications.rb +240 -0
- data/lib/clerk-http-client/models/organization.rb +10 -5
- data/lib/clerk-http-client/models/organization_domain.rb +1 -1
- data/lib/clerk-http-client/models/organization_domain_verification.rb +1 -1
- data/lib/clerk-http-client/models/organization_domains.rb +1 -1
- data/lib/clerk-http-client/models/organization_invitation.rb +31 -6
- data/lib/clerk-http-client/models/organization_invitation_with_public_organization_data.rb +20 -6
- data/lib/clerk-http-client/models/organization_invitation_with_public_organization_data_public_organization_data.rb +1 -1
- data/lib/clerk-http-client/models/organization_invitations.rb +1 -1
- data/lib/clerk-http-client/models/organization_invitations_with_public_organization_data.rb +1 -1
- data/lib/clerk-http-client/models/organization_membership.rb +9 -5
- data/lib/clerk-http-client/models/organization_membership_public_user_data.rb +1 -1
- data/lib/clerk-http-client/models/organization_memberships.rb +1 -1
- data/lib/clerk-http-client/models/organization_settings.rb +1 -1
- data/lib/clerk-http-client/models/organization_with_logo.rb +10 -5
- data/lib/clerk-http-client/models/organizations.rb +1 -1
- data/lib/clerk-http-client/models/otp.rb +1 -1
- data/lib/clerk-http-client/models/passkey.rb +1 -1
- data/lib/clerk-http-client/models/phone_number.rb +1 -1
- data/lib/clerk-http-client/models/phone_number_verification.rb +1 -1
- data/lib/clerk-http-client/models/preview_template_request.rb +1 -1
- data/lib/clerk-http-client/models/proxy_check.rb +1 -1
- data/lib/clerk-http-client/models/redirect_url.rb +1 -1
- data/lib/clerk-http-client/models/revoke_invitation200_response.rb +5 -3
- data/lib/clerk-http-client/models/revoke_organization_invitation_request.rb +1 -1
- data/lib/clerk-http-client/models/saml.rb +2 -2
- data/lib/clerk-http-client/models/saml_account.rb +5 -3
- data/lib/clerk-http-client/models/saml_account_saml_connection.rb +1 -1
- data/lib/clerk-http-client/models/saml_account_verification.rb +1 -1
- data/lib/clerk-http-client/models/saml_connection.rb +1 -1
- data/lib/clerk-http-client/models/saml_connections.rb +1 -1
- data/lib/clerk-http-client/models/schemas_passkey.rb +1 -1
- data/lib/clerk-http-client/models/schemas_passkey_verification.rb +1 -1
- data/lib/clerk-http-client/models/schemas_saml_connection.rb +12 -2
- data/lib/clerk-http-client/models/schemas_saml_connection_attribute_mapping.rb +1 -1
- data/lib/clerk-http-client/models/session.rb +1 -1
- data/lib/clerk-http-client/models/session_latest_activity.rb +1 -1
- data/lib/clerk-http-client/models/sign_in_token.rb +1 -1
- data/lib/clerk-http-client/models/sign_up.rb +21 -6
- data/lib/clerk-http-client/models/svix_url.rb +1 -1
- data/lib/clerk-http-client/models/template.rb +1 -1
- data/lib/clerk-http-client/models/testing_token.rb +1 -1
- data/lib/clerk-http-client/models/ticket.rb +1 -1
- data/lib/clerk-http-client/models/toggle_template_delivery_request.rb +1 -1
- data/lib/clerk-http-client/models/total_count.rb +1 -1
- data/lib/clerk-http-client/models/totp.rb +1 -1
- data/lib/clerk-http-client/models/update_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/update_email_address_request.rb +1 -1
- data/lib/clerk-http-client/models/update_instance_auth_config200_response.rb +1 -1
- data/lib/clerk-http-client/models/update_instance_auth_config_request.rb +1 -1
- data/lib/clerk-http-client/models/update_instance_organization_settings_request.rb +1 -1
- data/lib/clerk-http-client/models/update_instance_request.rb +1 -1
- data/lib/clerk-http-client/models/update_instance_restrictions_request.rb +1 -1
- data/lib/clerk-http-client/models/{update_o_auth_application_request.rb → update_oauth_application_request.rb} +1 -1
- data/lib/clerk-http-client/models/update_organization_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/update_organization_membership_metadata_request.rb +9 -5
- data/lib/clerk-http-client/models/update_organization_membership_request.rb +1 -1
- data/lib/clerk-http-client/models/update_organization_request.rb +9 -5
- data/lib/clerk-http-client/models/update_phone_number_request.rb +1 -1
- data/lib/clerk-http-client/models/update_production_instance_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/update_saml_connection_request.rb +13 -2
- data/lib/clerk-http-client/models/update_saml_connection_request_attribute_mapping.rb +1 -1
- data/lib/clerk-http-client/models/update_sign_up_request.rb +1 -1
- data/lib/clerk-http-client/models/update_user_metadata_request.rb +1 -1
- data/lib/clerk-http-client/models/update_user_request.rb +13 -7
- data/lib/clerk-http-client/models/upsert_template_request.rb +1 -1
- data/lib/clerk-http-client/models/user.rb +13 -7
- data/lib/clerk-http-client/models/verify_client_request.rb +1 -1
- data/lib/clerk-http-client/models/verify_domain_proxy_request.rb +1 -1
- data/lib/clerk-http-client/models/verify_password200_response.rb +1 -1
- data/lib/clerk-http-client/models/verify_password_request.rb +1 -1
- data/lib/clerk-http-client/models/verify_session_request.rb +1 -1
- data/lib/clerk-http-client/models/verify_totp200_response.rb +1 -1
- data/lib/clerk-http-client/models/verify_totp_request.rb +1 -1
- data/lib/clerk-http-client/models/waitlist_entry.rb +369 -0
- data/lib/clerk-http-client/models/waitlist_entry_invitation.rb +397 -0
- data/lib/clerk-http-client/models/web3_signature.rb +3 -3
- data/lib/clerk-http-client/models/web3_wallet.rb +1 -1
- data/lib/clerk-http-client/models/web3_wallet_verification.rb +1 -1
- data/lib/clerk-http-client/version.rb +1 -1
- data/lib/clerk-http-client.rb +54 -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 +108 -74
- 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 -20
- data/test.rb +0 -2
- /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/ActorTokensApi.md
CHANGED
@@ -10,7 +10,7 @@ All URIs are relative to *https://api.clerk.com/v1*
|
|
10
10
|
|
11
11
|
## create_actor_token
|
12
12
|
|
13
|
-
> <ActorToken> create_actor_token(
|
13
|
+
> <ActorToken> create_actor_token(opts)
|
14
14
|
|
15
15
|
Create actor token
|
16
16
|
|
@@ -20,40 +20,41 @@ Create an actor token that can be used to impersonate the given user. The `actor
|
|
20
20
|
|
21
21
|
```ruby
|
22
22
|
require 'time'
|
23
|
-
require 'clerk
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
config.
|
23
|
+
require 'clerk'
|
24
|
+
|
25
|
+
## Setup
|
26
|
+
Clerk.configure do |config|
|
27
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
28
28
|
end
|
29
29
|
|
30
|
-
|
31
|
-
create_actor_token_request
|
30
|
+
opts = {
|
31
|
+
create_actor_token_request: ClerkHttpClient::CreateActorTokenRequest.new({user_id: 'user_id_example', actor: {"sub":"user_2OEpKhcCN1Lat9NQ0G6puh7q5Rb"}}) # CreateActorTokenRequest |
|
32
|
+
}
|
32
33
|
|
33
34
|
begin
|
34
35
|
# Create actor token
|
35
|
-
result =
|
36
|
+
result = Clerk::SDK.actor_tokens.create_actor_token(opts)
|
36
37
|
p result
|
37
38
|
rescue ClerkHttpClient::ApiError => e
|
38
|
-
puts "Error when calling
|
39
|
+
puts "Error when calling Clerk::SDK.actor_tokens->create_actor_token: #{e}"
|
39
40
|
end
|
40
41
|
```
|
41
42
|
|
42
|
-
#### Using the create_actor_token_with_http_info variant
|
43
|
+
#### Using the `create_actor_token_with_http_info variant
|
43
44
|
|
44
45
|
This returns an Array which contains the response data, status code and headers.
|
45
46
|
|
46
|
-
> <Array(<ActorToken>, Integer, Hash)> create_actor_token_with_http_info(
|
47
|
+
> <Array(<ActorToken>, Integer, Hash)> create_actor_token_with_http_info(opts)
|
47
48
|
|
48
49
|
```ruby
|
49
50
|
begin
|
50
51
|
# Create actor token
|
51
|
-
data, status_code, headers =
|
52
|
+
data, status_code, headers = Clerk::SDK.actor_tokens.create_actor_token_with_http_info(opts)
|
52
53
|
p status_code # => 2xx
|
53
54
|
p headers # => { ... }
|
54
55
|
p data # => <ActorToken>
|
55
56
|
rescue ClerkHttpClient::ApiError => e
|
56
|
-
puts "Error when calling
|
57
|
+
puts "Error when calling Clerk::SDK.actor_tokens->create_actor_token_with_http_info: #{e}"
|
57
58
|
end
|
58
59
|
```
|
59
60
|
|
@@ -61,7 +62,7 @@ end
|
|
61
62
|
|
62
63
|
| Name | Type | Description | Notes |
|
63
64
|
| ---- | ---- | ----------- | ----- |
|
64
|
-
| **create_actor_token_request** | [**CreateActorTokenRequest**](CreateActorTokenRequest.md) | |
|
65
|
+
| **create_actor_token_request** | [**CreateActorTokenRequest**](CreateActorTokenRequest.md) | | [optional] |
|
65
66
|
|
66
67
|
### Return type
|
67
68
|
|
@@ -89,26 +90,25 @@ Revokes a pending actor token.
|
|
89
90
|
|
90
91
|
```ruby
|
91
92
|
require 'time'
|
92
|
-
require 'clerk
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
config.
|
93
|
+
require 'clerk'
|
94
|
+
|
95
|
+
## Setup
|
96
|
+
Clerk.configure do |config|
|
97
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
97
98
|
end
|
98
99
|
|
99
|
-
api_instance = ClerkHttpClient::ActorTokensApi.new
|
100
100
|
actor_token_id = 'actor_token_id_example' # String | The ID of the actor token to be revoked.
|
101
101
|
|
102
102
|
begin
|
103
103
|
# Revoke actor token
|
104
|
-
result =
|
104
|
+
result = Clerk::SDK.actor_tokens.revoke_actor_token(actor_token_id)
|
105
105
|
p result
|
106
106
|
rescue ClerkHttpClient::ApiError => e
|
107
|
-
puts "Error when calling
|
107
|
+
puts "Error when calling Clerk::SDK.actor_tokens->revoke_actor_token: #{e}"
|
108
108
|
end
|
109
109
|
```
|
110
110
|
|
111
|
-
#### Using the revoke_actor_token_with_http_info variant
|
111
|
+
#### Using the `revoke_actor_token_with_http_info variant
|
112
112
|
|
113
113
|
This returns an Array which contains the response data, status code and headers.
|
114
114
|
|
@@ -117,12 +117,12 @@ This returns an Array which contains the response data, status code and headers.
|
|
117
117
|
```ruby
|
118
118
|
begin
|
119
119
|
# Revoke actor token
|
120
|
-
data, status_code, headers =
|
120
|
+
data, status_code, headers = Clerk::SDK.actor_tokens.revoke_actor_token_with_http_info(actor_token_id)
|
121
121
|
p status_code # => 2xx
|
122
122
|
p headers # => { ... }
|
123
123
|
p data # => <ActorToken>
|
124
124
|
rescue ClerkHttpClient::ApiError => e
|
125
|
-
puts "Error when calling
|
125
|
+
puts "Error when calling Clerk::SDK.actor_tokens->revoke_actor_token_with_http_info: #{e}"
|
126
126
|
end
|
127
127
|
```
|
128
128
|
|
@@ -14,7 +14,7 @@ All URIs are relative to *https://api.clerk.com/v1*
|
|
14
14
|
|
15
15
|
## create_allowlist_identifier
|
16
16
|
|
17
|
-
> <AllowlistIdentifier> create_allowlist_identifier(
|
17
|
+
> <AllowlistIdentifier> create_allowlist_identifier(opts)
|
18
18
|
|
19
19
|
Add identifier to the allow-list
|
20
20
|
|
@@ -24,40 +24,41 @@ Create an identifier allowed to sign up to an instance
|
|
24
24
|
|
25
25
|
```ruby
|
26
26
|
require 'time'
|
27
|
-
require 'clerk
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
config.
|
27
|
+
require 'clerk'
|
28
|
+
|
29
|
+
## Setup
|
30
|
+
Clerk.configure do |config|
|
31
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
32
32
|
end
|
33
33
|
|
34
|
-
|
35
|
-
create_allowlist_identifier_request
|
34
|
+
opts = {
|
35
|
+
create_allowlist_identifier_request: ClerkHttpClient::CreateAllowlistIdentifierRequest.new({identifier: 'identifier_example'}) # CreateAllowlistIdentifierRequest |
|
36
|
+
}
|
36
37
|
|
37
38
|
begin
|
38
39
|
# Add identifier to the allow-list
|
39
|
-
result =
|
40
|
+
result = Clerk::SDK.allow_list_block_list.create_allowlist_identifier(opts)
|
40
41
|
p result
|
41
42
|
rescue ClerkHttpClient::ApiError => e
|
42
|
-
puts "Error when calling
|
43
|
+
puts "Error when calling Clerk::SDK.allow_list_block_list->create_allowlist_identifier: #{e}"
|
43
44
|
end
|
44
45
|
```
|
45
46
|
|
46
|
-
#### Using the create_allowlist_identifier_with_http_info variant
|
47
|
+
#### Using the `create_allowlist_identifier_with_http_info variant
|
47
48
|
|
48
49
|
This returns an Array which contains the response data, status code and headers.
|
49
50
|
|
50
|
-
> <Array(<AllowlistIdentifier>, Integer, Hash)> create_allowlist_identifier_with_http_info(
|
51
|
+
> <Array(<AllowlistIdentifier>, Integer, Hash)> create_allowlist_identifier_with_http_info(opts)
|
51
52
|
|
52
53
|
```ruby
|
53
54
|
begin
|
54
55
|
# Add identifier to the allow-list
|
55
|
-
data, status_code, headers =
|
56
|
+
data, status_code, headers = Clerk::SDK.allow_list_block_list.create_allowlist_identifier_with_http_info(opts)
|
56
57
|
p status_code # => 2xx
|
57
58
|
p headers # => { ... }
|
58
59
|
p data # => <AllowlistIdentifier>
|
59
60
|
rescue ClerkHttpClient::ApiError => e
|
60
|
-
puts "Error when calling
|
61
|
+
puts "Error when calling Clerk::SDK.allow_list_block_list->create_allowlist_identifier_with_http_info: #{e}"
|
61
62
|
end
|
62
63
|
```
|
63
64
|
|
@@ -65,7 +66,7 @@ end
|
|
65
66
|
|
66
67
|
| Name | Type | Description | Notes |
|
67
68
|
| ---- | ---- | ----------- | ----- |
|
68
|
-
| **create_allowlist_identifier_request** | [**CreateAllowlistIdentifierRequest**](CreateAllowlistIdentifierRequest.md) | |
|
69
|
+
| **create_allowlist_identifier_request** | [**CreateAllowlistIdentifierRequest**](CreateAllowlistIdentifierRequest.md) | | [optional] |
|
69
70
|
|
70
71
|
### Return type
|
71
72
|
|
@@ -83,7 +84,7 @@ end
|
|
83
84
|
|
84
85
|
## create_blocklist_identifier
|
85
86
|
|
86
|
-
> <BlocklistIdentifier> create_blocklist_identifier(
|
87
|
+
> <BlocklistIdentifier> create_blocklist_identifier(opts)
|
87
88
|
|
88
89
|
Add identifier to the block-list
|
89
90
|
|
@@ -93,40 +94,41 @@ Create an identifier that is blocked from accessing an instance
|
|
93
94
|
|
94
95
|
```ruby
|
95
96
|
require 'time'
|
96
|
-
require 'clerk
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
config.
|
97
|
+
require 'clerk'
|
98
|
+
|
99
|
+
## Setup
|
100
|
+
Clerk.configure do |config|
|
101
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
101
102
|
end
|
102
103
|
|
103
|
-
|
104
|
-
create_blocklist_identifier_request
|
104
|
+
opts = {
|
105
|
+
create_blocklist_identifier_request: ClerkHttpClient::CreateBlocklistIdentifierRequest.new({identifier: 'identifier_example'}) # CreateBlocklistIdentifierRequest |
|
106
|
+
}
|
105
107
|
|
106
108
|
begin
|
107
109
|
# Add identifier to the block-list
|
108
|
-
result =
|
110
|
+
result = Clerk::SDK.allow_list_block_list.create_blocklist_identifier(opts)
|
109
111
|
p result
|
110
112
|
rescue ClerkHttpClient::ApiError => e
|
111
|
-
puts "Error when calling
|
113
|
+
puts "Error when calling Clerk::SDK.allow_list_block_list->create_blocklist_identifier: #{e}"
|
112
114
|
end
|
113
115
|
```
|
114
116
|
|
115
|
-
#### Using the create_blocklist_identifier_with_http_info variant
|
117
|
+
#### Using the `create_blocklist_identifier_with_http_info variant
|
116
118
|
|
117
119
|
This returns an Array which contains the response data, status code and headers.
|
118
120
|
|
119
|
-
> <Array(<BlocklistIdentifier>, Integer, Hash)> create_blocklist_identifier_with_http_info(
|
121
|
+
> <Array(<BlocklistIdentifier>, Integer, Hash)> create_blocklist_identifier_with_http_info(opts)
|
120
122
|
|
121
123
|
```ruby
|
122
124
|
begin
|
123
125
|
# Add identifier to the block-list
|
124
|
-
data, status_code, headers =
|
126
|
+
data, status_code, headers = Clerk::SDK.allow_list_block_list.create_blocklist_identifier_with_http_info(opts)
|
125
127
|
p status_code # => 2xx
|
126
128
|
p headers # => { ... }
|
127
129
|
p data # => <BlocklistIdentifier>
|
128
130
|
rescue ClerkHttpClient::ApiError => e
|
129
|
-
puts "Error when calling
|
131
|
+
puts "Error when calling Clerk::SDK.allow_list_block_list->create_blocklist_identifier_with_http_info: #{e}"
|
130
132
|
end
|
131
133
|
```
|
132
134
|
|
@@ -134,7 +136,7 @@ end
|
|
134
136
|
|
135
137
|
| Name | Type | Description | Notes |
|
136
138
|
| ---- | ---- | ----------- | ----- |
|
137
|
-
| **create_blocklist_identifier_request** | [**CreateBlocklistIdentifierRequest**](CreateBlocklistIdentifierRequest.md) | |
|
139
|
+
| **create_blocklist_identifier_request** | [**CreateBlocklistIdentifierRequest**](CreateBlocklistIdentifierRequest.md) | | [optional] |
|
138
140
|
|
139
141
|
### Return type
|
140
142
|
|
@@ -162,26 +164,25 @@ Delete an identifier from the instance allow-list
|
|
162
164
|
|
163
165
|
```ruby
|
164
166
|
require 'time'
|
165
|
-
require 'clerk
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
config.
|
167
|
+
require 'clerk'
|
168
|
+
|
169
|
+
## Setup
|
170
|
+
Clerk.configure do |config|
|
171
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
170
172
|
end
|
171
173
|
|
172
|
-
api_instance = ClerkHttpClient::AllowListBlockListApi.new
|
173
174
|
identifier_id = 'identifier_id_example' # String | The ID of the identifier to delete from the allow-list
|
174
175
|
|
175
176
|
begin
|
176
177
|
# Delete identifier from allow-list
|
177
|
-
result =
|
178
|
+
result = Clerk::SDK.allow_list_block_list.delete_allowlist_identifier(identifier_id)
|
178
179
|
p result
|
179
180
|
rescue ClerkHttpClient::ApiError => e
|
180
|
-
puts "Error when calling
|
181
|
+
puts "Error when calling Clerk::SDK.allow_list_block_list->delete_allowlist_identifier: #{e}"
|
181
182
|
end
|
182
183
|
```
|
183
184
|
|
184
|
-
#### Using the delete_allowlist_identifier_with_http_info variant
|
185
|
+
#### Using the `delete_allowlist_identifier_with_http_info variant
|
185
186
|
|
186
187
|
This returns an Array which contains the response data, status code and headers.
|
187
188
|
|
@@ -190,12 +191,12 @@ This returns an Array which contains the response data, status code and headers.
|
|
190
191
|
```ruby
|
191
192
|
begin
|
192
193
|
# Delete identifier from allow-list
|
193
|
-
data, status_code, headers =
|
194
|
+
data, status_code, headers = Clerk::SDK.allow_list_block_list.delete_allowlist_identifier_with_http_info(identifier_id)
|
194
195
|
p status_code # => 2xx
|
195
196
|
p headers # => { ... }
|
196
197
|
p data # => <DeletedObject>
|
197
198
|
rescue ClerkHttpClient::ApiError => e
|
198
|
-
puts "Error when calling
|
199
|
+
puts "Error when calling Clerk::SDK.allow_list_block_list->delete_allowlist_identifier_with_http_info: #{e}"
|
199
200
|
end
|
200
201
|
```
|
201
202
|
|
@@ -231,26 +232,25 @@ Delete an identifier from the instance block-list
|
|
231
232
|
|
232
233
|
```ruby
|
233
234
|
require 'time'
|
234
|
-
require 'clerk
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
config.
|
235
|
+
require 'clerk'
|
236
|
+
|
237
|
+
## Setup
|
238
|
+
Clerk.configure do |config|
|
239
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
239
240
|
end
|
240
241
|
|
241
|
-
api_instance = ClerkHttpClient::AllowListBlockListApi.new
|
242
242
|
identifier_id = 'identifier_id_example' # String | The ID of the identifier to delete from the block-list
|
243
243
|
|
244
244
|
begin
|
245
245
|
# Delete identifier from block-list
|
246
|
-
result =
|
246
|
+
result = Clerk::SDK.allow_list_block_list.delete_blocklist_identifier(identifier_id)
|
247
247
|
p result
|
248
248
|
rescue ClerkHttpClient::ApiError => e
|
249
|
-
puts "Error when calling
|
249
|
+
puts "Error when calling Clerk::SDK.allow_list_block_list->delete_blocklist_identifier: #{e}"
|
250
250
|
end
|
251
251
|
```
|
252
252
|
|
253
|
-
#### Using the delete_blocklist_identifier_with_http_info variant
|
253
|
+
#### Using the `delete_blocklist_identifier_with_http_info variant
|
254
254
|
|
255
255
|
This returns an Array which contains the response data, status code and headers.
|
256
256
|
|
@@ -259,12 +259,12 @@ This returns an Array which contains the response data, status code and headers.
|
|
259
259
|
```ruby
|
260
260
|
begin
|
261
261
|
# Delete identifier from block-list
|
262
|
-
data, status_code, headers =
|
262
|
+
data, status_code, headers = Clerk::SDK.allow_list_block_list.delete_blocklist_identifier_with_http_info(identifier_id)
|
263
263
|
p status_code # => 2xx
|
264
264
|
p headers # => { ... }
|
265
265
|
p data # => <DeletedObject>
|
266
266
|
rescue ClerkHttpClient::ApiError => e
|
267
|
-
puts "Error when calling
|
267
|
+
puts "Error when calling Clerk::SDK.allow_list_block_list->delete_blocklist_identifier_with_http_info: #{e}"
|
268
268
|
end
|
269
269
|
```
|
270
270
|
|
@@ -300,25 +300,24 @@ Get a list of all identifiers allowed to sign up to an instance
|
|
300
300
|
|
301
301
|
```ruby
|
302
302
|
require 'time'
|
303
|
-
require 'clerk
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
config.
|
303
|
+
require 'clerk'
|
304
|
+
|
305
|
+
## Setup
|
306
|
+
Clerk.configure do |config|
|
307
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
308
308
|
end
|
309
309
|
|
310
|
-
api_instance = ClerkHttpClient::AllowListBlockListApi.new
|
311
310
|
|
312
311
|
begin
|
313
312
|
# List all identifiers on the allow-list
|
314
|
-
result =
|
313
|
+
result = Clerk::SDK.allow_list_block_list.list_allowlist_identifiers
|
315
314
|
p result
|
316
315
|
rescue ClerkHttpClient::ApiError => e
|
317
|
-
puts "Error when calling
|
316
|
+
puts "Error when calling Clerk::SDK.allow_list_block_list->list_allowlist_identifiers: #{e}"
|
318
317
|
end
|
319
318
|
```
|
320
319
|
|
321
|
-
#### Using the list_allowlist_identifiers_with_http_info variant
|
320
|
+
#### Using the `list_allowlist_identifiers_with_http_info variant
|
322
321
|
|
323
322
|
This returns an Array which contains the response data, status code and headers.
|
324
323
|
|
@@ -327,12 +326,12 @@ This returns an Array which contains the response data, status code and headers.
|
|
327
326
|
```ruby
|
328
327
|
begin
|
329
328
|
# List all identifiers on the allow-list
|
330
|
-
data, status_code, headers =
|
329
|
+
data, status_code, headers = Clerk::SDK.allow_list_block_list.list_allowlist_identifiers_with_http_info
|
331
330
|
p status_code # => 2xx
|
332
331
|
p headers # => { ... }
|
333
332
|
p data # => <Array<AllowlistIdentifier>>
|
334
333
|
rescue ClerkHttpClient::ApiError => e
|
335
|
-
puts "Error when calling
|
334
|
+
puts "Error when calling Clerk::SDK.allow_list_block_list->list_allowlist_identifiers_with_http_info: #{e}"
|
336
335
|
end
|
337
336
|
```
|
338
337
|
|
@@ -366,25 +365,24 @@ Get a list of all identifiers which are not allowed to access an instance
|
|
366
365
|
|
367
366
|
```ruby
|
368
367
|
require 'time'
|
369
|
-
require 'clerk
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
config.
|
368
|
+
require 'clerk'
|
369
|
+
|
370
|
+
## Setup
|
371
|
+
Clerk.configure do |config|
|
372
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
374
373
|
end
|
375
374
|
|
376
|
-
api_instance = ClerkHttpClient::AllowListBlockListApi.new
|
377
375
|
|
378
376
|
begin
|
379
377
|
# List all identifiers on the block-list
|
380
|
-
result =
|
378
|
+
result = Clerk::SDK.allow_list_block_list.list_blocklist_identifiers
|
381
379
|
p result
|
382
380
|
rescue ClerkHttpClient::ApiError => e
|
383
|
-
puts "Error when calling
|
381
|
+
puts "Error when calling Clerk::SDK.allow_list_block_list->list_blocklist_identifiers: #{e}"
|
384
382
|
end
|
385
383
|
```
|
386
384
|
|
387
|
-
#### Using the list_blocklist_identifiers_with_http_info variant
|
385
|
+
#### Using the `list_blocklist_identifiers_with_http_info variant
|
388
386
|
|
389
387
|
This returns an Array which contains the response data, status code and headers.
|
390
388
|
|
@@ -393,12 +391,12 @@ This returns an Array which contains the response data, status code and headers.
|
|
393
391
|
```ruby
|
394
392
|
begin
|
395
393
|
# List all identifiers on the block-list
|
396
|
-
data, status_code, headers =
|
394
|
+
data, status_code, headers = Clerk::SDK.allow_list_block_list.list_blocklist_identifiers_with_http_info
|
397
395
|
p status_code # => 2xx
|
398
396
|
p headers # => { ... }
|
399
397
|
p data # => <BlocklistIdentifiers>
|
400
398
|
rescue ClerkHttpClient::ApiError => e
|
401
|
-
puts "Error when calling
|
399
|
+
puts "Error when calling Clerk::SDK.allow_list_block_list->list_blocklist_identifiers_with_http_info: #{e}"
|
402
400
|
end
|
403
401
|
```
|
404
402
|
|
data/docs/BetaFeaturesApi.md
CHANGED
@@ -11,7 +11,7 @@ All URIs are relative to *https://api.clerk.com/v1*
|
|
11
11
|
|
12
12
|
## change_production_instance_domain
|
13
13
|
|
14
|
-
> change_production_instance_domain(
|
14
|
+
> change_production_instance_domain(opts)
|
15
15
|
|
16
16
|
Update production instance domain
|
17
17
|
|
@@ -21,39 +21,40 @@ Change the domain of a production instance. Changing the domain requires updati
|
|
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
|
-
|
32
|
-
change_production_instance_domain_request
|
31
|
+
opts = {
|
32
|
+
change_production_instance_domain_request: ClerkHttpClient::ChangeProductionInstanceDomainRequest.new # ChangeProductionInstanceDomainRequest |
|
33
|
+
}
|
33
34
|
|
34
35
|
begin
|
35
36
|
# Update production instance domain
|
36
|
-
|
37
|
+
Clerk::SDK.beta_features.change_production_instance_domain(opts)
|
37
38
|
rescue ClerkHttpClient::ApiError => e
|
38
|
-
puts "Error when calling
|
39
|
+
puts "Error when calling Clerk::SDK.beta_features->change_production_instance_domain: #{e}"
|
39
40
|
end
|
40
41
|
```
|
41
42
|
|
42
|
-
#### Using the change_production_instance_domain_with_http_info variant
|
43
|
+
#### Using the `change_production_instance_domain_with_http_info variant
|
43
44
|
|
44
45
|
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
45
46
|
|
46
|
-
> <Array(nil, Integer, Hash)> change_production_instance_domain_with_http_info(
|
47
|
+
> <Array(nil, Integer, Hash)> change_production_instance_domain_with_http_info(opts)
|
47
48
|
|
48
49
|
```ruby
|
49
50
|
begin
|
50
51
|
# Update production instance domain
|
51
|
-
data, status_code, headers =
|
52
|
+
data, status_code, headers = Clerk::SDK.beta_features.change_production_instance_domain_with_http_info(opts)
|
52
53
|
p status_code # => 2xx
|
53
54
|
p headers # => { ... }
|
54
55
|
p data # => nil
|
55
56
|
rescue ClerkHttpClient::ApiError => e
|
56
|
-
puts "Error when calling
|
57
|
+
puts "Error when calling Clerk::SDK.beta_features->change_production_instance_domain_with_http_info: #{e}"
|
57
58
|
end
|
58
59
|
```
|
59
60
|
|
@@ -61,7 +62,7 @@ end
|
|
61
62
|
|
62
63
|
| Name | Type | Description | Notes |
|
63
64
|
| ---- | ---- | ----------- | ----- |
|
64
|
-
| **change_production_instance_domain_request** | [**ChangeProductionInstanceDomainRequest**](ChangeProductionInstanceDomainRequest.md) | |
|
65
|
+
| **change_production_instance_domain_request** | [**ChangeProductionInstanceDomainRequest**](ChangeProductionInstanceDomainRequest.md) | | [optional] |
|
65
66
|
|
66
67
|
### Return type
|
67
68
|
|
@@ -79,7 +80,7 @@ nil (empty response body)
|
|
79
80
|
|
80
81
|
## update_instance_auth_config
|
81
82
|
|
82
|
-
> <UpdateInstanceAuthConfig200Response> update_instance_auth_config(
|
83
|
+
> <UpdateInstanceAuthConfig200Response> update_instance_auth_config(opts)
|
83
84
|
|
84
85
|
Update instance settings
|
85
86
|
|
@@ -89,40 +90,41 @@ Updates the settings of an instance
|
|
89
90
|
|
90
91
|
```ruby
|
91
92
|
require 'time'
|
92
|
-
require 'clerk
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
config.
|
93
|
+
require 'clerk'
|
94
|
+
|
95
|
+
## Setup
|
96
|
+
Clerk.configure do |config|
|
97
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
97
98
|
end
|
98
99
|
|
99
|
-
|
100
|
-
update_instance_auth_config_request
|
100
|
+
opts = {
|
101
|
+
update_instance_auth_config_request: ClerkHttpClient::UpdateInstanceAuthConfigRequest.new # UpdateInstanceAuthConfigRequest |
|
102
|
+
}
|
101
103
|
|
102
104
|
begin
|
103
105
|
# Update instance settings
|
104
|
-
result =
|
106
|
+
result = Clerk::SDK.beta_features.update_instance_auth_config(opts)
|
105
107
|
p result
|
106
108
|
rescue ClerkHttpClient::ApiError => e
|
107
|
-
puts "Error when calling
|
109
|
+
puts "Error when calling Clerk::SDK.beta_features->update_instance_auth_config: #{e}"
|
108
110
|
end
|
109
111
|
```
|
110
112
|
|
111
|
-
#### Using the update_instance_auth_config_with_http_info variant
|
113
|
+
#### Using the `update_instance_auth_config_with_http_info variant
|
112
114
|
|
113
115
|
This returns an Array which contains the response data, status code and headers.
|
114
116
|
|
115
|
-
> <Array(<UpdateInstanceAuthConfig200Response>, Integer, Hash)> update_instance_auth_config_with_http_info(
|
117
|
+
> <Array(<UpdateInstanceAuthConfig200Response>, Integer, Hash)> update_instance_auth_config_with_http_info(opts)
|
116
118
|
|
117
119
|
```ruby
|
118
120
|
begin
|
119
121
|
# Update instance settings
|
120
|
-
data, status_code, headers =
|
122
|
+
data, status_code, headers = Clerk::SDK.beta_features.update_instance_auth_config_with_http_info(opts)
|
121
123
|
p status_code # => 2xx
|
122
124
|
p headers # => { ... }
|
123
125
|
p data # => <UpdateInstanceAuthConfig200Response>
|
124
126
|
rescue ClerkHttpClient::ApiError => e
|
125
|
-
puts "Error when calling
|
127
|
+
puts "Error when calling Clerk::SDK.beta_features->update_instance_auth_config_with_http_info: #{e}"
|
126
128
|
end
|
127
129
|
```
|
128
130
|
|
@@ -130,7 +132,7 @@ end
|
|
130
132
|
|
131
133
|
| Name | Type | Description | Notes |
|
132
134
|
| ---- | ---- | ----------- | ----- |
|
133
|
-
| **update_instance_auth_config_request** | [**UpdateInstanceAuthConfigRequest**](UpdateInstanceAuthConfigRequest.md) | |
|
135
|
+
| **update_instance_auth_config_request** | [**UpdateInstanceAuthConfigRequest**](UpdateInstanceAuthConfigRequest.md) | | [optional] |
|
134
136
|
|
135
137
|
### Return type
|
136
138
|
|
@@ -158,27 +160,26 @@ Change the domain of a production instance. Changing the domain requires updati
|
|
158
160
|
|
159
161
|
```ruby
|
160
162
|
require 'time'
|
161
|
-
require 'clerk
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
config.
|
163
|
+
require 'clerk'
|
164
|
+
|
165
|
+
## Setup
|
166
|
+
Clerk.configure do |config|
|
167
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
166
168
|
end
|
167
169
|
|
168
|
-
api_instance = ClerkHttpClient::BetaFeaturesApi.new
|
169
170
|
opts = {
|
170
171
|
update_production_instance_domain_request: ClerkHttpClient::UpdateProductionInstanceDomainRequest.new # UpdateProductionInstanceDomainRequest |
|
171
172
|
}
|
172
173
|
|
173
174
|
begin
|
174
175
|
# Update production instance domain
|
175
|
-
|
176
|
+
Clerk::SDK.beta_features.update_production_instance_domain(opts)
|
176
177
|
rescue ClerkHttpClient::ApiError => e
|
177
|
-
puts "Error when calling
|
178
|
+
puts "Error when calling Clerk::SDK.beta_features->update_production_instance_domain: #{e}"
|
178
179
|
end
|
179
180
|
```
|
180
181
|
|
181
|
-
#### Using the update_production_instance_domain_with_http_info variant
|
182
|
+
#### Using the `update_production_instance_domain_with_http_info variant
|
182
183
|
|
183
184
|
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
184
185
|
|
@@ -187,12 +188,12 @@ This returns an Array which contains the response data (`nil` in this case), sta
|
|
187
188
|
```ruby
|
188
189
|
begin
|
189
190
|
# Update production instance domain
|
190
|
-
data, status_code, headers =
|
191
|
+
data, status_code, headers = Clerk::SDK.beta_features.update_production_instance_domain_with_http_info(opts)
|
191
192
|
p status_code # => 2xx
|
192
193
|
p headers # => { ... }
|
193
194
|
p data # => nil
|
194
195
|
rescue ClerkHttpClient::ApiError => e
|
195
|
-
puts "Error when calling
|
196
|
+
puts "Error when calling Clerk::SDK.beta_features->update_production_instance_domain_with_http_info: #{e}"
|
196
197
|
end
|
197
198
|
```
|
198
199
|
|