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
|
@@ -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')
|
|
@@ -224,10 +224,10 @@ module Clerk
|
|
|
224
224
|
|
|
225
225
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
226
226
|
timeout ||= @sdk_configuration.timeout
|
|
227
|
-
|
|
227
|
+
|
|
228
228
|
|
|
229
229
|
connection = @sdk_configuration.client.dup
|
|
230
|
-
connection.
|
|
230
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
231
231
|
|
|
232
232
|
hook_ctx = SDKHooks::HookContext.new(
|
|
233
233
|
config: @sdk_configuration,
|
|
@@ -240,7 +240,7 @@ module Clerk
|
|
|
240
240
|
error = nil
|
|
241
241
|
http_response = nil
|
|
242
242
|
|
|
243
|
-
|
|
243
|
+
|
|
244
244
|
begin
|
|
245
245
|
http_response = connection.post(url) do |req|
|
|
246
246
|
req.body = body
|
|
@@ -277,13 +277,13 @@ module Clerk
|
|
|
277
277
|
response: http_response
|
|
278
278
|
)
|
|
279
279
|
end
|
|
280
|
-
|
|
280
|
+
|
|
281
281
|
if http_response.nil?
|
|
282
282
|
raise error if !error.nil?
|
|
283
283
|
raise 'no response'
|
|
284
284
|
end
|
|
285
285
|
end
|
|
286
|
-
|
|
286
|
+
|
|
287
287
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
288
288
|
if Utils.match_status_code(http_response.status, ['201'])
|
|
289
289
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -369,10 +369,10 @@ module Clerk
|
|
|
369
369
|
|
|
370
370
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
371
371
|
timeout ||= @sdk_configuration.timeout
|
|
372
|
-
|
|
372
|
+
|
|
373
373
|
|
|
374
374
|
connection = @sdk_configuration.client.dup
|
|
375
|
-
connection.
|
|
375
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
376
376
|
|
|
377
377
|
hook_ctx = SDKHooks::HookContext.new(
|
|
378
378
|
config: @sdk_configuration,
|
|
@@ -385,7 +385,7 @@ module Clerk
|
|
|
385
385
|
error = nil
|
|
386
386
|
http_response = nil
|
|
387
387
|
|
|
388
|
-
|
|
388
|
+
|
|
389
389
|
begin
|
|
390
390
|
http_response = connection.get(url) do |req|
|
|
391
391
|
req.headers.merge!(headers)
|
|
@@ -421,13 +421,13 @@ module Clerk
|
|
|
421
421
|
response: http_response
|
|
422
422
|
)
|
|
423
423
|
end
|
|
424
|
-
|
|
424
|
+
|
|
425
425
|
if http_response.nil?
|
|
426
426
|
raise error if !error.nil?
|
|
427
427
|
raise 'no response'
|
|
428
428
|
end
|
|
429
429
|
end
|
|
430
|
-
|
|
430
|
+
|
|
431
431
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
432
432
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
433
433
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -526,10 +526,10 @@ module Clerk
|
|
|
526
526
|
|
|
527
527
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
528
528
|
timeout ||= @sdk_configuration.timeout
|
|
529
|
-
|
|
529
|
+
|
|
530
530
|
|
|
531
531
|
connection = @sdk_configuration.client.dup
|
|
532
|
-
connection.
|
|
532
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
533
533
|
|
|
534
534
|
hook_ctx = SDKHooks::HookContext.new(
|
|
535
535
|
config: @sdk_configuration,
|
|
@@ -542,7 +542,7 @@ module Clerk
|
|
|
542
542
|
error = nil
|
|
543
543
|
http_response = nil
|
|
544
544
|
|
|
545
|
-
|
|
545
|
+
|
|
546
546
|
begin
|
|
547
547
|
http_response = connection.patch(url) do |req|
|
|
548
548
|
req.body = body
|
|
@@ -579,13 +579,13 @@ module Clerk
|
|
|
579
579
|
response: http_response
|
|
580
580
|
)
|
|
581
581
|
end
|
|
582
|
-
|
|
582
|
+
|
|
583
583
|
if http_response.nil?
|
|
584
584
|
raise error if !error.nil?
|
|
585
585
|
raise 'no response'
|
|
586
586
|
end
|
|
587
587
|
end
|
|
588
|
-
|
|
588
|
+
|
|
589
589
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
590
590
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
591
591
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -671,10 +671,10 @@ module Clerk
|
|
|
671
671
|
|
|
672
672
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
673
673
|
timeout ||= @sdk_configuration.timeout
|
|
674
|
-
|
|
674
|
+
|
|
675
675
|
|
|
676
676
|
connection = @sdk_configuration.client.dup
|
|
677
|
-
connection.
|
|
677
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
678
678
|
|
|
679
679
|
hook_ctx = SDKHooks::HookContext.new(
|
|
680
680
|
config: @sdk_configuration,
|
|
@@ -687,7 +687,7 @@ module Clerk
|
|
|
687
687
|
error = nil
|
|
688
688
|
http_response = nil
|
|
689
689
|
|
|
690
|
-
|
|
690
|
+
|
|
691
691
|
begin
|
|
692
692
|
http_response = connection.delete(url) do |req|
|
|
693
693
|
req.headers.merge!(headers)
|
|
@@ -723,13 +723,13 @@ module Clerk
|
|
|
723
723
|
response: http_response
|
|
724
724
|
)
|
|
725
725
|
end
|
|
726
|
-
|
|
726
|
+
|
|
727
727
|
if http_response.nil?
|
|
728
728
|
raise error if !error.nil?
|
|
729
729
|
raise 'no response'
|
|
730
730
|
end
|
|
731
731
|
end
|
|
732
|
-
|
|
732
|
+
|
|
733
733
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
734
734
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
735
735
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -819,10 +819,10 @@ module Clerk
|
|
|
819
819
|
|
|
820
820
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
821
821
|
timeout ||= @sdk_configuration.timeout
|
|
822
|
-
|
|
822
|
+
|
|
823
823
|
|
|
824
824
|
connection = @sdk_configuration.client.dup
|
|
825
|
-
connection.
|
|
825
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
826
826
|
|
|
827
827
|
hook_ctx = SDKHooks::HookContext.new(
|
|
828
828
|
config: @sdk_configuration,
|
|
@@ -835,7 +835,7 @@ module Clerk
|
|
|
835
835
|
error = nil
|
|
836
836
|
http_response = nil
|
|
837
837
|
|
|
838
|
-
|
|
838
|
+
|
|
839
839
|
begin
|
|
840
840
|
http_response = connection.get(url) do |req|
|
|
841
841
|
req.headers.merge!(headers)
|
|
@@ -872,13 +872,13 @@ module Clerk
|
|
|
872
872
|
response: http_response
|
|
873
873
|
)
|
|
874
874
|
end
|
|
875
|
-
|
|
875
|
+
|
|
876
876
|
if http_response.nil?
|
|
877
877
|
raise error if !error.nil?
|
|
878
878
|
raise 'no response'
|
|
879
879
|
end
|
|
880
880
|
end
|
|
881
|
-
|
|
881
|
+
|
|
882
882
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
883
883
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
884
884
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -964,10 +964,10 @@ module Clerk
|
|
|
964
964
|
|
|
965
965
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
966
966
|
timeout ||= @sdk_configuration.timeout
|
|
967
|
-
|
|
967
|
+
|
|
968
968
|
|
|
969
969
|
connection = @sdk_configuration.client.dup
|
|
970
|
-
connection.
|
|
970
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
971
971
|
|
|
972
972
|
hook_ctx = SDKHooks::HookContext.new(
|
|
973
973
|
config: @sdk_configuration,
|
|
@@ -980,7 +980,7 @@ module Clerk
|
|
|
980
980
|
error = nil
|
|
981
981
|
http_response = nil
|
|
982
982
|
|
|
983
|
-
|
|
983
|
+
|
|
984
984
|
begin
|
|
985
985
|
http_response = connection.post(url) do |req|
|
|
986
986
|
req.headers.merge!(headers)
|
|
@@ -1016,13 +1016,13 @@ module Clerk
|
|
|
1016
1016
|
response: http_response
|
|
1017
1017
|
)
|
|
1018
1018
|
end
|
|
1019
|
-
|
|
1019
|
+
|
|
1020
1020
|
if http_response.nil?
|
|
1021
1021
|
raise error if !error.nil?
|
|
1022
1022
|
raise 'no response'
|
|
1023
1023
|
end
|
|
1024
1024
|
end
|
|
1025
|
-
|
|
1025
|
+
|
|
1026
1026
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1027
1027
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1028
1028
|
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')
|
|
@@ -200,10 +200,10 @@ module Clerk
|
|
|
200
200
|
|
|
201
201
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
202
202
|
timeout ||= @sdk_configuration.timeout
|
|
203
|
-
|
|
203
|
+
|
|
204
204
|
|
|
205
205
|
connection = @sdk_configuration.client.dup
|
|
206
|
-
connection.
|
|
206
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
207
207
|
|
|
208
208
|
hook_ctx = SDKHooks::HookContext.new(
|
|
209
209
|
config: @sdk_configuration,
|
|
@@ -216,7 +216,7 @@ module Clerk
|
|
|
216
216
|
error = nil
|
|
217
217
|
http_response = nil
|
|
218
218
|
|
|
219
|
-
|
|
219
|
+
|
|
220
220
|
begin
|
|
221
221
|
http_response = connection.patch(url) do |req|
|
|
222
222
|
req.body = body
|
|
@@ -253,13 +253,13 @@ module Clerk
|
|
|
253
253
|
response: http_response
|
|
254
254
|
)
|
|
255
255
|
end
|
|
256
|
-
|
|
256
|
+
|
|
257
257
|
if http_response.nil?
|
|
258
258
|
raise error if !error.nil?
|
|
259
259
|
raise 'no response'
|
|
260
260
|
end
|
|
261
261
|
end
|
|
262
|
-
|
|
262
|
+
|
|
263
263
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
264
264
|
if Utils.match_status_code(http_response.status, ['204'])
|
|
265
265
|
http_response = @sdk_configuration.hooks.after_success(
|
|
@@ -338,10 +338,10 @@ module Clerk
|
|
|
338
338
|
|
|
339
339
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
340
340
|
timeout ||= @sdk_configuration.timeout
|
|
341
|
-
|
|
341
|
+
|
|
342
342
|
|
|
343
343
|
connection = @sdk_configuration.client.dup
|
|
344
|
-
connection.
|
|
344
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
345
345
|
|
|
346
346
|
hook_ctx = SDKHooks::HookContext.new(
|
|
347
347
|
config: @sdk_configuration,
|
|
@@ -354,7 +354,7 @@ module Clerk
|
|
|
354
354
|
error = nil
|
|
355
355
|
http_response = nil
|
|
356
356
|
|
|
357
|
-
|
|
357
|
+
|
|
358
358
|
begin
|
|
359
359
|
http_response = connection.patch(url) do |req|
|
|
360
360
|
req.body = body
|
|
@@ -391,13 +391,13 @@ module Clerk
|
|
|
391
391
|
response: http_response
|
|
392
392
|
)
|
|
393
393
|
end
|
|
394
|
-
|
|
394
|
+
|
|
395
395
|
if http_response.nil?
|
|
396
396
|
raise error if !error.nil?
|
|
397
397
|
raise 'no response'
|
|
398
398
|
end
|
|
399
399
|
end
|
|
400
|
-
|
|
400
|
+
|
|
401
401
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
402
402
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
403
403
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -475,10 +475,10 @@ module Clerk
|
|
|
475
475
|
|
|
476
476
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
477
477
|
timeout ||= @sdk_configuration.timeout
|
|
478
|
-
|
|
478
|
+
|
|
479
479
|
|
|
480
480
|
connection = @sdk_configuration.client.dup
|
|
481
|
-
connection.
|
|
481
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
482
482
|
|
|
483
483
|
hook_ctx = SDKHooks::HookContext.new(
|
|
484
484
|
config: @sdk_configuration,
|
|
@@ -491,7 +491,7 @@ module Clerk
|
|
|
491
491
|
error = nil
|
|
492
492
|
http_response = nil
|
|
493
493
|
|
|
494
|
-
|
|
494
|
+
|
|
495
495
|
begin
|
|
496
496
|
http_response = connection.get(url) do |req|
|
|
497
497
|
req.headers.merge!(headers)
|
|
@@ -527,13 +527,13 @@ module Clerk
|
|
|
527
527
|
response: http_response
|
|
528
528
|
)
|
|
529
529
|
end
|
|
530
|
-
|
|
530
|
+
|
|
531
531
|
if http_response.nil?
|
|
532
532
|
raise error if !error.nil?
|
|
533
533
|
raise 'no response'
|
|
534
534
|
end
|
|
535
535
|
end
|
|
536
|
-
|
|
536
|
+
|
|
537
537
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
538
538
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
539
539
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -610,10 +610,10 @@ module Clerk
|
|
|
610
610
|
|
|
611
611
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
612
612
|
timeout ||= @sdk_configuration.timeout
|
|
613
|
-
|
|
613
|
+
|
|
614
614
|
|
|
615
615
|
connection = @sdk_configuration.client.dup
|
|
616
|
-
connection.
|
|
616
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
617
617
|
|
|
618
618
|
hook_ctx = SDKHooks::HookContext.new(
|
|
619
619
|
config: @sdk_configuration,
|
|
@@ -626,7 +626,7 @@ module Clerk
|
|
|
626
626
|
error = nil
|
|
627
627
|
http_response = nil
|
|
628
628
|
|
|
629
|
-
|
|
629
|
+
|
|
630
630
|
begin
|
|
631
631
|
http_response = connection.patch(url) do |req|
|
|
632
632
|
req.body = body
|
|
@@ -663,13 +663,13 @@ module Clerk
|
|
|
663
663
|
response: http_response
|
|
664
664
|
)
|
|
665
665
|
end
|
|
666
|
-
|
|
666
|
+
|
|
667
667
|
if http_response.nil?
|
|
668
668
|
raise error if !error.nil?
|
|
669
669
|
raise 'no response'
|
|
670
670
|
end
|
|
671
671
|
end
|
|
672
|
-
|
|
672
|
+
|
|
673
673
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
674
674
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
675
675
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -747,10 +747,10 @@ module Clerk
|
|
|
747
747
|
|
|
748
748
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
749
749
|
timeout ||= @sdk_configuration.timeout
|
|
750
|
-
|
|
750
|
+
|
|
751
751
|
|
|
752
752
|
connection = @sdk_configuration.client.dup
|
|
753
|
-
connection.
|
|
753
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
754
754
|
|
|
755
755
|
hook_ctx = SDKHooks::HookContext.new(
|
|
756
756
|
config: @sdk_configuration,
|
|
@@ -763,7 +763,7 @@ module Clerk
|
|
|
763
763
|
error = nil
|
|
764
764
|
http_response = nil
|
|
765
765
|
|
|
766
|
-
|
|
766
|
+
|
|
767
767
|
begin
|
|
768
768
|
http_response = connection.get(url) do |req|
|
|
769
769
|
req.headers.merge!(headers)
|
|
@@ -799,13 +799,13 @@ module Clerk
|
|
|
799
799
|
response: http_response
|
|
800
800
|
)
|
|
801
801
|
end
|
|
802
|
-
|
|
802
|
+
|
|
803
803
|
if http_response.nil?
|
|
804
804
|
raise error if !error.nil?
|
|
805
805
|
raise 'no response'
|
|
806
806
|
end
|
|
807
807
|
end
|
|
808
|
-
|
|
808
|
+
|
|
809
809
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
810
810
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
811
811
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -878,10 +878,10 @@ module Clerk
|
|
|
878
878
|
|
|
879
879
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
880
880
|
timeout ||= @sdk_configuration.timeout
|
|
881
|
-
|
|
881
|
+
|
|
882
882
|
|
|
883
883
|
connection = @sdk_configuration.client.dup
|
|
884
|
-
connection.
|
|
884
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
885
885
|
|
|
886
886
|
hook_ctx = SDKHooks::HookContext.new(
|
|
887
887
|
config: @sdk_configuration,
|
|
@@ -894,7 +894,7 @@ module Clerk
|
|
|
894
894
|
error = nil
|
|
895
895
|
http_response = nil
|
|
896
896
|
|
|
897
|
-
|
|
897
|
+
|
|
898
898
|
begin
|
|
899
899
|
http_response = connection.patch(url) do |req|
|
|
900
900
|
req.body = body
|
|
@@ -931,13 +931,13 @@ module Clerk
|
|
|
931
931
|
response: http_response
|
|
932
932
|
)
|
|
933
933
|
end
|
|
934
|
-
|
|
934
|
+
|
|
935
935
|
if http_response.nil?
|
|
936
936
|
raise error if !error.nil?
|
|
937
937
|
raise 'no response'
|
|
938
938
|
end
|
|
939
939
|
end
|
|
940
|
-
|
|
940
|
+
|
|
941
941
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
942
942
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
943
943
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1029,10 +1029,10 @@ module Clerk
|
|
|
1029
1029
|
|
|
1030
1030
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1031
1031
|
timeout ||= @sdk_configuration.timeout
|
|
1032
|
-
|
|
1032
|
+
|
|
1033
1033
|
|
|
1034
1034
|
connection = @sdk_configuration.client.dup
|
|
1035
|
-
connection.
|
|
1035
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
1036
1036
|
|
|
1037
1037
|
hook_ctx = SDKHooks::HookContext.new(
|
|
1038
1038
|
config: @sdk_configuration,
|
|
@@ -1045,7 +1045,7 @@ module Clerk
|
|
|
1045
1045
|
error = nil
|
|
1046
1046
|
http_response = nil
|
|
1047
1047
|
|
|
1048
|
-
|
|
1048
|
+
|
|
1049
1049
|
begin
|
|
1050
1050
|
http_response = connection.post(url) do |req|
|
|
1051
1051
|
req.body = body
|
|
@@ -1082,13 +1082,13 @@ module Clerk
|
|
|
1082
1082
|
response: http_response
|
|
1083
1083
|
)
|
|
1084
1084
|
end
|
|
1085
|
-
|
|
1085
|
+
|
|
1086
1086
|
if http_response.nil?
|
|
1087
1087
|
raise error if !error.nil?
|
|
1088
1088
|
raise 'no response'
|
|
1089
1089
|
end
|
|
1090
1090
|
end
|
|
1091
|
-
|
|
1091
|
+
|
|
1092
1092
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1093
1093
|
if Utils.match_status_code(http_response.status, ['202'])
|
|
1094
1094
|
http_response = @sdk_configuration.hooks.after_success(
|
|
@@ -1157,10 +1157,10 @@ module Clerk
|
|
|
1157
1157
|
|
|
1158
1158
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1159
1159
|
timeout ||= @sdk_configuration.timeout
|
|
1160
|
-
|
|
1160
|
+
|
|
1161
1161
|
|
|
1162
1162
|
connection = @sdk_configuration.client.dup
|
|
1163
|
-
connection.
|
|
1163
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
1164
1164
|
|
|
1165
1165
|
hook_ctx = SDKHooks::HookContext.new(
|
|
1166
1166
|
config: @sdk_configuration,
|
|
@@ -1173,7 +1173,7 @@ module Clerk
|
|
|
1173
1173
|
error = nil
|
|
1174
1174
|
http_response = nil
|
|
1175
1175
|
|
|
1176
|
-
|
|
1176
|
+
|
|
1177
1177
|
begin
|
|
1178
1178
|
http_response = connection.get(url) do |req|
|
|
1179
1179
|
req.headers.merge!(headers)
|
|
@@ -1209,13 +1209,13 @@ module Clerk
|
|
|
1209
1209
|
response: http_response
|
|
1210
1210
|
)
|
|
1211
1211
|
end
|
|
1212
|
-
|
|
1212
|
+
|
|
1213
1213
|
if http_response.nil?
|
|
1214
1214
|
raise error if !error.nil?
|
|
1215
1215
|
raise 'no response'
|
|
1216
1216
|
end
|
|
1217
1217
|
end
|
|
1218
|
-
|
|
1218
|
+
|
|
1219
1219
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1220
1220
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1221
1221
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1303,10 +1303,10 @@ module Clerk
|
|
|
1303
1303
|
|
|
1304
1304
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1305
1305
|
timeout ||= @sdk_configuration.timeout
|
|
1306
|
-
|
|
1306
|
+
|
|
1307
1307
|
|
|
1308
1308
|
connection = @sdk_configuration.client.dup
|
|
1309
|
-
connection.
|
|
1309
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
1310
1310
|
|
|
1311
1311
|
hook_ctx = SDKHooks::HookContext.new(
|
|
1312
1312
|
config: @sdk_configuration,
|
|
@@ -1319,7 +1319,7 @@ module Clerk
|
|
|
1319
1319
|
error = nil
|
|
1320
1320
|
http_response = nil
|
|
1321
1321
|
|
|
1322
|
-
|
|
1322
|
+
|
|
1323
1323
|
begin
|
|
1324
1324
|
http_response = connection.patch(url) do |req|
|
|
1325
1325
|
req.body = body
|
|
@@ -1356,13 +1356,13 @@ module Clerk
|
|
|
1356
1356
|
response: http_response
|
|
1357
1357
|
)
|
|
1358
1358
|
end
|
|
1359
|
-
|
|
1359
|
+
|
|
1360
1360
|
if http_response.nil?
|
|
1361
1361
|
raise error if !error.nil?
|
|
1362
1362
|
raise 'no response'
|
|
1363
1363
|
end
|
|
1364
1364
|
end
|
|
1365
|
-
|
|
1365
|
+
|
|
1366
1366
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1367
1367
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1368
1368
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1439,10 +1439,10 @@ module Clerk
|
|
|
1439
1439
|
|
|
1440
1440
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1441
1441
|
timeout ||= @sdk_configuration.timeout
|
|
1442
|
-
|
|
1442
|
+
|
|
1443
1443
|
|
|
1444
1444
|
connection = @sdk_configuration.client.dup
|
|
1445
|
-
connection.
|
|
1445
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
1446
1446
|
|
|
1447
1447
|
hook_ctx = SDKHooks::HookContext.new(
|
|
1448
1448
|
config: @sdk_configuration,
|
|
@@ -1455,7 +1455,7 @@ module Clerk
|
|
|
1455
1455
|
error = nil
|
|
1456
1456
|
http_response = nil
|
|
1457
1457
|
|
|
1458
|
-
|
|
1458
|
+
|
|
1459
1459
|
begin
|
|
1460
1460
|
http_response = connection.get(url) do |req|
|
|
1461
1461
|
req.headers.merge!(headers)
|
|
@@ -1491,13 +1491,13 @@ module Clerk
|
|
|
1491
1491
|
response: http_response
|
|
1492
1492
|
)
|
|
1493
1493
|
end
|
|
1494
|
-
|
|
1494
|
+
|
|
1495
1495
|
if http_response.nil?
|
|
1496
1496
|
raise error if !error.nil?
|
|
1497
1497
|
raise 'no response'
|
|
1498
1498
|
end
|
|
1499
1499
|
end
|
|
1500
|
-
|
|
1500
|
+
|
|
1501
1501
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1502
1502
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1503
1503
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1569,10 +1569,10 @@ module Clerk
|
|
|
1569
1569
|
|
|
1570
1570
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1571
1571
|
timeout ||= @sdk_configuration.timeout
|
|
1572
|
-
|
|
1572
|
+
|
|
1573
1573
|
|
|
1574
1574
|
connection = @sdk_configuration.client.dup
|
|
1575
|
-
connection.
|
|
1575
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
1576
1576
|
|
|
1577
1577
|
hook_ctx = SDKHooks::HookContext.new(
|
|
1578
1578
|
config: @sdk_configuration,
|
|
@@ -1585,7 +1585,7 @@ module Clerk
|
|
|
1585
1585
|
error = nil
|
|
1586
1586
|
http_response = nil
|
|
1587
1587
|
|
|
1588
|
-
|
|
1588
|
+
|
|
1589
1589
|
begin
|
|
1590
1590
|
http_response = connection.patch(url) do |req|
|
|
1591
1591
|
req.body = body
|
|
@@ -1622,13 +1622,13 @@ module Clerk
|
|
|
1622
1622
|
response: http_response
|
|
1623
1623
|
)
|
|
1624
1624
|
end
|
|
1625
|
-
|
|
1625
|
+
|
|
1626
1626
|
if http_response.nil?
|
|
1627
1627
|
raise error if !error.nil?
|
|
1628
1628
|
raise 'no response'
|
|
1629
1629
|
end
|
|
1630
1630
|
end
|
|
1631
|
-
|
|
1631
|
+
|
|
1632
1632
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1633
1633
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1634
1634
|
if Utils.match_content_type(content_type, 'application/json')
|