better-supabase 0.38.0 → 0.40.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.
- package/dist/ai-sdk/agents/index.d.ts +2 -2
- package/dist/{app-tables-D2c0i05-.d.ts → app-tables-jaQmdgAM.d.ts} +1 -1
- package/dist/{authorization-D8CaAdqU.d.ts → authorization-Ul_ApMYW.d.ts} +41 -2
- package/dist/{bind-5vOwNouG.d.ts → bind-B2GlypM6.d.ts} +1 -1
- package/dist/{block-env-hco8BLjC.d.ts → block-env-Bcr-jEA1.d.ts} +3 -3
- package/dist/{block-subjects-CINiJW1R.js → block-subjects-BumEsEYb.js} +17 -6
- package/dist/{block-tables-BsgdB6VG.d.ts → block-tables-nkIjJ1ly.d.ts} +1 -1
- package/dist/blocks/ai-chat/index.d.ts +3 -3
- package/dist/blocks/announcements/index.d.ts +3 -3
- package/dist/blocks/api-keys/index.d.ts +1 -1
- package/dist/blocks/attachments/index.d.ts +1 -1
- package/dist/blocks/audit/index.d.ts +2 -2
- package/dist/blocks/automations/index.d.ts +1 -1
- package/dist/blocks/billing/index.d.ts +1 -1
- package/dist/blocks/bookings/index.d.ts +1 -1
- package/dist/blocks/calendar/index.d.ts +1 -1
- package/dist/blocks/catalog/index.d.ts +25 -5
- package/dist/blocks/catalog/index.js +32 -9
- package/dist/blocks/comments/index.d.ts +4 -4
- package/dist/blocks/entitlements/index.d.ts +2 -2
- package/dist/blocks/expenses/index.js +1 -1
- package/dist/blocks/forms/index.d.ts +1 -1
- package/dist/blocks/inbox/index.d.ts +4 -4
- package/dist/blocks/index.d.ts +1 -1
- package/dist/blocks/invoices/index.d.ts +1 -0
- package/dist/blocks/invoices/index.js +18 -10
- package/dist/blocks/leave/index.d.ts +35 -1
- package/dist/blocks/leave/index.js +17 -2
- package/dist/blocks/ledger/index.d.ts +1 -0
- package/dist/blocks/ledger/index.js +2 -1
- package/dist/blocks/messaging/index.d.ts +4 -4
- package/dist/blocks/mfa/index.d.ts +1 -1
- package/dist/blocks/notifications/index.d.ts +3 -3
- package/dist/blocks/onboarding/index.d.ts +1 -1
- package/dist/blocks/organizations/index.d.ts +2 -2
- package/dist/blocks/permissions/index.d.ts +1 -1
- package/dist/blocks/push/index.d.ts +1 -1
- package/dist/blocks/reactions/index.d.ts +3 -3
- package/dist/blocks/saved-views/index.d.ts +1 -1
- package/dist/blocks/search/index.d.ts +2 -2
- package/dist/blocks/sessions/index.d.ts +1 -1
- package/dist/blocks/settings/index.d.ts +1 -1
- package/dist/blocks/subjects/index.d.ts +1 -1
- package/dist/blocks/tags/index.d.ts +1 -1
- package/dist/blocks/undo/index.d.ts +1 -1
- package/dist/blocks/usage/index.d.ts +1 -1
- package/dist/blocks/workflow-editor/index.d.ts +3 -3
- package/dist/blocks/workflows/index.d.ts +3 -3
- package/dist/claims/index.d.ts +3 -3
- package/dist/cli/{add-7nCSDmpt.js → add-BVs8Ym-K.js} +10 -10
- package/dist/cli/{add-B4tQpnXP.js → add-DP1ct-7e.js} +2 -2
- package/dist/cli/add-DrwQvDYD.js +1 -0
- package/dist/cli/{app-table-files-CtO-zxpO.js → app-table-files-gjMyFqH4.js} +2 -2
- package/dist/cli/{app-tables-B7UzcJ_g.js → app-tables-B26PHK75.js} +2 -2
- package/dist/cli/{backfill-B2nFDXaS.js → backfill-CP_LpTK2.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-DU4iDrYS.js → blocks-CpBLp57s.js} +1 -1
- package/dist/cli/{blocks-BX_6HUQT.js → blocks-Ewp49Kbm.js} +1 -1
- package/dist/cli/{cache-bS5bAoF-.js → cache-BxxtUXVN.js} +1 -1
- package/dist/cli/{codemod-B1sSIE2p.js → codemod-CGCxMEyD.js} +1 -1
- package/dist/cli/{content-mapper-CW6V6VRq.js → content-mapper-DngBJv4r.js} +2 -2
- package/dist/cli/{doctor-Dw2pAf1b.js → doctor-3dcMraMn.js} +17 -17
- package/dist/cli/{gen-BtoSx3go.js → gen-DrXxFwUU.js} +11 -11
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/cli/{init-DZXbrKuJ.js → init-bVKQ4Onb.js} +8 -8
- package/dist/cli/{live-CDFfJcdR.js → live-CHTbAqdS.js} +2 -2
- package/dist/cli/{mcp-BukxvITV.js → mcp-BbmhntrR.js} +2 -2
- package/dist/cli/{metadata-iZizGVuY.js → metadata-BS56R_eb.js} +3 -3
- package/dist/cli/{migrate-DPnnGLzw.js → migrate-DV6a9-jI.js} +1 -1
- package/dist/cli/{migration-safety-COcnZbMO.js → migration-safety-Ce9IQwmJ.js} +1 -1
- package/dist/cli/{migrations-BBt9fmiV.js → migrations-CCCnMhmM.js} +2 -2
- package/dist/cli/{module-migration-tCmPLhQp.js → module-migration-C0cAzpNa.js} +2 -2
- package/dist/cli/powersync-Cxd3a_v_.js +1 -0
- package/dist/cli/{powersync-BRmUJ-uR.js → powersync-OIIpG-y_.js} +3 -3
- package/dist/cli/{print-DdwQNG_e.js → print-BGF3d6O2.js} +2 -2
- package/dist/cli/{providers-CaNg6Ayz.js → providers-fEzlYSLs.js} +1 -1
- package/dist/cli/{prune-workflows-BQQrI3tU.js → prune-workflows-Bx7J5T3a.js} +1 -1
- package/dist/cli/{remove-BEj9YEON.js → remove-Ds4N6WvD.js} +5 -5
- package/dist/cli/{render-UBqU9r44.js → render-BeZToAp-.js} +3 -3
- package/dist/cli/{run-3E_IuJzS.js → run-DR0sTyNQ.js} +9 -9
- package/dist/cli/{run-BXlX9YdD.js → run-iUmtksq5.js} +27 -27
- package/dist/cli/{shared-agrqD28l.js → shared-BCWYvKeR.js} +1 -1
- package/dist/cli/{snapshot-DOXmozSq.js → snapshot-CfgRxTQq.js} +2 -2
- package/dist/cli/{source-BfJprU-6.js → source-Ct3ZCy6p.js} +1 -1
- package/dist/cli/{spec-CgtIHFsl.js → spec-1eEq2P4T.js} +1 -1
- package/dist/cli/{spec-DRpSQGOW.js → spec-9vb-or-k.js} +2 -2
- package/dist/cli/{sql-layout-Cs3FMWcY.js → sql-layout-cYsnyjRf.js} +2 -2
- package/dist/cli/{sync-C_YGIDjk.js → sync-XpcpINnx.js} +4 -4
- package/dist/cli/{upgrade-OG9vaBeX.js → upgrade-A18FY5Iy.js} +2 -2
- package/dist/cli/{upgrade-ByQeJRGU.js → upgrade-DXhyb2jV.js} +5 -5
- package/dist/cli/{version-CF6Yzah0.js → version-PcwPOm4G.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +4 -4
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +4 -4
- package/dist/{config-1-UmQczM.js → config-BRGMUEE2.js} +1 -1
- package/dist/{config-AEB5iNEO.js → config-qqAfS_1_.js} +4 -4
- package/dist/{context-CH5FYnVk.d.ts → context-dHluCmud.d.ts} +1 -1
- package/dist/contract/index.d.ts +3 -3
- package/dist/{controller-CJ6rLnpS.d.ts → controller-BQXgMwWN.d.ts} +1 -1
- package/dist/create/index.d.ts +3 -3
- package/dist/create/index.js +3 -3
- package/dist/create/lite/index.d.ts +3 -3
- package/dist/create/lite/index.js +2 -2
- package/dist/{entitlements-6gODwBSz.d.ts → entitlements-Jh_w-PgX.d.ts} +1 -1
- package/dist/{field-errors-CdSjV9Zo.d.ts → field-errors-DIDkgzFA.d.ts} +4 -4
- package/dist/{index-DnEJVKQ2.d.ts → index-BKz-E3Mv.d.ts} +6 -6
- package/dist/{index-DzLLMmUB.d.ts → index-CpZ4WDDJ.d.ts} +1 -1
- package/dist/{index-vkd2LTt2.d.ts → index-DhcLJAtX.d.ts} +1 -1
- package/dist/{index-BgRl484n.d.ts → index-IrJQqPeQ.d.ts} +1 -1
- package/dist/{index-CrOeAgSh.d.ts → index-g_eFnFqo.d.ts} +2 -2
- package/dist/{index-CgKieWlO.d.ts → index-xmb6YGTg.d.ts} +2 -2
- package/dist/{index-B5awu2SP.d.ts → index-y70eTezB.d.ts} +2 -2
- package/dist/{instances-Bycf_aus.js → instances-DqEZrffE.js} +5 -1
- package/dist/mapper/bin.js +5 -5
- package/dist/mcp/index.d.ts +1 -1
- package/dist/next/index.d.ts +4 -4
- package/dist/{operations-knMnfzgm.d.ts → operations-Sza7UQKP.d.ts} +1 -1
- package/dist/{options-X61tvckX.js → options-C5cLEJEa.js} +4 -1
- package/dist/{options-CS1DA8q9.js → options-CYZH9uxU.js} +2 -1
- package/dist/{options-CEwoGUk_.js → options-DiEoDCtf.js} +4 -1
- package/dist/otel/index.js +4 -4
- package/dist/{permissions-Ed8WvLgQ.d.ts → permissions-COamTJYz.d.ts} +1 -1
- package/dist/{ports-Bnwy2mlR.d.ts → ports-1M1E_r2n.d.ts} +1 -1
- package/dist/powersync/index.d.ts +2 -2
- package/dist/preset/index.d.ts +3 -3
- package/dist/preset/index.js +3 -3
- package/dist/{preset-DkeXFh7e.js → preset-Byz43PrL.js} +2 -2
- package/dist/{project-By0R8ioI.js → project-Y2wW_nr_.js} +5 -5
- package/dist/{push-token-CJbEvwjI.d.ts → push-token-DKImhAca.d.ts} +1 -1
- package/dist/react/index.d.ts +5 -5
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +5 -5
- package/dist/realtime/index.d.ts +3 -3
- package/dist/records/index.d.ts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/solid/index.d.ts +5 -5
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +2 -2
- package/dist/{sql-B2cMvGnZ.js → sql-B1FA8jTx.js} +265 -84
- package/dist/ssr/index.d.ts +1 -1
- package/dist/svelte/index.d.ts +5 -5
- package/dist/{tenant-eZNRWTRJ.d.ts → tenant-DflHpV32.d.ts} +1 -1
- package/dist/testing/index.d.ts +3 -3
- package/dist/testing/index.js +1 -1
- package/dist/{topic-D7F2FBNp.d.ts → topic-CekU96q7.d.ts} +1 -1
- package/dist/{types-bqvFoBhf.d.ts → types-B42S7qfO.d.ts} +2 -2
- package/dist/vue/index.d.ts +5 -5
- package/dist/{watch-topic-BIEaSN0Y.d.ts → watch-topic-DBw411Mq.d.ts} +1 -1
- package/dist/yjs/index.d.ts +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +13 -0
- package/skills/better-supabase/SKILL.md +26 -8
- package/dist/cli/add-CdDneXMN.js +0 -1
- package/dist/cli/powersync-CYLPcJ9G.js +0 -1
|
@@ -93,12 +93,36 @@ interface LeaveFeedEntry {
|
|
|
93
93
|
/** The request's extra columns, with `options.feed.fields`. */
|
|
94
94
|
readonly fields?: Readonly<Record<string, unknown>>;
|
|
95
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* Confidential leave in a feed with `options.feed.confidential: "busy"`: who
|
|
98
|
+
* and when, without the type, amount or fields.
|
|
99
|
+
*/
|
|
100
|
+
interface LeaveFeedBusy {
|
|
101
|
+
readonly id: string;
|
|
102
|
+
readonly userId?: string;
|
|
103
|
+
readonly employeeId?: string;
|
|
104
|
+
/** The employee's name, with `options.feed.names`. */
|
|
105
|
+
readonly name?: string;
|
|
106
|
+
readonly startsOn: Temporal.PlainDate;
|
|
107
|
+
/** Inclusive. */
|
|
108
|
+
readonly endsOn: Temporal.PlainDate;
|
|
109
|
+
readonly partial: LeavePartial;
|
|
110
|
+
readonly startPart?: LeavePartial;
|
|
111
|
+
readonly endPart?: LeavePartial;
|
|
112
|
+
readonly updatedAt: Temporal.Instant;
|
|
113
|
+
}
|
|
96
114
|
/** What a leave feed share link reads. */
|
|
97
115
|
interface LeaveFeed {
|
|
98
116
|
readonly organizationId: string;
|
|
117
|
+
/** With `options.feed.organizationName`. */
|
|
118
|
+
readonly organizationName?: string;
|
|
99
119
|
/** The team of a `leave_team_feed` link. */
|
|
100
120
|
readonly teamId?: string;
|
|
121
|
+
/** The team's name, with `options.feed.teamName`. */
|
|
122
|
+
readonly teamName?: string;
|
|
101
123
|
readonly requests: readonly LeaveFeedEntry[];
|
|
124
|
+
/** With `options.feed.confidential: "busy"`. */
|
|
125
|
+
readonly busy?: readonly LeaveFeedBusy[];
|
|
102
126
|
}
|
|
103
127
|
/** A leave request. `F` types the extra columns the `fields` schema describes. */
|
|
104
128
|
interface LeaveRequest<F extends object = Record<never, never>> {
|
|
@@ -214,6 +238,11 @@ interface LeaveAdjustment {
|
|
|
214
238
|
readonly kind?: "grant" | "adjustment";
|
|
215
239
|
readonly note?: string;
|
|
216
240
|
readonly expiresOn?: Temporal.PlainDate;
|
|
241
|
+
/**
|
|
242
|
+
* The day the entry counts from, such as a backdated correction. Default: the
|
|
243
|
+
* first day of the period. Needs `columns.balances.effectiveOn`.
|
|
244
|
+
*/
|
|
245
|
+
readonly effectiveOn?: Temporal.PlainDate;
|
|
217
246
|
}
|
|
218
247
|
interface LeaveAccrual {
|
|
219
248
|
readonly typeId: string;
|
|
@@ -227,6 +256,11 @@ interface LeaveAccrual {
|
|
|
227
256
|
/** A member gets an accrual with the same key once. */
|
|
228
257
|
readonly idempotencyKey?: string;
|
|
229
258
|
readonly note?: string;
|
|
259
|
+
/**
|
|
260
|
+
* The day the accrual counts from, such as the first of the month. Default:
|
|
261
|
+
* the first day of the period. Needs `columns.balances.effectiveOn`.
|
|
262
|
+
*/
|
|
263
|
+
readonly effectiveOn?: Temporal.PlainDate;
|
|
230
264
|
}
|
|
231
265
|
interface Leave<F extends object = Record<never, never>> {
|
|
232
266
|
/** Needs `leave.manage`; updates the type with the same key. */
|
|
@@ -359,4 +393,4 @@ type LeaveEvents = {
|
|
|
359
393
|
export declare const leaveEvents: Events<LeaveEvents>;
|
|
360
394
|
/** The `leave` block's manifest (ADR 0029). */
|
|
361
395
|
export declare const leaveBlock: BlockOf<"leave", typeof createLeave, LeaveEvents>;
|
|
362
|
-
export { type BlockHooks, type BlockTransport, type BlockTransportMiddleware, type Leave, type LeaveAccrual, type LeaveAdjustedEventData, type LeaveAdjustment, type LeaveBalance, type LeaveEvents, type LeaveFeed, type LeaveFeedEntry, type LeaveLedgerEntry, type LeaveLedgerKind, type LeaveOptions, type LeavePartial, type LeaveRequest, type LeaveRequestEventData, type LeaveRequestInput, type LeaveRequestListOptions, type LeaveRequestUpdate, type LeaveStatus, type LeaveType, type LeaveTypeInput, type LeaveUnit, type RpcClient, dbTransport, extendBlock, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
|
|
396
|
+
export { type BlockHooks, type BlockTransport, type BlockTransportMiddleware, type Leave, type LeaveAccrual, type LeaveAdjustedEventData, type LeaveAdjustment, type LeaveBalance, type LeaveEvents, type LeaveFeed, type LeaveFeedBusy, type LeaveFeedEntry, type LeaveLedgerEntry, type LeaveLedgerKind, type LeaveOptions, type LeavePartial, type LeaveRequest, type LeaveRequestEventData, type LeaveRequestInput, type LeaveRequestListOptions, type LeaveRequestUpdate, type LeaveStatus, type LeaveType, type LeaveTypeInput, type LeaveUnit, type RpcClient, dbTransport, extendBlock, rpcTransport, sqlTransport, withBlockHooks, wrapTransport };
|
|
@@ -185,7 +185,20 @@ function createLeave(options) {
|
|
|
185
185
|
const row = recordOf(value, "leave_feed");
|
|
186
186
|
return {
|
|
187
187
|
organizationId: textOf(row["organizationId"]),
|
|
188
|
+
...optional("organizationName", optionalText(row["organizationName"])),
|
|
188
189
|
...optional("teamId", optionalText(row["teamId"])),
|
|
190
|
+
...optional("teamName", optionalText(row["teamName"])),
|
|
191
|
+
...row["busy"] === void 0 ? {} : { busy: recordsOf(row["busy"], "leave_feed").map((entry) => ({
|
|
192
|
+
id: textOf(entry["id"]),
|
|
193
|
+
...owners(entry),
|
|
194
|
+
...optional("name", optionalText(entry["name"])),
|
|
195
|
+
startsOn: dateOf(entry["startsOn"]),
|
|
196
|
+
endsOn: dateOf(entry["endsOn"]),
|
|
197
|
+
partial: enumOrThrow(entry["partial"], PARTIALS, "leave partial"),
|
|
198
|
+
...optional("startPart", optionalPart(entry["startPart"])),
|
|
199
|
+
...optional("endPart", optionalPart(entry["endPart"])),
|
|
200
|
+
updatedAt: requiredInstant(entry["updatedAt"], "updatedAt")
|
|
201
|
+
})) },
|
|
189
202
|
requests: recordsOf(row["requests"], "leave_feed").map((entry) => ({
|
|
190
203
|
id: textOf(entry["id"]),
|
|
191
204
|
...owners(entry),
|
|
@@ -235,7 +248,8 @@ function createLeave(options) {
|
|
|
235
248
|
kind: adjustment.kind ?? "adjustment",
|
|
236
249
|
note: adjustment.note ?? null,
|
|
237
250
|
...optional("employee_id", adjustment.employeeId),
|
|
238
|
-
...optional("expires_on", adjustment.expiresOn?.toString())
|
|
251
|
+
...optional("expires_on", adjustment.expiresOn?.toString()),
|
|
252
|
+
...optional("effective_on", adjustment.effectiveOn?.toString())
|
|
239
253
|
}, (value) => entryOf(value, "adjust_leave_balance")),
|
|
240
254
|
accrue: (organizationId, accrual) => call("accrue_leave", {
|
|
241
255
|
tenant: organizationId,
|
|
@@ -245,7 +259,8 @@ function createLeave(options) {
|
|
|
245
259
|
user_ids: accrual.userIds ?? null,
|
|
246
260
|
idempotency_key: accrual.idempotencyKey ?? null,
|
|
247
261
|
note: accrual.note ?? null,
|
|
248
|
-
...optional("employee_ids", accrual.employeeIds)
|
|
262
|
+
...optional("employee_ids", accrual.employeeIds),
|
|
263
|
+
...optional("effective_on", accrual.effectiveOn?.toString())
|
|
249
264
|
}, numberOf),
|
|
250
265
|
closePeriod: (organizationId, period) => call("close_leave_year", {
|
|
251
266
|
tenant: organizationId,
|
|
@@ -128,6 +128,7 @@ interface LedgerAccountEntry extends LedgerEntry {
|
|
|
128
128
|
readonly reverses?: string;
|
|
129
129
|
readonly metadata: Readonly<Record<string, unknown>>;
|
|
130
130
|
readonly effectiveAt: Temporal.Instant;
|
|
131
|
+
readonly actorId?: string;
|
|
131
132
|
readonly createdAt: Temporal.Instant;
|
|
132
133
|
}
|
|
133
134
|
type LedgerHoldStatus = "active" | "captured" | "released" | "expired";
|
|
@@ -86,7 +86,8 @@ function accountEntryOf(value, fn) {
|
|
|
86
86
|
...optional("referenceType", optionalText(row["referenceType"])),
|
|
87
87
|
...optional("referenceId", optionalText(row["referenceId"])),
|
|
88
88
|
...optional("memo", optionalText(row["memo"])),
|
|
89
|
-
...optional("reverses", optionalText(row["reverses"]))
|
|
89
|
+
...optional("reverses", optionalText(row["reverses"])),
|
|
90
|
+
...optional("actorId", optionalText(row["actorId"]))
|
|
90
91
|
};
|
|
91
92
|
}
|
|
92
93
|
function holdOf(value, fn) {
|
|
@@ -4,14 +4,14 @@ import { Ct as Events } from "../../events-DddDlibJ.js";
|
|
|
4
4
|
import { _ as ConversationEventData, k as MessageEventData } from "../../index-DjJUamhw.js";
|
|
5
5
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
6
6
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
|
|
7
|
-
import { P as MessagingSqlOptions } from "../../authorization-
|
|
7
|
+
import { P as MessagingSqlOptions } from "../../authorization-Ul_ApMYW.js";
|
|
8
8
|
import { a as isFileAnchor, i as fileAnchor, n as FileAnchor, o as conversationTopic, r as FileAnchorAt, t as AnchorRegion } from "../../anchors-sCLvYj-8.js";
|
|
9
9
|
import { _ as NotifyLevel, a as FollowTarget, b as UnreadCount, c as MessageEdit, d as MessageKind, f as MessageListOptions, g as NewMessage, h as MessagingOptions, i as ConversationSummary, l as MessageEdition, m as Messaging, n as ConversationAccess, o as Message, p as MessageReaction, r as ConversationKind, s as MessageCursor, t as Conversation, u as MessageFile, v as OpenConversation, x as createMessaging, y as RecordMention } from "../../messaging-Bfe4p9Pm.js";
|
|
10
10
|
import { a as ThreadSummary, i as ThreadSummarizer, n as SummaryMessage, o as ThreadSummaryInput, r as SummaryTarget, s as ThreadSummaryOutput, t as SummarizeOptions } from "../../summaries-CUemsYwV.js";
|
|
11
11
|
import { Sn as EntitySchema, c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
12
|
-
import { p as SubscriptionStatus } from "../../topic-
|
|
13
|
-
import { n as TopicPort } from "../../watch-topic-
|
|
14
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
12
|
+
import { p as SubscriptionStatus } from "../../topic-CekU96q7.js";
|
|
13
|
+
import { n as TopicPort } from "../../watch-topic-DBw411Mq.js";
|
|
14
|
+
import { n as Controller, t as AuthPort } from "../../controller-BQXgMwWN.js";
|
|
15
15
|
type MentionScope = "channel" | "here";
|
|
16
16
|
interface ParsedMentions {
|
|
17
17
|
/** Mentioned user ids, lowercase, in order and without repeats. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as DbError, f as Result } from "../../result-DTOQRyGY.js";
|
|
2
2
|
import { t as Aal } from "../../mfa-CM5r904M.js";
|
|
3
3
|
import { r as Block } from "../../define-block-CDw9YGVh.js";
|
|
4
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
4
|
+
import { n as Controller, t as AuthPort } from "../../controller-BQXgMwWN.js";
|
|
5
5
|
import { t as AuthReply } from "../../auth-reply-BMPJQssh.js";
|
|
6
6
|
/** A factor as `auth.mfa.listFactors()` returns it. */
|
|
7
7
|
interface RawMfaFactor {
|
|
@@ -10,9 +10,9 @@ import { t as BlockProblemOptions } from "../../problem-NGBjN-TO.js";
|
|
|
10
10
|
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
11
11
|
import { i as EventSink, t as CloudEvent } from "../../cloud-event-BjgxkfJJ.js";
|
|
12
12
|
import { g as SubscriberPolicy, i as AuthorizationHooks } from "../../authorization-hooks-CR8TVvqo.js";
|
|
13
|
-
import { p as SubscriptionStatus } from "../../topic-
|
|
14
|
-
import { n as TopicPort } from "../../watch-topic-
|
|
15
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
13
|
+
import { p as SubscriptionStatus } from "../../topic-CekU96q7.js";
|
|
14
|
+
import { n as TopicPort } from "../../watch-topic-DBw411Mq.js";
|
|
15
|
+
import { n as Controller, t as AuthPort } from "../../controller-BQXgMwWN.js";
|
|
16
16
|
import { n as VerifyOptions } from "../../signatures-jPr9JXyw.js";
|
|
17
17
|
import { a as NotificationItem, i as NotificationAction, n as NotificationMessage, o as NotificationSubject, r as NotificationSendResult, s as RenderedText, t as NotificationChannel } from "../../channel-B_kufDZy.js";
|
|
18
18
|
import { a as DeliveryTransport, c as UnsubscribeTarget, i as DeliverySendOptions, l as mailHeaders, n as DeliveryMessages, o as EmailMessage, r as DeliveryReceipt, s as MailCategory, t as DeliveryChannel } from "../../delivery-CWcbh87x.js";
|
|
@@ -5,7 +5,7 @@ import { n as BlockOptions } from "../../block-helpers-BNtM1tqy.js";
|
|
|
5
5
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
6
6
|
import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
|
|
7
7
|
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
8
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
8
|
+
import { n as Controller, t as AuthPort } from "../../controller-BQXgMwWN.js";
|
|
9
9
|
type ChecklistScope = "user" | "organization";
|
|
10
10
|
/** One step. `events` completes it when the outbox records one of those types. */
|
|
11
11
|
interface ChecklistStep<Id extends string = string> {
|
|
@@ -7,9 +7,9 @@ import { Ct as Events, W as InvitationEventData, Z as OrganizationEventData, o a
|
|
|
7
7
|
import { r as BlockTemporalOptions } from "../../block-helpers-BNtM1tqy.js";
|
|
8
8
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
9
9
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-CtMsgLQr.js";
|
|
10
|
-
import { N as PlatformRolesOption } from "../../authorization-
|
|
10
|
+
import { N as PlatformRolesOption } from "../../authorization-Ul_ApMYW.js";
|
|
11
11
|
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
12
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
12
|
+
import { n as Controller, t as AuthPort } from "../../controller-BQXgMwWN.js";
|
|
13
13
|
declare const INVITATION_ERRORS: {
|
|
14
14
|
readonly INVITATION_FORBIDDEN: "42501";
|
|
15
15
|
readonly INVITATION_ROLE_FORBIDDEN: "42501";
|
|
@@ -6,7 +6,7 @@ import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTrans
|
|
|
6
6
|
import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
|
|
7
7
|
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
8
8
|
import { B as PermissionFlags, H as can, U as permissionFlags, V as PermissionSet, W as permissionMatches } from "../../index-DAS_5OfK.js";
|
|
9
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
9
|
+
import { n as Controller, t as AuthPort } from "../../controller-BQXgMwWN.js";
|
|
10
10
|
interface PermissionsOptions extends BlockOptions {
|
|
11
11
|
/** `withBlockHooks` hooks around the client's methods. */
|
|
12
12
|
readonly hooks?: BlockHooks<Permissions>;
|
|
@@ -10,7 +10,7 @@ import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTrans
|
|
|
10
10
|
import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
|
|
11
11
|
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
12
12
|
import { n as NotificationMessage, t as NotificationChannel } from "../../channel-B_kufDZy.js";
|
|
13
|
-
import { t as ExpoNotificationsLike } from "../../push-token-
|
|
13
|
+
import { t as ExpoNotificationsLike } from "../../push-token-DKImhAca.js";
|
|
14
14
|
type PushPlatform = "ios" | "android" | "web";
|
|
15
15
|
type PushProvider = "expo" | "fcm" | "apns" | "webpush";
|
|
16
16
|
/**
|
|
@@ -7,9 +7,9 @@ import { a as BlockTenantOptions, r as BlockTemporalOptions } from "../../block-
|
|
|
7
7
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
8
8
|
import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
|
|
9
9
|
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
10
|
-
import { p as SubscriptionStatus } from "../../topic-
|
|
11
|
-
import { n as TopicPort } from "../../watch-topic-
|
|
12
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
10
|
+
import { p as SubscriptionStatus } from "../../topic-CekU96q7.js";
|
|
11
|
+
import { n as TopicPort } from "../../watch-topic-DBw411Mq.js";
|
|
12
|
+
import { n as Controller, t as AuthPort } from "../../controller-BQXgMwWN.js";
|
|
13
13
|
interface ReactionsOptions extends BlockTemporalOptions, BlockTenantOptions {
|
|
14
14
|
readonly transport: BlockTransport;
|
|
15
15
|
/**
|
|
@@ -7,7 +7,7 @@ import { t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
|
7
7
|
import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
|
|
8
8
|
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
9
9
|
import { p as ListQueryInput } from "../../list-query-BkbLV-Yc.js";
|
|
10
|
-
import { n as Controller } from "../../controller-
|
|
10
|
+
import { n as Controller } from "../../controller-BQXgMwWN.js";
|
|
11
11
|
import { t as RankNeighbors } from "../../rank-result-B_xLQCBV.js";
|
|
12
12
|
export declare const SAVED_VIEW_KINDS: readonly ["table", "board", "calendar", "timeline", "gantt"];
|
|
13
13
|
type SavedViewKind = (typeof SAVED_VIEW_KINDS)[number];
|
|
@@ -6,8 +6,8 @@ import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTrans
|
|
|
6
6
|
import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
|
|
7
7
|
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
8
8
|
import { i as EventSink } from "../../cloud-event-BjgxkfJJ.js";
|
|
9
|
-
import { i as KeyboardPort } from "../../ports-
|
|
10
|
-
import { n as Controller } from "../../controller-
|
|
9
|
+
import { i as KeyboardPort } from "../../ports-1M1E_r2n.js";
|
|
10
|
+
import { n as Controller } from "../../controller-BQXgMwWN.js";
|
|
11
11
|
interface SearchOptions extends Pick<BlockOptions, "transport" | "service" | "schema" | "mappers"> {
|
|
12
12
|
/** `withBlockHooks` hooks around the methods. */
|
|
13
13
|
readonly hooks?: BlockHooks<Search>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference lib="esnext.temporal" />
|
|
2
2
|
import { b as DbError, f as Result } from "../../result-DTOQRyGY.js";
|
|
3
3
|
import { r as Block } from "../../define-block-CDw9YGVh.js";
|
|
4
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
4
|
+
import { n as Controller, t as AuthPort } from "../../controller-BQXgMwWN.js";
|
|
5
5
|
import { t as AuthReply } from "../../auth-reply-BMPJQssh.js";
|
|
6
6
|
/** An OAuth client as the Auth OAuth server describes it. */
|
|
7
7
|
interface RawOAuthClient {
|
|
@@ -5,7 +5,7 @@ import { n as BlockOptions } from "../../block-helpers-BNtM1tqy.js";
|
|
|
5
5
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
6
6
|
import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
|
|
7
7
|
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
8
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
8
|
+
import { n as Controller, t as AuthPort } from "../../controller-BQXgMwWN.js";
|
|
9
9
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
10
10
|
/**
|
|
11
11
|
* One setting: its Standard Schema and the value `get` returns when none is
|
|
@@ -2,7 +2,7 @@ import { b as DbError } from "../../result-DTOQRyGY.js";
|
|
|
2
2
|
import { et as RecordRef } from "../../types-BzIYSSWK.js";
|
|
3
3
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
4
4
|
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
5
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
5
|
+
import { n as Controller, t as AuthPort } from "../../controller-BQXgMwWN.js";
|
|
6
6
|
import { t as subjectKey } from "../../block-subjects-Bkieh2Xk.js";
|
|
7
7
|
import { c as Subjects, d as MY_WORK_KINDS, f as MyWorkKind, l as SubjectsOptions, n as MyWorkItem, o as ResolvedSubject, r as MyWorkOptions, s as SUBJECT_TITLES_LIMIT, t as MY_WORK_LIMIT, u as createSubjects } from "../../subjects-CVjAE7nz.js";
|
|
8
8
|
/** The `subjects` block's manifest (ADR 0029). */
|
|
@@ -7,7 +7,7 @@ import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
|
7
7
|
import { n as BlockOptions } from "../../block-helpers-BNtM1tqy.js";
|
|
8
8
|
import { n as BlockHooks } from "../../block-hooks-CtMsgLQr.js";
|
|
9
9
|
import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-CDw9YGVh.js";
|
|
10
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
10
|
+
import { n as Controller, t as AuthPort } from "../../controller-BQXgMwWN.js";
|
|
11
11
|
import { t as RankNeighbors } from "../../rank-result-B_xLQCBV.js";
|
|
12
12
|
interface TagsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockOptions {
|
|
13
13
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
2
2
|
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
3
|
-
import { n as Controller } from "../../controller-
|
|
3
|
+
import { n as Controller } from "../../controller-BQXgMwWN.js";
|
|
4
4
|
import { a as UndoToken, c as undoToken, i as UndoOptions, n as Undo, o as createUndo, r as UndoCall, s as isUndoToken, t as UNDO_FUNCTIONS } from "../../undo-CdKp5_2X.js";
|
|
5
5
|
interface UndoEntry {
|
|
6
6
|
readonly id: number;
|
|
@@ -3,7 +3,7 @@ import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTrans
|
|
|
3
3
|
import { n as StripeSource, t as StripeClient } from "../../stripe-Bl-sjnl6.js";
|
|
4
4
|
import { _ as reportUsageToStripe, a as Usage, c as UsageEntry, d as UsageMeterInfo, f as UsageOptions, g as createUsage, h as UsageStatus, i as ReportUsageResult, l as UsageHistoryEntry, m as UsageRecorded, n as RecordUsageOptions, o as UsageBatchRecorded, p as UsagePeriod, r as ReportUsageOptions, s as UsageBreakdownEntry, t as PurgeUsageOptions, u as UsageHistoryOptions } from "../../usage-DZ8j5Tm_.js";
|
|
5
5
|
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
6
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
6
|
+
import { n as Controller, t as AuthPort } from "../../controller-BQXgMwWN.js";
|
|
7
7
|
/** The `usage` block's manifest (ADR 0029). */
|
|
8
8
|
export declare const usageBlock: BlockOf<"usage", typeof createUsage>;
|
|
9
9
|
interface UsageMeterControllerOptions {
|
|
@@ -5,9 +5,9 @@ import { Ct as Events, gt as WorkflowEventData } from "../../events-DddDlibJ.js"
|
|
|
5
5
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
6
6
|
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
7
7
|
import { g as Workflows, n as WorkflowRun } from "../../workflows-BI4yKqFh.js";
|
|
8
|
-
import { p as SubscriptionStatus } from "../../topic-
|
|
9
|
-
import { n as TopicPort } from "../../watch-topic-
|
|
10
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
8
|
+
import { p as SubscriptionStatus } from "../../topic-CekU96q7.js";
|
|
9
|
+
import { n as TopicPort } from "../../watch-topic-DBw411Mq.js";
|
|
10
|
+
import { n as Controller, t as AuthPort } from "../../controller-BQXgMwWN.js";
|
|
11
11
|
import { $ as diffGraphs, A as WorkflowTriggerKind, B as WorkflowBuiltinNodeKind, C as WorkflowGrantPrincipal, D as WorkflowResolved, E as WorkflowPurpose, F as WorkflowNodeKindRow, G as WorkflowGraph, H as WorkflowConditionOperator, I as defineNodeKind, J as WorkflowGraphNode, K as WorkflowGraphDiff, L as GraphScope, M as WorkflowVersionOwner, N as WorkflowVersionStatus, O as WorkflowStepInfo, P as WorkflowNodeKindDefinition, Q as approved, R as ValidateGraphOptions, S as WorkflowGrantAction, T as WorkflowNodeRunStatus, U as WorkflowFilterCondition, V as WorkflowCondition, W as WorkflowFilterField, X as WorkflowNodeKind, Y as WorkflowNodeCondition, Z as WorkflowNodeKindInfo, _ as WorkflowCredential, a as CredentialInput, at as topologicalOrder, b as WorkflowDefinitionScope, c as GraphCompiler, d as RunInput, et as durationMs, f as TestRunInput, g as WorkflowBuilderHooks, h as WorkflowAlert, i as BuilderStarter, it as matchesFilter, j as WorkflowVersion, k as WorkflowTrigger, l as NodeRunRecord, m as VersionSaveOptions, n as BuilderOptions, nt as filterConditionOf, o as DefinitionInput, ot as validateGraph, p as TriggerInput, q as WorkflowGraphEdge, r as BuilderStartCall, rt as isBuiltinNodeKind, s as GrantInput, t as AlertInput, tt as evaluateCondition, u as PublishOptions, v as WorkflowDefinition, w as WorkflowNodeRun, x as WorkflowEditor, y as WorkflowDefinitionGrant, z as WORKFLOW_BUILTIN_NODE_KINDS } from "../../types-DtiDatvu.js";
|
|
12
12
|
import { a as GraphStepCall, c as graphRunFields, i as GraphRuntime, l as startNodeOf, n as GraphNodeCall, o as GraphSubject, r as GraphRunFields, s as executeGraph, t as GraphApprovalCall } from "../../executor-uNDJBzT8.js";
|
|
13
13
|
/**
|
|
@@ -3,9 +3,9 @@ import { Ct as Events, _t as WorkflowRunEventData } from "../../events-DddDlibJ.
|
|
|
3
3
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-CDmOUuLZ.js";
|
|
4
4
|
import { c as BlockOf } from "../../define-block-CDw9YGVh.js";
|
|
5
5
|
import { _ as WorkflowsHooks, a as WorkflowRunStatus, c as WorkflowScheduleInput, d as WorkflowStartTicket, f as WorkflowStarter, g as Workflows, h as WorkflowTickResult, i as WorkflowRunRecord, l as WorkflowStartCall, m as WorkflowTickOptions, n as WorkflowRun, o as WorkflowRunsQuery, s as WorkflowSchedule, u as WorkflowStartRequest, v as WorkflowsOptions, y as createWorkflows } from "../../workflows-BI4yKqFh.js";
|
|
6
|
-
import { p as SubscriptionStatus } from "../../topic-
|
|
7
|
-
import { n as TopicPort } from "../../watch-topic-
|
|
8
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
6
|
+
import { p as SubscriptionStatus } from "../../topic-CekU96q7.js";
|
|
7
|
+
import { n as TopicPort } from "../../watch-topic-DBw411Mq.js";
|
|
8
|
+
import { n as Controller, t as AuthPort } from "../../controller-BQXgMwWN.js";
|
|
9
9
|
interface WorkflowRunsControllerOptions {
|
|
10
10
|
readonly client: {
|
|
11
11
|
readonly runs: Pick<Workflows["runs"], "list">;
|
package/dist/claims/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { g as isSessionSnapshot, m as SessionSnapshot } from "../resolve-XlMQRUeG.js";
|
|
2
2
|
import { a as PERMISSIONS_TRUNCATED_CLAIM, i as PERMISSIONS_CLAIM, n as FEATURES_CLAIM, o as PERMISSION_CAP_CLAIM, r as MEMBERSHIPS_CLAIM, t as AUTHZ_VERSION_CLAIM } from "../index-IKfbX_39.js";
|
|
3
3
|
import { G as permissionCapOf } from "../types-BdhE7I8Z.js";
|
|
4
|
-
import { i as decodeEntitlementClaim, o as ClaimsRecord, r as MembershipClaim, s as ClaimsSource, t as EntitlementClaimOptions } from "../entitlements-
|
|
5
|
-
import { t as tenantOf } from "../tenant-
|
|
6
|
-
import { n as isTruncated, r as permissionsOf, t as PermissionsOfOptions } from "../permissions-
|
|
4
|
+
import { i as decodeEntitlementClaim, o as ClaimsRecord, r as MembershipClaim, s as ClaimsSource, t as EntitlementClaimOptions } from "../entitlements-Jh_w-PgX.js";
|
|
5
|
+
import { t as tenantOf } from "../tenant-DflHpV32.js";
|
|
6
|
+
import { n as isTruncated, r as permissionsOf, t as PermissionsOfOptions } from "../permissions-COamTJYz.js";
|
|
7
7
|
import { a as isUserSession, i as isApiKeySession, n as AuthSession, r as UserSession, t as ApiKeySession } from "../view-eHgOOyRS.js";
|
|
8
8
|
export { AUTHZ_VERSION_CLAIM, type ApiKeySession, type AuthSession, type ClaimsRecord, type ClaimsSource, type EntitlementClaimOptions, FEATURES_CLAIM, MEMBERSHIPS_CLAIM, type MembershipClaim, PERMISSIONS_CLAIM, PERMISSIONS_TRUNCATED_CLAIM, PERMISSION_CAP_CLAIM, type PermissionsOfOptions, type SessionSnapshot, type UserSession, decodeEntitlementClaim, isApiKeySession, isSessionSnapshot, isTruncated, isUserSession, permissionCapOf, permissionsOf, tenantOf };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { a as list, m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
|
|
2
2
|
import { i as plain } from "./style-B5-nByxb.js";
|
|
3
|
-
import { t as VERSION } from "./version-
|
|
3
|
+
import { t as VERSION } from "./version-PcwPOm4G.js";
|
|
4
4
|
import { a as parseNames, n as CliError } from "./errors-DcJ_PayO.js";
|
|
5
5
|
import { r as readIfExists, t as display } from "./io-CQzy8PEZ.js";
|
|
6
|
-
import { t as loadSnapshot } from "./snapshot-
|
|
6
|
+
import { t as loadSnapshot } from "./snapshot-CfgRxTQq.js";
|
|
7
7
|
import { t as isRecord } from "./guards-DxwRG0Uv.js";
|
|
8
|
-
import { a as toCatalog } from "./source-
|
|
8
|
+
import { a as toCatalog } from "./source-Ct3ZCy6p.js";
|
|
9
9
|
import { a as findConfig, f as INTEGRATIONS, s as loadConfig } from "./config-DrrkMihk.js";
|
|
10
10
|
import { i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
|
|
11
|
-
import { n as adoptionContext } from "./app-tables-
|
|
12
|
-
import { n as dataMigration } from "./migrations-
|
|
13
|
-
import { a as wiringFiles, d as libEntry, f as needsLib, i as wiringChecklist, l as importFrom, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, s as TEMPLATES, u as isIntegration } from "./migration-safety-
|
|
11
|
+
import { n as adoptionContext } from "./app-tables-B26PHK75.js";
|
|
12
|
+
import { n as dataMigration } from "./migrations-CCCnMhmM.js";
|
|
13
|
+
import { a as wiringFiles, d as libEntry, f as needsLib, i as wiringChecklist, l as importFrom, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, s as TEMPLATES, u as isIntegration } from "./migration-safety-Ce9IQwmJ.js";
|
|
14
14
|
import { n as installCommand, t as detectProject } from "./detect-BcUDaO8I.js";
|
|
15
15
|
import { d as setBlockInJson, f as setPathInConfig, h as setPresetInJson, m as setPresetInConfig, n as addBlocksToJson, p as setPathInJson, r as addBlocksToWiring, t as addBlocksToConfig, u as setBlockInConfig } from "./config-edit-C6sQ1MqT.js";
|
|
16
|
-
import { t as syncModules } from "./sync-
|
|
17
|
-
import { t as addModules } from "./add-
|
|
18
|
-
import { t as appTablePlan } from "./app-table-files-
|
|
19
|
-
import { t as blockNames } from "./blocks-
|
|
16
|
+
import { t as syncModules } from "./sync-XpcpINnx.js";
|
|
17
|
+
import { t as addModules } from "./add-DP1ct-7e.js";
|
|
18
|
+
import { t as appTablePlan } from "./app-table-files-gjMyFqH4.js";
|
|
19
|
+
import { t as blockNames } from "./blocks-Ewp49Kbm.js";
|
|
20
20
|
import { i as sourceArgs, n as SOURCE_ARGS } from "./source-args-Bz5QQne2.js";
|
|
21
21
|
import { existsSync } from "node:fs";
|
|
22
22
|
import { dirname, join, posix, resolve } from "node:path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
2
2
|
import { o as providerLabel } from "./authorization-DJkkOjjG.js";
|
|
3
3
|
import { r as applyPlan } from "./files-DQayErI8.js";
|
|
4
|
-
import { i as providerOwnsMemberships, r as layoutFor, t as MEMBERSHIP_CLAIM_MODULES } from "./providers-
|
|
4
|
+
import { i as providerOwnsMemberships, r as layoutFor, t as MEMBERSHIP_CLAIM_MODULES } from "./providers-fEzlYSLs.js";
|
|
5
5
|
import { n as addBlocksToJson, s as keyText, t as addBlocksToConfig } from "./config-edit-C6sQ1MqT.js";
|
|
6
|
-
import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-
|
|
6
|
+
import { a as write, i as unlistedModuleFiles, r as nextStep } from "./sync-XpcpINnx.js";
|
|
7
7
|
import { basename, dirname } from "node:path";
|
|
8
8
|
import { readFile } from "node:fs/promises";
|
|
9
9
|
import { SQL_MODULES, resolveBlocks } from "better-supabase/sql";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as addCommand } from "./add-BVs8Ym-K.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
2
2
|
import { h as subjectTagArgs } from "./config-DrrkMihk.js";
|
|
3
3
|
import { d as readSupabaseToml, n as declarativeSchemasDir } from "./supabase-toml-B6-eEV5p.js";
|
|
4
|
-
import { r as layoutFor } from "./providers-
|
|
5
|
-
import { r as literal } from "./live-
|
|
4
|
+
import { r as layoutFor } from "./providers-fEzlYSLs.js";
|
|
5
|
+
import { r as literal } from "./live-CHTbAqdS.js";
|
|
6
6
|
import { join, resolve, sep } from "node:path";
|
|
7
7
|
import { FIELD_FORMATS } from "better-supabase/config";
|
|
8
8
|
import { APP_TABLES_MODULE, renderBlocks, setTableFeature } from "better-supabase/sql";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as accessProviderMode } from "./authorization-DJkkOjjG.js";
|
|
2
|
-
import { o as writtenByBlocks } from "./sql-layout-
|
|
3
|
-
import { s as qualified, t as catalogOf } from "./shared-
|
|
2
|
+
import { o as writtenByBlocks } from "./sql-layout-cYsnyjRf.js";
|
|
3
|
+
import { s as qualified, t as catalogOf } from "./shared-BCWYvKeR.js";
|
|
4
4
|
import { declaredTables, resolveBlocks } from "better-supabase/sql";
|
|
5
5
|
// src/cli/doctor/app-tables.ts
|
|
6
6
|
/**
|
|
@@ -3,7 +3,7 @@ import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
|
|
|
3
3
|
import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-Tqq3MAqx.js";
|
|
4
4
|
import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-DrrkMihk.js";
|
|
5
5
|
import { t as connect } from "./db-B8zfxjl2.js";
|
|
6
|
-
import { n as ident } from "./live-
|
|
6
|
+
import { n as ident } from "./live-CHTbAqdS.js";
|
|
7
7
|
import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-Bz5QQne2.js";
|
|
8
8
|
// src/cli/commands/backfill.ts
|
|
9
9
|
const DEFAULT_BATCH = 1e3;
|
package/dist/cli/bin.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-
|
|
1
|
+
export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-Ewp49Kbm.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
|
|
2
2
|
import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
3
3
|
import { t as SQL_ARGS } from "./args-_ZVgRBkx.js";
|
|
4
|
-
import { n as listModules, t as printModule } from "./print-
|
|
4
|
+
import { n as listModules, t as printModule } from "./print-BGF3d6O2.js";
|
|
5
5
|
import { t as decodePresetInput } from "./preset-BQnjDCSR.js";
|
|
6
6
|
import { BLOCK_CATEGORIES } from "better-supabase/blocks";
|
|
7
7
|
import { PRESET_CATALOG, PRESET_NAMES, glueCommand } from "better-supabase/preset";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as VERSION } from "./version-
|
|
1
|
+
import { t as VERSION } from "./version-PcwPOm4G.js";
|
|
2
2
|
import { dirname, resolve } from "node:path";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
|
|
@@ -4,7 +4,7 @@ import { n as CliError } from "./errors-DcJ_PayO.js";
|
|
|
4
4
|
import { t as migrateCliCall } from "./moved-CY0yDtAr.js";
|
|
5
5
|
import { t as isRecord$1 } from "./guards-DxwRG0Uv.js";
|
|
6
6
|
import { a as changedFiles, i as changeLines, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
|
|
7
|
-
import { i as schemasDirOf, n as migrationsDir, o as writtenByBlocks } from "./sql-layout-
|
|
7
|
+
import { i as schemasDirOf, n as migrationsDir, o as writtenByBlocks } from "./sql-layout-cYsnyjRf.js";
|
|
8
8
|
import { a as configObject, c as mask, f as setPathInConfig, g as skipSpace, h as setPresetInJson, i as closingIndex, l as properties, m as setPresetInConfig, o as indentAt, p as setPathInJson, t as addBlocksToConfig, v as codeRanges } from "./config-edit-C6sQ1MqT.js";
|
|
9
9
|
import { i as legacyPrefixNames, n as LEGACY_PREFIXES, t as LEGACY_CLAIMS } from "./legacy-prefix-D8Jfku6I.js";
|
|
10
10
|
import { a as REVIEW_0_15, c as renameSubpaths, r as PLUGIN_IMPORT_RENAMES, s as SUBPATH_RENAMES_0_15, t as BLOCK_EXPORT_RENAMES } from "./codemod-block-renames-Dt3X1Wvg.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as readIfExists } from "./io-CQzy8PEZ.js";
|
|
2
|
-
import { t as CACHE_DIR } from "./cache-
|
|
3
|
-
import { x as installedVersion } from "./snapshot-
|
|
2
|
+
import { t as CACHE_DIR } from "./cache-BxxtUXVN.js";
|
|
3
|
+
import { x as installedVersion } from "./snapshot-CfgRxTQq.js";
|
|
4
4
|
import { t as i } from "./jsonc-u_UiXFxs.js";
|
|
5
5
|
import { resolve } from "node:path";
|
|
6
6
|
import { createHash } from "node:crypto";
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { a as list, m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.js";
|
|
2
2
|
import { i as plain } from "./style-B5-nByxb.js";
|
|
3
|
-
import { t as VERSION$1 } from "./version-
|
|
3
|
+
import { t as VERSION$1 } from "./version-PcwPOm4G.js";
|
|
4
4
|
import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
|
|
5
5
|
import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-Tqq3MAqx.js";
|
|
6
6
|
import { a as sameText, t as display } from "./io-CQzy8PEZ.js";
|
|
7
|
-
import { t as CACHE_DIR } from "./cache-
|
|
7
|
+
import { t as CACHE_DIR } from "./cache-BxxtUXVN.js";
|
|
8
8
|
import { t as byCodePoint } from "./compare-yl4sSwVn.js";
|
|
9
|
-
import { C as satisfies, S as peerVersions, c as isSqliteLiteDriver, n as managementTarget, o as snapshotFile, r as openSource, s as liteDriverOf, t as loadSnapshot, u as MetadataRejectedError, x as installedVersion } from "./snapshot-
|
|
10
|
-
import { d as configFor, r as renderFiles, u as notNullTag } from "./render-
|
|
9
|
+
import { C as satisfies, S as peerVersions, c as isSqliteLiteDriver, n as managementTarget, o as snapshotFile, r as openSource, s as liteDriverOf, t as loadSnapshot, u as MetadataRejectedError, x as installedVersion } from "./snapshot-CfgRxTQq.js";
|
|
10
|
+
import { d as configFor, r as renderFiles, u as notNullTag } from "./render-BeZToAp-.js";
|
|
11
11
|
import { o as providerLabel } from "./authorization-DJkkOjjG.js";
|
|
12
12
|
import { t as isRecord } from "./guards-DxwRG0Uv.js";
|
|
13
|
-
import { i as request } from "./source-
|
|
13
|
+
import { i as request } from "./source-Ct3ZCy6p.js";
|
|
14
14
|
import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-DrrkMihk.js";
|
|
15
15
|
import { a as findRepoRoot, c as httpHooks, d as readSupabaseToml, f as schemaPaths, h as tomlGet, i as diffEngine, l as migrationCommand, n as declarativeSchemasDir, p as sqlWorkflow, u as pgFunctionHooks } from "./supabase-toml-B6-eEV5p.js";
|
|
16
16
|
import { t as PROCESS_ENV } from "./env-BCuUsWOh.js";
|
|
17
17
|
import { n as readStackStatus } from "./stack-status-Mxgqb3I4.js";
|
|
18
18
|
import { t as connect } from "./db-B8zfxjl2.js";
|
|
19
|
-
import { a as hasContentMapper, c as supportsContentMappers, i as contentMapperSetup$1, n as TSCONFIG_SNIPPET, o as needsRunExternalCode, t as RUN_EXTERNAL_CODE } from "./content-mapper-
|
|
19
|
+
import { a as hasContentMapper, c as supportsContentMappers, i as contentMapperSetup$1, n as TSCONFIG_SNIPPET, o as needsRunExternalCode, t as RUN_EXTERNAL_CODE } from "./content-mapper-DngBJv4r.js";
|
|
20
20
|
import { c as insideRoot, i as changeLines, r as applyPlan } from "./files-DQayErI8.js";
|
|
21
|
-
import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-
|
|
22
|
-
import { a as permissionCatalogKeys, i as lineOf, l as tableObject, n as exposed, o as policyObject, r as exposedSchemas, s as qualified, t as catalogOf, u as workflowOf } from "./shared-
|
|
23
|
-
import { i as appViewsOf, n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-
|
|
24
|
-
import { _ as BLOCK_PREFIX, a as METADATA_GAPS_TEXT, b as splinterTables, c as entitlementsModule, d as appliesTo, f as escape$3, g as withoutStrings, h as policyHelpers, l as COMMANDS$2, m as functionObject, p as functionBody, s as AUTHORIZATION_RULES, u as RLS_RULES, v as blockTargets, y as advisorRule } from "./run-
|
|
25
|
-
import { a as compiledReadSets } from "./providers-
|
|
26
|
-
import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-
|
|
27
|
-
import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-
|
|
21
|
+
import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-cYsnyjRf.js";
|
|
22
|
+
import { a as permissionCatalogKeys, i as lineOf, l as tableObject, n as exposed, o as policyObject, r as exposedSchemas, s as qualified, t as catalogOf, u as workflowOf } from "./shared-BCWYvKeR.js";
|
|
23
|
+
import { i as appViewsOf, n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-B26PHK75.js";
|
|
24
|
+
import { _ as BLOCK_PREFIX, a as METADATA_GAPS_TEXT, b as splinterTables, c as entitlementsModule, d as appliesTo, f as escape$3, g as withoutStrings, h as policyHelpers, l as COMMANDS$2, m as functionObject, p as functionBody, s as AUTHORIZATION_RULES, u as RLS_RULES, v as blockTargets, y as advisorRule } from "./run-DR0sTyNQ.js";
|
|
25
|
+
import { a as compiledReadSets } from "./providers-fEzlYSLs.js";
|
|
26
|
+
import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-C0cAzpNa.js";
|
|
27
|
+
import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-Ce9IQwmJ.js";
|
|
28
28
|
import { t as orphanedBlockFiles } from "./orphans-CPcR85QN.js";
|
|
29
|
-
import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-
|
|
29
|
+
import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-CHTbAqdS.js";
|
|
30
30
|
import { a as sourceFlags, n as SOURCE_ARGS } from "./source-args-Bz5QQne2.js";
|
|
31
31
|
import { i as PLUGIN_SUBPATH_RENAMES, n as BLOCK_SUBPATH_RENAMES, o as SPEC_SUBPATH_RENAMES, t as BLOCK_EXPORT_RENAMES } from "./codemod-block-renames-Dt3X1Wvg.js";
|
|
32
32
|
import { n as PLATFORM_SCHEMAS } from "./in-stack-diff-huI7fGMX.js";
|
|
33
33
|
import { a as staleVariables, i as stackEnvValues, r as redactValue, t as PREFIX_NAMES } from "./stack-env-BQhbUFa7.js";
|
|
34
34
|
import { a as readSharedMemory, n as listStacks, t as branchName } from "./stacks-C5YL6Un9.js";
|
|
35
|
-
import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-
|
|
35
|
+
import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-BS56R_eb.js";
|
|
36
36
|
import { existsSync } from "node:fs";
|
|
37
37
|
import { dirname, join, relative, resolve } from "node:path";
|
|
38
38
|
import { createHash } from "node:crypto";
|
|
@@ -2763,7 +2763,7 @@ const PLAIN_TYPES = /* @__PURE__ */ new Set([
|
|
|
2763
2763
|
]);
|
|
2764
2764
|
function remedy(block, table, column) {
|
|
2765
2765
|
switch (block) {
|
|
2766
|
-
case "field-encryption": return `set \`encrypted: true\` on
|
|
2766
|
+
case "field-encryption": return `set \`encrypted: true\` on tables.${table.name}.columns.${column} so field-encryption stores it as ciphertext under a Vault data key`;
|
|
2767
2767
|
case "credentials": return "store the secret in Vault with the credentials block and keep a credential_ref jsonb in the row";
|
|
2768
2768
|
default: return block;
|
|
2769
2769
|
}
|
|
@@ -2792,7 +2792,7 @@ const PLAIN_SECRET_RULES = [{
|
|
|
2792
2792
|
code: "BS352",
|
|
2793
2793
|
severity: "warning",
|
|
2794
2794
|
title: "Plain secret column next to a block that encrypts it",
|
|
2795
|
-
description: "One of your tables has a `text`, `varchar` or `json` column whose name ends in `credentials`, `token` or `secret`, and `field-encryption` or `credentials` is installed. The value sits in the row as written, so every role that reads the row, and every backup, has the secret. Mark the column `encrypted: true`
|
|
2795
|
+
description: "One of your tables has a `text`, `varchar` or `json` column whose name ends in `credentials`, `token` or `secret`, and `field-encryption` or `credentials` is installed. The value sits in the row as written, so every role that reads the row, and every backup, has the secret. Mark the column `encrypted: true` under `tables.<name>.columns` in the config (field-encryption), or move the secret to Vault with the credentials block and store a `credential_ref` instead. Block tables, columns already marked `encrypted` and names such as `token_hash` or `secret_id` are not reported.",
|
|
2796
2796
|
check: plainSecretColumns
|
|
2797
2797
|
}];
|
|
2798
2798
|
// src/cli/doctor/policies.ts
|