clerk-http-client 1.0.0 → 2.0.0.beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +155 -191
- data/clerk-http-client.gemspec +1 -1
- data/docs/ActorTokensApi.md +26 -26
- data/docs/AllowListBlockListApi.md +72 -74
- data/docs/BetaFeaturesApi.md +42 -41
- data/docs/ClientsApi.md +36 -37
- data/docs/CreateBulkInvitationsRequestInner.md +28 -0
- data/docs/CreateInvitationRequest.md +6 -4
- data/docs/{CreateOAuthApplicationRequest.md → CreateOauthApplicationRequest.md} +1 -1
- data/docs/CreateOrganizationInvitationBulkRequestInner.md +2 -2
- data/docs/CreateOrganizationInvitationRequest.md +5 -3
- data/docs/CreateOrganizationRequest.md +3 -3
- data/docs/CreateSAMLConnectionRequest.md +2 -0
- data/docs/CreateSessionRequest.md +18 -0
- data/docs/CreateSessionToken200Response.md +20 -0
- data/docs/CreateSessionTokenFromTemplateRequest.md +18 -0
- data/docs/CreateSessionTokenRequest.md +18 -0
- data/docs/CreateUserRequest.md +3 -3
- data/docs/CreateWaitlistEntryRequest.md +20 -0
- data/docs/DomainsApi.md +46 -48
- data/docs/EmailAddress.md +2 -0
- data/docs/EmailAddressVerification.md +3 -3
- data/docs/EmailAddressesApi.md +52 -52
- data/docs/EmailSMSTemplatesApi.md +60 -66
- data/docs/FromOauth.md +26 -0
- data/docs/FromOauthError.md +47 -0
- data/docs/{GetOAuthAccessToken200ResponseInner.md → GetOauthAccessToken200ResponseInner.md} +4 -2
- data/docs/Instance.md +24 -0
- data/docs/InstanceSettingsApi.md +114 -45
- data/docs/Invitation.md +1 -1
- data/docs/InvitationsApi.md +110 -38
- data/docs/JWKS.md +18 -0
- data/docs/JWKSApi.md +14 -15
- data/docs/JWKSKeysInner.md +32 -0
- data/docs/JWTTemplatesApi.md +62 -63
- data/docs/ListWaitlistEntries200Response.md +20 -0
- data/docs/MergeOrganizationMetadataRequest.md +2 -2
- data/docs/MiscellaneousApi.md +11 -7
- data/docs/{OAuthApplication.md → OauthApplication.md} +4 -0
- data/docs/{OAuthApplicationWithSecret.md → OauthApplicationWithSecret.md} +4 -0
- data/docs/{OAuthApplicationsApi.md → OauthApplicationsApi.md} +90 -94
- data/docs/Organization.md +2 -2
- data/docs/OrganizationDomainApi.md +15 -13
- data/docs/OrganizationDomainsApi.md +103 -33
- data/docs/OrganizationInvitation.md +6 -2
- data/docs/OrganizationInvitationWithPublicOrganizationData.md +4 -2
- data/docs/OrganizationInvitationsApi.md +76 -81
- data/docs/OrganizationMembership.md +2 -2
- data/docs/OrganizationMembershipsApi.md +66 -70
- data/docs/OrganizationWithLogo.md +2 -2
- data/docs/OrganizationsApi.md +87 -93
- data/docs/PhoneNumbersApi.md +52 -52
- data/docs/ProxyChecksApi.md +16 -15
- data/docs/{RedirectURLsApi.md → RedirectUrlsApi.md} +46 -48
- data/docs/RevokeInvitation200Response.md +1 -1
- data/docs/SAML.md +1 -1
- data/docs/SAMLAccount.md +1 -1
- data/docs/SAMLConnectionsApi.md +59 -60
- data/docs/SchemasSAMLConnection.md +2 -0
- data/docs/SessionsApi.md +203 -60
- data/docs/SignInTokensApi.md +26 -26
- data/docs/SignUp.md +4 -2
- data/docs/SignUpsApi.md +16 -15
- data/docs/TestingTokensApi.md +11 -12
- data/docs/UpdateOrganizationMembershipMetadataRequest.md +2 -2
- data/docs/UpdateOrganizationRequest.md +2 -2
- data/docs/UpdateSAMLConnectionRequest.md +2 -0
- data/docs/UpdateUserRequest.md +3 -3
- data/docs/User.md +3 -3
- data/docs/UsersApi.md +297 -294
- data/docs/WaitlistEntriesApi.md +157 -0
- data/docs/WaitlistEntry.md +32 -0
- data/docs/WaitlistEntryInvitation.md +36 -0
- data/docs/WebhooksApi.md +30 -33
- data/lib/clerk-http-client/api/actor_tokens_api.rb +10 -14
- data/lib/clerk-http-client/api/allow_list_block_list_api.rb +25 -33
- data/lib/clerk-http-client/api/beta_features_api.rb +13 -21
- data/lib/clerk-http-client/api/clients_api.rb +13 -17
- data/lib/clerk-http-client/api/domains_api.rb +16 -20
- data/lib/clerk-http-client/api/email_addresses_api.rb +19 -27
- data/lib/clerk-http-client/api/email_sms_templates_api.rb +19 -19
- data/lib/clerk-http-client/api/instance_settings_api.rb +78 -31
- data/lib/clerk-http-client/api/invitations_api.rb +82 -17
- data/lib/clerk-http-client/api/jwks_api.rb +7 -7
- data/lib/clerk-http-client/api/jwt_templates_api.rb +22 -30
- data/lib/clerk-http-client/api/miscellaneous_api.rb +4 -4
- data/lib/clerk-http-client/api/{o_auth_applications_api.rb → oauth_applications_api.rb} +53 -57
- data/lib/clerk-http-client/api/organization_domains_api.rb +92 -10
- data/lib/clerk-http-client/api/organization_invitations_api.rb +25 -29
- data/lib/clerk-http-client/api/organization_memberships_api.rb +22 -26
- data/lib/clerk-http-client/api/organizations_api.rb +30 -34
- data/lib/clerk-http-client/api/phone_numbers_api.rb +19 -27
- data/lib/clerk-http-client/api/proxy_checks_api.rb +7 -11
- data/lib/clerk-http-client/api/redirect_urls_api.rb +16 -20
- data/lib/clerk-http-client/api/saml_connections_api.rb +22 -23
- data/lib/clerk-http-client/api/sessions_api.rb +165 -20
- data/lib/clerk-http-client/api/sign_in_tokens_api.rb +10 -14
- data/lib/clerk-http-client/api/sign_ups_api.rb +7 -11
- data/lib/clerk-http-client/api/testing_tokens_api.rb +6 -6
- data/lib/clerk-http-client/api/users_api.rb +149 -92
- data/lib/clerk-http-client/api/waitlist_entries_api.rb +178 -0
- data/lib/clerk-http-client/api/webhooks_api.rb +10 -10
- data/lib/clerk-http-client/api_client.rb +1 -1
- data/lib/clerk-http-client/api_error.rb +1 -1
- data/lib/clerk-http-client/configuration.rb +1 -1
- data/lib/clerk-http-client/models/actor_token.rb +2 -1
- data/lib/clerk-http-client/models/add_domain_request.rb +2 -1
- data/lib/clerk-http-client/models/admin.rb +2 -1
- data/lib/clerk-http-client/models/allowlist_identifier.rb +2 -1
- data/lib/clerk-http-client/models/blocklist_identifier.rb +2 -1
- data/lib/clerk-http-client/models/blocklist_identifiers.rb +2 -1
- data/lib/clerk-http-client/models/change_production_instance_domain_request.rb +2 -1
- data/lib/clerk-http-client/models/clerk_error.rb +2 -1
- data/lib/clerk-http-client/models/clerk_errors.rb +2 -1
- data/lib/clerk-http-client/models/client.rb +2 -1
- data/lib/clerk-http-client/models/{c_name_target.rb → cname_target.rb} +2 -1
- data/lib/clerk-http-client/models/create_actor_token_request.rb +2 -1
- data/lib/clerk-http-client/models/create_allowlist_identifier_request.rb +2 -1
- data/lib/clerk-http-client/models/create_blocklist_identifier_request.rb +2 -1
- data/lib/clerk-http-client/models/create_bulk_invitations_request_inner.rb +306 -0
- data/lib/clerk-http-client/models/create_email_address_request.rb +2 -1
- data/lib/clerk-http-client/models/create_invitation_request.rb +58 -10
- data/lib/clerk-http-client/models/create_jwt_template_request.rb +2 -1
- data/lib/clerk-http-client/models/{create_o_auth_application_request.rb → create_oauth_application_request.rb} +2 -8
- data/lib/clerk-http-client/models/create_organization_domain_request.rb +2 -1
- data/lib/clerk-http-client/models/create_organization_invitation_bulk_request_inner.rb +12 -7
- data/lib/clerk-http-client/models/create_organization_invitation_request.rb +51 -11
- data/lib/clerk-http-client/models/create_organization_membership_request.rb +2 -1
- data/lib/clerk-http-client/models/create_organization_request.rb +10 -12
- data/lib/clerk-http-client/models/create_phone_number_request.rb +2 -1
- data/lib/clerk-http-client/models/create_redirect_url_request.rb +2 -1
- data/lib/clerk-http-client/models/create_saml_connection_request.rb +14 -2
- data/lib/clerk-http-client/models/create_saml_connection_request_attribute_mapping.rb +2 -1
- data/lib/clerk-http-client/models/create_session_request.rb +216 -0
- data/lib/clerk-http-client/models/create_session_token200_response.rb +258 -0
- data/lib/clerk-http-client/models/create_session_token_from_template_request.rb +241 -0
- data/lib/clerk-http-client/models/create_session_token_request.rb +241 -0
- data/lib/clerk-http-client/models/create_sign_in_token_request.rb +2 -1
- data/lib/clerk-http-client/models/create_user_request.rb +14 -7
- data/lib/clerk-http-client/models/create_waitlist_entry_request.rb +233 -0
- data/lib/clerk-http-client/models/deleted_object.rb +2 -1
- data/lib/clerk-http-client/models/disable_mfa200_response.rb +2 -1
- data/lib/clerk-http-client/models/domain.rb +2 -1
- data/lib/clerk-http-client/models/domains.rb +2 -1
- data/lib/clerk-http-client/models/email_address.rb +13 -2
- data/lib/clerk-http-client/models/email_address_verification.rb +6 -3
- data/lib/clerk-http-client/models/from_o_auth.rb +324 -0
- data/{resources/templates/partial_anyof_module.mustache → lib/clerk-http-client/models/from_o_auth_error.rb} +29 -19
- data/lib/clerk-http-client/models/from_oauth.rb +325 -0
- data/{resources/templates/partial_oneof_module.mustache → lib/clerk-http-client/models/from_oauth_error.rb} +24 -54
- data/lib/clerk-http-client/models/{get_o_auth_access_token200_response_inner.rb → get_oauth_access_token200_response_inner.rb} +21 -7
- data/lib/clerk-http-client/models/identification_link.rb +4 -3
- data/lib/clerk-http-client/models/instance.rb +280 -0
- data/lib/clerk-http-client/models/instance_restrictions.rb +2 -1
- data/lib/clerk-http-client/models/invitation.rb +6 -3
- data/lib/clerk-http-client/models/jwks.rb +217 -0
- data/lib/clerk-http-client/models/jwks_keys_inner.rb +278 -0
- data/lib/clerk-http-client/models/jwt_template.rb +2 -1
- data/lib/clerk-http-client/models/list_waitlist_entries200_response.rb +241 -0
- data/lib/clerk-http-client/models/merge_organization_metadata_request.rb +10 -5
- data/lib/clerk-http-client/models/o_auth_application.rb +34 -2
- data/lib/clerk-http-client/models/o_auth_application_with_secret.rb +34 -2
- data/lib/clerk-http-client/models/o_auth_applications.rb +1 -1
- data/lib/clerk-http-client/models/oauth.rb +2 -2
- data/lib/clerk-http-client/models/oauth_application.rb +482 -0
- data/lib/clerk-http-client/models/oauth_application_with_secret.rb +499 -0
- data/lib/clerk-http-client/models/oauth_applications.rb +241 -0
- data/lib/clerk-http-client/models/organization.rb +11 -5
- data/lib/clerk-http-client/models/organization_domain.rb +2 -1
- data/lib/clerk-http-client/models/organization_domain_verification.rb +2 -1
- data/lib/clerk-http-client/models/organization_domains.rb +2 -1
- data/lib/clerk-http-client/models/organization_invitation.rb +32 -6
- data/lib/clerk-http-client/models/organization_invitation_with_public_organization_data.rb +21 -6
- data/lib/clerk-http-client/models/organization_invitation_with_public_organization_data_public_organization_data.rb +2 -1
- data/lib/clerk-http-client/models/organization_invitations.rb +2 -1
- data/lib/clerk-http-client/models/organization_invitations_with_public_organization_data.rb +2 -1
- data/lib/clerk-http-client/models/organization_membership.rb +10 -5
- data/lib/clerk-http-client/models/organization_membership_public_user_data.rb +2 -1
- data/lib/clerk-http-client/models/organization_memberships.rb +2 -1
- data/lib/clerk-http-client/models/organization_settings.rb +2 -1
- data/lib/clerk-http-client/models/organization_with_logo.rb +11 -5
- data/lib/clerk-http-client/models/organizations.rb +2 -1
- data/lib/clerk-http-client/models/otp.rb +2 -1
- data/lib/clerk-http-client/models/passkey.rb +2 -1
- data/lib/clerk-http-client/models/phone_number.rb +2 -1
- data/lib/clerk-http-client/models/phone_number_verification.rb +4 -1
- data/lib/clerk-http-client/models/preview_template_request.rb +2 -1
- data/lib/clerk-http-client/models/proxy_check.rb +2 -1
- data/lib/clerk-http-client/models/redirect_url.rb +2 -1
- data/lib/clerk-http-client/models/revoke_invitation200_response.rb +6 -3
- data/lib/clerk-http-client/models/revoke_organization_invitation_request.rb +2 -1
- data/lib/clerk-http-client/models/saml.rb +3 -2
- data/lib/clerk-http-client/models/saml_account.rb +6 -3
- data/lib/clerk-http-client/models/saml_account_saml_connection.rb +4 -1
- data/lib/clerk-http-client/models/saml_account_verification.rb +4 -1
- data/lib/clerk-http-client/models/saml_connection.rb +2 -1
- data/lib/clerk-http-client/models/saml_connections.rb +2 -1
- data/lib/clerk-http-client/models/schemas_passkey.rb +2 -1
- data/lib/clerk-http-client/models/schemas_passkey_verification.rb +4 -1
- data/lib/clerk-http-client/models/schemas_saml_connection.rb +13 -2
- data/lib/clerk-http-client/models/schemas_saml_connection_attribute_mapping.rb +2 -1
- data/lib/clerk-http-client/models/session.rb +2 -1
- data/lib/clerk-http-client/models/session_latest_activity.rb +2 -1
- data/lib/clerk-http-client/models/sign_in_token.rb +2 -1
- data/lib/clerk-http-client/models/sign_up.rb +22 -6
- data/lib/clerk-http-client/models/svix_url.rb +2 -1
- data/lib/clerk-http-client/models/template.rb +2 -1
- data/lib/clerk-http-client/models/testing_token.rb +2 -1
- data/lib/clerk-http-client/models/ticket.rb +2 -1
- data/lib/clerk-http-client/models/toggle_template_delivery_request.rb +2 -1
- data/lib/clerk-http-client/models/total_count.rb +2 -1
- data/lib/clerk-http-client/models/totp.rb +2 -1
- data/lib/clerk-http-client/models/update_domain_request.rb +2 -1
- data/lib/clerk-http-client/models/update_email_address_request.rb +2 -1
- data/lib/clerk-http-client/models/update_instance_auth_config200_response.rb +2 -1
- data/lib/clerk-http-client/models/update_instance_auth_config_request.rb +2 -1
- data/lib/clerk-http-client/models/update_instance_organization_settings_request.rb +2 -1
- data/lib/clerk-http-client/models/update_instance_request.rb +2 -1
- data/lib/clerk-http-client/models/update_instance_restrictions_request.rb +2 -1
- data/lib/clerk-http-client/models/{update_o_auth_application_request.rb → update_oauth_application_request.rb} +2 -1
- data/lib/clerk-http-client/models/update_organization_domain_request.rb +2 -1
- data/lib/clerk-http-client/models/update_organization_membership_metadata_request.rb +10 -5
- data/lib/clerk-http-client/models/update_organization_membership_request.rb +2 -1
- data/lib/clerk-http-client/models/update_organization_request.rb +10 -5
- data/lib/clerk-http-client/models/update_phone_number_request.rb +2 -1
- data/lib/clerk-http-client/models/update_production_instance_domain_request.rb +2 -1
- data/lib/clerk-http-client/models/update_saml_connection_request.rb +14 -2
- data/lib/clerk-http-client/models/update_saml_connection_request_attribute_mapping.rb +2 -1
- data/lib/clerk-http-client/models/update_sign_up_request.rb +2 -1
- data/lib/clerk-http-client/models/update_user_metadata_request.rb +2 -1
- data/lib/clerk-http-client/models/update_user_request.rb +14 -7
- data/lib/clerk-http-client/models/upsert_template_request.rb +2 -1
- data/lib/clerk-http-client/models/user.rb +14 -7
- data/lib/clerk-http-client/models/verify_client_request.rb +2 -1
- data/lib/clerk-http-client/models/verify_domain_proxy_request.rb +2 -1
- data/lib/clerk-http-client/models/verify_password200_response.rb +2 -1
- data/lib/clerk-http-client/models/verify_password_request.rb +2 -1
- data/lib/clerk-http-client/models/verify_session_request.rb +2 -1
- data/lib/clerk-http-client/models/verify_totp200_response.rb +2 -1
- data/lib/clerk-http-client/models/verify_totp_request.rb +2 -1
- data/lib/clerk-http-client/models/waitlist_entry.rb +370 -0
- data/lib/clerk-http-client/models/waitlist_entry_invitation.rb +397 -0
- data/lib/clerk-http-client/models/web3_signature.rb +4 -3
- data/lib/clerk-http-client/models/web3_wallet.rb +2 -1
- data/lib/clerk-http-client/models/web3_wallet_verification.rb +4 -1
- data/lib/clerk-http-client/version.rb +1 -1
- data/lib/clerk-http-client.rb +56 -59
- data/spec/api/actor_tokens_api_spec.rb +1 -1
- data/spec/api/allow_list_block_list_api_spec.rb +2 -2
- data/spec/api/beta_features_api_spec.rb +2 -2
- data/spec/api/clients_api_spec.rb +1 -1
- data/spec/api/domains_api_spec.rb +1 -1
- data/spec/api/email_addresses_api_spec.rb +2 -2
- data/spec/api/instance_settings_api_spec.rb +3 -3
- data/spec/api/invitations_api_spec.rb +1 -1
- data/spec/api/jwt_templates_api_spec.rb +2 -2
- data/spec/api/{o_auth_applications_api_spec.rb → oauth_applications_api_spec.rb} +15 -15
- data/spec/api/organizations_api_spec.rb +1 -1
- data/spec/api/phone_numbers_api_spec.rb +2 -2
- data/spec/api/proxy_checks_api_spec.rb +1 -1
- data/spec/api/redirect_urls_api_spec.rb +1 -1
- data/spec/api/saml_connections_api_spec.rb +1 -1
- data/spec/api/sign_in_tokens_api_spec.rb +1 -1
- data/spec/api/sign_ups_api_spec.rb +1 -1
- data/spec/api/users_api_spec.rb +3 -3
- data/spec/api/waitlist_entries_api_spec.rb +63 -0
- data/spec/models/cname_target_spec.rb +48 -0
- data/spec/models/create_bulk_invitations_request_inner_spec.rb +66 -0
- data/spec/models/create_oauth_application_request_spec.rb +54 -0
- data/spec/models/create_session_request_spec.rb +36 -0
- data/spec/models/create_session_token200_response_spec.rb +46 -0
- data/spec/models/create_session_token_from_template_request_spec.rb +36 -0
- data/spec/models/create_session_token_request_spec.rb +36 -0
- data/spec/models/create_waitlist_entry_request_spec.rb +42 -0
- data/spec/models/from_o_auth_error_spec.rb +32 -0
- data/spec/models/from_o_auth_spec.rb +64 -0
- data/spec/models/from_oauth_error_spec.rb +32 -0
- data/spec/models/from_oauth_spec.rb +64 -0
- data/spec/models/get_oauth_access_token200_response_inner_spec.rb +90 -0
- data/spec/models/identification_link_spec.rb +1 -1
- data/spec/models/instance_spec.rb +58 -0
- data/spec/models/jwks_keys_inner_spec.rb +78 -0
- data/spec/models/jwks_spec.rb +36 -0
- data/spec/models/list_waitlist_entries200_response_spec.rb +42 -0
- data/spec/models/oauth_application_spec.rb +124 -0
- data/spec/models/oauth_application_with_secret_spec.rb +130 -0
- data/spec/models/oauth_applications_spec.rb +42 -0
- data/spec/models/oauth_spec.rb +1 -1
- data/spec/models/update_oauth_application_request_spec.rb +48 -0
- data/spec/models/waitlist_entry_invitation_spec.rb +98 -0
- data/spec/models/waitlist_entry_spec.rb +86 -0
- data/spec/spec_helper.rb +1 -1
- metadata +104 -65
- data/bin/fmt +0 -5
- data/bin/generate +0 -8
- data/bin/setup +0 -7
- data/openapitools.json +0 -7
- data/pkg/clerk-http-client-1.0.0.gem +0 -0
- data/resources/.DS_Store +0 -0
- data/resources/oas/bapi-2024-10-01.yml +0 -7238
- data/resources/templates/Gemfile.mustache +0 -9
- data/resources/templates/README.mustache +0 -163
- data/resources/templates/Rakefile.mustache +0 -10
- data/resources/templates/api.mustache +0 -257
- data/resources/templates/api_client.mustache +0 -246
- data/resources/templates/api_client_faraday_partial.mustache +0 -200
- data/resources/templates/api_client_httpx_partial.mustache +0 -134
- data/resources/templates/api_client_typhoeus_partial.mustache +0 -161
- data/resources/templates/api_doc.mustache +0 -132
- data/resources/templates/api_error.mustache +0 -50
- data/resources/templates/api_info.mustache +0 -12
- data/resources/templates/api_test.mustache +0 -47
- data/resources/templates/base_object.mustache +0 -114
- data/resources/templates/configuration.mustache +0 -491
- data/resources/templates/configuration_faraday_partial.mustache +0 -40
- data/resources/templates/configuration_httpx_partial.mustache +0 -11
- data/resources/templates/configuration_typhoeus_partial.mustache +0 -41
- data/resources/templates/gem.mustache +0 -89
- data/resources/templates/gemspec.mustache +0 -41
- data/resources/templates/git_push.sh.mustache +0 -57
- data/resources/templates/gitignore.mustache +0 -39
- data/resources/templates/gitlab-ci.mustache +0 -26
- data/resources/templates/model.mustache +0 -33
- data/resources/templates/model_doc.mustache +0 -12
- data/resources/templates/model_test.mustache +0 -82
- data/resources/templates/partial_model_enum_class.mustache +0 -23
- data/resources/templates/partial_model_generic.mustache +0 -377
- data/resources/templates/partial_model_generic_doc.mustache +0 -28
- data/resources/templates/partial_oneof_module_doc.mustache +0 -93
- data/resources/templates/rspec.mustache +0 -2
- data/resources/templates/rubocop.mustache +0 -148
- data/resources/templates/spec_helper.mustache +0 -103
- data/resources/templates/travis.mustache +0 -11
- data/resources/templates/version.mustache +0 -7
- data/sdk-generator-config.json +0 -25
- /data/docs/{CNameTarget.md → CnameTarget.md} +0 -0
- /data/docs/{CreateRedirectURLRequest.md → CreateRedirectUrlRequest.md} +0 -0
- /data/docs/{OAuthApplications.md → OauthApplications.md} +0 -0
- /data/docs/{RedirectURL.md → RedirectUrl.md} +0 -0
- /data/docs/{SvixURL.md → SvixUrl.md} +0 -0
- /data/docs/{UpdateOAuthApplicationRequest.md → UpdateOauthApplicationRequest.md} +0 -0
@@ -4,17 +4,17 @@ All URIs are relative to *https://api.clerk.com/v1*
|
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**
|
8
|
-
| [**
|
9
|
-
| [**
|
10
|
-
| [**
|
11
|
-
| [**
|
12
|
-
| [**
|
7
|
+
| [**create_oauth_application**](OAuthApplicationsApi.md#create_oauth_application) | **POST** /oauth_applications | Create an OAuth application |
|
8
|
+
| [**delete_oauth_application**](OAuthApplicationsApi.md#delete_oauth_application) | **DELETE** /oauth_applications/{oauth_application_id} | Delete an OAuth application |
|
9
|
+
| [**get_oauth_application**](OAuthApplicationsApi.md#get_oauth_application) | **GET** /oauth_applications/{oauth_application_id} | Retrieve an OAuth application by ID |
|
10
|
+
| [**list_oauth_applications**](OAuthApplicationsApi.md#list_oauth_applications) | **GET** /oauth_applications | Get a list of OAuth applications for an instance |
|
11
|
+
| [**rotate_oauth_application_secret**](OAuthApplicationsApi.md#rotate_oauth_application_secret) | **POST** /oauth_applications/{oauth_application_id}/rotate_secret | Rotate the client secret of the given OAuth application |
|
12
|
+
| [**update_oauth_application**](OAuthApplicationsApi.md#update_oauth_application) | **PATCH** /oauth_applications/{oauth_application_id} | Update an OAuth application |
|
13
13
|
|
14
14
|
|
15
|
-
##
|
15
|
+
## create_oauth_application
|
16
16
|
|
17
|
-
> <OAuthApplicationWithSecret>
|
17
|
+
> <OAuthApplicationWithSecret> create_oauth_application(opts)
|
18
18
|
|
19
19
|
Create an OAuth application
|
20
20
|
|
@@ -24,40 +24,41 @@ Creates a new OAuth application with the given name and callback URL for an inst
|
|
24
24
|
|
25
25
|
```ruby
|
26
26
|
require 'time'
|
27
|
-
require 'clerk
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
config.
|
27
|
+
require 'clerk'
|
28
|
+
|
29
|
+
## Setup
|
30
|
+
Clerk.configure do |config|
|
31
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
32
32
|
end
|
33
33
|
|
34
|
-
|
35
|
-
|
34
|
+
opts = {
|
35
|
+
create_oauth_application_request: ClerkHttpClient::CreateOAuthApplicationRequest.new({name: 'name_example'}) # CreateOAuthApplicationRequest |
|
36
|
+
}
|
36
37
|
|
37
38
|
begin
|
38
39
|
# Create an OAuth application
|
39
|
-
result =
|
40
|
+
result = Clerk::SDK.oauth_applications.create_oauth_application(opts)
|
40
41
|
p result
|
41
42
|
rescue ClerkHttpClient::ApiError => e
|
42
|
-
puts "Error when calling
|
43
|
+
puts "Error when calling Clerk::SDK.oauth_applications->create_oauth_application: #{e}"
|
43
44
|
end
|
44
45
|
```
|
45
46
|
|
46
|
-
#### Using the
|
47
|
+
#### Using the `create_oauth_application_with_http_info variant
|
47
48
|
|
48
49
|
This returns an Array which contains the response data, status code and headers.
|
49
50
|
|
50
|
-
> <Array(<OAuthApplicationWithSecret>, Integer, Hash)>
|
51
|
+
> <Array(<OAuthApplicationWithSecret>, Integer, Hash)> create_oauth_application_with_http_info(opts)
|
51
52
|
|
52
53
|
```ruby
|
53
54
|
begin
|
54
55
|
# Create an OAuth application
|
55
|
-
data, status_code, headers =
|
56
|
+
data, status_code, headers = Clerk::SDK.oauth_applications.create_oauth_application_with_http_info(opts)
|
56
57
|
p status_code # => 2xx
|
57
58
|
p headers # => { ... }
|
58
59
|
p data # => <OAuthApplicationWithSecret>
|
59
60
|
rescue ClerkHttpClient::ApiError => e
|
60
|
-
puts "Error when calling
|
61
|
+
puts "Error when calling Clerk::SDK.oauth_applications->create_oauth_application_with_http_info: #{e}"
|
61
62
|
end
|
62
63
|
```
|
63
64
|
|
@@ -65,7 +66,7 @@ end
|
|
65
66
|
|
66
67
|
| Name | Type | Description | Notes |
|
67
68
|
| ---- | ---- | ----------- | ----- |
|
68
|
-
| **
|
69
|
+
| **create_oauth_application_request** | [**CreateOAuthApplicationRequest**](CreateOAuthApplicationRequest.md) | | [optional] |
|
69
70
|
|
70
71
|
### Return type
|
71
72
|
|
@@ -81,9 +82,9 @@ end
|
|
81
82
|
- **Accept**: application/json
|
82
83
|
|
83
84
|
|
84
|
-
##
|
85
|
+
## delete_oauth_application
|
85
86
|
|
86
|
-
> <DeletedObject>
|
87
|
+
> <DeletedObject> delete_oauth_application(oauth_application_id)
|
87
88
|
|
88
89
|
Delete an OAuth application
|
89
90
|
|
@@ -93,40 +94,39 @@ Deletes the given OAuth application. This is not reversible.
|
|
93
94
|
|
94
95
|
```ruby
|
95
96
|
require 'time'
|
96
|
-
require 'clerk
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
config.
|
97
|
+
require 'clerk'
|
98
|
+
|
99
|
+
## Setup
|
100
|
+
Clerk.configure do |config|
|
101
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
101
102
|
end
|
102
103
|
|
103
|
-
api_instance = ClerkHttpClient::OAuthApplicationsApi.new
|
104
104
|
oauth_application_id = 'oauth_application_id_example' # String | The ID of the OAuth application to delete
|
105
105
|
|
106
106
|
begin
|
107
107
|
# Delete an OAuth application
|
108
|
-
result =
|
108
|
+
result = Clerk::SDK.oauth_applications.delete_oauth_application(oauth_application_id)
|
109
109
|
p result
|
110
110
|
rescue ClerkHttpClient::ApiError => e
|
111
|
-
puts "Error when calling
|
111
|
+
puts "Error when calling Clerk::SDK.oauth_applications->delete_oauth_application: #{e}"
|
112
112
|
end
|
113
113
|
```
|
114
114
|
|
115
|
-
#### Using the
|
115
|
+
#### Using the `delete_oauth_application_with_http_info variant
|
116
116
|
|
117
117
|
This returns an Array which contains the response data, status code and headers.
|
118
118
|
|
119
|
-
> <Array(<DeletedObject>, Integer, Hash)>
|
119
|
+
> <Array(<DeletedObject>, Integer, Hash)> delete_oauth_application_with_http_info(oauth_application_id)
|
120
120
|
|
121
121
|
```ruby
|
122
122
|
begin
|
123
123
|
# Delete an OAuth application
|
124
|
-
data, status_code, headers =
|
124
|
+
data, status_code, headers = Clerk::SDK.oauth_applications.delete_oauth_application_with_http_info(oauth_application_id)
|
125
125
|
p status_code # => 2xx
|
126
126
|
p headers # => { ... }
|
127
127
|
p data # => <DeletedObject>
|
128
128
|
rescue ClerkHttpClient::ApiError => e
|
129
|
-
puts "Error when calling
|
129
|
+
puts "Error when calling Clerk::SDK.oauth_applications->delete_oauth_application_with_http_info: #{e}"
|
130
130
|
end
|
131
131
|
```
|
132
132
|
|
@@ -150,9 +150,9 @@ end
|
|
150
150
|
- **Accept**: application/json
|
151
151
|
|
152
152
|
|
153
|
-
##
|
153
|
+
## get_oauth_application
|
154
154
|
|
155
|
-
> <OAuthApplication>
|
155
|
+
> <OAuthApplication> get_oauth_application(oauth_application_id)
|
156
156
|
|
157
157
|
Retrieve an OAuth application by ID
|
158
158
|
|
@@ -162,40 +162,39 @@ Fetches the OAuth application whose ID matches the provided `id` in the path.
|
|
162
162
|
|
163
163
|
```ruby
|
164
164
|
require 'time'
|
165
|
-
require 'clerk
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
config.
|
165
|
+
require 'clerk'
|
166
|
+
|
167
|
+
## Setup
|
168
|
+
Clerk.configure do |config|
|
169
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
170
170
|
end
|
171
171
|
|
172
|
-
api_instance = ClerkHttpClient::OAuthApplicationsApi.new
|
173
172
|
oauth_application_id = 'oauth_application_id_example' # String | The ID of the OAuth application
|
174
173
|
|
175
174
|
begin
|
176
175
|
# Retrieve an OAuth application by ID
|
177
|
-
result =
|
176
|
+
result = Clerk::SDK.oauth_applications.get_oauth_application(oauth_application_id)
|
178
177
|
p result
|
179
178
|
rescue ClerkHttpClient::ApiError => e
|
180
|
-
puts "Error when calling
|
179
|
+
puts "Error when calling Clerk::SDK.oauth_applications->get_oauth_application: #{e}"
|
181
180
|
end
|
182
181
|
```
|
183
182
|
|
184
|
-
#### Using the
|
183
|
+
#### Using the `get_oauth_application_with_http_info variant
|
185
184
|
|
186
185
|
This returns an Array which contains the response data, status code and headers.
|
187
186
|
|
188
|
-
> <Array(<OAuthApplication>, Integer, Hash)>
|
187
|
+
> <Array(<OAuthApplication>, Integer, Hash)> get_oauth_application_with_http_info(oauth_application_id)
|
189
188
|
|
190
189
|
```ruby
|
191
190
|
begin
|
192
191
|
# Retrieve an OAuth application by ID
|
193
|
-
data, status_code, headers =
|
192
|
+
data, status_code, headers = Clerk::SDK.oauth_applications.get_oauth_application_with_http_info(oauth_application_id)
|
194
193
|
p status_code # => 2xx
|
195
194
|
p headers # => { ... }
|
196
195
|
p data # => <OAuthApplication>
|
197
196
|
rescue ClerkHttpClient::ApiError => e
|
198
|
-
puts "Error when calling
|
197
|
+
puts "Error when calling Clerk::SDK.oauth_applications->get_oauth_application_with_http_info: #{e}"
|
199
198
|
end
|
200
199
|
```
|
201
200
|
|
@@ -219,9 +218,9 @@ end
|
|
219
218
|
- **Accept**: application/json
|
220
219
|
|
221
220
|
|
222
|
-
##
|
221
|
+
## list_oauth_applications
|
223
222
|
|
224
|
-
> <OAuthApplications>
|
223
|
+
> <OAuthApplications> list_oauth_applications(opts)
|
225
224
|
|
226
225
|
Get a list of OAuth applications for an instance
|
227
226
|
|
@@ -231,14 +230,13 @@ This request returns the list of OAuth applications for an instance. Results can
|
|
231
230
|
|
232
231
|
```ruby
|
233
232
|
require 'time'
|
234
|
-
require 'clerk
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
config.
|
233
|
+
require 'clerk'
|
234
|
+
|
235
|
+
## Setup
|
236
|
+
Clerk.configure do |config|
|
237
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
239
238
|
end
|
240
239
|
|
241
|
-
api_instance = ClerkHttpClient::OAuthApplicationsApi.new
|
242
240
|
opts = {
|
243
241
|
limit: 8.14, # Float | Applies a limit to the number of results returned. Can be used for paginating the results together with `offset`.
|
244
242
|
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`.
|
@@ -246,28 +244,28 @@ opts = {
|
|
246
244
|
|
247
245
|
begin
|
248
246
|
# Get a list of OAuth applications for an instance
|
249
|
-
result =
|
247
|
+
result = Clerk::SDK.oauth_applications.list_oauth_applications(opts)
|
250
248
|
p result
|
251
249
|
rescue ClerkHttpClient::ApiError => e
|
252
|
-
puts "Error when calling
|
250
|
+
puts "Error when calling Clerk::SDK.oauth_applications->list_oauth_applications: #{e}"
|
253
251
|
end
|
254
252
|
```
|
255
253
|
|
256
|
-
#### Using the
|
254
|
+
#### Using the `list_oauth_applications_with_http_info variant
|
257
255
|
|
258
256
|
This returns an Array which contains the response data, status code and headers.
|
259
257
|
|
260
|
-
> <Array(<OAuthApplications>, Integer, Hash)>
|
258
|
+
> <Array(<OAuthApplications>, Integer, Hash)> list_oauth_applications_with_http_info(opts)
|
261
259
|
|
262
260
|
```ruby
|
263
261
|
begin
|
264
262
|
# Get a list of OAuth applications for an instance
|
265
|
-
data, status_code, headers =
|
263
|
+
data, status_code, headers = Clerk::SDK.oauth_applications.list_oauth_applications_with_http_info(opts)
|
266
264
|
p status_code # => 2xx
|
267
265
|
p headers # => { ... }
|
268
266
|
p data # => <OAuthApplications>
|
269
267
|
rescue ClerkHttpClient::ApiError => e
|
270
|
-
puts "Error when calling
|
268
|
+
puts "Error when calling Clerk::SDK.oauth_applications->list_oauth_applications_with_http_info: #{e}"
|
271
269
|
end
|
272
270
|
```
|
273
271
|
|
@@ -292,9 +290,9 @@ end
|
|
292
290
|
- **Accept**: application/json
|
293
291
|
|
294
292
|
|
295
|
-
##
|
293
|
+
## rotate_oauth_application_secret
|
296
294
|
|
297
|
-
> <OAuthApplicationWithSecret>
|
295
|
+
> <OAuthApplicationWithSecret> rotate_oauth_application_secret(oauth_application_id)
|
298
296
|
|
299
297
|
Rotate the client secret of the given OAuth application
|
300
298
|
|
@@ -304,40 +302,39 @@ Rotates the OAuth application's client secret. When the client secret is rotated
|
|
304
302
|
|
305
303
|
```ruby
|
306
304
|
require 'time'
|
307
|
-
require 'clerk
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
config.
|
305
|
+
require 'clerk'
|
306
|
+
|
307
|
+
## Setup
|
308
|
+
Clerk.configure do |config|
|
309
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
312
310
|
end
|
313
311
|
|
314
|
-
api_instance = ClerkHttpClient::OAuthApplicationsApi.new
|
315
312
|
oauth_application_id = 'oauth_application_id_example' # String | The ID of the OAuth application for which to rotate the client secret
|
316
313
|
|
317
314
|
begin
|
318
315
|
# Rotate the client secret of the given OAuth application
|
319
|
-
result =
|
316
|
+
result = Clerk::SDK.oauth_applications.rotate_oauth_application_secret(oauth_application_id)
|
320
317
|
p result
|
321
318
|
rescue ClerkHttpClient::ApiError => e
|
322
|
-
puts "Error when calling
|
319
|
+
puts "Error when calling Clerk::SDK.oauth_applications->rotate_oauth_application_secret: #{e}"
|
323
320
|
end
|
324
321
|
```
|
325
322
|
|
326
|
-
#### Using the
|
323
|
+
#### Using the `rotate_oauth_application_secret_with_http_info variant
|
327
324
|
|
328
325
|
This returns an Array which contains the response data, status code and headers.
|
329
326
|
|
330
|
-
> <Array(<OAuthApplicationWithSecret>, Integer, Hash)>
|
327
|
+
> <Array(<OAuthApplicationWithSecret>, Integer, Hash)> rotate_oauth_application_secret_with_http_info(oauth_application_id)
|
331
328
|
|
332
329
|
```ruby
|
333
330
|
begin
|
334
331
|
# Rotate the client secret of the given OAuth application
|
335
|
-
data, status_code, headers =
|
332
|
+
data, status_code, headers = Clerk::SDK.oauth_applications.rotate_oauth_application_secret_with_http_info(oauth_application_id)
|
336
333
|
p status_code # => 2xx
|
337
334
|
p headers # => { ... }
|
338
335
|
p data # => <OAuthApplicationWithSecret>
|
339
336
|
rescue ClerkHttpClient::ApiError => e
|
340
|
-
puts "Error when calling
|
337
|
+
puts "Error when calling Clerk::SDK.oauth_applications->rotate_oauth_application_secret_with_http_info: #{e}"
|
341
338
|
end
|
342
339
|
```
|
343
340
|
|
@@ -361,9 +358,9 @@ end
|
|
361
358
|
- **Accept**: application/json
|
362
359
|
|
363
360
|
|
364
|
-
##
|
361
|
+
## update_oauth_application
|
365
362
|
|
366
|
-
> <OAuthApplication>
|
363
|
+
> <OAuthApplication> update_oauth_application(oauth_application_id, update_oauth_application_request)
|
367
364
|
|
368
365
|
Update an OAuth application
|
369
366
|
|
@@ -373,41 +370,40 @@ Updates an existing OAuth application
|
|
373
370
|
|
374
371
|
```ruby
|
375
372
|
require 'time'
|
376
|
-
require 'clerk
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
config.
|
373
|
+
require 'clerk'
|
374
|
+
|
375
|
+
## Setup
|
376
|
+
Clerk.configure do |config|
|
377
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
381
378
|
end
|
382
379
|
|
383
|
-
api_instance = ClerkHttpClient::OAuthApplicationsApi.new
|
384
380
|
oauth_application_id = 'oauth_application_id_example' # String | The ID of the OAuth application to update
|
385
|
-
|
381
|
+
update_oauth_application_request = ClerkHttpClient::UpdateOAuthApplicationRequest.new # UpdateOAuthApplicationRequest |
|
386
382
|
|
387
383
|
begin
|
388
384
|
# Update an OAuth application
|
389
|
-
result =
|
385
|
+
result = Clerk::SDK.oauth_applications.update_oauth_application(oauth_application_id, update_oauth_application_request)
|
390
386
|
p result
|
391
387
|
rescue ClerkHttpClient::ApiError => e
|
392
|
-
puts "Error when calling
|
388
|
+
puts "Error when calling Clerk::SDK.oauth_applications->update_oauth_application: #{e}"
|
393
389
|
end
|
394
390
|
```
|
395
391
|
|
396
|
-
#### Using the
|
392
|
+
#### Using the `update_oauth_application_with_http_info variant
|
397
393
|
|
398
394
|
This returns an Array which contains the response data, status code and headers.
|
399
395
|
|
400
|
-
> <Array(<OAuthApplication>, Integer, Hash)>
|
396
|
+
> <Array(<OAuthApplication>, Integer, Hash)> update_oauth_application_with_http_info(oauth_application_id, update_oauth_application_request)
|
401
397
|
|
402
398
|
```ruby
|
403
399
|
begin
|
404
400
|
# Update an OAuth application
|
405
|
-
data, status_code, headers =
|
401
|
+
data, status_code, headers = Clerk::SDK.oauth_applications.update_oauth_application_with_http_info(oauth_application_id, update_oauth_application_request)
|
406
402
|
p status_code # => 2xx
|
407
403
|
p headers # => { ... }
|
408
404
|
p data # => <OAuthApplication>
|
409
405
|
rescue ClerkHttpClient::ApiError => e
|
410
|
-
puts "Error when calling
|
406
|
+
puts "Error when calling Clerk::SDK.oauth_applications->update_oauth_application_with_http_info: #{e}"
|
411
407
|
end
|
412
408
|
```
|
413
409
|
|
@@ -416,7 +412,7 @@ end
|
|
416
412
|
| Name | Type | Description | Notes |
|
417
413
|
| ---- | ---- | ----------- | ----- |
|
418
414
|
| **oauth_application_id** | **String** | The ID of the OAuth application to update | |
|
419
|
-
| **
|
415
|
+
| **update_oauth_application_request** | [**UpdateOAuthApplicationRequest**](UpdateOAuthApplicationRequest.md) | | |
|
420
416
|
|
421
417
|
### Return type
|
422
418
|
|
data/docs/Organization.md
CHANGED
@@ -11,8 +11,8 @@
|
|
11
11
|
| **members_count** | **Integer** | | [optional] |
|
12
12
|
| **max_allowed_memberships** | **Integer** | | |
|
13
13
|
| **admin_delete_enabled** | **Boolean** | | [optional] |
|
14
|
-
| **public_metadata** | **Object
|
15
|
-
| **private_metadata** | **Object
|
14
|
+
| **public_metadata** | **Hash<String, Object>** | | |
|
15
|
+
| **private_metadata** | **Hash<String, Object>** | | |
|
16
16
|
| **created_by** | **String** | | [optional] |
|
17
17
|
| **created_at** | **Integer** | Unix timestamp of creation. | |
|
18
18
|
| **updated_at** | **Integer** | Unix timestamp of last update. | |
|
@@ -4,10 +4,10 @@ All URIs are relative to *https://api.clerk.com/v1*
|
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**
|
7
|
+
| [**update**](OrganizationDomainApi.md#update) | **PATCH** /organizations/{organization_id}/domains/{domain_id} | Update an organization domain. |
|
8
8
|
|
9
9
|
|
10
|
-
##
|
10
|
+
## update
|
11
11
|
|
12
12
|
> <OrganizationDomain> update_organization_domain(organization_id, domain_id, update_organization_domain_request)
|
13
13
|
|
@@ -17,30 +17,32 @@ Updates the properties of an existing organization domain.
|
|
17
17
|
|
18
18
|
### Examples
|
19
19
|
|
20
|
+
####
|
21
|
+
|
20
22
|
```ruby
|
21
23
|
require 'time'
|
22
|
-
require 'clerk
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
config.
|
24
|
+
require 'clerk'
|
25
|
+
|
26
|
+
## Setup
|
27
|
+
Clerk.configure do |config|
|
28
|
+
config.secret_key = 'sk_test_xxxxxxxxx'
|
27
29
|
end
|
28
30
|
|
29
|
-
|
31
|
+
sdk = ClerkHttpClient::OrganizationDomainApi.new
|
30
32
|
organization_id = 'organization_id_example' # String | The ID of the organization the domain belongs to
|
31
33
|
domain_id = 'domain_id_example' # String | The ID of the domain
|
32
34
|
update_organization_domain_request = ClerkHttpClient::UpdateOrganizationDomainRequest.new # UpdateOrganizationDomainRequest |
|
33
35
|
|
34
36
|
begin
|
35
37
|
# Update an organization domain.
|
36
|
-
result =
|
38
|
+
result = sdk.update(organization_id, domain_id, update_organization_domain_request)
|
37
39
|
p result
|
38
40
|
rescue ClerkHttpClient::ApiError => e
|
39
|
-
puts "Error when calling OrganizationDomainApi->
|
41
|
+
puts "Error when calling OrganizationDomainApi->update: #{e}"
|
40
42
|
end
|
41
43
|
```
|
42
44
|
|
43
|
-
#### Using the
|
45
|
+
#### Using the `update_with_http_info variant
|
44
46
|
|
45
47
|
This returns an Array which contains the response data, status code and headers.
|
46
48
|
|
@@ -49,12 +51,12 @@ This returns an Array which contains the response data, status code and headers.
|
|
49
51
|
```ruby
|
50
52
|
begin
|
51
53
|
# Update an organization domain.
|
52
|
-
data, status_code, headers =
|
54
|
+
data, status_code, headers = sdk.update_with_http_info(organization_id, domain_id, update_organization_domain_request)
|
53
55
|
p status_code # => 2xx
|
54
56
|
p headers # => { ... }
|
55
57
|
p data # => <OrganizationDomain>
|
56
58
|
rescue ClerkHttpClient::ApiError => e
|
57
|
-
puts "Error when calling OrganizationDomainApi->
|
59
|
+
puts "Error when calling OrganizationDomainApi->update_with_http_info: #{e}"
|
58
60
|
end
|
59
61
|
```
|
60
62
|
|