clerk-sdk-ruby 7.0.0 → 8.0.1

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 (523) hide show
  1. checksums.yaml +4 -4
  2. data/lib/clerk/actortokens.rb +11 -11
  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 +388 -52
  9. data/lib/clerk/blocklistidentifiers.rb +15 -15
  10. data/lib/clerk/clients.rb +15 -15
  11. data/lib/clerk/directories.rb +1534 -0
  12. data/lib/clerk/domains.rb +27 -24
  13. data/lib/clerk/emailaddresses.rb +43 -36
  14. data/lib/clerk/emailandsmstemplates.rb +6 -6
  15. data/lib/clerk/emailsmstemplates.rb +21 -21
  16. data/lib/clerk/enterpriseconnections.rb +35 -35
  17. data/lib/clerk/instancesettings.rb +60 -60
  18. data/lib/clerk/invitations.rb +20 -20
  19. data/lib/clerk/jwks.rb +5 -5
  20. data/lib/clerk/jwttemplates.rb +25 -25
  21. data/lib/clerk/m2m.rb +20 -20
  22. data/lib/clerk/machines.rb +45 -45
  23. data/lib/clerk/miscellaneous.rb +5 -5
  24. data/lib/clerk/models/components/amount_off.rb +44 -0
  25. data/lib/clerk/models/components/{schemas_commerceplan_fee.rbi → amount_off.rbi} +2 -2
  26. data/lib/clerk/models/components/applycommercediscountrequest.rb +32 -0
  27. data/lib/clerk/models/components/applycommercediscountrequest.rbi +13 -0
  28. data/lib/clerk/models/components/automation_disposition.rb +21 -0
  29. data/lib/clerk/models/components/automation_disposition.rbi +11 -0
  30. data/lib/clerk/models/components/billingpaymentattempt_totals.rb +1 -1
  31. data/lib/clerk/models/components/billingstatement.rb +1 -1
  32. data/lib/clerk/models/components/{group.rb → billingstatement_group.rb} +1 -1
  33. data/lib/clerk/models/components/{group.rbi → billingstatement_group.rbi} +2 -2
  34. data/lib/clerk/models/components/biometriccredential.rb +72 -0
  35. data/lib/clerk/models/components/biometriccredential.rbi +33 -0
  36. data/lib/clerk/models/components/biometriccredential_algorithm.rb +19 -0
  37. data/lib/clerk/models/components/biometriccredential_algorithm.rbi +11 -0
  38. data/lib/clerk/models/components/biometriccredential_list.rb +36 -0
  39. data/lib/clerk/models/components/biometriccredential_list.rbi +15 -0
  40. data/lib/clerk/models/components/biometriccredential_object.rb +19 -0
  41. data/lib/clerk/models/components/biometriccredential_object.rbi +11 -0
  42. data/lib/clerk/models/components/biometriccredential_platform.rb +20 -0
  43. data/lib/clerk/models/components/biometriccredential_platform.rbi +11 -0
  44. data/lib/clerk/models/components/biometriccredential_status.rb +20 -0
  45. data/lib/clerk/models/components/biometriccredential_status.rbi +11 -0
  46. data/lib/clerk/models/components/clerkerror.rb +1 -1
  47. data/lib/clerk/models/components/commercecreditledgerresponse.rb +3 -7
  48. data/lib/clerk/models/components/commercecreditledgerresponse.rbi +0 -2
  49. data/lib/clerk/models/components/commercediscountredemptionresponse.rb +93 -0
  50. data/lib/clerk/models/components/commercediscountredemptionresponse.rbi +43 -0
  51. data/lib/clerk/models/components/commercediscountredemptionresponse_amount.rb +45 -0
  52. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_amount.rbi → commercediscountredemptionresponse_amount.rbi} +2 -2
  53. data/lib/clerk/models/components/commercediscountredemptionresponse_object.rb +19 -0
  54. data/lib/clerk/models/components/commercediscountredemptionresponse_object.rbi +11 -0
  55. data/lib/clerk/models/components/commercediscountredemptionresponse_status.rb +21 -0
  56. data/lib/clerk/models/components/commercediscountredemptionresponse_status.rbi +11 -0
  57. data/lib/clerk/models/components/{schemas_commerceperunittotal.rb → commerceperunittotal_2.rb} +2 -2
  58. data/lib/clerk/models/components/{schemas_commerceperunittotal.rbi → commerceperunittotal_2.rbi} +2 -2
  59. data/lib/clerk/models/components/{schemas_commerceperunittotaltier.rb → commerceperunittotaltier_2.rb} +1 -1
  60. data/lib/clerk/models/components/{schemas_commerceperunittotaltier.rbi → commerceperunittotaltier_2.rbi} +2 -2
  61. data/lib/clerk/models/components/{schemas_commerceplan.rb → commerceplan_2.rb} +6 -6
  62. data/lib/clerk/models/components/{schemas_commerceplan.rbi → commerceplan_2.rbi} +2 -2
  63. data/lib/clerk/models/components/{schemas_commerceplan_fee.rb → commerceplan_2_annual_fee.rb} +1 -1
  64. data/lib/clerk/models/components/{schemas_commerceplan_annual_fee.rbi → commerceplan_2_annual_fee.rbi} +2 -2
  65. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_fee.rb → commerceplan_2_annual_monthly_fee.rb} +1 -1
  66. data/lib/clerk/models/components/{schemas_commerceplan_annual_monthly_fee.rbi → commerceplan_2_annual_monthly_fee.rbi} +2 -2
  67. data/lib/clerk/models/components/{schemas_commerceplan_annual_fee.rb → commerceplan_2_fee.rb} +1 -1
  68. data/lib/clerk/models/components/commerceplan_2_fee.rbi +19 -0
  69. data/lib/clerk/models/components/{schemas_commerceplan_object.rb → commerceplan_2_object.rb} +2 -2
  70. data/lib/clerk/models/components/commerceplan_2_object.rbi +11 -0
  71. data/lib/clerk/models/components/commercepricetransitiondetails.rb +1 -1
  72. data/lib/clerk/models/components/commercepricetransitionresponse.rb +1 -1
  73. data/lib/clerk/models/components/{schemas_commercesubscriptionitem.rb → commercesubscriptionitem_2.rb} +7 -7
  74. data/lib/clerk/models/components/{schemas_commercesubscriptionitem.rbi → commercesubscriptionitem_2.rbi} +2 -2
  75. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_amount.rb → commercesubscriptionitem_2_amount.rb} +1 -1
  76. data/lib/clerk/models/components/commercesubscriptionitem_2_amount.rbi +19 -0
  77. data/lib/clerk/models/components/{schemas_commerceplan_annual_monthly_fee.rb → commercesubscriptionitem_2_annual_fee.rb} +1 -1
  78. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_fee.rbi → commercesubscriptionitem_2_annual_fee.rbi} +2 -2
  79. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_annual_fee.rb → commercesubscriptionitem_2_annual_monthly_fee.rb} +1 -1
  80. data/lib/clerk/models/components/commercesubscriptionitem_2_annual_monthly_fee.rbi +19 -0
  81. data/lib/clerk/models/components/commercesubscriptionitem_2_fee.rb +44 -0
  82. data/lib/clerk/models/components/commercesubscriptionitem_2_fee.rbi +19 -0
  83. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment.rb → commercesubscriptionitem_2_next_payment.rb} +3 -3
  84. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment.rbi → commercesubscriptionitem_2_next_payment.rbi} +2 -2
  85. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_amount.rb → commercesubscriptionitem_2_next_payment_amount.rb} +1 -1
  86. data/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_amount.rbi +19 -0
  87. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_credits.rb → commercesubscriptionitem_2_next_payment_credits.rb} +3 -3
  88. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_credits.rbi → commercesubscriptionitem_2_next_payment_credits.rbi} +2 -2
  89. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_credits_proration.rb → commercesubscriptionitem_2_next_payment_credits_proration.rb} +1 -1
  90. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_credits_proration.rbi → commercesubscriptionitem_2_next_payment_credits_proration.rbi} +2 -2
  91. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_discounts.rb → commercesubscriptionitem_2_next_payment_discounts.rb} +2 -2
  92. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_discounts.rbi → commercesubscriptionitem_2_next_payment_discounts.rbi} +2 -2
  93. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_discounts_proration.rb → commercesubscriptionitem_2_next_payment_discounts_proration.rb} +1 -1
  94. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_discounts_proration.rbi → commercesubscriptionitem_2_next_payment_discounts_proration.rbi} +2 -2
  95. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_payer.rb → commercesubscriptionitem_2_next_payment_payer.rb} +1 -1
  96. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_payer.rbi → commercesubscriptionitem_2_next_payment_payer.rbi} +2 -2
  97. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_totals.rb → commercesubscriptionitem_2_next_payment_totals.rb} +3 -3
  98. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_next_payment_totals.rbi → commercesubscriptionitem_2_next_payment_totals.rbi} +2 -2
  99. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_object_commercepayer.rb → commercesubscriptionitem_2_object_commercepayer.rb} +2 -2
  100. data/lib/clerk/models/components/commercesubscriptionitem_2_object_commercepayer.rbi +11 -0
  101. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_object_commerceplan.rb → commercesubscriptionitem_2_object_commerceplan.rb} +2 -2
  102. data/lib/clerk/models/components/commercesubscriptionitem_2_object_commerceplan.rbi +11 -0
  103. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_object_commercesubscriptionitem.rb → commercesubscriptionitem_2_object_commercesubscriptionitem.rb} +2 -2
  104. data/lib/clerk/models/components/commercesubscriptionitem_2_object_commercesubscriptionitem.rbi +11 -0
  105. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_plan.rb → commercesubscriptionitem_2_plan.rb} +6 -6
  106. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_plan.rbi → commercesubscriptionitem_2_plan.rbi} +2 -2
  107. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_plan_period.rb → commercesubscriptionitem_2_plan_period.rb} +2 -2
  108. data/lib/clerk/models/components/commercesubscriptionitem_2_plan_period.rbi +11 -0
  109. data/lib/clerk/models/components/{schemas_commercesubscriptionitem_status.rb → commercesubscriptionitem_2_status.rb} +2 -2
  110. data/lib/clerk/models/components/commercesubscriptionitem_2_status.rbi +11 -0
  111. data/lib/clerk/models/components/commercesubscriptionitem_totals.rb +1 -1
  112. data/lib/clerk/models/components/commercesubscriptionnextpayment.rb +1 -1
  113. data/lib/clerk/models/components/commercesubscriptionnextpayment_totals.rb +1 -1
  114. data/lib/clerk/models/components/createbillingpricerequest.rb +2 -2
  115. data/lib/clerk/models/components/directory.rb +80 -0
  116. data/lib/clerk/models/components/directory.rbi +37 -0
  117. data/lib/clerk/models/components/directory_custom_attribute.rb +52 -0
  118. data/lib/clerk/models/components/{custom_attribute.rbi → directory_custom_attribute.rbi} +4 -2
  119. data/lib/clerk/models/components/directory_group.rb +36 -0
  120. data/lib/clerk/models/components/directory_group.rbi +15 -0
  121. data/lib/clerk/models/components/directory_list.rb +36 -0
  122. data/lib/clerk/models/components/directory_list.rbi +15 -0
  123. data/lib/clerk/models/components/directory_object.rb +19 -0
  124. data/lib/clerk/models/components/{samlaccount_meta.rbi → directory_object.rbi} +2 -2
  125. data/lib/clerk/models/components/directorygrouprolemapping.rb +76 -0
  126. data/lib/clerk/models/components/directorygrouprolemapping.rbi +35 -0
  127. data/lib/clerk/models/components/directorygrouprolemapping_deleted.rb +43 -0
  128. data/lib/clerk/models/components/directorygrouprolemapping_deleted.rbi +17 -0
  129. data/lib/clerk/models/components/directorygrouprolemapping_deleted_object.rb +19 -0
  130. data/lib/clerk/models/components/directorygrouprolemapping_deleted_object.rbi +11 -0
  131. data/lib/clerk/models/components/directorygrouprolemapping_list.rb +36 -0
  132. data/lib/clerk/models/components/directorygrouprolemapping_list.rbi +15 -0
  133. data/lib/clerk/models/components/directorygrouprolemapping_object.rb +19 -0
  134. data/lib/clerk/models/components/directorygrouprolemapping_object.rbi +11 -0
  135. data/lib/clerk/models/components/dnstarget.rb +49 -0
  136. data/lib/clerk/models/components/dnstarget.rbi +21 -0
  137. data/lib/clerk/models/components/domain.rb +7 -2
  138. data/lib/clerk/models/components/domain.rbi +2 -0
  139. data/lib/clerk/models/components/effect.rb +20 -0
  140. data/lib/clerk/models/components/{clerkerror_meta.rbi → effect.rbi} +2 -2
  141. data/lib/clerk/models/components/emailaddress_verification_saml_clerkerror.rb +1 -1
  142. data/lib/clerk/models/components/enrollment_mode.rb +1 -0
  143. data/lib/clerk/models/components/enterpriseaccount_verification_oauth_clerkerror.rb +1 -1
  144. data/lib/clerk/models/components/enterpriseaccount_verification_saml_clerkerror.rb +1 -1
  145. data/lib/clerk/models/components/enterpriseconnection.rb +6 -2
  146. data/lib/clerk/models/components/enterpriseconnection.rbi +2 -0
  147. data/lib/clerk/models/components/{custom_attribute.rb → enterpriseconnection_custom_attribute.rb} +6 -2
  148. data/lib/clerk/models/components/enterpriseconnection_custom_attribute.rbi +23 -0
  149. data/lib/clerk/models/components/enterpriseconnection_mode.rb +21 -0
  150. data/lib/clerk/models/components/enterpriseconnection_mode.rbi +11 -0
  151. data/lib/clerk/models/components/enterpriseconnection_object.rb +19 -0
  152. data/lib/clerk/models/components/enterpriseconnection_object.rbi +11 -0
  153. data/lib/clerk/models/components/enterpriseconnection_saml_connection.rb +5 -1
  154. data/lib/clerk/models/components/enterpriseconnection_saml_connection.rbi +2 -0
  155. data/lib/clerk/models/components/externalaccountwithverification_verification_oauth_clerkerror.rb +1 -1
  156. data/lib/clerk/models/components/{schemas_featureresponse.rb → featureresponse_2.rb} +2 -2
  157. data/lib/clerk/models/components/{schemas_featureresponse.rbi → featureresponse_2.rbi} +2 -2
  158. data/lib/clerk/models/components/{schemas_featureresponse_object.rb → featureresponse_2_object.rb} +2 -2
  159. data/lib/clerk/models/components/featureresponse_2_object.rbi +11 -0
  160. data/lib/clerk/models/components/instance.rb +13 -1
  161. data/lib/clerk/models/components/instance.rbi +6 -0
  162. data/lib/clerk/models/components/instanceprotect.rb +14 -2
  163. data/lib/clerk/models/components/instanceprotect.rbi +6 -0
  164. data/lib/clerk/models/components/instancesettings.rb +4 -1
  165. data/lib/clerk/models/components/level.rb +21 -0
  166. data/lib/clerk/models/components/{clerkerrors_meta.rbi → level.rbi} +2 -2
  167. data/lib/clerk/models/components/login_hint.rb +36 -0
  168. data/lib/clerk/models/components/login_hint.rbi +15 -0
  169. data/lib/clerk/models/components/oauthapplication.rb +7 -2
  170. data/lib/clerk/models/components/oauthapplication.rbi +2 -0
  171. data/lib/clerk/models/components/oauthapplicationsettings.rb +26 -1
  172. data/lib/clerk/models/components/oauthapplicationsettings.rbi +12 -0
  173. data/lib/clerk/models/components/oauthapplicationwithsecret.rb +7 -2
  174. data/lib/clerk/models/components/oauthapplicationwithsecret.rbi +2 -0
  175. data/lib/clerk/models/components/organization.rb +6 -1
  176. data/lib/clerk/models/components/organization.rbi +2 -0
  177. data/lib/clerk/models/components/organizationmembership_organization.rb +6 -1
  178. data/lib/clerk/models/components/organizationmembership_organization.rbi +2 -0
  179. data/lib/clerk/models/components/organizationmembershippublicuserdata.rb +5 -1
  180. data/lib/clerk/models/components/organizationmembershippublicuserdata.rbi +2 -0
  181. data/lib/clerk/models/components/organizationwithlogo.rb +6 -1
  182. data/lib/clerk/models/components/organizationwithlogo.rbi +2 -0
  183. data/lib/clerk/models/components/payer_commercepayer.rb +1 -1
  184. data/lib/clerk/models/components/payment_type.rb +1 -0
  185. data/lib/clerk/models/components/record_type.rb +20 -0
  186. data/lib/clerk/models/components/record_type.rbi +11 -0
  187. data/lib/clerk/models/components/reverification.rb +74 -0
  188. data/lib/clerk/models/components/reverification.rbi +31 -0
  189. data/lib/clerk/models/components/reverification_object.rb +20 -0
  190. data/lib/clerk/models/components/reverification_object.rbi +11 -0
  191. data/lib/clerk/models/components/reverification_status.rb +21 -0
  192. data/lib/clerk/models/components/reverification_status.rbi +11 -0
  193. data/lib/clerk/models/components/samlaccount_clerkerror.rb +1 -1
  194. data/lib/clerk/models/components/samlconnection_1.rb +15 -1
  195. data/lib/clerk/models/components/samlconnection_1.rbi +6 -0
  196. data/lib/clerk/models/components/samlconnection_2.rb +15 -1
  197. data/lib/clerk/models/components/samlconnection_2.rbi +6 -0
  198. data/lib/clerk/models/components/samlconnectionloginhint.rb +36 -0
  199. data/lib/clerk/models/components/samlconnectionloginhint.rbi +15 -0
  200. data/lib/clerk/models/components/samlconnectionloginhint_mode.rb +21 -0
  201. data/lib/clerk/models/components/samlconnectionloginhint_mode.rbi +11 -0
  202. data/lib/clerk/models/components/scim_group.rb +36 -0
  203. data/lib/clerk/models/components/scim_group.rbi +15 -0
  204. data/lib/clerk/models/components/scimdirectory.rb +80 -0
  205. data/lib/clerk/models/components/scimdirectory.rbi +37 -0
  206. data/lib/clerk/models/components/scimdirectory_custom_attribute.rb +52 -0
  207. data/lib/clerk/models/components/scimdirectory_custom_attribute.rbi +23 -0
  208. data/lib/clerk/models/components/scimdirectory_list.rb +36 -0
  209. data/lib/clerk/models/components/scimdirectory_list.rbi +15 -0
  210. data/lib/clerk/models/components/scimdirectory_object.rb +19 -0
  211. data/lib/clerk/models/components/scimdirectory_object.rbi +11 -0
  212. data/lib/clerk/models/components/scimgrouprolemapping.rb +76 -0
  213. data/lib/clerk/models/components/scimgrouprolemapping.rbi +35 -0
  214. data/lib/clerk/models/components/scimgrouprolemapping_deleted.rb +43 -0
  215. data/lib/clerk/models/components/scimgrouprolemapping_deleted.rbi +17 -0
  216. data/lib/clerk/models/components/scimgrouprolemapping_deleted_object.rb +19 -0
  217. data/lib/clerk/models/components/scimgrouprolemapping_deleted_object.rbi +11 -0
  218. data/lib/clerk/models/components/scimgrouprolemapping_list.rb +36 -0
  219. data/lib/clerk/models/components/scimgrouprolemapping_list.rbi +15 -0
  220. data/lib/clerk/models/components/scimgrouprolemapping_object.rb +19 -0
  221. data/lib/clerk/models/components/scimgrouprolemapping_object.rbi +11 -0
  222. data/lib/clerk/models/components/scimusermetadata.rb +64 -0
  223. data/lib/clerk/models/components/scimusermetadata.rbi +27 -0
  224. data/lib/clerk/models/components/scimusermetadata_group.rb +36 -0
  225. data/lib/clerk/models/components/scimusermetadata_group.rbi +15 -0
  226. data/lib/clerk/models/components/seats.rb +1 -1
  227. data/lib/clerk/models/components/source.rb +21 -0
  228. data/lib/clerk/models/components/source.rbi +11 -0
  229. data/lib/clerk/models/components/trusteddevice.rb +72 -0
  230. data/lib/clerk/models/components/trusteddevice.rbi +33 -0
  231. data/lib/clerk/models/components/trusteddevice_algorithm.rb +19 -0
  232. data/lib/clerk/models/components/trusteddevice_algorithm.rbi +11 -0
  233. data/lib/clerk/models/components/trusteddevice_list.rb +36 -0
  234. data/lib/clerk/models/components/trusteddevice_list.rbi +15 -0
  235. data/lib/clerk/models/components/trusteddevice_object.rb +19 -0
  236. data/lib/clerk/models/components/trusteddevice_object.rbi +11 -0
  237. data/lib/clerk/models/components/trusteddevice_platform.rb +20 -0
  238. data/lib/clerk/models/components/trusteddevice_platform.rbi +11 -0
  239. data/lib/clerk/models/components/trusteddevice_status.rb +20 -0
  240. data/lib/clerk/models/components/trusteddevice_status.rbi +11 -0
  241. data/lib/clerk/models/components/user.rb +16 -3
  242. data/lib/clerk/models/components/user.rbi +4 -0
  243. data/lib/clerk/models/components/user_directory.rb +65 -0
  244. data/lib/clerk/models/components/user_directory.rbi +27 -0
  245. data/lib/clerk/models/components/user_scim.rb +27 -6
  246. data/lib/clerk/models/components/user_scim.rbi +10 -0
  247. data/lib/clerk/models/components/verification_from_oauth_clerkerror.rb +1 -1
  248. data/lib/clerk/models/components/verification_google_one_tap_clerkerror.rb +1 -1
  249. data/lib/clerk/models/components.rb +85 -39
  250. data/lib/clerk/models/errors/clerkerrors.rb +1 -1
  251. data/lib/clerk/models/operations/adddomain_request.rb +3 -6
  252. data/lib/clerk/models/operations/applybillingsubscriptionitemdiscount_request.rb +36 -0
  253. data/lib/clerk/models/operations/applybillingsubscriptionitemdiscount_request.rbi +15 -0
  254. data/lib/clerk/models/operations/applybillingsubscriptionitemdiscount_response.rb +44 -0
  255. data/lib/clerk/models/operations/applybillingsubscriptionitemdiscount_response.rbi +19 -0
  256. data/lib/clerk/models/operations/clerkidpoauthaccesstoken.rb +5 -1
  257. data/lib/clerk/models/operations/clerkidpoauthaccesstoken.rbi +2 -0
  258. data/lib/clerk/models/operations/createdirectory_group_role_mapping.rb +52 -0
  259. data/lib/clerk/models/operations/createdirectory_group_role_mapping.rbi +23 -0
  260. data/lib/clerk/models/operations/createdirectory_request.rb +44 -0
  261. data/lib/clerk/models/operations/createdirectory_request.rbi +19 -0
  262. data/lib/clerk/models/operations/createdirectory_response.rb +44 -0
  263. data/lib/clerk/models/operations/createdirectory_response.rbi +19 -0
  264. data/lib/clerk/models/operations/createdirectorygrouprolemapping_request.rb +36 -0
  265. data/lib/clerk/models/operations/createdirectorygrouprolemapping_request.rbi +15 -0
  266. data/lib/clerk/models/operations/createdirectorygrouprolemapping_requestbody.rb +46 -0
  267. data/lib/clerk/models/operations/createdirectorygrouprolemapping_requestbody.rbi +19 -0
  268. data/lib/clerk/models/operations/createdirectorygrouprolemapping_response.rb +44 -0
  269. data/lib/clerk/models/operations/createdirectorygrouprolemapping_response.rbi +19 -0
  270. data/lib/clerk/models/operations/createemailaddress_request.rb +7 -1
  271. data/lib/clerk/models/operations/createemailaddress_request.rbi +2 -0
  272. data/lib/clerk/models/operations/createenterpriseconnection_custom_attribute.rb +5 -1
  273. data/lib/clerk/models/operations/createenterpriseconnection_custom_attribute.rbi +2 -0
  274. data/lib/clerk/models/operations/createenterpriseconnection_login_hint.rb +36 -0
  275. data/lib/clerk/models/operations/createenterpriseconnection_login_hint.rbi +15 -0
  276. data/lib/clerk/models/operations/createenterpriseconnection_mode.rb +21 -0
  277. data/lib/clerk/models/operations/createenterpriseconnection_mode.rbi +11 -0
  278. data/lib/clerk/models/operations/createenterpriseconnection_saml.rb +5 -1
  279. data/lib/clerk/models/operations/createenterpriseconnection_saml.rbi +2 -0
  280. data/lib/clerk/models/operations/createoauthapplication_request.rb +6 -2
  281. data/lib/clerk/models/operations/createoauthapplication_request.rbi +2 -0
  282. data/lib/clerk/models/operations/createorganizationdomain_requestbody.rb +1 -1
  283. data/lib/clerk/models/operations/createsamlconnection_login_hint_1.rb +36 -0
  284. data/lib/clerk/models/operations/createsamlconnection_login_hint_1.rbi +15 -0
  285. data/lib/clerk/models/operations/createsamlconnection_login_hint_2.rb +36 -0
  286. data/lib/clerk/models/operations/createsamlconnection_login_hint_2.rbi +15 -0
  287. data/lib/clerk/models/operations/createsamlconnection_mode_1.rb +21 -0
  288. data/lib/clerk/models/operations/createsamlconnection_mode_1.rbi +11 -0
  289. data/lib/clerk/models/operations/createsamlconnection_mode_2.rb +21 -0
  290. data/lib/clerk/models/operations/createsamlconnection_mode_2.rbi +11 -0
  291. data/lib/clerk/models/operations/createsamlconnection_requestbody_1.rb +5 -1
  292. data/lib/clerk/models/operations/createsamlconnection_requestbody_1.rbi +2 -0
  293. data/lib/clerk/models/operations/createsamlconnection_requestbody_2.rb +5 -1
  294. data/lib/clerk/models/operations/createsamlconnection_requestbody_2.rbi +2 -0
  295. data/lib/clerk/models/operations/createscimdirectory_group_role_mapping.rb +44 -0
  296. data/lib/clerk/models/operations/createscimdirectory_group_role_mapping.rbi +19 -0
  297. data/lib/clerk/models/operations/createscimdirectory_request.rb +44 -0
  298. data/lib/clerk/models/operations/createscimdirectory_request.rbi +19 -0
  299. data/lib/clerk/models/operations/createscimdirectory_response.rb +44 -0
  300. data/lib/clerk/models/operations/createscimdirectory_response.rbi +19 -0
  301. data/lib/clerk/models/operations/createscimgrouprolemapping_request.rb +36 -0
  302. data/lib/clerk/models/operations/createscimgrouprolemapping_request.rbi +15 -0
  303. data/lib/clerk/models/operations/createscimgrouprolemapping_requestbody.rb +42 -0
  304. data/lib/clerk/models/operations/createscimgrouprolemapping_requestbody.rbi +17 -0
  305. data/lib/clerk/models/operations/createscimgrouprolemapping_response.rb +44 -0
  306. data/lib/clerk/models/operations/createscimgrouprolemapping_response.rbi +19 -0
  307. data/lib/clerk/models/operations/createsignintoken_request.rb +6 -1
  308. data/lib/clerk/models/operations/createsignintoken_request.rbi +2 -0
  309. data/lib/clerk/models/operations/createuser_request.rb +8 -2
  310. data/lib/clerk/models/operations/createuser_request.rbi +2 -0
  311. data/lib/clerk/models/operations/deletedirectory_request.rb +32 -0
  312. data/lib/clerk/models/operations/deletedirectory_request.rbi +13 -0
  313. data/lib/clerk/models/operations/deletedirectory_response.rb +44 -0
  314. data/lib/clerk/models/operations/deletedirectory_response.rbi +19 -0
  315. data/lib/clerk/models/operations/deletedirectorygrouprolemapping_request.rb +36 -0
  316. data/lib/clerk/models/operations/deletedirectorygrouprolemapping_request.rbi +15 -0
  317. data/lib/clerk/models/operations/deletedirectorygrouprolemapping_response.rb +44 -0
  318. data/lib/clerk/models/operations/deletedirectorygrouprolemapping_response.rbi +19 -0
  319. data/lib/clerk/models/operations/deletedomain_request.rb +1 -1
  320. data/lib/clerk/models/operations/deletescimdirectory_request.rb +32 -0
  321. data/lib/clerk/models/operations/deletescimdirectory_request.rbi +13 -0
  322. data/lib/clerk/models/operations/deletescimdirectory_response.rb +44 -0
  323. data/lib/clerk/models/operations/deletescimdirectory_response.rbi +19 -0
  324. data/lib/clerk/models/operations/deletescimgrouprolemapping_request.rb +36 -0
  325. data/lib/clerk/models/operations/deletescimgrouprolemapping_request.rbi +15 -0
  326. data/lib/clerk/models/operations/deletescimgrouprolemapping_response.rb +44 -0
  327. data/lib/clerk/models/operations/deletescimgrouprolemapping_response.rbi +19 -0
  328. data/lib/clerk/models/operations/enrollment_mode.rb +5 -0
  329. data/lib/clerk/models/operations/extendbillingsubscriptionitemfreetrial_response.rb +4 -4
  330. data/lib/clerk/models/operations/extendbillingsubscriptionitemfreetrial_response.rbi +2 -2
  331. data/lib/clerk/models/operations/getdirectory_request.rb +32 -0
  332. data/lib/clerk/models/operations/getdirectory_request.rbi +13 -0
  333. data/lib/clerk/models/operations/getdirectory_response.rb +44 -0
  334. data/lib/clerk/models/operations/getdirectory_response.rbi +19 -0
  335. data/lib/clerk/models/operations/getreverification_request.rb +36 -0
  336. data/lib/clerk/models/operations/getreverification_request.rbi +15 -0
  337. data/lib/clerk/models/operations/getreverification_response.rb +44 -0
  338. data/lib/clerk/models/operations/getreverification_response.rbi +19 -0
  339. data/lib/clerk/models/operations/getscimdirectory_request.rb +32 -0
  340. data/lib/clerk/models/operations/getscimdirectory_request.rbi +13 -0
  341. data/lib/clerk/models/operations/getscimdirectory_response.rb +44 -0
  342. data/lib/clerk/models/operations/getscimdirectory_response.rbi +19 -0
  343. data/lib/clerk/models/operations/getuserlist_request.rb +13 -1
  344. data/lib/clerk/models/operations/getuserlist_request.rbi +2 -0
  345. data/lib/clerk/models/operations/listallorganizationdomains_request.rb +2 -1
  346. data/lib/clerk/models/operations/listdirectories_request.rb +39 -0
  347. data/lib/clerk/models/operations/listdirectories_request.rbi +15 -0
  348. data/lib/clerk/models/operations/listdirectories_response.rb +44 -0
  349. data/lib/clerk/models/operations/listdirectories_response.rbi +19 -0
  350. data/lib/clerk/models/operations/listdirectorygrouprolemappings_request.rb +32 -0
  351. data/lib/clerk/models/operations/listdirectorygrouprolemappings_request.rbi +13 -0
  352. data/lib/clerk/models/operations/listdirectorygrouprolemappings_response.rb +44 -0
  353. data/lib/clerk/models/operations/listdirectorygrouprolemappings_response.rbi +19 -0
  354. data/lib/clerk/models/operations/listoauthapplications_request.rb +2 -0
  355. data/lib/clerk/models/operations/listorganizationdomains_request.rb +2 -1
  356. data/lib/clerk/models/operations/listscimdirectories_request.rb +39 -0
  357. data/lib/clerk/models/operations/listscimdirectories_request.rbi +15 -0
  358. data/lib/clerk/models/operations/listscimdirectories_response.rb +44 -0
  359. data/lib/clerk/models/operations/listscimdirectories_response.rbi +19 -0
  360. data/lib/clerk/models/operations/listscimgrouprolemappings_request.rb +32 -0
  361. data/lib/clerk/models/operations/listscimgrouprolemappings_request.rbi +13 -0
  362. data/lib/clerk/models/operations/listscimgrouprolemappings_response.rb +44 -0
  363. data/lib/clerk/models/operations/listscimgrouprolemappings_response.rbi +19 -0
  364. data/lib/clerk/models/operations/listuserbiometriccredentials_request.rb +32 -0
  365. data/lib/clerk/models/operations/listuserbiometriccredentials_request.rbi +13 -0
  366. data/lib/clerk/models/operations/listuserbiometriccredentials_response.rb +44 -0
  367. data/lib/clerk/models/operations/listuserbiometriccredentials_response.rbi +19 -0
  368. data/lib/clerk/models/operations/listusertrusteddevices_request.rb +32 -0
  369. data/lib/clerk/models/operations/listusertrusteddevices_request.rbi +13 -0
  370. data/lib/clerk/models/operations/listusertrusteddevices_response.rb +44 -0
  371. data/lib/clerk/models/operations/listusertrusteddevices_response.rbi +19 -0
  372. data/lib/clerk/models/operations/removebillingsubscriptionitemdiscount_request.rb +36 -0
  373. data/lib/clerk/models/operations/removebillingsubscriptionitemdiscount_request.rbi +15 -0
  374. data/lib/clerk/models/operations/removebillingsubscriptionitemdiscount_response.rb +44 -0
  375. data/lib/clerk/models/operations/removebillingsubscriptionitemdiscount_response.rbi +19 -0
  376. data/lib/clerk/models/operations/removeuserpassword_request.rb +36 -0
  377. data/lib/clerk/models/operations/removeuserpassword_request.rbi +15 -0
  378. data/lib/clerk/models/operations/removeuserpassword_requestbody.rb +32 -0
  379. data/lib/clerk/models/operations/removeuserpassword_requestbody.rbi +13 -0
  380. data/lib/clerk/models/operations/removeuserpassword_response.rb +44 -0
  381. data/lib/clerk/models/operations/removeuserpassword_response.rbi +19 -0
  382. data/lib/clerk/models/operations/replacedirectorygrouprolemappings_mapping.rb +40 -0
  383. data/lib/clerk/models/operations/replacedirectorygrouprolemappings_mapping.rbi +17 -0
  384. data/lib/clerk/models/operations/replacedirectorygrouprolemappings_request.rb +36 -0
  385. data/lib/clerk/models/operations/replacedirectorygrouprolemappings_request.rbi +15 -0
  386. data/lib/clerk/models/operations/replacedirectorygrouprolemappings_requestbody.rb +32 -0
  387. data/lib/clerk/models/operations/replacedirectorygrouprolemappings_requestbody.rbi +13 -0
  388. data/lib/clerk/models/operations/replacedirectorygrouprolemappings_response.rb +44 -0
  389. data/lib/clerk/models/operations/replacedirectorygrouprolemappings_response.rbi +19 -0
  390. data/lib/clerk/models/operations/replacescimgrouprolemappings_mapping.rb +36 -0
  391. data/lib/clerk/models/operations/replacescimgrouprolemappings_mapping.rbi +15 -0
  392. data/lib/clerk/models/operations/replacescimgrouprolemappings_request.rb +36 -0
  393. data/lib/clerk/models/operations/replacescimgrouprolemappings_request.rbi +15 -0
  394. data/lib/clerk/models/operations/replacescimgrouprolemappings_requestbody.rb +32 -0
  395. data/lib/clerk/models/operations/replacescimgrouprolemappings_requestbody.rbi +13 -0
  396. data/lib/clerk/models/operations/replacescimgrouprolemappings_response.rb +44 -0
  397. data/lib/clerk/models/operations/replacescimgrouprolemappings_response.rbi +19 -0
  398. data/lib/clerk/models/operations/replaceuseremailaddress_identification_status.rb +10 -2
  399. data/lib/clerk/models/operations/replaceuseremailaddress_requestbody.rb +16 -3
  400. data/lib/clerk/models/operations/replaceuseremailaddress_requestbody.rbi +2 -0
  401. data/lib/clerk/models/operations/replaceuserphonenumber_identification_status.rb +10 -2
  402. data/lib/clerk/models/operations/replaceuserphonenumber_requestbody.rb +9 -2
  403. data/lib/clerk/models/operations/revokeoauthapplicationtoken_request.rb +36 -0
  404. data/lib/clerk/models/operations/revokeoauthapplicationtoken_request.rbi +15 -0
  405. data/lib/clerk/models/operations/revokeoauthapplicationtoken_requestbody.rb +32 -0
  406. data/lib/clerk/models/operations/revokeoauthapplicationtoken_requestbody.rbi +13 -0
  407. data/lib/clerk/models/operations/revokeoauthapplicationtoken_response.rb +40 -0
  408. data/lib/clerk/models/operations/revokeoauthapplicationtoken_response.rbi +17 -0
  409. data/lib/clerk/models/operations/revokeuserbiometriccredential_request.rb +36 -0
  410. data/lib/clerk/models/operations/revokeuserbiometriccredential_request.rbi +15 -0
  411. data/lib/clerk/models/operations/revokeuserbiometriccredential_response.rb +44 -0
  412. data/lib/clerk/models/operations/revokeuserbiometriccredential_response.rbi +19 -0
  413. data/lib/clerk/models/operations/revokeusertrusteddevice_request.rb +36 -0
  414. data/lib/clerk/models/operations/revokeusertrusteddevice_request.rbi +15 -0
  415. data/lib/clerk/models/operations/revokeusertrusteddevice_response.rb +44 -0
  416. data/lib/clerk/models/operations/revokeusertrusteddevice_response.rbi +19 -0
  417. data/lib/clerk/models/operations/rotatedirectoryapikey_request.rb +32 -0
  418. data/lib/clerk/models/operations/rotatedirectoryapikey_request.rbi +13 -0
  419. data/lib/clerk/models/operations/rotatedirectoryapikey_response.rb +44 -0
  420. data/lib/clerk/models/operations/rotatedirectoryapikey_response.rbi +19 -0
  421. data/lib/clerk/models/operations/rotatescimdirectoryapikey_request.rb +32 -0
  422. data/lib/clerk/models/operations/rotatescimdirectoryapikey_request.rbi +13 -0
  423. data/lib/clerk/models/operations/rotatescimdirectoryapikey_response.rb +44 -0
  424. data/lib/clerk/models/operations/rotatescimdirectoryapikey_response.rbi +19 -0
  425. data/lib/clerk/models/operations/updatedirectory_request.rb +36 -0
  426. data/lib/clerk/models/operations/updatedirectory_request.rbi +15 -0
  427. data/lib/clerk/models/operations/updatedirectory_requestbody.rb +49 -0
  428. data/lib/clerk/models/operations/updatedirectory_requestbody.rbi +21 -0
  429. data/lib/clerk/models/operations/updatedirectory_response.rb +44 -0
  430. data/lib/clerk/models/operations/updatedirectory_response.rbi +19 -0
  431. data/lib/clerk/models/operations/updateemailaddress_requestbody.rb +7 -1
  432. data/lib/clerk/models/operations/updateemailaddress_requestbody.rbi +2 -0
  433. data/lib/clerk/models/operations/updateenterpriseconnection_custom_attribute.rb +5 -1
  434. data/lib/clerk/models/operations/updateenterpriseconnection_custom_attribute.rbi +2 -0
  435. data/lib/clerk/models/operations/updateenterpriseconnection_login_hint.rb +36 -0
  436. data/lib/clerk/models/operations/updateenterpriseconnection_login_hint.rbi +15 -0
  437. data/lib/clerk/models/operations/updateenterpriseconnection_mode.rb +21 -0
  438. data/lib/clerk/models/operations/updateenterpriseconnection_mode.rbi +11 -0
  439. data/lib/clerk/models/operations/updateenterpriseconnection_saml.rb +5 -1
  440. data/lib/clerk/models/operations/updateenterpriseconnection_saml.rbi +2 -0
  441. data/lib/clerk/models/operations/updateinstance_request.rb +15 -5
  442. data/lib/clerk/models/operations/updateinstance_request.rbi +6 -2
  443. data/lib/clerk/models/operations/updateinstanceoauthapplicationsettings_request.rb +26 -1
  444. data/lib/clerk/models/operations/updateinstanceoauthapplicationsettings_request.rbi +12 -0
  445. data/lib/clerk/models/operations/updateinstanceprotect_request.rb +1 -1
  446. data/lib/clerk/models/operations/updateoauthapplication_requestbody.rb +9 -5
  447. data/lib/clerk/models/operations/updateoauthapplication_requestbody.rbi +4 -2
  448. data/lib/clerk/models/operations/updateorganization_requestbody.rb +6 -1
  449. data/lib/clerk/models/operations/updateorganization_requestbody.rbi +2 -0
  450. data/lib/clerk/models/operations/updateorganizationdomain_requestbody.rb +1 -1
  451. data/lib/clerk/models/operations/updatesamlconnection_login_hint.rb +36 -0
  452. data/lib/clerk/models/operations/updatesamlconnection_login_hint.rbi +15 -0
  453. data/lib/clerk/models/operations/updatesamlconnection_mode.rb +21 -0
  454. data/lib/clerk/models/operations/updatesamlconnection_mode.rbi +11 -0
  455. data/lib/clerk/models/operations/updatesamlconnection_requestbody.rb +5 -1
  456. data/lib/clerk/models/operations/updatesamlconnection_requestbody.rbi +2 -0
  457. data/lib/clerk/models/operations/updatescimdirectory_request.rb +36 -0
  458. data/lib/clerk/models/operations/updatescimdirectory_request.rbi +15 -0
  459. data/lib/clerk/models/operations/updatescimdirectory_requestbody.rb +49 -0
  460. data/lib/clerk/models/operations/updatescimdirectory_requestbody.rbi +21 -0
  461. data/lib/clerk/models/operations/updatescimdirectory_response.rb +44 -0
  462. data/lib/clerk/models/operations/updatescimdirectory_response.rbi +19 -0
  463. data/lib/clerk/models/operations/updateuser_requestbody.rb +1 -1
  464. data/lib/clerk/models/operations.rb +80 -0
  465. data/lib/clerk/oauthaccesstokens.rb +5 -5
  466. data/lib/clerk/oauthapplications.rb +185 -35
  467. data/lib/clerk/openapiclient.rb +3 -1
  468. data/lib/clerk/organizationdomains.rb +32 -32
  469. data/lib/clerk/organizationinvitations.rb +35 -35
  470. data/lib/clerk/organizationmemberships.rb +25 -25
  471. data/lib/clerk/organizationpermissions.rb +25 -25
  472. data/lib/clerk/organizationroles.rb +35 -35
  473. data/lib/clerk/organizations.rb +60 -60
  474. data/lib/clerk/phonenumbers.rb +53 -38
  475. data/lib/clerk/proxy.rb +3 -3
  476. data/lib/clerk/proxychecks.rb +5 -5
  477. data/lib/clerk/redirecturls.rb +20 -20
  478. data/lib/clerk/rolesets.rb +35 -35
  479. data/lib/clerk/samlconnections.rb +25 -25
  480. data/lib/clerk/scimdirectories.rb +1534 -0
  481. data/lib/clerk/sdk.rb +44 -6
  482. data/lib/clerk/sdkconfiguration.rb +3 -3
  483. data/lib/clerk/sessions.rb +181 -35
  484. data/lib/clerk/signintokens.rb +11 -11
  485. data/lib/clerk/signups.rb +10 -10
  486. data/lib/clerk/templates.rb +5 -5
  487. data/lib/clerk/testingtokens.rb +5 -5
  488. data/lib/clerk/users.rb +1045 -223
  489. data/lib/clerk/utils/retries.rb +43 -1
  490. data/lib/clerk/utils/utils.rb +6 -2
  491. data/lib/clerk/waitlistentries.rb +30 -30
  492. data/lib/clerk/webhooks.rb +15 -15
  493. data/lib/clerk_sdk_ruby.rb +2 -0
  494. data/test/clerk/jwks_cache_scoping_test.rb +83 -0
  495. data/test/clerk/org_permissions_v2_test.rb +130 -0
  496. data/test/clerk/proxy_test.rb +108 -0
  497. metadata +339 -82
  498. data/lib/clerk/models/components/clerkerror_meta.rb +0 -27
  499. data/lib/clerk/models/components/clerkerrors_meta.rb +0 -27
  500. data/lib/clerk/models/components/emailaddress_verification_saml_meta.rb +0 -27
  501. data/lib/clerk/models/components/emailaddress_verification_saml_meta.rbi +0 -11
  502. data/lib/clerk/models/components/enterpriseaccount_verification_oauth_meta.rb +0 -27
  503. data/lib/clerk/models/components/enterpriseaccount_verification_oauth_meta.rbi +0 -11
  504. data/lib/clerk/models/components/enterpriseaccount_verification_saml_meta.rb +0 -27
  505. data/lib/clerk/models/components/enterpriseaccount_verification_saml_meta.rbi +0 -11
  506. data/lib/clerk/models/components/externalaccountwithverification_verification_oauth_meta.rb +0 -27
  507. data/lib/clerk/models/components/externalaccountwithverification_verification_oauth_meta.rbi +0 -11
  508. data/lib/clerk/models/components/samlaccount_meta.rb +0 -27
  509. data/lib/clerk/models/components/schemas_commerceplan_object.rbi +0 -11
  510. data/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_fee.rbi +0 -19
  511. data/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_monthly_fee.rb +0 -44
  512. data/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_monthly_fee.rbi +0 -19
  513. data/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_amount.rbi +0 -19
  514. data/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercepayer.rbi +0 -11
  515. data/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commerceplan.rbi +0 -11
  516. data/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercesubscriptionitem.rbi +0 -11
  517. data/lib/clerk/models/components/schemas_commercesubscriptionitem_plan_period.rbi +0 -11
  518. data/lib/clerk/models/components/schemas_commercesubscriptionitem_status.rbi +0 -11
  519. data/lib/clerk/models/components/schemas_featureresponse_object.rbi +0 -11
  520. data/lib/clerk/models/components/verification_from_oauth_meta.rb +0 -27
  521. data/lib/clerk/models/components/verification_from_oauth_meta.rbi +0 -11
  522. data/lib/clerk/models/components/verification_google_one_tap_meta.rb +0 -27
  523. data/lib/clerk/models/components/verification_google_one_tap_meta.rbi +0 -11
