better-supabase 0.33.0 → 0.34.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-IrglDJCs.d.ts → app-tables-Don-aNOB.d.ts} +1 -1
- package/dist/{authorization-BlmDNI2b.d.ts → authorization-DpVtxuKM.d.ts} +16 -1
- package/dist/{bind-DP-KLgYI.d.ts → bind-BA05aoY9.d.ts} +1 -1
- package/dist/{block-env-CJ38ZSTP.d.ts → block-env-UX42PHLP.d.ts} +3 -3
- package/dist/{block-tables-CQTU71zn.d.ts → block-tables-Bre1zjau.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/comments/index.d.ts +4 -4
- package/dist/blocks/drive/index.js +1 -1
- package/dist/blocks/entitlements/index.d.ts +2 -2
- 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/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-C13ZqJ_N.js +1 -0
- package/dist/cli/{add-BDLLVLI8.js → add-DoEtJhZG.js} +2 -2
- package/dist/cli/{add-D2pKTbPw.js → add-THXE7juv.js} +9 -9
- package/dist/cli/{app-table-files-CimWi_eh.js → app-table-files-BqLd5TuX.js} +2 -2
- package/dist/cli/{backfill-B1xAsdL4.js → backfill-D-2W0fNT.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-rBeis04I.js → blocks-BVU_FoLo.js} +1 -1
- package/dist/cli/{blocks-DtZtn-R4.js → blocks-XwUHeyUH.js} +1 -1
- package/dist/cli/{cache-CvBRwv02.js → cache-D4nwCBXc.js} +1 -1
- package/dist/cli/{codemod-DYbVbJ-e.js → codemod-Dh4lf_k4.js} +1 -1
- package/dist/cli/{content-mapper-DrhtDsAm.js → content-mapper-CwFH_PEn.js} +2 -2
- package/dist/cli/{doctor-Dn4TzGmw.js → doctor-CyAMbZ_s.js} +14 -14
- package/dist/cli/{gen-BbeS0KgF.js → gen-EAUNnUY7.js} +11 -11
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/cli/{init-C30xdMSs.js → init-BRmmmGHJ.js} +8 -8
- package/dist/cli/{live-Ctc8Qh9Y.js → live-CV9mn-xC.js} +2 -2
- package/dist/cli/{mcp-5J0kUOtD.js → mcp-CnaxcLWa.js} +2 -2
- package/dist/cli/{metadata-DxhUNctA.js → metadata-CFQGBR5E.js} +3 -3
- package/dist/cli/{migrate-ockrh3UX.js → migrate-z5oHDGNs.js} +1 -1
- package/dist/cli/{migration-safety-CLrqC0D-.js → migration-safety-BtAPMEZa.js} +1 -1
- package/dist/cli/{migrations-CZTg2UJM.js → migrations-CNa62JSi.js} +2 -2
- package/dist/cli/{module-migration-BptQzmj2.js → module-migration-CKJ8kRm1.js} +2 -2
- package/dist/cli/{powersync-DIvsipKr.js → powersync-BgoAWeRT.js} +3 -3
- package/dist/cli/powersync-DoCruiOt.js +1 -0
- package/dist/cli/{print-DdHt8xCc.js → print-CoqKHoy0.js} +2 -2
- package/dist/cli/{providers-k-1cEna6.js → providers-CfbFxUOQ.js} +1 -1
- package/dist/cli/{prune-workflows-Ddv-GfkO.js → prune-workflows-BigCoXLw.js} +1 -1
- package/dist/cli/{remove-DEEQDoc7.js → remove-C9zwn-Kk.js} +5 -5
- package/dist/cli/{render-SjSVz8yK.js → render-DQCU_kBW.js} +3 -3
- package/dist/cli/{run-Ixt9mEb6.js → run-CVaBuT18.js} +25 -25
- package/dist/cli/{run-DdhIK7-K.js → run-DOD00FFl.js} +8 -8
- package/dist/cli/{shared-p6sxli_5.js → shared-COtj7l3r.js} +1 -1
- package/dist/cli/{snapshot-Dd_8B9g-.js → snapshot-BvlEmTB0.js} +2 -2
- package/dist/cli/{source-BYvVe_Es.js → source-BhZRCitG.js} +1 -1
- package/dist/cli/{spec-liRzcZTa.js → spec-Bo2wIViH.js} +1 -1
- package/dist/cli/{spec-BxQgllJY.js → spec-DsMWuJLv.js} +2 -2
- package/dist/cli/{sql-layout-DHwiUOaD.js → sql-layout-CA7xgRjR.js} +2 -2
- package/dist/cli/{sync-CreQWj53.js → sync-D9xSGdzO.js} +4 -4
- package/dist/cli/{upgrade-U7IKj45h.js → upgrade-XK_CQKVJ.js} +2 -2
- package/dist/cli/{upgrade-3NQOUO1_.js → upgrade-Ykf0LLEB.js} +5 -5
- package/dist/cli/{version-mBwP-aMG.js → version-Dfdz7KSh.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/{context-D7jICqdN.d.ts → context-BGC0J3t9.d.ts} +1 -1
- package/dist/contract/index.d.ts +3 -3
- package/dist/{controller-DxtxeYdf.d.ts → controller-CQrkLoRX.d.ts} +1 -1
- package/dist/create/index.d.ts +3 -3
- package/dist/create/index.js +1 -1
- package/dist/create/lite/index.d.ts +3 -3
- package/dist/create/lite/index.js +1 -1
- package/dist/{entitlements-w04ivvAy.d.ts → entitlements-BOWTZaRf.d.ts} +1 -1
- package/dist/{field-errors-DKCaSlZw.d.ts → field-errors-DxPZYw2m.d.ts} +4 -4
- package/dist/{index-CbUXFzQV.d.ts → index-BfU0KR0X.d.ts} +1 -1
- package/dist/{index-BgkHbf9C.d.ts → index-Bhkag9ZE.d.ts} +6 -6
- package/dist/{index-BZCmy767.d.ts → index-Bz0WLuh_.d.ts} +2 -2
- package/dist/{index-DU0UwWvL.d.ts → index-CJB50jzQ.d.ts} +2 -2
- package/dist/{index-BdC2IqkU.d.ts → index-CeUwyJ3Z.d.ts} +2 -2
- package/dist/{index-CiE37wKX.d.ts → index-DNAkWDXc.d.ts} +1 -1
- package/dist/{index-BvcMQYL-.d.ts → index-QTZIopQj.d.ts} +1 -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-CsCwruKT.d.ts → operations-BG6prEnh.d.ts} +1 -1
- package/dist/{options-B56njigZ.js → options-CjocPkX1.js} +2 -0
- package/dist/otel/index.js +4 -4
- package/dist/{permissions-BP593xxk.d.ts → permissions-CoHsUtZS.d.ts} +1 -1
- package/dist/{ports-BVLhLUvR.d.ts → ports-XvgCe7ey.d.ts} +1 -1
- package/dist/powersync/index.d.ts +2 -2
- package/dist/preset/index.d.ts +3 -3
- package/dist/{project-D4ArwcS5.js → project-B7nqCzn5.js} +1 -1
- package/dist/{push-token-B0j171on.d.ts → push-token-kcc04ZaS.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 +1 -1
- package/dist/{sql-DiUP7fKX.js → sql-DdtukoIm.js} +243 -110
- package/dist/ssr/index.d.ts +1 -1
- package/dist/svelte/index.d.ts +5 -5
- package/dist/{tenant-B3IIq8Eq.d.ts → tenant-DkKbvK5T.d.ts} +1 -1
- package/dist/testing/index.d.ts +3 -3
- package/dist/{topic-D2MyBeaI.d.ts → topic-B6zuexk7.d.ts} +1 -1
- package/dist/{types-BFEKRmEK.d.ts → types-BvHw2cCS.d.ts} +2 -2
- package/dist/vue/index.d.ts +5 -5
- package/dist/{watch-topic-q6krNw0T.d.ts → watch-topic-YYSVJGDY.d.ts} +1 -1
- package/dist/yjs/index.d.ts +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +5 -0
- package/dist/cli/add-BaOCKKt6.js +0 -1
- package/dist/cli/powersync-CmsXOuui.js +0 -1
|
@@ -2,8 +2,8 @@ import { a as SessionActor, c as agentClaims, r as AgentActOptions } from "../..
|
|
|
2
2
|
import { d as KnowledgeSearchOptions, o as KnowledgeHit, r as Knowledge } from "../../knowledge-BBC2sfAY.js";
|
|
3
3
|
import { t as Agent } from "../../agents-DXiOPB3V.js";
|
|
4
4
|
import { P as AiToolPolicy, _ as AiModerationAction, b as AiModerationStage, i as AiChat } from "../../ai-chat-DlcBdOhJ.js";
|
|
5
|
-
import { r as AuthorizationOperation } from "../../authorization-
|
|
6
|
-
import { t as OperationTable } from "../../operations-
|
|
5
|
+
import { r as AuthorizationOperation } from "../../authorization-DpVtxuKM.js";
|
|
6
|
+
import { t as OperationTable } from "../../operations-BG6prEnh.js";
|
|
7
7
|
import { i as SearchToolOptions, r as ResultsFilter } from "../../embeddings-rVR2AKVz.js";
|
|
8
8
|
import { n as GatewayOptions } from "../../gateway-options-Mut8jih_.js";
|
|
9
9
|
import { LanguageModel, LanguageModelMiddleware, StopCondition, ToolLoopAgent, ToolLoopAgentSettings, ToolSet } from "ai";
|
|
@@ -623,7 +623,7 @@ interface BlockNameRegistry {
|
|
|
623
623
|
readonly "nodes": "id" | "tenant" | "drive" | "parent" | "kind" | "name" | "attachment" | "path" | "rank" | "deletedAt" | "source" | "externalId" | "externalMetadata" | "legalHoldUntil" | "createdBy" | "createdAt" | "updatedAt";
|
|
624
624
|
readonly "grants": "id" | "tenant" | "node" | "principalType" | "principalId" | "user" | "team" | "role" | "expiresAt" | "createdBy" | "createdAt";
|
|
625
625
|
readonly "drives": "id" | "tenant" | "name" | "kind" | "owner" | "connection" | "createdBy" | "createdAt" | "updatedAt";
|
|
626
|
-
readonly "driveGrants": "id" | "tenant" | "drive" | "principalType" | "principalId" | "role" | "expiresAt" | "createdBy" | "createdAt";
|
|
626
|
+
readonly "driveGrants": "id" | "tenant" | "drive" | "principalType" | "principalId" | "user" | "team" | "role" | "expiresAt" | "createdBy" | "createdAt";
|
|
627
627
|
readonly "connections": "id" | "tenant" | "user" | "provider" | "name" | "status" | "syncCursor" | "syncClaimedAt" | "lastSyncedAt" | "lastSyncError" | "createdBy" | "createdAt" | "updatedAt";
|
|
628
628
|
};
|
|
629
629
|
readonly functions: "drive_ancestors" | "drive_can" | "drive_check_parent" | "drive_clean_name" | "drive_conflict" | "drive_create_folder" | "drive_delete" | "drive_free_name" | "drive_get" | "drive_grants" | "drive_hold" | "drive_insert_node" | "drive_list" | "drive_lock_siblings" | "drive_move" | "drive_node_held" | "drive_node_json" | "drive_node_moved" | "drive_node_path" | "drive_node_writable" | "drive_path" | "drive_readable_ids" | "drive_release_hold" | "drive_rename" | "drive_role" | "drive_share" | "drive_shared" | "drive_subtree" | "drive_unshare";
|
|
@@ -2285,6 +2285,19 @@ type DomainsSqlOptions = {
|
|
|
2285
2285
|
type DonationsSqlOptions = {
|
|
2286
2286
|
readonly extraColumns?: ExtraColumns;
|
|
2287
2287
|
};
|
|
2288
|
+
/**
|
|
2289
|
+
* App functions that decide the caller's role on a node or a drive:
|
|
2290
|
+
* `schema.name(id uuid, user uuid)` returns one of `options.roles`, or null.
|
|
2291
|
+
* With one set, the block calls it instead of its own grants for that level.
|
|
2292
|
+
*/
|
|
2293
|
+
type DriveRoleHook = string | {
|
|
2294
|
+
readonly rows: string;
|
|
2295
|
+
readonly roles: Readonly<Record<string, string>>;
|
|
2296
|
+
};
|
|
2297
|
+
type DriveRoleFunctions = {
|
|
2298
|
+
readonly node?: DriveRoleHook;
|
|
2299
|
+
readonly drive?: DriveRoleHook;
|
|
2300
|
+
};
|
|
2288
2301
|
/** `blocks.drive.options`. */
|
|
2289
2302
|
type DriveSqlOptions = {
|
|
2290
2303
|
readonly roles?: readonly string[];
|
|
@@ -2296,6 +2309,8 @@ type DriveSqlOptions = {
|
|
|
2296
2309
|
readonly drives?: boolean;
|
|
2297
2310
|
readonly driveKinds?: readonly string[];
|
|
2298
2311
|
readonly sources?: readonly string[];
|
|
2312
|
+
readonly roleFunctions?: DriveRoleFunctions;
|
|
2313
|
+
readonly readPolicy?: boolean;
|
|
2299
2314
|
readonly extraColumns?: ExtraColumns;
|
|
2300
2315
|
};
|
|
2301
2316
|
/** `blocks.employees.options`. */
|
|
@@ -4,7 +4,7 @@ import { t as BetterSupabase, y as Db } from "./define-ITQA71fw.js";
|
|
|
4
4
|
import { n as DataEngine } from "./data-engine-CMENsp3d.js";
|
|
5
5
|
import { Dn as GeneratedBlocks } from "./define-block-COmMkx2x.js";
|
|
6
6
|
import { rt as BetterQueries } from "./index-BIAtapnD.js";
|
|
7
|
-
import { t as ClientPorts } from "./ports-
|
|
7
|
+
import { t as ClientPorts } from "./ports-XvgCe7ey.js";
|
|
8
8
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
9
9
|
interface AuthUser {
|
|
10
10
|
readonly id: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Dn as GeneratedBlocks } from "./define-block-COmMkx2x.js";
|
|
2
|
-
import { n as TopicPort } from "./watch-topic-
|
|
3
|
-
import { t as ClientPorts } from "./ports-
|
|
4
|
-
import { t as AuthPort } from "./controller-
|
|
2
|
+
import { n as TopicPort } from "./watch-topic-YYSVJGDY.js";
|
|
3
|
+
import { t as ClientPorts } from "./ports-XvgCe7ey.js";
|
|
4
|
+
import { t as AuthPort } from "./controller-CQrkLoRX.js";
|
|
5
5
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
6
6
|
/**
|
|
7
7
|
* What the block bindings hand their controllers: the provider's client,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cn as ResolvedConfig } from "./context-
|
|
1
|
+
import { cn as ResolvedConfig } from "./context-BGC0J3t9.js";
|
|
2
2
|
/**
|
|
3
3
|
* One block table as the config names it: unquoted schema and table, and each
|
|
4
4
|
* logical column's written name, or `null` when an adopted table lacks it.
|
|
@@ -5,9 +5,9 @@ import { a as AiMessagePart, c as AiReasoningPart, d as AiTextPart, f as AiToolA
|
|
|
5
5
|
import { A as AiStoredMessageStatus, B as AiHarnessSession, C as AiProject, D as AiSaveResult, E as AiRunStatus, F as AiUserMessageTrigger, G as AiRun, H as AiHarnessSessions, I as SharedAiChat, J as AiRunStep, K as AiRunQuery, L as aiChatListTopic, M as AiToolApproval, N as AiToolApprovalRequest, O as AiShareLink, P as AiToolPolicy, Q as createHarnessSessions, R as aiChatTopic, S as AiPendingInputRequest, T as AiRunRelease, U as AiHarnessStatus, V as AiHarnessSessionPatch, W as AiPendingApproval, X as AiRunStepStatus, Y as AiRunStepInput, Z as AiRuns, _ as AiModerationAction, a as AiChatInput, b as AiModerationStage, c as AiChatPatch, d as AiChatShare, f as AiChatVisibility, g as AiModelInput, h as AiModel, i as AiChat, j as AiStreamClaim, k as AiStoredMessage, l as AiChatQuery, m as AiMessageSibling, n as AiApprovalDecision, o as AiChatOptions, p as AiFeedback, q as AiRunState, r as AiAssistantMessageOptions, s as AiChatPage, t as AiAppendResult, u as AiChatRecord, v as AiModerationEvent, w as AiProjectInput, x as AiPendingInput, y as AiModerationInput, z as createAiChat } from "../../ai-chat-DlcBdOhJ.js";
|
|
6
6
|
import { a as NewAiSandbox, i as AiSandboxes, n as AiSandboxStatus, r as AiSandboxStopper, t as AiSandbox } from "../../sandboxes-B2hBoBvJ.js";
|
|
7
7
|
import { c as BlockOf } from "../../define-block-COmMkx2x.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-B6zuexk7.js";
|
|
9
|
+
import { n as TopicPort } from "../../watch-topic-YYSVJGDY.js";
|
|
10
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.js";
|
|
11
11
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
12
12
|
/**
|
|
13
13
|
* The `type` of each part in the canonical AI message (version 1); the SQL
|
|
@@ -8,9 +8,9 @@ import { r as BlockTemporalOptions } from "../../block-helpers-disoUWCp.js";
|
|
|
8
8
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
9
9
|
import { n as BlockHooks } from "../../block-hooks-DrA_d1dJ.js";
|
|
10
10
|
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
11
|
-
import { p as SubscriptionStatus } from "../../topic-
|
|
12
|
-
import { n as TopicPort } from "../../watch-topic-
|
|
13
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
11
|
+
import { p as SubscriptionStatus } from "../../topic-B6zuexk7.js";
|
|
12
|
+
import { n as TopicPort } from "../../watch-topic-YYSVJGDY.js";
|
|
13
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.js";
|
|
14
14
|
type AnnouncementSeverity = "info" | "success" | "warning" | "critical";
|
|
15
15
|
/**
|
|
16
16
|
* Who sees it: everyone, members of some tenants, members with some roles, or
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
2
2
|
import { _ as createApiKeys, a as ApiKeyExtraClaims, c as ApiKeyState, d as CreateApiKeyInput, f as CreatedApiKey, g as apiKeyResolver, h as apiKeyClaims, i as ApiKeyExtraClaim, l as ApiKeys, m as apiKeyChecksum, n as ApiKeyCheck, o as ApiKeyReservedClaim, p as ParsedApiKey, r as ApiKeyClaimsOptions, s as ApiKeyResolverOptions, t as ApiKey, u as ApiKeysOptions, v as parseApiKey } from "../../api-keys-DbIbkGxx.js";
|
|
3
|
-
import { a as ApiKeyDraft, c as ApiKeysControllerOptions, d as ApiKeyAuth, f as ApiKeyContributions, i as ApiKeyChange, l as ApiKeysSnapshot, m as withApiKey, n as ApiKeysEvents, o as ApiKeysActions, p as WithApiKeyOptions, r as apiKeysEvents, s as ApiKeysController, t as apiKeysBlock, u as createApiKeysController } from "../../index-
|
|
3
|
+
import { a as ApiKeyDraft, c as ApiKeysControllerOptions, d as ApiKeyAuth, f as ApiKeyContributions, i as ApiKeyChange, l as ApiKeysSnapshot, m as withApiKey, n as ApiKeysEvents, o as ApiKeysActions, p as WithApiKeyOptions, r as apiKeysEvents, s as ApiKeysController, t as apiKeysBlock, u as createApiKeysController } from "../../index-BfU0KR0X.js";
|
|
4
4
|
export { type ApiKey, type ApiKeyAuth, type ApiKeyChange, type ApiKeyCheck, type ApiKeyClaimsOptions, type ApiKeyContributions, type ApiKeyDraft, type ApiKeyExtraClaim, type ApiKeyExtraClaims, type ApiKeyReservedClaim, type ApiKeyResolverOptions, type ApiKeyState, type ApiKeys, type ApiKeysActions, type ApiKeysController, type ApiKeysControllerOptions, type ApiKeysEvents, type ApiKeysOptions, type ApiKeysSnapshot, type BlockTransport, type CreateApiKeyInput, type CreatedApiKey, type ParsedApiKey, type WithApiKeyOptions, apiKeyChecksum, apiKeyClaims, apiKeyResolver, apiKeysBlock, apiKeysEvents, createApiKeys, createApiKeysController, dbTransport, parseApiKey, rpcTransport, sqlTransport, withApiKey };
|
|
@@ -3,7 +3,7 @@ import { Ct as Events, ot as StorageObjectEventData, y as AttachmentEventData }
|
|
|
3
3
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
4
4
|
import { t as Author } from "../../block-authors-C5z3tGVu.js";
|
|
5
5
|
import { At as NewAttachment, Ct as AttachmentScannerOptions, Dt as AttachmentVersion, Et as AttachmentUpload, Ft as ScannedObject, It as attachmentVersionOf, Lt as createAttachmentScanner, Mt as ObjectScanner, Nt as ObjectScannerOptions, Ot as Attachments, Pt as ScanVerdict, Rt as createAttachments, Sn as EntitySchema, St as AttachmentScanner, Tt as AttachmentStorage, _t as AttachmentDownload, bt as AttachmentReplacement, c as BlockOf, gt as AttachmentBucket, ht as Attachment, jt as ObjectScanJob, kt as AttachmentsOptions, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding, vt as AttachmentImageUrlOptions, wt as AttachmentStatus, xt as AttachmentScanJob, yt as AttachmentImages, zt as createObjectScanner } from "../../define-block-COmMkx2x.js";
|
|
6
|
-
import { n as Controller } from "../../controller-
|
|
6
|
+
import { n as Controller } from "../../controller-CQrkLoRX.js";
|
|
7
7
|
/** A pending write to a record's files, for `useOptimistic`. */
|
|
8
8
|
type AttachmentsOptimisticAction = {
|
|
9
9
|
readonly type: "add";
|
|
@@ -11,9 +11,9 @@ import { Yt as WhereInput, t as BetterSupabase } from "../../define-ITQA71fw.js"
|
|
|
11
11
|
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
12
12
|
import { i as EventSink, t as CloudEvent } from "../../cloud-event-DXWmXrus.js";
|
|
13
13
|
import { i as ListDefinition } from "../../list-query-C7V8kUaD.js";
|
|
14
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
14
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.js";
|
|
15
15
|
import { a as UndoToken } from "../../undo-22ofP6Zp.js";
|
|
16
|
-
import { n as AuditCategory } from "../../context-
|
|
16
|
+
import { n as AuditCategory } from "../../context-BGC0J3t9.js";
|
|
17
17
|
interface PurgeAuditLogOptions extends BlockTemporalOptions {
|
|
18
18
|
/**
|
|
19
19
|
* How long entries are kept when `retention` has no answer. Defaults to `1
|
|
@@ -8,7 +8,7 @@ import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport,
|
|
|
8
8
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DrA_d1dJ.js";
|
|
9
9
|
import { _ as FilterRule, d as FilterLimits, f as FilterNode, h as FilterQuery, i as FilterCombinator, m as FilterOperatorSpec, r as FilterClock } from "../../filter-query-DV-x8fio.js";
|
|
10
10
|
import { $t as createActionRegistry, Bt as Action, Gt as ActionInfo, Ht as ActionContext, Jt as ActionRegistry, Kt as ActionOrigin, L as NotifierInput, Qt as actionKey, Ut as ActionDescriptor, Vt as ActionCall, Wt as ActionHandler, Yt as ActionSpec, Zt as DefaultAutomation, c as BlockOf, en as defineAction, qt as ActionRef } from "../../define-block-COmMkx2x.js";
|
|
11
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
11
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.js";
|
|
12
12
|
import { o as ApprovalRequestInput } from "../../approvals-DZoGtNFv.js";
|
|
13
13
|
import { n as FilterRecordField, t as FilterEvaluation } from "../../filter-evaluate-Bz3Fzhz2.js";
|
|
14
14
|
import { a as checkRuleConditions, c as ruleFilterFields, i as RuleFieldDefinition, n as RuleField, o as defineRuleFields, r as RuleFieldCatalog, s as ruleFilterFieldInfo, t as RULE_LIMITS } from "../../fields-CAVk9dxX.js";
|
|
@@ -9,7 +9,7 @@ import { n as BlockHooks } from "../../block-hooks-DrA_d1dJ.js";
|
|
|
9
9
|
import { n as StripeSource, r as StripeTaxId, t as StripeClient } from "../../stripe-Bl-sjnl6.js";
|
|
10
10
|
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
11
11
|
import { i as EventSink } from "../../cloud-event-DXWmXrus.js";
|
|
12
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
12
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.js";
|
|
13
13
|
import { d as stripeInboxVerify, f as verifyStripeWebhook, u as signStripeWebhook } from "../../verify-BQu3eBNW.js";
|
|
14
14
|
/** The events of the `billing` block: type to data. */
|
|
15
15
|
type BillingEvents = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as DbError } from "../../result-DTOQRyGY.js";
|
|
2
2
|
import { Ct as Events, tt as SchedulingEventData } from "../../events-DVt3Z9hw.js";
|
|
3
3
|
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
4
|
-
import { n as Controller } from "../../controller-
|
|
4
|
+
import { n as Controller } from "../../controller-CQrkLoRX.js";
|
|
5
5
|
import { o as WeeklyHours } from "../../availability-CebEOfMN.js";
|
|
6
6
|
import { C as bookingSeriesOf, S as BookingWeekday, T as parseRecurrence, _ as BookedSeries, a as BookingExceptionInput, b as BookingSeriesScope, c as BookingResourceInput, d as BookingStatus, f as Bookings, g as createBookings, h as PublicBookingService, i as BookingDuration, l as BookingServiceInput, m as PlacedBooking, n as Booking, o as BookingExpirePayload, p as BookingsOptions, r as BookingCustomer, s as BookingRange, t as BOOKING_EXPIRE_QUEUE, u as BookingSlot, v as BookingRecurrence, w as formatRecurrence, x as BookingSeriesStatus, y as BookingSeries } from "../../bookings-Br0VXzaf.js";
|
|
7
7
|
import { t as EventCalendarEvent } from "../../event-calendar-DUtFyRrv.js";
|
|
@@ -7,7 +7,7 @@ import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
|
7
7
|
import { t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
8
8
|
import { n as BlockHooks } from "../../block-hooks-DrA_d1dJ.js";
|
|
9
9
|
import { Sn as EntitySchema, c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
10
|
-
import { n as Controller } from "../../controller-
|
|
10
|
+
import { n as Controller } from "../../controller-CQrkLoRX.js";
|
|
11
11
|
import { C as CalendarReminder, D as ToIcsOptions, E as ParsedIcs, O as parseIcs, S as CalendarEventStatus, T as IcsSource, _ as expandOccurrences, a as FreeBusy, b as AttendeeRole, c as WorkingHoursInput, d as workingHoursOf, f as CalendarEvent, g as SplitRules, h as OccurrenceRange, i as CommonFreeTimeOptions, k as toIcs, l as commonFreeTime, m as OccurrenceOptions, n as CalendarEventKind, o as WeeklyHours, p as CalendarOccurrence, r as CalendarTransparency, s as WorkingHours, t as BusyRange, u as freeBusyOf, v as splitRule, w as IcsEvent, x as CalendarAttendee, y as AttendeeResponse } from "../../availability-CebEOfMN.js";
|
|
12
12
|
import { a as fromEventCalendarUpdate, c as toEventCalendarResources, i as OccurrenceMove, n as EventCalendarOptions, o as seriesOf, r as EventCalendarResource, s as toEventCalendarEvents, t as EventCalendarEvent } from "../../event-calendar-DUtFyRrv.js";
|
|
13
13
|
import { t as VisibleRange } from "../../range-BN3kpJAE.js";
|
|
@@ -7,14 +7,14 @@ import { n as Logger } from "../../logger-0LfhvwE4.js";
|
|
|
7
7
|
import { a as BlockTenantOptions, i as CursorPageOptions, r as BlockTemporalOptions } from "../../block-helpers-disoUWCp.js";
|
|
8
8
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
9
9
|
import { n as BlockHooks } from "../../block-hooks-DrA_d1dJ.js";
|
|
10
|
-
import { F as CommentsSqlOptions } from "../../authorization-
|
|
10
|
+
import { F as CommentsSqlOptions } from "../../authorization-DpVtxuKM.js";
|
|
11
11
|
import { t as Author } from "../../block-authors-C5z3tGVu.js";
|
|
12
12
|
import { a as isFileAnchor, i as fileAnchor, n as FileAnchor, o as conversationTopic, r as FileAnchorAt, t as AnchorRegion } from "../../anchors-sCLvYj-8.js";
|
|
13
13
|
import { c as MessageEdit, l as MessageEdition, o as Message } from "../../messaging-D5z2TR37.js";
|
|
14
14
|
import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, mn as RecordRowInput, rn as RecordBinding } from "../../define-block-COmMkx2x.js";
|
|
15
|
-
import { p as SubscriptionStatus } from "../../topic-
|
|
16
|
-
import { n as TopicPort } from "../../watch-topic-
|
|
17
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
15
|
+
import { p as SubscriptionStatus } from "../../topic-B6zuexk7.js";
|
|
16
|
+
import { n as TopicPort } from "../../watch-topic-YYSVJGDY.js";
|
|
17
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.js";
|
|
18
18
|
interface CommentsOptions<S extends StandardSchemaV1 | undefined = undefined> extends BlockTemporalOptions, BlockTenantOptions {
|
|
19
19
|
/**
|
|
20
20
|
* A Standard Schema for the message extra columns
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as dbError } from "../../errors-B7tCfCvX.js";
|
|
2
2
|
import { n as isRecord } from "../../guards-CsRa6v57.js";
|
|
3
3
|
import { a as ok, r as err, t as AsyncResult } from "../../result-8xza7w5W.js";
|
|
4
|
-
import { t as driveSqlOptions } from "../../options-
|
|
4
|
+
import { t as driveSqlOptions } from "../../options-CjocPkX1.js";
|
|
5
5
|
import { n as event, t as defineEvents } from "../../event-map-DxfsFgQT.js";
|
|
6
6
|
import { A as recordsOf, C as optionalInstant, L as textOf, O as recordOf, U as rpcTransport, V as dbTransport, W as sqlTransport, d as enumOrThrow, j as requiredInstant, n as applyTemporal, o as blockCall, w as optionalText } from "../../block-helpers-I7UzjNEf.js";
|
|
7
7
|
import { r as withBlockHooks } from "../../block-hooks-CadxQ9-_.js";
|
|
@@ -4,8 +4,8 @@ import { n as SqlClient } from "../../executor-CFmee_nV.js";
|
|
|
4
4
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
5
5
|
import { n as BlockHooks } from "../../block-hooks-DrA_d1dJ.js";
|
|
6
6
|
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
7
|
-
import { a as hasEntitlement, n as EntitlementKey, t as EntitlementClaimOptions } from "../../entitlements-
|
|
8
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
7
|
+
import { a as hasEntitlement, n as EntitlementKey, t as EntitlementClaimOptions } from "../../entitlements-BOWTZaRf.js";
|
|
8
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.js";
|
|
9
9
|
/** The Stripe event sent when a customer's active entitlements change. */
|
|
10
10
|
export declare const ENTITLEMENTS_UPDATED = "entitlements.active_entitlement_summary.updated";
|
|
11
11
|
/**
|
|
@@ -8,7 +8,7 @@ import { r as BlockTemporalOptions } from "../../block-helpers-disoUWCp.js";
|
|
|
8
8
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
9
9
|
import { n as BlockHooks } from "../../block-hooks-DrA_d1dJ.js";
|
|
10
10
|
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
11
|
-
import { n as Controller } from "../../controller-
|
|
11
|
+
import { n as Controller } from "../../controller-CQrkLoRX.js";
|
|
12
12
|
import { _ as isFormDefinition, a as FormDefinition, c as FormJson, d as FormScoring, f as FormStep, g as formSchema, h as formDefinitionProblems, i as FormCondition, l as FormJsonSchema, m as UNSCORED_FIELD_TYPES, n as FORM_FIELD_TYPES, o as FormField, p as NPS_MAX, r as FORM_SCHEMA_DIALECT, s as FormFieldType, t as FORM_DEFINITION_SCHEMA, u as FormOption } from "../../form-definition-BN8shngm.js";
|
|
13
13
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
14
14
|
/** A submission's answers, by field key. */
|
|
@@ -2,10 +2,10 @@ import { Ct as Events, H as InboxEventData } from "../../events-DVt3Z9hw.js";
|
|
|
2
2
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
3
3
|
import { d as MessageKind, p as MessageReaction, u as MessageFile } from "../../messaging-D5z2TR37.js";
|
|
4
4
|
import { Zt as DefaultAutomation, c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
5
|
-
import { p as SubscriptionStatus } from "../../topic-
|
|
6
|
-
import { n as TopicPort } from "../../watch-topic-
|
|
7
|
-
import { l as StoragePort } from "../../ports-
|
|
8
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
5
|
+
import { p as SubscriptionStatus } from "../../topic-B6zuexk7.js";
|
|
6
|
+
import { n as TopicPort } from "../../watch-topic-YYSVJGDY.js";
|
|
7
|
+
import { l as StoragePort } from "../../ports-XvgCe7ey.js";
|
|
8
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.js";
|
|
9
9
|
import { S as StoredInboundEvent, _ as MessageDirection, a as ConversationEvent, b as PurgedContact, c as DeliveryStatus, d as InboxCounts, f as InboxFileSource, g as MessageDelivery, h as InboxUpload, i as Conversation, l as InboundResult, m as InboxRow, n as BotMode, o as ConversationPriority, p as InboxMessage, r as Contact, s as ConversationStatus, t as AuthorType, u as InboxChannel, v as MessageTemplate, x as ScheduledInboxMessage, y as PendingInboxFile } from "../../types-TH3zlMiM.js";
|
|
10
10
|
import { a as Inbox, c as InboxPatch, d as ScheduledMessageInput, f as StartConversationInput, i as InboundInput, l as MessageInput, m as createInbox, n as ConversationFilter, o as InboxHooks, p as TemplateInput, r as CreateInboxInput, s as InboxOptions, t as ContactInput, u as MessagePageOptions } from "../../inbox-DavCzW7b.js";
|
|
11
11
|
export declare const INBOX_CHANNELS: readonly InboxChannel[];
|
package/dist/blocks/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { a as OptionInput, c as OptionSpecs, d as optionsJsonSchema, i as Option
|
|
|
12
12
|
import { A as CreateBlocksOptions, An as BlockNaming, C as BlockContext, Cn as EntitySchemaSpec, D as Blocks, Dn as GeneratedBlocks, E as BlockSinks, En as GeneratedBlock, F as BlockPorts, Fn as entityNames, I as Notifier, L as NotifierInput, M as createBlockClient, Mn as EntityNames, N as createBlocks, Nn as EntityNoun, O as BlocksEventMap, On as fillTopic, P as defineBlocks, Pn as EntityRename, R as PortName, S as BlockClientSource, Sn as EntitySchema, T as BlockSet, Tn as entitySchema, _ as BlockProvider, a as BlockConsumes, b as BLOCK_EVENT_SOURCE, bn as BlockSchemas, c as BlockOf, d as ClientOf, f as ConsumedPorts, g as BlockEnvKey, h as defineBlock, i as BlockCategory, j as UniquePort, jn as blockNames, k as BlocksHooks, kn as generatedOptions, l as BlockOptionSchemas, m as UsingOptions, n as BLOCK_CATEGORIES, o as BlockDefinition, p as ProvidedPorts, r as Block, s as BlockInvalidates, t as AnyBlock, tn as AnyRecordBinding, u as BlockProvides, v as BlockWiring, w as BlockMap, wn as EntitySchemas, x as BlockClientOptions, xn as EntityFieldSpecs, y as BlockWorker } from "../define-block-COmMkx2x.js";
|
|
13
13
|
import { t as VisibleRange } from "../range-BN3kpJAE.js";
|
|
14
14
|
import { t as subjectKey } from "../block-subjects-Br2MQNFn.js";
|
|
15
|
-
import { t as BlockEnv } from "../block-env-
|
|
15
|
+
import { t as BlockEnv } from "../block-env-UX42PHLP.js";
|
|
16
16
|
/** What a hook passes a block creator from the env. */
|
|
17
17
|
interface EnvBlockOptions {
|
|
18
18
|
readonly transport: BlockTransport;
|
|
@@ -4,14 +4,14 @@ import { Ct as Events } from "../../events-DVt3Z9hw.js";
|
|
|
4
4
|
import { _ as ConversationEventData, k as MessageEventData } from "../../index-D18su_r5.js";
|
|
5
5
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
6
6
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DrA_d1dJ.js";
|
|
7
|
-
import { P as MessagingSqlOptions } from "../../authorization-
|
|
7
|
+
import { P as MessagingSqlOptions } from "../../authorization-DpVtxuKM.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-D5z2TR37.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-COmMkx2x.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-B6zuexk7.js";
|
|
13
|
+
import { n as TopicPort } from "../../watch-topic-YYSVJGDY.js";
|
|
14
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.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-COmMkx2x.js";
|
|
4
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
4
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.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-COmMkx2x.js";
|
|
11
11
|
import { i as EventSink, t as CloudEvent } from "../../cloud-event-DXWmXrus.js";
|
|
12
12
|
import { g as SubscriberPolicy, i as AuthorizationHooks } from "../../authorization-hooks-CxwsRnfV.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-B6zuexk7.js";
|
|
14
|
+
import { n as TopicPort } from "../../watch-topic-YYSVJGDY.js";
|
|
15
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.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-disoUWCp.js";
|
|
|
5
5
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
6
6
|
import { n as BlockHooks } from "../../block-hooks-DrA_d1dJ.js";
|
|
7
7
|
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
8
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
8
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.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-disoUWCp.js";
|
|
8
8
|
import { a as dbTransport, i as RpcClient, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
9
9
|
import { a as BlockTransportMiddleware, d as extendBlock, f as withBlockHooks, n as BlockHooks, p as wrapTransport } from "../../block-hooks-DrA_d1dJ.js";
|
|
10
|
-
import { N as PlatformRolesOption } from "../../authorization-
|
|
10
|
+
import { N as PlatformRolesOption } from "../../authorization-DpVtxuKM.js";
|
|
11
11
|
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
12
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
12
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.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-DrA_d1dJ.js";
|
|
7
7
|
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
8
8
|
import { B as PermissionFlags, H as can, U as permissionFlags, V as PermissionSet, W as permissionMatches } from "../../index-BIAtapnD.js";
|
|
9
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
9
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.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-DrA_d1dJ.js";
|
|
11
11
|
import { c as BlockOf } from "../../define-block-COmMkx2x.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-kcc04ZaS.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-BEtC_Kis.js";
|
|
8
8
|
import { n as BlockHooks } from "../../block-hooks-DrA_d1dJ.js";
|
|
9
9
|
import { c as BlockOf } from "../../define-block-COmMkx2x.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-B6zuexk7.js";
|
|
11
|
+
import { n as TopicPort } from "../../watch-topic-YYSVJGDY.js";
|
|
12
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.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-BEtC_Kis.js";
|
|
|
7
7
|
import { n as BlockHooks } from "../../block-hooks-DrA_d1dJ.js";
|
|
8
8
|
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
9
9
|
import { p as ListQueryInput } from "../../list-query-C7V8kUaD.js";
|
|
10
|
-
import { n as Controller } from "../../controller-
|
|
10
|
+
import { n as Controller } from "../../controller-CQrkLoRX.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-DrA_d1dJ.js";
|
|
7
7
|
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
8
8
|
import { i as EventSink } from "../../cloud-event-DXWmXrus.js";
|
|
9
|
-
import { i as KeyboardPort } from "../../ports-
|
|
10
|
-
import { n as Controller } from "../../controller-
|
|
9
|
+
import { i as KeyboardPort } from "../../ports-XvgCe7ey.js";
|
|
10
|
+
import { n as Controller } from "../../controller-CQrkLoRX.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-COmMkx2x.js";
|
|
4
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
4
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.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-disoUWCp.js";
|
|
|
5
5
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
6
6
|
import { n as BlockHooks } from "../../block-hooks-DrA_d1dJ.js";
|
|
7
7
|
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
8
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
8
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.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 { $ as RecordRef } from "../../types-BkYEUWdz.js";
|
|
3
3
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
4
4
|
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
5
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
5
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.js";
|
|
6
6
|
import { t as subjectKey } from "../../block-subjects-Br2MQNFn.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-Bv2dPflD.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-disoUWCp.js";
|
|
8
8
|
import { n as BlockHooks } from "../../block-hooks-DrA_d1dJ.js";
|
|
9
9
|
import { Sn as EntitySchema, c as BlockOf, ln as RecordBindingWrite, rn as RecordBinding } from "../../define-block-COmMkx2x.js";
|
|
10
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
10
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.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-BEtC_Kis.js";
|
|
2
2
|
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
3
|
-
import { n as Controller } from "../../controller-
|
|
3
|
+
import { n as Controller } from "../../controller-CQrkLoRX.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-22ofP6Zp.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-CNCT6_3D.js";
|
|
5
5
|
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
6
|
-
import { n as Controller, t as AuthPort } from "../../controller-
|
|
6
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.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-DVt3Z9hw.js"
|
|
|
5
5
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
6
6
|
import { c as BlockOf } from "../../define-block-COmMkx2x.js";
|
|
7
7
|
import { g as Workflows, n as WorkflowRun } from "../../workflows-BljkWRxE.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-B6zuexk7.js";
|
|
9
|
+
import { n as TopicPort } from "../../watch-topic-YYSVJGDY.js";
|
|
10
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.js";
|
|
11
11
|
import { A as WorkflowVersionOwner, B as WorkflowGraphNode, C as WorkflowGrantPrincipal, D as WorkflowTrigger, E as WorkflowStepInfo, F as WorkflowFilterCondition, G as durationMs, H as WorkflowNodeKind, I as WorkflowFilterField, J as matchesFilter, K as evaluateCondition, L as WorkflowGraph, M as GraphScope, N as WorkflowCondition, O as WorkflowTriggerKind, P as WorkflowConditionOperator, R as WorkflowGraphDiff, S as WorkflowGrantAction, T as WorkflowNodeRunStatus, U as approved, V as WorkflowNodeCondition, W as diffGraphs, X as validateGraph, Y as topologicalOrder, _ as WorkflowCredential, a as CredentialInput, b as WorkflowDefinitionScope, c as GraphCompiler, d as RunInput, f as TestRunInput, g as WorkflowBuilderHooks, h as WorkflowAlert, i as BuilderStarter, j as WorkflowVersionStatus, k as WorkflowVersion, l as NodeRunRecord, m as VersionSaveOptions, n as BuilderOptions, o as DefinitionInput, p as TriggerInput, q as filterConditionOf, r as BuilderStartCall, s as GrantInput, t as AlertInput, u as PublishOptions, v as WorkflowDefinition, w as WorkflowNodeRun, x as WorkflowEditor, y as WorkflowDefinitionGrant, z as WorkflowGraphEdge } from "../../types-d0JBRTAg.js";
|
|
12
12
|
import { a as GraphSubject, c as startNodeOf, i as GraphStepCall, n as GraphRunFields, o as executeGraph, r as GraphRuntime, s as graphRunFields, t as GraphApprovalCall } from "../../executor-DqNRrFxx.js";
|
|
13
13
|
/**
|
|
@@ -3,9 +3,9 @@ import { Ct as Events, _t as WorkflowRunEventData } from "../../events-DVt3Z9hw.
|
|
|
3
3
|
import { a as dbTransport, o as rpcTransport, s as sqlTransport, t as BlockTransport } from "../../block-transport-BEtC_Kis.js";
|
|
4
4
|
import { c as BlockOf } from "../../define-block-COmMkx2x.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-BljkWRxE.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-B6zuexk7.js";
|
|
7
|
+
import { n as TopicPort } from "../../watch-topic-YYSVJGDY.js";
|
|
8
|
+
import { n as Controller, t as AuthPort } from "../../controller-CQrkLoRX.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 { 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";
|
|
2
2
|
import { G as permissionCapOf } from "../types-Dh2OGEW5.js";
|
|
3
3
|
import { i as SessionSnapshot, o as isSessionSnapshot } from "../snapshot-BGsJw9xn.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-BOWTZaRf.js";
|
|
5
|
+
import { t as tenantOf } from "../tenant-DkKbvK5T.js";
|
|
6
|
+
import { n as isTruncated, r as permissionsOf, t as PermissionsOfOptions } from "../permissions-CoHsUtZS.js";
|
|
7
7
|
import { a as isUserSession, i as isApiKeySession, n as AuthSession, r as UserSession, t as ApiKeySession } from "../view-Cy2XxYp1.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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as addCommand } from "./add-THXE7juv.js";
|
|
@@ -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-CfbFxUOQ.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-D9xSGdzO.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";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { a as list, m as commandMeta, r as defineCliCommand } from "./command-BpZ4AuhR.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-Dfdz7KSh.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-BvlEmTB0.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-BhZRCitG.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 dataMigration } from "./migrations-
|
|
12
|
-
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 dataMigration } from "./migrations-CNa62JSi.js";
|
|
12
|
+
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-BtAPMEZa.js";
|
|
13
13
|
import { n as installCommand, t as detectProject } from "./detect-BcUDaO8I.js";
|
|
14
14
|
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";
|
|
15
|
-
import { t as syncModules } from "./sync-
|
|
16
|
-
import { t as addModules } from "./add-
|
|
17
|
-
import { t as appTablePlan } from "./app-table-files-
|
|
18
|
-
import { t as blockNames } from "./blocks-
|
|
15
|
+
import { t as syncModules } from "./sync-D9xSGdzO.js";
|
|
16
|
+
import { t as addModules } from "./add-DoEtJhZG.js";
|
|
17
|
+
import { t as appTablePlan } from "./app-table-files-BqLd5TuX.js";
|
|
18
|
+
import { t as blockNames } from "./blocks-BVU_FoLo.js";
|
|
19
19
|
import { i as sourceArgs, n as SOURCE_ARGS } from "./source-args-Bz5QQne2.js";
|
|
20
20
|
import { existsSync } from "node:fs";
|
|
21
21
|
import { dirname, join, posix, resolve } from "node:path";
|