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.
Files changed (345) 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/replaceorganizationmetadata_request.rb +36 -0
  231. data/lib/clerk/models/operations/replaceorganizationmetadata_request.rbi +15 -0
  232. data/lib/clerk/models/operations/replaceorganizationmetadata_requestbody.rb +38 -0
  233. data/lib/clerk/models/operations/replaceorganizationmetadata_requestbody.rbi +15 -0
  234. data/lib/clerk/models/operations/replaceorganizationmetadata_response.rb +44 -0
  235. data/lib/clerk/models/operations/replaceorganizationmetadata_response.rbi +19 -0
  236. data/lib/clerk/models/operations/replacescimgrouprolemappings_request.rb +36 -0
  237. data/lib/clerk/models/operations/replacescimgrouprolemappings_request.rbi +15 -0
  238. data/lib/clerk/models/operations/replacescimgrouprolemappings_requestbody.rb +32 -0
  239. data/lib/clerk/models/operations/replacescimgrouprolemappings_requestbody.rbi +13 -0
  240. data/lib/clerk/models/operations/replacescimgrouprolemappings_response.rb +44 -0
  241. data/lib/clerk/models/operations/replacescimgrouprolemappings_response.rbi +19 -0
  242. data/lib/clerk/models/operations/replaceuseremailaddress_identification_status.rb +10 -2
  243. data/lib/clerk/models/operations/replaceuseremailaddress_requestbody.rb +16 -3
  244. data/lib/clerk/models/operations/replaceuseremailaddress_requestbody.rbi +2 -0
  245. data/lib/clerk/models/operations/replaceuserphonenumber_identification_status.rb +10 -2
  246. data/lib/clerk/models/operations/replaceuserphonenumber_requestbody.rb +9 -2
  247. data/lib/clerk/models/operations/revokeoauthapplicationtoken_request.rb +36 -0
  248. data/lib/clerk/models/operations/revokeoauthapplicationtoken_request.rbi +15 -0
  249. data/lib/clerk/models/operations/revokeoauthapplicationtoken_requestbody.rb +32 -0
  250. data/lib/clerk/models/operations/revokeoauthapplicationtoken_requestbody.rbi +13 -0
  251. data/lib/clerk/models/operations/revokeoauthapplicationtoken_response.rb +40 -0
  252. data/lib/clerk/models/operations/revokeoauthapplicationtoken_response.rbi +17 -0
  253. data/lib/clerk/models/operations/revokeusertrusteddevice_request.rb +36 -0
  254. data/lib/clerk/models/operations/revokeusertrusteddevice_request.rbi +15 -0
  255. data/lib/clerk/models/operations/revokeusertrusteddevice_response.rb +44 -0
  256. data/lib/clerk/models/operations/revokeusertrusteddevice_response.rbi +19 -0
  257. data/lib/clerk/models/operations/rotatescimdirectoryapikey_request.rb +32 -0
  258. data/lib/clerk/models/operations/rotatescimdirectoryapikey_request.rbi +13 -0
  259. data/lib/clerk/models/operations/rotatescimdirectoryapikey_response.rb +44 -0
  260. data/lib/clerk/models/operations/rotatescimdirectoryapikey_response.rbi +19 -0
  261. data/lib/clerk/models/operations/updateemailaddress_requestbody.rb +7 -1
  262. data/lib/clerk/models/operations/updateemailaddress_requestbody.rbi +2 -0
  263. data/lib/clerk/models/operations/updateenterpriseconnection_login_hint.rb +36 -0
  264. data/lib/clerk/models/operations/updateenterpriseconnection_login_hint.rbi +15 -0
  265. data/lib/clerk/models/operations/updateenterpriseconnection_mode.rb +21 -0
  266. data/lib/clerk/models/operations/updateenterpriseconnection_mode.rbi +11 -0
  267. data/lib/clerk/models/operations/updateenterpriseconnection_saml.rb +5 -1
  268. data/lib/clerk/models/operations/updateenterpriseconnection_saml.rbi +2 -0
  269. data/lib/clerk/models/operations/updateinstanceoauthapplicationsettings_request.rb +17 -1
  270. data/lib/clerk/models/operations/updateinstanceoauthapplicationsettings_request.rbi +8 -0
  271. data/lib/clerk/models/operations/updateorganization_requestbody.rb +1 -9
  272. data/lib/clerk/models/operations/updateorganization_requestbody.rbi +0 -4
  273. data/lib/clerk/models/operations/updateorganizationdomain_requestbody.rb +1 -1
  274. data/lib/clerk/models/operations/updatesamlconnection_login_hint.rb +36 -0
  275. data/lib/clerk/models/operations/updatesamlconnection_login_hint.rbi +15 -0
  276. data/lib/clerk/models/operations/updatesamlconnection_mode.rb +21 -0
  277. data/lib/clerk/models/operations/updatesamlconnection_mode.rbi +11 -0
  278. data/lib/clerk/models/operations/updatesamlconnection_requestbody.rb +5 -1
  279. data/lib/clerk/models/operations/updatesamlconnection_requestbody.rbi +2 -0
  280. data/lib/clerk/models/operations/updatescimdirectory_request.rb +36 -0
  281. data/lib/clerk/models/operations/updatescimdirectory_request.rbi +15 -0
  282. data/lib/clerk/models/operations/updatescimdirectory_requestbody.rb +49 -0
  283. data/lib/clerk/models/operations/updatescimdirectory_requestbody.rbi +21 -0
  284. data/lib/clerk/models/operations/updatescimdirectory_response.rb +44 -0
  285. data/lib/clerk/models/operations/updatescimdirectory_response.rbi +19 -0
  286. data/lib/clerk/models/operations/updateuser_requestbody.rb +3 -22
  287. data/lib/clerk/models/operations/updateuser_requestbody.rbi +0 -6
  288. data/lib/clerk/models/operations.rb +48 -0
  289. data/lib/clerk/oauthaccesstokens.rb +5 -5
  290. data/lib/clerk/oauthapplications.rb +185 -35
  291. data/lib/clerk/openapiclient.rb +2 -1
  292. data/lib/clerk/organizationdomains.rb +32 -32
  293. data/lib/clerk/organizationinvitations.rb +35 -35
  294. data/lib/clerk/organizationmemberships.rb +25 -25
  295. data/lib/clerk/organizationpermissions.rb +25 -25
  296. data/lib/clerk/organizationroles.rb +35 -35
  297. data/lib/clerk/organizations.rb +221 -56
  298. data/lib/clerk/phonenumbers.rb +43 -36
  299. data/lib/clerk/proxy.rb +3 -3
  300. data/lib/clerk/proxychecks.rb +5 -5
  301. data/lib/clerk/redirecturls.rb +20 -20
  302. data/lib/clerk/rolesets.rb +35 -35
  303. data/lib/clerk/samlconnections.rb +25 -25
  304. data/lib/clerk/scimdirectories.rb +1531 -0
  305. data/lib/clerk/sdk.rb +23 -5
  306. data/lib/clerk/sdkconfiguration.rb +4 -4
  307. data/lib/clerk/sessions.rb +35 -35
  308. data/lib/clerk/signintokens.rb +11 -11
  309. data/lib/clerk/signups.rb +10 -10
  310. data/lib/clerk/templates.rb +5 -5
  311. data/lib/clerk/testingtokens.rb +5 -5
  312. data/lib/clerk/users.rb +695 -204
  313. data/lib/clerk/utils/retries.rb +43 -1
  314. data/lib/clerk/waitlistentries.rb +30 -30
  315. data/lib/clerk/webhooks.rb +15 -15
  316. data/lib/clerk_sdk_ruby.rb +1 -0
  317. data/test/clerk/jwks_cache_scoping_test.rb +83 -0
  318. data/test/clerk/proxy_test.rb +108 -0
  319. metadata +201 -80
  320. data/lib/clerk/models/components/clerkerror_meta.rb +0 -27
  321. data/lib/clerk/models/components/clerkerrors_meta.rb +0 -27
  322. data/lib/clerk/models/components/emailaddress_verification_saml_meta.rb +0 -27
  323. data/lib/clerk/models/components/emailaddress_verification_saml_meta.rbi +0 -11
  324. data/lib/clerk/models/components/enterpriseaccount_verification_oauth_meta.rb +0 -27
  325. data/lib/clerk/models/components/enterpriseaccount_verification_oauth_meta.rbi +0 -11
  326. data/lib/clerk/models/components/enterpriseaccount_verification_saml_meta.rb +0 -27
  327. data/lib/clerk/models/components/enterpriseaccount_verification_saml_meta.rbi +0 -11
  328. data/lib/clerk/models/components/externalaccountwithverification_verification_oauth_meta.rb +0 -27
  329. data/lib/clerk/models/components/externalaccountwithverification_verification_oauth_meta.rbi +0 -11
  330. data/lib/clerk/models/components/samlaccount_meta.rb +0 -27
  331. data/lib/clerk/models/components/schemas_commerceplan_object.rbi +0 -11
  332. data/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_fee.rbi +0 -19
  333. data/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_monthly_fee.rb +0 -44
  334. data/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_monthly_fee.rbi +0 -19
  335. data/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_amount.rbi +0 -19
  336. data/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercepayer.rbi +0 -11
  337. data/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commerceplan.rbi +0 -11
  338. data/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercesubscriptionitem.rbi +0 -11
  339. data/lib/clerk/models/components/schemas_commercesubscriptionitem_plan_period.rbi +0 -11
  340. data/lib/clerk/models/components/schemas_commercesubscriptionitem_status.rbi +0 -11
  341. data/lib/clerk/models/components/schemas_featureresponse_object.rbi +0 -11
  342. data/lib/clerk/models/components/verification_from_oauth_meta.rb +0 -27
  343. data/lib/clerk/models/components/verification_from_oauth_meta.rbi +0 -11
  344. data/lib/clerk/models/components/verification_google_one_tap_meta.rb +0 -27
  345. data/lib/clerk/models/components/verification_google_one_tap_meta.rbi +0 -11