@@ -16,6 +16,8 @@ class Clerk::Models::Operations::UpdateEnterpriseConnectionCustomAttribute
16
16
  def sso_path=(str_); end
17
17
  def scim_path(); end
18
18
  def scim_path=(str_); end
19
+ def directory_path(); end
20
+ def directory_path=(str_); end
19
21
  def multi_valued(); end
20
22
  def multi_valued=(str_); end
21
23
  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
+ # Configuration for the login_hint sent to the IdP on SSO sign-in
11
+ class UpdateEnterpriseConnectionLoginHint
12
+
13
+ include Crystalline::MetadataFields
14
+
15
+ # Controls the login_hint sent to the IdP on SSO sign-in
16
+ field :mode, Models::Operations::UpdateEnterpriseConnectionMode, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('mode'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Operations::UpdateEnterpriseConnectionMode, 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::Operations::UpdateEnterpriseConnectionLoginHint
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Clerk::Models::Operations::UpdateEnterpriseConnectionLoginHint
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 Operations
10
+ # UpdateEnterpriseConnectionMode - Controls the login_hint sent to the IdP on SSO sign-in
11
+ class UpdateEnterpriseConnectionMode
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::Operations::UpdateEnterpriseConnectionMode
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Clerk::Models::Operations::UpdateEnterpriseConnectionMode
11
+ end
@@ -33,9 +33,11 @@ module Clerk
33
33
  field :allow_idp_initiated, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('allow_idp_initiated') } }
