better-supabase 0.22.0 → 0.23.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 (169) hide show
  1. package/dist/{access-sql-CNIgUqWf.js → access-sql-bjWFUWlk.js} +11 -0
  2. package/dist/ai-sdk/agents/index.d.ts +2 -2
  3. package/dist/{app-tables-BGzdnQm5.d.ts → app-tables-CJO6pWwy.d.ts} +1 -1
  4. package/dist/{authorization-DhoA7dsD.d.ts → authorization-Dtwpjeuz.d.ts} +91 -13
  5. package/dist/{bind-CFsctoFJ.d.ts → bind-DaoTunvE.d.ts} +1 -1
  6. package/dist/{block-env-BrUNeuJ_.d.ts → block-env-DUyo2I5O.d.ts} +3 -3
  7. package/dist/blocks/ai-chat/index.d.ts +3 -3
  8. package/dist/blocks/announcements/index.d.ts +3 -3
  9. package/dist/blocks/api-keys/index.d.ts +1 -1
  10. package/dist/blocks/attachments/index.d.ts +1 -1
  11. package/dist/blocks/audit/index.d.ts +2 -2
  12. package/dist/blocks/automations/index.d.ts +1 -1
  13. package/dist/blocks/billing/index.d.ts +1 -1
  14. package/dist/blocks/bookings/index.d.ts +1 -1
  15. package/dist/blocks/calendar/index.d.ts +5 -1
  16. package/dist/blocks/calendar/index.js +6 -3
  17. package/dist/blocks/comments/index.d.ts +4 -4
  18. package/dist/blocks/custom-fields/index.d.ts +43 -1
  19. package/dist/blocks/custom-fields/index.js +40 -1
  20. package/dist/blocks/drive/index.d.ts +1 -1
  21. package/dist/blocks/employees/index.d.ts +4 -0
  22. package/dist/blocks/employees/index.js +1 -1
  23. package/dist/blocks/entitlements/index.d.ts +2 -2
  24. package/dist/blocks/forms/index.d.ts +1 -1
  25. package/dist/blocks/inbox/index.d.ts +4 -4
  26. package/dist/blocks/index.d.ts +1 -1
  27. package/dist/blocks/messaging/index.d.ts +4 -4
  28. package/dist/blocks/mfa/index.d.ts +1 -1
  29. package/dist/blocks/notifications/index.d.ts +3 -3
  30. package/dist/blocks/onboarding/index.d.ts +1 -1
  31. package/dist/blocks/organizations/index.d.ts +2 -2
  32. package/dist/blocks/permissions/index.d.ts +1 -1
  33. package/dist/blocks/push/index.d.ts +1 -1
  34. package/dist/blocks/reactions/index.d.ts +3 -3
  35. package/dist/blocks/saved-views/index.d.ts +1 -1
  36. package/dist/blocks/search/index.d.ts +4 -2
  37. package/dist/blocks/search/index.js +2 -0
  38. package/dist/blocks/sessions/index.d.ts +1 -1
  39. package/dist/blocks/settings/index.d.ts +1 -1
  40. package/dist/blocks/share-links/index.d.ts +28 -3
  41. package/dist/blocks/share-links/index.js +58 -22
  42. package/dist/blocks/subjects/index.d.ts +1 -1
  43. package/dist/blocks/tags/index.d.ts +18 -3
  44. package/dist/blocks/tags/index.js +15 -2
  45. package/dist/blocks/teams/index.d.ts +26 -4
  46. package/dist/blocks/teams/index.js +10 -3
  47. package/dist/blocks/time-tracking/index.d.ts +18 -0
  48. package/dist/blocks/time-tracking/index.js +12 -3
  49. package/dist/blocks/undo/index.d.ts +1 -1
  50. package/dist/blocks/usage/index.d.ts +1 -1
  51. package/dist/blocks/workflow-editor/index.d.ts +3 -3
  52. package/dist/blocks/workflows/index.d.ts +3 -3
  53. package/dist/cli/{add-BXFzr0Wf.js → add-C7lKQNBL.js} +11 -11
  54. package/dist/cli/{add-B6CQOt3A.js → add-DVHniZOO.js} +2 -2
  55. package/dist/cli/add-vZRn-uH0.js +1 -0
  56. package/dist/cli/{backfill-Dflp6JZk.js → backfill-Lrn-Qp5X.js} +3 -3
  57. package/dist/cli/bin.js +1 -1
  58. package/dist/cli/{blocks-CBH3N7Fy.js → blocks-2Yw9t-_U.js} +1 -1
  59. package/dist/cli/{blocks-FtOIcUbu.js → blocks-BKNd886C.js} +1 -1
  60. package/dist/cli/{cache-61VwYKEv.js → cache-ByhPVMo-.js} +1 -1
  61. package/dist/cli/{codemod-CqPRa25J.js → codemod-C0eXpzFu.js} +1 -1
  62. package/dist/cli/{config-BH0goim0.js → config-BVfeG3A5.js} +37 -5
  63. package/dist/cli/{config-CTRzkX0H.js → config-CeaQMrvS.js} +1 -1
  64. package/dist/cli/{content-mapper-DGQQY5IA.js → content-mapper-qH-_YQ8H.js} +2 -2
  65. package/dist/cli/{db-DCeyHS1y.js → db-DwjyUbAh.js} +2 -2
  66. package/dist/cli/{doctor-BxxSO193.js → doctor-BnxkqXGA.js} +16 -16
  67. package/dist/cli/{gen-D2cqqqTH.js → gen-aERmP3Sw.js} +14 -14
  68. package/dist/cli/index.d.ts +1 -1
  69. package/dist/cli/index.js +7 -7
  70. package/dist/cli/{init-BnG1IE1y.js → init-DWUqVSVW.js} +6 -6
  71. package/dist/cli/{live-D26OWOAb.js → live-KcdTBUij.js} +2 -2
  72. package/dist/cli/{mcp-1l3C_GdB.js → mcp-Dsjjo-LT.js} +2 -2
  73. package/dist/cli/{metadata-DDfPBHwI.js → metadata-DWQSIZ59.js} +3 -3
  74. package/dist/cli/{migration-safety-CQbrfZIx.js → migration-safety-Cy7xlU4G.js} +2 -2
  75. package/dist/cli/{migrations-Ch5Uuvyj.js → migrations-CUjNXokR.js} +1 -1
  76. package/dist/cli/{module-migration-Dul1uTYX.js → module-migration-C6NLY9iZ.js} +2 -2
  77. package/dist/cli/powersync-BOhjVQCb.js +1 -0
  78. package/dist/cli/{powersync-CfT-tRx1.js → powersync-CE_hQdgc.js} +2 -2
  79. package/dist/cli/{print-CbPT4PTL.js → print-Cy_ram9N.js} +2 -2
  80. package/dist/cli/{remove-kDH1yxKZ.js → remove-DmwjzqaW.js} +5 -5
  81. package/dist/cli/{render-0Vd7BaNA.js → render-CF09FCra.js} +7 -4
  82. package/dist/cli/{run-DxTd55Ug.js → run-BYpZ8FjF.js} +25 -25
  83. package/dist/cli/{run-Dafms0D2.js → run-lh-chAJW.js} +8 -8
  84. package/dist/cli/{seed-CdSxunFT.js → seed-BMynpMPy.js} +2 -2
  85. package/dist/cli/seed-CO3j_bly.js +1 -0
  86. package/dist/cli/{shared-BQAMXvwd.js → shared-D05A6t1e.js} +1 -1
  87. package/dist/cli/{snapshot-B8K6gYjA.js → snapshot-BITNbA5V.js} +3 -3
  88. package/dist/cli/{source-CXDyCWz5.js → source-GGJHuzpH.js} +1 -1
  89. package/dist/cli/{source-args-z-jkabmO.js → source-args-CDmmFmFG.js} +1 -1
  90. package/dist/cli/{spec-BGsnTkIl.js → spec-BGcRdlhN.js} +2 -2
  91. package/dist/cli/{spec-CaN7nOqI.js → spec-BjxXWaNQ.js} +1 -1
  92. package/dist/cli/{sql-layout-BGAlcp1U.js → sql-layout-BoD5ynN9.js} +2 -2
  93. package/dist/cli/{sync-CT_5VG0E.js → sync-_QlsTmqu.js} +3 -3
  94. package/dist/cli/{upgrade-frUtPDDb.js → upgrade-Cwhb1M7O.js} +4 -4
  95. package/dist/cli/{upgrade-DA7aO88E.js → upgrade-n9ar1kc4.js} +2 -2
  96. package/dist/cli/{version-CUdPyV6J.js → version-RSpJIWDd.js} +1 -1
  97. package/dist/client/index.d.ts +5 -5
  98. package/dist/client/native/index.d.ts +4 -4
  99. package/dist/config/index.d.ts +4 -4
  100. package/dist/config/index.js +4 -4
  101. package/dist/{config-CH-D2B-4.js → config-RwpFcPq8.js} +3 -3
  102. package/dist/{config-C9AOcQ9S.js → config-vHLJ8SKf.js} +1 -1
  103. package/dist/{context-DEisra3V.d.ts → context-CMf4OKpN.d.ts} +57 -13
  104. package/dist/{controller-B6vWdKSa.d.ts → controller-BGto_kYM.d.ts} +1 -1
  105. package/dist/create/index.d.ts +3 -3
  106. package/dist/create/index.js +3 -3
  107. package/dist/create/lite/index.d.ts +3 -3
  108. package/dist/create/lite/index.js +2 -2
  109. package/dist/{entitlements-BPaPd3MD.d.ts → entitlements-CIhVQ-0u.d.ts} +1 -1
  110. package/dist/{field-errors-DBgDCITw.d.ts → field-errors-BDhPaO0a.d.ts} +4 -4
  111. package/dist/{index-ByF22_C6.d.ts → index--OhYKouV.d.ts} +2 -2
  112. package/dist/{index-CM2aGNRo.d.ts → index-4MStWaeF.d.ts} +185 -7
  113. package/dist/{index-3p_oWttZ.d.ts → index-CFWlHuVY.d.ts} +1 -1
  114. package/dist/{index-CdMZQCYR.d.ts → index-lV43eM34.d.ts} +2 -2
  115. package/dist/{index-C4sjewrr.d.ts → index-ujNqgZ6B.d.ts} +6 -6
  116. package/dist/{instances-CK0jR3Pc.js → instances-BPJSESPx.js} +29 -8
  117. package/dist/mapper/bin.js +6 -6
  118. package/dist/mcp/index.d.ts +1 -1
  119. package/dist/next/index.d.ts +3 -3
  120. package/dist/{operations-DC3wU3Sy.d.ts → operations-qSBBV5vl.d.ts} +1 -1
  121. package/dist/{options-fMxhtuVR.js → options-BJtdsK7b.js} +4 -1
  122. package/dist/{options-DhdazgTZ.js → options-BPp2zzsz.js} +3 -1
  123. package/dist/options-BSsYXjhC.js +9 -0
  124. package/dist/{options-ChiL-4ZS.js → options-D4ADKTKo.js} +3 -1
  125. package/dist/{options-C1-pwEqm.js → options-DztCKw_f.js} +4 -1
  126. package/dist/{options-BfFC4iFE.js → options-jsOCvLUz.js} +3 -1
  127. package/dist/otel/index.js +4 -4
  128. package/dist/{ports-BbBJVyS0.d.ts → ports-DbHiNSAa.d.ts} +1 -1
  129. package/dist/powersync/index.d.ts +2 -2
  130. package/dist/preset/index.d.ts +3 -3
  131. package/dist/preset/index.js +3 -3
  132. package/dist/{preset-CS490mYJ.js → preset-B1xXOJ0T.js} +2 -2
  133. package/dist/{project-NmP1NdLi.js → project-BM6QMtzV.js} +5 -5
  134. package/dist/{push-token-CPJfPFa2.d.ts → push-token-BwF1fyjA.d.ts} +1 -1
  135. package/dist/react/index.d.ts +5 -5
  136. package/dist/react/native/index.d.ts +1 -1
  137. package/dist/react/server.d.ts +5 -5
  138. package/dist/realtime/index.d.ts +3 -3
  139. package/dist/realtime/index.js +1 -1
  140. package/dist/records/index.d.ts +3 -3
  141. package/dist/{resolved-names-DdlJzoMK.js → resolved-names-WzRYhUez.js} +1 -1
  142. package/dist/server/index.d.ts +1 -1
  143. package/dist/solid/index.d.ts +5 -5
  144. package/dist/sql/index.d.ts +5 -5
  145. package/dist/sql/index.js +5 -5
  146. package/dist/{sql-BMXEHTvr.js → sql-CNH8kjLS.js} +2712 -954
  147. package/dist/ssr/index.d.ts +1 -1
  148. package/dist/storage/index.js +1 -1
  149. package/dist/subjects-NomQg6Eg.d.ts +131 -0
  150. package/dist/svelte/index.d.ts +5 -5
  151. package/dist/{tenant-BHvMFNXl.d.ts → tenant-D4BA7XQ-.d.ts} +1 -1
  152. package/dist/testing/index.d.ts +3 -3
  153. package/dist/testing/index.js +2 -2
  154. package/dist/{topic-DClSoqY7.js → topic-F0FKzJyQ.js} +1 -1
  155. package/dist/{topic-gTVjLGTk.d.ts → topic-utZqhw96.d.ts} +1 -1
  156. package/dist/{types-BC1HLEVx.d.ts → types-DLnBJ3ST.d.ts} +2 -2
  157. package/dist/vue/index.d.ts +5 -5
  158. package/dist/{watch-topic-C6HhbnVz.d.ts → watch-topic-B1UCoQfz.d.ts} +1 -1
  159. package/dist/workflow-sdk/world/index.js +1 -1
  160. package/dist/{workflow-sdk-DELaQEp3.js → workflow-sdk-CE8sEK57.js} +38 -1
  161. package/dist/yjs/index.d.ts +1 -1
  162. package/dist/yjs/index.js +1 -1
  163. package/package.json +1 -1
  164. package/schemas/config-v1.json +166 -2
  165. package/dist/cli/add-w_HumDPX.js +0 -1
  166. package/dist/cli/powersync-Vmhw5c1N.js +0 -1
  167. package/dist/cli/seed-CXJvTU5D.js +0 -1
  168. package/dist/options-CTv-xmbA.js +0 -5
  169. package/dist/subjects-DvmQeF_F.d.ts +0 -79
