better-supabase 0.6.0 → 0.7.0

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 (109) hide show
  1. package/dist/{adapter-Bc1o3zyy.js → adapter-B-tL8hqg.js} +104 -25
  2. package/dist/ai-sdk/batches/index.d.ts +1 -1
  3. package/dist/ai-sdk/index.d.ts +1 -1
  4. package/dist/ai-sdk/mcp/index.d.ts +3 -3
  5. package/dist/{api-keys-rCGtKaZA.d.ts → api-keys-CIjghYjV.d.ts} +1 -1
  6. package/dist/astro/index.d.ts +4 -4
  7. package/dist/astro/index.js +2 -2
  8. package/dist/blocks/ai-providers/index.d.ts +1 -1
  9. package/dist/blocks/api-keys/index.d.ts +2 -2
  10. package/dist/blocks/attachments/index.d.ts +18 -4
  11. package/dist/blocks/attachments/index.js +16 -4
  12. package/dist/blocks/audit/index.js +1 -1
  13. package/dist/blocks/connectors/index.d.ts +1 -1
  14. package/dist/blocks/data-lifecycle/index.d.ts +11 -3
  15. package/dist/blocks/data-lifecycle/index.js +8 -3
  16. package/dist/blocks/entitlements/index.d.ts +1 -1
  17. package/dist/blocks/index.d.ts +1 -1
  18. package/dist/blocks/sso/index.d.ts +1 -1
  19. package/dist/blocks/workflow-builder/index.d.ts +2 -2
  20. package/dist/blocks/workflow-builder/react/index.d.ts +1 -1
  21. package/dist/chat-sdk/index.d.ts +1 -1
  22. package/dist/cli/bin.js +1 -1
  23. package/dist/cli/{doctor-B4JOm_ox.js → doctor-CVdnLahA.js} +66 -14
  24. package/dist/cli/{gen-BGLb_zou.js → gen-AIf4MREI.js} +1 -1
  25. package/dist/cli/gen-DSrahEdX.js +2 -0
  26. package/dist/cli/index.d.ts +1 -1
  27. package/dist/cli/index.js +3 -3
  28. package/dist/cli/{init-BIIwclPg.js → init-Cr6arjXU.js} +1 -1
  29. package/dist/cli/{introspect-DNUTuNvb.js → introspect-Bzuv1HHj.js} +1 -1
  30. package/dist/cli/{run-DNWxHynX.js → run-BO052mki.js} +7 -7
  31. package/dist/cli/{sql-D0GUtUPp.js → sql-B8csQPyn.js} +13 -54
  32. package/dist/cli/sql-layout-D6cphHT3.js +69 -0
  33. package/dist/cli/{version-hr88OZG0.js → version-Bp4fyubI.js} +1 -1
  34. package/dist/{composite-DhE66P5u.js → composite-C6I8ZyaF.js} +1 -1
  35. package/dist/{composite-Bt1YK3Ke.d.ts → composite-CpHLEo-G.d.ts} +3 -3
  36. package/dist/{connectors-hkLCwyEz.d.ts → connectors-CrpknU0P.d.ts} +1 -1
  37. package/dist/credentials/index.d.ts +2 -2
  38. package/dist/{csv-CPAzEmB6.js → csv-DCK-PT1n.js} +1 -1
  39. package/dist/edge/index.d.ts +5 -5
  40. package/dist/edge/index.js +3 -3
  41. package/dist/elysia/index.d.ts +1 -1
  42. package/dist/{ended-jLfvw8h-.d.ts → ended-XjeGQ5XW.d.ts} +4 -1
  43. package/dist/{entitlements-DHrY2UDZ.d.ts → entitlements-BKSVGtrG.d.ts} +1 -1
  44. package/dist/eve/index.d.ts +2 -2
  45. package/dist/eve/index.js +1 -1
  46. package/dist/{executor-D14tGopJ.d.ts → executor-BVBFM86G.d.ts} +1 -1
  47. package/dist/expo/index.d.ts +2 -2
  48. package/dist/expo/index.js +3 -3
  49. package/dist/{framework-CONDyPYx.js → framework-BDCpJI7o.js} +1 -1
  50. package/dist/{framework-DuVb4Xa8.d.ts → framework-KIPvRQJU.d.ts} +4 -4
  51. package/dist/h3/index.d.ts +1 -1
  52. package/dist/h3/v1/index.d.ts +1 -1
  53. package/dist/hono/index.d.ts +6 -6
  54. package/dist/hono/index.js +2 -2
  55. package/dist/{index-DDrYaUcq.d.ts → index-CdZKQF98.d.ts} +1 -1
  56. package/dist/{index-CtuakVRc.d.ts → index-CewnYSpv.d.ts} +1 -1
  57. package/dist/{kit-B5tid-q5.d.ts → kit-CkNzZUqv.d.ts} +3 -3
  58. package/dist/mcp/index.d.ts +3 -3
  59. package/dist/mcp/index.js +1 -1
  60. package/dist/mcp/sdk/index.d.ts +3 -3
  61. package/dist/mcp/sdk/index.js +1 -1
  62. package/dist/nestjs/index.d.ts +2 -2
  63. package/dist/next/index.d.ts +13 -8
  64. package/dist/next/index.js +5 -5
  65. package/dist/node/index.d.ts +2 -2
  66. package/dist/orpc/index.d.ts +4 -4
  67. package/dist/orpc/index.js +1 -1
  68. package/dist/otel/index.js +5 -5
  69. package/dist/{provider-BH5UWZJ6.d.ts → provider-D-UEMvSD.d.ts} +1 -1
  70. package/dist/react/index.d.ts +5 -5
  71. package/dist/react/server.d.ts +5 -5
  72. package/dist/react/session.d.ts +2 -2
  73. package/dist/react-router/index.d.ts +4 -4
  74. package/dist/react-router/index.js +2 -2
  75. package/dist/{refusal-D1rgbzNq.d.ts → refusal-DhSU2Vvr.d.ts} +1 -1
  76. package/dist/{resolve-KW8nCeL6.d.ts → resolve-ChTYeTEl.d.ts} +3 -0
  77. package/dist/{resolve-D_IcnvFd.js → resolve-tJZY3FEa.js} +12 -7
  78. package/dist/{resource-D6Uc7Sk7.d.ts → resource-IPS5xi9q.d.ts} +1 -1
  79. package/dist/{respond-DoBijysA.d.ts → respond-DprrgyXX.d.ts} +1 -1
  80. package/dist/server/index.d.ts +47 -10
  81. package/dist/server/index.js +27 -5
  82. package/dist/{server-CeVeeXwz.d.ts → server-ZSJ9rCcV.d.ts} +27 -3
  83. package/dist/solid/index.d.ts +2 -2
  84. package/dist/solid-start/index.d.ts +4 -4
  85. package/dist/solid-start/index.js +2 -2
  86. package/dist/sql/index.d.ts +10 -0
  87. package/dist/sql/index.js +82 -13
  88. package/dist/ssr/index.d.ts +4 -4
  89. package/dist/ssr/index.js +1 -1
  90. package/dist/{support-BivNqSpK.js → support-DWwzVf-O.js} +1 -1
  91. package/dist/{support-view-33Oi07TT.d.ts → support-view-CVOJJLpc.d.ts} +1 -1
  92. package/dist/svelte/index.d.ts +1 -1
  93. package/dist/sveltekit/index.d.ts +4 -4
  94. package/dist/sveltekit/index.js +2 -2
  95. package/dist/tanstack-start/index.d.ts +4 -4
  96. package/dist/tanstack-start/index.js +2 -2
  97. package/dist/{tenant-icPeuUBN.d.ts → tenant-BxNFk9bx.d.ts} +1 -1
  98. package/dist/testing/index.d.ts +5 -5
  99. package/dist/{types-TaiEeBGA.d.ts → types-6rocye-y.d.ts} +1 -1
  100. package/dist/{types-BI-0Sl2v.d.ts → types-AYOvcyep.d.ts} +1 -1
  101. package/dist/{vault-CSO7ss5C.d.ts → vault-wlbBhqm7.d.ts} +1 -1
  102. package/dist/vercel-connect/index.d.ts +1 -1
  103. package/dist/{version-Bvv6aLjZ.js → version--AolB5ej.js} +1 -1
  104. package/dist/{view-DbxLNu8L.d.ts → view-CF7ihnkg.d.ts} +1 -1
  105. package/dist/vue/index.d.ts +2 -2
  106. package/dist/workflow-sdk/builder/index.d.ts +2 -2
  107. package/package.json +1 -1
  108. package/schemas/doctor-report-v1.json +2 -0
  109. package/dist/cli/gen-DAH8FM2W.js +0 -2