34
34
 
35
35
  field :force_authn, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('force_authn') } }
36
+ # Configuration for the login_hint sent to the IdP on SSO sign-in
37
+ field :login_hint, Crystalline::Nilable.new(Models::Operations::UpdateEnterpriseConnectionLoginHint), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('login_hint') } }
36
38
 
37
39
 
38
- def initialize(name: nil, idp_entity_id: nil, idp_sso_url: nil, idp_certificate: nil, idp_metadata_url: nil, idp_metadata: nil, attribute_mapping: nil, allow_subdomains: nil, allow_idp_initiated: nil, force_authn: nil)
40
+ def initialize(name: nil, idp_entity_id: nil, idp_sso_url: nil, idp_certificate: nil, idp_metadata_url: nil, idp_metadata: nil, attribute_mapping: nil, allow_subdomains: nil, allow_idp_initiated: nil, force_authn: nil, login_hint: nil)
39
41
  @name = name
40
42
  @idp_entity_id = idp_entity_id
41
43
  @idp_sso_url = idp_sso_url
@@ -46,6 +48,7 @@ module Clerk
46
48
  @allow_subdomains = allow_subdomains
47
49
  @allow_idp_initiated = allow_idp_initiated
48
50
  @force_authn = force_authn
51
+ @login_hint = login_hint
49
52
  end