@@ -1,6 +1,6 @@
1
1
  import { C as readSession, D as writeSession, E as sessionEncoding, S as pruneSessionChunks, T as sessionCookieName, _ as StoredSession, a as ResolveAuthOptions, b as clearSessionAtScopes, d as CookieOptions, f as CookieRecord, g as SessionEncoding, h as DEFAULT_SESSION_ENCODING, l as resolveAuth, m as CookieWrite, n as AuthResolver, p as CookieScope, r as AuthState, t as AuthResolution, u as AUTH_CACHE_HEADERS, v as WriteSessionOptions, w as serializeCookie, x as parseCookies, y as applyCookieWrites } from "../resolve-CXX6DHv3.js";
2
2
  import { n as toSession, t as AuthSession } from "../view-DyFdMCqg.js";
3
- import { r as MembershipClaim } from "../entitlements-BPaPd3MD.js";
3
+ import { r as MembershipClaim } from "../entitlements-CIhVQ-0u.js";
4
4
  import { n as RefreshOutcome, r as refreshSession, t as RefreshOptions } from "../refresh-DT_ICaK-.js";
5
5
  import { a as sessionStatus, i as clearSessionCookies, n as SessionStatus, o as authContext, r as SessionStatusOptions, t as ClearSessionCookiesOptions } from "../ended-gUsMZVNg.js";
