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
@@ -13,7 +13,7 @@ module Clerk
13
13
  include Crystalline::MetadataFields
14
14
 
15
15
  # String representing the object's type. Objects of the same type share the same value.
16
- field :object, Models::Components::SchemasCommerceSubscriptionItemObjectCommercePayer, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('object'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::SchemasCommerceSubscriptionItemObjectCommercePayer, false) } }
16
+ field :object, Models::Components::CommerceSubscriptionItem2ObjectCommercePayer, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('object'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::CommerceSubscriptionItem2ObjectCommercePayer, false) } }
17
17
  # Unique identifier for the payer.
18
18
  field :id, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('id'), required: true } }
19
19
  # Unique identifier for the Clerk instance.
@@ -13,6 +13,7 @@ module Clerk
13
13
  enums do
14
14
  CARD = new('card')
15
15
  LINK = new('link')
16
+ PAYER_CREDITS = new('payer-credits')
16
17
  end
17
18
  end
18
19
  end
@@ -0,0 +1,20 @@
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 Components
10
+
11
+ class Platform
12
+ include ::Crystalline::Enum
13
+ enums do
14
+ IOS = new('ios')
15
+ ANDROID = new('android')
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -2,10 +2,10 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
 
5
- class Clerk::Models::Components::SAMLAccountMeta
5
+ class Clerk::Models::Components::Platform
6
6
  extend ::Crystalline::MetadataFields::ClassMethods
7
7
  end
8
8
 
9
9
 
10
- class Clerk::Models::Components::SAMLAccountMeta
10
+ class Clerk::Models::Components::Platform
11
11
  end
@@ -19,7 +19,7 @@ module Clerk
19
19
 
20
20
  field :code, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('code'), required: true } }
21
21
 
22
- field :meta, Crystalline::Nilable.new(Models::Components::SAMLAccountMeta), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('meta') } }
22
+ field :meta, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('meta') } }
23
23
 
24
24
 
25
25
  def initialize(message:, long_message:, code:, meta: nil)
@@ -44,6 +44,8 @@ module Clerk
44
44
  field :allow_organization_account_linking, Crystalline::Boolean.new, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('allow_organization_account_linking'), required: true } }
45
45
  # Enable or deactivate ForceAuthn
46
46
  field :force_authn, Crystalline::Boolean.new, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('force_authn'), required: true } }
47
+ # Configuration for the login_hint sent to the IdP on SSO sign-in
48
+ field :login_hint, Models::Components::SAMLConnectionLoginHint, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('login_hint'), required: true } }
47
49
  # Unix timestamp of creation.
48
50
  #
49
51
  field :created_at, ::Integer, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('created_at'), required: true } }
@@ -58,6 +60,12 @@ module Clerk
58
60
  field :idp_sso_url, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('idp_sso_url'), required: true } }
59
61
 
60
62
  field :idp_certificate, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('idp_certificate'), required: true } }
63
+ # Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). Null when no certificate is configured.
64
+ #
65
+ field :idp_certificate_issued_at, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('idp_certificate_issued_at'), required: true } }
66
+ # Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). Null when no certificate is configured.
67
+ #
68
+ field :idp_certificate_expires_at, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('idp_certificate_expires_at'), required: true } }
61
69
 
62
70
  field :attribute_mapping, Crystalline::Nilable.new(Models::Components::SAMLConnectionAttributeMapping), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('attribute_mapping') } }
63
71
 
@@ -70,7 +78,7 @@ module Clerk
70
78
  field :enterprise_connection_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('enterprise_connection_id') } }
71
79
 
72
80
 
