@stackframe/stack-shared 2.8.8 → 2.8.10

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 (476) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/config/format.d.cts +39 -0
  3. package/dist/config/format.d.ts +14 -13
  4. package/dist/config/format.js +147 -206
  5. package/dist/config/format.js.map +1 -0
  6. package/dist/config/schema.d.cts +724 -0
  7. package/dist/config/schema.d.ts +51 -48
  8. package/dist/config/schema.js +230 -172
  9. package/dist/config/schema.js.map +1 -0
  10. package/dist/crud.d.cts +102 -0
  11. package/dist/crud.d.ts +15 -13
  12. package/dist/crud.js +83 -128
  13. package/dist/crud.js.map +1 -0
  14. package/dist/esm/config/format.js +135 -0
  15. package/dist/esm/config/format.js.map +1 -0
  16. package/dist/esm/config/schema.js +199 -0
  17. package/dist/esm/config/schema.js.map +1 -0
  18. package/dist/esm/crud.js +60 -0
  19. package/dist/esm/crud.js.map +1 -0
  20. package/dist/esm/global.d.js +1 -0
  21. package/dist/esm/global.d.js.map +1 -0
  22. package/dist/esm/helpers/password.js +17 -0
  23. package/dist/esm/helpers/password.js.map +1 -0
  24. package/dist/esm/helpers/production-mode.js +50 -0
  25. package/dist/esm/helpers/production-mode.js.map +1 -0
  26. package/dist/esm/hooks/use-async-callback.js +38 -0
  27. package/dist/esm/hooks/use-async-callback.js.map +1 -0
  28. package/dist/esm/hooks/use-async-external-store.js +23 -0
  29. package/dist/esm/hooks/use-async-external-store.js.map +1 -0
  30. package/dist/esm/hooks/use-hash.js +17 -0
  31. package/dist/esm/hooks/use-hash.js.map +1 -0
  32. package/dist/esm/hooks/use-strict-memo.js +61 -0
  33. package/dist/esm/hooks/use-strict-memo.js.map +1 -0
  34. package/dist/esm/index.js +22 -0
  35. package/dist/esm/index.js.map +1 -0
  36. package/dist/esm/interface/adminInterface.js +244 -0
  37. package/dist/esm/interface/adminInterface.js.map +1 -0
  38. package/dist/esm/interface/clientInterface.js +2041 -0
  39. package/dist/esm/interface/clientInterface.js.map +1 -0
  40. package/dist/esm/interface/crud/contact-channels.js +77 -0
  41. package/dist/esm/interface/crud/contact-channels.js.map +1 -0
  42. package/dist/esm/interface/crud/current-user.js +65 -0
  43. package/dist/esm/interface/crud/current-user.js.map +1 -0
  44. package/dist/esm/interface/crud/email-templates.js +52 -0
  45. package/dist/esm/interface/crud/email-templates.js.map +1 -0
  46. package/dist/esm/interface/crud/emails.js +20 -0
  47. package/dist/esm/interface/crud/emails.js.map +1 -0
  48. package/dist/esm/interface/crud/internal-api-keys.js +69 -0
  49. package/dist/esm/interface/crud/internal-api-keys.js.map +1 -0
  50. package/dist/esm/interface/crud/oauth.js +24 -0
  51. package/dist/esm/interface/crud/oauth.js.map +1 -0
  52. package/dist/esm/interface/crud/project-api-keys.js +93 -0
  53. package/dist/esm/interface/crud/project-api-keys.js.map +1 -0
  54. package/dist/esm/interface/crud/project-permissions.js +113 -0
  55. package/dist/esm/interface/crud/project-permissions.js.map +1 -0
  56. package/dist/esm/interface/crud/projects.js +188 -0
  57. package/dist/esm/interface/crud/projects.js.map +1 -0
  58. package/dist/esm/interface/crud/sessions.js +62 -0
  59. package/dist/esm/interface/crud/sessions.js.map +1 -0
  60. package/dist/esm/interface/crud/svix-token.js +22 -0
  61. package/dist/esm/interface/crud/svix-token.js.map +1 -0
  62. package/dist/esm/interface/crud/team-invitation-details.js +23 -0
  63. package/dist/esm/interface/crud/team-invitation-details.js.map +1 -0
  64. package/dist/esm/interface/crud/team-invitation.js +36 -0
  65. package/dist/esm/interface/crud/team-invitation.js.map +1 -0
  66. package/dist/esm/interface/crud/team-member-profiles.js +62 -0
  67. package/dist/esm/interface/crud/team-member-profiles.js.map +1 -0
  68. package/dist/esm/interface/crud/team-memberships.js +60 -0
  69. package/dist/esm/interface/crud/team-memberships.js.map +1 -0
  70. package/dist/esm/interface/crud/team-permissions.js +114 -0
  71. package/dist/esm/interface/crud/team-permissions.js.map +1 -0
  72. package/dist/esm/interface/crud/teams.js +143 -0
  73. package/dist/esm/interface/crud/teams.js.map +1 -0
  74. package/dist/esm/interface/crud/users.js +139 -0
  75. package/dist/esm/interface/crud/users.js.map +1 -0
  76. package/dist/esm/interface/serverInterface.js +485 -0
  77. package/dist/esm/interface/serverInterface.js.map +1 -0
  78. package/dist/esm/interface/webhooks.js +21 -0
  79. package/dist/esm/interface/webhooks.js.map +1 -0
  80. package/dist/esm/known-errors.js +1223 -0
  81. package/dist/esm/known-errors.js.map +1 -0
  82. package/dist/esm/schema-fields.js +484 -0
  83. package/dist/esm/schema-fields.js.map +1 -0
  84. package/dist/esm/sessions.js +168 -0
  85. package/dist/esm/sessions.js.map +1 -0
  86. package/dist/esm/utils/api-keys.js +79 -0
  87. package/dist/esm/utils/api-keys.js.map +1 -0
  88. package/dist/esm/utils/arrays.js +78 -0
  89. package/dist/esm/utils/arrays.js.map +1 -0
  90. package/dist/esm/utils/base64.js +18 -0
  91. package/dist/esm/utils/base64.js.map +1 -0
  92. package/dist/esm/utils/booleans.js +12 -0
  93. package/dist/esm/utils/booleans.js.map +1 -0
  94. package/dist/esm/utils/browser-compat.js +21 -0
  95. package/dist/esm/utils/browser-compat.js.map +1 -0
  96. package/dist/esm/utils/bytes.js +160 -0
  97. package/dist/esm/utils/bytes.js.map +1 -0
  98. package/dist/esm/utils/caches.js +167 -0
  99. package/dist/esm/utils/caches.js.map +1 -0
  100. package/dist/esm/utils/compile-time.js +11 -0
  101. package/dist/esm/utils/compile-time.js.map +1 -0
  102. package/dist/esm/utils/crypto.js +25 -0
  103. package/dist/esm/utils/crypto.js.map +1 -0
  104. package/dist/esm/utils/dates.js +64 -0
  105. package/dist/esm/utils/dates.js.map +1 -0
  106. package/dist/esm/utils/dom.js +11 -0
  107. package/dist/esm/utils/dom.js.map +1 -0
  108. package/dist/esm/utils/env.js +58 -0
  109. package/dist/esm/utils/env.js.map +1 -0
  110. package/dist/esm/utils/errors.js +174 -0
  111. package/dist/esm/utils/errors.js.map +1 -0
  112. package/dist/esm/utils/fs.js +37 -0
  113. package/dist/esm/utils/fs.js.map +1 -0
  114. package/dist/esm/utils/functions.js +12 -0
  115. package/dist/esm/utils/functions.js.map +1 -0
  116. package/dist/esm/utils/geo.js +15 -0
  117. package/dist/esm/utils/geo.js.map +1 -0
  118. package/dist/esm/utils/globals.js +18 -0
  119. package/dist/esm/utils/globals.js.map +1 -0
  120. package/dist/esm/utils/hashes.js +55 -0
  121. package/dist/esm/utils/hashes.js.map +1 -0
  122. package/dist/esm/utils/html.js +13 -0
  123. package/dist/esm/utils/html.js.map +1 -0
  124. package/dist/esm/utils/http.js +60 -0
  125. package/dist/esm/utils/http.js.map +1 -0
  126. package/dist/esm/utils/ips.js +15 -0
  127. package/dist/esm/utils/ips.js.map +1 -0
  128. package/dist/esm/utils/json.js +31 -0
  129. package/dist/esm/utils/json.js.map +1 -0
  130. package/dist/esm/utils/jwt.js +87 -0
  131. package/dist/esm/utils/jwt.js.map +1 -0
  132. package/dist/esm/utils/locks.js +57 -0
  133. package/dist/esm/utils/locks.js.map +1 -0
  134. package/dist/esm/utils/maps.js +181 -0
  135. package/dist/esm/utils/maps.js.map +1 -0
  136. package/dist/esm/utils/math.js +8 -0
  137. package/dist/esm/utils/math.js.map +1 -0
  138. package/dist/esm/utils/node-http.js +42 -0
  139. package/dist/esm/utils/node-http.js.map +1 -0
  140. package/dist/esm/utils/numbers.js +32 -0
  141. package/dist/esm/utils/numbers.js.map +1 -0
  142. package/dist/esm/utils/oauth.js +10 -0
  143. package/dist/esm/utils/oauth.js.map +1 -0
  144. package/dist/esm/utils/objects.js +153 -0
  145. package/dist/esm/utils/objects.js.map +1 -0
  146. package/dist/esm/utils/passkey.js +1 -0
  147. package/dist/esm/utils/passkey.js.map +1 -0
  148. package/dist/esm/utils/promises.js +233 -0
  149. package/dist/esm/utils/promises.js.map +1 -0
  150. package/dist/esm/utils/proxies.js +128 -0
  151. package/dist/esm/utils/proxies.js.map +1 -0
  152. package/dist/esm/utils/react.js +78 -0
  153. package/dist/esm/utils/react.js.map +1 -0
  154. package/dist/esm/utils/results.js +141 -0
  155. package/dist/esm/utils/results.js.map +1 -0
  156. package/dist/esm/utils/sentry.js +20 -0
  157. package/dist/esm/utils/sentry.js.map +1 -0
  158. package/dist/esm/utils/stores.js +195 -0
  159. package/dist/esm/utils/stores.js.map +1 -0
  160. package/dist/esm/utils/strings.js +294 -0
  161. package/dist/esm/utils/strings.js.map +1 -0
  162. package/dist/esm/utils/strings.nicify.test.js +222 -0
  163. package/dist/esm/utils/strings.nicify.test.js.map +1 -0
  164. package/dist/esm/utils/types.js +1 -0
  165. package/dist/esm/utils/types.js.map +1 -0
  166. package/dist/esm/utils/unicode.js +11 -0
  167. package/dist/esm/utils/unicode.js.map +1 -0
  168. package/dist/esm/utils/urls.js +53 -0
  169. package/dist/esm/utils/urls.js.map +1 -0
  170. package/dist/esm/utils/uuids.js +16 -0
  171. package/dist/esm/utils/uuids.js.map +1 -0
  172. package/dist/global.d.d.cts +1 -0
  173. package/dist/global.d.d.ts +1 -0
  174. package/dist/global.d.js +2 -0
  175. package/dist/global.d.js.map +1 -0
  176. package/dist/helpers/password.d.cts +11 -0
  177. package/dist/helpers/password.d.ts +11 -2
  178. package/dist/helpers/password.js +41 -11
  179. package/dist/helpers/password.js.map +1 -0
  180. package/dist/helpers/production-mode.d.cts +12 -0
  181. package/dist/helpers/production-mode.d.ts +9 -3
  182. package/dist/helpers/production-mode.js +72 -45
  183. package/dist/helpers/production-mode.js.map +1 -0
  184. package/dist/hooks/use-async-callback.d.cts +6 -0
  185. package/dist/hooks/use-async-callback.d.ts +6 -3
  186. package/dist/hooks/use-async-callback.js +72 -30
  187. package/dist/hooks/use-async-callback.js.map +1 -0
  188. package/dist/hooks/use-async-external-store.d.cts +7 -0
  189. package/dist/hooks/use-async-external-store.d.ts +5 -2
  190. package/dist/hooks/use-async-external-store.js +47 -19
  191. package/dist/hooks/use-async-external-store.js.map +1 -0
  192. package/dist/hooks/use-hash.d.cts +3 -0
  193. package/dist/hooks/use-hash.d.ts +3 -1
  194. package/dist/hooks/use-hash.js +41 -8
  195. package/dist/hooks/use-hash.js.map +1 -0
  196. package/dist/hooks/use-strict-memo.d.cts +8 -0
  197. package/dist/hooks/use-strict-memo.d.ts +3 -1
  198. package/dist/hooks/use-strict-memo.js +78 -131
  199. package/dist/hooks/use-strict-memo.js.map +1 -0
  200. package/dist/index.d.cts +30 -0
  201. package/dist/index.d.ts +30 -4
  202. package/dist/index.js +42 -4
  203. package/dist/index.js.map +1 -0
  204. package/dist/interface/adminInterface.d.cts +94 -0
  205. package/dist/interface/adminInterface.d.ts +38 -15
  206. package/dist/interface/adminInterface.js +269 -174
  207. package/dist/interface/adminInterface.js.map +1 -0
  208. package/dist/interface/clientInterface.d.cts +260 -0
  209. package/dist/interface/clientInterface.d.ts +25 -18
  210. package/dist/interface/clientInterface.js +2054 -995
  211. package/dist/interface/clientInterface.js.map +1 -0
  212. package/dist/interface/crud/contact-channels.d.cts +180 -0
  213. package/dist/interface/crud/contact-channels.d.ts +30 -25
  214. package/dist/interface/crud/contact-channels.js +101 -59
  215. package/dist/interface/crud/contact-channels.js.map +1 -0
  216. package/dist/interface/crud/current-user.d.cts +205 -0
  217. package/dist/interface/crud/current-user.d.ts +17 -12
  218. package/dist/interface/crud/current-user.js +86 -56
  219. package/dist/interface/crud/current-user.js.map +1 -0
  220. package/dist/interface/crud/email-templates.d.cts +84 -0
  221. package/dist/interface/crud/email-templates.d.ts +24 -19
  222. package/dist/interface/crud/email-templates.js +77 -37
  223. package/dist/interface/crud/email-templates.js.map +1 -0
  224. package/dist/interface/crud/emails.d.cts +69 -0
  225. package/dist/interface/crud/emails.d.ts +12 -7
  226. package/dist/interface/crud/emails.js +54 -12
  227. package/dist/interface/crud/emails.js.map +1 -0
  228. package/dist/interface/crud/internal-api-keys.d.cts +139 -0
  229. package/dist/interface/crud/internal-api-keys.d.ts +22 -17
  230. package/dist/interface/crud/internal-api-keys.js +92 -54
  231. package/dist/interface/crud/internal-api-keys.js.map +1 -0
  232. package/dist/interface/crud/oauth.d.cts +34 -0
  233. package/dist/interface/crud/oauth.d.ts +16 -11
  234. package/dist/interface/crud/oauth.js +48 -14
  235. package/dist/interface/crud/oauth.js.map +1 -0
  236. package/dist/interface/crud/project-api-keys.d.cts +196 -0
  237. package/dist/interface/crud/project-api-keys.d.ts +18 -10
  238. package/dist/interface/crud/project-api-keys.js +121 -74
  239. package/dist/interface/crud/project-api-keys.js.map +1 -0
  240. package/dist/interface/crud/project-permissions.d.cts +160 -0
  241. package/dist/interface/crud/project-permissions.d.ts +38 -33
  242. package/dist/interface/crud/project-permissions.js +148 -90
  243. package/dist/interface/crud/project-permissions.js.map +1 -0
  244. package/dist/interface/crud/projects.d.cts +640 -0
  245. package/dist/interface/crud/projects.d.ts +36 -31
  246. package/dist/interface/crud/projects.js +218 -156
  247. package/dist/interface/crud/projects.js.map +1 -0
  248. package/dist/interface/crud/sessions.d.cts +149 -0
  249. package/dist/interface/crud/sessions.d.ts +21 -16
  250. package/dist/interface/crud/sessions.js +86 -50
  251. package/dist/interface/crud/sessions.js.map +1 -0
  252. package/dist/interface/crud/svix-token.d.cts +26 -0
  253. package/dist/interface/crud/svix-token.d.ts +14 -9
  254. package/dist/interface/crud/svix-token.js +46 -12
  255. package/dist/interface/crud/svix-token.js.map +1 -0
  256. package/dist/interface/crud/team-invitation-details.d.cts +30 -0
  257. package/dist/interface/crud/team-invitation-details.d.ts +12 -7
  258. package/dist/interface/crud/team-invitation-details.js +57 -15
  259. package/dist/interface/crud/team-invitation-details.js.map +1 -0
  260. package/dist/interface/crud/team-invitation.d.cts +49 -0
  261. package/dist/interface/crud/team-invitation.d.ts +13 -8
  262. package/dist/interface/crud/team-invitation.js +69 -27
  263. package/dist/interface/crud/team-invitation.js.map +1 -0
  264. package/dist/interface/crud/team-member-profiles.d.cts +229 -0
  265. package/dist/interface/crud/team-member-profiles.d.ts +20 -15
  266. package/dist/interface/crud/team-member-profiles.js +95 -49
  267. package/dist/interface/crud/team-member-profiles.js.map +1 -0
  268. package/dist/interface/crud/team-memberships.d.cts +74 -0
  269. package/dist/interface/crud/team-memberships.d.ts +22 -17
  270. package/dist/interface/crud/team-memberships.js +85 -45
  271. package/dist/interface/crud/team-memberships.js.map +1 -0
  272. package/dist/interface/crud/team-permissions.d.cts +168 -0
  273. package/dist/interface/crud/team-permissions.d.ts +38 -33
  274. package/dist/interface/crud/team-permissions.js +149 -91
  275. package/dist/interface/crud/team-permissions.js.map +1 -0
  276. package/dist/interface/crud/teams.d.cts +298 -0
  277. package/dist/interface/crud/teams.d.ts +45 -40
  278. package/dist/interface/crud/teams.js +177 -119
  279. package/dist/interface/crud/teams.js.map +1 -0
  280. package/dist/interface/crud/users.d.cts +469 -0
  281. package/dist/interface/crud/users.d.ts +31 -26
  282. package/dist/interface/crud/users.js +172 -118
  283. package/dist/interface/crud/users.js.map +1 -0
  284. package/dist/interface/serverInterface.d.cts +128 -0
  285. package/dist/interface/serverInterface.d.ts +29 -17
  286. package/dist/interface/serverInterface.js +506 -339
  287. package/dist/interface/serverInterface.js.map +1 -0
  288. package/dist/interface/webhooks.d.cts +292 -0
  289. package/dist/interface/webhooks.d.ts +6 -3
  290. package/dist/interface/webhooks.js +45 -15
  291. package/dist/interface/webhooks.js.map +1 -0
  292. package/dist/known-errors.d.cts +444 -0
  293. package/dist/known-errors.d.ts +12 -9
  294. package/dist/known-errors.js +1088 -561
  295. package/dist/known-errors.js.map +1 -0
  296. package/dist/schema-fields.d.cts +163 -0
  297. package/dist/schema-fields.d.ts +116 -114
  298. package/dist/schema-fields.js +593 -427
  299. package/dist/schema-fields.js.map +1 -0
  300. package/dist/sessions.d.cts +109 -0
  301. package/dist/sessions.d.ts +6 -3
  302. package/dist/sessions.js +201 -172
  303. package/dist/sessions.js.map +1 -0
  304. package/dist/utils/api-keys.d.cts +24 -0
  305. package/dist/utils/api-keys.d.ts +5 -4
  306. package/dist/utils/api-keys.js +106 -66
  307. package/dist/utils/api-keys.js.map +1 -0
  308. package/dist/utils/arrays.d.cts +18 -0
  309. package/dist/utils/arrays.d.ts +15 -13
  310. package/dist/utils/arrays.js +101 -168
  311. package/dist/utils/arrays.js.map +1 -0
  312. package/dist/utils/base64.d.cts +4 -0
  313. package/dist/utils/base64.d.ts +4 -2
  314. package/dist/utils/base64.js +41 -20
  315. package/dist/utils/base64.js.map +1 -0
  316. package/dist/utils/booleans.d.cts +6 -0
  317. package/dist/utils/booleans.d.ts +6 -4
  318. package/dist/utils/booleans.js +35 -27
  319. package/dist/utils/booleans.js.map +1 -0
  320. package/dist/utils/browser-compat.d.cts +8 -0
  321. package/dist/utils/browser-compat.d.ts +3 -1
  322. package/dist/utils/browser-compat.js +45 -16
  323. package/dist/utils/browser-compat.js.map +1 -0
  324. package/dist/utils/bytes.d.cts +15 -0
  325. package/dist/utils/bytes.d.ts +15 -13
  326. package/dist/utils/bytes.js +182 -270
  327. package/dist/utils/bytes.js.map +1 -0
  328. package/dist/utils/caches.d.cts +98 -0
  329. package/dist/utils/caches.d.ts +17 -14
  330. package/dist/utils/caches.js +188 -193
  331. package/dist/utils/caches.js.map +1 -0
  332. package/dist/utils/compile-time.d.cts +8 -0
  333. package/dist/utils/compile-time.d.ts +3 -1
  334. package/dist/utils/compile-time.js +35 -10
  335. package/dist/utils/compile-time.js.map +1 -0
  336. package/dist/utils/crypto.d.cts +8 -0
  337. package/dist/utils/crypto.d.ts +4 -2
  338. package/dist/utils/crypto.js +49 -21
  339. package/dist/utils/crypto.js.map +1 -0
  340. package/dist/utils/dates.d.cts +15 -0
  341. package/dist/utils/dates.d.ts +6 -4
  342. package/dist/utils/dates.js +83 -105
  343. package/dist/utils/dates.js.map +1 -0
  344. package/dist/utils/dom.d.cts +3 -0
  345. package/dist/utils/dom.d.ts +3 -1
  346. package/dist/utils/dom.js +35 -7
  347. package/dist/utils/dom.js.map +1 -0
  348. package/dist/utils/env.d.cts +9 -0
  349. package/dist/utils/env.d.ts +6 -4
  350. package/dist/utils/env.js +70 -43
  351. package/dist/utils/env.js.map +1 -0
  352. package/dist/utils/errors.d.cts +223 -0
  353. package/dist/utils/errors.d.ts +14 -11
  354. package/dist/utils/errors.js +148 -126
  355. package/dist/utils/errors.js.map +1 -0
  356. package/dist/utils/fs.d.cts +7 -0
  357. package/dist/utils/fs.d.ts +5 -3
  358. package/dist/utils/fs.js +70 -27
  359. package/dist/utils/fs.js.map +1 -0
  360. package/dist/utils/functions.d.cts +4 -0
  361. package/dist/utils/functions.d.ts +4 -2
  362. package/dist/utils/functions.js +35 -18
  363. package/dist/utils/functions.js.map +1 -0
  364. package/dist/utils/geo.d.cts +22 -0
  365. package/dist/utils/geo.d.ts +6 -3
  366. package/dist/utils/geo.js +39 -9
  367. package/dist/utils/geo.js.map +1 -0
  368. package/dist/utils/globals.d.cts +5 -0
  369. package/dist/utils/globals.d.ts +4 -2
  370. package/dist/utils/globals.js +41 -14
  371. package/dist/utils/globals.js.map +1 -0
  372. package/dist/utils/hashes.d.cts +7 -0
  373. package/dist/utils/hashes.d.ts +7 -5
  374. package/dist/utils/hashes.js +87 -41
  375. package/dist/utils/hashes.js.map +1 -0
  376. package/dist/utils/html.d.cts +4 -0
  377. package/dist/utils/html.d.ts +4 -2
  378. package/dist/utils/html.js +36 -37
  379. package/dist/utils/html.js.map +1 -0
  380. package/dist/utils/http.d.cts +43 -0
  381. package/dist/utils/http.d.ts +6 -4
  382. package/dist/utils/http.js +83 -83
  383. package/dist/utils/http.js.map +1 -0
  384. package/dist/utils/ips.d.cts +6 -0
  385. package/dist/utils/ips.d.ts +6 -4
  386. package/dist/utils/ips.js +48 -35
  387. package/dist/utils/ips.js.map +1 -0
  388. package/dist/utils/json.d.cts +13 -0
  389. package/dist/utils/json.d.ts +9 -6
  390. package/dist/utils/json.js +54 -157
  391. package/dist/utils/json.js.map +1 -0
  392. package/dist/utils/jwt.d.cts +44 -0
  393. package/dist/utils/jwt.d.ts +14 -11
  394. package/dist/utils/jwt.js +119 -84
  395. package/dist/utils/jwt.js.map +1 -0
  396. package/dist/utils/locks.d.cts +15 -0
  397. package/dist/utils/locks.d.ts +3 -2
  398. package/dist/utils/locks.js +76 -56
  399. package/dist/utils/locks.js.map +1 -0
  400. package/dist/utils/maps.d.cts +59 -0
  401. package/dist/utils/maps.d.ts +6 -4
  402. package/dist/utils/maps.js +207 -343
  403. package/dist/utils/maps.js.map +1 -0
  404. package/dist/utils/math.d.cts +6 -0
  405. package/dist/utils/math.d.ts +3 -1
  406. package/dist/utils/math.js +31 -16
  407. package/dist/utils/math.js.map +1 -0
  408. package/dist/utils/node-http.d.cts +15 -0
  409. package/dist/utils/node-http.d.ts +5 -5
  410. package/dist/utils/node-http.js +65 -36
  411. package/dist/utils/node-http.js.map +1 -0
  412. package/dist/utils/numbers.d.cts +5 -0
  413. package/dist/utils/numbers.d.ts +5 -3
  414. package/dist/utils/numbers.js +53 -66
  415. package/dist/utils/numbers.js.map +1 -0
  416. package/dist/utils/oauth.d.cts +8 -0
  417. package/dist/utils/oauth.d.ts +8 -6
  418. package/dist/utils/oauth.js +37 -4
  419. package/dist/utils/oauth.js.map +1 -0
  420. package/dist/utils/objects.d.cts +65 -0
  421. package/dist/utils/objects.d.ts +31 -30
  422. package/dist/utils/objects.js +196 -374
  423. package/dist/utils/objects.js.map +1 -0
  424. package/dist/utils/passkey.d.cts +1 -0
  425. package/dist/utils/passkey.d.ts +1 -1
  426. package/dist/utils/passkey.js +19 -1
  427. package/dist/utils/passkey.js.map +1 -0
  428. package/dist/utils/promises.d.cts +74 -0
  429. package/dist/utils/promises.d.ts +20 -18
  430. package/dist/utils/promises.js +252 -393
  431. package/dist/utils/promises.js.map +1 -0
  432. package/dist/utils/proxies.d.cts +4 -0
  433. package/dist/utils/proxies.d.ts +4 -2
  434. package/dist/utils/proxies.js +150 -161
  435. package/dist/utils/proxies.js.map +1 -0
  436. package/dist/utils/react.d.cts +25 -0
  437. package/dist/utils/react.d.ts +9 -6
  438. package/dist/utils/react.js +88 -134
  439. package/dist/utils/react.js.map +1 -0
  440. package/dist/utils/results.d.cts +78 -0
  441. package/dist/utils/results.d.ts +10 -9
  442. package/dist/utils/results.js +143 -324
  443. package/dist/utils/results.js.map +1 -0
  444. package/dist/utils/sentry.d.cts +5 -0
  445. package/dist/utils/sentry.d.ts +5 -2
  446. package/dist/utils/sentry.js +44 -14
  447. package/dist/utils/sentry.js.map +1 -0
  448. package/dist/utils/stores.d.cts +102 -0
  449. package/dist/utils/stores.d.ts +12 -9
  450. package/dist/utils/stores.js +219 -189
  451. package/dist/utils/stores.js.map +1 -0
  452. package/dist/utils/strings.d.cts +72 -0
  453. package/dist/utils/strings.d.ts +22 -20
  454. package/dist/utils/strings.js +299 -580
  455. package/dist/utils/strings.js.map +1 -0
  456. package/dist/utils/strings.nicify.test.d.cts +2 -0
  457. package/dist/utils/strings.nicify.test.d.ts +2 -1
  458. package/dist/utils/strings.nicify.test.js +168 -158
  459. package/dist/utils/strings.nicify.test.js.map +1 -0
  460. package/dist/utils/types.d.cts +23 -0
  461. package/dist/utils/types.d.ts +8 -6
  462. package/dist/utils/types.js +19 -1
  463. package/dist/utils/types.js.map +1 -0
  464. package/dist/utils/unicode.d.cts +3 -0
  465. package/dist/utils/unicode.d.ts +3 -1
  466. package/dist/utils/unicode.js +34 -21
  467. package/dist/utils/unicode.js.map +1 -0
  468. package/dist/utils/urls.d.cts +20 -0
  469. package/dist/utils/urls.d.ts +10 -8
  470. package/dist/utils/urls.js +76 -165
  471. package/dist/utils/urls.js.map +1 -0
  472. package/dist/utils/uuids.d.cts +4 -0
  473. package/dist/utils/uuids.d.ts +4 -2
  474. package/dist/utils/uuids.js +39 -35
  475. package/dist/utils/uuids.js.map +1 -0
  476. package/package.json +5 -5
