clerk-sdk-ruby 7.0.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (335) hide show
  1. checksums.yaml +4 -4
  2. data/lib/clerk/actortokens.rb +10 -10
  3. data/lib/clerk/admin_portal_link_tokens.rb +10 -10
  4. data/lib/clerk/agenttasks.rb +10 -10
  5. data/lib/clerk/allowlistidentifiers.rb +15 -15
  6. data/lib/clerk/api_keys.rb +40 -40
  7. data/lib/clerk/betafeatures.rb +10 -10
  8. data/lib/clerk/billing.rb +52 -52
  9. data/lib/clerk/blocklistidentifiers.rb +15 -15
  10. data/lib/clerk/clients.rb +15 -15
  11. data/lib/clerk/domains.rb +20 -20
  12. data/lib/clerk/emailaddresses.rb +43 -36
  13. data/lib/clerk/emailandsmstemplates.rb +6 -6
  14. data/lib/clerk/emailsmstemplates.rb +21 -21
  15. data/lib/clerk/enterpriseconnections.rb +35 -35
  16. data/lib/clerk/instancesettings.rb +60 -60
  17. data/lib/clerk/invitations.rb +20 -20
  18. data/lib/clerk/jwks.rb +5 -5
  19. data/lib/clerk/jwttemplates.rb +25 -25
  20. data/lib/clerk/m2m.rb +20 -20
  21. data/lib/clerk/machines.rb +45 -45
  22. data/lib/clerk/miscellaneous.rb +5 -5
  23. data/lib/clerk/models/components/algorithm.rb +19 -0
  24. data/lib/clerk/models/components/{clerkerror_meta.rbi → algorithm.rbi} +2 -2
  25. data/lib/clerk/models/components/billingpaymentattempt_totals.rb +1 -1
  26. data/lib/clerk/models/components/clerkerror.rb +1 -1
  27. data/lib/clerk/models/components/commercecreditledgerresponse.rb +3 -7
  28. data/lib/clerk/models/components/commercecreditledgerresponse.rbi +0 -2
  29. data/lib/clerk/models/components/{schemas_commerceperunittotal.rb → commerceperunittotal_2.rb} +2 -2
  30. data/lib/clerk/models/components/{schemas_commerceperunittotal.rbi → commerceperunittotal_2.rbi} +2 -2
  31. data/lib/clerk/models/components/{schemas_commerceperunittotaltier.rb → commerceperunittotaltier_2.rb} +1 -1
  32. data/lib/clerk/models/components/{schemas_commerceperunittotaltier.rbi → commerceperunittotaltier_2.rbi} +2 -2
  33. data/lib/clerk/models/components/{schemas_commerceplan.rb → commerceplan_2.rb} +6 -6
  34. data/lib/clerk/models/components/{schemas_commerceplan.rbi → commerceplan_2.rbi} +2 -2
  35. data/lib/clerk/models/components/{schemas_commerceplan_fee.rb → commerceplan_2_annual_fee.rb} +1 -1
  36. data/lib/clerk/models/components/{schemas_commerceplan_fee.rbi → commerceplan_2_annual_fee.rbi} +2 -2
  37. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_fee.rb → commerceplan_2_annual_monthly_fee.rb} +1 -1
  38. data/lib/clerk/models/components/{schemas_commerceplan_annual_monthly_fee.rbi → commerceplan_2_annual_monthly_fee.rbi} +2 -2
  39. data/lib/clerk/models/components/{schemas_commerceplan_annual_fee.rb → commerceplan_2_fee.rb} +1 -1
  40. data/lib/clerk/models/components/{schemas_commerceplan_annual_fee.rbi → commerceplan_2_fee.rbi} +2 -2
  41. data/lib/clerk/models/components/{schemas_commerceplan_object.rb → commerceplan_2_object.rb} +2 -2
  42. data/lib/clerk/models/components/{clerkerrors_meta.rbi → commerceplan_2_object.rbi} +2 -2
  43. data/lib/clerk/models/components/commercepricetransitiondetails.rb +1 -1
  44. data/lib/clerk/models/components/commercepricetransitionresponse.rb +1 -1
  45. data/lib/clerk/models/components/{schemas_commercesubscriptionitem.rb → commercesubscriptionitem_2.rb} +7 -7
  46. data/lib/clerk/models/components/{schemas_commercesubscriptionitem.rbi → commercesubscriptionitem_2.rbi} +2 -2
  47. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_amount.rb → commercesubscriptionitem_2_amount.rb} +1 -1
  48. data/lib/clerk/models/components/commercesubscriptionitem_2_amount.rbi +19 -0
  49. data/lib/clerk/models/components/{schemas_commerceplan_annual_monthly_fee.rb → commercesubscriptionitem_2_annual_fee.rb} +1 -1
  50. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_fee.rbi → commercesubscriptionitem_2_annual_fee.rbi} +2 -2
  51. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_annual_fee.rb → commercesubscriptionitem_2_annual_monthly_fee.rb} +1 -1
  52. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_amount.rbi → commercesubscriptionitem_2_annual_monthly_fee.rbi} +2 -2
  53. data/lib/clerk/models/components/commercesubscriptionitem_2_fee.rb +44 -0
  54. data/lib/clerk/models/components/commercesubscriptionitem_2_fee.rbi +19 -0
  55. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment.rb → commercesubscriptionitem_2_next_payment.rb} +3 -3
  56. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment.rbi → commercesubscriptionitem_2_next_payment.rbi} +2 -2
  57. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_amount.rb → commercesubscriptionitem_2_next_payment_amount.rb} +1 -1
  58. data/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_amount.rbi +19 -0
  59. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_credits.rb → commercesubscriptionitem_2_next_payment_credits.rb} +3 -3
  60. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_credits.rbi → commercesubscriptionitem_2_next_payment_credits.rbi} +2 -2
  61. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_credits_proration.rb → commercesubscriptionitem_2_next_payment_credits_proration.rb} +1 -1
  62. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_credits_proration.rbi → commercesubscriptionitem_2_next_payment_credits_proration.rbi} +2 -2
  63. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_discounts.rb → commercesubscriptionitem_2_next_payment_discounts.rb} +2 -2
  64. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_discounts.rbi → commercesubscriptionitem_2_next_payment_discounts.rbi} +2 -2
  65. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_discounts_proration.rb → commercesubscriptionitem_2_next_payment_discounts_proration.rb} +1 -1
  66. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_discounts_proration.rbi → commercesubscriptionitem_2_next_payment_discounts_proration.rbi} +2 -2
  67. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_payer.rb → commercesubscriptionitem_2_next_payment_payer.rb} +1 -1
  68. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_payer.rbi → commercesubscriptionitem_2_next_payment_payer.rbi} +2 -2
  69. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_totals.rb → commercesubscriptionitem_2_next_payment_totals.rb} +3 -3
  70. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_totals.rbi → commercesubscriptionitem_2_next_payment_totals.rbi} +2 -2
  71. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_object_commercepayer.rb → commercesubscriptionitem_2_object_commercepayer.rb} +2 -2
  72. data/lib/clerk/models/components/commercesubscriptionitem_2_object_commercepayer.rbi +11 -0
  73. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_object_commerceplan.rb → commercesubscriptionitem_2_object_commerceplan.rb} +2 -2
  74. data/lib/clerk/models/components/commercesubscriptionitem_2_object_commerceplan.rbi +11 -0
  75. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_object_commercesubscriptionitem.rb → commercesubscriptionitem_2_object_commercesubscriptionitem.rb} +2 -2
  76. data/lib/clerk/models/components/commercesubscriptionitem_2_object_commercesubscriptionitem.rbi +11 -0
  77. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_plan.rb → commercesubscriptionitem_2_plan.rb} +6 -6
  78. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_plan.rbi → commercesubscriptionitem_2_plan.rbi} +2 -2
  79. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_plan_period.rb → commercesubscriptionitem_2_plan_period.rb} +2 -2
  80. data/lib/clerk/models/components/commercesubscriptionitem_2_plan_period.rbi +11 -0
  81. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_status.rb → commercesubscriptionitem_2_status.rb} +2 -2
  82. data/lib/clerk/models/components/commercesubscriptionitem_2_status.rbi +11 -0
  83. data/lib/clerk/models/components/commercesubscriptionitem_totals.rb +1 -1
  84. data/lib/clerk/models/components/commercesubscriptionnextpayment.rb +1 -1
  85. data/lib/clerk/models/components/commercesubscriptionnextpayment_totals.rb +1 -1
  86. data/lib/clerk/models/components/emailaddress_verification_saml_clerkerror.rb +1 -1
  87. data/lib/clerk/models/components/enrollment_mode.rb +1 -0
  88. data/lib/clerk/models/components/enterpriseaccount_verification_oauth_clerkerror.rb +1 -1
  89. data/lib/clerk/models/components/enterpriseaccount_verification_saml_clerkerror.rb +1 -1
  90. data/lib/clerk/models/components/enterpriseconnection.rb +6 -2
  91. data/lib/clerk/models/components/enterpriseconnection.rbi +2 -0
  92. data/lib/clerk/models/components/{custom_attribute.rb → enterpriseconnection_custom_attribute.rb} +1 -1
  93. data/lib/clerk/models/components/enterpriseconnection_custom_attribute.rbi +21 -0
  94. data/lib/clerk/models/components/enterpriseconnection_mode.rb +21 -0
  95. data/lib/clerk/models/components/enterpriseconnection_mode.rbi +11 -0
  96. data/lib/clerk/models/components/enterpriseconnection_object.rb +19 -0
  97. data/lib/clerk/models/components/enterpriseconnection_object.rbi +11 -0
  98. data/lib/clerk/models/components/enterpriseconnection_saml_connection.rb +5 -1
  99. data/lib/clerk/models/components/enterpriseconnection_saml_connection.rbi +2 -0
  100. data/lib/clerk/models/components/externalaccountwithverification_verification_oauth_clerkerror.rb +1 -1
  101. data/lib/clerk/models/components/{schemas_featureresponse.rb → featureresponse_2.rb} +2 -2
  102. data/lib/clerk/models/components/{schemas_featureresponse.rbi → featureresponse_2.rbi} +2 -2
  103. data/lib/clerk/models/components/{schemas_featureresponse_object.rb → featureresponse_2_object.rb} +2 -2
  104. data/lib/clerk/models/components/featureresponse_2_object.rbi +11 -0
  105. data/lib/clerk/models/components/instanceprotect.rb +5 -1
  106. data/lib/clerk/models/components/instanceprotect.rbi +2 -0
  107. data/lib/clerk/models/components/instancesettings.rb +4 -1
  108. data/lib/clerk/models/components/login_hint.rb +36 -0
  109. data/lib/clerk/models/components/login_hint.rbi +15 -0
  110. data/lib/clerk/models/components/oauthapplicationsettings.rb +17 -1
  111. data/lib/clerk/models/components/oauthapplicationsettings.rbi +8 -0
  112. data/lib/clerk/models/components/organizationmembershippublicuserdata.rb +5 -1
  113. data/lib/clerk/models/components/organizationmembershippublicuserdata.rbi +2 -0
  114. data/lib/clerk/models/components/payer_commercepayer.rb +1 -1
  115. data/lib/clerk/models/components/payment_type.rb +1 -0
  116. data/lib/clerk/models/components/platform.rb +20 -0
  117. data/lib/clerk/models/components/{samlaccount_meta.rbi → platform.rbi} +2 -2
  118. data/lib/clerk/models/components/samlaccount_clerkerror.rb +1 -1
  119. data/lib/clerk/models/components/samlconnection_1.rb +15 -1
  120. data/lib/clerk/models/components/samlconnection_1.rbi +6 -0
  121. data/lib/clerk/models/components/samlconnection_2.rb +15 -1
  122. data/lib/clerk/models/components/samlconnection_2.rbi +6 -0
  123. data/lib/clerk/models/components/samlconnectionloginhint.rb +36 -0
  124. data/lib/clerk/models/components/samlconnectionloginhint.rbi +15 -0
  125. data/lib/clerk/models/components/samlconnectionloginhint_mode.rb +21 -0
  126. data/lib/clerk/models/components/samlconnectionloginhint_mode.rbi +11 -0
  127. data/lib/clerk/models/components/scimdirectory.rb +80 -0
  128. data/lib/clerk/models/components/scimdirectory.rbi +37 -0
  129. data/lib/clerk/models/components/scimdirectory_custom_attribute.rb +48 -0
  130. data/lib/clerk/models/components/{custom_attribute.rbi → scimdirectory_custom_attribute.rbi} +2 -2
  131. data/lib/clerk/models/components/scimdirectory_list.rb +36 -0
  132. data/lib/clerk/models/components/scimdirectory_list.rbi +15 -0
  133. data/lib/clerk/models/components/scimdirectory_object.rb +19 -0
  134. data/lib/clerk/models/components/scimdirectory_object.rbi +11 -0
  135. data/lib/clerk/models/components/scimgrouprolemapping.rb +64 -0
  136. data/lib/clerk/models/components/scimgrouprolemapping.rbi +29 -0
  137. data/lib/clerk/models/components/scimgrouprolemapping_deleted.rb +43 -0
  138. data/lib/clerk/models/components/scimgrouprolemapping_deleted.rbi +17 -0
  139. data/lib/clerk/models/components/scimgrouprolemapping_deleted_object.rb +19 -0
  140. data/lib/clerk/models/components/scimgrouprolemapping_deleted_object.rbi +11 -0
  141. data/lib/clerk/models/components/scimgrouprolemapping_list.rb +36 -0
  142. data/lib/clerk/models/components/scimgrouprolemapping_list.rbi +15 -0
  143. data/lib/clerk/models/components/scimgrouprolemapping_object.rb +19 -0
  144. data/lib/clerk/models/components/scimgrouprolemapping_object.rbi +11 -0
  145. data/lib/clerk/models/components/seats.rb +1 -1
  146. data/lib/clerk/models/components/trusteddevice.rb +72 -0
  147. data/lib/clerk/models/components/trusteddevice.rbi +33 -0
  148. data/lib/clerk/models/components/trusteddevice_list.rb +36 -0
  149. data/lib/clerk/models/components/trusteddevice_list.rbi +15 -0
  150. data/lib/clerk/models/components/trusteddevice_object.rb +19 -0
  151. data/lib/clerk/models/components/trusteddevice_object.rbi +11 -0
  152. data/lib/clerk/models/components/trusteddevice_status.rb +20 -0
  153. data/lib/clerk/models/components/trusteddevice_status.rbi +11 -0
  154. data/lib/clerk/models/components/verification_from_oauth_clerkerror.rb +1 -1
  155. data/lib/clerk/models/components/verification_google_one_tap_clerkerror.rb +1 -1
  156. data/lib/clerk/models/components.rb +49 -38
  157. data/lib/clerk/models/errors/clerkerrors.rb +1 -1
  158. data/lib/clerk/models/operations/createemailaddress_request.rb +7 -1
  159. data/lib/clerk/models/operations/createemailaddress_request.rbi +2 -0
  160. data/lib/clerk/models/operations/createenterpriseconnection_login_hint.rb +36 -0
  161. data/lib/clerk/models/operations/createenterpriseconnection_login_hint.rbi +15 -0
  162. data/lib/clerk/models/operations/createenterpriseconnection_mode.rb +21 -0
  163. data/lib/clerk/models/operations/createenterpriseconnection_mode.rbi +11 -0
  164. data/lib/clerk/models/operations/createenterpriseconnection_saml.rb +5 -1
  165. data/lib/clerk/models/operations/createenterpriseconnection_saml.rbi +2 -0
  166. data/lib/clerk/models/operations/createorganizationdomain_requestbody.rb +1 -1
  167. data/lib/clerk/models/operations/createsamlconnection_login_hint_1.rb +36 -0
  168. data/lib/clerk/models/operations/createsamlconnection_login_hint_1.rbi +15 -0
  169. data/lib/clerk/models/operations/createsamlconnection_login_hint_2.rb +36 -0
  170. data/lib/clerk/models/operations/createsamlconnection_login_hint_2.rbi +15 -0
  171. data/lib/clerk/models/operations/createsamlconnection_mode_1.rb +21 -0
  172. data/lib/clerk/models/operations/createsamlconnection_mode_1.rbi +11 -0
  173. data/lib/clerk/models/operations/createsamlconnection_mode_2.rb +21 -0
  174. data/lib/clerk/models/operations/createsamlconnection_mode_2.rbi +11 -0
  175. data/lib/clerk/models/operations/createsamlconnection_requestbody_1.rb +5 -1
  176. data/lib/clerk/models/operations/createsamlconnection_requestbody_1.rbi +2 -0
  177. data/lib/clerk/models/operations/createsamlconnection_requestbody_2.rb +5 -1
  178. data/lib/clerk/models/operations/createsamlconnection_requestbody_2.rbi +2 -0
  179. data/lib/clerk/models/operations/createscimdirectory_request.rb +44 -0
  180. data/lib/clerk/models/operations/createscimdirectory_request.rbi +19 -0
  181. data/lib/clerk/models/operations/createscimdirectory_response.rb +44 -0
  182. data/lib/clerk/models/operations/createscimdirectory_response.rbi +19 -0
  183. data/lib/clerk/models/operations/createscimgrouprolemapping_request.rb +36 -0
  184. data/lib/clerk/models/operations/createscimgrouprolemapping_request.rbi +15 -0
  185. data/lib/clerk/models/operations/createscimgrouprolemapping_requestbody.rb +42 -0
  186. data/lib/clerk/models/operations/createscimgrouprolemapping_requestbody.rbi +17 -0
  187. data/lib/clerk/models/operations/createscimgrouprolemapping_response.rb +44 -0
  188. data/lib/clerk/models/operations/createscimgrouprolemapping_response.rbi +19 -0
  189. data/lib/clerk/models/operations/createsignintoken_request.rb +6 -1
  190. data/lib/clerk/models/operations/createsignintoken_request.rbi +2 -0
  191. data/lib/clerk/models/operations/deletescimdirectory_request.rb +32 -0
  192. data/lib/clerk/models/operations/deletescimdirectory_request.rbi +13 -0
  193. data/lib/clerk/models/operations/deletescimdirectory_response.rb +44 -0
  194. data/lib/clerk/models/operations/deletescimdirectory_response.rbi +19 -0
  195. data/lib/clerk/models/operations/deletescimgrouprolemapping_request.rb +36 -0
  196. data/lib/clerk/models/operations/deletescimgrouprolemapping_request.rbi +15 -0
  197. data/lib/clerk/models/operations/deletescimgrouprolemapping_response.rb +44 -0
  198. data/lib/clerk/models/operations/deletescimgrouprolemapping_response.rbi +19 -0
  199. data/lib/clerk/models/operations/enrollment_mode.rb +5 -0
  200. data/lib/clerk/models/operations/extendbillingsubscriptionitemfreetrial_response.rb +4 -4
  201. data/lib/clerk/models/operations/extendbillingsubscriptionitemfreetrial_response.rbi +2 -2
  202. data/lib/clerk/models/operations/getscimdirectory_request.rb +32 -0
  203. data/lib/clerk/models/operations/getscimdirectory_request.rbi +13 -0
  204. data/lib/clerk/models/operations/getscimdirectory_response.rb +44 -0
  205. data/lib/clerk/models/operations/getscimdirectory_response.rbi +19 -0
  206. data/lib/clerk/models/operations/group_role_mapping.rb +44 -0
  207. data/lib/clerk/models/operations/group_role_mapping.rbi +19 -0
  208. data/lib/clerk/models/operations/listallorganizationdomains_request.rb +2 -1
  209. data/lib/clerk/models/operations/listorganizationdomains_request.rb +2 -1
  210. data/lib/clerk/models/operations/listscimdirectories_request.rb +39 -0
  211. data/lib/clerk/models/operations/listscimdirectories_request.rbi +15 -0
  212. data/lib/clerk/models/operations/listscimdirectories_response.rb +44 -0
  213. data/lib/clerk/models/operations/listscimdirectories_response.rbi +19 -0
  214. data/lib/clerk/models/operations/listscimgrouprolemappings_request.rb +32 -0
  215. data/lib/clerk/models/operations/listscimgrouprolemappings_request.rbi +13 -0
  216. data/lib/clerk/models/operations/listscimgrouprolemappings_response.rb +44 -0
  217. data/lib/clerk/models/operations/listscimgrouprolemappings_response.rbi +19 -0
  218. data/lib/clerk/models/operations/listusertrusteddevices_request.rb +32 -0
  219. data/lib/clerk/models/operations/listusertrusteddevices_request.rbi +13 -0
  220. data/lib/clerk/models/operations/listusertrusteddevices_response.rb +44 -0
  221. data/lib/clerk/models/operations/listusertrusteddevices_response.rbi +19 -0
  222. data/lib/clerk/models/operations/mapping.rb +36 -0
  223. data/lib/clerk/models/operations/mapping.rbi +15 -0
  224. data/lib/clerk/models/operations/removeuserpassword_request.rb +36 -0
  225. data/lib/clerk/models/operations/removeuserpassword_request.rbi +15 -0
  226. data/lib/clerk/models/operations/removeuserpassword_requestbody.rb +32 -0
  227. data/lib/clerk/models/operations/removeuserpassword_requestbody.rbi +13 -0
  228. data/lib/clerk/models/operations/removeuserpassword_response.rb +44 -0
  229. data/lib/clerk/models/operations/removeuserpassword_response.rbi +19 -0
  230. data/lib/clerk/models/operations/replacescimgrouprolemappings_request.rb +36 -0
  231. data/lib/clerk/models/operations/replacescimgrouprolemappings_request.rbi +15 -0
  232. data/lib/clerk/models/operations/replacescimgrouprolemappings_requestbody.rb +32 -0
  233. data/lib/clerk/models/operations/replacescimgrouprolemappings_requestbody.rbi +13 -0
  234. data/lib/clerk/models/operations/replacescimgrouprolemappings_response.rb +44 -0
  235. data/lib/clerk/models/operations/replacescimgrouprolemappings_response.rbi +19 -0
  236. data/lib/clerk/models/operations/replaceuseremailaddress_identification_status.rb +10 -2
  237. data/lib/clerk/models/operations/replaceuseremailaddress_requestbody.rb +16 -3
  238. data/lib/clerk/models/operations/replaceuseremailaddress_requestbody.rbi +2 -0
  239. data/lib/clerk/models/operations/replaceuserphonenumber_identification_status.rb +10 -2
  240. data/lib/clerk/models/operations/replaceuserphonenumber_requestbody.rb +9 -2
  241. data/lib/clerk/models/operations/revokeoauthapplicationtoken_request.rb +36 -0
  242. data/lib/clerk/models/operations/revokeoauthapplicationtoken_request.rbi +15 -0
  243. data/lib/clerk/models/operations/revokeoauthapplicationtoken_requestbody.rb +32 -0
  244. data/lib/clerk/models/operations/revokeoauthapplicationtoken_requestbody.rbi +13 -0
  245. data/lib/clerk/models/operations/revokeoauthapplicationtoken_response.rb +40 -0
  246. data/lib/clerk/models/operations/revokeoauthapplicationtoken_response.rbi +17 -0
  247. data/lib/clerk/models/operations/revokeusertrusteddevice_request.rb +36 -0
  248. data/lib/clerk/models/operations/revokeusertrusteddevice_request.rbi +15 -0
  249. data/lib/clerk/models/operations/revokeusertrusteddevice_response.rb +44 -0
  250. data/lib/clerk/models/operations/revokeusertrusteddevice_response.rbi +19 -0
  251. data/lib/clerk/models/operations/rotatescimdirectoryapikey_request.rb +32 -0
  252. data/lib/clerk/models/operations/rotatescimdirectoryapikey_request.rbi +13 -0
  253. data/lib/clerk/models/operations/rotatescimdirectoryapikey_response.rb +44 -0
  254. data/lib/clerk/models/operations/rotatescimdirectoryapikey_response.rbi +19 -0
  255. data/lib/clerk/models/operations/updateemailaddress_requestbody.rb +7 -1
  256. data/lib/clerk/models/operations/updateemailaddress_requestbody.rbi +2 -0
  257. data/lib/clerk/models/operations/updateenterpriseconnection_login_hint.rb +36 -0
  258. data/lib/clerk/models/operations/updateenterpriseconnection_login_hint.rbi +15 -0
  259. data/lib/clerk/models/operations/updateenterpriseconnection_mode.rb +21 -0
  260. data/lib/clerk/models/operations/updateenterpriseconnection_mode.rbi +11 -0
  261. data/lib/clerk/models/operations/updateenterpriseconnection_saml.rb +5 -1
  262. data/lib/clerk/models/operations/updateenterpriseconnection_saml.rbi +2 -0
  263. data/lib/clerk/models/operations/updateinstanceoauthapplicationsettings_request.rb +17 -1
  264. data/lib/clerk/models/operations/updateinstanceoauthapplicationsettings_request.rbi +8 -0
  265. data/lib/clerk/models/operations/updateorganizationdomain_requestbody.rb +1 -1
  266. data/lib/clerk/models/operations/updatesamlconnection_login_hint.rb +36 -0
  267. data/lib/clerk/models/operations/updatesamlconnection_login_hint.rbi +15 -0
  268. data/lib/clerk/models/operations/updatesamlconnection_mode.rb +21 -0
  269. data/lib/clerk/models/operations/updatesamlconnection_mode.rbi +11 -0
  270. data/lib/clerk/models/operations/updatesamlconnection_requestbody.rb +5 -1
  271. data/lib/clerk/models/operations/updatesamlconnection_requestbody.rbi +2 -0
  272. data/lib/clerk/models/operations/updatescimdirectory_request.rb +36 -0
  273. data/lib/clerk/models/operations/updatescimdirectory_request.rbi +15 -0
  274. data/lib/clerk/models/operations/updatescimdirectory_requestbody.rb +49 -0
  275. data/lib/clerk/models/operations/updatescimdirectory_requestbody.rbi +21 -0
  276. data/lib/clerk/models/operations/updatescimdirectory_response.rb +44 -0
  277. data/lib/clerk/models/operations/updatescimdirectory_response.rbi +19 -0
  278. data/lib/clerk/models/operations.rb +45 -0
  279. data/lib/clerk/oauthaccesstokens.rb +5 -5
  280. data/lib/clerk/oauthapplications.rb +185 -35
  281. data/lib/clerk/openapiclient.rb +2 -1
  282. data/lib/clerk/organizationdomains.rb +32 -32
  283. data/lib/clerk/organizationinvitations.rb +35 -35
  284. data/lib/clerk/organizationmemberships.rb +25 -25
  285. data/lib/clerk/organizationpermissions.rb +25 -25
  286. data/lib/clerk/organizationroles.rb +35 -35
  287. data/lib/clerk/organizations.rb +60 -60
  288. data/lib/clerk/phonenumbers.rb +43 -36
  289. data/lib/clerk/proxy.rb +3 -3
  290. data/lib/clerk/proxychecks.rb +5 -5
  291. data/lib/clerk/redirecturls.rb +20 -20
  292. data/lib/clerk/rolesets.rb +35 -35
  293. data/lib/clerk/samlconnections.rb +25 -25
  294. data/lib/clerk/scimdirectories.rb +1531 -0
  295. data/lib/clerk/sdk.rb +23 -5
  296. data/lib/clerk/sdkconfiguration.rb +3 -3
  297. data/lib/clerk/sessions.rb +35 -35
  298. data/lib/clerk/signintokens.rb +11 -11
  299. data/lib/clerk/signups.rb +10 -10
  300. data/lib/clerk/templates.rb +5 -5
  301. data/lib/clerk/testingtokens.rb +5 -5
  302. data/lib/clerk/users.rb +690 -196
  303. data/lib/clerk/utils/retries.rb +43 -1
  304. data/lib/clerk/waitlistentries.rb +30 -30
  305. data/lib/clerk/webhooks.rb +15 -15
  306. data/lib/clerk_sdk_ruby.rb +1 -0
  307. data/test/clerk/jwks_cache_scoping_test.rb +83 -0
  308. data/test/clerk/proxy_test.rb +108 -0
  309. metadata +195 -80
  310. data/lib/clerk/models/components/clerkerror_meta.rb +0 -27
  311. data/lib/clerk/models/components/clerkerrors_meta.rb +0 -27
  312. data/lib/clerk/models/components/emailaddress_verification_saml_meta.rb +0 -27
  313. data/lib/clerk/models/components/emailaddress_verification_saml_meta.rbi +0 -11
  314. data/lib/clerk/models/components/enterpriseaccount_verification_oauth_meta.rb +0 -27
  315. data/lib/clerk/models/components/enterpriseaccount_verification_oauth_meta.rbi +0 -11
  316. data/lib/clerk/models/components/enterpriseaccount_verification_saml_meta.rb +0 -27
  317. data/lib/clerk/models/components/enterpriseaccount_verification_saml_meta.rbi +0 -11
  318. data/lib/clerk/models/components/externalaccountwithverification_verification_oauth_meta.rb +0 -27
  319. data/lib/clerk/models/components/externalaccountwithverification_verification_oauth_meta.rbi +0 -11
  320. data/lib/clerk/models/components/samlaccount_meta.rb +0 -27
  321. data/lib/clerk/models/components/schemas_commerceplan_object.rbi +0 -11
  322. data/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_fee.rbi +0 -19
  323. data/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_monthly_fee.rb +0 -44
  324. data/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_monthly_fee.rbi +0 -19
  325. data/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_amount.rbi +0 -19
  326. data/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercepayer.rbi +0 -11
  327. data/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commerceplan.rbi +0 -11
  328. data/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercesubscriptionitem.rbi +0 -11
  329. data/lib/clerk/models/components/schemas_commercesubscriptionitem_plan_period.rbi +0 -11
  330. data/lib/clerk/models/components/schemas_commercesubscriptionitem_status.rbi +0 -11
  331. data/lib/clerk/models/components/schemas_featureresponse_object.rbi +0 -11
  332. data/lib/clerk/models/components/verification_from_oauth_meta.rb +0 -27
  333. data/lib/clerk/models/components/verification_from_oauth_meta.rbi +0 -11
  334. data/lib/clerk/models/components/verification_google_one_tap_meta.rb +0 -27
  335. data/lib/clerk/models/components/verification_google_one_tap_meta.rbi +0 -11
