@inf-monkeys-tech/monkeys 1.1.68 → 1.1.70
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/lib/contracts/bento-block.d.ts +350 -9
- package/lib/contracts/bento-block.d.ts.map +1 -1
- package/lib/contracts/bento-block.js +117 -1
- package/lib/contracts/bento-block.js.map +1 -1
- package/lib/contracts/declarative-control-http.d.ts +2036 -435
- package/lib/contracts/declarative-control-http.d.ts.map +1 -1
- package/lib/contracts/declarative-control.d.ts +224 -54
- package/lib/contracts/declarative-control.d.ts.map +1 -1
- package/lib/contracts/declarative-document-import.d.ts +295 -20
- package/lib/contracts/declarative-document-import.d.ts.map +1 -1
- package/lib/contracts/declarative-publication-job.d.ts +296 -80
- package/lib/contracts/declarative-publication-job.d.ts.map +1 -1
- package/lib/contracts/menu.d.ts +7 -7
- package/lib/contracts/page-expression.d.ts +6 -6
- package/lib/contracts/page.d.ts +8 -8
- package/lib/contracts/render.d.ts +115 -49
- package/lib/contracts/render.d.ts.map +1 -1
- package/lib/contracts/render.js +14 -9
- package/lib/contracts/render.js.map +1 -1
- package/lib/contracts/semantic.d.ts +2 -2
- package/lib/contracts/tenant.d.ts +11 -11
- package/lib/contracts/unified-view.d.ts +57 -2
- package/lib/contracts/unified-view.d.ts.map +1 -1
- package/lib/contracts/workflow-definition.d.ts +1 -1
- package/lib/esm/{chunk-THLZL353.mjs → chunk-6YMBQGEH.mjs} +2 -2
- package/lib/esm/{chunk-GN3YEDS2.mjs → chunk-DKJLFQED.mjs} +2 -2
- package/lib/esm/{chunk-26ZNN7FU.mjs → chunk-DNAWFM27.mjs} +5 -4
- package/lib/esm/{chunk-26ZNN7FU.mjs.map → chunk-DNAWFM27.mjs.map} +1 -1
- package/lib/esm/{chunk-5LZVSAPW.mjs → chunk-H5Z4GWPV.mjs} +967 -857
- package/lib/esm/chunk-H5Z4GWPV.mjs.map +1 -0
- package/lib/esm/contracts/index.mjs +26 -2
- package/lib/esm/index.mjs +28 -4
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +3 -3
- package/lib/esm/schemas/index.mjs +2 -2
- package/lib/json-schema/bento-node.schema.json +488 -37
- package/lib/json-schema/overlay-node.schema.json +199 -0
- package/lib/json-schema/page-runtime-bundle.schema.json +351 -0
- package/lib/json-schema/page.schema.json +348 -0
- package/lib/json-schema/render-node.schema.json +199 -0
- package/lib/json-schema/render-tree.schema.json +348 -0
- package/lib/json-schema/view-ontology-record.schema.json +600 -0
- package/lib/runtime/bento-render-tree.d.ts.map +1 -1
- package/lib/runtime/bento-render-tree.js +5 -1
- package/lib/runtime/bento-render-tree.js.map +1 -1
- package/lib/runtime/native-page-composition.d.ts +1 -1
- package/lib/runtime/runtime-definition-wire.d.ts +148 -40
- package/lib/runtime/runtime-definition-wire.d.ts.map +1 -1
- package/lib/schemas/index.d.ts +204 -37
- package/lib/schemas/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/lib/esm/chunk-5LZVSAPW.mjs.map +0 -1
- /package/lib/esm/{chunk-THLZL353.mjs.map → chunk-6YMBQGEH.mjs.map} +0 -0
- /package/lib/esm/{chunk-GN3YEDS2.mjs.map → chunk-DKJLFQED.mjs.map} +0 -0
|
@@ -6689,21 +6689,196 @@ var OutputRecordSchema = z3.object({
|
|
|
6689
6689
|
createdAt: IsoDateTimeSchema
|
|
6690
6690
|
}).strict();
|
|
6691
6691
|
|
|
6692
|
-
// src/contracts/
|
|
6692
|
+
// src/contracts/page-expression.ts
|
|
6693
6693
|
import { z as z4 } from "zod";
|
|
6694
|
+
var PageMemberSchema = z4.string().min(1).max(256).refine(
|
|
6695
|
+
(value) => !["__proto__", "prototype", "constructor"].includes(value),
|
|
6696
|
+
"Unsafe Page member."
|
|
6697
|
+
);
|
|
6698
|
+
var PageValuePathSchema = z4.array(PageMemberSchema).max(16);
|
|
6699
|
+
var PageExpressionRootSchema = z4.enum(["state", "model", "bindings", "queries", "scope", "intent", "result", "actions", "parameters"]);
|
|
6700
|
+
var PageOperatorSchema = z4.enum([
|
|
6701
|
+
"add",
|
|
6702
|
+
"subtract",
|
|
6703
|
+
"multiply",
|
|
6704
|
+
"divide",
|
|
6705
|
+
"min",
|
|
6706
|
+
"max",
|
|
6707
|
+
"round",
|
|
6708
|
+
"equals",
|
|
6709
|
+
"not-equals",
|
|
6710
|
+
"less-than",
|
|
6711
|
+
"less-or-equal",
|
|
6712
|
+
"greater-than",
|
|
6713
|
+
"greater-or-equal",
|
|
6714
|
+
"and",
|
|
6715
|
+
"or",
|
|
6716
|
+
"not",
|
|
6717
|
+
"coalesce",
|
|
6718
|
+
"concat",
|
|
6719
|
+
"string",
|
|
6720
|
+
"number",
|
|
6721
|
+
"length",
|
|
6722
|
+
"includes",
|
|
6723
|
+
"get",
|
|
6724
|
+
"set-path",
|
|
6725
|
+
"merge",
|
|
6726
|
+
"entries",
|
|
6727
|
+
"from-entries",
|
|
6728
|
+
"array-concat",
|
|
6729
|
+
"slice",
|
|
6730
|
+
"trim",
|
|
6731
|
+
"fixed",
|
|
6732
|
+
"number-format",
|
|
6733
|
+
"encode-uri-component"
|
|
6734
|
+
]);
|
|
6735
|
+
var RecursivePageExpressionSchema = z4.lazy(() => z4.discriminatedUnion("kind", [
|
|
6736
|
+
z4.object({ kind: z4.literal("literal"), value: JsonValueSchema }).strict(),
|
|
6737
|
+
z4.object({ kind: z4.literal("read"), root: PageExpressionRootSchema, path: PageValuePathSchema }).strict(),
|
|
6738
|
+
z4.object({ kind: z4.literal("operator"), operator: PageOperatorSchema, arguments: z4.array(RecursivePageExpressionSchema).min(1).max(32) }).strict(),
|
|
6739
|
+
z4.object({ kind: z4.literal("conditional"), condition: RecursivePageExpressionSchema, then: RecursivePageExpressionSchema, else: RecursivePageExpressionSchema }).strict(),
|
|
6740
|
+
z4.object({ kind: z4.literal("object"), fields: z4.record(PageMemberSchema, RecursivePageExpressionSchema) }).strict(),
|
|
6741
|
+
z4.object({ kind: z4.literal("array"), items: z4.array(RecursivePageExpressionSchema).max(1e3) }).strict(),
|
|
6742
|
+
...["map", "filter", "sum"].map((kind) => z4.object({ kind: z4.literal(kind), source: RecursivePageExpressionSchema, value: RecursivePageExpressionSchema }).strict())
|
|
6743
|
+
]));
|
|
6744
|
+
var PAGE_EXPRESSION_LIMITS = Object.freeze({ depth: 32, nodes: 4096, operations: 2e4, collection: 1e3, bytes: 1048576 });
|
|
6745
|
+
var PAGE_EXPRESSION_VALUE_LIMITS = Object.freeze({ depth: 32, nodes: 262144, collection: 1e3, bytes: 16777216 });
|
|
6746
|
+
var assertValueBudget = (value, limits) => {
|
|
6747
|
+
if (value === null || typeof value !== "object") {
|
|
6748
|
+
if (typeof value === "string" && value.length * 2 > limits.bytes) throw new Error("PAGE_EXPRESSION_BUDGET");
|
|
6749
|
+
return;
|
|
6750
|
+
}
|
|
6751
|
+
const queue = [{ value, depth: 0 }];
|
|
6752
|
+
let nodes = 0;
|
|
6753
|
+
let bytes = 0;
|
|
6754
|
+
while (queue.length) {
|
|
6755
|
+
const item = queue.pop();
|
|
6756
|
+
if (++nodes > limits.nodes || item.depth > limits.depth) throw new Error("PAGE_EXPRESSION_BUDGET");
|
|
6757
|
+
if (limits === PAGE_EXPRESSION_VALUE_LIMITS && Array.isArray(item.value) && item.value.length > limits.collection) throw new Error("PAGE_EXPRESSION_BUDGET");
|
|
6758
|
+
if (typeof item.value === "string") bytes += item.value.length * 2;
|
|
6759
|
+
if (item.value && typeof item.value === "object") {
|
|
6760
|
+
for (const [key, child] of Object.entries(item.value)) {
|
|
6761
|
+
bytes += key.length * 2;
|
|
6762
|
+
if (["__proto__", "prototype", "constructor"].includes(key)) throw new Error("PAGE_EXPRESSION_UNSAFE_PATH");
|
|
6763
|
+
if (queue.length >= limits.nodes) throw new Error("PAGE_EXPRESSION_BUDGET");
|
|
6764
|
+
queue.push({ value: child, depth: item.depth + 1 });
|
|
6765
|
+
}
|
|
6766
|
+
}
|
|
6767
|
+
if (bytes > limits.bytes) throw new Error("PAGE_EXPRESSION_BUDGET");
|
|
6768
|
+
}
|
|
6769
|
+
};
|
|
6770
|
+
var assertPageValueBudget = (value) => assertValueBudget(value, PAGE_EXPRESSION_LIMITS);
|
|
6771
|
+
var assertPageExpressionValueBudget = (value) => assertValueBudget(value, PAGE_EXPRESSION_VALUE_LIMITS);
|
|
6772
|
+
var PageExpressionSchema = z4.unknown().superRefine((value, context) => {
|
|
6773
|
+
try {
|
|
6774
|
+
assertPageValueBudget(value);
|
|
6775
|
+
} catch (error) {
|
|
6776
|
+
context.addIssue({ code: "custom", message: error instanceof Error ? error.message : "PAGE_EXPRESSION_BUDGET" });
|
|
6777
|
+
}
|
|
6778
|
+
}).pipe(RecursivePageExpressionSchema);
|
|
6779
|
+
var PagePropertyBindingSchema = z4.object({
|
|
6780
|
+
targetPath: PageValuePathSchema.min(1),
|
|
6781
|
+
expression: PageExpressionSchema,
|
|
6782
|
+
valueType: z4.enum(["string", "number", "boolean", "object", "array", "null"]).optional()
|
|
6783
|
+
}).strict();
|
|
6784
|
+
var visitPageExpression = (expression, visit) => {
|
|
6785
|
+
visit(expression);
|
|
6786
|
+
switch (expression.kind) {
|
|
6787
|
+
case "operator":
|
|
6788
|
+
expression.arguments.forEach((node) => visitPageExpression(node, visit));
|
|
6789
|
+
break;
|
|
6790
|
+
case "conditional":
|
|
6791
|
+
[expression.condition, expression.then, expression.else].forEach((node) => visitPageExpression(node, visit));
|
|
6792
|
+
break;
|
|
6793
|
+
case "object":
|
|
6794
|
+
Object.values(expression.fields).forEach((node) => visitPageExpression(node, visit));
|
|
6795
|
+
break;
|
|
6796
|
+
case "array":
|
|
6797
|
+
expression.items.forEach((node) => visitPageExpression(node, visit));
|
|
6798
|
+
break;
|
|
6799
|
+
case "map":
|
|
6800
|
+
case "filter":
|
|
6801
|
+
case "sum":
|
|
6802
|
+
visitPageExpression(expression.source, visit);
|
|
6803
|
+
visitPageExpression(expression.value, visit);
|
|
6804
|
+
break;
|
|
6805
|
+
}
|
|
6806
|
+
};
|
|
6807
|
+
var collectPageExpressionReads = (expression) => {
|
|
6808
|
+
const reads = [];
|
|
6809
|
+
visitPageExpression(expression, (node) => {
|
|
6810
|
+
if (node.kind === "read") reads.push(node);
|
|
6811
|
+
});
|
|
6812
|
+
return reads;
|
|
6813
|
+
};
|
|
6814
|
+
var collectExternalPageExpressionReads = (expression) => {
|
|
6815
|
+
const reads = [];
|
|
6816
|
+
const visit = (node, depth) => {
|
|
6817
|
+
if (node.kind === "read") {
|
|
6818
|
+
let remaining = depth;
|
|
6819
|
+
let index = 0;
|
|
6820
|
+
while (remaining > 0 && node.path[index] === "parent") {
|
|
6821
|
+
remaining -= 1;
|
|
6822
|
+
index += 1;
|
|
6823
|
+
}
|
|
6824
|
+
const local = node.root === "scope" && remaining > 0 && ["item", "index"].includes(node.path[index]);
|
|
6825
|
+
if (!local) reads.push(node);
|
|
6826
|
+
return;
|
|
6827
|
+
}
|
|
6828
|
+
switch (node.kind) {
|
|
6829
|
+
case "operator":
|
|
6830
|
+
node.arguments.forEach((child) => visit(child, depth));
|
|
6831
|
+
break;
|
|
6832
|
+
case "conditional":
|
|
6833
|
+
[node.condition, node.then, node.else].forEach((child) => visit(child, depth));
|
|
6834
|
+
break;
|
|
6835
|
+
case "object":
|
|
6836
|
+
Object.values(node.fields).forEach((child) => visit(child, depth));
|
|
6837
|
+
break;
|
|
6838
|
+
case "array":
|
|
6839
|
+
node.items.forEach((child) => visit(child, depth));
|
|
6840
|
+
break;
|
|
6841
|
+
case "map":
|
|
6842
|
+
case "filter":
|
|
6843
|
+
case "sum":
|
|
6844
|
+
visit(node.source, depth);
|
|
6845
|
+
visit(node.value, depth + 1);
|
|
6846
|
+
break;
|
|
6847
|
+
}
|
|
6848
|
+
};
|
|
6849
|
+
visit(expression, 0);
|
|
6850
|
+
return reads;
|
|
6851
|
+
};
|
|
6852
|
+
|
|
6853
|
+
// src/contracts/bento-block.ts
|
|
6854
|
+
import { z as z5 } from "zod";
|
|
6694
6855
|
var BENTO_GRID_COLUMNS = 24;
|
|
6695
6856
|
var BENTO_GRID_MIN_W = 2;
|
|
6696
6857
|
var BENTO_GRID_MIN_H = 2;
|
|
6697
6858
|
var BENTO_GRID_MAX_ROWS = 200;
|
|
6698
|
-
var
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6859
|
+
var BentoDynamicLayoutSchema = z5.object({
|
|
6860
|
+
visibleWhen: PageExpressionSchema.optional(),
|
|
6861
|
+
collapsed: PageExpressionSchema.optional(),
|
|
6862
|
+
columns: PageExpressionSchema.optional(),
|
|
6863
|
+
gridTemplateColumns: PageExpressionSchema.optional(),
|
|
6864
|
+
flex: PageExpressionSchema.optional(),
|
|
6865
|
+
bentoSurface: PageExpressionSchema.optional()
|
|
6866
|
+
}).strict();
|
|
6867
|
+
var ViewVisibilityScopeSchema = z5.enum([
|
|
6868
|
+
"current",
|
|
6869
|
+
"currentAndShared",
|
|
6870
|
+
"explicitShares"
|
|
6871
|
+
]);
|
|
6872
|
+
var ViewShareDirectionSchema = z5.enum(["sent", "received"]);
|
|
6873
|
+
var ViewSqlWhereSchema = z5.lazy(
|
|
6874
|
+
() => z5.discriminatedUnion("op", [
|
|
6875
|
+
z5.object({
|
|
6876
|
+
op: z5.enum(["and", "or", "not"]),
|
|
6877
|
+
filters: z5.array(ViewSqlWhereSchema).min(1).max(64)
|
|
6703
6878
|
}).strict(),
|
|
6704
|
-
|
|
6705
|
-
op:
|
|
6706
|
-
field:
|
|
6879
|
+
z5.object({
|
|
6880
|
+
op: z5.literal("field"),
|
|
6881
|
+
field: z5.enum([
|
|
6707
6882
|
"id",
|
|
6708
6883
|
"name",
|
|
6709
6884
|
"status",
|
|
@@ -6712,26 +6887,26 @@ var ViewSqlWhereSchema = z4.lazy(
|
|
|
6712
6887
|
"ontologyId",
|
|
6713
6888
|
"teamId"
|
|
6714
6889
|
]),
|
|
6715
|
-
cmp:
|
|
6716
|
-
value:
|
|
6717
|
-
|
|
6718
|
-
|
|
6890
|
+
cmp: z5.enum(["eq", "in", "contains", "not_contains"]).optional(),
|
|
6891
|
+
value: z5.union([
|
|
6892
|
+
z5.string().trim().min(1),
|
|
6893
|
+
z5.array(z5.string().trim().min(1)).min(1).max(500)
|
|
6719
6894
|
])
|
|
6720
6895
|
}).strict(),
|
|
6721
|
-
|
|
6722
|
-
op:
|
|
6723
|
-
allOf:
|
|
6896
|
+
z5.object({
|
|
6897
|
+
op: z5.literal("tagGroup"),
|
|
6898
|
+
allOf: z5.array(ContractIdentifierSchema).min(1).max(32)
|
|
6724
6899
|
}).strict(),
|
|
6725
|
-
|
|
6726
|
-
op:
|
|
6727
|
-
allOf:
|
|
6728
|
-
anyOf:
|
|
6729
|
-
noneOf:
|
|
6900
|
+
z5.object({
|
|
6901
|
+
op: z5.literal("tags"),
|
|
6902
|
+
allOf: z5.array(ContractIdentifierSchema).max(64).optional(),
|
|
6903
|
+
anyOf: z5.array(z5.array(ContractIdentifierSchema).min(1).max(32)).max(32).optional(),
|
|
6904
|
+
noneOf: z5.array(ContractIdentifierSchema).max(64).optional()
|
|
6730
6905
|
}).strict(),
|
|
6731
|
-
|
|
6732
|
-
op:
|
|
6906
|
+
z5.object({
|
|
6907
|
+
op: z5.literal("feature"),
|
|
6733
6908
|
fieldKey: ContractIdentifierSchema,
|
|
6734
|
-
cmp:
|
|
6909
|
+
cmp: z5.enum([
|
|
6735
6910
|
"eq",
|
|
6736
6911
|
"neq",
|
|
6737
6912
|
"in",
|
|
@@ -6746,21 +6921,21 @@ var ViewSqlWhereSchema = z4.lazy(
|
|
|
6746
6921
|
]).optional(),
|
|
6747
6922
|
value: JsonValueSchema.optional()
|
|
6748
6923
|
}).strict(),
|
|
6749
|
-
|
|
6750
|
-
op:
|
|
6924
|
+
z5.object({
|
|
6925
|
+
op: z5.literal("featureRelation"),
|
|
6751
6926
|
fieldKey: ContractIdentifierSchema,
|
|
6752
|
-
cmp:
|
|
6927
|
+
cmp: z5.enum(["contains_any", "contains_all", "is_empty"]).optional(),
|
|
6753
6928
|
targetOntologyId: ContractIdentifierSchema.optional(),
|
|
6754
|
-
hops:
|
|
6755
|
-
value:
|
|
6756
|
-
|
|
6929
|
+
hops: z5.number().int().min(1).max(6).optional(),
|
|
6930
|
+
value: z5.array(
|
|
6931
|
+
z5.object({
|
|
6757
6932
|
ontologyId: ContractIdentifierSchema,
|
|
6758
6933
|
assetId: ContractIdentifierSchema
|
|
6759
6934
|
}).strict()
|
|
6760
6935
|
).max(200).optional()
|
|
6761
6936
|
}).strict(),
|
|
6762
|
-
|
|
6763
|
-
op:
|
|
6937
|
+
z5.object({
|
|
6938
|
+
op: z5.literal("relation"),
|
|
6764
6939
|
relationKind: ContractIdentifierSchema,
|
|
6765
6940
|
objectKind: ContractIdentifierSchema,
|
|
6766
6941
|
objectId: ContractIdentifierSchema
|
|
@@ -6768,22 +6943,22 @@ var ViewSqlWhereSchema = z4.lazy(
|
|
|
6768
6943
|
])
|
|
6769
6944
|
);
|
|
6770
6945
|
var ViewSqlFilterNodeSchema = ViewSqlWhereSchema;
|
|
6771
|
-
var ViewSqlOrderBySchema =
|
|
6946
|
+
var ViewSqlOrderBySchema = z5.object({
|
|
6772
6947
|
field: ContractIdentifierSchema,
|
|
6773
|
-
kind:
|
|
6774
|
-
direction:
|
|
6775
|
-
nulls:
|
|
6776
|
-
}).strict();
|
|
6777
|
-
var ViewSqlSelectProjectionSchema =
|
|
6778
|
-
baseColumns:
|
|
6779
|
-
propertyColumns:
|
|
6780
|
-
featureColumns:
|
|
6781
|
-
tagGroupColumns:
|
|
6782
|
-
columnOrder:
|
|
6783
|
-
}).strict();
|
|
6784
|
-
var ViewSqlAggregateMetricSchema =
|
|
6948
|
+
kind: z5.enum(["builtin", "feature"]).default("builtin"),
|
|
6949
|
+
direction: z5.enum(["asc", "desc"]).default("desc"),
|
|
6950
|
+
nulls: z5.enum(["first", "last"]).optional()
|
|
6951
|
+
}).strict();
|
|
6952
|
+
var ViewSqlSelectProjectionSchema = z5.object({
|
|
6953
|
+
baseColumns: z5.array(ContractIdentifierSchema).max(64).optional(),
|
|
6954
|
+
propertyColumns: z5.array(ContractIdentifierSchema).max(128).optional(),
|
|
6955
|
+
featureColumns: z5.array(ContractIdentifierSchema).max(256).optional(),
|
|
6956
|
+
tagGroupColumns: z5.array(ContractIdentifierSchema).max(128).optional(),
|
|
6957
|
+
columnOrder: z5.array(ContractIdentifierSchema).max(512).optional()
|
|
6958
|
+
}).strict();
|
|
6959
|
+
var ViewSqlAggregateMetricSchema = z5.object({
|
|
6785
6960
|
alias: ContractIdentifierSchema,
|
|
6786
|
-
fn:
|
|
6961
|
+
fn: z5.enum([
|
|
6787
6962
|
"count",
|
|
6788
6963
|
"sum",
|
|
6789
6964
|
"avg",
|
|
@@ -6798,61 +6973,61 @@ var ViewSqlAggregateMetricSchema = z4.object({
|
|
|
6798
6973
|
"last_by"
|
|
6799
6974
|
]),
|
|
6800
6975
|
fieldKey: ContractIdentifierSchema.optional(),
|
|
6801
|
-
numeric:
|
|
6802
|
-
percentile:
|
|
6803
|
-
trimTopPct:
|
|
6976
|
+
numeric: z5.boolean().optional(),
|
|
6977
|
+
percentile: z5.number().finite().min(0).max(100).optional(),
|
|
6978
|
+
trimTopPct: z5.number().finite().min(0).max(100).optional(),
|
|
6804
6979
|
orderColumnId: ContractIdentifierSchema.optional(),
|
|
6805
6980
|
filter: ViewSqlFilterNodeSchema.optional()
|
|
6806
6981
|
}).strict();
|
|
6807
|
-
var ViewSqlAggregateTimeBucketSchema =
|
|
6982
|
+
var ViewSqlAggregateTimeBucketSchema = z5.object({
|
|
6808
6983
|
column: ContractIdentifierSchema.optional(),
|
|
6809
|
-
unit:
|
|
6810
|
-
timeZone:
|
|
6811
|
-
fillGaps:
|
|
6984
|
+
unit: z5.enum(["hour", "day", "week", "month", "quarter", "year"]),
|
|
6985
|
+
timeZone: z5.string().trim().min(1).max(128).optional(),
|
|
6986
|
+
fillGaps: z5.boolean().optional()
|
|
6812
6987
|
}).strict();
|
|
6813
|
-
var ViewSqlAggregateJoinSchema =
|
|
6988
|
+
var ViewSqlAggregateJoinSchema = z5.object({
|
|
6814
6989
|
alias: ContractIdentifierSchema,
|
|
6815
6990
|
ontologyId: ContractIdentifierSchema,
|
|
6816
6991
|
assetType: ContractIdentifierSchema.optional(),
|
|
6817
|
-
joinType:
|
|
6818
|
-
viaRelation:
|
|
6992
|
+
joinType: z5.enum(["inner", "left"]).optional(),
|
|
6993
|
+
viaRelation: z5.object({
|
|
6819
6994
|
columnId: ContractIdentifierSchema,
|
|
6820
|
-
direction:
|
|
6995
|
+
direction: z5.enum(["outgoing", "incoming"]).optional()
|
|
6821
6996
|
}).strict().optional(),
|
|
6822
|
-
onColumn:
|
|
6997
|
+
onColumn: z5.object({
|
|
6823
6998
|
localColumnId: ContractIdentifierSchema,
|
|
6824
6999
|
foreignColumnId: ContractIdentifierSchema.optional(),
|
|
6825
|
-
foreignAssetId:
|
|
7000
|
+
foreignAssetId: z5.boolean().optional()
|
|
6826
7001
|
}).strict().optional()
|
|
6827
7002
|
}).strict();
|
|
6828
|
-
var ViewSqlAggregateHierarchyScopeSchema =
|
|
7003
|
+
var ViewSqlAggregateHierarchyScopeSchema = z5.object({
|
|
6829
7004
|
targetAlias: ContractIdentifierSchema.optional(),
|
|
6830
7005
|
localColumnId: ContractIdentifierSchema.optional(),
|
|
6831
7006
|
ontologyId: ContractIdentifierSchema.optional(),
|
|
6832
7007
|
relationColumnId: ContractIdentifierSchema,
|
|
6833
|
-
direction:
|
|
6834
|
-
seedIds:
|
|
6835
|
-
maxDepth:
|
|
6836
|
-
includeSelf:
|
|
7008
|
+
direction: z5.enum(["incoming", "outgoing"]).optional(),
|
|
7009
|
+
seedIds: z5.array(ContractIdentifierSchema).max(500),
|
|
7010
|
+
maxDepth: z5.number().int().min(0).max(32).optional(),
|
|
7011
|
+
includeSelf: z5.boolean().optional()
|
|
6837
7012
|
}).strict();
|
|
6838
|
-
var ViewSqlAggregateUnwindSchema =
|
|
7013
|
+
var ViewSqlAggregateUnwindSchema = z5.object({
|
|
6839
7014
|
columnId: ContractIdentifierSchema,
|
|
6840
7015
|
alias: ContractIdentifierSchema.optional(),
|
|
6841
|
-
jsonPath:
|
|
6842
|
-
preserveEmpty:
|
|
7016
|
+
jsonPath: z5.array(ContractIdentifierSchema).max(32).optional(),
|
|
7017
|
+
preserveEmpty: z5.boolean().optional()
|
|
6843
7018
|
}).strict();
|
|
6844
|
-
var ViewSqlAggregateHavingSchema =
|
|
7019
|
+
var ViewSqlAggregateHavingSchema = z5.object({
|
|
6845
7020
|
key: ContractIdentifierSchema,
|
|
6846
|
-
op:
|
|
6847
|
-
value:
|
|
7021
|
+
op: z5.enum(["eq", "neq", "gt", "gte", "lt", "lte"]),
|
|
7022
|
+
value: z5.number().finite()
|
|
6848
7023
|
}).strict();
|
|
6849
|
-
var ViewSqlAggregatePaginationSchema =
|
|
6850
|
-
offset:
|
|
6851
|
-
limit:
|
|
6852
|
-
withGroupTotal:
|
|
7024
|
+
var ViewSqlAggregatePaginationSchema = z5.object({
|
|
7025
|
+
offset: z5.number().int().min(0).optional(),
|
|
7026
|
+
limit: z5.number().int().min(1).max(1e4).optional(),
|
|
7027
|
+
withGroupTotal: z5.boolean().optional()
|
|
6853
7028
|
}).strict();
|
|
6854
|
-
var ViewSqlGraphSpecSchema =
|
|
6855
|
-
graphKind:
|
|
7029
|
+
var ViewSqlGraphSpecSchema = z5.object({
|
|
7030
|
+
graphKind: z5.enum([
|
|
6856
7031
|
"schema",
|
|
6857
7032
|
"cooccurrence",
|
|
6858
7033
|
"bipartite-cosine",
|
|
@@ -6861,68 +7036,91 @@ var ViewSqlGraphSpecSchema = z4.object({
|
|
|
6861
7036
|
"record-clustering",
|
|
6862
7037
|
"field-tag-hub"
|
|
6863
7038
|
]),
|
|
6864
|
-
maxHops:
|
|
7039
|
+
maxHops: z5.number().int().min(1).max(6).default(2),
|
|
6865
7040
|
nodeLabelField: ContractIdentifierSchema.optional(),
|
|
6866
|
-
edgeRelationFields:
|
|
7041
|
+
edgeRelationFields: z5.array(ContractIdentifierSchema).max(32).optional()
|
|
6867
7042
|
}).strict();
|
|
6868
|
-
var ViewSqlCachePolicySchema =
|
|
6869
|
-
mode:
|
|
6870
|
-
ttlSeconds:
|
|
7043
|
+
var ViewSqlCachePolicySchema = z5.object({
|
|
7044
|
+
mode: z5.enum(["realtime", "cached", "stale-while-revalidate", "materialized"]).default("realtime"),
|
|
7045
|
+
ttlSeconds: z5.number().int().min(1).max(86400).optional()
|
|
6871
7046
|
}).strict();
|
|
6872
|
-
var ViewSqlFromSourceSchema =
|
|
6873
|
-
source:
|
|
7047
|
+
var ViewSqlFromSourceSchema = z5.object({
|
|
7048
|
+
source: z5.enum(["ontology", "workflow-outputs", "telemetry"]).default("ontology"),
|
|
6874
7049
|
ontologyId: ContractIdentifierSchema,
|
|
6875
7050
|
workflowId: ContractIdentifierSchema.optional(),
|
|
6876
|
-
includeSharedSlices:
|
|
7051
|
+
includeSharedSlices: z5.boolean().optional()
|
|
7052
|
+
}).strict();
|
|
7053
|
+
var ViewFacetDimensionSchema = z5.object({
|
|
7054
|
+
field: ContractIdentifierSchema,
|
|
7055
|
+
kind: z5.enum(["feature", "builtin", "tag_group", "relation_target"]).optional(),
|
|
7056
|
+
limit: z5.number().int().min(1).max(1e3).optional(),
|
|
7057
|
+
excludeSelf: z5.boolean().optional()
|
|
7058
|
+
}).strict();
|
|
7059
|
+
var ViewSqlFacetsStatementSchema = z5.object({
|
|
7060
|
+
kind: z5.literal("facets"),
|
|
7061
|
+
from: ViewSqlFromSourceSchema,
|
|
7062
|
+
where: ViewSqlWhereSchema.optional(),
|
|
7063
|
+
visibilityScope: ViewVisibilityScopeSchema.optional(),
|
|
7064
|
+
shareDirection: ViewShareDirectionSchema.optional(),
|
|
7065
|
+
shareViewId: ContractIdentifierSchema.optional(),
|
|
7066
|
+
dimensions: z5.array(ViewFacetDimensionSchema).min(1).max(32)
|
|
6877
7067
|
}).strict();
|
|
6878
|
-
var ViewSqlAggregateStatementSchema =
|
|
6879
|
-
kind:
|
|
7068
|
+
var ViewSqlAggregateStatementSchema = z5.object({
|
|
7069
|
+
kind: z5.literal("aggregate"),
|
|
6880
7070
|
from: ViewSqlFromSourceSchema,
|
|
6881
7071
|
where: ViewSqlWhereSchema.optional(),
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
7072
|
+
visibilityScope: ViewVisibilityScopeSchema.optional(),
|
|
7073
|
+
shareDirection: ViewShareDirectionSchema.optional(),
|
|
7074
|
+
shareViewId: ContractIdentifierSchema.optional(),
|
|
7075
|
+
groupBy: z5.array(ContractIdentifierSchema).max(16).optional(),
|
|
7076
|
+
metrics: z5.array(ViewSqlAggregateMetricSchema).min(1).max(32),
|
|
7077
|
+
orderBy: z5.array(ViewSqlOrderBySchema).max(16).optional(),
|
|
7078
|
+
limit: z5.number().int().min(1).max(1e3).optional(),
|
|
7079
|
+
engine: z5.enum(["auto", "canonical", "search"]).optional(),
|
|
7080
|
+
allTeams: z5.boolean().optional(),
|
|
7081
|
+
exact: z5.boolean().optional(),
|
|
7082
|
+
includeTotals: z5.boolean().optional(),
|
|
6890
7083
|
timeBucket: ViewSqlAggregateTimeBucketSchema.optional(),
|
|
6891
|
-
joins:
|
|
6892
|
-
hierarchyScopes:
|
|
7084
|
+
joins: z5.array(ViewSqlAggregateJoinSchema).max(16).optional(),
|
|
7085
|
+
hierarchyScopes: z5.array(ViewSqlAggregateHierarchyScopeSchema).max(16).optional(),
|
|
6893
7086
|
unwind: ViewSqlAggregateUnwindSchema.optional(),
|
|
6894
|
-
having:
|
|
7087
|
+
having: z5.array(ViewSqlAggregateHavingSchema).max(32).optional(),
|
|
6895
7088
|
pagination: ViewSqlAggregatePaginationSchema.optional()
|
|
6896
7089
|
}).strict();
|
|
6897
|
-
var ViewSqlStatementSchema =
|
|
6898
|
-
|
|
6899
|
-
kind:
|
|
7090
|
+
var ViewSqlStatementSchema = z5.discriminatedUnion("kind", [
|
|
7091
|
+
z5.object({
|
|
7092
|
+
kind: z5.literal("select"),
|
|
6900
7093
|
from: ViewSqlFromSourceSchema,
|
|
6901
7094
|
select: ViewSqlSelectProjectionSchema.optional(),
|
|
6902
7095
|
where: ViewSqlWhereSchema.optional(),
|
|
6903
|
-
|
|
6904
|
-
|
|
7096
|
+
visibilityScope: ViewVisibilityScopeSchema.optional(),
|
|
7097
|
+
shareDirection: ViewShareDirectionSchema.optional(),
|
|
7098
|
+
shareViewId: ContractIdentifierSchema.optional(),
|
|
7099
|
+
includeEffectiveCapabilities: z5.boolean().optional(),
|
|
7100
|
+
orderBy: z5.array(ViewSqlOrderBySchema).max(16).optional(),
|
|
7101
|
+
limit: z5.number().int().min(1).max(1e3).optional()
|
|
6905
7102
|
}).strict(),
|
|
6906
7103
|
ViewSqlAggregateStatementSchema,
|
|
6907
|
-
|
|
6908
|
-
|
|
7104
|
+
ViewSqlFacetsStatementSchema,
|
|
7105
|
+
z5.object({
|
|
7106
|
+
kind: z5.literal("graph"),
|
|
6909
7107
|
from: ViewSqlFromSourceSchema,
|
|
6910
7108
|
where: ViewSqlWhereSchema.optional(),
|
|
6911
7109
|
graph: ViewSqlGraphSpecSchema,
|
|
6912
|
-
limit:
|
|
7110
|
+
limit: z5.number().int().min(1).max(5e3).optional()
|
|
6913
7111
|
}).strict(),
|
|
6914
|
-
|
|
6915
|
-
kind:
|
|
7112
|
+
z5.object({
|
|
7113
|
+
kind: z5.enum(["insert", "update", "delete"]),
|
|
6916
7114
|
ontologyId: ContractIdentifierSchema,
|
|
6917
7115
|
values: JsonObjectSchema.optional(),
|
|
6918
7116
|
where: ViewSqlWhereSchema.optional()
|
|
6919
7117
|
}).strict(),
|
|
6920
|
-
|
|
6921
|
-
kind:
|
|
7118
|
+
z5.object({
|
|
7119
|
+
kind: z5.literal("call"),
|
|
6922
7120
|
workflowId: ContractIdentifierSchema,
|
|
6923
|
-
pageType:
|
|
7121
|
+
pageType: z5.enum(["preview", "process", "log", "chat", "api"]).default("preview"),
|
|
6924
7122
|
inputMapping: JsonObjectSchema.optional(),
|
|
6925
|
-
outputStrategy:
|
|
7123
|
+
outputStrategy: z5.enum([
|
|
6926
7124
|
"default-result-ontology",
|
|
6927
7125
|
"domain-ontology",
|
|
6928
7126
|
"ledger-only",
|
|
@@ -6930,15 +7128,15 @@ var ViewSqlStatementSchema = z4.discriminatedUnion("kind", [
|
|
|
6930
7128
|
]).optional()
|
|
6931
7129
|
}).strict()
|
|
6932
7130
|
]);
|
|
6933
|
-
var ViewDataDeclarationSchema =
|
|
6934
|
-
statements:
|
|
7131
|
+
var ViewDataDeclarationSchema = z5.object({
|
|
7132
|
+
statements: z5.record(ContractIdentifierSchema, ViewSqlStatementSchema).refine(
|
|
6935
7133
|
(items) => Object.keys(items).length >= 1 && Object.keys(items).length <= 64,
|
|
6936
7134
|
"A DataScope must declare between 1 and 64 SQL statements."
|
|
6937
7135
|
),
|
|
6938
|
-
parameters:
|
|
7136
|
+
parameters: z5.record(ContractIdentifierSchema, JsonValueSchema).optional(),
|
|
6939
7137
|
cache: ViewSqlCachePolicySchema.optional()
|
|
6940
7138
|
}).strict();
|
|
6941
|
-
var BlockTypeSchema =
|
|
7139
|
+
var BlockTypeSchema = z5.enum([
|
|
6942
7140
|
// Shell / navigation
|
|
6943
7141
|
"nav-sidebar",
|
|
6944
7142
|
"top-bar",
|
|
@@ -6982,26 +7180,26 @@ var BlockTypeSchema = z4.enum([
|
|
|
6982
7180
|
"json-editor",
|
|
6983
7181
|
"custom"
|
|
6984
7182
|
]);
|
|
6985
|
-
var BentoRelationTargetRefSchema =
|
|
6986
|
-
assetId:
|
|
7183
|
+
var BentoRelationTargetRefSchema = z5.object({
|
|
7184
|
+
assetId: z5.string().trim().min(1).max(256),
|
|
6987
7185
|
ontologyId: ContractIdentifierSchema.optional()
|
|
6988
7186
|
}).strict();
|
|
6989
|
-
var RenderBentoOntologyRelationBindingSchema =
|
|
6990
|
-
kind:
|
|
7187
|
+
var RenderBentoOntologyRelationBindingSchema = z5.object({
|
|
7188
|
+
kind: z5.literal("ontology-relation"),
|
|
6991
7189
|
sourceOntologyId: ContractIdentifierSchema,
|
|
6992
|
-
sourceRecordId:
|
|
6993
|
-
direction:
|
|
7190
|
+
sourceRecordId: z5.string().trim().min(1).max(256),
|
|
7191
|
+
direction: z5.enum(["outgoing", "incoming", "both"]).optional(),
|
|
6994
7192
|
columnId: ContractIdentifierSchema.optional(),
|
|
6995
7193
|
fieldKey: ContractIdentifierSchema.optional(),
|
|
6996
|
-
targetOntologyIds:
|
|
6997
|
-
maxHops:
|
|
6998
|
-
includeTargetFields:
|
|
6999
|
-
pageSize:
|
|
7000
|
-
pageToken:
|
|
7001
|
-
}).strict();
|
|
7002
|
-
var RenderBentoOntologyActionBindingSchema =
|
|
7003
|
-
kind:
|
|
7004
|
-
action:
|
|
7194
|
+
targetOntologyIds: z5.array(ContractIdentifierSchema).max(64).optional(),
|
|
7195
|
+
maxHops: z5.number().int().min(1).max(6).optional(),
|
|
7196
|
+
includeTargetFields: z5.union([z5.boolean(), z5.array(ContractIdentifierSchema).max(256)]).optional(),
|
|
7197
|
+
pageSize: z5.number().int().min(1).max(1e3).optional(),
|
|
7198
|
+
pageToken: z5.string().trim().min(1).max(1024).optional()
|
|
7199
|
+
}).strict();
|
|
7200
|
+
var RenderBentoOntologyActionBindingSchema = z5.object({
|
|
7201
|
+
kind: z5.literal("ontology-action"),
|
|
7202
|
+
action: z5.enum([
|
|
7005
7203
|
"insert",
|
|
7006
7204
|
"update",
|
|
7007
7205
|
"delete",
|
|
@@ -7009,45 +7207,45 @@ var RenderBentoOntologyActionBindingSchema = z4.object({
|
|
|
7009
7207
|
"workflow-call"
|
|
7010
7208
|
]),
|
|
7011
7209
|
ontologyId: ContractIdentifierSchema.optional(),
|
|
7012
|
-
recordId:
|
|
7210
|
+
recordId: z5.string().trim().min(1).max(256).optional(),
|
|
7013
7211
|
workflowId: ContractIdentifierSchema.optional(),
|
|
7014
|
-
payload:
|
|
7212
|
+
payload: z5.record(z5.string(), z5.unknown()).optional(),
|
|
7015
7213
|
columnId: ContractIdentifierSchema.optional(),
|
|
7016
|
-
mode:
|
|
7017
|
-
targets:
|
|
7018
|
-
addTargets:
|
|
7019
|
-
removeTargets:
|
|
7020
|
-
idempotencyKey:
|
|
7021
|
-
expectedRevision:
|
|
7022
|
-
|
|
7023
|
-
|
|
7214
|
+
mode: z5.enum(["replace", "patch", "set-types"]).optional(),
|
|
7215
|
+
targets: z5.array(BentoRelationTargetRefSchema).max(500).optional(),
|
|
7216
|
+
addTargets: z5.array(BentoRelationTargetRefSchema).max(500).optional(),
|
|
7217
|
+
removeTargets: z5.array(BentoRelationTargetRefSchema).max(500).optional(),
|
|
7218
|
+
idempotencyKey: z5.string().trim().min(1).max(256).optional(),
|
|
7219
|
+
expectedRevision: z5.union([
|
|
7220
|
+
z5.string().trim().min(1).max(256),
|
|
7221
|
+
z5.number().int().nonnegative()
|
|
7024
7222
|
]).optional(),
|
|
7025
|
-
invalidateOntologies:
|
|
7223
|
+
invalidateOntologies: z5.array(ContractIdentifierSchema).max(64).optional()
|
|
7026
7224
|
}).strict();
|
|
7027
|
-
var BentoActionResultSchema =
|
|
7028
|
-
ok:
|
|
7029
|
-
data:
|
|
7030
|
-
error:
|
|
7031
|
-
invalidatedOntologies:
|
|
7225
|
+
var BentoActionResultSchema = z5.object({
|
|
7226
|
+
ok: z5.boolean(),
|
|
7227
|
+
data: z5.unknown().optional(),
|
|
7228
|
+
error: z5.string().optional(),
|
|
7229
|
+
invalidatedOntologies: z5.array(ContractIdentifierSchema)
|
|
7032
7230
|
}).strict();
|
|
7033
|
-
var BlockDataSourceSchema =
|
|
7034
|
-
|
|
7035
|
-
kind:
|
|
7231
|
+
var BlockDataSourceSchema = z5.discriminatedUnion("kind", [
|
|
7232
|
+
z5.object({
|
|
7233
|
+
kind: z5.literal("statement"),
|
|
7036
7234
|
statementId: ContractIdentifierSchema
|
|
7037
7235
|
}).strict(),
|
|
7038
|
-
|
|
7039
|
-
kind:
|
|
7040
|
-
session:
|
|
7236
|
+
z5.object({
|
|
7237
|
+
kind: z5.literal("artifact.body"),
|
|
7238
|
+
session: z5.enum(["loro", "aggregate"]).default("loro"),
|
|
7041
7239
|
slice: ContractIdentifierSchema.optional()
|
|
7042
7240
|
}).strict(),
|
|
7043
|
-
|
|
7044
|
-
kind:
|
|
7241
|
+
z5.object({
|
|
7242
|
+
kind: z5.literal("record.fields"),
|
|
7045
7243
|
recordRef: ContractIdentifierSchema.default("subject")
|
|
7046
7244
|
}).strict(),
|
|
7047
7245
|
RenderBentoOntologyRelationBindingSchema,
|
|
7048
|
-
|
|
7049
|
-
kind:
|
|
7050
|
-
action:
|
|
7246
|
+
z5.object({
|
|
7247
|
+
kind: z5.literal("ontology-action"),
|
|
7248
|
+
action: z5.enum([
|
|
7051
7249
|
"insert",
|
|
7052
7250
|
"update",
|
|
7053
7251
|
"delete",
|
|
@@ -7055,34 +7253,90 @@ var BlockDataSourceSchema = z4.discriminatedUnion("kind", [
|
|
|
7055
7253
|
"workflow-call"
|
|
7056
7254
|
]),
|
|
7057
7255
|
ontologyId: ContractIdentifierSchema.optional(),
|
|
7058
|
-
recordId:
|
|
7256
|
+
recordId: z5.string().trim().min(1).max(256).optional(),
|
|
7059
7257
|
workflowId: ContractIdentifierSchema.optional(),
|
|
7060
7258
|
payload: JsonObjectSchema.optional(),
|
|
7061
7259
|
columnId: ContractIdentifierSchema.optional(),
|
|
7062
|
-
mode:
|
|
7063
|
-
targets:
|
|
7064
|
-
addTargets:
|
|
7065
|
-
removeTargets:
|
|
7066
|
-
idempotencyKey:
|
|
7067
|
-
expectedRevision:
|
|
7068
|
-
|
|
7069
|
-
|
|
7260
|
+
mode: z5.enum(["replace", "patch", "set-types"]).optional(),
|
|
7261
|
+
targets: z5.array(BentoRelationTargetRefSchema).max(500).optional(),
|
|
7262
|
+
addTargets: z5.array(BentoRelationTargetRefSchema).max(500).optional(),
|
|
7263
|
+
removeTargets: z5.array(BentoRelationTargetRefSchema).max(500).optional(),
|
|
7264
|
+
idempotencyKey: z5.string().trim().min(1).max(256).optional(),
|
|
7265
|
+
expectedRevision: z5.union([
|
|
7266
|
+
z5.string().trim().min(1).max(256),
|
|
7267
|
+
z5.number().int().nonnegative()
|
|
7070
7268
|
]).optional(),
|
|
7071
|
-
invalidateOntologies:
|
|
7269
|
+
invalidateOntologies: z5.array(ContractIdentifierSchema).max(64).optional()
|
|
7072
7270
|
}).strict(),
|
|
7073
|
-
|
|
7074
|
-
kind:
|
|
7271
|
+
z5.object({
|
|
7272
|
+
kind: z5.literal("static")
|
|
7075
7273
|
}).strict()
|
|
7076
7274
|
]);
|
|
7077
|
-
var
|
|
7275
|
+
var TableColumnGroupConfigSchema = z5.object({
|
|
7276
|
+
id: ContractIdentifierSchema,
|
|
7277
|
+
label: LocalizedTextSchema,
|
|
7278
|
+
columnIds: z5.array(ContractIdentifierSchema).max(128)
|
|
7279
|
+
}).strict();
|
|
7280
|
+
var TableBlockConfigSchema = z5.object({
|
|
7281
|
+
columnWidths: z5.record(ContractIdentifierSchema, z5.number().int().min(40).max(2e3)).optional(),
|
|
7282
|
+
columnOrder: z5.array(ContractIdentifierSchema).max(256).optional(),
|
|
7283
|
+
hiddenColumnIds: z5.array(ContractIdentifierSchema).max(256).optional(),
|
|
7284
|
+
freezeLeftCount: z5.number().int().min(0).max(16).optional(),
|
|
7285
|
+
columnGroups: z5.array(TableColumnGroupConfigSchema).max(32).optional(),
|
|
7286
|
+
rowHeight: z5.enum(["compact", "default", "comfortable"]).optional(),
|
|
7287
|
+
editable: z5.boolean().optional(),
|
|
7288
|
+
selectionMode: z5.enum(["none", "single", "multi"]).optional(),
|
|
7289
|
+
groupBy: ContractIdentifierSchema.optional(),
|
|
7290
|
+
tone: z5.enum(["default", "compact-grid", "tinted-glass"]).optional(),
|
|
7291
|
+
drilldownFieldKeys: z5.array(ContractIdentifierSchema).max(32).optional(),
|
|
7292
|
+
selectionActionIds: z5.array(ContractIdentifierSchema).max(16).optional()
|
|
7293
|
+
}).strict();
|
|
7294
|
+
var GalleryBadgeConfigSchema = z5.object({
|
|
7295
|
+
fieldKey: ContractIdentifierSchema,
|
|
7296
|
+
label: LocalizedTextSchema.optional(),
|
|
7297
|
+
tone: z5.enum(["neutral", "primary", "accent", "muted"]).optional()
|
|
7298
|
+
}).strict();
|
|
7299
|
+
var GalleryBlockConfigSchema = z5.object({
|
|
7300
|
+
aspectRatio: z5.enum(["1/1", "4/3", "3/4", "9/16", "16/9"]).optional(),
|
|
7301
|
+
badges: z5.array(GalleryBadgeConfigSchema).max(8).optional(),
|
|
7302
|
+
hoverActions: z5.array(z5.enum(["preview", "edit", "share", "delete"])).max(8).optional(),
|
|
7303
|
+
likeToggle: z5.boolean().optional(),
|
|
7304
|
+
selectionMode: z5.enum(["none", "toggle", "always"]).optional(),
|
|
7305
|
+
lightbox: z5.boolean().optional()
|
|
7306
|
+
}).strict();
|
|
7307
|
+
var FacetFieldConfigSchema = z5.object({
|
|
7308
|
+
field: ContractIdentifierSchema,
|
|
7309
|
+
kind: z5.enum(["feature", "builtin", "tag_group", "relation_target"]).optional(),
|
|
7310
|
+
label: LocalizedTextSchema.optional(),
|
|
7311
|
+
control: z5.enum(["multi-select", "single-select", "range", "date-range", "boolean"]).optional(),
|
|
7312
|
+
pinned: z5.boolean().optional(),
|
|
7313
|
+
allowCustomValue: z5.boolean().optional(),
|
|
7314
|
+
countMode: z5.enum(["exclude-self", "none"]).optional()
|
|
7315
|
+
}).strict();
|
|
7316
|
+
var FilterBarBlockConfigSchema = z5.object({
|
|
7317
|
+
facets: z5.array(FacetFieldConfigSchema).max(32),
|
|
7318
|
+
applyMode: z5.enum(["draft", "instant"]).optional(),
|
|
7319
|
+
linkedItemFilter: z5.boolean().optional(),
|
|
7320
|
+
allowMoreFields: z5.boolean().optional(),
|
|
7321
|
+
facetsStatementId: ContractIdentifierSchema.optional()
|
|
7322
|
+
}).strict();
|
|
7323
|
+
var RecordDetailBlockConfigSchema = z5.object({
|
|
7324
|
+
layout: z5.enum(["split", "drawer", "inline"]).optional(),
|
|
7325
|
+
showHistoryTab: z5.boolean().optional(),
|
|
7326
|
+
showPrevNext: z5.boolean().optional(),
|
|
7327
|
+
editable: z5.boolean().optional(),
|
|
7328
|
+
detailWidgetKey: ContractIdentifierSchema.optional(),
|
|
7329
|
+
headerActionIds: z5.array(ContractIdentifierSchema).max(8).optional()
|
|
7330
|
+
}).strict();
|
|
7331
|
+
var BlockSpecSchema = z5.object({
|
|
7078
7332
|
type: BlockTypeSchema,
|
|
7079
7333
|
customType: ContractIdentifierSchema.optional(),
|
|
7080
7334
|
title: LocalizedTextSchema.optional(),
|
|
7081
7335
|
dataSource: BlockDataSourceSchema.optional(),
|
|
7082
|
-
actionStatementIds:
|
|
7336
|
+
actionStatementIds: z5.array(ContractIdentifierSchema).max(16).optional(),
|
|
7083
7337
|
config: JsonObjectSchema.optional()
|
|
7084
7338
|
}).strict();
|
|
7085
|
-
var BentoWiringRuleSchema =
|
|
7339
|
+
var BentoWiringRuleSchema = z5.object({
|
|
7086
7340
|
sourceNodeId: ContractIdentifierSchema,
|
|
7087
7341
|
event: ContractIdentifierSchema,
|
|
7088
7342
|
targetNodeId: ContractIdentifierSchema.optional(),
|
|
@@ -7090,13 +7344,13 @@ var BentoWiringRuleSchema = z4.object({
|
|
|
7090
7344
|
action: ContractIdentifierSchema,
|
|
7091
7345
|
payloadMap: JsonObjectSchema.optional()
|
|
7092
7346
|
}).strict();
|
|
7093
|
-
var BentoGridRectSchema =
|
|
7094
|
-
x:
|
|
7095
|
-
y:
|
|
7096
|
-
w:
|
|
7097
|
-
h:
|
|
7098
|
-
minW:
|
|
7099
|
-
minH:
|
|
7347
|
+
var BentoGridRectSchema = z5.object({
|
|
7348
|
+
x: z5.number().int().min(0).max(BENTO_GRID_COLUMNS - 1),
|
|
7349
|
+
y: z5.number().int().min(0).max(BENTO_GRID_MAX_ROWS),
|
|
7350
|
+
w: z5.number().int().min(BENTO_GRID_MIN_W).max(BENTO_GRID_COLUMNS),
|
|
7351
|
+
h: z5.number().int().min(BENTO_GRID_MIN_H).max(BENTO_GRID_MAX_ROWS),
|
|
7352
|
+
minW: z5.number().int().min(BENTO_GRID_MIN_W).max(BENTO_GRID_COLUMNS).optional(),
|
|
7353
|
+
minH: z5.number().int().min(BENTO_GRID_MIN_H).max(BENTO_GRID_MAX_ROWS).optional()
|
|
7100
7354
|
}).strict().superRefine((rect, ctx) => {
|
|
7101
7355
|
if (rect.x + rect.w > BENTO_GRID_COLUMNS) {
|
|
7102
7356
|
ctx.addIssue({
|
|
@@ -7120,46 +7374,48 @@ var BentoGridRectSchema = z4.object({
|
|
|
7120
7374
|
});
|
|
7121
7375
|
}
|
|
7122
7376
|
});
|
|
7123
|
-
var BentoSplitPlacementSchema =
|
|
7124
|
-
size:
|
|
7125
|
-
minSize:
|
|
7126
|
-
maxSize:
|
|
7127
|
-
collapsible:
|
|
7128
|
-
collapsed:
|
|
7129
|
-
}).strict();
|
|
7130
|
-
var BentoTabPlacementSchema =
|
|
7377
|
+
var BentoSplitPlacementSchema = z5.object({
|
|
7378
|
+
size: z5.union([z5.number().positive(), z5.string().trim().min(1)]).optional(),
|
|
7379
|
+
minSize: z5.union([z5.number().positive(), z5.string().trim().min(1)]).optional(),
|
|
7380
|
+
maxSize: z5.union([z5.number().positive(), z5.string().trim().min(1)]).optional(),
|
|
7381
|
+
collapsible: z5.boolean().optional(),
|
|
7382
|
+
collapsed: z5.boolean().optional()
|
|
7383
|
+
}).strict();
|
|
7384
|
+
var BentoTabPlacementSchema = z5.object({
|
|
7131
7385
|
label: LocalizedTextSchema.optional(),
|
|
7132
7386
|
icon: ContractIdentifierSchema.optional()
|
|
7133
7387
|
}).strict();
|
|
7134
|
-
var BentoPlacementSchema =
|
|
7388
|
+
var BentoPlacementSchema = z5.object({
|
|
7135
7389
|
grid: BentoGridRectSchema.optional(),
|
|
7136
7390
|
split: BentoSplitPlacementSchema.optional(),
|
|
7137
7391
|
tab: BentoTabPlacementSchema.optional()
|
|
7138
7392
|
}).strict();
|
|
7139
|
-
var BentoChromeSchema =
|
|
7140
|
-
var BentoNodeSchema =
|
|
7141
|
-
() =>
|
|
7142
|
-
|
|
7393
|
+
var BentoChromeSchema = z5.enum(["panel", "plain", "none"]);
|
|
7394
|
+
var BentoNodeSchema = z5.lazy(
|
|
7395
|
+
() => z5.discriminatedUnion("kind", [
|
|
7396
|
+
z5.object({
|
|
7143
7397
|
id: ContractIdentifierSchema,
|
|
7144
|
-
kind:
|
|
7145
|
-
layout:
|
|
7146
|
-
direction:
|
|
7147
|
-
columns:
|
|
7148
|
-
rowHeight:
|
|
7149
|
-
gap:
|
|
7398
|
+
kind: z5.literal("container"),
|
|
7399
|
+
layout: z5.enum(["split", "grid", "stack", "tabs"]),
|
|
7400
|
+
direction: z5.enum(["horizontal", "vertical"]).optional(),
|
|
7401
|
+
columns: z5.literal(BENTO_GRID_COLUMNS).optional(),
|
|
7402
|
+
rowHeight: z5.number().int().min(16).max(240).optional(),
|
|
7403
|
+
gap: z5.number().int().min(0).max(64).optional(),
|
|
7150
7404
|
chrome: BentoChromeSchema.optional(),
|
|
7151
7405
|
title: LocalizedTextSchema.optional(),
|
|
7152
|
-
description:
|
|
7406
|
+
description: z5.string().max(2048).optional(),
|
|
7153
7407
|
placement: BentoPlacementSchema.optional(),
|
|
7408
|
+
dynamicLayout: BentoDynamicLayoutSchema.optional(),
|
|
7154
7409
|
data: ViewDataDeclarationSchema.optional(),
|
|
7155
|
-
wiring:
|
|
7156
|
-
children:
|
|
7410
|
+
wiring: z5.array(BentoWiringRuleSchema).max(128).optional(),
|
|
7411
|
+
children: z5.array(BentoNodeSchema).min(1).max(128)
|
|
7157
7412
|
}).strict(),
|
|
7158
|
-
|
|
7413
|
+
z5.object({
|
|
7159
7414
|
id: ContractIdentifierSchema,
|
|
7160
|
-
kind:
|
|
7415
|
+
kind: z5.literal("leaf"),
|
|
7161
7416
|
chrome: BentoChromeSchema.optional(),
|
|
7162
7417
|
placement: BentoPlacementSchema.optional(),
|
|
7418
|
+
dynamicLayout: BentoDynamicLayoutSchema.optional(),
|
|
7163
7419
|
block: BlockSpecSchema
|
|
7164
7420
|
}).strict()
|
|
7165
7421
|
])
|
|
@@ -7255,29 +7511,29 @@ function getPrimaryBlockType(root) {
|
|
|
7255
7511
|
}
|
|
7256
7512
|
|
|
7257
7513
|
// src/contracts/artifact-platform.ts
|
|
7258
|
-
import { z as
|
|
7514
|
+
import { z as z6 } from "zod";
|
|
7259
7515
|
var ArtifactKindSchema = ContractIdentifierSchema;
|
|
7260
|
-
var ArtifactStorageModeSchema =
|
|
7261
|
-
var ArtifactCrdtCodecSchema =
|
|
7262
|
-
var ArtifactSubjectSchema =
|
|
7263
|
-
|
|
7264
|
-
kind:
|
|
7516
|
+
var ArtifactStorageModeSchema = z6.enum(["aggregate", "loro-aggregate"]);
|
|
7517
|
+
var ArtifactCrdtCodecSchema = z6.enum(["none", "loro-v1"]);
|
|
7518
|
+
var ArtifactSubjectSchema = z6.discriminatedUnion("kind", [
|
|
7519
|
+
z6.object({
|
|
7520
|
+
kind: z6.literal("collection"),
|
|
7265
7521
|
ontologyId: ContractIdentifierSchema,
|
|
7266
7522
|
savedQueryId: ContractIdentifierSchema.optional()
|
|
7267
7523
|
}).strict(),
|
|
7268
|
-
|
|
7269
|
-
kind:
|
|
7524
|
+
z6.object({
|
|
7525
|
+
kind: z6.literal("record"),
|
|
7270
7526
|
ontologyId: ContractIdentifierSchema,
|
|
7271
7527
|
recordIdParam: ContractIdentifierSchema.optional()
|
|
7272
7528
|
}).strict(),
|
|
7273
|
-
|
|
7274
|
-
kind:
|
|
7529
|
+
z6.object({
|
|
7530
|
+
kind: z6.literal("artifact"),
|
|
7275
7531
|
ontologyId: ContractIdentifierSchema,
|
|
7276
7532
|
artifactKind: ArtifactKindSchema,
|
|
7277
7533
|
recordIdParam: ContractIdentifierSchema.optional()
|
|
7278
7534
|
}).strict()
|
|
7279
7535
|
]);
|
|
7280
|
-
var ArtifactViewSchema =
|
|
7536
|
+
var ArtifactViewSchema = z6.object({
|
|
7281
7537
|
viewId: ContractIdentifierSchema,
|
|
7282
7538
|
title: LocalizedTextSchema,
|
|
7283
7539
|
subject: ArtifactSubjectSchema,
|
|
@@ -7291,15 +7547,15 @@ var ArtifactViewSchema = z5.object({
|
|
|
7291
7547
|
});
|
|
7292
7548
|
}
|
|
7293
7549
|
});
|
|
7294
|
-
var ArtifactProfileSchema =
|
|
7295
|
-
contract:
|
|
7296
|
-
schemaVersion:
|
|
7550
|
+
var ArtifactProfileSchema = z6.object({
|
|
7551
|
+
contract: z6.literal("ArtifactProfile"),
|
|
7552
|
+
schemaVersion: z6.literal(1),
|
|
7297
7553
|
artifactKind: ArtifactKindSchema,
|
|
7298
7554
|
bodySchemaRef: ContractIdentifierSchema,
|
|
7299
7555
|
storageMode: ArtifactStorageModeSchema.default("loro-aggregate"),
|
|
7300
7556
|
crdtCodec: ArtifactCrdtCodecSchema.default("loro-v1"),
|
|
7301
7557
|
defaultViewId: ContractIdentifierSchema,
|
|
7302
|
-
views:
|
|
7558
|
+
views: z6.array(ArtifactViewSchema).min(1).max(32)
|
|
7303
7559
|
}).strict().superRefine((profile, ctx) => {
|
|
7304
7560
|
const viewIds = /* @__PURE__ */ new Set();
|
|
7305
7561
|
profile.views.forEach((view, index) => {
|
|
@@ -7320,100 +7576,100 @@ var ArtifactProfileSchema = z5.object({
|
|
|
7320
7576
|
});
|
|
7321
7577
|
}
|
|
7322
7578
|
});
|
|
7323
|
-
var ArtifactCollabRoomKeySchema =
|
|
7579
|
+
var ArtifactCollabRoomKeySchema = z6.object({
|
|
7324
7580
|
tenantId: ContractIdentifierSchema.optional(),
|
|
7325
7581
|
teamId: ContractIdentifierSchema,
|
|
7326
7582
|
ontologyId: ContractIdentifierSchema,
|
|
7327
7583
|
artifactKind: ArtifactKindSchema,
|
|
7328
7584
|
recordId: ContractIdentifierSchema
|
|
7329
7585
|
}).strict();
|
|
7330
|
-
var ArtifactPresenceCursorSchema =
|
|
7331
|
-
x:
|
|
7332
|
-
y:
|
|
7333
|
-
z:
|
|
7586
|
+
var ArtifactPresenceCursorSchema = z6.object({
|
|
7587
|
+
x: z6.number().finite(),
|
|
7588
|
+
y: z6.number().finite(),
|
|
7589
|
+
z: z6.number().finite().optional()
|
|
7334
7590
|
}).strict();
|
|
7335
|
-
var ArtifactPresenceStateSchema =
|
|
7591
|
+
var ArtifactPresenceStateSchema = z6.object({
|
|
7336
7592
|
peerId: ContractIdentifierSchema,
|
|
7337
7593
|
userId: ContractIdentifierSchema,
|
|
7338
|
-
displayName:
|
|
7339
|
-
avatarUrl:
|
|
7340
|
-
color:
|
|
7594
|
+
displayName: z6.string().trim().max(128).optional(),
|
|
7595
|
+
avatarUrl: z6.string().trim().max(2048).optional(),
|
|
7596
|
+
color: z6.string().trim().max(32).optional(),
|
|
7341
7597
|
activeViewId: ContractIdentifierSchema.optional(),
|
|
7342
7598
|
activeSheetId: ContractIdentifierSchema.optional(),
|
|
7343
7599
|
cursor: ArtifactPresenceCursorSchema.optional(),
|
|
7344
|
-
selectionIds:
|
|
7345
|
-
updatedAt:
|
|
7600
|
+
selectionIds: z6.array(ContractIdentifierSchema).max(200).optional(),
|
|
7601
|
+
updatedAt: z6.number().int().nonnegative()
|
|
7346
7602
|
}).strict();
|
|
7347
|
-
var ArtifactCollabClientMessageSchema =
|
|
7348
|
-
|
|
7349
|
-
type:
|
|
7603
|
+
var ArtifactCollabClientMessageSchema = z6.discriminatedUnion("type", [
|
|
7604
|
+
z6.object({
|
|
7605
|
+
type: z6.literal("join"),
|
|
7350
7606
|
roomKey: ArtifactCollabRoomKeySchema,
|
|
7351
|
-
clientVersionVectorBase64:
|
|
7607
|
+
clientVersionVectorBase64: z6.string().optional(),
|
|
7352
7608
|
presence: ArtifactPresenceStateSchema.omit({ peerId: true, updatedAt: true }).optional()
|
|
7353
7609
|
}).strict(),
|
|
7354
|
-
|
|
7355
|
-
type:
|
|
7356
|
-
updateBase64:
|
|
7357
|
-
origin:
|
|
7610
|
+
z6.object({
|
|
7611
|
+
type: z6.literal("update"),
|
|
7612
|
+
updateBase64: z6.string().min(1),
|
|
7613
|
+
origin: z6.string().trim().max(64).optional(),
|
|
7358
7614
|
requestId: ContractIdentifierSchema.optional()
|
|
7359
7615
|
}).strict(),
|
|
7360
|
-
|
|
7361
|
-
type:
|
|
7616
|
+
z6.object({
|
|
7617
|
+
type: z6.literal("awareness"),
|
|
7362
7618
|
presence: ArtifactPresenceStateSchema.omit({ peerId: true, updatedAt: true })
|
|
7363
7619
|
}).strict(),
|
|
7364
|
-
|
|
7365
|
-
type:
|
|
7620
|
+
z6.object({
|
|
7621
|
+
type: z6.literal("checkpoint"),
|
|
7366
7622
|
requestId: ContractIdentifierSchema,
|
|
7367
|
-
note:
|
|
7623
|
+
note: z6.string().trim().max(500).optional()
|
|
7368
7624
|
}).strict(),
|
|
7369
|
-
|
|
7370
|
-
type:
|
|
7371
|
-
ts:
|
|
7625
|
+
z6.object({
|
|
7626
|
+
type: z6.literal("ping"),
|
|
7627
|
+
ts: z6.number().int().nonnegative().optional()
|
|
7372
7628
|
}).strict()
|
|
7373
7629
|
]);
|
|
7374
|
-
var ArtifactCollabServerMessageSchema =
|
|
7375
|
-
|
|
7376
|
-
type:
|
|
7630
|
+
var ArtifactCollabServerMessageSchema = z6.discriminatedUnion("type", [
|
|
7631
|
+
z6.object({
|
|
7632
|
+
type: z6.literal("welcome"),
|
|
7377
7633
|
roomId: ContractIdentifierSchema,
|
|
7378
7634
|
peerId: ContractIdentifierSchema,
|
|
7379
7635
|
codec: ArtifactCrdtCodecSchema,
|
|
7380
|
-
snapshotBase64:
|
|
7381
|
-
versionVectorBase64:
|
|
7382
|
-
revision:
|
|
7383
|
-
peers:
|
|
7384
|
-
readOnly:
|
|
7636
|
+
snapshotBase64: z6.string(),
|
|
7637
|
+
versionVectorBase64: z6.string(),
|
|
7638
|
+
revision: z6.number().int().nonnegative(),
|
|
7639
|
+
peers: z6.array(ArtifactPresenceStateSchema).default([]),
|
|
7640
|
+
readOnly: z6.boolean().default(false)
|
|
7385
7641
|
}).strict(),
|
|
7386
|
-
|
|
7387
|
-
type:
|
|
7388
|
-
updateBase64:
|
|
7642
|
+
z6.object({
|
|
7643
|
+
type: z6.literal("update"),
|
|
7644
|
+
updateBase64: z6.string().min(1),
|
|
7389
7645
|
senderPeerId: ContractIdentifierSchema,
|
|
7390
|
-
origin:
|
|
7646
|
+
origin: z6.string().trim().max(64).optional()
|
|
7391
7647
|
}).strict(),
|
|
7392
|
-
|
|
7393
|
-
type:
|
|
7394
|
-
peers:
|
|
7648
|
+
z6.object({
|
|
7649
|
+
type: z6.literal("awareness"),
|
|
7650
|
+
peers: z6.array(ArtifactPresenceStateSchema)
|
|
7395
7651
|
}).strict(),
|
|
7396
|
-
|
|
7397
|
-
type:
|
|
7652
|
+
z6.object({
|
|
7653
|
+
type: z6.literal("checkpointed"),
|
|
7398
7654
|
commitId: ContractIdentifierSchema.optional(),
|
|
7399
|
-
revision:
|
|
7400
|
-
updatedTimestamp:
|
|
7655
|
+
revision: z6.number().int().nonnegative(),
|
|
7656
|
+
updatedTimestamp: z6.number().int().nonnegative(),
|
|
7401
7657
|
requestId: ContractIdentifierSchema.optional()
|
|
7402
7658
|
}).strict(),
|
|
7403
|
-
|
|
7404
|
-
type:
|
|
7659
|
+
z6.object({
|
|
7660
|
+
type: z6.literal("error"),
|
|
7405
7661
|
code: ContractIdentifierSchema,
|
|
7406
|
-
message:
|
|
7407
|
-
recoverable:
|
|
7662
|
+
message: z6.string(),
|
|
7663
|
+
recoverable: z6.boolean().default(true)
|
|
7408
7664
|
}).strict(),
|
|
7409
|
-
|
|
7410
|
-
type:
|
|
7411
|
-
ts:
|
|
7665
|
+
z6.object({
|
|
7666
|
+
type: z6.literal("pong"),
|
|
7667
|
+
ts: z6.number().int().nonnegative().optional()
|
|
7412
7668
|
}).strict()
|
|
7413
7669
|
]);
|
|
7414
7670
|
|
|
7415
7671
|
// src/contracts/file.ts
|
|
7416
|
-
import { z as
|
|
7672
|
+
import { z as z7 } from "zod";
|
|
7417
7673
|
var FILE_PURPOSES = [
|
|
7418
7674
|
"uploads",
|
|
7419
7675
|
"agent-attachments",
|
|
@@ -7468,9 +7724,9 @@ var FILE_PURPOSES = [
|
|
|
7468
7724
|
"workflow-image-overlay",
|
|
7469
7725
|
"workflow-import"
|
|
7470
7726
|
];
|
|
7471
|
-
var FilePurposeSchema =
|
|
7472
|
-
var FileStatusSchema =
|
|
7473
|
-
var FileVariantStatusSchema =
|
|
7727
|
+
var FilePurposeSchema = z7.enum(FILE_PURPOSES);
|
|
7728
|
+
var FileStatusSchema = z7.enum(["pending", "ready", "failed", "deleted"]);
|
|
7729
|
+
var FileVariantStatusSchema = z7.enum(["queued", "processing", "ready", "failed"]);
|
|
7474
7730
|
var FILE_USAGE_OWNER_TYPES = [
|
|
7475
7731
|
"file-resource",
|
|
7476
7732
|
"agent-record",
|
|
@@ -7486,14 +7742,14 @@ var FILE_USAGE_OWNER_TYPES = [
|
|
|
7486
7742
|
"model-training-media",
|
|
7487
7743
|
"plugin-run"
|
|
7488
7744
|
];
|
|
7489
|
-
var FileUsageOwnerTypeSchema =
|
|
7490
|
-
var FileUsageSchema =
|
|
7745
|
+
var FileUsageOwnerTypeSchema = z7.enum(FILE_USAGE_OWNER_TYPES);
|
|
7746
|
+
var FileUsageSchema = z7.object({
|
|
7491
7747
|
ownerType: FileUsageOwnerTypeSchema,
|
|
7492
7748
|
ownerId: ContractIdentifierSchema,
|
|
7493
7749
|
field: ContractIdentifierSchema.optional()
|
|
7494
7750
|
}).strict();
|
|
7495
|
-
var ManagedFileUriSchema =
|
|
7496
|
-
var TransferUrlSchema =
|
|
7751
|
+
var ManagedFileUriSchema = z7.string().regex(/^file:\/\/[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?:#[A-Za-z0-9_-]+)?$/);
|
|
7752
|
+
var TransferUrlSchema = z7.string().min(1).max(16384).refine((value) => {
|
|
7497
7753
|
if (/^\/(?!\/)/.test(value)) return !/[\u0000-\u0020\\]/.test(value);
|
|
7498
7754
|
try {
|
|
7499
7755
|
const url = new URL(value);
|
|
@@ -7502,21 +7758,21 @@ var TransferUrlSchema = z6.string().min(1).max(16384).refine((value) => {
|
|
|
7502
7758
|
return false;
|
|
7503
7759
|
}
|
|
7504
7760
|
}, "Expected an HTTP(S) URL or absolute same-origin path");
|
|
7505
|
-
var TransferHeadersSchema =
|
|
7506
|
-
|
|
7507
|
-
|
|
7761
|
+
var TransferHeadersSchema = z7.record(
|
|
7762
|
+
z7.string().regex(/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/),
|
|
7763
|
+
z7.string().refine((value) => !/[\u0000\r\n]/.test(value), "Invalid header value")
|
|
7508
7764
|
);
|
|
7509
|
-
var FileReadInstructionSchema =
|
|
7510
|
-
mode:
|
|
7765
|
+
var FileReadInstructionSchema = z7.object({
|
|
7766
|
+
mode: z7.enum(["direct", "proxy"]),
|
|
7511
7767
|
url: TransferUrlSchema,
|
|
7512
|
-
method:
|
|
7768
|
+
method: z7.literal("GET"),
|
|
7513
7769
|
headers: TransferHeadersSchema,
|
|
7514
7770
|
expiresAt: IsoDateTimeSchema.nullable()
|
|
7515
7771
|
}).strict().superRefine((value, context) => {
|
|
7516
7772
|
if (value.mode === "proxy" && !/^\/(?!\/)/.test(value.url))
|
|
7517
7773
|
context.addIssue({ code: "custom", path: ["url"], message: "A browser proxy must use a same-origin path" });
|
|
7518
7774
|
});
|
|
7519
|
-
var FileResourcePathSchema =
|
|
7775
|
+
var FileResourcePathSchema = z7.string().min(1).max(1024).refine((path2) => {
|
|
7520
7776
|
if (/^[\/\\]|[\\\u0000-\u001f:?#]/.test(path2)) return false;
|
|
7521
7777
|
try {
|
|
7522
7778
|
const decoded = decodeURIComponent(path2);
|
|
@@ -7525,54 +7781,54 @@ var FileResourcePathSchema = z6.string().min(1).max(1024).refine((path2) => {
|
|
|
7525
7781
|
return false;
|
|
7526
7782
|
}
|
|
7527
7783
|
}, "Expected a safe relative resource path");
|
|
7528
|
-
var FileResourceManifestSchema =
|
|
7529
|
-
version:
|
|
7784
|
+
var FileResourceManifestSchema = z7.object({
|
|
7785
|
+
version: z7.literal(1),
|
|
7530
7786
|
entryPath: FileResourcePathSchema.optional(),
|
|
7531
|
-
resources:
|
|
7787
|
+
resources: z7.array(z7.object({ path: FileResourcePathSchema, uri: ManagedFileUriSchema }).strict()).max(1e3)
|
|
7532
7788
|
}).strict().superRefine((value, context) => {
|
|
7533
7789
|
if (new Set(value.resources.map((resource) => resource.path)).size !== value.resources.length)
|
|
7534
7790
|
context.addIssue({ code: "custom", path: ["resources"], message: "Resource paths must be unique" });
|
|
7535
7791
|
});
|
|
7536
|
-
var FileReferenceSchema =
|
|
7792
|
+
var FileReferenceSchema = z7.object({
|
|
7537
7793
|
id: ContractIdentifierSchema.optional(),
|
|
7538
|
-
uri:
|
|
7539
|
-
thumbnailUri:
|
|
7540
|
-
mimeType:
|
|
7541
|
-
byteSize:
|
|
7794
|
+
uri: z7.string().trim().min(1).optional(),
|
|
7795
|
+
thumbnailUri: z7.string().trim().min(1).optional(),
|
|
7796
|
+
mimeType: z7.string().trim().min(1).max(128).optional(),
|
|
7797
|
+
byteSize: z7.number().int().nonnegative().optional(),
|
|
7542
7798
|
sha256: Sha256Schema.optional()
|
|
7543
7799
|
}).strict().refine((value) => Boolean(value.id || value.uri), {
|
|
7544
7800
|
message: "File reference requires id or uri"
|
|
7545
7801
|
});
|
|
7546
|
-
var FileVariantSchema =
|
|
7802
|
+
var FileVariantSchema = z7.object({
|
|
7547
7803
|
variantId: ContractIdentifierSchema,
|
|
7548
|
-
kind:
|
|
7804
|
+
kind: z7.literal("thumbnail-512"),
|
|
7549
7805
|
status: FileVariantStatusSchema,
|
|
7550
|
-
mimeType:
|
|
7551
|
-
byteSize:
|
|
7552
|
-
width:
|
|
7553
|
-
height:
|
|
7554
|
-
uri:
|
|
7806
|
+
mimeType: z7.literal("image/webp"),
|
|
7807
|
+
byteSize: z7.number().int().nonnegative().optional(),
|
|
7808
|
+
width: z7.number().int().positive().optional(),
|
|
7809
|
+
height: z7.number().int().positive().optional(),
|
|
7810
|
+
uri: z7.string().trim().min(1).optional(),
|
|
7555
7811
|
errorCode: ContractIdentifierSchema.optional()
|
|
7556
7812
|
}).strict();
|
|
7557
|
-
var FileRecordSchema =
|
|
7558
|
-
contract:
|
|
7559
|
-
contractVersion:
|
|
7560
|
-
version:
|
|
7813
|
+
var FileRecordSchema = z7.object({
|
|
7814
|
+
contract: z7.literal("FileRecord"),
|
|
7815
|
+
contractVersion: z7.literal(1),
|
|
7816
|
+
version: z7.number().int().positive(),
|
|
7561
7817
|
fileId: ContractIdentifierSchema,
|
|
7562
7818
|
teamId: ContractIdentifierSchema,
|
|
7563
7819
|
purpose: FilePurposeSchema,
|
|
7564
|
-
originalName:
|
|
7565
|
-
mimeType:
|
|
7566
|
-
byteSize:
|
|
7820
|
+
originalName: z7.string().trim().min(1).max(255),
|
|
7821
|
+
mimeType: z7.string().trim().min(1).max(128),
|
|
7822
|
+
byteSize: z7.number().int().nonnegative().optional(),
|
|
7567
7823
|
sha256: Sha256Schema.optional(),
|
|
7568
7824
|
status: FileStatusSchema,
|
|
7569
|
-
storage:
|
|
7825
|
+
storage: z7.object({
|
|
7570
7826
|
bucketId: ContractIdentifierSchema,
|
|
7571
|
-
objectKey:
|
|
7572
|
-
canonicalUri:
|
|
7573
|
-
etag:
|
|
7827
|
+
objectKey: z7.string().trim().min(1).max(1024),
|
|
7828
|
+
canonicalUri: z7.string().trim().min(1),
|
|
7829
|
+
etag: z7.string().trim().min(1).optional()
|
|
7574
7830
|
}).strict(),
|
|
7575
|
-
variants:
|
|
7831
|
+
variants: z7.array(FileVariantSchema).default([]),
|
|
7576
7832
|
resourceManifest: FileResourceManifestSchema.optional(),
|
|
7577
7833
|
createdAt: IsoDateTimeSchema,
|
|
7578
7834
|
updatedAt: IsoDateTimeSchema
|
|
@@ -7585,58 +7841,58 @@ var FileRecordSchema = z6.object({
|
|
|
7585
7841
|
});
|
|
7586
7842
|
}
|
|
7587
7843
|
});
|
|
7588
|
-
var FileUploadCreateRequestSchema =
|
|
7844
|
+
var FileUploadCreateRequestSchema = z7.object({
|
|
7589
7845
|
purpose: FilePurposeSchema,
|
|
7590
|
-
filename:
|
|
7591
|
-
mimeType:
|
|
7592
|
-
byteSize:
|
|
7846
|
+
filename: z7.string().trim().min(1).max(255),
|
|
7847
|
+
mimeType: z7.string().trim().min(1).max(128),
|
|
7848
|
+
byteSize: z7.number().int().nonnegative().optional(),
|
|
7593
7849
|
sha256: Sha256Schema.optional(),
|
|
7594
7850
|
usage: FileUsageSchema.optional(),
|
|
7595
7851
|
requestId: ContractIdentifierSchema.optional(),
|
|
7596
|
-
forceProxy:
|
|
7852
|
+
forceProxy: z7.boolean().optional()
|
|
7597
7853
|
}).strict();
|
|
7598
|
-
var FileUploadInstructionSchema =
|
|
7854
|
+
var FileUploadInstructionSchema = z7.object({
|
|
7599
7855
|
url: TransferUrlSchema,
|
|
7600
|
-
method:
|
|
7856
|
+
method: z7.string().trim().min(1),
|
|
7601
7857
|
headers: TransferHeadersSchema,
|
|
7602
7858
|
expiresAt: IsoDateTimeSchema,
|
|
7603
|
-
mode:
|
|
7859
|
+
mode: z7.enum(["direct", "proxy"]).optional()
|
|
7604
7860
|
}).strict();
|
|
7605
|
-
var FileUploadCreateResponseSchema =
|
|
7861
|
+
var FileUploadCreateResponseSchema = z7.object({
|
|
7606
7862
|
file: FileRecordSchema,
|
|
7607
7863
|
upload: FileUploadInstructionSchema
|
|
7608
7864
|
}).strict();
|
|
7609
|
-
var FileUploadCompleteRequestSchema =
|
|
7610
|
-
byteSize:
|
|
7865
|
+
var FileUploadCompleteRequestSchema = z7.object({
|
|
7866
|
+
byteSize: z7.number().int().nonnegative().optional(),
|
|
7611
7867
|
sha256: Sha256Schema.optional(),
|
|
7612
|
-
etag:
|
|
7868
|
+
etag: z7.string().trim().min(1).max(512).optional(),
|
|
7613
7869
|
resourceManifest: FileResourceManifestSchema.optional()
|
|
7614
7870
|
}).strict();
|
|
7615
|
-
var ResolvedFileSchema =
|
|
7871
|
+
var ResolvedFileSchema = z7.object({
|
|
7616
7872
|
fileId: ContractIdentifierSchema.optional(),
|
|
7617
7873
|
status: FileStatusSchema.optional(),
|
|
7618
|
-
originalUri:
|
|
7619
|
-
thumbnailUri:
|
|
7620
|
-
version:
|
|
7874
|
+
originalUri: z7.string().trim().min(1).optional(),
|
|
7875
|
+
thumbnailUri: z7.string().trim().min(1).optional(),
|
|
7876
|
+
version: z7.number().int().positive().optional(),
|
|
7621
7877
|
resourceManifest: FileResourceManifestSchema.optional(),
|
|
7622
7878
|
originalAccess: FileReadInstructionSchema.optional(),
|
|
7623
7879
|
thumbnailAccess: FileReadInstructionSchema.optional(),
|
|
7624
|
-
mimeType:
|
|
7625
|
-
byteSize:
|
|
7880
|
+
mimeType: z7.string().trim().min(1).max(128).optional(),
|
|
7881
|
+
byteSize: z7.number().int().nonnegative().optional(),
|
|
7626
7882
|
sha256: Sha256Schema.optional(),
|
|
7627
|
-
unresolved:
|
|
7883
|
+
unresolved: z7.boolean().optional()
|
|
7628
7884
|
}).strict();
|
|
7629
|
-
var FileResolveBatchRequestSchema =
|
|
7630
|
-
references:
|
|
7631
|
-
includeOriginal:
|
|
7632
|
-
includeThumbnail:
|
|
7633
|
-
includeAccessInstructions:
|
|
7634
|
-
forceProxy:
|
|
7885
|
+
var FileResolveBatchRequestSchema = z7.object({
|
|
7886
|
+
references: z7.array(FileReferenceSchema).min(1).max(1e3),
|
|
7887
|
+
includeOriginal: z7.boolean().default(false),
|
|
7888
|
+
includeThumbnail: z7.boolean().default(true),
|
|
7889
|
+
includeAccessInstructions: z7.boolean().default(false),
|
|
7890
|
+
forceProxy: z7.boolean().default(false)
|
|
7635
7891
|
}).strict();
|
|
7636
|
-
var FileResolveBatchResponseSchema =
|
|
7637
|
-
items:
|
|
7892
|
+
var FileResolveBatchResponseSchema = z7.object({
|
|
7893
|
+
items: z7.array(ResolvedFileSchema)
|
|
7638
7894
|
}).strict();
|
|
7639
|
-
var ManagedFileCommandTypeSchema =
|
|
7895
|
+
var ManagedFileCommandTypeSchema = z7.enum([
|
|
7640
7896
|
"create-file",
|
|
7641
7897
|
"attach-usage",
|
|
7642
7898
|
"detach-usage",
|
|
@@ -7644,19 +7900,19 @@ var ManagedFileCommandTypeSchema = z6.enum([
|
|
|
7644
7900
|
"verify-upload",
|
|
7645
7901
|
"delete-file"
|
|
7646
7902
|
]);
|
|
7647
|
-
var ManagedFileCommandSchema =
|
|
7648
|
-
contract:
|
|
7649
|
-
contractVersion:
|
|
7903
|
+
var ManagedFileCommandSchema = z7.object({
|
|
7904
|
+
contract: z7.literal("ManagedFileCommand"),
|
|
7905
|
+
contractVersion: z7.literal(1),
|
|
7650
7906
|
commandId: ContractIdentifierSchema,
|
|
7651
7907
|
commandType: ManagedFileCommandTypeSchema,
|
|
7652
7908
|
fileId: ContractIdentifierSchema,
|
|
7653
7909
|
teamId: ContractIdentifierSchema,
|
|
7654
|
-
expectedVersion:
|
|
7910
|
+
expectedVersion: z7.number().int().nonnegative().optional(),
|
|
7655
7911
|
actorId: ContractIdentifierSchema.optional(),
|
|
7656
7912
|
payload: JsonObjectSchema.default({}),
|
|
7657
7913
|
issuedAt: IsoDateTimeSchema
|
|
7658
7914
|
}).strict();
|
|
7659
|
-
var ManagedFileEventTypeSchema =
|
|
7915
|
+
var ManagedFileEventTypeSchema = z7.enum([
|
|
7660
7916
|
"file-created",
|
|
7661
7917
|
"file-usage-attached",
|
|
7662
7918
|
"file-usage-detached",
|
|
@@ -7666,14 +7922,14 @@ var ManagedFileEventTypeSchema = z6.enum([
|
|
|
7666
7922
|
"file-ready",
|
|
7667
7923
|
"file-deleted"
|
|
7668
7924
|
]);
|
|
7669
|
-
var ManagedFileEventSchema =
|
|
7670
|
-
contract:
|
|
7671
|
-
contractVersion:
|
|
7925
|
+
var ManagedFileEventSchema = z7.object({
|
|
7926
|
+
contract: z7.literal("ManagedFileEvent"),
|
|
7927
|
+
contractVersion: z7.literal(1),
|
|
7672
7928
|
eventId: ContractIdentifierSchema,
|
|
7673
7929
|
eventType: ManagedFileEventTypeSchema,
|
|
7674
7930
|
fileId: ContractIdentifierSchema,
|
|
7675
7931
|
teamId: ContractIdentifierSchema,
|
|
7676
|
-
aggregateVersion:
|
|
7932
|
+
aggregateVersion: z7.number().int().positive(),
|
|
7677
7933
|
commandId: ContractIdentifierSchema,
|
|
7678
7934
|
actorId: ContractIdentifierSchema.optional(),
|
|
7679
7935
|
payload: JsonObjectSchema.default({}),
|
|
@@ -7681,25 +7937,25 @@ var ManagedFileEventSchema = z6.object({
|
|
|
7681
7937
|
}).strict();
|
|
7682
7938
|
|
|
7683
7939
|
// src/contracts/agent.ts
|
|
7684
|
-
import { z as
|
|
7685
|
-
var StudioAgentModeSchema =
|
|
7940
|
+
import { z as z8 } from "zod";
|
|
7941
|
+
var StudioAgentModeSchema = z8.enum(["chat", "work"]);
|
|
7686
7942
|
var AgentModeSchema = StudioAgentModeSchema;
|
|
7687
|
-
var AgentConfigurationCapabilitySchema =
|
|
7943
|
+
var AgentConfigurationCapabilitySchema = z8.enum([
|
|
7688
7944
|
"models",
|
|
7689
7945
|
"skills",
|
|
7690
7946
|
"tools",
|
|
7691
7947
|
"mcp",
|
|
7692
7948
|
"reasoning"
|
|
7693
7949
|
]);
|
|
7694
|
-
var AgentModeCapabilitiesSchema =
|
|
7695
|
-
models:
|
|
7696
|
-
skills:
|
|
7697
|
-
tools:
|
|
7698
|
-
mcp:
|
|
7699
|
-
reasoning:
|
|
7950
|
+
var AgentModeCapabilitiesSchema = z8.object({
|
|
7951
|
+
models: z8.boolean(),
|
|
7952
|
+
skills: z8.boolean(),
|
|
7953
|
+
tools: z8.boolean(),
|
|
7954
|
+
mcp: z8.boolean(),
|
|
7955
|
+
reasoning: z8.boolean()
|
|
7700
7956
|
}).strict();
|
|
7701
|
-
var AgentResourceModeSupportSchema =
|
|
7702
|
-
modes:
|
|
7957
|
+
var AgentResourceModeSupportSchema = z8.object({
|
|
7958
|
+
modes: z8.array(AgentModeSchema).min(1)
|
|
7703
7959
|
}).strict();
|
|
7704
7960
|
var AGENT_MODE_CAPABILITIES = Object.freeze({
|
|
7705
7961
|
chat: AgentModeCapabilitiesSchema.parse({
|
|
@@ -7726,7 +7982,7 @@ function agentModeHasCapability(mode, capability) {
|
|
|
7726
7982
|
function isAgentResourceModeCompatible(support, mode) {
|
|
7727
7983
|
return support?.modes.includes(mode) ?? false;
|
|
7728
7984
|
}
|
|
7729
|
-
var AgentSessionCapabilitySchema =
|
|
7985
|
+
var AgentSessionCapabilitySchema = z8.enum([
|
|
7730
7986
|
"text",
|
|
7731
7987
|
"reasoning",
|
|
7732
7988
|
"plan",
|
|
@@ -7749,30 +8005,30 @@ var AgentSessionCapabilitySchema = z7.enum([
|
|
|
7749
8005
|
"steering",
|
|
7750
8006
|
"summary"
|
|
7751
8007
|
]);
|
|
7752
|
-
var AgentSessionCapabilitiesSchema =
|
|
7753
|
-
text:
|
|
7754
|
-
reasoning:
|
|
7755
|
-
plan:
|
|
7756
|
-
tasks:
|
|
7757
|
-
tools:
|
|
7758
|
-
mcp:
|
|
7759
|
-
shell:
|
|
7760
|
-
fileChange:
|
|
7761
|
-
skills:
|
|
7762
|
-
approval:
|
|
7763
|
-
artifacts:
|
|
7764
|
-
usage:
|
|
7765
|
-
resume:
|
|
7766
|
-
diff:
|
|
7767
|
-
workspaceFiles:
|
|
7768
|
-
terminal:
|
|
7769
|
-
testResults:
|
|
7770
|
-
threadForking:
|
|
7771
|
-
editAndRerun:
|
|
7772
|
-
steering:
|
|
7773
|
-
summary:
|
|
7774
|
-
}).strict();
|
|
7775
|
-
var AgentSessionPermissionProfileSchema =
|
|
8008
|
+
var AgentSessionCapabilitiesSchema = z8.object({
|
|
8009
|
+
text: z8.boolean().default(true),
|
|
8010
|
+
reasoning: z8.boolean().default(false),
|
|
8011
|
+
plan: z8.boolean().default(false),
|
|
8012
|
+
tasks: z8.boolean().default(false),
|
|
8013
|
+
tools: z8.boolean().default(false),
|
|
8014
|
+
mcp: z8.boolean().default(false),
|
|
8015
|
+
shell: z8.boolean().default(false),
|
|
8016
|
+
fileChange: z8.boolean().default(false),
|
|
8017
|
+
skills: z8.boolean().default(false),
|
|
8018
|
+
approval: z8.boolean().default(false),
|
|
8019
|
+
artifacts: z8.boolean().default(false),
|
|
8020
|
+
usage: z8.boolean().default(false),
|
|
8021
|
+
resume: z8.boolean().default(false),
|
|
8022
|
+
diff: z8.boolean().default(false),
|
|
8023
|
+
workspaceFiles: z8.boolean().default(false),
|
|
8024
|
+
terminal: z8.boolean().default(false),
|
|
8025
|
+
testResults: z8.boolean().default(false),
|
|
8026
|
+
threadForking: z8.boolean().default(false),
|
|
8027
|
+
editAndRerun: z8.boolean().default(false),
|
|
8028
|
+
steering: z8.boolean().default(false),
|
|
8029
|
+
summary: z8.boolean().default(false)
|
|
8030
|
+
}).strict();
|
|
8031
|
+
var AgentSessionPermissionProfileSchema = z8.enum([
|
|
7776
8032
|
"approval-required",
|
|
7777
8033
|
"auto-approve",
|
|
7778
8034
|
"full-access"
|
|
@@ -7816,13 +8072,13 @@ function findUnsupportedAgentSessionCapabilities(capabilities, evidence) {
|
|
|
7816
8072
|
return !requirement.eventTypes.some((eventType) => eventTypes.has(eventType)) && !requirement.commandTypes.some((commandType) => commandTypes.has(commandType));
|
|
7817
8073
|
});
|
|
7818
8074
|
}
|
|
7819
|
-
var AgentSessionSnapshotSchema =
|
|
8075
|
+
var AgentSessionSnapshotSchema = z8.object({
|
|
7820
8076
|
mode: AgentModeSchema,
|
|
7821
|
-
modelId:
|
|
8077
|
+
modelId: z8.string().trim().min(1),
|
|
7822
8078
|
capabilities: AgentSessionCapabilitiesSchema,
|
|
7823
8079
|
permissionProfile: AgentSessionPermissionProfileSchema.optional()
|
|
7824
8080
|
}).strict();
|
|
7825
|
-
var AgentSessionStatusSchema =
|
|
8081
|
+
var AgentSessionStatusSchema = z8.enum([
|
|
7826
8082
|
"queued",
|
|
7827
8083
|
"running",
|
|
7828
8084
|
"waiting_approval",
|
|
@@ -7831,56 +8087,56 @@ var AgentSessionStatusSchema = z7.enum([
|
|
|
7831
8087
|
"completed",
|
|
7832
8088
|
"failed"
|
|
7833
8089
|
]);
|
|
7834
|
-
var AgentSessionTerminalStatusSchema =
|
|
7835
|
-
var AgentSessionLineageSchema =
|
|
8090
|
+
var AgentSessionTerminalStatusSchema = z8.enum(["stopped", "completed", "failed"]);
|
|
8091
|
+
var AgentSessionLineageSchema = z8.object({
|
|
7836
8092
|
forkedFromThreadId: ContractIdentifierSchema,
|
|
7837
8093
|
forkedFromMessageId: ContractIdentifierSchema,
|
|
7838
8094
|
sourceRunId: ContractIdentifierSchema
|
|
7839
8095
|
}).strict();
|
|
7840
|
-
var AgentSessionContextInheritanceSchema =
|
|
7841
|
-
messages:
|
|
7842
|
-
attachments:
|
|
7843
|
-
summaries:
|
|
7844
|
-
toolResults:
|
|
7845
|
-
codeChanges:
|
|
8096
|
+
var AgentSessionContextInheritanceSchema = z8.object({
|
|
8097
|
+
messages: z8.enum(["through-source-message", "exclude"]),
|
|
8098
|
+
attachments: z8.enum(["inherit", "exclude"]),
|
|
8099
|
+
summaries: z8.enum(["inherit", "exclude"]),
|
|
8100
|
+
toolResults: z8.enum(["inherit", "exclude"]),
|
|
8101
|
+
codeChanges: z8.enum(["inherit", "exclude"])
|
|
7846
8102
|
}).strict();
|
|
7847
|
-
var AgentSessionInheritedContextMessageSchema =
|
|
8103
|
+
var AgentSessionInheritedContextMessageSchema = z8.object({
|
|
7848
8104
|
messageId: ContractIdentifierSchema,
|
|
7849
|
-
role:
|
|
7850
|
-
parts:
|
|
8105
|
+
role: z8.enum(["user", "assistant"]),
|
|
8106
|
+
parts: z8.array(JsonValueSchema).min(1)
|
|
7851
8107
|
}).strict();
|
|
7852
|
-
var AgentSessionUnavailableResourceSchema =
|
|
8108
|
+
var AgentSessionUnavailableResourceSchema = z8.object({
|
|
7853
8109
|
messageId: ContractIdentifierSchema,
|
|
7854
|
-
kind:
|
|
7855
|
-
reason:
|
|
8110
|
+
kind: z8.enum(["attachment", "tool-result", "code-change"]),
|
|
8111
|
+
reason: z8.enum(["excluded", "unavailable", "unsupported"])
|
|
7856
8112
|
}).strict();
|
|
7857
|
-
var AgentSessionInheritedContextSchema =
|
|
8113
|
+
var AgentSessionInheritedContextSchema = z8.object({
|
|
7858
8114
|
sourceThreadId: ContractIdentifierSchema,
|
|
7859
8115
|
sourceMessageId: ContractIdentifierSchema,
|
|
7860
8116
|
sourceRunId: ContractIdentifierSchema,
|
|
7861
|
-
messages:
|
|
7862
|
-
summary:
|
|
7863
|
-
unavailableResources:
|
|
8117
|
+
messages: z8.array(AgentSessionInheritedContextMessageSchema).max(24),
|
|
8118
|
+
summary: z8.string().trim().min(1).optional(),
|
|
8119
|
+
unavailableResources: z8.array(AgentSessionUnavailableResourceSchema).default([]),
|
|
7864
8120
|
capturedAt: IsoDateTimeSchema
|
|
7865
8121
|
}).strict();
|
|
7866
|
-
var AgentSessionContinuationRequestSchema =
|
|
7867
|
-
contract:
|
|
8122
|
+
var AgentSessionContinuationRequestSchema = z8.object({
|
|
8123
|
+
contract: z8.literal("AgentSessionContinuationRequest"),
|
|
7868
8124
|
idempotencyKey: ContractIdentifierSchema,
|
|
7869
8125
|
sourceMessageId: ContractIdentifierSchema,
|
|
7870
8126
|
sourceRunId: ContractIdentifierSchema,
|
|
7871
8127
|
inheritance: AgentSessionContextInheritanceSchema
|
|
7872
8128
|
}).strict();
|
|
7873
|
-
var AgentSessionContinuationResultSchema =
|
|
7874
|
-
contract:
|
|
8129
|
+
var AgentSessionContinuationResultSchema = z8.object({
|
|
8130
|
+
contract: z8.literal("AgentSessionContinuationResult"),
|
|
7875
8131
|
idempotencyKey: ContractIdentifierSchema,
|
|
7876
8132
|
threadId: ContractIdentifierSchema,
|
|
7877
8133
|
lineage: AgentSessionLineageSchema,
|
|
7878
8134
|
inheritance: AgentSessionContextInheritanceSchema,
|
|
7879
|
-
unavailableResources:
|
|
7880
|
-
duplicate:
|
|
8135
|
+
unavailableResources: z8.array(AgentSessionUnavailableResourceSchema).default([]),
|
|
8136
|
+
duplicate: z8.boolean(),
|
|
7881
8137
|
createdAt: IsoDateTimeSchema
|
|
7882
8138
|
}).strict();
|
|
7883
|
-
var AgentSessionActiveBranchSchema =
|
|
8139
|
+
var AgentSessionActiveBranchSchema = z8.object({
|
|
7884
8140
|
branchId: ContractIdentifierSchema,
|
|
7885
8141
|
threadId: ContractIdentifierSchema,
|
|
7886
8142
|
sourceMessageId: ContractIdentifierSchema,
|
|
@@ -7888,7 +8144,7 @@ var AgentSessionActiveBranchSchema = z7.object({
|
|
|
7888
8144
|
lineage: AgentSessionLineageSchema.optional(),
|
|
7889
8145
|
createdAt: IsoDateTimeSchema
|
|
7890
8146
|
}).strict();
|
|
7891
|
-
var AgentSessionRunSchema =
|
|
8147
|
+
var AgentSessionRunSchema = z8.object({
|
|
7892
8148
|
runId: ContractIdentifierSchema,
|
|
7893
8149
|
sessionId: ContractIdentifierSchema,
|
|
7894
8150
|
sourceMessageId: ContractIdentifierSchema,
|
|
@@ -7898,7 +8154,7 @@ var AgentSessionRunSchema = z7.object({
|
|
|
7898
8154
|
stoppedAt: IsoDateTimeSchema.optional(),
|
|
7899
8155
|
completedAt: IsoDateTimeSchema.optional(),
|
|
7900
8156
|
failedAt: IsoDateTimeSchema.optional(),
|
|
7901
|
-
durationMs:
|
|
8157
|
+
durationMs: z8.number().nonnegative().optional()
|
|
7902
8158
|
}).strict().superRefine((value, context) => {
|
|
7903
8159
|
const terminalTimestamps = [value.stoppedAt, value.completedAt, value.failedAt].filter(Boolean);
|
|
7904
8160
|
if (terminalTimestamps.length > 1) {
|
|
@@ -7945,7 +8201,7 @@ var AgentSessionRunSchema = z7.object({
|
|
|
7945
8201
|
});
|
|
7946
8202
|
}
|
|
7947
8203
|
});
|
|
7948
|
-
var AgentSessionCommandTypeSchema =
|
|
8204
|
+
var AgentSessionCommandTypeSchema = z8.enum([
|
|
7949
8205
|
"stop",
|
|
7950
8206
|
"resume",
|
|
7951
8207
|
"retry",
|
|
@@ -7955,22 +8211,22 @@ var AgentSessionCommandTypeSchema = z7.enum([
|
|
|
7955
8211
|
"edit-and-rerun",
|
|
7956
8212
|
"steer"
|
|
7957
8213
|
]);
|
|
7958
|
-
var AgentSessionCommandHeaderSchema =
|
|
7959
|
-
contract:
|
|
8214
|
+
var AgentSessionCommandHeaderSchema = z8.object({
|
|
8215
|
+
contract: z8.literal("AgentSessionCommand"),
|
|
7960
8216
|
commandId: ContractIdentifierSchema,
|
|
7961
8217
|
sessionId: ContractIdentifierSchema,
|
|
7962
8218
|
runId: ContractIdentifierSchema.optional(),
|
|
7963
8219
|
idempotencyKey: ContractIdentifierSchema,
|
|
7964
|
-
expectedSequence:
|
|
8220
|
+
expectedSequence: z8.number().int().min(-1),
|
|
7965
8221
|
issuedAt: IsoDateTimeSchema
|
|
7966
8222
|
}).strict();
|
|
7967
8223
|
var sessionCommand = (commandType, payload) => AgentSessionCommandHeaderSchema.extend({
|
|
7968
|
-
commandType:
|
|
7969
|
-
payload:
|
|
8224
|
+
commandType: z8.literal(commandType),
|
|
8225
|
+
payload: z8.object(payload).strict()
|
|
7970
8226
|
}).strict();
|
|
7971
|
-
var AgentSessionCommandSchema =
|
|
8227
|
+
var AgentSessionCommandSchema = z8.discriminatedUnion("commandType", [
|
|
7972
8228
|
sessionCommand("stop", {
|
|
7973
|
-
reason:
|
|
8229
|
+
reason: z8.string().trim().min(1).optional()
|
|
7974
8230
|
}),
|
|
7975
8231
|
sessionCommand("resume", {
|
|
7976
8232
|
resumeEventId: ContractIdentifierSchema.optional()
|
|
@@ -7984,8 +8240,8 @@ var AgentSessionCommandSchema = z7.discriminatedUnion("commandType", [
|
|
|
7984
8240
|
}),
|
|
7985
8241
|
sessionCommand("approval", {
|
|
7986
8242
|
approvalId: ContractIdentifierSchema,
|
|
7987
|
-
decision:
|
|
7988
|
-
reason:
|
|
8243
|
+
decision: z8.enum(["approved", "rejected"]),
|
|
8244
|
+
reason: z8.string().trim().min(1).optional()
|
|
7989
8245
|
}),
|
|
7990
8246
|
sessionCommand("fork", {
|
|
7991
8247
|
sourceThreadId: ContractIdentifierSchema,
|
|
@@ -7997,12 +8253,12 @@ var AgentSessionCommandSchema = z7.discriminatedUnion("commandType", [
|
|
|
7997
8253
|
sourceThreadId: ContractIdentifierSchema,
|
|
7998
8254
|
sourceMessageId: ContractIdentifierSchema,
|
|
7999
8255
|
sourceRunId: ContractIdentifierSchema,
|
|
8000
|
-
replacementParts:
|
|
8256
|
+
replacementParts: z8.array(JsonValueSchema).min(1),
|
|
8001
8257
|
inheritance: AgentSessionContextInheritanceSchema
|
|
8002
8258
|
}),
|
|
8003
8259
|
sessionCommand("steer", {
|
|
8004
8260
|
targetRunId: ContractIdentifierSchema,
|
|
8005
|
-
text:
|
|
8261
|
+
text: z8.string().trim().min(1)
|
|
8006
8262
|
})
|
|
8007
8263
|
]).superRefine((value, context) => {
|
|
8008
8264
|
if (value.commandType === "steer" && value.runId !== value.payload.targetRunId) {
|
|
@@ -8021,9 +8277,9 @@ var AgentSessionCommandSchema = z7.discriminatedUnion("commandType", [
|
|
|
8021
8277
|
}
|
|
8022
8278
|
});
|
|
8023
8279
|
var AgentSessionTargetedCommandSchema = AgentSessionCommandSchema.and(
|
|
8024
|
-
|
|
8280
|
+
z8.object({ runId: ContractIdentifierSchema })
|
|
8025
8281
|
);
|
|
8026
|
-
var AgentSessionCommandErrorCodeSchema =
|
|
8282
|
+
var AgentSessionCommandErrorCodeSchema = z8.enum([
|
|
8027
8283
|
"SESSION_NOT_FOUND",
|
|
8028
8284
|
"RUN_NOT_FOUND",
|
|
8029
8285
|
"ACTIVE_RUN_NOT_FOUND",
|
|
@@ -8044,25 +8300,25 @@ var AgentSessionCommandErrorCodeSchema = z7.enum([
|
|
|
8044
8300
|
"ACTIVE_BRANCH_NOT_FOUND",
|
|
8045
8301
|
"COMMAND_EXECUTION_FAILED"
|
|
8046
8302
|
]);
|
|
8047
|
-
var AgentSessionCommandResultSchema =
|
|
8048
|
-
contract:
|
|
8303
|
+
var AgentSessionCommandResultSchema = z8.object({
|
|
8304
|
+
contract: z8.literal("AgentSessionCommandResult"),
|
|
8049
8305
|
commandId: ContractIdentifierSchema,
|
|
8050
8306
|
sessionId: ContractIdentifierSchema,
|
|
8051
8307
|
runId: ContractIdentifierSchema.optional(),
|
|
8052
8308
|
idempotencyKey: ContractIdentifierSchema,
|
|
8053
|
-
outcome:
|
|
8309
|
+
outcome: z8.enum(["accepted", "duplicate", "rejected", "failed"]),
|
|
8054
8310
|
sessionStatus: AgentSessionStatusSchema,
|
|
8055
|
-
acceptedSequence:
|
|
8056
|
-
resultEventIds:
|
|
8057
|
-
operation:
|
|
8311
|
+
acceptedSequence: z8.number().int().nonnegative().optional(),
|
|
8312
|
+
resultEventIds: z8.array(ContractIdentifierSchema).default([]),
|
|
8313
|
+
operation: z8.object({
|
|
8058
8314
|
lineage: AgentSessionLineageSchema,
|
|
8059
8315
|
activeBranch: AgentSessionActiveBranchSchema
|
|
8060
8316
|
}).strict().optional(),
|
|
8061
|
-
termination:
|
|
8062
|
-
error:
|
|
8317
|
+
termination: z8.enum(["requested", "confirmed"]).optional(),
|
|
8318
|
+
error: z8.object({
|
|
8063
8319
|
code: AgentSessionCommandErrorCodeSchema,
|
|
8064
|
-
message:
|
|
8065
|
-
retryable:
|
|
8320
|
+
message: z8.string(),
|
|
8321
|
+
retryable: z8.boolean()
|
|
8066
8322
|
}).strict().optional(),
|
|
8067
8323
|
occurredAt: IsoDateTimeSchema
|
|
8068
8324
|
}).strict().superRefine((value, context) => {
|
|
@@ -8125,13 +8381,13 @@ var AGENT_SESSION_COMMAND_TRANSITIONS = {
|
|
|
8125
8381
|
"edit-and-rerun": {},
|
|
8126
8382
|
steer: {}
|
|
8127
8383
|
};
|
|
8128
|
-
var AgentSessionCommandPolicySchema =
|
|
8384
|
+
var AgentSessionCommandPolicySchema = z8.object({
|
|
8129
8385
|
capability: AgentSessionCapabilitySchema.optional(),
|
|
8130
|
-
allowedStatuses:
|
|
8131
|
-
requiresRunId:
|
|
8132
|
-
sourceSessionEffect:
|
|
8133
|
-
idempotencyScope:
|
|
8134
|
-
sequenceRule:
|
|
8386
|
+
allowedStatuses: z8.array(AgentSessionStatusSchema).min(1),
|
|
8387
|
+
requiresRunId: z8.boolean(),
|
|
8388
|
+
sourceSessionEffect: z8.enum(["transition", "preserve"]),
|
|
8389
|
+
idempotencyScope: z8.literal("session-command"),
|
|
8390
|
+
sequenceRule: z8.enum(["match-current", "target-run"])
|
|
8135
8391
|
}).strict();
|
|
8136
8392
|
var sessionCommandPolicy = (policy) => AgentSessionCommandPolicySchema.parse(policy);
|
|
8137
8393
|
var AGENT_SESSION_COMMAND_POLICIES = Object.freeze({
|
|
@@ -8223,151 +8479,151 @@ function canApplyAgentSessionRunStatus(current, next) {
|
|
|
8223
8479
|
};
|
|
8224
8480
|
return transitions[current].includes(next);
|
|
8225
8481
|
}
|
|
8226
|
-
var AgentSessionEventHeaderSchema =
|
|
8227
|
-
contract:
|
|
8482
|
+
var AgentSessionEventHeaderSchema = z8.object({
|
|
8483
|
+
contract: z8.literal("AgentSessionEvent"),
|
|
8228
8484
|
eventId: ContractIdentifierSchema,
|
|
8229
8485
|
sessionId: ContractIdentifierSchema,
|
|
8230
8486
|
runId: ContractIdentifierSchema.optional(),
|
|
8231
8487
|
sourceMessageId: ContractIdentifierSchema.optional(),
|
|
8232
|
-
sequence:
|
|
8488
|
+
sequence: z8.number().int().nonnegative(),
|
|
8233
8489
|
idempotencyKey: ContractIdentifierSchema,
|
|
8234
8490
|
occurredAt: IsoDateTimeSchema
|
|
8235
8491
|
}).strict();
|
|
8236
8492
|
var sessionEvent = (eventType, payload) => AgentSessionEventHeaderSchema.extend({
|
|
8237
|
-
eventType:
|
|
8238
|
-
payload:
|
|
8493
|
+
eventType: z8.literal(eventType),
|
|
8494
|
+
payload: z8.object(payload).strict()
|
|
8239
8495
|
}).strict();
|
|
8240
|
-
var AgentSessionEventSchema =
|
|
8496
|
+
var AgentSessionEventSchema = z8.discriminatedUnion("eventType", [
|
|
8241
8497
|
sessionEvent("message", {
|
|
8242
8498
|
messageId: ContractIdentifierSchema,
|
|
8243
|
-
role:
|
|
8244
|
-
operation:
|
|
8245
|
-
parts:
|
|
8246
|
-
status:
|
|
8499
|
+
role: z8.enum(["user", "assistant", "system"]),
|
|
8500
|
+
operation: z8.enum(["append", "replace"]).default("append"),
|
|
8501
|
+
parts: z8.array(JsonValueSchema),
|
|
8502
|
+
status: z8.enum(["streaming", "completed", "failed"]).optional()
|
|
8247
8503
|
}),
|
|
8248
8504
|
sessionEvent("reasoning", {
|
|
8249
8505
|
reasoningId: ContractIdentifierSchema,
|
|
8250
|
-
text:
|
|
8251
|
-
status:
|
|
8506
|
+
text: z8.string(),
|
|
8507
|
+
status: z8.enum(["streaming", "completed"])
|
|
8252
8508
|
}),
|
|
8253
8509
|
sessionEvent("plan", {
|
|
8254
8510
|
planId: ContractIdentifierSchema,
|
|
8255
|
-
title:
|
|
8256
|
-
status:
|
|
8257
|
-
steps:
|
|
8258
|
-
|
|
8511
|
+
title: z8.string().optional(),
|
|
8512
|
+
status: z8.enum(["pending", "running", "completed", "failed"]),
|
|
8513
|
+
steps: z8.array(
|
|
8514
|
+
z8.object({
|
|
8259
8515
|
id: ContractIdentifierSchema,
|
|
8260
|
-
title:
|
|
8261
|
-
status:
|
|
8516
|
+
title: z8.string(),
|
|
8517
|
+
status: z8.enum(["pending", "running", "completed", "failed", "skipped"])
|
|
8262
8518
|
}).strict()
|
|
8263
8519
|
)
|
|
8264
8520
|
}),
|
|
8265
8521
|
sessionEvent("task", {
|
|
8266
8522
|
taskId: ContractIdentifierSchema,
|
|
8267
|
-
title:
|
|
8268
|
-
status:
|
|
8269
|
-
detail:
|
|
8523
|
+
title: z8.string(),
|
|
8524
|
+
status: z8.enum(["pending", "running", "completed", "failed", "skipped"]),
|
|
8525
|
+
detail: z8.string().optional()
|
|
8270
8526
|
}),
|
|
8271
8527
|
sessionEvent("tool", {
|
|
8272
8528
|
toolCallId: ContractIdentifierSchema,
|
|
8273
|
-
toolName:
|
|
8274
|
-
status:
|
|
8529
|
+
toolName: z8.string().trim().min(1),
|
|
8530
|
+
status: z8.enum(["pending", "running", "completed", "failed", "denied"]),
|
|
8275
8531
|
input: JsonValueSchema.optional(),
|
|
8276
8532
|
output: JsonValueSchema.optional(),
|
|
8277
|
-
error:
|
|
8533
|
+
error: z8.string().optional(),
|
|
8278
8534
|
startedAt: IsoDateTimeSchema.optional(),
|
|
8279
8535
|
completedAt: IsoDateTimeSchema.optional()
|
|
8280
8536
|
}),
|
|
8281
8537
|
sessionEvent("approval", {
|
|
8282
8538
|
approvalId: ContractIdentifierSchema,
|
|
8283
8539
|
toolCallId: ContractIdentifierSchema.optional(),
|
|
8284
|
-
status:
|
|
8285
|
-
title:
|
|
8286
|
-
description:
|
|
8540
|
+
status: z8.enum(["requested", "approved", "rejected", "expired"]),
|
|
8541
|
+
title: z8.string(),
|
|
8542
|
+
description: z8.string().optional(),
|
|
8287
8543
|
requestedAction: JsonValueSchema.optional()
|
|
8288
8544
|
}),
|
|
8289
8545
|
sessionEvent("status", {
|
|
8290
8546
|
status: AgentSessionStatusSchema,
|
|
8291
|
-
detail:
|
|
8547
|
+
detail: z8.string().optional(),
|
|
8292
8548
|
startedAt: IsoDateTimeSchema.optional(),
|
|
8293
8549
|
stoppingRequestedAt: IsoDateTimeSchema.optional(),
|
|
8294
8550
|
stoppedAt: IsoDateTimeSchema.optional(),
|
|
8295
8551
|
completedAt: IsoDateTimeSchema.optional(),
|
|
8296
8552
|
failedAt: IsoDateTimeSchema.optional(),
|
|
8297
|
-
durationMs:
|
|
8553
|
+
durationMs: z8.number().nonnegative().optional()
|
|
8298
8554
|
}),
|
|
8299
8555
|
sessionEvent("artifact", {
|
|
8300
8556
|
artifactId: ContractIdentifierSchema,
|
|
8301
|
-
name:
|
|
8302
|
-
kind:
|
|
8303
|
-
status:
|
|
8304
|
-
mimeType:
|
|
8305
|
-
url:
|
|
8557
|
+
name: z8.string().trim().min(1),
|
|
8558
|
+
kind: z8.enum(["file", "image", "video", "audio", "web", "other"]),
|
|
8559
|
+
status: z8.enum(["pending", "ready", "failed"]),
|
|
8560
|
+
mimeType: z8.string().optional(),
|
|
8561
|
+
url: z8.string().url().optional(),
|
|
8306
8562
|
fileUri: ManagedFileUriSchema.optional(),
|
|
8307
|
-
size:
|
|
8563
|
+
size: z8.number().int().nonnegative().optional(),
|
|
8308
8564
|
sourceEventId: ContractIdentifierSchema.optional()
|
|
8309
8565
|
}),
|
|
8310
8566
|
sessionEvent("usage", {
|
|
8311
|
-
inputTokens:
|
|
8312
|
-
outputTokens:
|
|
8313
|
-
totalTokens:
|
|
8314
|
-
contextTokens:
|
|
8315
|
-
contextWindow:
|
|
8567
|
+
inputTokens: z8.number().int().nonnegative().optional(),
|
|
8568
|
+
outputTokens: z8.number().int().nonnegative().optional(),
|
|
8569
|
+
totalTokens: z8.number().int().nonnegative().optional(),
|
|
8570
|
+
contextTokens: z8.number().int().nonnegative().optional(),
|
|
8571
|
+
contextWindow: z8.number().int().positive().optional()
|
|
8316
8572
|
}),
|
|
8317
8573
|
sessionEvent("resume", {
|
|
8318
|
-
resumable:
|
|
8574
|
+
resumable: z8.boolean(),
|
|
8319
8575
|
state: JsonObjectSchema.optional(),
|
|
8320
|
-
reason:
|
|
8576
|
+
reason: z8.string().optional()
|
|
8321
8577
|
}),
|
|
8322
8578
|
sessionEvent("error", {
|
|
8323
|
-
code:
|
|
8324
|
-
message:
|
|
8325
|
-
retryable:
|
|
8579
|
+
code: z8.string().trim().min(1),
|
|
8580
|
+
message: z8.string(),
|
|
8581
|
+
retryable: z8.boolean(),
|
|
8326
8582
|
sourceEventId: ContractIdentifierSchema.optional(),
|
|
8327
8583
|
details: JsonObjectSchema.optional()
|
|
8328
8584
|
}),
|
|
8329
8585
|
sessionEvent("diff", {
|
|
8330
|
-
path:
|
|
8331
|
-
status:
|
|
8332
|
-
patch:
|
|
8586
|
+
path: z8.string().trim().min(1),
|
|
8587
|
+
status: z8.enum(["added", "modified", "deleted", "renamed"]),
|
|
8588
|
+
patch: z8.string().optional()
|
|
8333
8589
|
}),
|
|
8334
8590
|
sessionEvent("workspace-file", {
|
|
8335
|
-
path:
|
|
8336
|
-
operation:
|
|
8337
|
-
mimeType:
|
|
8338
|
-
size:
|
|
8591
|
+
path: z8.string().trim().min(1),
|
|
8592
|
+
operation: z8.enum(["upsert", "delete"]),
|
|
8593
|
+
mimeType: z8.string().optional(),
|
|
8594
|
+
size: z8.number().int().nonnegative().optional()
|
|
8339
8595
|
}),
|
|
8340
8596
|
sessionEvent("terminal", {
|
|
8341
8597
|
terminalId: ContractIdentifierSchema,
|
|
8342
|
-
stream:
|
|
8343
|
-
chunk:
|
|
8344
|
-
exitCode:
|
|
8598
|
+
stream: z8.enum(["stdin", "stdout", "stderr", "status"]),
|
|
8599
|
+
chunk: z8.string(),
|
|
8600
|
+
exitCode: z8.number().int().optional()
|
|
8345
8601
|
}),
|
|
8346
8602
|
sessionEvent("test-result", {
|
|
8347
8603
|
testId: ContractIdentifierSchema,
|
|
8348
|
-
name:
|
|
8349
|
-
status:
|
|
8350
|
-
durationMs:
|
|
8351
|
-
output:
|
|
8604
|
+
name: z8.string(),
|
|
8605
|
+
status: z8.enum(["running", "passed", "failed", "skipped"]),
|
|
8606
|
+
durationMs: z8.number().nonnegative().optional(),
|
|
8607
|
+
output: z8.string().optional()
|
|
8352
8608
|
}),
|
|
8353
8609
|
sessionEvent("steer", {
|
|
8354
8610
|
commandId: ContractIdentifierSchema,
|
|
8355
8611
|
targetRunId: ContractIdentifierSchema,
|
|
8356
|
-
text:
|
|
8357
|
-
status:
|
|
8358
|
-
error:
|
|
8612
|
+
text: z8.string().trim().min(1),
|
|
8613
|
+
status: z8.enum(["accepted", "applied", "failed"]),
|
|
8614
|
+
error: z8.object({
|
|
8359
8615
|
code: AgentSessionCommandErrorCodeSchema,
|
|
8360
|
-
message:
|
|
8361
|
-
retryable:
|
|
8616
|
+
message: z8.string(),
|
|
8617
|
+
retryable: z8.boolean()
|
|
8362
8618
|
}).strict().optional()
|
|
8363
8619
|
}),
|
|
8364
8620
|
sessionEvent("summary", {
|
|
8365
8621
|
summaryId: ContractIdentifierSchema,
|
|
8366
8622
|
runId: ContractIdentifierSchema,
|
|
8367
|
-
text:
|
|
8368
|
-
highlights:
|
|
8369
|
-
pendingItems:
|
|
8370
|
-
status:
|
|
8623
|
+
text: z8.string(),
|
|
8624
|
+
highlights: z8.array(z8.string()),
|
|
8625
|
+
pendingItems: z8.array(z8.string()),
|
|
8626
|
+
status: z8.enum(["generating", "completed", "failed"])
|
|
8371
8627
|
})
|
|
8372
8628
|
]).superRefine((value, context) => {
|
|
8373
8629
|
if (value.eventType === "steer") {
|
|
@@ -8423,14 +8679,14 @@ var AgentSessionRunEventSchema = AgentSessionEventSchema.superRefine((value, con
|
|
|
8423
8679
|
});
|
|
8424
8680
|
}
|
|
8425
8681
|
});
|
|
8426
|
-
var AgentSessionViewModelSchema =
|
|
8427
|
-
contract:
|
|
8682
|
+
var AgentSessionViewModelSchema = z8.object({
|
|
8683
|
+
contract: z8.literal("AgentSessionViewModel"),
|
|
8428
8684
|
sessionId: ContractIdentifierSchema,
|
|
8429
8685
|
snapshot: AgentSessionSnapshotSchema,
|
|
8430
8686
|
status: AgentSessionStatusSchema,
|
|
8431
|
-
events:
|
|
8432
|
-
lastSequence:
|
|
8433
|
-
resumable:
|
|
8687
|
+
events: z8.array(AgentSessionEventSchema),
|
|
8688
|
+
lastSequence: z8.number().int().min(-1),
|
|
8689
|
+
resumable: z8.boolean().default(false),
|
|
8434
8690
|
lineage: AgentSessionLineageSchema.optional(),
|
|
8435
8691
|
activeBranch: AgentSessionActiveBranchSchema.optional()
|
|
8436
8692
|
}).strict().superRefine((value, context) => {
|
|
@@ -8479,55 +8735,55 @@ var AgentSessionViewModelSchema = z7.object({
|
|
|
8479
8735
|
});
|
|
8480
8736
|
}
|
|
8481
8737
|
});
|
|
8482
|
-
var AgentWorkbenchNavigationItemStatusSchema =
|
|
8483
|
-
var AgentWorkbenchCollectionStatusSchema =
|
|
8484
|
-
var AgentWorkbenchAgentItemSchema =
|
|
8738
|
+
var AgentWorkbenchNavigationItemStatusSchema = z8.enum(["idle", "running", "completed", "error"]);
|
|
8739
|
+
var AgentWorkbenchCollectionStatusSchema = z8.enum(["loading", "ready", "error"]);
|
|
8740
|
+
var AgentWorkbenchAgentItemSchema = z8.object({
|
|
8485
8741
|
id: ContractIdentifierSchema,
|
|
8486
|
-
name:
|
|
8487
|
-
description:
|
|
8488
|
-
iconUrl:
|
|
8489
|
-
builtIn:
|
|
8490
|
-
pinned:
|
|
8491
|
-
pinPending:
|
|
8492
|
-
}).strict();
|
|
8493
|
-
var AgentWorkbenchSessionItemSchema =
|
|
8742
|
+
name: z8.string().min(1),
|
|
8743
|
+
description: z8.string().optional(),
|
|
8744
|
+
iconUrl: z8.string().url().optional(),
|
|
8745
|
+
builtIn: z8.boolean().default(false),
|
|
8746
|
+
pinned: z8.boolean().default(false),
|
|
8747
|
+
pinPending: z8.boolean().default(false)
|
|
8748
|
+
}).strict();
|
|
8749
|
+
var AgentWorkbenchSessionItemSchema = z8.object({
|
|
8494
8750
|
id: ContractIdentifierSchema,
|
|
8495
|
-
title:
|
|
8751
|
+
title: z8.string().min(1),
|
|
8496
8752
|
updatedAt: IsoDateTimeSchema,
|
|
8497
|
-
thumbnailUrl:
|
|
8753
|
+
thumbnailUrl: z8.string().url().optional(),
|
|
8498
8754
|
mode: AgentModeSchema.optional(),
|
|
8499
8755
|
status: AgentWorkbenchNavigationItemStatusSchema.default("idle"),
|
|
8500
|
-
pinned:
|
|
8501
|
-
contextUsage:
|
|
8502
|
-
usedTokens:
|
|
8503
|
-
maxTokens:
|
|
8756
|
+
pinned: z8.boolean().default(false),
|
|
8757
|
+
contextUsage: z8.object({
|
|
8758
|
+
usedTokens: z8.number().int().nonnegative(),
|
|
8759
|
+
maxTokens: z8.number().int().positive()
|
|
8504
8760
|
}).strict().optional()
|
|
8505
8761
|
}).strict();
|
|
8506
|
-
var AgentWorkbenchNavigationCapabilitiesSchema =
|
|
8507
|
-
createAgent:
|
|
8508
|
-
createSession:
|
|
8509
|
-
manageCapabilities:
|
|
8510
|
-
manageAgentSettings:
|
|
8511
|
-
pinAgents:
|
|
8512
|
-
pinSessions:
|
|
8513
|
-
renameSessions:
|
|
8514
|
-
deleteSessions:
|
|
8515
|
-
}).strict();
|
|
8516
|
-
var AgentWorkbenchNavigationViewModelSchema =
|
|
8517
|
-
contract:
|
|
8518
|
-
activeTab:
|
|
8519
|
-
searchQuery:
|
|
8762
|
+
var AgentWorkbenchNavigationCapabilitiesSchema = z8.object({
|
|
8763
|
+
createAgent: z8.boolean().default(false),
|
|
8764
|
+
createSession: z8.boolean().default(true),
|
|
8765
|
+
manageCapabilities: z8.boolean().default(false),
|
|
8766
|
+
manageAgentSettings: z8.boolean().default(false),
|
|
8767
|
+
pinAgents: z8.boolean().default(false),
|
|
8768
|
+
pinSessions: z8.boolean().default(false),
|
|
8769
|
+
renameSessions: z8.boolean().default(false),
|
|
8770
|
+
deleteSessions: z8.boolean().default(false)
|
|
8771
|
+
}).strict();
|
|
8772
|
+
var AgentWorkbenchNavigationViewModelSchema = z8.object({
|
|
8773
|
+
contract: z8.literal("AgentWorkbenchNavigationViewModel"),
|
|
8774
|
+
activeTab: z8.enum(["agents", "sessions"]).default("sessions"),
|
|
8775
|
+
searchQuery: z8.string().default(""),
|
|
8520
8776
|
selectedAgentItem: ContractIdentifierSchema.optional(),
|
|
8521
8777
|
selectedSessionItem: ContractIdentifierSchema.optional(),
|
|
8522
|
-
agents:
|
|
8778
|
+
agents: z8.object({
|
|
8523
8779
|
status: AgentWorkbenchCollectionStatusSchema,
|
|
8524
|
-
items:
|
|
8525
|
-
error:
|
|
8780
|
+
items: z8.array(AgentWorkbenchAgentItemSchema),
|
|
8781
|
+
error: z8.string().optional()
|
|
8526
8782
|
}).strict(),
|
|
8527
|
-
sessions:
|
|
8783
|
+
sessions: z8.object({
|
|
8528
8784
|
status: AgentWorkbenchCollectionStatusSchema,
|
|
8529
|
-
items:
|
|
8530
|
-
error:
|
|
8785
|
+
items: z8.array(AgentWorkbenchSessionItemSchema),
|
|
8786
|
+
error: z8.string().optional()
|
|
8531
8787
|
}).strict(),
|
|
8532
8788
|
capabilities: AgentWorkbenchNavigationCapabilitiesSchema
|
|
8533
8789
|
}).strict().superRefine((value, context) => {
|
|
@@ -8543,53 +8799,53 @@ var AgentWorkbenchNavigationViewModelSchema = z7.object({
|
|
|
8543
8799
|
validateCollection(value.agents, "agents");
|
|
8544
8800
|
validateCollection(value.sessions, "sessions");
|
|
8545
8801
|
});
|
|
8546
|
-
var AgentWorkbenchComposerStatusSchema =
|
|
8802
|
+
var AgentWorkbenchComposerStatusSchema = z8.enum([
|
|
8547
8803
|
"idle",
|
|
8548
8804
|
"loading",
|
|
8549
8805
|
"streaming",
|
|
8550
8806
|
"stopping",
|
|
8551
8807
|
"error"
|
|
8552
8808
|
]);
|
|
8553
|
-
var AgentWorkbenchComposerAttachmentSchema =
|
|
8809
|
+
var AgentWorkbenchComposerAttachmentSchema = z8.object({
|
|
8554
8810
|
id: ContractIdentifierSchema,
|
|
8555
|
-
name:
|
|
8556
|
-
mediaType:
|
|
8557
|
-
previewUrl:
|
|
8558
|
-
status:
|
|
8811
|
+
name: z8.string().min(1),
|
|
8812
|
+
mediaType: z8.string().min(1).optional(),
|
|
8813
|
+
previewUrl: z8.string().min(1).optional(),
|
|
8814
|
+
status: z8.enum(["uploading", "ready", "error"]).default("ready")
|
|
8559
8815
|
}).strict();
|
|
8560
|
-
var AgentWorkbenchComposerQueueItemSchema =
|
|
8816
|
+
var AgentWorkbenchComposerQueueItemSchema = z8.object({
|
|
8561
8817
|
id: ContractIdentifierSchema,
|
|
8562
|
-
text:
|
|
8563
|
-
attachmentCount:
|
|
8564
|
-
status:
|
|
8818
|
+
text: z8.string(),
|
|
8819
|
+
attachmentCount: z8.number().int().nonnegative().default(0),
|
|
8820
|
+
status: z8.enum(["queued", "sending", "error"]).default("queued")
|
|
8565
8821
|
}).strict();
|
|
8566
|
-
var AgentWorkbenchComposerInputActionIconSchema =
|
|
8822
|
+
var AgentWorkbenchComposerInputActionIconSchema = z8.enum([
|
|
8567
8823
|
"file-text",
|
|
8568
8824
|
"image"
|
|
8569
8825
|
]);
|
|
8570
|
-
var AgentWorkbenchComposerInputActionSchema =
|
|
8826
|
+
var AgentWorkbenchComposerInputActionSchema = z8.object({
|
|
8571
8827
|
id: ContractIdentifierSchema,
|
|
8572
|
-
label:
|
|
8828
|
+
label: z8.string().min(1),
|
|
8573
8829
|
icon: AgentWorkbenchComposerInputActionIconSchema.optional()
|
|
8574
8830
|
}).strict();
|
|
8575
|
-
var AgentWorkbenchComposerModelOptionSchema =
|
|
8831
|
+
var AgentWorkbenchComposerModelOptionSchema = z8.object({
|
|
8576
8832
|
id: ContractIdentifierSchema,
|
|
8577
|
-
label:
|
|
8578
|
-
provider:
|
|
8833
|
+
label: z8.string().min(1),
|
|
8834
|
+
provider: z8.string().min(1).optional(),
|
|
8579
8835
|
mode: AgentModeSchema,
|
|
8580
|
-
disabled:
|
|
8581
|
-
}).strict();
|
|
8582
|
-
var AgentWorkbenchComposerCapabilitiesSchema =
|
|
8583
|
-
attachments:
|
|
8584
|
-
voiceInput:
|
|
8585
|
-
webSearch:
|
|
8586
|
-
modelSelection:
|
|
8587
|
-
reasoning:
|
|
8588
|
-
permissions:
|
|
8589
|
-
queue:
|
|
8590
|
-
stop:
|
|
8591
|
-
}).strict();
|
|
8592
|
-
var AgentWorkbenchQuickStartIconSchema =
|
|
8836
|
+
disabled: z8.boolean().default(false)
|
|
8837
|
+
}).strict();
|
|
8838
|
+
var AgentWorkbenchComposerCapabilitiesSchema = z8.object({
|
|
8839
|
+
attachments: z8.boolean().default(false),
|
|
8840
|
+
voiceInput: z8.boolean().default(false),
|
|
8841
|
+
webSearch: z8.boolean().default(false),
|
|
8842
|
+
modelSelection: z8.boolean().default(false),
|
|
8843
|
+
reasoning: z8.boolean().default(false),
|
|
8844
|
+
permissions: z8.boolean().default(false),
|
|
8845
|
+
queue: z8.boolean().default(false),
|
|
8846
|
+
stop: z8.boolean().default(false)
|
|
8847
|
+
}).strict();
|
|
8848
|
+
var AgentWorkbenchQuickStartIconSchema = z8.enum([
|
|
8593
8849
|
"sparkles",
|
|
8594
8850
|
"palette",
|
|
8595
8851
|
"search",
|
|
@@ -8597,32 +8853,32 @@ var AgentWorkbenchQuickStartIconSchema = z7.enum([
|
|
|
8597
8853
|
"code",
|
|
8598
8854
|
"shopping-bag"
|
|
8599
8855
|
]);
|
|
8600
|
-
var AgentWorkbenchQuickStartTemplateActionSchema =
|
|
8601
|
-
var AgentWorkbenchQuickStartTemplateSchema =
|
|
8856
|
+
var AgentWorkbenchQuickStartTemplateActionSchema = z8.enum(["prompt", "upload"]);
|
|
8857
|
+
var AgentWorkbenchQuickStartTemplateSchema = z8.object({
|
|
8602
8858
|
id: ContractIdentifierSchema,
|
|
8603
|
-
title:
|
|
8604
|
-
description:
|
|
8605
|
-
prompt:
|
|
8859
|
+
title: z8.string().min(1),
|
|
8860
|
+
description: z8.string().min(1).optional(),
|
|
8861
|
+
prompt: z8.string().min(1),
|
|
8606
8862
|
action: AgentWorkbenchQuickStartTemplateActionSchema.default("prompt"),
|
|
8607
8863
|
icon: AgentWorkbenchQuickStartIconSchema.optional(),
|
|
8608
|
-
coverImageUrl:
|
|
8609
|
-
accept:
|
|
8610
|
-
multiple:
|
|
8611
|
-
modes:
|
|
8864
|
+
coverImageUrl: z8.string().min(1).optional(),
|
|
8865
|
+
accept: z8.string().min(1).default("*/*"),
|
|
8866
|
+
multiple: z8.boolean().default(false),
|
|
8867
|
+
modes: z8.array(AgentModeSchema).min(1).optional()
|
|
8612
8868
|
}).strict();
|
|
8613
|
-
var AgentWorkbenchQuickStartSectionSchema =
|
|
8869
|
+
var AgentWorkbenchQuickStartSectionSchema = z8.object({
|
|
8614
8870
|
id: ContractIdentifierSchema,
|
|
8615
|
-
label:
|
|
8616
|
-
templates:
|
|
8871
|
+
label: z8.string().min(1),
|
|
8872
|
+
templates: z8.array(AgentWorkbenchQuickStartTemplateSchema).min(1)
|
|
8617
8873
|
}).strict();
|
|
8618
|
-
var AgentWorkbenchQuickStartCategorySchema =
|
|
8874
|
+
var AgentWorkbenchQuickStartCategorySchema = z8.object({
|
|
8619
8875
|
id: ContractIdentifierSchema,
|
|
8620
|
-
label:
|
|
8876
|
+
label: z8.string().min(1),
|
|
8621
8877
|
icon: AgentWorkbenchQuickStartIconSchema.optional(),
|
|
8622
|
-
sections:
|
|
8878
|
+
sections: z8.array(AgentWorkbenchQuickStartSectionSchema).min(1)
|
|
8623
8879
|
}).strict();
|
|
8624
|
-
var AgentWorkbenchSidebarNavigationModeSchema =
|
|
8625
|
-
var AgentWorkbenchSidebarSectionSchema =
|
|
8880
|
+
var AgentWorkbenchSidebarNavigationModeSchema = z8.enum(["default", "session", "trend"]);
|
|
8881
|
+
var AgentWorkbenchSidebarSectionSchema = z8.enum([
|
|
8626
8882
|
"header",
|
|
8627
8883
|
"search",
|
|
8628
8884
|
"new-session",
|
|
@@ -8631,33 +8887,33 @@ var AgentWorkbenchSidebarSectionSchema = z7.enum([
|
|
|
8631
8887
|
"groups",
|
|
8632
8888
|
"footer"
|
|
8633
8889
|
]);
|
|
8634
|
-
var AgentWorkbenchSidebarGroupItemSchema =
|
|
8890
|
+
var AgentWorkbenchSidebarGroupItemSchema = z8.object({
|
|
8635
8891
|
id: ContractIdentifierSchema,
|
|
8636
|
-
title:
|
|
8637
|
-
subtitle:
|
|
8638
|
-
imageUrl:
|
|
8892
|
+
title: z8.string().trim().min(1).max(120),
|
|
8893
|
+
subtitle: z8.string().trim().min(1).max(240).optional(),
|
|
8894
|
+
imageUrl: z8.string().trim().min(1).max(2048).optional(),
|
|
8639
8895
|
/** Optional legacy prompt. Trend workbenches may use items as static report selectors. */
|
|
8640
|
-
prompt:
|
|
8641
|
-
mediaVariant:
|
|
8642
|
-
mediaTreatment:
|
|
8896
|
+
prompt: z8.string().trim().min(1).max(1e4).optional(),
|
|
8897
|
+
mediaVariant: z8.enum(["cover", "cover-with-label", "logo"]).optional(),
|
|
8898
|
+
mediaTreatment: z8.enum(["preserve", "monochrome-light", "invert"]).optional()
|
|
8643
8899
|
}).strict();
|
|
8644
|
-
var AgentWorkbenchSidebarGroupSchema =
|
|
8900
|
+
var AgentWorkbenchSidebarGroupSchema = z8.object({
|
|
8645
8901
|
id: ContractIdentifierSchema,
|
|
8646
|
-
label:
|
|
8647
|
-
items:
|
|
8648
|
-
itemAspectRatio:
|
|
8902
|
+
label: z8.string().trim().min(1).max(120),
|
|
8903
|
+
items: z8.array(AgentWorkbenchSidebarGroupItemSchema).min(1).max(50),
|
|
8904
|
+
itemAspectRatio: z8.number().positive().max(10).optional()
|
|
8649
8905
|
}).strict();
|
|
8650
|
-
var AgentWorkbenchSidebarConfigSchema =
|
|
8906
|
+
var AgentWorkbenchSidebarConfigSchema = z8.object({
|
|
8651
8907
|
navigationMode: AgentWorkbenchSidebarNavigationModeSchema.optional(),
|
|
8652
|
-
defaultOpen:
|
|
8908
|
+
defaultOpen: z8.boolean().optional(),
|
|
8653
8909
|
/** Initial sidebar width as a percentage of the workbench split pane. */
|
|
8654
|
-
widthPercent:
|
|
8655
|
-
visibleSections:
|
|
8656
|
-
groups:
|
|
8910
|
+
widthPercent: z8.number().int().min(10).max(40).optional(),
|
|
8911
|
+
visibleSections: z8.array(AgentWorkbenchSidebarSectionSchema).min(1).max(7).optional(),
|
|
8912
|
+
groups: z8.array(AgentWorkbenchSidebarGroupSchema).max(20).optional(),
|
|
8657
8913
|
defaultGroupId: ContractIdentifierSchema.optional(),
|
|
8658
|
-
quickStartEnabled:
|
|
8659
|
-
quickStartCategories:
|
|
8660
|
-
trendEntryEnabled:
|
|
8914
|
+
quickStartEnabled: z8.boolean().optional(),
|
|
8915
|
+
quickStartCategories: z8.array(AgentWorkbenchQuickStartCategorySchema).max(20).optional(),
|
|
8916
|
+
trendEntryEnabled: z8.boolean().optional()
|
|
8661
8917
|
}).strict().superRefine((value, context) => {
|
|
8662
8918
|
if (value.visibleSections && new Set(value.visibleSections).size !== value.visibleSections.length) {
|
|
8663
8919
|
context.addIssue({
|
|
@@ -8697,33 +8953,33 @@ function resolveAgentWorkbenchSidebarConfig(config) {
|
|
|
8697
8953
|
trendEntryEnabled: parsed.trendEntryEnabled ?? navigationMode === "trend"
|
|
8698
8954
|
};
|
|
8699
8955
|
}
|
|
8700
|
-
var AgentWorkbenchQuickStartViewModelSchema =
|
|
8701
|
-
contract:
|
|
8956
|
+
var AgentWorkbenchQuickStartViewModelSchema = z8.object({
|
|
8957
|
+
contract: z8.literal("AgentWorkbenchQuickStartViewModel"),
|
|
8702
8958
|
mode: AgentModeSchema,
|
|
8703
|
-
categories:
|
|
8704
|
-
disabled:
|
|
8959
|
+
categories: z8.array(AgentWorkbenchQuickStartCategorySchema).min(1),
|
|
8960
|
+
disabled: z8.boolean().default(false)
|
|
8705
8961
|
}).strict();
|
|
8706
|
-
var AgentWorkbenchComposerViewModelSchema =
|
|
8707
|
-
contract:
|
|
8708
|
-
value:
|
|
8962
|
+
var AgentWorkbenchComposerViewModelSchema = z8.object({
|
|
8963
|
+
contract: z8.literal("AgentWorkbenchComposerViewModel"),
|
|
8964
|
+
value: z8.string().default(""),
|
|
8709
8965
|
status: AgentWorkbenchComposerStatusSchema.default("idle"),
|
|
8710
8966
|
mode: AgentModeSchema,
|
|
8711
|
-
placeholder:
|
|
8712
|
-
attachments:
|
|
8713
|
-
queuedDrafts:
|
|
8714
|
-
inputActions:
|
|
8967
|
+
placeholder: z8.string().optional(),
|
|
8968
|
+
attachments: z8.array(AgentWorkbenchComposerAttachmentSchema).default([]),
|
|
8969
|
+
queuedDrafts: z8.array(AgentWorkbenchComposerQueueItemSchema).default([]),
|
|
8970
|
+
inputActions: z8.array(AgentWorkbenchComposerInputActionSchema).default([]),
|
|
8715
8971
|
selectedInputActionId: ContractIdentifierSchema.optional(),
|
|
8716
|
-
model:
|
|
8972
|
+
model: z8.object({
|
|
8717
8973
|
selectedId: ContractIdentifierSchema.optional(),
|
|
8718
|
-
options:
|
|
8974
|
+
options: z8.array(AgentWorkbenchComposerModelOptionSchema)
|
|
8719
8975
|
}).strict(),
|
|
8720
|
-
reasoning:
|
|
8721
|
-
value:
|
|
8722
|
-
options:
|
|
8976
|
+
reasoning: z8.object({
|
|
8977
|
+
value: z8.enum(["low", "medium", "high", "xhigh"]),
|
|
8978
|
+
options: z8.array(z8.enum(["low", "medium", "high", "xhigh"])).min(1)
|
|
8723
8979
|
}).strict().optional(),
|
|
8724
8980
|
permissionProfile: AgentSessionPermissionProfileSchema.optional(),
|
|
8725
|
-
webSearchEnabled:
|
|
8726
|
-
error:
|
|
8981
|
+
webSearchEnabled: z8.boolean().default(false),
|
|
8982
|
+
error: z8.string().optional(),
|
|
8727
8983
|
capabilities: AgentWorkbenchComposerCapabilitiesSchema
|
|
8728
8984
|
}).strict().superRefine((value, context) => {
|
|
8729
8985
|
if (value.status === "error" && !value.error) {
|
|
@@ -8754,81 +9010,81 @@ var normalizeAgentMode = normalizeStudioAgentMode;
|
|
|
8754
9010
|
var normalizeAgentExecutionMode = normalizeStudioAgentMode;
|
|
8755
9011
|
|
|
8756
9012
|
// src/contracts/aggregate-commit.ts
|
|
8757
|
-
import { z as
|
|
8758
|
-
var AggregateIdentifierSchema =
|
|
8759
|
-
var AggregateRequestIdentifierSchema =
|
|
9013
|
+
import { z as z9 } from "zod";
|
|
9014
|
+
var AggregateIdentifierSchema = z9.string().trim().min(1).max(128);
|
|
9015
|
+
var AggregateRequestIdentifierSchema = z9.string().trim().min(1).max(256);
|
|
8760
9016
|
var AggregateMutationsLimit = 500;
|
|
8761
|
-
var AggregateAssetSchema =
|
|
9017
|
+
var AggregateAssetSchema = z9.object({
|
|
8762
9018
|
id: AggregateIdentifierSchema,
|
|
8763
|
-
name:
|
|
9019
|
+
name: z9.string().trim().min(1).max(500),
|
|
8764
9020
|
asset_type: AggregateIdentifierSchema,
|
|
8765
9021
|
primary_content: JsonObjectSchema,
|
|
8766
|
-
status:
|
|
9022
|
+
status: z9.string().trim().min(1).max(64).optional(),
|
|
8767
9023
|
creator_user_id: AggregateIdentifierSchema.optional(),
|
|
8768
9024
|
properties: JsonObjectSchema.optional(),
|
|
8769
|
-
files:
|
|
8770
|
-
media:
|
|
8771
|
-
thumbnail:
|
|
9025
|
+
files: z9.array(JsonObjectSchema).max(100).optional(),
|
|
9026
|
+
media: z9.string().max(4096).optional(),
|
|
9027
|
+
thumbnail: z9.string().max(4096).optional(),
|
|
8772
9028
|
media_ref: JsonObjectSchema.optional(),
|
|
8773
|
-
keywords:
|
|
9029
|
+
keywords: z9.string().max(2e3).optional(),
|
|
8774
9030
|
extra: JsonObjectSchema.optional(),
|
|
8775
|
-
sort:
|
|
9031
|
+
sort: z9.number().int().nonnegative().optional()
|
|
8776
9032
|
}).strict();
|
|
8777
|
-
var AggregateAssetUpsertSchema =
|
|
9033
|
+
var AggregateAssetUpsertSchema = z9.object({
|
|
8778
9034
|
ontology_id: AggregateIdentifierSchema,
|
|
8779
9035
|
asset: AggregateAssetSchema,
|
|
8780
|
-
tag_ids:
|
|
9036
|
+
tag_ids: z9.array(AggregateIdentifierSchema).max(200).optional()
|
|
8781
9037
|
}).strict();
|
|
8782
|
-
var AggregateAssetDeleteSchema =
|
|
9038
|
+
var AggregateAssetDeleteSchema = z9.object({
|
|
8783
9039
|
ontology_id: AggregateIdentifierSchema,
|
|
8784
9040
|
asset_id: AggregateIdentifierSchema
|
|
8785
9041
|
}).strict();
|
|
8786
|
-
var AggregateFeatureValueWriteSchema =
|
|
9042
|
+
var AggregateFeatureValueWriteSchema = z9.object({
|
|
8787
9043
|
ontology_id: AggregateIdentifierSchema,
|
|
8788
9044
|
asset_id: AggregateIdentifierSchema,
|
|
8789
9045
|
column_id: AggregateIdentifierSchema,
|
|
8790
|
-
value_text:
|
|
9046
|
+
value_text: z9.string().max(1e6).nullable()
|
|
8791
9047
|
}).strict();
|
|
8792
|
-
var AggregateFeatureRelationTargetSchema =
|
|
9048
|
+
var AggregateFeatureRelationTargetSchema = z9.object({
|
|
8793
9049
|
ontology_id: AggregateIdentifierSchema,
|
|
8794
9050
|
asset_id: AggregateIdentifierSchema
|
|
8795
9051
|
}).strict();
|
|
8796
|
-
var AggregateFeatureRelationReplaceSchema =
|
|
9052
|
+
var AggregateFeatureRelationReplaceSchema = z9.object({
|
|
8797
9053
|
ontology_id: AggregateIdentifierSchema,
|
|
8798
9054
|
asset_id: AggregateIdentifierSchema,
|
|
8799
9055
|
column_id: AggregateIdentifierSchema,
|
|
8800
|
-
targets:
|
|
9056
|
+
targets: z9.array(AggregateFeatureRelationTargetSchema).max(AggregateMutationsLimit)
|
|
8801
9057
|
}).strict();
|
|
8802
|
-
var AggregateAssetRelationObjectSchema =
|
|
8803
|
-
object_kind:
|
|
8804
|
-
object_id:
|
|
9058
|
+
var AggregateAssetRelationObjectSchema = z9.object({
|
|
9059
|
+
object_kind: z9.string().trim().min(1).max(64),
|
|
9060
|
+
object_id: z9.string().trim().min(1).max(256),
|
|
8805
9061
|
properties: JsonObjectSchema.optional()
|
|
8806
9062
|
}).strict();
|
|
8807
|
-
var AggregateAssetRelationReplaceSchema =
|
|
9063
|
+
var AggregateAssetRelationReplaceSchema = z9.object({
|
|
8808
9064
|
ontology_id: AggregateIdentifierSchema,
|
|
8809
9065
|
asset_id: AggregateIdentifierSchema,
|
|
8810
|
-
relation_kind:
|
|
8811
|
-
objects:
|
|
9066
|
+
relation_kind: z9.string().trim().min(1).max(64),
|
|
9067
|
+
objects: z9.array(AggregateAssetRelationObjectSchema).max(AggregateMutationsLimit)
|
|
8812
9068
|
}).strict();
|
|
8813
|
-
var AggregateContainerMembershipWriteSchema =
|
|
9069
|
+
var AggregateContainerMembershipWriteSchema = z9.object({
|
|
8814
9070
|
ontology_id: AggregateIdentifierSchema,
|
|
8815
9071
|
container_view_id: AggregateIdentifierSchema,
|
|
8816
9072
|
asset_id: AggregateIdentifierSchema,
|
|
8817
|
-
present:
|
|
9073
|
+
present: z9.boolean()
|
|
8818
9074
|
}).strict();
|
|
8819
|
-
var AggregateCommitRequestSchema =
|
|
8820
|
-
contract:
|
|
9075
|
+
var AggregateCommitRequestSchema = z9.object({
|
|
9076
|
+
contract: z9.literal("AggregateCommitRequest"),
|
|
8821
9077
|
aggregate_id: AggregateIdentifierSchema,
|
|
8822
9078
|
request_id: AggregateRequestIdentifierSchema,
|
|
8823
9079
|
idempotency_key: AggregateIdentifierSchema,
|
|
8824
9080
|
expected_head_commit_id: AggregateIdentifierSchema.optional(),
|
|
8825
|
-
message:
|
|
8826
|
-
assets:
|
|
8827
|
-
asset_deletes:
|
|
8828
|
-
feature_values:
|
|
8829
|
-
feature_relations:
|
|
8830
|
-
asset_relations:
|
|
8831
|
-
container_memberships:
|
|
9081
|
+
message: z9.string().trim().max(500).optional(),
|
|
9082
|
+
assets: z9.array(AggregateAssetUpsertSchema).max(AggregateMutationsLimit).optional(),
|
|
9083
|
+
asset_deletes: z9.array(AggregateAssetDeleteSchema).max(AggregateMutationsLimit).optional(),
|
|
9084
|
+
feature_values: z9.array(AggregateFeatureValueWriteSchema).max(AggregateMutationsLimit).optional(),
|
|
9085
|
+
feature_relations: z9.array(AggregateFeatureRelationReplaceSchema).max(AggregateMutationsLimit).optional(),
|
|
9086
|
+
asset_relations: z9.array(AggregateAssetRelationReplaceSchema).max(AggregateMutationsLimit).optional(),
|
|
9087
|
+
container_memberships: z9.array(AggregateContainerMembershipWriteSchema).max(AggregateMutationsLimit).optional()
|
|
8832
9088
|
}).strict().superRefine((request, context) => {
|
|
8833
9089
|
const mutationCount = (request.assets?.length ?? 0) + (request.asset_deletes?.length ?? 0) + (request.feature_values?.length ?? 0) + (request.feature_relations?.length ?? 0) + (request.asset_relations?.length ?? 0) + (request.container_memberships?.length ?? 0);
|
|
8834
9090
|
if (mutationCount === 0) {
|
|
@@ -8836,167 +9092,6 @@ var AggregateCommitRequestSchema = z8.object({
|
|
|
8836
9092
|
}
|
|
8837
9093
|
});
|
|
8838
9094
|
|
|
8839
|
-
// src/contracts/page-expression.ts
|
|
8840
|
-
import { z as z9 } from "zod";
|
|
8841
|
-
var PageMemberSchema = z9.string().min(1).max(256).refine(
|
|
8842
|
-
(value) => !["__proto__", "prototype", "constructor"].includes(value),
|
|
8843
|
-
"Unsafe Page member."
|
|
8844
|
-
);
|
|
8845
|
-
var PageValuePathSchema = z9.array(PageMemberSchema).max(16);
|
|
8846
|
-
var PageExpressionRootSchema = z9.enum(["state", "model", "bindings", "queries", "scope", "intent", "result", "actions", "parameters"]);
|
|
8847
|
-
var PageOperatorSchema = z9.enum([
|
|
8848
|
-
"add",
|
|
8849
|
-
"subtract",
|
|
8850
|
-
"multiply",
|
|
8851
|
-
"divide",
|
|
8852
|
-
"min",
|
|
8853
|
-
"max",
|
|
8854
|
-
"round",
|
|
8855
|
-
"equals",
|
|
8856
|
-
"not-equals",
|
|
8857
|
-
"less-than",
|
|
8858
|
-
"less-or-equal",
|
|
8859
|
-
"greater-than",
|
|
8860
|
-
"greater-or-equal",
|
|
8861
|
-
"and",
|
|
8862
|
-
"or",
|
|
8863
|
-
"not",
|
|
8864
|
-
"coalesce",
|
|
8865
|
-
"concat",
|
|
8866
|
-
"string",
|
|
8867
|
-
"number",
|
|
8868
|
-
"length",
|
|
8869
|
-
"includes",
|
|
8870
|
-
"get",
|
|
8871
|
-
"set-path",
|
|
8872
|
-
"merge",
|
|
8873
|
-
"entries",
|
|
8874
|
-
"from-entries",
|
|
8875
|
-
"array-concat",
|
|
8876
|
-
"slice",
|
|
8877
|
-
"trim",
|
|
8878
|
-
"fixed",
|
|
8879
|
-
"number-format",
|
|
8880
|
-
"encode-uri-component"
|
|
8881
|
-
]);
|
|
8882
|
-
var RecursivePageExpressionSchema = z9.lazy(() => z9.discriminatedUnion("kind", [
|
|
8883
|
-
z9.object({ kind: z9.literal("literal"), value: JsonValueSchema }).strict(),
|
|
8884
|
-
z9.object({ kind: z9.literal("read"), root: PageExpressionRootSchema, path: PageValuePathSchema }).strict(),
|
|
8885
|
-
z9.object({ kind: z9.literal("operator"), operator: PageOperatorSchema, arguments: z9.array(RecursivePageExpressionSchema).min(1).max(32) }).strict(),
|
|
8886
|
-
z9.object({ kind: z9.literal("conditional"), condition: RecursivePageExpressionSchema, then: RecursivePageExpressionSchema, else: RecursivePageExpressionSchema }).strict(),
|
|
8887
|
-
z9.object({ kind: z9.literal("object"), fields: z9.record(PageMemberSchema, RecursivePageExpressionSchema) }).strict(),
|
|
8888
|
-
z9.object({ kind: z9.literal("array"), items: z9.array(RecursivePageExpressionSchema).max(1e3) }).strict(),
|
|
8889
|
-
...["map", "filter", "sum"].map((kind) => z9.object({ kind: z9.literal(kind), source: RecursivePageExpressionSchema, value: RecursivePageExpressionSchema }).strict())
|
|
8890
|
-
]));
|
|
8891
|
-
var PAGE_EXPRESSION_LIMITS = Object.freeze({ depth: 32, nodes: 4096, operations: 2e4, collection: 1e3, bytes: 1048576 });
|
|
8892
|
-
var PAGE_EXPRESSION_VALUE_LIMITS = Object.freeze({ depth: 32, nodes: 262144, collection: 1e3, bytes: 16777216 });
|
|
8893
|
-
var assertValueBudget = (value, limits) => {
|
|
8894
|
-
if (value === null || typeof value !== "object") {
|
|
8895
|
-
if (typeof value === "string" && value.length * 2 > limits.bytes) throw new Error("PAGE_EXPRESSION_BUDGET");
|
|
8896
|
-
return;
|
|
8897
|
-
}
|
|
8898
|
-
const queue = [{ value, depth: 0 }];
|
|
8899
|
-
let nodes = 0;
|
|
8900
|
-
let bytes = 0;
|
|
8901
|
-
while (queue.length) {
|
|
8902
|
-
const item = queue.pop();
|
|
8903
|
-
if (++nodes > limits.nodes || item.depth > limits.depth) throw new Error("PAGE_EXPRESSION_BUDGET");
|
|
8904
|
-
if (limits === PAGE_EXPRESSION_VALUE_LIMITS && Array.isArray(item.value) && item.value.length > limits.collection) throw new Error("PAGE_EXPRESSION_BUDGET");
|
|
8905
|
-
if (typeof item.value === "string") bytes += item.value.length * 2;
|
|
8906
|
-
if (item.value && typeof item.value === "object") {
|
|
8907
|
-
for (const [key, child] of Object.entries(item.value)) {
|
|
8908
|
-
bytes += key.length * 2;
|
|
8909
|
-
if (["__proto__", "prototype", "constructor"].includes(key)) throw new Error("PAGE_EXPRESSION_UNSAFE_PATH");
|
|
8910
|
-
if (queue.length >= limits.nodes) throw new Error("PAGE_EXPRESSION_BUDGET");
|
|
8911
|
-
queue.push({ value: child, depth: item.depth + 1 });
|
|
8912
|
-
}
|
|
8913
|
-
}
|
|
8914
|
-
if (bytes > limits.bytes) throw new Error("PAGE_EXPRESSION_BUDGET");
|
|
8915
|
-
}
|
|
8916
|
-
};
|
|
8917
|
-
var assertPageValueBudget = (value) => assertValueBudget(value, PAGE_EXPRESSION_LIMITS);
|
|
8918
|
-
var assertPageExpressionValueBudget = (value) => assertValueBudget(value, PAGE_EXPRESSION_VALUE_LIMITS);
|
|
8919
|
-
var PageExpressionSchema = z9.unknown().superRefine((value, context) => {
|
|
8920
|
-
try {
|
|
8921
|
-
assertPageValueBudget(value);
|
|
8922
|
-
} catch (error) {
|
|
8923
|
-
context.addIssue({ code: "custom", message: error instanceof Error ? error.message : "PAGE_EXPRESSION_BUDGET" });
|
|
8924
|
-
}
|
|
8925
|
-
}).pipe(RecursivePageExpressionSchema);
|
|
8926
|
-
var PagePropertyBindingSchema = z9.object({
|
|
8927
|
-
targetPath: PageValuePathSchema.min(1),
|
|
8928
|
-
expression: PageExpressionSchema,
|
|
8929
|
-
valueType: z9.enum(["string", "number", "boolean", "object", "array", "null"]).optional()
|
|
8930
|
-
}).strict();
|
|
8931
|
-
var visitPageExpression = (expression, visit) => {
|
|
8932
|
-
visit(expression);
|
|
8933
|
-
switch (expression.kind) {
|
|
8934
|
-
case "operator":
|
|
8935
|
-
expression.arguments.forEach((node) => visitPageExpression(node, visit));
|
|
8936
|
-
break;
|
|
8937
|
-
case "conditional":
|
|
8938
|
-
[expression.condition, expression.then, expression.else].forEach((node) => visitPageExpression(node, visit));
|
|
8939
|
-
break;
|
|
8940
|
-
case "object":
|
|
8941
|
-
Object.values(expression.fields).forEach((node) => visitPageExpression(node, visit));
|
|
8942
|
-
break;
|
|
8943
|
-
case "array":
|
|
8944
|
-
expression.items.forEach((node) => visitPageExpression(node, visit));
|
|
8945
|
-
break;
|
|
8946
|
-
case "map":
|
|
8947
|
-
case "filter":
|
|
8948
|
-
case "sum":
|
|
8949
|
-
visitPageExpression(expression.source, visit);
|
|
8950
|
-
visitPageExpression(expression.value, visit);
|
|
8951
|
-
break;
|
|
8952
|
-
}
|
|
8953
|
-
};
|
|
8954
|
-
var collectPageExpressionReads = (expression) => {
|
|
8955
|
-
const reads = [];
|
|
8956
|
-
visitPageExpression(expression, (node) => {
|
|
8957
|
-
if (node.kind === "read") reads.push(node);
|
|
8958
|
-
});
|
|
8959
|
-
return reads;
|
|
8960
|
-
};
|
|
8961
|
-
var collectExternalPageExpressionReads = (expression) => {
|
|
8962
|
-
const reads = [];
|
|
8963
|
-
const visit = (node, depth) => {
|
|
8964
|
-
if (node.kind === "read") {
|
|
8965
|
-
let remaining = depth;
|
|
8966
|
-
let index = 0;
|
|
8967
|
-
while (remaining > 0 && node.path[index] === "parent") {
|
|
8968
|
-
remaining -= 1;
|
|
8969
|
-
index += 1;
|
|
8970
|
-
}
|
|
8971
|
-
const local = node.root === "scope" && remaining > 0 && ["item", "index"].includes(node.path[index]);
|
|
8972
|
-
if (!local) reads.push(node);
|
|
8973
|
-
return;
|
|
8974
|
-
}
|
|
8975
|
-
switch (node.kind) {
|
|
8976
|
-
case "operator":
|
|
8977
|
-
node.arguments.forEach((child) => visit(child, depth));
|
|
8978
|
-
break;
|
|
8979
|
-
case "conditional":
|
|
8980
|
-
[node.condition, node.then, node.else].forEach((child) => visit(child, depth));
|
|
8981
|
-
break;
|
|
8982
|
-
case "object":
|
|
8983
|
-
Object.values(node.fields).forEach((child) => visit(child, depth));
|
|
8984
|
-
break;
|
|
8985
|
-
case "array":
|
|
8986
|
-
node.items.forEach((child) => visit(child, depth));
|
|
8987
|
-
break;
|
|
8988
|
-
case "map":
|
|
8989
|
-
case "filter":
|
|
8990
|
-
case "sum":
|
|
8991
|
-
visit(node.source, depth);
|
|
8992
|
-
visit(node.value, depth + 1);
|
|
8993
|
-
break;
|
|
8994
|
-
}
|
|
8995
|
-
};
|
|
8996
|
-
visit(expression, 0);
|
|
8997
|
-
return reads;
|
|
8998
|
-
};
|
|
8999
|
-
|
|
9000
9095
|
// src/contracts/render.ts
|
|
9001
9096
|
import { z as z10 } from "zod";
|
|
9002
9097
|
var ProductContextSchema = z10.enum(["studio", "kernel"]);
|
|
@@ -9289,13 +9384,7 @@ var requirePinnedOwnedRef = (reference, expectedKind, path2, context) => {
|
|
|
9289
9384
|
});
|
|
9290
9385
|
}
|
|
9291
9386
|
};
|
|
9292
|
-
var RenderDynamicLayoutSchema =
|
|
9293
|
-
visibleWhen: PageExpressionSchema.optional(),
|
|
9294
|
-
columns: PageExpressionSchema.optional(),
|
|
9295
|
-
gridTemplateColumns: PageExpressionSchema.optional(),
|
|
9296
|
-
flex: PageExpressionSchema.optional(),
|
|
9297
|
-
bentoSurface: PageExpressionSchema.optional()
|
|
9298
|
-
}).strict();
|
|
9387
|
+
var RenderDynamicLayoutSchema = BentoDynamicLayoutSchema;
|
|
9299
9388
|
var RenderBentoBindingSchema = z10.union([
|
|
9300
9389
|
ViewSqlStatementSchema,
|
|
9301
9390
|
z10.object({
|
|
@@ -9312,6 +9401,15 @@ var RenderBentoBindingSchema = z10.union([
|
|
|
9312
9401
|
kind: z10.literal("ontology-view"),
|
|
9313
9402
|
viewId: ContractIdentifierSchema
|
|
9314
9403
|
}).strict(),
|
|
9404
|
+
z10.object({
|
|
9405
|
+
kind: z10.literal("artifact.body"),
|
|
9406
|
+
session: z10.enum(["loro", "aggregate"]).default("loro"),
|
|
9407
|
+
slice: ContractIdentifierSchema.optional()
|
|
9408
|
+
}).strict(),
|
|
9409
|
+
z10.object({
|
|
9410
|
+
kind: z10.literal("record.fields"),
|
|
9411
|
+
recordRef: ContractIdentifierSchema.default("subject")
|
|
9412
|
+
}).strict(),
|
|
9315
9413
|
RenderBentoOntologyRelationBindingSchema,
|
|
9316
9414
|
RenderBentoOntologyActionBindingSchema,
|
|
9317
9415
|
z10.object({
|
|
@@ -22598,10 +22696,26 @@ export {
|
|
|
22598
22696
|
ArtifactAccessSchema,
|
|
22599
22697
|
ArtifactManifestSchema,
|
|
22600
22698
|
OutputRecordSchema,
|
|
22699
|
+
PageMemberSchema,
|
|
22700
|
+
PageValuePathSchema,
|
|
22701
|
+
PageExpressionRootSchema,
|
|
22702
|
+
PageOperatorSchema,
|
|
22703
|
+
PAGE_EXPRESSION_LIMITS,
|
|
22704
|
+
PAGE_EXPRESSION_VALUE_LIMITS,
|
|
22705
|
+
assertPageValueBudget,
|
|
22706
|
+
assertPageExpressionValueBudget,
|
|
22707
|
+
PageExpressionSchema,
|
|
22708
|
+
PagePropertyBindingSchema,
|
|
22709
|
+
visitPageExpression,
|
|
22710
|
+
collectPageExpressionReads,
|
|
22711
|
+
collectExternalPageExpressionReads,
|
|
22601
22712
|
BENTO_GRID_COLUMNS,
|
|
22602
22713
|
BENTO_GRID_MIN_W,
|
|
22603
22714
|
BENTO_GRID_MIN_H,
|
|
22604
22715
|
BENTO_GRID_MAX_ROWS,
|
|
22716
|
+
BentoDynamicLayoutSchema,
|
|
22717
|
+
ViewVisibilityScopeSchema,
|
|
22718
|
+
ViewShareDirectionSchema,
|
|
22605
22719
|
ViewSqlWhereSchema,
|
|
22606
22720
|
ViewSqlFilterNodeSchema,
|
|
22607
22721
|
ViewSqlOrderBySchema,
|
|
@@ -22616,6 +22730,8 @@ export {
|
|
|
22616
22730
|
ViewSqlGraphSpecSchema,
|
|
22617
22731
|
ViewSqlCachePolicySchema,
|
|
22618
22732
|
ViewSqlFromSourceSchema,
|
|
22733
|
+
ViewFacetDimensionSchema,
|
|
22734
|
+
ViewSqlFacetsStatementSchema,
|
|
22619
22735
|
ViewSqlAggregateStatementSchema,
|
|
22620
22736
|
ViewSqlStatementSchema,
|
|
22621
22737
|
ViewDataDeclarationSchema,
|
|
@@ -22625,6 +22741,13 @@ export {
|
|
|
22625
22741
|
RenderBentoOntologyActionBindingSchema,
|
|
22626
22742
|
BentoActionResultSchema,
|
|
22627
22743
|
BlockDataSourceSchema,
|
|
22744
|
+
TableColumnGroupConfigSchema,
|
|
22745
|
+
TableBlockConfigSchema,
|
|
22746
|
+
GalleryBadgeConfigSchema,
|
|
22747
|
+
GalleryBlockConfigSchema,
|
|
22748
|
+
FacetFieldConfigSchema,
|
|
22749
|
+
FilterBarBlockConfigSchema,
|
|
22750
|
+
RecordDetailBlockConfigSchema,
|
|
22628
22751
|
BlockSpecSchema,
|
|
22629
22752
|
BentoWiringRuleSchema,
|
|
22630
22753
|
BentoGridRectSchema,
|
|
@@ -22756,19 +22879,6 @@ export {
|
|
|
22756
22879
|
AggregateAssetRelationReplaceSchema,
|
|
22757
22880
|
AggregateContainerMembershipWriteSchema,
|
|
22758
22881
|
AggregateCommitRequestSchema,
|
|
22759
|
-
PageMemberSchema,
|
|
22760
|
-
PageValuePathSchema,
|
|
22761
|
-
PageExpressionRootSchema,
|
|
22762
|
-
PageOperatorSchema,
|
|
22763
|
-
PAGE_EXPRESSION_LIMITS,
|
|
22764
|
-
PAGE_EXPRESSION_VALUE_LIMITS,
|
|
22765
|
-
assertPageValueBudget,
|
|
22766
|
-
assertPageExpressionValueBudget,
|
|
22767
|
-
PageExpressionSchema,
|
|
22768
|
-
PagePropertyBindingSchema,
|
|
22769
|
-
visitPageExpression,
|
|
22770
|
-
collectPageExpressionReads,
|
|
22771
|
-
collectExternalPageExpressionReads,
|
|
22772
22882
|
ProductContextSchema,
|
|
22773
22883
|
RenderNodeStateSchema,
|
|
22774
22884
|
RenderNodeKindSchema,
|
|
@@ -23286,4 +23396,4 @@ export {
|
|
|
23286
23396
|
ViewShareLinkPolicySchema,
|
|
23287
23397
|
ViewOntologyRecordSchema
|
|
23288
23398
|
};
|
|
23289
|
-
//# sourceMappingURL=chunk-
|
|
23399
|
+
//# sourceMappingURL=chunk-H5Z4GWPV.mjs.map
|