@@ -48,11 +48,13 @@ module Clerk
48
48
  field :disable_additional_identifications, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('disable_additional_identifications') } }
49
49
  # Whether this connection supports account linking via organization membership
50
50
  field :allow_organization_account_linking, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('allow_organization_account_linking') } }
51
+ # Configuration for the login_hint sent to the IdP on SSO sign-in
52
+ field :login_hint, Crystalline::Nilable.new(Models::Operations::UpdateSAMLConnectionLoginHint), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('login_hint') } }
51
53
  # When enabling the connection, controls behavior when verified domains used for enrollment modes like automatic invitation or automatic suggestion already exist for the same domain. If true, those verified domains are removed and the connection is enabled. If false or omitted, the request fails when any such verified domain exists.
52
54
  field :consent_verified_domains_deletion, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('consent_verified_domains_deletion') } }
53
55
 
54
56
 
55
- def initialize(force_authn: nil, name: nil, domain: nil, domains: nil, idp_entity_id: nil, idp_sso_url: nil, idp_certificate: nil, idp_metadata_url: nil, idp_metadata: nil, organization_id: nil, attribute_mapping: nil, active: nil, sync_user_attributes: nil, allow_subdomains: nil, allow_idp_initiated: nil, disable_additional_identifications: nil, allow_organization_account_linking: nil, consent_verified_domains_deletion: nil)
57
+ def initialize(force_authn: nil, name: nil, domain: nil, domains: nil, idp_entity_id: nil, idp_sso_url: nil, idp_certificate: nil, idp_metadata_url: nil, idp_metadata: nil, organization_id: nil, attribute_mapping: nil, active: nil, sync_user_attributes: nil, allow_subdomains: nil, allow_idp_initiated: nil, disable_additional_identifications: nil, allow_organization_account_linking: nil, login_hint: nil, consent_verified_domains_deletion: nil)
56
58
  @force_authn = force_authn