6
6
  export { AUTH_CACHE_HEADERS, type AuthResolution, type AuthResolver, type AuthSession, type AuthState, type ClearSessionCookiesOptions, type CookieOptions, type CookieRecord, type CookieScope, type CookieWrite, DEFAULT_SESSION_ENCODING, type MembershipClaim, type RefreshOptions, type RefreshOutcome, type ResolveAuthOptions, type SessionEncoding, type SessionStatus, type SessionStatusOptions, type StoredSession, type WriteSessionOptions, applyCookieWrites, authContext, clearSessionAtScopes, clearSessionCookies, parseCookies, pruneSessionChunks, readSession, refreshSession, resolveAuth, serializeCookie, sessionCookieName, sessionEncoding, sessionStatus, toSession, writeSession };
@@ -8,7 +8,7 @@ import { a as spansAllTenants } from "../plugin-AKwwe2gF.js";
8
8
  import { n as decodeJwtPayload } from "../base64-B9Wlsdj7.js";
9
9
  import { a as tenantClaimPaths, o as tenantFrom, s as tenantPathsFor } from "../claims-Bp9My7XP.js";
10
10
  import { a as sqlString, i as sqlIdent, n as parseTemplate, r as slug, t as claimSql } from "../template-Drgg3v2J.js";
11
- import { r as accessCheck } from "../access-sql-CNIgUqWf.js";
11
+ import { r as accessCheck } from "../access-sql-bjWFUWlk.js";
12
12
  import { t as fromStorageError } from "../errors-CyxMxzlu.js";
13
13
  import { a as ttlSeconds, i as TTL, r as transformFor, t as checkVariants } from "../variants-Cy--Ub-a.js";
14
14
  import { i as storageImageUrl, r as storageImageSrcSet } from "../image-url-_d7xYsXK.js";
