clerk-sdk-ruby 8.0.1 → 9.0.0
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/lib/clerk/actortokens.rb +9 -9
- data/lib/clerk/admin_portal_link_tokens.rb +18 -18
- data/lib/clerk/agenttasks.rb +9 -9
- data/lib/clerk/allowlistidentifiers.rb +13 -13
- data/lib/clerk/api_keys.rb +48 -48
- data/lib/clerk/betafeatures.rb +12 -10
- data/lib/clerk/billing.rb +68 -68
- data/lib/clerk/blocklistidentifiers.rb +13 -13
- data/lib/clerk/clients.rb +13 -13
- data/lib/clerk/directories.rb +342 -46
- data/lib/clerk/domains.rb +23 -20
- data/lib/clerk/emailaddresses.rb +37 -37
- data/lib/clerk/emailandsmstemplates.rb +5 -5
- data/lib/clerk/emailsmstemplates.rb +17 -17
- data/lib/clerk/enterpriseconnections.rb +31 -31
- data/lib/clerk/instancesettings.rb +52 -50
- data/lib/clerk/invitations.rb +166 -18
- data/lib/clerk/jwks.rb +3 -3
- data/lib/clerk/jwttemplates.rb +21 -21
- data/lib/clerk/logs.rb +683 -0
- data/lib/clerk/m2m.rb +27 -27
- data/lib/clerk/machines.rb +41 -41
- data/lib/clerk/miscellaneous.rb +2 -2
- data/lib/clerk/models/components/clerkerror.rb +1 -1
- data/lib/clerk/models/components/data.rb +27 -0
- data/lib/clerk/models/components/{type.rbi → data.rbi} +2 -2
- data/lib/clerk/models/components/directory.rb +8 -2
- data/lib/clerk/models/components/directory.rbi +2 -0
- data/lib/clerk/models/components/directorygroup.rb +44 -0
- data/lib/clerk/models/components/{directory_group.rbi → directorygroup.rbi} +4 -0
- data/lib/clerk/models/components/directorygroup_object.rb +19 -0
- data/lib/clerk/models/components/directorygroup_object.rbi +11 -0
- data/lib/clerk/models/components/directorygroupmember.rb +40 -0
- data/lib/clerk/models/components/directorygroupmember.rbi +17 -0
- data/lib/clerk/models/components/directorygroupmember_list.rb +36 -0
- data/lib/clerk/models/components/directorygroupmember_list.rbi +15 -0
- data/lib/clerk/models/components/directorygroupmember_list_cursor.rb +40 -0
- data/lib/clerk/models/components/directorygroupmember_list_cursor.rbi +17 -0
- data/lib/clerk/models/components/directorygroupmember_object.rb +19 -0
- data/lib/clerk/models/components/directorygroupmember_object.rbi +11 -0
- data/lib/clerk/models/components/directorygrouprolemapping_deleted.rb +1 -1
- data/lib/clerk/models/components/emailaddress_verification_saml_clerkerror.rb +1 -1
- data/lib/clerk/models/components/enterpriseaccount.rb +1 -1
- data/lib/clerk/models/components/enterpriseaccount_verification_oauth_clerkerror.rb +1 -1
- data/lib/clerk/models/components/enterpriseaccount_verification_saml_clerkerror.rb +1 -1
- data/lib/clerk/models/components/enterpriseconnection_idp_certificate.rb +40 -0
- data/lib/clerk/models/components/enterpriseconnection_idp_certificate.rbi +17 -0
- data/lib/clerk/models/components/enterpriseconnection_saml_connection.rb +18 -1
- data/lib/clerk/models/components/enterpriseconnection_saml_connection.rbi +8 -0
- data/lib/clerk/models/components/enterpriseconnectiontestrun.rb +1 -1
- data/lib/clerk/models/components/enterpriseconnectiontestrun_log.rb +44 -0
- data/lib/clerk/models/components/enterpriseconnectiontestrun_log.rbi +19 -0
- data/lib/clerk/models/components/externalaccountwithverification.rb +2 -2
- data/lib/clerk/models/components/externalaccountwithverification_verification_oauth_clerkerror.rb +1 -1
- data/lib/clerk/models/components/first_event.rb +115 -0
- data/lib/clerk/models/components/first_event.rbi +49 -0
- data/lib/clerk/models/components/instance.rb +5 -1
- data/lib/clerk/models/components/instance.rbi +2 -0
- data/lib/clerk/models/components/instanceprotect.rb +1 -1
- data/lib/clerk/models/components/invitation.rb +1 -1
- data/lib/clerk/models/components/invitation_revoked.rb +2 -2
- data/lib/clerk/models/components/log.rb +87 -18
- data/lib/clerk/models/components/log.rbi +38 -8
- data/lib/clerk/models/components/log_impersonator.rb +32 -0
- data/lib/clerk/models/components/log_impersonator.rbi +13 -0
- data/lib/clerk/models/components/log_list.rb +39 -0
- data/lib/clerk/models/components/log_list.rbi +15 -0
- data/lib/clerk/models/components/log_list_cursor.rb +72 -0
- data/lib/clerk/models/components/log_list_cursor.rbi +29 -0
- data/lib/clerk/models/components/logapplicationcontext.rb +36 -0
- data/lib/clerk/models/components/logapplicationcontext.rbi +15 -0
- data/lib/clerk/models/components/logbrowsercontext.rb +36 -0
- data/lib/clerk/models/components/logbrowsercontext.rbi +15 -0
- data/lib/clerk/models/components/logcontext.rb +36 -0
- data/lib/clerk/models/components/logcontext.rbi +15 -0
- data/lib/clerk/models/components/logdevicecontext.rb +60 -0
- data/lib/clerk/models/components/logdevicecontext.rbi +27 -0
- data/lib/clerk/models/components/logdomaincontext.rb +36 -0
- data/lib/clerk/models/components/logdomaincontext.rbi +15 -0
- data/lib/clerk/models/components/logenvironmentcontext.rb +44 -0
- data/lib/clerk/models/components/logenvironmentcontext.rbi +19 -0
- data/lib/clerk/models/components/loggroup.rb +89 -0
- data/lib/clerk/models/components/loggroup.rbi +37 -0
- data/lib/clerk/models/components/loggroup_impersonator.rb +32 -0
- data/lib/clerk/models/components/loggroup_impersonator.rbi +13 -0
- data/lib/clerk/models/components/loggroup_object.rb +19 -0
- data/lib/clerk/models/components/loggroup_object.rbi +11 -0
- data/lib/clerk/models/components/loglocationcontext.rb +41 -0
- data/lib/clerk/models/components/loglocationcontext.rbi +17 -0
- data/lib/clerk/models/components/logschema.rb +68 -0
- data/lib/clerk/models/components/logschema.rbi +25 -0
- data/lib/clerk/models/components/logschemafield.rb +49 -0
- data/lib/clerk/models/components/logschemafield.rbi +19 -0
- data/lib/clerk/models/components/logschemafield_type.rb +22 -0
- data/lib/clerk/models/components/logschemafield_type.rbi +11 -0
- data/lib/clerk/models/components/logwithpayload.rb +110 -0
- data/lib/clerk/models/components/logwithpayload.rbi +49 -0
- data/lib/clerk/models/components/logwithpayload_impersonator.rb +32 -0
- data/lib/clerk/models/components/logwithpayload_impersonator.rbi +13 -0
- data/lib/clerk/models/components/machine_deleted.rb +1 -1
- data/lib/clerk/models/components/machinescope_deleted.rb +1 -1
- data/lib/clerk/models/components/next_page_status.rb +21 -0
- data/lib/clerk/models/components/next_page_status.rbi +11 -0
- data/lib/clerk/models/components/oauthaccesstoken.rb +1 -1
- data/lib/clerk/models/components/oauthapplication.rb +9 -1
- data/lib/clerk/models/components/oauthapplication.rbi +4 -0
- data/lib/clerk/models/components/oauthapplicationsettings.rb +9 -1
- data/lib/clerk/models/components/oauthapplicationsettings.rbi +4 -0
- data/lib/clerk/models/components/oauthapplicationwithsecret.rb +9 -1
- data/lib/clerk/models/components/oauthapplicationwithsecret.rbi +4 -0
- data/lib/clerk/models/components/organization.rb +13 -8
- data/lib/clerk/models/components/organization.rbi +4 -2
- data/lib/clerk/models/components/organizationinvitation.rb +2 -2
- data/lib/clerk/models/components/organizationinvitationwithpublicorganizationdata.rb +2 -2
- data/lib/clerk/models/components/organizationmembership.rb +2 -2
- data/lib/clerk/models/components/organizationmembership_organization.rb +13 -8
- data/lib/clerk/models/components/organizationmembership_organization.rbi +4 -2
- data/lib/clerk/models/components/organizationwithlogo.rb +13 -8
- data/lib/clerk/models/components/organizationwithlogo.rbi +4 -2
- data/lib/clerk/models/components/role_set_migration.rb +1 -1
- data/lib/clerk/models/components/roleset.rb +1 -1
- data/lib/clerk/models/components/{type.rb → roleset_type.rb} +2 -2
- data/lib/clerk/models/components/roleset_type.rbi +11 -0
- data/lib/clerk/models/components/samlaccount.rb +1 -1
- data/lib/clerk/models/components/samlaccount_clerkerror.rb +1 -1
- data/lib/clerk/models/components/samlconnection_1.rb +6 -1
- data/lib/clerk/models/components/samlconnection_1.rbi +2 -0
- data/lib/clerk/models/components/samlconnection_2.rb +6 -1
- data/lib/clerk/models/components/samlconnection_2.rbi +2 -0
- data/lib/clerk/models/components/samlconnection_idp_certificate_1.rb +40 -0
- data/lib/clerk/models/components/samlconnection_idp_certificate_1.rbi +17 -0
- data/lib/clerk/models/components/samlconnection_idp_certificate_2.rb +40 -0
- data/lib/clerk/models/components/samlconnection_idp_certificate_2.rbi +17 -0
- data/lib/clerk/models/components/scimdirectory.rb +8 -2
- data/lib/clerk/models/components/scimdirectory.rbi +2 -0
- data/lib/clerk/models/components/scimgrouprolemapping_deleted.rb +1 -1
- data/lib/clerk/models/components/session.rb +2 -2
- data/lib/clerk/models/components/signup.rb +7 -3
- data/lib/clerk/models/components/signup.rbi +2 -0
- data/lib/clerk/models/components/signupverification.rb +1 -1
- data/lib/clerk/models/components/ssobypassallowlistpublicuserdata.rb +58 -0
- data/lib/clerk/models/components/ssobypassallowlistpublicuserdata.rbi +25 -0
- data/lib/clerk/models/components/ssobypassallowlistuser.rb +49 -0
- data/lib/clerk/models/components/ssobypassallowlistuser.rbi +21 -0
- data/lib/clerk/models/components/ssobypassallowlistuser_object.rb +19 -0
- data/lib/clerk/models/components/ssobypassallowlistuser_object.rbi +11 -0
- data/lib/clerk/models/components/user.rb +8 -4
- data/lib/clerk/models/components/user.rbi +2 -0
- data/lib/clerk/models/components/user_directory.rb +1 -1
- data/lib/clerk/models/components/{directory_group.rb → user_directory_group.rb} +1 -1
- data/lib/clerk/models/components/user_directory_group.rbi +15 -0
- data/lib/clerk/models/components/verification_from_oauth_clerkerror.rb +1 -1
- data/lib/clerk/models/components/verification_google_one_tap_clerkerror.rb +1 -1
- data/lib/clerk/models/components/waitlistentry_invitation.rb +1 -1
- data/lib/clerk/models/components.rb +37 -3
- data/lib/clerk/models/errors/apierror.rb +3 -3
- data/lib/clerk/models/errors/clerkerrors.rb +2 -2
- data/lib/clerk/models/errors/createadminportallinktoken_badrequest_error.rb +1 -1
- data/lib/clerk/models/errors/createadminportallinktoken_conflict_error.rb +1 -1
- data/lib/clerk/models/errors/createadminportallinktoken_forbidden_error.rb +1 -1
- data/lib/clerk/models/errors/createadminportallinktoken_unauthorized_error.rb +1 -1
- data/lib/clerk/models/errors/createapikey_badrequest_error.rb +1 -1
- data/lib/clerk/models/errors/createapikey_conflict_error.rb +1 -1
- data/lib/clerk/models/errors/createm2mtoken_badrequest_error.rb +1 -1
- data/lib/clerk/models/errors/createm2mtoken_conflict_error.rb +1 -1
- data/lib/clerk/models/errors/deleteapikey_badrequest_error.rb +1 -1
- data/lib/clerk/models/errors/deleteapikey_notfound_error.rb +1 -1
- data/lib/clerk/models/errors/getapikey_badrequest_error.rb +1 -1
- data/lib/clerk/models/errors/getapikey_notfound_error.rb +1 -1
- data/lib/clerk/models/errors/getapikeys_badrequest_error.rb +1 -1
- data/lib/clerk/models/errors/getapikeys_notfound_error.rb +1 -1
- data/lib/clerk/models/errors/getapikeysecret_badrequest_error.rb +1 -1
- data/lib/clerk/models/errors/getapikeysecret_notfound_error.rb +1 -1
- data/lib/clerk/models/errors/getm2mtokens_badrequest_error.rb +1 -1
- data/lib/clerk/models/errors/getm2mtokens_forbidden_error.rb +1 -1
- data/lib/clerk/models/errors/getm2mtokens_notfound_error.rb +1 -1
- data/lib/clerk/models/errors/revokeadminportallinktoken_badrequest_error.rb +1 -1
- data/lib/clerk/models/errors/revokeadminportallinktoken_forbidden_error.rb +1 -1
- data/lib/clerk/models/errors/revokeadminportallinktoken_notfound_error.rb +1 -1
- data/lib/clerk/models/errors/revokeadminportallinktoken_unauthorized_error.rb +1 -1
- data/lib/clerk/models/errors/revokeapikey_badrequest_error.rb +1 -1
- data/lib/clerk/models/errors/revokeapikey_notfound_error.rb +1 -1
- data/lib/clerk/models/errors/revokem2mtoken_badrequest_error.rb +1 -1
- data/lib/clerk/models/errors/revokem2mtoken_notfound_error.rb +1 -1
- data/lib/clerk/models/errors/updateapikey_badrequest_error.rb +1 -1
- data/lib/clerk/models/errors/updateapikey_notfound_error.rb +1 -1
- data/lib/clerk/models/errors/verifyapikey_badrequest_error.rb +1 -1
- data/lib/clerk/models/errors/verifyapikey_notfound_error.rb +1 -1
- data/lib/clerk/models/errors/verifym2mtoken_badrequest_error.rb +1 -1
- data/lib/clerk/models/errors/verifym2mtoken_notfound_error.rb +1 -1
- data/lib/clerk/models/errors/verifyoauthaccesstoken_badrequest_error.rb +1 -1
- data/lib/clerk/models/errors/verifyoauthaccesstoken_notfound_error.rb +1 -1
- data/lib/clerk/models/operations/act.rb +40 -0
- data/lib/clerk/models/operations/act.rbi +17 -0
- data/lib/clerk/models/operations/act_act.rb +36 -0
- data/lib/clerk/models/operations/act_act.rbi +15 -0
- data/lib/clerk/models/operations/actor.rb +1 -1
- data/lib/clerk/models/operations/attemptemailaddressverification_requestbody.rb +7 -1
- data/lib/clerk/models/operations/attemptemailaddressverification_requestbody.rbi +2 -0
- data/lib/clerk/models/operations/attemptphonenumberverification_requestbody.rb +7 -1
- data/lib/clerk/models/operations/attemptphonenumberverification_requestbody.rbi +2 -0
- data/lib/clerk/models/operations/clerkidpoauthaccesstoken.rb +5 -1
- data/lib/clerk/models/operations/clerkidpoauthaccesstoken.rbi +2 -0
- data/lib/clerk/models/operations/createbulkinvitations_requestbody.rb +1 -1
- data/lib/clerk/models/operations/createenterpriseconnection_saml.rb +8 -2
- data/lib/clerk/models/operations/createenterpriseconnection_saml.rbi +2 -0
- data/lib/clerk/models/operations/createinvitation_request.rb +1 -1
- data/lib/clerk/models/operations/createoauthapplication_request.rb +13 -1
- data/lib/clerk/models/operations/createoauthapplication_request.rbi +6 -0
- data/lib/clerk/models/operations/createorganization_request.rb +2 -2
- data/lib/clerk/models/operations/createorganizationinvitation_requestbody.rb +2 -2
- data/lib/clerk/models/operations/createorganizationinvitationbulk_requestbody.rb +2 -2
- data/lib/clerk/models/operations/createorganizationmembership_requestbody.rb +2 -2
- data/lib/clerk/models/operations/createsamlconnection_requestbody_1.rb +8 -2
- data/lib/clerk/models/operations/createsamlconnection_requestbody_1.rbi +2 -0
- data/lib/clerk/models/operations/createsamlconnection_requestbody_2.rb +8 -2
- data/lib/clerk/models/operations/createsamlconnection_requestbody_2.rbi +2 -0
- data/lib/clerk/models/operations/createsignintoken_request.rb +17 -2
- data/lib/clerk/models/operations/createsignintoken_request.rbi +4 -0
- data/lib/clerk/models/operations/createssobypassallowlistuser_request.rb +32 -0
- data/lib/clerk/models/operations/createssobypassallowlistuser_request.rbi +13 -0
- data/lib/clerk/models/operations/createssobypassallowlistuser_response.rb +44 -0
- data/lib/clerk/models/operations/createssobypassallowlistuser_response.rbi +19 -0
- data/lib/clerk/models/operations/createuser_request.rb +8 -4
- data/lib/clerk/models/operations/createuser_request.rbi +2 -0
- data/lib/clerk/models/operations/deleteapikey_responsebody.rb +1 -1
- data/lib/clerk/models/operations/deleteinvitation_request.rb +32 -0
- data/lib/clerk/models/operations/deleteinvitation_request.rbi +13 -0
- data/lib/clerk/models/operations/deleteinvitation_response.rb +44 -0
- data/lib/clerk/models/operations/deleteinvitation_response.rbi +19 -0
- data/lib/clerk/models/operations/deletessobypassallowlistuser_request.rb +32 -0
- data/lib/clerk/models/operations/deletessobypassallowlistuser_request.rbi +13 -0
- data/lib/clerk/models/operations/deletessobypassallowlistuser_response.rb +44 -0
- data/lib/clerk/models/operations/deletessobypassallowlistuser_response.rbi +19 -0
- data/lib/clerk/models/operations/filter_match.rb +27 -0
- data/lib/clerk/models/operations/filter_match.rbi +11 -0
- data/lib/clerk/models/operations/getdirectorygroup_request.rb +36 -0
- data/lib/clerk/models/operations/getdirectorygroup_request.rbi +15 -0
- data/lib/clerk/models/operations/getdirectorygroup_response.rb +44 -0
- data/lib/clerk/models/operations/getdirectorygroup_response.rbi +19 -0
- data/lib/clerk/models/operations/getlog_request.rb +34 -0
- data/lib/clerk/models/operations/getlog_request.rbi +13 -0
- data/lib/clerk/models/operations/getlog_response.rb +44 -0
- data/lib/clerk/models/operations/getlog_response.rbi +19 -0
- data/lib/clerk/models/operations/getlogschema_request.rb +35 -0
- data/lib/clerk/models/operations/getlogschema_request.rbi +13 -0
- data/lib/clerk/models/operations/getlogschema_response.rb +44 -0
- data/lib/clerk/models/operations/getlogschema_response.rbi +19 -0
- data/lib/clerk/models/operations/listdirectorygroupmembers_request.rb +45 -0
- data/lib/clerk/models/operations/listdirectorygroupmembers_request.rbi +19 -0
- data/lib/clerk/models/operations/listdirectorygroupmembers_response.rb +44 -0
- data/lib/clerk/models/operations/listdirectorygroupmembers_response.rbi +19 -0
- data/lib/clerk/models/operations/listinvitations_request.rb +6 -1
- data/lib/clerk/models/operations/listinvitations_request.rbi +2 -0
- data/lib/clerk/models/operations/listloggroupevents_request.rb +47 -0
- data/lib/clerk/models/operations/listloggroupevents_request.rbi +19 -0
- data/lib/clerk/models/operations/listloggroupevents_response.rb +44 -0
- data/lib/clerk/models/operations/listloggroupevents_response.rbi +19 -0
- data/lib/clerk/models/operations/listlogs_request.rb +228 -0
- data/lib/clerk/models/operations/listlogs_request.rbi +55 -0
- data/lib/clerk/models/operations/listlogs_response.rb +44 -0
- data/lib/clerk/models/operations/listlogs_response.rbi +19 -0
- data/lib/clerk/models/operations/listssobypassallowlistusers_request.rb +32 -0
- data/lib/clerk/models/operations/listssobypassallowlistusers_request.rbi +13 -0
- data/lib/clerk/models/operations/listssobypassallowlistusers_response.rb +44 -0
- data/lib/clerk/models/operations/listssobypassallowlistusers_response.rbi +19 -0
- data/lib/clerk/models/operations/mergeorganizationmetadata_requestbody.rb +2 -2
- data/lib/clerk/models/operations/mergeuser_request.rb +36 -0
- data/lib/clerk/models/operations/mergeuser_request.rbi +15 -0
- data/lib/clerk/models/operations/mergeuser_requestbody.rb +36 -0
- data/lib/clerk/models/operations/mergeuser_requestbody.rbi +15 -0
- data/lib/clerk/models/operations/mergeuser_response.rb +44 -0
- data/lib/clerk/models/operations/mergeuser_response.rbi +19 -0
- data/lib/clerk/models/operations/mergeuser_responsebody.rb +36 -0
- data/lib/clerk/models/operations/mergeuser_responsebody.rbi +15 -0
- data/lib/clerk/models/operations/refreshsession_requestbody.rb +1 -1
- data/lib/clerk/models/operations/replaceorganizationmetadata_requestbody.rb +2 -2
- data/lib/clerk/models/operations/replaceroleset_requestbody.rb +1 -1
- data/lib/clerk/models/operations/replaceusermetadata_requestbody.rb +3 -3
- data/lib/clerk/models/operations/responsebody.rb +1 -1
- data/lib/clerk/models/operations/revokesession_request.rb +5 -1
- data/lib/clerk/models/operations/revokesession_request.rbi +2 -0
- data/lib/clerk/models/operations/revokesession_requestbody.rb +36 -0
- data/lib/clerk/models/operations/revokesession_requestbody.rbi +13 -0
- data/lib/clerk/models/operations/second_factor_verification.rb +25 -0
- data/lib/clerk/models/operations/second_factor_verification.rbi +11 -0
- data/lib/clerk/models/operations/updatedirectory_requestbody.rb +8 -2
- data/lib/clerk/models/operations/updatedirectory_requestbody.rbi +2 -0
- data/lib/clerk/models/operations/updateenterpriseconnection_saml.rb +8 -2
- data/lib/clerk/models/operations/updateenterpriseconnection_saml.rbi +2 -0
- data/lib/clerk/models/operations/updateinstance_request.rb +1 -1
- data/lib/clerk/models/operations/updateinstanceoauthapplicationsettings_request.rb +9 -1
- data/lib/clerk/models/operations/updateinstanceoauthapplicationsettings_request.rbi +4 -0
- data/lib/clerk/models/operations/updateinstanceprotect_request.rb +1 -5
- data/lib/clerk/models/operations/updateinstanceprotect_request.rbi +0 -2
- data/lib/clerk/models/operations/updateoauthapplication_requestbody.rb +13 -1
- data/lib/clerk/models/operations/updateoauthapplication_requestbody.rbi +6 -0
- data/lib/clerk/models/operations/updateorganization_requestbody.rb +12 -2
- data/lib/clerk/models/operations/updateorganization_requestbody.rbi +4 -0
- data/lib/clerk/models/operations/updateorganizationmembershipmetadata_requestbody.rb +2 -2
- data/lib/clerk/models/operations/updatesamlconnection_requestbody.rb +8 -2
- data/lib/clerk/models/operations/updatesamlconnection_requestbody.rbi +2 -0
- data/lib/clerk/models/operations/updatescimdirectory_requestbody.rb +8 -2
- data/lib/clerk/models/operations/updatescimdirectory_requestbody.rbi +2 -0
- data/lib/clerk/models/operations/updatesession_request.rb +36 -0
- data/lib/clerk/models/operations/updatesession_request.rbi +15 -0
- data/lib/clerk/models/operations/updatesession_requestbody.rb +33 -0
- data/lib/clerk/models/operations/updatesession_requestbody.rbi +13 -0
- data/lib/clerk/models/operations/updatesession_response.rb +44 -0
- data/lib/clerk/models/operations/updatesession_response.rbi +19 -0
- data/lib/clerk/models/operations/updateuser_requestbody.rb +5 -1
- data/lib/clerk/models/operations/updateuser_requestbody.rbi +2 -0
- data/lib/clerk/models/operations/updateusermetadata_requestbody.rb +3 -3
- data/lib/clerk/models/operations/verifypassword_requestbody.rb +7 -1
- data/lib/clerk/models/operations/verifypassword_requestbody.rbi +2 -0
- data/lib/clerk/models/operations/verifytotp_requestbody.rb +7 -1
- data/lib/clerk/models/operations/verifytotp_requestbody.rbi +2 -0
- data/lib/clerk/models/operations/view.rb +38 -0
- data/lib/clerk/models/operations/view.rbi +11 -0
- data/lib/clerk/models/operations.rb +33 -0
- data/lib/clerk/oauthaccesstokens.rb +7 -7
- data/lib/clerk/oauthapplications.rb +37 -37
- data/lib/clerk/openapiclient.rb +3 -1
- data/lib/clerk/organizationdomains.rb +28 -28
- data/lib/clerk/organizationinvitations.rb +35 -35
- data/lib/clerk/organizationmemberships.rb +25 -25
- data/lib/clerk/organizationpermissions.rb +24 -24
- data/lib/clerk/organizationroles.rb +32 -32
- data/lib/clerk/organizations.rb +61 -61
- data/lib/clerk/phonenumbers.rb +36 -36
- data/lib/clerk/proxychecks.rb +5 -5
- data/lib/clerk/redirecturls.rb +16 -16
- data/lib/clerk/rolesets.rb +38 -38
- data/lib/clerk/samlconnections.rb +23 -23
- data/lib/clerk/scimdirectories.rb +46 -46
- data/lib/clerk/sdk_hooks/types.rb +4 -4
- data/lib/clerk/sdkconfiguration.rb +4 -4
- data/lib/clerk/sessions.rb +219 -42
- data/lib/clerk/signintokens.rb +9 -9
- data/lib/clerk/signups.rb +9 -9
- data/lib/clerk/ssobypassallowlistusers.rb +477 -0
- data/lib/clerk/templates.rb +5 -5
- data/lib/clerk/testingtokens.rb +3 -3
- data/lib/clerk/users.rb +376 -189
- data/lib/clerk/utils/forms.rb +9 -9
- data/lib/clerk/utils/headers.rb +2 -2
- data/lib/clerk/utils/query_params.rb +6 -6
- data/lib/clerk/utils/request_bodies.rb +2 -2
- data/lib/clerk/utils/retries.rb +5 -5
- data/lib/clerk/utils/security.rb +4 -4
- data/lib/clerk/utils/utils.rb +13 -13
- data/lib/clerk/waitlistentries.rb +26 -26
- data/lib/clerk/webhooks.rb +11 -11
- data/lib/clerk-sdk-ruby.rb +6 -0
- data/lib/clerk_sdk_ruby.rb +2 -0
- metadata +143 -6
|
@@ -62,7 +62,7 @@ module Clerk
|
|
|
62
62
|
retry_connection_errors: true,
|
|
63
63
|
strategy: 'backoff'
|
|
64
64
|
)
|
|
65
|
-
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
65
|
+
retry_options = retries.to_faraday_retry_options(initial_time: ::Time.now)
|
|
66
66
|
retry_options[:retry_statuses] = [500, 501, 502, 503, 504, 505]
|
|
67
67
|
|
|
68
68
|
security = @sdk_configuration.security_source&.call
|
|
@@ -102,7 +102,7 @@ module Clerk
|
|
|
102
102
|
request: req
|
|
103
103
|
)
|
|
104
104
|
end
|
|
105
|
-
rescue StandardError => e
|
|
105
|
+
rescue ::StandardError => e
|
|
106
106
|
error = e
|
|
107
107
|
ensure
|
|
108
108
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -138,7 +138,7 @@ module Clerk
|
|
|
138
138
|
response: http_response
|
|
139
139
|
)
|
|
140
140
|
response_data = http_response.env.response_body
|
|
141
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::Instance)
|
|
141
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::Instance)
|
|
142
142
|
response = Models::Operations::GetInstanceResponse.new(
|
|
143
143
|
status_code: http_response.status,
|
|
144
144
|
content_type: content_type,
|
|
@@ -176,7 +176,7 @@ module Clerk
|
|
|
176
176
|
if form && !form.empty?
|
|
177
177
|
body = Utils.encode_form(form)
|
|
178
178
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
179
|
-
body = URI.encode_www_form(data)
|
|
179
|
+
body = ::URI.encode_www_form(data)
|
|
180
180
|
else
|
|
181
181
|
body = data
|
|
182
182
|
end
|
|
@@ -193,7 +193,7 @@ module Clerk
|
|
|
193
193
|
retry_connection_errors: true,
|
|
194
194
|
strategy: 'backoff'
|
|
195
195
|
)
|
|
196
|
-
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
196
|
+
retry_options = retries.to_faraday_retry_options(initial_time: ::Time.now)
|
|
197
197
|
retry_options[:retry_statuses] = [500, 501, 502, 503, 504, 505]
|
|
198
198
|
|
|
199
199
|
security = @sdk_configuration.security_source&.call
|
|
@@ -234,7 +234,7 @@ module Clerk
|
|
|
234
234
|
request: req
|
|
235
235
|
)
|
|
236
236
|
end
|
|
237
|
-
rescue StandardError => e
|
|
237
|
+
rescue ::StandardError => e
|
|
238
238
|
error = e
|
|
239
239
|
ensure
|
|
240
240
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -282,7 +282,7 @@ module Clerk
|
|
|
282
282
|
response: http_response
|
|
283
283
|
)
|
|
284
284
|
response_data = http_response.env.response_body
|
|
285
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ClerkErrors)
|
|
285
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::ClerkErrors)
|
|
286
286
|
obj.raw_response = http_response
|
|
287
287
|
raise obj
|
|
288
288
|
else
|
|
@@ -314,7 +314,7 @@ module Clerk
|
|
|
314
314
|
if form && !form.empty?
|
|
315
315
|
body = Utils.encode_form(form)
|
|
316
316
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
317
|
-
body = URI.encode_www_form(data)
|
|
317
|
+
body = ::URI.encode_www_form(data)
|
|
318
318
|
else
|
|
319
319
|
body = data
|
|
320
320
|
end
|
|
@@ -331,7 +331,7 @@ module Clerk
|
|
|
331
331
|
retry_connection_errors: true,
|
|
332
332
|
strategy: 'backoff'
|
|
333
333
|
)
|
|
334
|
-
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
334
|
+
retry_options = retries.to_faraday_retry_options(initial_time: ::Time.now)
|
|
335
335
|
retry_options[:retry_statuses] = [500, 501, 502, 503, 504, 505]
|
|
336
336
|
|
|
337
337
|
security = @sdk_configuration.security_source&.call
|
|
@@ -372,7 +372,7 @@ module Clerk
|
|
|
372
372
|
request: req
|
|
373
373
|
)
|
|
374
374
|
end
|
|
375
|
-
rescue StandardError => e
|
|
375
|
+
rescue ::StandardError => e
|
|
376
376
|
error = e
|
|
377
377
|
ensure
|
|
378
378
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -408,7 +408,7 @@ module Clerk
|
|
|
408
408
|
response: http_response
|
|
409
409
|
)
|
|
410
410
|
response_data = http_response.env.response_body
|
|
411
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::InstanceRestrictions)
|
|
411
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::InstanceRestrictions)
|
|
412
412
|
response = Models::Operations::UpdateInstanceRestrictionsResponse.new(
|
|
413
413
|
status_code: http_response.status,
|
|
414
414
|
content_type: content_type,
|
|
@@ -429,7 +429,7 @@ module Clerk
|
|
|
429
429
|
response: http_response
|
|
430
430
|
)
|
|
431
431
|
response_data = http_response.env.response_body
|
|
432
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ClerkErrors)
|
|
432
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::ClerkErrors)
|
|
433
433
|
obj.raw_response = http_response
|
|
434
434
|
raise obj
|
|
435
435
|
else
|
|
@@ -468,7 +468,7 @@ module Clerk
|
|
|
468
468
|
retry_connection_errors: true,
|
|
469
469
|
strategy: 'backoff'
|
|
470
470
|
)
|
|
471
|
-
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
471
|
+
retry_options = retries.to_faraday_retry_options(initial_time: ::Time.now)
|
|
472
472
|
retry_options[:retry_statuses] = [500, 501, 502, 503, 504, 505]
|
|
473
473
|
|
|
474
474
|
security = @sdk_configuration.security_source&.call
|
|
@@ -508,7 +508,7 @@ module Clerk
|
|
|
508
508
|
request: req
|
|
509
509
|
)
|
|
510
510
|
end
|
|
511
|
-
rescue StandardError => e
|
|
511
|
+
rescue ::StandardError => e
|
|
512
512
|
error = e
|
|
513
513
|
ensure
|
|
514
514
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -544,7 +544,7 @@ module Clerk
|
|
|
544
544
|
response: http_response
|
|
545
545
|
)
|
|
546
546
|
response_data = http_response.env.response_body
|
|
547
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::InstanceCommunication)
|
|
547
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::InstanceCommunication)
|
|
548
548
|
response = Models::Operations::GetInstanceCommunicationResponse.new(
|
|
549
549
|
status_code: http_response.status,
|
|
550
550
|
content_type: content_type,
|
|
@@ -586,7 +586,7 @@ module Clerk
|
|
|
586
586
|
if form && !form.empty?
|
|
587
587
|
body = Utils.encode_form(form)
|
|
588
588
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
589
|
-
body = URI.encode_www_form(data)
|
|
589
|
+
body = ::URI.encode_www_form(data)
|
|
590
590
|
else
|
|
591
591
|
body = data
|
|
592
592
|
end
|
|
@@ -603,7 +603,7 @@ module Clerk
|
|
|
603
603
|
retry_connection_errors: true,
|
|
604
604
|
strategy: 'backoff'
|
|
605
605
|
)
|
|
606
|
-
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
606
|
+
retry_options = retries.to_faraday_retry_options(initial_time: ::Time.now)
|
|
607
607
|
retry_options[:retry_statuses] = [500, 501, 502, 503, 504, 505]
|
|
608
608
|
|
|
609
609
|
security = @sdk_configuration.security_source&.call
|
|
@@ -644,7 +644,7 @@ module Clerk
|
|
|
644
644
|
request: req
|
|
645
645
|
)
|
|
646
646
|
end
|
|
647
|
-
rescue StandardError => e
|
|
647
|
+
rescue ::StandardError => e
|
|
648
648
|
error = e
|
|
649
649
|
ensure
|
|
650
650
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -680,7 +680,7 @@ module Clerk
|
|
|
680
680
|
response: http_response
|
|
681
681
|
)
|
|
682
682
|
response_data = http_response.env.response_body
|
|
683
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::InstanceCommunication)
|
|
683
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::InstanceCommunication)
|
|
684
684
|
response = Models::Operations::UpdateInstanceCommunicationResponse.new(
|
|
685
685
|
status_code: http_response.status,
|
|
686
686
|
content_type: content_type,
|
|
@@ -701,7 +701,7 @@ module Clerk
|
|
|
701
701
|
response: http_response
|
|
702
702
|
)
|
|
703
703
|
response_data = http_response.env.response_body
|
|
704
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ClerkErrors)
|
|
704
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::ClerkErrors)
|
|
705
705
|
obj.raw_response = http_response
|
|
706
706
|
raise obj
|
|
707
707
|
else
|
|
@@ -740,7 +740,7 @@ module Clerk
|
|
|
740
740
|
retry_connection_errors: true,
|
|
741
741
|
strategy: 'backoff'
|
|
742
742
|
)
|
|
743
|
-
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
743
|
+
retry_options = retries.to_faraday_retry_options(initial_time: ::Time.now)
|
|
744
744
|
retry_options[:retry_statuses] = [500, 501, 502, 503, 504, 505]
|
|
745
745
|
|
|
746
746
|
security = @sdk_configuration.security_source&.call
|
|
@@ -780,7 +780,7 @@ module Clerk
|
|
|
780
780
|
request: req
|
|
781
781
|
)
|
|
782
782
|
end
|
|
783
|
-
rescue StandardError => e
|
|
783
|
+
rescue ::StandardError => e
|
|
784
784
|
error = e
|
|
785
785
|
ensure
|
|
786
786
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -816,7 +816,7 @@ module Clerk
|
|
|
816
816
|
response: http_response
|
|
817
817
|
)
|
|
818
818
|
response_data = http_response.env.response_body
|
|
819
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::OAuthApplicationSettings)
|
|
819
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::OAuthApplicationSettings)
|
|
820
820
|
response = Models::Operations::GetInstanceOAuthApplicationSettingsResponse.new(
|
|
821
821
|
status_code: http_response.status,
|
|
822
822
|
content_type: content_type,
|
|
@@ -854,7 +854,7 @@ module Clerk
|
|
|
854
854
|
if form && !form.empty?
|
|
855
855
|
body = Utils.encode_form(form)
|
|
856
856
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
857
|
-
body = URI.encode_www_form(data)
|
|
857
|
+
body = ::URI.encode_www_form(data)
|
|
858
858
|
else
|
|
859
859
|
body = data
|
|
860
860
|
end
|
|
@@ -871,7 +871,7 @@ module Clerk
|
|
|
871
871
|
retry_connection_errors: true,
|
|
872
872
|
strategy: 'backoff'
|
|
873
873
|
)
|
|
874
|
-
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
874
|
+
retry_options = retries.to_faraday_retry_options(initial_time: ::Time.now)
|
|
875
875
|
retry_options[:retry_statuses] = [500, 501, 502, 503, 504, 505]
|
|
876
876
|
|
|
877
877
|
security = @sdk_configuration.security_source&.call
|
|
@@ -912,7 +912,7 @@ module Clerk
|
|
|
912
912
|
request: req
|
|
913
913
|
)
|
|
914
914
|
end
|
|
915
|
-
rescue StandardError => e
|
|
915
|
+
rescue ::StandardError => e
|
|
916
916
|
error = e
|
|
917
917
|
ensure
|
|
918
918
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -948,7 +948,7 @@ module Clerk
|
|
|
948
948
|
response: http_response
|
|
949
949
|
)
|
|
950
950
|
response_data = http_response.env.response_body
|
|
951
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::OAuthApplicationSettings)
|
|
951
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::OAuthApplicationSettings)
|
|
952
952
|
response = Models::Operations::UpdateInstanceOAuthApplicationSettingsResponse.new(
|
|
953
953
|
status_code: http_response.status,
|
|
954
954
|
content_type: content_type,
|
|
@@ -969,7 +969,7 @@ module Clerk
|
|
|
969
969
|
response: http_response
|
|
970
970
|
)
|
|
971
971
|
response_data = http_response.env.response_body
|
|
972
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ClerkErrors)
|
|
972
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::ClerkErrors)
|
|
973
973
|
obj.raw_response = http_response
|
|
974
974
|
raise obj
|
|
975
975
|
else
|
|
@@ -994,6 +994,8 @@ module Clerk
|
|
|
994
994
|
# 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-certificates), updating your Social Connection's redirect URLs and setting the new keys in your code.
|
|
995
995
|
#
|
|
996
996
|
# 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.
|
|
997
|
+
#
|
|
998
|
+
# Returns 403 `domain_managed_by_integration` for applications in a Vercel-managed workspace; change the domain from the Vercel integration instead.
|
|
997
999
|
url, params = @sdk_configuration.get_server_details
|
|
998
1000
|
base_url = Utils.template_url(url, params)
|
|
999
1001
|
url = "#{base_url}/instance/change_domain"
|
|
@@ -1005,7 +1007,7 @@ module Clerk
|
|
|
1005
1007
|
if form && !form.empty?
|
|
1006
1008
|
body = Utils.encode_form(form)
|
|
1007
1009
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
1008
|
-
body = URI.encode_www_form(data)
|
|
1010
|
+
body = ::URI.encode_www_form(data)
|
|
1009
1011
|
else
|
|
1010
1012
|
body = data
|
|
1011
1013
|
end
|
|
@@ -1022,7 +1024,7 @@ module Clerk
|
|
|
1022
1024
|
retry_connection_errors: true,
|
|
1023
1025
|
strategy: 'backoff'
|
|
1024
1026
|
)
|
|
1025
|
-
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1027
|
+
retry_options = retries.to_faraday_retry_options(initial_time: ::Time.now)
|
|
1026
1028
|
retry_options[:retry_statuses] = [500, 501, 502, 503, 504, 505]
|
|
1027
1029
|
|
|
1028
1030
|
security = @sdk_configuration.security_source&.call
|
|
@@ -1063,7 +1065,7 @@ module Clerk
|
|
|
1063
1065
|
request: req
|
|
1064
1066
|
)
|
|
1065
1067
|
end
|
|
1066
|
-
rescue StandardError => e
|
|
1068
|
+
rescue ::StandardError => e
|
|
1067
1069
|
error = e
|
|
1068
1070
|
ensure
|
|
1069
1071
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -1102,7 +1104,7 @@ module Clerk
|
|
|
1102
1104
|
content_type: content_type,
|
|
1103
1105
|
raw_response: http_response
|
|
1104
1106
|
)
|
|
1105
|
-
elsif Utils.match_status_code(http_response.status, ['400', '422'])
|
|
1107
|
+
elsif Utils.match_status_code(http_response.status, ['400', '403', '422'])
|
|
1106
1108
|
if Utils.match_content_type(content_type, 'application/json')
|
|
1107
1109
|
http_response = @sdk_configuration.hooks.after_success(
|
|
1108
1110
|
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
@@ -1111,7 +1113,7 @@ module Clerk
|
|
|
1111
1113
|
response: http_response
|
|
1112
1114
|
)
|
|
1113
1115
|
response_data = http_response.env.response_body
|
|
1114
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ClerkErrors)
|
|
1116
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::ClerkErrors)
|
|
1115
1117
|
obj.raw_response = http_response
|
|
1116
1118
|
raise obj
|
|
1117
1119
|
else
|
|
@@ -1150,7 +1152,7 @@ module Clerk
|
|
|
1150
1152
|
retry_connection_errors: true,
|
|
1151
1153
|
strategy: 'backoff'
|
|
1152
1154
|
)
|
|
1153
|
-
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1155
|
+
retry_options = retries.to_faraday_retry_options(initial_time: ::Time.now)
|
|
1154
1156
|
retry_options[:retry_statuses] = [500, 501, 502, 503, 504, 505]
|
|
1155
1157
|
|
|
1156
1158
|
security = @sdk_configuration.security_source&.call
|
|
@@ -1190,7 +1192,7 @@ module Clerk
|
|
|
1190
1192
|
request: req
|
|
1191
1193
|
)
|
|
1192
1194
|
end
|
|
1193
|
-
rescue StandardError => e
|
|
1195
|
+
rescue ::StandardError => e
|
|
1194
1196
|
error = e
|
|
1195
1197
|
ensure
|
|
1196
1198
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -1226,7 +1228,7 @@ module Clerk
|
|
|
1226
1228
|
response: http_response
|
|
1227
1229
|
)
|
|
1228
1230
|
response_data = http_response.env.response_body
|
|
1229
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::OrganizationSettings)
|
|
1231
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::OrganizationSettings)
|
|
1230
1232
|
response = Models::Operations::GetInstanceOrganizationSettingsResponse.new(
|
|
1231
1233
|
status_code: http_response.status,
|
|
1232
1234
|
content_type: content_type,
|
|
@@ -1247,7 +1249,7 @@ module Clerk
|
|
|
1247
1249
|
response: http_response
|
|
1248
1250
|
)
|
|
1249
1251
|
response_data = http_response.env.response_body
|
|
1250
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ClerkErrors)
|
|
1252
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::ClerkErrors)
|
|
1251
1253
|
obj.raw_response = http_response
|
|
1252
1254
|
raise obj
|
|
1253
1255
|
else
|
|
@@ -1279,7 +1281,7 @@ module Clerk
|
|
|
1279
1281
|
if form && !form.empty?
|
|
1280
1282
|
body = Utils.encode_form(form)
|
|
1281
1283
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
1282
|
-
body = URI.encode_www_form(data)
|
|
1284
|
+
body = ::URI.encode_www_form(data)
|
|
1283
1285
|
else
|
|
1284
1286
|
body = data
|
|
1285
1287
|
end
|
|
@@ -1296,7 +1298,7 @@ module Clerk
|
|
|
1296
1298
|
retry_connection_errors: true,
|
|
1297
1299
|
strategy: 'backoff'
|
|
1298
1300
|
)
|
|
1299
|
-
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1301
|
+
retry_options = retries.to_faraday_retry_options(initial_time: ::Time.now)
|
|
1300
1302
|
retry_options[:retry_statuses] = [500, 501, 502, 503, 504, 505]
|
|
1301
1303
|
|
|
1302
1304
|
security = @sdk_configuration.security_source&.call
|
|
@@ -1337,7 +1339,7 @@ module Clerk
|
|
|
1337
1339
|
request: req
|
|
1338
1340
|
)
|
|
1339
1341
|
end
|
|
1340
|
-
rescue StandardError => e
|
|
1342
|
+
rescue ::StandardError => e
|
|
1341
1343
|
error = e
|
|
1342
1344
|
ensure
|
|
1343
1345
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -1373,7 +1375,7 @@ module Clerk
|
|
|
1373
1375
|
response: http_response
|
|
1374
1376
|
)
|
|
1375
1377
|
response_data = http_response.env.response_body
|
|
1376
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::OrganizationSettings)
|
|
1378
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::OrganizationSettings)
|
|
1377
1379
|
response = Models::Operations::UpdateInstanceOrganizationSettingsResponse.new(
|
|
1378
1380
|
status_code: http_response.status,
|
|
1379
1381
|
content_type: content_type,
|
|
@@ -1394,7 +1396,7 @@ module Clerk
|
|
|
1394
1396
|
response: http_response
|
|
1395
1397
|
)
|
|
1396
1398
|
response_data = http_response.env.response_body
|
|
1397
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ClerkErrors)
|
|
1399
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::ClerkErrors)
|
|
1398
1400
|
obj.raw_response = http_response
|
|
1399
1401
|
raise obj
|
|
1400
1402
|
else
|
|
@@ -1432,7 +1434,7 @@ module Clerk
|
|
|
1432
1434
|
retry_connection_errors: true,
|
|
1433
1435
|
strategy: 'backoff'
|
|
1434
1436
|
)
|
|
1435
|
-
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1437
|
+
retry_options = retries.to_faraday_retry_options(initial_time: ::Time.now)
|
|
1436
1438
|
retry_options[:retry_statuses] = [500, 501, 502, 503, 504, 505]
|
|
1437
1439
|
|
|
1438
1440
|
security = @sdk_configuration.security_source&.call
|
|
@@ -1472,7 +1474,7 @@ module Clerk
|
|
|
1472
1474
|
request: req
|
|
1473
1475
|
)
|
|
1474
1476
|
end
|
|
1475
|
-
rescue StandardError => e
|
|
1477
|
+
rescue ::StandardError => e
|
|
1476
1478
|
error = e
|
|
1477
1479
|
ensure
|
|
1478
1480
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -1508,7 +1510,7 @@ module Clerk
|
|
|
1508
1510
|
response: http_response
|
|
1509
1511
|
)
|
|
1510
1512
|
response_data = http_response.env.response_body
|
|
1511
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::InstanceProtect)
|
|
1513
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::InstanceProtect)
|
|
1512
1514
|
response = Models::Operations::GetInstanceProtectResponse.new(
|
|
1513
1515
|
status_code: http_response.status,
|
|
1514
1516
|
content_type: content_type,
|
|
@@ -1545,7 +1547,7 @@ module Clerk
|
|
|
1545
1547
|
if form && !form.empty?
|
|
1546
1548
|
body = Utils.encode_form(form)
|
|
1547
1549
|
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
1548
|
-
body = URI.encode_www_form(data)
|
|
1550
|
+
body = ::URI.encode_www_form(data)
|
|
1549
1551
|
else
|
|
1550
1552
|
body = data
|
|
1551
1553
|
end
|
|
@@ -1562,7 +1564,7 @@ module Clerk
|
|
|
1562
1564
|
retry_connection_errors: true,
|
|
1563
1565
|
strategy: 'backoff'
|
|
1564
1566
|
)
|
|
1565
|
-
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1567
|
+
retry_options = retries.to_faraday_retry_options(initial_time: ::Time.now)
|
|
1566
1568
|
retry_options[:retry_statuses] = [500, 501, 502, 503, 504, 505]
|
|
1567
1569
|
|
|
1568
1570
|
security = @sdk_configuration.security_source&.call
|
|
@@ -1603,7 +1605,7 @@ module Clerk
|
|
|
1603
1605
|
request: req
|
|
1604
1606
|
)
|
|
1605
1607
|
end
|
|
1606
|
-
rescue StandardError => e
|
|
1608
|
+
rescue ::StandardError => e
|
|
1607
1609
|
error = e
|
|
1608
1610
|
ensure
|
|
1609
1611
|
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
@@ -1639,7 +1641,7 @@ module Clerk
|
|
|
1639
1641
|
response: http_response
|
|
1640
1642
|
)
|
|
1641
1643
|
response_data = http_response.env.response_body
|
|
1642
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::InstanceProtect)
|
|
1644
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Components::InstanceProtect)
|
|
1643
1645
|
response = Models::Operations::UpdateInstanceProtectResponse.new(
|
|
1644
1646
|
status_code: http_response.status,
|
|
1645
1647
|
content_type: content_type,
|
|
@@ -1660,7 +1662,7 @@ module Clerk
|
|
|
1660
1662
|
response: http_response
|
|
1661
1663
|
)
|
|
1662
1664
|
response_data = http_response.env.response_body
|
|
1663
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ClerkErrors)
|
|
1665
|
+
obj = Crystalline.unmarshal_json(::JSON.parse(response_data), Models::Errors::ClerkErrors)
|
|
1664
1666
|
obj.raw_response = http_response
|
|
1665
1667
|
raise obj
|
|
1666
1668
|
else
|