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