50
53
 
51
54
 
@@ -61,6 +64,7 @@ module Clerk
61
64
  return false unless @allow_subdomains == other.allow_subdomains
62
65
  return false unless @allow_idp_initiated == other.allow_idp_initiated
63
66
  return false unless @force_authn == other.force_authn
67
+ return false unless @login_hint == other.login_hint
64
68
  true
65
69
  end
66
70
  end
@@ -28,4 +28,6 @@ class Clerk::Models::Operations::UpdateEnterpriseConnectionSaml
28
28
  def allow_idp_initiated=(str_); end
29
29
  def force_authn(); end
30
30
  def force_authn=(str_); end
31
+ def login_hint(); end
32
+ def login_hint=(str_); end
31
33
  end
@@ -12,8 +12,6 @@ module Clerk
12
12
 
13
13
  include Crystalline::MetadataFields
14
14
 
15
- # For browser-like stacks such as browser extensions, Electron (not officially supported), or Capacitor.js (not officially supported), the instance allowed origins need to be updated with the request origin value. For Chrome extensions popup, background, or service worker pages, the origin is chrome-extension://extension_uuid. For Electron apps the default origin is http://localhost:3000. For Capacitor, the origin is capacitor://localhost.
16
- field :allowed_origins, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('allowed_origins') } }
17
15
  # Toggles test mode for this instance, allowing the use of test email addresses and phone numbers.
