@hexclave/shared 1.0.41 → 1.0.43

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 (1067) hide show
  1. package/dist/admin-interface-Bv8rBJo-.d.ts +379 -0
  2. package/dist/admin-interface-Bv8rBJo-.d.ts.map +1 -0
  3. package/dist/admin-metrics-DyW8_G82.d.ts +807 -0
  4. package/dist/admin-metrics-DyW8_G82.d.ts.map +1 -0
  5. package/dist/ai/image-limits.d.ts.map +1 -1
  6. package/dist/ai/image-limits.js +6 -7
  7. package/dist/ai/image-limits.js.map +1 -1
  8. package/dist/ai/llms/llms.d.ts.map +1 -1
  9. package/dist/ai/llms/llms.js +2 -4
  10. package/dist/ai/llms/llms.js.map +1 -1
  11. package/dist/ai/unified-prompts/reminders.js +2 -4
  12. package/dist/ai/unified-prompts/reminders.js.map +1 -1
  13. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  14. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +2 -5
  15. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  16. package/dist/ai/unified-prompts/skill-site-prompt-parts/brain.js +3 -6
  17. package/dist/ai/unified-prompts/skill-site-prompt-parts/brain.js.map +1 -1
  18. package/dist/ai/unified-prompts/skill-site-prompt-parts/cli-help.js +3 -6
  19. package/dist/ai/unified-prompts/skill-site-prompt-parts/cli-help.js.map +1 -1
  20. package/dist/ai/unified-prompts/skill-site-prompt-parts/config-docs.js +3 -6
  21. package/dist/ai/unified-prompts/skill-site-prompt-parts/config-docs.js.map +1 -1
  22. package/dist/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.js +3 -6
  23. package/dist/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.js.map +1 -1
  24. package/dist/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.js +3 -6
  25. package/dist/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.js.map +1 -1
  26. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-index.d.ts.map +1 -1
  27. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-index.js +5 -6
  28. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-index.js.map +1 -1
  29. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js +1 -2
  30. package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js.map +1 -1
  31. package/dist/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.js +3 -6
  32. package/dist/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.js.map +1 -1
  33. package/dist/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.js +3 -6
  34. package/dist/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.js.map +1 -1
  35. package/dist/ai/unified-prompts/skill-site-prompt.d.ts.map +1 -1
  36. package/dist/ai/unified-prompts/skill-site-prompt.js +2 -4
  37. package/dist/ai/unified-prompts/skill-site-prompt.js.map +1 -1
  38. package/dist/analytics-IjkAsefy.d.ts +14 -0
  39. package/dist/analytics-IjkAsefy.d.ts.map +1 -0
  40. package/dist/apps/apps-config.d.ts.map +1 -1
  41. package/dist/apps/apps-config.js +2 -3
  42. package/dist/apps/apps-config.js.map +1 -1
  43. package/dist/apps/apps-ui.d.ts +1 -2
  44. package/dist/apps/apps-ui.d.ts.map +1 -1
  45. package/dist/apps/apps-ui.js +4 -5
  46. package/dist/apps/apps-ui.js.map +1 -1
  47. package/dist/client-interface-CGrvUtX0.d.ts +447 -0
  48. package/dist/client-interface-CGrvUtX0.d.ts.map +1 -0
  49. package/dist/config/db-sync-mappings.js +2 -3
  50. package/dist/config/db-sync-mappings.js.map +1 -1
  51. package/dist/config/format.d.ts +2 -61
  52. package/dist/config/format.js +2 -192
  53. package/dist/config/format.js.map +1 -1
  54. package/dist/config/migrate-catalogs-to-product-lines.d.ts.map +1 -1
  55. package/dist/config/migrate-catalogs-to-product-lines.js +2 -196
  56. package/dist/config/migrate-catalogs-to-product-lines.js.map +1 -1
  57. package/dist/config/schema-fuzzer.test.js +18 -172
  58. package/dist/config/schema-fuzzer.test.js.map +1 -1
  59. package/dist/config/schema.d.ts +2 -2328
  60. package/dist/config/schema.js +6 -351
  61. package/dist/config/schema.js.map +1 -1
  62. package/dist/config-authoring.d.ts +1 -1
  63. package/dist/config-authoring.d.ts.map +1 -1
  64. package/dist/config-authoring.js +2 -3
  65. package/dist/config-authoring.js.map +1 -1
  66. package/dist/config-authoring.test.js +1 -3
  67. package/dist/config-authoring.test.js.map +1 -1
  68. package/dist/config-eval.d.ts.map +1 -1
  69. package/dist/config-eval.js +4 -46
  70. package/dist/config-eval.js.map +1 -1
  71. package/dist/config-rendering.d.ts.map +1 -1
  72. package/dist/config-rendering.js +2 -48
  73. package/dist/config-rendering.js.map +1 -1
  74. package/dist/connected-accounts-D5CKe50A.d.ts +67 -0
  75. package/dist/connected-accounts-D5CKe50A.d.ts.map +1 -0
  76. package/dist/contact-channels-DW8yQxlc.d.ts +180 -0
  77. package/dist/contact-channels-DW8yQxlc.d.ts.map +1 -0
  78. package/dist/country-codes-CRWDroBE.d.ts +11 -0
  79. package/dist/country-codes-CRWDroBE.d.ts.map +1 -0
  80. package/dist/crud-CqmEW9s6.d.ts +98 -0
  81. package/dist/crud-CqmEW9s6.d.ts.map +1 -0
  82. package/dist/crud.d.ts +2 -98
  83. package/dist/crud.js +3 -71
  84. package/dist/crud.js.map +1 -1
  85. package/dist/currency-constants-Cq_q8twn.d.ts +45 -0
  86. package/dist/currency-constants-Cq_q8twn.d.ts.map +1 -0
  87. package/dist/current-user-Dvf8Ttjo.d.ts +284 -0
  88. package/dist/current-user-Dvf8Ttjo.d.ts.map +1 -0
  89. package/dist/dates-B6ne9iOR.d.ts +23 -0
  90. package/dist/dates-B6ne9iOR.d.ts.map +1 -0
  91. package/dist/email-outbox-BVqBaXpn.d.ts +1464 -0
  92. package/dist/{interface/crud/email-outbox.d.ts.map → email-outbox-BVqBaXpn.d.ts.map} +1 -1
  93. package/dist/emails-Ba4yEaCS.d.ts +40 -0
  94. package/dist/emails-Ba4yEaCS.d.ts.map +1 -0
  95. package/dist/errors-Cl-RUyed.d.ts +238 -0
  96. package/dist/errors-Cl-RUyed.d.ts.map +1 -0
  97. package/dist/esm/ai/image-limits.d.ts.map +1 -1
  98. package/dist/esm/ai/image-limits.js +5 -5
  99. package/dist/esm/ai/image-limits.js.map +1 -1
  100. package/dist/esm/ai/llms/llms.d.ts +1 -1
  101. package/dist/esm/ai/llms/llms.d.ts.map +1 -1
  102. package/dist/esm/ai/llms/llms.js +1 -2
  103. package/dist/esm/ai/llms/llms.js.map +1 -1
  104. package/dist/esm/ai/unified-prompts/reminders.js +1 -2
  105. package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
  106. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  107. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +25 -28
  108. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  109. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/brain.js +1 -2
  110. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/brain.js.map +1 -1
  111. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/cli-help.js +1 -2
  112. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/cli-help.js.map +1 -1
  113. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/config-docs.js +1 -2
  114. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/config-docs.js.map +1 -1
  115. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.js +1 -2
  116. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/custom-components-instructions.js.map +1 -1
  117. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.js +1 -2
  118. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/dashboard-instructions.js.map +1 -1
  119. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-index.d.ts.map +1 -1
  120. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-index.js +2 -3
  121. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-index.js.map +1 -1
  122. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js +1 -1
  123. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js.map +1 -1
  124. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.js +1 -2
  125. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/openapi-specs.js.map +1 -1
  126. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.js +1 -2
  127. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/sdk-interface-source.js.map +1 -1
  128. package/dist/esm/ai/unified-prompts/skill-site-prompt.d.ts.map +1 -1
  129. package/dist/esm/ai/unified-prompts/skill-site-prompt.js +1 -2
  130. package/dist/esm/ai/unified-prompts/skill-site-prompt.js.map +1 -1
  131. package/dist/esm/apps/apps-config.d.ts.map +1 -1
  132. package/dist/esm/apps/apps-config.js +1 -1
  133. package/dist/esm/apps/apps-config.js.map +1 -1
  134. package/dist/esm/apps/apps-ui.d.ts +2 -3
  135. package/dist/esm/apps/apps-ui.d.ts.map +1 -1
  136. package/dist/esm/apps/apps-ui.js +2 -3
  137. package/dist/esm/apps/apps-ui.js.map +1 -1
  138. package/dist/esm/config/db-sync-mappings.js +1 -1
  139. package/dist/esm/config/db-sync-mappings.js.map +1 -1
  140. package/dist/esm/config/format.d.ts +1 -1
  141. package/dist/esm/config/format.d.ts.map +1 -1
  142. package/dist/esm/config/format.js +1 -190
  143. package/dist/esm/config/format.js.map +1 -1
  144. package/dist/esm/config/migrate-catalogs-to-product-lines.d.ts.map +1 -1
  145. package/dist/esm/config/migrate-catalogs-to-product-lines.js +1 -194
  146. package/dist/esm/config/migrate-catalogs-to-product-lines.js.map +1 -1
  147. package/dist/esm/config/schema-fuzzer.test.js +20 -173
  148. package/dist/esm/config/schema-fuzzer.test.js.map +1 -1
  149. package/dist/esm/config/schema.d.ts +249 -250
  150. package/dist/esm/config/schema.d.ts.map +1 -1
  151. package/dist/esm/config/schema.js +2 -347
  152. package/dist/esm/config/schema.js.map +1 -1
  153. package/dist/esm/config-authoring.d.ts +1 -1
  154. package/dist/esm/config-authoring.d.ts.map +1 -1
  155. package/dist/esm/config-authoring.js +1 -1
  156. package/dist/esm/config-authoring.js.map +1 -1
  157. package/dist/esm/config-authoring.test.js +2 -3
  158. package/dist/esm/config-authoring.test.js.map +1 -1
  159. package/dist/esm/config-eval.d.ts +1 -1
  160. package/dist/esm/config-eval.d.ts.map +1 -1
  161. package/dist/esm/config-eval.js +1 -43
  162. package/dist/esm/config-eval.js.map +1 -1
  163. package/dist/esm/config-rendering.d.ts.map +1 -1
  164. package/dist/esm/config-rendering.js +1 -46
  165. package/dist/esm/config-rendering.js.map +1 -1
  166. package/dist/esm/crud.d.ts +1 -1
  167. package/dist/esm/crud.d.ts.map +1 -1
  168. package/dist/esm/crud.js +2 -69
  169. package/dist/esm/crud.js.map +1 -1
  170. package/dist/esm/helpers/emails.js +1 -2
  171. package/dist/esm/helpers/emails.js.map +1 -1
  172. package/dist/esm/helpers/init-prompt.d.ts.map +1 -1
  173. package/dist/esm/helpers/init-prompt.js +1 -2
  174. package/dist/esm/helpers/init-prompt.js.map +1 -1
  175. package/dist/esm/helpers/password.d.ts +1 -1
  176. package/dist/esm/helpers/password.d.ts.map +1 -1
  177. package/dist/esm/helpers/password.js +1 -2
  178. package/dist/esm/helpers/password.js.map +1 -1
  179. package/dist/esm/helpers/production-mode.d.ts +1 -1
  180. package/dist/esm/helpers/production-mode.d.ts.map +1 -1
  181. package/dist/esm/helpers/production-mode.js +1 -2
  182. package/dist/esm/helpers/production-mode.js.map +1 -1
  183. package/dist/esm/helpers/support-sla.d.ts.map +1 -1
  184. package/dist/esm/helpers/support-sla.js +1 -1
  185. package/dist/esm/helpers/support-sla.js.map +1 -1
  186. package/dist/esm/helpers/support-sla.test.js +2 -3
  187. package/dist/esm/helpers/support-sla.test.js.map +1 -1
  188. package/dist/esm/helpers/vault/client-side.d.ts.map +1 -1
  189. package/dist/esm/helpers/vault/client-side.js +1 -20
  190. package/dist/esm/helpers/vault/client-side.js.map +1 -1
  191. package/dist/esm/helpers/vault/server-side.js +1 -2
  192. package/dist/esm/helpers/vault/server-side.js.map +1 -1
  193. package/dist/esm/hooks/use-async-callback.d.ts.map +1 -1
  194. package/dist/esm/hooks/use-async-callback.js +1 -2
  195. package/dist/esm/hooks/use-async-callback.js.map +1 -1
  196. package/dist/esm/hooks/use-async-external-store.d.ts +1 -1
  197. package/dist/esm/hooks/use-async-external-store.d.ts.map +1 -1
  198. package/dist/esm/hooks/use-async-external-store.js +1 -2
  199. package/dist/esm/hooks/use-async-external-store.js.map +1 -1
  200. package/dist/esm/hooks/use-hash.js +1 -2
  201. package/dist/esm/hooks/use-hash.js.map +1 -1
  202. package/dist/esm/hooks/use-hover.d.ts.map +1 -1
  203. package/dist/esm/hooks/use-hover.js +1 -2
  204. package/dist/esm/hooks/use-hover.js.map +1 -1
  205. package/dist/esm/hooks/use-strict-memo.d.ts.map +1 -1
  206. package/dist/esm/hooks/use-strict-memo.js +1 -70
  207. package/dist/esm/hooks/use-strict-memo.js.map +1 -1
  208. package/dist/esm/index.d.ts +4 -4
  209. package/dist/esm/index.js +1 -2
  210. package/dist/esm/interface/admin-interface.d.ts +19 -19
  211. package/dist/esm/interface/admin-interface.d.ts.map +1 -1
  212. package/dist/esm/interface/admin-interface.js +1 -2
  213. package/dist/esm/interface/admin-interface.js.map +1 -1
  214. package/dist/esm/interface/admin-metrics.d.ts +11 -11
  215. package/dist/esm/interface/admin-metrics.d.ts.map +1 -1
  216. package/dist/esm/interface/admin-metrics.js +1 -2
  217. package/dist/esm/interface/admin-metrics.js.map +1 -1
  218. package/dist/esm/interface/client-interface.d.ts +22 -22
  219. package/dist/esm/interface/client-interface.d.ts.map +1 -1
  220. package/dist/esm/interface/client-interface.js +31 -15
  221. package/dist/esm/interface/client-interface.js.map +1 -1
  222. package/dist/esm/interface/client-interface.test.js +84 -13
  223. package/dist/esm/interface/client-interface.test.js.map +1 -1
  224. package/dist/esm/interface/conversations.d.ts +33 -33
  225. package/dist/esm/interface/conversations.d.ts.map +1 -1
  226. package/dist/esm/interface/conversations.js +1 -2
  227. package/dist/esm/interface/conversations.js.map +1 -1
  228. package/dist/esm/interface/crud/analytics.d.ts.map +1 -1
  229. package/dist/esm/interface/crud/analytics.js +1 -1
  230. package/dist/esm/interface/crud/connected-accounts.d.ts +15 -17
  231. package/dist/esm/interface/crud/connected-accounts.d.ts.map +1 -1
  232. package/dist/esm/interface/crud/connected-accounts.js +1 -2
  233. package/dist/esm/interface/crud/connected-accounts.js.map +1 -1
  234. package/dist/esm/interface/crud/contact-channels.d.ts +24 -26
  235. package/dist/esm/interface/crud/contact-channels.d.ts.map +1 -1
  236. package/dist/esm/interface/crud/contact-channels.js +1 -2
  237. package/dist/esm/interface/crud/contact-channels.js.map +1 -1
  238. package/dist/esm/interface/crud/current-user.d.ts +20 -22
  239. package/dist/esm/interface/crud/current-user.d.ts.map +1 -1
  240. package/dist/esm/interface/crud/current-user.js +25 -29
  241. package/dist/esm/interface/crud/current-user.js.map +1 -1
  242. package/dist/esm/interface/crud/email-outbox.d.ts +32 -34
  243. package/dist/esm/interface/crud/email-outbox.d.ts.map +1 -1
  244. package/dist/esm/interface/crud/email-outbox.js +1 -2
  245. package/dist/esm/interface/crud/email-outbox.js.map +1 -1
  246. package/dist/esm/interface/crud/email-templates.d.ts +16 -18
  247. package/dist/esm/interface/crud/email-templates.d.ts.map +1 -1
  248. package/dist/esm/interface/crud/email-templates.js +1 -2
  249. package/dist/esm/interface/crud/email-templates.js.map +1 -1
  250. package/dist/esm/interface/crud/emails.d.ts +6 -8
  251. package/dist/esm/interface/crud/emails.d.ts.map +1 -1
  252. package/dist/esm/interface/crud/emails.js +1 -2
  253. package/dist/esm/interface/crud/emails.js.map +1 -1
  254. package/dist/esm/interface/crud/internal-api-keys.d.ts +16 -18
  255. package/dist/esm/interface/crud/internal-api-keys.d.ts.map +1 -1
  256. package/dist/esm/interface/crud/internal-api-keys.js +1 -2
  257. package/dist/esm/interface/crud/internal-api-keys.js.map +1 -1
  258. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  259. package/dist/esm/interface/crud/invoices.d.ts.map +1 -1
  260. package/dist/esm/interface/crud/invoices.js +1 -2
  261. package/dist/esm/interface/crud/invoices.js.map +1 -1
  262. package/dist/esm/interface/crud/items.d.ts +6 -8
  263. package/dist/esm/interface/crud/items.d.ts.map +1 -1
  264. package/dist/esm/interface/crud/items.js +12 -16
  265. package/dist/esm/interface/crud/items.js.map +1 -1
  266. package/dist/esm/interface/crud/notification-preferences.d.ts +6 -8
  267. package/dist/esm/interface/crud/notification-preferences.d.ts.map +1 -1
  268. package/dist/esm/interface/crud/notification-preferences.js +8 -12
  269. package/dist/esm/interface/crud/notification-preferences.js.map +1 -1
  270. package/dist/esm/interface/crud/oauth-providers.d.ts +24 -26
  271. package/dist/esm/interface/crud/oauth-providers.d.ts.map +1 -1
  272. package/dist/esm/interface/crud/oauth-providers.js +1 -2
  273. package/dist/esm/interface/crud/oauth-providers.js.map +1 -1
  274. package/dist/esm/interface/crud/products.d.ts +21 -22
  275. package/dist/esm/interface/crud/products.d.ts.map +1 -1
  276. package/dist/esm/interface/crud/products.js +3 -2
  277. package/dist/esm/interface/crud/products.js.map +1 -1
  278. package/dist/esm/interface/crud/project-api-keys.d.ts +5 -6
  279. package/dist/esm/interface/crud/project-api-keys.d.ts.map +1 -1
  280. package/dist/esm/interface/crud/project-api-keys.js +1 -2
  281. package/dist/esm/interface/crud/project-api-keys.js.map +1 -1
  282. package/dist/esm/interface/crud/project-permissions.d.ts +29 -31
  283. package/dist/esm/interface/crud/project-permissions.d.ts.map +1 -1
  284. package/dist/esm/interface/crud/project-permissions.js +1 -2
  285. package/dist/esm/interface/crud/project-permissions.js.map +1 -1
  286. package/dist/esm/interface/crud/projects.d.ts +71 -73
  287. package/dist/esm/interface/crud/projects.d.ts.map +1 -1
  288. package/dist/esm/interface/crud/projects.js +3 -2
  289. package/dist/esm/interface/crud/projects.js.map +1 -1
  290. package/dist/esm/interface/crud/session-replays.d.ts.map +1 -1
  291. package/dist/esm/interface/crud/session-replays.js +1 -1
  292. package/dist/esm/interface/crud/sessions.d.ts +15 -17
  293. package/dist/esm/interface/crud/sessions.d.ts.map +1 -1
  294. package/dist/esm/interface/crud/sessions.js +1 -2
  295. package/dist/esm/interface/crud/sessions.js.map +1 -1
  296. package/dist/esm/interface/crud/sign-up-rules.d.ts.map +1 -1
  297. package/dist/esm/interface/crud/sign-up-rules.js +1 -1
  298. package/dist/esm/interface/crud/svix-token.d.ts +8 -10
  299. package/dist/esm/interface/crud/svix-token.d.ts.map +1 -1
  300. package/dist/esm/interface/crud/svix-token.js +1 -2
  301. package/dist/esm/interface/crud/svix-token.js.map +1 -1
  302. package/dist/esm/interface/crud/team-invitation-details.d.ts +6 -8
  303. package/dist/esm/interface/crud/team-invitation-details.d.ts.map +1 -1
  304. package/dist/esm/interface/crud/team-invitation-details.js +1 -2
  305. package/dist/esm/interface/crud/team-invitation-details.js.map +1 -1
  306. package/dist/esm/interface/crud/team-invitation.d.ts +7 -9
  307. package/dist/esm/interface/crud/team-invitation.d.ts.map +1 -1
  308. package/dist/esm/interface/crud/team-invitation.js +1 -2
  309. package/dist/esm/interface/crud/team-invitation.js.map +1 -1
  310. package/dist/esm/interface/crud/team-member-profiles.d.ts +26 -28
  311. package/dist/esm/interface/crud/team-member-profiles.d.ts.map +1 -1
  312. package/dist/esm/interface/crud/team-member-profiles.js +1 -2
  313. package/dist/esm/interface/crud/team-member-profiles.js.map +1 -1
  314. package/dist/esm/interface/crud/team-memberships.d.ts +14 -16
  315. package/dist/esm/interface/crud/team-memberships.d.ts.map +1 -1
  316. package/dist/esm/interface/crud/team-memberships.js +1 -2
  317. package/dist/esm/interface/crud/team-memberships.js.map +1 -1
  318. package/dist/esm/interface/crud/team-permissions.d.ts +29 -31
  319. package/dist/esm/interface/crud/team-permissions.d.ts.map +1 -1
  320. package/dist/esm/interface/crud/team-permissions.js +1 -2
  321. package/dist/esm/interface/crud/team-permissions.js.map +1 -1
  322. package/dist/esm/interface/crud/teams.d.ts +36 -38
  323. package/dist/esm/interface/crud/teams.d.ts.map +1 -1
  324. package/dist/esm/interface/crud/teams.js +2 -4
  325. package/dist/esm/interface/crud/teams.js.map +1 -1
  326. package/dist/esm/interface/crud/transactions.d.ts +14 -16
  327. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  328. package/dist/esm/interface/crud/transactions.js +7 -13
  329. package/dist/esm/interface/crud/transactions.js.map +1 -1
  330. package/dist/esm/interface/crud/users.d.ts +11 -12
  331. package/dist/esm/interface/crud/users.d.ts.map +1 -1
  332. package/dist/esm/interface/crud/users.js +9 -5
  333. package/dist/esm/interface/crud/users.js.map +1 -1
  334. package/dist/esm/interface/handler-urls.d.ts +1 -1
  335. package/dist/esm/interface/handler-urls.d.ts.map +1 -1
  336. package/dist/esm/interface/handler-urls.js +1 -2
  337. package/dist/esm/interface/page-component-versions.d.ts +1 -1
  338. package/dist/esm/interface/page-component-versions.d.ts.map +1 -1
  339. package/dist/esm/interface/page-component-versions.js +1 -2
  340. package/dist/esm/interface/page-component-versions.js.map +1 -1
  341. package/dist/esm/interface/plan-usage.d.ts +1 -1
  342. package/dist/esm/interface/plan-usage.d.ts.map +1 -1
  343. package/dist/esm/interface/plan-usage.js +1 -2
  344. package/dist/esm/interface/plan-usage.js.map +1 -1
  345. package/dist/esm/interface/server-interface.d.ts +19 -19
  346. package/dist/esm/interface/server-interface.d.ts.map +1 -1
  347. package/dist/esm/interface/server-interface.js +1 -2
  348. package/dist/esm/interface/server-interface.js.map +1 -1
  349. package/dist/esm/interface/webhooks.d.ts +2 -2
  350. package/dist/esm/interface/webhooks.d.ts.map +1 -1
  351. package/dist/esm/interface/webhooks.js +1 -2
  352. package/dist/esm/interface/webhooks.js.map +1 -1
  353. package/dist/esm/known-errors.d.ts +2 -2
  354. package/dist/esm/known-errors.d.ts.map +1 -1
  355. package/dist/esm/known-errors.js +10 -21
  356. package/dist/esm/known-errors.js.map +1 -1
  357. package/dist/esm/payments/payment-methods.d.ts.map +1 -1
  358. package/dist/esm/payments/payment-methods.js +1 -1
  359. package/dist/esm/payments/payment-methods.js.map +1 -1
  360. package/dist/esm/payments/stripe-limits.d.ts.map +1 -1
  361. package/dist/esm/payments/stripe-limits.js +1 -1
  362. package/dist/esm/payments/stripe-limits.js.map +1 -1
  363. package/dist/esm/plans.d.ts.map +1 -1
  364. package/dist/esm/plans.js +1 -1
  365. package/dist/esm/plans.js.map +1 -1
  366. package/dist/esm/schema-fields.d.ts +14 -14
  367. package/dist/esm/schema-fields.d.ts.map +1 -1
  368. package/dist/esm/schema-fields.js +3 -64
  369. package/dist/esm/schema-fields.js.map +1 -1
  370. package/dist/esm/sessions.d.ts +6 -6
  371. package/dist/esm/sessions.d.ts.map +1 -1
  372. package/dist/esm/sessions.js +1 -2
  373. package/dist/esm/sessions.js.map +1 -1
  374. package/dist/esm/sessions.test.js +2 -3
  375. package/dist/esm/sessions.test.js.map +1 -1
  376. package/dist/esm/utils/analytics-clickmap-overlay.d.ts.map +1 -1
  377. package/dist/esm/utils/analytics-clickmap-overlay.js +1 -1
  378. package/dist/esm/utils/api-keys.d.ts.map +1 -1
  379. package/dist/esm/utils/api-keys.js +1 -2
  380. package/dist/esm/utils/api-keys.js.map +1 -1
  381. package/dist/esm/utils/arrays.d.ts.map +1 -1
  382. package/dist/esm/utils/arrays.js +1 -470
  383. package/dist/esm/utils/arrays.js.map +1 -1
  384. package/dist/esm/utils/auth-methods.d.ts.map +1 -1
  385. package/dist/esm/utils/auth-methods.js +1 -1
  386. package/dist/esm/utils/auth-methods.js.map +1 -1
  387. package/dist/esm/utils/base64.d.ts.map +1 -1
  388. package/dist/esm/utils/base64.js +1 -10
  389. package/dist/esm/utils/base64.js.map +1 -1
  390. package/dist/esm/utils/booleans.d.ts.map +1 -1
  391. package/dist/esm/utils/booleans.js +1 -25
  392. package/dist/esm/utils/booleans.js.map +1 -1
  393. package/dist/esm/utils/browser-compat.d.ts.map +1 -1
  394. package/dist/esm/utils/browser-compat.js +1 -1
  395. package/dist/esm/utils/browser-compat.js.map +1 -1
  396. package/dist/esm/utils/bytes.d.ts.map +1 -1
  397. package/dist/esm/utils/bytes.js +3 -198
  398. package/dist/esm/utils/bytes.js.map +1 -1
  399. package/dist/esm/utils/caches.d.ts +1 -1
  400. package/dist/esm/utils/caches.d.ts.map +1 -1
  401. package/dist/esm/utils/caches.js +1 -27
  402. package/dist/esm/utils/caches.js.map +1 -1
  403. package/dist/esm/utils/cel-fields.d.ts.map +1 -1
  404. package/dist/esm/utils/cel-fields.js +1 -2
  405. package/dist/esm/utils/cel-fields.js.map +1 -1
  406. package/dist/esm/utils/cloud-hosts.d.ts.map +1 -1
  407. package/dist/esm/utils/cloud-hosts.js +1 -27
  408. package/dist/esm/utils/cloud-hosts.js.map +1 -1
  409. package/dist/esm/utils/compile-time.d.ts.map +1 -1
  410. package/dist/esm/utils/compile-time.js +1 -1
  411. package/dist/esm/utils/compile-time.js.map +1 -1
  412. package/dist/esm/utils/country-codes.d.ts.map +1 -1
  413. package/dist/esm/utils/country-codes.js +1 -16
  414. package/dist/esm/utils/country-codes.js.map +1 -1
  415. package/dist/esm/utils/crypto.d.ts.map +1 -1
  416. package/dist/esm/utils/crypto.js +3 -113
  417. package/dist/esm/utils/crypto.js.map +1 -1
  418. package/dist/esm/utils/currencies.d.ts +1 -1
  419. package/dist/esm/utils/currencies.d.ts.map +1 -1
  420. package/dist/esm/utils/currencies.js +2 -37
  421. package/dist/esm/utils/currencies.js.map +1 -1
  422. package/dist/esm/utils/currency-constants.d.ts.map +1 -1
  423. package/dist/esm/utils/currency-constants.js +1 -1
  424. package/dist/esm/utils/currency-constants.js.map +1 -1
  425. package/dist/esm/utils/dates.d.ts.map +1 -1
  426. package/dist/esm/utils/dates.js +1 -44
  427. package/dist/esm/utils/dates.js.map +1 -1
  428. package/dist/esm/utils/dev-env-state-path.d.ts.map +1 -1
  429. package/dist/esm/utils/dev-env-state-path.js +1 -2
  430. package/dist/esm/utils/dev-env-state-path.js.map +1 -1
  431. package/dist/esm/utils/dev-tool.d.ts.map +1 -1
  432. package/dist/esm/utils/dev-tool.js +1 -1
  433. package/dist/esm/utils/dom.d.ts.map +1 -1
  434. package/dist/esm/utils/dom.js +1 -1
  435. package/dist/esm/utils/dom.js.map +1 -1
  436. package/dist/esm/utils/elements-chain.d.ts.map +1 -1
  437. package/dist/esm/utils/elements-chain.js +5 -50
  438. package/dist/esm/utils/elements-chain.js.map +1 -1
  439. package/dist/esm/utils/env.d.ts.map +1 -1
  440. package/dist/esm/utils/env.js +1 -2
  441. package/dist/esm/utils/env.js.map +1 -1
  442. package/dist/esm/utils/env.test.js +2 -3
  443. package/dist/esm/utils/env.test.js.map +1 -1
  444. package/dist/esm/utils/errors.d.ts +1 -1
  445. package/dist/esm/utils/errors.d.ts.map +1 -1
  446. package/dist/esm/utils/errors.js +1 -2
  447. package/dist/esm/utils/errors.js.map +1 -1
  448. package/dist/esm/utils/esbuild.d.ts +1 -1
  449. package/dist/esm/utils/esbuild.d.ts.map +1 -1
  450. package/dist/esm/utils/esbuild.js +2 -3
  451. package/dist/esm/utils/esbuild.js.map +1 -1
  452. package/dist/esm/utils/featurebase.d.ts.map +1 -1
  453. package/dist/esm/utils/featurebase.js +1 -2
  454. package/dist/esm/utils/featurebase.js.map +1 -1
  455. package/dist/esm/utils/fs.d.ts.map +1 -1
  456. package/dist/esm/utils/fs.js +1 -2
  457. package/dist/esm/utils/fs.js.map +1 -1
  458. package/dist/esm/utils/functions.d.ts.map +1 -1
  459. package/dist/esm/utils/functions.js +1 -24
  460. package/dist/esm/utils/functions.js.map +1 -1
  461. package/dist/esm/utils/geo.d.ts.map +1 -1
  462. package/dist/esm/utils/geo.js +1 -2
  463. package/dist/esm/utils/geo.js.map +1 -1
  464. package/dist/esm/utils/globals.d.ts.map +1 -1
  465. package/dist/esm/utils/globals.js +1 -1
  466. package/dist/esm/utils/globals.js.map +1 -1
  467. package/dist/esm/utils/hashes.d.ts.map +1 -1
  468. package/dist/esm/utils/hashes.js +1 -2
  469. package/dist/esm/utils/hashes.js.map +1 -1
  470. package/dist/esm/utils/html.d.ts.map +1 -1
  471. package/dist/esm/utils/html.js +1 -19
  472. package/dist/esm/utils/html.js.map +1 -1
  473. package/dist/esm/utils/http.d.ts.map +1 -1
  474. package/dist/esm/utils/http.js +1 -19
  475. package/dist/esm/utils/http.js.map +1 -1
  476. package/dist/esm/utils/ips.d.ts.map +1 -1
  477. package/dist/esm/utils/ips.js +1 -25
  478. package/dist/esm/utils/ips.js.map +1 -1
  479. package/dist/esm/utils/json.d.ts +1 -1
  480. package/dist/esm/utils/json.d.ts.map +1 -1
  481. package/dist/esm/utils/json.js +1 -155
  482. package/dist/esm/utils/json.js.map +1 -1
  483. package/dist/esm/utils/jsx-editable-transpiler.d.ts.map +1 -1
  484. package/dist/esm/utils/jsx-editable-transpiler.js +1 -2
  485. package/dist/esm/utils/jsx-editable-transpiler.js.map +1 -1
  486. package/dist/esm/utils/jsx-editable-transpiler.test.js +2 -3
  487. package/dist/esm/utils/jsx-editable-transpiler.test.js.map +1 -1
  488. package/dist/esm/utils/jwt.d.ts.map +1 -1
  489. package/dist/esm/utils/jwt.js +1 -2
  490. package/dist/esm/utils/jwt.js.map +1 -1
  491. package/dist/esm/utils/locks.d.ts.map +1 -1
  492. package/dist/esm/utils/locks.js +1 -2
  493. package/dist/esm/utils/locks.js.map +1 -1
  494. package/dist/esm/utils/maps.d.ts.map +1 -1
  495. package/dist/esm/utils/maps.js +1 -111
  496. package/dist/esm/utils/maps.js.map +1 -1
  497. package/dist/esm/utils/math.d.ts.map +1 -1
  498. package/dist/esm/utils/math.js +1 -11
  499. package/dist/esm/utils/math.js.map +1 -1
  500. package/dist/esm/utils/monkey-patch.d.ts.map +1 -1
  501. package/dist/esm/utils/monkey-patch.js +2 -3
  502. package/dist/esm/utils/monkey-patch.js.map +1 -1
  503. package/dist/esm/utils/node-http.js +1 -2
  504. package/dist/esm/utils/node-http.js.map +1 -1
  505. package/dist/esm/utils/numbers.d.ts.map +1 -1
  506. package/dist/esm/utils/numbers.js +1 -45
  507. package/dist/esm/utils/numbers.js.map +1 -1
  508. package/dist/esm/utils/oauth.d.ts.map +1 -1
  509. package/dist/esm/utils/oauth.js +1 -1
  510. package/dist/esm/utils/oauth.js.map +1 -1
  511. package/dist/esm/utils/objects.d.ts.map +1 -1
  512. package/dist/esm/utils/objects.js +1 -622
  513. package/dist/esm/utils/objects.js.map +1 -1
  514. package/dist/esm/utils/paginated-lists.d.ts.map +1 -1
  515. package/dist/esm/utils/paginated-lists.js +1 -2
  516. package/dist/esm/utils/paginated-lists.js.map +1 -1
  517. package/dist/esm/utils/paginated-lists.test.js +2 -3
  518. package/dist/esm/utils/paginated-lists.test.js.map +1 -1
  519. package/dist/esm/utils/passkey.d.ts +1 -1
  520. package/dist/esm/utils/passkey.js +1 -1
  521. package/dist/esm/utils/promises.d.ts +1 -1
  522. package/dist/esm/utils/promises.d.ts.map +1 -1
  523. package/dist/esm/utils/promises.js +1 -160
  524. package/dist/esm/utils/promises.js.map +1 -1
  525. package/dist/esm/utils/proxies.d.ts.map +1 -1
  526. package/dist/esm/utils/proxies.js +1 -37
  527. package/dist/esm/utils/proxies.js.map +1 -1
  528. package/dist/esm/utils/react.d.ts.map +1 -1
  529. package/dist/esm/utils/react.js +1 -41
  530. package/dist/esm/utils/react.js.map +1 -1
  531. package/dist/esm/utils/redirect-urls.d.ts.map +1 -1
  532. package/dist/esm/utils/redirect-urls.js +2 -92
  533. package/dist/esm/utils/redirect-urls.js.map +1 -1
  534. package/dist/esm/utils/regex.js +1 -1
  535. package/dist/esm/utils/regex.js.map +1 -1
  536. package/dist/esm/utils/results.d.ts.map +1 -1
  537. package/dist/esm/utils/results.js +1 -213
  538. package/dist/esm/utils/results.js.map +1 -1
  539. package/dist/esm/utils/sentry.js +1 -1
  540. package/dist/esm/utils/sentry.js.map +1 -1
  541. package/dist/esm/utils/stores.d.ts +3 -3
  542. package/dist/esm/utils/stores.d.ts.map +1 -1
  543. package/dist/esm/utils/stores.js +1 -2
  544. package/dist/esm/utils/stores.js.map +1 -1
  545. package/dist/esm/utils/strings.d.ts.map +1 -1
  546. package/dist/esm/utils/strings.js +1 -251
  547. package/dist/esm/utils/strings.js.map +1 -1
  548. package/dist/esm/utils/strings.nicify.test.js +2 -3
  549. package/dist/esm/utils/strings.nicify.test.js.map +1 -1
  550. package/dist/esm/utils/telemetry.d.ts.map +1 -1
  551. package/dist/esm/utils/telemetry.js +1 -2
  552. package/dist/esm/utils/telemetry.js.map +1 -1
  553. package/dist/esm/utils/turnstile-browser.d.ts +1 -1
  554. package/dist/esm/utils/turnstile-browser.d.ts.map +1 -1
  555. package/dist/esm/utils/turnstile-browser.js +1 -2
  556. package/dist/esm/utils/turnstile-browser.js.map +1 -1
  557. package/dist/esm/utils/turnstile-flow.d.ts +1 -1
  558. package/dist/esm/utils/turnstile-flow.d.ts.map +1 -1
  559. package/dist/esm/utils/turnstile-flow.js +1 -2
  560. package/dist/esm/utils/turnstile-flow.js.map +1 -1
  561. package/dist/esm/utils/turnstile-flow.test.js +2 -3
  562. package/dist/esm/utils/turnstile-flow.test.js.map +1 -1
  563. package/dist/esm/utils/turnstile.d.ts.map +1 -1
  564. package/dist/esm/utils/turnstile.js +1 -1
  565. package/dist/esm/utils/turnstile.js.map +1 -1
  566. package/dist/esm/utils/typed-arrays.js +1 -2
  567. package/dist/esm/utils/typed-arrays.js.map +1 -1
  568. package/dist/esm/utils/types.d.ts +1 -1
  569. package/dist/esm/utils/types.d.ts.map +1 -1
  570. package/dist/esm/utils/types.js +1 -1
  571. package/dist/esm/utils/types.js.map +1 -1
  572. package/dist/esm/utils/unicode.d.ts.map +1 -1
  573. package/dist/esm/utils/unicode.js +1 -13
  574. package/dist/esm/utils/unicode.js.map +1 -1
  575. package/dist/esm/utils/urls.d.ts.map +1 -1
  576. package/dist/esm/utils/urls.js +1 -151
  577. package/dist/esm/utils/urls.js.map +1 -1
  578. package/dist/esm/utils/uuids.d.ts.map +1 -1
  579. package/dist/esm/utils/uuids.js +2 -26
  580. package/dist/esm/utils/uuids.js.map +1 -1
  581. package/dist/format-4JG1MGv5.d.ts +61 -0
  582. package/dist/format-4JG1MGv5.d.ts.map +1 -0
  583. package/dist/handler-urls-BHt3v8Ai.d.ts +70 -0
  584. package/dist/handler-urls-BHt3v8Ai.d.ts.map +1 -0
  585. package/dist/helpers/emails.js +2 -4
  586. package/dist/helpers/emails.js.map +1 -1
  587. package/dist/helpers/init-prompt.d.ts.map +1 -1
  588. package/dist/helpers/init-prompt.js +2 -4
  589. package/dist/helpers/init-prompt.js.map +1 -1
  590. package/dist/helpers/password.d.ts +1 -1
  591. package/dist/helpers/password.d.ts.map +1 -1
  592. package/dist/helpers/password.js +2 -4
  593. package/dist/helpers/password.js.map +1 -1
  594. package/dist/helpers/production-mode.d.ts +1 -1
  595. package/dist/helpers/production-mode.d.ts.map +1 -1
  596. package/dist/helpers/production-mode.js +2 -4
  597. package/dist/helpers/production-mode.js.map +1 -1
  598. package/dist/helpers/support-sla.d.ts.map +1 -1
  599. package/dist/helpers/support-sla.js +2 -3
  600. package/dist/helpers/support-sla.js.map +1 -1
  601. package/dist/helpers/support-sla.test.js +1 -3
  602. package/dist/helpers/support-sla.test.js.map +1 -1
  603. package/dist/helpers/vault/client-side.d.ts.map +1 -1
  604. package/dist/helpers/vault/client-side.js +2 -22
  605. package/dist/helpers/vault/client-side.js.map +1 -1
  606. package/dist/helpers/vault/server-side.js +2 -4
  607. package/dist/helpers/vault/server-side.js.map +1 -1
  608. package/dist/hooks/use-async-callback.d.ts.map +1 -1
  609. package/dist/hooks/use-async-callback.js +4 -5
  610. package/dist/hooks/use-async-callback.js.map +1 -1
  611. package/dist/hooks/use-async-external-store.d.ts +1 -1
  612. package/dist/hooks/use-async-external-store.d.ts.map +1 -1
  613. package/dist/hooks/use-async-external-store.js +2 -4
  614. package/dist/hooks/use-async-external-store.js.map +1 -1
  615. package/dist/hooks/use-hash.js +2 -4
  616. package/dist/hooks/use-hash.js.map +1 -1
  617. package/dist/hooks/use-hover.d.ts.map +1 -1
  618. package/dist/hooks/use-hover.js +2 -4
  619. package/dist/hooks/use-hover.js.map +1 -1
  620. package/dist/hooks/use-strict-memo.d.ts.map +1 -1
  621. package/dist/hooks/use-strict-memo.js +2 -72
  622. package/dist/hooks/use-strict-memo.js.map +1 -1
  623. package/dist/index.d.ts +4 -4
  624. package/dist/index.js +27 -29
  625. package/dist/interface/admin-interface.d.ts +3 -379
  626. package/dist/interface/admin-interface.js +2 -4
  627. package/dist/interface/admin-interface.js.map +1 -1
  628. package/dist/interface/admin-metrics.d.ts +2 -807
  629. package/dist/interface/admin-metrics.js +2 -4
  630. package/dist/interface/admin-metrics.js.map +1 -1
  631. package/dist/interface/client-interface.d.ts +2 -447
  632. package/dist/interface/client-interface.js +32 -17
  633. package/dist/interface/client-interface.js.map +1 -1
  634. package/dist/interface/client-interface.test.js +83 -13
  635. package/dist/interface/client-interface.test.js.map +1 -1
  636. package/dist/interface/conversations.d.ts +33 -33
  637. package/dist/interface/conversations.d.ts.map +1 -1
  638. package/dist/interface/conversations.js +2 -4
  639. package/dist/interface/conversations.js.map +1 -1
  640. package/dist/interface/crud/analytics.d.ts +2 -14
  641. package/dist/interface/crud/connected-accounts.d.ts +2 -68
  642. package/dist/interface/crud/connected-accounts.js +2 -4
  643. package/dist/interface/crud/connected-accounts.js.map +1 -1
  644. package/dist/interface/crud/contact-channels.d.ts +2 -181
  645. package/dist/interface/crud/contact-channels.js +2 -4
  646. package/dist/interface/crud/contact-channels.js.map +1 -1
  647. package/dist/interface/crud/current-user.d.ts +2 -285
  648. package/dist/interface/crud/current-user.js +2 -4
  649. package/dist/interface/crud/current-user.js.map +1 -1
  650. package/dist/interface/crud/email-outbox.d.ts +2 -1465
  651. package/dist/interface/crud/email-outbox.js +4 -5
  652. package/dist/interface/crud/email-outbox.js.map +1 -1
  653. package/dist/interface/crud/email-templates.d.ts +15 -16
  654. package/dist/interface/crud/email-templates.d.ts.map +1 -1
  655. package/dist/interface/crud/email-templates.js +2 -4
  656. package/dist/interface/crud/email-templates.js.map +1 -1
  657. package/dist/interface/crud/emails.d.ts +2 -41
  658. package/dist/interface/crud/emails.js +4 -5
  659. package/dist/interface/crud/emails.js.map +1 -1
  660. package/dist/interface/crud/internal-api-keys.d.ts +2 -140
  661. package/dist/interface/crud/internal-api-keys.js +2 -4
  662. package/dist/interface/crud/internal-api-keys.js.map +1 -1
  663. package/dist/interface/crud/invoices.d.ts +2 -43
  664. package/dist/interface/crud/invoices.js +2 -4
  665. package/dist/interface/crud/invoices.js.map +1 -1
  666. package/dist/interface/crud/items.d.ts +2 -30
  667. package/dist/interface/crud/items.js +2 -4
  668. package/dist/interface/crud/items.js.map +1 -1
  669. package/dist/interface/crud/notification-preferences.d.ts +2 -38
  670. package/dist/interface/crud/notification-preferences.js +2 -4
  671. package/dist/interface/crud/notification-preferences.js.map +1 -1
  672. package/dist/interface/crud/oauth-providers.d.ts +2 -186
  673. package/dist/interface/crud/oauth-providers.js +2 -4
  674. package/dist/interface/crud/oauth-providers.js.map +1 -1
  675. package/dist/interface/crud/products.d.ts +2 -182
  676. package/dist/interface/crud/products.js +4 -4
  677. package/dist/interface/crud/products.js.map +1 -1
  678. package/dist/interface/crud/project-api-keys.d.ts +2 -203
  679. package/dist/interface/crud/project-api-keys.js +2 -4
  680. package/dist/interface/crud/project-api-keys.js.map +1 -1
  681. package/dist/interface/crud/project-permissions.d.ts +2 -161
  682. package/dist/interface/crud/project-permissions.js +4 -5
  683. package/dist/interface/crud/project-permissions.js.map +1 -1
  684. package/dist/interface/crud/projects.d.ts +2 -901
  685. package/dist/interface/crud/projects.js +6 -5
  686. package/dist/interface/crud/projects.js.map +1 -1
  687. package/dist/interface/crud/session-replays.d.ts +2 -83
  688. package/dist/interface/crud/sessions.d.ts +2 -150
  689. package/dist/interface/crud/sessions.js +2 -4
  690. package/dist/interface/crud/sessions.js.map +1 -1
  691. package/dist/interface/crud/sign-up-rules.d.ts.map +1 -1
  692. package/dist/interface/crud/svix-token.d.ts +2 -31
  693. package/dist/interface/crud/svix-token.js +2 -4
  694. package/dist/interface/crud/svix-token.js.map +1 -1
  695. package/dist/interface/crud/team-invitation-details.d.ts +5 -6
  696. package/dist/interface/crud/team-invitation-details.d.ts.map +1 -1
  697. package/dist/interface/crud/team-invitation-details.js +4 -5
  698. package/dist/interface/crud/team-invitation-details.js.map +1 -1
  699. package/dist/interface/crud/team-invitation.d.ts +2 -54
  700. package/dist/interface/crud/team-invitation.js +4 -5
  701. package/dist/interface/crud/team-invitation.js.map +1 -1
  702. package/dist/interface/crud/team-member-profiles.d.ts +2 -286
  703. package/dist/interface/crud/team-member-profiles.js +4 -5
  704. package/dist/interface/crud/team-member-profiles.js.map +1 -1
  705. package/dist/interface/crud/team-memberships.d.ts +2 -75
  706. package/dist/interface/crud/team-memberships.js +2 -4
  707. package/dist/interface/crud/team-memberships.js.map +1 -1
  708. package/dist/interface/crud/team-permissions.d.ts +2 -169
  709. package/dist/interface/crud/team-permissions.js +4 -5
  710. package/dist/interface/crud/team-permissions.js.map +1 -1
  711. package/dist/interface/crud/teams.d.ts +2 -299
  712. package/dist/interface/crud/teams.js +5 -7
  713. package/dist/interface/crud/teams.js.map +1 -1
  714. package/dist/interface/crud/transactions.d.ts +2 -183
  715. package/dist/interface/crud/transactions.js +2 -4
  716. package/dist/interface/crud/transactions.js.map +1 -1
  717. package/dist/interface/crud/users.d.ts +2 -653
  718. package/dist/interface/crud/users.js +12 -8
  719. package/dist/interface/crud/users.js.map +1 -1
  720. package/dist/interface/handler-urls.d.ts +2 -51
  721. package/dist/interface/handler-urls.js +12 -14
  722. package/dist/interface/page-component-versions.d.ts +2 -25
  723. package/dist/interface/page-component-versions.js +2 -4
  724. package/dist/interface/page-component-versions.js.map +1 -1
  725. package/dist/interface/plan-usage.d.ts +2 -57
  726. package/dist/interface/plan-usage.js +2 -4
  727. package/dist/interface/plan-usage.js.map +1 -1
  728. package/dist/interface/server-interface.d.ts +2 -257
  729. package/dist/interface/server-interface.js +2 -4
  730. package/dist/interface/server-interface.js.map +1 -1
  731. package/dist/interface/webhooks.d.ts +2 -326
  732. package/dist/interface/webhooks.js +2 -4
  733. package/dist/interface/webhooks.js.map +1 -1
  734. package/dist/internal-api-keys-D8IYDodH.d.ts +139 -0
  735. package/dist/internal-api-keys-D8IYDodH.d.ts.map +1 -0
  736. package/dist/invoices-U65KzAZX.d.ts +43 -0
  737. package/dist/invoices-U65KzAZX.d.ts.map +1 -0
  738. package/dist/items-DlLSlVUD.d.ts +29 -0
  739. package/dist/items-DlLSlVUD.d.ts.map +1 -0
  740. package/dist/json-a1QIXu5z.d.ts +15 -0
  741. package/dist/json-a1QIXu5z.d.ts.map +1 -0
  742. package/dist/known-errors-Bm4a61wL.d.ts +575 -0
  743. package/dist/known-errors-Bm4a61wL.d.ts.map +1 -0
  744. package/dist/known-errors.d.ts +2 -575
  745. package/dist/known-errors.js +11 -23
  746. package/dist/known-errors.js.map +1 -1
  747. package/dist/notification-preferences-Bmzr_EOY.d.ts +37 -0
  748. package/dist/notification-preferences-Bmzr_EOY.d.ts.map +1 -0
  749. package/dist/oauth-providers-BMkKSSlA.d.ts +185 -0
  750. package/dist/oauth-providers-BMkKSSlA.d.ts.map +1 -0
  751. package/dist/objects-DkCkeBWE.d.ts +59 -0
  752. package/dist/objects-DkCkeBWE.d.ts.map +1 -0
  753. package/dist/passkey-CKg87UH-.d.ts +2 -0
  754. package/dist/payments/payment-methods.d.ts.map +1 -1
  755. package/dist/payments/payment-methods.js +2 -3
  756. package/dist/payments/payment-methods.js.map +1 -1
  757. package/dist/payments/stripe-limits.d.ts.map +1 -1
  758. package/dist/payments/stripe-limits.js +2 -3
  759. package/dist/payments/stripe-limits.js.map +1 -1
  760. package/dist/plan-usage-DfDoj5K4.d.ts +57 -0
  761. package/dist/plan-usage-DfDoj5K4.d.ts.map +1 -0
  762. package/dist/plans.d.ts.map +1 -1
  763. package/dist/plans.js +2 -3
  764. package/dist/plans.js.map +1 -1
  765. package/dist/products-Bs74ld-v.d.ts +182 -0
  766. package/dist/products-Bs74ld-v.d.ts.map +1 -0
  767. package/dist/project-api-keys--7V5X_UW.d.ts +203 -0
  768. package/dist/project-api-keys--7V5X_UW.d.ts.map +1 -0
  769. package/dist/project-permissions-kdi675F-.d.ts +160 -0
  770. package/dist/project-permissions-kdi675F-.d.ts.map +1 -0
  771. package/dist/projects-CgFGB3nO.d.ts +900 -0
  772. package/dist/projects-CgFGB3nO.d.ts.map +1 -0
  773. package/dist/results-DP3BzoL6.d.ts +70 -0
  774. package/dist/results-DP3BzoL6.d.ts.map +1 -0
  775. package/dist/{chunk-BE-pF4vm.js → rolldown-runtime-D6vf50IK.js} +12 -18
  776. package/dist/schema-01nWxmb4.d.ts +2328 -0
  777. package/dist/schema-01nWxmb4.d.ts.map +1 -0
  778. package/dist/schema-fields-DqGQ4kF7.d.ts +517 -0
  779. package/dist/schema-fields-DqGQ4kF7.d.ts.map +1 -0
  780. package/dist/schema-fields.d.ts +3 -518
  781. package/dist/schema-fields.js +21 -82
  782. package/dist/schema-fields.js.map +1 -1
  783. package/dist/server-interface-BUPG1kor.d.ts +257 -0
  784. package/dist/server-interface-BUPG1kor.d.ts.map +1 -0
  785. package/dist/session-replays-CXqhDpZq.d.ts +83 -0
  786. package/dist/session-replays-CXqhDpZq.d.ts.map +1 -0
  787. package/dist/sessions-B7Ko2Ldr.d.ts +149 -0
  788. package/dist/sessions-B7Ko2Ldr.d.ts.map +1 -0
  789. package/dist/sessions-d8qtvBUB.d.ts +175 -0
  790. package/dist/sessions-d8qtvBUB.d.ts.map +1 -0
  791. package/dist/sessions.d.ts +2 -175
  792. package/dist/sessions.js +4 -5
  793. package/dist/sessions.js.map +1 -1
  794. package/dist/sessions.test.js +1 -3
  795. package/dist/sessions.test.js.map +1 -1
  796. package/dist/strings-DWgkUybS.d.ts +76 -0
  797. package/dist/strings-DWgkUybS.d.ts.map +1 -0
  798. package/dist/svix-token-BsMrLGvy.d.ts +30 -0
  799. package/dist/svix-token-BsMrLGvy.d.ts.map +1 -0
  800. package/dist/team-invitation-Cyqt9oWw.d.ts +53 -0
  801. package/dist/team-invitation-Cyqt9oWw.d.ts.map +1 -0
  802. package/dist/team-member-profiles-uTluO8XI.d.ts +285 -0
  803. package/dist/team-member-profiles-uTluO8XI.d.ts.map +1 -0
  804. package/dist/team-memberships-DZHk2A5b.d.ts +74 -0
  805. package/dist/team-memberships-DZHk2A5b.d.ts.map +1 -0
  806. package/dist/team-permissions-DqOpaOWh.d.ts +168 -0
  807. package/dist/team-permissions-DqOpaOWh.d.ts.map +1 -0
  808. package/dist/teams-CQMcBnjM.d.ts +298 -0
  809. package/dist/teams-CQMcBnjM.d.ts.map +1 -0
  810. package/dist/transactions-DhnbvGH5.d.ts +182 -0
  811. package/dist/transactions-DhnbvGH5.d.ts.map +1 -0
  812. package/dist/types-DfTcxNtM.d.ts +77 -0
  813. package/dist/types-DfTcxNtM.d.ts.map +1 -0
  814. package/dist/users-CmBBuF00.d.ts +653 -0
  815. package/dist/users-CmBBuF00.d.ts.map +1 -0
  816. package/dist/utils/analytics-clickmap-overlay.d.ts.map +1 -1
  817. package/dist/utils/analytics-clickmap-overlay.js +2 -3
  818. package/dist/utils/analytics-clickmap-overlay.js.map +1 -1
  819. package/dist/utils/api-keys.d.ts.map +1 -1
  820. package/dist/utils/api-keys.js +4 -5
  821. package/dist/utils/api-keys.js.map +1 -1
  822. package/dist/utils/arrays.d.ts.map +1 -1
  823. package/dist/utils/arrays.js +2 -472
  824. package/dist/utils/arrays.js.map +1 -1
  825. package/dist/utils/auth-methods.d.ts.map +1 -1
  826. package/dist/utils/auth-methods.js +2 -3
  827. package/dist/utils/auth-methods.js.map +1 -1
  828. package/dist/utils/base64.d.ts.map +1 -1
  829. package/dist/utils/base64.js +2 -12
  830. package/dist/utils/base64.js.map +1 -1
  831. package/dist/utils/booleans.d.ts.map +1 -1
  832. package/dist/utils/booleans.js +2 -27
  833. package/dist/utils/booleans.js.map +1 -1
  834. package/dist/utils/browser-compat.d.ts.map +1 -1
  835. package/dist/utils/browser-compat.js +2 -3
  836. package/dist/utils/browser-compat.js.map +1 -1
  837. package/dist/utils/bytes.d.ts.map +1 -1
  838. package/dist/utils/bytes.js +4 -200
  839. package/dist/utils/bytes.js.map +1 -1
  840. package/dist/utils/caches.d.ts.map +1 -1
  841. package/dist/utils/caches.js +2 -29
  842. package/dist/utils/caches.js.map +1 -1
  843. package/dist/utils/cel-fields.d.ts.map +1 -1
  844. package/dist/utils/cel-fields.js +2 -4
  845. package/dist/utils/cel-fields.js.map +1 -1
  846. package/dist/utils/cloud-hosts.d.ts.map +1 -1
  847. package/dist/utils/cloud-hosts.js +2 -29
  848. package/dist/utils/cloud-hosts.js.map +1 -1
  849. package/dist/utils/compile-time.d.ts.map +1 -1
  850. package/dist/utils/compile-time.js +2 -3
  851. package/dist/utils/compile-time.js.map +1 -1
  852. package/dist/utils/country-codes.d.ts +2 -11
  853. package/dist/utils/country-codes.js +2 -18
  854. package/dist/utils/country-codes.js.map +1 -1
  855. package/dist/utils/crypto.d.ts.map +1 -1
  856. package/dist/utils/crypto.js +4 -115
  857. package/dist/utils/crypto.js.map +1 -1
  858. package/dist/utils/currencies.d.ts +1 -1
  859. package/dist/utils/currencies.d.ts.map +1 -1
  860. package/dist/utils/currencies.js +3 -39
  861. package/dist/utils/currencies.js.map +1 -1
  862. package/dist/utils/currency-constants.d.ts +2 -45
  863. package/dist/utils/currency-constants.js +2 -3
  864. package/dist/utils/currency-constants.js.map +1 -1
  865. package/dist/utils/dates.d.ts +2 -23
  866. package/dist/utils/dates.js +2 -46
  867. package/dist/utils/dates.js.map +1 -1
  868. package/dist/utils/dev-env-state-path.d.ts.map +1 -1
  869. package/dist/utils/dev-env-state-path.js +2 -4
  870. package/dist/utils/dev-env-state-path.js.map +1 -1
  871. package/dist/utils/dev-tool.d.ts.map +1 -1
  872. package/dist/utils/dev-tool.js +2 -3
  873. package/dist/utils/dev-tool.js.map +1 -1
  874. package/dist/utils/dom.d.ts.map +1 -1
  875. package/dist/utils/dom.js +2 -3
  876. package/dist/utils/dom.js.map +1 -1
  877. package/dist/utils/elements-chain.d.ts.map +1 -1
  878. package/dist/utils/elements-chain.js +6 -52
  879. package/dist/utils/elements-chain.js.map +1 -1
  880. package/dist/utils/env.d.ts.map +1 -1
  881. package/dist/utils/env.js +2 -4
  882. package/dist/utils/env.js.map +1 -1
  883. package/dist/utils/env.test.js +1 -3
  884. package/dist/utils/env.test.js.map +1 -1
  885. package/dist/utils/errors.d.ts +2 -238
  886. package/dist/utils/errors.js +2 -4
  887. package/dist/utils/errors.js.map +1 -1
  888. package/dist/utils/esbuild.d.ts +1 -1
  889. package/dist/utils/esbuild.d.ts.map +1 -1
  890. package/dist/utils/esbuild.js +5 -6
  891. package/dist/utils/esbuild.js.map +1 -1
  892. package/dist/utils/featurebase.d.ts.map +1 -1
  893. package/dist/utils/featurebase.js +2 -4
  894. package/dist/utils/featurebase.js.map +1 -1
  895. package/dist/utils/fs.d.ts.map +1 -1
  896. package/dist/utils/fs.js +5 -6
  897. package/dist/utils/fs.js.map +1 -1
  898. package/dist/utils/functions.d.ts.map +1 -1
  899. package/dist/utils/functions.js +2 -26
  900. package/dist/utils/functions.js.map +1 -1
  901. package/dist/utils/geo.d.ts.map +1 -1
  902. package/dist/utils/geo.js +2 -4
  903. package/dist/utils/geo.js.map +1 -1
  904. package/dist/utils/globals.d.ts.map +1 -1
  905. package/dist/utils/globals.js +2 -3
  906. package/dist/utils/globals.js.map +1 -1
  907. package/dist/utils/hashes.d.ts.map +1 -1
  908. package/dist/utils/hashes.js +4 -5
  909. package/dist/utils/hashes.js.map +1 -1
  910. package/dist/utils/html.d.ts.map +1 -1
  911. package/dist/utils/html.js +2 -21
  912. package/dist/utils/html.js.map +1 -1
  913. package/dist/utils/http.d.ts.map +1 -1
  914. package/dist/utils/http.js +2 -21
  915. package/dist/utils/http.js.map +1 -1
  916. package/dist/utils/ips.d.ts.map +1 -1
  917. package/dist/utils/ips.js +4 -28
  918. package/dist/utils/ips.js.map +1 -1
  919. package/dist/utils/json.d.ts +2 -15
  920. package/dist/utils/json.js +2 -157
  921. package/dist/utils/json.js.map +1 -1
  922. package/dist/utils/jsx-editable-transpiler.d.ts.map +1 -1
  923. package/dist/utils/jsx-editable-transpiler.js +7 -8
  924. package/dist/utils/jsx-editable-transpiler.js.map +1 -1
  925. package/dist/utils/jsx-editable-transpiler.test.js +1 -3
  926. package/dist/utils/jsx-editable-transpiler.test.js.map +1 -1
  927. package/dist/utils/jwt.d.ts.map +1 -1
  928. package/dist/utils/jwt.js +6 -7
  929. package/dist/utils/jwt.js.map +1 -1
  930. package/dist/utils/locks.d.ts.map +1 -1
  931. package/dist/utils/locks.js +2 -4
  932. package/dist/utils/locks.js.map +1 -1
  933. package/dist/utils/maps.d.ts.map +1 -1
  934. package/dist/utils/maps.js +2 -113
  935. package/dist/utils/maps.js.map +1 -1
  936. package/dist/utils/math.d.ts.map +1 -1
  937. package/dist/utils/math.js +2 -13
  938. package/dist/utils/math.js.map +1 -1
  939. package/dist/utils/monkey-patch.d.ts.map +1 -1
  940. package/dist/utils/monkey-patch.js +3 -5
  941. package/dist/utils/monkey-patch.js.map +1 -1
  942. package/dist/utils/node-http.js +2 -4
  943. package/dist/utils/node-http.js.map +1 -1
  944. package/dist/utils/numbers.d.ts.map +1 -1
  945. package/dist/utils/numbers.js +2 -47
  946. package/dist/utils/numbers.js.map +1 -1
  947. package/dist/utils/oauth.d.ts.map +1 -1
  948. package/dist/utils/oauth.js +2 -3
  949. package/dist/utils/oauth.js.map +1 -1
  950. package/dist/utils/objects.d.ts +2 -59
  951. package/dist/utils/objects.js +2 -624
  952. package/dist/utils/objects.js.map +1 -1
  953. package/dist/utils/paginated-lists.d.ts.map +1 -1
  954. package/dist/utils/paginated-lists.js +2 -4
  955. package/dist/utils/paginated-lists.js.map +1 -1
  956. package/dist/utils/paginated-lists.test.js +1 -3
  957. package/dist/utils/paginated-lists.test.js.map +1 -1
  958. package/dist/utils/passkey.d.ts +2 -2
  959. package/dist/utils/promises.d.ts +1 -1
  960. package/dist/utils/promises.d.ts.map +1 -1
  961. package/dist/utils/promises.js +2 -162
  962. package/dist/utils/promises.js.map +1 -1
  963. package/dist/utils/proxies.d.ts.map +1 -1
  964. package/dist/utils/proxies.js +2 -39
  965. package/dist/utils/proxies.js.map +1 -1
  966. package/dist/utils/react.d.ts.map +1 -1
  967. package/dist/utils/react.js +4 -44
  968. package/dist/utils/react.js.map +1 -1
  969. package/dist/utils/redirect-urls.d.ts.map +1 -1
  970. package/dist/utils/redirect-urls.js +3 -94
  971. package/dist/utils/redirect-urls.js.map +1 -1
  972. package/dist/utils/regex.js +2 -3
  973. package/dist/utils/regex.js.map +1 -1
  974. package/dist/utils/results.d.ts +2 -70
  975. package/dist/utils/results.js +2 -215
  976. package/dist/utils/results.js.map +1 -1
  977. package/dist/utils/sentry.js +2 -3
  978. package/dist/utils/sentry.js.map +1 -1
  979. package/dist/utils/stores.d.ts +1 -1
  980. package/dist/utils/stores.d.ts.map +1 -1
  981. package/dist/utils/stores.js +2 -4
  982. package/dist/utils/stores.js.map +1 -1
  983. package/dist/utils/strings.d.ts +2 -76
  984. package/dist/utils/strings.js +2 -253
  985. package/dist/utils/strings.js.map +1 -1
  986. package/dist/utils/strings.nicify.test.js +1 -3
  987. package/dist/utils/strings.nicify.test.js.map +1 -1
  988. package/dist/utils/telemetry.d.ts.map +1 -1
  989. package/dist/utils/telemetry.js +2 -4
  990. package/dist/utils/telemetry.js.map +1 -1
  991. package/dist/utils/turnstile-browser.d.ts.map +1 -1
  992. package/dist/utils/turnstile-browser.js +2 -4
  993. package/dist/utils/turnstile-browser.js.map +1 -1
  994. package/dist/utils/turnstile-flow.d.ts.map +1 -1
  995. package/dist/utils/turnstile-flow.js +2 -4
  996. package/dist/utils/turnstile-flow.js.map +1 -1
  997. package/dist/utils/turnstile-flow.test.js +1 -3
  998. package/dist/utils/turnstile-flow.test.js.map +1 -1
  999. package/dist/utils/turnstile.d.ts.map +1 -1
  1000. package/dist/utils/turnstile.js +2 -3
  1001. package/dist/utils/turnstile.js.map +1 -1
  1002. package/dist/utils/typed-arrays.js +2 -4
  1003. package/dist/utils/typed-arrays.js.map +1 -1
  1004. package/dist/utils/types.d.ts +2 -77
  1005. package/dist/utils/types.js +2 -3
  1006. package/dist/utils/types.js.map +1 -1
  1007. package/dist/utils/unicode.d.ts.map +1 -1
  1008. package/dist/utils/unicode.js +2 -15
  1009. package/dist/utils/unicode.js.map +1 -1
  1010. package/dist/utils/urls.d.ts.map +1 -1
  1011. package/dist/utils/urls.js +2 -153
  1012. package/dist/utils/urls.js.map +1 -1
  1013. package/dist/utils/uuids.d.ts.map +1 -1
  1014. package/dist/utils/uuids.js +3 -28
  1015. package/dist/utils/uuids.js.map +1 -1
  1016. package/dist/webhooks-ByXrdSOx.d.ts +326 -0
  1017. package/dist/webhooks-ByXrdSOx.d.ts.map +1 -0
  1018. package/package.json +2 -8
  1019. package/src/interface/client-interface.test.ts +77 -12
  1020. package/src/interface/client-interface.ts +9 -9
  1021. package/dist/config/format.d.ts.map +0 -1
  1022. package/dist/config/schema.d.ts.map +0 -1
  1023. package/dist/crud.d.ts.map +0 -1
  1024. package/dist/interface/admin-interface.d.ts.map +0 -1
  1025. package/dist/interface/admin-metrics.d.ts.map +0 -1
  1026. package/dist/interface/client-interface.d.ts.map +0 -1
  1027. package/dist/interface/crud/analytics.d.ts.map +0 -1
  1028. package/dist/interface/crud/connected-accounts.d.ts.map +0 -1
  1029. package/dist/interface/crud/contact-channels.d.ts.map +0 -1
  1030. package/dist/interface/crud/current-user.d.ts.map +0 -1
  1031. package/dist/interface/crud/emails.d.ts.map +0 -1
  1032. package/dist/interface/crud/internal-api-keys.d.ts.map +0 -1
  1033. package/dist/interface/crud/invoices.d.ts.map +0 -1
  1034. package/dist/interface/crud/items.d.ts.map +0 -1
  1035. package/dist/interface/crud/notification-preferences.d.ts.map +0 -1
  1036. package/dist/interface/crud/oauth-providers.d.ts.map +0 -1
  1037. package/dist/interface/crud/products.d.ts.map +0 -1
  1038. package/dist/interface/crud/project-api-keys.d.ts.map +0 -1
  1039. package/dist/interface/crud/project-permissions.d.ts.map +0 -1
  1040. package/dist/interface/crud/projects.d.ts.map +0 -1
  1041. package/dist/interface/crud/session-replays.d.ts.map +0 -1
  1042. package/dist/interface/crud/sessions.d.ts.map +0 -1
  1043. package/dist/interface/crud/svix-token.d.ts.map +0 -1
  1044. package/dist/interface/crud/team-invitation.d.ts.map +0 -1
  1045. package/dist/interface/crud/team-member-profiles.d.ts.map +0 -1
  1046. package/dist/interface/crud/team-memberships.d.ts.map +0 -1
  1047. package/dist/interface/crud/team-permissions.d.ts.map +0 -1
  1048. package/dist/interface/crud/teams.d.ts.map +0 -1
  1049. package/dist/interface/crud/transactions.d.ts.map +0 -1
  1050. package/dist/interface/crud/users.d.ts.map +0 -1
  1051. package/dist/interface/handler-urls.d.ts.map +0 -1
  1052. package/dist/interface/page-component-versions.d.ts.map +0 -1
  1053. package/dist/interface/plan-usage.d.ts.map +0 -1
  1054. package/dist/interface/server-interface.d.ts.map +0 -1
  1055. package/dist/interface/webhooks.d.ts.map +0 -1
  1056. package/dist/known-errors.d.ts.map +0 -1
  1057. package/dist/schema-fields.d.ts.map +0 -1
  1058. package/dist/sessions.d.ts.map +0 -1
  1059. package/dist/utils/country-codes.d.ts.map +0 -1
  1060. package/dist/utils/currency-constants.d.ts.map +0 -1
  1061. package/dist/utils/dates.d.ts.map +0 -1
  1062. package/dist/utils/errors.d.ts.map +0 -1
  1063. package/dist/utils/json.d.ts.map +0 -1
  1064. package/dist/utils/objects.d.ts.map +0 -1
  1065. package/dist/utils/results.d.ts.map +0 -1
  1066. package/dist/utils/strings.d.ts.map +0 -1
  1067. package/dist/utils/types.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"oauth-providers.js","names":[],"sources":["../../../../src/interface/crud/oauth-providers.ts"],"sourcesContent":["import { CrudTypeOf, createCrud } from \"../../crud\";\nimport {\n oauthProviderAccountIdSchema,\n oauthProviderAllowConnectedAccountsSchema,\n oauthProviderAllowSignInSchema,\n oauthProviderEmailSchema,\n oauthProviderIdSchema,\n oauthProviderProviderConfigIdSchema,\n oauthProviderTypeSchema,\n userIdOrMeSchema,\n yupMixed,\n yupObject,\n yupString\n} from \"../../schema-fields\";\n\nexport const oauthProviderClientReadSchema = yupObject({\n user_id: userIdOrMeSchema.defined(),\n id: oauthProviderIdSchema.defined(),\n email: oauthProviderEmailSchema.optional(),\n provider_config_id: oauthProviderProviderConfigIdSchema.defined(),\n type: oauthProviderTypeSchema.defined(),\n allow_sign_in: oauthProviderAllowSignInSchema.defined(),\n allow_connected_accounts: oauthProviderAllowConnectedAccountsSchema.defined(),\n}).defined();\n\nexport const oauthProviderServerReadSchema = oauthProviderClientReadSchema.concat(yupObject({\n account_id: oauthProviderAccountIdSchema.defined(),\n}));\n\nexport const oauthProviderCrudClientUpdateSchema = yupObject({\n allow_sign_in: oauthProviderAllowSignInSchema.optional(),\n allow_connected_accounts: oauthProviderAllowConnectedAccountsSchema.optional(),\n}).defined();\n\nexport const oauthProviderCrudServerUpdateSchema = oauthProviderCrudClientUpdateSchema.concat(yupObject({\n email: oauthProviderEmailSchema.optional(),\n account_id: oauthProviderAccountIdSchema.optional(),\n}));\n\nexport const oauthProviderCrudServerCreateSchema = yupObject({\n user_id: userIdOrMeSchema.defined(),\n provider_config_id: yupString().defined(),\n email: oauthProviderEmailSchema.optional(),\n allow_sign_in: oauthProviderAllowSignInSchema.defined(),\n allow_connected_accounts: oauthProviderAllowConnectedAccountsSchema.defined(),\n account_id: oauthProviderAccountIdSchema.defined(),\n}).defined();\n\nexport const oauthProviderCrudClientDeleteSchema = yupMixed();\n\nexport const oauthProviderCrud = createCrud({\n clientReadSchema: oauthProviderClientReadSchema,\n clientUpdateSchema: oauthProviderCrudClientUpdateSchema,\n clientDeleteSchema: oauthProviderCrudClientDeleteSchema,\n serverReadSchema: oauthProviderServerReadSchema,\n serverUpdateSchema: oauthProviderCrudServerUpdateSchema,\n serverCreateSchema: oauthProviderCrudServerCreateSchema,\n docs: {\n clientRead: {\n summary: \"Get an OAuth provider\",\n description: \"Retrieves a specific OAuth provider by the user ID and the OAuth provider ID.\",\n tags: [\"Oauth\"],\n },\n serverCreate: {\n summary: \"Create an OAuth provider\",\n description: \"Add a new OAuth provider for a user.\",\n tags: [\"Oauth\"],\n },\n serverUpdate: {\n summary: \"Update an OAuth provider\",\n description: \"Updates an existing OAuth provider. Only the values provided will be updated.\",\n tags: [\"Oauth\"],\n },\n clientUpdate: {\n summary: \"Update an OAuth provider\",\n description: \"Updates an existing OAuth provider for a user.\",\n tags: [\"Oauth\"],\n },\n clientDelete: {\n summary: \"Delete an OAuth provider\",\n description: \"Removes an OAuth provider for a given user.\",\n tags: [\"Oauth\"],\n },\n clientList: {\n summary: \"List OAuth providers\",\n description: \"Retrieves a list of all OAuth providers for a user.\",\n tags: [\"Oauth\"],\n },\n }\n});\nexport type OAuthProviderCrud = CrudTypeOf<typeof oauthProviderCrud>;\n"],"mappings":";;;;AAeA,MAAa,gCAAgC,UAAU;CACrD,SAAS,iBAAiB,SAAS;CACnC,IAAI,sBAAsB,SAAS;CACnC,OAAO,yBAAyB,UAAU;CAC1C,oBAAoB,oCAAoC,SAAS;CACjE,MAAM,wBAAwB,SAAS;CACvC,eAAe,+BAA+B,SAAS;CACvD,0BAA0B,0CAA0C,SAAS;CAC9E,CAAC,CAAC,SAAS;AAEZ,MAAa,gCAAgC,8BAA8B,OAAO,UAAU,EAC1F,YAAY,6BAA6B,SAAS,EACnD,CAAC,CAAC;AAEH,MAAa,sCAAsC,UAAU;CAC3D,eAAe,+BAA+B,UAAU;CACxD,0BAA0B,0CAA0C,UAAU;CAC/E,CAAC,CAAC,SAAS;AAEZ,MAAa,sCAAsC,oCAAoC,OAAO,UAAU;CACtG,OAAO,yBAAyB,UAAU;CAC1C,YAAY,6BAA6B,UAAU;CACpD,CAAC,CAAC;AAEH,MAAa,sCAAsC,UAAU;CAC3D,SAAS,iBAAiB,SAAS;CACnC,oBAAoB,WAAW,CAAC,SAAS;CACzC,OAAO,yBAAyB,UAAU;CAC1C,eAAe,+BAA+B,SAAS;CACvD,0BAA0B,0CAA0C,SAAS;CAC7E,YAAY,6BAA6B,SAAS;CACnD,CAAC,CAAC,SAAS;AAEZ,MAAa,sCAAsC,UAAU;AAE7D,MAAa,oBAAoB,WAAW;CAC1C,kBAAkB;CAClB,oBAAoB;CACpB,oBAAoB;CACpB,kBAAkB;CAClB,oBAAoB;CACpB,oBAAoB;CACpB,MAAM;EACJ,YAAY;GACV,SAAS;GACT,aAAa;GACb,MAAM,CAAC,QAAQ;GAChB;EACD,cAAc;GACZ,SAAS;GACT,aAAa;GACb,MAAM,CAAC,QAAQ;GAChB;EACD,cAAc;GACZ,SAAS;GACT,aAAa;GACb,MAAM,CAAC,QAAQ;GAChB;EACD,cAAc;GACZ,SAAS;GACT,aAAa;GACb,MAAM,CAAC,QAAQ;GAChB;EACD,cAAc;GACZ,SAAS;GACT,aAAa;GACb,MAAM,CAAC,QAAQ;GAChB;EACD,YAAY;GACV,SAAS;GACT,aAAa;GACb,MAAM,CAAC,QAAQ;GAChB;EACF;CACF,CAAC"}