73
- def initialize(object:, id:, name:, domain:, acs_url:, sp_entity_id:, sp_metadata_url:, active:, provider:, user_count:, sync_user_attributes:, allow_subdomains:, allow_idp_initiated:, disable_additional_identifications:, allow_organization_account_linking:, force_authn:, created_at:, updated_at:, domains: nil, idp_entity_id: nil, idp_sso_url: nil, idp_certificate: nil, attribute_mapping: nil, idp_metadata_url: nil, idp_metadata: nil, organization_id: nil, enterprise_connection_id: nil)
81
+ def initialize(object:, id:, name:, domain:, acs_url:, sp_entity_id:, sp_metadata_url:, active:, provider:, user_count:, sync_user_attributes:, allow_subdomains:, allow_idp_initiated:, disable_additional_identifications:, allow_organization_account_linking:, force_authn:, login_hint:, created_at:, updated_at:, domains: nil, idp_entity_id: nil, idp_sso_url: nil, idp_certificate: nil, idp_certificate_issued_at: nil, idp_certificate_expires_at: nil, attribute_mapping: nil, idp_metadata_url: nil, idp_metadata: nil, organization_id: nil, enterprise_connection_id: nil)
74
82
  @object = object
75
83
  @id = id
76
84
  @name = name
@@ -87,12 +95,15 @@ module Clerk
87
95
  @disable_additional_identifications = disable_additional_identifications
88
96
  @allow_organization_account_linking = allow_organization_account_linking
89
97
  @force_authn = force_authn
98
+ @login_hint = login_hint
90
99
  @created_at = created_at
91
100
  @updated_at = updated_at
92
101
  @domains = domains
93
102
  @idp_entity_id = idp_entity_id
94
103
  @idp_sso_url = idp_sso_url
95
104
  @idp_certificate = idp_certificate
105
+ @idp_certificate_issued_at = idp_certificate_issued_at
106
+ @idp_certificate_expires_at = idp_certificate_expires_at
96
107
  @attribute_mapping = attribute_mapping
97
108
  @idp_metadata_url = idp_metadata_url
98
109
  @idp_metadata = idp_metadata
@@ -119,12 +130,15 @@ module Clerk
119
130
  return false unless @disable_additional_identifications == other.disable_additional_identifications
120
131
  return false unless @allow_organization_account_linking == other.allow_organization_account_linking
121
132
  return false unless @force_authn == other.force_authn
133
+ return false unless @login_hint == other.login_hint
122
134
  return false unless @created_at == other.created_at
123
135
  return false unless @updated_at == other.updated_at
124
136
  return false unless @domains == other.domains
125
137
  return false unless @idp_entity_id == other.idp_entity_id
126
138
  return false unless @idp_sso_url == other.idp_sso_url
127
139
  return false unless @idp_certificate == other.idp_certificate
140
+ return false unless @idp_certificate_issued_at == other.idp_certificate_issued_at
141
+ return false unless @idp_certificate_expires_at == other.idp_certificate_expires_at
128
142
  return false unless @attribute_mapping == other.attribute_mapping
129
143
  return false unless @idp_metadata_url == other.idp_metadata_url
130
144
  return false unless @idp_metadata == other.idp_metadata
@@ -40,6 +40,8 @@ class Clerk::Models::Components::SAMLConnection1
40
40
  def allow_organization_account_linking=(str_); end
41
41
  def force_authn(); end
42
42
  def force_authn=(str_); end
43
+ def login_hint(); end
44
+ def login_hint=(str_); end
43
45
  def created_at(); end
44
46
  def created_at=(str_); end
45
47
  def updated_at(); end
@@ -52,6 +54,10 @@ class Clerk::Models::Components::SAMLConnection1
52
54
  def idp_sso_url=(str_); end
53
55
  def idp_certificate(); end
54
56
  def idp_certificate=(str_); end
57
+ def idp_certificate_issued_at(); end
58
+ def idp_certificate_issued_at=(str_); end
59
+ def idp_certificate_expires_at(); end
60
+ def idp_certificate_expires_at=(str_); end
55
61
  def attribute_mapping(); end
56
62
  def attribute_mapping=(str_); end
57
63
  def idp_metadata_url(); end
@@ -44,6 +44,8 @@ module Clerk
44
44
  field :allow_organization_account_linking, Crystalline::Boolean.new, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('allow_organization_account_linking'), required: true } }
