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/betafeatures.rb
CHANGED
|
@@ -79,10 +79,10 @@ module Clerk
|
|
|
79
79
|
|
|
80
80
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
81
81
|
timeout ||= @sdk_configuration.timeout
|
|
82
|
-
|
|
82
|
+
|
|
83
83
|
|
|
84
84
|
connection = @sdk_configuration.client.dup
|
|
85
|
-
connection.
|
|
85
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
86
86
|
|
|
87
87
|
hook_ctx = SDKHooks::HookContext.new(
|
|
88
88
|
config: @sdk_configuration,
|
|
@@ -95,7 +95,7 @@ module Clerk
|
|
|
95
95
|
error = nil
|
|
96
96
|
http_response = nil
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
|
|
99
99
|
begin
|
|
100
100
|
http_response = connection.patch(url) do |req|
|
|
101
101
|
req.body = body
|
|
@@ -132,13 +132,13 @@ module Clerk
|
|
|
132
132
|
response: http_response
|
|
133
133
|
)
|
|
134
134
|
end
|
|
135
|
-
|
|
135
|
+
|
|
136
136
|
if http_response.nil?
|
|
137
137
|
raise error if !error.nil?
|
|
138
138
|
raise 'no response'
|
|
139
139
|
end
|
|
140
140
|
end
|
|
141
|
-
|
|
141
|
+
|
|
142
142
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
143
143
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
144
144
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -232,10 +232,10 @@ module Clerk
|
|
|
232
232
|
|
|
233
233
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
234
234
|
timeout ||= @sdk_configuration.timeout
|
|
235
|
-
|
|
235
|
+
|
|
236
236
|
|
|
237
237
|
connection = @sdk_configuration.client.dup
|
|
238
|
-
connection.
|
|
238
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
239
239
|
|
|
240
240
|
hook_ctx = SDKHooks::HookContext.new(
|
|
241
241
|
config: @sdk_configuration,
|
|
@@ -248,7 +248,7 @@ module Clerk
|
|
|
248
248
|
error = nil
|
|
249
249
|
http_response = nil
|
|
250
250
|
|
|
251
|
-
|
|
251
|
+
|
|
252
252
|
begin
|
|
253
253
|
http_response = connection.put(url) do |req|
|
|
254
254
|
req.body = body
|
|
@@ -285,13 +285,13 @@ module Clerk
|
|
|
285
285
|
response: http_response
|
|
286
286
|
)
|
|
287
287
|
end
|
|
288
|
-
|
|
288
|
+
|
|
289
289
|
if http_response.nil?
|
|
290
290
|
raise error if !error.nil?
|
|
291
291
|
raise 'no response'
|
|
292
292
|
end
|
|
293
293
|
end
|
|
294
|
-
|
|
294
|
+
|
|
295
295
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
296
296
|
if Utils.match_status_code(http_response.status, ['202'])
|
|
297
297
|
http_response = @sdk_configuration.hooks.after_success(
|
data/lib/clerk/billing.rb
CHANGED
|
@@ -77,10 +77,10 @@ module Clerk
|
|
|
77
77
|
|
|
78
78
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
79
79
|
timeout ||= @sdk_configuration.timeout
|
|
80
|
-
|
|
80
|
+
|
|
81
81
|
|
|
82
82
|
connection = @sdk_configuration.client.dup
|
|
83
|
-
connection.
|
|
83
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
84
84
|
|
|
85
85
|
hook_ctx = SDKHooks::HookContext.new(
|
|
86
86
|
config: @sdk_configuration,
|
|
@@ -93,7 +93,7 @@ module Clerk
|
|
|
93
93
|
error = nil
|
|
94
94
|
http_response = nil
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
|
|
97
97
|
begin
|
|
98
98
|
http_response = connection.get(url) do |req|
|
|
99
99
|
req.headers.merge!(headers)
|
|
@@ -130,13 +130,13 @@ module Clerk
|
|
|
130
130
|
response: http_response
|
|
131
131
|
)
|
|
132
132
|
end
|
|
133
|
-
|
|
133
|
+
|
|
134
134
|
if http_response.nil?
|
|
135
135
|
raise error if !error.nil?
|
|
136
136
|
raise 'no response'
|
|
137
137
|
end
|
|
138
138
|
end
|
|
139
|
-
|
|
139
|
+
|
|
140
140
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
141
141
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
142
142
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -237,10 +237,10 @@ module Clerk
|
|
|
237
237
|
|
|
238
238
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
239
239
|
timeout ||= @sdk_configuration.timeout
|
|
240
|
-
|
|
240
|
+
|
|
241
241
|
|
|
242
242
|
connection = @sdk_configuration.client.dup
|
|
243
|
-
connection.
|
|
243
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
244
244
|
|
|
245
245
|
hook_ctx = SDKHooks::HookContext.new(
|
|
246
246
|
config: @sdk_configuration,
|
|
@@ -253,7 +253,7 @@ module Clerk
|
|
|
253
253
|
error = nil
|
|
254
254
|
http_response = nil
|
|
255
255
|
|
|
256
|
-
|
|
256
|
+
|
|
257
257
|
begin
|
|
258
258
|
http_response = connection.get(url) do |req|
|
|
259
259
|
req.headers.merge!(headers)
|
|
@@ -290,13 +290,13 @@ module Clerk
|
|
|
290
290
|
response: http_response
|
|
291
291
|
)
|
|
292
292
|
end
|
|
293
|
-
|
|
293
|
+
|
|
294
294
|
if http_response.nil?
|
|
295
295
|
raise error if !error.nil?
|
|
296
296
|
raise 'no response'
|
|
297
297
|
end
|
|
298
298
|
end
|
|
299
|
-
|
|
299
|
+
|
|
300
300
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
301
301
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
302
302
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -401,10 +401,10 @@ module Clerk
|
|
|
401
401
|
|
|
402
402
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
403
403
|
timeout ||= @sdk_configuration.timeout
|
|
404
|
-
|
|
404
|
+
|
|
405
405
|
|
|
406
406
|
connection = @sdk_configuration.client.dup
|
|
407
|
-
connection.
|
|
407
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
408
408
|
|
|
409
409
|
hook_ctx = SDKHooks::HookContext.new(
|
|
410
410
|
config: @sdk_configuration,
|
|
@@ -417,7 +417,7 @@ module Clerk
|
|
|
417
417
|
error = nil
|
|
418
418
|
http_response = nil
|
|
419
419
|
|
|
420
|
-
|
|
420
|
+
|
|
421
421
|
begin
|
|
422
422
|
http_response = connection.post(url) do |req|
|
|
423
423
|
req.body = body
|
|
@@ -454,13 +454,13 @@ module Clerk
|
|
|
454
454
|
response: http_response
|
|
455
455
|
)
|
|
456
456
|
end
|
|
457
|
-
|
|
457
|
+
|
|
458
458
|
if http_response.nil?
|
|
459
459
|
raise error if !error.nil?
|
|
460
460
|
raise 'no response'
|
|
461
461
|
end
|
|
462
462
|
end
|
|
463
|
-
|
|
463
|
+
|
|
464
464
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
465
465
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
466
466
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -555,10 +555,10 @@ module Clerk
|
|
|
555
555
|
|
|
556
556
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
557
557
|
timeout ||= @sdk_configuration.timeout
|
|
558
|
-
|
|
558
|
+
|
|
559
559
|
|
|
560
560
|
connection = @sdk_configuration.client.dup
|
|
561
|
-
connection.
|
|
561
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
562
562
|
|
|
563
563
|
hook_ctx = SDKHooks::HookContext.new(
|
|
564
564
|
config: @sdk_configuration,
|
|
@@ -571,7 +571,7 @@ module Clerk
|
|
|
571
571
|
error = nil
|
|
572
572
|
http_response = nil
|
|
573
573
|
|
|
574
|
-
|
|
574
|
+
|
|
575
575
|
begin
|
|
576
576
|
http_response = connection.get(url) do |req|
|
|
577
577
|
req.headers.merge!(headers)
|
|
@@ -608,13 +608,13 @@ module Clerk
|
|
|
608
608
|
response: http_response
|
|
609
609
|
)
|
|
610
610
|
end
|
|
611
|
-
|
|
611
|
+
|
|
612
612
|
if http_response.nil?
|
|
613
613
|
raise error if !error.nil?
|
|
614
614
|
raise 'no response'
|
|
615
615
|
end
|
|
616
616
|
end
|
|
617
|
-
|
|
617
|
+
|
|
618
618
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
619
619
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
620
620
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -717,10 +717,10 @@ module Clerk
|
|
|
717
717
|
|
|
718
718
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
719
719
|
timeout ||= @sdk_configuration.timeout
|
|
720
|
-
|
|
720
|
+
|
|
721
721
|
|
|
722
722
|
connection = @sdk_configuration.client.dup
|
|
723
|
-
connection.
|
|
723
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
724
724
|
|
|
725
725
|
hook_ctx = SDKHooks::HookContext.new(
|
|
726
726
|
config: @sdk_configuration,
|
|
@@ -733,7 +733,7 @@ module Clerk
|
|
|
733
733
|
error = nil
|
|
734
734
|
http_response = nil
|
|
735
735
|
|
|
736
|
-
|
|
736
|
+
|
|
737
737
|
begin
|
|
738
738
|
http_response = connection.delete(url) do |req|
|
|
739
739
|
req.headers.merge!(headers)
|
|
@@ -770,13 +770,13 @@ module Clerk
|
|
|
770
770
|
response: http_response
|
|
771
771
|
)
|
|
772
772
|
end
|
|
773
|
-
|
|
773
|
+
|
|
774
774
|
if http_response.nil?
|
|
775
775
|
raise error if !error.nil?
|
|
776
776
|
raise 'no response'
|
|
777
777
|
end
|
|
778
778
|
end
|
|
779
|
-
|
|
779
|
+
|
|
780
780
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
781
781
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
782
782
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -892,10 +892,10 @@ module Clerk
|
|
|
892
892
|
|
|
893
893
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
894
894
|
timeout ||= @sdk_configuration.timeout
|
|
895
|
-
|
|
895
|
+
|
|
896
896
|
|
|
897
897
|
connection = @sdk_configuration.client.dup
|
|
898
|
-
connection.
|
|
898
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
899
899
|
|
|
900
900
|
hook_ctx = SDKHooks::HookContext.new(
|
|
901
901
|
config: @sdk_configuration,
|
|
@@ -908,7 +908,7 @@ module Clerk
|
|
|
908
908
|
error = nil
|
|
909
909
|
http_response = nil
|
|
910
910
|
|
|
911
|
-
|
|
911
|
+
|
|
912
912
|
begin
|
|
913
913
|
http_response = connection.post(url) do |req|
|
|
914
914
|
req.body = body
|
|
@@ -945,13 +945,13 @@ module Clerk
|
|
|
945
945
|
response: http_response
|
|
946
946
|
)
|
|
947
947
|
end
|
|
948
|
-
|
|
948
|
+
|
|
949
949
|
if http_response.nil?
|
|
950
950
|
raise error if !error.nil?
|
|
951
951
|
raise 'no response'
|
|
952
952
|
end
|
|
953
953
|
end
|
|
954
|
-
|
|
954
|
+
|
|
955
955
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
956
956
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
957
957
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -962,12 +962,12 @@ module Clerk
|
|
|
962
962
|
response: http_response
|
|
963
963
|
)
|
|
964
964
|
response_data = http_response.env.response_body
|
|
965
|
-
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::
|
|
965
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::CommerceSubscriptionItem2)
|
|
966
966
|
response = Models::Operations::ExtendBillingSubscriptionItemFreeTrialResponse.new(
|
|
967
967
|
status_code: http_response.status,
|
|
968
968
|
content_type: content_type,
|
|
969
969
|
raw_response: http_response,
|
|
970
|
-
|
|
970
|
+
commerce_subscription_item_2: obj
|
|
971
971
|
)
|
|
972
972
|
|
|
973
973
|
return response
|
|
@@ -1065,10 +1065,10 @@ module Clerk
|
|
|
1065
1065
|
|
|
1066
1066
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1067
1067
|
timeout ||= @sdk_configuration.timeout
|
|
1068
|
-
|
|
1068
|
+
|
|
1069
1069
|
|
|
1070
1070
|
connection = @sdk_configuration.client.dup
|
|
1071
|
-
connection.
|
|
1071
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
1072
1072
|
|
|
1073
1073
|
hook_ctx = SDKHooks::HookContext.new(
|
|
1074
1074
|
config: @sdk_configuration,
|
|
@@ -1081,7 +1081,7 @@ module Clerk
|
|
|
1081
1081
|
error = nil
|
|
1082
1082
|
http_response = nil
|
|
1083
1083
|
|
|
1084
|
-
|
|
1084
|
+
|
|
1085
1085
|
begin
|
|
1086
1086
|
http_response = connection.post(url) do |req|
|
|
1087
1087
|
req.body = body
|
|
@@ -1118,13 +1118,13 @@ module Clerk
|
|
|
1118
1118
|
response: http_response
|
|
1119
1119
|
)
|
|
1120
1120
|
end
|
|
1121
|
-
|
|
1121
|
+
|
|
1122
1122
|
if http_response.nil?
|
|
1123
1123
|
raise error if !error.nil?
|
|
1124
1124
|
raise 'no response'
|
|
1125
1125
|
end
|
|
1126
1126
|
end
|
|
1127
|
-
|
|
1127
|
+
|
|
1128
1128
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1129
1129
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1130
1130
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1224,10 +1224,10 @@ module Clerk
|
|
|
1224
1224
|
|
|
1225
1225
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1226
1226
|
timeout ||= @sdk_configuration.timeout
|
|
1227
|
-
|
|
1227
|
+
|
|
1228
1228
|
|
|
1229
1229
|
connection = @sdk_configuration.client.dup
|
|
1230
|
-
connection.
|
|
1230
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
1231
1231
|
|
|
1232
1232
|
hook_ctx = SDKHooks::HookContext.new(
|
|
1233
1233
|
config: @sdk_configuration,
|
|
@@ -1240,7 +1240,7 @@ module Clerk
|
|
|
1240
1240
|
error = nil
|
|
1241
1241
|
http_response = nil
|
|
1242
1242
|
|
|
1243
|
-
|
|
1243
|
+
|
|
1244
1244
|
begin
|
|
1245
1245
|
http_response = connection.get(url) do |req|
|
|
1246
1246
|
req.headers.merge!(headers)
|
|
@@ -1277,13 +1277,13 @@ module Clerk
|
|
|
1277
1277
|
response: http_response
|
|
1278
1278
|
)
|
|
1279
1279
|
end
|
|
1280
|
-
|
|
1280
|
+
|
|
1281
1281
|
if http_response.nil?
|
|
1282
1282
|
raise error if !error.nil?
|
|
1283
1283
|
raise 'no response'
|
|
1284
1284
|
end
|
|
1285
1285
|
end
|
|
1286
|
-
|
|
1286
|
+
|
|
1287
1287
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1288
1288
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1289
1289
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1384,10 +1384,10 @@ module Clerk
|
|
|
1384
1384
|
|
|
1385
1385
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1386
1386
|
timeout ||= @sdk_configuration.timeout
|
|
1387
|
-
|
|
1387
|
+
|
|
1388
1388
|
|
|
1389
1389
|
connection = @sdk_configuration.client.dup
|
|
1390
|
-
connection.
|
|
1390
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
1391
1391
|
|
|
1392
1392
|
hook_ctx = SDKHooks::HookContext.new(
|
|
1393
1393
|
config: @sdk_configuration,
|
|
@@ -1400,7 +1400,7 @@ module Clerk
|
|
|
1400
1400
|
error = nil
|
|
1401
1401
|
http_response = nil
|
|
1402
1402
|
|
|
1403
|
-
|
|
1403
|
+
|
|
1404
1404
|
begin
|
|
1405
1405
|
http_response = connection.get(url) do |req|
|
|
1406
1406
|
req.headers.merge!(headers)
|
|
@@ -1436,13 +1436,13 @@ module Clerk
|
|
|
1436
1436
|
response: http_response
|
|
1437
1437
|
)
|
|
1438
1438
|
end
|
|
1439
|
-
|
|
1439
|
+
|
|
1440
1440
|
if http_response.nil?
|
|
1441
1441
|
raise error if !error.nil?
|
|
1442
1442
|
raise 'no response'
|
|
1443
1443
|
end
|
|
1444
1444
|
end
|
|
1445
|
-
|
|
1445
|
+
|
|
1446
1446
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1447
1447
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1448
1448
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1548,10 +1548,10 @@ module Clerk
|
|
|
1548
1548
|
|
|
1549
1549
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1550
1550
|
timeout ||= @sdk_configuration.timeout
|
|
1551
|
-
|
|
1551
|
+
|
|
1552
1552
|
|
|
1553
1553
|
connection = @sdk_configuration.client.dup
|
|
1554
|
-
connection.
|
|
1554
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
1555
1555
|
|
|
1556
1556
|
hook_ctx = SDKHooks::HookContext.new(
|
|
1557
1557
|
config: @sdk_configuration,
|
|
@@ -1564,7 +1564,7 @@ module Clerk
|
|
|
1564
1564
|
error = nil
|
|
1565
1565
|
http_response = nil
|
|
1566
1566
|
|
|
1567
|
-
|
|
1567
|
+
|
|
1568
1568
|
begin
|
|
1569
1569
|
http_response = connection.get(url) do |req|
|
|
1570
1570
|
req.headers.merge!(headers)
|
|
@@ -1601,13 +1601,13 @@ module Clerk
|
|
|
1601
1601
|
response: http_response
|
|
1602
1602
|
)
|
|
1603
1603
|
end
|
|
1604
|
-
|
|
1604
|
+
|
|
1605
1605
|
if http_response.nil?
|
|
1606
1606
|
raise error if !error.nil?
|
|
1607
1607
|
raise 'no response'
|
|
1608
1608
|
end
|
|
1609
1609
|
end
|
|
1610
|
-
|
|
1610
|
+
|
|
1611
1611
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1612
1612
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1613
1613
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -69,10 +69,10 @@ module Clerk
|
|
|
69
69
|
|
|
70
70
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
71
71
|
timeout ||= @sdk_configuration.timeout
|
|
72
|
-
|
|
72
|
+
|
|
73
73
|
|
|
74
74
|
connection = @sdk_configuration.client.dup
|
|
75
|
-
connection.
|
|
75
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
76
76
|
|
|
77
77
|
hook_ctx = SDKHooks::HookContext.new(
|
|
78
78
|
config: @sdk_configuration,
|
|
@@ -85,7 +85,7 @@ module Clerk
|
|
|
85
85
|
error = nil
|
|
86
86
|
http_response = nil
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
|
|
89
89
|
begin
|
|
90
90
|
http_response = connection.get(url) do |req|
|
|
91
91
|
req.headers.merge!(headers)
|
|
@@ -121,13 +121,13 @@ module Clerk
|
|
|
121
121
|
response: http_response
|
|
122
122
|
)
|
|
123
123
|
end
|
|
124
|
-
|
|
124
|
+
|
|
125
125
|
if http_response.nil?
|
|
126
126
|
raise error if !error.nil?
|
|
127
127
|
raise 'no response'
|
|
128
128
|
end
|
|
129
129
|
end
|
|
130
|
-
|
|
130
|
+
|
|
131
131
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
132
132
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
133
133
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -215,10 +215,10 @@ module Clerk
|
|
|
215
215
|
|
|
216
216
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
217
217
|
timeout ||= @sdk_configuration.timeout
|
|
218
|
-
|
|
218
|
+
|
|
219
219
|
|
|
220
220
|
connection = @sdk_configuration.client.dup
|
|
221
|
-
connection.
|
|
221
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
222
222
|
|
|
223
223
|
hook_ctx = SDKHooks::HookContext.new(
|
|
224
224
|
config: @sdk_configuration,
|
|
@@ -231,7 +231,7 @@ module Clerk
|
|
|
231
231
|
error = nil
|
|
232
232
|
http_response = nil
|
|
233
233
|
|
|
234
|
-
|
|
234
|
+
|
|
235
235
|
begin
|
|
236
236
|
http_response = connection.post(url) do |req|
|
|
237
237
|
req.body = body
|
|
@@ -268,13 +268,13 @@ module Clerk
|
|
|
268
268
|
response: http_response
|
|
269
269
|
)
|
|
270
270
|
end
|
|
271
|
-
|
|
271
|
+
|
|
272
272
|
if http_response.nil?
|
|
273
273
|
raise error if !error.nil?
|
|
274
274
|
raise 'no response'
|
|
275
275
|
end
|
|
276
276
|
end
|
|
277
|
-
|
|
277
|
+
|
|
278
278
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
279
279
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
280
280
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -360,10 +360,10 @@ module Clerk
|
|
|
360
360
|
|
|
361
361
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
362
362
|
timeout ||= @sdk_configuration.timeout
|
|
363
|
-
|
|
363
|
+
|
|
364
364
|
|
|
365
365
|
connection = @sdk_configuration.client.dup
|
|
366
|
-
connection.
|
|
366
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
367
367
|
|
|
368
368
|
hook_ctx = SDKHooks::HookContext.new(
|
|
369
369
|
config: @sdk_configuration,
|
|
@@ -376,7 +376,7 @@ module Clerk
|
|
|
376
376
|
error = nil
|
|
377
377
|
http_response = nil
|
|
378
378
|
|
|
379
|
-
|
|
379
|
+
|
|
380
380
|
begin
|
|
381
381
|
http_response = connection.delete(url) do |req|
|
|
382
382
|
req.headers.merge!(headers)
|
|
@@ -412,13 +412,13 @@ module Clerk
|
|
|
412
412
|
response: http_response
|
|
413
413
|
)
|
|
414
414
|
end
|
|
415
|
-
|
|
415
|
+
|
|
416
416
|
if http_response.nil?
|
|
417
417
|
raise error if !error.nil?
|
|
418
418
|
raise 'no response'
|
|
419
419
|
end
|
|
420
420
|
end
|
|
421
|
-
|
|
421
|
+
|
|
422
422
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
423
423
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
424
424
|
if Utils.match_content_type(content_type, 'application/json')
|
data/lib/clerk/clients.rb
CHANGED
|
@@ -79,10 +79,10 @@ module Clerk
|
|
|
79
79
|
|
|
80
80
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
81
81
|
timeout ||= @sdk_configuration.timeout
|
|
82
|
-
|
|
82
|
+
|
|
83
83
|
|
|
84
84
|
connection = @sdk_configuration.client.dup
|
|
85
|
-
connection.
|
|
85
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
86
86
|
|
|
87
87
|
hook_ctx = SDKHooks::HookContext.new(
|
|
88
88
|
config: @sdk_configuration,
|
|
@@ -95,7 +95,7 @@ module Clerk
|
|
|
95
95
|
error = nil
|
|
96
96
|
http_response = nil
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
|
|
99
99
|
begin
|
|
100
100
|
http_response = connection.get(url) do |req|
|
|
101
101
|
req.headers.merge!(headers)
|
|
@@ -132,13 +132,13 @@ module Clerk
|
|
|
132
132
|
response: http_response
|
|
133
133
|
)
|
|
134
134
|
end
|
|
135
|
-
|
|
135
|
+
|
|
136
136
|
if http_response.nil?
|
|
137
137
|
raise error if !error.nil?
|
|
138
138
|
raise 'no response'
|
|
139
139
|
end
|
|
140
140
|
end
|
|
141
|
-
|
|
141
|
+
|
|
142
142
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
143
143
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
144
144
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -226,10 +226,10 @@ module Clerk
|
|
|
226
226
|
|
|
227
227
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
228
228
|
timeout ||= @sdk_configuration.timeout
|
|
229
|
-
|
|
229
|
+
|
|
230
230
|
|
|
231
231
|
connection = @sdk_configuration.client.dup
|
|
232
|
-
connection.
|
|
232
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
233
233
|
|
|
234
234
|
hook_ctx = SDKHooks::HookContext.new(
|
|
235
235
|
config: @sdk_configuration,
|
|
@@ -242,7 +242,7 @@ module Clerk
|
|
|
242
242
|
error = nil
|
|
243
243
|
http_response = nil
|
|
244
244
|
|
|
245
|
-
|
|
245
|
+
|
|
246
246
|
begin
|
|
247
247
|
http_response = connection.post(url) do |req|
|
|
248
248
|
req.body = body
|
|
@@ -279,13 +279,13 @@ module Clerk
|
|
|
279
279
|
response: http_response
|
|
280
280
|
)
|
|
281
281
|
end
|
|
282
|
-
|
|
282
|
+
|
|
283
283
|
if http_response.nil?
|
|
284
284
|
raise error if !error.nil?
|
|
285
285
|
raise 'no response'
|
|
286
286
|
end
|
|
287
287
|
end
|
|
288
|
-
|
|
288
|
+
|
|
289
289
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
290
290
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
291
291
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -371,10 +371,10 @@ module Clerk
|
|
|
371
371
|
|
|
372
372
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
373
373
|
timeout ||= @sdk_configuration.timeout
|
|
374
|
-
|
|
374
|
+
|
|
375
375
|
|
|
376
376
|
connection = @sdk_configuration.client.dup
|
|
377
|
-
connection.
|
|
377
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
378
378
|
|
|
379
379
|
hook_ctx = SDKHooks::HookContext.new(
|
|
380
380
|
config: @sdk_configuration,
|
|
@@ -387,7 +387,7 @@ module Clerk
|
|
|
387
387
|
error = nil
|
|
388
388
|
http_response = nil
|
|
389
389
|
|
|
390
|
-
|
|
390
|
+
|
|
391
391
|
begin
|
|
392
392
|
http_response = connection.get(url) do |req|
|
|
393
393
|
req.headers.merge!(headers)
|
|
@@ -423,13 +423,13 @@ module Clerk
|
|
|
423
423
|
response: http_response
|
|
424
424
|
)
|
|
425
425
|
end
|
|
426
|
-
|
|
426
|
+
|
|
427
427
|
if http_response.nil?
|
|
428
428
|
raise error if !error.nil?
|
|
429
429
|
raise 'no response'
|
|
430
430
|
end
|
|
431
431
|
end
|
|
432
|
-
|
|
432
|
+
|
|
433
433
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
434
434
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
435
435
|
if Utils.match_content_type(content_type, 'application/json')
|