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
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
Contact: support@clerk.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version:
|
9
|
+
Generator version: unset
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -25,8 +25,8 @@ module ClerkHttpClient
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [User]
|
27
27
|
|
28
|
-
def
|
29
|
-
data, _status_code, _headers =
|
28
|
+
def ban_user(user_id, opts = {})
|
29
|
+
data, _status_code, _headers = ban_user_with_http_info(user_id, opts)
|
30
30
|
data
|
31
31
|
end
|
32
32
|
|
@@ -36,7 +36,7 @@ module ClerkHttpClient
|
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
|
38
38
|
# POST
|
39
|
-
def
|
39
|
+
def ban_user_with_http_info(user_id, opts = {})
|
40
40
|
if @api_client.config.debugging
|
41
41
|
@api_client.config.logger.debug 'Calling API: UsersApi.ban_user ...'
|
42
42
|
end
|
@@ -90,8 +90,8 @@ module ClerkHttpClient
|
|
90
90
|
# @param [Hash] opts the optional parameters
|
91
91
|
# @return [User]
|
92
92
|
|
93
|
-
def
|
94
|
-
data, _status_code, _headers =
|
93
|
+
def create_user(create_user_request, opts = {})
|
94
|
+
data, _status_code, _headers = create_user_with_http_info(create_user_request, opts)
|
95
95
|
data
|
96
96
|
end
|
97
97
|
|
@@ -101,7 +101,7 @@ module ClerkHttpClient
|
|
101
101
|
# @param [Hash] opts the optional parameters
|
102
102
|
# @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
|
103
103
|
# POST
|
104
|
-
def
|
104
|
+
def create_user_with_http_info(create_user_request, opts = {})
|
105
105
|
if @api_client.config.debugging
|
106
106
|
@api_client.config.logger.debug 'Calling API: UsersApi.create_user ...'
|
107
107
|
end
|
@@ -160,8 +160,8 @@ module ClerkHttpClient
|
|
160
160
|
# @param [Hash] opts the optional parameters
|
161
161
|
# @return [TOTP]
|
162
162
|
|
163
|
-
def
|
164
|
-
data, _status_code, _headers =
|
163
|
+
def create_user_totp(user_id, opts = {})
|
164
|
+
data, _status_code, _headers = create_user_totp_with_http_info(user_id, opts)
|
165
165
|
data
|
166
166
|
end
|
167
167
|
|
@@ -171,7 +171,7 @@ module ClerkHttpClient
|
|
171
171
|
# @param [Hash] opts the optional parameters
|
172
172
|
# @return [Array<(TOTP, Integer, Hash)>] TOTP data, response status code and response headers
|
173
173
|
# POST
|
174
|
-
def
|
174
|
+
def create_user_totp_with_http_info(user_id, opts = {})
|
175
175
|
if @api_client.config.debugging
|
176
176
|
@api_client.config.logger.debug 'Calling API: UsersApi.create_user_totp ...'
|
177
177
|
end
|
@@ -426,8 +426,8 @@ module ClerkHttpClient
|
|
426
426
|
# @param [Hash] opts the optional parameters
|
427
427
|
# @return [DeletedObject]
|
428
428
|
|
429
|
-
def
|
430
|
-
data, _status_code, _headers =
|
429
|
+
def delete_user(user_id, opts = {})
|
430
|
+
data, _status_code, _headers = delete_user_with_http_info(user_id, opts)
|
431
431
|
data
|
432
432
|
end
|
433
433
|
|
@@ -437,7 +437,7 @@ module ClerkHttpClient
|
|
437
437
|
# @param [Hash] opts the optional parameters
|
438
438
|
# @return [Array<(DeletedObject, Integer, Hash)>] DeletedObject data, response status code and response headers
|
439
439
|
# DELETE
|
440
|
-
def
|
440
|
+
def delete_user_with_http_info(user_id, opts = {})
|
441
441
|
if @api_client.config.debugging
|
442
442
|
@api_client.config.logger.debug 'Calling API: UsersApi.delete_user ...'
|
443
443
|
end
|
@@ -491,8 +491,8 @@ module ClerkHttpClient
|
|
491
491
|
# @param [Hash] opts the optional parameters
|
492
492
|
# @return [User]
|
493
493
|
|
494
|
-
def
|
495
|
-
data, _status_code, _headers =
|
494
|
+
def delete_user_profile_image(user_id, opts = {})
|
495
|
+
data, _status_code, _headers = delete_user_profile_image_with_http_info(user_id, opts)
|
496
496
|
data
|
497
497
|
end
|
498
498
|
|
@@ -502,7 +502,7 @@ module ClerkHttpClient
|
|
502
502
|
# @param [Hash] opts the optional parameters
|
503
503
|
# @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
|
504
504
|
# DELETE
|
505
|
-
def
|
505
|
+
def delete_user_profile_image_with_http_info(user_id, opts = {})
|
506
506
|
if @api_client.config.debugging
|
507
507
|
@api_client.config.logger.debug 'Calling API: UsersApi.delete_user_profile_image ...'
|
508
508
|
end
|
@@ -622,8 +622,8 @@ module ClerkHttpClient
|
|
622
622
|
# @param [Hash] opts the optional parameters
|
623
623
|
# @return [Array<GetOAuthAccessToken200ResponseInner>]
|
624
624
|
|
625
|
-
def
|
626
|
-
data, _status_code, _headers =
|
625
|
+
def get_oauth_access_token(user_id, provider, opts = {})
|
626
|
+
data, _status_code, _headers = get_oauth_access_token_with_http_info(user_id, provider, opts)
|
627
627
|
data
|
628
628
|
end
|
629
629
|
|
@@ -634,17 +634,17 @@ module ClerkHttpClient
|
|
634
634
|
# @param [Hash] opts the optional parameters
|
635
635
|
# @return [Array<(Array<GetOAuthAccessToken200ResponseInner>, Integer, Hash)>] Array<GetOAuthAccessToken200ResponseInner> data, response status code and response headers
|
636
636
|
# GET array
|
637
|
-
def
|
637
|
+
def get_oauth_access_token_with_http_info(user_id, provider, opts = {})
|
638
638
|
if @api_client.config.debugging
|
639
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.
|
639
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.get_oauth_access_token ...'
|
640
640
|
end
|
641
641
|
# verify the required parameter 'user_id' is set
|
642
642
|
if @api_client.config.client_side_validation && user_id.nil?
|
643
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.
|
643
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.get_oauth_access_token"
|
644
644
|
end
|
645
645
|
# verify the required parameter 'provider' is set
|
646
646
|
if @api_client.config.client_side_validation && provider.nil?
|
647
|
-
fail ArgumentError, "Missing the required parameter 'provider' when calling UsersApi.
|
647
|
+
fail ArgumentError, "Missing the required parameter 'provider' when calling UsersApi.get_oauth_access_token"
|
648
648
|
end
|
649
649
|
# resource path
|
650
650
|
local_var_path = '/users/{user_id}/oauth_access_tokens/{provider}'.sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s)).sub('{' + 'provider' + '}', CGI.escape(provider.to_s))
|
@@ -670,7 +670,7 @@ module ClerkHttpClient
|
|
670
670
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
671
671
|
|
672
672
|
new_options = opts.merge(
|
673
|
-
:operation => :"UsersApi.
|
673
|
+
:operation => :"UsersApi.get_oauth_access_token",
|
674
674
|
:header_params => header_params,
|
675
675
|
:query_params => query_params,
|
676
676
|
:form_params => form_params,
|
@@ -681,7 +681,7 @@ module ClerkHttpClient
|
|
681
681
|
|
682
682
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
683
683
|
if @api_client.config.debugging
|
684
|
-
@api_client.config.logger.debug "API called: UsersApi#
|
684
|
+
@api_client.config.logger.debug "API called: UsersApi#get_oauth_access_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
685
685
|
end
|
686
686
|
return data, status_code, headers
|
687
687
|
end
|
@@ -692,8 +692,8 @@ module ClerkHttpClient
|
|
692
692
|
# @param [Hash] opts the optional parameters
|
693
693
|
# @return [User]
|
694
694
|
|
695
|
-
def
|
696
|
-
data, _status_code, _headers =
|
695
|
+
def get_user(user_id, opts = {})
|
696
|
+
data, _status_code, _headers = get_user_with_http_info(user_id, opts)
|
697
697
|
data
|
698
698
|
end
|
699
699
|
|
@@ -703,7 +703,7 @@ module ClerkHttpClient
|
|
703
703
|
# @param [Hash] opts the optional parameters
|
704
704
|
# @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
|
705
705
|
# GET
|
706
|
-
def
|
706
|
+
def get_user_with_http_info(user_id, opts = {})
|
707
707
|
if @api_client.config.debugging
|
708
708
|
@api_client.config.logger.debug 'Calling API: UsersApi.get_user ...'
|
709
709
|
end
|
@@ -762,14 +762,22 @@ module ClerkHttpClient
|
|
762
762
|
# @option opts [Array<String>] :user_id Returns users with the user ids specified. For each user id, the `+` and `-` can be prepended to the id, which denote whether the respective user id should be included or excluded from the result set. Accepts up to 100 user ids. Any user ids not found are ignored.
|
763
763
|
# @option opts [Array<String>] :organization_id Returns users that have memberships to the given organizations. For each organization id, the `+` and `-` can be prepended to the id, which denote whether the respective organization should be included or excluded from the result set. Accepts up to 100 organization ids.
|
764
764
|
# @option opts [String] :query Returns users that match the given query. For possible matches, we check the email addresses, phone numbers, usernames, web3 wallets, user ids, first and last names. The query value doesn't need to match the exact value you are looking for, it is capable of partial matches as well.
|
765
|
-
# @option opts [
|
765
|
+
# @option opts [String] :email_address_query Returns users with emails that match the given query, via case-insensitive partial match. For example, `email_address_query=ello` will match a user with the email `HELLO@example.com`.
|
766
|
+
# @option opts [String] :phone_number_query Returns users with phone numbers that match the given query, via case-insensitive partial match. For example, `phone_number_query=555` will match a user with the phone number `+1555xxxxxxx`.
|
767
|
+
# @option opts [String] :username_query Returns users with usernames that match the given query, via case-insensitive partial match. For example, `username_query=CoolUser` will match a user with the username `SomeCoolUser`.
|
768
|
+
# @option opts [String] :name_query Returns users with names that match the given query, via case-insensitive partial match.
|
769
|
+
# @option opts [Integer] :last_active_at_before Returns users whose last session activity was before the given date (with millisecond precision). Example: use 1700690400000 to retrieve users whose last session activity was before 2023-11-23.
|
770
|
+
# @option opts [Integer] :last_active_at_after Returns users whose last session activity was after the given date (with millisecond precision). Example: use 1700690400000 to retrieve users whose last session activity was after 2023-11-23.
|
771
|
+
# @option opts [Integer] :last_active_at_since Returns users that had session activity since the given date. Example: use 1700690400000 to retrieve users that had session activity from 2023-11-23 until the current day. Deprecated in favor of `last_active_at_after`.
|
772
|
+
# @option opts [Integer] :created_at_before Returns users who have been created before the given date (with millisecond precision). Example: use 1730160000000 to retrieve users who have been created before 2024-10-29.
|
773
|
+
# @option opts [Integer] :created_at_after Returns users who have been created after the given date (with millisecond precision). Example: use 1730160000000 to retrieve users who have been created after 2024-10-29.
|
766
774
|
# @option opts [Float] :limit Applies a limit to the number of results returned. Can be used for paginating the results together with `offset`. (default to 10)
|
767
775
|
# @option opts [Float] :offset Skip the first `offset` results when paginating. Needs to be an integer greater or equal to zero. To be used in conjunction with `limit`. (default to 0)
|
768
776
|
# @option opts [String] :order_by Allows to return users in a particular order. At the moment, you can order the returned users by their `created_at`,`updated_at`,`email_address`,`web3wallet`,`first_name`,`last_name`,`phone_number`,`username`,`last_active_at`,`last_sign_in_at`. In order to specify the direction, you can use the `+/-` symbols prepended in the property to order by. For example, if you want users to be returned in descending order according to their `created_at` property, you can use `-created_at`. If you don't use `+` or `-`, then `+` is implied. We only support one `order_by` parameter, and if multiple `order_by` parameters are provided, we will only keep the first one. For example, if you pass `order_by=username&order_by=created_at`, we will consider only the first `order_by` parameter, which is `username`. The `created_at` parameter will be ignored in this case. (default to '-created_at')
|
769
777
|
# @return [Array<User>]
|
770
778
|
|
771
|
-
def
|
772
|
-
data, _status_code, _headers =
|
779
|
+
def get_user_list(opts = {})
|
780
|
+
data, _status_code, _headers = get_user_list_with_http_info(opts)
|
773
781
|
data
|
774
782
|
end
|
775
783
|
|
@@ -784,16 +792,44 @@ module ClerkHttpClient
|
|
784
792
|
# @option opts [Array<String>] :user_id Returns users with the user ids specified. For each user id, the `+` and `-` can be prepended to the id, which denote whether the respective user id should be included or excluded from the result set. Accepts up to 100 user ids. Any user ids not found are ignored.
|
785
793
|
# @option opts [Array<String>] :organization_id Returns users that have memberships to the given organizations. For each organization id, the `+` and `-` can be prepended to the id, which denote whether the respective organization should be included or excluded from the result set. Accepts up to 100 organization ids.
|
786
794
|
# @option opts [String] :query Returns users that match the given query. For possible matches, we check the email addresses, phone numbers, usernames, web3 wallets, user ids, first and last names. The query value doesn't need to match the exact value you are looking for, it is capable of partial matches as well.
|
787
|
-
# @option opts [
|
795
|
+
# @option opts [String] :email_address_query Returns users with emails that match the given query, via case-insensitive partial match. For example, `email_address_query=ello` will match a user with the email `HELLO@example.com`.
|
796
|
+
# @option opts [String] :phone_number_query Returns users with phone numbers that match the given query, via case-insensitive partial match. For example, `phone_number_query=555` will match a user with the phone number `+1555xxxxxxx`.
|
797
|
+
# @option opts [String] :username_query Returns users with usernames that match the given query, via case-insensitive partial match. For example, `username_query=CoolUser` will match a user with the username `SomeCoolUser`.
|
798
|
+
# @option opts [String] :name_query Returns users with names that match the given query, via case-insensitive partial match.
|
799
|
+
# @option opts [Integer] :last_active_at_before Returns users whose last session activity was before the given date (with millisecond precision). Example: use 1700690400000 to retrieve users whose last session activity was before 2023-11-23.
|
800
|
+
# @option opts [Integer] :last_active_at_after Returns users whose last session activity was after the given date (with millisecond precision). Example: use 1700690400000 to retrieve users whose last session activity was after 2023-11-23.
|
801
|
+
# @option opts [Integer] :last_active_at_since Returns users that had session activity since the given date. Example: use 1700690400000 to retrieve users that had session activity from 2023-11-23 until the current day. Deprecated in favor of `last_active_at_after`.
|
802
|
+
# @option opts [Integer] :created_at_before Returns users who have been created before the given date (with millisecond precision). Example: use 1730160000000 to retrieve users who have been created before 2024-10-29.
|
803
|
+
# @option opts [Integer] :created_at_after Returns users who have been created after the given date (with millisecond precision). Example: use 1730160000000 to retrieve users who have been created after 2024-10-29.
|
788
804
|
# @option opts [Float] :limit Applies a limit to the number of results returned. Can be used for paginating the results together with `offset`. (default to 10)
|
789
805
|
# @option opts [Float] :offset Skip the first `offset` results when paginating. Needs to be an integer greater or equal to zero. To be used in conjunction with `limit`. (default to 0)
|
790
806
|
# @option opts [String] :order_by Allows to return users in a particular order. At the moment, you can order the returned users by their `created_at`,`updated_at`,`email_address`,`web3wallet`,`first_name`,`last_name`,`phone_number`,`username`,`last_active_at`,`last_sign_in_at`. In order to specify the direction, you can use the `+/-` symbols prepended in the property to order by. For example, if you want users to be returned in descending order according to their `created_at` property, you can use `-created_at`. If you don't use `+` or `-`, then `+` is implied. We only support one `order_by` parameter, and if multiple `order_by` parameters are provided, we will only keep the first one. For example, if you pass `order_by=username&order_by=created_at`, we will consider only the first `order_by` parameter, which is `username`. The `created_at` parameter will be ignored in this case. (default to '-created_at')
|
791
807
|
# @return [Array<(Array<User>, Integer, Hash)>] Array<User> data, response status code and response headers
|
792
808
|
# GET array
|
793
|
-
def
|
809
|
+
def get_user_list_with_http_info(opts = {})
|
794
810
|
if @api_client.config.debugging
|
795
811
|
@api_client.config.logger.debug 'Calling API: UsersApi.get_user_list ...'
|
796
812
|
end
|
813
|
+
if @api_client.config.client_side_validation && !opts[:'query'].nil? && opts[:'query'].to_s.length < 3
|
814
|
+
fail ArgumentError, 'invalid value for "opts[:"query"]" when calling UsersApi.get_user_list, the character length must be great than or equal to 3.'
|
815
|
+
end
|
816
|
+
|
817
|
+
if @api_client.config.client_side_validation && !opts[:'email_address_query'].nil? && opts[:'email_address_query'].to_s.length < 3
|
818
|
+
fail ArgumentError, 'invalid value for "opts[:"email_address_query"]" when calling UsersApi.get_user_list, the character length must be great than or equal to 3.'
|
819
|
+
end
|
820
|
+
|
821
|
+
if @api_client.config.client_side_validation && !opts[:'phone_number_query'].nil? && opts[:'phone_number_query'].to_s.length < 3
|
822
|
+
fail ArgumentError, 'invalid value for "opts[:"phone_number_query"]" when calling UsersApi.get_user_list, the character length must be great than or equal to 3.'
|
823
|
+
end
|
824
|
+
|
825
|
+
if @api_client.config.client_side_validation && !opts[:'username_query'].nil? && opts[:'username_query'].to_s.length < 3
|
826
|
+
fail ArgumentError, 'invalid value for "opts[:"username_query"]" when calling UsersApi.get_user_list, the character length must be great than or equal to 3.'
|
827
|
+
end
|
828
|
+
|
829
|
+
if @api_client.config.client_side_validation && !opts[:'name_query'].nil? && opts[:'name_query'].to_s.length < 3
|
830
|
+
fail ArgumentError, 'invalid value for "opts[:"name_query"]" when calling UsersApi.get_user_list, the character length must be great than or equal to 3.'
|
831
|
+
end
|
832
|
+
|
797
833
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 500
|
798
834
|
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling UsersApi.get_user_list, must be smaller than or equal to 500.'
|
799
835
|
end
|
@@ -819,7 +855,15 @@ module ClerkHttpClient
|
|
819
855
|
query_params[:'user_id'] = @api_client.build_collection_param(opts[:'user_id'], :multi) if !opts[:'user_id'].nil?
|
820
856
|
query_params[:'organization_id'] = @api_client.build_collection_param(opts[:'organization_id'], :multi) if !opts[:'organization_id'].nil?
|
821
857
|
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
|
858
|
+
query_params[:'email_address_query'] = opts[:'email_address_query'] if !opts[:'email_address_query'].nil?
|
859
|
+
query_params[:'phone_number_query'] = opts[:'phone_number_query'] if !opts[:'phone_number_query'].nil?
|
860
|
+
query_params[:'username_query'] = opts[:'username_query'] if !opts[:'username_query'].nil?
|
861
|
+
query_params[:'name_query'] = opts[:'name_query'] if !opts[:'name_query'].nil?
|
862
|
+
query_params[:'last_active_at_before'] = opts[:'last_active_at_before'] if !opts[:'last_active_at_before'].nil?
|
863
|
+
query_params[:'last_active_at_after'] = opts[:'last_active_at_after'] if !opts[:'last_active_at_after'].nil?
|
822
864
|
query_params[:'last_active_at_since'] = opts[:'last_active_at_since'] if !opts[:'last_active_at_since'].nil?
|
865
|
+
query_params[:'created_at_before'] = opts[:'created_at_before'] if !opts[:'created_at_before'].nil?
|
866
|
+
query_params[:'created_at_after'] = opts[:'created_at_after'] if !opts[:'created_at_after'].nil?
|
823
867
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
824
868
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
825
869
|
query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil?
|
@@ -868,10 +912,13 @@ module ClerkHttpClient
|
|
868
912
|
# @option opts [Array<String>] :web3_wallet Counts users with the specified web3 wallet addresses. Accepts up to 100 web3 wallet addresses. Any web3 wallet addressed not found are ignored.
|
869
913
|
# @option opts [Array<String>] :user_id Counts users with the user ids specified. Accepts up to 100 user ids. Any user ids not found are ignored.
|
870
914
|
# @option opts [String] :query Counts users that match the given query. For possible matches, we check the email addresses, phone numbers, usernames, web3 wallets, user ids, first and last names. The query value doesn't need to match the exact value you are looking for, it is capable of partial matches as well.
|
915
|
+
# @option opts [String] :email_address_query Counts users with emails that match the given query, via case-insensitive partial match. For example, `email_address_query=ello` will match a user with the email `HELLO@example.com`, and will be included in the resulting count.
|
916
|
+
# @option opts [String] :phone_number_query Counts users with phone numbers that match the given query, via case-insensitive partial match. For example, `phone_number_query=555` will match a user with the phone number `+1555xxxxxxx`, and will be included in the resulting count.
|
917
|
+
# @option opts [String] :username_query Counts users with usernames that match the given query, via case-insensitive partial match. For example, `username_query=CoolUser` will match a user with the username `SomeCoolUser`, and will be included in the resulting count.
|
871
918
|
# @return [TotalCount]
|
872
919
|
|
873
|
-
def
|
874
|
-
data, _status_code, _headers =
|
920
|
+
def get_users_count(opts = {})
|
921
|
+
data, _status_code, _headers = get_users_count_with_http_info(opts)
|
875
922
|
data
|
876
923
|
end
|
877
924
|
|
@@ -885,12 +932,31 @@ module ClerkHttpClient
|
|
885
932
|
# @option opts [Array<String>] :web3_wallet Counts users with the specified web3 wallet addresses. Accepts up to 100 web3 wallet addresses. Any web3 wallet addressed not found are ignored.
|
886
933
|
# @option opts [Array<String>] :user_id Counts users with the user ids specified. Accepts up to 100 user ids. Any user ids not found are ignored.
|
887
934
|
# @option opts [String] :query Counts users that match the given query. For possible matches, we check the email addresses, phone numbers, usernames, web3 wallets, user ids, first and last names. The query value doesn't need to match the exact value you are looking for, it is capable of partial matches as well.
|
935
|
+
# @option opts [String] :email_address_query Counts users with emails that match the given query, via case-insensitive partial match. For example, `email_address_query=ello` will match a user with the email `HELLO@example.com`, and will be included in the resulting count.
|
936
|
+
# @option opts [String] :phone_number_query Counts users with phone numbers that match the given query, via case-insensitive partial match. For example, `phone_number_query=555` will match a user with the phone number `+1555xxxxxxx`, and will be included in the resulting count.
|
937
|
+
# @option opts [String] :username_query Counts users with usernames that match the given query, via case-insensitive partial match. For example, `username_query=CoolUser` will match a user with the username `SomeCoolUser`, and will be included in the resulting count.
|
888
938
|
# @return [Array<(TotalCount, Integer, Hash)>] TotalCount data, response status code and response headers
|
889
939
|
# GET
|
890
|
-
def
|
940
|
+
def get_users_count_with_http_info(opts = {})
|
891
941
|
if @api_client.config.debugging
|
892
942
|
@api_client.config.logger.debug 'Calling API: UsersApi.get_users_count ...'
|
893
943
|
end
|
944
|
+
if @api_client.config.client_side_validation && !opts[:'query'].nil? && opts[:'query'].to_s.length < 3
|
945
|
+
fail ArgumentError, 'invalid value for "opts[:"query"]" when calling UsersApi.get_users_count, the character length must be great than or equal to 3.'
|
946
|
+
end
|
947
|
+
|
948
|
+
if @api_client.config.client_side_validation && !opts[:'email_address_query'].nil? && opts[:'email_address_query'].to_s.length < 3
|
949
|
+
fail ArgumentError, 'invalid value for "opts[:"email_address_query"]" when calling UsersApi.get_users_count, the character length must be great than or equal to 3.'
|
950
|
+
end
|
951
|
+
|
952
|
+
if @api_client.config.client_side_validation && !opts[:'phone_number_query'].nil? && opts[:'phone_number_query'].to_s.length < 3
|
953
|
+
fail ArgumentError, 'invalid value for "opts[:"phone_number_query"]" when calling UsersApi.get_users_count, the character length must be great than or equal to 3.'
|
954
|
+
end
|
955
|
+
|
956
|
+
if @api_client.config.client_side_validation && !opts[:'username_query'].nil? && opts[:'username_query'].to_s.length < 3
|
957
|
+
fail ArgumentError, 'invalid value for "opts[:"username_query"]" when calling UsersApi.get_users_count, the character length must be great than or equal to 3.'
|
958
|
+
end
|
959
|
+
|
894
960
|
# resource path
|
895
961
|
local_var_path = '/users/count'
|
896
962
|
|
@@ -903,6 +969,9 @@ module ClerkHttpClient
|
|
903
969
|
query_params[:'web3_wallet'] = @api_client.build_collection_param(opts[:'web3_wallet'], :multi) if !opts[:'web3_wallet'].nil?
|
904
970
|
query_params[:'user_id'] = @api_client.build_collection_param(opts[:'user_id'], :multi) if !opts[:'user_id'].nil?
|
905
971
|
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
|
972
|
+
query_params[:'email_address_query'] = opts[:'email_address_query'] if !opts[:'email_address_query'].nil?
|
973
|
+
query_params[:'phone_number_query'] = opts[:'phone_number_query'] if !opts[:'phone_number_query'].nil?
|
974
|
+
query_params[:'username_query'] = opts[:'username_query'] if !opts[:'username_query'].nil?
|
906
975
|
|
907
976
|
# header parameters
|
908
977
|
header_params = opts[:header_params] || {}
|
@@ -944,8 +1013,8 @@ module ClerkHttpClient
|
|
944
1013
|
# @param [Hash] opts the optional parameters
|
945
1014
|
# @return [User]
|
946
1015
|
|
947
|
-
def
|
948
|
-
data, _status_code, _headers =
|
1016
|
+
def lock_user(user_id, opts = {})
|
1017
|
+
data, _status_code, _headers = lock_user_with_http_info(user_id, opts)
|
949
1018
|
data
|
950
1019
|
end
|
951
1020
|
|
@@ -955,7 +1024,7 @@ module ClerkHttpClient
|
|
955
1024
|
# @param [Hash] opts the optional parameters
|
956
1025
|
# @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
|
957
1026
|
# POST
|
958
|
-
def
|
1027
|
+
def lock_user_with_http_info(user_id, opts = {})
|
959
1028
|
if @api_client.config.debugging
|
960
1029
|
@api_client.config.logger.debug 'Calling API: UsersApi.lock_user ...'
|
961
1030
|
end
|
@@ -1010,8 +1079,8 @@ module ClerkHttpClient
|
|
1010
1079
|
# @option opts [File] :file
|
1011
1080
|
# @return [User]
|
1012
1081
|
|
1013
|
-
def
|
1014
|
-
data, _status_code, _headers =
|
1082
|
+
def set_user_profile_image(user_id, opts = {})
|
1083
|
+
data, _status_code, _headers = set_user_profile_image_with_http_info(user_id, opts)
|
1015
1084
|
data
|
1016
1085
|
end
|
1017
1086
|
|
@@ -1022,7 +1091,7 @@ module ClerkHttpClient
|
|
1022
1091
|
# @option opts [File] :file
|
1023
1092
|
# @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
|
1024
1093
|
# POST
|
1025
|
-
def
|
1094
|
+
def set_user_profile_image_with_http_info(user_id, opts = {})
|
1026
1095
|
if @api_client.config.debugging
|
1027
1096
|
@api_client.config.logger.debug 'Calling API: UsersApi.set_user_profile_image ...'
|
1028
1097
|
end
|
@@ -1082,8 +1151,8 @@ module ClerkHttpClient
|
|
1082
1151
|
# @param [Hash] opts the optional parameters
|
1083
1152
|
# @return [User]
|
1084
1153
|
|
1085
|
-
def
|
1086
|
-
data, _status_code, _headers =
|
1154
|
+
def unban_user(user_id, opts = {})
|
1155
|
+
data, _status_code, _headers = unban_user_with_http_info(user_id, opts)
|
1087
1156
|
data
|
1088
1157
|
end
|
1089
1158
|
|
@@ -1093,7 +1162,7 @@ module ClerkHttpClient
|
|
1093
1162
|
# @param [Hash] opts the optional parameters
|
1094
1163
|
# @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
|
1095
1164
|
# POST
|
1096
|
-
def
|
1165
|
+
def unban_user_with_http_info(user_id, opts = {})
|
1097
1166
|
if @api_client.config.debugging
|
1098
1167
|
@api_client.config.logger.debug 'Calling API: UsersApi.unban_user ...'
|
1099
1168
|
end
|
@@ -1147,8 +1216,8 @@ module ClerkHttpClient
|
|
1147
1216
|
# @param [Hash] opts the optional parameters
|
1148
1217
|
# @return [User]
|
1149
1218
|
|
1150
|
-
def
|
1151
|
-
data, _status_code, _headers =
|
1219
|
+
def unlock_user(user_id, opts = {})
|
1220
|
+
data, _status_code, _headers = unlock_user_with_http_info(user_id, opts)
|
1152
1221
|
data
|
1153
1222
|
end
|
1154
1223
|
|
@@ -1158,7 +1227,7 @@ module ClerkHttpClient
|
|
1158
1227
|
# @param [Hash] opts the optional parameters
|
1159
1228
|
# @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
|
1160
1229
|
# POST
|
1161
|
-
def
|
1230
|
+
def unlock_user_with_http_info(user_id, opts = {})
|
1162
1231
|
if @api_client.config.debugging
|
1163
1232
|
@api_client.config.logger.debug 'Calling API: UsersApi.unlock_user ...'
|
1164
1233
|
end
|
@@ -1213,8 +1282,8 @@ module ClerkHttpClient
|
|
1213
1282
|
# @param [Hash] opts the optional parameters
|
1214
1283
|
# @return [User]
|
1215
1284
|
|
1216
|
-
def
|
1217
|
-
data, _status_code, _headers =
|
1285
|
+
def update_user(user_id, update_user_request, opts = {})
|
1286
|
+
data, _status_code, _headers = update_user_with_http_info(user_id, update_user_request, opts)
|
1218
1287
|
data
|
1219
1288
|
end
|
1220
1289
|
|
@@ -1225,7 +1294,7 @@ module ClerkHttpClient
|
|
1225
1294
|
# @param [Hash] opts the optional parameters
|
1226
1295
|
# @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
|
1227
1296
|
# PATCH
|
1228
|
-
def
|
1297
|
+
def update_user_with_http_info(user_id, update_user_request, opts = {})
|
1229
1298
|
if @api_client.config.debugging
|
1230
1299
|
@api_client.config.logger.debug 'Calling API: UsersApi.update_user ...'
|
1231
1300
|
end
|
@@ -1285,23 +1354,23 @@ module ClerkHttpClient
|
|
1285
1354
|
# Merge and update a user's metadata
|
1286
1355
|
# Update a user's metadata attributes by merging existing values with the provided parameters. This endpoint behaves differently than the *Update a user* endpoint. Metadata values will not be replaced entirely. Instead, a deep merge will be performed. Deep means that any nested JSON objects will be merged as well. You can remove metadata keys at any level by setting their value to `null`.
|
1287
1356
|
# @param user_id [String] The ID of the user whose metadata will be updated and merged
|
1288
|
-
# @param update_user_metadata_request [UpdateUserMetadataRequest]
|
1289
1357
|
# @param [Hash] opts the optional parameters
|
1358
|
+
# @option opts [UpdateUserMetadataRequest] :update_user_metadata_request
|
1290
1359
|
# @return [User]
|
1291
1360
|
|
1292
|
-
def
|
1293
|
-
data, _status_code, _headers =
|
1361
|
+
def update_user_metadata(user_id, opts = {})
|
1362
|
+
data, _status_code, _headers = update_user_metadata_with_http_info(user_id, opts)
|
1294
1363
|
data
|
1295
1364
|
end
|
1296
1365
|
|
1297
1366
|
# Merge and update a user's metadata
|
1298
1367
|
# Update a user's metadata attributes by merging existing values with the provided parameters. This endpoint behaves differently than the *Update a user* endpoint. Metadata values will not be replaced entirely. Instead, a deep merge will be performed. Deep means that any nested JSON objects will be merged as well. You can remove metadata keys at any level by setting their value to `null`.
|
1299
1368
|
# @param user_id [String] The ID of the user whose metadata will be updated and merged
|
1300
|
-
# @param update_user_metadata_request [UpdateUserMetadataRequest]
|
1301
1369
|
# @param [Hash] opts the optional parameters
|
1370
|
+
# @option opts [UpdateUserMetadataRequest] :update_user_metadata_request
|
1302
1371
|
# @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
|
1303
1372
|
# PATCH
|
1304
|
-
def
|
1373
|
+
def update_user_metadata_with_http_info(user_id, opts = {})
|
1305
1374
|
if @api_client.config.debugging
|
1306
1375
|
@api_client.config.logger.debug 'Calling API: UsersApi.update_user_metadata ...'
|
1307
1376
|
end
|
@@ -1309,10 +1378,6 @@ module ClerkHttpClient
|
|
1309
1378
|
if @api_client.config.client_side_validation && user_id.nil?
|
1310
1379
|
fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.update_user_metadata"
|
1311
1380
|
end
|
1312
|
-
# verify the required parameter 'update_user_metadata_request' is set
|
1313
|
-
if @api_client.config.client_side_validation && update_user_metadata_request.nil?
|
1314
|
-
fail ArgumentError, "Missing the required parameter 'update_user_metadata_request' when calling UsersApi.update_user_metadata"
|
1315
|
-
end
|
1316
1381
|
# resource path
|
1317
1382
|
local_var_path = '/users/{user_id}/metadata'.sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
1318
1383
|
|
@@ -1333,7 +1398,7 @@ module ClerkHttpClient
|
|
1333
1398
|
form_params = opts[:form_params] || {}
|
1334
1399
|
|
1335
1400
|
# http body (model)
|
1336
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_user_metadata_request)
|
1401
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_user_metadata_request'])
|
1337
1402
|
|
1338
1403
|
# return_type
|
1339
1404
|
return_type = opts[:debug_return_type] || 'User'
|
@@ -1365,8 +1430,8 @@ module ClerkHttpClient
|
|
1365
1430
|
# @param [Hash] opts the optional parameters
|
1366
1431
|
# @return [DeletedObject]
|
1367
1432
|
|
1368
|
-
def
|
1369
|
-
data, _status_code, _headers =
|
1433
|
+
def user_passkey_delete(user_id, passkey_identification_id, opts = {})
|
1434
|
+
data, _status_code, _headers = user_passkey_delete_with_http_info(user_id, passkey_identification_id, opts)
|
1370
1435
|
data
|
1371
1436
|
end
|
1372
1437
|
|
@@ -1377,7 +1442,7 @@ module ClerkHttpClient
|
|
1377
1442
|
# @param [Hash] opts the optional parameters
|
1378
1443
|
# @return [Array<(DeletedObject, Integer, Hash)>] DeletedObject data, response status code and response headers
|
1379
1444
|
# DELETE
|
1380
|
-
def
|
1445
|
+
def user_passkey_delete_with_http_info(user_id, passkey_identification_id, opts = {})
|
1381
1446
|
if @api_client.config.debugging
|
1382
1447
|
@api_client.config.logger.debug 'Calling API: UsersApi.user_passkey_delete ...'
|
1383
1448
|
end
|
@@ -1436,8 +1501,8 @@ module ClerkHttpClient
|
|
1436
1501
|
# @param [Hash] opts the optional parameters
|
1437
1502
|
# @return [DeletedObject]
|
1438
1503
|
|
1439
|
-
def
|
1440
|
-
data, _status_code, _headers =
|
1504
|
+
def user_web3_wallet_delete(user_id, web3_wallet_identification_id, opts = {})
|
1505
|
+
data, _status_code, _headers = user_web3_wallet_delete_with_http_info(user_id, web3_wallet_identification_id, opts)
|
1441
1506
|
data
|
1442
1507
|
end
|
1443
1508
|
|
@@ -1448,7 +1513,7 @@ module ClerkHttpClient
|
|
1448
1513
|
# @param [Hash] opts the optional parameters
|
1449
1514
|
# @return [Array<(DeletedObject, Integer, Hash)>] DeletedObject data, response status code and response headers
|
1450
1515
|
# DELETE
|
1451
|
-
def
|
1516
|
+
def user_web3_wallet_delete_with_http_info(user_id, web3_wallet_identification_id, opts = {})
|
1452
1517
|
if @api_client.config.debugging
|
1453
1518
|
@api_client.config.logger.debug 'Calling API: UsersApi.user_web3_wallet_delete ...'
|
1454
1519
|
end
|
@@ -1509,8 +1574,8 @@ module ClerkHttpClient
|
|
1509
1574
|
# @option opts [String] :status Filter organization invitations based on their status
|
1510
1575
|
# @return [OrganizationInvitationsWithPublicOrganizationData]
|
1511
1576
|
|
1512
|
-
def
|
1513
|
-
data, _status_code, _headers =
|
1577
|
+
def users_get_organization_invitations(user_id, opts = {})
|
1578
|
+
data, _status_code, _headers = users_get_organization_invitations_with_http_info(user_id, opts)
|
1514
1579
|
data
|
1515
1580
|
end
|
1516
1581
|
|
@@ -1523,7 +1588,7 @@ module ClerkHttpClient
|
|
1523
1588
|
# @option opts [String] :status Filter organization invitations based on their status
|
1524
1589
|
# @return [Array<(OrganizationInvitationsWithPublicOrganizationData, Integer, Hash)>] OrganizationInvitationsWithPublicOrganizationData data, response status code and response headers
|
1525
1590
|
# GET
|
1526
|
-
def
|
1591
|
+
def users_get_organization_invitations_with_http_info(user_id, opts = {})
|
1527
1592
|
if @api_client.config.debugging
|
1528
1593
|
@api_client.config.logger.debug 'Calling API: UsersApi.users_get_organization_invitations ...'
|
1529
1594
|
end
|
@@ -1598,8 +1663,8 @@ module ClerkHttpClient
|
|
1598
1663
|
# @option opts [Float] :offset Skip the first `offset` results when paginating. Needs to be an integer greater or equal to zero. To be used in conjunction with `limit`. (default to 0)
|
1599
1664
|
# @return [OrganizationMemberships]
|
1600
1665
|
|
1601
|
-
def
|
1602
|
-
data, _status_code, _headers =
|
1666
|
+
def users_get_organization_memberships(user_id, opts = {})
|
1667
|
+
data, _status_code, _headers = users_get_organization_memberships_with_http_info(user_id, opts)
|
1603
1668
|
data
|
1604
1669
|
end
|
1605
1670
|
|
@@ -1611,7 +1676,7 @@ module ClerkHttpClient
|
|
1611
1676
|
# @option opts [Float] :offset Skip the first `offset` results when paginating. Needs to be an integer greater or equal to zero. To be used in conjunction with `limit`. (default to 0)
|
1612
1677
|
# @return [Array<(OrganizationMemberships, Integer, Hash)>] OrganizationMemberships data, response status code and response headers
|
1613
1678
|
# GET
|
1614
|
-
def
|
1679
|
+
def users_get_organization_memberships_with_http_info(user_id, opts = {})
|
1615
1680
|
if @api_client.config.debugging
|
1616
1681
|
@api_client.config.logger.debug 'Calling API: UsersApi.users_get_organization_memberships ...'
|
1617
1682
|
end
|
@@ -1676,23 +1741,23 @@ module ClerkHttpClient
|
|
1676
1741
|
# Verify the password of a user
|
1677
1742
|
# Check that the user's password matches the supplied input. Useful for custom auth flows and re-verification.
|
1678
1743
|
# @param user_id [String] The ID of the user for whom to verify the password
|
1679
|
-
# @param verify_password_request [VerifyPasswordRequest]
|
1680
1744
|
# @param [Hash] opts the optional parameters
|
1745
|
+
# @option opts [VerifyPasswordRequest] :verify_password_request
|
1681
1746
|
# @return [VerifyPassword200Response]
|
1682
1747
|
|
1683
|
-
def verify_password(user_id,
|
1684
|
-
data, _status_code, _headers = verify_password_with_http_info(user_id,
|
1748
|
+
def verify_password(user_id, opts = {})
|
1749
|
+
data, _status_code, _headers = verify_password_with_http_info(user_id, opts)
|
1685
1750
|
data
|
1686
1751
|
end
|
1687
1752
|
|
1688
1753
|
# Verify the password of a user
|
1689
1754
|
# Check that the user's password matches the supplied input. Useful for custom auth flows and re-verification.
|
1690
1755
|
# @param user_id [String] The ID of the user for whom to verify the password
|
1691
|
-
# @param verify_password_request [VerifyPasswordRequest]
|
1692
1756
|
# @param [Hash] opts the optional parameters
|
1757
|
+
# @option opts [VerifyPasswordRequest] :verify_password_request
|
1693
1758
|
# @return [Array<(VerifyPassword200Response, Integer, Hash)>] VerifyPassword200Response data, response status code and response headers
|
1694
1759
|
# POST
|
1695
|
-
def verify_password_with_http_info(user_id,
|
1760
|
+
def verify_password_with_http_info(user_id, opts = {})
|
1696
1761
|
if @api_client.config.debugging
|
1697
1762
|
@api_client.config.logger.debug 'Calling API: UsersApi.verify_password ...'
|
1698
1763
|
end
|
@@ -1700,10 +1765,6 @@ module ClerkHttpClient
|
|
1700
1765
|
if @api_client.config.client_side_validation && user_id.nil?
|
1701
1766
|
fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.verify_password"
|
1702
1767
|
end
|
1703
|
-
# verify the required parameter 'verify_password_request' is set
|
1704
|
-
if @api_client.config.client_side_validation && verify_password_request.nil?
|
1705
|
-
fail ArgumentError, "Missing the required parameter 'verify_password_request' when calling UsersApi.verify_password"
|
1706
|
-
end
|
1707
1768
|
# resource path
|
1708
1769
|
local_var_path = '/users/{user_id}/verify_password'.sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
1709
1770
|
|
@@ -1724,7 +1785,7 @@ module ClerkHttpClient
|
|
1724
1785
|
form_params = opts[:form_params] || {}
|
1725
1786
|
|
1726
1787
|
# http body (model)
|
1727
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(verify_password_request)
|
1788
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'verify_password_request'])
|
1728
1789
|
|
1729
1790
|
# return_type
|
1730
1791
|
return_type = opts[:debug_return_type] || 'VerifyPassword200Response'
|
@@ -1752,23 +1813,23 @@ module ClerkHttpClient
|
|
1752
1813
|
# Verify a TOTP or backup code for a user
|
1753
1814
|
# Verify that the provided TOTP or backup code is valid for the user. Verifying a backup code will result it in being consumed (i.e. it will become invalid). Useful for custom auth flows and re-verification.
|
1754
1815
|
# @param user_id [String] The ID of the user for whom to verify the TOTP
|
1755
|
-
# @param verify_totp_request [VerifyTOTPRequest]
|
1756
1816
|
# @param [Hash] opts the optional parameters
|
1817
|
+
# @option opts [VerifyTOTPRequest] :verify_totp_request
|
1757
1818
|
# @return [VerifyTOTP200Response]
|
1758
1819
|
|
1759
|
-
def verify_totp(user_id,
|
1760
|
-
data, _status_code, _headers = verify_totp_with_http_info(user_id,
|
1820
|
+
def verify_totp(user_id, opts = {})
|
1821
|
+
data, _status_code, _headers = verify_totp_with_http_info(user_id, opts)
|
1761
1822
|
data
|
1762
1823
|
end
|
1763
1824
|
|
1764
1825
|
# Verify a TOTP or backup code for a user
|
1765
1826
|
# Verify that the provided TOTP or backup code is valid for the user. Verifying a backup code will result it in being consumed (i.e. it will become invalid). Useful for custom auth flows and re-verification.
|
1766
1827
|
# @param user_id [String] The ID of the user for whom to verify the TOTP
|
1767
|
-
# @param verify_totp_request [VerifyTOTPRequest]
|
1768
1828
|
# @param [Hash] opts the optional parameters
|
1829
|
+
# @option opts [VerifyTOTPRequest] :verify_totp_request
|
1769
1830
|
# @return [Array<(VerifyTOTP200Response, Integer, Hash)>] VerifyTOTP200Response data, response status code and response headers
|
1770
1831
|
# POST
|
1771
|
-
def verify_totp_with_http_info(user_id,
|
1832
|
+
def verify_totp_with_http_info(user_id, opts = {})
|
1772
1833
|
if @api_client.config.debugging
|
1773
1834
|
@api_client.config.logger.debug 'Calling API: UsersApi.verify_totp ...'
|
1774
1835
|
end
|
@@ -1776,10 +1837,6 @@ module ClerkHttpClient
|
|
1776
1837
|
if @api_client.config.client_side_validation && user_id.nil?
|
1777
1838
|
fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.verify_totp"
|
1778
1839
|
end
|
1779
|
-
# verify the required parameter 'verify_totp_request' is set
|
1780
|
-
if @api_client.config.client_side_validation && verify_totp_request.nil?
|
1781
|
-
fail ArgumentError, "Missing the required parameter 'verify_totp_request' when calling UsersApi.verify_totp"
|
1782
|
-
end
|
1783
1840
|
# resource path
|
1784
1841
|
local_var_path = '/users/{user_id}/verify_totp'.sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
1785
1842
|
|
@@ -1800,7 +1857,7 @@ module ClerkHttpClient
|
|
1800
1857
|
form_params = opts[:form_params] || {}
|
1801
1858
|
|
1802
1859
|
# http body (model)
|
1803
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(verify_totp_request)
|
1860
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'verify_totp_request'])
|
1804
1861
|
|
1805
1862
|
# return_type
|
1806
1863
|
return_type = opts[:debug_return_type] || 'VerifyTOTP200Response'
|