57
59
  @name = name
58
60
  @domain = domain
@@ -70,6 +72,7 @@ module Clerk
70
72
  @allow_idp_initiated = allow_idp_initiated
71
73
  @disable_additional_identifications = disable_additional_identifications
72
74
  @allow_organization_account_linking = allow_organization_account_linking
75
+ @login_hint = login_hint
73
76
  @consent_verified_domains_deletion = consent_verified_domains_deletion
74
77
  end
75
78
 
@@ -93,6 +96,7 @@ module Clerk
93
96
  return false unless @allow_idp_initiated == other.allow_idp_initiated
94
97
  return false unless @disable_additional_identifications == other.disable_additional_identifications
95
98
  return false unless @allow_organization_account_linking == other.allow_organization_account_linking
99
+ return false unless @login_hint == other.login_hint
96
100
  return false unless @consent_verified_domains_deletion == other.consent_verified_domains_deletion
97
101
  true
98
102
  end
@@ -42,6 +42,8 @@ class Clerk::Models::Operations::UpdateSAMLConnectionRequestBody
42
42
  def disable_additional_identifications=(str_); end
43
43
  def allow_organization_account_linking(); end
44
44
  def allow_organization_account_linking=(str_); end
45
+ def login_hint(); end
46
+ def login_hint=(str_); end
45
47
  def consent_verified_domains_deletion(); end