45
45
  # Enable or deactivate ForceAuthn
46
46
  field :force_authn, Crystalline::Boolean.new, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('force_authn'), required: true } }
47
+ # Configuration for the login_hint sent to the IdP on SSO sign-in
48
+ field :login_hint, Models::Components::SAMLConnectionLoginHint, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('login_hint'), required: true } }
47
49
  # Unix timestamp of creation.
48
50
  #
49
51
  field :created_at, ::Integer, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('created_at'), required: true } }
@@ -58,6 +60,12 @@ module Clerk
58
60
  field :idp_sso_url, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('idp_sso_url'), required: true } }
59
61
 
60
62
  field :idp_certificate, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('idp_certificate'), required: true } }
63
+ # Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). Null when no certificate is configured.
64
+ #
65
+ field :idp_certificate_issued_at, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('idp_certificate_issued_at'), required: true } }
66
+ # Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). Null when no certificate is configured.
67
+ #
68
+ field :idp_certificate_expires_at, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('idp_certificate_expires_at'), required: true } }
61
69
 
62
70
  field :attribute_mapping, Crystalline::Nilable.new(Models::Components::SAMLConnectionAttributeMapping), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('attribute_mapping') } }
63
71
 
@@ -70,7 +78,7 @@ module Clerk
70
78
  field :enterprise_connection_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('enterprise_connection_id') } }
71
79
 
72
80
 
73
- def initialize(object:, id:, name:, domains:, acs_url:, sp_entity_id:, sp_metadata_url:, active:, provider:, user_count:, sync_user_attributes:, allow_subdomains:, allow_idp_initiated:, disable_additional_identifications:, allow_organization_account_linking:, force_authn:, created_at:, updated_at:, domain: nil, idp_entity_id: nil, idp_sso_url: nil, idp_certificate: nil, attribute_mapping: nil, idp_metadata_url: nil, idp_metadata: nil, organization_id: nil, enterprise_connection_id: nil)
81
+ def initialize(object:, id:, name:, domains:, acs_url:, sp_entity_id:, sp_metadata_url:, active:, provider:, user_count:, sync_user_attributes:, allow_subdomains:, allow_idp_initiated:, disable_additional_identifications:, allow_organization_account_linking:, force_authn:, login_hint:, created_at:, updated_at:, domain: nil, idp_entity_id: nil, idp_sso_url: nil, idp_certificate: nil, idp_certificate_issued_at: nil, idp_certificate_expires_at: nil, attribute_mapping: nil, idp_metadata_url: nil, idp_metadata: nil, organization_id: nil, enterprise_connection_id: nil)
74
82
  @object = object
75
83
  @id = id
76
84
  @name = name
@@ -87,12 +95,15 @@ module Clerk
87
95
  @disable_additional_identifications = disable_additional_identifications
88
96
  @allow_organization_account_linking = allow_organization_account_linking
89
97
  @force_authn = force_authn
98
+ @login_hint = login_hint
90
99
  @created_at = created_at
91
100
  @updated_at = updated_at
92
101
  @domain = domain
93
102
  @idp_entity_id = idp_entity_id
94
103
  @idp_sso_url = idp_sso_url
95
104
  @idp_certificate = idp_certificate
105
+ @idp_certificate_issued_at = idp_certificate_issued_at
106
+ @idp_certificate_expires_at = idp_certificate_expires_at
96
107
  @attribute_mapping = attribute_mapping
97
108
  @idp_metadata_url = idp_metadata_url
98
109
  @idp_metadata = idp_metadata
@@ -119,12 +130,15 @@ module Clerk
119
130
  return false unless @disable_additional_identifications == other.disable_additional_identifications
120
131
  return false unless @allow_organization_account_linking == other.allow_organization_account_linking
121
132
  return false unless @force_authn == other.force_authn
133
+ return false unless @login_hint == other.login_hint
122
134
  return false unless @created_at == other.created_at
123
135
  return false unless @updated_at == other.updated_at