@@ -0,0 +1,44 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: false
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module Clerk
8
+ module Models
9
+ module Operations
10
+
11
+ class UpdateSCIMDirectoryResponse
12
+
13
+ include Crystalline::MetadataFields
14
+
15
+ # HTTP response content type for this operation
16
+ field :content_type, ::String
17
+ # HTTP response status code for this operation
18
+ field :status_code, ::Integer
19
+ # Raw HTTP response; suitable for custom response parsing
20
+ field :raw_response, ::Faraday::Response
21
+ # A SCIM directory
22
+ field :scim_directory, Crystalline::Nilable.new(Models::Components::SCIMDirectory)
23
+
24
+
25
+ def initialize(content_type:, status_code:, raw_response:, scim_directory: nil)
26
+ @content_type = content_type
27
+ @status_code = status_code
28
+ @raw_response = raw_response
29
+ @scim_directory = scim_directory
30
+ end
31
+
32
+
33
+ def ==(other)
34
+ return false unless other.is_a? self.class
35
+ return false unless @content_type == other.content_type
36
+ return false unless @status_code == other.status_code
37
+ return false unless @raw_response == other.raw_response
38
+ return false unless @scim_directory == other.scim_directory
39
+ true
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,19 @@
1
+ # typed: false
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Clerk::Models::Operations::UpdateSCIMDirectoryResponse
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Clerk::Models::Operations::UpdateSCIMDirectoryResponse
11
+ def content_type(); end
12
+ def content_type=(str_); end
13
+ def status_code(); end
14
+ def status_code=(str_); end
15
+ def raw_response(); end
16
+ def raw_response=(str_); end
17
+ def scim_directory(); end
18
+ def scim_directory=(str_); end
19
+ end
@@ -52,6 +52,8 @@ module Clerk
52
52
  autoload :CreateEnterpriseConnectionTestRunResponse, 'clerk/models/operations/createenterpriseconnectiontestrun_response.rb'