46
48
  def consent_verified_domains_deletion=(str_); end
47
49
  end
@@ -0,0 +1,36 @@
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 UpdateSCIMDirectoryRequest
12
+
13
+ include Crystalline::MetadataFields
14
+
15
+ # The ID of the SCIM directory to update
16
+ field :scim_directory_id, ::String, { 'path_param': { 'field_name': 'scim_directory_id', 'style': 'simple', 'explode': false } }
17
+
18
+ field :body, Crystalline::Nilable.new(Models::Operations::UpdateSCIMDirectoryRequestBody), { 'request': { 'media_type': 'application/json' } }
19
+
20
+
21
+ def initialize(scim_directory_id:, body: nil)
22
+ @scim_directory_id = scim_directory_id
23
+ @body = body
24
+ end
25
+
26
+
27
+ def ==(other)
28
+ return false unless other.is_a? self.class
29
+ return false unless @scim_directory_id == other.scim_directory_id
30
+ return false unless @body == other.body
31
+ true
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,15 @@
1
+ # typed: false
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Clerk::Models::Operations::UpdateSCIMDirectoryRequest
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Clerk::Models::Operations::UpdateSCIMDirectoryRequest
11
+ def scim_directory_id(); end
12
+ def scim_directory_id=(str_); end
13
+ def body(); end
14
+ def body=(str_); end
15
+ end
@@ -0,0 +1,49 @@
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 UpdateSCIMDirectoryRequestBody
12
+
13
+ include Crystalline::MetadataFields
14
+
15
+ # A human-friendly name for the SCIM directory.
16
+ field :name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('name') } }
17
+ # Whether the SCIM directory is enabled.
18
+ field :enabled, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('enabled') } }
19
+ # The identity provider for this SCIM directory.
20
+ field :provider, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('provider') } }
21
+ # Attribute-to-SCIM-path entries to merge into the directory's attribute mapping.
22
+ # Set a key to `null` to remove it from the mapping.
23
+ field :attribute_mapping, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::String)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('attribute_mapping') } }
24
+ # Whether group-to-role mapping is enabled for this SCIM directory.
25
+ field :group_role_mapping_enabled, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('group_role_mapping_enabled') } }
26
+
27
+
28
+ def initialize(name: nil, enabled: nil, provider: nil, attribute_mapping: nil, group_role_mapping_enabled: nil)
29
+ @name = name
30
+ @enabled = enabled
31
+ @provider = provider
32
+ @attribute_mapping = attribute_mapping
33
+ @group_role_mapping_enabled = group_role_mapping_enabled
34
+ end
35
+
36
+
37
+ def ==(other)
38
+ return false unless other.is_a? self.class
39
+ return false unless @name == other.name
40
+ return false unless @enabled == other.enabled
41
+ return false unless @provider == other.provider
42
+ return false unless @attribute_mapping == other.attribute_mapping
43
+ return false unless @group_role_mapping_enabled == other.group_role_mapping_enabled
44
+ true
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,21 @@
1
+ # typed: false
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Clerk::Models::Operations::UpdateSCIMDirectoryRequestBody
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Clerk::Models::Operations::UpdateSCIMDirectoryRequestBody
11
+ def name(); end
12
+ def name=(str_); end
13
+ def enabled(); end
14
+ def enabled=(str_); end
15
+ def provider(); end
16
+ def provider=(str_); end
17
+ def attribute_mapping(); end
18
+ def attribute_mapping=(str_); end
19
+ def group_role_mapping_enabled(); end
20
+ def group_role_mapping_enabled=(str_); end
21
+ end
@@ -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
@@ -27,7 +27,6 @@ module Clerk
27
27
  # Each of the supported hashers expects the incoming digest to be in a particular format. See the [Clerk docs](https://clerk.com/docs/references/backend/user/create-user) for more information.