@@ -0,0 +1,131 @@
1
+ //#region src/config/types/subjects.d.ts
2
+ /**
3
+ * One entity the app's blocks attach to (`subjects.<type>`): a task, a
4
+ * customer, a document. Every subject-bound SQL module reads these entries
5
+ * unless its own `on` says otherwise. ADR 0020.
6
+ */
7
+ interface SubjectConfig {
8
+ /** `schema.table`, or a table in `public`. */
9
+ readonly table: string;
10
+ /** The id column. Defaults to `id`. */
11
+ readonly id?: string;
12
+ /**
13
+ * The id column's type, such as `uuid` or `bigint`, so lookups compare on the
14
+ * primary key's own type. Without it the column is compared as text.
15
+ */
16
+ readonly idType?: string;
17
+ /**
18
+ * The tenant column. Defaults to `organization_id`, or
19
+ * `<blocks.memberships.names.organization>_id` when the tenant is renamed.
20
+ * `false` for a subject without a tenant, which modules that keep a tenant on
21
+ * every row skip.
22
+ */
23
+ readonly tenant?: string | false;
24
+ /** The column `subject_title` returns. */
25
+ readonly title?: string;
26
+ /**
27
+ * The path `subject_url` returns, with `{column}` placeholders:
28
+ * `/tasks/{id}`.
29
+ */
30
+ readonly url?: string;
31
+ /**
32
+ * A permission key per action (`read`, `write`, `share`, `comment`,
33
+ * `moderate`, or an app action) that `can_subject` checks in the subject's
34
+ * tenant, on top of the row being visible to the caller. `read` is also the
35
+ * permission modules check before they attach rows to the subject. An object
36
+ * adds per-row grants: `rows` asks the authorization provider for the rows of
37
+ * that resource the caller holds `key` on, and `owner` names a uuid column
38
+ * whose value is the caller; any form that holds grants the action.
39
+ */
40
+ readonly permissions?: Readonly<Record<string, string | SubjectPermission>>;
41
+ /**
42
+ * A scope the authorization provider declares whose ids are this subject's
43
+ * ids, so a grant on the record counts as well as one on the tenant.
44
+ */
45
+ readonly scope?: string;
46
+ /** Delete module rows for a subject when its row is deleted. */
47
+ readonly cascade?: boolean;
48
+ /**
49
+ * The column holding the soft-delete time. Blocks hide rows where it is set,
50
+ * metrics skip them, and `gen` makes it the table's `trashExtension()`
51
+ * column.
52
+ */
53
+ readonly deletedAt?: string;
54
+ /** The columns a search index reads. */
55
+ readonly search?: SubjectSearch;
56
+ /**
57
+ * The text column holding the subject's rank key, and the column it is
58
+ * grouped by (a board stage), for `move()`. ADR 0021.
59
+ */
60
+ readonly rank?: {
61
+ readonly column: string;
62
+ readonly group?: string;
63
+ };
64
+ /**
65
+ * The columns the versions block snapshots and restores, and whether it
66
+ * snapshots on each change. An app table's `subject.versions` sets it.
67
+ */
68
+ readonly versions?: {
69
+ readonly columns: readonly string[];
70
+ readonly auto: boolean;
71
+ };
72
+ }
73
+ /**
74
+ * An action on a subject granted in more ways than a tenant key: the tenant
75
+ * (and `scope`) key, the provider's per-row grants and the row's owner. Any one
76
+ * that holds grants the action.
77
+ */
78
+ interface SubjectPermission {
79
+ /** The permission key, checked in the tenant and on `scope`. */
80
+ readonly key?: string;
81
+ /**
82
+ * A resource of the authorization provider (its SQL name, such as
83
+ * `file_node`) whose row grants for `key` count, through the provider's
84
+ * `rowsWith` template. Needs `key`.
85
+ */
86
+ readonly rows?: string;
87
+ /** A uuid column of the subject row that grants the action to its user. */
88
+ readonly owner?: string;
89
+ }
90
+ /**
91
+ * What the search index reads for a record type: `title` and `body` columns of
92
+ * the row (or of `from`), a `description` returned with each hit, and an
93
+ * `exclude` column that keeps a row out of search while it is set.
94
+ */
95
+ interface SubjectSearch {
96
+ readonly title?: string;
97
+ readonly body?: readonly string[];
98
+ /** A column whose value each hit returns as `description`. */
99
+ readonly description?: string;
100
+ /**
101
+ * A column that keeps the row out of the index while it is set (not null, and
102
+ * not `false`), such as `archived_at`; other blocks still see the row.
103
+ */
104
+ readonly exclude?: string;
105
+ /**
106
+ * A view or table with one row per record, keyed by `key` (the record's id),
107
+ * that `title`, `body`, `description` and `exclude` read instead of the
108
+ * record's own row.
109
+ */
110
+ readonly from?: {
111
+ readonly view: string;
112
+ readonly key: string;
113
+ };
114
+ /**
115
+ * Tables whose changes re-index the record: `key` is the column holding the
116
+ * record's id, or, with `via`, the column the record's `via` column points
117
+ * at.
118
+ */
119
+ readonly watch?: readonly {
120
+ readonly table: string;
121
+ readonly key: string;
122
+ readonly via?: string;
123
+ }[];
124
+ }
125
+ /**
126
+ * The app's subject types, keyed by type name (lowercase, digits and
127
+ * underscores).
128
+ */
129
+ type SubjectsConfig = Readonly<Record<string, SubjectConfig>>;
130
+ //#endregion
131
+ export { SubjectsConfig as i, SubjectPermission as n, SubjectSearch as r, SubjectConfig as t };
@@ -2,12 +2,12 @@ import { b as DbError } from "../result-DZeA5KS6.js";
2
2
  import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-vcqenSYU.js";
3
3
  import { mt as QuerySpec } from "../define-Lf6rI2QN.js";
4
4
  import { tt as TemplateValues } from "../bucket-vc-QRrva.js";
5
- import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-gTVjLGTk.js";
6
- import { t as AuthSnapshot } from "../bind-CFsctoFJ.js";
5
+ import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-utZqhw96.js";
6
+ import { t as AuthSnapshot } from "../bind-DaoTunvE.js";
7
7
  import { t as AuthSession } from "../view-DyFdMCqg.js";
8
- import { n as Controller } from "../controller-B6vWdKSa.js";
9
- import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-DBgDCITw.js";
10
- import { n as BlockOptions } from "../block-env-BrUNeuJ_.js";
8
+ import { n as Controller } from "../controller-BGto_kYM.js";
9
+ import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-BDhPaO0a.js";
10
+ import { n as BlockOptions } from "../block-env-DUyo2I5O.js";
11
11
  import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-CiVa2G-J.js";
12
12
  import { SupabaseClient } from "@supabase/supabase-js";
13
13
  import { QueryClient } from "@tanstack/query-core";
@@ -1,4 +1,4 @@
1
- import { t as AuthSnapshot } from "./bind-CFsctoFJ.js";
1
+ import { t as AuthSnapshot } from "./bind-DaoTunvE.js";
2
2
  import { t as AuthSession } from "./view-DyFdMCqg.js";
