@digimuza/saas-core 0.0.2

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 (474) hide show
  1. package/CLAUDE.md +1165 -0
  2. package/LICENSE +21 -0
  3. package/README.md +234 -0
  4. package/dist/api-keys/index.d.ts +9 -0
  5. package/dist/api-keys/index.d.ts.map +1 -0
  6. package/dist/api-keys/index.js +37 -0
  7. package/dist/api-keys/index.js.map +1 -0
  8. package/dist/api-keys/keys.d.ts +55 -0
  9. package/dist/api-keys/keys.d.ts.map +1 -0
  10. package/dist/api-keys/keys.js +92 -0
  11. package/dist/api-keys/keys.js.map +1 -0
  12. package/dist/api-keys/service.d.ts +111 -0
  13. package/dist/api-keys/service.d.ts.map +1 -0
  14. package/dist/api-keys/service.js +210 -0
  15. package/dist/api-keys/service.js.map +1 -0
  16. package/dist/audit/index.d.ts +5 -0
  17. package/dist/audit/index.d.ts.map +1 -0
  18. package/dist/audit/index.js +44 -0
  19. package/dist/audit/index.js.map +1 -0
  20. package/dist/audit/service.d.ts +88 -0
  21. package/dist/audit/service.d.ts.map +1 -0
  22. package/dist/audit/service.js +128 -0
  23. package/dist/audit/service.js.map +1 -0
  24. package/dist/auth/client.d.ts +5 -0
  25. package/dist/auth/client.d.ts.map +1 -0
  26. package/dist/auth/client.js +26 -0
  27. package/dist/auth/client.js.map +1 -0
  28. package/dist/auth/cookies.d.ts +51 -0
  29. package/dist/auth/cookies.d.ts.map +1 -0
  30. package/dist/auth/cookies.js +58 -0
  31. package/dist/auth/cookies.js.map +1 -0
  32. package/dist/auth/index.d.ts +14 -0
  33. package/dist/auth/index.d.ts.map +1 -0
  34. package/dist/auth/index.js +46 -0
  35. package/dist/auth/index.js.map +1 -0
  36. package/dist/auth/service.d.ts +67 -0
  37. package/dist/auth/service.d.ts.map +1 -0
  38. package/dist/auth/service.js +275 -0
  39. package/dist/auth/service.js.map +1 -0
  40. package/dist/auth/types.d.ts +56 -0
  41. package/dist/auth/types.d.ts.map +1 -0
  42. package/dist/auth/types.js +2 -0
  43. package/dist/auth/types.js.map +1 -0
  44. package/dist/authorization/index.d.ts +4 -0
  45. package/dist/authorization/index.d.ts.map +1 -0
  46. package/dist/authorization/index.js +24 -0
  47. package/dist/authorization/index.js.map +1 -0
  48. package/dist/authorization/service.d.ts +92 -0
  49. package/dist/authorization/service.d.ts.map +1 -0
  50. package/dist/authorization/service.js +254 -0
  51. package/dist/authorization/service.js.map +1 -0
  52. package/dist/billing/index.d.ts +16 -0
  53. package/dist/billing/index.d.ts.map +1 -0
  54. package/dist/billing/index.js +47 -0
  55. package/dist/billing/index.js.map +1 -0
  56. package/dist/billing/provider.d.ts +114 -0
  57. package/dist/billing/provider.d.ts.map +1 -0
  58. package/dist/billing/provider.js +2 -0
  59. package/dist/billing/provider.js.map +1 -0
  60. package/dist/billing/revolut.d.ts +68 -0
  61. package/dist/billing/revolut.d.ts.map +1 -0
  62. package/dist/billing/revolut.js +181 -0
  63. package/dist/billing/revolut.js.map +1 -0
  64. package/dist/billing/service.d.ts +124 -0
  65. package/dist/billing/service.d.ts.map +1 -0
  66. package/dist/billing/service.js +470 -0
  67. package/dist/billing/service.js.map +1 -0
  68. package/dist/cli/commands/dev.d.ts +43 -0
  69. package/dist/cli/commands/dev.d.ts.map +1 -0
  70. package/dist/cli/commands/dev.js +212 -0
  71. package/dist/cli/commands/dev.js.map +1 -0
  72. package/dist/cli/commands/project.d.ts +12 -0
  73. package/dist/cli/commands/project.d.ts.map +1 -0
  74. package/dist/cli/commands/project.js +49 -0
  75. package/dist/cli/commands/project.js.map +1 -0
  76. package/dist/cli/docker.d.ts +50 -0
  77. package/dist/cli/docker.d.ts.map +1 -0
  78. package/dist/cli/docker.js +84 -0
  79. package/dist/cli/docker.js.map +1 -0
  80. package/dist/cli/index.d.ts +6 -0
  81. package/dist/cli/index.d.ts.map +1 -0
  82. package/dist/cli/index.js +198 -0
  83. package/dist/cli/index.js.map +1 -0
  84. package/dist/cli/output.d.ts +30 -0
  85. package/dist/cli/output.d.ts.map +1 -0
  86. package/dist/cli/output.js +66 -0
  87. package/dist/cli/output.js.map +1 -0
  88. package/dist/cli/templates.d.ts +52 -0
  89. package/dist/cli/templates.d.ts.map +1 -0
  90. package/dist/cli/templates.js +225 -0
  91. package/dist/cli/templates.js.map +1 -0
  92. package/dist/config/client.d.ts +60 -0
  93. package/dist/config/client.d.ts.map +1 -0
  94. package/dist/config/client.js +94 -0
  95. package/dist/config/client.js.map +1 -0
  96. package/dist/config/config-loader.d.ts +2 -0
  97. package/dist/config/config-loader.d.ts.map +1 -0
  98. package/dist/config/config-loader.js +2 -0
  99. package/dist/config/config-loader.js.map +1 -0
  100. package/dist/config/env.d.ts +24 -0
  101. package/dist/config/env.d.ts.map +1 -0
  102. package/dist/config/env.js +40 -0
  103. package/dist/config/env.js.map +1 -0
  104. package/dist/config/errors.d.ts +17 -0
  105. package/dist/config/errors.d.ts.map +1 -0
  106. package/dist/config/errors.js +26 -0
  107. package/dist/config/errors.js.map +1 -0
  108. package/dist/config/index.d.ts +72 -0
  109. package/dist/config/index.d.ts.map +1 -0
  110. package/dist/config/index.js +106 -0
  111. package/dist/config/index.js.map +1 -0
  112. package/dist/config/runtime.d.ts +15 -0
  113. package/dist/config/runtime.d.ts.map +1 -0
  114. package/dist/config/runtime.js +22 -0
  115. package/dist/config/runtime.js.map +1 -0
  116. package/dist/config/sections.d.ts +226 -0
  117. package/dist/config/sections.d.ts.map +1 -0
  118. package/dist/config/sections.js +141 -0
  119. package/dist/config/sections.js.map +1 -0
  120. package/dist/db/client.d.ts +43 -0
  121. package/dist/db/client.d.ts.map +1 -0
  122. package/dist/db/client.js +77 -0
  123. package/dist/db/client.js.map +1 -0
  124. package/dist/db/errors.d.ts +39 -0
  125. package/dist/db/errors.d.ts.map +1 -0
  126. package/dist/db/errors.js +67 -0
  127. package/dist/db/errors.js.map +1 -0
  128. package/dist/db/index.d.ts +10 -0
  129. package/dist/db/index.d.ts.map +1 -0
  130. package/dist/db/index.js +10 -0
  131. package/dist/db/index.js.map +1 -0
  132. package/dist/db/migrate.d.ts +21 -0
  133. package/dist/db/migrate.d.ts.map +1 -0
  134. package/dist/db/migrate.js +28 -0
  135. package/dist/db/migrate.js.map +1 -0
  136. package/dist/db/schema/_shared.d.ts +30 -0
  137. package/dist/db/schema/_shared.d.ts.map +1 -0
  138. package/dist/db/schema/_shared.js +36 -0
  139. package/dist/db/schema/_shared.js.map +1 -0
  140. package/dist/db/schema/apikeys.d.ts +263 -0
  141. package/dist/db/schema/apikeys.d.ts.map +1 -0
  142. package/dist/db/schema/apikeys.js +70 -0
  143. package/dist/db/schema/apikeys.js.map +1 -0
  144. package/dist/db/schema/authorization.d.ts +465 -0
  145. package/dist/db/schema/authorization.d.ts.map +1 -0
  146. package/dist/db/schema/authorization.js +134 -0
  147. package/dist/db/schema/authorization.js.map +1 -0
  148. package/dist/db/schema/billing.d.ts +1100 -0
  149. package/dist/db/schema/billing.d.ts.map +1 -0
  150. package/dist/db/schema/billing.js +223 -0
  151. package/dist/db/schema/billing.js.map +1 -0
  152. package/dist/db/schema/events.d.ts +161 -0
  153. package/dist/db/schema/events.d.ts.map +1 -0
  154. package/dist/db/schema/events.js +66 -0
  155. package/dist/db/schema/events.js.map +1 -0
  156. package/dist/db/schema/features.d.ts +243 -0
  157. package/dist/db/schema/features.d.ts.map +1 -0
  158. package/dist/db/schema/features.js +87 -0
  159. package/dist/db/schema/features.js.map +1 -0
  160. package/dist/db/schema/files.d.ts +253 -0
  161. package/dist/db/schema/files.d.ts.map +1 -0
  162. package/dist/db/schema/files.js +74 -0
  163. package/dist/db/schema/files.js.map +1 -0
  164. package/dist/db/schema/index.d.ts +38 -0
  165. package/dist/db/schema/index.d.ts.map +1 -0
  166. package/dist/db/schema/index.js +38 -0
  167. package/dist/db/schema/index.js.map +1 -0
  168. package/dist/db/schema/invitations.d.ts +214 -0
  169. package/dist/db/schema/invitations.d.ts.map +1 -0
  170. package/dist/db/schema/invitations.js +80 -0
  171. package/dist/db/schema/invitations.js.map +1 -0
  172. package/dist/db/schema/messaging.d.ts +442 -0
  173. package/dist/db/schema/messaging.d.ts.map +1 -0
  174. package/dist/db/schema/messaging.js +120 -0
  175. package/dist/db/schema/messaging.js.map +1 -0
  176. package/dist/db/schema/users.d.ts +246 -0
  177. package/dist/db/schema/users.d.ts.map +1 -0
  178. package/dist/db/schema/users.js +60 -0
  179. package/dist/db/schema/users.js.map +1 -0
  180. package/dist/db/schema/webhooks.d.ts +693 -0
  181. package/dist/db/schema/webhooks.d.ts.map +1 -0
  182. package/dist/db/schema/webhooks.js +147 -0
  183. package/dist/db/schema/webhooks.js.map +1 -0
  184. package/dist/db/schema/workspaces.d.ts +196 -0
  185. package/dist/db/schema/workspaces.d.ts.map +1 -0
  186. package/dist/db/schema/workspaces.js +57 -0
  187. package/dist/db/schema/workspaces.js.map +1 -0
  188. package/dist/db/types.d.ts +18 -0
  189. package/dist/db/types.d.ts.map +1 -0
  190. package/dist/db/types.js +2 -0
  191. package/dist/db/types.js.map +1 -0
  192. package/dist/email/adapters.d.ts +29 -0
  193. package/dist/email/adapters.d.ts.map +1 -0
  194. package/dist/email/adapters.js +60 -0
  195. package/dist/email/adapters.js.map +1 -0
  196. package/dist/email/index.d.ts +20 -0
  197. package/dist/email/index.d.ts.map +1 -0
  198. package/dist/email/index.js +79 -0
  199. package/dist/email/index.js.map +1 -0
  200. package/dist/email/provider.d.ts +47 -0
  201. package/dist/email/provider.d.ts.map +1 -0
  202. package/dist/email/provider.js +7 -0
  203. package/dist/email/provider.js.map +1 -0
  204. package/dist/email/resend.d.ts +22 -0
  205. package/dist/email/resend.d.ts.map +1 -0
  206. package/dist/email/resend.js +51 -0
  207. package/dist/email/resend.js.map +1 -0
  208. package/dist/email/service.d.ts +55 -0
  209. package/dist/email/service.d.ts.map +1 -0
  210. package/dist/email/service.js +87 -0
  211. package/dist/email/service.js.map +1 -0
  212. package/dist/email/templates.d.ts +81 -0
  213. package/dist/email/templates.d.ts.map +1 -0
  214. package/dist/email/templates.js +84 -0
  215. package/dist/email/templates.js.map +1 -0
  216. package/dist/entitlements/index.d.ts +10 -0
  217. package/dist/entitlements/index.d.ts.map +1 -0
  218. package/dist/entitlements/index.js +28 -0
  219. package/dist/entitlements/index.js.map +1 -0
  220. package/dist/entitlements/service.d.ts +83 -0
  221. package/dist/entitlements/service.d.ts.map +1 -0
  222. package/dist/entitlements/service.js +158 -0
  223. package/dist/entitlements/service.js.map +1 -0
  224. package/dist/errors.d.ts +85 -0
  225. package/dist/errors.d.ts.map +1 -0
  226. package/dist/errors.js +95 -0
  227. package/dist/errors.js.map +1 -0
  228. package/dist/events/core-events.d.ts +120 -0
  229. package/dist/events/core-events.d.ts.map +1 -0
  230. package/dist/events/core-events.js +109 -0
  231. package/dist/events/core-events.js.map +1 -0
  232. package/dist/events/index.d.ts +15 -0
  233. package/dist/events/index.d.ts.map +1 -0
  234. package/dist/events/index.js +58 -0
  235. package/dist/events/index.js.map +1 -0
  236. package/dist/events/publisher.d.ts +46 -0
  237. package/dist/events/publisher.d.ts.map +1 -0
  238. package/dist/events/publisher.js +54 -0
  239. package/dist/events/publisher.js.map +1 -0
  240. package/dist/events/registry.d.ts +87 -0
  241. package/dist/events/registry.d.ts.map +1 -0
  242. package/dist/events/registry.js +34 -0
  243. package/dist/events/registry.js.map +1 -0
  244. package/dist/events/service.d.ts +78 -0
  245. package/dist/events/service.d.ts.map +1 -0
  246. package/dist/events/service.js +182 -0
  247. package/dist/events/service.js.map +1 -0
  248. package/dist/features/bucket.d.ts +22 -0
  249. package/dist/features/bucket.d.ts.map +1 -0
  250. package/dist/features/bucket.js +42 -0
  251. package/dist/features/bucket.js.map +1 -0
  252. package/dist/features/index.d.ts +15 -0
  253. package/dist/features/index.d.ts.map +1 -0
  254. package/dist/features/index.js +78 -0
  255. package/dist/features/index.js.map +1 -0
  256. package/dist/features/registry.d.ts +51 -0
  257. package/dist/features/registry.d.ts.map +1 -0
  258. package/dist/features/registry.js +52 -0
  259. package/dist/features/registry.js.map +1 -0
  260. package/dist/features/service.d.ts +78 -0
  261. package/dist/features/service.d.ts.map +1 -0
  262. package/dist/features/service.js +207 -0
  263. package/dist/features/service.js.map +1 -0
  264. package/dist/files/index.d.ts +6 -0
  265. package/dist/files/index.d.ts.map +1 -0
  266. package/dist/files/index.js +64 -0
  267. package/dist/files/index.js.map +1 -0
  268. package/dist/files/service.d.ts +92 -0
  269. package/dist/files/service.d.ts.map +1 -0
  270. package/dist/files/service.js +303 -0
  271. package/dist/files/service.js.map +1 -0
  272. package/dist/index.d.ts +33 -0
  273. package/dist/index.d.ts.map +1 -0
  274. package/dist/index.js +33 -0
  275. package/dist/index.js.map +1 -0
  276. package/dist/jobs/backend.d.ts +23 -0
  277. package/dist/jobs/backend.d.ts.map +1 -0
  278. package/dist/jobs/backend.js +23 -0
  279. package/dist/jobs/backend.js.map +1 -0
  280. package/dist/jobs/index.d.ts +29 -0
  281. package/dist/jobs/index.d.ts.map +1 -0
  282. package/dist/jobs/index.js +114 -0
  283. package/dist/jobs/index.js.map +1 -0
  284. package/dist/jobs/service.d.ts +67 -0
  285. package/dist/jobs/service.d.ts.map +1 -0
  286. package/dist/jobs/service.js +139 -0
  287. package/dist/jobs/service.js.map +1 -0
  288. package/dist/jobs/types.d.ts +78 -0
  289. package/dist/jobs/types.d.ts.map +1 -0
  290. package/dist/jobs/types.js +4 -0
  291. package/dist/jobs/types.js.map +1 -0
  292. package/dist/logger/default.d.ts +7 -0
  293. package/dist/logger/default.d.ts.map +1 -0
  294. package/dist/logger/default.js +28 -0
  295. package/dist/logger/default.js.map +1 -0
  296. package/dist/logger/index.d.ts +24 -0
  297. package/dist/logger/index.d.ts.map +1 -0
  298. package/dist/logger/index.js +90 -0
  299. package/dist/logger/index.js.map +1 -0
  300. package/dist/logger/redact.d.ts +40 -0
  301. package/dist/logger/redact.d.ts.map +1 -0
  302. package/dist/logger/redact.js +178 -0
  303. package/dist/logger/redact.js.map +1 -0
  304. package/dist/logger/service.d.ts +14 -0
  305. package/dist/logger/service.d.ts.map +1 -0
  306. package/dist/logger/service.js +56 -0
  307. package/dist/logger/service.js.map +1 -0
  308. package/dist/logger/sinks.d.ts +37 -0
  309. package/dist/logger/sinks.d.ts.map +1 -0
  310. package/dist/logger/sinks.js +135 -0
  311. package/dist/logger/sinks.js.map +1 -0
  312. package/dist/logger/types.d.ts +47 -0
  313. package/dist/logger/types.d.ts.map +1 -0
  314. package/dist/logger/types.js +8 -0
  315. package/dist/logger/types.js.map +1 -0
  316. package/dist/notifications/index.d.ts +8 -0
  317. package/dist/notifications/index.d.ts.map +1 -0
  318. package/dist/notifications/index.js +72 -0
  319. package/dist/notifications/index.js.map +1 -0
  320. package/dist/notifications/service.d.ts +79 -0
  321. package/dist/notifications/service.d.ts.map +1 -0
  322. package/dist/notifications/service.js +164 -0
  323. package/dist/notifications/service.js.map +1 -0
  324. package/dist/realtime/channels.d.ts +37 -0
  325. package/dist/realtime/channels.d.ts.map +1 -0
  326. package/dist/realtime/channels.js +58 -0
  327. package/dist/realtime/channels.js.map +1 -0
  328. package/dist/realtime/index.d.ts +19 -0
  329. package/dist/realtime/index.d.ts.map +1 -0
  330. package/dist/realtime/index.js +118 -0
  331. package/dist/realtime/index.js.map +1 -0
  332. package/dist/realtime/postgres.d.ts +48 -0
  333. package/dist/realtime/postgres.d.ts.map +1 -0
  334. package/dist/realtime/postgres.js +151 -0
  335. package/dist/realtime/postgres.js.map +1 -0
  336. package/dist/realtime/service.d.ts +75 -0
  337. package/dist/realtime/service.d.ts.map +1 -0
  338. package/dist/realtime/service.js +103 -0
  339. package/dist/realtime/service.js.map +1 -0
  340. package/dist/realtime/sse.d.ts +55 -0
  341. package/dist/realtime/sse.d.ts.map +1 -0
  342. package/dist/realtime/sse.js +123 -0
  343. package/dist/realtime/sse.js.map +1 -0
  344. package/dist/realtime/transport.d.ts +52 -0
  345. package/dist/realtime/transport.d.ts.map +1 -0
  346. package/dist/realtime/transport.js +2 -0
  347. package/dist/realtime/transport.js.map +1 -0
  348. package/dist/storage/index.d.ts +18 -0
  349. package/dist/storage/index.d.ts.map +1 -0
  350. package/dist/storage/index.js +89 -0
  351. package/dist/storage/index.js.map +1 -0
  352. package/dist/storage/keys.d.ts +50 -0
  353. package/dist/storage/keys.d.ts.map +1 -0
  354. package/dist/storage/keys.js +120 -0
  355. package/dist/storage/keys.js.map +1 -0
  356. package/dist/storage/memory.d.ts +32 -0
  357. package/dist/storage/memory.d.ts.map +1 -0
  358. package/dist/storage/memory.js +84 -0
  359. package/dist/storage/memory.js.map +1 -0
  360. package/dist/storage/provider.d.ts +93 -0
  361. package/dist/storage/provider.d.ts.map +1 -0
  362. package/dist/storage/provider.js +2 -0
  363. package/dist/storage/provider.js.map +1 -0
  364. package/dist/storage/s3.d.ts +34 -0
  365. package/dist/storage/s3.d.ts.map +1 -0
  366. package/dist/storage/s3.js +175 -0
  367. package/dist/storage/s3.js.map +1 -0
  368. package/dist/storage/service.d.ts +86 -0
  369. package/dist/storage/service.d.ts.map +1 -0
  370. package/dist/storage/service.js +107 -0
  371. package/dist/storage/service.js.map +1 -0
  372. package/dist/storage/sigv4.d.ts +58 -0
  373. package/dist/storage/sigv4.d.ts.map +1 -0
  374. package/dist/storage/sigv4.js +114 -0
  375. package/dist/storage/sigv4.js.map +1 -0
  376. package/dist/streams/client.d.ts +91 -0
  377. package/dist/streams/client.d.ts.map +1 -0
  378. package/dist/streams/client.js +128 -0
  379. package/dist/streams/client.js.map +1 -0
  380. package/dist/streams/events.d.ts +68 -0
  381. package/dist/streams/events.d.ts.map +1 -0
  382. package/dist/streams/events.js +81 -0
  383. package/dist/streams/events.js.map +1 -0
  384. package/dist/streams/index.d.ts +47 -0
  385. package/dist/streams/index.d.ts.map +1 -0
  386. package/dist/streams/index.js +47 -0
  387. package/dist/streams/index.js.map +1 -0
  388. package/dist/streams/realtime.d.ts +27 -0
  389. package/dist/streams/realtime.d.ts.map +1 -0
  390. package/dist/streams/realtime.js +50 -0
  391. package/dist/streams/realtime.js.map +1 -0
  392. package/dist/streams/state.d.ts +26 -0
  393. package/dist/streams/state.d.ts.map +1 -0
  394. package/dist/streams/state.js +34 -0
  395. package/dist/streams/state.js.map +1 -0
  396. package/dist/users/index.d.ts +9 -0
  397. package/dist/users/index.d.ts.map +1 -0
  398. package/dist/users/index.js +23 -0
  399. package/dist/users/index.js.map +1 -0
  400. package/dist/users/service.d.ts +43 -0
  401. package/dist/users/service.d.ts.map +1 -0
  402. package/dist/users/service.js +113 -0
  403. package/dist/users/service.js.map +1 -0
  404. package/dist/webhooks/inbound.d.ts +70 -0
  405. package/dist/webhooks/inbound.d.ts.map +1 -0
  406. package/dist/webhooks/inbound.js +146 -0
  407. package/dist/webhooks/inbound.js.map +1 -0
  408. package/dist/webhooks/index.d.ts +12 -0
  409. package/dist/webhooks/index.d.ts.map +1 -0
  410. package/dist/webhooks/index.js +65 -0
  411. package/dist/webhooks/index.js.map +1 -0
  412. package/dist/webhooks/outgoing.d.ts +89 -0
  413. package/dist/webhooks/outgoing.d.ts.map +1 -0
  414. package/dist/webhooks/outgoing.js +375 -0
  415. package/dist/webhooks/outgoing.js.map +1 -0
  416. package/dist/webhooks/signature.d.ts +40 -0
  417. package/dist/webhooks/signature.d.ts.map +1 -0
  418. package/dist/webhooks/signature.js +77 -0
  419. package/dist/webhooks/signature.js.map +1 -0
  420. package/dist/workspaces/context.d.ts +30 -0
  421. package/dist/workspaces/context.d.ts.map +1 -0
  422. package/dist/workspaces/context.js +12 -0
  423. package/dist/workspaces/context.js.map +1 -0
  424. package/dist/workspaces/index.d.ts +5 -0
  425. package/dist/workspaces/index.d.ts.map +1 -0
  426. package/dist/workspaces/index.js +21 -0
  427. package/dist/workspaces/index.js.map +1 -0
  428. package/dist/workspaces/service.d.ts +126 -0
  429. package/dist/workspaces/service.d.ts.map +1 -0
  430. package/dist/workspaces/service.js +495 -0
  431. package/dist/workspaces/service.js.map +1 -0
  432. package/docs/README.md +71 -0
  433. package/docs/api-keys.md +184 -0
  434. package/docs/audit.md +198 -0
  435. package/docs/auth.md +196 -0
  436. package/docs/authorization.md +225 -0
  437. package/docs/billing.md +293 -0
  438. package/docs/cli.md +238 -0
  439. package/docs/config.md +163 -0
  440. package/docs/db.md +219 -0
  441. package/docs/email.md +222 -0
  442. package/docs/entitlements.md +194 -0
  443. package/docs/errors.md +158 -0
  444. package/docs/events.md +279 -0
  445. package/docs/feature-flags.md +237 -0
  446. package/docs/files.md +229 -0
  447. package/docs/jobs.md +288 -0
  448. package/docs/logger.md +269 -0
  449. package/docs/notifications.md +179 -0
  450. package/docs/publishing.md +128 -0
  451. package/docs/realtime.md +360 -0
  452. package/docs/storage.md +279 -0
  453. package/docs/streams.md +296 -0
  454. package/docs/users.md +117 -0
  455. package/docs/webhooks.md +272 -0
  456. package/docs/workspaces.md +269 -0
  457. package/drizzle/0000_init_users.sql +21 -0
  458. package/drizzle/0001_workspaces_roles_permissions.sql +86 -0
  459. package/drizzle/0002_billing_entitlements.sql +97 -0
  460. package/drizzle/0003_events.sql +17 -0
  461. package/drizzle/0004_notifications_audit.sql +64 -0
  462. package/drizzle/0005_api_keys_webhooks.sql +77 -0
  463. package/drizzle/0006_feature_flags.sql +22 -0
  464. package/drizzle/0007_files.sql +23 -0
  465. package/drizzle/meta/0000_snapshot.json +160 -0
  466. package/drizzle/meta/0001_snapshot.json +837 -0
  467. package/drizzle/meta/0002_snapshot.json +1580 -0
  468. package/drizzle/meta/0003_snapshot.json +1751 -0
  469. package/drizzle/meta/0004_snapshot.json +2109 -0
  470. package/drizzle/meta/0005_snapshot.json +2719 -0
  471. package/drizzle/meta/0006_snapshot.json +2909 -0
  472. package/drizzle/meta/0007_snapshot.json +3113 -0
  473. package/drizzle/meta/_journal.json +62 -0
  474. package/package.json +180 -0
