@stackframe/stack-shared 2.8.8 → 2.8.11

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