3
3
  //#region src/auth/tenant.d.ts
4
4
  /**
@@ -9,7 +9,7 @@ import { a as BlockTransportMiddleware } from "../block-hooks-DZN2w69m.js";
9
9
  import { a as SessionActor, o as SessionDelegation } from "../actor-CoveJgya.js";
10
10
  import { P as QueueProvider } from "../types-Czq9Xtpa.js";
11
11
  import { n as Embedder } from "../knowledge-F1IhRI4Q.js";
12
- import { a as AuthorizationProvider } from "../authorization-DhoA7dsD.js";
12
+ import { a as AuthorizationProvider } from "../authorization-Dtwpjeuz.js";
13
13
  import { o as StreamStore } from "../store-CpheI-lN.js";
14
14
  import { o as Authorizer } from "../authorizer-B6X09otb.js";
15
15
  import { Qt as CacheAdapter, Y as DbStats, t as BetterSupabase, y as Db } from "../define-Lf6rI2QN.js";
@@ -24,9 +24,9 @@ import { s as SqlClaims, t as BetterPostgres } from "../pool-CrtT4dg-.js";
24
24
  import { C as SupportSessionStore } from "../support-B4ZBVxt3.js";
25
25
  import { r as GuardOptions } from "../respond-oZeJ342J.js";
26
26
  import { l as Transcriber, s as NoteTaker, u as TranscriberInput } from "../recordings-BBSJt_YV.js";
27
- import { n as Controller } from "../controller-B6vWdKSa.js";
27
+ import { n as Controller } from "../controller-BGto_kYM.js";
28
28
  import { c as AiTaskRunner, o as AiTaskRun, r as AiTask } from "../ai-schedules-7uQNMXve.js";
29
- import { Ht as GeneratorModel, Qt as ResolvedConfig, jt as Generator, zt as GeneratorInput } from "../context-DEisra3V.js";
29
+ import { Ht as GeneratorModel, Qt as ResolvedConfig, jt as Generator, zt as GeneratorInput } from "../context-CMf4OKpN.js";
30
30
  import { r as WebhookInput } from "../signatures-Dkx9OE8j.js";
31
31
  import { n as Payment, o as PaymentProvider } from "../payments-BYcN34Fp.js";
32
32
  import { t as NotificationChannel } from "../channel-JcMd5lNP.js";
@@ -6,8 +6,8 @@ import { t as temporal } from "../temporal-required-DcLhnDhQ.js";
6
6
  import { a as ok } from "../result-ntFBW2p2.js";
7
7
  import { t as BetterSupabase } from "../define-D-dLADd5.js";
8
8
  import { a as toBase64Url, r as fromBase64, t as base64ToText } from "../base64-B9Wlsdj7.js";
9
- import { c as resolveConfig } from "../config-CH-D2B-4.js";
10
- import { a as isScopeName, c as templateFunctions, l as templatePlaceholders, n as TEMPLATE_PLACEHOLDERS, s as scopeProblems, u as templateProblems } from "../access-sql-CNIgUqWf.js";
9
+ import { c as resolveConfig } from "../config-RwpFcPq8.js";
10
+ import { a as isScopeName, c as templateFunctions, l as templatePlaceholders, n as TEMPLATE_PLACEHOLDERS, s as scopeProblems, u as templateProblems } from "../access-sql-bjWFUWlk.js";
11
11
  import { r as TRACKING_STATUSES, t as LABEL_FORMATS } from "../statuses-zRcc2TeZ.js";
12
12
  import { i as seedLite, n as loadLite, r as migrateLite, t as LITE_INSTALL } from "../runtime-CoKxZibd.js";
13
13
  import { t as buildApiModel } from "../build-CH2N3Yf0.js";
@@ -3,7 +3,7 @@ import { a as ok, r as err, t as AsyncResult } from "./result-ntFBW2p2.js";
3
3
  import { t as toApp } from "./casing-DdFWEtqr.js";
4
4
  import { a as tenantClaimPaths } from "./claims-Bp9My7XP.js";
5
5
  import { a as sqlString, i as sqlIdent, n as parseTemplate, r as slug, t as claimSql } from "./template-Drgg3v2J.js";
6
- import { a as isScopeName, i as fillTemplate, o as resolveProviderSql, r as accessCheck } from "./access-sql-CNIgUqWf.js";
6
+ import { a as isScopeName, i as fillTemplate, o as resolveProviderSql, r as accessCheck } from "./access-sql-bjWFUWlk.js";
7
7
  import { t as topicStatus } from "./realtime-status-asHvhiOh.js";
8
8
  import { t as refreshRealtimeAuth } from "./auth-DyF_LRxd.js";
9
9
  import { t as joinTopic } from "./channels-CfcFPuo_.js";
@@ -1,6 +1,6 @@
1
1
  import { D as ValidationIssue, b as DbError, t as AsyncResult } from "./result-DZeA5KS6.js";
2
2
  import { D as AccessTopicPolicy, O as AnyFunctions, it as Row, k as AnyModels, ut as TableKey } from "./types-DFdg_4yN.js";
3
- import { t as AuthorizationFunctions } from "./authorization-DhoA7dsD.js";
3
+ import { t as AuthorizationFunctions } from "./authorization-Dtwpjeuz.js";
4
4
  import { t as BetterSupabase } from "./define-Lf6rI2QN.js";
5
5
  import { et as TemplateParams, tt as TemplateValues } from "./bucket-vc-QRrva.js";
6
6
  import { g as SubscriberPolicy, h as SubscriberEvent, i as AuthorizationHooks, m as Subscriber } from "./authorization-hooks-D_pwXlBs.js";
@@ -1,5 +1,5 @@
1
- import { ar as AppColumnAccess, cr as AppColumnType, di as Preset, sr as AppColumnFormat, ur as AppOnDeleteAction, yr as AppTableVersions } from "./context-DEisra3V.js";
2
- import { k as DesignErrorCode } from "./index-3p_oWttZ.js";
1
+ import { ar as AppColumnAccess, cr as AppColumnType, di as Preset, sr as AppColumnFormat, ur as AppOnDeleteAction, yr as AppTableVersions } from "./context-CMf4OKpN.js";
2
+ import { k as DesignErrorCode } from "./index-CFWlHuVY.js";
3
3
  //#region src/create/issue.d.ts
4
4
  /** Where in the project pipeline an issue came from. */
