diff --git a/docs/features/knowledge.md b/docs/features/knowledge.md
index 7782839248c..2cbaa07feab 100644
--- a/docs/features/knowledge.md
+++ b/docs/features/knowledge.md
@@ -139,8 +139,15 @@ and databases are shared with, whose credential is the integration's token; and
([recordings](#a-recording-source)). The `knowledge_source_sync` worker pulls each
source's files into the namespace's documents ([syncing](#syncing-a-source)); `list`
says whether this deployment runs it (`enabled`, `LOOM_KNOWLEDGE_SOURCE_SYNC_ENABLED`,
-off by default). The design of connected accounts and access that follows the store's
-permissions is in [document sources](../architecture/document-sources.md).
+off by default). `LOOM_KNOWLEDGE_SOURCE_SELF_SERVICE_ENABLED=false` turns off the two
+operations that take a member's source credential: `add` and `rotate` then answer
+`SELF_SERVICE_OFF` before any probe or write, the other source operations still answer,
+`list` says so (`self_service`), and the dashboard offers neither. Connected accounts are
+governed separately: while a provider's OAuth client is set (`LOOM_CONNECT_GDRIVE_CLIENT_ID`,
+`LOOM_CONNECT_NOTION_CLIENT_ID`, `LOOM_CONNECT_LINEAR_CLIENT_ID`), a member can still connect
+an account, and its callback stores the account's refresh token. Leave a provider's client id
+empty to keep its connections off. The design of connected accounts and access that follows
+the store's permissions is in [document sources](../architecture/document-sources.md).
Open **Settings → Connected accounts** to connect your Google Drive, Notion or Linear
account. Choose **Connect**, complete the provider's consent screen, and return to the
diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md
index 504a8e9c408..bab329b68c8 100644
--- a/docs/reference/configuration.md
+++ b/docs/reference/configuration.md
@@ -1034,6 +1034,7 @@ Knowledge documents and conversations: chunking, search floor, thread titles.
| `LOOM_KNOWLEDGE_CONNECTED_SOURCES_MAX_PER_PERSON` | `int` | `8` | live | Active connected sources one canonical person may register in one namespace. |
| `LOOM_KNOWLEDGE_SOURCE_PROBE_TIMEOUT_S` | `float` | `20.0` | live | Seconds a document source's probe (add, update, check, rotate) or tracker short-id lookup may take in all; past it add, update and rotate answer SOURCE_UNREACHABLE and check answers reachable: false. |
| `LOOM_KNOWLEDGE_SOURCE_SYNC_ENABLED` | `bool` | `False` | | The knowledge_source_sync worker: pulls each registered document source's changed files into its namespace's documents. Off by default: it needs each source's credential, spends embedding calls on every changed document and model calls mining it for decisions. |
+| `LOOM_KNOWLEDGE_SOURCE_SELF_SERVICE_ENABLED` | `bool` | `True` | live | Off refuses knowledge.source.add and rotate (SELF_SERVICE_OFF). Connected-account OAuth is separate: it stays on for each provider whose connect_*_client_id is set. |
| `LOOM_KNOWLEDGE_MIRRORED_SOURCES_ENABLED` | `bool` | `False` | | Require protected automatic session capture and persist deployment privacy state. Off does not lift protection while the deployment latch remains set. |
| `LOOM_KNOWLEDGE_SOURCE_ACL_STALE_SECONDS` | `int` | `3600` | | Mirrored reads require a complete listing and group observation within this many seconds; missing or older evidence admits nobody. |
| `LOOM_KNOWLEDGE_SOURCE_ACL_MAX_ENTRIES` | `int` | `10000` | | Maximum team and member rows read for one project's complete permission list. A larger list refuses publication rather than granting from a partial page. |
diff --git a/docs/reference/errors.md b/docs/reference/errors.md
index 411a4050579..7c7a19d68c4 100644
--- a/docs/reference/errors.md
+++ b/docs/reference/errors.md
@@ -852,7 +852,7 @@ Raised in `server/memory/app/profile.py`.
#### `SELF_SERVICE_OFF`
-Raised in `server/code/app/repo_admin.py`, `server/tracker/app/sources.py`.
+Raised in `server/code/app/repo_admin.py`, `server/knowledge/app/sources.py`, `server/tracker/app/sources.py`.
#### `SELF_SIGNUP_DISABLED`
diff --git a/docs/reference/operations/knowledge.md b/docs/reference/operations/knowledge.md
index ce11319251e..1a4f72d5f16 100644
--- a/docs/reference/operations/knowledge.md
+++ b/docs/reference/operations/knowledge.md
@@ -706,6 +706,7 @@ The document sources registered on a namespace, with each one's sync state.
| `sources` | `list[KnowledgeSourceEntry]` | The namespace's active sources, by name. |
| `enabled` | `bool` | Whether this deployment runs the sync worker (LOOM_KNOWLEDGE_SOURCE_SYNC_ENABLED); false: sources are stored and probed, but nothing pulls from them. |
| `accepts_sources` | `bool` | False where add would refuse the namespace (PERSONAL_NAMESPACE, NAMESPACE_INACTIVE). |
+| `self_service` | `bool` | Whether knowledge.source.add and rotate answer on this deployment (LOOM_KNOWLEDGE_SOURCE_SELF_SERVICE_ENABLED); the page offers neither when false. |
## `knowledge.source.parse_links`
diff --git a/frontend/src/flows/KnowledgeSourceDialog.test.tsx b/frontend/src/flows/KnowledgeSourceDialog.test.tsx
index 3024fc29024..4012c41ca76 100644
--- a/frontend/src/flows/KnowledgeSourceDialog.test.tsx
+++ b/frontend/src/flows/KnowledgeSourceDialog.test.tsx
@@ -56,6 +56,14 @@ afterEach(() => {
const refused = () =>
new ApiError({ status: 400, code: "CREDENTIAL_REFUSED", message: "the source refused the credential: http_401" });
+const selfServiceOff = () =>
+ new ApiError({
+ status: 422,
+ code: "SELF_SERVICE_OFF",
+ message:
+ "adding a document source or rotating its credential is off on this deployment " +
+ "(LOOM_KNOWLEDGE_SOURCE_SELF_SERVICE_ENABLED); ask the operator",
+ });
/** Nothing the page shows — its text, a field's value outside the password input, a
* toast — carries the key. */
@@ -141,6 +149,18 @@ describe("AddSourceDialog", () => {
expectKeyNowhere();
});
+ it("words a self-service refusal by the document source it refused, not repositories", async () => {
+ vi.mocked(addKnowledgeSource).mockRejectedValue(selfServiceOff());
+ renderAdd();
+ await fill();
+ fireEvent.click(screen.getByRole("button", { name: "Check" }));
+ const alert = await screen.findByRole("alert");
+ expect(alert).toHaveTextContent("The operator turned this off");
+ expect(alert).toHaveTextContent("adding a document source");
+ expect(alert).not.toHaveTextContent(/repositor/i);
+ expectKeyNowhere();
+ });
+
it("a refused add keeps the passed check, so Add can be tried again", async () => {
vi.mocked(addKnowledgeSource).mockImplementation(async (_id, _f, dryRun) => {
if (dryRun) return addResult(true);
@@ -394,6 +414,20 @@ describe("RotateSourceDialog", () => {
expect(await screen.findByRole("alert")).toHaveTextContent("refused the credential");
expectKeyNowhere();
});
+
+ it("words a self-service refusal of a rotation without naming repositories", async () => {
+ vi.mocked(rotateKnowledgeSource).mockRejectedValue(selfServiceOff());
+ render(
+ {}} {...NS} name="design-docs" kind="gdrive" onRotated={() => {}} />,
+ );
+ fireEvent.change(screen.getByLabelText(/^Service account key/), { target: { value: KEY } });
+ fireEvent.click(screen.getByRole("button", { name: "Rotate" }));
+ const alert = await screen.findByRole("alert");
+ expect(alert).toHaveTextContent("The operator turned this off");
+ expect(alert).toHaveTextContent("rotating its credential");
+ expect(alert).not.toHaveTextContent(/repositor/i);
+ expectKeyNowhere();
+ });
});
describe("CheckSourceDialog", () => {
diff --git a/frontend/src/lib/errorWords.ts b/frontend/src/lib/errorWords.ts
index cdb8405ace8..d16cac6e21e 100644
--- a/frontend/src/lib/errorWords.ts
+++ b/frontend/src/lib/errorWords.ts
@@ -71,7 +71,8 @@ export const ERROR_CODE_PREFIXES: Record = {
MODEL_CALLS_DISABLED:
"Model calls are off for this org; an org admin can turn them on in Admin › Guardrails unless a platform admin locked them:",
SANDBOX_UNAVAILABLE: "Adding repositories is turned off on this deployment:",
- SELF_SERVICE_OFF: "Adding repositories is turned off on this deployment:",
+ // Shared by repositories, tracker sources and document sources: the server's words name the action.
+ SELF_SERVICE_OFF: "The operator turned this off:",
REPO_EXISTS: "This repository is already indexed:",
REPO_QUOTA: "The repository limit is reached:",
};
diff --git a/frontend/src/lib/knowledgeSources.ts b/frontend/src/lib/knowledgeSources.ts
index c77b1a3a611..3aabe6e3de7 100644
--- a/frontend/src/lib/knowledgeSources.ts
+++ b/frontend/src/lib/knowledgeSources.ts
@@ -60,6 +60,8 @@ export interface KnowledgeSourceList {
enabled: boolean;
/** False where add would refuse the namespace; absent from an older server. */
accepts_sources?: boolean;
+ /** False where the operator turned add and rotate off; absent from an older server. */
+ self_service?: boolean;
}
export interface KnowledgeSourceProbe {
diff --git a/frontend/src/views/Documents.sources.test.tsx b/frontend/src/views/Documents.sources.test.tsx
index 67e3aaf689a..fed8d0c9c90 100644
--- a/frontend/src/views/Documents.sources.test.tsx
+++ b/frontend/src/views/Documents.sources.test.tsx
@@ -304,6 +304,23 @@ describe("Library sources", () => {
).toEqual(["Check", "Retire"]);
});
+ it("offers no Add and no Rotate where the deployment turned self-service off", async () => {
+ sources.listKnowledgeSources.mockResolvedValue({ ...LISTED, self_service: false });
+ show("admin");
+ await openSources();
+ expect(await screen.findByText("team-notes")).toBeInTheDocument();
+ expect(screen.getByText("Adding document sources is turned off on this deployment.")).toBeInTheDocument();
+ expect(screen.queryByRole("button", { name: "Add a source" })).toBeNull();
+ const user = userEvent.setup();
+ await user.click(screen.getByRole("button", { name: "Actions for team-notes" }));
+ const menu = await screen.findByRole("menu", { name: "Actions for team-notes" });
+ expect(
+ within(menu)
+ .getAllByRole("menuitem")
+ .map((m) => m.textContent),
+ ).toEqual(["Check", "Sync now", "Push notifications", "Retire"]);
+ });
+
it("keeps the list closed, counted on its button, until it is pressed, and closes again", async () => {
show("viewer");
const user = userEvent.setup();
diff --git a/frontend/src/views/SourcesList.tsx b/frontend/src/views/SourcesList.tsx
index 36e48e466e0..ebc2c8daf61 100644
--- a/frontend/src/views/SourcesList.tsx
+++ b/frontend/src/views/SourcesList.tsx
@@ -56,7 +56,7 @@ const TONE_STATE: Record = { ok: "success", warn: "warning
type State =
| { kind: "loading" }
- | { kind: "ready"; sources: KnowledgeSource[]; enabled: boolean; accepts: boolean }
+ | { kind: "ready"; sources: KnowledgeSource[]; enabled: boolean; accepts: boolean; selfService: boolean }
| { kind: "absent" }
| { kind: "refused" }
| { kind: "error"; error: unknown };
@@ -162,7 +162,13 @@ export function SourcesList({
try {
const r = await listKnowledgeSources(id, { signal });
if (!live()) return;
- setState({ kind: "ready", sources: r.sources, enabled: r.enabled, accepts: r.accepts_sources !== false });
+ setState({
+ kind: "ready",
+ sources: r.sources,
+ enabled: r.enabled,
+ accepts: r.accepts_sources !== false,
+ selfService: r.self_service !== false,
+ });
} catch (e) {
if (!live()) return;
if (isOpAbsent(e)) setState({ kind: "absent" });
@@ -182,7 +188,9 @@ export function SourcesList({
const retire: RowMenuItem = { label: "Retire", icon: "trash", danger: true, onSelect: act("retire") };
// A place that takes no new source refuses a sync and a rotation: Check and Retire remain.
const closed = state.kind === "ready" && !state.accepts;
- const items = closed ? [check, retire] : [check, sync, rotate, retire];
+ // With self-service off the deployment refuses a rotation too; a sync still runs.
+ const rotates = state.kind === "ready" && state.selfService;
+ const items = closed ? [check, retire] : rotates ? [check, sync, rotate, retire] : [check, sync, retire];
if (!closed && ["gdrive", "notion", "linear"].includes(s.kind)) {
items.splice(2, 0, { label: "Push notifications", icon: "refresh", onSelect: act("push") });
}
@@ -195,7 +203,7 @@ export function SourcesList({
// The Library's section hides while its list loads, on an empty place that takes
// no source or that this caller cannot add to, and from a non-admin when the list failed.
const empty = state.kind === "ready" && state.sources.length === 0;
- const closedAndEmpty = empty && !state.accepts;
+ const closedAndEmpty = empty && (!state.accepts || !state.selfService);
const nothingForReader = empty && !manageable;
const loading = state.kind === "loading";
const failedForReader = state.kind !== "ready" && !loading && !manageable;
@@ -223,7 +231,10 @@ export function SourcesList({
{manageable && state.sources.length > 0 ? "; retire these when they are no longer needed." : "."}
)}
- {state.kind === "ready" && state.accepts && state.sources.length === 0 && (
+ {state.kind === "ready" && state.accepts && !state.selfService && (
+ Adding document sources is turned off on this deployment.
+ )}
+ {state.kind === "ready" && state.accepts && state.selfService && state.sources.length === 0 && (
No document sources.{" "}
{manageable
@@ -238,7 +249,7 @@ export function SourcesList({
))}
)}
- {manageable && state.kind === "ready" && state.accepts && (
+ {manageable && state.kind === "ready" && state.accepts && state.selfService && (
setAdding(true)}>
Add a source
diff --git a/loom.example.yaml b/loom.example.yaml
index 2a8d0704f65..71920ae7231 100644
--- a/loom.example.yaml
+++ b/loom.example.yaml
@@ -3071,6 +3071,11 @@ settings:
# it for decisions. [restart]
# knowledge_source_sync_enabled: false
+ # Off refuses knowledge.source.add and rotate (SELF_SERVICE_OFF). Connected-account
+ # OAuth is separate: it stays on for each provider whose connect_*_client_id is set.
+ # [live]
+ # knowledge_source_self_service_enabled: true
+
# Require protected automatic session capture and persist deployment privacy state.
# Off does not lift protection while the deployment latch remains set. [restart]
# knowledge_mirrored_sources_enabled: false
diff --git a/schemas/loom-settings.schema.json b/schemas/loom-settings.schema.json
index d61aeaa8bcd..a631eea8ee0 100644
--- a/schemas/loom-settings.schema.json
+++ b/schemas/loom-settings.schema.json
@@ -3628,6 +3628,11 @@
"type": "integer",
"description": "Documents of stopped mirrored sources retired per cleanup pass, independently of the content-sync budget. Cleanup continues while syncing is switched off."
},
+ "knowledge_source_self_service_enabled": {
+ "default": true,
+ "type": "boolean",
+ "description": "Off refuses knowledge.source.add and rotate (SELF_SERVICE_OFF). Connected-account OAuth is separate: it stays on for each provider whose connect_*_client_id is set."
+ },
"knowledge_source_sync_cap_share": {
"default": 0.25,
"exclusiveMinimum": 0.0,
diff --git a/sdk/go/wire/models.gen.go b/sdk/go/wire/models.gen.go
index f515cfeb4d6..84f56fe063d 100644
--- a/sdk/go/wire/models.gen.go
+++ b/sdk/go/wire/models.gen.go
@@ -1,5 +1,5 @@
// Code generated by scripts/codegen/sdk_go_gen.py; DO NOT EDIT.
-// Registry model schema SHA-256: de827ca9c57963620b38d2e67b4367f0b0be4c68bb187b9a0d3c6a14bcf035ac
+// Registry model schema SHA-256: 4caa103a274338954f8edffc70089fd5a4f51c2effbfb2e2b35e1967cc063c0e
// Package wire contains the Go requests and responses for Loom operations.
package wire
@@ -2300,6 +2300,7 @@ type CodeSearchOutput struct {
AbstainReason *string `json:"abstain_reason,omitempty"`
RetrievalRisk *string `json:"retrieval_risk,omitempty"`
RetrievalConfidence *float64 `json:"retrieval_confidence,omitempty"`
+ PickConfidence *string `json:"pick_confidence,omitempty"`
RouteAgreement *float64 `json:"route_agreement,omitempty"`
CalibrationExplanation *string `json:"calibration_explanation,omitempty"`
TokensReturned *int64 `json:"tokens_returned,omitempty"`
@@ -2857,6 +2858,7 @@ type ConflictsListOutput struct {
Rows []ConflictRow `json:"rows"`
NextBeforeVersion Optional[uint64] `json:"next_before_version,omitempty"`
Total Optional[int64] `json:"total,omitempty"`
+ Proposals Optional[int64] `json:"proposals,omitempty"`
Keys Optional[[]string] `json:"keys,omitempty"`
}
@@ -5611,6 +5613,7 @@ type KnowledgeSourceListOutput struct {
Sources *[]KnowledgeSourceEntry `json:"sources,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
AcceptsSources *bool `json:"accepts_sources,omitempty"`
+ SelfService *bool `json:"self_service,omitempty"`
}
// KnowledgeSourceParseLinksInput is the request to knowledge.source.parse_links.
@@ -7659,6 +7662,7 @@ type MemoryProposalsInput struct {
Tags *[]string `json:"tags,omitempty"`
Only *string `json:"only,omitempty"`
Limit *int64 `json:"limit,omitempty"`
+ CountOnly *bool `json:"count_only,omitempty"`
}
// MemoryProposalsOutput is the response from memory.proposals.
diff --git a/sdk/python/loom/ops.py b/sdk/python/loom/ops.py
index 657af460159..f6046785662 100644
--- a/sdk/python/loom/ops.py
+++ b/sdk/python/loom/ops.py
@@ -12093,6 +12093,7 @@ class KnowledgeSourceListOutput(TypedDict, total=False):
sources: NotRequired[list["KnowledgeSourceEntry"]]
enabled: NotRequired[bool]
accepts_sources: NotRequired[bool]
+ self_service: NotRequired[bool]
class KnowledgeSourceEntry(TypedDict, total=False):
diff --git a/sdk/rust/src/wire_models.rs b/sdk/rust/src/wire_models.rs
index 19e4ee51f1d..e3292e6b419 100644
--- a/sdk/rust/src/wire_models.rs
+++ b/sdk/rust/src/wire_models.rs
@@ -27207,6 +27207,8 @@ pub struct KnowledgeSourceListOutput {
pub enabled: bool,
#[serde(default = "default_1257")]
pub accepts_sources: bool,
+ #[serde(default = "default_1258")]
+ pub self_service: bool,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
@@ -27258,18 +27260,18 @@ impl KnowledgeSourceListInput {
#[non_exhaustive]
pub struct KnowledgeSourceParsedLink {
pub link: String,
- #[serde(default = "default_1258")]
- pub kind: String,
#[serde(default = "default_1259")]
- pub item: std::collections::HashMap,
+ pub kind: String,
#[serde(default = "default_1260")]
+ pub item: std::collections::HashMap,
+ #[serde(default = "default_1261")]
pub unreadable: String,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct KnowledgeSourceParseLinksOutput {
- #[serde(default = "default_1261")]
+ #[serde(default = "default_1262")]
pub links: Vec,
}
@@ -27320,25 +27322,25 @@ impl KnowledgeSourceParseLinksInput {
#[derive(Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct PushStatusOutput {
- #[serde(default = "default_1262")]
- pub enabled: bool,
#[serde(default = "default_1263")]
- pub status: String,
+ pub enabled: bool,
#[serde(default = "default_1264")]
- pub provider: String,
+ pub status: String,
#[serde(default = "default_1265")]
- pub generation: String,
+ pub provider: String,
#[serde(default = "default_1266")]
- pub callback_url: String,
+ pub generation: String,
#[serde(default = "default_1267")]
- pub provider_id: String,
+ pub callback_url: String,
#[serde(default = "default_1268")]
- pub challenge_fingerprint: String,
+ pub provider_id: String,
#[serde(default = "default_1269")]
- pub verification_token: String,
+ pub challenge_fingerprint: String,
#[serde(default = "default_1270")]
- pub channels: Integer,
+ pub verification_token: String,
#[serde(default = "default_1271")]
+ pub channels: Integer,
+ #[serde(default = "default_1272")]
pub expires_at: f64,
}
impl std::fmt::Debug for PushStatusOutput {
@@ -27583,7 +27585,7 @@ impl PushStatusInput {
#[non_exhaustive]
pub struct KnowledgeSourceRemoveOutput {
pub name: String,
- #[serde(default = "default_1272")]
+ #[serde(default = "default_1273")]
pub documents_pending: Integer,
}
@@ -27646,9 +27648,9 @@ impl KnowledgeSourceRemoveInput {
#[non_exhaustive]
pub struct KnowledgeSourceRotateOutput {
pub name: String,
- #[serde(default = "default_1273")]
- pub probe: KnowledgeSourceProbe,
#[serde(default = "default_1274")]
+ pub probe: KnowledgeSourceProbe,
+ #[serde(default = "default_1275")]
pub rotated_at: String,
}
@@ -27700,7 +27702,7 @@ impl KnowledgeSourceRotateInput {
#[non_exhaustive]
pub struct KnowledgeSourceSyncNowOutput {
pub name: String,
- #[serde(default = "default_1275")]
+ #[serde(default = "default_1276")]
pub enabled: bool,
}
@@ -27763,17 +27765,17 @@ impl KnowledgeSourceSyncNowInput {
#[non_exhaustive]
pub struct KnowledgeSourceUpdateOutput {
pub name: String,
- #[serde(default = "default_1276")]
- pub items: Vec>,
#[serde(default = "default_1277")]
- pub include: Vec,
+ pub items: Vec>,
#[serde(default = "default_1278")]
- pub config: std::collections::HashMap,
+ pub include: Vec,
#[serde(default = "default_1279")]
- pub added: Vec>,
+ pub config: std::collections::HashMap,
#[serde(default = "default_1280")]
- pub removed: Vec>,
+ pub added: Vec>,
#[serde(default = "default_1281")]
+ pub removed: Vec>,
+ #[serde(default = "default_1282")]
pub probe: KnowledgeSourceProbe,
}
@@ -27889,9 +27891,9 @@ impl KnowledgeSourceUpdateInput {
pub struct CitedChunk {
pub source_uri: String,
pub chunk_idx: Integer,
- #[serde(default = "default_1283")]
- pub revision: Integer,
#[serde(default = "default_1284")]
+ pub revision: Integer,
+ #[serde(default = "default_1285")]
pub locator: Option>,
}
@@ -27900,12 +27902,12 @@ pub struct CitedChunk {
pub struct SynthesizeCalculation {
pub columns: Vec,
pub rows: Vec>,
- #[serde(default = "default_1291")]
- pub row_ids: Vec>,
#[serde(default = "default_1292")]
+ pub row_ids: Vec>,
+ #[serde(default = "default_1293")]
pub truncated: bool,
pub complete: bool,
- #[serde(default = "default_1293")]
+ #[serde(default = "default_1294")]
pub incomplete: Vec,
pub receipt: QueryReceipt,
pub citation: String,
@@ -27919,23 +27921,23 @@ pub struct KnowledgeSynthesizeOutput {
pub chunks_read: Integer,
pub documents: Integer,
pub reduce_rounds: Integer,
- #[serde(default = "default_1282")]
+ #[serde(default = "default_1283")]
pub citations: Vec,
- #[serde(default = "default_1285")]
- pub cited_chunks: Vec,
#[serde(default = "default_1286")]
- pub unsupported_citations: Vec,
+ pub cited_chunks: Vec,
#[serde(default = "default_1287")]
- pub truncated: bool,
+ pub unsupported_citations: Vec,
#[serde(default = "default_1288")]
- pub abstain: bool,
+ pub truncated: bool,
#[serde(default = "default_1289")]
- pub abstain_reason: String,
+ pub abstain: bool,
#[serde(default = "default_1290")]
+ pub abstain_reason: String,
+ #[serde(default = "default_1291")]
pub clarification: String,
- #[serde(default = "default_1294")]
- pub calculations: Vec,
#[serde(default = "default_1295")]
+ pub calculations: Vec,
+ #[serde(default = "default_1296")]
pub model: String,
}
@@ -28051,13 +28053,13 @@ impl KnowledgeSynthesizeInput {
#[non_exhaustive]
pub struct KnowledgeUpdateMetadataOutput {
pub updated: bool,
- #[serde(default = "default_1296")]
- pub title: String,
#[serde(default = "default_1297")]
- pub description: String,
+ pub title: String,
#[serde(default = "default_1298")]
- pub tags: Vec,
+ pub description: String,
#[serde(default = "default_1299")]
+ pub tags: Vec,
+ #[serde(default = "default_1300")]
pub chunks_reindexed: Integer,
}
@@ -28169,13 +28171,13 @@ pub struct KnowledgeUpsertOutput {
pub chunks_superseded: Integer,
pub embedding_model: String,
pub embedding_dim: Integer,
- #[serde(default = "default_1300")]
- pub duplicate_of_uri: String,
#[serde(default = "default_1301")]
- pub duplicate_chunk_count: Integer,
+ pub duplicate_of_uri: String,
#[serde(default = "default_1302")]
- pub namespace: String,
+ pub duplicate_chunk_count: Integer,
#[serde(default = "default_1303")]
+ pub namespace: String,
+ #[serde(default = "default_1304")]
pub source_uri: String,
}
@@ -28360,26 +28362,26 @@ pub struct LearningEntry {
pub memory_type: String,
pub proposed_value: Value,
pub supporter_count: Integer,
- #[serde(default = "default_1304")]
- pub supporter_sessions: Integer,
#[serde(default = "default_1305")]
+ pub supporter_sessions: Integer,
+ #[serde(default = "default_1306")]
pub supporter_writers: Integer,
pub confidence_avg: f64,
pub supporters: Vec,
pub rationale: String,
- #[serde(default = "default_1306")]
- pub source_kind: String,
#[serde(default = "default_1307")]
- pub source_resource_id: String,
+ pub source_kind: String,
#[serde(default = "default_1308")]
+ pub source_resource_id: String,
+ #[serde(default = "default_1309")]
pub agent: String,
pub status: LearningEntryStatus,
pub proposed_at: String,
- #[serde(default = "default_1309")]
- pub decided_at: Option,
#[serde(default = "default_1310")]
- pub decided_by: String,
+ pub decided_at: Option,
#[serde(default = "default_1311")]
+ pub decided_by: String,
+ #[serde(default = "default_1312")]
pub decision_reason: String,
}
@@ -28582,11 +28584,11 @@ pub enum LearningsReviewOutputNewStatus {
pub struct LearningsReviewOutput {
pub candidate_id: String,
pub new_status: LearningsReviewOutputNewStatus,
- #[serde(default = "default_1312")]
- pub promoted_to_shared: bool,
#[serde(default = "default_1313")]
- pub promoted_to_knowledge: bool,
+ pub promoted_to_shared: bool,
#[serde(default = "default_1314")]
+ pub promoted_to_knowledge: bool,
+ #[serde(default = "default_1315")]
pub knowledge_source_uri: String,
pub decided_at: String,
}
@@ -28790,7 +28792,7 @@ impl MemoryAgentsListInput {
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct AggregateRow {
- #[serde(default = "default_1315")]
+ #[serde(default = "default_1316")]
pub group: std::collections::HashMap,
pub metric: f64,
}
@@ -28798,9 +28800,9 @@ pub struct AggregateRow {
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct MemoryAggregateOutput {
- #[serde(default = "default_1316")]
- pub rows: Vec,
#[serde(default = "default_1317")]
+ pub rows: Vec,
+ #[serde(default = "default_1318")]
pub sql_executed: String,
}
@@ -28968,15 +28970,15 @@ impl MemoryAggregateInput {
pub struct BulkSetResult {
pub memory_key: String,
pub version: Integer,
- #[serde(default = "default_1318")]
- pub memory_id: String,
#[serde(default = "default_1319")]
- pub conflict_verdict: String,
+ pub memory_id: String,
#[serde(default = "default_1320")]
- pub peers: Vec,
+ pub conflict_verdict: String,
#[serde(default = "default_1321")]
- pub next: String,
+ pub peers: Vec,
#[serde(default = "default_1322")]
+ pub next: String,
+ #[serde(default = "default_1323")]
pub pinned_blocker_id: String,
}
@@ -28984,29 +28986,29 @@ pub struct BulkSetResult {
#[non_exhaustive]
pub struct MemoryBulkSetOutput {
pub written: Vec,
- #[serde(default = "default_1323")]
- pub skipped_pinned: Vec,
#[serde(default = "default_1324")]
- pub skipped_locked: Vec,
+ pub skipped_pinned: Vec,
#[serde(default = "default_1325")]
- pub skipped_blacklisted: Vec,
+ pub skipped_locked: Vec,
#[serde(default = "default_1326")]
- pub merged: Vec,
+ pub skipped_blacklisted: Vec,
#[serde(default = "default_1327")]
- pub value_updates_linked: Integer,
+ pub merged: Vec,
#[serde(default = "default_1328")]
- pub rejected_pinned: Vec,
+ pub value_updates_linked: Integer,
#[serde(default = "default_1329")]
- pub duplicates: Vec,
+ pub rejected_pinned: Vec,
#[serde(default = "default_1330")]
- pub conflicted: Vec,
+ pub duplicates: Vec,
#[serde(default = "default_1331")]
- pub unchecked: Integer,
+ pub conflicted: Vec,
#[serde(default = "default_1332")]
- pub retyped: Vec,
+ pub unchecked: Integer,
#[serde(default = "default_1333")]
- pub identity_duplicates: std::collections::HashMap,
+ pub retyped: Vec,
#[serde(default = "default_1334")]
+ pub identity_duplicates: std::collections::HashMap,
+ #[serde(default = "default_1335")]
pub stage_ms: std::collections::HashMap,
}
@@ -29156,18 +29158,18 @@ pub enum ApplyRowStatus {
#[non_exhaustive]
pub struct ApplyRow {
pub memory_key: String,
- #[serde(default = "default_1342")]
- pub memory_id: String,
#[serde(default = "default_1343")]
- pub agent: String,
+ pub memory_id: String,
#[serde(default = "default_1344")]
- pub user_id: String,
+ pub agent: String,
#[serde(default = "default_1345")]
+ pub user_id: String,
+ #[serde(default = "default_1346")]
pub session_id: String,
pub status: ApplyRowStatus,
- #[serde(default = "default_1346")]
- pub version: Option,
#[serde(default = "default_1347")]
+ pub version: Option,
+ #[serde(default = "default_1348")]
pub detail: String,
}
@@ -29177,21 +29179,21 @@ pub struct MemoryApplyOutput {
pub action: String,
pub dry_run: bool,
pub target: String,
- #[serde(default = "default_1335")]
- pub matched: Integer,
#[serde(default = "default_1336")]
- pub applied: Integer,
+ pub matched: Integer,
#[serde(default = "default_1337")]
- pub would_apply: Integer,
+ pub applied: Integer,
#[serde(default = "default_1338")]
- pub refused: Integer,
+ pub would_apply: Integer,
#[serde(default = "default_1339")]
- pub noop: Integer,
+ pub refused: Integer,
#[serde(default = "default_1340")]
- pub failed: Integer,
+ pub noop: Integer,
#[serde(default = "default_1341")]
+ pub failed: Integer,
+ #[serde(default = "default_1342")]
pub truncated: bool,
- #[serde(default = "default_1348")]
+ #[serde(default = "default_1349")]
pub rows: Vec,
}
@@ -29925,137 +29927,137 @@ pub enum MemoryAskOutputDeepFirst {
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct MemoryAskOutput {
- #[serde(default = "default_1349")]
- pub answer: String,
#[serde(default = "default_1350")]
- pub source: MemoryAskOutputSource,
+ pub answer: String,
#[serde(default = "default_1351")]
- pub abstain: bool,
+ pub source: MemoryAskOutputSource,
#[serde(default = "default_1352")]
- pub abstain_reason: String,
+ pub abstain: bool,
#[serde(default = "default_1353")]
- pub memory_keys: Vec,
+ pub abstain_reason: String,
#[serde(default = "default_1354")]
- pub results: Vec,
+ pub memory_keys: Vec,
#[serde(default = "default_1355")]
- pub cited_sessions: Vec,
+ pub results: Vec,
#[serde(default = "default_1356")]
- pub next: String,
+ pub cited_sessions: Vec,
#[serde(default = "default_1357")]
- pub synth_model: String,
+ pub next: String,
#[serde(default = "default_1358")]
- pub route_tier: MemoryAskOutputRouteTier,
+ pub synth_model: String,
#[serde(default = "default_1359")]
- pub route_reason: String,
+ pub route_tier: MemoryAskOutputRouteTier,
#[serde(default = "default_1360")]
- pub llm_cache_hits: Integer,
+ pub route_reason: String,
#[serde(default = "default_1361")]
- pub llm_cache_misses: Integer,
+ pub llm_cache_hits: Integer,
#[serde(default = "default_1362")]
- pub llm_cache: bool,
+ pub llm_cache_misses: Integer,
#[serde(default = "default_1363")]
- pub llm_cache_saved_usd: f64,
+ pub llm_cache: bool,
#[serde(default = "default_1364")]
- pub temporal_consistency: Option,
+ pub llm_cache_saved_usd: f64,
#[serde(default = "default_1365")]
- pub citation_concentration: Option,
+ pub temporal_consistency: Option,
#[serde(default = "default_1366")]
- pub escalated: bool,
+ pub citation_concentration: Option,
#[serde(default = "default_1367")]
- pub gate_mode: String,
+ pub escalated: bool,
#[serde(default = "default_1368")]
- pub gate_kept: Integer,
+ pub gate_mode: String,
#[serde(default = "default_1369")]
- pub gate_dropped: Integer,
+ pub gate_kept: Integer,
#[serde(default = "default_1370")]
- pub pending_extraction: Integer,
+ pub gate_dropped: Integer,
#[serde(default = "default_1371")]
- pub pending_evidence: Integer,
+ pub pending_extraction: Integer,
#[serde(default = "default_1372")]
- pub retrieval_query: String,
+ pub pending_evidence: Integer,
#[serde(default = "default_1373")]
- pub facets: Vec,
+ pub retrieval_query: String,
#[serde(default = "default_1374")]
- pub facet_memories_added: Integer,
+ pub facets: Vec,
#[serde(default = "default_1375")]
- pub consistency: MemoryAskOutputConsistency,
+ pub facet_memories_added: Integer,
#[serde(default = "default_1376")]
- pub consistency_score: f64,
+ pub consistency: MemoryAskOutputConsistency,
#[serde(default = "default_1377")]
- pub consistency_note: String,
+ pub consistency_score: f64,
#[serde(default = "default_1378")]
- pub identifier_chase_hops: Integer,
+ pub consistency_note: String,
#[serde(default = "default_1379")]
- pub identifier_chase_added: Integer,
+ pub identifier_chase_hops: Integer,
#[serde(default = "default_1380")]
- pub premise_conflict: String,
+ pub identifier_chase_added: Integer,
#[serde(default = "default_1381")]
- pub premise_note: String,
+ pub premise_conflict: String,
#[serde(default = "default_1382")]
- pub premise_verdict: String,
+ pub premise_note: String,
#[serde(default = "default_1383")]
- pub attribution_note: String,
+ pub premise_verdict: String,
#[serde(default = "default_1384")]
- pub depth: MemoryAskOutputDepth,
+ pub attribution_note: String,
#[serde(default = "default_1385")]
- pub deep_fired: bool,
+ pub depth: MemoryAskOutputDepth,
#[serde(default = "default_1386")]
- pub decomposed: Vec,
+ pub deep_fired: bool,
#[serde(default = "default_1387")]
- pub decomposed_parts: Integer,
+ pub decomposed: Vec,
#[serde(default = "default_1388")]
- pub superseded_dropped: Integer,
+ pub decomposed_parts: Integer,
#[serde(default = "default_1389")]
- pub stale_sentences_masked: Integer,
+ pub superseded_dropped: Integer,
#[serde(default = "default_1390")]
- pub entity_followed: Vec,
+ pub stale_sentences_masked: Integer,
#[serde(default = "default_1391")]
- pub when_evidence_turns: Integer,
+ pub entity_followed: Vec,
#[serde(default = "default_1392")]
- pub decompose_failed: Integer,
+ pub when_evidence_turns: Integer,
#[serde(default = "default_1393")]
- pub pool_k: Integer,
+ pub decompose_failed: Integer,
#[serde(default = "default_1394")]
- pub grounding: MemoryAskOutputGrounding,
+ pub pool_k: Integer,
#[serde(default = "default_1395")]
- pub deep_reason: String,
+ pub grounding: MemoryAskOutputGrounding,
#[serde(default = "default_1396")]
- pub deep_keys: Vec,
+ pub deep_reason: String,
#[serde(default = "default_1397")]
- pub deep_chars: Integer,
+ pub deep_keys: Vec,
#[serde(default = "default_1398")]
- pub code_hits: Integer,
+ pub deep_chars: Integer,
#[serde(default = "default_1399")]
- pub pool_facts: Integer,
+ pub code_hits: Integer,
#[serde(default = "default_1400")]
- pub pool_chunks: Integer,
+ pub pool_facts: Integer,
#[serde(default = "default_1401")]
- pub prompt_blocks: std::collections::HashMap,
+ pub pool_chunks: Integer,
#[serde(default = "default_1402")]
- pub deep_selector: MemoryAskOutputDeepSelector,
+ pub prompt_blocks: std::collections::HashMap,
#[serde(default = "default_1403")]
- pub deep_first: MemoryAskOutputDeepFirst,
+ pub deep_selector: MemoryAskOutputDeepSelector,
#[serde(default = "default_1404")]
- pub synth_calls: Integer,
+ pub deep_first: MemoryAskOutputDeepFirst,
#[serde(default = "default_1405")]
- pub synth_input_tokens: Integer,
+ pub synth_calls: Integer,
#[serde(default = "default_1406")]
- pub synth_cached_input_tokens: Integer,
+ pub synth_input_tokens: Integer,
#[serde(default = "default_1407")]
- pub synth_cache_write_tokens: Integer,
+ pub synth_cached_input_tokens: Integer,
#[serde(default = "default_1408")]
- pub synth_cost_usd: f64,
+ pub synth_cache_write_tokens: Integer,
#[serde(default = "default_1409")]
- pub context_tokens_est: Integer,
+ pub synth_cost_usd: f64,
#[serde(default = "default_1410")]
- pub context_trimmed: Integer,
+ pub context_tokens_est: Integer,
#[serde(default = "default_1411")]
- pub summary_hits: Integer,
+ pub context_trimmed: Integer,
#[serde(default = "default_1412")]
- pub knowledge_hits: Integer,
+ pub summary_hits: Integer,
#[serde(default = "default_1413")]
- pub timeline_rows: Integer,
+ pub knowledge_hits: Integer,
#[serde(default = "default_1414")]
+ pub timeline_rows: Integer,
+ #[serde(default = "default_1415")]
pub count_recomputed: bool,
}
@@ -31010,36 +31012,36 @@ pub struct MemoryAutoRetirement {
pub reason: String,
pub memory_id: String,
pub memory_key: String,
- #[serde(default = "default_1415")]
- pub agent: String,
#[serde(default = "default_1416")]
- pub user_id: String,
+ pub agent: String,
#[serde(default = "default_1417")]
- pub session_id: String,
+ pub user_id: String,
#[serde(default = "default_1418")]
- pub superseded_by: String,
+ pub session_id: String,
#[serde(default = "default_1419")]
- pub superseded_by_key: String,
+ pub superseded_by: String,
#[serde(default = "default_1420")]
- pub label: String,
+ pub superseded_by_key: String,
#[serde(default = "default_1421")]
- pub unconfirmed: bool,
+ pub label: String,
#[serde(default = "default_1422")]
- pub judge_verdict: String,
+ pub unconfirmed: bool,
#[serde(default = "default_1423")]
- pub judge_confidence: Option,
+ pub judge_verdict: String,
#[serde(default = "default_1424")]
- pub judge_model: String,
+ pub judge_confidence: Option,
#[serde(default = "default_1425")]
+ pub judge_model: String,
+ #[serde(default = "default_1426")]
pub judge_prompt_version: String,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct MemoryAutoRetirementsOutput {
- #[serde(default = "default_1426")]
- pub rows: Vec,
#[serde(default = "default_1427")]
+ pub rows: Vec,
+ #[serde(default = "default_1428")]
pub next_cursor: Option,
}
@@ -31133,9 +31135,9 @@ impl MemoryAutoRetirementsInput {
#[non_exhaustive]
pub struct BacklinkVersion {
pub version: Integer,
- #[serde(default = "default_1429")]
- pub status: String,
#[serde(default = "default_1430")]
+ pub status: String,
+ #[serde(default = "default_1431")]
pub created_at: String,
}
@@ -31143,7 +31145,7 @@ pub struct BacklinkVersion {
#[non_exhaustive]
pub struct BacklinkDigest {
pub session_id: String,
- #[serde(default = "default_1432")]
+ #[serde(default = "default_1433")]
pub date: String,
}
@@ -31151,9 +31153,9 @@ pub struct BacklinkDigest {
#[non_exhaustive]
pub struct BacklinkEdge {
pub memory_key: String,
- #[serde(default = "default_1434")]
- pub relation: String,
#[serde(default = "default_1435")]
+ pub relation: String,
+ #[serde(default = "default_1436")]
pub created_at: String,
}
@@ -31161,7 +31163,7 @@ pub struct BacklinkEdge {
#[non_exhaustive]
pub struct BacklinkRelated {
pub memory_key: String,
- #[serde(default = "default_1439")]
+ #[serde(default = "default_1440")]
pub shared_entities: Vec,
}
@@ -31169,19 +31171,19 @@ pub struct BacklinkRelated {
#[non_exhaustive]
pub struct MemoryBacklinksOutput {
pub memory_key: String,
- #[serde(default = "default_1428")]
+ #[serde(default = "default_1429")]
pub found: bool,
- #[serde(default = "default_1431")]
+ #[serde(default = "default_1432")]
pub versions: Vec,
- #[serde(default = "default_1433")]
+ #[serde(default = "default_1434")]
pub digests: Vec,
- #[serde(default = "default_1436")]
- pub links_in: Vec,
#[serde(default = "default_1437")]
- pub links_out: Vec,
+ pub links_in: Vec,
#[serde(default = "default_1438")]
+ pub links_out: Vec,
+ #[serde(default = "default_1439")]
pub evidence_count: Integer,
- #[serde(default = "default_1440")]
+ #[serde(default = "default_1441")]
pub related: Vec,
}
@@ -31286,36 +31288,36 @@ impl MemoryBacklinksInput {
#[non_exhaustive]
pub struct BriefEvidence {
pub memory_key: String,
- #[serde(default = "default_1445")]
- pub source: String,
#[serde(default = "default_1446")]
- pub source_class: String,
+ pub source: String,
#[serde(default = "default_1447")]
- pub verified: bool,
+ pub source_class: String,
#[serde(default = "default_1448")]
- pub when: String,
+ pub verified: bool,
#[serde(default = "default_1449")]
- pub session_id: String,
+ pub when: String,
#[serde(default = "default_1450")]
+ pub session_id: String,
+ #[serde(default = "default_1451")]
pub excerpt: String,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct MemoryBriefOutput {
- #[serde(default = "default_1441")]
- pub query: String,
#[serde(default = "default_1442")]
- pub answer: String,
+ pub query: String,
#[serde(default = "default_1443")]
- pub abstained: bool,
+ pub answer: String,
#[serde(default = "default_1444")]
+ pub abstained: bool,
+ #[serde(default = "default_1445")]
pub grounding: String,
- #[serde(default = "default_1451")]
- pub evidence: Vec,
#[serde(default = "default_1452")]
- pub unknowns: Vec,
+ pub evidence: Vec,
#[serde(default = "default_1453")]
+ pub unknowns: Vec,
+ #[serde(default = "default_1454")]
pub next_reads: Vec,
}
@@ -31729,9 +31731,9 @@ pub struct MemoryBulkGetOutputMemoryGetOutput {
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct MemoryBulkGetOutput {
- #[serde(default = "default_1454")]
- pub results: std::collections::HashMap,
#[serde(default = "default_1455")]
+ pub results: std::collections::HashMap,
+ #[serde(default = "default_1456")]
pub missing: Vec,
}
@@ -32244,7 +32246,7 @@ pub struct MemoryClearOutput {
pub cleared_at: String,
pub rows_affected: std::collections::HashMap,
pub total: Integer,
- #[serde(default = "default_1456")]
+ #[serde(default = "default_1457")]
pub locked_skipped: Integer,
}
@@ -32332,21 +32334,21 @@ pub struct MemoryConsolidateResult {
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct MemoryConsolidateOutput {
- #[serde(default = "default_1457")]
- pub consolidated: Vec,
#[serde(default = "default_1458")]
- pub examined: Integer,
+ pub consolidated: Vec,
#[serde(default = "default_1459")]
- pub clusters_found: Integer,
+ pub examined: Integer,
#[serde(default = "default_1460")]
- pub clusters_failed: Integer,
+ pub clusters_found: Integer,
#[serde(default = "default_1461")]
- pub clusters_refused_lossy: Integer,
+ pub clusters_failed: Integer,
#[serde(default = "default_1462")]
- pub skipped_in_flight: Integer,
+ pub clusters_refused_lossy: Integer,
#[serde(default = "default_1463")]
- pub tokens_in: Integer,
+ pub skipped_in_flight: Integer,
#[serde(default = "default_1464")]
+ pub tokens_in: Integer,
+ #[serde(default = "default_1465")]
pub tokens_out: Integer,
}
@@ -32487,7 +32489,7 @@ impl MemoryConsolidateInput {
#[non_exhaustive]
pub struct MemoryCopyToOutput {
pub copied: bool,
- #[serde(default = "default_1465")]
+ #[serde(default = "default_1466")]
pub target_memory_id: String,
pub target_namespace: String,
pub target_key: String,
@@ -32598,11 +32600,11 @@ impl MemoryCopyToInput {
#[non_exhaustive]
pub struct MemoryCrossPromoteOutput {
pub promoted: bool,
- #[serde(default = "default_1466")]
+ #[serde(default = "default_1467")]
pub target_memory_id: String,
pub target_namespace: String,
pub target_key: String,
- #[serde(default = "default_1467")]
+ #[serde(default = "default_1468")]
pub cross_promoted_from_memory_id: String,
}
@@ -32685,23 +32687,23 @@ pub struct DedupCollapsePair {
#[non_exhaustive]
pub struct MemoryDedupCollapseOutput {
pub namespace: String,
- #[serde(default = "default_1468")]
- pub prefix: String,
#[serde(default = "default_1469")]
- pub dry_run: bool,
+ pub prefix: String,
#[serde(default = "default_1470")]
- pub pairs: Integer,
+ pub dry_run: bool,
#[serde(default = "default_1471")]
- pub canonical_live: Integer,
+ pub pairs: Integer,
#[serde(default = "default_1472")]
- pub orphans: Integer,
+ pub canonical_live: Integer,
#[serde(default = "default_1473")]
- pub mirror_stale: Integer,
+ pub orphans: Integer,
#[serde(default = "default_1474")]
- pub restamped: Integer,
+ pub mirror_stale: Integer,
#[serde(default = "default_1475")]
- pub truncated: bool,
+ pub restamped: Integer,
#[serde(default = "default_1476")]
+ pub truncated: bool,
+ #[serde(default = "default_1477")]
pub sample: Vec,
}
@@ -32800,7 +32802,7 @@ pub struct DedupDuplicate {
pub memory_id: String,
pub memory_key: String,
pub agent: String,
- #[serde(default = "default_1479")]
+ #[serde(default = "default_1480")]
pub created_at: Option,
}
@@ -32808,12 +32810,12 @@ pub struct DedupDuplicate {
#[non_exhaustive]
pub struct DedupCluster {
pub canonical_id: String,
- #[serde(default = "default_1477")]
- pub canonical_key: String,
#[serde(default = "default_1478")]
+ pub canonical_key: String,
+ #[serde(default = "default_1479")]
pub canonical_agent: String,
pub dup_count: Integer,
- #[serde(default = "default_1480")]
+ #[serde(default = "default_1481")]
pub duplicates: Vec,
}
@@ -32885,11 +32887,11 @@ pub struct MemoryDedupResolveOutput {
pub canonical_key: String,
pub duplicate_key: String,
pub decision: String,
- #[serde(default = "default_1481")]
- pub canonical_tombstoned: bool,
#[serde(default = "default_1482")]
- pub duplicate_tombstoned: bool,
+ pub canonical_tombstoned: bool,
#[serde(default = "default_1483")]
+ pub duplicate_tombstoned: bool,
+ #[serde(default = "default_1484")]
pub ignored_args: Vec,
}
@@ -33027,17 +33029,17 @@ pub struct LostName {
pub struct DefinitionEntry {
pub memory_key: String,
pub promoted_at: String,
- #[serde(default = "default_1484")]
- pub capped: bool,
#[serde(default = "default_1485")]
- pub term: Option,
+ pub capped: bool,
#[serde(default = "default_1486")]
- pub aliases: Vec,
+ pub term: Option,
#[serde(default = "default_1487")]
- pub verdict: Option,
+ pub aliases: Vec,
#[serde(default = "default_1488")]
- pub lapse_reason: Option,
+ pub verdict: Option,
#[serde(default = "default_1489")]
+ pub lapse_reason: Option,
+ #[serde(default = "default_1490")]
pub lost: Vec,
}
@@ -33098,15 +33100,15 @@ impl MemoryDefinitionsListInput {
#[non_exhaustive]
pub struct MemoryDeleteVersionOutput {
pub tombstoned: bool,
- #[serde(default = "default_1490")]
- pub version: Integer,
#[serde(default = "default_1491")]
- pub found: bool,
+ pub version: Integer,
#[serde(default = "default_1492")]
- pub reason: String,
+ pub found: bool,
#[serde(default = "default_1493")]
- pub dependents_tombstoned: Integer,
+ pub reason: String,
#[serde(default = "default_1494")]
+ pub dependents_tombstoned: Integer,
+ #[serde(default = "default_1495")]
pub dependents_downgraded: Integer,
}
@@ -33233,21 +33235,21 @@ pub struct DemonstrationRow {
pub struct MemoryDemonstrateOutput {
pub query: String,
pub demonstrations: Vec,
- #[serde(default = "default_1495")]
- pub votes: std::collections::HashMap,
#[serde(default = "default_1496")]
- pub predicted_label: String,
+ pub votes: std::collections::HashMap,
#[serde(default = "default_1497")]
- pub margin: f64,
+ pub predicted_label: String,
#[serde(default = "default_1498")]
- pub abstain: bool,
+ pub margin: f64,
#[serde(default = "default_1499")]
- pub abstain_reason: String,
+ pub abstain: bool,
#[serde(default = "default_1500")]
- pub few_shot_block: String,
+ pub abstain_reason: String,
#[serde(default = "default_1501")]
- pub examined: Integer,
+ pub few_shot_block: String,
#[serde(default = "default_1502")]
+ pub examined: Integer,
+ #[serde(default = "default_1503")]
pub labelled: Integer,
}
@@ -33387,7 +33389,7 @@ impl MemoryDemonstrateInput {
pub struct MemoryDemoteOutput {
pub demoted: bool,
pub was_reversible: bool,
- #[serde(default = "default_1503")]
+ #[serde(default = "default_1504")]
pub tombstoned_at: Option,
}
@@ -33449,15 +33451,15 @@ impl MemoryDemoteInput {
pub struct DigestRow {
pub session_id: String,
pub summary_text: String,
- #[serde(default = "default_1504")]
- pub key_facts: Vec,
#[serde(default = "default_1505")]
- pub derived_from: Vec,
+ pub key_facts: Vec,
#[serde(default = "default_1506")]
- pub valid_at: Option,
+ pub derived_from: Vec,
#[serde(default = "default_1507")]
- pub created_at: Option,
+ pub valid_at: Option,
#[serde(default = "default_1508")]
+ pub created_at: Option,
+ #[serde(default = "default_1509")]
pub version: Integer,
}
@@ -33465,7 +33467,7 @@ pub struct DigestRow {
#[non_exhaustive]
pub struct MemoryDigestsOutput {
pub rows: Vec,
- #[serde(default = "default_1509")]
+ #[serde(default = "default_1510")]
pub truncated: bool,
}
@@ -33590,17 +33592,17 @@ pub struct MemoryEvidenceItem {
pub evidence_id: String,
pub support_type: String,
pub scope: MemoryEvidenceItemScope,
- #[serde(default = "default_1513")]
- pub role: String,
#[serde(default = "default_1514")]
- pub observed_at: Option,
+ pub role: String,
#[serde(default = "default_1515")]
- pub content: String,
+ pub observed_at: Option,
#[serde(default = "default_1516")]
- pub char_start: Integer,
+ pub content: String,
#[serde(default = "default_1517")]
- pub char_end: Integer,
+ pub char_start: Integer,
#[serde(default = "default_1518")]
+ pub char_end: Integer,
+ #[serde(default = "default_1519")]
pub span: String,
}
@@ -33608,23 +33610,23 @@ pub struct MemoryEvidenceItem {
#[non_exhaustive]
pub struct MemoryEvidenceOutput {
pub found: bool,
- #[serde(default = "default_1510")]
- pub memory_key: String,
#[serde(default = "default_1511")]
- pub memory_id: String,
+ pub memory_key: String,
#[serde(default = "default_1512")]
+ pub memory_id: String,
+ #[serde(default = "default_1513")]
pub value: String,
- #[serde(default = "default_1519")]
- pub items: Vec,
#[serde(default = "default_1520")]
- pub truncated: bool,
+ pub items: Vec,
#[serde(default = "default_1521")]
- pub cited: Integer,
+ pub truncated: bool,
#[serde(default = "default_1522")]
- pub lexical: Integer,
+ pub cited: Integer,
#[serde(default = "default_1523")]
- pub window: Integer,
+ pub lexical: Integer,
#[serde(default = "default_1524")]
+ pub window: Integer,
+ #[serde(default = "default_1525")]
pub derived: Integer,
}
@@ -33729,26 +33731,26 @@ impl MemoryEvidenceInput {
#[non_exhaustive]
pub struct EvidenceChunk {
pub session_id: String,
- #[serde(default = "default_1525")]
+ #[serde(default = "default_1526")]
pub chunk_index: Integer,
pub content: String,
- #[serde(default = "default_1526")]
- pub content_sha256: String,
#[serde(default = "default_1527")]
- pub agent: String,
+ pub content_sha256: String,
#[serde(default = "default_1528")]
- pub user_id: String,
+ pub agent: String,
#[serde(default = "default_1529")]
- pub parent_memory_key: String,
+ pub user_id: String,
#[serde(default = "default_1530")]
- pub memory_keys: Vec,
+ pub parent_memory_key: String,
#[serde(default = "default_1531")]
- pub line_start: Integer,
+ pub memory_keys: Vec,
#[serde(default = "default_1532")]
- pub line_end: Integer,
+ pub line_start: Integer,
#[serde(default = "default_1533")]
- pub created_at: String,
+ pub line_end: Integer,
#[serde(default = "default_1534")]
+ pub created_at: String,
+ #[serde(default = "default_1535")]
pub source_url: String,
}
@@ -33757,17 +33759,17 @@ pub struct EvidenceChunk {
pub struct EvidenceDigest {
pub session_id: String,
pub summary_text: String,
- #[serde(default = "default_1536")]
- pub agent: String,
#[serde(default = "default_1537")]
- pub user_id: String,
+ pub agent: String,
#[serde(default = "default_1538")]
- pub key_facts: Vec,
+ pub user_id: String,
#[serde(default = "default_1539")]
- pub derived_from: Vec,
+ pub key_facts: Vec,
#[serde(default = "default_1540")]
- pub valid_at: String,
+ pub derived_from: Vec,
#[serde(default = "default_1541")]
+ pub valid_at: String,
+ #[serde(default = "default_1542")]
pub created_at: String,
}
@@ -33777,28 +33779,28 @@ pub struct EvidenceEdge {
pub from_key: String,
pub to_key: String,
pub relation: String,
- #[serde(default = "default_1543")]
- pub confidence: f64,
#[serde(default = "default_1544")]
- pub explanation: String,
+ pub confidence: f64,
#[serde(default = "default_1545")]
+ pub explanation: String,
+ #[serde(default = "default_1546")]
pub created_at: String,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct MemoryExportEvidenceOutput {
- #[serde(default = "default_1535")]
+ #[serde(default = "default_1536")]
pub chunks: Vec,
- #[serde(default = "default_1542")]
+ #[serde(default = "default_1543")]
pub digests: Vec,
- #[serde(default = "default_1546")]
- pub edges: Vec,
#[serde(default = "default_1547")]
- pub has_more: bool,
+ pub edges: Vec,
#[serde(default = "default_1548")]
- pub next_cursor: String,
+ pub has_more: bool,
#[serde(default = "default_1549")]
+ pub next_cursor: String,
+ #[serde(default = "default_1550")]
pub held_high: Integer,
}
@@ -33991,15 +33993,15 @@ impl ExposureSummaryInput {
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct MemoryExtractionRetryMineOutput {
- #[serde(default = "default_1550")]
- pub requeued: Vec,
#[serde(default = "default_1551")]
- pub not_failed: Vec,
+ pub requeued: Vec,
#[serde(default = "default_1552")]
- pub model_calls_off: Vec,
+ pub not_failed: Vec,
#[serde(default = "default_1553")]
- pub expired: Vec,
+ pub model_calls_off: Vec,
#[serde(default = "default_1554")]
+ pub expired: Vec,
+ #[serde(default = "default_1555")]
pub unknown: Vec,
}
@@ -34060,20 +34062,20 @@ pub struct ExtractionQueueRow {
pub content_chars: Integer,
pub written: Integer,
pub last_error: String,
- #[serde(default = "default_1555")]
- pub enqueued_at: Option,
#[serde(default = "default_1556")]
+ pub enqueued_at: Option,
+ #[serde(default = "default_1557")]
pub updated_at: Option,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct MemoryExtractionStatusOutput {
- #[serde(default = "default_1557")]
- pub batches: Vec,
#[serde(default = "default_1558")]
- pub pending: Integer,
+ pub batches: Vec,
#[serde(default = "default_1559")]
+ pub pending: Integer,
+ #[serde(default = "default_1560")]
pub failed: Integer,
}
@@ -34221,13 +34223,13 @@ impl MemoryExtractionStatusInput {
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct MemoryExtractionStatusMineOutput {
- #[serde(default = "default_1560")]
- pub batches: Vec,
#[serde(default = "default_1561")]
- pub unknown: Vec,
+ pub batches: Vec,
#[serde(default = "default_1562")]
- pub pending: Integer,
+ pub unknown: Vec,
#[serde(default = "default_1563")]
+ pub pending: Integer,
+ #[serde(default = "default_1564")]
pub failed: Integer,
}
@@ -34348,39 +34350,39 @@ pub struct MemoryForFileHit {
pub memory_key: String,
pub memory_type: String,
pub value: String,
- #[serde(default = "default_1564")]
- pub value_truncated: bool,
#[serde(default = "default_1565")]
- pub tags: Vec,
+ pub value_truncated: bool,
#[serde(default = "default_1566")]
- pub confidence: f64,
+ pub tags: Vec,
#[serde(default = "default_1567")]
- pub pinned: bool,
+ pub confidence: f64,
#[serde(default = "default_1568")]
- pub status: String,
+ pub pinned: bool,
#[serde(default = "default_1569")]
- pub agent: String,
+ pub status: String,
#[serde(default = "default_1570")]
- pub updated_at: Option,
+ pub agent: String,
#[serde(default = "default_1571")]
- pub namespace: String,
+ pub updated_at: Option,
#[serde(default = "default_1572")]
- pub actor: String,
+ pub namespace: String,
#[serde(default = "default_1573")]
- pub supersedes_key: String,
+ pub actor: String,
#[serde(default = "default_1574")]
- pub supersedes: String,
+ pub supersedes_key: String,
#[serde(default = "default_1575")]
- pub supersedes_kind: MemoryForFileHitSupersedesKind,
+ pub supersedes: String,
#[serde(default = "default_1576")]
- pub matched_files: Vec,
+ pub supersedes_kind: MemoryForFileHitSupersedesKind,
#[serde(default = "default_1577")]
- pub source_resource_id: String,
+ pub matched_files: Vec,
#[serde(default = "default_1578")]
- pub verification: MemoryForFileHitVerification,
+ pub source_resource_id: String,
#[serde(default = "default_1579")]
- pub code_state: MemoryForFileHitCodeState,
+ pub verification: MemoryForFileHitVerification,
#[serde(default = "default_1580")]
+ pub code_state: MemoryForFileHitCodeState,
+ #[serde(default = "default_1581")]
pub code_moved: Vec,
}
@@ -34390,11 +34392,11 @@ pub struct MemoryForFileOutput {
pub path: String,
pub total: Integer,
pub hits: Vec,
- #[serde(default = "default_1581")]
- pub rendered: String,
#[serde(default = "default_1582")]
- pub tokens_estimate: Integer,
+ pub rendered: String,
#[serde(default = "default_1583")]
+ pub tokens_estimate: Integer,
+ #[serde(default = "default_1584")]
pub truncated: bool,
}
@@ -34502,61 +34504,61 @@ impl MemoryForFileInput {
#[non_exhaustive]
pub struct MemoryGetByIdOutput {
pub found: bool,
- #[serde(default = "default_1584")]
- pub memory_id: String,
#[serde(default = "default_1585")]
- pub namespace: String,
+ pub memory_id: String,
#[serde(default = "default_1586")]
- pub agent: String,
+ pub namespace: String,
#[serde(default = "default_1587")]
- pub user_id: String,
+ pub agent: String,
#[serde(default = "default_1588")]
- pub session_id: String,
+ pub user_id: String,
#[serde(default = "default_1589")]
- pub memory_key: String,
+ pub session_id: String,
#[serde(default = "default_1590")]
- pub memory_type: Option,
+ pub memory_key: String,
#[serde(default = "default_1591")]
- pub value: Value,
+ pub memory_type: Option,
#[serde(default = "default_1592")]
- pub confidence: Option,
+ pub value: Value,
#[serde(default = "default_1593")]
- pub version: Option,
+ pub confidence: Option,
#[serde(default = "default_1594")]
- pub created_at: Option,
+ pub version: Option,
#[serde(default = "default_1595")]
- pub expires_at: Option,
+ pub created_at: Option,
#[serde(default = "default_1596")]
- pub valid_at: Option,
+ pub expires_at: Option,
#[serde(default = "default_1597")]
- pub valid_to: Option,
+ pub valid_at: Option,
#[serde(default = "default_1598")]
- pub pinned: bool,
+ pub valid_to: Option,
#[serde(default = "default_1599")]
- pub content_sha256: String,
+ pub pinned: bool,
#[serde(default = "default_1600")]
- pub verified_by: String,
+ pub content_sha256: String,
#[serde(default = "default_1601")]
- pub verified_at: Option,
+ pub verified_by: String,
#[serde(default = "default_1602")]
- pub verification: String,
+ pub verified_at: Option,
#[serde(default = "default_1603")]
- pub sensitivity: String,
+ pub verification: String,
#[serde(default = "default_1604")]
- pub actor: String,
+ pub sensitivity: String,
#[serde(default = "default_1605")]
- pub source_class: String,
+ pub actor: String,
#[serde(default = "default_1606")]
- pub lock_mode: String,
+ pub source_class: String,
#[serde(default = "default_1607")]
- pub lock_reason: String,
+ pub lock_mode: String,
#[serde(default = "default_1608")]
- pub lock_until: Option,
+ pub lock_reason: String,
#[serde(default = "default_1609")]
- pub locked_by: String,
+ pub lock_until: Option,
#[serde(default = "default_1610")]
- pub on_expire: String,
+ pub locked_by: String,
#[serde(default = "default_1611")]
+ pub on_expire: String,
+ #[serde(default = "default_1612")]
pub expire_reason: String,
}
@@ -34632,41 +34634,41 @@ pub struct MemoryHealthTopRow {
pub memory_type: String,
pub recall_count: Integer,
pub used_count: Integer,
- #[serde(default = "default_1614")]
- pub harm_count: Integer,
#[serde(default = "default_1615")]
+ pub harm_count: Integer,
+ #[serde(default = "default_1616")]
pub last_recalled_at: Option,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct MemoryHealthStaleness {
- #[serde(default = "default_1617")]
- pub by_age: std::collections::HashMap,
#[serde(default = "default_1618")]
- pub with_validity_end: Integer,
+ pub by_age: std::collections::HashMap,
#[serde(default = "default_1619")]
- pub with_validity_end_share: f64,
+ pub with_validity_end: Integer,
#[serde(default = "default_1620")]
- pub with_expiry: Integer,
+ pub with_validity_end_share: f64,
#[serde(default = "default_1621")]
- pub expiring_7d: Integer,
+ pub with_expiry: Integer,
#[serde(default = "default_1622")]
- pub pinned: Integer,
+ pub expiring_7d: Integer,
#[serde(default = "default_1623")]
- pub days_since_reinforced_p50: Integer,
+ pub pinned: Integer,
#[serde(default = "default_1624")]
+ pub days_since_reinforced_p50: Integer,
+ #[serde(default = "default_1625")]
pub days_since_reinforced_p90: Integer,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct MemoryHealthFootprint {
- #[serde(default = "default_1626")]
- pub value_chars: Integer,
#[serde(default = "default_1627")]
- pub value_tokens_est: Integer,
+ pub value_chars: Integer,
#[serde(default = "default_1628")]
+ pub value_tokens_est: Integer,
+ #[serde(default = "default_1629")]
pub tokens_per_row_est: f64,
}
@@ -34676,19 +34678,19 @@ pub struct MemoryHealthOutput {
pub live: Integer,
pub recalled_ever: Integer,
pub used_ever: Integer,
- #[serde(default = "default_1612")]
+ #[serde(default = "default_1613")]
pub harmed_ever: Integer,
pub silent: Integer,
pub silent_older: Integer,
pub silent_share: f64,
pub silent_after_days: Integer,
- #[serde(default = "default_1613")]
+ #[serde(default = "default_1614")]
pub by_type: Vec,
- #[serde(default = "default_1616")]
+ #[serde(default = "default_1617")]
pub top_recalled: Vec,
- #[serde(default = "default_1625")]
+ #[serde(default = "default_1626")]
pub staleness: MemoryHealthStaleness,
- #[serde(default = "default_1629")]
+ #[serde(default = "default_1630")]
pub footprint: MemoryHealthFootprint,
}
@@ -34808,51 +34810,51 @@ impl MemoryHealthInput {
pub struct MemoryHistoryRow {
pub memory_id: String,
pub version: Integer,
- #[serde(default = "default_1630")]
- pub version_text: String,
#[serde(default = "default_1631")]
+ pub version_text: String,
+ #[serde(default = "default_1632")]
pub value: Value,
pub confidence: f64,
- #[serde(default = "default_1632")]
- pub source_trace: String,
#[serde(default = "default_1633")]
+ pub source_trace: String,
+ #[serde(default = "default_1634")]
pub pinned: bool,
pub created_at: String,
- #[serde(default = "default_1634")]
- pub expires_at: Option,
#[serde(default = "default_1635")]
- pub tombstoned_at: Option,
+ pub expires_at: Option,
#[serde(default = "default_1636")]
- pub redacted_at: Option,
+ pub tombstoned_at: Option,
#[serde(default = "default_1637")]
- pub redaction_reason: String,
+ pub redacted_at: Option,
#[serde(default = "default_1638")]
- pub content_sha256: String,
+ pub redaction_reason: String,
#[serde(default = "default_1639")]
- pub actor: String,
+ pub content_sha256: String,
#[serde(default = "default_1640")]
- pub source_class: String,
+ pub actor: String,
#[serde(default = "default_1641")]
- pub agent: String,
+ pub source_class: String,
#[serde(default = "default_1642")]
- pub written_at: Option,
+ pub agent: String,
#[serde(default = "default_1643")]
- pub status: String,
+ pub written_at: Option,
#[serde(default = "default_1644")]
- pub conflict_with: Vec,
+ pub status: String,
#[serde(default = "default_1645")]
- pub tags: Vec,
+ pub conflict_with: Vec,
#[serde(default = "default_1646")]
- pub verified_at: Option,
+ pub tags: Vec,
#[serde(default = "default_1647")]
- pub verified_by: String,
+ pub verified_at: Option,
#[serde(default = "default_1648")]
- pub verified_sha256: String,
+ pub verified_by: String,
#[serde(default = "default_1649")]
- pub lock_mode: String,
+ pub verified_sha256: String,
#[serde(default = "default_1650")]
- pub lock_reason: String,
+ pub lock_mode: String,
#[serde(default = "default_1651")]
+ pub lock_reason: String,
+ #[serde(default = "default_1652")]
pub lock_until: Option,
}
@@ -34962,13 +34964,13 @@ impl MemoryHistoryInput {
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct MemoryImportTotals {
- #[serde(default = "default_1652")]
- pub written: Integer,
#[serde(default = "default_1653")]
- pub held: Integer,
+ pub written: Integer,
#[serde(default = "default_1654")]
- pub skipped: Integer,
+ pub held: Integer,
#[serde(default = "default_1655")]
+ pub skipped: Integer,
+ #[serde(default = "default_1656")]
pub refused: Integer,
}
@@ -35051,11 +35053,11 @@ pub struct MemoryImportResult {
pub index: Integer,
pub key: String,
pub outcome: MemoryImportResultOutcome,
- #[serde(default = "default_1656")]
- pub reason: MemoryImportResultReason,
#[serde(default = "default_1657")]
- pub held_by: String,
+ pub reason: MemoryImportResultReason,
#[serde(default = "default_1658")]
+ pub held_by: String,
+ #[serde(default = "default_1659")]
pub note: MemoryImportResultNote,
}
@@ -35064,7 +35066,7 @@ pub struct MemoryImportResult {
pub struct MemoryImportOutput {
pub totals: MemoryImportTotals,
pub results: Vec,
- #[serde(default = "default_1659")]
+ #[serde(default = "default_1660")]
pub dry_run: bool,
}
@@ -35257,9 +35259,9 @@ pub struct MemoryImportCuratedRow {
pub section_heading: String,
pub bytes_written: Integer,
pub verdict: String,
- #[serde(default = "default_1660")]
- pub rejection_reason: String,
#[serde(default = "default_1661")]
+ pub rejection_reason: String,
+ #[serde(default = "default_1662")]
pub pinned_blocker_id: Option,
}
@@ -35351,21 +35353,21 @@ impl MemoryImportCuratedInput {
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct MemoryImportEvidenceOutput {
- #[serde(default = "default_1662")]
- pub chunks_written: Integer,
#[serde(default = "default_1663")]
- pub links_written: Integer,
+ pub chunks_written: Integer,
#[serde(default = "default_1664")]
- pub digests_written: Integer,
+ pub links_written: Integer,
#[serde(default = "default_1665")]
- pub embedding_model: String,
+ pub digests_written: Integer,
#[serde(default = "default_1666")]
- pub embedding_dim: Integer,
+ pub embedding_model: String,
#[serde(default = "default_1667")]
- pub edited: Vec,
+ pub embedding_dim: Integer,
#[serde(default = "default_1668")]
- pub skipped: Integer,
+ pub edited: Vec,
#[serde(default = "default_1669")]
+ pub skipped: Integer,
+ #[serde(default = "default_1670")]
pub unchecked: Integer,
}
@@ -35702,7 +35704,7 @@ pub struct InspectRow {
pub memory_key: String,
pub memory_id: String,
pub version: Integer,
- #[serde(default = "default_1679")]
+ #[serde(default = "default_1680")]
pub content_sha256: String,
pub memory_type: String,
pub status: String,
@@ -35713,9 +35715,9 @@ pub struct InspectRow {
pub actor: String,
pub updated_at: String,
pub sensitivity: String,
- #[serde(default = "default_1680")]
- pub versions: Integer,
#[serde(default = "default_1681")]
+ pub versions: Integer,
+ #[serde(default = "default_1682")]
pub excerpt: String,
}
@@ -35723,27 +35725,27 @@ pub struct InspectRow {
#[non_exhaustive]
pub struct InspectView {
pub definition: String,
- #[serde(default = "default_1670")]
- pub refs: Vec,
#[serde(default = "default_1671")]
- pub live_rows: Integer,
+ pub refs: Vec,
#[serde(default = "default_1672")]
- pub by_type: Vec,
+ pub live_rows: Integer,
#[serde(default = "default_1673")]
- pub by_status: Vec,
+ pub by_type: Vec,
#[serde(default = "default_1674")]
- pub by_source_class: Vec,
+ pub by_status: Vec,
#[serde(default = "default_1675")]
- pub top_tags: Vec,
+ pub by_source_class: Vec,
#[serde(default = "default_1676")]
- pub categories: Vec,
+ pub top_tags: Vec,
#[serde(default = "default_1677")]
- pub first_updated_at: Option,
+ pub categories: Vec,
#[serde(default = "default_1678")]
+ pub first_updated_at: Option,
+ #[serde(default = "default_1679")]
pub last_updated_at: Option,
- #[serde(default = "default_1682")]
- pub newest: Vec,
#[serde(default = "default_1683")]
+ pub newest: Vec,
+ #[serde(default = "default_1684")]
pub complete: bool,
}
@@ -35759,32 +35761,32 @@ pub struct InspectCall {
#[non_exhaustive]
pub struct InspectActivity {
pub window_seconds: Integer,
- #[serde(default = "default_1684")]
- pub calls: Vec,
#[serde(default = "default_1685")]
- pub first_at: Option,
+ pub calls: Vec,
#[serde(default = "default_1686")]
- pub last_at: Option,
+ pub first_at: Option,
#[serde(default = "default_1687")]
+ pub last_at: Option,
+ #[serde(default = "default_1688")]
pub gap: String,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct InspectSettings {
- #[serde(default = "default_1688")]
- pub guide_revision: Integer,
#[serde(default = "default_1689")]
- pub guide_summary: String,
+ pub guide_revision: Integer,
#[serde(default = "default_1690")]
- pub categories_registered: Integer,
+ pub guide_summary: String,
#[serde(default = "default_1691")]
- pub extraction_policy: Option,
+ pub categories_registered: Integer,
#[serde(default = "default_1692")]
- pub extraction_policy_unavailable: String,
+ pub extraction_policy: Option,
#[serde(default = "default_1693")]
- pub extraction_instructions: String,
+ pub extraction_policy_unavailable: String,
#[serde(default = "default_1694")]
+ pub extraction_instructions: String,
+ #[serde(default = "default_1695")]
pub extraction_instructions_refs: Vec,
}
@@ -35800,7 +35802,7 @@ pub struct MemoryInspectOutput {
pub others: InspectView,
pub activity: InspectActivity,
pub settings: InspectSettings,
- #[serde(default = "default_1695")]
+ #[serde(default = "default_1696")]
pub skipped: Vec,
}
@@ -35894,7 +35896,7 @@ pub struct MemoryKeyRef {
#[non_exhaustive]
pub struct MemoryKeysOutput {
pub keys: Vec,
- #[serde(default = "default_1696")]
+ #[serde(default = "default_1697")]
pub truncated: bool,
}
@@ -35997,9 +35999,9 @@ pub struct LineageCandidate {
pub decided_at: String,
pub decided_by: String,
pub match_confidence: LineageCandidateMatchConfidence,
- #[serde(default = "default_1705")]
- pub seeded_from_thread_id: String,
#[serde(default = "default_1706")]
+ pub seeded_from_thread_id: String,
+ #[serde(default = "default_1707")]
pub seeded_from_msg_id: String,
}
@@ -36017,25 +36019,25 @@ pub struct LineageAuditEvent {
pub struct MemoryLineageOutput {
pub found: bool,
pub memory_key: String,
- #[serde(default = "default_1697")]
- pub promotion_event: String,
#[serde(default = "default_1698")]
- pub promoted_by: String,
+ pub promotion_event: String,
#[serde(default = "default_1699")]
- pub promoted_at: Option,
+ pub promoted_by: String,
#[serde(default = "default_1700")]
- pub rationale: String,
+ pub promoted_at: Option,
#[serde(default = "default_1701")]
- pub source_trace: String,
+ pub rationale: String,
#[serde(default = "default_1702")]
- pub source_resource_id: String,
+ pub source_trace: String,
#[serde(default = "default_1703")]
- pub mechanism: MemoryLineageOutputMechanism,
+ pub source_resource_id: String,
#[serde(default = "default_1704")]
+ pub mechanism: MemoryLineageOutputMechanism,
+ #[serde(default = "default_1705")]
pub supporters: Vec,
- #[serde(default = "default_1707")]
- pub candidate: Option,
#[serde(default = "default_1708")]
+ pub candidate: Option,
+ #[serde(default = "default_1709")]
pub audit_chain: Vec,
}
@@ -36164,11 +36166,11 @@ pub struct MemoryLinkOutput {
pub from_key: String,
pub to_key: String,
pub relation: String,
- #[serde(default = "default_1709")]
- pub confidence: f64,
#[serde(default = "default_1710")]
- pub conflict_opened: bool,
+ pub confidence: f64,
#[serde(default = "default_1711")]
+ pub conflict_opened: bool,
+ #[serde(default = "default_1712")]
pub relation_defaulted: bool,
}
@@ -36482,17 +36484,17 @@ pub struct MemoryListEntry {
pub struct MemoryListOutput {
pub entries: Vec,
pub truncated: bool,
- #[serde(default = "default_1712")]
- pub total: Integer,
#[serde(default = "default_1713")]
- pub today: Integer,
+ pub total: Integer,
#[serde(default = "default_1714")]
- pub namespace_version: String,
+ pub today: Integer,
#[serde(default = "default_1715")]
- pub unchanged: bool,
+ pub namespace_version: String,
#[serde(default = "default_1716")]
- pub hidden: Integer,
+ pub unchanged: bool,
#[serde(default = "default_1717")]
+ pub hidden: Integer,
+ #[serde(default = "default_1718")]
pub hidden_hint: String,
}
@@ -36878,19 +36880,19 @@ impl MemoryListInput {
#[non_exhaustive]
pub struct MemoryLockOutput {
pub locked: bool,
- #[serde(default = "default_1718")]
- pub reason: String,
#[serde(default = "default_1719")]
- pub memory_id: String,
+ pub reason: String,
#[serde(default = "default_1720")]
- pub version: Option,
+ pub memory_id: String,
#[serde(default = "default_1721")]
- pub lock_mode: String,
+ pub version: Option,
#[serde(default = "default_1722")]
- pub lock_until: Option,
+ pub lock_mode: String,
#[serde(default = "default_1723")]
- pub locked_by: String,
+ pub lock_until: Option,
#[serde(default = "default_1724")]
+ pub locked_by: String,
+ #[serde(default = "default_1725")]
pub previous_mode: String,
}
@@ -37049,21 +37051,21 @@ pub struct MemoryMoveOutput {
pub from_key: String,
pub to_key: String,
pub redirected: bool,
- #[serde(default = "default_1725")]
- pub memory_id: String,
#[serde(default = "default_1726")]
- pub version: Integer,
+ pub memory_id: String,
#[serde(default = "default_1727")]
- pub content_sha256: String,
+ pub version: Integer,
#[serde(default = "default_1728")]
- pub advisories: Vec,
+ pub content_sha256: String,
#[serde(default = "default_1729")]
- pub dry_run: bool,
+ pub advisories: Vec,
#[serde(default = "default_1730")]
- pub memory_type: String,
+ pub dry_run: bool,
#[serde(default = "default_1731")]
- pub value_preview: String,
+ pub memory_type: String,
#[serde(default = "default_1732")]
+ pub value_preview: String,
+ #[serde(default = "default_1733")]
pub sensitivity: String,
}
@@ -37275,7 +37277,7 @@ impl MemoryMoveInput {
pub struct MemoryOutcomeOutput {
pub recorded: bool,
pub evidence_count_after: Integer,
- #[serde(default = "default_1733")]
+ #[serde(default = "default_1734")]
pub quarantined: bool,
}
@@ -37518,13 +37520,13 @@ impl MemoryOutcomeRunInput {
#[non_exhaustive]
pub struct OutlineSession {
pub session_id: String,
- #[serde(default = "default_1735")]
- pub date: String,
#[serde(default = "default_1736")]
- pub headline: String,
+ pub date: String,
#[serde(default = "default_1737")]
- pub key_facts: Integer,
+ pub headline: String,
#[serde(default = "default_1738")]
+ pub key_facts: Integer,
+ #[serde(default = "default_1739")]
pub rows: Integer,
}
@@ -37532,7 +37534,7 @@ pub struct OutlineSession {
#[non_exhaustive]
pub struct OutlineHub {
pub entity: String,
- #[serde(default = "default_1741")]
+ #[serde(default = "default_1742")]
pub degree: Integer,
}
@@ -37540,28 +37542,28 @@ pub struct OutlineHub {
#[non_exhaustive]
pub struct OutlineCommunity {
pub community_id: Integer,
- #[serde(default = "default_1743")]
- pub label: String,
#[serde(default = "default_1744")]
- pub size: Integer,
+ pub label: String,
#[serde(default = "default_1745")]
+ pub size: Integer,
+ #[serde(default = "default_1746")]
pub computed_at: String,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[non_exhaustive]
pub struct MemoryOutlineOutput {
- #[serde(default = "default_1734")]
+ #[serde(default = "default_1735")]
pub rows_by_type: std::collections::HashMap