28
28
  field :password_hasher, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('password_hasher') } }
29
29
  # If Backup Codes are configured on the instance, you can provide them to enable it on the specific user without the need to reset them.
30
- # You must provide the backup codes in plain format or the corresponding bcrypt digest.
31
30
  field :backup_codes, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('backup_codes') } }
32
31
  # The ID of the user as used in your external systems or your previous authentication solution.
33
32
  # Must be unique across your instance.
@@ -60,30 +59,18 @@ module Clerk
60
59
  # Set to `true` to sign out the user from all their active sessions once their password is updated. This parameter can only be used when providing a `password`.
61
60
  field :sign_out_of_other_sessions, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('sign_out_of_other_sessions') } }
62
61
  # In case TOTP is configured on the instance, you can provide the secret to enable it on the specific user without the need to reset it.
63
- # Please note that currently the supported options are:
64
- # * Period: 30 seconds
65
- # * Code length: 6 digits
66
- # * Algorithm: SHA1
67
62
  field :totp_secret, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('totp_secret') } }
68
- # Metadata saved on the user, that is visible to both your Frontend and Backend APIs
69
- field :public_metadata, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('public_metadata') } }
70
- # Metadata saved on the user, that is only visible to your Backend API
71
- field :private_metadata, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('private_metadata') } }
72
- # Metadata saved on the user, that can be updated from both the Frontend and Backend APIs.
73
- # Note: Since this data can be modified from the frontend, it is not guaranteed to be safe.
74
- field :unsafe_metadata, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('unsafe_metadata') } }
75
63
  # If true, the user can delete themselves with the Frontend API.
76
64
  field :delete_self_enabled, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('delete_self_enabled') } }
77
65
  # If true, the user can create organizations with the Frontend API.
78
66
  field :create_organization_enabled, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('create_organization_enabled') } }
79
- # A custom timestamp denoting _when_ the user accepted legal requirements, specified in RFC3339 format (e.g. `2012-10-20T07:15:20.902Z`).
67
+ # A custom timestamp denoting _when_ the user accepted legal requirements, specified in RFC3339 format.
80
68
  field :legal_accepted_at, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('legal_accepted_at') } }
81
69
  # When set to `true` all legal checks are skipped.
82
- # It is not recommended to skip legal checks unless you are migrating a user to Clerk.
83
70
  field :skip_legal_checks, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('skip_legal_checks') } }
84
71
  # The maximum number of organizations the user can create. 0 means unlimited.
85
72
  field :create_organizations_limit, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('create_organizations_limit') } }
86
- # A custom date/time denoting _when_ the user signed up to the application, specified in RFC3339 format (e.g. `2012-10-20T07:15:20.902Z`).
73
+ # A custom date/time denoting _when_ the user signed up to the application.
87
74
  field :created_at, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('created_at') } }
88
75
  # When set to `true`, the user will bypass client trust checks during sign-in.
89
76
  field :bypass_client_trust, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('bypass_client_trust') } }
@@ -92,7 +79,7 @@ module Clerk
92
79
  field :notify_primary_email_address_changed, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('notify_primary_email_address_changed') } }
93
80
 
94
81
 
95
- def initialize(password_digest: nil, password_hasher: nil, backup_codes: nil, external_id: nil, first_name: nil, last_name: nil, locale: nil, primary_email_address_id: nil, primary_phone_number_id: nil, primary_web3_wallet_id: nil, username: nil, profile_image_id: nil, password: nil, skip_password_checks: nil, sign_out_of_other_sessions: nil, totp_secret: nil, public_metadata: nil, private_metadata: nil, unsafe_metadata: nil, delete_self_enabled: nil, create_organization_enabled: nil, legal_accepted_at: nil, skip_legal_checks: nil, create_organizations_limit: nil, created_at: nil, bypass_client_trust: nil, notify_primary_email_address_changed: false)
82
+ def initialize(password_digest: nil, password_hasher: nil, backup_codes: nil, external_id: nil, first_name: nil, last_name: nil, locale: nil, primary_email_address_id: nil, primary_phone_number_id: nil, primary_web3_wallet_id: nil, username: nil, profile_image_id: nil, password: nil, skip_password_checks: nil, sign_out_of_other_sessions: nil, totp_secret: nil, delete_self_enabled: nil, create_organization_enabled: nil, legal_accepted_at: nil, skip_legal_checks: nil, create_organizations_limit: nil, created_at: nil, bypass_client_trust: nil, notify_primary_email_address_changed: false)
96
83
  @password_digest = password_digest