53
53
  autoload :CreateEnterpriseConnectionAttributeMapping, 'clerk/models/operations/createenterpriseconnection_attribute_mapping.rb'
54
54
  autoload :CreateEnterpriseConnectionCustomAttribute, 'clerk/models/operations/createenterpriseconnection_custom_attribute.rb'
55
+ autoload :CreateEnterpriseConnectionLoginHint, 'clerk/models/operations/createenterpriseconnection_login_hint.rb'
56
+ autoload :CreateEnterpriseConnectionMode, 'clerk/models/operations/createenterpriseconnection_mode.rb'
55
57
  autoload :CreateEnterpriseConnectionOidc, 'clerk/models/operations/createenterpriseconnection_oidc.rb'
56
58
  autoload :CreateEnterpriseConnectionProvider, 'clerk/models/operations/createenterpriseconnection_provider.rb'
57
59
  autoload :CreateEnterpriseConnectionRequest, 'clerk/models/operations/createenterpriseconnection_request.rb'
@@ -99,10 +101,19 @@ module Clerk
99
101
  autoload :CreateSAMLConnectionRequestBody2, 'clerk/models/operations/createsamlconnection_requestbody_2.rb'
100
102
  autoload :CreateSAMLConnectionAttributeMapping1, 'clerk/models/operations/createsamlconnection_attribute_mapping_1.rb'
