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/SessionsApi.md
CHANGED
@@ -4,6 +4,8 @@ All URIs are relative to *https://api.clerk.com/v1*
|
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
+
| [**create_session**](SessionsApi.md#create_session) | **POST** /sessions | Create a new active session |
|
8
|
+
| [**create_session_token**](SessionsApi.md#create_session_token) | **POST** /sessions/{session_id}/tokens | Create a session token |
|
7
9
|
| [**create_session_token_from_template**](SessionsApi.md#create_session_token_from_template) | **POST** /sessions/{session_id}/tokens/{template_name} | Create a session token from a jwt template |
|
8
10
|
| [**get_session**](SessionsApi.md#get_session) | **GET** /sessions/{session_id} | Retrieve a session |
|
9
11
|
| [**get_session_list**](SessionsApi.md#get_session_list) | **GET** /sessions | List all sessions |
|
@@ -11,9 +13,151 @@ All URIs are relative to *https://api.clerk.com/v1*
|
|
11
13
|
| [**verify_session**](SessionsApi.md#verify_session) | **POST** /sessions/{session_id}/verify | Verify a session |
|
12
14
|
|
13
15
|
|
16
|
+
## create_session
|
17
|
+
|
18
|
+
> <Session> create_session(opts)
|
19
|
+
|
20
|
+
Create a new active session
|
21
|
+
|
22
|
+
Create a new active session for the provided user ID. This operation is only available for Clerk Development instances.
|
23
|
+
|
24
|
+
### Examples
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
require 'time'
|
28
|
+
require 'clerk'
|
29
|
+
|
30
|
+
## Setup
|
31
|
+
Clerk.configure do |config|
|
32
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
33
|
+
end
|
34
|
+
|
35
|
+
opts = {
|
36
|
+
create_session_request: ClerkHttpClient::CreateSessionRequest.new # CreateSessionRequest |
|
37
|
+
}
|
38
|
+
|
39
|
+
begin
|
40
|
+
# Create a new active session
|
41
|
+
result = Clerk::SDK.sessions.create_session(opts)
|
42
|
+
p result
|
43
|
+
rescue ClerkHttpClient::ApiError => e
|
44
|
+
puts "Error when calling Clerk::SDK.sessions->create_session: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
#### Using the `create_session_with_http_info variant
|
49
|
+
|
50
|
+
This returns an Array which contains the response data, status code and headers.
|
51
|
+
|
52
|
+
> <Array(<Session>, Integer, Hash)> create_session_with_http_info(opts)
|
53
|
+
|
54
|
+
```ruby
|
55
|
+
begin
|
56
|
+
# Create a new active session
|
57
|
+
data, status_code, headers = Clerk::SDK.sessions.create_session_with_http_info(opts)
|
58
|
+
p status_code # => 2xx
|
59
|
+
p headers # => { ... }
|
60
|
+
p data # => <Session>
|
61
|
+
rescue ClerkHttpClient::ApiError => e
|
62
|
+
puts "Error when calling Clerk::SDK.sessions->create_session_with_http_info: #{e}"
|
63
|
+
end
|
64
|
+
```
|
65
|
+
|
66
|
+
### Parameters
|
67
|
+
|
68
|
+
| Name | Type | Description | Notes |
|
69
|
+
| ---- | ---- | ----------- | ----- |
|
70
|
+
| **create_session_request** | [**CreateSessionRequest**](CreateSessionRequest.md) | | [optional] |
|
71
|
+
|
72
|
+
### Return type
|
73
|
+
|
74
|
+
[**Session**](Session.md)
|
75
|
+
|
76
|
+
### Authorization
|
77
|
+
|
78
|
+
[bearerAuth](../README.md#bearerAuth)
|
79
|
+
|
80
|
+
### HTTP request headers
|
81
|
+
|
82
|
+
- **Content-Type**: application/json
|
83
|
+
- **Accept**: application/json
|
84
|
+
|
85
|
+
|
86
|
+
## create_session_token
|
87
|
+
|
88
|
+
> <CreateSessionToken200Response> create_session_token(session_id, opts)
|
89
|
+
|
90
|
+
Create a session token
|
91
|
+
|
92
|
+
Creates a session JSON Web Token (JWT) based on a session.
|
93
|
+
|
94
|
+
### Examples
|
95
|
+
|
96
|
+
```ruby
|
97
|
+
require 'time'
|
98
|
+
require 'clerk'
|
99
|
+
|
100
|
+
## Setup
|
101
|
+
Clerk.configure do |config|
|
102
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
103
|
+
end
|
104
|
+
|
105
|
+
session_id = 'session_id_example' # String | The ID of the session
|
106
|
+
opts = {
|
107
|
+
create_session_token_request: ClerkHttpClient::CreateSessionTokenRequest.new # CreateSessionTokenRequest |
|
108
|
+
}
|
109
|
+
|
110
|
+
begin
|
111
|
+
# Create a session token
|
112
|
+
result = Clerk::SDK.sessions.create_session_token(session_id, opts)
|
113
|
+
p result
|
114
|
+
rescue ClerkHttpClient::ApiError => e
|
115
|
+
puts "Error when calling Clerk::SDK.sessions->create_session_token: #{e}"
|
116
|
+
end
|
117
|
+
```
|
118
|
+
|
119
|
+
#### Using the `create_session_token_with_http_info variant
|
120
|
+
|
121
|
+
This returns an Array which contains the response data, status code and headers.
|
122
|
+
|
123
|
+
> <Array(<CreateSessionToken200Response>, Integer, Hash)> create_session_token_with_http_info(session_id, opts)
|
124
|
+
|
125
|
+
```ruby
|
126
|
+
begin
|
127
|
+
# Create a session token
|
128
|
+
data, status_code, headers = Clerk::SDK.sessions.create_session_token_with_http_info(session_id, opts)
|
129
|
+
p status_code # => 2xx
|
130
|
+
p headers # => { ... }
|
131
|
+
p data # => <CreateSessionToken200Response>
|
132
|
+
rescue ClerkHttpClient::ApiError => e
|
133
|
+
puts "Error when calling Clerk::SDK.sessions->create_session_token_with_http_info: #{e}"
|
134
|
+
end
|
135
|
+
```
|
136
|
+
|
137
|
+
### Parameters
|
138
|
+
|
139
|
+
| Name | Type | Description | Notes |
|
140
|
+
| ---- | ---- | ----------- | ----- |
|
141
|
+
| **session_id** | **String** | The ID of the session | |
|
142
|
+
| **create_session_token_request** | [**CreateSessionTokenRequest**](CreateSessionTokenRequest.md) | | [optional] |
|
143
|
+
|
144
|
+
### Return type
|
145
|
+
|
146
|
+
[**CreateSessionToken200Response**](CreateSessionToken200Response.md)
|
147
|
+
|
148
|
+
### Authorization
|
149
|
+
|
150
|
+
[bearerAuth](../README.md#bearerAuth)
|
151
|
+
|
152
|
+
### HTTP request headers
|
153
|
+
|
154
|
+
- **Content-Type**: application/json
|
155
|
+
- **Accept**: application/json
|
156
|
+
|
157
|
+
|
14
158
|
## create_session_token_from_template
|
15
159
|
|
16
|
-
> <
|
160
|
+
> <CreateSessionToken200Response> create_session_token_from_template(session_id, template_name, opts)
|
17
161
|
|
18
162
|
Create a session token from a jwt template
|
19
163
|
|
@@ -23,41 +167,43 @@ Creates a JSON Web Token(JWT) based on a session and a JWT Template name defined
|
|
23
167
|
|
24
168
|
```ruby
|
25
169
|
require 'time'
|
26
|
-
require 'clerk
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
config.
|
170
|
+
require 'clerk'
|
171
|
+
|
172
|
+
## Setup
|
173
|
+
Clerk.configure do |config|
|
174
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
31
175
|
end
|
32
176
|
|
33
|
-
api_instance = ClerkHttpClient::SessionsApi.new
|
34
177
|
session_id = 'session_id_example' # String | The ID of the session
|
35
178
|
template_name = 'template_name_example' # String | The name of the JWT Template defined in your instance (e.g. `custom_hasura`).
|
179
|
+
opts = {
|
180
|
+
create_session_token_from_template_request: ClerkHttpClient::CreateSessionTokenFromTemplateRequest.new # CreateSessionTokenFromTemplateRequest |
|
181
|
+
}
|
36
182
|
|
37
183
|
begin
|
38
184
|
# Create a session token from a jwt template
|
39
|
-
result =
|
185
|
+
result = Clerk::SDK.sessions.create_session_token_from_template(session_id, template_name, opts)
|
40
186
|
p result
|
41
187
|
rescue ClerkHttpClient::ApiError => e
|
42
|
-
puts "Error when calling
|
188
|
+
puts "Error when calling Clerk::SDK.sessions->create_session_token_from_template: #{e}"
|
43
189
|
end
|
44
190
|
```
|
45
191
|
|
46
|
-
#### Using the create_session_token_from_template_with_http_info variant
|
192
|
+
#### Using the `create_session_token_from_template_with_http_info variant
|
47
193
|
|
48
194
|
This returns an Array which contains the response data, status code and headers.
|
49
195
|
|
50
|
-
> <Array(<
|
196
|
+
> <Array(<CreateSessionToken200Response>, Integer, Hash)> create_session_token_from_template_with_http_info(session_id, template_name, opts)
|
51
197
|
|
52
198
|
```ruby
|
53
199
|
begin
|
54
200
|
# Create a session token from a jwt template
|
55
|
-
data, status_code, headers =
|
201
|
+
data, status_code, headers = Clerk::SDK.sessions.create_session_token_from_template_with_http_info(session_id, template_name, opts)
|
56
202
|
p status_code # => 2xx
|
57
203
|
p headers # => { ... }
|
58
|
-
p data # => <
|
204
|
+
p data # => <CreateSessionToken200Response>
|
59
205
|
rescue ClerkHttpClient::ApiError => e
|
60
|
-
puts "Error when calling
|
206
|
+
puts "Error when calling Clerk::SDK.sessions->create_session_token_from_template_with_http_info: #{e}"
|
61
207
|
end
|
62
208
|
```
|
63
209
|
|
@@ -67,10 +213,11 @@ end
|
|
67
213
|
| ---- | ---- | ----------- | ----- |
|
68
214
|
| **session_id** | **String** | The ID of the session | |
|
69
215
|
| **template_name** | **String** | The name of the JWT Template defined in your instance (e.g. `custom_hasura`). | |
|
216
|
+
| **create_session_token_from_template_request** | [**CreateSessionTokenFromTemplateRequest**](CreateSessionTokenFromTemplateRequest.md) | | [optional] |
|
70
217
|
|
71
218
|
### Return type
|
72
219
|
|
73
|
-
[**
|
220
|
+
[**CreateSessionToken200Response**](CreateSessionToken200Response.md)
|
74
221
|
|
75
222
|
### Authorization
|
76
223
|
|
@@ -78,7 +225,7 @@ end
|
|
78
225
|
|
79
226
|
### HTTP request headers
|
80
227
|
|
81
|
-
- **Content-Type**:
|
228
|
+
- **Content-Type**: application/json
|
82
229
|
- **Accept**: application/json
|
83
230
|
|
84
231
|
|
@@ -94,26 +241,25 @@ Retrieve the details of a session
|
|
94
241
|
|
95
242
|
```ruby
|
96
243
|
require 'time'
|
97
|
-
require 'clerk
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
config.
|
244
|
+
require 'clerk'
|
245
|
+
|
246
|
+
## Setup
|
247
|
+
Clerk.configure do |config|
|
248
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
102
249
|
end
|
103
250
|
|
104
|
-
api_instance = ClerkHttpClient::SessionsApi.new
|
105
251
|
session_id = 'session_id_example' # String | The ID of the session
|
106
252
|
|
107
253
|
begin
|
108
254
|
# Retrieve a session
|
109
|
-
result =
|
255
|
+
result = Clerk::SDK.sessions.get_session(session_id)
|
110
256
|
p result
|
111
257
|
rescue ClerkHttpClient::ApiError => e
|
112
|
-
puts "Error when calling
|
258
|
+
puts "Error when calling Clerk::SDK.sessions->get_session: #{e}"
|
113
259
|
end
|
114
260
|
```
|
115
261
|
|
116
|
-
#### Using the get_session_with_http_info variant
|
262
|
+
#### Using the `get_session_with_http_info variant
|
117
263
|
|
118
264
|
This returns an Array which contains the response data, status code and headers.
|
119
265
|
|
@@ -122,12 +268,12 @@ This returns an Array which contains the response data, status code and headers.
|
|
122
268
|
```ruby
|
123
269
|
begin
|
124
270
|
# Retrieve a session
|
125
|
-
data, status_code, headers =
|
271
|
+
data, status_code, headers = Clerk::SDK.sessions.get_session_with_http_info(session_id)
|
126
272
|
p status_code # => 2xx
|
127
273
|
p headers # => { ... }
|
128
274
|
p data # => <Session>
|
129
275
|
rescue ClerkHttpClient::ApiError => e
|
130
|
-
puts "Error when calling
|
276
|
+
puts "Error when calling Clerk::SDK.sessions->get_session_with_http_info: #{e}"
|
131
277
|
end
|
132
278
|
```
|
133
279
|
|
@@ -163,14 +309,13 @@ Returns a list of all sessions. The sessions are returned sorted by creation dat
|
|
163
309
|
|
164
310
|
```ruby
|
165
311
|
require 'time'
|
166
|
-
require 'clerk
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
config.
|
312
|
+
require 'clerk'
|
313
|
+
|
314
|
+
## Setup
|
315
|
+
Clerk.configure do |config|
|
316
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
171
317
|
end
|
172
318
|
|
173
|
-
api_instance = ClerkHttpClient::SessionsApi.new
|
174
319
|
opts = {
|
175
320
|
client_id: 'client_id_example', # String | List sessions for the given client
|
176
321
|
user_id: 'user_id_example', # String | List sessions for the given user
|
@@ -181,14 +326,14 @@ opts = {
|
|
181
326
|
|
182
327
|
begin
|
183
328
|
# List all sessions
|
184
|
-
result =
|
329
|
+
result = Clerk::SDK.sessions.get_session_list(opts)
|
185
330
|
p result
|
186
331
|
rescue ClerkHttpClient::ApiError => e
|
187
|
-
puts "Error when calling
|
332
|
+
puts "Error when calling Clerk::SDK.sessions->get_session_list: #{e}"
|
188
333
|
end
|
189
334
|
```
|
190
335
|
|
191
|
-
#### Using the get_session_list_with_http_info variant
|
336
|
+
#### Using the `get_session_list_with_http_info variant
|
192
337
|
|
193
338
|
This returns an Array which contains the response data, status code and headers.
|
194
339
|
|
@@ -197,12 +342,12 @@ This returns an Array which contains the response data, status code and headers.
|
|
197
342
|
```ruby
|
198
343
|
begin
|
199
344
|
# List all sessions
|
200
|
-
data, status_code, headers =
|
345
|
+
data, status_code, headers = Clerk::SDK.sessions.get_session_list_with_http_info(opts)
|
201
346
|
p status_code # => 2xx
|
202
347
|
p headers # => { ... }
|
203
348
|
p data # => <Array<Session>>
|
204
349
|
rescue ClerkHttpClient::ApiError => e
|
205
|
-
puts "Error when calling
|
350
|
+
puts "Error when calling Clerk::SDK.sessions->get_session_list_with_http_info: #{e}"
|
206
351
|
end
|
207
352
|
```
|
208
353
|
|
@@ -242,26 +387,25 @@ Sets the status of a session as \"revoked\", which is an unauthenticated state.
|
|
242
387
|
|
243
388
|
```ruby
|
244
389
|
require 'time'
|
245
|
-
require 'clerk
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
config.
|
390
|
+
require 'clerk'
|
391
|
+
|
392
|
+
## Setup
|
393
|
+
Clerk.configure do |config|
|
394
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
250
395
|
end
|
251
396
|
|
252
|
-
api_instance = ClerkHttpClient::SessionsApi.new
|
253
397
|
session_id = 'session_id_example' # String | The ID of the session
|
254
398
|
|
255
399
|
begin
|
256
400
|
# Revoke a session
|
257
|
-
result =
|
401
|
+
result = Clerk::SDK.sessions.revoke_session(session_id)
|
258
402
|
p result
|
259
403
|
rescue ClerkHttpClient::ApiError => e
|
260
|
-
puts "Error when calling
|
404
|
+
puts "Error when calling Clerk::SDK.sessions->revoke_session: #{e}"
|
261
405
|
end
|
262
406
|
```
|
263
407
|
|
264
|
-
#### Using the revoke_session_with_http_info variant
|
408
|
+
#### Using the `revoke_session_with_http_info variant
|
265
409
|
|
266
410
|
This returns an Array which contains the response data, status code and headers.
|
267
411
|
|
@@ -270,12 +414,12 @@ This returns an Array which contains the response data, status code and headers.
|
|
270
414
|
```ruby
|
271
415
|
begin
|
272
416
|
# Revoke a session
|
273
|
-
data, status_code, headers =
|
417
|
+
data, status_code, headers = Clerk::SDK.sessions.revoke_session_with_http_info(session_id)
|
274
418
|
p status_code # => 2xx
|
275
419
|
p headers # => { ... }
|
276
420
|
p data # => <Session>
|
277
421
|
rescue ClerkHttpClient::ApiError => e
|
278
|
-
puts "Error when calling
|
422
|
+
puts "Error when calling Clerk::SDK.sessions->revoke_session_with_http_info: #{e}"
|
279
423
|
end
|
280
424
|
```
|
281
425
|
|
@@ -311,14 +455,13 @@ Returns the session if it is authenticated, otherwise returns an error. WARNING:
|
|
311
455
|
|
312
456
|
```ruby
|
313
457
|
require 'time'
|
314
|
-
require 'clerk
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
config.
|
458
|
+
require 'clerk'
|
459
|
+
|
460
|
+
## Setup
|
461
|
+
Clerk.configure do |config|
|
462
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
319
463
|
end
|
320
464
|
|
321
|
-
api_instance = ClerkHttpClient::SessionsApi.new
|
322
465
|
session_id = 'session_id_example' # String | The ID of the session
|
323
466
|
opts = {
|
324
467
|
verify_session_request: ClerkHttpClient::VerifySessionRequest.new # VerifySessionRequest | Parameters.
|
@@ -326,14 +469,14 @@ opts = {
|
|
326
469
|
|
327
470
|
begin
|
328
471
|
# Verify a session
|
329
|
-
result =
|
472
|
+
result = Clerk::SDK.sessions.verify_session(session_id, opts)
|
330
473
|
p result
|
331
474
|
rescue ClerkHttpClient::ApiError => e
|
332
|
-
puts "Error when calling
|
475
|
+
puts "Error when calling Clerk::SDK.sessions->verify_session: #{e}"
|
333
476
|
end
|
334
477
|
```
|
335
478
|
|
336
|
-
#### Using the verify_session_with_http_info variant
|
479
|
+
#### Using the `verify_session_with_http_info variant
|
337
480
|
|
338
481
|
This returns an Array which contains the response data, status code and headers.
|
339
482
|
|
@@ -342,12 +485,12 @@ This returns an Array which contains the response data, status code and headers.
|
|
342
485
|
```ruby
|
343
486
|
begin
|
344
487
|
# Verify a session
|
345
|
-
data, status_code, headers =
|
488
|
+
data, status_code, headers = Clerk::SDK.sessions.verify_session_with_http_info(session_id, opts)
|
346
489
|
p status_code # => 2xx
|
347
490
|
p headers # => { ... }
|
348
491
|
p data # => <Session>
|
349
492
|
rescue ClerkHttpClient::ApiError => e
|
350
|
-
puts "Error when calling
|
493
|
+
puts "Error when calling Clerk::SDK.sessions->verify_session_with_http_info: #{e}"
|
351
494
|
end
|
352
495
|
```
|
353
496
|
|
data/docs/SignInTokensApi.md
CHANGED
@@ -10,7 +10,7 @@ All URIs are relative to *https://api.clerk.com/v1*
|
|
10
10
|
|
11
11
|
## create_sign_in_token
|
12
12
|
|
13
|
-
> <SignInToken> create_sign_in_token(
|
13
|
+
> <SignInToken> create_sign_in_token(opts)
|
14
14
|
|
15
15
|
Create sign-in token
|
16
16
|
|
@@ -20,40 +20,41 @@ Creates a new sign-in token and associates it with the given user. By default, s
|
|
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_sign_in_token_request
|
30
|
+
opts = {
|
31
|
+
create_sign_in_token_request: ClerkHttpClient::CreateSignInTokenRequest.new # CreateSignInTokenRequest |
|
32
|
+
}
|
32
33
|
|
33
34
|
begin
|
34
35
|
# Create sign-in token
|
35
|
-
result =
|
36
|
+
result = Clerk::SDK.sign_in_tokens.create_sign_in_token(opts)
|
36
37
|
p result
|
37
38
|
rescue ClerkHttpClient::ApiError => e
|
38
|
-
puts "Error when calling
|
39
|
+
puts "Error when calling Clerk::SDK.sign_in_tokens->create_sign_in_token: #{e}"
|
39
40
|
end
|
40
41
|
```
|
41
42
|
|
42
|
-
#### Using the create_sign_in_token_with_http_info variant
|
43
|
+
#### Using the `create_sign_in_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(<SignInToken>, Integer, Hash)> create_sign_in_token_with_http_info(
|
47
|
+
> <Array(<SignInToken>, Integer, Hash)> create_sign_in_token_with_http_info(opts)
|
47
48
|
|
48
49
|
```ruby
|
49
50
|
begin
|
50
51
|
# Create sign-in token
|
51
|
-
data, status_code, headers =
|
52
|
+
data, status_code, headers = Clerk::SDK.sign_in_tokens.create_sign_in_token_with_http_info(opts)
|
52
53
|
p status_code # => 2xx
|
53
54
|
p headers # => { ... }
|
54
55
|
p data # => <SignInToken>
|
55
56
|
rescue ClerkHttpClient::ApiError => e
|
56
|
-
puts "Error when calling
|
57
|
+
puts "Error when calling Clerk::SDK.sign_in_tokens->create_sign_in_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_sign_in_token_request** | [**CreateSignInTokenRequest**](CreateSignInTokenRequest.md) | |
|
65
|
+
| **create_sign_in_token_request** | [**CreateSignInTokenRequest**](CreateSignInTokenRequest.md) | | [optional] |
|
65
66
|
|
66
67
|
### Return type
|
67
68
|
|
@@ -89,26 +90,25 @@ Revokes a pending sign-in 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::SignInTokensApi.new
|
100
100
|
sign_in_token_id = 'sign_in_token_id_example' # String | The ID of the sign-in token to be revoked
|
101
101
|
|
102
102
|
begin
|
103
103
|
# Revoke the given sign-in token
|
104
|
-
result =
|
104
|
+
result = Clerk::SDK.sign_in_tokens.revoke_sign_in_token(sign_in_token_id)
|
105
105
|
p result
|
106
106
|
rescue ClerkHttpClient::ApiError => e
|
107
|
-
puts "Error when calling
|
107
|
+
puts "Error when calling Clerk::SDK.sign_in_tokens->revoke_sign_in_token: #{e}"
|
108
108
|
end
|
109
109
|
```
|
110
110
|
|
111
|
-
#### Using the revoke_sign_in_token_with_http_info variant
|
111
|
+
#### Using the `revoke_sign_in_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 the given sign-in token
|
120
|
-
data, status_code, headers =
|
120
|
+
data, status_code, headers = Clerk::SDK.sign_in_tokens.revoke_sign_in_token_with_http_info(sign_in_token_id)
|
121
121
|
p status_code # => 2xx
|
122
122
|
p headers # => { ... }
|
123
123
|
p data # => <SignInToken>
|
124
124
|
rescue ClerkHttpClient::ApiError => e
|
125
|
-
puts "Error when calling
|
125
|
+
puts "Error when calling Clerk::SDK.sign_in_tokens->revoke_sign_in_token_with_http_info: #{e}"
|
126
126
|
end
|
127
127
|
```
|
128
128
|
|
data/docs/SignUp.md
CHANGED
@@ -19,13 +19,14 @@
|
|
19
19
|
| **password_enabled** | **Boolean** | | |
|
20
20
|
| **first_name** | **String** | | [optional] |
|
21
21
|
| **last_name** | **String** | | [optional] |
|
22
|
-
| **unsafe_metadata** | **Object
|
23
|
-
| **public_metadata** | **Object
|
22
|
+
| **unsafe_metadata** | **Hash<String, Object>** | | [optional] |
|
23
|
+
| **public_metadata** | **Hash<String, Object>** | | [optional] |
|
24
24
|
| **custom_action** | **Boolean** | | |
|
25
25
|
| **external_id** | **String** | | [optional] |
|
26
26
|
| **created_session_id** | **String** | | [optional] |
|
27
27
|
| **created_user_id** | **String** | | [optional] |
|
28
28
|
| **abandon_at** | **Integer** | | |
|
29
|
+
| **legal_accepted_at** | **Integer** | Unix timestamp at which the user accepted the legal requirements. | [optional] |
|
29
30
|
| **external_account** | **Object** | | [optional] |
|
30
31
|
|
31
32
|
## Example
|
@@ -56,6 +57,7 @@ instance = ClerkHttpClient::SignUp.new(
|
|
56
57
|
created_session_id: null,
|
57
58
|
created_user_id: null,
|
58
59
|
abandon_at: null,
|
60
|
+
legal_accepted_at: 1700690400000,
|
59
61
|
external_account: null
|
60
62
|
)
|
61
63
|
```
|
data/docs/SignUpsApi.md
CHANGED
@@ -9,7 +9,7 @@ All URIs are relative to *https://api.clerk.com/v1*
|
|
9
9
|
|
10
10
|
## update_sign_up
|
11
11
|
|
12
|
-
> <SignUp> update_sign_up(id,
|
12
|
+
> <SignUp> update_sign_up(id, opts)
|
13
13
|
|
14
14
|
Update a sign-up
|
15
15
|
|
@@ -19,41 +19,42 @@ Update the sign-up with the given ID
|
|
19
19
|
|
20
20
|
```ruby
|
21
21
|
require 'time'
|
22
|
-
require 'clerk
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
config.
|
22
|
+
require 'clerk'
|
23
|
+
|
24
|
+
## Setup
|
25
|
+
Clerk.configure do |config|
|
26
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
27
27
|
end
|
28
28
|
|
29
|
-
api_instance = ClerkHttpClient::SignUpsApi.new
|
30
29
|
id = 'id_example' # String | The ID of the sign-up to update
|
31
|
-
|
30
|
+
opts = {
|
31
|
+
update_sign_up_request: ClerkHttpClient::UpdateSignUpRequest.new # UpdateSignUpRequest |
|
32
|
+
}
|
32
33
|
|
33
34
|
begin
|
34
35
|
# Update a sign-up
|
35
|
-
result =
|
36
|
+
result = Clerk::SDK.sign_ups.update_sign_up(id, opts)
|
36
37
|
p result
|
37
38
|
rescue ClerkHttpClient::ApiError => e
|
38
|
-
puts "Error when calling
|
39
|
+
puts "Error when calling Clerk::SDK.sign_ups->update_sign_up: #{e}"
|
39
40
|
end
|
40
41
|
```
|
41
42
|
|
42
|
-
#### Using the update_sign_up_with_http_info variant
|
43
|
+
#### Using the `update_sign_up_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(<SignUp>, Integer, Hash)> update_sign_up_with_http_info(id,
|
47
|
+
> <Array(<SignUp>, Integer, Hash)> update_sign_up_with_http_info(id, opts)
|
47
48
|
|
48
49
|
```ruby
|
49
50
|
begin
|
50
51
|
# Update a sign-up
|
51
|
-
data, status_code, headers =
|
52
|
+
data, status_code, headers = Clerk::SDK.sign_ups.update_sign_up_with_http_info(id, opts)
|
52
53
|
p status_code # => 2xx
|
53
54
|
p headers # => { ... }
|
54
55
|
p data # => <SignUp>
|
55
56
|
rescue ClerkHttpClient::ApiError => e
|
56
|
-
puts "Error when calling
|
57
|
+
puts "Error when calling Clerk::SDK.sign_ups->update_sign_up_with_http_info: #{e}"
|
57
58
|
end
|
58
59
|
```
|
59
60
|
|
@@ -62,7 +63,7 @@ end
|
|
62
63
|
| Name | Type | Description | Notes |
|
63
64
|
| ---- | ---- | ----------- | ----- |
|
64
65
|
| **id** | **String** | The ID of the sign-up to update | |
|
65
|
-
| **update_sign_up_request** | [**UpdateSignUpRequest**](UpdateSignUpRequest.md) | |
|
66
|
+
| **update_sign_up_request** | [**UpdateSignUpRequest**](UpdateSignUpRequest.md) | | [optional] |
|
66
67
|
|
67
68
|
### Return type
|
68
69
|
|