@@ -0,0 +1,640 @@
1
+ import { CrudSchemaFromOptions, CrudTypeOf } from '../../crud.cjs';
2
+ import * as yup from 'yup';
3
+ import '../../utils/types.cjs';
4
+
5
+ declare const emailConfigSchema: yup.ObjectSchema<{
6
+ type: "shared" | "standard";
7
+ host: string | undefined;
8
+ port: number | undefined;
9
+ username: string | undefined;
10
+ password: string | undefined;
11
+ sender_name: string | undefined;
12
+ sender_email: string | undefined;
13
+ }, yup.AnyObject, {
14
+ type: undefined;
15
+ host: undefined;
16
+ port: undefined;
17
+ username: undefined;
18
+ password: undefined;
19
+ sender_name: undefined;
20
+ sender_email: undefined;
21
+ }, "">;
22
+ declare const emailConfigWithoutPasswordSchema: yup.ObjectSchema<{
23
+ type: "shared" | "standard";
24
+ host: string | undefined;
25
+ port: number | undefined;
26
+ username: string | undefined;
27
+ sender_name: string | undefined;
28
+ sender_email: string | undefined;
29
+ }, yup.AnyObject, {
30
+ type: undefined;
31
+ host: undefined;
32
+ port: undefined;
33
+ username: undefined;
34
+ password: undefined;
35
+ sender_name: undefined;
36
+ sender_email: undefined;
37
+ }, "">;
38
+ declare const projectsCrudAdminReadSchema: yup.ObjectSchema<{
39
+ id: string;
40
+ display_name: string;
41
+ description: string;
42
+ created_at_millis: number;
43
+ user_count: number;
44
+ is_production_mode: boolean;
45
+ config: {
46
+ id: string;
47
+ allow_localhost: boolean;
48
+ sign_up_enabled: boolean;
49
+ credential_enabled: boolean;
50
+ magic_link_enabled: boolean;
51
+ passkey_enabled: boolean;
52
+ client_team_creation_enabled: boolean;
53
+ client_user_deletion_enabled: boolean;
54
+ allow_user_api_keys: boolean;
55
+ allow_team_api_keys: boolean;
56
+ oauth_providers: {
57
+ client_id?: string | undefined;
58
+ client_secret?: string | undefined;
59
+ facebook_config_id?: string | undefined;
60
+ microsoft_tenant_id?: string | undefined;
61
+ id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
62
+ type: "shared" | "standard";
63
+ enabled: boolean;
64
+ }[];
65
+ enabled_oauth_providers: {
66
+ id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
67
+ }[];
68
+ domains: {
69
+ domain: string;
70
+ handler_path: string;
71
+ }[];
72
+ email_config: {
73
+ host?: string | undefined;
74
+ port?: number | undefined;
75
+ username?: string | undefined;
76
+ password?: string | undefined;
77
+ sender_name?: string | undefined;
78
+ sender_email?: string | undefined;
79
+ type: "shared" | "standard";
80
+ };
81
+ create_team_on_sign_up: boolean;
82
+ team_creator_default_permissions: {
83
+ id: string;
84
+ }[];
85
+ team_member_default_permissions: {
86
+ id: string;
87
+ }[];
88
+ user_default_permissions: {
89
+ id: string;
90
+ }[];
91
+ oauth_account_merge_strategy: "link_method" | "raise_error" | "allow_duplicates";
92
+ };
93
+ }, yup.AnyObject, {
94
+ id: undefined;
95
+ display_name: undefined;
96
+ description: undefined;
97
+ created_at_millis: undefined;
98
+ user_count: undefined;
99
+ is_production_mode: undefined;
100
+ config: {
101
+ id: undefined;
102
+ allow_localhost: undefined;
103
+ sign_up_enabled: undefined;
104
+ credential_enabled: undefined;
105
+ magic_link_enabled: undefined;
106
+ passkey_enabled: undefined;
107
+ client_team_creation_enabled: undefined;
108
+ client_user_deletion_enabled: undefined;
109
+ allow_user_api_keys: undefined;
110
+ allow_team_api_keys: undefined;
111
+ oauth_providers: undefined;
112
+ enabled_oauth_providers: undefined;
113
+ domains: undefined;
114
+ email_config: {
115
+ type: undefined;
116
+ host: undefined;
117
+ port: undefined;
118
+ username: undefined;
119
+ password: undefined;
120
+ sender_name: undefined;
121
+ sender_email: undefined;
122
+ };
123
+ create_team_on_sign_up: undefined;
124
+ team_creator_default_permissions: undefined;
125
+ team_member_default_permissions: undefined;
126
+ user_default_permissions: undefined;
127
+ oauth_account_merge_strategy: undefined;
128
+ };
129
+ }, "">;
130
+ declare const projectsCrudClientReadSchema: yup.ObjectSchema<{
131
+ id: string;
132
+ display_name: string;
133
+ config: {
134
+ sign_up_enabled: boolean;
135
+ credential_enabled: boolean;
136
+ magic_link_enabled: boolean;
137
+ passkey_enabled: boolean;
138
+ client_team_creation_enabled: boolean;
139
+ client_user_deletion_enabled: boolean;
140
+ allow_user_api_keys: boolean;
141
+ allow_team_api_keys: boolean;
142
+ enabled_oauth_providers: {
143
+ id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
144
+ }[];
145
+ };
146
+ }, yup.AnyObject, {
147
+ id: undefined;
148
+ display_name: undefined;
149
+ config: {
150
+ sign_up_enabled: undefined;
151
+ credential_enabled: undefined;
152
+ magic_link_enabled: undefined;
153
+ passkey_enabled: undefined;
154
+ client_team_creation_enabled: undefined;
155
+ client_user_deletion_enabled: undefined;
156
+ allow_user_api_keys: undefined;
157
+ allow_team_api_keys: undefined;
158
+ enabled_oauth_providers: undefined;
159
+ };
160
+ }, "">;
161
+ declare const projectsCrudAdminUpdateSchema: yup.ObjectSchema<{
162
+ display_name: string | undefined;
163
+ description: string | null | undefined;
164
+ is_production_mode: boolean | undefined;
165
+ config: {
166
+ allow_localhost?: boolean | undefined;
167
+ sign_up_enabled?: boolean | undefined;
168
+ credential_enabled?: boolean | undefined;
169
+ magic_link_enabled?: boolean | undefined;
170
+ passkey_enabled?: boolean | undefined;
171
+ client_team_creation_enabled?: boolean | undefined;
172
+ client_user_deletion_enabled?: boolean | undefined;
173
+ allow_user_api_keys?: boolean | undefined;
174
+ allow_team_api_keys?: boolean | undefined;
175
+ oauth_providers?: {
176
+ client_id?: string | undefined;
177
+ client_secret?: string | undefined;
178
+ facebook_config_id?: string | undefined;
179
+ microsoft_tenant_id?: string | undefined;
180
+ id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
181
+ type: "shared" | "standard";
182
+ enabled: boolean;
183
+ }[] | undefined;
184
+ domains?: {
185
+ domain: string;
186
+ handler_path: string;
187
+ }[] | undefined;
188
+ email_config?: {
189
+ host?: string | undefined;
190
+ port?: number | undefined;
191
+ username?: string | undefined;
192
+ password?: string | undefined;
193
+ sender_name?: string | undefined;
194
+ sender_email?: string | undefined;
195
+ type: "shared" | "standard";
196
+ } | undefined;
197
+ create_team_on_sign_up?: boolean | undefined;
198
+ team_creator_default_permissions?: {
199
+ id: string;
200
+ }[] | undefined;
201
+ team_member_default_permissions?: {
202
+ id: string;
203
+ }[] | undefined;
204
+ user_default_permissions?: {
205
+ id: string;
206
+ }[] | undefined;
207
+ oauth_account_merge_strategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
208
+ } | undefined;
209
+ }, yup.AnyObject, {
210
+ display_name: undefined;
211
+ description: undefined;
212
+ is_production_mode: undefined;
213
+ config: undefined;
214
+ }, "">;
215
+ declare const projectsCrudAdminCreateSchema: yup.ObjectSchema<{
216
+ display_name: string;
217
+ description: string | null | undefined;
218
+ is_production_mode: boolean | undefined;
219
+ config: {
220
+ allow_localhost?: boolean | undefined;
221
+ sign_up_enabled?: boolean | undefined;
222
+ credential_enabled?: boolean | undefined;
223
+ magic_link_enabled?: boolean | undefined;
224
+ passkey_enabled?: boolean | undefined;
225
+ client_team_creation_enabled?: boolean | undefined;
226
+ client_user_deletion_enabled?: boolean | undefined;
227
+ allow_user_api_keys?: boolean | undefined;
228
+ allow_team_api_keys?: boolean | undefined;
229
+ oauth_providers?: {
230
+ client_id?: string | undefined;
231
+ client_secret?: string | undefined;
232
+ facebook_config_id?: string | undefined;
233
+ microsoft_tenant_id?: string | undefined;
234
+ id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
235
+ type: "shared" | "standard";
236
+ enabled: boolean;
237
+ }[] | undefined;
238
+ domains?: {
239
+ domain: string;
240
+ handler_path: string;
241
+ }[] | undefined;
242
+ email_config?: {
243
+ host?: string | undefined;
244
+ port?: number | undefined;
245
+ username?: string | undefined;
246
+ password?: string | undefined;
247
+ sender_name?: string | undefined;
248
+ sender_email?: string | undefined;
249
+ type: "shared" | "standard";
250
+ } | undefined;
251
+ create_team_on_sign_up?: boolean | undefined;
252
+ team_creator_default_permissions?: {
253
+ id: string;
254
+ }[] | undefined;
255
+ team_member_default_permissions?: {
256
+ id: string;
257
+ }[] | undefined;
258
+ user_default_permissions?: {
259
+ id: string;
260
+ }[] | undefined;
261
+ oauth_account_merge_strategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
262
+ } | undefined;
263
+ } & {
264
+ display_name: string;
265
+ }, yup.AnyObject, {
266
+ display_name: undefined;
267
+ description: undefined;
268
+ is_production_mode: undefined;
269
+ config: undefined;
270
+ }, "">;
271
+ declare const projectsCrudAdminDeleteSchema: yup.MixedSchema<{} | undefined, yup.AnyObject, undefined, "">;
272
+ declare const clientProjectsCrud: CrudSchemaFromOptions<{
273
+ clientReadSchema: yup.ObjectSchema<{
274
+ id: string;
275
+ display_name: string;
276
+ config: {
277
+ sign_up_enabled: boolean;
278
+ credential_enabled: boolean;
279
+ magic_link_enabled: boolean;
280
+ passkey_enabled: boolean;
281
+ client_team_creation_enabled: boolean;
282
+ client_user_deletion_enabled: boolean;
283
+ allow_user_api_keys: boolean;
284
+ allow_team_api_keys: boolean;
285
+ enabled_oauth_providers: {
286
+ id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
287
+ }[];
288
+ };
289
+ }, yup.AnyObject, {
290
+ id: undefined;
291
+ display_name: undefined;
292
+ config: {
293
+ sign_up_enabled: undefined;
294
+ credential_enabled: undefined;
295
+ magic_link_enabled: undefined;
296
+ passkey_enabled: undefined;
297
+ client_team_creation_enabled: undefined;
298
+ client_user_deletion_enabled: undefined;
299
+ allow_user_api_keys: undefined;
300
+ allow_team_api_keys: undefined;
301
+ enabled_oauth_providers: undefined;
302
+ };
303
+ }, "">;
304
+ docs: {
305
+ clientRead: {
306
+ summary: string;
307
+ description: string;
308
+ tags: string[];
309
+ };
310
+ };
311
+ }>;
312
+ type ClientProjectsCrud = CrudTypeOf<typeof clientProjectsCrud>;
313
+ declare const projectsCrud: CrudSchemaFromOptions<{
314
+ adminReadSchema: yup.ObjectSchema<{
315
+ id: string;
316
+ display_name: string;
317
+ description: string;
318
+ created_at_millis: number;
319
+ user_count: number;
320
+ is_production_mode: boolean;
321
+ config: {
322
+ id: string;
323
+ allow_localhost: boolean;
324
+ sign_up_enabled: boolean;
325
+ credential_enabled: boolean;
326
+ magic_link_enabled: boolean;
327
+ passkey_enabled: boolean;
328
+ client_team_creation_enabled: boolean;
329
+ client_user_deletion_enabled: boolean;
330
+ allow_user_api_keys: boolean;
331
+ allow_team_api_keys: boolean;
332
+ oauth_providers: {
333
+ client_id?: string | undefined;
334
+ client_secret?: string | undefined;
335
+ facebook_config_id?: string | undefined;
336
+ microsoft_tenant_id?: string | undefined;
337
+ id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
338
+ type: "shared" | "standard";
339
+ enabled: boolean;
340
+ }[];
341
+ enabled_oauth_providers: {
342
+ id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
343
+ }[];
344
+ domains: {
345
+ domain: string;
346
+ handler_path: string;
347
+ }[];
348
+ email_config: {
349
+ host?: string | undefined;
350
+ port?: number | undefined;
351
+ username?: string | undefined;
352
+ password?: string | undefined;
353
+ sender_name?: string | undefined;
354
+ sender_email?: string | undefined;
355
+ type: "shared" | "standard";
356
+ };
357
+ create_team_on_sign_up: boolean;
358
+ team_creator_default_permissions: {
359
+ id: string;
360
+ }[];
361
+ team_member_default_permissions: {
362
+ id: string;
363
+ }[];
364
+ user_default_permissions: {
365
+ id: string;
366
+ }[];
367
+ oauth_account_merge_strategy: "link_method" | "raise_error" | "allow_duplicates";
368
+ };
369
+ }, yup.AnyObject, {
370
+ id: undefined;
371
+ display_name: undefined;
372
+ description: undefined;
373
+ created_at_millis: undefined;
374
+ user_count: undefined;
375
+ is_production_mode: undefined;
376
+ config: {
377
+ id: undefined;
378
+ allow_localhost: undefined;
379
+ sign_up_enabled: undefined;
380
+ credential_enabled: undefined;
381
+ magic_link_enabled: undefined;
382
+ passkey_enabled: undefined;
383
+ client_team_creation_enabled: undefined;
384
+ client_user_deletion_enabled: undefined;
385
+ allow_user_api_keys: undefined;
386
+ allow_team_api_keys: undefined;
387
+ oauth_providers: undefined;
388
+ enabled_oauth_providers: undefined;
389
+ domains: undefined;
390
+ email_config: {
391
+ type: undefined;
392
+ host: undefined;
393
+ port: undefined;
394
+ username: undefined;
395
+ password: undefined;
396
+ sender_name: undefined;
397
+ sender_email: undefined;
398
+ };
399
+ create_team_on_sign_up: undefined;
400
+ team_creator_default_permissions: undefined;
401
+ team_member_default_permissions: undefined;
402
+ user_default_permissions: undefined;
403
+ oauth_account_merge_strategy: undefined;
404
+ };
405
+ }, "">;
406
+ adminUpdateSchema: yup.ObjectSchema<{
407
+ display_name: string | undefined;
408
+ description: string | null | undefined;
409
+ is_production_mode: boolean | undefined;
410
+ config: {
411
+ allow_localhost?: boolean | undefined;
412
+ sign_up_enabled?: boolean | undefined;
413
+ credential_enabled?: boolean | undefined;
414
+ magic_link_enabled?: boolean | undefined;
415
+ passkey_enabled?: boolean | undefined;
416
+ client_team_creation_enabled?: boolean | undefined;
417
+ client_user_deletion_enabled?: boolean | undefined;
418
+ allow_user_api_keys?: boolean | undefined;
419
+ allow_team_api_keys?: boolean | undefined;
420
+ oauth_providers?: {
421
+ client_id?: string | undefined;
422
+ client_secret?: string | undefined;
423
+ facebook_config_id?: string | undefined;
424
+ microsoft_tenant_id?: string | undefined;
425
+ id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
426
+ type: "shared" | "standard";
427
+ enabled: boolean;
428
+ }[] | undefined;
429
+ domains?: {
430
+ domain: string;
431
+ handler_path: string;
432
+ }[] | undefined;
433
+ email_config?: {
434
+ host?: string | undefined;
435
+ port?: number | undefined;
436
+ username?: string | undefined;
437
+ password?: string | undefined;
438
+ sender_name?: string | undefined;
439
+ sender_email?: string | undefined;
440
+ type: "shared" | "standard";
441
+ } | undefined;
442
+ create_team_on_sign_up?: boolean | undefined;
443
+ team_creator_default_permissions?: {
444
+ id: string;
445
+ }[] | undefined;
446
+ team_member_default_permissions?: {
447
+ id: string;
448
+ }[] | undefined;
449
+ user_default_permissions?: {
450
+ id: string;
451
+ }[] | undefined;
452
+ oauth_account_merge_strategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
453
+ } | undefined;
454
+ }, yup.AnyObject, {
455
+ display_name: undefined;
456
+ description: undefined;
457
+ is_production_mode: undefined;
458
+ config: undefined;
459
+ }, "">;
460
+ adminDeleteSchema: yup.MixedSchema<{} | undefined, yup.AnyObject, undefined, "">;
461
+ docs: {
462
+ adminRead: {
463
+ summary: string;
464
+ description: string;
465
+ tags: string[];
466
+ };
467
+ adminUpdate: {
468
+ summary: string;
469
+ description: string;
470
+ tags: string[];
471
+ };
472
+ adminDelete: {
473
+ summary: string;
474
+ description: string;
475
+ tags: string[];
476
+ };
477
+ };
478
+ }>;
479
+ type ProjectsCrud = CrudTypeOf<typeof projectsCrud>;
480
+ declare const adminUserProjectsCrud: CrudSchemaFromOptions<{
481
+ clientReadSchema: yup.ObjectSchema<{
482
+ id: string;
483
+ display_name: string;
484
+ description: string;
485
+ created_at_millis: number;
486
+ user_count: number;
487
+ is_production_mode: boolean;
488
+ config: {
489
+ id: string;
490
+ allow_localhost: boolean;
491
+ sign_up_enabled: boolean;
492
+ credential_enabled: boolean;
493
+ magic_link_enabled: boolean;
494
+ passkey_enabled: boolean;
495
+ client_team_creation_enabled: boolean;
496
+ client_user_deletion_enabled: boolean;
497
+ allow_user_api_keys: boolean;
498
+ allow_team_api_keys: boolean;
499
+ oauth_providers: {
500
+ client_id?: string | undefined;
501
+ client_secret?: string | undefined;
502
+ facebook_config_id?: string | undefined;
503
+ microsoft_tenant_id?: string | undefined;
504
+ id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
505
+ type: "shared" | "standard";
506
+ enabled: boolean;
507
+ }[];
508
+ enabled_oauth_providers: {
509
+ id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
510
+ }[];
511
+ domains: {
512
+ domain: string;
513
+ handler_path: string;
514
+ }[];
515
+ email_config: {
516
+ host?: string | undefined;
517
+ port?: number | undefined;
518
+ username?: string | undefined;
519
+ password?: string | undefined;
520
+ sender_name?: string | undefined;
521
+ sender_email?: string | undefined;
522
+ type: "shared" | "standard";
523
+ };
524
+ create_team_on_sign_up: boolean;
525
+ team_creator_default_permissions: {
526
+ id: string;
527
+ }[];
528
+ team_member_default_permissions: {
529
+ id: string;
530
+ }[];
531
+ user_default_permissions: {
532
+ id: string;
533
+ }[];
534
+ oauth_account_merge_strategy: "link_method" | "raise_error" | "allow_duplicates";
535
+ };
536
+ }, yup.AnyObject, {
537
+ id: undefined;
538
+ display_name: undefined;
539
+ description: undefined;
540
+ created_at_millis: undefined;
541
+ user_count: undefined;
542
+ is_production_mode: undefined;
543
+ config: {
544
+ id: undefined;
545
+ allow_localhost: undefined;
546
+ sign_up_enabled: undefined;
547
+ credential_enabled: undefined;
548
+ magic_link_enabled: undefined;
549
+ passkey_enabled: undefined;
550
+ client_team_creation_enabled: undefined;
551
+ client_user_deletion_enabled: undefined;
552
+ allow_user_api_keys: undefined;
553
+ allow_team_api_keys: undefined;
554
+ oauth_providers: undefined;
555
+ enabled_oauth_providers: undefined;
556
+ domains: undefined;
557
+ email_config: {
558
+ type: undefined;
559
+ host: undefined;
560
+ port: undefined;
561
+ username: undefined;
562
+ password: undefined;
563
+ sender_name: undefined;
564
+ sender_email: undefined;
565
+ };
566
+ create_team_on_sign_up: undefined;
567
+ team_creator_default_permissions: undefined;
568
+ team_member_default_permissions: undefined;
569
+ user_default_permissions: undefined;
570
+ oauth_account_merge_strategy: undefined;
571
+ };
572
+ }, "">;
573
+ clientCreateSchema: yup.ObjectSchema<{
574
+ display_name: string;
575
+ description: string | null | undefined;
576
+ is_production_mode: boolean | undefined;
577
+ config: {
578
+ allow_localhost?: boolean | undefined;
579
+ sign_up_enabled?: boolean | undefined;
580
+ credential_enabled?: boolean | undefined;
581
+ magic_link_enabled?: boolean | undefined;
582
+ passkey_enabled?: boolean | undefined;
583
+ client_team_creation_enabled?: boolean | undefined;
584
+ client_user_deletion_enabled?: boolean | undefined;
585
+ allow_user_api_keys?: boolean | undefined;
586
+ allow_team_api_keys?: boolean | undefined;
587
+ oauth_providers?: {
588
+ client_id?: string | undefined;
589
+ client_secret?: string | undefined;
590
+ facebook_config_id?: string | undefined;
591
+ microsoft_tenant_id?: string | undefined;
592
+ id: "apple" | "x" | "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin";
593
+ type: "shared" | "standard";
594
+ enabled: boolean;
595
+ }[] | undefined;
596
+ domains?: {
597
+ domain: string;
598
+ handler_path: string;
599
+ }[] | undefined;
600
+ email_config?: {
601
+ host?: string | undefined;
602
+ port?: number | undefined;
603
+ username?: string | undefined;
604
+ password?: string | undefined;
605
+ sender_name?: string | undefined;
606
+ sender_email?: string | undefined;
607
+ type: "shared" | "standard";
608
+ } | undefined;
609
+ create_team_on_sign_up?: boolean | undefined;
610
+ team_creator_default_permissions?: {
611
+ id: string;
612
+ }[] | undefined;
613
+ team_member_default_permissions?: {
614
+ id: string;
615
+ }[] | undefined;
616
+ user_default_permissions?: {
617
+ id: string;
618
+ }[] | undefined;
619
+ oauth_account_merge_strategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
620
+ } | undefined;
621
+ } & {
622
+ display_name: string;
623
+ }, yup.AnyObject, {
624
+ display_name: undefined;
625
+ description: undefined;
626
+ is_production_mode: undefined;
627
+ config: undefined;
628
+ }, "">;
629
+ docs: {
630
+ clientList: {
631
+ hidden: true;
632
+ };
633
+ clientCreate: {
634
+ hidden: true;
635
+ };
636
+ };
637
+ }>;
638
+ type AdminUserProjectsCrud = CrudTypeOf<typeof adminUserProjectsCrud>;
639
+
640
+ export { type AdminUserProjectsCrud, type ClientProjectsCrud, type ProjectsCrud, adminUserProjectsCrud, clientProjectsCrud, emailConfigSchema, emailConfigWithoutPasswordSchema, projectsCrud, projectsCrudAdminCreateSchema, projectsCrudAdminDeleteSchema, projectsCrudAdminReadSchema, projectsCrudAdminUpdateSchema, projectsCrudClientReadSchema };