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/organizations.rb
CHANGED
|
@@ -73,10 +73,10 @@ module Clerk
|
|
|
73
73
|
|
|
74
74
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
75
75
|
timeout ||= @sdk_configuration.timeout
|
|
76
|
-
|
|
76
|
+
|
|
77
77
|
|
|
78
78
|
connection = @sdk_configuration.client.dup
|
|
79
|
-
connection.
|
|
79
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
80
80
|
|
|
81
81
|
hook_ctx = SDKHooks::HookContext.new(
|
|
82
82
|
config: @sdk_configuration,
|
|
@@ -89,7 +89,7 @@ module Clerk
|
|
|
89
89
|
error = nil
|
|
90
90
|
http_response = nil
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
|
|
93
93
|
begin
|
|
94
94
|
http_response = connection.get(url) do |req|
|
|
95
95
|
req.headers.merge!(headers)
|
|
@@ -126,13 +126,13 @@ module Clerk
|
|
|
126
126
|
response: http_response
|
|
127
127
|
)
|
|
128
128
|
end
|
|
129
|
-
|
|
129
|
+
|
|
130
130
|
if http_response.nil?
|
|
131
131
|
raise error if !error.nil?
|
|
132
132
|
raise 'no response'
|
|
133
133
|
end
|
|
134
134
|
end
|
|
135
|
-
|
|
135
|
+
|
|
136
136
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
137
137
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
138
138
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -229,10 +229,10 @@ module Clerk
|
|
|
229
229
|
|
|
230
230
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
231
231
|
timeout ||= @sdk_configuration.timeout
|
|
232
|
-
|
|
232
|
+
|
|
233
233
|
|
|
234
234
|
connection = @sdk_configuration.client.dup
|
|
235
|
-
connection.
|
|
235
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
236
236
|
|
|
237
237
|
hook_ctx = SDKHooks::HookContext.new(
|
|
238
238
|
config: @sdk_configuration,
|
|
@@ -245,7 +245,7 @@ module Clerk
|
|
|
245
245
|
error = nil
|
|
246
246
|
http_response = nil
|
|
247
247
|
|
|
248
|
-
|
|
248
|
+
|
|
249
249
|
begin
|
|
250
250
|
http_response = connection.post(url) do |req|
|
|
251
251
|
req.body = body
|
|
@@ -282,13 +282,13 @@ module Clerk
|
|
|
282
282
|
response: http_response
|
|
283
283
|
)
|
|
284
284
|
end
|
|
285
|
-
|
|
285
|
+
|
|
286
286
|
if http_response.nil?
|
|
287
287
|
raise error if !error.nil?
|
|
288
288
|
raise 'no response'
|
|
289
289
|
end
|
|
290
290
|
end
|
|
291
|
-
|
|
291
|
+
|
|
292
292
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
293
293
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
294
294
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -377,10 +377,10 @@ module Clerk
|
|
|
377
377
|
|
|
378
378
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
379
379
|
timeout ||= @sdk_configuration.timeout
|
|
380
|
-
|
|
380
|
+
|
|
381
381
|
|
|
382
382
|
connection = @sdk_configuration.client.dup
|
|
383
|
-
connection.
|
|
383
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
384
384
|
|
|
385
385
|
hook_ctx = SDKHooks::HookContext.new(
|
|
386
386
|
config: @sdk_configuration,
|
|
@@ -393,7 +393,7 @@ module Clerk
|
|
|
393
393
|
error = nil
|
|
394
394
|
http_response = nil
|
|
395
395
|
|
|
396
|
-
|
|
396
|
+
|
|
397
397
|
begin
|
|
398
398
|
http_response = connection.get(url) do |req|
|
|
399
399
|
req.headers.merge!(headers)
|
|
@@ -430,13 +430,13 @@ module Clerk
|
|
|
430
430
|
response: http_response
|
|
431
431
|
)
|
|
432
432
|
end
|
|
433
|
-
|
|
433
|
+
|
|
434
434
|
if http_response.nil?
|
|
435
435
|
raise error if !error.nil?
|
|
436
436
|
raise 'no response'
|
|
437
437
|
end
|
|
438
438
|
end
|
|
439
|
-
|
|
439
|
+
|
|
440
440
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
441
441
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
442
442
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -488,7 +488,10 @@ module Clerk
|
|
|
488
488
|
|
|
489
489
|
def update(body:, organization_id:, retries: nil, timeout_ms: nil, http_headers: nil)
|
|
490
490
|
# update - Update an organization
|
|
491
|
-
# Updates an existing organization
|
|
491
|
+
# Updates an existing organization.
|
|
492
|
+
#
|
|
493
|
+
# As of API version 2026-05-12, this endpoint no longer accepts `public_metadata` or `private_metadata`.
|
|
494
|
+
# Use `PATCH /v1/organizations/{organization_id}/metadata` to merge updates into existing metadata, or `PUT /v1/organizations/{organization_id}/metadata` to replace a metadata field entirely.
|
|
492
495
|
request = Models::Operations::UpdateOrganizationRequest.new(
|
|
493
496
|
organization_id: organization_id,
|
|
494
497
|
body: body
|
|
@@ -534,10 +537,10 @@ module Clerk
|
|
|
534
537
|
|
|
535
538
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
536
539
|
timeout ||= @sdk_configuration.timeout
|
|
537
|
-
|
|
540
|
+
|
|
538
541
|
|
|
539
542
|
connection = @sdk_configuration.client.dup
|
|
540
|
-
connection.
|
|
543
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
541
544
|
|
|
542
545
|
hook_ctx = SDKHooks::HookContext.new(
|
|
543
546
|
config: @sdk_configuration,
|
|
@@ -550,7 +553,7 @@ module Clerk
|
|
|
550
553
|
error = nil
|
|
551
554
|
http_response = nil
|
|
552
555
|
|
|
553
|
-
|
|
556
|
+
|
|
554
557
|
begin
|
|
555
558
|
http_response = connection.patch(url) do |req|
|
|
556
559
|
req.body = body
|
|
@@ -587,13 +590,13 @@ module Clerk
|
|
|
587
590
|
response: http_response
|
|
588
591
|
)
|
|
589
592
|
end
|
|
590
|
-
|
|
593
|
+
|
|
591
594
|
if http_response.nil?
|
|
592
595
|
raise error if !error.nil?
|
|
593
596
|
raise 'no response'
|
|
594
597
|
end
|
|
595
598
|
end
|
|
596
|
-
|
|
599
|
+
|
|
597
600
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
598
601
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
599
602
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -684,10 +687,10 @@ module Clerk
|
|
|
684
687
|
|
|
685
688
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
686
689
|
timeout ||= @sdk_configuration.timeout
|
|
687
|
-
|
|
690
|
+
|
|
688
691
|
|
|
689
692
|
connection = @sdk_configuration.client.dup
|
|
690
|
-
connection.
|
|
693
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
691
694
|
|
|
692
695
|
hook_ctx = SDKHooks::HookContext.new(
|
|
693
696
|
config: @sdk_configuration,
|
|
@@ -700,7 +703,7 @@ module Clerk
|
|
|
700
703
|
error = nil
|
|
701
704
|
http_response = nil
|
|
702
705
|
|
|
703
|
-
|
|
706
|
+
|
|
704
707
|
begin
|
|
705
708
|
http_response = connection.delete(url) do |req|
|
|
706
709
|
req.headers.merge!(headers)
|
|
@@ -736,13 +739,13 @@ module Clerk
|
|
|
736
739
|
response: http_response
|
|
737
740
|
)
|
|
738
741
|
end
|
|
739
|
-
|
|
742
|
+
|
|
740
743
|
if http_response.nil?
|
|
741
744
|
raise error if !error.nil?
|
|
742
745
|
raise 'no response'
|
|
743
746
|
end
|
|
744
747
|
end
|
|
745
|
-
|
|
748
|
+
|
|
746
749
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
747
750
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
748
751
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -843,10 +846,10 @@ module Clerk
|
|
|
843
846
|
|
|
844
847
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
845
848
|
timeout ||= @sdk_configuration.timeout
|
|
846
|
-
|
|
849
|
+
|
|
847
850
|
|
|
848
851
|
connection = @sdk_configuration.client.dup
|
|
849
|
-
connection.
|
|
852
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
850
853
|
|
|
851
854
|
hook_ctx = SDKHooks::HookContext.new(
|
|
852
855
|
config: @sdk_configuration,
|
|
@@ -859,7 +862,7 @@ module Clerk
|
|
|
859
862
|
error = nil
|
|
860
863
|
http_response = nil
|
|
861
864
|
|
|
862
|
-
|
|
865
|
+
|
|
863
866
|
begin
|
|
864
867
|
http_response = connection.patch(url) do |req|
|
|
865
868
|
req.body = body
|
|
@@ -896,13 +899,13 @@ module Clerk
|
|
|
896
899
|
response: http_response
|
|
897
900
|
)
|
|
898
901
|
end
|
|
899
|
-
|
|
902
|
+
|
|
900
903
|
if http_response.nil?
|
|
901
904
|
raise error if !error.nil?
|
|
902
905
|
raise 'no response'
|
|
903
906
|
end
|
|
904
907
|
end
|
|
905
|
-
|
|
908
|
+
|
|
906
909
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
907
910
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
908
911
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -952,6 +955,168 @@ module Clerk
|
|
|
952
955
|
|
|
953
956
|
|
|
954
957
|
|
|
958
|
+
def replace_metadata(body:, organization_id:, retries: nil, timeout_ms: nil, http_headers: nil)
|
|
959
|
+
# replace_metadata - Replace metadata for an organization
|
|
960
|
+
# Replace an organization's metadata attributes with the provided values.
|
|
961
|
+
# Unlike `PATCH /v1/organizations/{organization_id}/metadata` (merge semantics), this
|
|
962
|
+
# endpoint replaces the supplied metadata fields entirely — the prior contents of each
|
|
963
|
+
# supplied field are discarded. Fields omitted from the request body are left unchanged.
|
|
964
|
+
# Prefer the `PATCH` endpoint for partial updates. Use `PUT` only when you explicitly
|
|
965
|
+
# intend to overwrite a metadata field wholesale.
|
|
966
|
+
request = Models::Operations::ReplaceOrganizationMetadataRequest.new(
|
|
967
|
+
organization_id: organization_id,
|
|
968
|
+
body: body
|
|
969
|
+
)
|
|
970
|
+
url, params = @sdk_configuration.get_server_details
|
|
971
|
+
base_url = Utils.template_url(url, params)
|
|
972
|
+
url = Utils.generate_url(
|
|
973
|
+
Models::Operations::ReplaceOrganizationMetadataRequest,
|
|
974
|
+
base_url,
|
|
975
|
+
'/organizations/{organization_id}/metadata',
|
|
976
|
+
request
|
|
977
|
+
)
|
|
978
|
+
headers = {}
|
|
979
|
+
|
|
980
|
+
req_content_type, data, form = Utils.serialize_request_body(request, false, false, :body, :json)
|
|
981
|
+
headers['content-type'] = req_content_type
|
|
982
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
|
983
|
+
|
|
984
|
+
if form && !form.empty?
|
|
985
|
+
body = Utils.encode_form(form)
|
|
986
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
|
987
|
+
body = URI.encode_www_form(data)
|
|
988
|
+
else
|
|
989
|
+
body = data
|
|
990
|
+
end
|
|
991
|
+
headers['Accept'] = 'application/json'
|
|
992
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
993
|
+
retries ||= @sdk_configuration.retry_config
|
|
994
|
+
retries ||= Utils::RetryConfig.new(
|
|
995
|
+
backoff: Utils::BackoffStrategy.new(
|
|
996
|
+
exponent: 1.5,
|
|
997
|
+
initial_interval: 500,
|
|
998
|
+
max_elapsed_time: 3_600_000,
|
|
999
|
+
max_interval: 60_000
|
|
1000
|
+
),
|
|
1001
|
+
retry_connection_errors: true,
|
|
1002
|
+
strategy: 'backoff'
|
|
1003
|
+
)
|
|
1004
|
+
retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
|
|
1005
|
+
retry_options[:retry_statuses] = [500, 501, 502, 503, 504, 505]
|
|
1006
|
+
|
|
1007
|
+
security = @sdk_configuration.security_source&.call
|
|
1008
|
+
|
|
1009
|
+
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1010
|
+
timeout ||= @sdk_configuration.timeout
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
connection = @sdk_configuration.client.dup
|
|
1014
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
1015
|
+
|
|
1016
|
+
hook_ctx = SDKHooks::HookContext.new(
|
|
1017
|
+
config: @sdk_configuration,
|
|
1018
|
+
base_url: base_url,
|
|
1019
|
+
oauth2_scopes: nil,
|
|
1020
|
+
operation_id: 'ReplaceOrganizationMetadata',
|
|
1021
|
+
security_source: @sdk_configuration.security_source
|
|
1022
|
+
)
|
|
1023
|
+
|
|
1024
|
+
error = nil
|
|
1025
|
+
http_response = nil
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
begin
|
|
1029
|
+
http_response = connection.put(url) do |req|
|
|
1030
|
+
req.body = body
|
|
1031
|
+
req.headers.merge!(headers)
|
|
1032
|
+
req.options.timeout = timeout unless timeout.nil?
|
|
1033
|
+
Utils.configure_request_security(req, security)
|
|
1034
|
+
http_headers&.each do |key, value|
|
|
1035
|
+
req.headers[key.to_s] = value
|
|
1036
|
+
end
|
|
1037
|
+
|
|
1038
|
+
@sdk_configuration.hooks.before_request(
|
|
1039
|
+
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
|
1040
|
+
hook_ctx: hook_ctx
|
|
1041
|
+
),
|
|
1042
|
+
request: req
|
|
1043
|
+
)
|
|
1044
|
+
end
|
|
1045
|
+
rescue StandardError => e
|
|
1046
|
+
error = e
|
|
1047
|
+
ensure
|
|
1048
|
+
if http_response.nil? || Utils.error_status?(http_response.status)
|
|
1049
|
+
http_response = @sdk_configuration.hooks.after_error(
|
|
1050
|
+
error: error,
|
|
1051
|
+
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
|
1052
|
+
hook_ctx: hook_ctx
|
|
1053
|
+
),
|
|
1054
|
+
response: http_response
|
|
1055
|
+
)
|
|
1056
|
+
else
|
|
1057
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
1058
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
1059
|
+
hook_ctx: hook_ctx
|
|
1060
|
+
),
|
|
1061
|
+
response: http_response
|
|
1062
|
+
)
|
|
1063
|
+
end
|
|
1064
|
+
|
|
1065
|
+
if http_response.nil?
|
|
1066
|
+
raise error if !error.nil?
|
|
1067
|
+
raise 'no response'
|
|
1068
|
+
end
|
|
1069
|
+
end
|
|
1070
|
+
|
|
1071
|
+
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1072
|
+
if Utils.match_status_code(http_response.status, ['200'])
|
|
1073
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
1074
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
1075
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
1076
|
+
hook_ctx: hook_ctx
|
|
1077
|
+
),
|
|
1078
|
+
response: http_response
|
|
1079
|
+
)
|
|
1080
|
+
response_data = http_response.env.response_body
|
|
1081
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::Organization)
|
|
1082
|
+
response = Models::Operations::ReplaceOrganizationMetadataResponse.new(
|
|
1083
|
+
status_code: http_response.status,
|
|
1084
|
+
content_type: content_type,
|
|
1085
|
+
raw_response: http_response,
|
|
1086
|
+
organization: obj
|
|
1087
|
+
)
|
|
1088
|
+
|
|
1089
|
+
return response
|
|
1090
|
+
else
|
|
1091
|
+
raise ::Clerk::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
1092
|
+
end
|
|
1093
|
+
elsif Utils.match_status_code(http_response.status, ['400', '401', '404', '422'])
|
|
1094
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
1095
|
+
http_response = @sdk_configuration.hooks.after_success(
|
|
1096
|
+
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
|
1097
|
+
hook_ctx: hook_ctx
|
|
1098
|
+
),
|
|
1099
|
+
response: http_response
|
|
1100
|
+
)
|
|
1101
|
+
response_data = http_response.env.response_body
|
|
1102
|
+
obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ClerkErrors)
|
|
1103
|
+
obj.raw_response = http_response
|
|
1104
|
+
raise obj
|
|
1105
|
+
else
|
|
1106
|
+
raise ::Clerk::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received'
|
|
1107
|
+
end
|
|
1108
|
+
elsif Utils.match_status_code(http_response.status, ['4XX'])
|
|
1109
|
+
raise ::Clerk::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
1110
|
+
elsif Utils.match_status_code(http_response.status, ['5XX'])
|
|
1111
|
+
raise ::Clerk::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
|
|
1112
|
+
else
|
|
1113
|
+
raise ::Clerk::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received'
|
|
1114
|
+
|
|
1115
|
+
end
|
|
1116
|
+
end
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
|
|
955
1120
|
def upload_logo(organization_id:, body: nil, retries: nil, timeout_ms: nil, http_headers: nil)
|
|
956
1121
|
# upload_logo - Upload a logo for the organization
|
|
957
1122
|
# Set or replace an organization's logo, by uploading an image file.
|
|
@@ -1002,10 +1167,10 @@ module Clerk
|
|
|
1002
1167
|
|
|
1003
1168
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1004
1169
|
timeout ||= @sdk_configuration.timeout
|
|
1005
|
-
|
|
1170
|
+
|
|
1006
1171
|
|
|
1007
1172
|
connection = @sdk_configuration.client.dup
|
|
1008
|
-
connection.
|
|
1173
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
1009
1174
|
|
|
1010
1175
|
hook_ctx = SDKHooks::HookContext.new(
|
|
1011
1176
|
config: @sdk_configuration,
|
|
@@ -1018,7 +1183,7 @@ module Clerk
|
|
|
1018
1183
|
error = nil
|
|
1019
1184
|
http_response = nil
|
|
1020
1185
|
|
|
1021
|
-
|
|
1186
|
+
|
|
1022
1187
|
begin
|
|
1023
1188
|
http_response = connection.put(url) do |req|
|
|
1024
1189
|
req.body = body
|
|
@@ -1055,13 +1220,13 @@ module Clerk
|
|
|
1055
1220
|
response: http_response
|
|
1056
1221
|
)
|
|
1057
1222
|
end
|
|
1058
|
-
|
|
1223
|
+
|
|
1059
1224
|
if http_response.nil?
|
|
1060
1225
|
raise error if !error.nil?
|
|
1061
1226
|
raise 'no response'
|
|
1062
1227
|
end
|
|
1063
1228
|
end
|
|
1064
|
-
|
|
1229
|
+
|
|
1065
1230
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1066
1231
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1067
1232
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1147,10 +1312,10 @@ module Clerk
|
|
|
1147
1312
|
|
|
1148
1313
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1149
1314
|
timeout ||= @sdk_configuration.timeout
|
|
1150
|
-
|
|
1315
|
+
|
|
1151
1316
|
|
|
1152
1317
|
connection = @sdk_configuration.client.dup
|
|
1153
|
-
connection.
|
|
1318
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
1154
1319
|
|
|
1155
1320
|
hook_ctx = SDKHooks::HookContext.new(
|
|
1156
1321
|
config: @sdk_configuration,
|
|
@@ -1163,7 +1328,7 @@ module Clerk
|
|
|
1163
1328
|
error = nil
|
|
1164
1329
|
http_response = nil
|
|
1165
1330
|
|
|
1166
|
-
|
|
1331
|
+
|
|
1167
1332
|
begin
|
|
1168
1333
|
http_response = connection.delete(url) do |req|
|
|
1169
1334
|
req.headers.merge!(headers)
|
|
@@ -1199,13 +1364,13 @@ module Clerk
|
|
|
1199
1364
|
response: http_response
|
|
1200
1365
|
)
|
|
1201
1366
|
end
|
|
1202
|
-
|
|
1367
|
+
|
|
1203
1368
|
if http_response.nil?
|
|
1204
1369
|
raise error if !error.nil?
|
|
1205
1370
|
raise 'no response'
|
|
1206
1371
|
end
|
|
1207
1372
|
end
|
|
1208
|
-
|
|
1373
|
+
|
|
1209
1374
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1210
1375
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1211
1376
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1293,10 +1458,10 @@ module Clerk
|
|
|
1293
1458
|
|
|
1294
1459
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1295
1460
|
timeout ||= @sdk_configuration.timeout
|
|
1296
|
-
|
|
1461
|
+
|
|
1297
1462
|
|
|
1298
1463
|
connection = @sdk_configuration.client.dup
|
|
1299
|
-
connection.
|
|
1464
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
1300
1465
|
|
|
1301
1466
|
hook_ctx = SDKHooks::HookContext.new(
|
|
1302
1467
|
config: @sdk_configuration,
|
|
@@ -1309,7 +1474,7 @@ module Clerk
|
|
|
1309
1474
|
error = nil
|
|
1310
1475
|
http_response = nil
|
|
1311
1476
|
|
|
1312
|
-
|
|
1477
|
+
|
|
1313
1478
|
begin
|
|
1314
1479
|
http_response = connection.get(url) do |req|
|
|
1315
1480
|
req.headers.merge!(headers)
|
|
@@ -1345,13 +1510,13 @@ module Clerk
|
|
|
1345
1510
|
response: http_response
|
|
1346
1511
|
)
|
|
1347
1512
|
end
|
|
1348
|
-
|
|
1513
|
+
|
|
1349
1514
|
if http_response.nil?
|
|
1350
1515
|
raise error if !error.nil?
|
|
1351
1516
|
raise 'no response'
|
|
1352
1517
|
end
|
|
1353
1518
|
end
|
|
1354
|
-
|
|
1519
|
+
|
|
1355
1520
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1356
1521
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1357
1522
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1453,10 +1618,10 @@ module Clerk
|
|
|
1453
1618
|
|
|
1454
1619
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1455
1620
|
timeout ||= @sdk_configuration.timeout
|
|
1456
|
-
|
|
1621
|
+
|
|
1457
1622
|
|
|
1458
1623
|
connection = @sdk_configuration.client.dup
|
|
1459
|
-
connection.
|
|
1624
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
1460
1625
|
|
|
1461
1626
|
hook_ctx = SDKHooks::HookContext.new(
|
|
1462
1627
|
config: @sdk_configuration,
|
|
@@ -1469,7 +1634,7 @@ module Clerk
|
|
|
1469
1634
|
error = nil
|
|
1470
1635
|
http_response = nil
|
|
1471
1636
|
|
|
1472
|
-
|
|
1637
|
+
|
|
1473
1638
|
begin
|
|
1474
1639
|
http_response = connection.get(url) do |req|
|
|
1475
1640
|
req.headers.merge!(headers)
|
|
@@ -1505,13 +1670,13 @@ module Clerk
|
|
|
1505
1670
|
response: http_response
|
|
1506
1671
|
)
|
|
1507
1672
|
end
|
|
1508
|
-
|
|
1673
|
+
|
|
1509
1674
|
if http_response.nil?
|
|
1510
1675
|
raise error if !error.nil?
|
|
1511
1676
|
raise 'no response'
|
|
1512
1677
|
end
|
|
1513
1678
|
end
|
|
1514
|
-
|
|
1679
|
+
|
|
1515
1680
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1516
1681
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1517
1682
|
if Utils.match_content_type(content_type, 'application/json')
|
|
@@ -1626,10 +1791,10 @@ module Clerk
|
|
|
1626
1791
|
|
|
1627
1792
|
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
|
1628
1793
|
timeout ||= @sdk_configuration.timeout
|
|
1629
|
-
|
|
1794
|
+
|
|
1630
1795
|
|
|
1631
1796
|
connection = @sdk_configuration.client.dup
|
|
1632
|
-
connection.
|
|
1797
|
+
connection.use Utils::RetryMiddleware, retry_options
|
|
1633
1798
|
|
|
1634
1799
|
hook_ctx = SDKHooks::HookContext.new(
|
|
1635
1800
|
config: @sdk_configuration,
|
|
@@ -1642,7 +1807,7 @@ module Clerk
|
|
|
1642
1807
|
error = nil
|
|
1643
1808
|
http_response = nil
|
|
1644
1809
|
|
|
1645
|
-
|
|
1810
|
+
|
|
1646
1811
|
begin
|
|
1647
1812
|
http_response = connection.post(url) do |req|
|
|
1648
1813
|
req.body = body
|
|
@@ -1679,13 +1844,13 @@ module Clerk
|
|
|
1679
1844
|
response: http_response
|
|
1680
1845
|
)
|
|
1681
1846
|
end
|
|
1682
|
-
|
|
1847
|
+
|
|
1683
1848
|
if http_response.nil?
|
|
1684
1849
|
raise error if !error.nil?
|
|
1685
1850
|
raise 'no response'
|
|
1686
1851
|
end
|
|
1687
1852
|
end
|
|
1688
|
-
|
|
1853
|
+
|
|
1689
1854
|
content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
|
|
1690
1855
|
if Utils.match_status_code(http_response.status, ['200'])
|
|
1691
1856
|
if Utils.match_content_type(content_type, 'application/json')
|