@stndrds/schema 1.0.0-alpha.96 → 1.0.0-alpha.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{attributes-Btn-GLvC.d.ts → attributes-C-bhC0k5.d.ts} +5 -6
- package/dist/{attributes-CeDp1IMp.d.mts → attributes-DB76JqXm.d.mts} +5 -6
- package/dist/{index-telccAkt.d.ts → index-Bt-0XNSh.d.ts} +5 -143
- package/dist/{index-CvXnHxD2.d.mts → index-C9tOwUbK.d.mts} +5 -143
- package/dist/index.d.mts +147 -676
- package/dist/index.d.ts +147 -676
- package/dist/index.js +4 -281
- package/dist/index.mjs +5 -273
- package/dist/{types-B5Zhhoev.d.ts → types-B7nS2D1A.d.ts} +1 -1
- package/dist/{types-C6naks1H.d.mts → types-CjXbGsy8.d.mts} +1 -1
- package/dist/validation/all.d.mts +3 -3
- package/dist/validation/all.d.ts +3 -3
- package/dist/validation/complex/currency.d.mts +2 -2
- package/dist/validation/complex/currency.d.ts +2 -2
- package/dist/validation/complex/file.d.mts +2 -2
- package/dist/validation/complex/file.d.ts +2 -2
- package/dist/validation/complex/location.d.mts +2 -2
- package/dist/validation/complex/location.d.ts +2 -2
- package/dist/validation/complex/phone.d.mts +2 -2
- package/dist/validation/complex/phone.d.ts +2 -2
- package/dist/validation/complex/relation.d.mts +2 -2
- package/dist/validation/complex/relation.d.ts +2 -2
- package/dist/validation/complex/richtext.d.mts +2 -2
- package/dist/validation/complex/richtext.d.ts +2 -2
- package/dist/validation/complex/select.d.mts +2 -2
- package/dist/validation/complex/select.d.ts +2 -2
- package/dist/validation/complex/user.d.mts +2 -2
- package/dist/validation/complex/user.d.ts +2 -2
- package/dist/validation/computed/formula.d.mts +2 -2
- package/dist/validation/computed/formula.d.ts +2 -2
- package/dist/validation/computed/rollup.d.mts +2 -2
- package/dist/validation/computed/rollup.d.ts +2 -2
- package/dist/validation/config/index.d.mts +1 -1
- package/dist/validation/config/index.d.ts +1 -1
- package/dist/validation/core/index.d.mts +3 -3
- package/dist/validation/core/index.d.ts +3 -3
- package/dist/validation/object/index.d.mts +3 -3
- package/dist/validation/object/index.d.ts +3 -3
- package/dist/validation/primitives/checkbox.d.mts +2 -2
- package/dist/validation/primitives/checkbox.d.ts +2 -2
- package/dist/validation/primitives/date.d.mts +2 -2
- package/dist/validation/primitives/date.d.ts +2 -2
- package/dist/validation/primitives/number.d.mts +2 -2
- package/dist/validation/primitives/number.d.ts +2 -2
- package/dist/validation/primitives/rating.d.mts +2 -2
- package/dist/validation/primitives/rating.d.ts +2 -2
- package/dist/validation/primitives/text.d.mts +2 -2
- package/dist/validation/primitives/text.d.ts +2 -2
- package/dist/validation/validators.d.mts +3 -3
- package/dist/validation/validators.d.ts +3 -3
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -516,90 +516,10 @@ function isFormNode(node) {
|
|
|
516
516
|
function isConditionNode(node) {
|
|
517
517
|
return node.type === "condition";
|
|
518
518
|
}
|
|
519
|
-
function isAssignNode(node) {
|
|
520
|
-
return node.type === "assign";
|
|
521
|
-
}
|
|
522
|
-
function isAINode(node) {
|
|
523
|
-
return node.type === "ai";
|
|
524
|
-
}
|
|
525
519
|
function isEndNode(node) {
|
|
526
520
|
return node.type === "end";
|
|
527
521
|
}
|
|
528
522
|
|
|
529
|
-
// src/types/workflows/node-types/ai.node-type.ts
|
|
530
|
-
var aiNodeType = {
|
|
531
|
-
type: "ai",
|
|
532
|
-
isLinear: true,
|
|
533
|
-
structural: false,
|
|
534
|
-
getOutputs(node) {
|
|
535
|
-
return node.next ? [node.next] : [];
|
|
536
|
-
},
|
|
537
|
-
setNext(node, targetId) {
|
|
538
|
-
return { ...node, next: targetId };
|
|
539
|
-
},
|
|
540
|
-
getSlotIds(node) {
|
|
541
|
-
const slotIds = /* @__PURE__ */ new Set();
|
|
542
|
-
for (const id of node.inputSlotIds ?? []) slotIds.add(id);
|
|
543
|
-
for (const id of node.targetSlotIds ?? []) slotIds.add(id);
|
|
544
|
-
return [...slotIds];
|
|
545
|
-
},
|
|
546
|
-
validate(node) {
|
|
547
|
-
const errors = [];
|
|
548
|
-
if (!node.label) errors.push("AINode must have a label");
|
|
549
|
-
if (!node.mode) errors.push("AINode must have a mode (sync or async)");
|
|
550
|
-
if (!node.next) errors.push("AINode must have a 'next' target");
|
|
551
|
-
const hasAgentSource = !!node.definitionId || !!node.systemPrompt;
|
|
552
|
-
if (!hasAgentSource) {
|
|
553
|
-
errors.push("AINode must have either a definitionId or a systemPrompt");
|
|
554
|
-
}
|
|
555
|
-
return errors;
|
|
556
|
-
}
|
|
557
|
-
};
|
|
558
|
-
|
|
559
|
-
// src/types/workflows/node-types/assign.node-type.ts
|
|
560
|
-
var assignNodeType = {
|
|
561
|
-
type: "assign",
|
|
562
|
-
isLinear: true,
|
|
563
|
-
structural: false,
|
|
564
|
-
getOutputs(node) {
|
|
565
|
-
return node.next ? [node.next] : [];
|
|
566
|
-
},
|
|
567
|
-
setNext(node, targetId) {
|
|
568
|
-
return { ...node, next: targetId };
|
|
569
|
-
},
|
|
570
|
-
getSlotIds(node) {
|
|
571
|
-
const slotIds = /* @__PURE__ */ new Set();
|
|
572
|
-
if (node.targetSlotId) {
|
|
573
|
-
slotIds.add(node.targetSlotId);
|
|
574
|
-
}
|
|
575
|
-
for (const assignment of node.assignments ?? []) {
|
|
576
|
-
const src = assignment.source;
|
|
577
|
-
if (src.type === "slot-ref") {
|
|
578
|
-
slotIds.add(src.slotId);
|
|
579
|
-
} else if (src.type === "expression") {
|
|
580
|
-
const matches = src.template.matchAll(/\{\{\s*([\w]+)\.\w+/g);
|
|
581
|
-
for (const match of matches) {
|
|
582
|
-
slotIds.add(match[1]);
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
return [...slotIds];
|
|
587
|
-
},
|
|
588
|
-
validate(node) {
|
|
589
|
-
const errors = [];
|
|
590
|
-
if (!node.targetSlotId) {
|
|
591
|
-
errors.push("AssignNode must have a target slot");
|
|
592
|
-
}
|
|
593
|
-
if (!node.assignments?.length) {
|
|
594
|
-
errors.push("AssignNode must have at least one assignment");
|
|
595
|
-
}
|
|
596
|
-
if (!node.next) {
|
|
597
|
-
errors.push("AssignNode must have a 'next' target");
|
|
598
|
-
}
|
|
599
|
-
return errors;
|
|
600
|
-
}
|
|
601
|
-
};
|
|
602
|
-
|
|
603
523
|
// src/types/workflows/node-types/condition.node-type.ts
|
|
604
524
|
var conditionNodeType = {
|
|
605
525
|
type: "condition",
|
|
@@ -715,8 +635,6 @@ function registerBuiltInNodeTypes() {
|
|
|
715
635
|
nodeTypeRegistry.register(startNodeType);
|
|
716
636
|
nodeTypeRegistry.register(formNodeType);
|
|
717
637
|
nodeTypeRegistry.register(conditionNodeType);
|
|
718
|
-
nodeTypeRegistry.register(assignNodeType);
|
|
719
|
-
nodeTypeRegistry.register(aiNodeType);
|
|
720
638
|
nodeTypeRegistry.register(endNodeType);
|
|
721
639
|
}
|
|
722
640
|
registerBuiltInNodeTypes();
|
|
@@ -914,15 +832,13 @@ function isInvitationOrGrantEvent(event) {
|
|
|
914
832
|
var ZONE_ORDER = ["collect", "actions"];
|
|
915
833
|
var ZONE_CONFIG = {
|
|
916
834
|
collect: { allowedNodeTypes: ["form", "condition"] },
|
|
917
|
-
actions: { allowedNodeTypes: ["condition"
|
|
835
|
+
actions: { allowedNodeTypes: ["condition"] }
|
|
918
836
|
};
|
|
919
837
|
var TERMINAL_NODE_TYPES = /* @__PURE__ */ new Set(["start", "end"]);
|
|
920
838
|
var NODE_TYPE_ZONE = {
|
|
921
839
|
form: "collect",
|
|
922
|
-
condition: "collect"
|
|
840
|
+
condition: "collect"
|
|
923
841
|
// default — overridden by assignNodeZones logic
|
|
924
|
-
assign: "actions",
|
|
925
|
-
ai: "actions"
|
|
926
842
|
};
|
|
927
843
|
function assignNodeZones(orderedNodes) {
|
|
928
844
|
const result = /* @__PURE__ */ new Map();
|
|
@@ -1080,45 +996,6 @@ var ConditionNodeSchema = z.object({
|
|
|
1080
996
|
onTrue: z.string().nullish(),
|
|
1081
997
|
onFalse: z.string().nullish()
|
|
1082
998
|
});
|
|
1083
|
-
var AssignmentSourceSchema = z.discriminatedUnion("type", [
|
|
1084
|
-
z.object({ type: z.literal("expression"), template: z.string().min(1) }),
|
|
1085
|
-
z.object({
|
|
1086
|
-
type: z.literal("slot-ref"),
|
|
1087
|
-
slotId: z.string().min(1),
|
|
1088
|
-
properties: z.record(z.string(), z.unknown()).optional()
|
|
1089
|
-
}),
|
|
1090
|
-
z.object({ type: z.literal("static"), value: z.unknown() })
|
|
1091
|
-
]);
|
|
1092
|
-
var AssignmentMappingSchema = z.object({
|
|
1093
|
-
targetAttribute: z.string().min(1),
|
|
1094
|
-
source: AssignmentSourceSchema
|
|
1095
|
-
});
|
|
1096
|
-
var AssignNodeSchema = z.object({
|
|
1097
|
-
type: z.literal("assign"),
|
|
1098
|
-
id: z.string().min(1),
|
|
1099
|
-
label: z.string().min(1),
|
|
1100
|
-
description: z.string().nullish(),
|
|
1101
|
-
targetSlotId: z.string().min(1, "Target slot is required"),
|
|
1102
|
-
assignments: z.array(AssignmentMappingSchema).min(1),
|
|
1103
|
-
next: z.string().nullish()
|
|
1104
|
-
});
|
|
1105
|
-
var AINodeSchema = z.object({
|
|
1106
|
-
type: z.literal("ai"),
|
|
1107
|
-
id: z.string().min(1),
|
|
1108
|
-
label: z.string().min(1),
|
|
1109
|
-
description: z.string().nullish(),
|
|
1110
|
-
mode: z.enum(["sync", "async"]),
|
|
1111
|
-
definitionId: z.string().optional(),
|
|
1112
|
-
systemPrompt: z.string().optional(),
|
|
1113
|
-
model: z.string().optional(),
|
|
1114
|
-
tools: z.array(z.string()).optional(),
|
|
1115
|
-
maxIterations: z.number().positive().optional(),
|
|
1116
|
-
instructions: z.string().optional(),
|
|
1117
|
-
inputSlotIds: z.array(z.string()).optional(),
|
|
1118
|
-
targetSlotIds: z.array(z.string()).optional(),
|
|
1119
|
-
timeoutMs: z.number().positive().optional(),
|
|
1120
|
-
next: z.string().nullish()
|
|
1121
|
-
});
|
|
1122
999
|
var EndNodeSchema = z.object({
|
|
1123
1000
|
type: z.literal("end"),
|
|
1124
1001
|
id: z.string().min(1),
|
|
@@ -1129,8 +1006,6 @@ var WorkflowNodeSchema = z.discriminatedUnion("type", [
|
|
|
1129
1006
|
StartNodeSchema,
|
|
1130
1007
|
FormNodeSchema,
|
|
1131
1008
|
ConditionNodeSchema,
|
|
1132
|
-
AssignNodeSchema,
|
|
1133
|
-
AINodeSchema,
|
|
1134
1009
|
EndNodeSchema
|
|
1135
1010
|
]);
|
|
1136
1011
|
var SlotModeSchema = z.enum(["create", "select", "optional"]);
|
|
@@ -1679,7 +1554,6 @@ var SchemaErrorCode = {
|
|
|
1679
1554
|
FILE_NOT_FOUND: "SCHEMA_FILE_NOT_FOUND",
|
|
1680
1555
|
ROLE_NOT_FOUND: "SCHEMA_ROLE_NOT_FOUND",
|
|
1681
1556
|
MEMORY_NOT_FOUND: "SCHEMA_MEMORY_NOT_FOUND",
|
|
1682
|
-
CONVERSATION_NOT_FOUND: "SCHEMA_CONVERSATION_NOT_FOUND",
|
|
1683
1557
|
// Validation
|
|
1684
1558
|
VALIDATION_FAILED: "SCHEMA_VALIDATION_FAILED",
|
|
1685
1559
|
INVALID_ATTRIBUTE_NAME: "SCHEMA_INVALID_ATTRIBUTE_NAME",
|
|
@@ -1961,12 +1835,6 @@ var MemoryNotFoundError = class extends NotFoundError {
|
|
|
1961
1835
|
this.name = "MemoryNotFoundError";
|
|
1962
1836
|
}
|
|
1963
1837
|
};
|
|
1964
|
-
var ConversationNotFoundError = class extends NotFoundError {
|
|
1965
|
-
constructor(conversationId) {
|
|
1966
|
-
super("Conversation", conversationId, SchemaErrorCode.CONVERSATION_NOT_FOUND);
|
|
1967
|
-
this.name = "ConversationNotFoundError";
|
|
1968
|
-
}
|
|
1969
|
-
};
|
|
1970
1838
|
|
|
1971
1839
|
// src/standard-schema.ts
|
|
1972
1840
|
var STANDARD_SCHEMA_VENDOR = "@stndrds/schema";
|
|
@@ -2967,8 +2835,7 @@ var DocumentAttributeBuilder = class extends BaseAttributeBuilder {
|
|
|
2967
2835
|
return this;
|
|
2968
2836
|
}
|
|
2969
2837
|
/**
|
|
2970
|
-
* Automatically trigger processing on upload.
|
|
2971
|
-
* Processing is defined by the template's autoProcessing config.
|
|
2838
|
+
* Automatically trigger agent-compatible processing on upload.
|
|
2972
2839
|
*/
|
|
2973
2840
|
autoProcess() {
|
|
2974
2841
|
this.attr.autoProcess = true;
|
|
@@ -4494,6 +4361,7 @@ function group(id, label) {
|
|
|
4494
4361
|
function relationGroup(id, label, attribute) {
|
|
4495
4362
|
return new RelationGroupBuilder(id, label, attribute);
|
|
4496
4363
|
}
|
|
4364
|
+
registerBuiltInNodeTypes();
|
|
4497
4365
|
var WorkflowFormRowBuilder = class {
|
|
4498
4366
|
/** @internal */
|
|
4499
4367
|
constructor(formBuilder, rowId, order) {
|
|
@@ -4817,132 +4685,6 @@ var WorkflowConditionBuilder = class {
|
|
|
4817
4685
|
};
|
|
4818
4686
|
}
|
|
4819
4687
|
};
|
|
4820
|
-
var WorkflowAssignBuilder = class {
|
|
4821
|
-
/** @internal */
|
|
4822
|
-
constructor(workflowBuilder, nodeId, label, targetSlotId) {
|
|
4823
|
-
this.assignments = [];
|
|
4824
|
-
this.workflowBuilder = workflowBuilder;
|
|
4825
|
-
this.nodeId = nodeId;
|
|
4826
|
-
this.label = label;
|
|
4827
|
-
this.targetSlotId = targetSlotId;
|
|
4828
|
-
}
|
|
4829
|
-
/**
|
|
4830
|
-
* Set an attribute using an expression template.
|
|
4831
|
-
* Uses mustache syntax: `{{ slotId.attribute }}`.
|
|
4832
|
-
*/
|
|
4833
|
-
expression(targetAttribute, template) {
|
|
4834
|
-
this.assignments.push({
|
|
4835
|
-
targetAttribute,
|
|
4836
|
-
source: { type: "expression", template }
|
|
4837
|
-
});
|
|
4838
|
-
return this;
|
|
4839
|
-
}
|
|
4840
|
-
/**
|
|
4841
|
-
* Link a relation attribute to a slot's record.
|
|
4842
|
-
* Optionally include qualified relation properties.
|
|
4843
|
-
*/
|
|
4844
|
-
slotRef(targetAttribute, slotId, properties) {
|
|
4845
|
-
this.assignments.push({
|
|
4846
|
-
targetAttribute,
|
|
4847
|
-
source: { type: "slot-ref", slotId, properties }
|
|
4848
|
-
});
|
|
4849
|
-
return this;
|
|
4850
|
-
}
|
|
4851
|
-
/**
|
|
4852
|
-
* Set a static value on an attribute
|
|
4853
|
-
*/
|
|
4854
|
-
setValue(targetAttribute, value) {
|
|
4855
|
-
this.assignments.push({
|
|
4856
|
-
targetAttribute,
|
|
4857
|
-
source: { type: "static", value }
|
|
4858
|
-
});
|
|
4859
|
-
return this;
|
|
4860
|
-
}
|
|
4861
|
-
/**
|
|
4862
|
-
* Set the description for this assign node
|
|
4863
|
-
*/
|
|
4864
|
-
describe(description) {
|
|
4865
|
-
this.nodeDescription = description;
|
|
4866
|
-
return this;
|
|
4867
|
-
}
|
|
4868
|
-
/**
|
|
4869
|
-
* Set the next node and complete the assign definition
|
|
4870
|
-
*/
|
|
4871
|
-
next(nodeId) {
|
|
4872
|
-
if (this.assignments.length === 0) {
|
|
4873
|
-
throw new Error(
|
|
4874
|
-
`[WorkflowBuilder] Assign "${this.nodeId}" must have at least one assignment. Use .expression(), .slotRef() or .setValue() first.`
|
|
4875
|
-
);
|
|
4876
|
-
}
|
|
4877
|
-
return this.workflowBuilder._addNode({
|
|
4878
|
-
type: "assign",
|
|
4879
|
-
id: this.nodeId,
|
|
4880
|
-
label: this.label,
|
|
4881
|
-
description: this.nodeDescription,
|
|
4882
|
-
targetSlotId: this.targetSlotId,
|
|
4883
|
-
assignments: this.assignments,
|
|
4884
|
-
next: nodeId
|
|
4885
|
-
});
|
|
4886
|
-
}
|
|
4887
|
-
};
|
|
4888
|
-
var WorkflowAIBuilder = class {
|
|
4889
|
-
/** @internal */
|
|
4890
|
-
constructor(workflowBuilder, nodeId, label) {
|
|
4891
|
-
this.agentConfig = null;
|
|
4892
|
-
this.workflowBuilder = workflowBuilder;
|
|
4893
|
-
this.nodeId = nodeId;
|
|
4894
|
-
this.label = label;
|
|
4895
|
-
}
|
|
4896
|
-
describe(description) {
|
|
4897
|
-
this.nodeDescription = description;
|
|
4898
|
-
return this;
|
|
4899
|
-
}
|
|
4900
|
-
timeout(ms) {
|
|
4901
|
-
this.nodeTimeoutMs = ms;
|
|
4902
|
-
return this;
|
|
4903
|
-
}
|
|
4904
|
-
/**
|
|
4905
|
-
* Configure the agent for this node.
|
|
4906
|
-
*
|
|
4907
|
-
* @param definitionIdOrConfig - Either an existing agent definition ID (string),
|
|
4908
|
-
* or an inline agent config object.
|
|
4909
|
-
* @param options - Additional options merged on top (only used when first arg is a string)
|
|
4910
|
-
*/
|
|
4911
|
-
agent(definitionIdOrConfig, options) {
|
|
4912
|
-
if (typeof definitionIdOrConfig === "string") {
|
|
4913
|
-
this.agentConfig = {
|
|
4914
|
-
// Default to async when referencing a definition by ID
|
|
4915
|
-
mode: options?.mode ?? "async",
|
|
4916
|
-
definitionId: definitionIdOrConfig,
|
|
4917
|
-
instructions: options?.instructions,
|
|
4918
|
-
inputSlotIds: options?.inputSlotIds,
|
|
4919
|
-
targetSlotIds: options?.targetSlotIds
|
|
4920
|
-
};
|
|
4921
|
-
} else {
|
|
4922
|
-
this.agentConfig = definitionIdOrConfig;
|
|
4923
|
-
}
|
|
4924
|
-
return this;
|
|
4925
|
-
}
|
|
4926
|
-
/**
|
|
4927
|
-
* Set the next node and complete the AI node definition
|
|
4928
|
-
*/
|
|
4929
|
-
next(nodeId) {
|
|
4930
|
-
if (!this.agentConfig) {
|
|
4931
|
-
throw new Error(
|
|
4932
|
-
`[WorkflowBuilder] AI node "${this.nodeId}" must have an agent config. Call .agent() first.`
|
|
4933
|
-
);
|
|
4934
|
-
}
|
|
4935
|
-
return this.workflowBuilder._addNode({
|
|
4936
|
-
type: "ai",
|
|
4937
|
-
id: this.nodeId,
|
|
4938
|
-
label: this.label,
|
|
4939
|
-
description: this.nodeDescription,
|
|
4940
|
-
timeoutMs: this.nodeTimeoutMs,
|
|
4941
|
-
next: nodeId,
|
|
4942
|
-
...this.agentConfig
|
|
4943
|
-
});
|
|
4944
|
-
}
|
|
4945
|
-
};
|
|
4946
4688
|
var WorkflowEndBuilder = class {
|
|
4947
4689
|
/** @internal */
|
|
4948
4690
|
constructor(workflowBuilder, nodeId) {
|
|
@@ -5108,16 +4850,6 @@ var WorkflowBuilder = class {
|
|
|
5108
4850
|
condition(id, label) {
|
|
5109
4851
|
return new WorkflowConditionBuilder(this, id, label);
|
|
5110
4852
|
}
|
|
5111
|
-
/**
|
|
5112
|
-
* Define an assign node (set values on a target slot)
|
|
5113
|
-
*/
|
|
5114
|
-
assign(id, label, targetSlotId) {
|
|
5115
|
-
return new WorkflowAssignBuilder(this, id, label, targetSlotId);
|
|
5116
|
-
}
|
|
5117
|
-
/** Define an AI agent node (sync or async, inline or referenced from a definition) */
|
|
5118
|
-
ai(id, label) {
|
|
5119
|
-
return new WorkflowAIBuilder(this, id, label);
|
|
5120
|
-
}
|
|
5121
4853
|
/**
|
|
5122
4854
|
* Define an end node
|
|
5123
4855
|
*/
|
|
@@ -6557,4 +6289,4 @@ function objectValidatorToJSONSchema(objectDef) {
|
|
|
6557
6289
|
return z.toJSONSchema(validator);
|
|
6558
6290
|
}
|
|
6559
6291
|
|
|
6560
|
-
export {
|
|
6292
|
+
export { ALL_ACTIONS, ALL_PIPES, ALL_SYSTEM_RESOURCES, AccessDeniedError, ActivityTabConfig, AttributeInUseError, AttributeNotFoundError, AuthMethodSchema, BEHAVIOR_PROPERTIES, ConcurrentModificationError, ConditionGroupSchema, ConditionNodeSchema, ConditionOperatorSchema, ConditionRuleSchema, CreateShareInputSchema, CustomTabConfig, DEFAULT_LABEL_FALLBACK, DEFAULT_RETENTION_POLICY, DEFAULT_ROLES, DEFAULT_ROLE_DESCRIPTIONS, DEFAULT_ROLE_FOR_NEW_USERS, DEFAULT_ROLE_LABELS, DEFAULT_ROLE_PERMISSIONS, DEFAULT_THEME, DetailViewBuilder, DocumentsTabConfig, DuplicateError, EMPTY_VALUE_PLACEHOLDER, EndNodeSchema, FORBIDDEN_PROPERTY_TYPES, FileNotFoundError, FlagRegistry, FlagService, FlowRowFieldSchema, FlowRowSchema, FlowsTabConfig, ForbiddenError, FormFieldRefSchema, FormNodeSchema, GroupBuilder, IDENTITY_PROPERTIES, ListViewBuilder, ListViewTabConfigBuilder, MemoryNotFoundError, NON_SORTABLE_TYPES, NO_VALUE_OPERATORS, NodePositionSchema, NoopGeocodingAdapter, NotFoundError, NotImplementedError, NotSystemObjectError, OPERATORS_BY_TYPE, ObjectBuilder, ObjectNotFoundError, ObjectReferencedError, PIPES_WITH_ARGS, PRESENTATION_PROPERTIES, PolicyViolationError, ProtectedResourceError, ProtectedRoleError, RELATION_TARGET_ANY, RESERVED_ATTRIBUTE_NAMES, RecordNotFoundError, RecordReferencedError, RelationGroupBuilder, RepositoryError, RichtextTabConfig, RoleNotFoundError, SIMPLE_PIPES, STANDARD_SCHEMA_VENDOR, SYSTEM_ATTRIBUTES, SYSTEM_FIELD_NAMES, SYSTEM_RESOURCES, SYSTEM_RESOURCE_LABELS, SchemaError, SchemaErrorCode, ShareStatusSchema, SlotModeSchema, StartNodeSchema, StorageError, SyncError, TabBuilder, TableTabConfig, ThemeColorsSchema, ThemeLogoSchema, USER_STATUSES, UserProfileNotFoundError, ValidationError, ViewBuilder, ViewportSchema, WorkflowBuilder, WorkflowConditionBuilder, WorkflowConfigSchema, WorkflowDefinitionSchema, WorkflowEndBuilder, WorkflowFormBuilder, WorkflowFormRowBuilder, WorkflowLayoutSchema, WorkflowNodeSchema, WorkflowShareSchema, WorkflowSimpleFormBuilder, WorkflowSlotSchema, WorkflowStartBuilder, WorkflowStatusSchema, WorkflowThemeSchema, ZONE_CONFIG, ZONE_ORDER, accessLevelToActions, actionsToAccessLevel, and, applyRelationProps, assignNodeZones, booleanFlag, canAccessNode, canResumeInstance, checkbox, createEmptyContext, createFlagRegistry, createFlagService, createStandardSchemaProps, createStartTransition, currency, date, detailView, document, eq, extractAttributeNames, file, flagRegistry, formatAttributeValue, formula, generateCssVariables, generateDefaultDetailView, generateDefaultListView, generateFallbackView, getActiveTab, getContextValue, getErrorMessage, getFormFieldRefs, getNodeOutputs, getNodeSlotIds, getRollupFilterOperators, getSystemAttributeList, getZoneAllowedTypes, group, groupNodesByZone, hasOptions, hasProperties, inValues, inferInverseCardinality, isAccessDeniedError, isActivityTab, isAdvancedFormNode, isAttributeSortable, isBehaviorProperty, isBilateralRelation, isCalendarView, isConditionGroup, isConditionNode, isConditionRule, isCustomTab, isDefaultRole, isDetailView, isDocumentsTab, isEmpty2 as isEmpty, isEndNode, isFieldGroup, isFlowDefinition, isFlowFieldsRow, isFlowPublished, isFlowRelationListRow, isFlowsTab, isForbiddenError, isFormFieldsRow, isFormNode, isFormTab, isGalleryView, isGrantExpired, isGrantRevoked, isGrantValid, isIdentityProperty, isInstanceEvent, isInstanceTerminal, isInstanceWaiting, isInverseSourceTab, isInvitationAccepted, isInvitationExpired, isInvitationOrGrantEvent, isInvitationValid, isLabelExpression, isLayoutRow, isListView, isNoValueOperator, isNodeEvent, isNotEmpty2 as isNotEmpty, isNotFoundError, isNotImplementedError, isPresentationProperty, isProtectedResourceError, isRelationGroup, isRelationSourceTab, isRepositoryError, isRichtextTab, isSchemaError, isSimpleFormNode, isStandardSchema, isStartNode, isStorageError, isSystemAttribute, isSystemAttributeObject, isSystemFlow, isSystemWorkflow, isTableTab, isTimelineView, isTokenRevoked, isUniversalRelation, isValidationError, isViewCustomized, isWorkflowDefinition, isWorkflowPublished, jsonFlag, labelExpressionSchema, listView, location, mergeWithDefaults, multiselect, neq, nodeTypeRegistry, number, numberFlag, object, objectToJSONSchema, objectValidatorToJSONSchema, or, phone, rating, registerBuiltInNodeTypes, registry, relation, relationGroup, renderLabelExpression, resetViewToDefault, richtext, rollup, select, setContextValue, setNodeNext, status, stringFlag, text, textarea, toUndefinedIfEmpty, user, validateLabelExpression, validateNode, view, viewRegistry, workflow };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { V as ValidationMessages, a as ValidationResult } from '../types-
|
|
1
|
+
export { V as ValidationMessages, a as ValidationResult } from '../types-CjXbGsy8.mjs';
|
|
2
2
|
export { DEFAULT_VALIDATION_MESSAGES, createRegexCache, formatZodErrors, getCachedRegex } from './core/index.mjs';
|
|
3
3
|
export { createTextAreaValidator, createTextValidator } from './primitives/text.mjs';
|
|
4
4
|
export { createNumberValidator } from './primitives/number.mjs';
|
|
@@ -16,8 +16,8 @@ export { createMultiRelationValidator, createRelationValidator, createSingleRela
|
|
|
16
16
|
export { createFormulaValidator } from './computed/formula.mjs';
|
|
17
17
|
export { createRollupValidator } from './computed/rollup.mjs';
|
|
18
18
|
export { attributeConfigSchemas, checkboxConfigSchema, currencyConfigSchema, dateConfigSchema, documentConfigSchema, fileConfigSchema, formulaConfigSchema, getAttributeConfigSchema, locationConfigSchema, multiselectConfigSchema, numberConfigSchema, parseAttributeConfig, phoneConfigSchema, ratingConfigSchema, relationConfigSchema, richtextConfigSchema, rollupConfigSchema, safeParseAttributeConfig, selectConfigSchema, statusConfigSchema, textConfigSchema, textareaConfigSchema, userConfigSchema, validateAttributeConfig } from './config/index.mjs';
|
|
19
|
-
export { c as computeRecordStatus, a as createAttributeValidator, b as createDraftValidator, d as createFormAttributeValidator, e as createObjectValidator, g as getMissingRequiredAttributes, i as isRecordComplete, v as validateAttribute, f as validateDraft, h as validateDraftOrThrow, j as validateObject, k as validateObjectOrThrow } from '../index-
|
|
20
|
-
import '../attributes-
|
|
19
|
+
export { c as computeRecordStatus, a as createAttributeValidator, b as createDraftValidator, d as createFormAttributeValidator, e as createObjectValidator, g as getMissingRequiredAttributes, i as isRecordComplete, v as validateAttribute, f as validateDraft, h as validateDraftOrThrow, j as validateObject, k as validateObjectOrThrow } from '../index-C9tOwUbK.mjs';
|
|
20
|
+
import '../attributes-DB76JqXm.mjs';
|
|
21
21
|
import '@stndrds/constants';
|
|
22
22
|
import '../utils.mjs';
|
|
23
23
|
import 'zod';
|
package/dist/validation/all.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { V as ValidationMessages, a as ValidationResult } from '../types-
|
|
1
|
+
export { V as ValidationMessages, a as ValidationResult } from '../types-B7nS2D1A.js';
|
|
2
2
|
export { DEFAULT_VALIDATION_MESSAGES, createRegexCache, formatZodErrors, getCachedRegex } from './core/index.js';
|
|
3
3
|
export { createTextAreaValidator, createTextValidator } from './primitives/text.js';
|
|
4
4
|
export { createNumberValidator } from './primitives/number.js';
|
|
@@ -16,8 +16,8 @@ export { createMultiRelationValidator, createRelationValidator, createSingleRela
|
|
|
16
16
|
export { createFormulaValidator } from './computed/formula.js';
|
|
17
17
|
export { createRollupValidator } from './computed/rollup.js';
|
|
18
18
|
export { attributeConfigSchemas, checkboxConfigSchema, currencyConfigSchema, dateConfigSchema, documentConfigSchema, fileConfigSchema, formulaConfigSchema, getAttributeConfigSchema, locationConfigSchema, multiselectConfigSchema, numberConfigSchema, parseAttributeConfig, phoneConfigSchema, ratingConfigSchema, relationConfigSchema, richtextConfigSchema, rollupConfigSchema, safeParseAttributeConfig, selectConfigSchema, statusConfigSchema, textConfigSchema, textareaConfigSchema, userConfigSchema, validateAttributeConfig } from './config/index.js';
|
|
19
|
-
export { c as computeRecordStatus, a as createAttributeValidator, b as createDraftValidator, d as createFormAttributeValidator, e as createObjectValidator, g as getMissingRequiredAttributes, i as isRecordComplete, v as validateAttribute, f as validateDraft, h as validateDraftOrThrow, j as validateObject, k as validateObjectOrThrow } from '../index-
|
|
20
|
-
import '../attributes-
|
|
19
|
+
export { c as computeRecordStatus, a as createAttributeValidator, b as createDraftValidator, d as createFormAttributeValidator, e as createObjectValidator, g as getMissingRequiredAttributes, i as isRecordComplete, v as validateAttribute, f as validateDraft, h as validateDraftOrThrow, j as validateObject, k as validateObjectOrThrow } from '../index-Bt-0XNSh.js';
|
|
20
|
+
import '../attributes-C-bhC0k5.js';
|
|
21
21
|
import '@stndrds/constants';
|
|
22
22
|
import '../utils.js';
|
|
23
23
|
import 'zod';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { C as CurrencyAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { C as CurrencyAttribute } from '../../attributes-DB76JqXm.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CjXbGsy8.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { C as CurrencyAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { C as CurrencyAttribute } from '../../attributes-C-bhC0k5.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B7nS2D1A.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { F as FileAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { F as FileAttribute } from '../../attributes-DB76JqXm.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CjXbGsy8.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { F as FileAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { F as FileAttribute } from '../../attributes-C-bhC0k5.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B7nS2D1A.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { L as LocationAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { L as LocationAttribute } from '../../attributes-DB76JqXm.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CjXbGsy8.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { L as LocationAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { L as LocationAttribute } from '../../attributes-C-bhC0k5.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B7nS2D1A.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { P as PhoneAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { P as PhoneAttribute } from '../../attributes-DB76JqXm.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CjXbGsy8.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { P as PhoneAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { P as PhoneAttribute } from '../../attributes-C-bhC0k5.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B7nS2D1A.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-DB76JqXm.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CjXbGsy8.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { M as MultiRelationAttribute, R as RelationAttribute, S as SingleRelationAttribute } from '../../attributes-C-bhC0k5.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B7nS2D1A.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a as RichtextAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { a as RichtextAttribute } from '../../attributes-DB76JqXm.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CjXbGsy8.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { a as RichtextAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { a as RichtextAttribute } from '../../attributes-C-bhC0k5.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B7nS2D1A.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-DB76JqXm.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CjXbGsy8.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { b as MultiselectAttribute, c as SelectAttribute, d as StatusAttribute } from '../../attributes-C-bhC0k5.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B7nS2D1A.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { U as UserAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { U as UserAttribute } from '../../attributes-DB76JqXm.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CjXbGsy8.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { U as UserAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { U as UserAttribute } from '../../attributes-C-bhC0k5.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B7nS2D1A.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { e as FormulaAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { e as FormulaAttribute } from '../../attributes-DB76JqXm.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CjXbGsy8.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { e as FormulaAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { e as FormulaAttribute } from '../../attributes-C-bhC0k5.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B7nS2D1A.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { f as RollupAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { f as RollupAttribute } from '../../attributes-DB76JqXm.mjs';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-CjXbGsy8.mjs';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { f as RollupAttribute } from '../../attributes-
|
|
3
|
-
import { V as ValidationMessages } from '../../types-
|
|
2
|
+
import { f as RollupAttribute } from '../../attributes-C-bhC0k5.js';
|
|
3
|
+
import { V as ValidationMessages } from '../../types-B7nS2D1A.js';
|
|
4
4
|
import '@stndrds/constants';
|
|
5
5
|
import '../../utils.js';
|
|
6
6
|
|