clerk-sdk-ruby 7.0.0 → 8.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 +10 -10
- data/lib/clerk/admin_portal_link_tokens.rb +10 -10
- data/lib/clerk/agenttasks.rb +10 -10
- data/lib/clerk/allowlistidentifiers.rb +15 -15
- data/lib/clerk/api_keys.rb +40 -40
- data/lib/clerk/betafeatures.rb +10 -10
- data/lib/clerk/billing.rb +52 -52
- data/lib/clerk/blocklistidentifiers.rb +15 -15
- data/lib/clerk/clients.rb +15 -15
- data/lib/clerk/domains.rb +20 -20
- data/lib/clerk/emailaddresses.rb +43 -36
- data/lib/clerk/emailandsmstemplates.rb +6 -6
- data/lib/clerk/emailsmstemplates.rb +21 -21
- data/lib/clerk/enterpriseconnections.rb +35 -35
- data/lib/clerk/instancesettings.rb +60 -60
- data/lib/clerk/invitations.rb +20 -20
- data/lib/clerk/jwks.rb +5 -5
- data/lib/clerk/jwttemplates.rb +25 -25
- data/lib/clerk/m2m.rb +20 -20
- data/lib/clerk/machines.rb +45 -45
- data/lib/clerk/miscellaneous.rb +5 -5
- data/lib/clerk/models/components/algorithm.rb +19 -0
- data/lib/clerk/models/components/{clerkerror_meta.rbi → algorithm.rbi} +2 -2
- data/lib/clerk/models/components/billingpaymentattempt_totals.rb +1 -1
- data/lib/clerk/models/components/clerkerror.rb +1 -1
- data/lib/clerk/models/components/commercecreditledgerresponse.rb +3 -7
- data/lib/clerk/models/components/commercecreditledgerresponse.rbi +0 -2
- data/lib/clerk/models/components/{schemas_commerceperunittotal.rb → commerceperunittotal_2.rb} +2 -2
- data/lib/clerk/models/components/{schemas_commerceperunittotal.rbi → commerceperunittotal_2.rbi} +2 -2
- data/lib/clerk/models/components/{schemas_commerceperunittotaltier.rb → commerceperunittotaltier_2.rb} +1 -1
- data/lib/clerk/models/components/{schemas_commerceperunittotaltier.rbi → commerceperunittotaltier_2.rbi} +2 -2
- data/lib/clerk/models/components/{schemas_commerceplan.rb → commerceplan_2.rb} +6 -6
- data/lib/clerk/models/components/{schemas_commerceplan.rbi → commerceplan_2.rbi} +2 -2
- data/lib/clerk/models/components/{schemas_commerceplan_fee.rb → commerceplan_2_annual_fee.rb} +1 -1
- data/lib/clerk/models/components/{schemas_commerceplan_fee.rbi → commerceplan_2_annual_fee.rbi} +2 -2
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_fee.rb → commerceplan_2_annual_monthly_fee.rb} +1 -1
- data/lib/clerk/models/components/{schemas_commerceplan_annual_monthly_fee.rbi → commerceplan_2_annual_monthly_fee.rbi} +2 -2
- data/lib/clerk/models/components/{schemas_commerceplan_annual_fee.rb → commerceplan_2_fee.rb} +1 -1
- data/lib/clerk/models/components/{schemas_commerceplan_annual_fee.rbi → commerceplan_2_fee.rbi} +2 -2
- data/lib/clerk/models/components/{schemas_commerceplan_object.rb → commerceplan_2_object.rb} +2 -2
- data/lib/clerk/models/components/{clerkerrors_meta.rbi → commerceplan_2_object.rbi} +2 -2
- data/lib/clerk/models/components/commercepricetransitiondetails.rb +1 -1
- data/lib/clerk/models/components/commercepricetransitionresponse.rb +1 -1
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem.rb → commercesubscriptionitem_2.rb} +7 -7
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem.rbi → commercesubscriptionitem_2.rbi} +2 -2
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_amount.rb → commercesubscriptionitem_2_amount.rb} +1 -1
- data/lib/clerk/models/components/commercesubscriptionitem_2_amount.rbi +19 -0
- data/lib/clerk/models/components/{schemas_commerceplan_annual_monthly_fee.rb → commercesubscriptionitem_2_annual_fee.rb} +1 -1
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_fee.rbi → commercesubscriptionitem_2_annual_fee.rbi} +2 -2
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_annual_fee.rb → commercesubscriptionitem_2_annual_monthly_fee.rb} +1 -1
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_amount.rbi → commercesubscriptionitem_2_annual_monthly_fee.rbi} +2 -2
- data/lib/clerk/models/components/commercesubscriptionitem_2_fee.rb +44 -0
- data/lib/clerk/models/components/commercesubscriptionitem_2_fee.rbi +19 -0
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment.rb → commercesubscriptionitem_2_next_payment.rb} +3 -3
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment.rbi → commercesubscriptionitem_2_next_payment.rbi} +2 -2
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_amount.rb → commercesubscriptionitem_2_next_payment_amount.rb} +1 -1
- data/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_amount.rbi +19 -0
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_credits.rb → commercesubscriptionitem_2_next_payment_credits.rb} +3 -3
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_credits.rbi → commercesubscriptionitem_2_next_payment_credits.rbi} +2 -2
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_credits_proration.rb → commercesubscriptionitem_2_next_payment_credits_proration.rb} +1 -1
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_credits_proration.rbi → commercesubscriptionitem_2_next_payment_credits_proration.rbi} +2 -2
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_discounts.rb → commercesubscriptionitem_2_next_payment_discounts.rb} +2 -2
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_discounts.rbi → commercesubscriptionitem_2_next_payment_discounts.rbi} +2 -2
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_discounts_proration.rb → commercesubscriptionitem_2_next_payment_discounts_proration.rb} +1 -1
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_discounts_proration.rbi → commercesubscriptionitem_2_next_payment_discounts_proration.rbi} +2 -2
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_payer.rb → commercesubscriptionitem_2_next_payment_payer.rb} +1 -1
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_payer.rbi → commercesubscriptionitem_2_next_payment_payer.rbi} +2 -2
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_totals.rb → commercesubscriptionitem_2_next_payment_totals.rb} +3 -3
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_totals.rbi → commercesubscriptionitem_2_next_payment_totals.rbi} +2 -2
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_object_commercepayer.rb → commercesubscriptionitem_2_object_commercepayer.rb} +2 -2
- data/lib/clerk/models/components/commercesubscriptionitem_2_object_commercepayer.rbi +11 -0
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_object_commerceplan.rb → commercesubscriptionitem_2_object_commerceplan.rb} +2 -2
- data/lib/clerk/models/components/commercesubscriptionitem_2_object_commerceplan.rbi +11 -0
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_object_commercesubscriptionitem.rb → commercesubscriptionitem_2_object_commercesubscriptionitem.rb} +2 -2
- data/lib/clerk/models/components/commercesubscriptionitem_2_object_commercesubscriptionitem.rbi +11 -0
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_plan.rb → commercesubscriptionitem_2_plan.rb} +6 -6
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_plan.rbi → commercesubscriptionitem_2_plan.rbi} +2 -2
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_plan_period.rb → commercesubscriptionitem_2_plan_period.rb} +2 -2
- data/lib/clerk/models/components/commercesubscriptionitem_2_plan_period.rbi +11 -0
- data/lib/clerk/models/components/{schemas_commercesubscriptionitem_status.rb → commercesubscriptionitem_2_status.rb} +2 -2
- data/lib/clerk/models/components/commercesubscriptionitem_2_status.rbi +11 -0
- data/lib/clerk/models/components/commercesubscriptionitem_totals.rb +1 -1
- data/lib/clerk/models/components/commercesubscriptionnextpayment.rb +1 -1
- data/lib/clerk/models/components/commercesubscriptionnextpayment_totals.rb +1 -1
- data/lib/clerk/models/components/emailaddress_verification_saml_clerkerror.rb +1 -1
- data/lib/clerk/models/components/enrollment_mode.rb +1 -0
- 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.rb +6 -2
- data/lib/clerk/models/components/enterpriseconnection.rbi +2 -0
- data/lib/clerk/models/components/{custom_attribute.rb → enterpriseconnection_custom_attribute.rb} +1 -1
- data/lib/clerk/models/components/enterpriseconnection_custom_attribute.rbi +21 -0
- data/lib/clerk/models/components/enterpriseconnection_mode.rb +21 -0
- data/lib/clerk/models/components/enterpriseconnection_mode.rbi +11 -0
- data/lib/clerk/models/components/enterpriseconnection_object.rb +19 -0
- data/lib/clerk/models/components/enterpriseconnection_object.rbi +11 -0
- data/lib/clerk/models/components/enterpriseconnection_saml_connection.rb +5 -1
- data/lib/clerk/models/components/enterpriseconnection_saml_connection.rbi +2 -0
- data/lib/clerk/models/components/externalaccountwithverification_verification_oauth_clerkerror.rb +1 -1
- data/lib/clerk/models/components/{schemas_featureresponse.rb → featureresponse_2.rb} +2 -2
- data/lib/clerk/models/components/{schemas_featureresponse.rbi → featureresponse_2.rbi} +2 -2
- data/lib/clerk/models/components/{schemas_featureresponse_object.rb → featureresponse_2_object.rb} +2 -2
- data/lib/clerk/models/components/featureresponse_2_object.rbi +11 -0
- data/lib/clerk/models/components/instanceprotect.rb +5 -1
- data/lib/clerk/models/components/instanceprotect.rbi +2 -0
- data/lib/clerk/models/components/instancesettings.rb +4 -1
- data/lib/clerk/models/components/login_hint.rb +36 -0
- data/lib/clerk/models/components/login_hint.rbi +15 -0
- data/lib/clerk/models/components/oauthapplicationsettings.rb +17 -1
- data/lib/clerk/models/components/oauthapplicationsettings.rbi +8 -0
- data/lib/clerk/models/components/organizationmembershippublicuserdata.rb +5 -1
- data/lib/clerk/models/components/organizationmembershippublicuserdata.rbi +2 -0
- data/lib/clerk/models/components/payer_commercepayer.rb +1 -1
- data/lib/clerk/models/components/payment_type.rb +1 -0
- data/lib/clerk/models/components/platform.rb +20 -0
- data/lib/clerk/models/components/{samlaccount_meta.rbi → platform.rbi} +2 -2
- data/lib/clerk/models/components/samlaccount_clerkerror.rb +1 -1
- data/lib/clerk/models/components/samlconnection_1.rb +15 -1
- data/lib/clerk/models/components/samlconnection_1.rbi +6 -0
- data/lib/clerk/models/components/samlconnection_2.rb +15 -1
- data/lib/clerk/models/components/samlconnection_2.rbi +6 -0
- data/lib/clerk/models/components/samlconnectionloginhint.rb +36 -0
- data/lib/clerk/models/components/samlconnectionloginhint.rbi +15 -0
- data/lib/clerk/models/components/samlconnectionloginhint_mode.rb +21 -0
- data/lib/clerk/models/components/samlconnectionloginhint_mode.rbi +11 -0
- data/lib/clerk/models/components/scimdirectory.rb +80 -0
- data/lib/clerk/models/components/scimdirectory.rbi +37 -0
- data/lib/clerk/models/components/scimdirectory_custom_attribute.rb +48 -0
- data/lib/clerk/models/components/{custom_attribute.rbi → scimdirectory_custom_attribute.rbi} +2 -2
- data/lib/clerk/models/components/scimdirectory_list.rb +36 -0
- data/lib/clerk/models/components/scimdirectory_list.rbi +15 -0
- data/lib/clerk/models/components/scimdirectory_object.rb +19 -0
- data/lib/clerk/models/components/scimdirectory_object.rbi +11 -0
- data/lib/clerk/models/components/scimgrouprolemapping.rb +64 -0
- data/lib/clerk/models/components/scimgrouprolemapping.rbi +29 -0
- data/lib/clerk/models/components/scimgrouprolemapping_deleted.rb +43 -0
- data/lib/clerk/models/components/scimgrouprolemapping_deleted.rbi +17 -0
- data/lib/clerk/models/components/scimgrouprolemapping_deleted_object.rb +19 -0
- data/lib/clerk/models/components/scimgrouprolemapping_deleted_object.rbi +11 -0
- data/lib/clerk/models/components/scimgrouprolemapping_list.rb +36 -0
- data/lib/clerk/models/components/scimgrouprolemapping_list.rbi +15 -0
- data/lib/clerk/models/components/scimgrouprolemapping_object.rb +19 -0
- data/lib/clerk/models/components/scimgrouprolemapping_object.rbi +11 -0
- data/lib/clerk/models/components/seats.rb +1 -1
- data/lib/clerk/models/components/trusteddevice.rb +72 -0
- data/lib/clerk/models/components/trusteddevice.rbi +33 -0
- data/lib/clerk/models/components/trusteddevice_list.rb +36 -0
- data/lib/clerk/models/components/trusteddevice_list.rbi +15 -0
- data/lib/clerk/models/components/trusteddevice_object.rb +19 -0
- data/lib/clerk/models/components/trusteddevice_object.rbi +11 -0
- data/lib/clerk/models/components/trusteddevice_status.rb +20 -0
- data/lib/clerk/models/components/trusteddevice_status.rbi +11 -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.rb +49 -38
- data/lib/clerk/models/errors/clerkerrors.rb +1 -1
- data/lib/clerk/models/operations/createemailaddress_request.rb +7 -1
- data/lib/clerk/models/operations/createemailaddress_request.rbi +2 -0
- data/lib/clerk/models/operations/createenterpriseconnection_login_hint.rb +36 -0
- data/lib/clerk/models/operations/createenterpriseconnection_login_hint.rbi +15 -0
- data/lib/clerk/models/operations/createenterpriseconnection_mode.rb +21 -0
- data/lib/clerk/models/operations/createenterpriseconnection_mode.rbi +11 -0
- data/lib/clerk/models/operations/createenterpriseconnection_saml.rb +5 -1
- data/lib/clerk/models/operations/createenterpriseconnection_saml.rbi +2 -0
- data/lib/clerk/models/operations/createorganizationdomain_requestbody.rb +1 -1
- data/lib/clerk/models/operations/createsamlconnection_login_hint_1.rb +36 -0
- data/lib/clerk/models/operations/createsamlconnection_login_hint_1.rbi +15 -0
- data/lib/clerk/models/operations/createsamlconnection_login_hint_2.rb +36 -0
- data/lib/clerk/models/operations/createsamlconnection_login_hint_2.rbi +15 -0
- data/lib/clerk/models/operations/createsamlconnection_mode_1.rb +21 -0
- data/lib/clerk/models/operations/createsamlconnection_mode_1.rbi +11 -0
- data/lib/clerk/models/operations/createsamlconnection_mode_2.rb +21 -0
- data/lib/clerk/models/operations/createsamlconnection_mode_2.rbi +11 -0
- data/lib/clerk/models/operations/createsamlconnection_requestbody_1.rb +5 -1
- data/lib/clerk/models/operations/createsamlconnection_requestbody_1.rbi +2 -0
- data/lib/clerk/models/operations/createsamlconnection_requestbody_2.rb +5 -1
- data/lib/clerk/models/operations/createsamlconnection_requestbody_2.rbi +2 -0
- data/lib/clerk/models/operations/createscimdirectory_request.rb +44 -0
- data/lib/clerk/models/operations/createscimdirectory_request.rbi +19 -0
- data/lib/clerk/models/operations/createscimdirectory_response.rb +44 -0
- data/lib/clerk/models/operations/createscimdirectory_response.rbi +19 -0
- data/lib/clerk/models/operations/createscimgrouprolemapping_request.rb +36 -0
- data/lib/clerk/models/operations/createscimgrouprolemapping_request.rbi +15 -0
- data/lib/clerk/models/operations/createscimgrouprolemapping_requestbody.rb +42 -0
- data/lib/clerk/models/operations/createscimgrouprolemapping_requestbody.rbi +17 -0
- data/lib/clerk/models/operations/createscimgrouprolemapping_response.rb +44 -0
- data/lib/clerk/models/operations/createscimgrouprolemapping_response.rbi +19 -0
- data/lib/clerk/models/operations/createsignintoken_request.rb +6 -1
- data/lib/clerk/models/operations/createsignintoken_request.rbi +2 -0
- data/lib/clerk/models/operations/deletescimdirectory_request.rb +32 -0
- data/lib/clerk/models/operations/deletescimdirectory_request.rbi +13 -0
- data/lib/clerk/models/operations/deletescimdirectory_response.rb +44 -0
- data/lib/clerk/models/operations/deletescimdirectory_response.rbi +19 -0
- data/lib/clerk/models/operations/deletescimgrouprolemapping_request.rb +36 -0
- data/lib/clerk/models/operations/deletescimgrouprolemapping_request.rbi +15 -0
- data/lib/clerk/models/operations/deletescimgrouprolemapping_response.rb +44 -0
- data/lib/clerk/models/operations/deletescimgrouprolemapping_response.rbi +19 -0
- data/lib/clerk/models/operations/enrollment_mode.rb +5 -0
- data/lib/clerk/models/operations/extendbillingsubscriptionitemfreetrial_response.rb +4 -4
- data/lib/clerk/models/operations/extendbillingsubscriptionitemfreetrial_response.rbi +2 -2
- data/lib/clerk/models/operations/getscimdirectory_request.rb +32 -0
- data/lib/clerk/models/operations/getscimdirectory_request.rbi +13 -0
- data/lib/clerk/models/operations/getscimdirectory_response.rb +44 -0
- data/lib/clerk/models/operations/getscimdirectory_response.rbi +19 -0
- data/lib/clerk/models/operations/group_role_mapping.rb +44 -0
- data/lib/clerk/models/operations/group_role_mapping.rbi +19 -0
- data/lib/clerk/models/operations/listallorganizationdomains_request.rb +2 -1
- data/lib/clerk/models/operations/listorganizationdomains_request.rb +2 -1
- data/lib/clerk/models/operations/listscimdirectories_request.rb +39 -0
- data/lib/clerk/models/operations/listscimdirectories_request.rbi +15 -0
- data/lib/clerk/models/operations/listscimdirectories_response.rb +44 -0
- data/lib/clerk/models/operations/listscimdirectories_response.rbi +19 -0
- data/lib/clerk/models/operations/listscimgrouprolemappings_request.rb +32 -0
- data/lib/clerk/models/operations/listscimgrouprolemappings_request.rbi +13 -0
- data/lib/clerk/models/operations/listscimgrouprolemappings_response.rb +44 -0
- data/lib/clerk/models/operations/listscimgrouprolemappings_response.rbi +19 -0
- data/lib/clerk/models/operations/listusertrusteddevices_request.rb +32 -0
- data/lib/clerk/models/operations/listusertrusteddevices_request.rbi +13 -0
- data/lib/clerk/models/operations/listusertrusteddevices_response.rb +44 -0
- data/lib/clerk/models/operations/listusertrusteddevices_response.rbi +19 -0
- data/lib/clerk/models/operations/mapping.rb +36 -0
- data/lib/clerk/models/operations/mapping.rbi +15 -0
- data/lib/clerk/models/operations/removeuserpassword_request.rb +36 -0
- data/lib/clerk/models/operations/removeuserpassword_request.rbi +15 -0
- data/lib/clerk/models/operations/removeuserpassword_requestbody.rb +32 -0
- data/lib/clerk/models/operations/removeuserpassword_requestbody.rbi +13 -0
- data/lib/clerk/models/operations/removeuserpassword_response.rb +44 -0
- data/lib/clerk/models/operations/removeuserpassword_response.rbi +19 -0
- data/lib/clerk/models/operations/replacescimgrouprolemappings_request.rb +36 -0
- data/lib/clerk/models/operations/replacescimgrouprolemappings_request.rbi +15 -0
- data/lib/clerk/models/operations/replacescimgrouprolemappings_requestbody.rb +32 -0
- data/lib/clerk/models/operations/replacescimgrouprolemappings_requestbody.rbi +13 -0
- data/lib/clerk/models/operations/replacescimgrouprolemappings_response.rb +44 -0
- data/lib/clerk/models/operations/replacescimgrouprolemappings_response.rbi +19 -0
- data/lib/clerk/models/operations/replaceuseremailaddress_identification_status.rb +10 -2
- data/lib/clerk/models/operations/replaceuseremailaddress_requestbody.rb +16 -3
- data/lib/clerk/models/operations/replaceuseremailaddress_requestbody.rbi +2 -0
- data/lib/clerk/models/operations/replaceuserphonenumber_identification_status.rb +10 -2
- data/lib/clerk/models/operations/replaceuserphonenumber_requestbody.rb +9 -2
- data/lib/clerk/models/operations/revokeoauthapplicationtoken_request.rb +36 -0
- data/lib/clerk/models/operations/revokeoauthapplicationtoken_request.rbi +15 -0
- data/lib/clerk/models/operations/revokeoauthapplicationtoken_requestbody.rb +32 -0
- data/lib/clerk/models/operations/revokeoauthapplicationtoken_requestbody.rbi +13 -0
- data/lib/clerk/models/operations/revokeoauthapplicationtoken_response.rb +40 -0
- data/lib/clerk/models/operations/revokeoauthapplicationtoken_response.rbi +17 -0
- data/lib/clerk/models/operations/revokeusertrusteddevice_request.rb +36 -0
- data/lib/clerk/models/operations/revokeusertrusteddevice_request.rbi +15 -0
- data/lib/clerk/models/operations/revokeusertrusteddevice_response.rb +44 -0
- data/lib/clerk/models/operations/revokeusertrusteddevice_response.rbi +19 -0
- data/lib/clerk/models/operations/rotatescimdirectoryapikey_request.rb +32 -0
- data/lib/clerk/models/operations/rotatescimdirectoryapikey_request.rbi +13 -0
- data/lib/clerk/models/operations/rotatescimdirectoryapikey_response.rb +44 -0
- data/lib/clerk/models/operations/rotatescimdirectoryapikey_response.rbi +19 -0
- data/lib/clerk/models/operations/updateemailaddress_requestbody.rb +7 -1
- data/lib/clerk/models/operations/updateemailaddress_requestbody.rbi +2 -0
- data/lib/clerk/models/operations/updateenterpriseconnection_login_hint.rb +36 -0
- data/lib/clerk/models/operations/updateenterpriseconnection_login_hint.rbi +15 -0
- data/lib/clerk/models/operations/updateenterpriseconnection_mode.rb +21 -0
- data/lib/clerk/models/operations/updateenterpriseconnection_mode.rbi +11 -0
- data/lib/clerk/models/operations/updateenterpriseconnection_saml.rb +5 -1
- data/lib/clerk/models/operations/updateenterpriseconnection_saml.rbi +2 -0
- data/lib/clerk/models/operations/updateinstanceoauthapplicationsettings_request.rb +17 -1
- data/lib/clerk/models/operations/updateinstanceoauthapplicationsettings_request.rbi +8 -0
- data/lib/clerk/models/operations/updateorganizationdomain_requestbody.rb +1 -1
- data/lib/clerk/models/operations/updatesamlconnection_login_hint.rb +36 -0
- data/lib/clerk/models/operations/updatesamlconnection_login_hint.rbi +15 -0
- data/lib/clerk/models/operations/updatesamlconnection_mode.rb +21 -0
- data/lib/clerk/models/operations/updatesamlconnection_mode.rbi +11 -0
- data/lib/clerk/models/operations/updatesamlconnection_requestbody.rb +5 -1
- data/lib/clerk/models/operations/updatesamlconnection_requestbody.rbi +2 -0
- data/lib/clerk/models/operations/updatescimdirectory_request.rb +36 -0
- data/lib/clerk/models/operations/updatescimdirectory_request.rbi +15 -0
- data/lib/clerk/models/operations/updatescimdirectory_requestbody.rb +49 -0
- data/lib/clerk/models/operations/updatescimdirectory_requestbody.rbi +21 -0
- data/lib/clerk/models/operations/updatescimdirectory_response.rb +44 -0
- data/lib/clerk/models/operations/updatescimdirectory_response.rbi +19 -0
- data/lib/clerk/models/operations.rb +45 -0
- data/lib/clerk/oauthaccesstokens.rb +5 -5
- data/lib/clerk/oauthapplications.rb +185 -35
- data/lib/clerk/openapiclient.rb +2 -1
- data/lib/clerk/organizationdomains.rb +32 -32
- data/lib/clerk/organizationinvitations.rb +35 -35
- data/lib/clerk/organizationmemberships.rb +25 -25
- data/lib/clerk/organizationpermissions.rb +25 -25
- data/lib/clerk/organizationroles.rb +35 -35
- data/lib/clerk/organizations.rb +60 -60
- data/lib/clerk/phonenumbers.rb +43 -36
- data/lib/clerk/proxy.rb +3 -3
- data/lib/clerk/proxychecks.rb +5 -5
- data/lib/clerk/redirecturls.rb +20 -20
- data/lib/clerk/rolesets.rb +35 -35
- data/lib/clerk/samlconnections.rb +25 -25
- data/lib/clerk/scimdirectories.rb +1531 -0
- data/lib/clerk/sdk.rb +23 -5
- data/lib/clerk/sdkconfiguration.rb +3 -3
- data/lib/clerk/sessions.rb +35 -35
- data/lib/clerk/signintokens.rb +11 -11
- data/lib/clerk/signups.rb +10 -10
- data/lib/clerk/templates.rb +5 -5
- data/lib/clerk/testingtokens.rb +5 -5
- data/lib/clerk/users.rb +690 -196
- data/lib/clerk/utils/retries.rb +43 -1
- data/lib/clerk/waitlistentries.rb +30 -30
- data/lib/clerk/webhooks.rb +15 -15
- data/lib/clerk_sdk_ruby.rb +1 -0
- data/test/clerk/jwks_cache_scoping_test.rb +83 -0
- data/test/clerk/proxy_test.rb +108 -0
- metadata +195 -80
- data/lib/clerk/models/components/clerkerror_meta.rb +0 -27
- data/lib/clerk/models/components/clerkerrors_meta.rb +0 -27
- data/lib/clerk/models/components/emailaddress_verification_saml_meta.rb +0 -27
- data/lib/clerk/models/components/emailaddress_verification_saml_meta.rbi +0 -11
- data/lib/clerk/models/components/enterpriseaccount_verification_oauth_meta.rb +0 -27
- data/lib/clerk/models/components/enterpriseaccount_verification_oauth_meta.rbi +0 -11
- data/lib/clerk/models/components/enterpriseaccount_verification_saml_meta.rb +0 -27
- data/lib/clerk/models/components/enterpriseaccount_verification_saml_meta.rbi +0 -11
- data/lib/clerk/models/components/externalaccountwithverification_verification_oauth_meta.rb +0 -27
- data/lib/clerk/models/components/externalaccountwithverification_verification_oauth_meta.rbi +0 -11
- data/lib/clerk/models/components/samlaccount_meta.rb +0 -27
- data/lib/clerk/models/components/schemas_commerceplan_object.rbi +0 -11
- data/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_fee.rbi +0 -19
- data/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_monthly_fee.rb +0 -44
- data/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_monthly_fee.rbi +0 -19
- data/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_amount.rbi +0 -19
- data/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercepayer.rbi +0 -11
- data/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commerceplan.rbi +0 -11
- data/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercesubscriptionitem.rbi +0 -11
- data/lib/clerk/models/components/schemas_commercesubscriptionitem_plan_period.rbi +0 -11
- data/lib/clerk/models/components/schemas_commercesubscriptionitem_status.rbi +0 -11
- data/lib/clerk/models/components/schemas_featureresponse_object.rbi +0 -11
- data/lib/clerk/models/components/verification_from_oauth_meta.rb +0 -27
- data/lib/clerk/models/components/verification_from_oauth_meta.rbi +0 -11
- data/lib/clerk/models/components/verification_google_one_tap_meta.rb +0 -27
- data/lib/clerk/models/components/verification_google_one_tap_meta.rbi +0 -11
data/lib/clerk/rolesets.rb
CHANGED
|
@@ -78,10 +78,10 @@ module Clerk
|
|
|
78
78
|
|
|
79
79
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
80
80
|
timeout ||= @sdk_configuration.timeout
|
|
81
|
-
|
|
81
|
+
|
|
82
82
|
|
|
83
83
|
connection = @sdk_configuration.client.dup
|
|
84
|
-
connection.
|
|
84
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
85
85
|
|
|
86
86
|
hook_ctx = SDKHooks::HookContext.new(
|
|
87
87
|
config: @sdk_configuration,
|
|
@@ -94,7 +94,7 @@ module Clerk
|
|
|
94
94
|
error = nil
|
|
95
95
|
http_response = nil
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
|
|
98
98
|
begin
|
|
99
99
|
http_response = connection.get(url) do |req|
|
|
100
100
|
req.headers.merge!(headers)
|
|
@@ -131,13 +131,13 @@ module Clerk
|
|
|
131
131
|
response: http_response
|
|
132
132
|
)
|
|
133
133
|
end
|
|
134
|
-
|
|
134
|
+
|
|
135
135
|
if http_response.nil?
|
|
136
136
|
raise error if !error.nil?
|
|
137
137
|
raise 'no response'
|
|
138
138
|
end
|
|
139
139
|
end
|
|
140
|
-
|
|
140
|
+
|
|
141
141
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
142
142
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
143
143
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -228,10 +228,10 @@ module Clerk
|
|
|
228
228
|
|
|
229
229
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
230
230
|
timeout ||= @sdk_configuration.timeout
|
|
231
|
-
|
|
231
|
+
|
|
232
232
|
|
|
233
233
|
connection = @sdk_configuration.client.dup
|
|
234
|
-
connection.
|
|
234
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
235
235
|
|
|
236
236
|
hook_ctx = SDKHooks::HookContext.new(
|
|
237
237
|
config: @sdk_configuration,
|
|
@@ -244,7 +244,7 @@ module Clerk
|
|
|
244
244
|
error = nil
|
|
245
245
|
http_response = nil
|
|
246
246
|
|
|
247
|
-
|
|
247
|
+
|
|
248
248
|
begin
|
|
249
249
|
http_response = connection.post(url) do |req|
|
|
250
250
|
req.body = body
|
|
@@ -281,13 +281,13 @@ module Clerk
|
|
|
281
281
|
response: http_response
|
|
282
282
|
)
|
|
283
283
|
end
|
|
284
|
-
|
|
284
|
+
|
|
285
285
|
if http_response.nil?
|
|
286
286
|
raise error if !error.nil?
|
|
287
287
|
raise 'no response'
|
|
288
288
|
end
|
|
289
289
|
end
|
|
290
|
-
|
|
290
|
+
|
|
291
291
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
292
292
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
293
293
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -373,10 +373,10 @@ module Clerk
|
|
|
373
373
|
|
|
374
374
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
375
375
|
timeout ||= @sdk_configuration.timeout
|
|
376
|
-
|
|
376
|
+
|
|
377
377
|
|
|
378
378
|
connection = @sdk_configuration.client.dup
|
|
379
|
-
connection.
|
|
379
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
380
380
|
|
|
381
381
|
hook_ctx = SDKHooks::HookContext.new(
|
|
382
382
|
config: @sdk_configuration,
|
|
@@ -389,7 +389,7 @@ module Clerk
|
|
|
389
389
|
error = nil
|
|
390
390
|
http_response = nil
|
|
391
391
|
|
|
392
|
-
|
|
392
|
+
|
|
393
393
|
begin
|
|
394
394
|
http_response = connection.get(url) do |req|
|
|
395
395
|
req.headers.merge!(headers)
|
|
@@ -425,13 +425,13 @@ module Clerk
|
|
|
425
425
|
response: http_response
|
|
426
426
|
)
|
|
427
427
|
end
|
|
428
|
-
|
|
428
|
+
|
|
429
429
|
if http_response.nil?
|
|
430
430
|
raise error if !error.nil?
|
|
431
431
|
raise 'no response'
|
|
432
432
|
end
|
|
433
433
|
end
|
|
434
|
-
|
|
434
|
+
|
|
435
435
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
436
436
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
437
437
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -531,10 +531,10 @@ module Clerk
|
|
|
531
531
|
|
|
532
532
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
533
533
|
timeout ||= @sdk_configuration.timeout
|
|
534
|
-
|
|
534
|
+
|
|
535
535
|
|
|
536
536
|
connection = @sdk_configuration.client.dup
|
|
537
|
-
connection.
|
|
537
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
538
538
|
|
|
539
539
|
hook_ctx = SDKHooks::HookContext.new(
|
|
540
540
|
config: @sdk_configuration,
|
|
@@ -547,7 +547,7 @@ module Clerk
|
|
|
547
547
|
error = nil
|
|
548
548
|
http_response = nil
|
|
549
549
|
|
|
550
|
-
|
|
550
|
+
|
|
551
551
|
begin
|
|
552
552
|
http_response = connection.patch(url) do |req|
|
|
553
553
|
req.body = body
|
|
@@ -584,13 +584,13 @@ module Clerk
|
|
|
584
584
|
response: http_response
|
|
585
585
|
)
|
|
586
586
|
end
|
|
587
|
-
|
|
587
|
+
|
|
588
588
|
if http_response.nil?
|
|
589
589
|
raise error if !error.nil?
|
|
590
590
|
raise 'no response'
|
|
591
591
|
end
|
|
592
592
|
end
|
|
593
|
-
|
|
593
|
+
|
|
594
594
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
595
595
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
596
596
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -690,10 +690,10 @@ module Clerk
|
|
|
690
690
|
|
|
691
691
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
692
692
|
timeout ||= @sdk_configuration.timeout
|
|
693
|
-
|
|
693
|
+
|
|
694
694
|
|
|
695
695
|
connection = @sdk_configuration.client.dup
|
|
696
|
-
connection.
|
|
696
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
697
697
|
|
|
698
698
|
hook_ctx = SDKHooks::HookContext.new(
|
|
699
699
|
config: @sdk_configuration,
|
|
@@ -706,7 +706,7 @@ module Clerk
|
|
|
706
706
|
error = nil
|
|
707
707
|
http_response = nil
|
|
708
708
|
|
|
709
|
-
|
|
709
|
+
|
|
710
710
|
begin
|
|
711
711
|
http_response = connection.post(url) do |req|
|
|
712
712
|
req.body = body
|
|
@@ -743,13 +743,13 @@ module Clerk
|
|
|
743
743
|
response: http_response
|
|
744
744
|
)
|
|
745
745
|
end
|
|
746
|
-
|
|
746
|
+
|
|
747
747
|
if http_response.nil?
|
|
748
748
|
raise error if !error.nil?
|
|
749
749
|
raise 'no response'
|
|
750
750
|
end
|
|
751
751
|
end
|
|
752
|
-
|
|
752
|
+
|
|
753
753
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
754
754
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
755
755
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -848,10 +848,10 @@ module Clerk
|
|
|
848
848
|
|
|
849
849
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
850
850
|
timeout ||= @sdk_configuration.timeout
|
|
851
|
-
|
|
851
|
+
|
|
852
852
|
|
|
853
853
|
connection = @sdk_configuration.client.dup
|
|
854
|
-
connection.
|
|
854
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
855
855
|
|
|
856
856
|
hook_ctx = SDKHooks::HookContext.new(
|
|
857
857
|
config: @sdk_configuration,
|
|
@@ -864,7 +864,7 @@ module Clerk
|
|
|
864
864
|
error = nil
|
|
865
865
|
http_response = nil
|
|
866
866
|
|
|
867
|
-
|
|
867
|
+
|
|
868
868
|
begin
|
|
869
869
|
http_response = connection.post(url) do |req|
|
|
870
870
|
req.body = body
|
|
@@ -901,13 +901,13 @@ module Clerk
|
|
|
901
901
|
response: http_response
|
|
902
902
|
)
|
|
903
903
|
end
|
|
904
|
-
|
|
904
|
+
|
|
905
905
|
if http_response.nil?
|
|
906
906
|
raise error if !error.nil?
|
|
907
907
|
raise 'no response'
|
|
908
908
|
end
|
|
909
909
|
end
|
|
910
|
-
|
|
910
|
+
|
|
911
911
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
912
912
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
913
913
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1006,10 +1006,10 @@ module Clerk
|
|
|
1006
1006
|
|
|
1007
1007
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1008
1008
|
timeout ||= @sdk_configuration.timeout
|
|
1009
|
-
|
|
1009
|
+
|
|
1010
1010
|
|
|
1011
1011
|
connection = @sdk_configuration.client.dup
|
|
1012
|
-
connection.
|
|
1012
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
1013
1013
|
|
|
1014
1014
|
hook_ctx = SDKHooks::HookContext.new(
|
|
1015
1015
|
config: @sdk_configuration,
|
|
@@ -1022,7 +1022,7 @@ module Clerk
|
|
|
1022
1022
|
error = nil
|
|
1023
1023
|
http_response = nil
|
|
1024
1024
|
|
|
1025
|
-
|
|
1025
|
+
|
|
1026
1026
|
begin
|
|
1027
1027
|
http_response = connection.post(url) do |req|
|
|
1028
1028
|
req.body = body
|
|
@@ -1059,13 +1059,13 @@ module Clerk
|
|
|
1059
1059
|
response: http_response
|
|
1060
1060
|
)
|
|
1061
1061
|
end
|
|
1062
|
-
|
|
1062
|
+
|
|
1063
1063
|
if http_response.nil?
|
|
1064
1064
|
raise error if !error.nil?
|
|
1065
1065
|
raise 'no response'
|
|
1066
1066
|
end
|
|
1067
1067
|
end
|
|
1068
|
-
|
|
1068
|
+
|
|
1069
1069
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1070
1070
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1071
1071
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -75,10 +75,10 @@ module Clerk
|
|
|
75
75
|
|
|
76
76
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
77
77
|
timeout ||= @sdk_configuration.timeout
|
|
78
|
-
|
|
78
|
+
|
|
79
79
|
|
|
80
80
|
connection = @sdk_configuration.client.dup
|
|
81
|
-
connection.
|
|
81
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
82
82
|
|
|
83
83
|
hook_ctx = SDKHooks::HookContext.new(
|
|
84
84
|
config: @sdk_configuration,
|
|
@@ -91,7 +91,7 @@ module Clerk
|
|
|
91
91
|
error = nil
|
|
92
92
|
http_response = nil
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
|
|
95
95
|
begin
|
|
96
96
|
http_response = connection.get(url) do |req|
|
|
97
97
|
req.headers.merge!(headers)
|
|
@@ -128,13 +128,13 @@ module Clerk
|
|
|
128
128
|
response: http_response
|
|
129
129
|
)
|
|
130
130
|
end
|
|
131
|
-
|
|
131
|
+
|
|
132
132
|
if http_response.nil?
|
|
133
133
|
raise error if !error.nil?
|
|
134
134
|
raise 'no response'
|
|
135
135
|
end
|
|
136
136
|
end
|
|
137
|
-
|
|
137
|
+
|
|
138
138
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
139
139
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
140
140
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -225,10 +225,10 @@ module Clerk
|
|
|
225
225
|
|
|
226
226
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
227
227
|
timeout ||= @sdk_configuration.timeout
|
|
228
|
-
|
|
228
|
+
|
|
229
229
|
|
|
230
230
|
connection = @sdk_configuration.client.dup
|
|
231
|
-
connection.
|
|
231
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
232
232
|
|
|
233
233
|
hook_ctx = SDKHooks::HookContext.new(
|
|
234
234
|
config: @sdk_configuration,
|
|
@@ -241,7 +241,7 @@ module Clerk
|
|
|
241
241
|
error = nil
|
|
242
242
|
http_response = nil
|
|
243
243
|
|
|
244
|
-
|
|
244
|
+
|
|
245
245
|
begin
|
|
246
246
|
http_response = connection.post(url) do |req|
|
|
247
247
|
req.body = body
|
|
@@ -278,13 +278,13 @@ module Clerk
|
|
|
278
278
|
response: http_response
|
|
279
279
|
)
|
|
280
280
|
end
|
|
281
|
-
|
|
281
|
+
|
|
282
282
|
if http_response.nil?
|
|
283
283
|
raise error if !error.nil?
|
|
284
284
|
raise 'no response'
|
|
285
285
|
end
|
|
286
286
|
end
|
|
287
|
-
|
|
287
|
+
|
|
288
288
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
289
289
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
290
290
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -373,10 +373,10 @@ module Clerk
|
|
|
373
373
|
|
|
374
374
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
375
375
|
timeout ||= @sdk_configuration.timeout
|
|
376
|
-
|
|
376
|
+
|
|
377
377
|
|
|
378
378
|
connection = @sdk_configuration.client.dup
|
|
379
|
-
connection.
|
|
379
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
380
380
|
|
|
381
381
|
hook_ctx = SDKHooks::HookContext.new(
|
|
382
382
|
config: @sdk_configuration,
|
|
@@ -389,7 +389,7 @@ module Clerk
|
|
|
389
389
|
error = nil
|
|
390
390
|
http_response = nil
|
|
391
391
|
|
|
392
|
-
|
|
392
|
+
|
|
393
393
|
begin
|
|
394
394
|
http_response = connection.get(url) do |req|
|
|
395
395
|
req.headers.merge!(headers)
|
|
@@ -425,13 +425,13 @@ module Clerk
|
|
|
425
425
|
response: http_response
|
|
426
426
|
)
|
|
427
427
|
end
|
|
428
|
-
|
|
428
|
+
|
|
429
429
|
if http_response.nil?
|
|
430
430
|
raise error if !error.nil?
|
|
431
431
|
raise 'no response'
|
|
432
432
|
end
|
|
433
433
|
end
|
|
434
|
-
|
|
434
|
+
|
|
435
435
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
436
436
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
437
437
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -532,10 +532,10 @@ module Clerk
|
|
|
532
532
|
|
|
533
533
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
534
534
|
timeout ||= @sdk_configuration.timeout
|
|
535
|
-
|
|
535
|
+
|
|
536
536
|
|
|
537
537
|
connection = @sdk_configuration.client.dup
|
|
538
|
-
connection.
|
|
538
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
539
539
|
|
|
540
540
|
hook_ctx = SDKHooks::HookContext.new(
|
|
541
541
|
config: @sdk_configuration,
|
|
@@ -548,7 +548,7 @@ module Clerk
|
|
|
548
548
|
error = nil
|
|
549
549
|
http_response = nil
|
|
550
550
|
|
|
551
|
-
|
|
551
|
+
|
|
552
552
|
begin
|
|
553
553
|
http_response = connection.patch(url) do |req|
|
|
554
554
|
req.body = body
|
|
@@ -585,13 +585,13 @@ module Clerk
|
|
|
585
585
|
response: http_response
|
|
586
586
|
)
|
|
587
587
|
end
|
|
588
|
-
|
|
588
|
+
|
|
589
589
|
if http_response.nil?
|
|
590
590
|
raise error if !error.nil?
|
|
591
591
|
raise 'no response'
|
|
592
592
|
end
|
|
593
593
|
end
|
|
594
|
-
|
|
594
|
+
|
|
595
595
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
596
596
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
597
597
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -680,10 +680,10 @@ module Clerk
|
|
|
680
680
|
|
|
681
681
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
682
682
|
timeout ||= @sdk_configuration.timeout
|
|
683
|
-
|
|
683
|
+
|
|
684
684
|
|
|
685
685
|
connection = @sdk_configuration.client.dup
|
|
686
|
-
connection.
|
|
686
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
687
687
|
|
|
688
688
|
hook_ctx = SDKHooks::HookContext.new(
|
|
689
689
|
config: @sdk_configuration,
|
|
@@ -696,7 +696,7 @@ module Clerk
|
|
|
696
696
|
error = nil
|
|
697
697
|
http_response = nil
|
|
698
698
|
|
|
699
|
-
|
|
699
|
+
|
|
700
700
|
begin
|
|
701
701
|
http_response = connection.delete(url) do |req|
|
|
702
702
|
req.headers.merge!(headers)
|
|
@@ -732,13 +732,13 @@ module Clerk
|
|
|
732
732
|
response: http_response
|
|
733
733
|
)
|
|
734
734
|
end
|
|
735
|
-
|
|
735
|
+
|
|
736
736
|
if http_response.nil?
|
|
737
737
|
raise error if !error.nil?
|
|
738
738
|
raise 'no response'
|
|
739
739
|
end
|
|
740
740
|
end
|
|
741
|
-
|
|
741
|
+
|
|
742
742
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
743
743
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
744
744
|
if Utils.match_content_type(content_type, 'application/json')
|