97
84
  @password_hasher = password_hasher
98
85
  @backup_codes = backup_codes
@@ -109,9 +96,6 @@ module Clerk
109
96
  @skip_password_checks = skip_password_checks
110
97
  @sign_out_of_other_sessions = sign_out_of_other_sessions
111
98
  @totp_secret = totp_secret
112
- @public_metadata = public_metadata
113
- @private_metadata = private_metadata
114
- @unsafe_metadata = unsafe_metadata
115
99
  @delete_self_enabled = delete_self_enabled
116
100
  @create_organization_enabled = create_organization_enabled
117
101
  @legal_accepted_at = legal_accepted_at
@@ -141,9 +125,6 @@ module Clerk
141
125
  return false unless @skip_password_checks == other.skip_password_checks
142
126
  return false unless @sign_out_of_other_sessions == other.sign_out_of_other_sessions
143
127
  return false unless @totp_secret == other.totp_secret
144
- return false unless @public_metadata == other.public_metadata
145
- return false unless @private_metadata == other.private_metadata
146
- return false unless @unsafe_metadata == other.unsafe_metadata
147
128
  return false unless @delete_self_enabled == other.delete_self_enabled
148
129
  return false unless @create_organization_enabled == other.create_organization_enabled
149
130
  return false unless @legal_accepted_at == other.legal_accepted_at
@@ -40,12 +40,6 @@ class Clerk::Models::Operations::UpdateUserRequestBody
40
40
  def sign_out_of_other_sessions=(str_); end
41
41
  def totp_secret(); end
42
42
  def totp_secret=(str_); end
43
- def public_metadata(); end
44
- def public_metadata=(str_); end
45
- def private_metadata(); end
46
- def private_metadata=(str_); end
47
- def unsafe_metadata(); end
48
- def unsafe_metadata=(str_); end
49
43
  def delete_self_enabled(); end
50
44
  def delete_self_enabled=(str_); end
51
45
  def create_organization_enabled(); 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,12 +357,21 @@ 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'
363
+ autoload :ReplaceOrganizationMetadataRequestBody, 'clerk/models/operations/replaceorganizationmetadata_requestbody.rb'
364
+ autoload :ReplaceOrganizationMetadataRequest, 'clerk/models/operations/replaceorganizationmetadata_request.rb'
365
+ autoload :ReplaceOrganizationMetadataResponse, 'clerk/models/operations/replaceorganizationmetadata_response.rb'
337
366
  autoload :ReplaceRoleInRoleSetRequestBody, 'clerk/models/operations/replaceroleinroleset_requestbody.rb'
338
367
  autoload :ReplaceRoleInRoleSetRequest, 'clerk/models/operations/replaceroleinroleset_request.rb'
339
368
  autoload :ReplaceRoleInRoleSetResponse, 'clerk/models/operations/replaceroleinroleset_response.rb'
340
369
  autoload :ReplaceRoleSetRequestBody, 'clerk/models/operations/replaceroleset_requestbody.rb'
341
370
  autoload :ReplaceRoleSetRequest, 'clerk/models/operations/replaceroleset_request.rb'
342
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'
343
375
  autoload :ReplaceUserEmailAddressRequestBody, 'clerk/models/operations/replaceuseremailaddress_requestbody.rb'
344
376
  autoload :ReplaceUserEmailAddressIdentificationStatus, 'clerk/models/operations/replaceuseremailaddress_identification_status.rb'
345
377
  autoload :ReplaceUserEmailAddressRequest, 'clerk/models/operations/replaceuseremailaddress_request.rb'
@@ -361,6 +393,9 @@ module Clerk
361
393
  autoload :RevokeAgentTaskResponse, 'clerk/models/operations/revokeagenttask_response.rb'
362
394
  autoload :RevokeInvitationRequest, 'clerk/models/operations/revokeinvitation_request.rb'