124
136
  return false unless @domain == other.domain
125
137
  return false unless @idp_entity_id == other.idp_entity_id
126
138
  return false unless @idp_sso_url == other.idp_sso_url
127
139
  return false unless @idp_certificate == other.idp_certificate
140
+ return false unless @idp_certificate_issued_at == other.idp_certificate_issued_at
141
+ return false unless @idp_certificate_expires_at == other.idp_certificate_expires_at
128
142
  return false unless @attribute_mapping == other.attribute_mapping
129
143
  return false unless @idp_metadata_url == other.idp_metadata_url
130
144
  return false unless @idp_metadata == other.idp_metadata
@@ -40,6 +40,8 @@ class Clerk::Models::Components::SAMLConnection2
40
40
  def allow_organization_account_linking=(str_); end
41
41
  def force_authn(); end
42
42
  def force_authn=(str_); end
43
+ def login_hint(); end
44
+ def login_hint=(str_); end
43
45
  def created_at(); end
44
46
  def created_at=(str_); end
45
47
  def updated_at(); end
@@ -52,6 +54,10 @@ class Clerk::Models::Components::SAMLConnection2
52
54
  def idp_sso_url=(str_); end
53
55
  def idp_certificate(); end
54
56
  def idp_certificate=(str_); end
57
+ def idp_certificate_issued_at(); end
58
+ def idp_certificate_issued_at=(str_); end
59
+ def idp_certificate_expires_at(); end
60
+ def idp_certificate_expires_at=(str_); end
55
61
  def attribute_mapping(); end
56
62
  def attribute_mapping=(str_); end
57
63
  def idp_metadata_url(); 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 Components
