clerk-http-client 0.0.1 → 2.0.0.beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +155 -191
- data/clerk-http-client.gemspec +5 -5
- data/docs/ActorTokensApi.md +26 -26
- data/docs/AllowListBlockListApi.md +72 -74
- data/docs/BetaFeaturesApi.md +42 -41
- data/docs/ClientsApi.md +36 -37
- data/docs/CreateBulkInvitationsRequestInner.md +28 -0
- data/docs/CreateInvitationRequest.md +6 -4
- data/docs/{CreateOAuthApplicationRequest.md → CreateOauthApplicationRequest.md} +1 -1
- data/docs/CreateOrganizationInvitationBulkRequestInner.md +2 -2
- data/docs/CreateOrganizationInvitationRequest.md +5 -3
- data/docs/CreateOrganizationRequest.md +3 -3
- data/docs/CreateSAMLConnectionRequest.md +2 -0
- data/docs/CreateSessionRequest.md +18 -0
- data/docs/CreateSessionToken200Response.md +20 -0
- data/docs/CreateSessionTokenFromTemplateRequest.md +18 -0
- data/docs/CreateSessionTokenRequest.md +18 -0
- data/docs/CreateUserRequest.md +3 -3
- data/docs/CreateWaitlistEntryRequest.md +20 -0
- data/docs/DomainsApi.md +46 -48
- data/docs/EmailAddress.md +2 -0
- data/docs/EmailAddressVerification.md +3 -3
- data/docs/EmailAddressesApi.md +52 -52
- data/docs/EmailSMSTemplatesApi.md +60 -66
- data/docs/FromOauth.md +26 -0
- data/docs/FromOauthError.md +47 -0
- data/docs/{GetOAuthAccessToken200ResponseInner.md → GetOauthAccessToken200ResponseInner.md} +4 -2
- data/docs/Instance.md +24 -0
- data/docs/InstanceSettingsApi.md +114 -45
- data/docs/Invitation.md +1 -1
- data/docs/InvitationsApi.md +110 -38
- data/docs/JWKS.md +18 -0
- data/docs/JWKSApi.md +14 -15
- data/docs/JWKSKeysInner.md +32 -0
- data/docs/JWTTemplatesApi.md +62 -63
- data/docs/ListWaitlistEntries200Response.md +20 -0
- data/docs/MergeOrganizationMetadataRequest.md +2 -2
- data/docs/MiscellaneousApi.md +11 -7
- data/docs/{OAuthApplication.md → OauthApplication.md} +4 -0
- data/docs/{OAuthApplicationWithSecret.md → OauthApplicationWithSecret.md} +4 -0
- data/docs/{OAuthApplicationsApi.md → OauthApplicationsApi.md} +90 -94
- data/docs/Organization.md +2 -2
- data/docs/OrganizationDomainApi.md +15 -13
- data/docs/OrganizationDomainsApi.md +103 -33
- data/docs/OrganizationInvitation.md +6 -2
- data/docs/OrganizationInvitationWithPublicOrganizationData.md +4 -2
- data/docs/OrganizationInvitationsApi.md +76 -81
- data/docs/OrganizationMembership.md +2 -2
- data/docs/OrganizationMembershipsApi.md +66 -70
- data/docs/OrganizationWithLogo.md +2 -2
- data/docs/OrganizationsApi.md +87 -93
- data/docs/PhoneNumbersApi.md +52 -52
- data/docs/ProxyChecksApi.md +16 -15
- data/docs/{RedirectURLsApi.md → RedirectUrlsApi.md} +46 -48
- data/docs/RevokeInvitation200Response.md +1 -1
- data/docs/SAML.md +1 -1
- data/docs/SAMLAccount.md +1 -1
- data/docs/SAMLConnectionsApi.md +59 -60
- data/docs/SchemasSAMLConnection.md +2 -0
- data/docs/SessionsApi.md +203 -60
- data/docs/SignInTokensApi.md +26 -26
- data/docs/SignUp.md +4 -2
- data/docs/SignUpsApi.md +16 -15
- data/docs/TestingTokensApi.md +11 -12
- data/docs/UpdateOrganizationMembershipMetadataRequest.md +2 -2
- data/docs/UpdateOrganizationRequest.md +2 -2
- data/docs/UpdateSAMLConnectionRequest.md +2 -0
- data/docs/UpdateUserRequest.md +3 -3
- data/docs/User.md +3 -3
- data/docs/UsersApi.md +297 -294
- data/docs/WaitlistEntriesApi.md +157 -0
- data/docs/WaitlistEntry.md +32 -0
- data/docs/WaitlistEntryInvitation.md +36 -0
- data/docs/WebhooksApi.md +30 -33
- data/lib/clerk-http-client/api/actor_tokens_api.rb +10 -14
- data/lib/clerk-http-client/api/allow_list_block_list_api.rb +25 -33
- data/lib/clerk-http-client/api/beta_features_api.rb +13 -21
- data/lib/clerk-http-client/api/clients_api.rb +13 -17
- data/lib/clerk-http-client/api/domains_api.rb +16 -20
- data/lib/clerk-http-client/api/email_addresses_api.rb +19 -27
- data/lib/clerk-http-client/api/email_sms_templates_api.rb +19 -19
- data/lib/clerk-http-client/api/instance_settings_api.rb +78 -31
- data/lib/clerk-http-client/api/invitations_api.rb +82 -17
- data/lib/clerk-http-client/api/jwks_api.rb +7 -7
- data/lib/clerk-http-client/api/jwt_templates_api.rb +22 -30
- data/lib/clerk-http-client/api/miscellaneous_api.rb +4 -4
- data/lib/clerk-http-client/api/{o_auth_applications_api.rb → oauth_applications_api.rb} +53 -57
- data/lib/clerk-http-client/api/organization_domains_api.rb +92 -10
- data/lib/clerk-http-client/api/organization_invitations_api.rb +25 -29
- data/lib/clerk-http-client/api/organization_memberships_api.rb +22 -26
- data/lib/clerk-http-client/api/organizations_api.rb +30 -34
- data/lib/clerk-http-client/api/phone_numbers_api.rb +19 -27
- data/lib/clerk-http-client/api/proxy_checks_api.rb +7 -11
- data/lib/clerk-http-client/api/redirect_urls_api.rb +16 -20
- data/lib/clerk-http-client/api/saml_connections_api.rb +22 -23
- data/lib/clerk-http-client/api/sessions_api.rb +165 -20
- data/lib/clerk-http-client/api/sign_in_tokens_api.rb +10 -14
- data/lib/clerk-http-client/api/sign_ups_api.rb +7 -11
- data/lib/clerk-http-client/api/testing_tokens_api.rb +6 -6
- data/lib/clerk-http-client/api/users_api.rb +149 -92
- data/lib/clerk-http-client/api/waitlist_entries_api.rb +178 -0
- data/lib/clerk-http-client/api/webhooks_api.rb +10 -10
- data/lib/clerk-http-client/api_client.rb +1 -1
- data/lib/clerk-http-client/api_error.rb +1 -1
- data/lib/clerk-http-client/configuration.rb +1 -1
- data/lib/clerk-http-client/models/actor_token.rb +1 -1
- data/lib/clerk-http-client/models/add_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/admin.rb +1 -1
- data/lib/clerk-http-client/models/allowlist_identifier.rb +1 -1
- data/lib/clerk-http-client/models/blocklist_identifier.rb +1 -1
- data/lib/clerk-http-client/models/blocklist_identifiers.rb +1 -1
- data/lib/clerk-http-client/models/change_production_instance_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/clerk_error.rb +1 -1
- data/lib/clerk-http-client/models/clerk_errors.rb +1 -1
- data/lib/clerk-http-client/models/client.rb +1 -1
- data/lib/clerk-http-client/models/{c_name_target.rb → cname_target.rb} +1 -1
- data/lib/clerk-http-client/models/create_actor_token_request.rb +1 -1
- data/lib/clerk-http-client/models/create_allowlist_identifier_request.rb +1 -1
- data/lib/clerk-http-client/models/create_blocklist_identifier_request.rb +1 -1
- data/lib/clerk-http-client/models/create_bulk_invitations_request_inner.rb +305 -0
- data/lib/clerk-http-client/models/create_email_address_request.rb +1 -1
- data/lib/clerk-http-client/models/create_invitation_request.rb +57 -10
- data/lib/clerk-http-client/models/create_jwt_template_request.rb +1 -1
- data/lib/clerk-http-client/models/{create_o_auth_application_request.rb → create_oauth_application_request.rb} +1 -8
- data/lib/clerk-http-client/models/create_organization_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/create_organization_invitation_bulk_request_inner.rb +11 -7
- data/lib/clerk-http-client/models/create_organization_invitation_request.rb +50 -11
- data/lib/clerk-http-client/models/create_organization_membership_request.rb +1 -1
- data/lib/clerk-http-client/models/create_organization_request.rb +9 -12
- data/lib/clerk-http-client/models/create_phone_number_request.rb +1 -1
- data/lib/clerk-http-client/models/create_redirect_url_request.rb +1 -1
- data/lib/clerk-http-client/models/create_saml_connection_request.rb +13 -2
- data/lib/clerk-http-client/models/create_saml_connection_request_attribute_mapping.rb +1 -1
- data/lib/clerk-http-client/models/create_session_request.rb +215 -0
- data/lib/clerk-http-client/models/create_session_token200_response.rb +257 -0
- data/lib/clerk-http-client/models/create_session_token_from_template_request.rb +240 -0
- data/lib/clerk-http-client/models/create_session_token_request.rb +240 -0
- data/lib/clerk-http-client/models/create_sign_in_token_request.rb +1 -1
- data/lib/clerk-http-client/models/create_user_request.rb +13 -7
- data/lib/clerk-http-client/models/create_waitlist_entry_request.rb +232 -0
- data/lib/clerk-http-client/models/deleted_object.rb +1 -1
- data/lib/clerk-http-client/models/disable_mfa200_response.rb +1 -1
- data/lib/clerk-http-client/models/domain.rb +1 -1
- data/lib/clerk-http-client/models/domains.rb +1 -1
- data/lib/clerk-http-client/models/email_address.rb +12 -2
- data/lib/clerk-http-client/models/email_address_verification.rb +3 -3
- data/lib/clerk-http-client/models/from_o_auth.rb +324 -0
- data/{resources/templates/partial_anyof_module.mustache → lib/clerk-http-client/models/from_o_auth_error.rb} +29 -19
- data/lib/clerk-http-client/models/from_oauth.rb +324 -0
- data/{resources/templates/partial_oneof_module.mustache → lib/clerk-http-client/models/from_oauth_error.rb} +21 -54
- data/lib/clerk-http-client/models/{get_o_auth_access_token200_response_inner.rb → get_oauth_access_token200_response_inner.rb} +20 -7
- data/lib/clerk-http-client/models/identification_link.rb +3 -3
- data/lib/clerk-http-client/models/instance.rb +279 -0
- data/lib/clerk-http-client/models/instance_restrictions.rb +1 -1
- data/lib/clerk-http-client/models/invitation.rb +5 -3
- data/lib/clerk-http-client/models/jwks.rb +216 -0
- data/lib/clerk-http-client/models/jwks_keys_inner.rb +277 -0
- data/lib/clerk-http-client/models/jwt_template.rb +1 -1
- data/lib/clerk-http-client/models/list_waitlist_entries200_response.rb +240 -0
- data/lib/clerk-http-client/models/merge_organization_metadata_request.rb +9 -5
- data/lib/clerk-http-client/models/o_auth_application.rb +34 -2
- data/lib/clerk-http-client/models/o_auth_application_with_secret.rb +34 -2
- data/lib/clerk-http-client/models/o_auth_applications.rb +1 -1
- data/lib/clerk-http-client/models/oauth.rb +2 -2
- data/lib/clerk-http-client/models/oauth_application.rb +481 -0
- data/lib/clerk-http-client/models/oauth_application_with_secret.rb +498 -0
- data/lib/clerk-http-client/models/oauth_applications.rb +240 -0
- data/lib/clerk-http-client/models/organization.rb +10 -5
- data/lib/clerk-http-client/models/organization_domain.rb +1 -1
- data/lib/clerk-http-client/models/organization_domain_verification.rb +1 -1
- data/lib/clerk-http-client/models/organization_domains.rb +1 -1
- data/lib/clerk-http-client/models/organization_invitation.rb +31 -6
- data/lib/clerk-http-client/models/organization_invitation_with_public_organization_data.rb +20 -6
- data/lib/clerk-http-client/models/organization_invitation_with_public_organization_data_public_organization_data.rb +1 -1
- data/lib/clerk-http-client/models/organization_invitations.rb +1 -1
- data/lib/clerk-http-client/models/organization_invitations_with_public_organization_data.rb +1 -1
- data/lib/clerk-http-client/models/organization_membership.rb +9 -5
- data/lib/clerk-http-client/models/organization_membership_public_user_data.rb +1 -1
- data/lib/clerk-http-client/models/organization_memberships.rb +1 -1
- data/lib/clerk-http-client/models/organization_settings.rb +1 -1
- data/lib/clerk-http-client/models/organization_with_logo.rb +10 -5
- data/lib/clerk-http-client/models/organizations.rb +1 -1
- data/lib/clerk-http-client/models/otp.rb +1 -1
- data/lib/clerk-http-client/models/passkey.rb +1 -1
- data/lib/clerk-http-client/models/phone_number.rb +1 -1
- data/lib/clerk-http-client/models/phone_number_verification.rb +1 -1
- data/lib/clerk-http-client/models/preview_template_request.rb +1 -1
- data/lib/clerk-http-client/models/proxy_check.rb +1 -1
- data/lib/clerk-http-client/models/redirect_url.rb +1 -1
- data/lib/clerk-http-client/models/revoke_invitation200_response.rb +5 -3
- data/lib/clerk-http-client/models/revoke_organization_invitation_request.rb +1 -1
- data/lib/clerk-http-client/models/saml.rb +2 -2
- data/lib/clerk-http-client/models/saml_account.rb +5 -3
- data/lib/clerk-http-client/models/saml_account_saml_connection.rb +1 -1
- data/lib/clerk-http-client/models/saml_account_verification.rb +1 -1
- data/lib/clerk-http-client/models/saml_connection.rb +1 -1
- data/lib/clerk-http-client/models/saml_connections.rb +1 -1
- data/lib/clerk-http-client/models/schemas_passkey.rb +1 -1
- data/lib/clerk-http-client/models/schemas_passkey_verification.rb +1 -1
- data/lib/clerk-http-client/models/schemas_saml_connection.rb +12 -2
- data/lib/clerk-http-client/models/schemas_saml_connection_attribute_mapping.rb +1 -1
- data/lib/clerk-http-client/models/session.rb +1 -1
- data/lib/clerk-http-client/models/session_latest_activity.rb +1 -1
- data/lib/clerk-http-client/models/sign_in_token.rb +1 -1
- data/lib/clerk-http-client/models/sign_up.rb +21 -6
- data/lib/clerk-http-client/models/svix_url.rb +1 -1
- data/lib/clerk-http-client/models/template.rb +1 -1
- data/lib/clerk-http-client/models/testing_token.rb +1 -1
- data/lib/clerk-http-client/models/ticket.rb +1 -1
- data/lib/clerk-http-client/models/toggle_template_delivery_request.rb +1 -1
- data/lib/clerk-http-client/models/total_count.rb +1 -1
- data/lib/clerk-http-client/models/totp.rb +1 -1
- data/lib/clerk-http-client/models/update_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/update_email_address_request.rb +1 -1
- data/lib/clerk-http-client/models/update_instance_auth_config200_response.rb +1 -1
- data/lib/clerk-http-client/models/update_instance_auth_config_request.rb +1 -1
- data/lib/clerk-http-client/models/update_instance_organization_settings_request.rb +1 -1
- data/lib/clerk-http-client/models/update_instance_request.rb +1 -1
- data/lib/clerk-http-client/models/update_instance_restrictions_request.rb +1 -1
- data/lib/clerk-http-client/models/{update_o_auth_application_request.rb → update_oauth_application_request.rb} +1 -1
- data/lib/clerk-http-client/models/update_organization_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/update_organization_membership_metadata_request.rb +9 -5
- data/lib/clerk-http-client/models/update_organization_membership_request.rb +1 -1
- data/lib/clerk-http-client/models/update_organization_request.rb +9 -5
- data/lib/clerk-http-client/models/update_phone_number_request.rb +1 -1
- data/lib/clerk-http-client/models/update_production_instance_domain_request.rb +1 -1
- data/lib/clerk-http-client/models/update_saml_connection_request.rb +13 -2
- data/lib/clerk-http-client/models/update_saml_connection_request_attribute_mapping.rb +1 -1
- data/lib/clerk-http-client/models/update_sign_up_request.rb +1 -1
- data/lib/clerk-http-client/models/update_user_metadata_request.rb +1 -1
- data/lib/clerk-http-client/models/update_user_request.rb +13 -7
- data/lib/clerk-http-client/models/upsert_template_request.rb +1 -1
- data/lib/clerk-http-client/models/user.rb +13 -7
- data/lib/clerk-http-client/models/verify_client_request.rb +1 -1
- data/lib/clerk-http-client/models/verify_domain_proxy_request.rb +1 -1
- data/lib/clerk-http-client/models/verify_password200_response.rb +1 -1
- data/lib/clerk-http-client/models/verify_password_request.rb +1 -1
- data/lib/clerk-http-client/models/verify_session_request.rb +1 -1
- data/lib/clerk-http-client/models/verify_totp200_response.rb +1 -1
- data/lib/clerk-http-client/models/verify_totp_request.rb +1 -1
- data/lib/clerk-http-client/models/waitlist_entry.rb +369 -0
- data/lib/clerk-http-client/models/waitlist_entry_invitation.rb +397 -0
- data/lib/clerk-http-client/models/web3_signature.rb +3 -3
- data/lib/clerk-http-client/models/web3_wallet.rb +1 -1
- data/lib/clerk-http-client/models/web3_wallet_verification.rb +1 -1
- data/lib/clerk-http-client/version.rb +1 -1
- data/lib/clerk-http-client.rb +54 -59
- data/spec/api/actor_tokens_api_spec.rb +1 -1
- data/spec/api/allow_list_block_list_api_spec.rb +2 -2
- data/spec/api/beta_features_api_spec.rb +2 -2
- data/spec/api/clients_api_spec.rb +1 -1
- data/spec/api/domains_api_spec.rb +1 -1
- data/spec/api/email_addresses_api_spec.rb +2 -2
- data/spec/api/instance_settings_api_spec.rb +3 -3
- data/spec/api/invitations_api_spec.rb +1 -1
- data/spec/api/jwt_templates_api_spec.rb +2 -2
- data/spec/api/{o_auth_applications_api_spec.rb → oauth_applications_api_spec.rb} +15 -15
- data/spec/api/organizations_api_spec.rb +1 -1
- data/spec/api/phone_numbers_api_spec.rb +2 -2
- data/spec/api/proxy_checks_api_spec.rb +1 -1
- data/spec/api/redirect_urls_api_spec.rb +1 -1
- data/spec/api/saml_connections_api_spec.rb +1 -1
- data/spec/api/sign_in_tokens_api_spec.rb +1 -1
- data/spec/api/sign_ups_api_spec.rb +1 -1
- data/spec/api/users_api_spec.rb +3 -3
- data/spec/api/waitlist_entries_api_spec.rb +63 -0
- data/spec/models/cname_target_spec.rb +48 -0
- data/spec/models/create_bulk_invitations_request_inner_spec.rb +66 -0
- data/spec/models/create_oauth_application_request_spec.rb +54 -0
- data/spec/models/create_session_request_spec.rb +36 -0
- data/spec/models/create_session_token200_response_spec.rb +46 -0
- data/spec/models/create_session_token_from_template_request_spec.rb +36 -0
- data/spec/models/create_session_token_request_spec.rb +36 -0
- data/spec/models/create_waitlist_entry_request_spec.rb +42 -0
- data/spec/models/from_o_auth_error_spec.rb +32 -0
- data/spec/models/from_o_auth_spec.rb +64 -0
- data/spec/models/from_oauth_error_spec.rb +32 -0
- data/spec/models/from_oauth_spec.rb +64 -0
- data/spec/models/get_oauth_access_token200_response_inner_spec.rb +90 -0
- data/spec/models/identification_link_spec.rb +1 -1
- data/spec/models/instance_spec.rb +58 -0
- data/spec/models/jwks_keys_inner_spec.rb +78 -0
- data/spec/models/jwks_spec.rb +36 -0
- data/spec/models/list_waitlist_entries200_response_spec.rb +42 -0
- data/spec/models/oauth_application_spec.rb +124 -0
- data/spec/models/oauth_application_with_secret_spec.rb +130 -0
- data/spec/models/oauth_applications_spec.rb +42 -0
- data/spec/models/oauth_spec.rb +1 -1
- data/spec/models/update_oauth_application_request_spec.rb +48 -0
- data/spec/models/waitlist_entry_invitation_spec.rb +98 -0
- data/spec/models/waitlist_entry_spec.rb +86 -0
- data/spec/spec_helper.rb +1 -1
- metadata +108 -74
- data/bin/fmt +0 -5
- data/bin/generate +0 -8
- data/bin/setup +0 -7
- data/openapitools.json +0 -7
- data/pkg/clerk-http-client-1.0.0.gem +0 -0
- data/resources/.DS_Store +0 -0
- data/resources/oas/bapi-2024-10-01.yml +0 -7238
- data/resources/templates/Gemfile.mustache +0 -9
- data/resources/templates/README.mustache +0 -163
- data/resources/templates/Rakefile.mustache +0 -10
- data/resources/templates/api.mustache +0 -257
- data/resources/templates/api_client.mustache +0 -246
- data/resources/templates/api_client_faraday_partial.mustache +0 -200
- data/resources/templates/api_client_httpx_partial.mustache +0 -134
- data/resources/templates/api_client_typhoeus_partial.mustache +0 -161
- data/resources/templates/api_doc.mustache +0 -132
- data/resources/templates/api_error.mustache +0 -50
- data/resources/templates/api_info.mustache +0 -12
- data/resources/templates/api_test.mustache +0 -47
- data/resources/templates/base_object.mustache +0 -114
- data/resources/templates/configuration.mustache +0 -491
- data/resources/templates/configuration_faraday_partial.mustache +0 -40
- data/resources/templates/configuration_httpx_partial.mustache +0 -11
- data/resources/templates/configuration_typhoeus_partial.mustache +0 -41
- data/resources/templates/gem.mustache +0 -89
- data/resources/templates/gemspec.mustache +0 -41
- data/resources/templates/git_push.sh.mustache +0 -57
- data/resources/templates/gitignore.mustache +0 -39
- data/resources/templates/gitlab-ci.mustache +0 -26
- data/resources/templates/model.mustache +0 -33
- data/resources/templates/model_doc.mustache +0 -12
- data/resources/templates/model_test.mustache +0 -82
- data/resources/templates/partial_model_enum_class.mustache +0 -23
- data/resources/templates/partial_model_generic.mustache +0 -377
- data/resources/templates/partial_model_generic_doc.mustache +0 -28
- data/resources/templates/partial_oneof_module_doc.mustache +0 -93
- data/resources/templates/rspec.mustache +0 -2
- data/resources/templates/rubocop.mustache +0 -148
- data/resources/templates/spec_helper.mustache +0 -103
- data/resources/templates/travis.mustache +0 -11
- data/resources/templates/version.mustache +0 -7
- data/sdk-generator-config.json +0 -20
- data/test.rb +0 -2
- /data/docs/{CNameTarget.md → CnameTarget.md} +0 -0
- /data/docs/{CreateRedirectURLRequest.md → CreateRedirectUrlRequest.md} +0 -0
- /data/docs/{OAuthApplications.md → OauthApplications.md} +0 -0
- /data/docs/{RedirectURL.md → RedirectUrl.md} +0 -0
- /data/docs/{SvixURL.md → SvixUrl.md} +0 -0
- /data/docs/{UpdateOAuthApplicationRequest.md → UpdateOauthApplicationRequest.md} +0 -0
@@ -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
|
# Update production instance domain
|
23
23
|
# Change the domain of a production instance. Changing the domain requires updating the [DNS records](https://clerk.com/docs/deployments/overview#dns-records) accordingly, deploying new [SSL certificates](https://clerk.com/docs/deployments/overview#deploy), updating your Social Connection's redirect URLs and setting the new keys in your code. WARNING: Changing your domain will invalidate all current user sessions (i.e. users will be logged out). Also, while your application is being deployed, a small downtime is expected to occur.
|
24
|
-
# @param change_production_instance_domain_request [ChangeProductionInstanceDomainRequest]
|
25
24
|
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [ChangeProductionInstanceDomainRequest] :change_production_instance_domain_request
|
26
26
|
# @return [nil]
|
27
27
|
|
28
|
-
def
|
29
|
-
|
28
|
+
def change_production_instance_domain(opts = {})
|
29
|
+
change_production_instance_domain_with_http_info(opts)
|
30
30
|
nil
|
31
31
|
end
|
32
32
|
|
33
33
|
# Update production instance domain
|
34
34
|
# Change the domain of a production instance. Changing the domain requires updating the [DNS records](https://clerk.com/docs/deployments/overview#dns-records) accordingly, deploying new [SSL certificates](https://clerk.com/docs/deployments/overview#deploy), updating your Social Connection's redirect URLs and setting the new keys in your code. WARNING: Changing your domain will invalidate all current user sessions (i.e. users will be logged out). Also, while your application is being deployed, a small downtime is expected to occur.
|
35
|
-
# @param change_production_instance_domain_request [ChangeProductionInstanceDomainRequest]
|
36
35
|
# @param [Hash] opts the optional parameters
|
36
|
+
# @option opts [ChangeProductionInstanceDomainRequest] :change_production_instance_domain_request
|
37
37
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
38
38
|
# POST
|
39
|
-
def
|
39
|
+
def change_production_instance_domain_with_http_info(opts = {})
|
40
40
|
if @api_client.config.debugging
|
41
41
|
@api_client.config.logger.debug 'Calling API: BetaFeaturesApi.change_production_instance_domain ...'
|
42
42
|
end
|
43
|
-
# verify the required parameter 'change_production_instance_domain_request' is set
|
44
|
-
if @api_client.config.client_side_validation && change_production_instance_domain_request.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'change_production_instance_domain_request' when calling BetaFeaturesApi.change_production_instance_domain"
|
46
|
-
end
|
47
43
|
# resource path
|
48
44
|
local_var_path = '/instance/change_domain'
|
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(change_production_instance_domain_request)
|
63
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'change_production_instance_domain_request'])
|
68
64
|
|
69
65
|
# return_type
|
70
66
|
return_type = opts[:debug_return_type]
|
@@ -91,29 +87,25 @@ module ClerkHttpClient
|
|
91
87
|
|
92
88
|
# Update instance settings
|
93
89
|
# Updates the settings of an instance
|
94
|
-
# @param update_instance_auth_config_request [UpdateInstanceAuthConfigRequest]
|
95
90
|
# @param [Hash] opts the optional parameters
|
91
|
+
# @option opts [UpdateInstanceAuthConfigRequest] :update_instance_auth_config_request
|
96
92
|
# @return [UpdateInstanceAuthConfig200Response]
|
97
93
|
|
98
|
-
def
|
99
|
-
data, _status_code, _headers =
|
94
|
+
def update_instance_auth_config(opts = {})
|
95
|
+
data, _status_code, _headers = update_instance_auth_config_with_http_info(opts)
|
100
96
|
data
|
101
97
|
end
|
102
98
|
|
103
99
|
# Update instance settings
|
104
100
|
# Updates the settings of an instance
|
105
|
-
# @param update_instance_auth_config_request [UpdateInstanceAuthConfigRequest]
|
106
101
|
# @param [Hash] opts the optional parameters
|
102
|
+
# @option opts [UpdateInstanceAuthConfigRequest] :update_instance_auth_config_request
|
107
103
|
# @return [Array<(UpdateInstanceAuthConfig200Response, Integer, Hash)>] UpdateInstanceAuthConfig200Response data, response status code and response headers
|
108
104
|
# PATCH
|
109
|
-
def
|
105
|
+
def update_instance_auth_config_with_http_info(opts = {})
|
110
106
|
if @api_client.config.debugging
|
111
107
|
@api_client.config.logger.debug 'Calling API: BetaFeaturesApi.update_instance_auth_config ...'
|
112
108
|
end
|
113
|
-
# verify the required parameter 'update_instance_auth_config_request' is set
|
114
|
-
if @api_client.config.client_side_validation && update_instance_auth_config_request.nil?
|
115
|
-
fail ArgumentError, "Missing the required parameter 'update_instance_auth_config_request' when calling BetaFeaturesApi.update_instance_auth_config"
|
116
|
-
end
|
117
109
|
# resource path
|
118
110
|
local_var_path = '/beta_features/instance_settings'
|
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(update_instance_auth_config_request)
|
129
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_instance_auth_config_request'])
|
138
130
|
|
139
131
|
# return_type
|
140
132
|
return_type = opts[:debug_return_type] || 'UpdateInstanceAuthConfig200Response'
|
@@ -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 [Client]
|
27
27
|
|
28
|
-
def
|
29
|
-
data, _status_code, _headers =
|
28
|
+
def get_client(client_id, opts = {})
|
29
|
+
data, _status_code, _headers = get_client_with_http_info(client_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<(Client, Integer, Hash)>] Client data, response status code and response headers
|
38
38
|
# GET
|
39
|
-
def
|
39
|
+
def get_client_with_http_info(client_id, opts = {})
|
40
40
|
if @api_client.config.debugging
|
41
41
|
@api_client.config.logger.debug 'Calling API: ClientsApi.get_client ...'
|
42
42
|
end
|
@@ -91,8 +91,8 @@ module ClerkHttpClient
|
|
91
91
|
# @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)
|
92
92
|
# @return [Array<Client>]
|
93
93
|
|
94
|
-
def
|
95
|
-
data, _status_code, _headers =
|
94
|
+
def get_client_list(opts = {})
|
95
|
+
data, _status_code, _headers = get_client_list_with_http_info(opts)
|
96
96
|
data
|
97
97
|
end
|
98
98
|
|
@@ -103,7 +103,7 @@ module ClerkHttpClient
|
|
103
103
|
# @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)
|
104
104
|
# @return [Array<(Array<Client>, Integer, Hash)>] Array<Client> data, response status code and response headers
|
105
105
|
# GET array
|
106
|
-
def
|
106
|
+
def get_client_list_with_http_info(opts = {})
|
107
107
|
if @api_client.config.debugging
|
108
108
|
@api_client.config.logger.debug 'Calling API: ClientsApi.get_client_list ...'
|
109
109
|
end
|
@@ -163,29 +163,25 @@ module ClerkHttpClient
|
|
163
163
|
|
164
164
|
# Verify a client
|
165
165
|
# Verifies the client in the provided token
|
166
|
-
# @param verify_client_request [VerifyClientRequest]
|
167
166
|
# @param [Hash] opts the optional parameters
|
167
|
+
# @option opts [VerifyClientRequest] :verify_client_request Parameters.
|
168
168
|
# @return [Client]
|
169
169
|
|
170
|
-
def
|
171
|
-
data, _status_code, _headers =
|
170
|
+
def verify_client(opts = {})
|
171
|
+
data, _status_code, _headers = verify_client_with_http_info(opts)
|
172
172
|
data
|
173
173
|
end
|
174
174
|
|
175
175
|
# Verify a client
|
176
176
|
# Verifies the client in the provided token
|
177
|
-
# @param verify_client_request [VerifyClientRequest]
|
178
177
|
# @param [Hash] opts the optional parameters
|
178
|
+
# @option opts [VerifyClientRequest] :verify_client_request Parameters.
|
179
179
|
# @return [Array<(Client, Integer, Hash)>] Client data, response status code and response headers
|
180
180
|
# POST
|
181
|
-
def
|
181
|
+
def verify_client_with_http_info(opts = {})
|
182
182
|
if @api_client.config.debugging
|
183
183
|
@api_client.config.logger.debug 'Calling API: ClientsApi.verify_client ...'
|
184
184
|
end
|
185
|
-
# verify the required parameter 'verify_client_request' is set
|
186
|
-
if @api_client.config.client_side_validation && verify_client_request.nil?
|
187
|
-
fail ArgumentError, "Missing the required parameter 'verify_client_request' when calling ClientsApi.verify_client"
|
188
|
-
end
|
189
185
|
# resource path
|
190
186
|
local_var_path = '/clients/verify'
|
191
187
|
|
@@ -206,7 +202,7 @@ module ClerkHttpClient
|
|
206
202
|
form_params = opts[:form_params] || {}
|
207
203
|
|
208
204
|
# http body (model)
|
209
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(verify_client_request)
|
205
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'verify_client_request'])
|
210
206
|
|
211
207
|
# return_type
|
212
208
|
return_type = opts[:debug_return_type] || 'Client'
|
@@ -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 a domain
|
23
23
|
# Add a new domain for your instance. Useful in the case of multi-domain instances, allows adding satellite domains to an instance. The new domain must have a `name`. The domain name can contain the port for development instances, like `localhost:3000`. At the moment, instances can have only one primary domain, so the `is_satellite` parameter must be set to `true`. If you're planning to configure the new satellite domain to run behind a proxy, pass the `proxy_url` parameter accordingly.
|
24
|
-
# @param add_domain_request [AddDomainRequest]
|
25
24
|
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [AddDomainRequest] :add_domain_request
|
26
26
|
# @return [Domain]
|
27
27
|
|
28
|
-
def
|
29
|
-
data, _status_code, _headers =
|
28
|
+
def add_domain(opts = {})
|
29
|
+
data, _status_code, _headers = add_domain_with_http_info(opts)
|
30
30
|
data
|
31
31
|
end
|
32
32
|
|
33
33
|
# Add a domain
|
34
34
|
# Add a new domain for your instance. Useful in the case of multi-domain instances, allows adding satellite domains to an instance. The new domain must have a `name`. The domain name can contain the port for development instances, like `localhost:3000`. At the moment, instances can have only one primary domain, so the `is_satellite` parameter must be set to `true`. If you're planning to configure the new satellite domain to run behind a proxy, pass the `proxy_url` parameter accordingly.
|
35
|
-
# @param add_domain_request [AddDomainRequest]
|
36
35
|
# @param [Hash] opts the optional parameters
|
36
|
+
# @option opts [AddDomainRequest] :add_domain_request
|
37
37
|
# @return [Array<(Domain, Integer, Hash)>] Domain data, response status code and response headers
|
38
38
|
# POST
|
39
|
-
def
|
39
|
+
def add_domain_with_http_info(opts = {})
|
40
40
|
if @api_client.config.debugging
|
41
41
|
@api_client.config.logger.debug 'Calling API: DomainsApi.add_domain ...'
|
42
42
|
end
|
43
|
-
# verify the required parameter 'add_domain_request' is set
|
44
|
-
if @api_client.config.client_side_validation && add_domain_request.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'add_domain_request' when calling DomainsApi.add_domain"
|
46
|
-
end
|
47
43
|
# resource path
|
48
44
|
local_var_path = '/domains'
|
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(add_domain_request)
|
63
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'add_domain_request'])
|
68
64
|
|
69
65
|
# return_type
|
70
66
|
return_type = opts[:debug_return_type] || 'Domain'
|
@@ -95,8 +91,8 @@ module ClerkHttpClient
|
|
95
91
|
# @param [Hash] opts the optional parameters
|
96
92
|
# @return [DeletedObject]
|
97
93
|
|
98
|
-
def
|
99
|
-
data, _status_code, _headers =
|
94
|
+
def delete_domain(domain_id, opts = {})
|
95
|
+
data, _status_code, _headers = delete_domain_with_http_info(domain_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<(DeletedObject, Integer, Hash)>] DeletedObject data, response status code and response headers
|
108
104
|
# DELETE
|
109
|
-
def
|
105
|
+
def delete_domain_with_http_info(domain_id, opts = {})
|
110
106
|
if @api_client.config.debugging
|
111
107
|
@api_client.config.logger.debug 'Calling API: DomainsApi.delete_domain ...'
|
112
108
|
end
|
@@ -159,8 +155,8 @@ module ClerkHttpClient
|
|
159
155
|
# @param [Hash] opts the optional parameters
|
160
156
|
# @return [Domains]
|
161
157
|
|
162
|
-
def
|
163
|
-
data, _status_code, _headers =
|
158
|
+
def list_domains(opts = {})
|
159
|
+
data, _status_code, _headers = list_domains_with_http_info(opts)
|
164
160
|
data
|
165
161
|
end
|
166
162
|
|
@@ -169,7 +165,7 @@ module ClerkHttpClient
|
|
169
165
|
# @param [Hash] opts the optional parameters
|
170
166
|
# @return [Array<(Domains, Integer, Hash)>] Domains data, response status code and response headers
|
171
167
|
# GET
|
172
|
-
def
|
168
|
+
def list_domains_with_http_info(opts = {})
|
173
169
|
if @api_client.config.debugging
|
174
170
|
@api_client.config.logger.debug 'Calling API: DomainsApi.list_domains ...'
|
175
171
|
end
|
@@ -220,8 +216,8 @@ module ClerkHttpClient
|
|
220
216
|
# @param [Hash] opts the optional parameters
|
221
217
|
# @return [Domain]
|
222
218
|
|
223
|
-
def
|
224
|
-
data, _status_code, _headers =
|
219
|
+
def update_domain(domain_id, update_domain_request, opts = {})
|
220
|
+
data, _status_code, _headers = update_domain_with_http_info(domain_id, update_domain_request, opts)
|
225
221
|
data
|
226
222
|
end
|
227
223
|
|
@@ -232,7 +228,7 @@ module ClerkHttpClient
|
|
232
228
|
# @param [Hash] opts the optional parameters
|
233
229
|
# @return [Array<(Domain, Integer, Hash)>] Domain data, response status code and response headers
|
234
230
|
# PATCH
|
235
|
-
def
|
231
|
+
def update_domain_with_http_info(domain_id, update_domain_request, opts = {})
|
236
232
|
if @api_client.config.debugging
|
237
233
|
@api_client.config.logger.debug 'Calling API: DomainsApi.update_domain ...'
|
238
234
|
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
|
# Create an email address
|
23
23
|
# Create a new email address
|
24
|
-
# @param create_email_address_request [CreateEmailAddressRequest]
|
25
24
|
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [CreateEmailAddressRequest] :create_email_address_request
|
26
26
|
# @return [EmailAddress]
|
27
27
|
|
28
|
-
def
|
29
|
-
data, _status_code, _headers =
|
28
|
+
def create_email_address(opts = {})
|
29
|
+
data, _status_code, _headers = create_email_address_with_http_info(opts)
|
30
30
|
data
|
31
31
|
end
|
32
32
|
|
33
33
|
# Create an email address
|
34
34
|
# Create a new email address
|
35
|
-
# @param create_email_address_request [CreateEmailAddressRequest]
|
36
35
|
# @param [Hash] opts the optional parameters
|
36
|
+
# @option opts [CreateEmailAddressRequest] :create_email_address_request
|
37
37
|
# @return [Array<(EmailAddress, Integer, Hash)>] EmailAddress data, response status code and response headers
|
38
38
|
# POST
|
39
|
-
def
|
39
|
+
def create_email_address_with_http_info(opts = {})
|
40
40
|
if @api_client.config.debugging
|
41
41
|
@api_client.config.logger.debug 'Calling API: EmailAddressesApi.create_email_address ...'
|
42
42
|
end
|
43
|
-
# verify the required parameter 'create_email_address_request' is set
|
44
|
-
if @api_client.config.client_side_validation && create_email_address_request.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'create_email_address_request' when calling EmailAddressesApi.create_email_address"
|
46
|
-
end
|
47
43
|
# resource path
|
48
44
|
local_var_path = '/email_addresses'
|
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_email_address_request)
|
63
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_email_address_request'])
|
68
64
|
|
69
65
|
# return_type
|
70
66
|
return_type = opts[:debug_return_type] || 'EmailAddress'
|
@@ -95,8 +91,8 @@ module ClerkHttpClient
|
|
95
91
|
# @param [Hash] opts the optional parameters
|
96
92
|
# @return [DeletedObject]
|
97
93
|
|
98
|
-
def
|
99
|
-
data, _status_code, _headers =
|
94
|
+
def delete_email_address(email_address_id, opts = {})
|
95
|
+
data, _status_code, _headers = delete_email_address_with_http_info(email_address_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<(DeletedObject, Integer, Hash)>] DeletedObject data, response status code and response headers
|
108
104
|
# DELETE
|
109
|
-
def
|
105
|
+
def delete_email_address_with_http_info(email_address_id, opts = {})
|
110
106
|
if @api_client.config.debugging
|
111
107
|
@api_client.config.logger.debug 'Calling API: EmailAddressesApi.delete_email_address ...'
|
112
108
|
end
|
@@ -160,8 +156,8 @@ module ClerkHttpClient
|
|
160
156
|
# @param [Hash] opts the optional parameters
|
161
157
|
# @return [EmailAddress]
|
162
158
|
|
163
|
-
def
|
164
|
-
data, _status_code, _headers =
|
159
|
+
def get_email_address(email_address_id, opts = {})
|
160
|
+
data, _status_code, _headers = get_email_address_with_http_info(email_address_id, opts)
|
165
161
|
data
|
166
162
|
end
|
167
163
|
|
@@ -171,7 +167,7 @@ module ClerkHttpClient
|
|
171
167
|
# @param [Hash] opts the optional parameters
|
172
168
|
# @return [Array<(EmailAddress, Integer, Hash)>] EmailAddress data, response status code and response headers
|
173
169
|
# GET
|
174
|
-
def
|
170
|
+
def get_email_address_with_http_info(email_address_id, opts = {})
|
175
171
|
if @api_client.config.debugging
|
176
172
|
@api_client.config.logger.debug 'Calling API: EmailAddressesApi.get_email_address ...'
|
177
173
|
end
|
@@ -222,23 +218,23 @@ module ClerkHttpClient
|
|
222
218
|
# Update an email address
|
223
219
|
# Updates an email address.
|
224
220
|
# @param email_address_id [String] The ID of the email address to update
|
225
|
-
# @param update_email_address_request [UpdateEmailAddressRequest]
|
226
221
|
# @param [Hash] opts the optional parameters
|
222
|
+
# @option opts [UpdateEmailAddressRequest] :update_email_address_request
|
227
223
|
# @return [EmailAddress]
|
228
224
|
|
229
|
-
def
|
230
|
-
data, _status_code, _headers =
|
225
|
+
def update_email_address(email_address_id, opts = {})
|
226
|
+
data, _status_code, _headers = update_email_address_with_http_info(email_address_id, opts)
|
231
227
|
data
|
232
228
|
end
|
233
229
|
|
234
230
|
# Update an email address
|
235
231
|
# Updates an email address.
|
236
232
|
# @param email_address_id [String] The ID of the email address to update
|
237
|
-
# @param update_email_address_request [UpdateEmailAddressRequest]
|
238
233
|
# @param [Hash] opts the optional parameters
|
234
|
+
# @option opts [UpdateEmailAddressRequest] :update_email_address_request
|
239
235
|
# @return [Array<(EmailAddress, Integer, Hash)>] EmailAddress data, response status code and response headers
|
240
236
|
# PATCH
|
241
|
-
def
|
237
|
+
def update_email_address_with_http_info(email_address_id, opts = {})
|
242
238
|
if @api_client.config.debugging
|
243
239
|
@api_client.config.logger.debug 'Calling API: EmailAddressesApi.update_email_address ...'
|
244
240
|
end
|
@@ -246,10 +242,6 @@ module ClerkHttpClient
|
|
246
242
|
if @api_client.config.client_side_validation && email_address_id.nil?
|
247
243
|
fail ArgumentError, "Missing the required parameter 'email_address_id' when calling EmailAddressesApi.update_email_address"
|
248
244
|
end
|
249
|
-
# verify the required parameter 'update_email_address_request' is set
|
250
|
-
if @api_client.config.client_side_validation && update_email_address_request.nil?
|
251
|
-
fail ArgumentError, "Missing the required parameter 'update_email_address_request' when calling EmailAddressesApi.update_email_address"
|
252
|
-
end
|
253
245
|
# resource path
|
254
246
|
local_var_path = '/email_addresses/{email_address_id}'.sub('{' + 'email_address_id' + '}', CGI.escape(email_address_id.to_s))
|
255
247
|
|
@@ -270,7 +262,7 @@ module ClerkHttpClient
|
|
270
262
|
form_params = opts[:form_params] || {}
|
271
263
|
|
272
264
|
# http body (model)
|
273
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_email_address_request)
|
265
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_email_address_request'])
|
274
266
|
|
275
267
|
# return_type
|
276
268
|
return_type = opts[:debug_return_type] || 'EmailAddress'
|
@@ -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
|
|
@@ -26,8 +26,8 @@ module ClerkHttpClient
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [Template]
|
28
28
|
|
29
|
-
def
|
30
|
-
data, _status_code, _headers =
|
29
|
+
def get_template(template_type, slug, opts = {})
|
30
|
+
data, _status_code, _headers = get_template_with_http_info(template_type, slug, opts)
|
31
31
|
data
|
32
32
|
end
|
33
33
|
|
@@ -38,7 +38,7 @@ module ClerkHttpClient
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @return [Array<(Template, Integer, Hash)>] Template data, response status code and response headers
|
40
40
|
# GET
|
41
|
-
def
|
41
|
+
def get_template_with_http_info(template_type, slug, opts = {})
|
42
42
|
if @api_client.config.debugging
|
43
43
|
@api_client.config.logger.debug 'Calling API: EmailSMSTemplatesApi.get_template ...'
|
44
44
|
end
|
@@ -101,8 +101,8 @@ module ClerkHttpClient
|
|
101
101
|
# @param [Hash] opts the optional parameters
|
102
102
|
# @return [Array<Template>]
|
103
103
|
|
104
|
-
def
|
105
|
-
data, _status_code, _headers =
|
104
|
+
def get_template_list(template_type, opts = {})
|
105
|
+
data, _status_code, _headers = get_template_list_with_http_info(template_type, opts)
|
106
106
|
data
|
107
107
|
end
|
108
108
|
|
@@ -112,7 +112,7 @@ module ClerkHttpClient
|
|
112
112
|
# @param [Hash] opts the optional parameters
|
113
113
|
# @return [Array<(Array<Template>, Integer, Hash)>] Array<Template> data, response status code and response headers
|
114
114
|
# GET array
|
115
|
-
def
|
115
|
+
def get_template_list_with_http_info(template_type, opts = {})
|
116
116
|
if @api_client.config.debugging
|
117
117
|
@api_client.config.logger.debug 'Calling API: EmailSMSTemplatesApi.get_template_list ...'
|
118
118
|
end
|
@@ -173,8 +173,8 @@ module ClerkHttpClient
|
|
173
173
|
# @option opts [PreviewTemplateRequest] :preview_template_request Required parameters
|
174
174
|
# @return [Object]
|
175
175
|
|
176
|
-
def
|
177
|
-
data, _status_code, _headers =
|
176
|
+
def preview_template(template_type, slug, opts = {})
|
177
|
+
data, _status_code, _headers = preview_template_with_http_info(template_type, slug, opts)
|
178
178
|
data
|
179
179
|
end
|
180
180
|
|
@@ -186,7 +186,7 @@ module ClerkHttpClient
|
|
186
186
|
# @option opts [PreviewTemplateRequest] :preview_template_request Required parameters
|
187
187
|
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
188
188
|
# POST
|
189
|
-
def
|
189
|
+
def preview_template_with_http_info(template_type, slug, opts = {})
|
190
190
|
if @api_client.config.debugging
|
191
191
|
@api_client.config.logger.debug 'Calling API: EmailSMSTemplatesApi.preview_template ...'
|
192
192
|
end
|
@@ -250,8 +250,8 @@ module ClerkHttpClient
|
|
250
250
|
# @param [Hash] opts the optional parameters
|
251
251
|
# @return [Template]
|
252
252
|
|
253
|
-
def
|
254
|
-
data, _status_code, _headers =
|
253
|
+
def revert_template(template_type, slug, opts = {})
|
254
|
+
data, _status_code, _headers = revert_template_with_http_info(template_type, slug, opts)
|
255
255
|
data
|
256
256
|
end
|
257
257
|
|
@@ -262,7 +262,7 @@ module ClerkHttpClient
|
|
262
262
|
# @param [Hash] opts the optional parameters
|
263
263
|
# @return [Array<(Template, Integer, Hash)>] Template data, response status code and response headers
|
264
264
|
# POST
|
265
|
-
def
|
265
|
+
def revert_template_with_http_info(template_type, slug, opts = {})
|
266
266
|
if @api_client.config.debugging
|
267
267
|
@api_client.config.logger.debug 'Calling API: EmailSMSTemplatesApi.revert_template ...'
|
268
268
|
end
|
@@ -327,8 +327,8 @@ module ClerkHttpClient
|
|
327
327
|
# @option opts [ToggleTemplateDeliveryRequest] :toggle_template_delivery_request
|
328
328
|
# @return [Template]
|
329
329
|
|
330
|
-
def
|
331
|
-
data, _status_code, _headers =
|
330
|
+
def toggle_template_delivery(template_type, slug, opts = {})
|
331
|
+
data, _status_code, _headers = toggle_template_delivery_with_http_info(template_type, slug, opts)
|
332
332
|
data
|
333
333
|
end
|
334
334
|
|
@@ -340,7 +340,7 @@ module ClerkHttpClient
|
|
340
340
|
# @option opts [ToggleTemplateDeliveryRequest] :toggle_template_delivery_request
|
341
341
|
# @return [Array<(Template, Integer, Hash)>] Template data, response status code and response headers
|
342
342
|
# POST
|
343
|
-
def
|
343
|
+
def toggle_template_delivery_with_http_info(template_type, slug, opts = {})
|
344
344
|
if @api_client.config.debugging
|
345
345
|
@api_client.config.logger.debug 'Calling API: EmailSMSTemplatesApi.toggle_template_delivery ...'
|
346
346
|
end
|
@@ -410,8 +410,8 @@ module ClerkHttpClient
|
|
410
410
|
# @option opts [UpsertTemplateRequest] :upsert_template_request
|
411
411
|
# @return [Template]
|
412
412
|
|
413
|
-
def
|
414
|
-
data, _status_code, _headers =
|
413
|
+
def upsert_template(template_type, slug, opts = {})
|
414
|
+
data, _status_code, _headers = upsert_template_with_http_info(template_type, slug, opts)
|
415
415
|
data
|
416
416
|
end
|
417
417
|
|
@@ -423,7 +423,7 @@ module ClerkHttpClient
|
|
423
423
|
# @option opts [UpsertTemplateRequest] :upsert_template_request
|
424
424
|
# @return [Array<(Template, Integer, Hash)>] Template data, response status code and response headers
|
425
425
|
# PUT
|
426
|
-
def
|
426
|
+
def upsert_template_with_http_info(template_type, slug, opts = {})
|
427
427
|
if @api_client.config.debugging
|
428
428
|
@api_client.config.logger.debug 'Calling API: EmailSMSTemplatesApi.upsert_template ...'
|
429
429
|
end
|