@mnmal-ai/substrate 1.0.0-alpha.17 → 1.0.0-alpha.19
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/README.md +4 -4
- package/dist/{boot-store-DNU0UfX7.js → boot-store-DL2Wkzun.js} +207 -258
- package/dist/{bridge-5VHZiH9o.d.ts → bridge-BhiJKwfF.d.ts} +1 -1
- package/dist/{cli-CwWUYUMv.js → cli-BYyPsfdY.js} +193 -31
- package/dist/client.browser.js +2478 -0
- package/dist/client.d.ts +181 -164
- package/dist/client.js +5 -5
- package/dist/{errors-DHgT7Fa8.d.ts → errors-CYOaWZ8l.d.ts} +1 -1
- package/dist/{index-DKJXQ031.d.ts → index-rW7fu2Af.d.ts} +3 -11
- package/dist/{node-version-CxqcqECU.js → node-version-BlYrbY2I.js} +8 -1
- package/dist/pack.d.ts +59 -11
- package/dist/pack.js +2 -2
- package/dist/{pg-edges-store-CSJ7sG2l.js → pg-edges-store-B0Krqoac.js} +1 -1
- package/dist/{plugin-Dk9RC3LH.js → plugin-Dk9h__NU.js} +2 -2
- package/dist/proposals-bootstrap.js +2 -2
- package/dist/proposals.d.ts +2 -2
- package/dist/proposals.js +1 -1
- package/dist/recall-bootstrap.js +2 -2
- package/dist/recall.d.ts +1 -1
- package/dist/recall.js +2 -2
- package/dist/{repl-BNnKFG3y.js → repl-D6_CBsue.js} +1 -1
- package/dist/{row-DHxnCnhA.d.ts → row-CfsHSEfB.d.ts} +4 -4
- package/dist/{run-NmwNmVUD.js → run-BJMgCcCC.js} +18 -9
- package/dist/{schema-B5WBO8yh.d.ts → schema-laGLMvMC.d.ts} +15 -40
- package/dist/{script-C6DSa_Na.js → script-DgXaJY1Y.js} +12 -2
- package/dist/script-runner.js +78 -0
- package/dist/sdk.d.ts +9 -8
- package/dist/sdk.js +3 -3
- package/dist/{src-CdbUzLhB.js → src-B6nsPVmD.js} +201 -25
- package/dist/{src-DV6PcXym.js → src-B_oTGi3X.js} +648 -845
- package/dist/{src-DWrFdHrY.js → src-BcigMQdR.js} +7 -4
- package/dist/{src-DR_hUj2p.js → src-D3ACIp1y.js} +1 -1
- package/dist/{src-DwynOVMk.js → src-Dlmuq32R.js} +3 -3
- package/dist/{src-7lp1y4HK.js → src-DreZjBk7.js} +3 -3
- package/dist/{src-BHh6UZ7L.js → src-oO0DtS6y.js} +431 -949
- package/dist/substrate-admin.js +2 -2
- package/dist/substrate.js +2 -2
- package/dist/testing.d.ts +13 -47
- package/dist/testing.js +6 -167
- package/dist/{ws-BL9nSELO.d.ts → ws-BT8kL1IF.d.ts} +4 -4
- package/package.json +21 -23
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
|
-
import { r as txScopeIdFor } from "./src-
|
|
2
|
+
import { r as txScopeIdFor } from "./src-BcigMQdR.js";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
|
|
5
5
|
//#region ../../packages/substrate-dataset-pg/src/pg-edges-store.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
|
-
import { Lt as buildContext, tt as applyObligations, vn as ResolverFrameError, zt as jsonResponse } from "./src-
|
|
3
|
-
import "./src-
|
|
2
|
+
import { Lt as buildContext, tt as applyObligations, vn as ResolverFrameError, zt as jsonResponse } from "./src-oO0DtS6y.js";
|
|
3
|
+
import "./src-B6nsPVmD.js";
|
|
4
4
|
import { Worker } from "node:worker_threads";
|
|
5
5
|
|
|
6
6
|
//#region ../../plugins/substrate-recall/src/candidate-selection.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
|
-
import { zn as defineBootstrap } from "./src-
|
|
3
|
-
import { n as createNoopPubSub, t as createProposalsPlugin } from "./src-
|
|
2
|
+
import { zn as defineBootstrap } from "./src-oO0DtS6y.js";
|
|
3
|
+
import { n as createNoopPubSub, t as createProposalsPlugin } from "./src-Dlmuq32R.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region ../../plugins/substrate-proposals/src/bootstrap.ts
|
package/dist/proposals.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as ResolverFrameError } from "./errors-
|
|
1
|
+
import { kn as OnDelete, kt as Dataset, x as CoordinatorPlugin } from "./schema-laGLMvMC.js";
|
|
2
|
+
import { u as ResolverFrameError } from "./errors-CYOaWZ8l.js";
|
|
3
3
|
//#region ../../plugins/substrate-proposals/src/config.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Multi-instance invalidation transport used by the plugin to broadcast
|
package/dist/proposals.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
|
-
import { i as ProposalError, n as createNoopPubSub, r as storageSettled, t as createProposalsPlugin } from "./src-
|
|
2
|
+
import { i as ProposalError, n as createNoopPubSub, r as storageSettled, t as createProposalsPlugin } from "./src-Dlmuq32R.js";
|
|
3
3
|
|
|
4
4
|
export { ProposalError, createNoopPubSub, createProposalsPlugin, storageSettled };
|
package/dist/recall-bootstrap.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
|
-
import { zn as defineBootstrap } from "./src-
|
|
2
|
+
import { zn as defineBootstrap } from "./src-oO0DtS6y.js";
|
|
3
3
|
import { t as FakeEmbedder } from "./fake-DUVtKVSE.js";
|
|
4
|
-
import { t as createRecallPlugin } from "./plugin-
|
|
4
|
+
import { t as createRecallPlugin } from "./plugin-Dk9h__NU.js";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region ../../packages/substrate-embedder/src/types.ts
|
package/dist/recall.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as EmbedSourceContext, D as FilterOperatorDef, I as McpToolRegistration, Ln as Row, On as EdgesStore, P as KernelPlugin, U as PostWriteHook, _t as PolicyDecision, i as FieldDef, j as KernelMigration, kt as Dataset, mt as Identity, tt as HttpHandler, vt as PolicyProbeContext, xt as ResolverArgs, yt as RequestContext } from "./schema-laGLMvMC.js";
|
|
2
2
|
import { t as Embedder } from "./types-8c0gtnd2.js";
|
|
3
3
|
import postgres, { Sql } from "postgres";
|
|
4
4
|
//#region ../../plugins/substrate-recall/src/candidate-selection.d.ts
|
package/dist/recall.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
|
-
import { a as InMemoryLexicalStore, i as PgClusterStore, n as PgLexicalStore, o as InMemoryEmbeddingsStore, r as PgEmbeddingsStore, s as InMemoryClusterStore, t as RECALL_VERSION } from "./src-
|
|
3
|
-
import { $ as CLUSTERER_BACKEND_VERSION, A as CLUSTER_MEMBER_FIELDS, C as EmbedSourceRegistry, D as makeReembed, E as makeEmbedPostWrite, F as unknownParams, G as DEFAULT_CRYSTALLISE_CONFIG, H as CRYSTALLISE_IN_FLIGHT_CODE, I as handleRecallRequest, J as runClusterer, K as handleCrystallise, L as RRF_K, M as recallRouteHandler, N as checkParams, O as crystalliseRouteHandler, P as unknownParamMessage, Q as CLUSTERER_BACKEND, R as armRanks, S as createEmbedStats, T as embedRowReporting, U as createCrystalliseGuard, X as l2normalize, _ as EMBEDDINGS_FETCH_MAX_REFS, a as REINDEX_MAX_LIMIT, b as handleLexicalCoverage, c as SALIENCE_BOOST_MAX_TARGETS, d as embeddingsMigration, et as memberKey, f as recallMcpTool, g as embeddingsFetchRouteHandler, h as embeddingSimilarOperator, i as REINDEX_DEFAULT_LIMIT, j as buildClusterSurface, k as CLUSTER_FIELDS, l as lexicalMigration, m as makeLexicalPostWrite, n as salienceBoostRouteHandler, nt as validateSelector, o as handleReindex, p as makeLexicalClassify, q as validateCrystalliseInput, r as reindexRouteHandler, s as validateReindexInput, t as createRecallPlugin, tt as SELECT_CANDIDATES_MAX_LIMIT, u as recallClustersMigration, v as embedStatsRouteHandler, w as embedAndStore, x as validateLexicalCoverageInput, y as handleEmbedStatsRequest, z as fuseByRank } from "./plugin-
|
|
2
|
+
import { a as InMemoryLexicalStore, i as PgClusterStore, n as PgLexicalStore, o as InMemoryEmbeddingsStore, r as PgEmbeddingsStore, s as InMemoryClusterStore, t as RECALL_VERSION } from "./src-DreZjBk7.js";
|
|
3
|
+
import { $ as CLUSTERER_BACKEND_VERSION, A as CLUSTER_MEMBER_FIELDS, C as EmbedSourceRegistry, D as makeReembed, E as makeEmbedPostWrite, F as unknownParams, G as DEFAULT_CRYSTALLISE_CONFIG, H as CRYSTALLISE_IN_FLIGHT_CODE, I as handleRecallRequest, J as runClusterer, K as handleCrystallise, L as RRF_K, M as recallRouteHandler, N as checkParams, O as crystalliseRouteHandler, P as unknownParamMessage, Q as CLUSTERER_BACKEND, R as armRanks, S as createEmbedStats, T as embedRowReporting, U as createCrystalliseGuard, X as l2normalize, _ as EMBEDDINGS_FETCH_MAX_REFS, a as REINDEX_MAX_LIMIT, b as handleLexicalCoverage, c as SALIENCE_BOOST_MAX_TARGETS, d as embeddingsMigration, et as memberKey, f as recallMcpTool, g as embeddingsFetchRouteHandler, h as embeddingSimilarOperator, i as REINDEX_DEFAULT_LIMIT, j as buildClusterSurface, k as CLUSTER_FIELDS, l as lexicalMigration, m as makeLexicalPostWrite, n as salienceBoostRouteHandler, nt as validateSelector, o as handleReindex, p as makeLexicalClassify, q as validateCrystalliseInput, r as reindexRouteHandler, s as validateReindexInput, t as createRecallPlugin, tt as SELECT_CANDIDATES_MAX_LIMIT, u as recallClustersMigration, v as embedStatsRouteHandler, w as embedAndStore, x as validateLexicalCoverageInput, y as handleEmbedStatsRequest, z as fuseByRank } from "./plugin-Dk9h__NU.js";
|
|
4
4
|
|
|
5
5
|
export { CLUSTERER_BACKEND, CLUSTERER_BACKEND_VERSION, CLUSTER_FIELDS, CLUSTER_MEMBER_FIELDS, CRYSTALLISE_IN_FLIGHT_CODE, DEFAULT_CRYSTALLISE_CONFIG, EMBEDDINGS_FETCH_MAX_REFS, EmbedSourceRegistry, InMemoryClusterStore, InMemoryEmbeddingsStore, InMemoryLexicalStore, PgClusterStore, PgEmbeddingsStore, PgLexicalStore, RECALL_VERSION, REINDEX_DEFAULT_LIMIT, REINDEX_MAX_LIMIT, RRF_K, SALIENCE_BOOST_MAX_TARGETS, SELECT_CANDIDATES_MAX_LIMIT, armRanks, buildClusterSurface, checkParams, createCrystalliseGuard, createEmbedStats, createRecallPlugin, crystalliseRouteHandler, embedAndStore, embedRowReporting, embedStatsRouteHandler, embeddingSimilarOperator, embeddingsFetchRouteHandler, embeddingsMigration, fuseByRank, handleCrystallise, handleEmbedStatsRequest, handleLexicalCoverage, handleRecallRequest, handleReindex, l2normalize, lexicalMigration, makeEmbedPostWrite, makeLexicalClassify, makeLexicalPostWrite, makeReembed, memberKey, recallClustersMigration, recallMcpTool, recallRouteHandler, reindexRouteHandler, runClusterer, salienceBoostRouteHandler, unknownParamMessage, unknownParams, validateCrystalliseInput, validateLexicalCoverageInput, validateReindexInput, validateSelector };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
|
-
import { a as parsePositive, i as DEFAULT_SIZING, n as defaultPluginsForPersona, r as parsePort, t as KNOWN_PLUGINS } from "./cli-
|
|
2
|
+
import { a as parsePositive, i as DEFAULT_SIZING, n as defaultPluginsForPersona, r as parsePort, t as KNOWN_PLUGINS } from "./cli-BYyPsfdY.js";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { stripVTControlCharacters, styleText } from "node:util";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as BridgeCredential } from "./bridge-
|
|
1
|
+
import { Ln as Row, _t as PolicyDecision, gt as Policy, in as WhereClause, l as FieldInput, n as Dropped, p as PlanClause, pt as AutoCrudVerb, yt as RequestContext } from "./schema-laGLMvMC.js";
|
|
2
|
+
import { n as BridgeCredential } from "./bridge-BhiJKwfF.js";
|
|
3
3
|
//#region ../../packages/substrate-types/src/nl.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* The engine-dispatchable frame a successful NL translation produces. Keys
|
|
@@ -161,7 +161,7 @@ interface NlParsedData {
|
|
|
161
161
|
}
|
|
162
162
|
type NlJudgedStatus = 'resolved' | 'recall' | 'clarify' | 'refuse' | 'escalated';
|
|
163
163
|
/**
|
|
164
|
-
* One
|
|
164
|
+
* One stream event, discriminated by `event`. The terminal answer is
|
|
165
165
|
* named by its outcome kind (`rows` | `recall` | `clarify` | `refuse` | `unknown`) and
|
|
166
166
|
* carries the whole outcome; `done` always follows. An in-band `error` event
|
|
167
167
|
* is not in this union: the client throws on it.
|
|
@@ -210,7 +210,7 @@ type NlWireEvent = {
|
|
|
210
210
|
data: Record<string, never>;
|
|
211
211
|
};
|
|
212
212
|
/**
|
|
213
|
-
* The JSON encoding's trail spells the terminal event `outcome`, where
|
|
213
|
+
* The JSON encoding's trail spells the terminal event `outcome`, where the stream
|
|
214
214
|
* names it by the outcome kind.
|
|
215
215
|
*/
|
|
216
216
|
type NlTrailEvent = ({
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
|
-
import { _ as AUDIT_EVENT_TYPE, g as buildAuditRow } from "./src-
|
|
2
|
+
import { _ as AUDIT_EVENT_TYPE, g as buildAuditRow } from "./src-oO0DtS6y.js";
|
|
3
3
|
import { n as trimTrailingSlashes } from "./env-utils-CGNazUNt.js";
|
|
4
|
-
import { I as decodeList, L as encodeList, M as grantEntryError, g as checkUpdatable, h as checkRevocable, y as newlyGranted } from "./src-
|
|
5
|
-
import "./src-
|
|
6
|
-
import { A as UPDATE_EXIT_CODES, B as readKeyById, C as grantLines, D as parseBootstrapArgs, E as formatBootstrapOutput, F as CLI_ACTOR_KID, G as validateArgv, H as resolveAdminAuth, I as base64Url, J as argvError, K as RESTART_NOTE, L as forUpdate, M as runKeyPatchViaRoute, N as ACTOR_HINT, O as runBootstrap, P as BootstrapError, R as generateAdminKeypair, S as runRegisterViaRoute, T as formatDoctorReport, U as resolveAdminTarget, V as describeAdminTarget, W as ARGV_SPEC, X as pgNoticeOptions, Y as AdminCliError, _ as openPgDataset, b as parseRegisterArgs, c as refuseContractViolation, d as registeredTypes, g as version, h as loadPluginsFromDir, j as runKeyListViaRoute, k as REVOKE_EXIT_CODES, l as buildDeferredIndexes, n as resolvePluginDir, q as USAGE, r as BINARY_CONTRACT_VERSION, s as parseEnv, t as bootStore, v as onboardCommand, w as doctorCommand, x as runRegister, y as formatRegisterOutput, z as listActiveAdminKeys } from "./boot-store-
|
|
7
|
-
import {
|
|
4
|
+
import { I as decodeList, L as encodeList, M as grantEntryError, g as checkUpdatable, h as checkRevocable, y as newlyGranted } from "./src-D3ACIp1y.js";
|
|
5
|
+
import "./src-B6nsPVmD.js";
|
|
6
|
+
import { A as UPDATE_EXIT_CODES, B as readKeyById, C as grantLines, D as parseBootstrapArgs, E as formatBootstrapOutput, F as CLI_ACTOR_KID, G as validateArgv, H as resolveAdminAuth, I as base64Url, J as argvError, K as RESTART_NOTE, L as forUpdate, M as runKeyPatchViaRoute, N as ACTOR_HINT, O as runBootstrap, P as BootstrapError, R as generateAdminKeypair, S as runRegisterViaRoute, T as formatDoctorReport, U as resolveAdminTarget, V as describeAdminTarget, W as ARGV_SPEC, X as pgNoticeOptions, Y as AdminCliError, _ as openPgDataset, b as parseRegisterArgs, c as refuseContractViolation, d as registeredTypes, g as version, h as loadPluginsFromDir, j as runKeyListViaRoute, k as REVOKE_EXIT_CODES, l as buildDeferredIndexes, n as resolvePluginDir, q as USAGE, r as BINARY_CONTRACT_VERSION, s as parseEnv, t as bootStore, v as onboardCommand, w as doctorCommand, x as runRegister, y as formatRegisterOutput, z as listActiveAdminKeys } from "./boot-store-DL2Wkzun.js";
|
|
7
|
+
import { E as substrateFetch } from "./src-B_oTGi3X.js";
|
|
8
|
+
import { C as copyRows, S as detectLayout, a as ensureTypeTable, b as UUID_CHECK_MIGRATION, c as typeTableRef, d as PLAIN_SCHEMA_NAME, g as isDerivedMigration, i as seqName, p as assertStoreSchema, s as loadTypeTable, u as MIGRATE_STORE_MARKER_TABLE, w as parseSourceBody, x as UUID_REGEX } from "./src-BcigMQdR.js";
|
|
8
9
|
import { existsSync, mkdirSync, rmSync, writeFileSync } from "node:fs";
|
|
9
10
|
import { dirname } from "node:path";
|
|
10
|
-
import { createHash,
|
|
11
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
11
12
|
import { statfs } from "node:fs/promises";
|
|
12
13
|
import postgres from "postgres";
|
|
13
14
|
import { PassThrough, Transform } from "node:stream";
|
|
@@ -1425,8 +1426,7 @@ async function runMigrateStore(args, env, deps) {
|
|
|
1425
1426
|
...vars,
|
|
1426
1427
|
SUBSTRATE_DATABASE_URL: toUrl,
|
|
1427
1428
|
HOST: "127.0.0.1",
|
|
1428
|
-
SUBSTRATE_SYSTEM_ACTOR: vars.SUBSTRATE_SYSTEM_ACTOR?.trim() || "migrate-store"
|
|
1429
|
-
SUBSTRATE_STREAM_TICKET_SECRET: vars.SUBSTRATE_STREAM_TICKET_SECRET?.trim() || randomBytes(32).toString("hex")
|
|
1429
|
+
SUBSTRATE_SYSTEM_ACTOR: vars.SUBSTRATE_SYSTEM_ACTOR?.trim() || "migrate-store"
|
|
1430
1430
|
};
|
|
1431
1431
|
const pluginDir = resolvePluginDir(targetEnv);
|
|
1432
1432
|
const boot = () => bootStore({
|
|
@@ -1740,8 +1740,17 @@ function shim(sink) {
|
|
|
1740
1740
|
|
|
1741
1741
|
//#endregion
|
|
1742
1742
|
//#region src/admin/commands/promote-fields.ts
|
|
1743
|
+
/**
|
|
1744
|
+
* `substrate-admin promote-fields [--url <base>]` — run the promotion sweep
|
|
1745
|
+
* now, through the running server's admin-gated
|
|
1746
|
+
* `POST /substrate/v1/_system/promote-fields`, rather than waiting for
|
|
1747
|
+
* `SUBSTRATE_PROMOTE_INTERVAL_MS`. It goes through the server because the
|
|
1748
|
+
* sweep's audit events must reach its subscribers; there is no `--direct`.
|
|
1749
|
+
* Unlike the timed sweep, it retries a field a unique conflict holds back,
|
|
1750
|
+
* so an operator who has fixed the data can finish its promotion.
|
|
1751
|
+
*/
|
|
1743
1752
|
/** Parses `argv` (after the subcommand), resolves the server, and runs one sweep there. */
|
|
1744
|
-
async function promoteFieldsCommand(argv, env, fetchImpl =
|
|
1753
|
+
async function promoteFieldsCommand(argv, env, fetchImpl = substrateFetch) {
|
|
1745
1754
|
validateArgv("promote-fields", argv);
|
|
1746
1755
|
let url;
|
|
1747
1756
|
for (let i = 0; i < argv.length; i++) {
|
|
@@ -1195,8 +1195,8 @@ interface Identity {
|
|
|
1195
1195
|
* tasks: ['read','mutate'] }`; `'*'` is a legal key. Read it through the
|
|
1196
1196
|
* `identity-grant.ts` helpers.
|
|
1197
1197
|
*
|
|
1198
|
-
* A plain object rather than a Map: `Identity` is JSON-serialised
|
|
1199
|
-
*
|
|
1198
|
+
* A plain object rather than a Map: `Identity` is JSON-serialised, and a
|
|
1199
|
+
* Map would arrive as `{}` on the far side.
|
|
1200
1200
|
*
|
|
1201
1201
|
* A bare `{ id }` with no grant (direct-call tests, system actors) is the
|
|
1202
1202
|
* no-claim case: `grantOf` resolves it to `null`, and the engine's grant
|
|
@@ -1224,7 +1224,7 @@ interface RequestContext {
|
|
|
1224
1224
|
* `peerIp` + the operator-configured trusted-proxy allowlist. When the peer
|
|
1225
1225
|
* is in the allowlist, this is the leftmost `x-forwarded-for` entry; when
|
|
1226
1226
|
* untrusted, this is the peer IP itself. Undefined when the transport doesn't
|
|
1227
|
-
* expose peerIp (direct engine unit tests,
|
|
1227
|
+
* expose peerIp (direct engine unit tests, paths without a peer).
|
|
1228
1228
|
*/
|
|
1229
1229
|
clientIp?: string;
|
|
1230
1230
|
/**
|
|
@@ -1440,33 +1440,6 @@ interface RequestObservation {
|
|
|
1440
1440
|
readonly durationMs: number;
|
|
1441
1441
|
}
|
|
1442
1442
|
type RequestObserver = (o: RequestObservation) => void;
|
|
1443
|
-
interface WsConnection {
|
|
1444
|
-
readonly id: string;
|
|
1445
|
-
send(frame: Buffer | Uint8Array | string): void;
|
|
1446
|
-
/**
|
|
1447
|
-
* Transport-level back-pressure seam. Resolves once the
|
|
1448
|
-
* socket's write buffer is below its high-water mark — immediately when it
|
|
1449
|
-
* already is. The stream route awaits this between chunks so a fast producer
|
|
1450
|
-
* paces to a slow consumer instead of growing the send buffer unbounded.
|
|
1451
|
-
* Optional: transports without buffer introspection (memory tests) omit it,
|
|
1452
|
-
* and the route treats a missing hook as "always drained".
|
|
1453
|
-
*/
|
|
1454
|
-
drain?(): Promise<void>;
|
|
1455
|
-
onMessage(cb: (frame: Buffer) => void): void;
|
|
1456
|
-
onClose(cb: (code?: number) => void): void;
|
|
1457
|
-
close(code?: number, reason?: string): void;
|
|
1458
|
-
/**
|
|
1459
|
-
* Register a callback invoked synchronously during graceful server shutdown,
|
|
1460
|
-
* BEFORE the underlying socket is closed. Higher layers use this to flush
|
|
1461
|
-
* structured frames (e.g. `{ kind: 'end', reason: 'server_restart' }` per
|
|
1462
|
-
* active subscription) so clients can short-circuit reconnect backoff
|
|
1463
|
-
* instead of seeing an abrupt 1006 drop. Optional — transports without a
|
|
1464
|
-
* pre-close hook (memory tests) may omit it; the route layer should
|
|
1465
|
-
* tolerate undefined.
|
|
1466
|
-
*/
|
|
1467
|
-
onShutdown?(cb: (reason: string) => void): void;
|
|
1468
|
-
}
|
|
1469
|
-
type WsHandler = (req: SubstrateRequest, conn: WsConnection) => void | Promise<void>;
|
|
1470
1443
|
interface TlsConfig {
|
|
1471
1444
|
cert: string | Buffer;
|
|
1472
1445
|
key: string | Buffer;
|
|
@@ -1483,7 +1456,6 @@ interface PluginRouter {
|
|
|
1483
1456
|
put(path: string, handler: HttpHandler): void;
|
|
1484
1457
|
delete(path: string, handler: HttpHandler): void;
|
|
1485
1458
|
patch(path: string, handler: HttpHandler): void;
|
|
1486
|
-
websocket(path: string, handler: WsHandler): void;
|
|
1487
1459
|
}
|
|
1488
1460
|
interface SubstrateServer {
|
|
1489
1461
|
start(opts?: StartOpts): Promise<{
|
|
@@ -1495,7 +1467,6 @@ interface SubstrateServer {
|
|
|
1495
1467
|
abortInFlight?: boolean;
|
|
1496
1468
|
}): Promise<void>;
|
|
1497
1469
|
route(method: HttpMethod, path: string, handler: HttpHandler): void;
|
|
1498
|
-
websocket(path: string, handler: WsHandler): void;
|
|
1499
1470
|
onError?(hook: (err: Error, req?: SubstrateRequest) => void): void;
|
|
1500
1471
|
createPluginRouter(plugin: {
|
|
1501
1472
|
name: string;
|
|
@@ -1503,17 +1474,16 @@ interface SubstrateServer {
|
|
|
1503
1474
|
/**
|
|
1504
1475
|
* Abort every in-flight HTTP request's `req.signal` so resolvers cooperatively
|
|
1505
1476
|
* bail. Used during graceful shutdown to give the engine a chance to roll
|
|
1506
|
-
* back mutations before fastify's drain timeout fires.
|
|
1507
|
-
* not affected by this call; their teardown rides on socket close.
|
|
1477
|
+
* back mutations before fastify's drain timeout fires.
|
|
1508
1478
|
*/
|
|
1509
1479
|
abortAllRequests(reason?: string): void;
|
|
1510
1480
|
/**
|
|
1511
1481
|
* Register a callback invoked synchronously at the START of `stop()` —
|
|
1512
1482
|
* before in-flight requests are aborted and before the transport drains.
|
|
1513
1483
|
*
|
|
1514
|
-
*
|
|
1515
|
-
* a
|
|
1516
|
-
*
|
|
1484
|
+
* For routes that hold a response open indefinitely (streams): handlers
|
|
1485
|
+
* flush a terminal frame and end their response, or the drain would wait
|
|
1486
|
+
* forever.
|
|
1517
1487
|
*
|
|
1518
1488
|
* Additive, not last-one-wins (unlike `onError`): a dropped registration is
|
|
1519
1489
|
* a leaked stream. Optional — transports with no graceful phase may omit it,
|
|
@@ -2178,7 +2148,7 @@ interface CoordinatorPlugin {
|
|
|
2178
2148
|
* - subprocess children that should receive SIGTERM cleanly
|
|
2179
2149
|
* - long-lived `setInterval` timers (`.unref()` keeps them from
|
|
2180
2150
|
* blocking exit, but explicit teardown is still cleaner for tests)
|
|
2181
|
-
* -
|
|
2151
|
+
* - open subscriptions / outbound connections that should close
|
|
2182
2152
|
* cooperatively rather than dropping mid-request
|
|
2183
2153
|
*
|
|
2184
2154
|
* Errors are caught + logged via the lifecycle metric sink under
|
|
@@ -2198,7 +2168,7 @@ interface CoordinatorPlugin {
|
|
|
2198
2168
|
*/
|
|
2199
2169
|
schedule?: ScheduledTask[];
|
|
2200
2170
|
/**
|
|
2201
|
-
* Mount plugin-scoped HTTP
|
|
2171
|
+
* Mount plugin-scoped HTTP routes. Called once at compose-time with a
|
|
2202
2172
|
* `PluginRouter` pre-prefixed `/substrate/v1/plugins/<name>` by the server impl. The
|
|
2203
2173
|
* router surface matches `PluginRouter` in `./server.ts`.
|
|
2204
2174
|
*
|
|
@@ -2699,6 +2669,11 @@ declare function naturalOrderOf(schema: Pick<TypeSchema, 'orderedBy'>): OrderedB
|
|
|
2699
2669
|
interface MutationSchema {
|
|
2700
2670
|
params: Record<string, FieldDef>;
|
|
2701
2671
|
returns: FieldDef;
|
|
2672
|
+
/**
|
|
2673
|
+
* Present when the mutation writes rows of its namespace's type (an autoCRUD
|
|
2674
|
+
* create or update): with no `fields`, its result is `{ id, shortId }`.
|
|
2675
|
+
*/
|
|
2676
|
+
writesRows?: true;
|
|
2702
2677
|
}
|
|
2703
2678
|
/**
|
|
2704
2679
|
* The published schema shape surfaced at `GET /substrate/v1/schema`. Spec: §4.2, §6.1,
|
|
@@ -2814,4 +2789,4 @@ type FieldInput = {
|
|
|
2814
2789
|
[field: string]: true | FieldInput;
|
|
2815
2790
|
};
|
|
2816
2791
|
//#endregion
|
|
2817
|
-
export { VirtualMutationDef as $,
|
|
2792
|
+
export { VirtualMutationDef as $, WalkAgg as $t, KernelLifecycleContext as A, OnMissing as An, DatasetRegistry as At, NamespaceTypeDef as B, WriteRow as Bn, IndexPlan as Bt, EmbedSourceContext as C, CanDeleteResult as Cn, RowFilterObligation as Ct, FilterOperatorDef as D, EdgeWriteInput as Dn, ConditionalUpdateResult as Dt, EngineInput as E, EdgeRef as En, AggFn as Et, KernelRouteClaim as F, IdentityKind as Fn, FilterCapabilities as Ft, Registry as G, ReadParams as Gt, PluginRouteContext as H, OrderByClause as Ht, McpToolRegistration as I, ROW_METADATA_FIELDS as In, FilterWriteLimits as It, RegistryEntryInput as J, StorageReport as Jt, RegistryBase as K, ReadResult as Kt, NamespaceConfig as L, Row as Ln, FilterWriteOptions as Lt, KernelMigrationContext as M, CLIENT_SUPPLIED_SERVER_FIELD as Mn, DropResult as Mt, KernelNamespaceContribution as N, ClientSuppliedServerFieldError as Nn, FieldKind as Nt, FrameEntry as O, EdgesStore as On, DEFAULT_FILTER_WRITE_LIMITS as Ot, KernelPlugin as P, Id as Pn, FieldPredicate as Pt, ScheduledTaskContext as Q, UpdateFieldRef as Qt, NamespaceDefinition as R, RowMetadata as Rn, FilterWriteResult as Rt, DropParticipant as S, FunctionSig as Sn, ResolverReturn as St, EngineHandle as T, EdgePatch as Tn, WriteEvent as Tt, PostWriteHook as U, PoolStats as Ut, PluginLifecycleContext as V, assertNoRepeatedIds as Vn, NestedSelection as Vt, QualifiedFrame as W, PromotionEvent as Wt, RegistryEntryResolver as X, TypeIndexState as Xt, RegistryEntryKind as Y, TxScopeHandles as Yt, ScheduledTask as Z, TypeStorageReport as Zt, naturalOrderOf as _, EXPR_AGGREGATES as _n, PolicyDecision as _t, FieldDefCrossRef as a, WriteOptions as an, RequestObserver as at, CommittedWritesHook as b, Expr as bn, Resolver as bt, FieldDefStruct as c, ResolveObservation as cn, SubstrateRequest as ct, OrderedBy as d, RuntimeErrors as dn, TlsConfig as dt, WalkAggOperand as en, VirtualTypeDef as et, PackEnvelope as f, RuntimeMetrics as fn, AfterTxWork as ft, isColumnField as g, DATE_UNITS as gn, Policy as gt, TypeSchema as h, ArgType as hn, Obligation as ht, FieldDef as i, WhereClause as in, RequestObservation as it, KernelMigration as j, ActorIdentity as jn, DeleteResult as jt, IndexDecl as k, OnDelete as kn, Dataset as kt, FieldInput as l, ResolverStat as ln, SubstrateResponse as lt, Schema as m, TypeStats as mn, Identity as mt, Dropped as n, WalkNode as nn, HttpMethod as nt, FieldDefList as o, WriteResult as on, RuntimeOp as ot, PlanClause as p, SlowRequest as pn, AutoCrudVerb as pt, RegistryEntry as q, RefOperand as qt, EnvelopeShape as r, WalkPick as rn, PluginRouter as rt, FieldDefScalar as s, ProcessStat as sn, StartOpts as st, DEFAULT_ORDERED_BY as t, WalkAggPredicate as tn, HttpHandler as tt, MutationSchema as u, RuntimeErrorEntry as un, SubstrateServer as ut, BatchResolver as v, EXPR_FUNCTIONS as vn, PolicyProbeContext as vt, EncodeContext as w, Edge as wn, TypedResolver as wt, CoordinatorPlugin as x, ExprType as xn, ResolverArgs as xt, CommittedWriteBatch as y, EXPR_LIMITS as yn, RequestContext as yt, NamespaceInstallContext as z, RowMetadataField as zn, FrameAgg as zt };
|
|
@@ -19,7 +19,7 @@ function assertKeys(frame, env, verb) {
|
|
|
19
19
|
*/
|
|
20
20
|
async function runScript(script, opts) {
|
|
21
21
|
const { client, kid, mode = "read", args = {}, maxWrites = 50, maxPages = DEFAULT_MAX_PAGES } = opts;
|
|
22
|
-
const log = opts.log ?? ((line) =>
|
|
22
|
+
const log = opts.log ?? ((line) => console.error(line));
|
|
23
23
|
const mutations = [];
|
|
24
24
|
const warnings = [];
|
|
25
25
|
const stats = {
|
|
@@ -81,8 +81,18 @@ async function runScript(script, opts) {
|
|
|
81
81
|
...fields
|
|
82
82
|
} })).data["recall/Hit"];
|
|
83
83
|
},
|
|
84
|
+
async schema(namespace, type) {
|
|
85
|
+
const all = await client.federatedSchema();
|
|
86
|
+
if (namespace === void 0) return all;
|
|
87
|
+
const ns = all[namespace];
|
|
88
|
+
if (ns === void 0) throw new Error(`schema: unknown namespace '${namespace}'`);
|
|
89
|
+
if (type === void 0) return ns;
|
|
90
|
+
const t = ns.types[type];
|
|
91
|
+
if (t === void 0) throw new Error(`schema: unknown type '${namespace}/${type}'`);
|
|
92
|
+
return t;
|
|
93
|
+
},
|
|
84
94
|
async mutate(frame) {
|
|
85
|
-
if (mode === "read") throw new Error("mutate refused: read mode (
|
|
95
|
+
if (mode === "read") throw new Error("mutate refused: read mode (run in dry-run or write mode)");
|
|
86
96
|
if (mode === "dry-run") {
|
|
87
97
|
mutations.push({
|
|
88
98
|
frame,
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
|
+
import { pathToFileURL } from "node:url";
|
|
3
|
+
|
|
4
|
+
//#region src/mcp/script-runner.ts
|
|
5
|
+
/**
|
|
6
|
+
* Child entry for a sandboxed `run`: imports the script and hands its default
|
|
7
|
+
* export a ScriptContext whose every call goes to the parent over IPC. The
|
|
8
|
+
* child runs under `--permission` with no fs beyond this file and the script,
|
|
9
|
+
* no network, no child processes and no workers, so the store, reached through
|
|
10
|
+
* the parent, is all a script can touch.
|
|
11
|
+
*
|
|
12
|
+
* Imports node builtins only: any other import would need fs access the
|
|
13
|
+
* sandbox does not grant.
|
|
14
|
+
*/
|
|
15
|
+
const send = (m) => {
|
|
16
|
+
process.send?.(m);
|
|
17
|
+
};
|
|
18
|
+
const pending = /* @__PURE__ */ new Map();
|
|
19
|
+
let seq = 0;
|
|
20
|
+
function call(op, ...input) {
|
|
21
|
+
const id = ++seq;
|
|
22
|
+
return new Promise((resolve, reject) => {
|
|
23
|
+
pending.set(id, {
|
|
24
|
+
resolve,
|
|
25
|
+
reject
|
|
26
|
+
});
|
|
27
|
+
send({
|
|
28
|
+
type: "call",
|
|
29
|
+
id,
|
|
30
|
+
op,
|
|
31
|
+
input
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
process.on("message", (m) => {
|
|
36
|
+
if (m.type === "reply") {
|
|
37
|
+
const p = pending.get(m.id);
|
|
38
|
+
pending.delete(m.id);
|
|
39
|
+
if (m.ok) p?.resolve(m.value);
|
|
40
|
+
else p?.reject(new Error(m.error));
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (m.type === "start") start(m);
|
|
44
|
+
});
|
|
45
|
+
async function start(m) {
|
|
46
|
+
const s = Object.freeze({
|
|
47
|
+
kid: m.kid,
|
|
48
|
+
mode: m.mode,
|
|
49
|
+
args: Object.freeze({ ...m.args }),
|
|
50
|
+
query: (frame) => call("query", frame),
|
|
51
|
+
queryAll: (key, frame) => call("queryAll", key, frame),
|
|
52
|
+
recall: (input) => call("recall", input),
|
|
53
|
+
schema: (namespace, type) => call("schema", namespace, type),
|
|
54
|
+
mutate: (frame) => call("mutate", frame),
|
|
55
|
+
log: (...args) => {
|
|
56
|
+
call("log", ...args);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
try {
|
|
60
|
+
const mod = await import(pathToFileURL(m.script).href);
|
|
61
|
+
if (typeof mod.default !== "function") throw new Error("the script must default-export a function (s) => result");
|
|
62
|
+
const result = await mod.default(s);
|
|
63
|
+
send({
|
|
64
|
+
type: "done",
|
|
65
|
+
ok: true,
|
|
66
|
+
result
|
|
67
|
+
});
|
|
68
|
+
} catch (err) {
|
|
69
|
+
send({
|
|
70
|
+
type: "done",
|
|
71
|
+
ok: false,
|
|
72
|
+
error: err instanceof Error ? err.message : String(err)
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
//#endregion
|
|
78
|
+
export { };
|
package/dist/sdk.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as VirtualMutationDef, $t as
|
|
2
|
-
import { i as BridgeFrame, n as BridgeCredential, r as BridgeCredentialStore, t as BridgeClient } from "./bridge-
|
|
3
|
-
import { C as isBatchElementError, S as isAuthCause, T as isRestrictViolation, _ as WALKS_NEED_PARTITIONED, a as NamespaceMismatch, b as WALK_UNSUPPORTED_REF, c as ROW_POLICY_BLOCKS_WALK, d as RestrictViolation, f as STORE_BUSY, g as WALKS_IN_SUBSCRIPTION, h as WALKS_IN_MUTATION, i as MissingReferentError, l as ReservedField, m as VALUE_OUT_OF_RANGE, n as BridgeUnreachableError, o as QUERY_TIMEOUT, p as UnsupportedFilterError, r as FILTER_TOO_BROAD, s as REGEX_BUDGET_EXCEEDED, t as BatchElementError, u as ResolverFrameError, v as WALKS_UNSUPPORTED_STORE, w as isResolverFrameError, x as filterTooBroad, y as WALK_BUDGET_EXCEEDED } from "./errors-
|
|
4
|
-
import { a as WsResponseFrame, c as ResolveTarget, d as TargetState, f as IdempotencyStore, i as WsRequestFrame, l as SweepDeps, n as WS_REASON_SERVER_RESTART, o as WsResponseKind, r as WS_REASON_SUBSCRIPTION_OVERLOADED, s as BridgeRegistry, t as WS_CODE_SUBSCRIPTION_UNSUPPORTED_FRAME, u as SweepState } from "./ws-
|
|
5
|
-
import { $ as NlJudgeAction, A as and, B as SYSTEM_NAMESPACE, C as flattenGrant, D as parseGrantEntries, E as intersectGrants, F as TokenProviderOpts, G as resolveAdminCredential, H as isActiveAdminKeyRow, I as adminClaimCapabilities, J as NlAggregate, K as resolveDefaultKeyPath, L as isEncryptedKey, M as or, N as ADMIN_CAPABILITIES, O as decodeList, P as DEFAULT_CAPABILITIES, Q as NlFieldPhrase, R as makeAuthorizationProvider, S as expandFlat, T as grantIsUniform, U as AdminCredential, V as describeGrant, W as AdminEnv, X as NlAskResult, Y as NlAskRequest, Z as NlEvidence, _ as newlyGrantedPairs, _t as NLVocabularyHint, a as denyAll, at as NlOutcome, b as capabilitiesFor, c as requireIdentity, ct as NlPackValueRef, d as KeyUpdateRefusal, dt as NlServedPack, et as NlJudgeChoice, f as checkRevocable, ft as NlTrailEvent, g as newlyGranted, gt as NLResult, h as grantEntriesConfer, ht as NLBase, i as allowVerbs, it as NlNamespaceRulings, j as not, k as encodeList, l as requireNamespace, lt as NlParseStatus, m as grantCovers, mt as NlWireEvent, n as row, nt as NlJudgedStatus, o as denyVerbs, ot as NlPackField, p as checkUpdatable, pt as NlValueAlias, q as resolveDefaultKidPath, r as allowAll, rt as NlNamespacePack, s as requireCapability, st as NlPackType, t as applyRowFilters, tt as NlJudgeStep, u as KeyMutationRefusal, ut as NlParsedData, v as revokedAtIso, vt as Query, w as grantEntryError, x as encodeGrant, y as Grant, z as makeTokenProvider } from "./row-
|
|
1
|
+
import { $ as VirtualMutationDef, $t as WalkAgg, A as KernelLifecycleContext, An as OnMissing, At as DatasetRegistry, B as NamespaceTypeDef, Bn as WriteRow, Bt as IndexPlan, C as EmbedSourceContext, Cn as CanDeleteResult, Ct as RowFilterObligation, D as FilterOperatorDef, Dn as EdgeWriteInput, Dt as ConditionalUpdateResult, E as EngineInput, En as EdgeRef, Et as AggFn, F as KernelRouteClaim, Fn as IdentityKind, Ft as FilterCapabilities, G as Registry, Gt as ReadParams, H as PluginRouteContext, Ht as OrderByClause, I as McpToolRegistration, In as ROW_METADATA_FIELDS, It as FilterWriteLimits, J as RegistryEntryInput, Jt as StorageReport, K as RegistryBase, Kt as ReadResult, L as NamespaceConfig, Ln as Row, Lt as FilterWriteOptions, M as KernelMigrationContext, Mn as CLIENT_SUPPLIED_SERVER_FIELD, Mt as DropResult, N as KernelNamespaceContribution, Nn as ClientSuppliedServerFieldError, Nt as FieldKind, O as FrameEntry, On as EdgesStore, Ot as DEFAULT_FILTER_WRITE_LIMITS, P as KernelPlugin, Pn as Id, Pt as FieldPredicate, Q as ScheduledTaskContext, Qt as UpdateFieldRef, R as NamespaceDefinition, Rn as RowMetadata, Rt as FilterWriteResult, S as DropParticipant, Sn as FunctionSig, St as ResolverReturn, T as EngineHandle, Tn as EdgePatch, Tt as WriteEvent, U as PostWriteHook, Ut as PoolStats, V as PluginLifecycleContext, Vn as assertNoRepeatedIds, Vt as NestedSelection, W as QualifiedFrame, Wt as PromotionEvent, X as RegistryEntryResolver, Xt as TypeIndexState, Y as RegistryEntryKind, Yt as TxScopeHandles, Z as ScheduledTask, Zt as TypeStorageReport, _ as naturalOrderOf, _n as EXPR_AGGREGATES, _t as PolicyDecision, a as FieldDefCrossRef, an as WriteOptions, at as RequestObserver, b as CommittedWritesHook, bn as Expr, bt as Resolver, c as FieldDefStruct, cn as ResolveObservation, ct as SubstrateRequest, d as OrderedBy, dn as RuntimeErrors, dt as TlsConfig, en as WalkAggOperand, et as VirtualTypeDef, f as PackEnvelope, fn as RuntimeMetrics, ft as AfterTxWork, g as isColumnField, gn as DATE_UNITS, gt as Policy, h as TypeSchema, hn as ArgType, ht as Obligation, i as FieldDef, in as WhereClause, it as RequestObservation, j as KernelMigration, jn as ActorIdentity, jt as DeleteResult, k as IndexDecl, kn as OnDelete, kt as Dataset, l as FieldInput, ln as ResolverStat, lt as SubstrateResponse, m as Schema, mn as TypeStats, mt as Identity, n as Dropped, nn as WalkNode, nt as HttpMethod, o as FieldDefList, on as WriteResult, ot as RuntimeOp, p as PlanClause, pn as SlowRequest, pt as AutoCrudVerb, q as RegistryEntry, qt as RefOperand, r as EnvelopeShape, rn as WalkPick, rt as PluginRouter, s as FieldDefScalar, sn as ProcessStat, st as StartOpts, t as DEFAULT_ORDERED_BY, tn as WalkAggPredicate, tt as HttpHandler, u as MutationSchema, un as RuntimeErrorEntry, ut as SubstrateServer, v as BatchResolver, vn as EXPR_FUNCTIONS, vt as PolicyProbeContext, w as EncodeContext, wn as Edge, wt as TypedResolver, x as CoordinatorPlugin, xn as ExprType, xt as ResolverArgs, y as CommittedWriteBatch, yn as EXPR_LIMITS, yt as RequestContext, z as NamespaceInstallContext, zn as RowMetadataField, zt as FrameAgg } from "./schema-laGLMvMC.js";
|
|
2
|
+
import { i as BridgeFrame, n as BridgeCredential, r as BridgeCredentialStore, t as BridgeClient } from "./bridge-BhiJKwfF.js";
|
|
3
|
+
import { C as isBatchElementError, S as isAuthCause, T as isRestrictViolation, _ as WALKS_NEED_PARTITIONED, a as NamespaceMismatch, b as WALK_UNSUPPORTED_REF, c as ROW_POLICY_BLOCKS_WALK, d as RestrictViolation, f as STORE_BUSY, g as WALKS_IN_SUBSCRIPTION, h as WALKS_IN_MUTATION, i as MissingReferentError, l as ReservedField, m as VALUE_OUT_OF_RANGE, n as BridgeUnreachableError, o as QUERY_TIMEOUT, p as UnsupportedFilterError, r as FILTER_TOO_BROAD, s as REGEX_BUDGET_EXCEEDED, t as BatchElementError, u as ResolverFrameError, v as WALKS_UNSUPPORTED_STORE, w as isResolverFrameError, x as filterTooBroad, y as WALK_BUDGET_EXCEEDED } from "./errors-CYOaWZ8l.js";
|
|
4
|
+
import { a as WsResponseFrame, c as ResolveTarget, d as TargetState, f as IdempotencyStore, i as WsRequestFrame, l as SweepDeps, n as WS_REASON_SERVER_RESTART, o as WsResponseKind, r as WS_REASON_SUBSCRIPTION_OVERLOADED, s as BridgeRegistry, t as WS_CODE_SUBSCRIPTION_UNSUPPORTED_FRAME, u as SweepState } from "./ws-BT8kL1IF.js";
|
|
5
|
+
import { $ as NlJudgeAction, A as and, B as SYSTEM_NAMESPACE, C as flattenGrant, D as parseGrantEntries, E as intersectGrants, F as TokenProviderOpts, G as resolveAdminCredential, H as isActiveAdminKeyRow, I as adminClaimCapabilities, J as NlAggregate, K as resolveDefaultKeyPath, L as isEncryptedKey, M as or, N as ADMIN_CAPABILITIES, O as decodeList, P as DEFAULT_CAPABILITIES, Q as NlFieldPhrase, R as makeAuthorizationProvider, S as expandFlat, T as grantIsUniform, U as AdminCredential, V as describeGrant, W as AdminEnv, X as NlAskResult, Y as NlAskRequest, Z as NlEvidence, _ as newlyGrantedPairs, _t as NLVocabularyHint, a as denyAll, at as NlOutcome, b as capabilitiesFor, c as requireIdentity, ct as NlPackValueRef, d as KeyUpdateRefusal, dt as NlServedPack, et as NlJudgeChoice, f as checkRevocable, ft as NlTrailEvent, g as newlyGranted, gt as NLResult, h as grantEntriesConfer, ht as NLBase, i as allowVerbs, it as NlNamespaceRulings, j as not, k as encodeList, l as requireNamespace, lt as NlParseStatus, m as grantCovers, mt as NlWireEvent, n as row, nt as NlJudgedStatus, o as denyVerbs, ot as NlPackField, p as checkUpdatable, pt as NlValueAlias, q as resolveDefaultKidPath, r as allowAll, rt as NlNamespacePack, s as requireCapability, st as NlPackType, t as applyRowFilters, tt as NlJudgeStep, u as KeyMutationRefusal, ut as NlParsedData, v as revokedAtIso, vt as Query, w as grantEntryError, x as encodeGrant, y as Grant, z as makeTokenProvider } from "./row-CfsHSEfB.js";
|
|
6
6
|
//#region ../../packages/substrate-types/src/assert-never.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* Exhaustiveness guard for the `default:` arm of a `switch` over a
|
|
@@ -464,7 +464,8 @@ interface PurgeResolverResult {
|
|
|
464
464
|
purged: boolean;
|
|
465
465
|
[field: string]: unknown;
|
|
466
466
|
}
|
|
467
|
-
|
|
467
|
+
/** With `policy`, a row its row filters hide is left in place and answers `purged: false`. */
|
|
468
|
+
export declare function purgeResolver(typeName: string, dataset: Dataset, policy?: Policy): TypedResolver<PurgeResolverResult>;
|
|
468
469
|
//#endregion
|
|
469
470
|
//#region ../../packages/substrate-sdk/src/autocrud/autocrud-update.d.ts
|
|
470
471
|
interface UpdateResolverOptions {
|
|
@@ -513,7 +514,7 @@ export declare function createResolver<T extends Row = Row>(typeName: string, da
|
|
|
513
514
|
/** `update<T>`: the batch resolver with one element. */
|
|
514
515
|
export declare function updateResolver<T extends Row = Row>(typeName: string, dataset: Dataset, edges: EdgesStore, options?: Pick<BatchResolverOptions, 'fields'>): TypedResolver<T | null>;
|
|
515
516
|
/** `delete<T>`: the batch resolver with one element. */
|
|
516
|
-
export declare function deleteResolver(typeName: string, dataset: Dataset, edges: EdgesStore): TypedResolver<DeleteResolverResult>;
|
|
517
|
+
export declare function deleteResolver(typeName: string, dataset: Dataset, edges: EdgesStore, options?: Pick<BatchResolverOptions, 'policy'>): TypedResolver<DeleteResolverResult>;
|
|
517
518
|
//#endregion
|
|
518
519
|
//#region ../../packages/substrate-sdk/src/autocrud/filter-writes.d.ts
|
|
519
520
|
/**
|
|
@@ -885,4 +886,4 @@ export declare function resolveEntityId(dataset: Dataset, type: string, input: I
|
|
|
885
886
|
*/
|
|
886
887
|
export declare function resolveEntityRow(dataset: Dataset, type: string, input: Id): Promise<Row | null>;
|
|
887
888
|
//#endregion
|
|
888
|
-
export { ADMIN_CAPABILITIES, ActorIdentity, type AdminCredential, type AdminEnv, AfterTxWork, AggFn, ArgType, AutoCrudVerb, BatchElementError, BatchResolver, BridgeClient, BridgeCredential, BridgeCredentialStore, BridgeFrame, BridgeRegistry, BridgeUnreachableError, CLIENT_SUPPLIED_SERVER_FIELD, CanDeleteResult, ClientSuppliedServerFieldError, CommittedWriteBatch, CommittedWritesHook, ConditionalUpdateResult, CoordinatorPlugin, type CrossRefFieldOptions, DATE_UNITS, DEFAULT_CAPABILITIES, DEFAULT_FILTER_WRITE_LIMITS, DEFAULT_ORDERED_BY, Dataset, DatasetRegistry, type DateFieldOptions, type DefineNamespaceOptions, DeleteResult, type DeleteRowArgs, type DeleteRowResult, DropParticipant, DropResult, Dropped, EXPR_AGGREGATES, EXPR_FUNCTIONS, EXPR_LIMITS, Edge, EdgePatch, EdgeRef, EdgeWriteInput, EdgesStore, EmbedSourceContext, EncodeContext, EngineHandle, EngineInput, EnvelopeShape, Expr, ExprType, FILTER_TOO_BROAD, FieldDef, FieldDefCrossRef, FieldDefList, FieldDefScalar, FieldDefStruct, FieldInput, FieldKind, FieldPredicate, FilterCapabilities, FilterOperatorDef, FilterWriteLimits, type FilterWriteMutationResult, FilterWriteOptions, FilterWriteResult, FrameAgg, FrameEntry, FunctionSig, type Grant, HttpHandler, HttpMethod, Id, IdempotencyStore, Identity, IdentityKind, IndexDecl, IndexPlan, type JsonFieldOptions, KernelLifecycleContext, KernelMigration, KernelMigrationContext, KernelNamespaceContribution, KernelPlugin, KernelRouteClaim, type KeyMutationRefusal, type KeyUpdateRefusal, type ListFieldOptions, McpToolRegistration, MissingReferentError, MutationSchema, NLBase, NLResult, NLVocabularyHint, NamespaceConfig, NamespaceDefinition, NamespaceInstallContext, NamespaceMismatch, NamespaceTypeDef, NestedSelection, NlAggregate, NlAskRequest, NlAskResult, NlEvidence, NlFieldPhrase, NlJudgeAction, NlJudgeChoice, NlJudgeStep, NlJudgedStatus, NlNamespacePack, NlNamespaceRulings, NlOutcome, NlPackField, NlPackType, NlPackValueRef, NlParseStatus, NlParsedData, NlServedPack, NlTrailEvent, NlValueAlias, NlWireEvent, Obligation, OnDelete, OnMissing, OrderByClause, OrderedBy, PackEnvelope, PlanClause, PluginLifecycleContext, PluginRouteContext, PluginRouter, Policy, PolicyDecision, PolicyProbeContext, PoolStats, PostWriteHook, ProcessStat, PromotionEvent, QUERY_TIMEOUT, QualifiedFrame, Query, REGEX_BUDGET_EXCEEDED, ROW_METADATA_FIELDS, ROW_POLICY_BLOCKS_WALK, ReadParams, ReadResult, RefOperand, Registry, RegistryBase, RegistryEntry, RegistryEntryInput, RegistryEntryKind, RegistryEntryResolver, RequestContext, RequestObservation, RequestObserver, ReservedField, ResolveObservation, ResolveTarget, Resolver, ResolverArgs, ResolverFrameError, ResolverReturn, ResolverStat, RestrictViolation, Row, RowFilterObligation, RowMetadata, RowMetadataField, RuntimeErrorEntry, RuntimeErrors, RuntimeMetrics, RuntimeOp, STORE_BUSY, SYSTEM_NAMESPACE, type ScalarFieldOptions, ScheduledTask, ScheduledTaskContext, Schema, SlowRequest, StartOpts, StorageReport, type StructFieldOptions, SubstrateRequest, SubstrateResponse, SubstrateServer, SweepDeps, SweepState, TargetState, TlsConfig, type TokenProviderOpts, TxScopeHandles, TypeIndexState, type TypeInput, TypeSchema, TypeStats, TypeStorageReport, TypedResolver, UnsupportedFilterError, UpdateFieldRef, type UpdateResolverOptions, VALUE_OUT_OF_RANGE, VirtualMutationDef, VirtualTypeDef, WALKS_IN_MUTATION, WALKS_IN_SUBSCRIPTION, WALKS_NEED_PARTITIONED, WALKS_UNSUPPORTED_STORE, WALK_BUDGET_EXCEEDED, WALK_UNSUPPORTED_REF, WS_CODE_SUBSCRIPTION_UNSUPPORTED_FRAME, WS_REASON_SERVER_RESTART, WS_REASON_SUBSCRIPTION_OVERLOADED, WalkAgg, WalkAggOperand, WalkAggPredicate, WalkNode, WalkPick, WhereClause, WriteEvent, WriteOptions, WriteResult, WriteRow,
|
|
889
|
+
export { ADMIN_CAPABILITIES, ActorIdentity, type AdminCredential, type AdminEnv, AfterTxWork, AggFn, ArgType, AutoCrudVerb, BatchElementError, BatchResolver, BridgeClient, BridgeCredential, BridgeCredentialStore, BridgeFrame, BridgeRegistry, BridgeUnreachableError, CLIENT_SUPPLIED_SERVER_FIELD, CanDeleteResult, ClientSuppliedServerFieldError, CommittedWriteBatch, CommittedWritesHook, ConditionalUpdateResult, CoordinatorPlugin, type CrossRefFieldOptions, DATE_UNITS, DEFAULT_CAPABILITIES, DEFAULT_FILTER_WRITE_LIMITS, DEFAULT_ORDERED_BY, Dataset, DatasetRegistry, type DateFieldOptions, type DefineNamespaceOptions, DeleteResult, type DeleteRowArgs, type DeleteRowResult, DropParticipant, DropResult, Dropped, EXPR_AGGREGATES, EXPR_FUNCTIONS, EXPR_LIMITS, Edge, EdgePatch, EdgeRef, EdgeWriteInput, EdgesStore, EmbedSourceContext, EncodeContext, EngineHandle, EngineInput, EnvelopeShape, Expr, ExprType, FILTER_TOO_BROAD, FieldDef, FieldDefCrossRef, FieldDefList, FieldDefScalar, FieldDefStruct, FieldInput, FieldKind, FieldPredicate, FilterCapabilities, FilterOperatorDef, FilterWriteLimits, type FilterWriteMutationResult, FilterWriteOptions, FilterWriteResult, FrameAgg, FrameEntry, FunctionSig, type Grant, HttpHandler, HttpMethod, Id, IdempotencyStore, Identity, IdentityKind, IndexDecl, IndexPlan, type JsonFieldOptions, KernelLifecycleContext, KernelMigration, KernelMigrationContext, KernelNamespaceContribution, KernelPlugin, KernelRouteClaim, type KeyMutationRefusal, type KeyUpdateRefusal, type ListFieldOptions, McpToolRegistration, MissingReferentError, MutationSchema, NLBase, NLResult, NLVocabularyHint, NamespaceConfig, NamespaceDefinition, NamespaceInstallContext, NamespaceMismatch, NamespaceTypeDef, NestedSelection, NlAggregate, NlAskRequest, NlAskResult, NlEvidence, NlFieldPhrase, NlJudgeAction, NlJudgeChoice, NlJudgeStep, NlJudgedStatus, NlNamespacePack, NlNamespaceRulings, NlOutcome, NlPackField, NlPackType, NlPackValueRef, NlParseStatus, NlParsedData, NlServedPack, NlTrailEvent, NlValueAlias, NlWireEvent, Obligation, OnDelete, OnMissing, OrderByClause, OrderedBy, PackEnvelope, PlanClause, PluginLifecycleContext, PluginRouteContext, PluginRouter, Policy, PolicyDecision, PolicyProbeContext, PoolStats, PostWriteHook, ProcessStat, PromotionEvent, QUERY_TIMEOUT, QualifiedFrame, Query, REGEX_BUDGET_EXCEEDED, ROW_METADATA_FIELDS, ROW_POLICY_BLOCKS_WALK, ReadParams, ReadResult, RefOperand, Registry, RegistryBase, RegistryEntry, RegistryEntryInput, RegistryEntryKind, RegistryEntryResolver, RequestContext, RequestObservation, RequestObserver, ReservedField, ResolveObservation, ResolveTarget, Resolver, ResolverArgs, ResolverFrameError, ResolverReturn, ResolverStat, RestrictViolation, Row, RowFilterObligation, RowMetadata, RowMetadataField, RuntimeErrorEntry, RuntimeErrors, RuntimeMetrics, RuntimeOp, STORE_BUSY, SYSTEM_NAMESPACE, type ScalarFieldOptions, ScheduledTask, ScheduledTaskContext, Schema, SlowRequest, StartOpts, StorageReport, type StructFieldOptions, SubstrateRequest, SubstrateResponse, SubstrateServer, SweepDeps, SweepState, TargetState, TlsConfig, type TokenProviderOpts, TxScopeHandles, TypeIndexState, type TypeInput, TypeSchema, TypeStats, TypeStorageReport, TypedResolver, UnsupportedFilterError, UpdateFieldRef, type UpdateResolverOptions, VALUE_OUT_OF_RANGE, VirtualMutationDef, VirtualTypeDef, WALKS_IN_MUTATION, WALKS_IN_SUBSCRIPTION, WALKS_NEED_PARTITIONED, WALKS_UNSUPPORTED_STORE, WALK_BUDGET_EXCEEDED, WALK_UNSUPPORTED_REF, WS_CODE_SUBSCRIPTION_UNSUPPORTED_FRAME, WS_REASON_SERVER_RESTART, WS_REASON_SUBSCRIPTION_OVERLOADED, WalkAgg, WalkAggOperand, WalkAggPredicate, WalkNode, WalkPick, WhereClause, WriteEvent, WriteOptions, WriteResult, WriteRow, WsRequestFrame, WsResponseFrame, WsResponseKind, adminClaimCapabilities, allowAll, allowVerbs, and, applyRowFilters, assertNoRepeatedIds, capabilitiesFor, checkRevocable, checkUpdatable, decodeList, denyAll, denyVerbs, describeGrant, encodeGrant, encodeList, expandFlat, filterTooBroad, flattenGrant, grantCovers, grantEntriesConfer, grantEntryError, grantIsUniform, intersectGrants, isActiveAdminKeyRow, isAuthCause, isBatchElementError, isColumnField, isEncryptedKey, isResolverFrameError, isRestrictViolation, makeAuthorizationProvider, makeTokenProvider, naturalOrderOf, newlyGranted, newlyGrantedPairs, not, or, parseGrantEntries, requireCapability, requireIdentity, requireNamespace, resolveAdminCredential, resolveDefaultKeyPath, resolveDefaultKidPath, revokedAtIso, row };
|
package/dist/sdk.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __binCreateRequire } from 'node:module'; const require = __binCreateRequire(import.meta.url);
|
|
2
|
-
import { $t as METADATA_FILTER_FIELDS, A as isReservedAutoCrudField, An as isAuthCause, B as
|
|
2
|
+
import { $t as METADATA_FILTER_FIELDS, A as isReservedAutoCrudField, An as isAuthCause, B as createResolver, Bt as parseJsonBody, C as makeCtx, Cn as WALKS_IN_MUTATION, D as RESERVED_AUTOCRUD_FIELDS, Dn as WALK_BUDGET_EXCEEDED, E as selectAll, En as WALKS_UNSUPPORTED_STORE, F as createResolverWithEdges, Fn as ROW_METADATA_FIELDS, G as listResolver, Gt as WS_REASON_SUBSCRIPTION_OVERLOADED, H as updateResolver, I as installAutoCrud, In as assertNoRepeatedIds, It as JSON_HEADERS, J as resolveIdentity, Jt as normaliseVocabWhere, K as getResolver, Kt as canonicalVocabValue, L as deleteManyResolver, Ln as canonicalize, M as field, Mn as isResolverFrameError, N as AutoCrudNameCollisionError, Nn as isRestrictViolation, O as RESERVED_AUTOCRUD_FIELD_NAMES, On as WALK_UNSUPPORTED_REF, P as autoCrudOptionsOf, Pn as CLIENT_SUPPLIED_SERVER_FIELD, Qt as METADATA_AUTHOR_FIELDS, R as updateManyResolver, Rn as BootstrapConfigError, Rt as error400, S as EngineQueryError, Sn as VALUE_OUT_OF_RANGE, T as queryOne, Tn as WALKS_NEED_PARTITIONED, U as applyUpdatePatch, Ut as WS_CODE_SUBSCRIPTION_UNSUPPORTED_FRAME, V as deleteResolver, W as deleteRow, Wt as WS_REASON_SERVER_RESTART, X as resolveEntityRow, Xt as vocabImplication, Y as resolveEntityId, Yt as storedVocabSpellings, Zt as RegistryBase, _n as ReservedField, an as isIsoTimestamp, b as assertOrderedBy, bn as STORE_BUSY, cn as validateHardDeleteEnv, dn as FILTER_TOO_BROAD, en as normaliseMetadataOrderBy, fn as MissingReferentError, gn as ROW_POLICY_BLOCKS_WALK, hn as REGEX_BUDGET_EXCEEDED, in as isImpossibleIsoTimestamp, j as reservedMetadataFieldMessage, jn as isBatchElementError, k as RESERVED_METADATA_FIELD_NAMES, kn as filterTooBroad, ln as BatchElementError, mn as QUERY_TIMEOUT, nn as normaliseWalkNode, on as normalizeIsoTimestamp, pn as NamespaceMismatch, q as UnattributedWriteError, qt as normaliseVocabValues, rn as createKeyedMutex, sn as assertHardDeleteAllowed, tn as normaliseMetadataWhere, un as BridgeUnreachableError, vn as ResolverFrameError, w as queryAll, wn as WALKS_IN_SUBSCRIPTION, x as defineNamespace, xn as UnsupportedFilterError, y as assertIndexDecl, yn as RestrictViolation, z as purgeResolver, zn as defineBootstrap, zt as jsonResponse } from "./src-oO0DtS6y.js";
|
|
3
3
|
import { a as adminClaimCapabilities, c as makeTokenProvider, d as resolveDefaultKidPath, i as DEFAULT_CAPABILITIES, l as resolveAdminCredential, n as trimTrailingSlashes, o as isEncryptedKey, r as ADMIN_CAPABILITIES, s as makeAuthorizationProvider, t as parsePositiveInt, u as resolveDefaultKeyPath } from "./env-utils-CGNazUNt.js";
|
|
4
|
-
import { A as expandFlat, C as not, D as isActiveAdminKeyRow, E as describeGrant, F as parseGrantEntries, I as decodeList, L as encodeList, M as grantEntryError, N as grantIsUniform, O as capabilitiesFor, P as intersectGrants, S as and, T as SYSTEM_NAMESPACE, _ as grantCovers, a as denyAll, b as newlyGrantedPairs, c as requireIdentity, d as confersAnywhere, f as coversNamespace, g as checkUpdatable, h as checkRevocable, i as allowVerbs, j as flattenGrant, k as encodeGrant, l as requireNamespace, m as grantedIn, n as row, o as denyVerbs, p as grantOf, r as allowAll, s as requireCapability, t as applyRowFilters, u as allCapabilities, v as grantEntriesConfer, w as or, x as revokedAtIso, y as newlyGranted } from "./src-
|
|
5
|
-
import {
|
|
4
|
+
import { A as expandFlat, C as not, D as isActiveAdminKeyRow, E as describeGrant, F as parseGrantEntries, I as decodeList, L as encodeList, M as grantEntryError, N as grantIsUniform, O as capabilitiesFor, P as intersectGrants, S as and, T as SYSTEM_NAMESPACE, _ as grantCovers, a as denyAll, b as newlyGrantedPairs, c as requireIdentity, d as confersAnywhere, f as coversNamespace, g as checkUpdatable, h as checkRevocable, i as allowVerbs, j as flattenGrant, k as encodeGrant, l as requireNamespace, m as grantedIn, n as row, o as denyVerbs, p as grantOf, r as allowAll, s as requireCapability, t as applyRowFilters, u as allCapabilities, v as grantEntriesConfer, w as or, x as revokedAtIso, y as newlyGranted } from "./src-D3ACIp1y.js";
|
|
5
|
+
import { B as isInt32, F as isColumnField, G as EXPR_AGGREGATES, H as stringifyJson, I as naturalOrderOf, J as DEFAULT_FILTER_WRITE_LIMITS, K as EXPR_FUNCTIONS, L as formatQualifiedKey, P as DEFAULT_ORDERED_BY, R as parseQualifiedKey, U as stringifyJsonExact, V as parseInt64, W as DATE_UNITS, Y as assertNever, q as EXPR_LIMITS, z as isInt16 } from "./src-B6nsPVmD.js";
|
|
6
6
|
|
|
7
7
|
export { ADMIN_CAPABILITIES, AutoCrudNameCollisionError, BatchElementError, BootstrapConfigError, BridgeUnreachableError, CLIENT_SUPPLIED_SERVER_FIELD, DATE_UNITS, DEFAULT_CAPABILITIES, DEFAULT_FILTER_WRITE_LIMITS, DEFAULT_ORDERED_BY, EXPR_AGGREGATES, EXPR_FUNCTIONS, EXPR_LIMITS, EngineQueryError, FILTER_TOO_BROAD, JSON_HEADERS, METADATA_AUTHOR_FIELDS, METADATA_FILTER_FIELDS, MissingReferentError, NamespaceMismatch, QUERY_TIMEOUT, REGEX_BUDGET_EXCEEDED, RESERVED_AUTOCRUD_FIELDS, RESERVED_AUTOCRUD_FIELD_NAMES, RESERVED_METADATA_FIELD_NAMES, ROW_METADATA_FIELDS, ROW_POLICY_BLOCKS_WALK, RegistryBase, ReservedField, ResolverFrameError, RestrictViolation, STORE_BUSY, SYSTEM_NAMESPACE, UnattributedWriteError, UnsupportedFilterError, VALUE_OUT_OF_RANGE, WALKS_IN_MUTATION, WALKS_IN_SUBSCRIPTION, WALKS_NEED_PARTITIONED, WALKS_UNSUPPORTED_STORE, WALK_BUDGET_EXCEEDED, WALK_UNSUPPORTED_REF, WS_CODE_SUBSCRIPTION_UNSUPPORTED_FRAME, WS_REASON_SERVER_RESTART, WS_REASON_SUBSCRIPTION_OVERLOADED, adminClaimCapabilities, allCapabilities, allowAll, allowVerbs, and, applyRowFilters, applyUpdatePatch, assertHardDeleteAllowed, assertIndexDecl, assertNever, assertNoRepeatedIds, assertOrderedBy, autoCrudOptionsOf, canonicalVocabValue, canonicalize, capabilitiesFor, checkRevocable, checkUpdatable, confersAnywhere, coversNamespace, createKeyedMutex, createResolver, createResolverWithEdges, decodeList, defineBootstrap, defineNamespace, deleteManyResolver, deleteResolver, deleteRow, denyAll, denyVerbs, describeGrant, encodeGrant, encodeList, error400, expandFlat, field, filterTooBroad, flattenGrant, formatQualifiedKey, getResolver, grantCovers, grantEntriesConfer, grantEntryError, grantIsUniform, grantOf, grantedIn, installAutoCrud, intersectGrants, isActiveAdminKeyRow, isAuthCause, isBatchElementError, isColumnField, isEncryptedKey, isImpossibleIsoTimestamp, isInt16, isInt32, isIsoTimestamp, isReservedAutoCrudField, isResolverFrameError, isRestrictViolation, jsonResponse, listResolver, makeAuthorizationProvider, makeCtx, makeTokenProvider, naturalOrderOf, newlyGranted, newlyGrantedPairs, normaliseMetadataOrderBy, normaliseMetadataWhere, normaliseVocabValues, normaliseVocabWhere, normaliseWalkNode, normalizeIsoTimestamp, not, or, parseGrantEntries, parseInt64, parseJsonBody, parsePositiveInt, parseQualifiedKey, purgeResolver, queryAll, queryOne, requireCapability, requireIdentity, requireNamespace, reservedMetadataFieldMessage, resolveAdminCredential, resolveDefaultKeyPath, resolveDefaultKidPath, resolveEntityId, resolveEntityRow, resolveIdentity, revokedAtIso, row, selectAll, storedVocabSpellings, stringifyJson, stringifyJsonExact, trimTrailingSlashes, updateManyResolver, updateResolver, validateHardDeleteEnv, vocabImplication };
|