1
+ {"version":3,"file":"oauth-providers.js","names":[],"sources":["../../../../src/interface/crud/oauth-providers.ts"],"sourcesContent":["import { CrudTypeOf, createCrud } from \"../../crud\";\nimport {\n oauthProviderAccountIdSchema,\n oauthProviderAllowConnectedAccountsSchema,\n oauthProviderAllowSignInSchema,\n oauthProviderEmailSchema,\n oauthProviderIdSchema,\n oauthProviderProviderConfigIdSchema,\n oauthProviderTypeSchema,\n userIdOrMeSchema,\n yupMixed,\n yupObject,\n yupString\n} from \"../../schema-fields\";\n\nexport const oauthProviderClientReadSchema = yupObject({\n user_id: userIdOrMeSchema.defined(),\n id: oauthProviderIdSchema.defined(),\n email: oauthProviderEmailSchema.optional(),\n provider_config_id: oauthProviderProviderConfigIdSchema.defined(),\n type: oauthProviderTypeSchema.defined(),\n allow_sign_in: oauthProviderAllowSignInSchema.defined(),\n allow_connected_accounts: oauthProviderAllowConnectedAccountsSchema.defined(),\n}).defined();\n\nexport const oauthProviderServerReadSchema = oauthProviderClientReadSchema.concat(yupObject({\n account_id: oauthProviderAccountIdSchema.defined(),\n}));\n\nexport const oauthProviderCrudClientUpdateSchema = yupObject({\n allow_sign_in: oauthProviderAllowSignInSchema.optional(),\n allow_connected_accounts: oauthProviderAllowConnectedAccountsSchema.optional(),\n}).defined();\n\nexport const oauthProviderCrudServerUpdateSchema = oauthProviderCrudClientUpdateSchema.concat(yupObject({\n email: oauthProviderEmailSchema.optional(),\n account_id: oauthProviderAccountIdSchema.optional(),\n}));\n\nexport const oauthProviderCrudServerCreateSchema = yupObject({\n user_id: userIdOrMeSchema.defined(),\n provider_config_id: yupString().defined(),\n email: oauthProviderEmailSchema.optional(),\n allow_sign_in: oauthProviderAllowSignInSchema.defined(),\n allow_connected_accounts: oauthProviderAllowConnectedAccountsSchema.defined(),\n account_id: oauthProviderAccountIdSchema.defined(),\n}).defined();\n\nexport const oauthProviderCrudClientDeleteSchema = yupMixed();\n\nexport const oauthProviderCrud = createCrud({\n clientReadSchema: oauthProviderClientReadSchema,\n clientUpdateSchema: oauthProviderCrudClientUpdateSchema,\n clientDeleteSchema: oauthProviderCrudClientDeleteSchema,\n serverReadSchema: oauthProviderServerReadSchema,\n serverUpdateSchema: oauthProviderCrudServerUpdateSchema,\n serverCreateSchema: oauthProviderCrudServerCreateSchema,\n docs: {\n clientRead: {\n summary: \"Get an OAuth provider\",\n description: \"Retrieves a specific OAuth provider by the user ID and the OAuth provider ID.\",\n tags: [\"Oauth\"],\n },\n serverCreate: {\n summary: \"Create an OAuth provider\",\n description: \"Add a new OAuth provider for a user.\",\n tags: [\"Oauth\"],\n },\n serverUpdate: {\n summary: \"Update an OAuth provider\",\n description: \"Updates an existing OAuth provider. Only the values provided will be updated.\",\n tags: [\"Oauth\"],\n },\n clientUpdate: {\n summary: \"Update an OAuth provider\",\n description: \"Updates an existing OAuth provider for a user.\",\n tags: [\"Oauth\"],\n },\n clientDelete: {\n summary: \"Delete an OAuth provider\",\n description: \"Removes an OAuth provider for a given user.\",\n tags: [\"Oauth\"],\n },\n clientList: {\n summary: \"List OAuth providers\",\n description: \"Retrieves a list of all OAuth providers for a user.\",\n tags: [\"Oauth\"],\n },\n }\n});\nexport type OAuthProviderCrud = CrudTypeOf<typeof oauthProviderCrud>;\n"],"mappings":";;;AAeA,MAAa,gCAAgC,UAAU;CACrD,SAAS,iBAAiB,QAAQ;CAClC,IAAI,sBAAsB,QAAQ;CAClC,OAAO,yBAAyB,SAAS;CACzC,oBAAoB,oCAAoC,QAAQ;CAChE,MAAM,wBAAwB,QAAQ;CACtC,eAAe,+BAA+B,QAAQ;CACtD,0BAA0B,0CAA0C,QAAQ;AAC9E,CAAC,CAAC,CAAC,QAAQ;AAEX,MAAa,gCAAgC,8BAA8B,OAAO,UAAU,EAC1F,YAAY,6BAA6B,QAAQ,EACnD,CAAC,CAAC;AAEF,MAAa,sCAAsC,UAAU;CAC3D,eAAe,+BAA+B,SAAS;CACvD,0BAA0B,0CAA0C,SAAS;AAC/E,CAAC,CAAC,CAAC,QAAQ;AAEX,MAAa,sCAAsC,oCAAoC,OAAO,UAAU;CACtG,OAAO,yBAAyB,SAAS;CACzC,YAAY,6BAA6B,SAAS;AACpD,CAAC,CAAC;AAEF,MAAa,sCAAsC,UAAU;CAC3D,SAAS,iBAAiB,QAAQ;CAClC,oBAAoB,UAAU,CAAC,CAAC,QAAQ;CACxC,OAAO,yBAAyB,SAAS;CACzC,eAAe,+BAA+B,QAAQ;CACtD,0BAA0B,0CAA0C,QAAQ;CAC5E,YAAY,6BAA6B,QAAQ;AACnD,CAAC,CAAC,CAAC,QAAQ;AAEX,MAAa,sCAAsC,SAAS;AAE5D,MAAa,oBAAoB,WAAW;CAC1C,kBAAkB;CAClB,oBAAoB;CACpB,oBAAoB;CACpB,kBAAkB;CAClB,oBAAoB;CACpB,oBAAoB;CACpB,MAAM;EACJ,YAAY;GACV,SAAS;GACT,aAAa;GACb,MAAM,CAAC,OAAO;EAChB;EACA,cAAc;GACZ,SAAS;GACT,aAAa;GACb,MAAM,CAAC,OAAO;EAChB;EACA,cAAc;GACZ,SAAS;GACT,aAAa;GACb,MAAM,CAAC,OAAO;EAChB;EACA,cAAc;GACZ,SAAS;GACT,aAAa;GACb,MAAM,CAAC,OAAO;EAChB;EACA,cAAc;GACZ,SAAS;GACT,aAAa;GACb,MAAM,CAAC,OAAO;EAChB;EACA,YAAY;GACV,SAAS;GACT,aAAa;GACb,MAAM,CAAC,OAAO;EAChB;CACF;AACF,CAAC"}
@@ -1,21 +1,18 @@
1
1
  import * as yup$1 from "yup";