@@ -1,8 +1,8 @@
1
- import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-Bc1o3zyy.js";
1
+ import { c as extendServer, n as flushEvents, s as createServer } from "../adapter-B-tL8hqg.js";
2
2
  import { t as defaultExpose } from "../respond-BUgsXNgk.js";
3
3
  import { i as requireCaller, o as runAction } from "../kit-Fm-Fv7q5.js";
4
4
  import { n as bufferInPlace, t as around } from "../shared-CBxosKK3.js";
5
- import { i as localsOf, r as frameworkEntry } from "../framework-CONDyPYx.js";
5
+ import { i as localsOf, r as frameworkEntry } from "../framework-BDCpJI7o.js";
6
6
  import { r as refusalResponse } from "../refusal-CeJWxmkH.js";
7
7
  //#region src/bridges/tanstack-start.ts
8
8
  /** The `response` of a request middleware's `next()` result; server function results have none. */
@@ -1,5 +1,5 @@
1
1
  import { t as AuthSnapshot } from "./bind-Bu_ZNa3W.js";
2
- import { t as AuthSession } from "./view-DbxLNu8L.js";
2
+ import { t as AuthSession } from "./view-CF7ihnkg.js";
3
3
  //#region src/auth/tenant.d.ts
4
4
  /**
5
5
  * The active tenant of a user session: the `claim` claim (`tenant_id` by
@@ -2,25 +2,25 @@ import { H as Update, L as TableKey, P as SchemaMeta, a as AnyModels, i as AnyFu
2
2
  import { r as Executor } from "../executor-DvsBbNBS.js";
3
3
  import { t as SqlClient } from "../executor-DbvExCFC.js";
4
4
  import { m as RequestContext, n as AnyPlugin } from "../plugin-FGY8UhYm.js";
5
- import { n as AuthResolver } from "../resolve-KW8nCeL6.js";
6
- import { a as CredentialSubject, i as CredentialRef, r as CredentialProvider } from "../provider-BH5UWZJ6.js";
5
+ import { n as AuthResolver } from "../resolve-ChTYeTEl.js";
6
+ import { a as CredentialSubject, i as CredentialRef, r as CredentialProvider } from "../provider-D-UEMvSD.js";
7
7
  import { k as QueueBackend } from "../queue-CLJurhdy.js";
8
8
  import { n as Embedder } from "../knowledge-BXBbT0Tr.js";
9
9
  import { o as StreamStore } from "../store-CGjgWu5n.js";
10
10
  import { B as DbStats, b as Db, t as BetterSupabase, u as CacheAdapter } from "../define-CJJkkr1-.js";
11
11
  import { r as EventSink, t as CloudEvent } from "../cloud-event-C1JCc1bH.js";
12
12
  import { t as BetterPostgres } from "../pool-CAu2nLrL.js";
13
- import { R as SupportSessionStore, i as ServerContext, o as ServerOptions } from "../server-CeVeeXwz.js";
13
+ import { V as SupportSessionStore, i as ServerContext, o as ServerOptions } from "../server-ZSJ9rCcV.js";
14
14
  import { s as Impersonator } from "../mfa-Daak8ukG.js";
15
15
  import { n as SessionActor, r as SessionDelegation } from "../actor-CQTlc1Hh.js";
16
- import { r as GuardOptions } from "../respond-DoBijysA.js";
16
+ import { r as GuardOptions } from "../respond-DprrgyXX.js";
17
17
  import { i as AuthorizationProvider } from "../authorization-BFCqamMs.js";
18
18
  import { i as AiTaskRun, o as AiTaskRunner, t as AiTask } from "../ai-tasks-Cd1HMFvB.js";
19
19
  import { D as ResolvedConfig, _ as GeneratorInput, h as Generator, v as GeneratorModel } from "../config-D44Y7PAv.js";
20
20
  import { a as BlockTransportMiddleware } from "../block-hooks-plbZ0AbJ.js";
21
21
  import { t as NotificationChannel } from "../channel-_2Mx1Oyu.js";
22
22
  import { c as WebhookSecretStore, i as WebhookSigner, m as WebhookTransport } from "../signers-4y62_VIi.js";
23
- import { T as WorkflowGraph, i as BuilderStarter, r as BuilderStartCall, s as GraphCompiler } from "../types-BI-0Sl2v.js";
23
+ import { T as WorkflowGraph, i as BuilderStarter, r as BuilderStartCall, s as GraphCompiler } from "../types-AYOvcyep.js";
24
24
  import { t as EveDocumentBackend } from "../eve-gT2Fpjut.js";
25
25
  import { SupabaseClient } from "@supabase/supabase-js";
26
26
  import { Message, StateAdapter } from "chat";
@@ -1,7 +1,7 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { t as AsyncResult, w as ErrorMapper } from "./result-D7y2fT87.js";
3
3
  import { t as BlockTransport } from "./block-transport-DvaoPuZ9.js";
4
- import { i as CredentialRef, r as CredentialProvider } from "./provider-BH5UWZJ6.js";
4
+ import { i as CredentialRef, r as CredentialProvider } from "./provider-D-UEMvSD.js";
5
5
  import { i as CursorPageOptions, r as BlockTemporalOptions } from "./block-helpers-CKtbFcRv.js";
6
6
  //#region src/blocks/ai-providers/types.d.ts
7
7
  /** A tenant's own key for a provider. The key itself stays in the credential provider. */