5
5
  type IssueSource = "design" | "rules" | "sql" | "verifier" | "plan";
@@ -2,12 +2,12 @@ import { b as DbError } from "../result-DZeA5KS6.js";
2
2
  import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-vcqenSYU.js";
3
3
  import { mt as QuerySpec } from "../define-Lf6rI2QN.js";
4
4
  import { tt as TemplateValues } from "../bucket-vc-QRrva.js";
5
- import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-gTVjLGTk.js";
6
- import { t as AuthSnapshot } from "../bind-CFsctoFJ.js";
5
+ import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-utZqhw96.js";
6
+ import { t as AuthSnapshot } from "../bind-DaoTunvE.js";
7
7
  import { t as AuthSession } from "../view-DyFdMCqg.js";
8
- import { n as Controller } from "../controller-B6vWdKSa.js";
9
- import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-DBgDCITw.js";
10
- import { n as BlockOptions } from "../block-env-BrUNeuJ_.js";
8
+ import { n as Controller } from "../controller-BGto_kYM.js";
9
+ import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-BDhPaO0a.js";
10
+ import { n as BlockOptions } from "../block-env-DUyo2I5O.js";
11
11
  import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-CiVa2G-J.js";
12
12
  import { t as SupportView } from "../support-view-BYOgwXsJ.js";
13
13
  import { SupabaseClient } from "@supabase/supabase-js";
@@ -1,4 +1,4 @@
1
- import { c as RealtimeClient, p as SubscriptionStatus } from "./topic-gTVjLGTk.js";
1
+ import { c as RealtimeClient, p as SubscriptionStatus } from "./topic-utZqhw96.js";
2
2
  //#region src/realtime/watch-topic.d.ts