101
103
  autoload :CreateSAMLConnectionAttributeMapping2, 'clerk/models/operations/createsamlconnection_attribute_mapping_2.rb'
104
+ autoload :CreateSAMLConnectionLoginHint1, 'clerk/models/operations/createsamlconnection_login_hint_1.rb'
105
+ autoload :CreateSAMLConnectionLoginHint2, 'clerk/models/operations/createsamlconnection_login_hint_2.rb'
106
+ autoload :CreateSAMLConnectionMode1, 'clerk/models/operations/createsamlconnection_mode_1.rb'
107
+ autoload :CreateSAMLConnectionMode2, 'clerk/models/operations/createsamlconnection_mode_2.rb'
102
108
  autoload :CreateSAMLConnectionProvider1, 'clerk/models/operations/createsamlconnection_provider_1.rb'
103
109
  autoload :CreateSAMLConnectionProvider2, 'clerk/models/operations/createsamlconnection_provider_2.rb'
104
110
  autoload :CreateSAMLConnectionRequest, 'clerk/models/operations/createsamlconnection_request.rb'
105
111
  autoload :CreateSAMLConnectionResponse, 'clerk/models/operations/createsamlconnection_response.rb'
112
+ autoload :CreateSCIMDirectoryRequest, 'clerk/models/operations/createscimdirectory_request.rb'
113
+ autoload :CreateSCIMDirectoryResponse, 'clerk/models/operations/createscimdirectory_response.rb'
114
+ autoload :CreateSCIMGroupRoleMappingRequestBody, 'clerk/models/operations/createscimgrouprolemapping_requestbody.rb'
115
+ autoload :CreateSCIMGroupRoleMappingRequest, 'clerk/models/operations/createscimgrouprolemapping_request.rb'
116
+ autoload :CreateSCIMGroupRoleMappingResponse, 'clerk/models/operations/createscimgrouprolemapping_response.rb'
106
117
  autoload :CreateSessionTokenFromTemplateRequestBody, 'clerk/models/operations/createsessiontokenfromtemplate_requestbody.rb'
