clerk-http-client 1.0.0 → 2.0.0.beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +155 -191
- data/clerk-http-client.gemspec +1 -1
- data/docs/ActorTokensApi.md +26 -26
- data/docs/AllowListBlockListApi.md +72 -74
- data/docs/BetaFeaturesApi.md +42 -41
- data/docs/ClientsApi.md +36 -37
- data/docs/CreateBulkInvitationsRequestInner.md +28 -0
- data/docs/CreateInvitationRequest.md +6 -4
- data/docs/{CreateOAuthApplicationRequest.md → CreateOauthApplicationRequest.md} +1 -1
- data/docs/CreateOrganizationInvitationBulkRequestInner.md +2 -2
- data/docs/CreateOrganizationInvitationRequest.md +5 -3
- data/docs/CreateOrganizationRequest.md +3 -3
- data/docs/CreateSAMLConnectionRequest.md +2 -0
- data/docs/CreateSessionRequest.md +18 -0
- data/docs/CreateSessionToken200Response.md +20 -0
- data/docs/CreateSessionTokenFromTemplateRequest.md +18 -0
- data/docs/CreateSessionTokenRequest.md +18 -0
- data/docs/CreateUserRequest.md +3 -3
- data/docs/CreateWaitlistEntryRequest.md +20 -0
- data/docs/DomainsApi.md +46 -48
- data/docs/EmailAddress.md +2 -0
- data/docs/EmailAddressVerification.md +3 -3
- data/docs/EmailAddressesApi.md +52 -52
- data/docs/EmailSMSTemplatesApi.md +60 -66
- data/docs/FromOauth.md +26 -0
- data/docs/FromOauthError.md +47 -0
- data/docs/{GetOAuthAccessToken200ResponseInner.md → GetOauthAccessToken200ResponseInner.md} +4 -2
- data/docs/Instance.md +24 -0
- data/docs/InstanceSettingsApi.md +114 -45
- data/docs/Invitation.md +1 -1
- data/docs/InvitationsApi.md +110 -38
- data/docs/JWKS.md +18 -0
- data/docs/JWKSApi.md +14 -15
- data/docs/JWKSKeysInner.md +32 -0
- data/docs/JWTTemplatesApi.md +62 -63
- data/docs/ListWaitlistEntries200Response.md +20 -0
- data/docs/MergeOrganizationMetadataRequest.md +2 -2
- data/docs/MiscellaneousApi.md +11 -7
- data/docs/{OAuthApplication.md → OauthApplication.md} +4 -0
- data/docs/{OAuthApplicationWithSecret.md → OauthApplicationWithSecret.md} +4 -0
- data/docs/{OAuthApplicationsApi.md → OauthApplicationsApi.md} +90 -94
- data/docs/Organization.md +2 -2
- data/docs/OrganizationDomainApi.md +15 -13
- data/docs/OrganizationDomainsApi.md +103 -33
- data/docs/OrganizationInvitation.md +6 -2
- data/docs/OrganizationInvitationWithPublicOrganizationData.md +4 -2
- data/docs/OrganizationInvitationsApi.md +76 -81
- data/docs/OrganizationMembership.md +2 -2
- data/docs/OrganizationMembershipsApi.md +66 -70
- data/docs/OrganizationWithLogo.md +2 -2
- data/docs/OrganizationsApi.md +87 -93
- data/docs/PhoneNumbersApi.md +52 -52
- data/docs/ProxyChecksApi.md +16 -15
- data/docs/{RedirectURLsApi.md → RedirectUrlsApi.md} +46 -48
- data/docs/RevokeInvitation200Response.md +1 -1
- data/docs/SAML.md +1 -1
- data/docs/SAMLAccount.md +1 -1
- data/docs/SAMLConnectionsApi.md +59 -60
- data/docs/SchemasSAMLConnection.md +2 -0
- data/docs/SessionsApi.md +203 -60
- data/docs/SignInTokensApi.md +26 -26
- data/docs/SignUp.md +4 -2
- data/docs/SignUpsApi.md +16 -15
- data/docs/TestingTokensApi.md +11 -12
- data/docs/UpdateOrganizationMembershipMetadataRequest.md +2 -2
- data/docs/UpdateOrganizationRequest.md +2 -2
- data/docs/UpdateSAMLConnectionRequest.md +2 -0
- data/docs/UpdateUserRequest.md +3 -3
- data/docs/User.md +3 -3
- data/docs/UsersApi.md +297 -294
- data/docs/WaitlistEntriesApi.md +157 -0
- data/docs/WaitlistEntry.md +32 -0
- data/docs/WaitlistEntryInvitation.md +36 -0
- data/docs/WebhooksApi.md +30 -33
- data/lib/clerk-http-client/api/actor_tokens_api.rb +10 -14
- data/lib/clerk-http-client/api/allow_list_block_list_api.rb +25 -33
- data/lib/clerk-http-client/api/beta_features_api.rb +13 -21
- data/lib/clerk-http-client/api/clients_api.rb +13 -17
- data/lib/clerk-http-client/api/domains_api.rb +16 -20
- data/lib/clerk-http-client/api/email_addresses_api.rb +19 -27
- data/lib/clerk-http-client/api/email_sms_templates_api.rb +19 -19
- data/lib/clerk-http-client/api/instance_settings_api.rb +78 -31
- data/lib/clerk-http-client/api/invitations_api.rb +82 -17
- data/lib/clerk-http-client/api/jwks_api.rb +7 -7
- data/lib/clerk-http-client/api/jwt_templates_api.rb +22 -30
- data/lib/clerk-http-client/api/miscellaneous_api.rb +4 -4
- data/lib/clerk-http-client/api/{o_auth_applications_api.rb → oauth_applications_api.rb} +53 -57
- data/lib/clerk-http-client/api/organization_domains_api.rb +92 -10
- data/lib/clerk-http-client/api/organization_invitations_api.rb +25 -29
- data/lib/clerk-http-client/api/organization_memberships_api.rb +22 -26
- data/lib/clerk-http-client/api/organizations_api.rb +30 -34
- data/lib/clerk-http-client/api/phone_numbers_api.rb +19 -27
- data/lib/clerk-http-client/api/proxy_checks_api.rb +7 -11
- data/lib/clerk-http-client/api/redirect_urls_api.rb +16 -20
- data/lib/clerk-http-client/api/saml_connections_api.rb +22 -23
- data/lib/clerk-http-client/api/sessions_api.rb +165 -20
- data/lib/clerk-http-client/api/sign_in_tokens_api.rb +10 -14
- data/lib/clerk-http-client/api/sign_ups_api.rb +7 -11
- data/lib/clerk-http-client/api/testing_tokens_api.rb +6 -6
- data/lib/clerk-http-client/api/users_api.rb +149 -92
- data/lib/clerk-http-client/api/waitlist_entries_api.rb +178 -0
- data/lib/clerk-http-client/api/webhooks_api.rb +10 -10
- data/lib/clerk-http-client/api_client.rb +1 -1
- data/lib/clerk-http-client/api_error.rb +1 -1
- data/lib/clerk-http-client/configuration.rb +1 -1
- data/lib/clerk-http-client/models/actor_token.rb +2 -1
- data/lib/clerk-http-client/models/add_domain_request.rb +2 -1
- data/lib/clerk-http-client/models/admin.rb +2 -1
- data/lib/clerk-http-client/models/allowlist_identifier.rb +2 -1
- data/lib/clerk-http-client/models/blocklist_identifier.rb +2 -1
- data/lib/clerk-http-client/models/blocklist_identifiers.rb +2 -1
- data/lib/clerk-http-client/models/change_production_instance_domain_request.rb +2 -1
- data/lib/clerk-http-client/models/clerk_error.rb +2 -1
- data/lib/clerk-http-client/models/clerk_errors.rb +2 -1
- data/lib/clerk-http-client/models/client.rb +2 -1
- data/lib/clerk-http-client/models/{c_name_target.rb → cname_target.rb} +2 -1
- data/lib/clerk-http-client/models/create_actor_token_request.rb +2 -1
- data/lib/clerk-http-client/models/create_allowlist_identifier_request.rb +2 -1
- data/lib/clerk-http-client/models/create_blocklist_identifier_request.rb +2 -1
- data/lib/clerk-http-client/models/create_bulk_invitations_request_inner.rb +306 -0
- data/lib/clerk-http-client/models/create_email_address_request.rb +2 -1
- data/lib/clerk-http-client/models/create_invitation_request.rb +58 -10
- data/lib/clerk-http-client/models/create_jwt_template_request.rb +2 -1
- data/lib/clerk-http-client/models/{create_o_auth_application_request.rb → create_oauth_application_request.rb} +2 -8
- data/lib/clerk-http-client/models/create_organization_domain_request.rb +2 -1
- data/lib/clerk-http-client/models/create_organization_invitation_bulk_request_inner.rb +12 -7
- data/lib/clerk-http-client/models/create_organization_invitation_request.rb +51 -11
- data/lib/clerk-http-client/models/create_organization_membership_request.rb +2 -1
- data/lib/clerk-http-client/models/create_organization_request.rb +10 -12
- data/lib/clerk-http-client/models/create_phone_number_request.rb +2 -1
- data/lib/clerk-http-client/models/create_redirect_url_request.rb +2 -1
- data/lib/clerk-http-client/models/create_saml_connection_request.rb +14 -2
- data/lib/clerk-http-client/models/create_saml_connection_request_attribute_mapping.rb +2 -1
- data/lib/clerk-http-client/models/create_session_request.rb +216 -0
- data/lib/clerk-http-client/models/create_session_token200_response.rb +258 -0
- data/lib/clerk-http-client/models/create_session_token_from_template_request.rb +241 -0
- data/lib/clerk-http-client/models/create_session_token_request.rb +241 -0
- data/lib/clerk-http-client/models/create_sign_in_token_request.rb +2 -1
- data/lib/clerk-http-client/models/create_user_request.rb +14 -7
- data/lib/clerk-http-client/models/create_waitlist_entry_request.rb +233 -0
- data/lib/clerk-http-client/models/deleted_object.rb +2 -1
- data/lib/clerk-http-client/models/disable_mfa200_response.rb +2 -1
- data/lib/clerk-http-client/models/domain.rb +2 -1
- data/lib/clerk-http-client/models/domains.rb +2 -1
- data/lib/clerk-http-client/models/email_address.rb +13 -2
- data/lib/clerk-http-client/models/email_address_verification.rb +6 -3
- data/lib/clerk-http-client/models/from_o_auth.rb +324 -0
- data/{resources/templates/partial_anyof_module.mustache → lib/clerk-http-client/models/from_o_auth_error.rb} +29 -19
- data/lib/clerk-http-client/models/from_oauth.rb +325 -0
- data/{resources/templates/partial_oneof_module.mustache → lib/clerk-http-client/models/from_oauth_error.rb} +24 -54
- data/lib/clerk-http-client/models/{get_o_auth_access_token200_response_inner.rb → get_oauth_access_token200_response_inner.rb} +21 -7
- data/lib/clerk-http-client/models/identification_link.rb +4 -3
- data/lib/clerk-http-client/models/instance.rb +280 -0
- data/lib/clerk-http-client/models/instance_restrictions.rb +2 -1
- data/lib/clerk-http-client/models/invitation.rb +6 -3
- data/lib/clerk-http-client/models/jwks.rb +217 -0
- data/lib/clerk-http-client/models/jwks_keys_inner.rb +278 -0
- data/lib/clerk-http-client/models/jwt_template.rb +2 -1
- data/lib/clerk-http-client/models/list_waitlist_entries200_response.rb +241 -0
- data/lib/clerk-http-client/models/merge_organization_metadata_request.rb +10 -5
- data/lib/clerk-http-client/models/o_auth_application.rb +34 -2
- data/lib/clerk-http-client/models/o_auth_application_with_secret.rb +34 -2
- data/lib/clerk-http-client/models/o_auth_applications.rb +1 -1
- data/lib/clerk-http-client/models/oauth.rb +2 -2
- data/lib/clerk-http-client/models/oauth_application.rb +482 -0
- data/lib/clerk-http-client/models/oauth_application_with_secret.rb +499 -0
- data/lib/clerk-http-client/models/oauth_applications.rb +241 -0
- data/lib/clerk-http-client/models/organization.rb +11 -5
- data/lib/clerk-http-client/models/organization_domain.rb +2 -1
- data/lib/clerk-http-client/models/organization_domain_verification.rb +2 -1
- data/lib/clerk-http-client/models/organization_domains.rb +2 -1
- data/lib/clerk-http-client/models/organization_invitation.rb +32 -6
- data/lib/clerk-http-client/models/organization_invitation_with_public_organization_data.rb +21 -6
- data/lib/clerk-http-client/models/organization_invitation_with_public_organization_data_public_organization_data.rb +2 -1
- data/lib/clerk-http-client/models/organization_invitations.rb +2 -1
- data/lib/clerk-http-client/models/organization_invitations_with_public_organization_data.rb +2 -1
- data/lib/clerk-http-client/models/organization_membership.rb +10 -5
- data/lib/clerk-http-client/models/organization_membership_public_user_data.rb +2 -1
- data/lib/clerk-http-client/models/organization_memberships.rb +2 -1
- data/lib/clerk-http-client/models/organization_settings.rb +2 -1
- data/lib/clerk-http-client/models/organization_with_logo.rb +11 -5
- data/lib/clerk-http-client/models/organizations.rb +2 -1
- data/lib/clerk-http-client/models/otp.rb +2 -1
- data/lib/clerk-http-client/models/passkey.rb +2 -1
- data/lib/clerk-http-client/models/phone_number.rb +2 -1
- data/lib/clerk-http-client/models/phone_number_verification.rb +4 -1
- data/lib/clerk-http-client/models/preview_template_request.rb +2 -1
- data/lib/clerk-http-client/models/proxy_check.rb +2 -1
- data/lib/clerk-http-client/models/redirect_url.rb +2 -1
- data/lib/clerk-http-client/models/revoke_invitation200_response.rb +6 -3
- data/lib/clerk-http-client/models/revoke_organization_invitation_request.rb +2 -1
- data/lib/clerk-http-client/models/saml.rb +3 -2
- data/lib/clerk-http-client/models/saml_account.rb +6 -3
- data/lib/clerk-http-client/models/saml_account_saml_connection.rb +4 -1
- data/lib/clerk-http-client/models/saml_account_verification.rb +4 -1
- data/lib/clerk-http-client/models/saml_connection.rb +2 -1
- data/lib/clerk-http-client/models/saml_connections.rb +2 -1
- data/lib/clerk-http-client/models/schemas_passkey.rb +2 -1
- data/lib/clerk-http-client/models/schemas_passkey_verification.rb +4 -1
- data/lib/clerk-http-client/models/schemas_saml_connection.rb +13 -2
- data/lib/clerk-http-client/models/schemas_saml_connection_attribute_mapping.rb +2 -1
- data/lib/clerk-http-client/models/session.rb +2 -1
- data/lib/clerk-http-client/models/session_latest_activity.rb +2 -1
- data/lib/clerk-http-client/models/sign_in_token.rb +2 -1
- data/lib/clerk-http-client/models/sign_up.rb +22 -6
- data/lib/clerk-http-client/models/svix_url.rb +2 -1
- data/lib/clerk-http-client/models/template.rb +2 -1
- data/lib/clerk-http-client/models/testing_token.rb +2 -1
- data/lib/clerk-http-client/models/ticket.rb +2 -1
- data/lib/clerk-http-client/models/toggle_template_delivery_request.rb +2 -1
- data/lib/clerk-http-client/models/total_count.rb +2 -1
- data/lib/clerk-http-client/models/totp.rb +2 -1
- data/lib/clerk-http-client/models/update_domain_request.rb +2 -1
- data/lib/clerk-http-client/models/update_email_address_request.rb +2 -1
- data/lib/clerk-http-client/models/update_instance_auth_config200_response.rb +2 -1
- data/lib/clerk-http-client/models/update_instance_auth_config_request.rb +2 -1
- data/lib/clerk-http-client/models/update_instance_organization_settings_request.rb +2 -1
- data/lib/clerk-http-client/models/update_instance_request.rb +2 -1
- data/lib/clerk-http-client/models/update_instance_restrictions_request.rb +2 -1
- data/lib/clerk-http-client/models/{update_o_auth_application_request.rb → update_oauth_application_request.rb} +2 -1
- data/lib/clerk-http-client/models/update_organization_domain_request.rb +2 -1
- data/lib/clerk-http-client/models/update_organization_membership_metadata_request.rb +10 -5
- data/lib/clerk-http-client/models/update_organization_membership_request.rb +2 -1
- data/lib/clerk-http-client/models/update_organization_request.rb +10 -5
- data/lib/clerk-http-client/models/update_phone_number_request.rb +2 -1
- data/lib/clerk-http-client/models/update_production_instance_domain_request.rb +2 -1
- data/lib/clerk-http-client/models/update_saml_connection_request.rb +14 -2
- data/lib/clerk-http-client/models/update_saml_connection_request_attribute_mapping.rb +2 -1
- data/lib/clerk-http-client/models/update_sign_up_request.rb +2 -1
- data/lib/clerk-http-client/models/update_user_metadata_request.rb +2 -1
- data/lib/clerk-http-client/models/update_user_request.rb +14 -7
- data/lib/clerk-http-client/models/upsert_template_request.rb +2 -1
- data/lib/clerk-http-client/models/user.rb +14 -7
- data/lib/clerk-http-client/models/verify_client_request.rb +2 -1
- data/lib/clerk-http-client/models/verify_domain_proxy_request.rb +2 -1
- data/lib/clerk-http-client/models/verify_password200_response.rb +2 -1
- data/lib/clerk-http-client/models/verify_password_request.rb +2 -1
- data/lib/clerk-http-client/models/verify_session_request.rb +2 -1
- data/lib/clerk-http-client/models/verify_totp200_response.rb +2 -1
- data/lib/clerk-http-client/models/verify_totp_request.rb +2 -1
- data/lib/clerk-http-client/models/waitlist_entry.rb +370 -0
- data/lib/clerk-http-client/models/waitlist_entry_invitation.rb +397 -0
- data/lib/clerk-http-client/models/web3_signature.rb +4 -3
- data/lib/clerk-http-client/models/web3_wallet.rb +2 -1
- data/lib/clerk-http-client/models/web3_wallet_verification.rb +4 -1
- data/lib/clerk-http-client/version.rb +1 -1
- data/lib/clerk-http-client.rb +56 -59
- data/spec/api/actor_tokens_api_spec.rb +1 -1
- data/spec/api/allow_list_block_list_api_spec.rb +2 -2
- data/spec/api/beta_features_api_spec.rb +2 -2
- data/spec/api/clients_api_spec.rb +1 -1
- data/spec/api/domains_api_spec.rb +1 -1
- data/spec/api/email_addresses_api_spec.rb +2 -2
- data/spec/api/instance_settings_api_spec.rb +3 -3
- data/spec/api/invitations_api_spec.rb +1 -1
- data/spec/api/jwt_templates_api_spec.rb +2 -2
- data/spec/api/{o_auth_applications_api_spec.rb → oauth_applications_api_spec.rb} +15 -15
- data/spec/api/organizations_api_spec.rb +1 -1
- data/spec/api/phone_numbers_api_spec.rb +2 -2
- data/spec/api/proxy_checks_api_spec.rb +1 -1
- data/spec/api/redirect_urls_api_spec.rb +1 -1
- data/spec/api/saml_connections_api_spec.rb +1 -1
- data/spec/api/sign_in_tokens_api_spec.rb +1 -1
- data/spec/api/sign_ups_api_spec.rb +1 -1
- data/spec/api/users_api_spec.rb +3 -3
- data/spec/api/waitlist_entries_api_spec.rb +63 -0
- data/spec/models/cname_target_spec.rb +48 -0
- data/spec/models/create_bulk_invitations_request_inner_spec.rb +66 -0
- data/spec/models/create_oauth_application_request_spec.rb +54 -0
- data/spec/models/create_session_request_spec.rb +36 -0
- data/spec/models/create_session_token200_response_spec.rb +46 -0
- data/spec/models/create_session_token_from_template_request_spec.rb +36 -0
- data/spec/models/create_session_token_request_spec.rb +36 -0
- data/spec/models/create_waitlist_entry_request_spec.rb +42 -0
- data/spec/models/from_o_auth_error_spec.rb +32 -0
- data/spec/models/from_o_auth_spec.rb +64 -0
- data/spec/models/from_oauth_error_spec.rb +32 -0
- data/spec/models/from_oauth_spec.rb +64 -0
- data/spec/models/get_oauth_access_token200_response_inner_spec.rb +90 -0
- data/spec/models/identification_link_spec.rb +1 -1
- data/spec/models/instance_spec.rb +58 -0
- data/spec/models/jwks_keys_inner_spec.rb +78 -0
- data/spec/models/jwks_spec.rb +36 -0
- data/spec/models/list_waitlist_entries200_response_spec.rb +42 -0
- data/spec/models/oauth_application_spec.rb +124 -0
- data/spec/models/oauth_application_with_secret_spec.rb +130 -0
- data/spec/models/oauth_applications_spec.rb +42 -0
- data/spec/models/oauth_spec.rb +1 -1
- data/spec/models/update_oauth_application_request_spec.rb +48 -0
- data/spec/models/waitlist_entry_invitation_spec.rb +98 -0
- data/spec/models/waitlist_entry_spec.rb +86 -0
- data/spec/spec_helper.rb +1 -1
- metadata +104 -65
- data/bin/fmt +0 -5
- data/bin/generate +0 -8
- data/bin/setup +0 -7
- data/openapitools.json +0 -7
- data/pkg/clerk-http-client-1.0.0.gem +0 -0
- data/resources/.DS_Store +0 -0
- data/resources/oas/bapi-2024-10-01.yml +0 -7238
- data/resources/templates/Gemfile.mustache +0 -9
- data/resources/templates/README.mustache +0 -163
- data/resources/templates/Rakefile.mustache +0 -10
- data/resources/templates/api.mustache +0 -257
- data/resources/templates/api_client.mustache +0 -246
- data/resources/templates/api_client_faraday_partial.mustache +0 -200
- data/resources/templates/api_client_httpx_partial.mustache +0 -134
- data/resources/templates/api_client_typhoeus_partial.mustache +0 -161
- data/resources/templates/api_doc.mustache +0 -132
- data/resources/templates/api_error.mustache +0 -50
- data/resources/templates/api_info.mustache +0 -12
- data/resources/templates/api_test.mustache +0 -47
- data/resources/templates/base_object.mustache +0 -114
- data/resources/templates/configuration.mustache +0 -491
- data/resources/templates/configuration_faraday_partial.mustache +0 -40
- data/resources/templates/configuration_httpx_partial.mustache +0 -11
- data/resources/templates/configuration_typhoeus_partial.mustache +0 -41
- data/resources/templates/gem.mustache +0 -89
- data/resources/templates/gemspec.mustache +0 -41
- data/resources/templates/git_push.sh.mustache +0 -57
- data/resources/templates/gitignore.mustache +0 -39
- data/resources/templates/gitlab-ci.mustache +0 -26
- data/resources/templates/model.mustache +0 -33
- data/resources/templates/model_doc.mustache +0 -12
- data/resources/templates/model_test.mustache +0 -82
- data/resources/templates/partial_model_enum_class.mustache +0 -23
- data/resources/templates/partial_model_generic.mustache +0 -377
- data/resources/templates/partial_model_generic_doc.mustache +0 -28
- data/resources/templates/partial_oneof_module_doc.mustache +0 -93
- data/resources/templates/rspec.mustache +0 -2
- data/resources/templates/rubocop.mustache +0 -148
- data/resources/templates/spec_helper.mustache +0 -103
- data/resources/templates/travis.mustache +0 -11
- data/resources/templates/version.mustache +0 -7
- data/sdk-generator-config.json +0 -25
- /data/docs/{CNameTarget.md → CnameTarget.md} +0 -0
- /data/docs/{CreateRedirectURLRequest.md → CreateRedirectUrlRequest.md} +0 -0
- /data/docs/{OAuthApplications.md → OauthApplications.md} +0 -0
- /data/docs/{RedirectURL.md → RedirectUrl.md} +0 -0
- /data/docs/{SvixURL.md → SvixUrl.md} +0 -0
- /data/docs/{UpdateOAuthApplicationRequest.md → UpdateOauthApplicationRequest.md} +0 -0
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v1
|
7
7
|
Contact: support@clerk.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version:
|
9
|
+
Generator version: unset
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,31 +19,86 @@ module ClerkHttpClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Fetch the current instance
|
23
|
+
# Fetches the current instance
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [Instance]
|
26
|
+
|
27
|
+
def get_instance(opts = {})
|
28
|
+
data, _status_code, _headers = get_instance_with_http_info(opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Fetch the current instance
|
33
|
+
# Fetches the current instance
|
34
|
+
# @param [Hash] opts the optional parameters
|
35
|
+
# @return [Array<(Instance, Integer, Hash)>] Instance data, response status code and response headers
|
36
|
+
# GET
|
37
|
+
def get_instance_with_http_info(opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: InstanceSettingsApi.get_instance ...'
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/instance'
|
43
|
+
|
44
|
+
# query parameters
|
45
|
+
query_params = opts[:query_params] || {}
|
46
|
+
|
47
|
+
# header parameters
|
48
|
+
header_params = opts[:header_params] || {}
|
49
|
+
# HTTP header 'Accept' (if needed)
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
51
|
+
|
52
|
+
# form parameters
|
53
|
+
form_params = opts[:form_params] || {}
|
54
|
+
|
55
|
+
# http body (model)
|
56
|
+
post_body = opts[:debug_body]
|
57
|
+
|
58
|
+
# return_type
|
59
|
+
return_type = opts[:debug_return_type] || 'Instance'
|
60
|
+
|
61
|
+
# auth_names
|
62
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
63
|
+
|
64
|
+
new_options = opts.merge(
|
65
|
+
:operation => :"InstanceSettingsApi.get_instance",
|
66
|
+
:header_params => header_params,
|
67
|
+
:query_params => query_params,
|
68
|
+
:form_params => form_params,
|
69
|
+
:body => post_body,
|
70
|
+
:auth_names => auth_names,
|
71
|
+
:return_type => return_type
|
72
|
+
)
|
73
|
+
|
74
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
75
|
+
if @api_client.config.debugging
|
76
|
+
@api_client.config.logger.debug "API called: InstanceSettingsApi#get_instance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
77
|
+
end
|
78
|
+
return data, status_code, headers
|
79
|
+
end
|
80
|
+
|
22
81
|
# Update instance settings
|
23
82
|
# Updates the settings of an instance
|
24
|
-
# @param update_instance_request [UpdateInstanceRequest]
|
25
83
|
# @param [Hash] opts the optional parameters
|
84
|
+
# @option opts [UpdateInstanceRequest] :update_instance_request
|
26
85
|
# @return [nil]
|
27
86
|
|
28
|
-
def
|
29
|
-
|
87
|
+
def update_instance(opts = {})
|
88
|
+
update_instance_with_http_info(opts)
|
30
89
|
nil
|
31
90
|
end
|
32
91
|
|
33
92
|
# Update instance settings
|
34
93
|
# Updates the settings of an instance
|
35
|
-
# @param update_instance_request [UpdateInstanceRequest]
|
36
94
|
# @param [Hash] opts the optional parameters
|
95
|
+
# @option opts [UpdateInstanceRequest] :update_instance_request
|
37
96
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
38
97
|
# PATCH
|
39
|
-
def
|
98
|
+
def update_instance_with_http_info(opts = {})
|
40
99
|
if @api_client.config.debugging
|
41
100
|
@api_client.config.logger.debug 'Calling API: InstanceSettingsApi.update_instance ...'
|
42
101
|
end
|
43
|
-
# verify the required parameter 'update_instance_request' is set
|
44
|
-
if @api_client.config.client_side_validation && update_instance_request.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'update_instance_request' when calling InstanceSettingsApi.update_instance"
|
46
|
-
end
|
47
102
|
# resource path
|
48
103
|
local_var_path = '/instance'
|
49
104
|
|
@@ -64,7 +119,7 @@ module ClerkHttpClient
|
|
64
119
|
form_params = opts[:form_params] || {}
|
65
120
|
|
66
121
|
# http body (model)
|
67
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_instance_request)
|
122
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_instance_request'])
|
68
123
|
|
69
124
|
# return_type
|
70
125
|
return_type = opts[:debug_return_type]
|
@@ -91,29 +146,25 @@ module ClerkHttpClient
|
|
91
146
|
|
92
147
|
# Update instance organization settings
|
93
148
|
# Updates the organization settings of the instance
|
94
|
-
# @param update_instance_organization_settings_request [UpdateInstanceOrganizationSettingsRequest]
|
95
149
|
# @param [Hash] opts the optional parameters
|
150
|
+
# @option opts [UpdateInstanceOrganizationSettingsRequest] :update_instance_organization_settings_request
|
96
151
|
# @return [OrganizationSettings]
|
97
152
|
|
98
|
-
def
|
99
|
-
data, _status_code, _headers =
|
153
|
+
def update_instance_organization_settings(opts = {})
|
154
|
+
data, _status_code, _headers = update_instance_organization_settings_with_http_info(opts)
|
100
155
|
data
|
101
156
|
end
|
102
157
|
|
103
158
|
# Update instance organization settings
|
104
159
|
# Updates the organization settings of the instance
|
105
|
-
# @param update_instance_organization_settings_request [UpdateInstanceOrganizationSettingsRequest]
|
106
160
|
# @param [Hash] opts the optional parameters
|
161
|
+
# @option opts [UpdateInstanceOrganizationSettingsRequest] :update_instance_organization_settings_request
|
107
162
|
# @return [Array<(OrganizationSettings, Integer, Hash)>] OrganizationSettings data, response status code and response headers
|
108
163
|
# PATCH
|
109
|
-
def
|
164
|
+
def update_instance_organization_settings_with_http_info(opts = {})
|
110
165
|
if @api_client.config.debugging
|
111
166
|
@api_client.config.logger.debug 'Calling API: InstanceSettingsApi.update_instance_organization_settings ...'
|
112
167
|
end
|
113
|
-
# verify the required parameter 'update_instance_organization_settings_request' is set
|
114
|
-
if @api_client.config.client_side_validation && update_instance_organization_settings_request.nil?
|
115
|
-
fail ArgumentError, "Missing the required parameter 'update_instance_organization_settings_request' when calling InstanceSettingsApi.update_instance_organization_settings"
|
116
|
-
end
|
117
168
|
# resource path
|
118
169
|
local_var_path = '/instance/organization_settings'
|
119
170
|
|
@@ -134,7 +185,7 @@ module ClerkHttpClient
|
|
134
185
|
form_params = opts[:form_params] || {}
|
135
186
|
|
136
187
|
# http body (model)
|
137
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_instance_organization_settings_request)
|
188
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_instance_organization_settings_request'])
|
138
189
|
|
139
190
|
# return_type
|
140
191
|
return_type = opts[:debug_return_type] || 'OrganizationSettings'
|
@@ -161,29 +212,25 @@ module ClerkHttpClient
|
|
161
212
|
|
162
213
|
# Update instance restrictions
|
163
214
|
# Updates the restriction settings of an instance
|
164
|
-
# @param update_instance_restrictions_request [UpdateInstanceRestrictionsRequest]
|
165
215
|
# @param [Hash] opts the optional parameters
|
216
|
+
# @option opts [UpdateInstanceRestrictionsRequest] :update_instance_restrictions_request
|
166
217
|
# @return [InstanceRestrictions]
|
167
218
|
|
168
|
-
def
|
169
|
-
data, _status_code, _headers =
|
219
|
+
def update_instance_restrictions(opts = {})
|
220
|
+
data, _status_code, _headers = update_instance_restrictions_with_http_info(opts)
|
170
221
|
data
|
171
222
|
end
|
172
223
|
|
173
224
|
# Update instance restrictions
|
174
225
|
# Updates the restriction settings of an instance
|
175
|
-
# @param update_instance_restrictions_request [UpdateInstanceRestrictionsRequest]
|
176
226
|
# @param [Hash] opts the optional parameters
|
227
|
+
# @option opts [UpdateInstanceRestrictionsRequest] :update_instance_restrictions_request
|
177
228
|
# @return [Array<(InstanceRestrictions, Integer, Hash)>] InstanceRestrictions data, response status code and response headers
|
178
229
|
# PATCH
|
179
|
-
def
|
230
|
+
def update_instance_restrictions_with_http_info(opts = {})
|
180
231
|
if @api_client.config.debugging
|
181
232
|
@api_client.config.logger.debug 'Calling API: InstanceSettingsApi.update_instance_restrictions ...'
|
182
233
|
end
|
183
|
-
# verify the required parameter 'update_instance_restrictions_request' is set
|
184
|
-
if @api_client.config.client_side_validation && update_instance_restrictions_request.nil?
|
185
|
-
fail ArgumentError, "Missing the required parameter 'update_instance_restrictions_request' when calling InstanceSettingsApi.update_instance_restrictions"
|
186
|
-
end
|
187
234
|
# resource path
|
188
235
|
local_var_path = '/instance/restrictions'
|
189
236
|
|
@@ -204,7 +251,7 @@ module ClerkHttpClient
|
|
204
251
|
form_params = opts[:form_params] || {}
|
205
252
|
|
206
253
|
# http body (model)
|
207
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_instance_restrictions_request)
|
254
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_instance_restrictions_request'])
|
208
255
|
|
209
256
|
# return_type
|
210
257
|
return_type = opts[:debug_return_type] || 'InstanceRestrictions'
|
@@ -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
|
|
@@ -19,31 +19,93 @@ module ClerkHttpClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Create multiple invitations
|
23
|
+
# Use this API operation to create multiple invitations for the provided email addresses. You can choose to send the invitations as emails by setting the `notify` parameter to `true`. There cannot be an existing invitation for any of the email addresses you provide unless you set `ignore_existing` to `true` for specific email addresses. Please note that there must be no existing user for any of the email addresses you provide, and this rule cannot be bypassed.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [Array<CreateBulkInvitationsRequestInner>] :create_bulk_invitations_request_inner Required parameters
|
26
|
+
# @return [Array<Invitation>]
|
27
|
+
|
28
|
+
def create_bulk_invitations(opts = {})
|
29
|
+
data, _status_code, _headers = create_bulk_invitations_with_http_info(opts)
|
30
|
+
data
|
31
|
+
end
|
32
|
+
|
33
|
+
# Create multiple invitations
|
34
|
+
# Use this API operation to create multiple invitations for the provided email addresses. You can choose to send the invitations as emails by setting the `notify` parameter to `true`. There cannot be an existing invitation for any of the email addresses you provide unless you set `ignore_existing` to `true` for specific email addresses. Please note that there must be no existing user for any of the email addresses you provide, and this rule cannot be bypassed.
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @option opts [Array<CreateBulkInvitationsRequestInner>] :create_bulk_invitations_request_inner Required parameters
|
37
|
+
# @return [Array<(Array<Invitation>, Integer, Hash)>] Array<Invitation> data, response status code and response headers
|
38
|
+
# POST array
|
39
|
+
def create_bulk_invitations_with_http_info(opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: InvitationsApi.create_bulk_invitations ...'
|
42
|
+
end
|
43
|
+
# resource path
|
44
|
+
local_var_path = '/invitations/bulk'
|
45
|
+
|
46
|
+
# query parameters
|
47
|
+
query_params = opts[:query_params] || {}
|
48
|
+
|
49
|
+
# header parameters
|
50
|
+
header_params = opts[:header_params] || {}
|
51
|
+
# HTTP header 'Accept' (if needed)
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
53
|
+
# HTTP header 'Content-Type'
|
54
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
55
|
+
if !content_type.nil?
|
56
|
+
header_params['Content-Type'] = content_type
|
57
|
+
end
|
58
|
+
|
59
|
+
# form parameters
|
60
|
+
form_params = opts[:form_params] || {}
|
61
|
+
|
62
|
+
# http body (model)
|
63
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_bulk_invitations_request_inner'])
|
64
|
+
|
65
|
+
# return_type
|
66
|
+
return_type = opts[:debug_return_type] || 'Array<Invitation>'
|
67
|
+
|
68
|
+
# auth_names
|
69
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
70
|
+
|
71
|
+
new_options = opts.merge(
|
72
|
+
:operation => :"InvitationsApi.create_bulk_invitations",
|
73
|
+
:header_params => header_params,
|
74
|
+
:query_params => query_params,
|
75
|
+
:form_params => form_params,
|
76
|
+
:body => post_body,
|
77
|
+
:auth_names => auth_names,
|
78
|
+
:return_type => return_type
|
79
|
+
)
|
80
|
+
|
81
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
82
|
+
if @api_client.config.debugging
|
83
|
+
@api_client.config.logger.debug "API called: InvitationsApi#create_bulk_invitations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
84
|
+
end
|
85
|
+
return data, status_code, headers
|
86
|
+
end
|
87
|
+
|
22
88
|
# Create an invitation
|
23
89
|
# Creates a new invitation for the given email address and sends the invitation email. Keep in mind that you cannot create an invitation if there is already one for the given email address. Also, trying to create an invitation for an email address that already exists in your application will result to an error.
|
24
|
-
# @param create_invitation_request [CreateInvitationRequest] Required parameters
|
25
90
|
# @param [Hash] opts the optional parameters
|
91
|
+
# @option opts [CreateInvitationRequest] :create_invitation_request Required parameters
|
26
92
|
# @return [Invitation]
|
27
93
|
|
28
|
-
def
|
29
|
-
data, _status_code, _headers =
|
94
|
+
def create_invitation(opts = {})
|
95
|
+
data, _status_code, _headers = create_invitation_with_http_info(opts)
|
30
96
|
data
|
31
97
|
end
|
32
98
|
|
33
99
|
# Create an invitation
|
34
100
|
# Creates a new invitation for the given email address and sends the invitation email. Keep in mind that you cannot create an invitation if there is already one for the given email address. Also, trying to create an invitation for an email address that already exists in your application will result to an error.
|
35
|
-
# @param create_invitation_request [CreateInvitationRequest] Required parameters
|
36
101
|
# @param [Hash] opts the optional parameters
|
102
|
+
# @option opts [CreateInvitationRequest] :create_invitation_request Required parameters
|
37
103
|
# @return [Array<(Invitation, Integer, Hash)>] Invitation data, response status code and response headers
|
38
104
|
# POST
|
39
|
-
def
|
105
|
+
def create_invitation_with_http_info(opts = {})
|
40
106
|
if @api_client.config.debugging
|
41
107
|
@api_client.config.logger.debug 'Calling API: InvitationsApi.create_invitation ...'
|
42
108
|
end
|
43
|
-
# verify the required parameter 'create_invitation_request' is set
|
44
|
-
if @api_client.config.client_side_validation && create_invitation_request.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'create_invitation_request' when calling InvitationsApi.create_invitation"
|
46
|
-
end
|
47
109
|
# resource path
|
48
110
|
local_var_path = '/invitations'
|
49
111
|
|
@@ -64,7 +126,7 @@ module ClerkHttpClient
|
|
64
126
|
form_params = opts[:form_params] || {}
|
65
127
|
|
66
128
|
# http body (model)
|
67
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_invitation_request)
|
129
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_invitation_request'])
|
68
130
|
|
69
131
|
# return_type
|
70
132
|
return_type = opts[:debug_return_type] || 'Invitation'
|
@@ -95,10 +157,11 @@ module ClerkHttpClient
|
|
95
157
|
# @option opts [Float] :limit Applies a limit to the number of results returned. Can be used for paginating the results together with `offset`. (default to 10)
|
96
158
|
# @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)
|
97
159
|
# @option opts [String] :status Filter invitations based on their status
|
160
|
+
# @option opts [String] :query Filter invitations based on their `email_address` or `id`
|
98
161
|
# @return [Array<Invitation>]
|
99
162
|
|
100
|
-
def
|
101
|
-
data, _status_code, _headers =
|
163
|
+
def list_invitations(opts = {})
|
164
|
+
data, _status_code, _headers = list_invitations_with_http_info(opts)
|
102
165
|
data
|
103
166
|
end
|
104
167
|
|
@@ -108,9 +171,10 @@ module ClerkHttpClient
|
|
108
171
|
# @option opts [Float] :limit Applies a limit to the number of results returned. Can be used for paginating the results together with `offset`. (default to 10)
|
109
172
|
# @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)
|
110
173
|
# @option opts [String] :status Filter invitations based on their status
|
174
|
+
# @option opts [String] :query Filter invitations based on their `email_address` or `id`
|
111
175
|
# @return [Array<(Array<Invitation>, Integer, Hash)>] Array<Invitation> data, response status code and response headers
|
112
176
|
# GET array
|
113
|
-
def
|
177
|
+
def list_invitations_with_http_info(opts = {})
|
114
178
|
if @api_client.config.debugging
|
115
179
|
@api_client.config.logger.debug 'Calling API: InvitationsApi.list_invitations ...'
|
116
180
|
end
|
@@ -138,6 +202,7 @@ module ClerkHttpClient
|
|
138
202
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
139
203
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
140
204
|
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
205
|
+
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
|
141
206
|
|
142
207
|
# header parameters
|
143
208
|
header_params = opts[:header_params] || {}
|
@@ -179,8 +244,8 @@ module ClerkHttpClient
|
|
179
244
|
# @param [Hash] opts the optional parameters
|
180
245
|
# @return [RevokeInvitation200Response]
|
181
246
|
|
182
|
-
def
|
183
|
-
data, _status_code, _headers =
|
247
|
+
def revoke_invitation(invitation_id, opts = {})
|
248
|
+
data, _status_code, _headers = revoke_invitation_with_http_info(invitation_id, opts)
|
184
249
|
data
|
185
250
|
end
|
186
251
|
|
@@ -190,7 +255,7 @@ module ClerkHttpClient
|
|
190
255
|
# @param [Hash] opts the optional parameters
|
191
256
|
# @return [Array<(RevokeInvitation200Response, Integer, Hash)>] RevokeInvitation200Response data, response status code and response headers
|
192
257
|
# POST
|
193
|
-
def
|
258
|
+
def revoke_invitation_with_http_info(invitation_id, opts = {})
|
194
259
|
if @api_client.config.debugging
|
195
260
|
@api_client.config.logger.debug 'Calling API: InvitationsApi.revoke_invitation ...'
|
196
261
|
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
|
|
@@ -22,19 +22,19 @@ module ClerkHttpClient
|
|
22
22
|
# Retrieve the JSON Web Key Set of the instance
|
23
23
|
# Retrieve the JSON Web Key Set of the instance
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
|
-
# @return [
|
25
|
+
# @return [JWKS]
|
26
26
|
|
27
|
-
def
|
28
|
-
data, _status_code, _headers =
|
27
|
+
def get_jwks(opts = {})
|
28
|
+
data, _status_code, _headers = get_jwks_with_http_info(opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
32
|
# Retrieve the JSON Web Key Set of the instance
|
33
33
|
# Retrieve the JSON Web Key Set of the instance
|
34
34
|
# @param [Hash] opts the optional parameters
|
35
|
-
# @return [Array<(
|
35
|
+
# @return [Array<(JWKS, Integer, Hash)>] JWKS data, response status code and response headers
|
36
36
|
# GET
|
37
|
-
def
|
37
|
+
def get_jwks_with_http_info(opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: JWKSApi.get_jwks ...'
|
40
40
|
end
|
@@ -56,7 +56,7 @@ module ClerkHttpClient
|
|
56
56
|
post_body = opts[:debug_body]
|
57
57
|
|
58
58
|
# return_type
|
59
|
-
return_type = opts[:debug_return_type] || '
|
59
|
+
return_type = opts[:debug_return_type] || 'JWKS'
|
60
60
|
|
61
61
|
# auth_names
|
62
62
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
@@ -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 a JWT template
|
23
23
|
# Create a new JWT template
|
24
|
-
# @param create_jwt_template_request [CreateJWTTemplateRequest]
|
25
24
|
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [CreateJWTTemplateRequest] :create_jwt_template_request
|
26
26
|
# @return [JWTTemplate]
|
27
27
|
|
28
|
-
def
|
29
|
-
data, _status_code, _headers =
|
28
|
+
def create_jwt_template(opts = {})
|
29
|
+
data, _status_code, _headers = create_jwt_template_with_http_info(opts)
|
30
30
|
data
|
31
31
|
end
|
32
32
|
|
33
33
|
# Create a JWT template
|
34
34
|
# Create a new JWT template
|
35
|
-
# @param create_jwt_template_request [CreateJWTTemplateRequest]
|
36
35
|
# @param [Hash] opts the optional parameters
|
36
|
+
# @option opts [CreateJWTTemplateRequest] :create_jwt_template_request
|
37
37
|
# @return [Array<(JWTTemplate, Integer, Hash)>] JWTTemplate data, response status code and response headers
|
38
38
|
# POST
|
39
|
-
def
|
39
|
+
def create_jwt_template_with_http_info(opts = {})
|
40
40
|
if @api_client.config.debugging
|
41
41
|
@api_client.config.logger.debug 'Calling API: JWTTemplatesApi.create_jwt_template ...'
|
42
42
|
end
|
43
|
-
# verify the required parameter 'create_jwt_template_request' is set
|
44
|
-
if @api_client.config.client_side_validation && create_jwt_template_request.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'create_jwt_template_request' when calling JWTTemplatesApi.create_jwt_template"
|
46
|
-
end
|
47
43
|
# resource path
|
48
44
|
local_var_path = '/jwt_templates'
|
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_jwt_template_request)
|
63
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_jwt_template_request'])
|
68
64
|
|
69
65
|
# return_type
|
70
66
|
return_type = opts[:debug_return_type] || 'JWTTemplate'
|
@@ -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_jwt_template(template_id, opts = {})
|
95
|
+
data, _status_code, _headers = delete_jwt_template_with_http_info(template_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_jwt_template_with_http_info(template_id, opts = {})
|
110
106
|
if @api_client.config.debugging
|
111
107
|
@api_client.config.logger.debug 'Calling API: JWTTemplatesApi.delete_jwt_template ...'
|
112
108
|
end
|
@@ -160,8 +156,8 @@ module ClerkHttpClient
|
|
160
156
|
# @param [Hash] opts the optional parameters
|
161
157
|
# @return [JWTTemplate]
|
162
158
|
|
163
|
-
def
|
164
|
-
data, _status_code, _headers =
|
159
|
+
def get_jwt_template(template_id, opts = {})
|
160
|
+
data, _status_code, _headers = get_jwt_template_with_http_info(template_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<(JWTTemplate, Integer, Hash)>] JWTTemplate data, response status code and response headers
|
173
169
|
# GET
|
174
|
-
def
|
170
|
+
def get_jwt_template_with_http_info(template_id, opts = {})
|
175
171
|
if @api_client.config.debugging
|
176
172
|
@api_client.config.logger.debug 'Calling API: JWTTemplatesApi.get_jwt_template ...'
|
177
173
|
end
|
@@ -223,8 +219,8 @@ module ClerkHttpClient
|
|
223
219
|
# @param [Hash] opts the optional parameters
|
224
220
|
# @return [Array<JWTTemplate>]
|
225
221
|
|
226
|
-
def
|
227
|
-
data, _status_code, _headers =
|
222
|
+
def list_jwt_templates(opts = {})
|
223
|
+
data, _status_code, _headers = list_jwt_templates_with_http_info(opts)
|
228
224
|
data
|
229
225
|
end
|
230
226
|
|
@@ -232,7 +228,7 @@ module ClerkHttpClient
|
|
232
228
|
# @param [Hash] opts the optional parameters
|
233
229
|
# @return [Array<(Array<JWTTemplate>, Integer, Hash)>] Array<JWTTemplate> data, response status code and response headers
|
234
230
|
# GET array
|
235
|
-
def
|
231
|
+
def list_jwt_templates_with_http_info(opts = {})
|
236
232
|
if @api_client.config.debugging
|
237
233
|
@api_client.config.logger.debug 'Calling API: JWTTemplatesApi.list_jwt_templates ...'
|
238
234
|
end
|
@@ -279,23 +275,23 @@ module ClerkHttpClient
|
|
279
275
|
# Update a JWT template
|
280
276
|
# Updates an existing JWT template
|
281
277
|
# @param template_id [String] The ID of the JWT template to update
|
282
|
-
# @param create_jwt_template_request [CreateJWTTemplateRequest]
|
283
278
|
# @param [Hash] opts the optional parameters
|
279
|
+
# @option opts [CreateJWTTemplateRequest] :create_jwt_template_request
|
284
280
|
# @return [JWTTemplate]
|
285
281
|
|
286
|
-
def
|
287
|
-
data, _status_code, _headers =
|
282
|
+
def update_jwt_template(template_id, opts = {})
|
283
|
+
data, _status_code, _headers = update_jwt_template_with_http_info(template_id, opts)
|
288
284
|
data
|
289
285
|
end
|
290
286
|
|
291
287
|
# Update a JWT template
|
292
288
|
# Updates an existing JWT template
|
293
289
|
# @param template_id [String] The ID of the JWT template to update
|
294
|
-
# @param create_jwt_template_request [CreateJWTTemplateRequest]
|
295
290
|
# @param [Hash] opts the optional parameters
|
291
|
+
# @option opts [CreateJWTTemplateRequest] :create_jwt_template_request
|
296
292
|
# @return [Array<(JWTTemplate, Integer, Hash)>] JWTTemplate data, response status code and response headers
|
297
293
|
# PATCH
|
298
|
-
def
|
294
|
+
def update_jwt_template_with_http_info(template_id, opts = {})
|
299
295
|
if @api_client.config.debugging
|
300
296
|
@api_client.config.logger.debug 'Calling API: JWTTemplatesApi.update_jwt_template ...'
|
301
297
|
end
|
@@ -303,10 +299,6 @@ module ClerkHttpClient
|
|
303
299
|
if @api_client.config.client_side_validation && template_id.nil?
|
304
300
|
fail ArgumentError, "Missing the required parameter 'template_id' when calling JWTTemplatesApi.update_jwt_template"
|
305
301
|
end
|
306
|
-
# verify the required parameter 'create_jwt_template_request' is set
|
307
|
-
if @api_client.config.client_side_validation && create_jwt_template_request.nil?
|
308
|
-
fail ArgumentError, "Missing the required parameter 'create_jwt_template_request' when calling JWTTemplatesApi.update_jwt_template"
|
309
|
-
end
|
310
302
|
# resource path
|
311
303
|
local_var_path = '/jwt_templates/{template_id}'.sub('{' + 'template_id' + '}', CGI.escape(template_id.to_s))
|
312
304
|
|
@@ -327,7 +319,7 @@ module ClerkHttpClient
|
|
327
319
|
form_params = opts[:form_params] || {}
|
328
320
|
|
329
321
|
# http body (model)
|
330
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_jwt_template_request)
|
322
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_jwt_template_request'])
|
331
323
|
|
332
324
|
# return_type
|
333
325
|
return_type = opts[:debug_return_type] || 'JWTTemplate'
|
@@ -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
|
# @option opts [String] :publishable_key The publishable key of your instance
|
27
27
|
# @return [nil]
|
28
28
|
|
29
|
-
def
|
30
|
-
|
29
|
+
def get_public_interstitial(opts = {})
|
30
|
+
get_public_interstitial_with_http_info(opts)
|
31
31
|
nil
|
32
32
|
end
|
33
33
|
|
@@ -38,7 +38,7 @@ module ClerkHttpClient
|
|
38
38
|
# @option opts [String] :publishable_key The publishable key of your instance
|
39
39
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
40
40
|
# GET
|
41
|
-
def
|
41
|
+
def get_public_interstitial_with_http_info(opts = {})
|
42
42
|
if @api_client.config.debugging
|
43
43
|
@api_client.config.logger.debug 'Calling API: MiscellaneousApi.get_public_interstitial ...'
|
44
44
|
end
|