18
16
  # Defaults to true for development instances.
19
17
  field :test_mode, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('test_mode') } }
@@ -25,6 +23,14 @@ module Clerk
25
23
  field :clerk_js_version, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('clerk_js_version') } }
26
24
 
27
25
  field :development_origin, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('development_origin') } }
26
+ # For browser-like stacks such as browser extensions, Electron (not officially supported), or Capacitor.js (not officially supported), the instance allowed origins need to be updated with the request origin value. For Chrome extensions popup, background, or service worker pages, the origin is chrome-extension://extension_uuid. For Electron apps the default origin is http://localhost:3000. For Capacitor, the origin is capacitor://localhost.
27
+ # Send an empty array to remove all allowed origins. A null value leaves the current list unchanged.
28
+ field :allowed_origins, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('allowed_origins') } }
29
+ # Subdomains of the instance's own domains that may originate requests while `subdomain_allowlist_enabled` is true. Each entry is either an exact host (`app.example.com`) or a wildcard anchored on a host beneath one of the instance's domains (`*.preview.example.com`), which covers every host under that anchor but not the anchor itself.
30
+ # Entries are stored folded to lower case with any trailing dot removed, the form the origin check compares against, so entries differing only in those respects are one entry. Entries already stored are not validated again, so a list read back from the instance can always be written again unchanged. Send an empty array to remove all entries. A null value leaves the current list unchanged. Production instances only.
31
+ field :allowed_subdomains, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('allowed_subdomains') } }
32
+ # Whether requests from subdomains of the instance's own domains are restricted to `allowed_subdomains`. When false, every subdomain of the instance's domain is accepted. Production instances only.
33
+ field :subdomain_allowlist_enabled, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('subdomain_allowlist_enabled') } }
28
34
  # Whether the instance should operate in cookieless development mode (i.e. without third-party cookies).
