@mastra/pg 1.34.0 → 1.35.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_types/@internal_core/dist/knowledge-compat/index.d.ts +152 -406
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +1429 -2018
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1431 -2020
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/knowledge/index.d.ts +35 -87
- package/dist/storage/domains/knowledge/index.d.ts.map +1 -1
- package/dist/storage/domains/knowledge/pages-schema.d.ts +20 -0
- package/dist/storage/domains/knowledge/pages-schema.d.ts.map +1 -0
- package/dist/storage/domains/knowledge/pages.d.ts +167 -0
- package/dist/storage/domains/knowledge/pages.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { ListKnowledgeScopeMembersInput, ListKnowledgeScopeMembersOutput, ListKnowledgeScopeNodesInput, ListKnowledgeScopeNodesOutput } from '../../../_types/@internal_core/dist/knowledge-compat/index.js';
|
|
2
1
|
import { KnowledgeStorage } from '@mastra/core/storage';
|
|
3
|
-
import type {
|
|
2
|
+
import type { KnowledgePageStore } from '@mastra/core/storage';
|
|
4
3
|
import type { DbClient, PgDomainConfig } from '../../db/index.js';
|
|
5
|
-
export declare function postgresSql(sql: string, schemaName?: string): string;
|
|
6
4
|
type PgKnowledgeIsolationConfig = {
|
|
7
5
|
schemaName?: string;
|
|
8
6
|
client?: DbClient;
|
|
@@ -14,100 +12,50 @@ type PgKnowledgeIsolationConfig = {
|
|
|
14
12
|
user?: string;
|
|
15
13
|
};
|
|
16
14
|
export declare function getPgKnowledgeIsolationKey(config: PgKnowledgeIsolationConfig): unknown;
|
|
15
|
+
/** @experimental Knowledge APIs are experimental and may change without notice. */
|
|
17
16
|
export declare class KnowledgePG extends KnowledgeStorage {
|
|
18
17
|
#private;
|
|
19
|
-
static readonly MANAGED_TABLES: readonly ["mastra_knowledge_nodes", "mastra_knowledge_records", "mastra_knowledge_mentions", "mastra_knowledge_activity", "mastra_knowledge_semantic_outbox", "mastra_knowledge_node_scopes", "mastra_knowledge_record_scopes", "mastra_knowledge_scope_grants", "mastra_knowledge_access_state", "mastra_knowledge_scope_addresses", "mastra_knowledge_node_addresses", "mastra_knowledge_import_state", "mastra_knowledge_import_runs", "mastra_knowledge_proposals"];
|
|
20
18
|
static getExportDDL(schemaName?: string): string[];
|
|
21
19
|
constructor(config: PgDomainConfig);
|
|
22
20
|
getCapabilities(): {
|
|
23
|
-
readonly contractVersion:
|
|
24
|
-
readonly schemaVersion:
|
|
25
|
-
readonly supportsV2: true;
|
|
21
|
+
readonly contractVersion: typeof import("@mastra/core/knowledge").KNOWLEDGE_STORAGE_CONTRACT_VERSION;
|
|
22
|
+
readonly schemaVersion: 4;
|
|
26
23
|
readonly supportsSchemaInspection: true;
|
|
27
24
|
readonly supportsExplicitReset: true;
|
|
28
25
|
};
|
|
29
|
-
inspectSchema(): Promise<import("../../../_types/@internal_core/dist/knowledge-compat/index.js").KnowledgeSchemaInspection>;
|
|
30
26
|
init(): Promise<void>;
|
|
31
|
-
|
|
27
|
+
inspectSchema(): Promise<import("../../../_types/@internal_core/dist/knowledge-compat/index.js").KnowledgePagesSchemaInspection>;
|
|
32
28
|
dangerouslyReset(): Promise<void>;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
id: string;
|
|
64
|
-
deletedBy: string;
|
|
65
|
-
}): Promise<KnowledgeRecord>;
|
|
66
|
-
restoreKnowledge(input: {
|
|
67
|
-
id: string;
|
|
68
|
-
}): Promise<KnowledgeRecord>;
|
|
69
|
-
rescopeKnowledge(input: {
|
|
70
|
-
id: string;
|
|
71
|
-
scope: KnowledgeScope;
|
|
72
|
-
}): Promise<KnowledgeRecord>;
|
|
73
|
-
search(input: SearchKnowledgeInput): Promise<SearchKnowledgeResult[]>;
|
|
74
|
-
/**
|
|
75
|
-
* @deprecated Curation cursors were removed. Observation-time curate is the only Knowledge writer and needs no
|
|
76
|
-
* cursor. Always throws.
|
|
77
|
-
*/
|
|
78
|
-
getCurationCursor(_input: {
|
|
79
|
-
sourceThreadId: string;
|
|
80
|
-
agent: string;
|
|
81
|
-
}): Promise<KnowledgeCurationCursor | null>;
|
|
82
|
-
/**
|
|
83
|
-
* @deprecated Curation cursors were removed. Observation-time curate is the only Knowledge writer and needs no
|
|
84
|
-
* cursor. Always throws.
|
|
85
|
-
*/
|
|
86
|
-
advanceCurationCursor(_input: {
|
|
87
|
-
sourceThreadId: string;
|
|
88
|
-
agent: string;
|
|
89
|
-
lastKnowledgeId: string;
|
|
90
|
-
}): Promise<KnowledgeCurationCursor>;
|
|
91
|
-
listActivity(input: {
|
|
92
|
-
scope: KnowledgeScope;
|
|
93
|
-
after?: string;
|
|
94
|
-
limit?: number;
|
|
95
|
-
}): Promise<KnowledgeActivityEvent[]>;
|
|
96
|
-
listSemanticOutbox(input?: {
|
|
97
|
-
status?: KnowledgeSemanticOutboxEntry['status'];
|
|
98
|
-
scope?: KnowledgeScope;
|
|
99
|
-
limit?: number;
|
|
100
|
-
}): Promise<KnowledgeSemanticOutboxEntry[]>;
|
|
101
|
-
claimSemanticOutbox(input: ClaimKnowledgeSemanticOutboxInput): Promise<KnowledgeSemanticOutboxEntry[]>;
|
|
102
|
-
completeSemanticOutbox(input: {
|
|
103
|
-
ids: string[];
|
|
104
|
-
workerId: string;
|
|
105
|
-
}): Promise<void>;
|
|
106
|
-
releaseSemanticOutbox(input: {
|
|
107
|
-
ids: string[];
|
|
108
|
-
workerId: string;
|
|
109
|
-
retryAt?: Date;
|
|
110
|
-
}): Promise<void>;
|
|
29
|
+
dangerouslyClearAll(): Promise<void>;
|
|
30
|
+
materializeScope(input: Parameters<KnowledgePageStore['materializeScope']>[0]): ReturnType<KnowledgePageStore['materializeScope']>;
|
|
31
|
+
getScopesByAddress(input: Parameters<KnowledgePageStore['getScopesByAddress']>[0]): ReturnType<KnowledgePageStore['getScopesByAddress']>;
|
|
32
|
+
listScopeDeclarations(): ReturnType<KnowledgePageStore['listScopeDeclarations']>;
|
|
33
|
+
renameScopeDeclaration(input: Parameters<KnowledgePageStore['renameScopeDeclaration']>[0]): ReturnType<KnowledgePageStore['renameScopeDeclaration']>;
|
|
34
|
+
listChildScopes(input: Parameters<KnowledgePageStore['listChildScopes']>[0]): ReturnType<KnowledgePageStore['listChildScopes']>;
|
|
35
|
+
getPages(input: Parameters<KnowledgePageStore['getPages']>[0]): ReturnType<KnowledgePageStore['getPages']>;
|
|
36
|
+
getPage(input: Parameters<KnowledgePageStore['getPage']>[0]): ReturnType<KnowledgePageStore['getPage']>;
|
|
37
|
+
getPageByPath(input: Parameters<KnowledgePageStore['getPageByPath']>[0]): ReturnType<KnowledgePageStore['getPageByPath']>;
|
|
38
|
+
findPagesByName(input: Parameters<KnowledgePageStore['findPagesByName']>[0]): ReturnType<KnowledgePageStore['findPagesByName']>;
|
|
39
|
+
listChildPages(input: Parameters<KnowledgePageStore['listChildPages']>[0]): ReturnType<KnowledgePageStore['listChildPages']>;
|
|
40
|
+
listPages(input: Parameters<KnowledgePageStore['listPages']>[0]): ReturnType<KnowledgePageStore['listPages']>;
|
|
41
|
+
createPage(input: Parameters<KnowledgePageStore['createPage']>[0]): ReturnType<KnowledgePageStore['createPage']>;
|
|
42
|
+
updatePage(input: Parameters<KnowledgePageStore['updatePage']>[0]): ReturnType<KnowledgePageStore['updatePage']>;
|
|
43
|
+
movePage(input: Parameters<KnowledgePageStore['movePage']>[0]): ReturnType<KnowledgePageStore['movePage']>;
|
|
44
|
+
mergePages(input: Parameters<KnowledgePageStore['mergePages']>[0]): ReturnType<KnowledgePageStore['mergePages']>;
|
|
45
|
+
deletePage(input: Parameters<KnowledgePageStore['deletePage']>[0]): ReturnType<KnowledgePageStore['deletePage']>;
|
|
46
|
+
getNote(input: Parameters<KnowledgePageStore['getNote']>[0]): ReturnType<KnowledgePageStore['getNote']>;
|
|
47
|
+
listNotes(input: Parameters<KnowledgePageStore['listNotes']>[0]): ReturnType<KnowledgePageStore['listNotes']>;
|
|
48
|
+
countNotes(input: Parameters<KnowledgePageStore['countNotes']>[0]): ReturnType<KnowledgePageStore['countNotes']>;
|
|
49
|
+
listNotesMentioning(input: Parameters<KnowledgePageStore['listNotesMentioning']>[0]): ReturnType<KnowledgePageStore['listNotesMentioning']>;
|
|
50
|
+
addNote(input: Parameters<KnowledgePageStore['addNote']>[0]): ReturnType<KnowledgePageStore['addNote']>;
|
|
51
|
+
restampNote(input: Parameters<KnowledgePageStore['restampNote']>[0]): ReturnType<KnowledgePageStore['restampNote']>;
|
|
52
|
+
removeNote(input: Parameters<KnowledgePageStore['removeNote']>[0]): ReturnType<KnowledgePageStore['removeNote']>;
|
|
53
|
+
restoreNote(input: Parameters<KnowledgePageStore['restoreNote']>[0]): ReturnType<KnowledgePageStore['restoreNote']>;
|
|
54
|
+
searchPages(input: Parameters<KnowledgePageStore['searchPages']>[0]): ReturnType<KnowledgePageStore['searchPages']>;
|
|
55
|
+
listPageActivity(input: Parameters<KnowledgePageStore['listPageActivity']>[0]): ReturnType<KnowledgePageStore['listPageActivity']>;
|
|
56
|
+
addPinAudience(input: Parameters<KnowledgePageStore['addPinAudience']>[0]): ReturnType<KnowledgePageStore['addPinAudience']>;
|
|
57
|
+
removePinAudience(input: Parameters<KnowledgePageStore['removePinAudience']>[0]): ReturnType<KnowledgePageStore['removePinAudience']>;
|
|
58
|
+
listPins(input: Parameters<KnowledgePageStore['listPins']>[0]): ReturnType<KnowledgePageStore['listPins']>;
|
|
111
59
|
}
|
|
112
60
|
export {};
|
|
113
61
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/knowledge/index.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/knowledge/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG/D,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAOzD,KAAK,0BAA0B,GAAG;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AA6CF,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAUtF;AAMD,mFAAmF;AACnF,qBAAa,WAAY,SAAQ,gBAAgB;;IAC/C,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAEjD;IAMD,YAAY,MAAM,EAAE,cAAc,EAgBjC;IAEQ,eAAe;;;;;MAOvB;IAEK,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAE1B;IAEc,aAAa,sF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aAAa,CAAC,CAAC,CAE/C;IAEQ,WAAW,CAClB,KAAK,EAAE,UAAU,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,GACtD,UAAU,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC,CAE/C;IAEQ,gBAAgB,CACvB,KAAK,EAAE,UAAU,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,GAC3D,UAAU,CAAC,kBAAkB,CAAC,kBAAkB,CAAC,CAAC,CAEpD;IAEQ,cAAc,CACrB,KAAK,EAAE,UAAU,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,GACzD,UAAU,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC,CAElD;IAEQ,iBAAiB,CACxB,KAAK,EAAE,UAAU,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,GAC5D,UAAU,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,CAErD;IAEQ,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAElH;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { KnowledgePagesSchemaInspection } from '../../../_types/@internal_core/dist/knowledge-compat/index.js';
|
|
2
|
+
import type { DbClient, TxClient } from '../../client.js';
|
|
3
|
+
type Queryable = Pick<DbClient, 'query'> | Pick<TxClient, 'query'>;
|
|
4
|
+
/** Thrown when existing Knowledge tables can't be used as schema 4 without a reset. */
|
|
5
|
+
export declare class PgKnowledgeResetRequiredError extends Error {
|
|
6
|
+
readonly inspection: Extract<KnowledgePagesSchemaInspection, {
|
|
7
|
+
status: 'incompatible-reset-required';
|
|
8
|
+
}>;
|
|
9
|
+
constructor(inspection: Extract<KnowledgePagesSchemaInspection, {
|
|
10
|
+
status: 'incompatible-reset-required';
|
|
11
|
+
}>);
|
|
12
|
+
}
|
|
13
|
+
/** Looks at every `mastra_knowledge_*` table and the version row without changing anything. */
|
|
14
|
+
export declare function inspectPgKnowledgePagesSchema(db: Queryable, schemaName?: string): Promise<KnowledgePagesSchemaInspection>;
|
|
15
|
+
/** Creates the schema-4 tables, refusing (with the reset message) over anything older. */
|
|
16
|
+
export declare function initPgKnowledgePagesSchema(client: DbClient, schemaName?: string): Promise<void>;
|
|
17
|
+
/** Drops exactly the Knowledge tables (never Memory's) and recreates schema 4. */
|
|
18
|
+
export declare function resetPgKnowledgePagesSchema(client: DbClient, schemaName?: string): Promise<void>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=pages-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pages-schema.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/knowledge/pages-schema.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,iCAAiC,CAAC;AAEtF,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAGvD,KAAK,SAAS,GAAG,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAKnE,uFAAuF;AACvF,qBAAa,6BAA8B,SAAQ,KAAK;IACtD,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,8BAA8B,EAAE;QAAE,MAAM,EAAE,6BAA6B,CAAA;KAAE,CAAC,CAAC;IAExG,YAAY,UAAU,EAAE,OAAO,CAAC,8BAA8B,EAAE;QAAE,MAAM,EAAE,6BAA6B,CAAA;KAAE,CAAC,EAIzG;CACF;AAED,+FAA+F;AAC/F,wBAAsB,6BAA6B,CACjD,EAAE,EAAE,SAAS,EACb,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,8BAA8B,CAAC,CAEzC;AAED,0FAA0F;AAC1F,wBAAsB,0BAA0B,CAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBrG;AAwBD,kFAAkF;AAClF,wBAAsB,2BAA2B,CAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAItG"}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import type { AddKnowledgeNoteInput, CreateKnowledgePageInput, KnowledgeNote, KnowledgeNoteListOutput, KnowledgePage, KnowledgePageActivityEvent, KnowledgePageListOutput, KnowledgePageSearchHit, KnowledgePageStore, KnowledgeListedPin, KnowledgePin, KnowledgeProvenance, KnowledgeReadScope, KnowledgeScopeDeclarationCount, KnowledgeScopeDeclarationRename, MaterializeKnowledgeScopeInput, MaterializeKnowledgeScopeResult, MergeKnowledgePagesInput, MoveKnowledgePageInput, SearchKnowledgePagesInput, UpdateKnowledgePageInput } from '@mastra/core/storage';
|
|
2
|
+
import type { DbClient } from '../../client.js';
|
|
3
|
+
/** Core's bound checks, loaded lazily by the adapter so an old core fails with a clear message. */
|
|
4
|
+
export interface PgKnowledgePagesBounds {
|
|
5
|
+
assertKnowledgePageDescriptionWithinBound(description: string | undefined): void;
|
|
6
|
+
assertKnowledgeNoteTextWithinBound(text: string): void;
|
|
7
|
+
}
|
|
8
|
+
export declare const PG_KNOWLEDGE_PAGES_TABLES: {
|
|
9
|
+
readonly pages: 'mastra_knowledge_pages';
|
|
10
|
+
readonly notes: 'mastra_knowledge_notes';
|
|
11
|
+
readonly stamps: 'mastra_knowledge_note_stamps';
|
|
12
|
+
readonly mentions: 'mastra_knowledge_mentions';
|
|
13
|
+
readonly pins: 'mastra_knowledge_pins';
|
|
14
|
+
readonly activity: 'mastra_knowledge_activity';
|
|
15
|
+
readonly state: 'mastra_knowledge_access_state';
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Schema-4 DDL. `COLLATE "C"` on every column that is ordered, prefix-matched or compared for
|
|
19
|
+
* equality makes Postgres compare bytes, not locale rules, so address prefixes are case-sensitive and
|
|
20
|
+
* names/positions sort in binary order regardless of the database's default collation.
|
|
21
|
+
*/
|
|
22
|
+
export declare function pgKnowledgePagesDDL(schemaName?: string): string[];
|
|
23
|
+
/**
|
|
24
|
+
* Postgres implementation of the schema-4 {@link KnowledgePageStore}.
|
|
25
|
+
*
|
|
26
|
+
* Visibility is computed with live joins (a note's page home scope, its stamps, its mentioned pages'
|
|
27
|
+
* current home scopes), so a move or merge, which rewrites `scopeId` on the moved pages in the same
|
|
28
|
+
* transaction, can never leave a stale denormalized copy.
|
|
29
|
+
*/
|
|
30
|
+
export declare class PgKnowledgePages implements KnowledgePageStore {
|
|
31
|
+
#private;
|
|
32
|
+
constructor(options: {
|
|
33
|
+
client: DbClient;
|
|
34
|
+
schemaName?: string;
|
|
35
|
+
bounds: () => Promise<PgKnowledgePagesBounds>;
|
|
36
|
+
});
|
|
37
|
+
materializeScope(input: MaterializeKnowledgeScopeInput): Promise<MaterializeKnowledgeScopeResult>;
|
|
38
|
+
getScopesByAddress(addresses: string[]): Promise<KnowledgePage[]>;
|
|
39
|
+
listScopeDeclarations(): Promise<KnowledgeScopeDeclarationCount[]>;
|
|
40
|
+
renameScopeDeclaration(input: {
|
|
41
|
+
from: string;
|
|
42
|
+
to: string;
|
|
43
|
+
check: (scopes: KnowledgeScopeDeclarationRename[]) => void;
|
|
44
|
+
}): Promise<number>;
|
|
45
|
+
listChildScopes(input: {
|
|
46
|
+
parentId: string | null;
|
|
47
|
+
cursor?: string;
|
|
48
|
+
limit?: number;
|
|
49
|
+
}): Promise<KnowledgePageListOutput>;
|
|
50
|
+
getPage(input: {
|
|
51
|
+
id: string;
|
|
52
|
+
read: KnowledgeReadScope;
|
|
53
|
+
}): Promise<KnowledgePage | null>;
|
|
54
|
+
getPageByPath(input: {
|
|
55
|
+
scopeId: string;
|
|
56
|
+
path: string[];
|
|
57
|
+
read: KnowledgeReadScope;
|
|
58
|
+
}): Promise<KnowledgePage | null>;
|
|
59
|
+
findPagesByName(input: {
|
|
60
|
+
name: string;
|
|
61
|
+
read: KnowledgeReadScope;
|
|
62
|
+
scopeId?: string;
|
|
63
|
+
limit?: number;
|
|
64
|
+
}): Promise<KnowledgePage[]>;
|
|
65
|
+
listChildPages(input: {
|
|
66
|
+
parentId: string;
|
|
67
|
+
read: KnowledgeReadScope;
|
|
68
|
+
cursor?: string;
|
|
69
|
+
limit?: number;
|
|
70
|
+
}): Promise<KnowledgePageListOutput>;
|
|
71
|
+
listPages(input: {
|
|
72
|
+
read: KnowledgeReadScope;
|
|
73
|
+
scopeId?: string;
|
|
74
|
+
namePrefix?: string;
|
|
75
|
+
cursor?: string;
|
|
76
|
+
limit?: number;
|
|
77
|
+
}): Promise<KnowledgePageListOutput>;
|
|
78
|
+
createPage(input: CreateKnowledgePageInput): Promise<KnowledgePage>;
|
|
79
|
+
updatePage(input: UpdateKnowledgePageInput): Promise<KnowledgePage>;
|
|
80
|
+
movePage(input: MoveKnowledgePageInput): Promise<KnowledgePage>;
|
|
81
|
+
mergePages(input: MergeKnowledgePagesInput): Promise<KnowledgePage>;
|
|
82
|
+
deletePage(input: {
|
|
83
|
+
id: string;
|
|
84
|
+
expectedVersion: number;
|
|
85
|
+
deletedBy: string;
|
|
86
|
+
}): Promise<KnowledgePage>;
|
|
87
|
+
getNote(input: {
|
|
88
|
+
id: string;
|
|
89
|
+
read: KnowledgeReadScope;
|
|
90
|
+
includeDeleted?: boolean;
|
|
91
|
+
}): Promise<KnowledgeNote | null>;
|
|
92
|
+
listNotes(input: {
|
|
93
|
+
pageId: string;
|
|
94
|
+
read: KnowledgeReadScope;
|
|
95
|
+
cursor?: string;
|
|
96
|
+
limit?: number;
|
|
97
|
+
includeDeleted?: boolean;
|
|
98
|
+
}): Promise<KnowledgeNoteListOutput>;
|
|
99
|
+
countNotes(input: {
|
|
100
|
+
pageIds: string[];
|
|
101
|
+
read: KnowledgeReadScope;
|
|
102
|
+
}): Promise<Record<string, number>>;
|
|
103
|
+
listNotesMentioning(input: {
|
|
104
|
+
pageId: string;
|
|
105
|
+
read: KnowledgeReadScope;
|
|
106
|
+
cursor?: string;
|
|
107
|
+
limit?: number;
|
|
108
|
+
}): Promise<KnowledgeNoteListOutput>;
|
|
109
|
+
addNote(input: AddKnowledgeNoteInput): Promise<KnowledgeNote>;
|
|
110
|
+
restampNote(input: {
|
|
111
|
+
id: string;
|
|
112
|
+
expectedVersion: number;
|
|
113
|
+
stampScopeIds: string[];
|
|
114
|
+
provenance: KnowledgeProvenance;
|
|
115
|
+
}): Promise<KnowledgeNote>;
|
|
116
|
+
removeNote(input: {
|
|
117
|
+
id: string;
|
|
118
|
+
deletedBy: string;
|
|
119
|
+
provenance: KnowledgeProvenance;
|
|
120
|
+
}): Promise<KnowledgeNote>;
|
|
121
|
+
restoreNote(input: {
|
|
122
|
+
id: string;
|
|
123
|
+
provenance: KnowledgeProvenance;
|
|
124
|
+
}): Promise<KnowledgeNote>;
|
|
125
|
+
searchPages(input: SearchKnowledgePagesInput): Promise<KnowledgePageSearchHit[]>;
|
|
126
|
+
listPageActivity(input: {
|
|
127
|
+
read: KnowledgeReadScope;
|
|
128
|
+
scopeId?: string;
|
|
129
|
+
pageId?: string;
|
|
130
|
+
cursor?: string;
|
|
131
|
+
limit?: number;
|
|
132
|
+
}): Promise<{
|
|
133
|
+
events: KnowledgePageActivityEvent[];
|
|
134
|
+
nextCursor?: string;
|
|
135
|
+
}>;
|
|
136
|
+
addPinAudience(input: {
|
|
137
|
+
pageId: string;
|
|
138
|
+
audience: string[];
|
|
139
|
+
createdBy: string;
|
|
140
|
+
}): Promise<KnowledgePin>;
|
|
141
|
+
removePinAudience(input: {
|
|
142
|
+
pageId: string;
|
|
143
|
+
audience: string[];
|
|
144
|
+
removedBy: string;
|
|
145
|
+
}): Promise<KnowledgePin | null>;
|
|
146
|
+
/** Deletes every row but keeps the tables and the schema-version marker. */
|
|
147
|
+
clearAll(): Promise<void>;
|
|
148
|
+
getPages(input: {
|
|
149
|
+
ids: string[];
|
|
150
|
+
read: KnowledgeReadScope;
|
|
151
|
+
}): Promise<KnowledgePage[]>;
|
|
152
|
+
listPins(input: {
|
|
153
|
+
audience: string[] | 'all';
|
|
154
|
+
read: KnowledgeReadScope;
|
|
155
|
+
pageIds?: string[];
|
|
156
|
+
excludePageIds?: string[];
|
|
157
|
+
withBody?: boolean;
|
|
158
|
+
count?: boolean;
|
|
159
|
+
cursor?: string;
|
|
160
|
+
limit?: number;
|
|
161
|
+
}): Promise<{
|
|
162
|
+
pins: KnowledgeListedPin[];
|
|
163
|
+
nextCursor?: string;
|
|
164
|
+
total?: number;
|
|
165
|
+
}>;
|
|
166
|
+
}
|
|
167
|
+
//# sourceMappingURL=pages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/knowledge/pages.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,qBAAqB,EACrB,wBAAwB,EACxB,aAAa,EACb,uBAAuB,EACvB,aAAa,EAEb,0BAA0B,EAC1B,uBAAuB,EACvB,sBAAsB,EAEtB,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,8BAA8B,EAC9B,+BAA+B,EAC/B,8BAA8B,EAC9B,+BAA+B,EAC/B,wBAAwB,EACxB,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACzB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,cAAc,CAAC;AAIvD,mGAAmG;AACnG,MAAM,WAAW,sBAAsB;IACrC,yCAAyC,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;IACjF,kCAAkC,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACxD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EAAE;QAAE,GAAG,EAAE,MAAM,EAAE,CAAC;QAAC,IAAI,EAAE,kBAAkB,CAAA;KAAE,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAY3F;IAEK,QAAQ,CAAC,KAAK,EAAE;QACpB,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;QAC3B,IAAI,EAAE,kBAAkB,CAAC;QACzB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;QAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAuC/E;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/pg",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.35.0-alpha.0",
|
|
4
4
|
"description": "Postgres provider for Mastra - includes both vector and db storage capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@internal/lint": "0.0.147",
|
|
39
39
|
"@internal/storage-test-utils": "0.0.143",
|
|
40
40
|
"@internal/types-builder": "0.0.122",
|
|
41
|
-
"@mastra/core": "1.
|
|
41
|
+
"@mastra/core": "1.82.0-alpha.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@mastra/core": ">=1.80.0-0 <2.0.0-0"
|