10
+ # Configuration for the login_hint sent to the IdP on SSO sign-in
11
+ class SAMLConnectionLoginHint
12
+
13
+ include Crystalline::MetadataFields
14
+
15
+ # Controls the login_hint sent to the IdP on SSO sign-in
16
+ field :mode, Models::Components::SAMLConnectionLoginHintMode, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('mode'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::SAMLConnectionLoginHintMode, false) } }
17
+ # The user public_metadata key whose value is sent as the login_hint when mode is custom_attribute
18
+ field :source, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('source') } }
19
+
20
+
21
+ def initialize(mode:, source: nil)
22
+ @mode = mode
23
+ @source = source
24
+ end
25
+
26
+
27
+ def ==(other)
28
+ return false unless other.is_a? self.class
29
+ return false unless @mode == other.mode
30
+ return false unless @source == other.source
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::Components::SAMLConnectionLoginHint
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Clerk::Models::Components::SAMLConnectionLoginHint
11
+ def mode(); end
12
+ def mode=(str_); end
13
+ def source(); end
14
+ def source=(str_); end
15
+ end
@@ -0,0 +1,21 @@
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 Components
10
+ # SAMLConnectionLoginHintMode - Controls the login_hint sent to the IdP on SSO sign-in
11
+ class SAMLConnectionLoginHintMode
12
+ include ::Crystalline::Enum
13
+ enums do
14
+ EMAIL_ADDRESS = new('email_address')
15
+ CUSTOM_ATTRIBUTE = new('custom_attribute')
16
+ OFF = new('off')
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,11 @@
1
+ # typed: false
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Clerk::Models::Components::SAMLConnectionLoginHintMode
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Clerk::Models::Components::SAMLConnectionLoginHintMode
11
+ end
@@ -0,0 +1,80 @@
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 Components
10
+ # A SCIM directory configuration for provisioning users via SCIM protocol.
11
+ class SCIMDirectory
12
+
13
+ include Crystalline::MetadataFields
14
+
15
+ # String representing the object's type. Always "scim_directory".
16
+ field :object, Models::Components::SCIMDirectoryObject, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('object'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::SCIMDirectoryObject, false) } }
17
+ # Unique identifier for the SCIM directory.
18
+ field :id, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('id'), required: true } }
19
+ # A human-friendly name for the SCIM directory.
20
+ field :name, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('name'), required: true } }
21
+ # The SCIM endpoint URL for this directory.
22
+ field :endpoint_url, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('endpoint_url'), required: true } }
23
+ # The identity provider for this SCIM directory.
24
+ field :provider, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('provider'), required: true } }
25
+ # Whether the SCIM directory is enabled.
26
+ field :enabled, Crystalline::Boolean.new, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('enabled'), required: true } }
27
+ # Whether group-to-role mapping is enabled for this SCIM directory.
28
+ field :group_role_mapping_enabled, Crystalline::Boolean.new, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('group_role_mapping_enabled'), required: true } }
29
+ # Mapping of user attributes to the SCIM attribute paths they are extracted from.
30
+ field :attribute_mapping, Crystalline::Hash.new(Symbol, ::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('attribute_mapping'), required: true } }
31
+ # Unix timestamp when the SCIM directory was created.
32
+ field :created_at, ::Integer, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('created_at'), required: true } }
33
+ # Unix timestamp when the SCIM directory was last updated.
34
+ field :updated_at, ::Integer, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('updated_at'), required: true } }
35
+ # Custom attributes to map from the IdP to the user's profile via SCIM provisioning. Requires the custom attributes feature to be enabled for the instance.
36
+ field :custom_attributes, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::SCIMDirectoryCustomAttribute)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('custom_attributes') } }
37
+ # The ID of the associated enterprise connection.
38
+ field :enterprise_connection_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('enterprise_connection_id') } }
39
+ # The API key for authenticating SCIM requests. Only returned when the directory is created or the key is rotated.
40
+ field :api_key, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('api_key') } }
41
+
42
+
43
+ def initialize(object:, id:, name:, endpoint_url:, provider:, enabled:, group_role_mapping_enabled:, attribute_mapping:, created_at:, updated_at:, custom_attributes: nil, enterprise_connection_id: nil, api_key: nil)
44
+ @object = object
45
+ @id = id
46
+ @name = name
47
+ @endpoint_url = endpoint_url
48
+ @provider = provider
49
+ @enabled = enabled
50
+ @group_role_mapping_enabled = group_role_mapping_enabled
51
+ @attribute_mapping = attribute_mapping
52
+ @created_at = created_at
53
+ @updated_at = updated_at
54
+ @custom_attributes = custom_attributes
55
+ @enterprise_connection_id = enterprise_connection_id
56
+ @api_key = api_key
57
+ end
58
+
59
+
60
+ def ==(other)
61
+ return false unless other.is_a? self.class
62
+ return false unless @object == other.object
63
+ return false unless @id == other.id
64
+ return false unless @name == other.name
65
+ return false unless @endpoint_url == other.endpoint_url
66
+ return false unless @provider == other.provider
67
+ return false unless @enabled == other.enabled
68
+ return false unless @group_role_mapping_enabled == other.group_role_mapping_enabled
69
+ return false unless @attribute_mapping == other.attribute_mapping
70
+ return false unless @created_at == other.created_at
71
+ return false unless @updated_at == other.updated_at
72
+ return false unless @custom_attributes == other.custom_attributes
73
+ return false unless @enterprise_connection_id == other.enterprise_connection_id
74
+ return false unless @api_key == other.api_key
75
+ true
76
+ end
77
+ end
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,37 @@
1
+ # typed: false
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Clerk::Models::Components::SCIMDirectory
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Clerk::Models::Components::SCIMDirectory
11
+ def object(); end
12
+ def object=(str_); end
13
+ def id(); end
14
+ def id=(str_); end
15
+ def name(); end
16
+ def name=(str_); end
17
+ def endpoint_url(); end
18
+ def endpoint_url=(str_); end
19
+ def provider(); end
20
+ def provider=(str_); end
21
+ def enabled(); end
22
+ def enabled=(str_); end
23
+ def group_role_mapping_enabled(); end
24
+ def group_role_mapping_enabled=(str_); end
25
+ def attribute_mapping(); end
26
+ def attribute_mapping=(str_); end
27
+ def created_at(); end
28
+ def created_at=(str_); end
29
+ def updated_at(); end
30
+ def updated_at=(str_); end
31
+ def custom_attributes(); end
32
+ def custom_attributes=(str_); end
33
+ def enterprise_connection_id(); end
34
+ def enterprise_connection_id=(str_); end
35
+ def api_key(); end
36
+ def api_key=(str_); end
37
+ end
@@ -0,0 +1,48 @@
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 Components
10
+
11
+ class SCIMDirectoryCustomAttribute
12
+
13
+ include Crystalline::MetadataFields
14
+
15
+ # Display name for the custom attribute
16
+ field :name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('name') } }
17
+ # Key used to store the attribute in the user's public/private/unsafe metadata
18
+ field :key, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('key') } }
19
+ # Path to extract the attribute value from SSO claims (SAML assertions or OIDC claims)
20
+ field :sso_path, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('sso_path') } }
21
+ # GJSON path to extract the attribute value from SCIM user resources
22
+ field :scim_path, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('scim_path') } }
23
+ # When true, the attribute supports multiple values; values from the IdP are written to public_metadata as an array. Defaults to false.
24
+ field :multi_valued, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('multi_valued') } }
25
+
26
+
27
+ def initialize(name: nil, key: nil, sso_path: nil, scim_path: nil, multi_valued: nil)
28
+ @name = name
29
+ @key = key
30
+ @sso_path = sso_path
31
+ @scim_path = scim_path
32
+ @multi_valued = multi_valued
33
+ end
34
+
35
+
36
+ def ==(other)
37
+ return false unless other.is_a? self.class
38
+ return false unless @name == other.name
39
+ return false unless @key == other.key
40
+ return false unless @sso_path == other.sso_path
41
+ return false unless @scim_path == other.scim_path
42
+ return false unless @multi_valued == other.multi_valued
43
+ true
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
@@ -2,12 +2,12 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
 