3
3
  interface TopicWatch {
4
4
  readonly onMessage: (event: string, payload: unknown) => void;
@@ -1,7 +1,7 @@
1
1
  import { n as dbError } from "../../errors-BVFgt8BZ.js";
2
2
  import { o as problemResponse } from "../../problem-Bf0cJ7tk.js";
3
3
  import { i as sqlIdent } from "../../template-Drgg3v2J.js";
4
- import { i as WORLD_POSTGRES_VERSION, r as WORKFLOW_VAULT_SECRETS } from "../../workflow-sdk-DELaQEp3.js";
4
+ import { i as WORLD_POSTGRES_VERSION, r as WORKFLOW_VAULT_SECRETS } from "../../workflow-sdk-CE8sEK57.js";
5
5
  import { n as hmacHex, r as timingSafeEqual } from "../../hmac-B3CTTlfv.js";
6
6
  import { t as watchPoolErrors } from "../../pool-errors-JUBcGrre.js";
7
7
  import { n as memoized } from "../../optional-peer-C1NbBRJm.js";
@@ -32,6 +32,20 @@ const writeExtraColumns = (table, extras, source, where, into) => extras.length
32
32
  from jsonb_populate_record(null::${table}, (select coalesce(jsonb_object_agg(e.key, e.value), '{}') from jsonb_each(${source}) e where e.key in (${extras.map((extra) => sqlString(extra.name)).join(", ")}))) r
33
33
  where ${where}${into === void 0 ? "" : `\n returning x.* into ${into}`};`;
34
34
  /**
35
+ * The extra columns an insert sets itself: those whose type is `not null`
36
+ * without a `default`, which the update `writeExtraColumns` runs after the
37
+ * insert would set too late. `columns` and `values` are `, a, b` lists for the
38
+ * insert, reading `source` (a `jsonb` object keyed by column name); both are
39
+ * empty when no extra column needs it, so the insert is unchanged.
40
+ */
41
+ const insertExtraColumns = (table, extras, source) => {
42
+ const required = extras.filter((extra) => /\bnot\s+null\b/iu.test(extra.type) && !/\bdefault\b/iu.test(extra.type));
43
+ return {
44
+ columns: required.map((extra) => `, ${extra.ident}`).join(""),
45
+ values: required.map((extra) => `, (jsonb_populate_record(null::${table}, coalesce(${source}, '{}'::jsonb))).${extra.ident}`).join("")
46
+ };
47
+ };
48
+ /**
35
49
  * `json` (a `jsonb` expression of row `alias`) with the extra columns under
36
50
  * `fields`, or `json` itself without any.
37
51
  */
@@ -1014,6 +1028,29 @@ const DEFAULT_ROLES = {
1014
1028
  ],
1015
1029
  viewer: ["organization.read"]
1016
1030
  };
1031
+ /** Actions a module checks only when `blocks.<module>.permissions` names a key. */
1032
+ const OPTIONAL_MODULE_PERMISSIONS = {
1033
+ organizations: {
1034
+ create: "platform",
1035
+ updatePlatform: "platform",
1036
+ deletePlatform: "platform",
1037
+ updateRolePlatform: "platform",
1038
+ removeMemberPlatform: "platform"
1039
+ },
1040
+ audit: { reveal: "tenant" },
1041
+ "data-lifecycle": { deletePlatform: "platform" },
1042
+ tags: {
1043
+ create: "tenant",
1044
+ update: "tenant",
1045
+ delete: "tenant"
1046
+ },
1047
+ teams: {
1048
+ create: "tenant",
1049
+ update: "tenant",
1050
+ delete: "tenant",
1051
+ members: "tenant"
1052
+ }
1053
+ };
1017
1054
  /**
1018
1055
  * The permission key each operation checks by default, keyed
1019
1056
  * `<module>.<action>`. `blocks.<name>.permissions` renames a key per module,
@@ -2445,4 +2482,4 @@ const WORKFLOW_SDK_WORLD = {
2445
2482
  data
2446
2483
  };
2447
2484
  //#endregion
2448
- export { quotedTable as $, addNotNullCheck as A, extraFieldsArg as B, SCHEMA as C, addCheck as D, activeMembership as E, defaultPartitionName as F, lockTable as G, fail as H, disabledHelpers as I, membershipSuspended as J, memberAddedRecord as K, disabledHelpersNeedLaterTables as L, columnRef as M, columnsObject as N, addExtraColumns as O, defaultPartition as P, pageSize as Q, dropExpiredPartitions as R, PARTITION_VARIABLES as S, accessDefinesDisabledHelpers as T, jsonSchemaChecks as U, extraFieldsJson as V, jwtClaim as W, organizationMissing as X, notNullCheckName as Y, ownRowPolicies as Z, rolesOf as _, DEFAULT_ROLES as a, revokeTable as at, MONTHLY_PARTITIONS as b, accessModel as c, serviceOnly as ct, moduleOperations as d, splitTable as dt, raise as et, modulePermission as f, triggerGrant as ft, roleScopeIs as g, writeExtraColumns as gt, roleNames as h, withExtraFields as ht, WORLD_POSTGRES_VERSION as i, replaceColumnCheck as it, batchFunction as j, addForeignKey as k, hasPlatformRoles as l, sha256Hex as lt, providerPlatformRoles as m, userGrant as mt, WORKFLOW_SDK_WORLD as n, registerPartitions as nt, MODULE_PERMISSION_SCOPES as o, schemaPreamble as ot, modulePermissionKey as p, updatedAt as pt, membershipDisabledAt as q, WORKFLOW_VAULT_SECRETS as r, renameSql as rt, OPERATIONS as s, serviceGrant as st, WORKFLOW_DELIVERY_QUEUE as t, recordTrigger as tt, isOperationModule as u, shortHash as ut, tenantScope as v, SERVICE_CALLER as w, NOTHING as x, EQUIVALENT_TRIGGERS as y, ensureCheck as z };
2485
+ export { ownRowPolicies as $, addForeignKey as A, ensureCheck as B, PARTITION_VARIABLES as C, activeMembership as D, accessDefinesDisabledHelpers as E, defaultPartition as F, jsonSchemaChecks as G, extraFieldsJson as H, defaultPartitionName as I, memberAddedRecord as J, jwtClaim as K, disabledHelpers as L, batchFunction as M, columnRef as N, addCheck as O, columnsObject as P, organizationMissing as Q, disabledHelpersNeedLaterTables as R, NOTHING as S, SERVICE_CALLER as T, fail as U, extraFieldsArg as V, insertExtraColumns as W, membershipSuspended as X, membershipDisabledAt as Y, notNullCheckName as Z, roleScopeIs as _, withExtraFields as _t, DEFAULT_ROLES as a, renameSql as at, EQUIVALENT_TRIGGERS as b, OPTIONAL_MODULE_PERMISSIONS as c, schemaPreamble as ct, isOperationModule as d, sha256Hex as dt, pageSize as et, moduleOperations as f, shortHash as ft, roleNames as g, userGrant as gt, providerPlatformRoles as h, updatedAt as ht, WORLD_POSTGRES_VERSION as i, registerPartitions as it, addNotNullCheck as j, addExtraColumns as k, accessModel as l, serviceGrant as lt, modulePermissionKey as m, triggerGrant as mt, WORKFLOW_SDK_WORLD as n, raise as nt, MODULE_PERMISSION_SCOPES as o, replaceColumnCheck as ot, modulePermission as p, splitTable as pt, lockTable as q, WORKFLOW_VAULT_SECRETS as r, recordTrigger as rt, OPERATIONS as s, revokeTable as st, WORKFLOW_DELIVERY_QUEUE as t, quotedTable as tt, hasPlatformRoles as u, serviceOnly as ut, rolesOf as v, writeExtraColumns as vt, SCHEMA as w, MONTHLY_PARTITIONS as x, tenantScope as y, dropExpiredPartitions as z };
@@ -1,5 +1,5 @@
1
1
  import { t as AsyncResult } from "../result-DZeA5KS6.js";
2
- import { c as RealtimeClient, r as PresenceMember } from "../topic-gTVjLGTk.js";
2
+ import { c as RealtimeClient, r as PresenceMember } from "../topic-utZqhw96.js";
3
3
  import { a as DocumentSuggestion, d as OpenedDocument, l as Documents, r as DocumentRef, t as DecidedSuggestion } from "../documents-Cup1rpjF.js";
4
4
  //#region src/yjs/yjs.d.ts
5
5
  type PresenceState = Readonly<Record<string, unknown>>;
package/dist/yjs/index.js CHANGED
@@ -2,7 +2,7 @@ import { n as isRecord } from "../guards-6F2bCtQR.js";
2
2
  import { a as ok, r as err, t as AsyncResult } from "../result-ntFBW2p2.js";
3
3
  import { i as toBase64, r as fromBase64 } from "../base64-B9Wlsdj7.js";
4
4
  import { t as importOptionalPeer } from "../optional-peer-C1NbBRJm.js";
5
- import { t as defineTopic } from "../topic-DClSoqY7.js";
5
+ import { t as defineTopic } from "../topic-F0FKzJyQ.js";
6
6
  //#region src/yjs/yjs.ts
7
7
  function isYjs(value) {
8
8
  return isRecord(value) && typeof value["applyUpdate"] === "function" && typeof value["mergeUpdates"] === "function";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-supabase",
3
- "version": "0.22.0",
3
+ "version": "0.23.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",
@@ -846,6 +846,12 @@
846
846
  "permitted": {
847
847
  "type": "string"
848
848
  },
849
+ "rowsWith": {
850
+ "type": "string"
851
+ },
852
+ "rowsWithFor": {
853
+ "type": "string"
854
+ },
849
855
  "portalSubjects": {
850
856
  "type": "string"
851
857
  },
@@ -1377,7 +1383,26 @@
1377
1383
  "permissions": {
1378
1384
  "type": "object",
1379
1385
  "additionalProperties": {
1380
- "type": "string"
1386
+ "anyOf": [
1387
+ {
1388
+ "type": "string"
1389
+ },
1390
+ {
1391
+ "type": "object",
1392
+ "properties": {
1393
+ "key": {
1394
+ "type": "string"
1395
+ },
1396
+ "rows": {
1397
+ "type": "string"
1398
+ },
1399
+ "owner": {
1400
+ "type": "string"
1401
+ }
1402
+ },
1403
+ "additionalProperties": false
1404
+ }
1405
+ ]
1381
1406
  },
1382
1407
  "description": "A permission key per action that `can_subject` checks in the subject's tenant."
1383
1408
  },
@@ -1404,6 +1429,44 @@
1404
1429
  "items": {
1405
1430
  "type": "string"
1406
1431
  }
1432
+ },
1433
+ "description": {
1434
+ "type": "string"
1435
+ },
1436
+ "exclude": {
1437
+ "type": "string"
1438
+ },
1439
+ "from": {
1440
+ "type": "object",
1441
+ "properties": {
1442
+ "view": {
1443
+ "type": "string"
1444
+ },
1445
+ "key": {
1446
+ "type": "string"
1447
+ }
1448
+ },
1449
+ "required": ["view", "key"],
1450
+ "additionalProperties": false
1451
+ },
1452
+ "watch": {
1453
+ "type": "array",
1454
+ "items": {
1455
+ "type": "object",
1456
+ "properties": {
1457
+ "table": {
1458
+ "type": "string"
1459
+ },
1460
+ "key": {
1461
+ "type": "string"
1462
+ },
1463
+ "via": {
1464
+ "type": "string"
1465
+ }
1466
+ },
1467
+ "required": ["table", "key"],
1468
+ "additionalProperties": false
1469
+ }
1407
1470
  }
1408
1471
  },
1409
1472
  "additionalProperties": false
@@ -3095,6 +3158,35 @@
3095
3158
  }
3096
3159
  }
3097
3160
  },
3161
+ "values": {
3162
+ "type": "object",
3163
+ "additionalProperties": {
3164
+ "type": "object",
3165
+ "additionalProperties": {
3166
+ "type": "object",
3167
+ "additionalProperties": {
3168
+ "anyOf": [
3169
+ {
3170
+ "anyOf": [
3171
+ {
3172
+ "type": "string"
3173
+ },
3174
+ {
3175
+ "type": "array",
3176
+ "items": {
3177
+ "type": "string"
3178
+ }
3179
+ }
3180
+ ]
3181
+ },
3182
+ {
3183
+ "type": "null"
3184
+ }
3185
+ ]
3186
+ }
3187
+ }
3188
+ }
3189
+ },
3098
3190
  "idType": {
3099
3191
  "type": "string"
3100
3192
  },
@@ -3281,6 +3373,35 @@
3281
3373
  }
3282
3374
  }
3283
3375
  },
3376
+ "values": {
3377
+ "type": "object",
3378
+ "additionalProperties": {
3379
+ "type": "object",
3380
+ "additionalProperties": {
3381
+ "type": "object",
3382
+ "additionalProperties": {
3383
+ "anyOf": [
3384
+ {
3385
+ "anyOf": [
3386
+ {
3387
+ "type": "string"
3388
+ },
3389
+ {
3390
+ "type": "array",
3391
+ "items": {
3392
+ "type": "string"
3393
+ }
3394
+ }
3395
+ ]
3396
+ },
3397
+ {
3398
+ "type": "null"
3399
+ }
3400
+ ]
3401
+ }
3402
+ }
3403
+ }
3404
+ },
3284
3405
  "idType": {
3285
3406
  "type": "string"
3286
3407
  },
@@ -4169,6 +4290,12 @@
4169
4290
  "additionalProperties": {
4170
4291
  "type": "string"
4171
4292
  }
4293
+ },
4294
+ "calendarExtraColumns": {
4295
+ "type": "object",
4296
+ "additionalProperties": {
4297
+ "type": "string"
4298
+ }
4172
4299
  }
4173
4300
  }
4174
4301
  }
@@ -4690,6 +4817,18 @@
4690
4817
  "additionalProperties": {
4691
4818
  "type": "string"
4692
4819
  }
4820
+ },
4821
+ "privateDetailsExtraColumns": {
4822
+ "type": "object",
4823
+ "additionalProperties": {
4824
+ "type": "string"
4825
+ }
4826
+ },
4827
+ "contractExtraColumns": {
4828
+ "type": "object",
4829
+ "additionalProperties": {
4830
+ "type": "string"
4831
+ }
4693
4832
  }
4694
4833
  }
4695
4834
  }
@@ -6246,6 +6385,14 @@
6246
6385
  "additionalProperties": {
6247
6386
  "type": "string"
6248
6387
  }
6388
+ },
6389
+ "tokenHash": {
6390
+ "type": "boolean",
6391
+ "default": false
6392
+ },
6393
+ "fullRows": {
6394
+ "type": "boolean",
6395
+ "default": false
6249
6396
  }
6250
6397
  }
6251
6398
  }
@@ -6406,6 +6553,10 @@
6406
6553
  "additionalProperties": {
6407
6554
  "type": "string"
6408
6555
  }
6556
+ },
6557
+ "patch": {
6558
+ "type": "boolean",
6559
+ "default": false
6409
6560
  }
6410
6561
  }
6411
6562
  }
@@ -6454,6 +6605,14 @@
6454
6605
  "additionalProperties": {
6455
6606
  "type": "string"
6456
6607
  }
6608
+ },
6609
+ "patch": {
6610
+ "type": "boolean",
6611
+ "default": false
6612
+ },
6613
+ "restore": {
6614
+ "type": "boolean",
6615
+ "default": false
6457
6616
  }
6458
6617
  }
6459
6618
  }
@@ -6495,7 +6654,12 @@
6495
6654
  "additionalProperties": {
6496
6655
  "type": "string"
6497
6656
  }
6498
- }
6657
+ },
6658
+ "approvals": {
6659
+ "type": "boolean",
6660
+ "default": true
6661
+ },
6662
+ "userTimeZone": {}
6499
6663
  }
6500
6664
  }
6501
6665
  }
@@ -1 +0,0 @@
1
- export { t as addCommand } from "./add-BXFzr0Wf.js";
@@ -1 +0,0 @@
1
- export { t as powersyncStreamsCommand } from "./powersync-CfT-tRx1.js";
@@ -1 +0,0 @@
1
- export { n as seedCommand } from "./seed-CdSxunFT.js";
@@ -1,5 +0,0 @@
1
- import { n as blockOptions, r as option } from "./options-CfVPctAw.js";
2
- //#region src/blocks/share-links/options.ts
3
- const shareLinksSqlOptions = blockOptions({ extraColumns: option.extraColumns() });
4
- //#endregion
5
- export { shareLinksSqlOptions as t };