363
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'
364
399
  autoload :RevokeOrganizationInvitationRequestBody, 'clerk/models/operations/revokeorganizationinvitation_requestbody.rb'
365
400
  autoload :RevokeOrganizationInvitationRequest, 'clerk/models/operations/revokeorganizationinvitation_request.rb'
366
401
  autoload :RevokeOrganizationInvitationResponse, 'clerk/models/operations/revokeorganizationinvitation_response.rb'
@@ -368,11 +403,15 @@ module Clerk
368
403
  autoload :RevokeSessionResponse, 'clerk/models/operations/revokesession_response.rb'
369
404
  autoload :RevokeSignInTokenRequest, 'clerk/models/operations/revokesignintoken_request.rb'
370
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'
371
408
  autoload :RotateMachineSecretKeyRequestBody, 'clerk/models/operations/rotatemachinesecretkey_requestbody.rb'
372
409
  autoload :RotateMachineSecretKeyRequest, 'clerk/models/operations/rotatemachinesecretkey_request.rb'
373
410
  autoload :RotateMachineSecretKeyResponse, 'clerk/models/operations/rotatemachinesecretkey_response.rb'
374
411
  autoload :RotateOAuthApplicationSecretRequest, 'clerk/models/operations/rotateoauthapplicationsecret_request.rb'
375
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'
376
415
  autoload :SetUserPasswordCompromisedRequestBody, 'clerk/models/operations/setuserpasswordcompromised_requestbody.rb'
377
416
  autoload :SetUserPasswordCompromisedRequest, 'clerk/models/operations/setuserpasswordcompromised_request.rb'
378
417
  autoload :SetUserPasswordCompromisedResponse, 'clerk/models/operations/setuserpasswordcompromised_response.rb'
@@ -399,6 +438,8 @@ module Clerk
399
438
  autoload :UpdateEnterpriseConnectionRequestBody, 'clerk/models/operations/updateenterpriseconnection_requestbody.rb'
400
439
  autoload :UpdateEnterpriseConnectionAttributeMapping, 'clerk/models/operations/updateenterpriseconnection_attribute_mapping.rb'
401
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'
402
443
  autoload :UpdateEnterpriseConnectionOidc, 'clerk/models/operations/updateenterpriseconnection_oidc.rb'
403
444
  autoload :UpdateEnterpriseConnectionRequest, 'clerk/models/operations/updateenterpriseconnection_request.rb'
404
445
  autoload :UpdateEnterpriseConnectionResponse, 'clerk/models/operations/updateenterpriseconnection_response.rb'
@@ -456,8 +497,13 @@ module Clerk
456
497
  autoload :UpdateRoleSetType, 'clerk/models/operations/updateroleset_type.rb'
457
498
  autoload :UpdateSAMLConnectionRequestBody, 'clerk/models/operations/updatesamlconnection_requestbody.rb'
458
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'
459
502
  autoload :UpdateSAMLConnectionRequest, 'clerk/models/operations/updatesamlconnection_request.rb'
460
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'
461
507
  autoload :UpdateSignUpRequestBody, 'clerk/models/operations/updatesignup_requestbody.rb'
462
508
  autoload :UpdateSignUpRequest, 'clerk/models/operations/updatesignup_request.rb'
463
509
  autoload :UpdateSignUpResponse, 'clerk/models/operations/updatesignup_response.rb'
@@ -564,8 +610,10 @@ module Clerk
564
610
  autoload :GetM2MTokensObject, 'clerk/models/operations/getm2mtokens_object.rb'
565
611
  autoload :GetM2MTokensRequest, 'clerk/models/operations/getm2mtokens_request.rb'
566
612
  autoload :GetM2MTokensResponse, 'clerk/models/operations/getm2mtokens_response.rb'
613
+ autoload :GroupRoleMapping, 'clerk/models/operations/group_role_mapping.rb'
567
614
  autoload :IncludeInvalid, 'clerk/models/operations/include_invalid.rb'
568
615
  autoload :M2mToken, 'clerk/models/operations/m2m_token.rb'
616
+ autoload :Mapping, 'clerk/models/operations/mapping.rb'
569
617
  autoload :OnBehalfOf, 'clerk/models/operations/on_behalf_of.rb'
570
618
  autoload :Permissions, 'clerk/models/operations/permissions.rb'
571
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')