107
118
  autoload :CreateSessionTokenFromTemplateResponseBody, 'clerk/models/operations/createsessiontokenfromtemplate_responsebody.rb'
108
119
  autoload :CreateSessionTokenFromTemplateObject, 'clerk/models/operations/createsessiontokenfromtemplate_object.rb'
@@ -162,6 +173,10 @@ module Clerk
162
173
  autoload :DeleteRedirectURLResponse, 'clerk/models/operations/deleteredirecturl_response.rb'
163
174
  autoload :DeleteSAMLConnectionRequest, 'clerk/models/operations/deletesamlconnection_request.rb'
164
175
  autoload :DeleteSAMLConnectionResponse, 'clerk/models/operations/deletesamlconnection_response.rb'
176
+ autoload :DeleteSCIMDirectoryRequest, 'clerk/models/operations/deletescimdirectory_request.rb'
177
+ autoload :DeleteSCIMDirectoryResponse, 'clerk/models/operations/deletescimdirectory_response.rb'
178
+ autoload :DeleteSCIMGroupRoleMappingRequest, 'clerk/models/operations/deletescimgrouprolemapping_request.rb'
179
+ autoload :DeleteSCIMGroupRoleMappingResponse, 'clerk/models/operations/deletescimgrouprolemapping_response.rb'
165
180
  autoload :DeleteSvixAppResponse, 'clerk/models/operations/deletesvixapp_response.rb'
166
181
  autoload :DeleteTOTPResponseBody, 'clerk/models/operations/deletetotp_responsebody.rb'
167
182
  autoload :DeleteTOTPRequest, 'clerk/models/operations/deletetotp_request.rb'
@@ -239,6 +254,8 @@ module Clerk
239
254
  autoload :GetRoleSetResponse, 'clerk/models/operations/getroleset_response.rb'
240
255
  autoload :GetSAMLConnectionRequest, 'clerk/models/operations/getsamlconnection_request.rb'
241
256
  autoload :GetSAMLConnectionResponse, 'clerk/models/operations/getsamlconnection_response.rb'
257
+ autoload :GetSCIMDirectoryRequest, 'clerk/models/operations/getscimdirectory_request.rb'
258
+ autoload :GetSCIMDirectoryResponse, 'clerk/models/operations/getscimdirectory_response.rb'
242
259
  autoload :GetSessionListRequest, 'clerk/models/operations/getsessionlist_request.rb'
243
260
  autoload :GetSessionListResponse, 'clerk/models/operations/getsessionlist_response.rb'
244
261
  autoload :GetSessionListStatus, 'clerk/models/operations/getsessionlist_status.rb'
@@ -311,6 +328,12 @@ module Clerk
311
328
  autoload :ListRoleSetsResponse, 'clerk/models/operations/listrolesets_response.rb'
312
329
  autoload :ListSAMLConnectionsRequest, 'clerk/models/operations/listsamlconnections_request.rb'
313
330
  autoload :ListSAMLConnectionsResponse, 'clerk/models/operations/listsamlconnections_response.rb'
331
+ autoload :ListSCIMDirectoriesRequest, 'clerk/models/operations/listscimdirectories_request.rb'
332
+ autoload :ListSCIMDirectoriesResponse, 'clerk/models/operations/listscimdirectories_response.rb'
333
+ autoload :ListSCIMGroupRoleMappingsRequest, 'clerk/models/operations/listscimgrouprolemappings_request.rb'
334
+ autoload :ListSCIMGroupRoleMappingsResponse, 'clerk/models/operations/listscimgrouprolemappings_response.rb'
335
+ autoload :ListUserTrustedDevicesRequest, 'clerk/models/operations/listusertrusteddevices_request.rb'
336
+ autoload :ListUserTrustedDevicesResponse, 'clerk/models/operations/listusertrusteddevices_response.rb'
314
337
  autoload :ListWaitlistEntriesRequest, 'clerk/models/operations/listwaitlistentries_request.rb'
315
338
  autoload :ListWaitlistEntriesResponse, 'clerk/models/operations/listwaitlistentries_response.rb'
316
339
  autoload :ListWaitlistEntriesStatus, 'clerk/models/operations/listwaitlistentries_status.rb'
@@ -334,6 +357,9 @@ module Clerk
334
357
  autoload :RejectWaitlistEntryResponse, 'clerk/models/operations/rejectwaitlistentry_response.rb'
335
358
  autoload :RemovePermissionFromOrganizationRoleRequest, 'clerk/models/operations/removepermissionfromorganizationrole_request.rb'
336
359
  autoload :RemovePermissionFromOrganizationRoleResponse, 'clerk/models/operations/removepermissionfromorganizationrole_response.rb'
360
+ autoload :RemoveUserPasswordRequestBody, 'clerk/models/operations/removeuserpassword_requestbody.rb'
361
+ autoload :RemoveUserPasswordRequest, 'clerk/models/operations/removeuserpassword_request.rb'
362
+ autoload :RemoveUserPasswordResponse, 'clerk/models/operations/removeuserpassword_response.rb'
337
363
  autoload :ReplaceOrganizationMetadataRequestBody, 'clerk/models/operations/replaceorganizationmetadata_requestbody.rb'