@@ -1,7 +1,7 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { t as AsyncResult, w as ErrorMapper } from "./result-D7y2fT87.js";
3
3
  import { t as BlockTransport } from "./block-transport-DvaoPuZ9.js";
4
- import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "./provider-BH5UWZJ6.js";
4
+ import { i as CredentialRef, o as CredentialToken, r as CredentialProvider } from "./provider-D-UEMvSD.js";
5
5
  import { r as BlockTemporalOptions } from "./block-helpers-CKtbFcRv.js";
6
6
  import { a as WorkflowSchedule, u as WorkflowStarter } from "./workflows-B0j9WKPu.js";
7
7
  //#region src/blocks/workflow-builder/graph.d.ts
@@ -1,6 +1,6 @@
1
1
  import { t as AsyncResult, w as ErrorMapper } from "./result-D7y2fT87.js";
2
2
  import { t as BlockTransport } from "./block-transport-DvaoPuZ9.js";
3
- import { c as SetCredentialOptions, i as CredentialRef, r as CredentialProvider } from "./provider-BH5UWZJ6.js";
3
+ import { c as SetCredentialOptions, i as CredentialRef, r as CredentialProvider } from "./provider-D-UEMvSD.js";
4
4
  //#region src/credentials/vault.d.ts
5
5
  /** How a request the third party sends is signed with the stored secret. */