29
35
  # Deprecated: Please use `url_based_session_syncing` instead.
30
36
  #
@@ -36,13 +42,15 @@ module Clerk
36
42
  field :preferred_sign_in_strategy_when_password_required, Crystalline::Nilable.new(Models::Operations::PreferredSignInStrategyWhenPasswordRequired), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('preferred_sign_in_strategy_when_password_required'), 'decoder': ::Clerk::Utils.enum_from_string(Models::Operations::PreferredSignInStrategyWhenPasswordRequired, true) } }
37
43
 
38
44
 
39
- def initialize(allowed_origins: nil, test_mode: nil, hibp: nil, support_email: nil, clerk_js_version: nil, development_origin: nil, cookieless_dev: nil, url_based_session_syncing: nil, preferred_sign_in_strategy_when_password_required: nil)
40
- @allowed_origins = allowed_origins
45
+ def initialize(test_mode: nil, hibp: nil, support_email: nil, clerk_js_version: nil, development_origin: nil, allowed_origins: nil, allowed_subdomains: nil, subdomain_allowlist_enabled: nil, cookieless_dev: nil, url_based_session_syncing: nil, preferred_sign_in_strategy_when_password_required: nil)
41
46
  @test_mode = test_mode
42
47
  @hibp = hibp
43
48
  @support_email = support_email
