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
data/lib/clerk/invitations.rb
CHANGED
|
@@ -81,10 +81,10 @@ module Clerk
|
|
|
81
81
|
|
|
82
82
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
83
83
|
timeout ||= @sdk_configuration.timeout
|
|
84
|
-
|
|
84
|
+
|
|
85
85
|
|
|
86
86
|
connection = @sdk_configuration.client.dup
|
|
87
|
-
connection.
|
|
87
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
88
88
|
|
|
89
89
|
hook_ctx = SDKHooks::HookContext.new(
|
|
90
90
|
config: @sdk_configuration,
|
|
@@ -97,7 +97,7 @@ module Clerk
|
|
|
97
97
|
error = nil
|
|
98
98
|
http_response = nil
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
|
|
101
101
|
begin
|
|
102
102
|
http_response = connection.post(url) do |req|
|
|
103
103
|
req.body = body
|
|
@@ -134,13 +134,13 @@ module Clerk
|
|
|
134
134
|
response: http_response
|
|
135
135
|
)
|
|
136
136
|
end
|
|
137
|
-
|
|
137
|
+
|
|
138
138
|
if http_response.nil?
|
|
139
139
|
raise error if !error.nil?
|
|
140
140
|
raise 'no response'
|
|
141
141
|
end
|
|
142
142
|
end
|
|
143
|
-
|
|
143
|
+
|
|
144
144
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
145
145
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
146
146
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -219,10 +219,10 @@ module Clerk
|
|
|
219
219
|
|
|
220
220
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
221
221
|
timeout ||= @sdk_configuration.timeout
|
|
222
|
-
|
|
222
|
+
|
|
223
223
|
|
|
224
224
|
connection = @sdk_configuration.client.dup
|
|
225
|
-
connection.
|
|
225
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
226
226
|
|
|
227
227
|
hook_ctx = SDKHooks::HookContext.new(
|
|
228
228
|
config: @sdk_configuration,
|
|
@@ -235,7 +235,7 @@ module Clerk
|
|
|
235
235
|
error = nil
|
|
236
236
|
http_response = nil
|
|
237
237
|
|
|
238
|
-
|
|
238
|
+
|
|
239
239
|
begin
|
|
240
240
|
http_response = connection.get(url) do |req|
|
|
241
241
|
req.headers.merge!(headers)
|
|
@@ -272,13 +272,13 @@ module Clerk
|
|
|
272
272
|
response: http_response
|
|
273
273
|
)
|
|
274
274
|
end
|
|
275
|
-
|
|
275
|
+
|
|
276
276
|
if http_response.nil?
|
|
277
277
|
raise error if !error.nil?
|
|
278
278
|
raise 'no response'
|
|
279
279
|
end
|
|
280
280
|
end
|
|
281
|
-
|
|
281
|
+
|
|
282
282
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
283
283
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
284
284
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -356,10 +356,10 @@ module Clerk
|
|
|
356
356
|
|
|
357
357
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
358
358
|
timeout ||= @sdk_configuration.timeout
|
|
359
|
-
|
|
359
|
+
|
|
360
360
|
|
|
361
361
|
connection = @sdk_configuration.client.dup
|
|
362
|
-
connection.
|
|
362
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
363
363
|
|
|
364
364
|
hook_ctx = SDKHooks::HookContext.new(
|
|
365
365
|
config: @sdk_configuration,
|
|
@@ -372,7 +372,7 @@ module Clerk
|
|
|
372
372
|
error = nil
|
|
373
373
|
http_response = nil
|
|
374
374
|
|
|
375
|
-
|
|
375
|
+
|
|
376
376
|
begin
|
|
377
377
|
http_response = connection.post(url) do |req|
|
|
378
378
|
req.body = body
|
|
@@ -409,13 +409,13 @@ module Clerk
|
|
|
409
409
|
response: http_response
|
|
410
410
|
)
|
|
411
411
|
end
|
|
412
|
-
|
|
412
|
+
|
|
413
413
|
if http_response.nil?
|
|
414
414
|
raise error if !error.nil?
|
|
415
415
|
raise 'no response'
|
|
416
416
|
end
|
|
417
417
|
end
|
|
418
|
-
|
|
418
|
+
|
|
419
419
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
420
420
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
421
421
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -504,10 +504,10 @@ module Clerk
|
|
|
504
504
|
|
|
505
505
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
506
506
|
timeout ||= @sdk_configuration.timeout
|
|
507
|
-
|
|
507
|
+
|
|
508
508
|
|
|
509
509
|
connection = @sdk_configuration.client.dup
|
|
510
|
-
connection.
|
|
510
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
511
511
|
|
|
512
512
|
hook_ctx = SDKHooks::HookContext.new(
|
|
513
513
|
config: @sdk_configuration,
|
|
@@ -520,7 +520,7 @@ module Clerk
|
|
|
520
520
|
error = nil
|
|
521
521
|
http_response = nil
|
|
522
522
|
|
|
523
|
-
|
|
523
|
+
|
|
524
524
|
begin
|
|
525
525
|
http_response = connection.post(url) do |req|
|
|
526
526
|
req.headers.merge!(headers)
|
|
@@ -556,13 +556,13 @@ module Clerk
|
|
|
556
556
|
response: http_response
|
|
557
557
|
)
|
|
558
558
|
end
|
|
559
|
-
|
|
559
|
+
|
|
560
560
|
if http_response.nil?
|
|
561
561
|
raise error if !error.nil?
|
|
562
562
|
raise 'no response'
|
|
563
563
|
end
|
|
564
564
|
end
|
|
565
|
-
|
|
565
|
+
|
|
566
566
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
567
567
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
568
568
|
if Utils.match_content_type(content_type, 'application/json')
|
data/lib/clerk/jwks.rb
CHANGED
|
@@ -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')
|
data/lib/clerk/jwttemplates.rb
CHANGED
|
@@ -74,10 +74,10 @@ module Clerk
|
|
|
74
74
|
|
|
75
75
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
76
76
|
timeout ||= @sdk_configuration.timeout
|
|
77
|
-
|
|
77
|
+
|
|
78
78
|
|
|
79
79
|
connection = @sdk_configuration.client.dup
|
|
80
|
-
connection.
|
|
80
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
81
81
|
|
|
82
82
|
hook_ctx = SDKHooks::HookContext.new(
|
|
83
83
|
config: @sdk_configuration,
|
|
@@ -90,7 +90,7 @@ module Clerk
|
|
|
90
90
|
error = nil
|
|
91
91
|
http_response = nil
|
|
92
92
|
|
|
93
|
-
|
|
93
|
+
|
|
94
94
|
begin
|
|
95
95
|
http_response = connection.get(url) do |req|
|
|
96
96
|
req.headers.merge!(headers)
|
|
@@ -127,13 +127,13 @@ module Clerk
|
|
|
127
127
|
response: http_response
|
|
128
128
|
)
|
|
129
129
|
end
|
|
130
|
-
|
|
130
|
+
|
|
131
131
|
if http_response.nil?
|
|
132
132
|
raise error if !error.nil?
|
|
133
133
|
raise 'no response'
|
|
134
134
|
end
|
|
135
135
|
end
|
|
136
|
-
|
|
136
|
+
|
|
137
137
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
138
138
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
139
139
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -206,10 +206,10 @@ module Clerk
|
|
|
206
206
|
|
|
207
207
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
208
208
|
timeout ||= @sdk_configuration.timeout
|
|
209
|
-
|
|
209
|
+
|
|
210
210
|
|
|
211
211
|
connection = @sdk_configuration.client.dup
|
|
212
|
-
connection.
|
|
212
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
213
213
|
|
|
214
214
|
hook_ctx = SDKHooks::HookContext.new(
|
|
215
215
|
config: @sdk_configuration,
|
|
@@ -222,7 +222,7 @@ module Clerk
|
|
|
222
222
|
error = nil
|
|
223
223
|
http_response = nil
|
|
224
224
|
|
|
225
|
-
|
|
225
|
+
|
|
226
226
|
begin
|
|
227
227
|
http_response = connection.post(url) do |req|
|
|
228
228
|
req.body = body
|
|
@@ -259,13 +259,13 @@ module Clerk
|
|
|
259
259
|
response: http_response
|
|
260
260
|
)
|
|
261
261
|
end
|
|
262
|
-
|
|
262
|
+
|
|
263
263
|
if http_response.nil?
|
|
264
264
|
raise error if !error.nil?
|
|
265
265
|
raise 'no response'
|
|
266
266
|
end
|
|
267
267
|
end
|
|
268
|
-
|
|
268
|
+
|
|
269
269
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
270
270
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
271
271
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -351,10 +351,10 @@ module Clerk
|
|
|
351
351
|
|
|
352
352
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
353
353
|
timeout ||= @sdk_configuration.timeout
|
|
354
|
-
|
|
354
|
+
|
|
355
355
|
|
|
356
356
|
connection = @sdk_configuration.client.dup
|
|
357
|
-
connection.
|
|
357
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
358
358
|
|
|
359
359
|
hook_ctx = SDKHooks::HookContext.new(
|
|
360
360
|
config: @sdk_configuration,
|
|
@@ -367,7 +367,7 @@ module Clerk
|
|
|
367
367
|
error = nil
|
|
368
368
|
http_response = nil
|
|
369
369
|
|
|
370
|
-
|
|
370
|
+
|
|
371
371
|
begin
|
|
372
372
|
http_response = connection.get(url) do |req|
|
|
373
373
|
req.headers.merge!(headers)
|
|
@@ -403,13 +403,13 @@ module Clerk
|
|
|
403
403
|
response: http_response
|
|
404
404
|
)
|
|
405
405
|
end
|
|
406
|
-
|
|
406
|
+
|
|
407
407
|
if http_response.nil?
|
|
408
408
|
raise error if !error.nil?
|
|
409
409
|
raise 'no response'
|
|
410
410
|
end
|
|
411
411
|
end
|
|
412
|
-
|
|
412
|
+
|
|
413
413
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
414
414
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
415
415
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -506,10 +506,10 @@ module Clerk
|
|
|
506
506
|
|
|
507
507
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
508
508
|
timeout ||= @sdk_configuration.timeout
|
|
509
|
-
|
|
509
|
+
|
|
510
510
|
|
|
511
511
|
connection = @sdk_configuration.client.dup
|
|
512
|
-
connection.
|
|
512
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
513
513
|
|
|
514
514
|
hook_ctx = SDKHooks::HookContext.new(
|
|
515
515
|
config: @sdk_configuration,
|
|
@@ -522,7 +522,7 @@ module Clerk
|
|
|
522
522
|
error = nil
|
|
523
523
|
http_response = nil
|
|
524
524
|
|
|
525
|
-
|
|
525
|
+
|
|
526
526
|
begin
|
|
527
527
|
http_response = connection.patch(url) do |req|
|
|
528
528
|
req.body = body
|
|
@@ -559,13 +559,13 @@ module Clerk
|
|
|
559
559
|
response: http_response
|
|
560
560
|
)
|
|
561
561
|
end
|
|
562
|
-
|
|
562
|
+
|
|
563
563
|
if http_response.nil?
|
|
564
564
|
raise error if !error.nil?
|
|
565
565
|
raise 'no response'
|
|
566
566
|
end
|
|
567
567
|
end
|
|
568
|
-
|
|
568
|
+
|
|
569
569
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
570
570
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
571
571
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -650,10 +650,10 @@ module Clerk
|
|
|
650
650
|
|
|
651
651
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
652
652
|
timeout ||= @sdk_configuration.timeout
|
|
653
|
-
|
|
653
|
+
|
|
654
654
|
|
|
655
655
|
connection = @sdk_configuration.client.dup
|
|
656
|
-
connection.
|
|
656
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
657
657
|
|
|
658
658
|
hook_ctx = SDKHooks::HookContext.new(
|
|
659
659
|
config: @sdk_configuration,
|
|
@@ -666,7 +666,7 @@ module Clerk
|
|
|
666
666
|
error = nil
|
|
667
667
|
http_response = nil
|
|
668
668
|
|
|
669
|
-
|
|
669
|
+
|
|
670
670
|
begin
|
|
671
671
|
http_response = connection.delete(url) do |req|
|
|
672
672
|
req.headers.merge!(headers)
|
|
@@ -702,13 +702,13 @@ module Clerk
|
|
|
702
702
|
response: http_response
|
|
703
703
|
)
|
|
704
704
|
end
|
|
705
|
-
|
|
705
|
+
|
|
706
706
|
if http_response.nil?
|
|
707
707
|
raise error if !error.nil?
|
|
708
708
|
raise 'no response'
|
|
709
709
|
end
|
|
710
710
|
end
|
|
711
|
-
|
|
711
|
+
|
|
712
712
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
713
713
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
714
714
|
if Utils.match_content_type(content_type, 'application/json')
|
data/lib/clerk/m2m.rb
CHANGED
|
@@ -80,10 +80,10 @@ module Clerk
|
|
|
80
80
|
|
|
81
81
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
82
82
|
timeout ||= @sdk_configuration.timeout
|
|
83
|
-
|
|
83
|
+
|
|
84
84
|
|
|
85
85
|
connection = @sdk_configuration.client.dup
|
|
86
|
-
connection.
|
|
86
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
87
87
|
|
|
88
88
|
hook_ctx = SDKHooks::HookContext.new(
|
|
89
89
|
config: @sdk_configuration,
|
|
@@ -96,7 +96,7 @@ module Clerk
|
|
|
96
96
|
error = nil
|
|
97
97
|
http_response = nil
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
|
|
100
100
|
begin
|
|
101
101
|
http_response = connection.post(url) do |req|
|
|
102
102
|
req.body = body
|
|
@@ -133,13 +133,13 @@ module Clerk
|
|
|
133
133
|
response: http_response
|
|
134
134
|
)
|
|
135
135
|
end
|
|
136
|
-
|
|
136
|
+
|
|
137
137
|
if http_response.nil?
|
|
138
138
|
raise error if !error.nil?
|
|
139
139
|
raise 'no response'
|
|
140
140
|
end
|
|
141
141
|
end
|
|
142
|
-
|
|
142
|
+
|
|
143
143
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
144
144
|
if Utils.match_status_code(http_response.status, ['201'])
|
|
145
145
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -240,10 +240,10 @@ module Clerk
|
|
|
240
240
|
|
|
241
241
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
242
242
|
timeout ||= @sdk_configuration.timeout
|
|
243
|
-
|
|
243
|
+
|
|
244
244
|
|
|
245
245
|
connection = @sdk_configuration.client.dup
|
|
246
|
-
connection.
|
|
246
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
247
247
|
|
|
248
248
|
hook_ctx = SDKHooks::HookContext.new(
|
|
249
249
|
config: @sdk_configuration,
|
|
@@ -256,7 +256,7 @@ module Clerk
|
|
|
256
256
|
error = nil
|
|
257
257
|
http_response = nil
|
|
258
258
|
|
|
259
|
-
|
|
259
|
+
|
|
260
260
|
begin
|
|
261
261
|
http_response = connection.get(url) do |req|
|
|
262
262
|
req.headers.merge!(headers)
|
|
@@ -293,13 +293,13 @@ module Clerk
|
|
|
293
293
|
response: http_response
|
|
294
294
|
)
|
|
295
295
|
end
|
|
296
|
-
|
|
296
|
+
|
|
297
297
|
if http_response.nil?
|
|
298
298
|
raise error if !error.nil?
|
|
299
299
|
raise 'no response'
|
|
300
300
|
end
|
|
301
301
|
end
|
|
302
|
-
|
|
302
|
+
|
|
303
303
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
304
304
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
305
305
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -434,10 +434,10 @@ module Clerk
|
|
|
434
434
|
|
|
435
435
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
436
436
|
timeout ||= @sdk_configuration.timeout
|
|
437
|
-
|
|
437
|
+
|
|
438
438
|
|
|
439
439
|
connection = @sdk_configuration.client.dup
|
|
440
|
-
connection.
|
|
440
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
441
441
|
|
|
442
442
|
hook_ctx = SDKHooks::HookContext.new(
|
|
443
443
|
config: @sdk_configuration,
|
|
@@ -450,7 +450,7 @@ module Clerk
|
|
|
450
450
|
error = nil
|
|
451
451
|
http_response = nil
|
|
452
452
|
|
|
453
|
-
|
|
453
|
+
|
|
454
454
|
begin
|
|
455
455
|
http_response = connection.post(url) do |req|
|
|
456
456
|
req.body = body
|
|
@@ -487,13 +487,13 @@ module Clerk
|
|
|
487
487
|
response: http_response
|
|
488
488
|
)
|
|
489
489
|
end
|
|
490
|
-
|
|
490
|
+
|
|
491
491
|
if http_response.nil?
|
|
492
492
|
raise error if !error.nil?
|
|
493
493
|
raise 'no response'
|
|
494
494
|
end
|
|
495
495
|
end
|
|
496
|
-
|
|
496
|
+
|
|
497
497
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
498
498
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
499
499
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -602,10 +602,10 @@ module Clerk
|
|
|
602
602
|
|
|
603
603
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
604
604
|
timeout ||= @sdk_configuration.timeout
|
|
605
|
-
|
|
605
|
+
|
|
606
606
|
|
|
607
607
|
connection = @sdk_configuration.client.dup
|
|
608
|
-
connection.
|
|
608
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
609
609
|
|
|
610
610
|
hook_ctx = SDKHooks::HookContext.new(
|
|
611
611
|
config: @sdk_configuration,
|
|
@@ -618,7 +618,7 @@ module Clerk
|
|
|
618
618
|
error = nil
|
|
619
619
|
http_response = nil
|
|
620
620
|
|
|
621
|
-
|
|
621
|
+
|
|
622
622
|
begin
|
|
623
623
|
http_response = connection.post(url) do |req|
|
|
624
624
|
req.body = body
|
|
@@ -655,13 +655,13 @@ module Clerk
|
|
|
655
655
|
response: http_response
|
|
656
656
|
)
|
|
657
657
|
end
|
|
658
|
-
|
|
658
|
+
|
|
659
659
|
if http_response.nil?
|
|
660
660
|
raise error if !error.nil?
|
|
661
661
|
raise 'no response'
|
|
662
662
|
end
|
|
663
663
|
end
|
|
664
|
-
|
|
664
|
+
|
|
665
665
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
666
666
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
667
667
|
if Utils.match_content_type(content_type, 'application/json')
|