@@ -0,0 +1,1580 @@
1
+ {
2
+ "id": "6405d847-5cc4-451a-90ca-cdc00da4d9a2",
3
+ "prevId": "8072459d-6f44-4211-ab19-3b3aba8e078b",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.user_profiles": {
8
+ "name": "user_profiles",
9
+ "schema": "",
10
+ "columns": {
11
+ "user_id": {
12
+ "name": "user_id",
13
+ "type": "uuid",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "email": {
18
+ "name": "email",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "first_name": {
24
+ "name": "first_name",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": false
28
+ },
29
+ "last_name": {
30
+ "name": "last_name",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": false
34
+ },
35
+ "display_name": {
36
+ "name": "display_name",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": false
40
+ },
41
+ "avatar_url": {
42
+ "name": "avatar_url",
43
+ "type": "text",
44
+ "primaryKey": false,
45
+ "notNull": false
46
+ },
47
+ "created_at": {
48
+ "name": "created_at",
49
+ "type": "timestamp with time zone",
50
+ "primaryKey": false,
51
+ "notNull": true,
52
+ "default": "now()"
53
+ },
54
+ "updated_at": {
55
+ "name": "updated_at",
56
+ "type": "timestamp with time zone",
57
+ "primaryKey": false,
58
+ "notNull": true,
59
+ "default": "now()"
60
+ }
61
+ },
62
+ "indexes": {
63
+ "user_profiles_email_lower_idx": {
64
+ "name": "user_profiles_email_lower_idx",
65
+ "columns": [
66
+ {
67
+ "expression": "lower(\"email\")",
68
+ "asc": true,
69
+ "isExpression": true,
70
+ "nulls": "last"
71
+ }
72
+ ],
73
+ "isUnique": false,
74
+ "concurrently": false,
75
+ "method": "btree",
76
+ "with": {}
77
+ }
78
+ },
79
+ "foreignKeys": {
80
+ "user_profiles_user_id_users_id_fk": {
81
+ "name": "user_profiles_user_id_users_id_fk",
82
+ "tableFrom": "user_profiles",
83
+ "tableTo": "users",
84
+ "columnsFrom": [
85
+ "user_id"
86
+ ],
87
+ "columnsTo": [
88
+ "id"
89
+ ],
90
+ "onDelete": "cascade",
91
+ "onUpdate": "no action"
92
+ }
93
+ },
94
+ "compositePrimaryKeys": {},
95
+ "uniqueConstraints": {},
96
+ "policies": {},
97
+ "checkConstraints": {},
98
+ "isRLSEnabled": false
99
+ },
100
+ "public.users": {
101
+ "name": "users",
102
+ "schema": "",
103
+ "columns": {
104
+ "id": {
105
+ "name": "id",
106
+ "type": "uuid",
107
+ "primaryKey": true,
108
+ "notNull": true,
109
+ "default": "gen_random_uuid()"
110
+ },
111
+ "workos_user_id": {
112
+ "name": "workos_user_id",
113
+ "type": "text",
114
+ "primaryKey": false,
115
+ "notNull": true
116
+ },
117
+ "created_at": {
118
+ "name": "created_at",
119
+ "type": "timestamp with time zone",
120
+ "primaryKey": false,
121
+ "notNull": true,
122
+ "default": "now()"
123
+ },
124
+ "updated_at": {
125
+ "name": "updated_at",
126
+ "type": "timestamp with time zone",
127
+ "primaryKey": false,
128
+ "notNull": true,
129
+ "default": "now()"
130
+ }
131
+ },
132
+ "indexes": {},
133
+ "foreignKeys": {},
134
+ "compositePrimaryKeys": {},
135
+ "uniqueConstraints": {
136
+ "users_workos_user_id_unique": {
137
+ "name": "users_workos_user_id_unique",
138
+ "nullsNotDistinct": false,
139
+ "columns": [
140
+ "workos_user_id"
141
+ ]
142
+ }
143
+ },
144
+ "policies": {},
145
+ "checkConstraints": {},
146
+ "isRLSEnabled": false
147
+ },
148
+ "public.workspace_members": {
149
+ "name": "workspace_members",
150
+ "schema": "",
151
+ "columns": {
152
+ "workspace_id": {
153
+ "name": "workspace_id",
154
+ "type": "uuid",
155
+ "primaryKey": false,
156
+ "notNull": true
157
+ },
158
+ "user_id": {
159
+ "name": "user_id",
160
+ "type": "uuid",
161
+ "primaryKey": false,
162
+ "notNull": true
163
+ },
164
+ "created_at": {
165
+ "name": "created_at",
166
+ "type": "timestamp with time zone",
167
+ "primaryKey": false,
168
+ "notNull": true,
169
+ "default": "now()"
170
+ },
171
+ "updated_at": {
172
+ "name": "updated_at",
173
+ "type": "timestamp with time zone",
174
+ "primaryKey": false,
175
+ "notNull": true,
176
+ "default": "now()"
177
+ }
178
+ },
179
+ "indexes": {
180
+ "workspace_members_user_id_idx": {
181
+ "name": "workspace_members_user_id_idx",
182
+ "columns": [
183
+ {
184
+ "expression": "user_id",
185
+ "isExpression": false,
186
+ "asc": true,
187
+ "nulls": "last"
188
+ }
189
+ ],
190
+ "isUnique": false,
191
+ "concurrently": false,
192
+ "method": "btree",
193
+ "with": {}
194
+ }
195
+ },
196
+ "foreignKeys": {
197
+ "workspace_members_workspace_id_workspaces_id_fk": {
198
+ "name": "workspace_members_workspace_id_workspaces_id_fk",
199
+ "tableFrom": "workspace_members",
200
+ "tableTo": "workspaces",
201
+ "columnsFrom": [
202
+ "workspace_id"
203
+ ],
204
+ "columnsTo": [
205
+ "id"
206
+ ],
207
+ "onDelete": "cascade",
208
+ "onUpdate": "no action"
209
+ },
210
+ "workspace_members_user_id_users_id_fk": {
211
+ "name": "workspace_members_user_id_users_id_fk",
212
+ "tableFrom": "workspace_members",
213
+ "tableTo": "users",
214
+ "columnsFrom": [
215
+ "user_id"
216
+ ],
217
+ "columnsTo": [
218
+ "id"
219
+ ],
220
+ "onDelete": "cascade",
221
+ "onUpdate": "no action"
222
+ }
223
+ },
224
+ "compositePrimaryKeys": {
225
+ "workspace_members_workspace_id_user_id_pk": {
226
+ "name": "workspace_members_workspace_id_user_id_pk",
227
+ "columns": [
228
+ "workspace_id",
229
+ "user_id"
230
+ ]
231
+ }
232
+ },
233
+ "uniqueConstraints": {},
234
+ "policies": {},
235
+ "checkConstraints": {},
236
+ "isRLSEnabled": false
237
+ },
238
+ "public.workspaces": {
239
+ "name": "workspaces",
240
+ "schema": "",
241
+ "columns": {
242
+ "id": {
243
+ "name": "id",
244
+ "type": "uuid",
245
+ "primaryKey": true,
246
+ "notNull": true,
247
+ "default": "gen_random_uuid()"
248
+ },
249
+ "name": {
250
+ "name": "name",
251
+ "type": "text",
252
+ "primaryKey": false,
253
+ "notNull": true
254
+ },
255
+ "slug": {
256
+ "name": "slug",
257
+ "type": "text",
258
+ "primaryKey": false,
259
+ "notNull": true
260
+ },
261
+ "created_at": {
262
+ "name": "created_at",
263
+ "type": "timestamp with time zone",
264
+ "primaryKey": false,
265
+ "notNull": true,
266
+ "default": "now()"
267
+ },
268
+ "updated_at": {
269
+ "name": "updated_at",
270
+ "type": "timestamp with time zone",
271
+ "primaryKey": false,
272
+ "notNull": true,
273
+ "default": "now()"
274
+ }
275
+ },
276
+ "indexes": {},
277
+ "foreignKeys": {},
278
+ "compositePrimaryKeys": {},
279
+ "uniqueConstraints": {
280
+ "workspaces_slug_unique": {
281
+ "name": "workspaces_slug_unique",
282
+ "nullsNotDistinct": false,
283
+ "columns": [
284
+ "slug"
285
+ ]
286
+ }
287
+ },
288
+ "policies": {},
289
+ "checkConstraints": {},
290
+ "isRLSEnabled": false
291
+ },
292
+ "public.permissions": {
293
+ "name": "permissions",
294
+ "schema": "",
295
+ "columns": {
296
+ "key": {
297
+ "name": "key",
298
+ "type": "text",
299
+ "primaryKey": true,
300
+ "notNull": true
301
+ },
302
+ "description": {
303
+ "name": "description",
304
+ "type": "text",
305
+ "primaryKey": false,
306
+ "notNull": false
307
+ },
308
+ "created_at": {
309
+ "name": "created_at",
310
+ "type": "timestamp with time zone",
311
+ "primaryKey": false,
312
+ "notNull": true,
313
+ "default": "now()"
314
+ },
315
+ "updated_at": {
316
+ "name": "updated_at",
317
+ "type": "timestamp with time zone",
318
+ "primaryKey": false,
319
+ "notNull": true,
320
+ "default": "now()"
321
+ }
322
+ },
323
+ "indexes": {},
324
+ "foreignKeys": {},
325
+ "compositePrimaryKeys": {},
326
+ "uniqueConstraints": {},
327
+ "policies": {},
328
+ "checkConstraints": {},
329
+ "isRLSEnabled": false
330
+ },
331
+ "public.role_permissions": {
332
+ "name": "role_permissions",
333
+ "schema": "",
334
+ "columns": {
335
+ "role_id": {
336
+ "name": "role_id",
337
+ "type": "uuid",
338
+ "primaryKey": false,
339
+ "notNull": true
340
+ },
341
+ "permission_key": {
342
+ "name": "permission_key",
343
+ "type": "text",
344
+ "primaryKey": false,
345
+ "notNull": true
346
+ },
347
+ "created_at": {
348
+ "name": "created_at",
349
+ "type": "timestamp with time zone",
350
+ "primaryKey": false,
351
+ "notNull": true,
352
+ "default": "now()"
353
+ },
354
+ "updated_at": {
355
+ "name": "updated_at",
356
+ "type": "timestamp with time zone",
357
+ "primaryKey": false,
358
+ "notNull": true,
359
+ "default": "now()"
360
+ }
361
+ },
362
+ "indexes": {
363
+ "role_permissions_permission_key_idx": {
364
+ "name": "role_permissions_permission_key_idx",
365
+ "columns": [
366
+ {
367
+ "expression": "permission_key",
368
+ "isExpression": false,
369
+ "asc": true,
370
+ "nulls": "last"
371
+ }
372
+ ],
373
+ "isUnique": false,
374
+ "concurrently": false,
375
+ "method": "btree",
376
+ "with": {}
377
+ }
378
+ },
379
+ "foreignKeys": {
380
+ "role_permissions_role_id_roles_id_fk": {
381
+ "name": "role_permissions_role_id_roles_id_fk",
382
+ "tableFrom": "role_permissions",
383
+ "tableTo": "roles",
384
+ "columnsFrom": [
385
+ "role_id"
386
+ ],
387
+ "columnsTo": [
388
+ "id"
389
+ ],
390
+ "onDelete": "cascade",
391
+ "onUpdate": "no action"
392
+ },
393
+ "role_permissions_permission_key_permissions_key_fk": {
394
+ "name": "role_permissions_permission_key_permissions_key_fk",
395
+ "tableFrom": "role_permissions",
396
+ "tableTo": "permissions",
397
+ "columnsFrom": [
398
+ "permission_key"
399
+ ],
400
+ "columnsTo": [
401
+ "key"
402
+ ],
403
+ "onDelete": "cascade",
404
+ "onUpdate": "no action"
405
+ }
406
+ },
407
+ "compositePrimaryKeys": {
408
+ "role_permissions_role_id_permission_key_pk": {
409
+ "name": "role_permissions_role_id_permission_key_pk",
410
+ "columns": [
411
+ "role_id",
412
+ "permission_key"
413
+ ]
414
+ }
415
+ },
416
+ "uniqueConstraints": {},
417
+ "policies": {},
418
+ "checkConstraints": {},
419
+ "isRLSEnabled": false
420
+ },
421
+ "public.roles": {
422
+ "name": "roles",
423
+ "schema": "",
424
+ "columns": {
425
+ "id": {
426
+ "name": "id",
427
+ "type": "uuid",
428
+ "primaryKey": true,
429
+ "notNull": true,
430
+ "default": "gen_random_uuid()"
431
+ },
432
+ "workspace_id": {
433
+ "name": "workspace_id",
434
+ "type": "uuid",
435
+ "primaryKey": false,
436
+ "notNull": true
437
+ },
438
+ "key": {
439
+ "name": "key",
440
+ "type": "text",
441
+ "primaryKey": false,
442
+ "notNull": true
443
+ },
444
+ "name": {
445
+ "name": "name",
446
+ "type": "text",
447
+ "primaryKey": false,
448
+ "notNull": true
449
+ },
450
+ "description": {
451
+ "name": "description",
452
+ "type": "text",
453
+ "primaryKey": false,
454
+ "notNull": false
455
+ },
456
+ "is_system": {
457
+ "name": "is_system",
458
+ "type": "boolean",
459
+ "primaryKey": false,
460
+ "notNull": true,
461
+ "default": false
462
+ },
463
+ "is_default": {
464
+ "name": "is_default",
465
+ "type": "boolean",
466
+ "primaryKey": false,
467
+ "notNull": true,
468
+ "default": false
469
+ },
470
+ "created_at": {
471
+ "name": "created_at",
472
+ "type": "timestamp with time zone",
473
+ "primaryKey": false,
474
+ "notNull": true,
475
+ "default": "now()"
476
+ },
477
+ "updated_at": {
478
+ "name": "updated_at",
479
+ "type": "timestamp with time zone",
480
+ "primaryKey": false,
481
+ "notNull": true,
482
+ "default": "now()"
483
+ }
484
+ },
485
+ "indexes": {
486
+ "roles_workspace_id_key_idx": {
487
+ "name": "roles_workspace_id_key_idx",
488
+ "columns": [
489
+ {
490
+ "expression": "workspace_id",
491
+ "isExpression": false,
492
+ "asc": true,
493
+ "nulls": "last"
494
+ },
495
+ {
496
+ "expression": "key",
497
+ "isExpression": false,
498
+ "asc": true,
499
+ "nulls": "last"
500
+ }
501
+ ],
502
+ "isUnique": true,
503
+ "concurrently": false,
504
+ "method": "btree",
505
+ "with": {}
506
+ },
507
+ "roles_workspace_default_idx": {
508
+ "name": "roles_workspace_default_idx",
509
+ "columns": [
510
+ {
511
+ "expression": "workspace_id",
512
+ "isExpression": false,
513
+ "asc": true,
514
+ "nulls": "last"
515
+ }
516
+ ],
517
+ "isUnique": true,
518
+ "where": "\"roles\".\"is_default\"",
519
+ "concurrently": false,
520
+ "method": "btree",
521
+ "with": {}
522
+ }
523
+ },
524
+ "foreignKeys": {
525
+ "roles_workspace_id_workspaces_id_fk": {
526
+ "name": "roles_workspace_id_workspaces_id_fk",
527
+ "tableFrom": "roles",
528
+ "tableTo": "workspaces",
529
+ "columnsFrom": [
530
+ "workspace_id"
531
+ ],
532
+ "columnsTo": [
533
+ "id"
534
+ ],
535
+ "onDelete": "cascade",
536
+ "onUpdate": "no action"
537
+ }
538
+ },
539
+ "compositePrimaryKeys": {},
540
+ "uniqueConstraints": {
541
+ "roles_id_workspace_id_key": {
542
+ "name": "roles_id_workspace_id_key",
543
+ "nullsNotDistinct": false,
544
+ "columns": [
545
+ "id",
546
+ "workspace_id"
547
+ ]
548
+ }
549
+ },
550
+ "policies": {},
551
+ "checkConstraints": {},
552
+ "isRLSEnabled": false
553
+ },
554
+ "public.workspace_member_roles": {
555
+ "name": "workspace_member_roles",
556
+ "schema": "",
557
+ "columns": {
558
+ "workspace_id": {
559
+ "name": "workspace_id",
560
+ "type": "uuid",
561
+ "primaryKey": false,
562
+ "notNull": true
563
+ },
564
+ "user_id": {
565
+ "name": "user_id",
566
+ "type": "uuid",
567
+ "primaryKey": false,
568
+ "notNull": true
569
+ },
570
+ "role_id": {
571
+ "name": "role_id",
572
+ "type": "uuid",
573
+ "primaryKey": false,
574
+ "notNull": true
575
+ },
576
+ "created_at": {
577
+ "name": "created_at",
578
+ "type": "timestamp with time zone",
579
+ "primaryKey": false,
580
+ "notNull": true,
581
+ "default": "now()"
582
+ },
583
+ "updated_at": {
584
+ "name": "updated_at",
585
+ "type": "timestamp with time zone",
586
+ "primaryKey": false,
587
+ "notNull": true,
588
+ "default": "now()"
589
+ }
590
+ },
591
+ "indexes": {
592
+ "workspace_member_roles_role_id_idx": {
593
+ "name": "workspace_member_roles_role_id_idx",
594
+ "columns": [
595
+ {
596
+ "expression": "role_id",
597
+ "isExpression": false,
598
+ "asc": true,
599
+ "nulls": "last"
600
+ }
601
+ ],
602
+ "isUnique": false,
603
+ "concurrently": false,
604
+ "method": "btree",
605
+ "with": {}
606
+ }
607
+ },
608
+ "foreignKeys": {
609
+ "workspace_member_roles_member_fk": {
610
+ "name": "workspace_member_roles_member_fk",
611
+ "tableFrom": "workspace_member_roles",
612
+ "tableTo": "workspace_members",
613
+ "columnsFrom": [
614
+ "workspace_id",
615
+ "user_id"
616
+ ],
617
+ "columnsTo": [
618
+ "workspace_id",
619
+ "user_id"
620
+ ],
621
+ "onDelete": "cascade",
622
+ "onUpdate": "no action"
623
+ },
624
+ "workspace_member_roles_role_fk": {
625
+ "name": "workspace_member_roles_role_fk",
626
+ "tableFrom": "workspace_member_roles",
627
+ "tableTo": "roles",
628
+ "columnsFrom": [
629
+ "role_id",
630
+ "workspace_id"
631
+ ],
632
+ "columnsTo": [
633
+ "id",
634
+ "workspace_id"
635
+ ],
636
+ "onDelete": "cascade",
637
+ "onUpdate": "no action"
638
+ }
639
+ },
640
+ "compositePrimaryKeys": {
641
+ "workspace_member_roles_workspace_id_user_id_role_id_pk": {
642
+ "name": "workspace_member_roles_workspace_id_user_id_role_id_pk",
643
+ "columns": [
644
+ "workspace_id",
645
+ "user_id",
646
+ "role_id"
647
+ ]
648
+ }
649
+ },
650
+ "uniqueConstraints": {},
651
+ "policies": {},
652
+ "checkConstraints": {},
653
+ "isRLSEnabled": false
654
+ },
655
+ "public.workspace_invitations": {
656
+ "name": "workspace_invitations",
657
+ "schema": "",
658
+ "columns": {
659
+ "id": {
660
+ "name": "id",
661
+ "type": "uuid",
662
+ "primaryKey": true,
663
+ "notNull": true,
664
+ "default": "gen_random_uuid()"
665
+ },
666
+ "workspace_id": {
667
+ "name": "workspace_id",
668
+ "type": "uuid",
669
+ "primaryKey": false,
670
+ "notNull": true
671
+ },
672
+ "email": {
673
+ "name": "email",
674
+ "type": "text",
675
+ "primaryKey": false,
676
+ "notNull": true
677
+ },
678
+ "token_hash": {
679
+ "name": "token_hash",
680
+ "type": "text",
681
+ "primaryKey": false,
682
+ "notNull": true
683
+ },
684
+ "invited_by_user_id": {
685
+ "name": "invited_by_user_id",
686
+ "type": "uuid",
687
+ "primaryKey": false,
688
+ "notNull": false
689
+ },
690
+ "role_id": {
691
+ "name": "role_id",
692
+ "type": "uuid",
693
+ "primaryKey": false,
694
+ "notNull": false
695
+ },
696
+ "expires_at": {
697
+ "name": "expires_at",
698
+ "type": "timestamp with time zone",
699
+ "primaryKey": false,
700
+ "notNull": true
701
+ },
702
+ "accepted_at": {
703
+ "name": "accepted_at",
704
+ "type": "timestamp with time zone",
705
+ "primaryKey": false,
706
+ "notNull": false
707
+ },
708
+ "revoked_at": {
709
+ "name": "revoked_at",
710
+ "type": "timestamp with time zone",
711
+ "primaryKey": false,
712
+ "notNull": false
713
+ },
714
+ "created_at": {
715
+ "name": "created_at",
716
+ "type": "timestamp with time zone",
717
+ "primaryKey": false,
718
+ "notNull": true,
719
+ "default": "now()"
720
+ },
721
+ "updated_at": {
722
+ "name": "updated_at",
723
+ "type": "timestamp with time zone",
724
+ "primaryKey": false,
725
+ "notNull": true,
726
+ "default": "now()"
727
+ }
728
+ },
729
+ "indexes": {
730
+ "workspace_invitations_workspace_id_idx": {
731
+ "name": "workspace_invitations_workspace_id_idx",
732
+ "columns": [
733
+ {
734
+ "expression": "workspace_id",
735
+ "isExpression": false,
736
+ "asc": true,
737
+ "nulls": "last"
738
+ }
739
+ ],
740
+ "isUnique": false,
741
+ "concurrently": false,
742
+ "method": "btree",
743
+ "with": {}
744
+ },
745
+ "workspace_invitations_pending_idx": {
746
+ "name": "workspace_invitations_pending_idx",
747
+ "columns": [
748
+ {
749
+ "expression": "workspace_id",
750
+ "isExpression": false,
751
+ "asc": true,
752
+ "nulls": "last"
753
+ },
754
+ {
755
+ "expression": "lower(\"email\")",
756
+ "asc": true,
757
+ "isExpression": true,
758
+ "nulls": "last"
759
+ }
760
+ ],
761
+ "isUnique": true,
762
+ "where": "\"workspace_invitations\".\"accepted_at\" is null and \"workspace_invitations\".\"revoked_at\" is null",
763
+ "concurrently": false,
764
+ "method": "btree",
765
+ "with": {}
766
+ }
767
+ },
768
+ "foreignKeys": {
769
+ "workspace_invitations_workspace_id_workspaces_id_fk": {
770
+ "name": "workspace_invitations_workspace_id_workspaces_id_fk",
771
+ "tableFrom": "workspace_invitations",
772
+ "tableTo": "workspaces",
773
+ "columnsFrom": [
774
+ "workspace_id"
775
+ ],
776
+ "columnsTo": [
777
+ "id"
778
+ ],
779
+ "onDelete": "cascade",
780
+ "onUpdate": "no action"
781
+ },
782
+ "workspace_invitations_invited_by_user_id_users_id_fk": {
783
+ "name": "workspace_invitations_invited_by_user_id_users_id_fk",
784
+ "tableFrom": "workspace_invitations",
785
+ "tableTo": "users",
786
+ "columnsFrom": [
787
+ "invited_by_user_id"
788
+ ],
789
+ "columnsTo": [
790
+ "id"
791
+ ],
792
+ "onDelete": "set null",
793
+ "onUpdate": "no action"
794
+ },
795
+ "workspace_invitations_role_fk": {
796
+ "name": "workspace_invitations_role_fk",
797
+ "tableFrom": "workspace_invitations",
798
+ "tableTo": "roles",
799
+ "columnsFrom": [
800
+ "role_id",
801
+ "workspace_id"
802
+ ],
803
+ "columnsTo": [
804
+ "id",
805
+ "workspace_id"
806
+ ],
807
+ "onDelete": "set null",
808
+ "onUpdate": "no action"
809
+ }
810
+ },
811
+ "compositePrimaryKeys": {},
812
+ "uniqueConstraints": {
813
+ "workspace_invitations_token_hash_unique": {
814
+ "name": "workspace_invitations_token_hash_unique",
815
+ "nullsNotDistinct": false,
816
+ "columns": [
817
+ "token_hash"
818
+ ]
819
+ }
820
+ },
821
+ "policies": {},
822
+ "checkConstraints": {},
823
+ "isRLSEnabled": false
824
+ },
825
+ "public.billing_customers": {
826
+ "name": "billing_customers",
827
+ "schema": "",
828
+ "columns": {
829
+ "id": {
830
+ "name": "id",
831
+ "type": "uuid",
832
+ "primaryKey": true,
833
+ "notNull": true,
834
+ "default": "gen_random_uuid()"
835
+ },
836
+ "workspace_id": {
837
+ "name": "workspace_id",
838
+ "type": "uuid",
839
+ "primaryKey": false,
840
+ "notNull": true
841
+ },
842
+ "provider": {
843
+ "name": "provider",
844
+ "type": "text",
845
+ "primaryKey": false,
846
+ "notNull": true
847
+ },
848
+ "provider_customer_id": {
849
+ "name": "provider_customer_id",
850
+ "type": "text",
851
+ "primaryKey": false,
852
+ "notNull": true
853
+ },
854
+ "email": {
855
+ "name": "email",
856
+ "type": "text",
857
+ "primaryKey": false,
858
+ "notNull": false
859
+ },
860
+ "created_at": {
861
+ "name": "created_at",
862
+ "type": "timestamp with time zone",
863
+ "primaryKey": false,
864
+ "notNull": true,
865
+ "default": "now()"
866
+ },
867
+ "updated_at": {
868
+ "name": "updated_at",
869
+ "type": "timestamp with time zone",
870
+ "primaryKey": false,
871
+ "notNull": true,
872
+ "default": "now()"
873
+ }
874
+ },
875
+ "indexes": {},
876
+ "foreignKeys": {
877
+ "billing_customers_workspace_id_workspaces_id_fk": {
878
+ "name": "billing_customers_workspace_id_workspaces_id_fk",
879
+ "tableFrom": "billing_customers",
880
+ "tableTo": "workspaces",
881
+ "columnsFrom": [
882
+ "workspace_id"
883
+ ],
884
+ "columnsTo": [
885
+ "id"
886
+ ],
887
+ "onDelete": "cascade",
888
+ "onUpdate": "no action"
889
+ }
890
+ },
891
+ "compositePrimaryKeys": {},
892
+ "uniqueConstraints": {
893
+ "billing_customers_workspace_id_unique": {
894
+ "name": "billing_customers_workspace_id_unique",
895
+ "nullsNotDistinct": false,
896
+ "columns": [
897
+ "workspace_id"
898
+ ]
899
+ },
900
+ "billing_customers_provider_customer_unique": {
901
+ "name": "billing_customers_provider_customer_unique",
902
+ "nullsNotDistinct": false,
903
+ "columns": [
904
+ "provider",
905
+ "provider_customer_id"
906
+ ]
907
+ }
908
+ },
909
+ "policies": {},
910
+ "checkConstraints": {},
911
+ "isRLSEnabled": false
912
+ },
913
+ "public.billing_events": {
914
+ "name": "billing_events",
915
+ "schema": "",
916
+ "columns": {
917
+ "id": {
918
+ "name": "id",
919
+ "type": "uuid",
920
+ "primaryKey": true,
921
+ "notNull": true,
922
+ "default": "gen_random_uuid()"
923
+ },
924
+ "provider": {
925
+ "name": "provider",
926
+ "type": "text",
927
+ "primaryKey": false,
928
+ "notNull": true
929
+ },
930
+ "provider_event_id": {
931
+ "name": "provider_event_id",
932
+ "type": "text",
933
+ "primaryKey": false,
934
+ "notNull": true
935
+ },
936
+ "type": {
937
+ "name": "type",
938
+ "type": "text",
939
+ "primaryKey": false,
940
+ "notNull": true
941
+ },
942
+ "payload": {
943
+ "name": "payload",
944
+ "type": "jsonb",
945
+ "primaryKey": false,
946
+ "notNull": true
947
+ },
948
+ "status": {
949
+ "name": "status",
950
+ "type": "billing_event_status",
951
+ "typeSchema": "public",
952
+ "primaryKey": false,
953
+ "notNull": true,
954
+ "default": "'pending'"
955
+ },
956
+ "processed_at": {
957
+ "name": "processed_at",
958
+ "type": "timestamp with time zone",
959
+ "primaryKey": false,
960
+ "notNull": false
961
+ },
962
+ "error": {
963
+ "name": "error",
964
+ "type": "text",
965
+ "primaryKey": false,
966
+ "notNull": false
967
+ },
968
+ "created_at": {
969
+ "name": "created_at",
970
+ "type": "timestamp with time zone",
971
+ "primaryKey": false,
972
+ "notNull": true,
973
+ "default": "now()"
974
+ },
975
+ "updated_at": {
976
+ "name": "updated_at",
977
+ "type": "timestamp with time zone",
978
+ "primaryKey": false,
979
+ "notNull": true,
980
+ "default": "now()"
981
+ }
982
+ },
983
+ "indexes": {
984
+ "billing_events_status_idx": {
985
+ "name": "billing_events_status_idx",
986
+ "columns": [
987
+ {
988
+ "expression": "status",
989
+ "isExpression": false,
990
+ "asc": true,
991
+ "nulls": "last"
992
+ }
993
+ ],
994
+ "isUnique": false,
995
+ "concurrently": false,
996
+ "method": "btree",
997
+ "with": {}
998
+ }
999
+ },
1000
+ "foreignKeys": {},
1001
+ "compositePrimaryKeys": {},
1002
+ "uniqueConstraints": {
1003
+ "billing_events_provider_event_unique": {
1004
+ "name": "billing_events_provider_event_unique",
1005
+ "nullsNotDistinct": false,
1006
+ "columns": [
1007
+ "provider",
1008
+ "provider_event_id"
1009
+ ]
1010
+ }
1011
+ },
1012
+ "policies": {},
1013
+ "checkConstraints": {},
1014
+ "isRLSEnabled": false
1015
+ },
1016
+ "public.entitlements": {
1017
+ "name": "entitlements",
1018
+ "schema": "",
1019
+ "columns": {
1020
+ "id": {
1021
+ "name": "id",
1022
+ "type": "uuid",
1023
+ "primaryKey": true,
1024
+ "notNull": true,
1025
+ "default": "gen_random_uuid()"
1026
+ },
1027
+ "plan_id": {
1028
+ "name": "plan_id",
1029
+ "type": "uuid",
1030
+ "primaryKey": false,
1031
+ "notNull": true
1032
+ },
1033
+ "key": {
1034
+ "name": "key",
1035
+ "type": "text",
1036
+ "primaryKey": false,
1037
+ "notNull": true
1038
+ },
1039
+ "kind": {
1040
+ "name": "kind",
1041
+ "type": "entitlement_kind",
1042
+ "typeSchema": "public",
1043
+ "primaryKey": false,
1044
+ "notNull": true
1045
+ },
1046
+ "limit_value": {
1047
+ "name": "limit_value",
1048
+ "type": "bigint",
1049
+ "primaryKey": false,
1050
+ "notNull": false
1051
+ },
1052
+ "created_at": {
1053
+ "name": "created_at",
1054
+ "type": "timestamp with time zone",
1055
+ "primaryKey": false,
1056
+ "notNull": true,
1057
+ "default": "now()"
1058
+ },
1059
+ "updated_at": {
1060
+ "name": "updated_at",
1061
+ "type": "timestamp with time zone",
1062
+ "primaryKey": false,
1063
+ "notNull": true,
1064
+ "default": "now()"
1065
+ }
1066
+ },
1067
+ "indexes": {},
1068
+ "foreignKeys": {
1069
+ "entitlements_plan_id_plans_id_fk": {
1070
+ "name": "entitlements_plan_id_plans_id_fk",
1071
+ "tableFrom": "entitlements",
1072
+ "tableTo": "plans",
1073
+ "columnsFrom": [
1074
+ "plan_id"
1075
+ ],
1076
+ "columnsTo": [
1077
+ "id"
1078
+ ],
1079
+ "onDelete": "cascade",
1080
+ "onUpdate": "no action"
1081
+ }
1082
+ },
1083
+ "compositePrimaryKeys": {},
1084
+ "uniqueConstraints": {
1085
+ "entitlements_plan_id_key_unique": {
1086
+ "name": "entitlements_plan_id_key_unique",
1087
+ "nullsNotDistinct": false,
1088
+ "columns": [
1089
+ "plan_id",
1090
+ "key"
1091
+ ]
1092
+ }
1093
+ },
1094
+ "policies": {},
1095
+ "checkConstraints": {},
1096
+ "isRLSEnabled": false
1097
+ },
1098
+ "public.plans": {
1099
+ "name": "plans",
1100
+ "schema": "",
1101
+ "columns": {
1102
+ "id": {
1103
+ "name": "id",
1104
+ "type": "uuid",
1105
+ "primaryKey": true,
1106
+ "notNull": true,
1107
+ "default": "gen_random_uuid()"
1108
+ },
1109
+ "key": {
1110
+ "name": "key",
1111
+ "type": "text",
1112
+ "primaryKey": false,
1113
+ "notNull": true
1114
+ },
1115
+ "name": {
1116
+ "name": "name",
1117
+ "type": "text",
1118
+ "primaryKey": false,
1119
+ "notNull": true
1120
+ },
1121
+ "description": {
1122
+ "name": "description",
1123
+ "type": "text",
1124
+ "primaryKey": false,
1125
+ "notNull": false
1126
+ },
1127
+ "provider_price_id": {
1128
+ "name": "provider_price_id",
1129
+ "type": "text",
1130
+ "primaryKey": false,
1131
+ "notNull": false
1132
+ },
1133
+ "amount_cents": {
1134
+ "name": "amount_cents",
1135
+ "type": "integer",
1136
+ "primaryKey": false,
1137
+ "notNull": true,
1138
+ "default": 0
1139
+ },
1140
+ "currency": {
1141
+ "name": "currency",
1142
+ "type": "text",
1143
+ "primaryKey": false,
1144
+ "notNull": true,
1145
+ "default": "'EUR'"
1146
+ },
1147
+ "interval": {
1148
+ "name": "interval",
1149
+ "type": "billing_interval",
1150
+ "typeSchema": "public",
1151
+ "primaryKey": false,
1152
+ "notNull": true,
1153
+ "default": "'month'"
1154
+ },
1155
+ "is_active": {
1156
+ "name": "is_active",
1157
+ "type": "boolean",
1158
+ "primaryKey": false,
1159
+ "notNull": true,
1160
+ "default": true
1161
+ },
1162
+ "sort_order": {
1163
+ "name": "sort_order",
1164
+ "type": "integer",
1165
+ "primaryKey": false,
1166
+ "notNull": true,
1167
+ "default": 0
1168
+ },
1169
+ "created_at": {
1170
+ "name": "created_at",
1171
+ "type": "timestamp with time zone",
1172
+ "primaryKey": false,
1173
+ "notNull": true,
1174
+ "default": "now()"
1175
+ },
1176
+ "updated_at": {
1177
+ "name": "updated_at",
1178
+ "type": "timestamp with time zone",
1179
+ "primaryKey": false,
1180
+ "notNull": true,
1181
+ "default": "now()"
1182
+ }
1183
+ },
1184
+ "indexes": {
1185
+ "plans_is_active_idx": {
1186
+ "name": "plans_is_active_idx",
1187
+ "columns": [
1188
+ {
1189
+ "expression": "is_active",
1190
+ "isExpression": false,
1191
+ "asc": true,
1192
+ "nulls": "last"
1193
+ }
1194
+ ],
1195
+ "isUnique": false,
1196
+ "concurrently": false,
1197
+ "method": "btree",
1198
+ "with": {}
1199
+ }
1200
+ },
1201
+ "foreignKeys": {},
1202
+ "compositePrimaryKeys": {},
1203
+ "uniqueConstraints": {
1204
+ "plans_key_unique": {
1205
+ "name": "plans_key_unique",
1206
+ "nullsNotDistinct": false,
1207
+ "columns": [
1208
+ "key"
1209
+ ]
1210
+ }
1211
+ },
1212
+ "policies": {},
1213
+ "checkConstraints": {},
1214
+ "isRLSEnabled": false
1215
+ },
1216
+ "public.subscriptions": {
1217
+ "name": "subscriptions",
1218
+ "schema": "",
1219
+ "columns": {
1220
+ "id": {
1221
+ "name": "id",
1222
+ "type": "uuid",
1223
+ "primaryKey": true,
1224
+ "notNull": true,
1225
+ "default": "gen_random_uuid()"
1226
+ },
1227
+ "workspace_id": {
1228
+ "name": "workspace_id",
1229
+ "type": "uuid",
1230
+ "primaryKey": false,
1231
+ "notNull": true
1232
+ },
1233
+ "billing_customer_id": {
1234
+ "name": "billing_customer_id",
1235
+ "type": "uuid",
1236
+ "primaryKey": false,
1237
+ "notNull": true
1238
+ },
1239
+ "plan_id": {
1240
+ "name": "plan_id",
1241
+ "type": "uuid",
1242
+ "primaryKey": false,
1243
+ "notNull": true
1244
+ },
1245
+ "provider": {
1246
+ "name": "provider",
1247
+ "type": "text",
1248
+ "primaryKey": false,
1249
+ "notNull": true
1250
+ },
1251
+ "provider_subscription_id": {
1252
+ "name": "provider_subscription_id",
1253
+ "type": "text",
1254
+ "primaryKey": false,
1255
+ "notNull": true
1256
+ },
1257
+ "status": {
1258
+ "name": "status",
1259
+ "type": "subscription_status",
1260
+ "typeSchema": "public",
1261
+ "primaryKey": false,
1262
+ "notNull": true
1263
+ },
1264
+ "current_period_start": {
1265
+ "name": "current_period_start",
1266
+ "type": "timestamp with time zone",
1267
+ "primaryKey": false,
1268
+ "notNull": false
1269
+ },
1270
+ "current_period_end": {
1271
+ "name": "current_period_end",
1272
+ "type": "timestamp with time zone",
1273
+ "primaryKey": false,
1274
+ "notNull": false
1275
+ },
1276
+ "cancel_at_period_end": {
1277
+ "name": "cancel_at_period_end",
1278
+ "type": "boolean",
1279
+ "primaryKey": false,
1280
+ "notNull": true,
1281
+ "default": false
1282
+ },
1283
+ "canceled_at": {
1284
+ "name": "canceled_at",
1285
+ "type": "timestamp with time zone",
1286
+ "primaryKey": false,
1287
+ "notNull": false
1288
+ },
1289
+ "trial_ends_at": {
1290
+ "name": "trial_ends_at",
1291
+ "type": "timestamp with time zone",
1292
+ "primaryKey": false,
1293
+ "notNull": false
1294
+ },
1295
+ "created_at": {
1296
+ "name": "created_at",
1297
+ "type": "timestamp with time zone",
1298
+ "primaryKey": false,
1299
+ "notNull": true,
1300
+ "default": "now()"
1301
+ },
1302
+ "updated_at": {
1303
+ "name": "updated_at",
1304
+ "type": "timestamp with time zone",
1305
+ "primaryKey": false,
1306
+ "notNull": true,
1307
+ "default": "now()"
1308
+ }
1309
+ },
1310
+ "indexes": {
1311
+ "subscriptions_workspace_id_idx": {
1312
+ "name": "subscriptions_workspace_id_idx",
1313
+ "columns": [
1314
+ {
1315
+ "expression": "workspace_id",
1316
+ "isExpression": false,
1317
+ "asc": true,
1318
+ "nulls": "last"
1319
+ }
1320
+ ],
1321
+ "isUnique": false,
1322
+ "concurrently": false,
1323
+ "method": "btree",
1324
+ "with": {}
1325
+ },
1326
+ "subscriptions_one_live_per_workspace_idx": {
1327
+ "name": "subscriptions_one_live_per_workspace_idx",
1328
+ "columns": [
1329
+ {
1330
+ "expression": "workspace_id",
1331
+ "isExpression": false,
1332
+ "asc": true,
1333
+ "nulls": "last"
1334
+ }
1335
+ ],
1336
+ "isUnique": true,
1337
+ "where": "\"subscriptions\".\"status\" in ('trialing', 'active', 'past_due')",
1338
+ "concurrently": false,
1339
+ "method": "btree",
1340
+ "with": {}
1341
+ }
1342
+ },
1343
+ "foreignKeys": {
1344
+ "subscriptions_workspace_id_workspaces_id_fk": {
1345
+ "name": "subscriptions_workspace_id_workspaces_id_fk",
1346
+ "tableFrom": "subscriptions",
1347
+ "tableTo": "workspaces",
1348
+ "columnsFrom": [
1349
+ "workspace_id"
1350
+ ],
1351
+ "columnsTo": [
1352
+ "id"
1353
+ ],
1354
+ "onDelete": "cascade",
1355
+ "onUpdate": "no action"
1356
+ },
1357
+ "subscriptions_billing_customer_id_billing_customers_id_fk": {
1358
+ "name": "subscriptions_billing_customer_id_billing_customers_id_fk",
1359
+ "tableFrom": "subscriptions",
1360
+ "tableTo": "billing_customers",
1361
+ "columnsFrom": [
1362
+ "billing_customer_id"
1363
+ ],
1364
+ "columnsTo": [
1365
+ "id"
1366
+ ],
1367
+ "onDelete": "cascade",
1368
+ "onUpdate": "no action"
1369
+ },
1370
+ "subscriptions_plan_id_plans_id_fk": {
1371
+ "name": "subscriptions_plan_id_plans_id_fk",
1372
+ "tableFrom": "subscriptions",
1373
+ "tableTo": "plans",
1374
+ "columnsFrom": [
1375
+ "plan_id"
1376
+ ],
1377
+ "columnsTo": [
1378
+ "id"
1379
+ ],
1380
+ "onDelete": "restrict",
1381
+ "onUpdate": "no action"
1382
+ }
1383
+ },
1384
+ "compositePrimaryKeys": {},
1385
+ "uniqueConstraints": {
1386
+ "subscriptions_provider_subscription_unique": {
1387
+ "name": "subscriptions_provider_subscription_unique",
1388
+ "nullsNotDistinct": false,
1389
+ "columns": [
1390
+ "provider",
1391
+ "provider_subscription_id"
1392
+ ]
1393
+ }
1394
+ },
1395
+ "policies": {},
1396
+ "checkConstraints": {},
1397
+ "isRLSEnabled": false
1398
+ },
1399
+ "public.usage_records": {
1400
+ "name": "usage_records",
1401
+ "schema": "",
1402
+ "columns": {
1403
+ "id": {
1404
+ "name": "id",
1405
+ "type": "uuid",
1406
+ "primaryKey": true,
1407
+ "notNull": true,
1408
+ "default": "gen_random_uuid()"
1409
+ },
1410
+ "workspace_id": {
1411
+ "name": "workspace_id",
1412
+ "type": "uuid",
1413
+ "primaryKey": false,
1414
+ "notNull": true
1415
+ },
1416
+ "key": {
1417
+ "name": "key",
1418
+ "type": "text",
1419
+ "primaryKey": false,
1420
+ "notNull": true
1421
+ },
1422
+ "quantity": {
1423
+ "name": "quantity",
1424
+ "type": "integer",
1425
+ "primaryKey": false,
1426
+ "notNull": true,
1427
+ "default": 1
1428
+ },
1429
+ "occurred_at": {
1430
+ "name": "occurred_at",
1431
+ "type": "timestamp with time zone",
1432
+ "primaryKey": false,
1433
+ "notNull": true,
1434
+ "default": "now()"
1435
+ },
1436
+ "idempotency_key": {
1437
+ "name": "idempotency_key",
1438
+ "type": "text",
1439
+ "primaryKey": false,
1440
+ "notNull": false
1441
+ },
1442
+ "created_at": {
1443
+ "name": "created_at",
1444
+ "type": "timestamp with time zone",
1445
+ "primaryKey": false,
1446
+ "notNull": true,
1447
+ "default": "now()"
1448
+ }
1449
+ },
1450
+ "indexes": {
1451
+ "usage_records_workspace_key_occurred_idx": {
1452
+ "name": "usage_records_workspace_key_occurred_idx",
1453
+ "columns": [
1454
+ {
1455
+ "expression": "workspace_id",
1456
+ "isExpression": false,
1457
+ "asc": true,
1458
+ "nulls": "last"
1459
+ },
1460
+ {
1461
+ "expression": "key",
1462
+ "isExpression": false,
1463
+ "asc": true,
1464
+ "nulls": "last"
1465
+ },
1466
+ {
1467
+ "expression": "occurred_at",
1468
+ "isExpression": false,
1469
+ "asc": true,
1470
+ "nulls": "last"
1471
+ }
1472
+ ],
1473
+ "isUnique": false,
1474
+ "concurrently": false,
1475
+ "method": "btree",
1476
+ "with": {}
1477
+ },
1478
+ "usage_records_idempotency_idx": {
1479
+ "name": "usage_records_idempotency_idx",
1480
+ "columns": [
1481
+ {
1482
+ "expression": "workspace_id",
1483
+ "isExpression": false,
1484
+ "asc": true,
1485
+ "nulls": "last"
1486
+ },
1487
+ {
1488
+ "expression": "key",
1489
+ "isExpression": false,
1490
+ "asc": true,
1491
+ "nulls": "last"
1492
+ },
1493
+ {
1494
+ "expression": "idempotency_key",
1495
+ "isExpression": false,
1496
+ "asc": true,
1497
+ "nulls": "last"
1498
+ }
1499
+ ],
1500
+ "isUnique": true,
1501
+ "where": "\"usage_records\".\"idempotency_key\" is not null",
1502
+ "concurrently": false,
1503
+ "method": "btree",
1504
+ "with": {}
1505
+ }
1506
+ },
1507
+ "foreignKeys": {
1508
+ "usage_records_workspace_id_workspaces_id_fk": {
1509
+ "name": "usage_records_workspace_id_workspaces_id_fk",
1510
+ "tableFrom": "usage_records",
1511
+ "tableTo": "workspaces",
1512
+ "columnsFrom": [
1513
+ "workspace_id"
1514
+ ],
1515
+ "columnsTo": [
1516
+ "id"
1517
+ ],
1518
+ "onDelete": "cascade",
1519
+ "onUpdate": "no action"
1520
+ }
1521
+ },
1522
+ "compositePrimaryKeys": {},
1523
+ "uniqueConstraints": {},
1524
+ "policies": {},
1525
+ "checkConstraints": {},
1526
+ "isRLSEnabled": false
1527
+ }
1528
+ },
1529
+ "enums": {
1530
+ "public.billing_event_status": {
1531
+ "name": "billing_event_status",
1532
+ "schema": "public",
1533
+ "values": [
1534
+ "pending",
1535
+ "processed",
1536
+ "failed",
1537
+ "ignored"
1538
+ ]
1539
+ },
1540
+ "public.billing_interval": {
1541
+ "name": "billing_interval",
1542
+ "schema": "public",
1543
+ "values": [
1544
+ "month",
1545
+ "year",
1546
+ "one_time"
1547
+ ]
1548
+ },
1549
+ "public.entitlement_kind": {
1550
+ "name": "entitlement_kind",
1551
+ "schema": "public",
1552
+ "values": [
1553
+ "feature",
1554
+ "limit"
1555
+ ]
1556
+ },
1557
+ "public.subscription_status": {
1558
+ "name": "subscription_status",
1559
+ "schema": "public",
1560
+ "values": [
1561
+ "trialing",
1562
+ "active",
1563
+ "past_due",
1564
+ "paused",
1565
+ "canceled",
1566
+ "incomplete"
1567
+ ]
1568
+ }
1569
+ },
1570
+ "schemas": {},
1571
+ "sequences": {},
1572
+ "roles": {},
1573
+ "policies": {},
1574
+ "views": {},
1575
+ "_meta": {
1576
+ "columns": {},
1577
+ "schemas": {},
1578
+ "tables": {}
1579
+ }
1580
+ }