44
49
  @clerk_js_version = clerk_js_version
45
50
  @development_origin = development_origin
51
+ @allowed_origins = allowed_origins
52
+ @allowed_subdomains = allowed_subdomains
53
+ @subdomain_allowlist_enabled = subdomain_allowlist_enabled
46
54
  @cookieless_dev = cookieless_dev
47
55
  @url_based_session_syncing = url_based_session_syncing
48
56
  @preferred_sign_in_strategy_when_password_required = preferred_sign_in_strategy_when_password_required
@@ -51,12 +59,14 @@ module Clerk
51
59
 
52
60
  def ==(other)
53
61
  return false unless other.is_a? self.class
54
- return false unless @allowed_origins == other.allowed_origins
55
62
  return false unless @test_mode == other.test_mode
56
63
  return false unless @hibp == other.hibp
57
64
  return false unless @support_email == other.support_email
58
65
  return false unless @clerk_js_version == other.clerk_js_version
59
66
  return false unless @development_origin == other.development_origin
67
+ return false unless @allowed_origins == other.allowed_origins
68
+ return false unless @allowed_subdomains == other.allowed_subdomains
69
+ return false unless @subdomain_allowlist_enabled == other.subdomain_allowlist_enabled
60
70
  return false unless @cookieless_dev == other.cookieless_dev
61
71
  return false unless @url_based_session_syncing == other.url_based_session_syncing
62
72
  return false unless @preferred_sign_in_strategy_when_password_required == other.preferred_sign_in_strategy_when_password_required
@@ -8,8 +8,6 @@ end
8
8
 
9
9
 
10
10
  class Clerk::Models::Operations::UpdateInstanceRequest
11
- def allowed_origins(); end
12
- def allowed_origins=(str_); end
13
11
  def test_mode(); end
14
12
  def test_mode=(str_); end
15
13
  def hibp(); end
@@ -20,6 +18,12 @@ class Clerk::Models::Operations::UpdateInstanceRequest
20
18
  def clerk_js_version=(str_); end
21
19
  def development_origin(); end
22
20
  def development_origin=(str_); end
21
+ def allowed_origins(); end
22
+ def allowed_origins=(str_); end
23
+ def allowed_subdomains(); end
24
+ def allowed_subdomains=(str_); end
25
+ def subdomain_allowlist_enabled(); end
26
+ def subdomain_allowlist_enabled=(str_); end
23
27
  def cookieless_dev(); end
24
28
  def cookieless_dev=(str_); end
25
29
  def url_based_session_syncing(); end
@@ -14,20 +14,45 @@ module Clerk
14
14
 
15
15
  # Whether dynamic OAuth client registration is enabled for the instance (RFC 7591).
16
16
  field :dynamic_oauth_client_registration, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('dynamic_oauth_client_registration') } }
17
+ # Default scopes assigned when a dynamically registered or first-contact CIMD client omits `scope`. Accepts built-in keys and current custom catalog keys. `advertised` does not affect eligibility. Duplicate keys, unknown keys, and `offline_access` are rejected. An empty array or null resets to Clerk-provided defaults.
18
+ #
19
+ field :default_scopes, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('default_scopes') } }
17
20
  # Whether OAuth JWT access tokens are enabled for the instance (disabled indicates opaque access tokens).
18
21
  field :oauth_jwt_access_tokens, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('oauth_jwt_access_tokens') } }
22
+ # Whether OAuth access tokens can include an aud claim derived from the RFC 8707 resource parameter.
23
+ field :aud_claim_enabled, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('aud_claim_enabled') } }
24
+ # Whether all new OAuth authorization-code requests must use PKCE with the S256 challenge method.
25
+ field :pkce_required, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('pkce_required') } }
26
+ # Whether the instance advertises support for Client ID Metadata Documents in its OAuth authorization server metadata.
27
+ field :client_id_metadata_documents_advertised, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('client_id_metadata_documents_advertised') } }
28
+ # When true, new unknown CIMD clients are rejected. Previously auto-connected and pre-registered clients remain admitted; deleting a client makes it unknown again.
29
+ field :client_id_metadata_documents_only_allow_pre_registered_clients, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('client_id_metadata_documents_only_allow_pre_registered_clients') } }
30
+ # When true, recorded implicitly allowed CIMD clients are rejected on future client lookups. Explicitly allowed clients remain accepted. This does not revoke previously issued access tokens.
31
+ field :client_id_metadata_documents_block_implicitly_allowed_clients, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('client_id_metadata_documents_block_implicitly_allowed_clients') } }
19
32
 
20
33
 
21
- def initialize(dynamic_oauth_client_registration: nil, oauth_jwt_access_tokens: nil)
34
+ def initialize(dynamic_oauth_client_registration: nil, default_scopes: nil, oauth_jwt_access_tokens: nil, aud_claim_enabled: nil, pkce_required: nil, client_id_metadata_documents_advertised: nil, client_id_metadata_documents_only_allow_pre_registered_clients: nil, client_id_metadata_documents_block_implicitly_allowed_clients: nil)
22
35
  @dynamic_oauth_client_registration = dynamic_oauth_client_registration
36
+ @default_scopes = default_scopes
23
37
  @oauth_jwt_access_tokens = oauth_jwt_access_tokens
38
+ @aud_claim_enabled = aud_claim_enabled
39
+ @pkce_required = pkce_required
40
+ @client_id_metadata_documents_advertised = client_id_metadata_documents_advertised
41
+ @client_id_metadata_documents_only_allow_pre_registered_clients = client_id_metadata_documents_only_allow_pre_registered_clients
42
+ @client_id_metadata_documents_block_implicitly_allowed_clients = client_id_metadata_documents_block_implicitly_allowed_clients
24
43
  end
25
44
 
26
45
 
27
46
  def ==(other)
28
47
  return false unless other.is_a? self.class
29
48
  return false unless @dynamic_oauth_client_registration == other.dynamic_oauth_client_registration
49
+ return false unless @default_scopes == other.default_scopes
30
50
  return false unless @oauth_jwt_access_tokens == other.oauth_jwt_access_tokens
51
+ return false unless @aud_claim_enabled == other.aud_claim_enabled
52
+ return false unless @pkce_required == other.pkce_required
53
+ return false unless @client_id_metadata_documents_advertised == other.client_id_metadata_documents_advertised
54
+ return false unless @client_id_metadata_documents_only_allow_pre_registered_clients == other.client_id_metadata_documents_only_allow_pre_registered_clients
55
+ return false unless @client_id_metadata_documents_block_implicitly_allowed_clients == other.client_id_metadata_documents_block_implicitly_allowed_clients
31
56
  true
32
57
  end
33
58
  end
@@ -10,6 +10,18 @@ end
10
10
  class Clerk::Models::Operations::UpdateInstanceOAuthApplicationSettingsRequest
11
11
  def dynamic_oauth_client_registration(); end
12
12
  def dynamic_oauth_client_registration=(str_); end
13
+ def default_scopes(); end
14
+ def default_scopes=(str_); end
13
15
  def oauth_jwt_access_tokens(); end
14
16
  def oauth_jwt_access_tokens=(str_); end