6
6
  type VaultInboundScheme = "standard-webhooks" | "hmac-sha256" | "shared-secret";
@@ -1,4 +1,4 @@
1
- import { a as CredentialSubject, r as CredentialProvider } from "../provider-BH5UWZJ6.js";
1
+ import { a as CredentialSubject, r as CredentialProvider } from "../provider-D-UEMvSD.js";
2
2
  //#region src/vercel-connect/vercel-connect.d.ts
3
3
  interface ConnectTokenParams {
4
4
  subject: CredentialSubject;
@@ -1,4 +1,4 @@
1
1
  //#region src/core/version.ts
2
- const VERSION = "0.6.0";
2
+ const VERSION = "0.7.0";
3
3
  //#endregion
4
4
  export { VERSION as t };
@@ -1,5 +1,5 @@
1
1
  import { b as DbError } from "./result-D7y2fT87.js";
2
- import { i as InvalidReason, r as AuthState } from "./resolve-KW8nCeL6.js";
2
+ import { i as InvalidReason, r as AuthState } from "./resolve-ChTYeTEl.js";
3
3
  import { n as AmrEntry, s as Impersonator, t as Aal } from "./mfa-Daak8ukG.js";
4
4
  import { n as SessionActor, r as SessionDelegation } from "./actor-CQTlc1Hh.js";
5
5
  import { JWTClaims, UserClaims } from "@supabase/server";
@@ -2,9 +2,9 @@ import { b as DbError } from "../result-D7y2fT87.js";
2
2
  import { it as QuerySpec } from "../define-CJJkkr1-.js";
3
3
  import { n as TemplateValues } from "../template-CwO38Do8.js";
4
4
  import { t as AuthSnapshot } from "../bind-Bu_ZNa3W.js";
5
- import { t as AuthSession } from "../view-DbxLNu8L.js";
5
+ import { t as AuthSession } from "../view-CF7ihnkg.js";
6
6
  import { S as Topic, f as PresenceMember, u as EventSchemas, w as TopicHandlers, x as SubscriptionStatus } from "../index-DunNRdnT.js";
7
- import { t as SupportView } from "../support-view-33Oi07TT.js";
7
+ import { t as SupportView } from "../support-view-CVOJJLpc.js";
8
8
  import { a as BroadcastOptions, c as LiveCountSource, d as PresenceTopic, f as UseActionOptions, i as ActionState, l as LiveQueryHookOptions, n as ActionInputOf, o as ClientLike, r as ActionResultOf, s as LiveCountHookOptions, t as fieldErrorsOf, u as PresenceHookOptions } from "../field-errors-BFOa7WhB.js";
9
9
  import { SupabaseClient } from "@supabase/supabase-js";
10
10
  import { App, ComputedRef, MaybeRefOrGetter, Ref } from "vue";
@@ -1,5 +1,5 @@
1
- import { T as WorkflowGraph, c as NodeRunRecord, i as BuilderStarter } from "../../types-BI-0Sl2v.js";
2
- import { i as executeGraph, n as GraphStepCall, r as approvalToken, t as GraphRuntime } from "../../executor-D14tGopJ.js";
1
+ import { T as WorkflowGraph, c as NodeRunRecord, i as BuilderStarter } from "../../types-AYOvcyep.js";
2
+ import { i as executeGraph, n as GraphStepCall, r as approvalToken, t as GraphRuntime } from "../../executor-BVBFM86G.js";
3
3
  import { o as WorkflowFn } from "../../workflow-sdk-B3yLD6Br.js";
4
4
  import { World } from "@workflow/world";
5
5
  //#region src/workflow-sdk/builder/builder.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-supabase",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Strongly typed Supabase: generated schema, typed repositories, plugins, auth glue, framework integrations and the better-supabase CLI.",
5
5
  "keywords": [
6
6
  "cli",
@@ -48,6 +48,8 @@
48
48
  "BS112",
49
49
  "BS113",
50
50
  "BS114",
51
+ "BS115",
52
+ "BS116",
51
53
  "BS200",
52
54
  "BS204",
53
55
  "BS205",
@@ -1,2 +0,0 @@
1
- import { n as genCommand } from "./gen-BGLb_zou.js";
2
- export { genCommand };