338
364
  autoload :ReplaceOrganizationMetadataRequest, 'clerk/models/operations/replaceorganizationmetadata_request.rb'
339
365
  autoload :ReplaceOrganizationMetadataResponse, 'clerk/models/operations/replaceorganizationmetadata_response.rb'
@@ -343,6 +369,9 @@ module Clerk
343
369
  autoload :ReplaceRoleSetRequestBody, 'clerk/models/operations/replaceroleset_requestbody.rb'
344
370
  autoload :ReplaceRoleSetRequest, 'clerk/models/operations/replaceroleset_request.rb'
345
371
  autoload :ReplaceRoleSetResponse, 'clerk/models/operations/replaceroleset_response.rb'
372
+ autoload :ReplaceSCIMGroupRoleMappingsRequestBody, 'clerk/models/operations/replacescimgrouprolemappings_requestbody.rb'
373
+ autoload :ReplaceSCIMGroupRoleMappingsRequest, 'clerk/models/operations/replacescimgrouprolemappings_request.rb'
374
+ autoload :ReplaceSCIMGroupRoleMappingsResponse, 'clerk/models/operations/replacescimgrouprolemappings_response.rb'
346
375
  autoload :ReplaceUserEmailAddressRequestBody, 'clerk/models/operations/replaceuseremailaddress_requestbody.rb'
347
376
  autoload :ReplaceUserEmailAddressIdentificationStatus, 'clerk/models/operations/replaceuseremailaddress_identification_status.rb'
348
377
  autoload :ReplaceUserEmailAddressRequest, 'clerk/models/operations/replaceuseremailaddress_request.rb'
@@ -364,6 +393,9 @@ module Clerk
364
393
  autoload :RevokeAgentTaskResponse, 'clerk/models/operations/revokeagenttask_response.rb'
365
394
  autoload :RevokeInvitationRequest, 'clerk/models/operations/revokeinvitation_request.rb'
366
395
  autoload :RevokeInvitationResponse, 'clerk/models/operations/revokeinvitation_response.rb'
396
+ autoload :RevokeOAuthApplicationTokenRequestBody, 'clerk/models/operations/revokeoauthapplicationtoken_requestbody.rb'
397
+ autoload :RevokeOAuthApplicationTokenRequest, 'clerk/models/operations/revokeoauthapplicationtoken_request.rb'
398
+ autoload :RevokeOAuthApplicationTokenResponse, 'clerk/models/operations/revokeoauthapplicationtoken_response.rb'
367
399
  autoload :RevokeOrganizationInvitationRequestBody, 'clerk/models/operations/revokeorganizationinvitation_requestbody.rb'
368
400
  autoload :RevokeOrganizationInvitationRequest, 'clerk/models/operations/revokeorganizationinvitation_request.rb'
369
401
  autoload :RevokeOrganizationInvitationResponse, 'clerk/models/operations/revokeorganizationinvitation_response.rb'
@@ -371,11 +403,15 @@ module Clerk
371
403
  autoload :RevokeSessionResponse, 'clerk/models/operations/revokesession_response.rb'
372
404
  autoload :RevokeSignInTokenRequest, 'clerk/models/operations/revokesignintoken_request.rb'
373
405
  autoload :RevokeSignInTokenResponse, 'clerk/models/operations/revokesignintoken_response.rb'
406
+ autoload :RevokeUserTrustedDeviceRequest, 'clerk/models/operations/revokeusertrusteddevice_request.rb'
407
+ autoload :RevokeUserTrustedDeviceResponse, 'clerk/models/operations/revokeusertrusteddevice_response.rb'
374
408
  autoload :RotateMachineSecretKeyRequestBody, 'clerk/models/operations/rotatemachinesecretkey_requestbody.rb'
375
409
  autoload :RotateMachineSecretKeyRequest, 'clerk/models/operations/rotatemachinesecretkey_request.rb'
376
410
  autoload :RotateMachineSecretKeyResponse, 'clerk/models/operations/rotatemachinesecretkey_response.rb'
377
411
  autoload :RotateOAuthApplicationSecretRequest, 'clerk/models/operations/rotateoauthapplicationsecret_request.rb'
378
412
  autoload :RotateOAuthApplicationSecretResponse, 'clerk/models/operations/rotateoauthapplicationsecret_response.rb'
413
+ autoload :RotateSCIMDirectoryAPIKeyRequest, 'clerk/models/operations/rotatescimdirectoryapikey_request.rb'
414
+ autoload :RotateSCIMDirectoryAPIKeyResponse, 'clerk/models/operations/rotatescimdirectoryapikey_response.rb'
379
415
  autoload :SetUserPasswordCompromisedRequestBody, 'clerk/models/operations/setuserpasswordcompromised_requestbody.rb'
380
416
  autoload :SetUserPasswordCompromisedRequest, 'clerk/models/operations/setuserpasswordcompromised_request.rb'
381
417
  autoload :SetUserPasswordCompromisedResponse, 'clerk/models/operations/setuserpasswordcompromised_response.rb'
@@ -402,6 +438,8 @@ module Clerk
402
438
  autoload :UpdateEnterpriseConnectionRequestBody, 'clerk/models/operations/updateenterpriseconnection_requestbody.rb'
403
439
  autoload :UpdateEnterpriseConnectionAttributeMapping, 'clerk/models/operations/updateenterpriseconnection_attribute_mapping.rb'
404
440
  autoload :UpdateEnterpriseConnectionCustomAttribute, 'clerk/models/operations/updateenterpriseconnection_custom_attribute.rb'
441
+ autoload :UpdateEnterpriseConnectionLoginHint, 'clerk/models/operations/updateenterpriseconnection_login_hint.rb'
442
+ autoload :UpdateEnterpriseConnectionMode, 'clerk/models/operations/updateenterpriseconnection_mode.rb'
405
443
  autoload :UpdateEnterpriseConnectionOidc, 'clerk/models/operations/updateenterpriseconnection_oidc.rb'
406
444
  autoload :UpdateEnterpriseConnectionRequest, 'clerk/models/operations/updateenterpriseconnection_request.rb'
407
445
  autoload :UpdateEnterpriseConnectionResponse, 'clerk/models/operations/updateenterpriseconnection_response.rb'
@@ -459,8 +497,13 @@ module Clerk
459
497
  autoload :UpdateRoleSetType, 'clerk/models/operations/updateroleset_type.rb'
460
498
  autoload :UpdateSAMLConnectionRequestBody, 'clerk/models/operations/updatesamlconnection_requestbody.rb'
461
499
  autoload :UpdateSAMLConnectionAttributeMapping, 'clerk/models/operations/updatesamlconnection_attribute_mapping.rb'
500
+ autoload :UpdateSAMLConnectionLoginHint, 'clerk/models/operations/updatesamlconnection_login_hint.rb'
501
+ autoload :UpdateSAMLConnectionMode, 'clerk/models/operations/updatesamlconnection_mode.rb'
462
502
  autoload :UpdateSAMLConnectionRequest, 'clerk/models/operations/updatesamlconnection_request.rb'
463
503
  autoload :UpdateSAMLConnectionResponse, 'clerk/models/operations/updatesamlconnection_response.rb'
504
+ autoload :UpdateSCIMDirectoryRequestBody, 'clerk/models/operations/updatescimdirectory_requestbody.rb'
505
+ autoload :UpdateSCIMDirectoryRequest, 'clerk/models/operations/updatescimdirectory_request.rb'
506
+ autoload :UpdateSCIMDirectoryResponse, 'clerk/models/operations/updatescimdirectory_response.rb'
464
507
  autoload :UpdateSignUpRequestBody, 'clerk/models/operations/updatesignup_requestbody.rb'
465
508
  autoload :UpdateSignUpRequest, 'clerk/models/operations/updatesignup_request.rb'
466
509
  autoload :UpdateSignUpResponse, 'clerk/models/operations/updatesignup_response.rb'
@@ -567,8 +610,10 @@ module Clerk
567
610
  autoload :GetM2MTokensObject, 'clerk/models/operations/getm2mtokens_object.rb'