2
- import * as ______utils_dates0 from "../../utils/dates";
3
2
 
4
3
  //#region src/interface/crud/products.d.ts
5
4
  declare const customerProductReadSchema: yup$1.ObjectSchema<{
6
5
  id: string | null;
7
6
  quantity: number;
8
7
  product: {
8
+ free_trial?: import("../../utils/dates").DayInterval | undefined;
9
9
  client_metadata?: {} | null | undefined;
10
10
  client_read_only_metadata?: {} | null | undefined;
11
11
  server_metadata?: {} | null | undefined;
12
- free_trial?: ______utils_dates0.DayInterval | undefined;
13
12
  server_only: boolean;
14
13
  customer_type: "team" | "user" | "custom";
15
- display_name: string;
16
14
  stackable: boolean;
17
15
  prices: Record<string, {
18
- interval?: ______utils_dates0.DayInterval | undefined;
19
16
  USD?: string | undefined;
20
17
  EUR?: string | undefined;
21
18
  GBP?: string | undefined;
@@ -23,11 +20,13 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
23
20
  INR?: string | undefined;
24
21
  AUD?: string | undefined;
25
22
  CAD?: string | undefined;
26
- free_trial?: ______utils_dates0.DayInterval | undefined;
23
+ interval?: import("../../utils/dates").DayInterval | undefined;
24
+ free_trial?: import("../../utils/dates").DayInterval | undefined;
27
25
  }>;
26
+ display_name: string;
28
27
  included_items: Record<string, {
29
28
  quantity?: number | undefined;
30
- repeat?: "never" | ______utils_dates0.DayInterval | undefined;
29
+ repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
31
30
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
32
31
  }>;
33
32
  };
@@ -41,16 +40,14 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
41
40
  switch_options: {
42
41
  product_id: string;
43
42
  product: {
43
+ free_trial?: import("../../utils/dates").DayInterval | undefined;
44
44
  client_metadata?: {} | null | undefined;
45
45
  client_read_only_metadata?: {} | null | undefined;
46
46
  server_metadata?: {} | null | undefined;
47
- free_trial?: ______utils_dates0.DayInterval | undefined;
48
47
  server_only: boolean;
49
48
  customer_type: "team" | "user" | "custom";
50
- display_name: string;
51
49
  stackable: boolean;
52
50
  prices: Record<string, {
53
- interval?: ______utils_dates0.DayInterval | undefined;
54
51
  USD?: string | undefined;
55
52
  EUR?: string | undefined;
56
53
  GBP?: string | undefined;
@@ -58,11 +55,13 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
58
55
  INR?: string | undefined;
59
56
  AUD?: string | undefined;
60
57
  CAD?: string | undefined;
61
- free_trial?: ______utils_dates0.DayInterval | undefined;
58
+ interval?: import("../../utils/dates").DayInterval | undefined;
59
+ free_trial?: import("../../utils/dates").DayInterval | undefined;
62
60
  }>;
61
+ display_name: string;
63
62
  included_items: Record<string, {
64
63
  quantity?: number | undefined;
65
- repeat?: "never" | ______utils_dates0.DayInterval | undefined;
64
+ repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
66
65
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
67
66
  }>;
68
67
  };
@@ -104,16 +103,14 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
104
103
  switch_options?: {
105
104
  product_id: string;
106
105
  product: {
106
+ free_trial?: import("../../utils/dates").DayInterval | undefined;
107
107
  client_metadata?: {} | null | undefined;
108
108
  client_read_only_metadata?: {} | null | undefined;
109
109
  server_metadata?: {} | null | undefined;
110
- free_trial?: ______utils_dates0.DayInterval | undefined;
111
110
  server_only: boolean;
112
111
  customer_type: "team" | "user" | "custom";
113
- display_name: string;
114
112
  stackable: boolean;
115
113
  prices: Record<string, {
116
- interval?: ______utils_dates0.DayInterval | undefined;
117
114
  USD?: string | undefined;
118
115
  EUR?: string | undefined;
119
116
  GBP?: string | undefined;
@@ -121,28 +118,27 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
121
118
  INR?: string | undefined;
122
119
  AUD?: string | undefined;
123
120
  CAD?: string | undefined;
124
- free_trial?: ______utils_dates0.DayInterval | undefined;
121
+ interval?: import("../../utils/dates").DayInterval | undefined;
122
+ free_trial?: import("../../utils/dates").DayInterval | undefined;
125
123
  }>;
124
+ display_name: string;
126
125
  included_items: Record<string, {
127
126
  quantity?: number | undefined;
128
- repeat?: "never" | ______utils_dates0.DayInterval | undefined;
127
+ repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
129
128
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
130
129
  }>;
131
130
  };
132
131
  }[] | undefined;
133
132
  quantity: number;
134
- id: string | null;
135
133
  product: {
134
+ free_trial?: import("../../utils/dates").DayInterval | undefined;
136
135
  client_metadata?: {} | null | undefined;
137
136
  client_read_only_metadata?: {} | null | undefined;
138
137
  server_metadata?: {} | null | undefined;
139
- free_trial?: ______utils_dates0.DayInterval | undefined;
140
138
  server_only: boolean;
141
139
  customer_type: "team" | "user" | "custom";
142
- display_name: string;
143
140
  stackable: boolean;
144
141
  prices: Record<string, {
145
- interval?: ______utils_dates0.DayInterval | undefined;
146
142
  USD?: string | undefined;
147
143
  EUR?: string | undefined;
148
144
  GBP?: string | undefined;
@@ -150,14 +146,17 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
150
146
  INR?: string | undefined;
151
147
  AUD?: string | undefined;
152
148
  CAD?: string | undefined;
153
- free_trial?: ______utils_dates0.DayInterval | undefined;
149
+ interval?: import("../../utils/dates").DayInterval | undefined;
150
+ free_trial?: import("../../utils/dates").DayInterval | undefined;
154
151
  }>;
152
+ display_name: string;
155
153
  included_items: Record<string, {
156
154
  quantity?: number | undefined;
157
- repeat?: "never" | ______utils_dates0.DayInterval | undefined;
155
+ repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
158
156
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
159
157
  }>;
160
158
  };
159
+ id: string | null;
161
160
  }[];
162
161
  is_paginated: boolean;
163
162
  pagination: {
@@ -1 +1 @@
1
- {"version":3,"file":"products.d.ts","names":[],"sources":["../../../../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;;;;iBAc1B,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;qBAMnC,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAA,QAAiB,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
1
+ {"version":3,"file":"products.d.ts","names":[],"sources":["../../../../src/interface/crud/products.ts"],"mappings":";;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgB1B,mBAAA,GAAsB,KAAA,CAAI,SAAS,QAAQ,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAQnC,4BAAA,GAA+B,KAAA,CAAI,SAAS,QAAQ,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
@@ -1,5 +1,4 @@
1
1
  import { inlineProductSchema, yupArray, yupBoolean, yupNumber, yupObject, yupString } from "../../schema-fields.js";
2
-
3
2
  //#region src/interface/crud/products.ts
4
3
  const customerProductSwitchOptionSchema = yupObject({
5
4
  product_id: yupString().defined(),
@@ -9,7 +8,9 @@ const customerProductReadSchema = yupObject({
9
8
  id: yupString().nullable().defined(),
10
9
  quantity: yupNumber().defined(),
11
10
  product: inlineProductSchema.defined(),
11
+ /** @deprecated Product ownership is independent of purchase type. Will be removed in a future version. */
12
12
  type: yupString().oneOf(["one_time", "subscription"]).optional(),
13
+ /** @deprecated Subscription management will move to a dedicated endpoint. Will be removed in a future version. */
13
14
  subscription: yupObject({
14
15
  subscription_id: yupString().nullable().defined(),
15
16
  current_period_end: yupString().nullable().defined(),
@@ -23,7 +24,7 @@ const customerProductsListResponseSchema = yupObject({
23
24
  is_paginated: yupBoolean().oneOf([true]).defined(),
24
25
  pagination: yupObject({ next_cursor: yupString().nullable().defined() }).defined()
25
26
  }).defined();
26
-
27
27
  //#endregion
28
28
  export { customerProductReadSchema, customerProductsListResponseSchema };
29
+
29
30
  //# sourceMappingURL=products.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"products.js","names":[],"sources":["../../../../src/interface/crud/products.ts"],"sourcesContent":["import type * as yup from \"yup\";\nimport { inlineProductSchema, yupArray, yupBoolean, yupNumber, yupObject, yupString } from \"../../schema-fields\";\n\nconst customerProductSwitchOptionSchema = yupObject({\n product_id: yupString().defined(),\n product: inlineProductSchema.defined(),\n}).defined();\n\nexport const customerProductReadSchema = yupObject({\n id: yupString().nullable().defined(),\n quantity: yupNumber().defined(),\n product: inlineProductSchema.defined(),\n /** @deprecated Product ownership is independent of purchase type. Will be removed in a future version. */\n type: yupString().oneOf([\"one_time\", \"subscription\"]).optional(),\n /** @deprecated Subscription management will move to a dedicated endpoint. Will be removed in a future version. */\n subscription: yupObject({\n subscription_id: yupString().nullable().defined(),\n current_period_end: yupString().nullable().defined(),\n cancel_at_period_end: yupBoolean().defined(),\n is_cancelable: yupBoolean().defined(),\n }).nullable().optional(),\n switch_options: yupArray(customerProductSwitchOptionSchema).optional(),\n}).defined();\n\nexport type CustomerProductRead = yup.InferType<typeof customerProductReadSchema>;\n\nexport const customerProductsListResponseSchema = yupObject({\n items: yupArray(customerProductReadSchema).defined(),\n is_paginated: yupBoolean().oneOf([true]).defined(),\n pagination: yupObject({\n next_cursor: yupString().nullable().defined(),\n }).defined(),\n}).defined();\n\nexport type CustomerProductsListResponse = yup.InferType<typeof customerProductsListResponseSchema>;\n\nexport type ListCustomerProductsOptions = {\n customer_type: \"user\" | \"team\" | \"custom\",\n customer_id: string,\n cursor?: string,\n limit?: number,\n};\n"],"mappings":";;;AAGA,MAAM,oCAAoC,UAAU;CAClD,YAAY,WAAW,CAAC,SAAS;CACjC,SAAS,oBAAoB,SAAS;CACvC,CAAC,CAAC,SAAS;AAEZ,MAAa,4BAA4B,UAAU;CACjD,IAAI,WAAW,CAAC,UAAU,CAAC,SAAS;CACpC,UAAU,WAAW,CAAC,SAAS;CAC/B,SAAS,oBAAoB,SAAS;CAEtC,MAAM,WAAW,CAAC,MAAM,CAAC,YAAY,eAAe,CAAC,CAAC,UAAU;CAEhE,cAAc,UAAU;EACtB,iBAAiB,WAAW,CAAC,UAAU,CAAC,SAAS;EACjD,oBAAoB,WAAW,CAAC,UAAU,CAAC,SAAS;EACpD,sBAAsB,YAAY,CAAC,SAAS;EAC5C,eAAe,YAAY,CAAC,SAAS;EACtC,CAAC,CAAC,UAAU,CAAC,UAAU;CACxB,gBAAgB,SAAS,kCAAkC,CAAC,UAAU;CACvE,CAAC,CAAC,SAAS;AAIZ,MAAa,qCAAqC,UAAU;CAC1D,OAAO,SAAS,0BAA0B,CAAC,SAAS;CACpD,cAAc,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,SAAS;CAClD,YAAY,UAAU,EACpB,aAAa,WAAW,CAAC,UAAU,CAAC,SAAS,EAC9C,CAAC,CAAC,SAAS;CACb,CAAC,CAAC,SAAS"}
1
+ {"version":3,"file":"products.js","names":[],"sources":["../../../../src/interface/crud/products.ts"],"sourcesContent":["import type * as yup from \"yup\";\nimport { inlineProductSchema, yupArray, yupBoolean, yupNumber, yupObject, yupString } from \"../../schema-fields\";\n\nconst customerProductSwitchOptionSchema = yupObject({\n product_id: yupString().defined(),\n product: inlineProductSchema.defined(),\n}).defined();\n\nexport const customerProductReadSchema = yupObject({\n id: yupString().nullable().defined(),\n quantity: yupNumber().defined(),\n product: inlineProductSchema.defined(),\n /** @deprecated Product ownership is independent of purchase type. Will be removed in a future version. */\n type: yupString().oneOf([\"one_time\", \"subscription\"]).optional(),\n /** @deprecated Subscription management will move to a dedicated endpoint. Will be removed in a future version. */\n subscription: yupObject({\n subscription_id: yupString().nullable().defined(),\n current_period_end: yupString().nullable().defined(),\n cancel_at_period_end: yupBoolean().defined(),\n is_cancelable: yupBoolean().defined(),\n }).nullable().optional(),\n switch_options: yupArray(customerProductSwitchOptionSchema).optional(),\n}).defined();\n\nexport type CustomerProductRead = yup.InferType<typeof customerProductReadSchema>;\n\nexport const customerProductsListResponseSchema = yupObject({\n items: yupArray(customerProductReadSchema).defined(),\n is_paginated: yupBoolean().oneOf([true]).defined(),\n pagination: yupObject({\n next_cursor: yupString().nullable().defined(),\n }).defined(),\n}).defined();\n\nexport type CustomerProductsListResponse = yup.InferType<typeof customerProductsListResponseSchema>;\n\nexport type ListCustomerProductsOptions = {\n customer_type: \"user\" | \"team\" | \"custom\",\n customer_id: string,\n cursor?: string,\n limit?: number,\n};\n"],"mappings":";;AAGA,MAAM,oCAAoC,UAAU;CAClD,YAAY,UAAU,CAAC,CAAC,QAAQ;CAChC,SAAS,oBAAoB,QAAQ;AACvC,CAAC,CAAC,CAAC,QAAQ;AAEX,MAAa,4BAA4B,UAAU;CACjD,IAAI,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ;CACnC,UAAU,UAAU,CAAC,CAAC,QAAQ;CAC9B,SAAS,oBAAoB,QAAQ;;CAErC,MAAM,UAAU,CAAC,CAAC,MAAM,CAAC,YAAY,cAAc,CAAC,CAAC,CAAC,SAAS;;CAE/D,cAAc,UAAU;EACtB,iBAAiB,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ;EAChD,oBAAoB,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ;EACnD,sBAAsB,WAAW,CAAC,CAAC,QAAQ;EAC3C,eAAe,WAAW,CAAC,CAAC,QAAQ;CACtC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvB,gBAAgB,SAAS,iCAAiC,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,QAAQ;AAIX,MAAa,qCAAqC,UAAU;CAC1D,OAAO,SAAS,yBAAyB,CAAC,CAAC,QAAQ;CACnD,cAAc,WAAW,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ;CACjD,YAAY,UAAU,EACpB,aAAa,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,EAC9C,CAAC,CAAC,CAAC,QAAQ;AACb,CAAC,CAAC,CAAC,QAAQ"}
@@ -1,9 +1,8 @@
1
1
  import * as yup$1 from "yup";
2
- import * as ______crud0 from "../../crud";
3
- import { CrudTypeOf } from "../../crud";
2
+ import { CrudTypeOf } from "../../crud.js";
4
3
 
5
4
  //#region src/interface/crud/project-api-keys.d.ts
6
- declare const userApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
5
+ declare const userApiKeysCrud: import("../../crud").CrudSchemaFromOptions<{
7
6
  clientReadSchema: yup$1.ObjectSchema<{
8
7
  id: string;
9
8
  description: string;
@@ -81,8 +80,8 @@ declare const userApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
81
80
  }, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
82
81
  user_id: string;
83
82
  type: "user";
84
- id: string;
85
83
  description: string;
84
+ id: string;
86
85
  created_at_millis: number;
87
86
  expires_at_millis: number | undefined;
88
87
  manually_revoked_at_millis: number | undefined;
@@ -101,7 +100,7 @@ declare const userApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
101
100
  user_id: undefined;
102
101
  }, "">;
103
102
  type UserApiKeysCrud = CrudTypeOf<typeof userApiKeysCrud>;
104
- declare const teamApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
103
+ declare const teamApiKeysCrud: import("../../crud").CrudSchemaFromOptions<{
105
104
  clientReadSchema: yup$1.ObjectSchema<{
106
105
  id: string;
107
106
  description: string;
@@ -179,8 +178,8 @@ declare const teamApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
179
178
  }, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
180
179
  type: "team";
181
180
  team_id: string;
182
- id: string;
183
181
  description: string;
182
+ id: string;
184
183
  created_at_millis: number;
185
184
  expires_at_millis: number | undefined;
186
185
  manually_revoked_at_millis: number | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"project-api-keys.d.ts","names":[],"sources":["../../../../src/interface/crud/project-api-keys.ts"],"mappings":";;;;;cAwFQ,eAAA,cAAe,qBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAC0B,KAAA,CAAA,YAAA;;;;;;;;;;yCACE,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;KAEvC,eAAA,GAAkB,UAAA,QAAkB,eAAA;AAAA,cAGxC,eAAA,cAAe,qBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAC0B,KAAA,CAAA,YAAA;;;;;;;;;;yCACE,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;KAEvC,eAAA,GAAkB,UAAA,QAAkB,eAAA"}
1
+ {"version":3,"file":"project-api-keys.d.ts","names":[],"sources":["../../../../src/interface/crud/project-api-keys.ts"],"mappings":";;;;cAwFQ,eAAA,uBAAe,qBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAC0B,KAAA,CAAA,YAAA;;;;;;;;;;yCACE,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;KAEvC,eAAA,GAAkB,UAAU,QAAQ,eAAA;AAAA,cAGxC,eAAA,uBAAe,qBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAC0B,KAAA,CAAA,YAAA;;;;;;;;;;yCACE,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;KAEvC,eAAA,GAAkB,UAAU,QAAQ,eAAA"}
@@ -1,7 +1,6 @@
1
1
  import { createCrud } from "../../crud.js";
2
2
  import { userIdOrMeSchema, yupBoolean, yupNumber, yupObject, yupString } from "../../schema-fields.js";
3
3
  import { typedFromEntries } from "../../utils/objects.js";
4
-
5
4
  //#region src/interface/crud/project-api-keys.ts
6
5
  function createApiKeyCrud(type, idFieldName, idSchema) {
7
6
  const projectApiKeysReadSchema = yupObject({
@@ -66,7 +65,7 @@ function createApiKeyCrud(type, idFieldName, idSchema) {
66
65
  }
67
66
  const { crud: userApiKeysCrud, createInputSchema: userApiKeysCreateInputSchema, createOutputSchema: userApiKeysCreateOutputSchema } = createApiKeyCrud("user", "user_id", userIdOrMeSchema.defined());
68
67
  const { crud: teamApiKeysCrud, createInputSchema: teamApiKeysCreateInputSchema, createOutputSchema: teamApiKeysCreateOutputSchema } = createApiKeyCrud("team", "team_id", yupString().defined());
69
-
70
68
  //#endregion
71
69
  export { teamApiKeysCreateInputSchema, teamApiKeysCreateOutputSchema, teamApiKeysCrud, userApiKeysCreateInputSchema, userApiKeysCreateOutputSchema, userApiKeysCrud };
70
+
72
71
  //# sourceMappingURL=project-api-keys.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"project-api-keys.js","names":[],"sources":["../../../../src/interface/crud/project-api-keys.ts"],"sourcesContent":["import * as yup from \"yup\";\nimport { CrudTypeOf, createCrud } from \"../../crud\";\nimport { userIdOrMeSchema, yupBoolean, yupNumber, yupObject, yupString } from \"../../schema-fields\";\nimport { typedFromEntries } from \"../../utils/objects\";\n\nfunction createApiKeyCrud<T extends string, IdFieldName extends string, IdSchema extends yup.Schema<any>>(type: T, idFieldName: IdFieldName, idSchema: IdSchema) {\n const projectApiKeysReadSchema = yupObject({\n id: yupString().defined(),\n description: yupString().defined(),\n expires_at_millis: yupNumber().optional(),\n manually_revoked_at_millis: yupNumber().optional(),\n created_at_millis: yupNumber().defined(),\n is_public: yupBoolean().defined(),\n value: yupObject({\n last_four: yupString().defined(),\n }).defined(),\n type: yupString().oneOf([type]).defined(),\n ...typedFromEntries([[idFieldName, idSchema]]),\n });\n\n const projectApiKeysUpdateSchema = yupObject({\n description: yupString().optional(),\n revoked: yupBoolean().oneOf([true]).optional(),\n }).defined();\n\n const projectApiKeysCrud = createCrud({\n clientReadSchema: projectApiKeysReadSchema,\n clientUpdateSchema: projectApiKeysUpdateSchema,\n docs: {\n clientCreate: {\n description: `Create a new ${type} API key`,\n displayName: `Create ${type} API key`,\n tags: [\"API Keys\"],\n summary: `Create ${type} API key`,\n },\n clientList: {\n description: `List all ${type} API keys for the project with their metadata and status`,\n displayName: `List ${type} API keys`,\n summary: `List ${type} API keys`,\n tags: [\"API Keys\"],\n },\n clientRead: {\n description: `Get details of a specific ${type} API key`,\n displayName: `Get ${type} API key`,\n summary: `Get ${type} API key details`,\n tags: [\"API Keys\"],\n },\n clientUpdate: {\n description: `Update an ${type} API key`,\n displayName: `Update ${type} API key`,\n summary: `Update ${type} API key`,\n tags: [\"API Keys\"],\n },\n serverDelete: {\n description: `Delete an ${type} API key`,\n displayName: `Delete ${type} API key`,\n summary: `Delete ${type} API key`,\n tags: [\"API Keys\"],\n },\n },\n });\n\n // Used for the result of the create endpoint\n const projectApiKeysCreateInputSchema = yupObject({\n description: yupString().defined(),\n expires_at_millis: yupNumber().nullable().defined(),\n is_public: yupBoolean().optional(),\n /*\n prefix: yupString().optional().nonEmpty().test(\"prefix\", \"Prefix must contain only alphanumeric characters and underscores\", (value) => {\n if (!value) return true;\n return /^[a-zA-Z0-9_]+$/.test(value);\n }),\n */\n ...typedFromEntries([[idFieldName, idSchema]]),\n });\n const projectApiKeysCreateOutputSchema = projectApiKeysReadSchema.omit([\"value\"]).concat(yupObject({\n value: yupString().defined(),\n }));\n\n return {\n crud: projectApiKeysCrud,\n createInputSchema: projectApiKeysCreateInputSchema,\n createOutputSchema: projectApiKeysCreateOutputSchema,\n };\n}\n\n\nexport const {\n crud: userApiKeysCrud,\n createInputSchema: userApiKeysCreateInputSchema,\n createOutputSchema: userApiKeysCreateOutputSchema,\n} = createApiKeyCrud(\"user\", \"user_id\", userIdOrMeSchema.defined());\nexport type UserApiKeysCrud = CrudTypeOf<typeof userApiKeysCrud>;\n\nexport const {\n crud: teamApiKeysCrud,\n createInputSchema: teamApiKeysCreateInputSchema,\n createOutputSchema: teamApiKeysCreateOutputSchema,\n} = createApiKeyCrud(\"team\", \"team_id\", yupString().defined());\nexport type TeamApiKeysCrud = CrudTypeOf<typeof teamApiKeysCrud>;\n"],"mappings":";;;;;AAKA,SAAS,iBAAiG,MAAS,aAA0B,UAAoB;CAC/J,MAAM,2BAA2B,UAAU;EACzC,IAAI,WAAW,CAAC,SAAS;EACzB,aAAa,WAAW,CAAC,SAAS;EAClC,mBAAmB,WAAW,CAAC,UAAU;EACzC,4BAA4B,WAAW,CAAC,UAAU;EAClD,mBAAmB,WAAW,CAAC,SAAS;EACxC,WAAW,YAAY,CAAC,SAAS;EACjC,OAAO,UAAU,EACf,WAAW,WAAW,CAAC,SAAS,EACjC,CAAC,CAAC,SAAS;EACZ,MAAM,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,SAAS;EACzC,GAAG,iBAAiB,CAAC,CAAC,aAAa,SAAS,CAAC,CAAC;EAC/C,CAAC;AA6DF,QAAO;EACL,MAvDyB,WAAW;GACpC,kBAAkB;GAClB,oBAPiC,UAAU;IAC3C,aAAa,WAAW,CAAC,UAAU;IACnC,SAAS,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,UAAU;IAC/C,CAAC,CAAC,SAAS;GAKV,MAAM;IACJ,cAAc;KACZ,aAAa,gBAAgB,KAAK;KAClC,aAAa,UAAU,KAAK;KAC5B,MAAM,CAAC,WAAW;KAClB,SAAS,UAAU,KAAK;KACzB;IACD,YAAY;KACV,aAAa,YAAY,KAAK;KAC9B,aAAa,QAAQ,KAAK;KAC1B,SAAS,QAAQ,KAAK;KACtB,MAAM,CAAC,WAAW;KACnB;IACD,YAAY;KACV,aAAa,6BAA6B,KAAK;KAC/C,aAAa,OAAO,KAAK;KACzB,SAAS,OAAO,KAAK;KACrB,MAAM,CAAC,WAAW;KACnB;IACD,cAAc;KACZ,aAAa,aAAa,KAAK;KAC/B,aAAa,UAAU,KAAK;KAC5B,SAAS,UAAU,KAAK;KACxB,MAAM,CAAC,WAAW;KACnB;IACD,cAAc;KACZ,aAAa,aAAa,KAAK;KAC/B,aAAa,UAAU,KAAK;KAC5B,SAAS,UAAU,KAAK;KACxB,MAAM,CAAC,WAAW;KACnB;IACF;GACF,CAAC;EAqBA,mBAlBsC,UAAU;GAChD,aAAa,WAAW,CAAC,SAAS;GAClC,mBAAmB,WAAW,CAAC,UAAU,CAAC,SAAS;GACnD,WAAW,YAAY,CAAC,UAAU;GAOlC,GAAG,iBAAiB,CAAC,CAAC,aAAa,SAAS,CAAC,CAAC;GAC/C,CAAC;EAQA,oBAPuC,yBAAyB,KAAK,CAAC,QAAQ,CAAC,CAAC,OAAO,UAAU,EACjG,OAAO,WAAW,CAAC,SAAS,EAC7B,CAAC,CAAC;EAMF;;AAIH,MAAa,EACX,MAAM,iBACN,mBAAmB,8BACnB,oBAAoB,kCAClB,iBAAiB,QAAQ,WAAW,iBAAiB,SAAS,CAAC;AAGnE,MAAa,EACX,MAAM,iBACN,mBAAmB,8BACnB,oBAAoB,kCAClB,iBAAiB,QAAQ,WAAW,WAAW,CAAC,SAAS,CAAC"}
1
+ {"version":3,"file":"project-api-keys.js","names":[],"sources":["../../../../src/interface/crud/project-api-keys.ts"],"sourcesContent":["import * as yup from \"yup\";\nimport { CrudTypeOf, createCrud } from \"../../crud\";\nimport { userIdOrMeSchema, yupBoolean, yupNumber, yupObject, yupString } from \"../../schema-fields\";\nimport { typedFromEntries } from \"../../utils/objects\";\n\nfunction createApiKeyCrud<T extends string, IdFieldName extends string, IdSchema extends yup.Schema<any>>(type: T, idFieldName: IdFieldName, idSchema: IdSchema) {\n const projectApiKeysReadSchema = yupObject({\n id: yupString().defined(),\n description: yupString().defined(),\n expires_at_millis: yupNumber().optional(),\n manually_revoked_at_millis: yupNumber().optional(),\n created_at_millis: yupNumber().defined(),\n is_public: yupBoolean().defined(),\n value: yupObject({\n last_four: yupString().defined(),\n }).defined(),\n type: yupString().oneOf([type]).defined(),\n ...typedFromEntries([[idFieldName, idSchema]]),\n });\n\n const projectApiKeysUpdateSchema = yupObject({\n description: yupString().optional(),\n revoked: yupBoolean().oneOf([true]).optional(),\n }).defined();\n\n const projectApiKeysCrud = createCrud({\n clientReadSchema: projectApiKeysReadSchema,\n clientUpdateSchema: projectApiKeysUpdateSchema,\n docs: {\n clientCreate: {\n description: `Create a new ${type} API key`,\n displayName: `Create ${type} API key`,\n tags: [\"API Keys\"],\n summary: `Create ${type} API key`,\n },\n clientList: {\n description: `List all ${type} API keys for the project with their metadata and status`,\n displayName: `List ${type} API keys`,\n summary: `List ${type} API keys`,\n tags: [\"API Keys\"],\n },\n clientRead: {\n description: `Get details of a specific ${type} API key`,\n displayName: `Get ${type} API key`,\n summary: `Get ${type} API key details`,\n tags: [\"API Keys\"],\n },\n clientUpdate: {\n description: `Update an ${type} API key`,\n displayName: `Update ${type} API key`,\n summary: `Update ${type} API key`,\n tags: [\"API Keys\"],\n },\n serverDelete: {\n description: `Delete an ${type} API key`,\n displayName: `Delete ${type} API key`,\n summary: `Delete ${type} API key`,\n tags: [\"API Keys\"],\n },\n },\n });\n\n // Used for the result of the create endpoint\n const projectApiKeysCreateInputSchema = yupObject({\n description: yupString().defined(),\n expires_at_millis: yupNumber().nullable().defined(),\n is_public: yupBoolean().optional(),\n /*\n prefix: yupString().optional().nonEmpty().test(\"prefix\", \"Prefix must contain only alphanumeric characters and underscores\", (value) => {\n if (!value) return true;\n return /^[a-zA-Z0-9_]+$/.test(value);\n }),\n */\n ...typedFromEntries([[idFieldName, idSchema]]),\n });\n const projectApiKeysCreateOutputSchema = projectApiKeysReadSchema.omit([\"value\"]).concat(yupObject({\n value: yupString().defined(),\n }));\n\n return {\n crud: projectApiKeysCrud,\n createInputSchema: projectApiKeysCreateInputSchema,\n createOutputSchema: projectApiKeysCreateOutputSchema,\n };\n}\n\n\nexport const {\n crud: userApiKeysCrud,\n createInputSchema: userApiKeysCreateInputSchema,\n createOutputSchema: userApiKeysCreateOutputSchema,\n} = createApiKeyCrud(\"user\", \"user_id\", userIdOrMeSchema.defined());\nexport type UserApiKeysCrud = CrudTypeOf<typeof userApiKeysCrud>;\n\nexport const {\n crud: teamApiKeysCrud,\n createInputSchema: teamApiKeysCreateInputSchema,\n createOutputSchema: teamApiKeysCreateOutputSchema,\n} = createApiKeyCrud(\"team\", \"team_id\", yupString().defined());\nexport type TeamApiKeysCrud = CrudTypeOf<typeof teamApiKeysCrud>;\n"],"mappings":";;;;AAKA,SAAS,iBAAiG,MAAS,aAA0B,UAAoB;CAC/J,MAAM,2BAA2B,UAAU;EACzC,IAAI,UAAU,CAAC,CAAC,QAAQ;EACxB,aAAa,UAAU,CAAC,CAAC,QAAQ;EACjC,mBAAmB,UAAU,CAAC,CAAC,SAAS;EACxC,4BAA4B,UAAU,CAAC,CAAC,SAAS;EACjD,mBAAmB,UAAU,CAAC,CAAC,QAAQ;EACvC,WAAW,WAAW,CAAC,CAAC,QAAQ;EAChC,OAAO,UAAU,EACf,WAAW,UAAU,CAAC,CAAC,QAAQ,EACjC,CAAC,CAAC,CAAC,QAAQ;EACX,MAAM,UAAU,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ;EACxC,GAAG,iBAAiB,CAAC,CAAC,aAAa,QAAQ,CAAC,CAAC;CAC/C,CAAC;CA6DD,OAAO;EACL,MAvDyB,WAAW;GACpC,kBAAkB;GAClB,oBAPiC,UAAU;IAC3C,aAAa,UAAU,CAAC,CAAC,SAAS;IAClC,SAAS,WAAW,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;GAC/C,CAAC,CAAC,CAAC,QAI4C;GAC7C,MAAM;IACJ,cAAc;KACZ,aAAa,gBAAgB,KAAK;KAClC,aAAa,UAAU,KAAK;KAC5B,MAAM,CAAC,UAAU;KACjB,SAAS,UAAU,KAAK;IAC1B;IACA,YAAY;KACV,aAAa,YAAY,KAAK;KAC9B,aAAa,QAAQ,KAAK;KAC1B,SAAS,QAAQ,KAAK;KACtB,MAAM,CAAC,UAAU;IACnB;IACA,YAAY;KACV,aAAa,6BAA6B,KAAK;KAC/C,aAAa,OAAO,KAAK;KACzB,SAAS,OAAO,KAAK;KACrB,MAAM,CAAC,UAAU;IACnB;IACA,cAAc;KACZ,aAAa,aAAa,KAAK;KAC/B,aAAa,UAAU,KAAK;KAC5B,SAAS,UAAU,KAAK;KACxB,MAAM,CAAC,UAAU;IACnB;IACA,cAAc;KACZ,aAAa,aAAa,KAAK;KAC/B,aAAa,UAAU,KAAK;KAC5B,SAAS,UAAU,KAAK;KACxB,MAAM,CAAC,UAAU;IACnB;GACF;EACF,CAoByB;EACvB,mBAlBsC,UAAU;GAChD,aAAa,UAAU,CAAC,CAAC,QAAQ;GACjC,mBAAmB,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ;GAClD,WAAW,WAAW,CAAC,CAAC,SAAS;GAOjC,GAAG,iBAAiB,CAAC,CAAC,aAAa,QAAQ,CAAC,CAAC;EAC/C,CAOmD;EACjD,oBAPuC,yBAAyB,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,UAAU,EACjG,OAAO,UAAU,CAAC,CAAC,QAAQ,EAC7B,CAAC,CAKoD;CACrD;AACF;AAGA,MAAa,EACX,MAAM,iBACN,mBAAmB,8BACnB,oBAAoB,kCAClB,iBAAiB,QAAQ,WAAW,iBAAiB,QAAQ,CAAC;AAGlE,MAAa,EACX,MAAM,iBACN,mBAAmB,8BACnB,oBAAoB,kCAClB,iBAAiB,QAAQ,WAAW,UAAU,CAAC,CAAC,QAAQ,CAAC"}
@@ -1,27 +1,25 @@
1
- import * as yup$1 from "yup";
2
- import * as ______crud0 from "../../crud";
3
- import { CrudTypeOf } from "../../crud";
1
+ import { CrudTypeOf } from "../../crud.js";
4
2
 
5
3
  //#region src/interface/crud/project-permissions.d.ts
6
- declare const projectPermissionsCrudClientReadSchema: yup$1.ObjectSchema<{
4
+ declare const projectPermissionsCrudClientReadSchema: import("yup").ObjectSchema<{
7
5
  id: string;
8
6
  user_id: string;
9
- }, yup$1.AnyObject, {
7
+ }, import("yup").AnyObject, {
10
8
  id: undefined;
11
9
  user_id: undefined;
12
10
  }, "">;
13
- declare const projectPermissionsCrudServerCreateSchema: yup$1.ObjectSchema<{}, yup$1.AnyObject, {}, "">;
14
- declare const projectPermissionsCrudServerDeleteSchema: yup$1.MixedSchema<{} | undefined, yup$1.AnyObject, undefined, "">;
15
- declare const projectPermissionsCrud: ______crud0.CrudSchemaFromOptions<{
16
- clientReadSchema: yup$1.ObjectSchema<{
11
+ declare const projectPermissionsCrudServerCreateSchema: import("yup").ObjectSchema<{}, import("yup").AnyObject, {}, "">;
12
+ declare const projectPermissionsCrudServerDeleteSchema: import("yup").MixedSchema<{} | undefined, import("yup").AnyObject, undefined, "">;
13
+ declare const projectPermissionsCrud: import("../../crud").CrudSchemaFromOptions<{
14
+ clientReadSchema: import("yup").ObjectSchema<{
17
15
  id: string;
18
16
  user_id: string;
19
- }, yup$1.AnyObject, {
17
+ }, import("yup").AnyObject, {
20
18
  id: undefined;
21
19
  user_id: undefined;
22
20
  }, "">;
23
- serverCreateSchema: yup$1.ObjectSchema<{}, yup$1.AnyObject, {}, "">;
24
- serverDeleteSchema: yup$1.MixedSchema<{} | undefined, yup$1.AnyObject, undefined, "">;
21
+ serverCreateSchema: import("yup").ObjectSchema<{}, import("yup").AnyObject, {}, "">;
22
+ serverDeleteSchema: import("yup").MixedSchema<{} | undefined, import("yup").AnyObject, undefined, "">;
25
23
  docs: {
26
24
  clientList: {
27
25
  summary: string;
@@ -48,10 +46,10 @@ declare const projectPermissionsCrud: ______crud0.CrudSchemaFromOptions<{
48
46
  type ProjectPermissionsCrud = CrudTypeOf<typeof projectPermissionsCrud>;
49
47
  declare const projectPermissionCreatedWebhookEvent: {
50
48
  type: string;
51
- schema: yup$1.ObjectSchema<{
49
+ schema: import("yup").ObjectSchema<{
52
50
  id: string;
53
51
  user_id: string;
54
- }, yup$1.AnyObject, {
52
+ }, import("yup").AnyObject, {
55
53
  id: undefined;
56
54
  user_id: undefined;
57
55
  }, "">;
@@ -63,10 +61,10 @@ declare const projectPermissionCreatedWebhookEvent: {
63
61
  };
64
62
  declare const projectPermissionDeletedWebhookEvent: {
65
63
  type: string;
66
- schema: yup$1.ObjectSchema<{
64
+ schema: import("yup").ObjectSchema<{
67
65
  id: string;
68
66
  user_id: string;
69
- }, yup$1.AnyObject, {
67
+ }, import("yup").AnyObject, {
70
68
  id: undefined;
71
69
  user_id: undefined;
72
70
  }, "">;
@@ -76,63 +74,63 @@ declare const projectPermissionDeletedWebhookEvent: {
76
74
  tags: string[];
77
75
  };
78
76
  };
79
- declare const projectPermissionDefinitionsCrudAdminReadSchema: yup$1.ObjectSchema<{
77
+ declare const projectPermissionDefinitionsCrudAdminReadSchema: import("yup").ObjectSchema<{
80
78
  id: string;
81
79
  description: string | undefined;
82
80
  contained_permission_ids: string[];
83
- }, yup$1.AnyObject, {
81
+ }, import("yup").AnyObject, {
84
82
  id: undefined;
85
83
  description: undefined;
86
84
  contained_permission_ids: undefined;
87
85
  }, "">;
88
- declare const projectPermissionDefinitionsCrudAdminCreateSchema: yup$1.ObjectSchema<{
86
+ declare const projectPermissionDefinitionsCrudAdminCreateSchema: import("yup").ObjectSchema<{
89
87
  id: string;
90
88
  description: string | undefined;
91
89
  contained_permission_ids: string[] | undefined;
92
- }, yup$1.AnyObject, {
90
+ }, import("yup").AnyObject, {
93
91
  id: undefined;
94
92
  description: undefined;
95
93
  contained_permission_ids: undefined;
96
94
  }, "">;
97
- declare const projectPermissionDefinitionsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
95
+ declare const projectPermissionDefinitionsCrudAdminUpdateSchema: import("yup").ObjectSchema<{
98
96
  id: string | undefined;
99
97
  description: string | undefined;
100
98
  contained_permission_ids: string[] | undefined;
101
- }, yup$1.AnyObject, {
99
+ }, import("yup").AnyObject, {
102
100
  id: undefined;
103
101
  description: undefined;
104
102
  contained_permission_ids: undefined;
105
103
  }, "">;
106
- declare const projectPermissionDefinitionsCrudAdminDeleteSchema: yup$1.MixedSchema<{} | undefined, yup$1.AnyObject, undefined, "">;
107
- declare const projectPermissionDefinitionsCrud: ______crud0.CrudSchemaFromOptions<{
108
- adminReadSchema: yup$1.ObjectSchema<{
104
+ declare const projectPermissionDefinitionsCrudAdminDeleteSchema: import("yup").MixedSchema<{} | undefined, import("yup").AnyObject, undefined, "">;
105
+ declare const projectPermissionDefinitionsCrud: import("../../crud").CrudSchemaFromOptions<{
106
+ adminReadSchema: import("yup").ObjectSchema<{
109
107
  id: string;
110
108
  description: string | undefined;
111
109
  contained_permission_ids: string[];
112
- }, yup$1.AnyObject, {
110
+ }, import("yup").AnyObject, {
113
111
  id: undefined;
114
112
  description: undefined;
115
113
  contained_permission_ids: undefined;
116
114
  }, "">;
117
- adminCreateSchema: yup$1.ObjectSchema<{
115
+ adminCreateSchema: import("yup").ObjectSchema<{
118
116
  id: string;
119
117
  description: string | undefined;
120
118
  contained_permission_ids: string[] | undefined;
121
- }, yup$1.AnyObject, {
119
+ }, import("yup").AnyObject, {
122
120
  id: undefined;
123
121
  description: undefined;
124
122
  contained_permission_ids: undefined;
125
123
  }, "">;
126
- adminUpdateSchema: yup$1.ObjectSchema<{
124
+ adminUpdateSchema: import("yup").ObjectSchema<{
127
125
  id: string | undefined;
128
126
  description: string | undefined;
129
127
  contained_permission_ids: string[] | undefined;
130
- }, yup$1.AnyObject, {
128
+ }, import("yup").AnyObject, {
131
129
  id: undefined;
132
130
  description: undefined;
133
131
  contained_permission_ids: undefined;
134
132
  }, "">;
135
- adminDeleteSchema: yup$1.MixedSchema<{} | undefined, yup$1.AnyObject, undefined, "">;
133
+ adminDeleteSchema: import("yup").MixedSchema<{} | undefined, import("yup").AnyObject, undefined, "">;
136
134
  docs: {
137
135
  adminList: {
138
136
  summary: string;
@@ -1 +1 @@
1
- {"version":3,"file":"project-permissions.d.ts","names":[],"sources":["../../../../src/interface/crud/project-permissions.ts"],"mappings":";;;;;cAOa,sCAAA,EAGD,KAAA,CAHuC,YAAA;;;GAGvC,KAAA,CAAA,SAAA;;;;cAEC,wCAAA,EAAwC,KAAA,CAAA,YAAA,KACzC,KAAA,CADyC,SAAA;AAAA,cAGxC,wCAAA,EAAwC,KAAA,CAAA,WAAA,iBAAa,KAAA,CAAb,SAAA;AAAA,cAExC,sBAAA,cAAsB,qBAAA;;;;KA0BjC,KAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KACU,sBAAA,GAAyB,UAAA,QAAkB,sBAAA;AAAA,cAE1C,oCAAA;;UAQ4D,KAAA,CAAA,YAAA;;;KAAA,KAAA,CAAA,SAAA;;;;;;;;;;cAE5D,oCAAA;;UAQ4D,KAAA,CAAA,YAAA;;;KAAA,KAAA,CAAA,SAAA;;;;;;;;;;cAI5D,+CAAA,EAID,KAAA,CAJgD,YAAA;;;;GAIhD,KAAA,CAAA,SAAA;;;;;cAEC,iDAAA,EAID,KAAA,CAJkD,YAAA;;;;GAIlD,KAAA,CAAA,SAAA;;;;;cAEC,iDAAA,EAID,KAAA,CAJkD,YAAA;;;;GAIlD,KAAA,CAAA,SAAA;;;;;cAEC,iDAAA,EAAiD,KAAA,CAAA,WAAA,iBAAa,KAAA,CAAb,SAAA;AAAA,cAEjD,gCAAA,cAAgC,qBAAA;;;;;KA2B3C,KAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEU,gCAAA,GAAmC,UAAA,QAAkB,gCAAA"}
1
+ {"version":3,"file":"project-permissions.d.ts","names":[],"sources":["../../../../src/interface/crud/project-permissions.ts"],"mappings":";;;cAOa,sCAAA,gBAAsC,YAAA;;;;;;;cAKtC,wCAAA,gBAAwC,YAAA,mBAAA,SAAA;AAAA,cAGxC,wCAAA,gBAAwC,WAAA,+BAAA,SAAA;AAAA,cAExC,sBAAA,uBAAsB,qBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2BvB,sBAAA,GAAyB,UAAU,QAAQ,sBAAA;AAAA,cAE1C,oCAAA;;;;;;;;;;;;;;;cAUA,oCAAA;;;;;;;;;;;;;;;cAYA,+CAAA,gBAA+C,YAAA;;;;;;;;;cAM/C,iDAAA,gBAAiD,YAAA;;;;;;;;;cAMjD,iDAAA,gBAAiD,YAAA;;;;;;;;;cAMjD,iDAAA,gBAAiD,WAAA,+BAAA,SAAA;AAAA,cAEjD,gCAAA,uBAAgC,qBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA6BjC,gCAAA,GAAmC,UAAU,QAAQ,gCAAA"}
@@ -1,7 +1,6 @@
1
1
  import { createCrud } from "../../crud.js";
2
2
  import * as schemaFields from "../../schema-fields.js";
3
3
  import { yupMixed, yupObject } from "../../schema-fields.js";
4
-
5
4
  //#region src/interface/crud/project-permissions.ts
6
5
  const projectPermissionsCrudClientReadSchema = yupObject({
7
6
  id: schemaFields.permissionDefinitionIdSchema.defined(),
@@ -98,7 +97,7 @@ const projectPermissionDefinitionsCrud = createCrud({
98
97
  }
99
98
  }
100
99
  });
101
-
102
100
  //#endregion
103
101
  export { projectPermissionCreatedWebhookEvent, projectPermissionDefinitionsCrud, projectPermissionDefinitionsCrudAdminCreateSchema, projectPermissionDefinitionsCrudAdminDeleteSchema, projectPermissionDefinitionsCrudAdminReadSchema, projectPermissionDefinitionsCrudAdminUpdateSchema, projectPermissionDeletedWebhookEvent, projectPermissionsCrud, projectPermissionsCrudClientReadSchema, projectPermissionsCrudServerCreateSchema, projectPermissionsCrudServerDeleteSchema };
102
+
104
103
  //# sourceMappingURL=project-permissions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"project-permissions.js","names":[],"sources":["../../../../src/interface/crud/project-permissions.ts"],"sourcesContent":["import { CrudTypeOf, createCrud } from \"../../crud\";\nimport * as schemaFields from \"../../schema-fields\";\nimport { yupMixed, yupObject } from \"../../schema-fields\";\nimport { WebhookEvent } from \"../webhooks\";\n\n// =============== Project permissions =================\n\nexport const projectPermissionsCrudClientReadSchema = yupObject({\n id: schemaFields.permissionDefinitionIdSchema.defined(),\n user_id: schemaFields.userIdSchema.defined(),\n}).defined();\n\nexport const projectPermissionsCrudServerCreateSchema = yupObject({\n}).defined();\n\nexport const projectPermissionsCrudServerDeleteSchema = yupMixed();\n\nexport const projectPermissionsCrud = createCrud({\n clientReadSchema: projectPermissionsCrudClientReadSchema,\n serverCreateSchema: projectPermissionsCrudServerCreateSchema,\n serverDeleteSchema: projectPermissionsCrudServerDeleteSchema,\n docs: {\n clientList: {\n summary: \"List project permissions\",\n description: \"List global permissions of the current user. `user_id=me` must be set for client requests. `(user_id, permission_id)` together uniquely identify a permission.\",\n tags: [\"Permissions\"],\n },\n serverList: {\n summary: \"List project permissions\",\n description: \"Query and filter the permission with `user_id` and `permission_id`. `(user_id, permission_id)` together uniquely identify a permission.\",\n tags: [\"Permissions\"],\n },\n serverCreate: {\n summary: \"Grant a global permission to a user\",\n description: \"Grant a global permission to a user (the permission must be created first on the Hexclave dashboard)\",\n tags: [\"Permissions\"],\n },\n serverDelete: {\n summary: \"Revoke a global permission from a user\",\n description: \"Revoke a global permission from a user\",\n tags: [\"Permissions\"],\n },\n },\n});\nexport type ProjectPermissionsCrud = CrudTypeOf<typeof projectPermissionsCrud>;\n\nexport const projectPermissionCreatedWebhookEvent = {\n type: \"project_permission.created\",\n schema: projectPermissionsCrud.server.readSchema,\n metadata: {\n summary: \"Project Permission Created\",\n description: \"This event is triggered when a project permission is created.\",\n tags: [\"Users\"],\n },\n} satisfies WebhookEvent<typeof projectPermissionsCrud.server.readSchema>;\n\nexport const projectPermissionDeletedWebhookEvent = {\n type: \"project_permission.deleted\",\n schema: projectPermissionsCrud.server.readSchema,\n metadata: {\n summary: \"Project Permission Deleted\",\n description: \"This event is triggered when a project permission is deleted.\",\n tags: [\"Users\"],\n },\n} satisfies WebhookEvent<typeof projectPermissionsCrud.server.readSchema>;\n\n// =============== Project permission definitions =================\n\nexport const projectPermissionDefinitionsCrudAdminReadSchema = yupObject({\n id: schemaFields.permissionDefinitionIdSchema.defined(),\n description: schemaFields.teamPermissionDescriptionSchema.optional(),\n contained_permission_ids: schemaFields.containedPermissionIdsSchema.defined(),\n}).defined();\n\nexport const projectPermissionDefinitionsCrudAdminCreateSchema = yupObject({\n id: schemaFields.customPermissionDefinitionIdSchema.defined(),\n description: schemaFields.teamPermissionDescriptionSchema.optional(),\n contained_permission_ids: schemaFields.containedPermissionIdsSchema.optional(),\n}).defined();\n\nexport const projectPermissionDefinitionsCrudAdminUpdateSchema = yupObject({\n id: schemaFields.customPermissionDefinitionIdSchema.optional(),\n description: schemaFields.teamPermissionDescriptionSchema.optional(),\n contained_permission_ids: schemaFields.containedPermissionIdsSchema.optional(),\n}).defined();\n\nexport const projectPermissionDefinitionsCrudAdminDeleteSchema = yupMixed();\n\nexport const projectPermissionDefinitionsCrud = createCrud({\n adminReadSchema: projectPermissionDefinitionsCrudAdminReadSchema,\n adminCreateSchema: projectPermissionDefinitionsCrudAdminCreateSchema,\n adminUpdateSchema: projectPermissionDefinitionsCrudAdminUpdateSchema,\n adminDeleteSchema: projectPermissionDefinitionsCrudAdminDeleteSchema,\n docs: {\n adminList: {\n summary: \"List project permission definitions\",\n description: \"Query and filter project permission definitions (the equivalent of listing permissions on the Hexclave dashboard)\",\n tags: [\"Permissions\"],\n },\n adminCreate: {\n summary: \"Create a new project permission definition\",\n description: \"Create a new project permission definition (the equivalent of creating a new permission on the Hexclave dashboard)\",\n tags: [\"Permissions\"],\n },\n adminUpdate: {\n summary: \"Update a project permission definition\",\n description: \"Update a project permission definition (the equivalent of updating a permission on the Hexclave dashboard)\",\n tags: [\"Permissions\"],\n },\n adminDelete: {\n summary: \"Delete a project permission definition\",\n description: \"Delete a project permission definition (the equivalent of deleting a permission on the Hexclave dashboard)\",\n tags: [\"Permissions\"],\n },\n },\n});\n\nexport type ProjectPermissionDefinitionsCrud = CrudTypeOf<typeof projectPermissionDefinitionsCrud>;\n"],"mappings":";;;;;AAOA,MAAa,yCAAyC,UAAU;CAC9D,IAAI,aAAa,6BAA6B,SAAS;CACvD,SAAS,aAAa,aAAa,SAAS;CAC7C,CAAC,CAAC,SAAS;AAEZ,MAAa,2CAA2C,UAAU,EACjE,CAAC,CAAC,SAAS;AAEZ,MAAa,2CAA2C,UAAU;AAElE,MAAa,yBAAyB,WAAW;CAC/C,kBAAkB;CAClB,oBAAoB;CACpB,oBAAoB;CACpB,MAAM;EACJ,YAAY;GACV,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACD,YAAY;GACV,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACD,cAAc;GACZ,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACD,cAAc;GACZ,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACF;CACF,CAAC;AAGF,MAAa,uCAAuC;CAClD,MAAM;CACN,QAAQ,uBAAuB,OAAO;CACtC,UAAU;EACR,SAAS;EACT,aAAa;EACb,MAAM,CAAC,QAAQ;EAChB;CACF;AAED,MAAa,uCAAuC;CAClD,MAAM;CACN,QAAQ,uBAAuB,OAAO;CACtC,UAAU;EACR,SAAS;EACT,aAAa;EACb,MAAM,CAAC,QAAQ;EAChB;CACF;AAID,MAAa,kDAAkD,UAAU;CACvE,IAAI,aAAa,6BAA6B,SAAS;CACvD,aAAa,aAAa,gCAAgC,UAAU;CACpE,0BAA0B,aAAa,6BAA6B,SAAS;CAC9E,CAAC,CAAC,SAAS;AAEZ,MAAa,oDAAoD,UAAU;CACzE,IAAI,aAAa,mCAAmC,SAAS;CAC7D,aAAa,aAAa,gCAAgC,UAAU;CACpE,0BAA0B,aAAa,6BAA6B,UAAU;CAC/E,CAAC,CAAC,SAAS;AAEZ,MAAa,oDAAoD,UAAU;CACzE,IAAI,aAAa,mCAAmC,UAAU;CAC9D,aAAa,aAAa,gCAAgC,UAAU;CACpE,0BAA0B,aAAa,6BAA6B,UAAU;CAC/E,CAAC,CAAC,SAAS;AAEZ,MAAa,oDAAoD,UAAU;AAE3E,MAAa,mCAAmC,WAAW;CACzD,iBAAiB;CACjB,mBAAmB;CACnB,mBAAmB;CACnB,mBAAmB;CACnB,MAAM;EACJ,WAAW;GACT,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACD,aAAa;GACX,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACD,aAAa;GACX,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACD,aAAa;GACX,SAAS;GACT,aAAa;GACb,MAAM,CAAC,cAAc;GACtB;EACF;CACF,CAAC"}
1
+ {"version":3,"file":"project-permissions.js","names":[],"sources":["../../../../src/interface/crud/project-permissions.ts"],"sourcesContent":["import { CrudTypeOf, createCrud } from \"../../crud\";\nimport * as schemaFields from \"../../schema-fields\";\nimport { yupMixed, yupObject } from \"../../schema-fields\";\nimport { WebhookEvent } from \"../webhooks\";\n\n// =============== Project permissions =================\n\nexport const projectPermissionsCrudClientReadSchema = yupObject({\n id: schemaFields.permissionDefinitionIdSchema.defined(),\n user_id: schemaFields.userIdSchema.defined(),\n}).defined();\n\nexport const projectPermissionsCrudServerCreateSchema = yupObject({\n}).defined();\n\nexport const projectPermissionsCrudServerDeleteSchema = yupMixed();\n\nexport const projectPermissionsCrud = createCrud({\n clientReadSchema: projectPermissionsCrudClientReadSchema,\n serverCreateSchema: projectPermissionsCrudServerCreateSchema,\n serverDeleteSchema: projectPermissionsCrudServerDeleteSchema,\n docs: {\n clientList: {\n summary: \"List project permissions\",\n description: \"List global permissions of the current user. `user_id=me` must be set for client requests. `(user_id, permission_id)` together uniquely identify a permission.\",\n tags: [\"Permissions\"],\n },\n serverList: {\n summary: \"List project permissions\",\n description: \"Query and filter the permission with `user_id` and `permission_id`. `(user_id, permission_id)` together uniquely identify a permission.\",\n tags: [\"Permissions\"],\n },\n serverCreate: {\n summary: \"Grant a global permission to a user\",\n description: \"Grant a global permission to a user (the permission must be created first on the Hexclave dashboard)\",\n tags: [\"Permissions\"],\n },\n serverDelete: {\n summary: \"Revoke a global permission from a user\",\n description: \"Revoke a global permission from a user\",\n tags: [\"Permissions\"],\n },\n },\n});\nexport type ProjectPermissionsCrud = CrudTypeOf<typeof projectPermissionsCrud>;\n\nexport const projectPermissionCreatedWebhookEvent = {\n type: \"project_permission.created\",\n schema: projectPermissionsCrud.server.readSchema,\n metadata: {\n summary: \"Project Permission Created\",\n description: \"This event is triggered when a project permission is created.\",\n tags: [\"Users\"],\n },\n} satisfies WebhookEvent<typeof projectPermissionsCrud.server.readSchema>;\n\nexport const projectPermissionDeletedWebhookEvent = {\n type: \"project_permission.deleted\",\n schema: projectPermissionsCrud.server.readSchema,\n metadata: {\n summary: \"Project Permission Deleted\",\n description: \"This event is triggered when a project permission is deleted.\",\n tags: [\"Users\"],\n },\n} satisfies WebhookEvent<typeof projectPermissionsCrud.server.readSchema>;\n\n// =============== Project permission definitions =================\n\nexport const projectPermissionDefinitionsCrudAdminReadSchema = yupObject({\n id: schemaFields.permissionDefinitionIdSchema.defined(),\n description: schemaFields.teamPermissionDescriptionSchema.optional(),\n contained_permission_ids: schemaFields.containedPermissionIdsSchema.defined(),\n}).defined();\n\nexport const projectPermissionDefinitionsCrudAdminCreateSchema = yupObject({\n id: schemaFields.customPermissionDefinitionIdSchema.defined(),\n description: schemaFields.teamPermissionDescriptionSchema.optional(),\n contained_permission_ids: schemaFields.containedPermissionIdsSchema.optional(),\n}).defined();\n\nexport const projectPermissionDefinitionsCrudAdminUpdateSchema = yupObject({\n id: schemaFields.customPermissionDefinitionIdSchema.optional(),\n description: schemaFields.teamPermissionDescriptionSchema.optional(),\n contained_permission_ids: schemaFields.containedPermissionIdsSchema.optional(),\n}).defined();\n\nexport const projectPermissionDefinitionsCrudAdminDeleteSchema = yupMixed();\n\nexport const projectPermissionDefinitionsCrud = createCrud({\n adminReadSchema: projectPermissionDefinitionsCrudAdminReadSchema,\n adminCreateSchema: projectPermissionDefinitionsCrudAdminCreateSchema,\n adminUpdateSchema: projectPermissionDefinitionsCrudAdminUpdateSchema,\n adminDeleteSchema: projectPermissionDefinitionsCrudAdminDeleteSchema,\n docs: {\n adminList: {\n summary: \"List project permission definitions\",\n description: \"Query and filter project permission definitions (the equivalent of listing permissions on the Hexclave dashboard)\",\n tags: [\"Permissions\"],\n },\n adminCreate: {\n summary: \"Create a new project permission definition\",\n description: \"Create a new project permission definition (the equivalent of creating a new permission on the Hexclave dashboard)\",\n tags: [\"Permissions\"],\n },\n adminUpdate: {\n summary: \"Update a project permission definition\",\n description: \"Update a project permission definition (the equivalent of updating a permission on the Hexclave dashboard)\",\n tags: [\"Permissions\"],\n },\n adminDelete: {\n summary: \"Delete a project permission definition\",\n description: \"Delete a project permission definition (the equivalent of deleting a permission on the Hexclave dashboard)\",\n tags: [\"Permissions\"],\n },\n },\n});\n\nexport type ProjectPermissionDefinitionsCrud = CrudTypeOf<typeof projectPermissionDefinitionsCrud>;\n"],"mappings":";;;;AAOA,MAAa,yCAAyC,UAAU;CAC9D,IAAI,aAAa,6BAA6B,QAAQ;CACtD,SAAS,aAAa,aAAa,QAAQ;AAC7C,CAAC,CAAC,CAAC,QAAQ;AAEX,MAAa,2CAA2C,UAAU,CAClE,CAAC,CAAC,CAAC,QAAQ;AAEX,MAAa,2CAA2C,SAAS;AAEjE,MAAa,yBAAyB,WAAW;CAC/C,kBAAkB;CAClB,oBAAoB;CACpB,oBAAoB;CACpB,MAAM;EACJ,YAAY;GACV,SAAS;GACT,aAAa;GACb,MAAM,CAAC,aAAa;EACtB;EACA,YAAY;GACV,SAAS;GACT,aAAa;GACb,MAAM,CAAC,aAAa;EACtB;EACA,cAAc;GACZ,SAAS;GACT,aAAa;GACb,MAAM,CAAC,aAAa;EACtB;EACA,cAAc;GACZ,SAAS;GACT,aAAa;GACb,MAAM,CAAC,aAAa;EACtB;CACF;AACF,CAAC;AAGD,MAAa,uCAAuC;CAClD,MAAM;CACN,QAAQ,uBAAuB,OAAO;CACtC,UAAU;EACR,SAAS;EACT,aAAa;EACb,MAAM,CAAC,OAAO;CAChB;AACF;AAEA,MAAa,uCAAuC;CAClD,MAAM;CACN,QAAQ,uBAAuB,OAAO;CACtC,UAAU;EACR,SAAS;EACT,aAAa;EACb,MAAM,CAAC,OAAO;CAChB;AACF;AAIA,MAAa,kDAAkD,UAAU;CACvE,IAAI,aAAa,6BAA6B,QAAQ;CACtD,aAAa,aAAa,gCAAgC,SAAS;CACnE,0BAA0B,aAAa,6BAA6B,QAAQ;AAC9E,CAAC,CAAC,CAAC,QAAQ;AAEX,MAAa,oDAAoD,UAAU;CACzE,IAAI,aAAa,mCAAmC,QAAQ;CAC5D,aAAa,aAAa,gCAAgC,SAAS;CACnE,0BAA0B,aAAa,6BAA6B,SAAS;AAC/E,CAAC,CAAC,CAAC,QAAQ;AAEX,MAAa,oDAAoD,UAAU;CACzE,IAAI,aAAa,mCAAmC,SAAS;CAC7D,aAAa,aAAa,gCAAgC,SAAS;CACnE,0BAA0B,aAAa,6BAA6B,SAAS;AAC/E,CAAC,CAAC,CAAC,QAAQ;AAEX,MAAa,oDAAoD,SAAS;AAE1E,MAAa,mCAAmC,WAAW;CACzD,iBAAiB;CACjB,mBAAmB;CACnB,mBAAmB;CACnB,mBAAmB;CACnB,MAAM;EACJ,WAAW;GACT,SAAS;GACT,aAAa;GACb,MAAM,CAAC,aAAa;EACtB;EACA,aAAa;GACX,SAAS;GACT,aAAa;GACb,MAAM,CAAC,aAAa;EACtB;EACA,aAAa;GACX,SAAS;GACT,aAAa;GACb,MAAM,CAAC,aAAa;EACtB;EACA,aAAa;GACX,SAAS;GACT,aAAa;GACb,MAAM,CAAC,aAAa;EACtB;CACF;AACF,CAAC"}