5
- class Clerk::Models::Components::CustomAttribute
5
+ class Clerk::Models::Components::SCIMDirectoryCustomAttribute
6
6
  extend ::Crystalline::MetadataFields::ClassMethods
7
7
  end
8
8
 
9
9
 
10
- class Clerk::Models::Components::CustomAttribute
10
+ class Clerk::Models::Components::SCIMDirectoryCustomAttribute
11
11
  def name(); end
12
12
  def name=(str_); end
13
13
  def key(); 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 Components
10
+ # A list of SCIM directories
11
+ class SCIMDirectoryList
12
+
13
+ include Crystalline::MetadataFields
14
+
15
+
16
+ field :data, Crystalline::Array.new(Models::Components::SCIMDirectory), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('data'), required: true } }
17
+ # Total number of SCIM directories.
18
+ field :total_count, ::Integer, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('total_count'), required: true } }
19
+
20
+
21
+ def initialize(data:, total_count:)
22
+ @data = data
23
+ @total_count = total_count
24
+ end
25
+
26
+
27
+ def ==(other)
28
+ return false unless other.is_a? self.class
29
+ return false unless @data == other.data
30
+ return false unless @total_count == other.total_count
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::Components::SCIMDirectoryList
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Clerk::Models::Components::SCIMDirectoryList
11
+ def data(); end
12
+ def data=(str_); end
13
+ def total_count(); end
14
+ def total_count=(str_); end
15
+ end
@@ -0,0 +1,19 @@
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 Components
10
+ # SCIMDirectoryObject - String representing the object's type. Always "scim_directory".
11
+ class SCIMDirectoryObject
12
+ include ::Crystalline::Enum
13
+ enums do
14
+ SCIM_DIRECTORY = new('scim_directory')
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,11 @@
1
+ # typed: false
2
+ # frozen_string_literal: true
3
+
4
+
5
+ class Clerk::Models::Components::SCIMDirectoryObject
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Clerk::Models::Components::SCIMDirectoryObject
11
+ end