clerk-http-client 1.0.0 → 2.0.0.beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +155 -191
- data/clerk-http-client.gemspec +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 +1 -1
- data/lib/clerk-http-client/models/add_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/admin.rb +1 -1
- data/lib/clerk-http-client/models/allowlist_identifier.rb +1 -1
- data/lib/clerk-http-client/models/blocklist_identifier.rb +1 -1
- data/lib/clerk-http-client/models/blocklist_identifiers.rb +1 -1
- data/lib/clerk-http-client/models/change_production_instance_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/clerk_error.rb +1 -1
- data/lib/clerk-http-client/models/clerk_errors.rb +1 -1
- data/lib/clerk-http-client/models/client.rb +1 -1
- data/lib/clerk-http-client/models/{c_name_target.rb → cname_target.rb} +1 -1
- data/lib/clerk-http-client/models/create_actor_token_request.rb +1 -1
- data/lib/clerk-http-client/models/create_allowlist_identifier_request.rb +1 -1
- data/lib/clerk-http-client/models/create_blocklist_identifier_request.rb +1 -1
- data/lib/clerk-http-client/models/create_bulk_invitations_request_inner.rb +305 -0
- data/lib/clerk-http-client/models/create_email_address_request.rb +1 -1
- data/lib/clerk-http-client/models/create_invitation_request.rb +57 -10
- data/lib/clerk-http-client/models/create_jwt_template_request.rb +1 -1
- data/lib/clerk-http-client/models/{create_o_auth_application_request.rb → create_oauth_application_request.rb} +1 -8
- data/lib/clerk-http-client/models/create_organization_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/create_organization_invitation_bulk_request_inner.rb +11 -7
- data/lib/clerk-http-client/models/create_organization_invitation_request.rb +50 -11
- data/lib/clerk-http-client/models/create_organization_membership_request.rb +1 -1
- data/lib/clerk-http-client/models/create_organization_request.rb +9 -12
- data/lib/clerk-http-client/models/create_phone_number_request.rb +1 -1
- data/lib/clerk-http-client/models/create_redirect_url_request.rb +1 -1
- data/lib/clerk-http-client/models/create_saml_connection_request.rb +13 -2
- data/lib/clerk-http-client/models/create_saml_connection_request_attribute_mapping.rb +1 -1
- data/lib/clerk-http-client/models/create_session_request.rb +215 -0
- data/lib/clerk-http-client/models/create_session_token200_response.rb +257 -0
- data/lib/clerk-http-client/models/create_session_token_from_template_request.rb +240 -0
- data/lib/clerk-http-client/models/create_session_token_request.rb +240 -0
- data/lib/clerk-http-client/models/create_sign_in_token_request.rb +1 -1
- data/lib/clerk-http-client/models/create_user_request.rb +13 -7
- data/lib/clerk-http-client/models/create_waitlist_entry_request.rb +232 -0
- data/lib/clerk-http-client/models/deleted_object.rb +1 -1
- data/lib/clerk-http-client/models/disable_mfa200_response.rb +1 -1
- data/lib/clerk-http-client/models/domain.rb +1 -1
- data/lib/clerk-http-client/models/domains.rb +1 -1
- data/lib/clerk-http-client/models/email_address.rb +12 -2
- data/lib/clerk-http-client/models/email_address_verification.rb +3 -3
- data/lib/clerk-http-client/models/from_o_auth.rb +324 -0
- data/{resources/templates/partial_anyof_module.mustache → lib/clerk-http-client/models/from_o_auth_error.rb} +29 -19
- data/lib/clerk-http-client/models/from_oauth.rb +324 -0
- data/{resources/templates/partial_oneof_module.mustache → lib/clerk-http-client/models/from_oauth_error.rb} +21 -54
- data/lib/clerk-http-client/models/{get_o_auth_access_token200_response_inner.rb → get_oauth_access_token200_response_inner.rb} +20 -7
- data/lib/clerk-http-client/models/identification_link.rb +3 -3
- data/lib/clerk-http-client/models/instance.rb +279 -0
- data/lib/clerk-http-client/models/instance_restrictions.rb +1 -1
- data/lib/clerk-http-client/models/invitation.rb +5 -3
- data/lib/clerk-http-client/models/jwks.rb +216 -0
- data/lib/clerk-http-client/models/jwks_keys_inner.rb +277 -0
- data/lib/clerk-http-client/models/jwt_template.rb +1 -1
- data/lib/clerk-http-client/models/list_waitlist_entries200_response.rb +240 -0
- data/lib/clerk-http-client/models/merge_organization_metadata_request.rb +9 -5
- data/lib/clerk-http-client/models/o_auth_application.rb +34 -2
- data/lib/clerk-http-client/models/o_auth_application_with_secret.rb +34 -2
- data/lib/clerk-http-client/models/o_auth_applications.rb +1 -1
- data/lib/clerk-http-client/models/oauth.rb +2 -2
- data/lib/clerk-http-client/models/oauth_application.rb +481 -0
- data/lib/clerk-http-client/models/oauth_application_with_secret.rb +498 -0
- data/lib/clerk-http-client/models/oauth_applications.rb +240 -0
- data/lib/clerk-http-client/models/organization.rb +10 -5
- data/lib/clerk-http-client/models/organization_domain.rb +1 -1
- data/lib/clerk-http-client/models/organization_domain_verification.rb +1 -1
- data/lib/clerk-http-client/models/organization_domains.rb +1 -1
- data/lib/clerk-http-client/models/organization_invitation.rb +31 -6
- data/lib/clerk-http-client/models/organization_invitation_with_public_organization_data.rb +20 -6
- data/lib/clerk-http-client/models/organization_invitation_with_public_organization_data_public_organization_data.rb +1 -1
- data/lib/clerk-http-client/models/organization_invitations.rb +1 -1
- data/lib/clerk-http-client/models/organization_invitations_with_public_organization_data.rb +1 -1
- data/lib/clerk-http-client/models/organization_membership.rb +9 -5
- data/lib/clerk-http-client/models/organization_membership_public_user_data.rb +1 -1
- data/lib/clerk-http-client/models/organization_memberships.rb +1 -1
- data/lib/clerk-http-client/models/organization_settings.rb +1 -1
- data/lib/clerk-http-client/models/organization_with_logo.rb +10 -5
- data/lib/clerk-http-client/models/organizations.rb +1 -1
- data/lib/clerk-http-client/models/otp.rb +1 -1
- data/lib/clerk-http-client/models/passkey.rb +1 -1
- data/lib/clerk-http-client/models/phone_number.rb +1 -1
- data/lib/clerk-http-client/models/phone_number_verification.rb +1 -1
- data/lib/clerk-http-client/models/preview_template_request.rb +1 -1
- data/lib/clerk-http-client/models/proxy_check.rb +1 -1
- data/lib/clerk-http-client/models/redirect_url.rb +1 -1
- data/lib/clerk-http-client/models/revoke_invitation200_response.rb +5 -3
- data/lib/clerk-http-client/models/revoke_organization_invitation_request.rb +1 -1
- data/lib/clerk-http-client/models/saml.rb +2 -2
- data/lib/clerk-http-client/models/saml_account.rb +5 -3
- data/lib/clerk-http-client/models/saml_account_saml_connection.rb +1 -1
- data/lib/clerk-http-client/models/saml_account_verification.rb +1 -1
- data/lib/clerk-http-client/models/saml_connection.rb +1 -1
- data/lib/clerk-http-client/models/saml_connections.rb +1 -1
- data/lib/clerk-http-client/models/schemas_passkey.rb +1 -1
- data/lib/clerk-http-client/models/schemas_passkey_verification.rb +1 -1
- data/lib/clerk-http-client/models/schemas_saml_connection.rb +12 -2
- data/lib/clerk-http-client/models/schemas_saml_connection_attribute_mapping.rb +1 -1
- data/lib/clerk-http-client/models/session.rb +1 -1
- data/lib/clerk-http-client/models/session_latest_activity.rb +1 -1
- data/lib/clerk-http-client/models/sign_in_token.rb +1 -1
- data/lib/clerk-http-client/models/sign_up.rb +21 -6
- data/lib/clerk-http-client/models/svix_url.rb +1 -1
- data/lib/clerk-http-client/models/template.rb +1 -1
- data/lib/clerk-http-client/models/testing_token.rb +1 -1
- data/lib/clerk-http-client/models/ticket.rb +1 -1
- data/lib/clerk-http-client/models/toggle_template_delivery_request.rb +1 -1
- data/lib/clerk-http-client/models/total_count.rb +1 -1
- data/lib/clerk-http-client/models/totp.rb +1 -1
- data/lib/clerk-http-client/models/update_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/update_email_address_request.rb +1 -1
- data/lib/clerk-http-client/models/update_instance_auth_config200_response.rb +1 -1
- data/lib/clerk-http-client/models/update_instance_auth_config_request.rb +1 -1
- data/lib/clerk-http-client/models/update_instance_organization_settings_request.rb +1 -1
- data/lib/clerk-http-client/models/update_instance_request.rb +1 -1
- data/lib/clerk-http-client/models/update_instance_restrictions_request.rb +1 -1
- data/lib/clerk-http-client/models/{update_o_auth_application_request.rb → update_oauth_application_request.rb} +1 -1
- data/lib/clerk-http-client/models/update_organization_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/update_organization_membership_metadata_request.rb +9 -5
- data/lib/clerk-http-client/models/update_organization_membership_request.rb +1 -1
- data/lib/clerk-http-client/models/update_organization_request.rb +9 -5
- data/lib/clerk-http-client/models/update_phone_number_request.rb +1 -1
- data/lib/clerk-http-client/models/update_production_instance_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/update_saml_connection_request.rb +13 -2
- data/lib/clerk-http-client/models/update_saml_connection_request_attribute_mapping.rb +1 -1
- data/lib/clerk-http-client/models/update_sign_up_request.rb +1 -1
- data/lib/clerk-http-client/models/update_user_metadata_request.rb +1 -1
- data/lib/clerk-http-client/models/update_user_request.rb +13 -7
- data/lib/clerk-http-client/models/upsert_template_request.rb +1 -1
- data/lib/clerk-http-client/models/user.rb +13 -7
- data/lib/clerk-http-client/models/verify_client_request.rb +1 -1
- data/lib/clerk-http-client/models/verify_domain_proxy_request.rb +1 -1
- data/lib/clerk-http-client/models/verify_password200_response.rb +1 -1
- data/lib/clerk-http-client/models/verify_password_request.rb +1 -1
- data/lib/clerk-http-client/models/verify_session_request.rb +1 -1
- data/lib/clerk-http-client/models/verify_totp200_response.rb +1 -1
- data/lib/clerk-http-client/models/verify_totp_request.rb +1 -1
- data/lib/clerk-http-client/models/waitlist_entry.rb +369 -0
- data/lib/clerk-http-client/models/waitlist_entry_invitation.rb +397 -0
- data/lib/clerk-http-client/models/web3_signature.rb +3 -3
- data/lib/clerk-http-client/models/web3_wallet.rb +1 -1
- data/lib/clerk-http-client/models/web3_wallet_verification.rb +1 -1
- data/lib/clerk-http-client/version.rb +1 -1
- data/lib/clerk-http-client.rb +54 -59
- data/spec/api/actor_tokens_api_spec.rb +1 -1
- data/spec/api/allow_list_block_list_api_spec.rb +2 -2
- data/spec/api/beta_features_api_spec.rb +2 -2
- data/spec/api/clients_api_spec.rb +1 -1
- data/spec/api/domains_api_spec.rb +1 -1
- data/spec/api/email_addresses_api_spec.rb +2 -2
- data/spec/api/instance_settings_api_spec.rb +3 -3
- data/spec/api/invitations_api_spec.rb +1 -1
- data/spec/api/jwt_templates_api_spec.rb +2 -2
- data/spec/api/{o_auth_applications_api_spec.rb → oauth_applications_api_spec.rb} +15 -15
- data/spec/api/organizations_api_spec.rb +1 -1
- data/spec/api/phone_numbers_api_spec.rb +2 -2
- data/spec/api/proxy_checks_api_spec.rb +1 -1
- data/spec/api/redirect_urls_api_spec.rb +1 -1
- data/spec/api/saml_connections_api_spec.rb +1 -1
- data/spec/api/sign_in_tokens_api_spec.rb +1 -1
- data/spec/api/sign_ups_api_spec.rb +1 -1
- data/spec/api/users_api_spec.rb +3 -3
- data/spec/api/waitlist_entries_api_spec.rb +63 -0
- data/spec/models/cname_target_spec.rb +48 -0
- data/spec/models/create_bulk_invitations_request_inner_spec.rb +66 -0
- data/spec/models/create_oauth_application_request_spec.rb +54 -0
- data/spec/models/create_session_request_spec.rb +36 -0
- data/spec/models/create_session_token200_response_spec.rb +46 -0
- data/spec/models/create_session_token_from_template_request_spec.rb +36 -0
- data/spec/models/create_session_token_request_spec.rb +36 -0
- data/spec/models/create_waitlist_entry_request_spec.rb +42 -0
- data/spec/models/from_o_auth_error_spec.rb +32 -0
- data/spec/models/from_o_auth_spec.rb +64 -0
- data/spec/models/from_oauth_error_spec.rb +32 -0
- data/spec/models/from_oauth_spec.rb +64 -0
- data/spec/models/get_oauth_access_token200_response_inner_spec.rb +90 -0
- data/spec/models/identification_link_spec.rb +1 -1
- data/spec/models/instance_spec.rb +58 -0
- data/spec/models/jwks_keys_inner_spec.rb +78 -0
- data/spec/models/jwks_spec.rb +36 -0
- data/spec/models/list_waitlist_entries200_response_spec.rb +42 -0
- data/spec/models/oauth_application_spec.rb +124 -0
- data/spec/models/oauth_application_with_secret_spec.rb +130 -0
- data/spec/models/oauth_applications_spec.rb +42 -0
- data/spec/models/oauth_spec.rb +1 -1
- data/spec/models/update_oauth_application_request_spec.rb +48 -0
- data/spec/models/waitlist_entry_invitation_spec.rb +98 -0
- data/spec/models/waitlist_entry_spec.rb +86 -0
- data/spec/spec_helper.rb +1 -1
- metadata +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
@@ -0,0 +1,157 @@
|
|
1
|
+
# ClerkHttpClient::WaitlistEntriesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.clerk.com/v1*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create_waitlist_entry**](WaitlistEntriesApi.md#create_waitlist_entry) | **POST** /waitlist_entries | Create a waitlist entry |
|
8
|
+
| [**list_waitlist_entries**](WaitlistEntriesApi.md#list_waitlist_entries) | **GET** /waitlist_entries | List all waitlist entries |
|
9
|
+
|
10
|
+
|
11
|
+
## create_waitlist_entry
|
12
|
+
|
13
|
+
> <WaitlistEntry> create_waitlist_entry(opts)
|
14
|
+
|
15
|
+
Create a waitlist entry
|
16
|
+
|
17
|
+
Creates a new waitlist entry for the given email address. If the email address is already on the waitlist, no new entry will be created and the existing waitlist entry will be returned.
|
18
|
+
|
19
|
+
### Examples
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'time'
|
23
|
+
require 'clerk'
|
24
|
+
|
25
|
+
## Setup
|
26
|
+
Clerk.configure do |config|
|
27
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
28
|
+
end
|
29
|
+
|
30
|
+
opts = {
|
31
|
+
create_waitlist_entry_request: ClerkHttpClient::CreateWaitlistEntryRequest.new({email_address: 'email_address_example'}) # CreateWaitlistEntryRequest |
|
32
|
+
}
|
33
|
+
|
34
|
+
begin
|
35
|
+
# Create a waitlist entry
|
36
|
+
result = Clerk::SDK.waitlist_entries.create_waitlist_entry(opts)
|
37
|
+
p result
|
38
|
+
rescue ClerkHttpClient::ApiError => e
|
39
|
+
puts "Error when calling Clerk::SDK.waitlist_entries->create_waitlist_entry: #{e}"
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
#### Using the `create_waitlist_entry_with_http_info variant
|
44
|
+
|
45
|
+
This returns an Array which contains the response data, status code and headers.
|
46
|
+
|
47
|
+
> <Array(<WaitlistEntry>, Integer, Hash)> create_waitlist_entry_with_http_info(opts)
|
48
|
+
|
49
|
+
```ruby
|
50
|
+
begin
|
51
|
+
# Create a waitlist entry
|
52
|
+
data, status_code, headers = Clerk::SDK.waitlist_entries.create_waitlist_entry_with_http_info(opts)
|
53
|
+
p status_code # => 2xx
|
54
|
+
p headers # => { ... }
|
55
|
+
p data # => <WaitlistEntry>
|
56
|
+
rescue ClerkHttpClient::ApiError => e
|
57
|
+
puts "Error when calling Clerk::SDK.waitlist_entries->create_waitlist_entry_with_http_info: #{e}"
|
58
|
+
end
|
59
|
+
```
|
60
|
+
|
61
|
+
### Parameters
|
62
|
+
|
63
|
+
| Name | Type | Description | Notes |
|
64
|
+
| ---- | ---- | ----------- | ----- |
|
65
|
+
| **create_waitlist_entry_request** | [**CreateWaitlistEntryRequest**](CreateWaitlistEntryRequest.md) | | [optional] |
|
66
|
+
|
67
|
+
### Return type
|
68
|
+
|
69
|
+
[**WaitlistEntry**](WaitlistEntry.md)
|
70
|
+
|
71
|
+
### Authorization
|
72
|
+
|
73
|
+
[bearerAuth](../README.md#bearerAuth)
|
74
|
+
|
75
|
+
### HTTP request headers
|
76
|
+
|
77
|
+
- **Content-Type**: application/json
|
78
|
+
- **Accept**: application/json
|
79
|
+
|
80
|
+
|
81
|
+
## list_waitlist_entries
|
82
|
+
|
83
|
+
> <ListWaitlistEntries200Response> list_waitlist_entries(opts)
|
84
|
+
|
85
|
+
List all waitlist entries
|
86
|
+
|
87
|
+
Retrieve a list of waitlist entries for the instance. Entries are ordered by creation date in descending order by default. Supports filtering by email address or status and pagination with limit and offset parameters.
|
88
|
+
|
89
|
+
### Examples
|
90
|
+
|
91
|
+
```ruby
|
92
|
+
require 'time'
|
93
|
+
require 'clerk'
|
94
|
+
|
95
|
+
## Setup
|
96
|
+
Clerk.configure do |config|
|
97
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
98
|
+
end
|
99
|
+
|
100
|
+
opts = {
|
101
|
+
limit: 8.14, # Float | Applies a limit to the number of results returned. Can be used for paginating the results together with `offset`.
|
102
|
+
offset: 8.14, # Float | Skip the first `offset` results when paginating. Needs to be an integer greater or equal to zero. To be used in conjunction with `limit`.
|
103
|
+
query: 'query_example', # String | Filter waitlist entries by email address
|
104
|
+
status: 'pending', # String | Filter waitlist entries by their status
|
105
|
+
order_by: 'order_by_example' # String | Specify the order of results. Supported values are: - `created_at` - `email_address` - `invited_at` Use `+` for ascending or `-` for descending order. Defaults to `-created_at`.
|
106
|
+
}
|
107
|
+
|
108
|
+
begin
|
109
|
+
# List all waitlist entries
|
110
|
+
result = Clerk::SDK.waitlist_entries.list_waitlist_entries(opts)
|
111
|
+
p result
|
112
|
+
rescue ClerkHttpClient::ApiError => e
|
113
|
+
puts "Error when calling Clerk::SDK.waitlist_entries->list_waitlist_entries: #{e}"
|
114
|
+
end
|
115
|
+
```
|
116
|
+
|
117
|
+
#### Using the `list_waitlist_entries_with_http_info variant
|
118
|
+
|
119
|
+
This returns an Array which contains the response data, status code and headers.
|
120
|
+
|
121
|
+
> <Array(<ListWaitlistEntries200Response>, Integer, Hash)> list_waitlist_entries_with_http_info(opts)
|
122
|
+
|
123
|
+
```ruby
|
124
|
+
begin
|
125
|
+
# List all waitlist entries
|
126
|
+
data, status_code, headers = Clerk::SDK.waitlist_entries.list_waitlist_entries_with_http_info(opts)
|
127
|
+
p status_code # => 2xx
|
128
|
+
p headers # => { ... }
|
129
|
+
p data # => <ListWaitlistEntries200Response>
|
130
|
+
rescue ClerkHttpClient::ApiError => e
|
131
|
+
puts "Error when calling Clerk::SDK.waitlist_entries->list_waitlist_entries_with_http_info: #{e}"
|
132
|
+
end
|
133
|
+
```
|
134
|
+
|
135
|
+
### Parameters
|
136
|
+
|
137
|
+
| Name | Type | Description | Notes |
|
138
|
+
| ---- | ---- | ----------- | ----- |
|
139
|
+
| **limit** | **Float** | Applies a limit to the number of results returned. Can be used for paginating the results together with `offset`. | [optional][default to 10] |
|
140
|
+
| **offset** | **Float** | Skip the first `offset` results when paginating. Needs to be an integer greater or equal to zero. To be used in conjunction with `limit`. | [optional][default to 0] |
|
141
|
+
| **query** | **String** | Filter waitlist entries by email address | [optional] |
|
142
|
+
| **status** | **String** | Filter waitlist entries by their status | [optional] |
|
143
|
+
| **order_by** | **String** | Specify the order of results. Supported values are: - `created_at` - `email_address` - `invited_at` Use `+` for ascending or `-` for descending order. Defaults to `-created_at`. | [optional][default to '-created_at'] |
|
144
|
+
|
145
|
+
### Return type
|
146
|
+
|
147
|
+
[**ListWaitlistEntries200Response**](ListWaitlistEntries200Response.md)
|
148
|
+
|
149
|
+
### Authorization
|
150
|
+
|
151
|
+
[bearerAuth](../README.md#bearerAuth)
|
152
|
+
|
153
|
+
### HTTP request headers
|
154
|
+
|
155
|
+
- **Content-Type**: Not defined
|
156
|
+
- **Accept**: application/json
|
157
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# ClerkHttpClient::WaitlistEntry
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **object** | **String** | | |
|
8
|
+
| **id** | **String** | | |
|
9
|
+
| **email_address** | **String** | | |
|
10
|
+
| **status** | **String** | | |
|
11
|
+
| **is_locked** | **Boolean** | Indicates if the waitlist entry is locked. Locked entries are being processed in a batch action and are unavailable for other actions. | [optional] |
|
12
|
+
| **created_at** | **Integer** | Unix timestamp of creation. | |
|
13
|
+
| **updated_at** | **Integer** | Unix timestamp of last update. | |
|
14
|
+
| **invitation** | [**Invitation**](Invitation.md) | | [optional] |
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'clerk-http-client'
|
20
|
+
|
21
|
+
instance = ClerkHttpClient::WaitlistEntry.new(
|
22
|
+
object: null,
|
23
|
+
id: null,
|
24
|
+
email_address: null,
|
25
|
+
status: pending,
|
26
|
+
is_locked: null,
|
27
|
+
created_at: null,
|
28
|
+
updated_at: null,
|
29
|
+
invitation: null
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# ClerkHttpClient::WaitlistEntryInvitation
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **object** | **String** | | |
|
8
|
+
| **id** | **String** | | |
|
9
|
+
| **email_address** | **String** | | |
|
10
|
+
| **public_metadata** | **Hash<String, Object>** | | [optional] |
|
11
|
+
| **revoked** | **Boolean** | | [optional] |
|
12
|
+
| **status** | **String** | | |
|
13
|
+
| **url** | **String** | | [optional] |
|
14
|
+
| **expires_at** | **Integer** | Unix timestamp of expiration. | [optional] |
|
15
|
+
| **created_at** | **Integer** | Unix timestamp of creation. | |
|
16
|
+
| **updated_at** | **Integer** | Unix timestamp of last update. | |
|
17
|
+
|
18
|
+
## Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'clerk-http-client'
|
22
|
+
|
23
|
+
instance = ClerkHttpClient::WaitlistEntryInvitation.new(
|
24
|
+
object: null,
|
25
|
+
id: null,
|
26
|
+
email_address: null,
|
27
|
+
public_metadata: null,
|
28
|
+
revoked: false,
|
29
|
+
status: pending,
|
30
|
+
url: null,
|
31
|
+
expires_at: null,
|
32
|
+
created_at: null,
|
33
|
+
updated_at: null
|
34
|
+
)
|
35
|
+
```
|
36
|
+
|
data/docs/WebhooksApi.md
CHANGED
@@ -21,25 +21,24 @@ Create a Svix app and associate it with the current instance
|
|
21
21
|
|
22
22
|
```ruby
|
23
23
|
require 'time'
|
24
|
-
require 'clerk
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
config.
|
24
|
+
require 'clerk'
|
25
|
+
|
26
|
+
## Setup
|
27
|
+
Clerk.configure do |config|
|
28
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
29
29
|
end
|
30
30
|
|
31
|
-
api_instance = ClerkHttpClient::WebhooksApi.new
|
32
31
|
|
33
32
|
begin
|
34
33
|
# Create a Svix app
|
35
|
-
result =
|
34
|
+
result = Clerk::SDK.webhooks.create_svix_app
|
36
35
|
p result
|
37
36
|
rescue ClerkHttpClient::ApiError => e
|
38
|
-
puts "Error when calling
|
37
|
+
puts "Error when calling Clerk::SDK.webhooks->create_svix_app: #{e}"
|
39
38
|
end
|
40
39
|
```
|
41
40
|
|
42
|
-
#### Using the create_svix_app_with_http_info variant
|
41
|
+
#### Using the `create_svix_app_with_http_info variant
|
43
42
|
|
44
43
|
This returns an Array which contains the response data, status code and headers.
|
45
44
|
|
@@ -48,12 +47,12 @@ This returns an Array which contains the response data, status code and headers.
|
|
48
47
|
```ruby
|
49
48
|
begin
|
50
49
|
# Create a Svix app
|
51
|
-
data, status_code, headers =
|
50
|
+
data, status_code, headers = Clerk::SDK.webhooks.create_svix_app_with_http_info
|
52
51
|
p status_code # => 2xx
|
53
52
|
p headers # => { ... }
|
54
53
|
p data # => <SvixURL>
|
55
54
|
rescue ClerkHttpClient::ApiError => e
|
56
|
-
puts "Error when calling
|
55
|
+
puts "Error when calling Clerk::SDK.webhooks->create_svix_app_with_http_info: #{e}"
|
57
56
|
end
|
58
57
|
```
|
59
58
|
|
@@ -87,24 +86,23 @@ Delete a Svix app and disassociate it from the current instance
|
|
87
86
|
|
88
87
|
```ruby
|
89
88
|
require 'time'
|
90
|
-
require 'clerk
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
config.
|
89
|
+
require 'clerk'
|
90
|
+
|
91
|
+
## Setup
|
92
|
+
Clerk.configure do |config|
|
93
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
95
94
|
end
|
96
95
|
|
97
|
-
api_instance = ClerkHttpClient::WebhooksApi.new
|
98
96
|
|
99
97
|
begin
|
100
98
|
# Delete a Svix app
|
101
|
-
|
99
|
+
Clerk::SDK.webhooks.delete_svix_app
|
102
100
|
rescue ClerkHttpClient::ApiError => e
|
103
|
-
puts "Error when calling
|
101
|
+
puts "Error when calling Clerk::SDK.webhooks->delete_svix_app: #{e}"
|
104
102
|
end
|
105
103
|
```
|
106
104
|
|
107
|
-
#### Using the delete_svix_app_with_http_info variant
|
105
|
+
#### Using the `delete_svix_app_with_http_info variant
|
108
106
|
|
109
107
|
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
110
108
|
|
@@ -113,12 +111,12 @@ This returns an Array which contains the response data (`nil` in this case), sta
|
|
113
111
|
```ruby
|
114
112
|
begin
|
115
113
|
# Delete a Svix app
|
116
|
-
data, status_code, headers =
|
114
|
+
data, status_code, headers = Clerk::SDK.webhooks.delete_svix_app_with_http_info
|
117
115
|
p status_code # => 2xx
|
118
116
|
p headers # => { ... }
|
119
117
|
p data # => nil
|
120
118
|
rescue ClerkHttpClient::ApiError => e
|
121
|
-
puts "Error when calling
|
119
|
+
puts "Error when calling Clerk::SDK.webhooks->delete_svix_app_with_http_info: #{e}"
|
122
120
|
end
|
123
121
|
```
|
124
122
|
|
@@ -152,25 +150,24 @@ Generate a new url for accessing the Svix's management dashboard for that partic
|
|
152
150
|
|
153
151
|
```ruby
|
154
152
|
require 'time'
|
155
|
-
require 'clerk
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
config.
|
153
|
+
require 'clerk'
|
154
|
+
|
155
|
+
## Setup
|
156
|
+
Clerk.configure do |config|
|
157
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
160
158
|
end
|
161
159
|
|
162
|
-
api_instance = ClerkHttpClient::WebhooksApi.new
|
163
160
|
|
164
161
|
begin
|
165
162
|
# Create a Svix Dashboard URL
|
166
|
-
result =
|
163
|
+
result = Clerk::SDK.webhooks.generate_svix_auth_url
|
167
164
|
p result
|
168
165
|
rescue ClerkHttpClient::ApiError => e
|
169
|
-
puts "Error when calling
|
166
|
+
puts "Error when calling Clerk::SDK.webhooks->generate_svix_auth_url: #{e}"
|
170
167
|
end
|
171
168
|
```
|
172
169
|
|
173
|
-
#### Using the generate_svix_auth_url_with_http_info variant
|
170
|
+
#### Using the `generate_svix_auth_url_with_http_info variant
|
174
171
|
|
175
172
|
This returns an Array which contains the response data, status code and headers.
|
176
173
|
|
@@ -179,12 +176,12 @@ This returns an Array which contains the response data, status code and headers.
|
|
179
176
|
```ruby
|
180
177
|
begin
|
181
178
|
# Create a Svix Dashboard URL
|
182
|
-
data, status_code, headers =
|
179
|
+
data, status_code, headers = Clerk::SDK.webhooks.generate_svix_auth_url_with_http_info
|
183
180
|
p status_code # => 2xx
|
184
181
|
p headers # => { ... }
|
185
182
|
p data # => <SvixURL>
|
186
183
|
rescue ClerkHttpClient::ApiError => e
|
187
|
-
puts "Error when calling
|
184
|
+
puts "Error when calling Clerk::SDK.webhooks->generate_svix_auth_url_with_http_info: #{e}"
|
188
185
|
end
|
189
186
|
```
|
190
187
|
|
@@ -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
|
|
@@ -21,29 +21,25 @@ module ClerkHttpClient
|
|
21
21
|
end
|
22
22
|
# Create actor token
|
23
23
|
# Create an actor token that can be used to impersonate the given user. The `actor` parameter needs to include at least a \"sub\" key whose value is the ID of the actor (impersonating) user.
|
24
|
-
# @param create_actor_token_request [CreateActorTokenRequest]
|
25
24
|
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [CreateActorTokenRequest] :create_actor_token_request
|
26
26
|
# @return [ActorToken]
|
27
27
|
|
28
|
-
def
|
29
|
-
data, _status_code, _headers =
|
28
|
+
def create_actor_token(opts = {})
|
29
|
+
data, _status_code, _headers = create_actor_token_with_http_info(opts)
|
30
30
|
data
|
31
31
|
end
|
32
32
|
|
33
33
|
# Create actor token
|
34
34
|
# Create an actor token that can be used to impersonate the given user. The `actor` parameter needs to include at least a \"sub\" key whose value is the ID of the actor (impersonating) user.
|
35
|
-
# @param create_actor_token_request [CreateActorTokenRequest]
|
36
35
|
# @param [Hash] opts the optional parameters
|
36
|
+
# @option opts [CreateActorTokenRequest] :create_actor_token_request
|
37
37
|
# @return [Array<(ActorToken, Integer, Hash)>] ActorToken data, response status code and response headers
|
38
38
|
# POST
|
39
|
-
def
|
39
|
+
def create_actor_token_with_http_info(opts = {})
|
40
40
|
if @api_client.config.debugging
|
41
41
|
@api_client.config.logger.debug 'Calling API: ActorTokensApi.create_actor_token ...'
|
42
42
|
end
|
43
|
-
# verify the required parameter 'create_actor_token_request' is set
|
44
|
-
if @api_client.config.client_side_validation && create_actor_token_request.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'create_actor_token_request' when calling ActorTokensApi.create_actor_token"
|
46
|
-
end
|
47
43
|
# resource path
|
48
44
|
local_var_path = '/actor_tokens'
|
49
45
|
|
@@ -64,7 +60,7 @@ module ClerkHttpClient
|
|
64
60
|
form_params = opts[:form_params] || {}
|
65
61
|
|
66
62
|
# http body (model)
|
67
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_actor_token_request)
|
63
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_actor_token_request'])
|
68
64
|
|
69
65
|
# return_type
|
70
66
|
return_type = opts[:debug_return_type] || 'ActorToken'
|
@@ -95,8 +91,8 @@ module ClerkHttpClient
|
|
95
91
|
# @param [Hash] opts the optional parameters
|
96
92
|
# @return [ActorToken]
|
97
93
|
|
98
|
-
def
|
99
|
-
data, _status_code, _headers =
|
94
|
+
def revoke_actor_token(actor_token_id, opts = {})
|
95
|
+
data, _status_code, _headers = revoke_actor_token_with_http_info(actor_token_id, opts)
|
100
96
|
data
|
101
97
|
end
|
102
98
|
|
@@ -106,7 +102,7 @@ module ClerkHttpClient
|
|
106
102
|
# @param [Hash] opts the optional parameters
|
107
103
|
# @return [Array<(ActorToken, Integer, Hash)>] ActorToken data, response status code and response headers
|
108
104
|
# POST
|
109
|
-
def
|
105
|
+
def revoke_actor_token_with_http_info(actor_token_id, opts = {})
|
110
106
|
if @api_client.config.debugging
|
111
107
|
@api_client.config.logger.debug 'Calling API: ActorTokensApi.revoke_actor_token ...'
|
112
108
|
end
|
@@ -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
|
|
@@ -21,29 +21,25 @@ module ClerkHttpClient
|
|
21
21
|
end
|
22
22
|
# Add identifier to the allow-list
|
23
23
|
# Create an identifier allowed to sign up to an instance
|
24
|
-
# @param create_allowlist_identifier_request [CreateAllowlistIdentifierRequest]
|
25
24
|
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [CreateAllowlistIdentifierRequest] :create_allowlist_identifier_request
|
26
26
|
# @return [AllowlistIdentifier]
|
27
27
|
|
28
|
-
def
|
29
|
-
data, _status_code, _headers =
|
28
|
+
def create_allowlist_identifier(opts = {})
|
29
|
+
data, _status_code, _headers = create_allowlist_identifier_with_http_info(opts)
|
30
30
|
data
|
31
31
|
end
|
32
32
|
|
33
33
|
# Add identifier to the allow-list
|
34
34
|
# Create an identifier allowed to sign up to an instance
|
35
|
-
# @param create_allowlist_identifier_request [CreateAllowlistIdentifierRequest]
|
36
35
|
# @param [Hash] opts the optional parameters
|
36
|
+
# @option opts [CreateAllowlistIdentifierRequest] :create_allowlist_identifier_request
|
37
37
|
# @return [Array<(AllowlistIdentifier, Integer, Hash)>] AllowlistIdentifier data, response status code and response headers
|
38
38
|
# POST
|
39
|
-
def
|
39
|
+
def create_allowlist_identifier_with_http_info(opts = {})
|
40
40
|
if @api_client.config.debugging
|
41
41
|
@api_client.config.logger.debug 'Calling API: AllowListBlockListApi.create_allowlist_identifier ...'
|
42
42
|
end
|
43
|
-
# verify the required parameter 'create_allowlist_identifier_request' is set
|
44
|
-
if @api_client.config.client_side_validation && create_allowlist_identifier_request.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'create_allowlist_identifier_request' when calling AllowListBlockListApi.create_allowlist_identifier"
|
46
|
-
end
|
47
43
|
# resource path
|
48
44
|
local_var_path = '/allowlist_identifiers'
|
49
45
|
|
@@ -64,7 +60,7 @@ module ClerkHttpClient
|
|
64
60
|
form_params = opts[:form_params] || {}
|
65
61
|
|
66
62
|
# http body (model)
|
67
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_allowlist_identifier_request)
|
63
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_allowlist_identifier_request'])
|
68
64
|
|
69
65
|
# return_type
|
70
66
|
return_type = opts[:debug_return_type] || 'AllowlistIdentifier'
|
@@ -91,29 +87,25 @@ module ClerkHttpClient
|
|
91
87
|
|
92
88
|
# Add identifier to the block-list
|
93
89
|
# Create an identifier that is blocked from accessing an instance
|
94
|
-
# @param create_blocklist_identifier_request [CreateBlocklistIdentifierRequest]
|
95
90
|
# @param [Hash] opts the optional parameters
|
91
|
+
# @option opts [CreateBlocklistIdentifierRequest] :create_blocklist_identifier_request
|
96
92
|
# @return [BlocklistIdentifier]
|
97
93
|
|
98
|
-
def
|
99
|
-
data, _status_code, _headers =
|
94
|
+
def create_blocklist_identifier(opts = {})
|
95
|
+
data, _status_code, _headers = create_blocklist_identifier_with_http_info(opts)
|
100
96
|
data
|
101
97
|
end
|
102
98
|
|
103
99
|
# Add identifier to the block-list
|
104
100
|
# Create an identifier that is blocked from accessing an instance
|
105
|
-
# @param create_blocklist_identifier_request [CreateBlocklistIdentifierRequest]
|
106
101
|
# @param [Hash] opts the optional parameters
|
102
|
+
# @option opts [CreateBlocklistIdentifierRequest] :create_blocklist_identifier_request
|
107
103
|
# @return [Array<(BlocklistIdentifier, Integer, Hash)>] BlocklistIdentifier data, response status code and response headers
|
108
104
|
# POST
|
109
|
-
def
|
105
|
+
def create_blocklist_identifier_with_http_info(opts = {})
|
110
106
|
if @api_client.config.debugging
|
111
107
|
@api_client.config.logger.debug 'Calling API: AllowListBlockListApi.create_blocklist_identifier ...'
|
112
108
|
end
|
113
|
-
# verify the required parameter 'create_blocklist_identifier_request' is set
|
114
|
-
if @api_client.config.client_side_validation && create_blocklist_identifier_request.nil?
|
115
|
-
fail ArgumentError, "Missing the required parameter 'create_blocklist_identifier_request' when calling AllowListBlockListApi.create_blocklist_identifier"
|
116
|
-
end
|
117
109
|
# resource path
|
118
110
|
local_var_path = '/blocklist_identifiers'
|
119
111
|
|
@@ -134,7 +126,7 @@ module ClerkHttpClient
|
|
134
126
|
form_params = opts[:form_params] || {}
|
135
127
|
|
136
128
|
# http body (model)
|
137
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_blocklist_identifier_request)
|
129
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_blocklist_identifier_request'])
|
138
130
|
|
139
131
|
# return_type
|
140
132
|
return_type = opts[:debug_return_type] || 'BlocklistIdentifier'
|
@@ -165,8 +157,8 @@ module ClerkHttpClient
|
|
165
157
|
# @param [Hash] opts the optional parameters
|
166
158
|
# @return [DeletedObject]
|
167
159
|
|
168
|
-
def
|
169
|
-
data, _status_code, _headers =
|
160
|
+
def delete_allowlist_identifier(identifier_id, opts = {})
|
161
|
+
data, _status_code, _headers = delete_allowlist_identifier_with_http_info(identifier_id, opts)
|
170
162
|
data
|
171
163
|
end
|
172
164
|
|
@@ -176,7 +168,7 @@ module ClerkHttpClient
|
|
176
168
|
# @param [Hash] opts the optional parameters
|
177
169
|
# @return [Array<(DeletedObject, Integer, Hash)>] DeletedObject data, response status code and response headers
|
178
170
|
# DELETE
|
179
|
-
def
|
171
|
+
def delete_allowlist_identifier_with_http_info(identifier_id, opts = {})
|
180
172
|
if @api_client.config.debugging
|
181
173
|
@api_client.config.logger.debug 'Calling API: AllowListBlockListApi.delete_allowlist_identifier ...'
|
182
174
|
end
|
@@ -230,8 +222,8 @@ module ClerkHttpClient
|
|
230
222
|
# @param [Hash] opts the optional parameters
|
231
223
|
# @return [DeletedObject]
|
232
224
|
|
233
|
-
def
|
234
|
-
data, _status_code, _headers =
|
225
|
+
def delete_blocklist_identifier(identifier_id, opts = {})
|
226
|
+
data, _status_code, _headers = delete_blocklist_identifier_with_http_info(identifier_id, opts)
|
235
227
|
data
|
236
228
|
end
|
237
229
|
|
@@ -241,7 +233,7 @@ module ClerkHttpClient
|
|
241
233
|
# @param [Hash] opts the optional parameters
|
242
234
|
# @return [Array<(DeletedObject, Integer, Hash)>] DeletedObject data, response status code and response headers
|
243
235
|
# DELETE
|
244
|
-
def
|
236
|
+
def delete_blocklist_identifier_with_http_info(identifier_id, opts = {})
|
245
237
|
if @api_client.config.debugging
|
246
238
|
@api_client.config.logger.debug 'Calling API: AllowListBlockListApi.delete_blocklist_identifier ...'
|
247
239
|
end
|
@@ -294,8 +286,8 @@ module ClerkHttpClient
|
|
294
286
|
# @param [Hash] opts the optional parameters
|
295
287
|
# @return [Array<AllowlistIdentifier>]
|
296
288
|
|
297
|
-
def
|
298
|
-
data, _status_code, _headers =
|
289
|
+
def list_allowlist_identifiers(opts = {})
|
290
|
+
data, _status_code, _headers = list_allowlist_identifiers_with_http_info(opts)
|
299
291
|
data
|
300
292
|
end
|
301
293
|
|
@@ -304,7 +296,7 @@ module ClerkHttpClient
|
|
304
296
|
# @param [Hash] opts the optional parameters
|
305
297
|
# @return [Array<(Array<AllowlistIdentifier>, Integer, Hash)>] Array<AllowlistIdentifier> data, response status code and response headers
|
306
298
|
# GET array
|
307
|
-
def
|
299
|
+
def list_allowlist_identifiers_with_http_info(opts = {})
|
308
300
|
if @api_client.config.debugging
|
309
301
|
@api_client.config.logger.debug 'Calling API: AllowListBlockListApi.list_allowlist_identifiers ...'
|
310
302
|
end
|
@@ -353,8 +345,8 @@ module ClerkHttpClient
|
|
353
345
|
# @param [Hash] opts the optional parameters
|
354
346
|
# @return [BlocklistIdentifiers]
|
355
347
|
|
356
|
-
def
|
357
|
-
data, _status_code, _headers =
|
348
|
+
def list_blocklist_identifiers(opts = {})
|
349
|
+
data, _status_code, _headers = list_blocklist_identifiers_with_http_info(opts)
|
358
350
|
data
|
359
351
|
end
|
360
352
|
|
@@ -363,7 +355,7 @@ module ClerkHttpClient
|
|
363
355
|
# @param [Hash] opts the optional parameters
|
364
356
|
# @return [Array<(BlocklistIdentifiers, Integer, Hash)>] BlocklistIdentifiers data, response status code and response headers
|
365
357
|
# GET
|
366
|
-
def
|
358
|
+
def list_blocklist_identifiers_with_http_info(opts = {})
|
367
359
|
if @api_client.config.debugging
|
368
360
|
@api_client.config.logger.debug 'Calling API: AllowListBlockListApi.list_blocklist_identifiers ...'
|
369
361
|
end
|