@x12i/memorix-scoper-contracts 2.0.0 → 3.0.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/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/project-record.d.ts +9 -0
- package/dist/project-record.d.ts.map +1 -1
- package/dist/project-record.js +13 -0
- package/dist/project-record.js.map +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/profile.d.ts +2 -2
- package/dist/schemas/request.d.ts +376 -6
- package/dist/schemas/request.d.ts.map +1 -1
- package/dist/schemas/request.js +152 -0
- package/dist/schemas/request.js.map +1 -1
- package/package.json +4 -4
- package/schemas/CatalogEntry.json +67 -17
- package/schemas/CatalogEntry.schema.json +157 -157
- package/schemas/EvidenceBundle.json +315 -15
- package/schemas/EvidenceBundle.schema.json +469 -469
- package/schemas/EvidenceItem.json +156 -15
- package/schemas/EvidenceRef.json +113 -9
- package/schemas/EvidenceSelection.schema.json +83 -83
- package/schemas/IntentScopeRequest.json +78 -0
- package/schemas/IntentScopeResponse.json +105 -0
- package/schemas/RetrievalPlan.json +221 -13
- package/schemas/RetrievalPlan.schema.json +73 -73
- package/schemas/RetrievalStep.json +51 -14
- package/schemas/ScopeIntent.json +84 -0
- package/schemas/ScopeRequest.json +151 -28
- package/schemas/ScopeRequest.schema.json +108 -108
- package/schemas/ScoperBudgets.json +48 -14
- package/schemas/ScoperProfile.json +114 -17
- package/schemas/TrustedExecutionContext.json +57 -22
- package/schemas/TrustedExecutionContext.schema.json +129 -129
- package/dist/schemas.d.ts +0 -1077
- package/dist/schemas.d.ts.map +0 -1
- package/dist/schemas.js +0 -199
- package/dist/schemas.js.map +0 -1
- package/dist/schemas.test.d.ts +0 -2
- package/dist/schemas.test.d.ts.map +0 -1
- package/dist/schemas.test.js +0 -29
- package/dist/schemas.test.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "./schemas/index.js";
|
|
2
2
|
export * from "./errors.js";
|
|
3
|
-
export { projectRecord, type FieldSelect } from "./project-record.js";
|
|
3
|
+
export { projectRecord, readRecordField, type FieldSelect } from "./project-record.js";
|
|
4
4
|
export { markdownBody } from "./markdown-body.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "./schemas/index.js";
|
|
2
2
|
export * from "./errors.js";
|
|
3
|
-
export { projectRecord } from "./project-record.js";
|
|
3
|
+
export { projectRecord, readRecordField } from "./project-record.js";
|
|
4
4
|
export { markdownBody } from "./markdown-body.js";
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAoB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,eAAe,EAAoB,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/project-record.d.ts
CHANGED
|
@@ -4,6 +4,15 @@ export type FieldSelect = {
|
|
|
4
4
|
/** Dot paths to drop after `properties` is applied. */
|
|
5
5
|
exclude?: string[];
|
|
6
6
|
};
|
|
7
|
+
/**
|
|
8
|
+
* Read one dot path from a stored record.
|
|
9
|
+
* The path as written wins. A bare name also matches `data.<name>`.
|
|
10
|
+
* A missing record or a missing path is `{ found: false }`.
|
|
11
|
+
*/
|
|
12
|
+
export declare function readRecordField(record: Record<string, unknown> | null | undefined, spec: string): {
|
|
13
|
+
found: boolean;
|
|
14
|
+
value: unknown;
|
|
15
|
+
};
|
|
7
16
|
/**
|
|
8
17
|
* Shape a stored record for the caller.
|
|
9
18
|
* No `properties` or `exclude` returns the record unchanged.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-record.d.ts","sourceRoot":"","sources":["../src/project-record.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG;IACxB,qFAAqF;IACrF,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,uDAAuD;IACvD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAwDF;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,EACtC,MAAM,EAAE,WAAW,GAAG,SAAS,GAC9B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAwBhC"}
|
|
1
|
+
{"version":3,"file":"project-record.d.ts","sourceRoot":"","sources":["../src/project-record.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG;IACxB,qFAAqF;IACrF,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,uDAAuD;IACvD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAwDF;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,EAClD,IAAI,EAAE,MAAM,GACX;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAKpC;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,EACtC,MAAM,EAAE,WAAW,GAAG,SAAS,GAC9B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAwBhC"}
|
package/dist/project-record.js
CHANGED
|
@@ -55,6 +55,19 @@ function resolvePath(record, spec) {
|
|
|
55
55
|
}
|
|
56
56
|
return direct;
|
|
57
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Read one dot path from a stored record.
|
|
60
|
+
* The path as written wins. A bare name also matches `data.<name>`.
|
|
61
|
+
* A missing record or a missing path is `{ found: false }`.
|
|
62
|
+
*/
|
|
63
|
+
export function readRecordField(record, spec) {
|
|
64
|
+
if (!record)
|
|
65
|
+
return { found: false, value: undefined };
|
|
66
|
+
const parts = resolvePath(record, spec);
|
|
67
|
+
if (!parts)
|
|
68
|
+
return { found: false, value: undefined };
|
|
69
|
+
return readPath(record, parts);
|
|
70
|
+
}
|
|
58
71
|
/**
|
|
59
72
|
* Shape a stored record for the caller.
|
|
60
73
|
* No `properties` or `exclude` returns the record unchanged.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-record.js","sourceRoot":"","sources":["../src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CAAC;QACrC,IAAI,KAAK;YAAE,UAAU,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ScoperBudgetsSchema, TrustedExecutionContextSchema, ScopeRequestSchema, ContentIncludeSchema, DEFAULT_SCOPER_BUDGETS, clampBudgets, type ScoperBudgets, type TrustedExecutionContext, type ScopeRequest, type ContentInclude, SubjectDataRequestSchema, SubjectDataPieceSchema, SubjectDataResponseSchema, type SubjectDataRequest, type SubjectDataPiece, type SubjectDataResponse, } from "./request.js";
|
|
1
|
+
export { ScoperBudgetsSchema, TrustedExecutionContextSchema, ScopeRequestSchema, ContentIncludeSchema, DEFAULT_SCOPER_BUDGETS, clampBudgets, type ScoperBudgets, type TrustedExecutionContext, type ScopeRequest, type ContentInclude, SubjectDataRequestSchema, SubjectDataPieceSchema, SubjectDataResponseSchema, type SubjectDataRequest, type SubjectDataPiece, type SubjectDataResponse, ScopeIntentRelationSchema, ScopeIntentSchema, IntentScopeRequestSchema, IntentScopeObjectSchema, IntentScopeResponseSchema, ScopeSelectionSchema, type ScopeIntentRelation, type ScopeIntent, type IntentScopeRequest, type IntentScopeObject, type IntentScopeResponse, type ScopeSelection, } from "./request.js";
|
|
2
2
|
export { SubjectEvidenceRefSchema, EstateBagEvidenceRefSchema, KnowledgeExploreEvidenceRefSchema, EvidenceRefSchema, EpistemicClassSchema, EvidenceItemSchema, ConflictSchema, UnknownSchema, WarningSchema, ContinuationSchema, EvidenceBundleSchema, type SubjectEvidenceRef, type EstateBagEvidenceRef, type KnowledgeExploreEvidenceRef, type EvidenceRef, type EpistemicClass, type EvidenceItem, type Conflict, type Unknown, type Warning, type Continuation, type EvidenceBundle, } from "./evidence.js";
|
|
3
3
|
export { CatalogCapabilitySchema, CatalogEntrySchema, CatalogSchema, RetrievalStepSchema, EvidenceSelectionSchema, RetrievalPlanSchema, type CatalogCapability, type CatalogEntry, type Catalog, type RetrievalStep, type EvidenceSelection, type RetrievalPlan, } from "./catalog.js";
|
|
4
4
|
export { ScoperProfileSchema, type ScoperProfile } from "./profile.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,6BAA6B,EAC7B,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,yBAAyB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,6BAA6B,EAC7B,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,YAAY,EACZ,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,yBAAyB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,EACvB,yBAAyB,EACzB,oBAAoB,EACpB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,cAAc,GACpB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,iCAAiC,EACjC,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,cAAc,GACpB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,EACnB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,aAAa,GACnB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,mBAAmB,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAEvE,OAAO,EACL,8BAA8B,EAC9B,kBAAkB,EAClB,wBAAwB,EACxB,yBAAyB,EACzB,0BAA0B,EAC1B,oBAAoB,EACpB,gBAAgB,EAChB,6BAA6B,EAC7B,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,aAAa,GACnB,MAAM,oBAAoB,CAAC"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ScoperBudgetsSchema, TrustedExecutionContextSchema, ScopeRequestSchema, ContentIncludeSchema, DEFAULT_SCOPER_BUDGETS, clampBudgets, SubjectDataRequestSchema, SubjectDataPieceSchema, SubjectDataResponseSchema, } from "./request.js";
|
|
1
|
+
export { ScoperBudgetsSchema, TrustedExecutionContextSchema, ScopeRequestSchema, ContentIncludeSchema, DEFAULT_SCOPER_BUDGETS, clampBudgets, SubjectDataRequestSchema, SubjectDataPieceSchema, SubjectDataResponseSchema, ScopeIntentRelationSchema, ScopeIntentSchema, IntentScopeRequestSchema, IntentScopeObjectSchema, IntentScopeResponseSchema, ScopeSelectionSchema, } from "./request.js";
|
|
2
2
|
export { SubjectEvidenceRefSchema, EstateBagEvidenceRefSchema, KnowledgeExploreEvidenceRefSchema, EvidenceRefSchema, EpistemicClassSchema, EvidenceItemSchema, ConflictSchema, UnknownSchema, WarningSchema, ContinuationSchema, EvidenceBundleSchema, } from "./evidence.js";
|
|
3
3
|
export { CatalogCapabilitySchema, CatalogEntrySchema, CatalogSchema, RetrievalStepSchema, EvidenceSelectionSchema, RetrievalPlanSchema, } from "./catalog.js";
|
|
4
4
|
export { ScoperProfileSchema } from "./profile.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,6BAA6B,EAC7B,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,YAAY,EAKZ,wBAAwB,EACxB,sBAAsB,EACtB,yBAAyB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,6BAA6B,EAC7B,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,YAAY,EAKZ,wBAAwB,EACxB,sBAAsB,EACtB,yBAAyB,EAIzB,yBAAyB,EACzB,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,EACvB,yBAAyB,EACzB,oBAAoB,GAOrB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,iCAAiC,EACjC,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,oBAAoB,GAYrB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,uBAAuB,EACvB,mBAAmB,GAOpB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,mBAAmB,EAAsB,MAAM,cAAc,CAAC;AAEvE,OAAO,EACL,8BAA8B,EAC9B,kBAAkB,EAClB,wBAAwB,EACxB,yBAAyB,EACzB,0BAA0B,EAC1B,oBAAoB,EACpB,gBAAgB,EAChB,6BAA6B,GAK9B,MAAM,oBAAoB,CAAC"}
|
|
@@ -31,7 +31,6 @@ export declare const ScoperProfileSchema: z.ZodObject<{
|
|
|
31
31
|
epistemicRules: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
32
32
|
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
tags: string[];
|
|
35
34
|
id: string;
|
|
36
35
|
version: string;
|
|
37
36
|
title: string;
|
|
@@ -39,6 +38,7 @@ export declare const ScoperProfileSchema: z.ZodObject<{
|
|
|
39
38
|
allowedCapabilities: ("subjects.get" | "subjects.list" | "subjects.query" | "subjects.getNexumSnapshot" | "estate.startSession" | "estate.getBag" | "estate.query" | "explore.query" | "catalog.describe")[];
|
|
40
39
|
systemPrompt: string;
|
|
41
40
|
epistemicRules: string[];
|
|
41
|
+
tags: string[];
|
|
42
42
|
defaultBudgets?: {
|
|
43
43
|
maxSubjects?: number | undefined;
|
|
44
44
|
maxEvidenceItems?: number | undefined;
|
|
@@ -54,7 +54,6 @@ export declare const ScoperProfileSchema: z.ZodObject<{
|
|
|
54
54
|
description: string;
|
|
55
55
|
allowedCapabilities: ("subjects.get" | "subjects.list" | "subjects.query" | "subjects.getNexumSnapshot" | "estate.startSession" | "estate.getBag" | "estate.query" | "explore.query" | "catalog.describe")[];
|
|
56
56
|
systemPrompt: string;
|
|
57
|
-
tags?: string[] | undefined;
|
|
58
57
|
defaultBudgets?: {
|
|
59
58
|
maxSubjects?: number | undefined;
|
|
60
59
|
maxEvidenceItems?: number | undefined;
|
|
@@ -64,6 +63,7 @@ export declare const ScoperProfileSchema: z.ZodObject<{
|
|
|
64
63
|
maxEstateSessions?: number | undefined;
|
|
65
64
|
} | undefined;
|
|
66
65
|
epistemicRules?: string[] | undefined;
|
|
66
|
+
tags?: string[] | undefined;
|
|
67
67
|
}>;
|
|
68
68
|
export type ScoperProfile = z.infer<typeof ScoperProfileSchema>;
|
|
69
69
|
//# sourceMappingURL=profile.d.ts.map
|
|
@@ -93,15 +93,15 @@ export declare const ScopeRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
93
93
|
contentTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
94
94
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
95
95
|
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
tags?: string[] | undefined;
|
|
96
97
|
subjectIds?: string[] | undefined;
|
|
97
98
|
objectTypes?: string[] | undefined;
|
|
98
99
|
contentTypes?: string[] | undefined;
|
|
99
|
-
tags?: string[] | undefined;
|
|
100
100
|
}, {
|
|
101
|
+
tags?: string[] | undefined;
|
|
101
102
|
subjectIds?: string[] | undefined;
|
|
102
103
|
objectTypes?: string[] | undefined;
|
|
103
104
|
contentTypes?: string[] | undefined;
|
|
104
|
-
tags?: string[] | undefined;
|
|
105
105
|
}>>;
|
|
106
106
|
budgets: z.ZodOptional<z.ZodObject<{
|
|
107
107
|
maxSubjects: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
@@ -201,10 +201,10 @@ export declare const ScopeRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
201
201
|
} | undefined;
|
|
202
202
|
objective?: string | undefined;
|
|
203
203
|
focus?: {
|
|
204
|
+
tags?: string[] | undefined;
|
|
204
205
|
subjectIds?: string[] | undefined;
|
|
205
206
|
objectTypes?: string[] | undefined;
|
|
206
207
|
contentTypes?: string[] | undefined;
|
|
207
|
-
tags?: string[] | undefined;
|
|
208
208
|
} | undefined;
|
|
209
209
|
budgets?: {
|
|
210
210
|
maxSubjects?: number | undefined;
|
|
@@ -233,10 +233,10 @@ export declare const ScopeRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
233
233
|
} | undefined;
|
|
234
234
|
objective?: string | undefined;
|
|
235
235
|
focus?: {
|
|
236
|
+
tags?: string[] | undefined;
|
|
236
237
|
subjectIds?: string[] | undefined;
|
|
237
238
|
objectTypes?: string[] | undefined;
|
|
238
239
|
contentTypes?: string[] | undefined;
|
|
239
|
-
tags?: string[] | undefined;
|
|
240
240
|
} | undefined;
|
|
241
241
|
budgets?: {
|
|
242
242
|
maxSubjects?: number | undefined;
|
|
@@ -265,10 +265,10 @@ export declare const ScopeRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
265
265
|
} | undefined;
|
|
266
266
|
objective?: string | undefined;
|
|
267
267
|
focus?: {
|
|
268
|
+
tags?: string[] | undefined;
|
|
268
269
|
subjectIds?: string[] | undefined;
|
|
269
270
|
objectTypes?: string[] | undefined;
|
|
270
271
|
contentTypes?: string[] | undefined;
|
|
271
|
-
tags?: string[] | undefined;
|
|
272
272
|
} | undefined;
|
|
273
273
|
budgets?: {
|
|
274
274
|
maxSubjects?: number | undefined;
|
|
@@ -297,10 +297,10 @@ export declare const ScopeRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
297
297
|
} | undefined;
|
|
298
298
|
objective?: string | undefined;
|
|
299
299
|
focus?: {
|
|
300
|
+
tags?: string[] | undefined;
|
|
300
301
|
subjectIds?: string[] | undefined;
|
|
301
302
|
objectTypes?: string[] | undefined;
|
|
302
303
|
contentTypes?: string[] | undefined;
|
|
303
|
-
tags?: string[] | undefined;
|
|
304
304
|
} | undefined;
|
|
305
305
|
budgets?: {
|
|
306
306
|
maxSubjects?: number | undefined;
|
|
@@ -527,5 +527,375 @@ export declare const SubjectDataResponseSchema: z.ZodObject<{
|
|
|
527
527
|
}>;
|
|
528
528
|
export type SubjectDataPiece = z.infer<typeof SubjectDataPieceSchema>;
|
|
529
529
|
export type SubjectDataResponse = z.infer<typeof SubjectDataResponseSchema>;
|
|
530
|
+
/** One related object type reached through a field on the anchor record. */
|
|
531
|
+
export declare const ScopeIntentRelationSchema: z.ZodObject<{
|
|
532
|
+
/** Dot path on the anchor record. A bare name also matches `data.<name>`. */
|
|
533
|
+
field: z.ZodString;
|
|
534
|
+
/** Anchor content type that holds `field`. Omit to search anchor pieces in order. */
|
|
535
|
+
sourceContentType: z.ZodOptional<z.ZodString>;
|
|
536
|
+
objectType: z.ZodString;
|
|
537
|
+
contentTypes: z.ZodArray<z.ZodString, "many">;
|
|
538
|
+
}, "strict", z.ZodTypeAny, {
|
|
539
|
+
contentTypes: string[];
|
|
540
|
+
objectType: string;
|
|
541
|
+
field: string;
|
|
542
|
+
sourceContentType?: string | undefined;
|
|
543
|
+
}, {
|
|
544
|
+
contentTypes: string[];
|
|
545
|
+
objectType: string;
|
|
546
|
+
field: string;
|
|
547
|
+
sourceContentType?: string | undefined;
|
|
548
|
+
}>;
|
|
549
|
+
export type ScopeIntentRelation = z.infer<typeof ScopeIntentRelationSchema>;
|
|
550
|
+
/**
|
|
551
|
+
* One value of the intent enum.
|
|
552
|
+
* `objectType` is the first tier. `contentTypes` and `relations` stay on the
|
|
553
|
+
* document and are not the fetch script. The menu is the object-type descriptor.
|
|
554
|
+
*/
|
|
555
|
+
export declare const ScopeIntentSchema: z.ZodEffects<z.ZodObject<{
|
|
556
|
+
id: z.ZodString;
|
|
557
|
+
title: z.ZodString;
|
|
558
|
+
objectType: z.ZodString;
|
|
559
|
+
contentTypes: z.ZodArray<z.ZodString, "many">;
|
|
560
|
+
relations: z.ZodArray<z.ZodObject<{
|
|
561
|
+
/** Dot path on the anchor record. A bare name also matches `data.<name>`. */
|
|
562
|
+
field: z.ZodString;
|
|
563
|
+
/** Anchor content type that holds `field`. Omit to search anchor pieces in order. */
|
|
564
|
+
sourceContentType: z.ZodOptional<z.ZodString>;
|
|
565
|
+
objectType: z.ZodString;
|
|
566
|
+
contentTypes: z.ZodArray<z.ZodString, "many">;
|
|
567
|
+
}, "strict", z.ZodTypeAny, {
|
|
568
|
+
contentTypes: string[];
|
|
569
|
+
objectType: string;
|
|
570
|
+
field: string;
|
|
571
|
+
sourceContentType?: string | undefined;
|
|
572
|
+
}, {
|
|
573
|
+
contentTypes: string[];
|
|
574
|
+
objectType: string;
|
|
575
|
+
field: string;
|
|
576
|
+
sourceContentType?: string | undefined;
|
|
577
|
+
}>, "many">;
|
|
578
|
+
}, "strict", z.ZodTypeAny, {
|
|
579
|
+
id: string;
|
|
580
|
+
title: string;
|
|
581
|
+
contentTypes: string[];
|
|
582
|
+
objectType: string;
|
|
583
|
+
relations: {
|
|
584
|
+
contentTypes: string[];
|
|
585
|
+
objectType: string;
|
|
586
|
+
field: string;
|
|
587
|
+
sourceContentType?: string | undefined;
|
|
588
|
+
}[];
|
|
589
|
+
}, {
|
|
590
|
+
id: string;
|
|
591
|
+
title: string;
|
|
592
|
+
contentTypes: string[];
|
|
593
|
+
objectType: string;
|
|
594
|
+
relations: {
|
|
595
|
+
contentTypes: string[];
|
|
596
|
+
objectType: string;
|
|
597
|
+
field: string;
|
|
598
|
+
sourceContentType?: string | undefined;
|
|
599
|
+
}[];
|
|
600
|
+
}>, {
|
|
601
|
+
id: string;
|
|
602
|
+
title: string;
|
|
603
|
+
contentTypes: string[];
|
|
604
|
+
objectType: string;
|
|
605
|
+
relations: {
|
|
606
|
+
contentTypes: string[];
|
|
607
|
+
objectType: string;
|
|
608
|
+
field: string;
|
|
609
|
+
sourceContentType?: string | undefined;
|
|
610
|
+
}[];
|
|
611
|
+
}, {
|
|
612
|
+
id: string;
|
|
613
|
+
title: string;
|
|
614
|
+
contentTypes: string[];
|
|
615
|
+
objectType: string;
|
|
616
|
+
relations: {
|
|
617
|
+
contentTypes: string[];
|
|
618
|
+
objectType: string;
|
|
619
|
+
field: string;
|
|
620
|
+
sourceContentType?: string | undefined;
|
|
621
|
+
}[];
|
|
622
|
+
}>;
|
|
623
|
+
export type ScopeIntent = z.infer<typeof ScopeIntentSchema>;
|
|
624
|
+
/**
|
|
625
|
+
* Caller fields for an intent scope. The intent id must be one the host loaded.
|
|
626
|
+
* Record mode is the body that includes `record`. Text mode is the body that
|
|
627
|
+
* includes `text` and no `recordId`. Anything else with `recordId` is address mode.
|
|
628
|
+
* `redo: true` skips the selection cache.
|
|
629
|
+
*/
|
|
630
|
+
export declare const IntentScopeRequestSchema: z.ZodUnion<[z.ZodObject<{
|
|
631
|
+
recordId: z.ZodString;
|
|
632
|
+
intent: z.ZodString;
|
|
633
|
+
record: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
634
|
+
redo: z.ZodOptional<z.ZodBoolean>;
|
|
635
|
+
}, "strict", z.ZodTypeAny, {
|
|
636
|
+
recordId: string;
|
|
637
|
+
record: Record<string, unknown>;
|
|
638
|
+
intent: string;
|
|
639
|
+
redo?: boolean | undefined;
|
|
640
|
+
}, {
|
|
641
|
+
recordId: string;
|
|
642
|
+
record: Record<string, unknown>;
|
|
643
|
+
intent: string;
|
|
644
|
+
redo?: boolean | undefined;
|
|
645
|
+
}>, z.ZodObject<{
|
|
646
|
+
intent: z.ZodString;
|
|
647
|
+
text: z.ZodString;
|
|
648
|
+
redo: z.ZodOptional<z.ZodBoolean>;
|
|
649
|
+
}, "strict", z.ZodTypeAny, {
|
|
650
|
+
intent: string;
|
|
651
|
+
text: string;
|
|
652
|
+
redo?: boolean | undefined;
|
|
653
|
+
}, {
|
|
654
|
+
intent: string;
|
|
655
|
+
text: string;
|
|
656
|
+
redo?: boolean | undefined;
|
|
657
|
+
}>, z.ZodObject<{
|
|
658
|
+
recordId: z.ZodString;
|
|
659
|
+
intent: z.ZodString;
|
|
660
|
+
redo: z.ZodOptional<z.ZodBoolean>;
|
|
661
|
+
}, "strict", z.ZodTypeAny, {
|
|
662
|
+
recordId: string;
|
|
663
|
+
intent: string;
|
|
664
|
+
redo?: boolean | undefined;
|
|
665
|
+
}, {
|
|
666
|
+
recordId: string;
|
|
667
|
+
intent: string;
|
|
668
|
+
redo?: boolean | undefined;
|
|
669
|
+
}>]>;
|
|
670
|
+
export type IntentScopeRequest = z.infer<typeof IntentScopeRequestSchema>;
|
|
671
|
+
export declare const IntentScopeObjectSchema: z.ZodObject<{
|
|
672
|
+
contentType: z.ZodString;
|
|
673
|
+
found: z.ZodBoolean;
|
|
674
|
+
record: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
675
|
+
}, "strip", z.ZodTypeAny, {
|
|
676
|
+
contentType: string;
|
|
677
|
+
found: boolean;
|
|
678
|
+
record: Record<string, unknown> | null;
|
|
679
|
+
}, {
|
|
680
|
+
contentType: string;
|
|
681
|
+
found: boolean;
|
|
682
|
+
record: Record<string, unknown> | null;
|
|
683
|
+
}>;
|
|
684
|
+
export type IntentScopeObject = z.infer<typeof IntentScopeObjectSchema>;
|
|
685
|
+
/**
|
|
686
|
+
* What to read. Not the stored records.
|
|
687
|
+
* `associations[].recordIds` is present only for record mode.
|
|
688
|
+
*/
|
|
689
|
+
export declare const ScopeSelectionSchema: z.ZodObject<{
|
|
690
|
+
intent: z.ZodString;
|
|
691
|
+
anchor: z.ZodObject<{
|
|
692
|
+
objectType: z.ZodString;
|
|
693
|
+
recordIds: z.ZodArray<z.ZodString, "many">;
|
|
694
|
+
contentTypes: z.ZodArray<z.ZodObject<{
|
|
695
|
+
id: z.ZodString;
|
|
696
|
+
properties: z.ZodArray<z.ZodString, "many">;
|
|
697
|
+
}, "strict", z.ZodTypeAny, {
|
|
698
|
+
id: string;
|
|
699
|
+
properties: string[];
|
|
700
|
+
}, {
|
|
701
|
+
id: string;
|
|
702
|
+
properties: string[];
|
|
703
|
+
}>, "many">;
|
|
704
|
+
}, "strict", z.ZodTypeAny, {
|
|
705
|
+
contentTypes: {
|
|
706
|
+
id: string;
|
|
707
|
+
properties: string[];
|
|
708
|
+
}[];
|
|
709
|
+
objectType: string;
|
|
710
|
+
recordIds: string[];
|
|
711
|
+
}, {
|
|
712
|
+
contentTypes: {
|
|
713
|
+
id: string;
|
|
714
|
+
properties: string[];
|
|
715
|
+
}[];
|
|
716
|
+
objectType: string;
|
|
717
|
+
recordIds: string[];
|
|
718
|
+
}>;
|
|
719
|
+
associations: z.ZodArray<z.ZodObject<{
|
|
720
|
+
field: z.ZodString;
|
|
721
|
+
objectType: z.ZodString;
|
|
722
|
+
recordIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
723
|
+
contentTypes: z.ZodArray<z.ZodObject<{
|
|
724
|
+
id: z.ZodString;
|
|
725
|
+
properties: z.ZodArray<z.ZodString, "many">;
|
|
726
|
+
}, "strict", z.ZodTypeAny, {
|
|
727
|
+
id: string;
|
|
728
|
+
properties: string[];
|
|
729
|
+
}, {
|
|
730
|
+
id: string;
|
|
731
|
+
properties: string[];
|
|
732
|
+
}>, "many">;
|
|
733
|
+
}, "strict", z.ZodTypeAny, {
|
|
734
|
+
contentTypes: {
|
|
735
|
+
id: string;
|
|
736
|
+
properties: string[];
|
|
737
|
+
}[];
|
|
738
|
+
objectType: string;
|
|
739
|
+
field: string;
|
|
740
|
+
recordIds?: string[] | undefined;
|
|
741
|
+
}, {
|
|
742
|
+
contentTypes: {
|
|
743
|
+
id: string;
|
|
744
|
+
properties: string[];
|
|
745
|
+
}[];
|
|
746
|
+
objectType: string;
|
|
747
|
+
field: string;
|
|
748
|
+
recordIds?: string[] | undefined;
|
|
749
|
+
}>, "many">;
|
|
750
|
+
/** Picks that named something outside that step's candidates. */
|
|
751
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
752
|
+
}, "strict", z.ZodTypeAny, {
|
|
753
|
+
anchor: {
|
|
754
|
+
contentTypes: {
|
|
755
|
+
id: string;
|
|
756
|
+
properties: string[];
|
|
757
|
+
}[];
|
|
758
|
+
objectType: string;
|
|
759
|
+
recordIds: string[];
|
|
760
|
+
};
|
|
761
|
+
intent: string;
|
|
762
|
+
associations: {
|
|
763
|
+
contentTypes: {
|
|
764
|
+
id: string;
|
|
765
|
+
properties: string[];
|
|
766
|
+
}[];
|
|
767
|
+
objectType: string;
|
|
768
|
+
field: string;
|
|
769
|
+
recordIds?: string[] | undefined;
|
|
770
|
+
}[];
|
|
771
|
+
warnings?: string[] | undefined;
|
|
772
|
+
}, {
|
|
773
|
+
anchor: {
|
|
774
|
+
contentTypes: {
|
|
775
|
+
id: string;
|
|
776
|
+
properties: string[];
|
|
777
|
+
}[];
|
|
778
|
+
objectType: string;
|
|
779
|
+
recordIds: string[];
|
|
780
|
+
};
|
|
781
|
+
intent: string;
|
|
782
|
+
associations: {
|
|
783
|
+
contentTypes: {
|
|
784
|
+
id: string;
|
|
785
|
+
properties: string[];
|
|
786
|
+
}[];
|
|
787
|
+
objectType: string;
|
|
788
|
+
field: string;
|
|
789
|
+
recordIds?: string[] | undefined;
|
|
790
|
+
}[];
|
|
791
|
+
warnings?: string[] | undefined;
|
|
792
|
+
}>;
|
|
793
|
+
export type ScopeSelection = z.infer<typeof ScopeSelectionSchema>;
|
|
794
|
+
/** Intent scope returns the selection, not the stored records. */
|
|
795
|
+
export declare const IntentScopeResponseSchema: z.ZodObject<{
|
|
796
|
+
intent: z.ZodString;
|
|
797
|
+
anchor: z.ZodObject<{
|
|
798
|
+
objectType: z.ZodString;
|
|
799
|
+
recordIds: z.ZodArray<z.ZodString, "many">;
|
|
800
|
+
contentTypes: z.ZodArray<z.ZodObject<{
|
|
801
|
+
id: z.ZodString;
|
|
802
|
+
properties: z.ZodArray<z.ZodString, "many">;
|
|
803
|
+
}, "strict", z.ZodTypeAny, {
|
|
804
|
+
id: string;
|
|
805
|
+
properties: string[];
|
|
806
|
+
}, {
|
|
807
|
+
id: string;
|
|
808
|
+
properties: string[];
|
|
809
|
+
}>, "many">;
|
|
810
|
+
}, "strict", z.ZodTypeAny, {
|
|
811
|
+
contentTypes: {
|
|
812
|
+
id: string;
|
|
813
|
+
properties: string[];
|
|
814
|
+
}[];
|
|
815
|
+
objectType: string;
|
|
816
|
+
recordIds: string[];
|
|
817
|
+
}, {
|
|
818
|
+
contentTypes: {
|
|
819
|
+
id: string;
|
|
820
|
+
properties: string[];
|
|
821
|
+
}[];
|
|
822
|
+
objectType: string;
|
|
823
|
+
recordIds: string[];
|
|
824
|
+
}>;
|
|
825
|
+
associations: z.ZodArray<z.ZodObject<{
|
|
826
|
+
field: z.ZodString;
|
|
827
|
+
objectType: z.ZodString;
|
|
828
|
+
recordIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
829
|
+
contentTypes: z.ZodArray<z.ZodObject<{
|
|
830
|
+
id: z.ZodString;
|
|
831
|
+
properties: z.ZodArray<z.ZodString, "many">;
|
|
832
|
+
}, "strict", z.ZodTypeAny, {
|
|
833
|
+
id: string;
|
|
834
|
+
properties: string[];
|
|
835
|
+
}, {
|
|
836
|
+
id: string;
|
|
837
|
+
properties: string[];
|
|
838
|
+
}>, "many">;
|
|
839
|
+
}, "strict", z.ZodTypeAny, {
|
|
840
|
+
contentTypes: {
|
|
841
|
+
id: string;
|
|
842
|
+
properties: string[];
|
|
843
|
+
}[];
|
|
844
|
+
objectType: string;
|
|
845
|
+
field: string;
|
|
846
|
+
recordIds?: string[] | undefined;
|
|
847
|
+
}, {
|
|
848
|
+
contentTypes: {
|
|
849
|
+
id: string;
|
|
850
|
+
properties: string[];
|
|
851
|
+
}[];
|
|
852
|
+
objectType: string;
|
|
853
|
+
field: string;
|
|
854
|
+
recordIds?: string[] | undefined;
|
|
855
|
+
}>, "many">;
|
|
856
|
+
/** Picks that named something outside that step's candidates. */
|
|
857
|
+
warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
858
|
+
}, "strict", z.ZodTypeAny, {
|
|
859
|
+
anchor: {
|
|
860
|
+
contentTypes: {
|
|
861
|
+
id: string;
|
|
862
|
+
properties: string[];
|
|
863
|
+
}[];
|
|
864
|
+
objectType: string;
|
|
865
|
+
recordIds: string[];
|
|
866
|
+
};
|
|
867
|
+
intent: string;
|
|
868
|
+
associations: {
|
|
869
|
+
contentTypes: {
|
|
870
|
+
id: string;
|
|
871
|
+
properties: string[];
|
|
872
|
+
}[];
|
|
873
|
+
objectType: string;
|
|
874
|
+
field: string;
|
|
875
|
+
recordIds?: string[] | undefined;
|
|
876
|
+
}[];
|
|
877
|
+
warnings?: string[] | undefined;
|
|
878
|
+
}, {
|
|
879
|
+
anchor: {
|
|
880
|
+
contentTypes: {
|
|
881
|
+
id: string;
|
|
882
|
+
properties: string[];
|
|
883
|
+
}[];
|
|
884
|
+
objectType: string;
|
|
885
|
+
recordIds: string[];
|
|
886
|
+
};
|
|
887
|
+
intent: string;
|
|
888
|
+
associations: {
|
|
889
|
+
contentTypes: {
|
|
890
|
+
id: string;
|
|
891
|
+
properties: string[];
|
|
892
|
+
}[];
|
|
893
|
+
objectType: string;
|
|
894
|
+
field: string;
|
|
895
|
+
recordIds?: string[] | undefined;
|
|
896
|
+
}[];
|
|
897
|
+
warnings?: string[] | undefined;
|
|
898
|
+
}>;
|
|
899
|
+
export type IntentScopeResponse = ScopeSelection;
|
|
530
900
|
export declare function clampBudgets(requested: Partial<ScoperBudgets> | undefined, hostCaps?: ScoperBudgets): ScoperBudgets;
|
|
531
901
|
//# sourceMappingURL=request.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../src/schemas/request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,+EAA+E;AAC/E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;EAO9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,sBAAsB,EAAE,aAA6C,CAAC;AAEnF;;;GAGG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYxC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO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