clerk-sdk-ruby 6.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/replaceorganizationmetadata_request.rb +36 -0
- data/lib/clerk/models/operations/replaceorganizationmetadata_request.rbi +15 -0
- data/lib/clerk/models/operations/replaceorganizationmetadata_requestbody.rb +38 -0
- data/lib/clerk/models/operations/replaceorganizationmetadata_requestbody.rbi +15 -0
- data/lib/clerk/models/operations/replaceorganizationmetadata_response.rb +44 -0
- data/lib/clerk/models/operations/replaceorganizationmetadata_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/updateorganization_requestbody.rb +1 -9
- data/lib/clerk/models/operations/updateorganization_requestbody.rbi +0 -4
- 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/updateuser_requestbody.rb +3 -22
- data/lib/clerk/models/operations/updateuser_requestbody.rbi +0 -6
- data/lib/clerk/models/operations.rb +48 -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 +221 -56
- 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 +4 -4
- 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 +695 -204
- 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 +201 -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
|
@@ -75,10 +75,10 @@ module Clerk
|
|
|
75
75
|
|
|
76
76
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
77
77
|
timeout ||= @sdk_configuration.timeout
|
|
78
|
-
|
|
78
|
+
|
|
79
79
|
|
|
80
80
|
connection = @sdk_configuration.client.dup
|
|
81
|
-
connection.
|
|
81
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
82
82
|
|
|
83
83
|
hook_ctx = SDKHooks::HookContext.new(
|
|
84
84
|
config: @sdk_configuration,
|
|
@@ -91,7 +91,7 @@ module Clerk
|
|
|
91
91
|
error = nil
|
|
92
92
|
http_response = nil
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
|
|
95
95
|
begin
|
|
96
96
|
http_response = connection.get(url) do |req|
|
|
97
97
|
req.headers.merge!(headers)
|
|
@@ -128,13 +128,13 @@ module Clerk
|
|
|
128
128
|
response: http_response
|
|
129
129
|
)
|
|
130
130
|
end
|
|
131
|
-
|
|
131
|
+
|
|
132
132
|
if http_response.nil?
|
|
133
133
|
raise error if !error.nil?
|
|
134
134
|
raise 'no response'
|
|
135
135
|
end
|
|
136
136
|
end
|
|
137
|
-
|
|
137
|
+
|
|
138
138
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
139
139
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
140
140
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -261,10 +261,10 @@ module Clerk
|
|
|
261
261
|
|
|
262
262
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
263
263
|
timeout ||= @sdk_configuration.timeout
|
|
264
|
-
|
|
264
|
+
|
|
265
265
|
|
|
266
266
|
connection = @sdk_configuration.client.dup
|
|
267
|
-
connection.
|
|
267
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
268
268
|
|
|
269
269
|
hook_ctx = SDKHooks::HookContext.new(
|
|
270
270
|
config: @sdk_configuration,
|
|
@@ -277,7 +277,7 @@ module Clerk
|
|
|
277
277
|
error = nil
|
|
278
278
|
http_response = nil
|
|
279
279
|
|
|
280
|
-
|
|
280
|
+
|
|
281
281
|
begin
|
|
282
282
|
http_response = connection.post(url) do |req|
|
|
283
283
|
req.body = body
|
|
@@ -314,13 +314,13 @@ module Clerk
|
|
|
314
314
|
response: http_response
|
|
315
315
|
)
|
|
316
316
|
end
|
|
317
|
-
|
|
317
|
+
|
|
318
318
|
if http_response.nil?
|
|
319
319
|
raise error if !error.nil?
|
|
320
320
|
raise 'no response'
|
|
321
321
|
end
|
|
322
322
|
end
|
|
323
|
-
|
|
323
|
+
|
|
324
324
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
325
325
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
326
326
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -409,10 +409,10 @@ module Clerk
|
|
|
409
409
|
|
|
410
410
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
411
411
|
timeout ||= @sdk_configuration.timeout
|
|
412
|
-
|
|
412
|
+
|
|
413
413
|
|
|
414
414
|
connection = @sdk_configuration.client.dup
|
|
415
|
-
connection.
|
|
415
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
416
416
|
|
|
417
417
|
hook_ctx = SDKHooks::HookContext.new(
|
|
418
418
|
config: @sdk_configuration,
|
|
@@ -425,7 +425,7 @@ module Clerk
|
|
|
425
425
|
error = nil
|
|
426
426
|
http_response = nil
|
|
427
427
|
|
|
428
|
-
|
|
428
|
+
|
|
429
429
|
begin
|
|
430
430
|
http_response = connection.get(url) do |req|
|
|
431
431
|
req.headers.merge!(headers)
|
|
@@ -462,13 +462,13 @@ module Clerk
|
|
|
462
462
|
response: http_response
|
|
463
463
|
)
|
|
464
464
|
end
|
|
465
|
-
|
|
465
|
+
|
|
466
466
|
if http_response.nil?
|
|
467
467
|
raise error if !error.nil?
|
|
468
468
|
raise 'no response'
|
|
469
469
|
end
|
|
470
470
|
end
|
|
471
|
-
|
|
471
|
+
|
|
472
472
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
473
473
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
474
474
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -581,10 +581,10 @@ module Clerk
|
|
|
581
581
|
|
|
582
582
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
583
583
|
timeout ||= @sdk_configuration.timeout
|
|
584
|
-
|
|
584
|
+
|
|
585
585
|
|
|
586
586
|
connection = @sdk_configuration.client.dup
|
|
587
|
-
connection.
|
|
587
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
588
588
|
|
|
589
589
|
hook_ctx = SDKHooks::HookContext.new(
|
|
590
590
|
config: @sdk_configuration,
|
|
@@ -597,7 +597,7 @@ module Clerk
|
|
|
597
597
|
error = nil
|
|
598
598
|
http_response = nil
|
|
599
599
|
|
|
600
|
-
|
|
600
|
+
|
|
601
601
|
begin
|
|
602
602
|
http_response = connection.post(url) do |req|
|
|
603
603
|
req.body = body
|
|
@@ -634,13 +634,13 @@ module Clerk
|
|
|
634
634
|
response: http_response
|
|
635
635
|
)
|
|
636
636
|
end
|
|
637
|
-
|
|
637
|
+
|
|
638
638
|
if http_response.nil?
|
|
639
639
|
raise error if !error.nil?
|
|
640
640
|
raise 'no response'
|
|
641
641
|
end
|
|
642
642
|
end
|
|
643
|
-
|
|
643
|
+
|
|
644
644
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
645
645
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
646
646
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -736,10 +736,10 @@ module Clerk
|
|
|
736
736
|
|
|
737
737
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
738
738
|
timeout ||= @sdk_configuration.timeout
|
|
739
|
-
|
|
739
|
+
|
|
740
740
|
|
|
741
741
|
connection = @sdk_configuration.client.dup
|
|
742
|
-
connection.
|
|
742
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
743
743
|
|
|
744
744
|
hook_ctx = SDKHooks::HookContext.new(
|
|
745
745
|
config: @sdk_configuration,
|
|
@@ -752,7 +752,7 @@ module Clerk
|
|
|
752
752
|
error = nil
|
|
753
753
|
http_response = nil
|
|
754
754
|
|
|
755
|
-
|
|
755
|
+
|
|
756
756
|
begin
|
|
757
757
|
http_response = connection.get(url) do |req|
|
|
758
758
|
req.headers.merge!(headers)
|
|
@@ -789,13 +789,13 @@ module Clerk
|
|
|
789
789
|
response: http_response
|
|
790
790
|
)
|
|
791
791
|
end
|
|
792
|
-
|
|
792
|
+
|
|
793
793
|
if http_response.nil?
|
|
794
794
|
raise error if !error.nil?
|
|
795
795
|
raise 'no response'
|
|
796
796
|
end
|
|
797
797
|
end
|
|
798
|
-
|
|
798
|
+
|
|
799
799
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
800
800
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
801
801
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -882,10 +882,10 @@ module Clerk
|
|
|
882
882
|
|
|
883
883
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
884
884
|
timeout ||= @sdk_configuration.timeout
|
|
885
|
-
|
|
885
|
+
|
|
886
886
|
|
|
887
887
|
connection = @sdk_configuration.client.dup
|
|
888
|
-
connection.
|
|
888
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
889
889
|
|
|
890
890
|
hook_ctx = SDKHooks::HookContext.new(
|
|
891
891
|
config: @sdk_configuration,
|
|
@@ -898,7 +898,7 @@ module Clerk
|
|
|
898
898
|
error = nil
|
|
899
899
|
http_response = nil
|
|
900
900
|
|
|
901
|
-
|
|
901
|
+
|
|
902
902
|
begin
|
|
903
903
|
http_response = connection.get(url) do |req|
|
|
904
904
|
req.headers.merge!(headers)
|
|
@@ -934,13 +934,13 @@ module Clerk
|
|
|
934
934
|
response: http_response
|
|
935
935
|
)
|
|
936
936
|
end
|
|
937
|
-
|
|
937
|
+
|
|
938
938
|
if http_response.nil?
|
|
939
939
|
raise error if !error.nil?
|
|
940
940
|
raise 'no response'
|
|
941
941
|
end
|
|
942
942
|
end
|
|
943
|
-
|
|
943
|
+
|
|
944
944
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
945
945
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
946
946
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1042,10 +1042,10 @@ module Clerk
|
|
|
1042
1042
|
|
|
1043
1043
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1044
1044
|
timeout ||= @sdk_configuration.timeout
|
|
1045
|
-
|
|
1045
|
+
|
|
1046
1046
|
|
|
1047
1047
|
connection = @sdk_configuration.client.dup
|
|
1048
|
-
connection.
|
|
1048
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
1049
1049
|
|
|
1050
1050
|
hook_ctx = SDKHooks::HookContext.new(
|
|
1051
1051
|
config: @sdk_configuration,
|
|
@@ -1058,7 +1058,7 @@ module Clerk
|
|
|
1058
1058
|
error = nil
|
|
1059
1059
|
http_response = nil
|
|
1060
1060
|
|
|
1061
|
-
|
|
1061
|
+
|
|
1062
1062
|
begin
|
|
1063
1063
|
http_response = connection.post(url) do |req|
|
|
1064
1064
|
req.body = body
|
|
@@ -1095,13 +1095,13 @@ module Clerk
|
|
|
1095
1095
|
response: http_response
|
|
1096
1096
|
)
|
|
1097
1097
|
end
|
|
1098
|
-
|
|
1098
|
+
|
|
1099
1099
|
if http_response.nil?
|
|
1100
1100
|
raise error if !error.nil?
|
|
1101
1101
|
raise 'no response'
|
|
1102
1102
|
end
|
|
1103
1103
|
end
|
|
1104
|
-
|
|
1104
|
+
|
|
1105
1105
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1106
1106
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1107
1107
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -94,10 +94,10 @@ module Clerk
|
|
|
94
94
|
|
|
95
95
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
96
96
|
timeout ||= @sdk_configuration.timeout
|
|
97
|
-
|
|
97
|
+
|
|
98
98
|
|
|
99
99
|
connection = @sdk_configuration.client.dup
|
|
100
|
-
connection.
|
|
100
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
101
101
|
|
|
102
102
|
hook_ctx = SDKHooks::HookContext.new(
|
|
103
103
|
config: @sdk_configuration,
|
|
@@ -110,7 +110,7 @@ module Clerk
|
|
|
110
110
|
error = nil
|
|
111
111
|
http_response = nil
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
|
|
114
114
|
begin
|
|
115
115
|
http_response = connection.post(url) do |req|
|
|
116
116
|
req.body = body
|
|
@@ -147,13 +147,13 @@ module Clerk
|
|
|
147
147
|
response: http_response
|
|
148
148
|
)
|
|
149
149
|
end
|
|
150
|
-
|
|
150
|
+
|
|
151
151
|
if http_response.nil?
|
|
152
152
|
raise error if !error.nil?
|
|
153
153
|
raise 'no response'
|
|
154
154
|
end
|
|
155
155
|
end
|
|
156
|
-
|
|
156
|
+
|
|
157
157
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
158
158
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
159
159
|
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')
|
|
@@ -395,10 +395,10 @@ module Clerk
|
|
|
395
395
|
|
|
396
396
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
397
397
|
timeout ||= @sdk_configuration.timeout
|
|
398
|
-
|
|
398
|
+
|
|
399
399
|
|
|
400
400
|
connection = @sdk_configuration.client.dup
|
|
401
|
-
connection.
|
|
401
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
402
402
|
|
|
403
403
|
hook_ctx = SDKHooks::HookContext.new(
|
|
404
404
|
config: @sdk_configuration,
|
|
@@ -411,7 +411,7 @@ module Clerk
|
|
|
411
411
|
error = nil
|
|
412
412
|
http_response = nil
|
|
413
413
|
|
|
414
|
-
|
|
414
|
+
|
|
415
415
|
begin
|
|
416
416
|
http_response = connection.patch(url) do |req|
|
|
417
417
|
req.body = body
|
|
@@ -448,13 +448,13 @@ module Clerk
|
|
|
448
448
|
response: http_response
|
|
449
449
|
)
|
|
450
450
|
end
|
|
451
|
-
|
|
451
|
+
|
|
452
452
|
if http_response.nil?
|
|
453
453
|
raise error if !error.nil?
|
|
454
454
|
raise 'no response'
|
|
455
455
|
end
|
|
456
456
|
end
|
|
457
|
-
|
|
457
|
+
|
|
458
458
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
459
459
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
460
460
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -541,10 +541,10 @@ module Clerk
|
|
|
541
541
|
|
|
542
542
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
543
543
|
timeout ||= @sdk_configuration.timeout
|
|
544
|
-
|
|
544
|
+
|
|
545
545
|
|
|
546
546
|
connection = @sdk_configuration.client.dup
|
|
547
|
-
connection.
|
|
547
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
548
548
|
|
|
549
549
|
hook_ctx = SDKHooks::HookContext.new(
|
|
550
550
|
config: @sdk_configuration,
|
|
@@ -557,7 +557,7 @@ module Clerk
|
|
|
557
557
|
error = nil
|
|
558
558
|
http_response = nil
|
|
559
559
|
|
|
560
|
-
|
|
560
|
+
|
|
561
561
|
begin
|
|
562
562
|
http_response = connection.delete(url) do |req|
|
|
563
563
|
req.headers.merge!(headers)
|
|
@@ -593,13 +593,13 @@ module Clerk
|
|
|
593
593
|
response: http_response
|
|
594
594
|
)
|
|
595
595
|
end
|
|
596
|
-
|
|
596
|
+
|
|
597
597
|
if http_response.nil?
|
|
598
598
|
raise error if !error.nil?
|
|
599
599
|
raise 'no response'
|
|
600
600
|
end
|
|
601
601
|
end
|
|
602
|
-
|
|
602
|
+
|
|
603
603
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
604
604
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
605
605
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -699,10 +699,10 @@ module Clerk
|
|
|
699
699
|
|
|
700
700
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
701
701
|
timeout ||= @sdk_configuration.timeout
|
|
702
|
-
|
|
702
|
+
|
|
703
703
|
|
|
704
704
|
connection = @sdk_configuration.client.dup
|
|
705
|
-
connection.
|
|
705
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
706
706
|
|
|
707
707
|
hook_ctx = SDKHooks::HookContext.new(
|
|
708
708
|
config: @sdk_configuration,
|
|
@@ -715,7 +715,7 @@ module Clerk
|
|
|
715
715
|
error = nil
|
|
716
716
|
http_response = nil
|
|
717
717
|
|
|
718
|
-
|
|
718
|
+
|
|
719
719
|
begin
|
|
720
720
|
http_response = connection.patch(url) do |req|
|
|
721
721
|
req.body = body
|
|
@@ -752,13 +752,13 @@ module Clerk
|
|
|
752
752
|
response: http_response
|
|
753
753
|
)
|
|
754
754
|
end
|
|
755
|
-
|
|
755
|
+
|
|
756
756
|
if http_response.nil?
|
|
757
757
|
raise error if !error.nil?
|
|
758
758
|
raise 'no response'
|
|
759
759
|
end
|
|
760
760
|
end
|
|
761
|
-
|
|
761
|
+
|
|
762
762
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
763
763
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
764
764
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -76,10 +76,10 @@ module Clerk
|
|
|
76
76
|
|
|
77
77
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
78
78
|
timeout ||= @sdk_configuration.timeout
|
|
79
|
-
|
|
79
|
+
|
|
80
80
|
|
|
81
81
|
connection = @sdk_configuration.client.dup
|
|
82
|
-
connection.
|
|
82
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
83
83
|
|
|
84
84
|
hook_ctx = SDKHooks::HookContext.new(
|
|
85
85
|
config: @sdk_configuration,
|
|
@@ -92,7 +92,7 @@ module Clerk
|
|
|
92
92
|
error = nil
|
|
93
93
|
http_response = nil
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
|
|
96
96
|
begin
|
|
97
97
|
http_response = connection.get(url) do |req|
|
|
98
98
|
req.headers.merge!(headers)
|
|
@@ -129,13 +129,13 @@ module Clerk
|
|
|
129
129
|
response: http_response
|
|
130
130
|
)
|
|
131
131
|
end
|
|
132
|
-
|
|
132
|
+
|
|
133
133
|
if http_response.nil?
|
|
134
134
|
raise error if !error.nil?
|
|
135
135
|
raise 'no response'
|
|
136
136
|
end
|
|
137
137
|
end
|
|
138
|
-
|
|
138
|
+
|
|
139
139
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
140
140
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
141
141
|
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, ['200'])
|
|
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')
|
|
@@ -672,10 +672,10 @@ module Clerk
|
|
|
672
672
|
|
|
673
673
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
674
674
|
timeout ||= @sdk_configuration.timeout
|
|
675
|
-
|
|
675
|
+
|
|
676
676
|
|
|
677
677
|
connection = @sdk_configuration.client.dup
|
|
678
|
-
connection.
|
|
678
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
679
679
|
|
|
680
680
|
hook_ctx = SDKHooks::HookContext.new(
|
|
681
681
|
config: @sdk_configuration,
|
|
@@ -688,7 +688,7 @@ module Clerk
|
|
|
688
688
|
error = nil
|
|
689
689
|
http_response = nil
|
|
690
690
|
|
|
691
|
-
|
|
691
|
+
|
|
692
692
|
begin
|
|
693
693
|
http_response = connection.delete(url) do |req|
|
|
694
694
|
req.headers.merge!(headers)
|
|
@@ -724,13 +724,13 @@ module Clerk
|
|
|
724
724
|
response: http_response
|
|
725
725
|
)
|
|
726
726
|
end
|
|
727
|
-
|
|
727
|
+
|
|
728
728
|
if http_response.nil?
|
|
729
729
|
raise error if !error.nil?
|
|
730
730
|
raise 'no response'
|
|
731
731
|
end
|
|
732
732
|
end
|
|
733
|
-
|
|
733
|
+
|
|
734
734
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
735
735
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
736
736
|
if Utils.match_content_type(content_type, 'application/json')
|