568
611
  autoload :GetM2MTokensRequest, 'clerk/models/operations/getm2mtokens_request.rb'
569
612
  autoload :GetM2MTokensResponse, 'clerk/models/operations/getm2mtokens_response.rb'
613
+ autoload :GroupRoleMapping, 'clerk/models/operations/group_role_mapping.rb'
570
614
  autoload :IncludeInvalid, 'clerk/models/operations/include_invalid.rb'
571
615
  autoload :M2mToken, 'clerk/models/operations/m2m_token.rb'
616
+ autoload :Mapping, 'clerk/models/operations/mapping.rb'
572
617
  autoload :OnBehalfOf, 'clerk/models/operations/on_behalf_of.rb'
573
618
  autoload :Permissions, 'clerk/models/operations/permissions.rb'
574
619
  autoload :PhoneNumberIdentificationStatus, 'clerk/models/operations/phone_number_identification_status.rb'
@@ -79,10 +79,10 @@ module Clerk
79
79
 
80
80
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
81
81
  timeout ||= @sdk_configuration.timeout
82
-
82
+
83
83
 
84
84
  connection = @sdk_configuration.client.dup
85
- connection.request :retry, retry_options
85
+ connection.use Utils::RetryMiddleware, retry_options
86
86
 
87
87
  hook_ctx = SDKHooks::HookContext.new(
88
88
  config: @sdk_configuration,
@@ -95,7 +95,7 @@ module Clerk
95
95
  error = nil
96
96
  http_response = nil
97
97
 
98
-
98
+
99
99
  begin
100
100
  http_response = connection.post(url) do |req|
101
101
  req.body = body
@@ -132,13 +132,13 @@ module Clerk
132
132
  response: http_response
133
133
  )
134
134
  end
135
-
135
+
136
136
  if http_response.nil?
137
137
  raise error if !error.nil?
138
138
  raise 'no response'
139
139
  end
140
140
  end
141
-
141
+
142
142
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
143
143
  if Utils.match_status_code(http_response.status, ['200'])
144
144
  if Utils.match_content_type(content_type, 'application/json')
@@ -79,10 +79,10 @@ module Clerk
79
79
 
80
80
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
81
81
  timeout ||= @sdk_configuration.timeout
82
-
82
+
83
83
 
84
84
  connection = @sdk_configuration.client.dup
85
- connection.request :retry, retry_options
85
+ connection.use Utils::RetryMiddleware, retry_options
86
86
 
87
87
  hook_ctx = SDKHooks::HookContext.new(
88
88
  config: @sdk_configuration,
@@ -95,7 +95,7 @@ module Clerk
95
95
  error = nil
96
96
  http_response = nil
97
97
 
98
-
98
+
99
99
  begin
100
100
  http_response = connection.get(url) do |req|
101
101
  req.headers.merge!(headers)
@@ -132,13 +132,13 @@ module Clerk
132
132
  response: http_response
133
133
  )
134
134
  end
135
-
135
+
136
136
  if http_response.nil?
137
137
  raise error if !error.nil?
138
138
  raise 'no response'
139
139
  end
140
140
  end
141
-
141
+
142
142
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
143
143
  if Utils.match_status_code(http_response.status, ['200'])
144
144
  if Utils.match_content_type(content_type, 'application/json')
@@ -228,10 +228,10 @@ module Clerk
228
228
 
229
229
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
230
230
  timeout ||= @sdk_configuration.timeout
231
-
231
+
232
232
 
233
233
  connection = @sdk_configuration.client.dup
234
- connection.request :retry, retry_options
234
+ connection.use Utils::RetryMiddleware, retry_options
235
235
 
236
236
  hook_ctx = SDKHooks::HookContext.new(
237
237
  config: @sdk_configuration,
@@ -244,7 +244,7 @@ module Clerk
244
244
  error = nil
245
245
  http_response = nil
246
246
 
247
-
247
+
248
248
  begin
249
249
  http_response = connection.post(url) do |req|
250
250
  req.body = body
@@ -281,13 +281,13 @@ module Clerk
281
281
  response: http_response
282
282
  )
283
283
  end
284
-
284
+
285
285
  if http_response.nil?
286
286
  raise error if !error.nil?
287
287
  raise 'no response'
288
288
  end
289
289
  end
290
-
290
+
291
291
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
292
292
  if Utils.match_status_code(http_response.status, ['200'])
293
293
  if Utils.match_content_type(content_type, 'application/json')
@@ -373,10 +373,10 @@ module Clerk
373
373
 
374
374
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
375
375
  timeout ||= @sdk_configuration.timeout
376
-
376
+
377
377
 
378
378
  connection = @sdk_configuration.client.dup
379
- connection.request :retry, retry_options
379
+ connection.use Utils::RetryMiddleware, retry_options
380
380
 
381
381
  hook_ctx = SDKHooks::HookContext.new(
382
382
  config: @sdk_configuration,
@@ -389,7 +389,7 @@ module Clerk
389
389
  error = nil
390
390
  http_response = nil
391
391
 
392
-
392
+
393
393
  begin
394
394
  http_response = connection.get(url) do |req|
395
395
  req.headers.merge!(headers)
@@ -425,13 +425,13 @@ module Clerk
425
425
  response: http_response
426
426
  )
427
427
  end
428
-
428
+
429
429
  if http_response.nil?
430
430
  raise error if !error.nil?
431
431
  raise 'no response'
432
432
  end
433
433
  end
434
-
434
+
435
435
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
436
436
  if Utils.match_status_code(http_response.status, ['200'])
437
437
  if Utils.match_content_type(content_type, 'application/json')
@@ -529,10 +529,10 @@ module Clerk
529
529
 
530
530
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
531
531
  timeout ||= @sdk_configuration.timeout
532
-
532
+
533
533
 
534
534
  connection = @sdk_configuration.client.dup
535
- connection.request :retry, retry_options
535
+ connection.use Utils::RetryMiddleware, retry_options
536
536
 
537
537
  hook_ctx = SDKHooks::HookContext.new(
538
538
  config: @sdk_configuration,
@@ -545,7 +545,7 @@ module Clerk
545
545
  error = nil
546
546
  http_response = nil
547
547
 
548
-
548
+
549
549
  begin
550
550
  http_response = connection.patch(url) do |req|
551
551
  req.body = body
@@ -582,13 +582,13 @@ module Clerk
582
582
  response: http_response
583
583
  )
584
584
  end
585
-
585
+
586
586
  if http_response.nil?
587
587
  raise error if !error.nil?
588
588
  raise 'no response'
589
589
  end
590
590
  end
591
-
591
+
592
592
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
593
593
  if Utils.match_status_code(http_response.status, ['200'])
594
594
  if Utils.match_content_type(content_type, 'application/json')
@@ -675,10 +675,10 @@ module Clerk
675
675
 
676
676
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
677
677
  timeout ||= @sdk_configuration.timeout
678
-
678
+
679
679
 
680
680
  connection = @sdk_configuration.client.dup
681
- connection.request :retry, retry_options
681
+ connection.use Utils::RetryMiddleware, retry_options
682
682
 
683
683
  hook_ctx = SDKHooks::HookContext.new(
684
684
  config: @sdk_configuration,
@@ -691,7 +691,7 @@ module Clerk
691
691
  error = nil
692
692
  http_response = nil
693
693
 
694
-
694
+
695
695
  begin
696
696
  http_response = connection.delete(url) do |req|
697
697
  req.headers.merge!(headers)
@@ -727,13 +727,13 @@ module Clerk
727
727
  response: http_response
728
728
  )
729
729
  end
730
-
730
+
731
731
  if http_response.nil?
732
732
  raise error if !error.nil?
733
733
  raise 'no response'
734
734
  end
735
735
  end
736
-
736
+
737
737
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
738
738
  if Utils.match_status_code(http_response.status, ['200'])
739
739
  if Utils.match_content_type(content_type, 'application/json')
@@ -833,10 +833,10 @@ module Clerk
833
833
 
834
834
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
835
835
  timeout ||= @sdk_configuration.timeout
836
-
836
+
837
837
 
838
838
  connection = @sdk_configuration.client.dup
839
- connection.request :retry, retry_options
839
+ connection.use Utils::RetryMiddleware, retry_options
840
840
 