17
+ def aud_claim_enabled(); end
18
+ def aud_claim_enabled=(str_); end
19
+ def pkce_required(); end
20
+ def pkce_required=(str_); end
21
+ def client_id_metadata_documents_advertised(); end
22
+ def client_id_metadata_documents_advertised=(str_); end
23
+ def client_id_metadata_documents_only_allow_pre_registered_clients(); end
24
+ def client_id_metadata_documents_only_allow_pre_registered_clients=(str_); end
25
+ def client_id_metadata_documents_block_implicitly_allowed_clients(); end
26
+ def client_id_metadata_documents_block_implicitly_allowed_clients=(str_); end
15
27
  end
@@ -12,7 +12,7 @@ module Clerk
12
12
 
13
13
  include Crystalline::MetadataFields
14
14
 
15
-
15
+ # Set true to enforce Protect rules on this instance. Set false to stop enforcing and return the instance to its default posture, where traffic is still evaluated in shadow but nothing is blocked. This does not remove the instance from Protect.
16
16
  field :rules_enabled, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('rules_enabled') } }
17
17
 
18
18
  field :specter_enabled, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('specter_enabled') } }
@@ -21,24 +21,27 @@ module Clerk
21
21
  #
22
22
  # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
23
23
  field :callback_url, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('callback_url') } }
24
+ # Replace the application's complete built-in and custom scope ceiling. Provide scope keys as a space-delimited string. Custom keys must exist in the instance OAuth scope catalog. Required built-in scopes, such as `offline_access`, must be included in the replacement set, otherwise the request is rejected. Omit this field to leave all scope assignments unchanged.
25
+ field :scopes, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('scopes') } }
24
26
  # True to enable a consent screen to display in the authentication flow. This cannot be disabled for dynamically registered OAuth Applications.
25
27
  field :consent_screen_enabled, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('consent_screen_enabled') } }
26
28
  # True to require the Proof Key of Code Exchange (PKCE) flow.
27
29
  field :pkce_required, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('pkce_required') } }
30
+ # True to enable the OAuth Device Authorization Grant for this application. Enabling requires the new OAuth IdP and a reachable device verification page. Omit this field to leave the setting unchanged.
31
+ field :device_authorization_grant_enabled, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('device_authorization_grant_enabled') } }
28
32
  # If true, this client is public and you can use the Proof Key of Code Exchange (PKCE) flow.
29
33
  field :public, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('public') } }
30
- # Define the allowed scopes for the new OAuth applications that dictate the user payload of the OAuth user info endpoint. Available scopes are `profile`, `email`, `public_metadata`, `private_metadata`. Provide the requested scopes as a string, separated by spaces.
31
- field :scopes, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('scopes') } }
32
34
 
33
35
 
34
- def initialize(name: nil, redirect_uris: nil, callback_url: nil, consent_screen_enabled: nil, pkce_required: nil, public: nil, scopes: 'profile email')
36
+ def initialize(name: nil, redirect_uris: nil, callback_url: nil, scopes: nil, consent_screen_enabled: nil, pkce_required: nil, device_authorization_grant_enabled: nil, public: nil)
35
37
  @name = name
36
38
  @redirect_uris = redirect_uris
37
39
  @callback_url = callback_url
40
+ @scopes = scopes
38
41
  @consent_screen_enabled = consent_screen_enabled
39
42
  @pkce_required = pkce_required
43
+ @device_authorization_grant_enabled = device_authorization_grant_enabled
40
44
  @public = public
41
- @scopes = scopes
42
45
  end
43
46
 
44
47
 
@@ -47,10 +50,11 @@ module Clerk
47
50
  return false unless @name == other.name
48
51
  return false unless @redirect_uris == other.redirect_uris
49
52
  return false unless @callback_url == other.callback_url
53
+ return false unless @scopes == other.scopes
50
54
  return false unless @consent_screen_enabled == other.consent_screen_enabled
51
55
  return false unless @pkce_required == other.pkce_required
56
+ return false unless @device_authorization_grant_enabled == other.device_authorization_grant_enabled
52
57
  return false unless @public == other.public
53
- return false unless @scopes == other.scopes
54
58
  true
55
59
  end
56
60
  end
@@ -14,12 +14,14 @@ class Clerk::Models::Operations::UpdateOAuthApplicationRequestBody
14
14
  def redirect_uris=(str_); end
15
15
  def callback_url(); end
16
16
  def callback_url=(str_); end
17
+ def scopes(); end
18
+ def scopes=(str_); end
17
19
  def consent_screen_enabled(); end
18
20
  def consent_screen_enabled=(str_); end
19
21
  def pkce_required(); end
20
22
  def pkce_required=(str_); end
23
+ def device_authorization_grant_enabled(); end
24
+ def device_authorization_grant_enabled=(str_); end
21
25
  def public(); end
22
26
  def public=(str_); end
23
- def scopes(); end
24
- def scopes=(str_); end
25
27
  end
@@ -22,17 +22,21 @@ module Clerk
22
22
  field :max_allowed_memberships, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('max_allowed_memberships') } }
23
23
  # If true, an admin can delete this organization with the Frontend API.
24
24
  field :admin_delete_enabled, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('admin_delete_enabled') } }
25
+ # Whether this organization can configure self-serve enterprise SSO.
26
+ # Requires the instance to have the self-serve SSO entitlement enabled.
27
+ field :self_serve_sso_enabled, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('self_serve_sso_enabled') } }
25
28
  # A custom date/time denoting _when_ the organization was created, specified in RFC3339 format (e.g. `2012-10-20T07:15:20.902Z`).
26
29
  field :created_at, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('created_at') } }
27
30
  # The key of the [role set](https://clerk.com/docs/guides/organizations/control-access/role-sets) to assign to this organization.
28
31
  field :role_set_key, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('role_set_key') } }
29
32
 
30
33
 
31
- def initialize(name: nil, slug: nil, max_allowed_memberships: nil, admin_delete_enabled: nil, created_at: nil, role_set_key: nil)
34
+ def initialize(name: nil, slug: nil, max_allowed_memberships: nil, admin_delete_enabled: nil, self_serve_sso_enabled: nil, created_at: nil, role_set_key: nil)
32
35
  @name = name
33
36
  @slug = slug
34
37
  @max_allowed_memberships = max_allowed_memberships
35
38
  @admin_delete_enabled = admin_delete_enabled
39
+ @self_serve_sso_enabled = self_serve_sso_enabled
36
40
  @created_at = created_at
37
41
  @role_set_key = role_set_key
38
42
  end
@@ -44,6 +48,7 @@ module Clerk
44
48
  return false unless @slug == other.slug
45
49
  return false unless @max_allowed_memberships == other.max_allowed_memberships
46
50
  return false unless @admin_delete_enabled == other.admin_delete_enabled
51
+ return false unless @self_serve_sso_enabled == other.self_serve_sso_enabled
47
52
  return false unless @created_at == other.created_at
48
53
  return false unless @role_set_key == other.role_set_key
49
54
  true
@@ -16,6 +16,8 @@ class Clerk::Models::Operations::UpdateOrganizationRequestBody
16
16
  def max_allowed_memberships=(str_); end
17
17
  def admin_delete_enabled(); end
18
18
  def admin_delete_enabled=(str_); end
19
+ def self_serve_sso_enabled(); end
20
+ def self_serve_sso_enabled=(str_); end
19
21
  def created_at(); end
20
22
  def created_at=(str_); end
21
23
  def role_set_key(); end
@@ -12,7 +12,7 @@ module Clerk
12
12
 
13
13
  include Crystalline::MetadataFields
14
14
 
15
- # The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` or `manual_invitation`
15
+ # The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, `manual_invitation` or `enterprise_sso`
16
16
  field :enrollment_mode, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('enrollment_mode') } }
17
17
  # The status of the domain's verification
18
18
  field :verified, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('verified') } }
@@ -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
+ # Configuration for the login_hint sent to the IdP on SSO sign-in
11
+ class UpdateSAMLConnectionLoginHint
12
+
13
+ include Crystalline::MetadataFields
14
+
15
+ # Controls the login_hint sent to the IdP on SSO sign-in
16
+ field :mode, Models::Operations::UpdateSAMLConnectionMode, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('mode'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Operations::UpdateSAMLConnectionMode, 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::Operations::UpdateSAMLConnectionLoginHint
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Clerk::Models::Operations::UpdateSAMLConnectionLoginHint
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 Operations
10
+ # UpdateSAMLConnectionMode - Controls the login_hint sent to the IdP on SSO sign-in
11
+ class UpdateSAMLConnectionMode
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::Operations::UpdateSAMLConnectionMode
6
+ extend ::Crystalline::MetadataFields::ClassMethods
7
+ end
8
+
9
+
10
+ class Clerk::Models::Operations::UpdateSAMLConnectionMode
11
+ end
@@ -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 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