841
841
  hook_ctx = SDKHooks::HookContext.new(
842
842
  config: @sdk_configuration,
@@ -849,7 +849,7 @@ module Clerk
849
849
  error = nil
850
850
  http_response = nil
851
851
 
852
-
852
+
853
853
  begin
854
854
  http_response = connection.put(url) do |req|
855
855
  req.body = body
@@ -886,13 +886,13 @@ module Clerk
886
886
  response: http_response
887
887
  )
888
888
  end
889
-
889
+
890
890
  if http_response.nil?
891
891
  raise error if !error.nil?
892
892
  raise 'no response'
893
893
  end
894
894
  end
895
-
895
+
896
896
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
897
897
  if Utils.match_status_code(http_response.status, ['200'])
898
898
  if Utils.match_content_type(content_type, 'application/json')
@@ -979,10 +979,10 @@ module Clerk
979
979
 
980
980
  timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
981
981
  timeout ||= @sdk_configuration.timeout
982
-
982
+
983
983
 
984
984
  connection = @sdk_configuration.client.dup
985
- connection.request :retry, retry_options
985
+ connection.use Utils::RetryMiddleware, retry_options
986
986
 
987
987
  hook_ctx = SDKHooks::HookContext.new(
988
988
  config: @sdk_configuration,
@@ -995,7 +995,7 @@ module Clerk
995
995
  error = nil
996
996
  http_response = nil
997
997
 
998
-
998
+
999
999
  begin
1000
1000
  http_response = connection.post(url) do |req|
1001
1001
  req.headers.merge!(headers)
@@ -1031,13 +1031,13 @@ module Clerk
1031
1031
  response: http_response
1032
1032
  )
1033
1033
  end
1034
-
1034
+
1035
1035
  if http_response.nil?
1036
1036
  raise error if !error.nil?
1037
1037
  raise 'no response'
1038
1038
  end
1039
1039
  end
1040
-
1040
+
1041
1041
  content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
1042
1042
  if Utils.match_status_code(http_response.status, ['200'])
1043
1043
  if Utils.match_content_type(content_type, 'application/json')
@@ -1084,5 +1084,155 @@ module Clerk
1084
1084
 
1085
1085
  end
1086
1086
  end
1087
+
1088
+
1089
+
1090
+ def revoke_token(body:, oauth_application_id:, retries: nil, timeout_ms: nil, http_headers: nil)
1091
+ # revoke_token - Revoke an OAuth application token
1092
+ # Revoke both OAuth access token and refresh token for the associated grant for the given OAuth application.
1093
+ # The request may specify either token.
1094
+ # JWT access tokens cannot be revoked.
1095
+ request = Models::Operations::RevokeOAuthApplicationTokenRequest.new(
1096
+ oauth_application_id: oauth_application_id,
1097
+ body: body
1098
+ )
1099
+ url, params = @sdk_configuration.get_server_details
1100
+ base_url = Utils.template_url(url, params)
1101
+ url = Utils.generate_url(
1102
+ Models::Operations::RevokeOAuthApplicationTokenRequest,
1103
+ base_url,
1104
+ '/oauth_applications/{oauth_application_id}/revoke_token',
1105
+ request
1106
+ )
1107
+ headers = {}
1108
+
1109
+ req_content_type, data, form = Utils.serialize_request_body(request, false, false, :body, :json)
1110
+ headers['content-type'] = req_content_type
1111
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
1112
+
1113
+ if form && !form.empty?
1114
+ body = Utils.encode_form(form)
1115
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
1116
+ body = URI.encode_www_form(data)
1117
+ else
1118
+ body = data
1119
+ end
1120
+ headers['Accept'] = 'application/json'
1121
+ headers['user-agent'] = @sdk_configuration.user_agent
1122
+ retries ||= @sdk_configuration.retry_config
1123
+ retries ||= Utils::RetryConfig.new(
1124
+ backoff: Utils::BackoffStrategy.new(
1125
+ exponent: 1.5,
1126
+ initial_interval: 500,
1127
+ max_elapsed_time: 3_600_000,
1128
+ max_interval: 60_000
1129
+ ),
1130
+ retry_connection_errors: true,
1131
+ strategy: 'backoff'
1132
+ )
1133
+ retry_options = retries.to_faraday_retry_options(initial_time: Time.now)
1134
+ retry_options[:retry_statuses] = [500, 501, 502, 503, 504, 505]
1135
+
1136
+ security = @sdk_configuration.security_source&.call
1137
+
1138
+ timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
1139
+ timeout ||= @sdk_configuration.timeout
1140
+
1141
+
1142
+ connection = @sdk_configuration.client.dup
1143
+ connection.use Utils::RetryMiddleware, retry_options
1144
+
1145
+ hook_ctx = SDKHooks::HookContext.new(
1146
+ config: @sdk_configuration,
1147
+ base_url: base_url,
1148
+ oauth2_scopes: nil,
1149
+ operation_id: 'RevokeOAuthApplicationToken',
1150
+ security_source: @sdk_configuration.security_source
1151
+ )
1152
+
1153
+ error = nil
1154
+ http_response = nil
1155
+
1156
+
1157
+ begin
1158
+ http_response = connection.post(url) do |req|
1159
+ req.body = body
1160
+ req.headers.merge!(headers)
1161
+ req.options.timeout = timeout unless timeout.nil?
1162
+ Utils.configure_request_security(req, security)
1163
+ http_headers&.each do |key, value|
1164
+ req.headers[key.to_s] = value
1165
+ end
1166
+
1167
+ @sdk_configuration.hooks.before_request(
1168
+ hook_ctx: SDKHooks::BeforeRequestHookContext.new(
1169
+ hook_ctx: hook_ctx
1170
+ ),
1171
+ request: req
1172
+ )
1173
+ end
1174
+ rescue StandardError => e
1175
+ error = e
1176
+ ensure
1177
+ if http_response.nil? || Utils.error_status?(http_response.status)
1178
+ http_response = @sdk_configuration.hooks.after_error(
1179
+ error: error,
1180
+ hook_ctx: SDKHooks::AfterErrorHookContext.new(
1181
+ hook_ctx: hook_ctx
1182
+ ),
1183
+ response: http_response
1184
+ )
1185
+ else
1186
+ http_response = @sdk_configuration.hooks.after_success(
1187
+ hook_ctx: SDKHooks::AfterSuccessHookContext.new(
1188
+ hook_ctx: hook_ctx
1189
+ ),
1190
+ response: http_response
1191
+ )
1192
+ end
1193
+
1194
+ if http_response.nil?
1195
+ raise error if !error.nil?
1196
+ raise 'no response'
1197
+ end
1198
+ end
1199
+
1200
+ content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream')
1201
+ if Utils.match_status_code(http_response.status, ['204'])
1202
+ http_response = @sdk_configuration.hooks.after_success(
1203
+ hook_ctx: SDKHooks::AfterSuccessHookContext.new(
1204
+ hook_ctx: hook_ctx
1205
+ ),
1206
+ response: http_response
1207
+ )
1208
+ return Models::Operations::RevokeOAuthApplicationTokenResponse.new(
1209
+ status_code: http_response.status,
1210
+ content_type: content_type,
1211
+ raw_response: http_response
1212
+ )
1213
+ elsif Utils.match_status_code(http_response.status, ['400', '403', '404', '422'])
1214
+ if Utils.match_content_type(content_type, 'application/json')
1215
+ http_response = @sdk_configuration.hooks.after_success(
1216
+ hook_ctx: SDKHooks::AfterSuccessHookContext.new(
1217
+ hook_ctx: hook_ctx
1218
+ ),
1219
+ response: http_response
1220
+ )
1221
+ response_data = http_response.env.response_body
1222
+ obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ClerkErrors)
1223
+ obj.raw_response = http_response
1224
+ raise obj
1225
+ else
1226
+ 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'
1227
+ end
1228
+ elsif Utils.match_status_code(http_response.status, ['4XX'])
1229
+ raise ::Clerk::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
1230
+ elsif Utils.match_status_code(http_response.status, ['5XX'])
1231
+ raise ::Clerk::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred'
1232
+ else
1233
+ 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'
1234
+
1235
+ end
1236
+ end
1087
1237
  end
1088
1238
  end