@stndrds/schema 1.0.0-alpha.93 → 1.0.0-alpha.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -153,7 +153,14 @@ var ObjectReferencedError = class extends Error {
153
153
  }
154
154
  };
155
155
  function getErrorMessage(error) {
156
- return error instanceof Error ? error.message : String(error);
156
+ if (error instanceof Error) return error.message;
157
+ if (typeof error === "string") return error;
158
+ if (error && typeof error === "object") {
159
+ if ("message" in error && typeof error.message === "string")
160
+ return error.message;
161
+ return JSON.stringify(error);
162
+ }
163
+ return String(error);
157
164
  }
158
165
 
159
166
  // src/types/filters.ts
@@ -716,28 +723,18 @@ var aiNodeType = {
716
723
  },
717
724
  getSlotIds(node) {
718
725
  const slotIds = /* @__PURE__ */ new Set();
719
- const action = node.action;
720
- if (action.type === "document-generation") {
721
- for (const id of action.inputSlotIds) slotIds.add(id);
722
- for (const id of action.targetSlotIds) slotIds.add(id);
723
- } else if (action.type === "code-execution") {
724
- for (const id of _nullishCoalesce(action.inputSlotIds, () => ( []))) slotIds.add(id);
725
- }
726
+ for (const id of _nullishCoalesce(node.inputSlotIds, () => ( []))) slotIds.add(id);
727
+ for (const id of _nullishCoalesce(node.targetSlotIds, () => ( []))) slotIds.add(id);
726
728
  return [...slotIds];
727
729
  },
728
730
  validate(node) {
729
731
  const errors = [];
730
732
  if (!node.label) errors.push("AINode must have a label");
731
- if (!node.action) errors.push("AINode must have an action");
733
+ if (!node.mode) errors.push("AINode must have a mode (sync or async)");
732
734
  if (!node.next) errors.push("AINode must have a 'next' target");
733
- if (_optionalChain([node, 'access', _8 => _8.action, 'optionalAccess', _9 => _9.type]) === "document-generation") {
734
- if (!node.action.templateId) errors.push("Document generation must have a templateId");
735
- if (!_optionalChain([node, 'access', _10 => _10.action, 'access', _11 => _11.inputSlotIds, 'optionalAccess', _12 => _12.length]))
736
- errors.push("Document generation must have input slots");
737
- if (!_optionalChain([node, 'access', _13 => _13.action, 'access', _14 => _14.targetSlotIds, 'optionalAccess', _15 => _15.length]))
738
- errors.push("Document generation must have target slots");
739
- } else if (_optionalChain([node, 'access', _16 => _16.action, 'optionalAccess', _17 => _17.type]) === "code-execution") {
740
- if (!node.action.code) errors.push("Code execution must have code");
735
+ const hasAgentSource = !!node.definitionId || !!node.systemPrompt;
736
+ if (!hasAgentSource) {
737
+ errors.push("AINode must have either a definitionId or a systemPrompt");
741
738
  }
742
739
  return errors;
743
740
  }
@@ -1147,32 +1144,20 @@ var AssignNodeSchema = _zod.z.object({
1147
1144
  assignments: _zod.z.array(AssignmentMappingSchema).min(1),
1148
1145
  next: _zod.z.string().nullish()
1149
1146
  });
1150
- var DocumentGenerationActionSchema = _zod.z.object({
1151
- type: _zod.z.literal("document-generation"),
1152
- templateId: _zod.z.string().min(1, "Template ID is required"),
1153
- inputSlotIds: _zod.z.array(_zod.z.string().min(1)).min(1, "At least one input slot is required"),
1154
- targetSlotIds: _zod.z.array(_zod.z.string().min(1)).min(1, "At least one target slot is required"),
1155
- outputFormat: _zod.z.enum(["pdf", "docx"]),
1156
- aiInstructions: _zod.z.string().nullish()
1157
- });
1158
- var CodeExecutionActionSchema = _zod.z.object({
1159
- type: _zod.z.literal("code-execution"),
1160
- code: _zod.z.string().min(1, "Code is required"),
1161
- language: _zod.z.enum(["javascript", "typescript", "python"]),
1162
- inputSlotIds: _zod.z.array(_zod.z.string().min(1)).optional(),
1163
- outputVariable: _zod.z.string().optional(),
1164
- packages: _zod.z.array(_zod.z.string()).optional()
1165
- });
1166
- var AIActionConfigSchema = _zod.z.discriminatedUnion("type", [
1167
- DocumentGenerationActionSchema,
1168
- CodeExecutionActionSchema
1169
- ]);
1170
1147
  var AINodeSchema = _zod.z.object({
1171
1148
  type: _zod.z.literal("ai"),
1172
1149
  id: _zod.z.string().min(1),
1173
1150
  label: _zod.z.string().min(1),
1174
1151
  description: _zod.z.string().nullish(),
1175
- action: AIActionConfigSchema,
1152
+ mode: _zod.z.enum(["sync", "async"]),
1153
+ definitionId: _zod.z.string().optional(),
1154
+ systemPrompt: _zod.z.string().optional(),
1155
+ model: _zod.z.string().optional(),
1156
+ tools: _zod.z.array(_zod.z.string()).optional(),
1157
+ maxIterations: _zod.z.number().positive().optional(),
1158
+ instructions: _zod.z.string().optional(),
1159
+ inputSlotIds: _zod.z.array(_zod.z.string()).optional(),
1160
+ targetSlotIds: _zod.z.array(_zod.z.string()).optional(),
1176
1161
  timeoutMs: _zod.z.number().positive().optional(),
1177
1162
  next: _zod.z.string().nullish()
1178
1163
  });
@@ -1301,7 +1286,7 @@ var WorkflowDefinitionSchema = _zod.z.object({
1301
1286
  ).refine(
1302
1287
  (def) => {
1303
1288
  const startNode = def.nodes[def.startNodeId];
1304
- return _optionalChain([startNode, 'optionalAccess', _18 => _18.type]) === "start";
1289
+ return _optionalChain([startNode, 'optionalAccess', _8 => _8.type]) === "start";
1305
1290
  },
1306
1291
  {
1307
1292
  message: "startNodeId must reference a node of type 'start'"
@@ -1451,13 +1436,13 @@ function formatLocation(value, attribute) {
1451
1436
  }
1452
1437
  function formatSelect(value, attribute) {
1453
1438
  if (typeof value !== "string") return String(value);
1454
- const option = _optionalChain([attribute, 'access', _19 => _19.options, 'optionalAccess', _20 => _20.find, 'call', _21 => _21((o) => o.value === value)]);
1455
- return _nullishCoalesce(_optionalChain([option, 'optionalAccess', _22 => _22.label]), () => ( String(value)));
1439
+ const option = _optionalChain([attribute, 'access', _9 => _9.options, 'optionalAccess', _10 => _10.find, 'call', _11 => _11((o) => o.value === value)]);
1440
+ return _nullishCoalesce(_optionalChain([option, 'optionalAccess', _12 => _12.label]), () => ( String(value)));
1456
1441
  }
1457
1442
  function formatMultiselect(value, attribute) {
1458
1443
  if (!Array.isArray(value)) return String(value);
1459
1444
  if (attribute.options) {
1460
- const labels = value.map((v) => _optionalChain([attribute, 'access', _23 => _23.options, 'access', _24 => _24.find, 'call', _25 => _25((o) => o.value === v), 'optionalAccess', _26 => _26.label])).filter(Boolean);
1445
+ const labels = value.map((v) => _optionalChain([attribute, 'access', _13 => _13.options, 'access', _14 => _14.find, 'call', _15 => _15((o) => o.value === v), 'optionalAccess', _16 => _16.label])).filter(Boolean);
1461
1446
  return labels.join(", ");
1462
1447
  }
1463
1448
  return value.join(", ");
@@ -1617,7 +1602,7 @@ var PROPS_TOKEN_RE = /\{\{\s*props\./;
1617
1602
  function applyRelationProps(label, props, propertyDefs) {
1618
1603
  if (!PROPS_TOKEN_RE.test(label)) return label;
1619
1604
  const formattedProps = {};
1620
- const defMap = new Map(_optionalChain([propertyDefs, 'optionalAccess', _27 => _27.map, 'call', _28 => _28((d) => [d.name, d])]));
1605
+ const defMap = new Map(_optionalChain([propertyDefs, 'optionalAccess', _17 => _17.map, 'call', _18 => _18((d) => [d.name, d])]));
1621
1606
  if (props) {
1622
1607
  for (const [key, value] of Object.entries(props)) {
1623
1608
  if (value == null) continue;
@@ -1811,7 +1796,7 @@ var SyncError = class extends SchemaError {
1811
1796
  constructor(objectName, message, cause) {
1812
1797
  super(`Failed to sync object "${objectName}": ${message}`, SchemaErrorCode.SYNC_FAILED, {
1813
1798
  objectName,
1814
- cause: _optionalChain([cause, 'optionalAccess', _29 => _29.message])
1799
+ cause: _optionalChain([cause, 'optionalAccess', _19 => _19.message])
1815
1800
  });
1816
1801
  this.name = "SyncError";
1817
1802
  this.objectName = objectName;
@@ -1947,17 +1932,17 @@ function validateOptions(options, attributeName) {
1947
1932
  const ids = /* @__PURE__ */ new Set();
1948
1933
  const values = /* @__PURE__ */ new Set();
1949
1934
  for (const option of options) {
1950
- if (!_optionalChain([option, 'access', _30 => _30.id, 'optionalAccess', _31 => _31.trim, 'call', _32 => _32()])) {
1935
+ if (!_optionalChain([option, 'access', _20 => _20.id, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()])) {
1951
1936
  throw new Error(
1952
1937
  `[AttributeBuilder] Option in "${attributeName}" has an empty or missing id.`
1953
1938
  );
1954
1939
  }
1955
- if (!_optionalChain([option, 'access', _33 => _33.value, 'optionalAccess', _34 => _34.trim, 'call', _35 => _35()])) {
1940
+ if (!_optionalChain([option, 'access', _23 => _23.value, 'optionalAccess', _24 => _24.trim, 'call', _25 => _25()])) {
1956
1941
  throw new Error(
1957
1942
  `[AttributeBuilder] Option "${option.id}" in "${attributeName}" has an empty or missing value.`
1958
1943
  );
1959
1944
  }
1960
- if (!_optionalChain([option, 'access', _36 => _36.label, 'optionalAccess', _37 => _37.trim, 'call', _38 => _38()])) {
1945
+ if (!_optionalChain([option, 'access', _26 => _26.label, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()])) {
1961
1946
  throw new Error(
1962
1947
  `[AttributeBuilder] Option "${option.id}" in "${attributeName}" has an empty or missing label.`
1963
1948
  );
@@ -2069,8 +2054,8 @@ var BaseAttributeBuilder = class {
2069
2054
  featureGate(flagName, options) {
2070
2055
  this.attr.featureGate = {
2071
2056
  flag: flagName,
2072
- expectedValue: _optionalChain([options, 'optionalAccess', _39 => _39.expectedValue]),
2073
- fallback: _optionalChain([options, 'optionalAccess', _40 => _40.fallback])
2057
+ expectedValue: _optionalChain([options, 'optionalAccess', _29 => _29.expectedValue]),
2058
+ fallback: _optionalChain([options, 'optionalAccess', _30 => _30.fallback])
2074
2059
  };
2075
2060
  return this;
2076
2061
  }
@@ -2513,7 +2498,7 @@ var BaseRelationAttributeBuilder = class extends BaseAttributeBuilder {
2513
2498
  object: objectName,
2514
2499
  ...options
2515
2500
  };
2516
- _optionalChain([this, 'access', _41 => _41.attr, 'access', _42 => _42.targets, 'optionalAccess', _43 => _43.push, 'call', _44 => _44(target)]);
2501
+ _optionalChain([this, 'access', _31 => _31.attr, 'access', _32 => _32.targets, 'optionalAccess', _33 => _33.push, 'call', _34 => _34(target)]);
2517
2502
  return this;
2518
2503
  }
2519
2504
  /**
@@ -2625,9 +2610,9 @@ var MultiRelationAttributeBuilder = class extends BaseRelationAttributeBuilder {
2625
2610
  constructor(name, label, initOptions) {
2626
2611
  super("relation", name, label);
2627
2612
  this.attr.cardinality = "many";
2628
- this.attr.targets = _nullishCoalesce(_optionalChain([initOptions, 'optionalAccess', _45 => _45.targets]), () => ( []));
2613
+ this.attr.targets = _nullishCoalesce(_optionalChain([initOptions, 'optionalAccess', _35 => _35.targets]), () => ( []));
2629
2614
  this.attr.defaultValue = [];
2630
- if (_optionalChain([initOptions, 'optionalAccess', _46 => _46.isRequired])) {
2615
+ if (_optionalChain([initOptions, 'optionalAccess', _36 => _36.isRequired])) {
2631
2616
  this.setRequired(true);
2632
2617
  }
2633
2618
  }
@@ -2926,7 +2911,7 @@ var MigrationBuilder = class {
2926
2911
  changeType(name, from, to, options) {
2927
2912
  this.assertNotTouched(name, "change_type");
2928
2913
  this.touchedAttributes.add(name);
2929
- const transform = _optionalChain([options, 'optionalAccess', _47 => _47.transform]) ? resolveBuiltInTransform(to) : void 0;
2914
+ const transform = _optionalChain([options, 'optionalAccess', _37 => _37.transform]) ? resolveBuiltInTransform(to) : void 0;
2930
2915
  this.operations.push({ type: "change_type", name, from, to, transform });
2931
2916
  return this;
2932
2917
  }
@@ -3215,7 +3200,7 @@ var GroupBuilder = class {
3215
3200
  */
3216
3201
  fields(...names) {
3217
3202
  for (const name of names) {
3218
- _optionalChain([this, 'access', _48 => _48.data, 'access', _49 => _49.fields, 'optionalAccess', _50 => _50.push, 'call', _51 => _51({ attribute: name })]);
3203
+ _optionalChain([this, 'access', _38 => _38.data, 'access', _39 => _39.fields, 'optionalAccess', _40 => _40.push, 'call', _41 => _41({ attribute: name })]);
3219
3204
  }
3220
3205
  return this;
3221
3206
  }
@@ -3224,7 +3209,7 @@ var GroupBuilder = class {
3224
3209
  * @example .field("name", { span: 8, readOnly: true })
3225
3210
  */
3226
3211
  field(attribute, options) {
3227
- _optionalChain([this, 'access', _52 => _52.data, 'access', _53 => _53.fields, 'optionalAccess', _54 => _54.push, 'call', _55 => _55({ attribute, ...options })]);
3212
+ _optionalChain([this, 'access', _42 => _42.data, 'access', _43 => _43.fields, 'optionalAccess', _44 => _44.push, 'call', _45 => _45({ attribute, ...options })]);
3228
3213
  return this;
3229
3214
  }
3230
3215
  /**
@@ -3233,7 +3218,7 @@ var GroupBuilder = class {
3233
3218
  * @example .attributeGroup({ id: "address", label: "Address", attributes: ["street", "city", "postal_code"], displayTemplate: "{street}, {city}" })
3234
3219
  */
3235
3220
  attributeGroup(config, options) {
3236
- _optionalChain([this, 'access', _56 => _56.data, 'access', _57 => _57.fields, 'optionalAccess', _58 => _58.push, 'call', _59 => _59({ attributeGroup: config, ...options })]);
3221
+ _optionalChain([this, 'access', _46 => _46.data, 'access', _47 => _47.fields, 'optionalAccess', _48 => _48.push, 'call', _49 => _49({ attributeGroup: config, ...options })]);
3237
3222
  return this;
3238
3223
  }
3239
3224
  /**
@@ -4358,8 +4343,8 @@ var WorkflowFormRowBuilder = class {
4358
4343
  id: `${this.rowData.id}-${slotId}-${attribute}`,
4359
4344
  slotId,
4360
4345
  attribute,
4361
- label: _optionalChain([options, 'optionalAccess', _60 => _60.label]),
4362
- required: _optionalChain([options, 'optionalAccess', _61 => _61.required])
4346
+ label: _optionalChain([options, 'optionalAccess', _50 => _50.label]),
4347
+ required: _optionalChain([options, 'optionalAccess', _51 => _51.required])
4363
4348
  };
4364
4349
  this.rowData.fields.push(field);
4365
4350
  return this;
@@ -4374,16 +4359,16 @@ var WorkflowFormRowBuilder = class {
4374
4359
  * @param options - Optional label, required flag, and relation config
4375
4360
  */
4376
4361
  relationField(slotId, attribute, options) {
4377
- const relationConfig = _optionalChain([options, 'optionalAccess', _62 => _62.visibleProperties]) || _optionalChain([options, 'optionalAccess', _63 => _63.allowCreate]) !== void 0 ? {
4378
- visibleProperties: _optionalChain([options, 'optionalAccess', _64 => _64.visibleProperties]),
4379
- allowCreate: _optionalChain([options, 'optionalAccess', _65 => _65.allowCreate])
4362
+ const relationConfig = _optionalChain([options, 'optionalAccess', _52 => _52.visibleProperties]) || _optionalChain([options, 'optionalAccess', _53 => _53.allowCreate]) !== void 0 ? {
4363
+ visibleProperties: _optionalChain([options, 'optionalAccess', _54 => _54.visibleProperties]),
4364
+ allowCreate: _optionalChain([options, 'optionalAccess', _55 => _55.allowCreate])
4380
4365
  } : void 0;
4381
4366
  const field = {
4382
4367
  id: `${this.rowData.id}-${slotId}-${attribute}`,
4383
4368
  slotId,
4384
4369
  attribute,
4385
- label: _optionalChain([options, 'optionalAccess', _66 => _66.label]),
4386
- required: _optionalChain([options, 'optionalAccess', _67 => _67.required]),
4370
+ label: _optionalChain([options, 'optionalAccess', _56 => _56.label]),
4371
+ required: _optionalChain([options, 'optionalAccess', _57 => _57.required]),
4387
4372
  relationConfig
4388
4373
  };
4389
4374
  this.rowData.fields.push(field);
@@ -4731,52 +4716,48 @@ var WorkflowAssignBuilder = class {
4731
4716
  var WorkflowAIBuilder = class {
4732
4717
  /** @internal */
4733
4718
  constructor(workflowBuilder, nodeId, label) {
4734
- this.action = null;
4719
+ this.agentConfig = null;
4735
4720
  this.workflowBuilder = workflowBuilder;
4736
4721
  this.nodeId = nodeId;
4737
4722
  this.label = label;
4738
4723
  }
4739
- /**
4740
- * Set the description for this AI node
4741
- */
4742
4724
  describe(description) {
4743
4725
  this.nodeDescription = description;
4744
4726
  return this;
4745
4727
  }
4746
- /**
4747
- * Set a custom timeout (default: 120_000ms)
4748
- */
4749
4728
  timeout(ms) {
4750
4729
  this.nodeTimeoutMs = ms;
4751
4730
  return this;
4752
4731
  }
4753
4732
  /**
4754
- * Configure document generation action
4755
- */
4756
- documentGeneration(config) {
4757
- this.action = {
4758
- type: "document-generation",
4759
- ...config
4760
- };
4761
- return this;
4762
- }
4763
- /**
4764
- * Configure code execution action
4765
- */
4766
- codeExecution(config) {
4767
- this.action = {
4768
- type: "code-execution",
4769
- ...config
4770
- };
4733
+ * Configure the agent for this node.
4734
+ *
4735
+ * @param definitionIdOrConfig - Either an existing agent definition ID (string),
4736
+ * or an inline agent config object.
4737
+ * @param options - Additional options merged on top (only used when first arg is a string)
4738
+ */
4739
+ agent(definitionIdOrConfig, options) {
4740
+ if (typeof definitionIdOrConfig === "string") {
4741
+ this.agentConfig = {
4742
+ // Default to async when referencing a definition by ID
4743
+ mode: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _58 => _58.mode]), () => ( "async")),
4744
+ definitionId: definitionIdOrConfig,
4745
+ instructions: _optionalChain([options, 'optionalAccess', _59 => _59.instructions]),
4746
+ inputSlotIds: _optionalChain([options, 'optionalAccess', _60 => _60.inputSlotIds]),
4747
+ targetSlotIds: _optionalChain([options, 'optionalAccess', _61 => _61.targetSlotIds])
4748
+ };
4749
+ } else {
4750
+ this.agentConfig = definitionIdOrConfig;
4751
+ }
4771
4752
  return this;
4772
4753
  }
4773
4754
  /**
4774
4755
  * Set the next node and complete the AI node definition
4775
4756
  */
4776
4757
  next(nodeId) {
4777
- if (!this.action) {
4758
+ if (!this.agentConfig) {
4778
4759
  throw new Error(
4779
- `[WorkflowBuilder] AI node "${this.nodeId}" must have an action. Use .documentGeneration() or .codeExecution() first.`
4760
+ `[WorkflowBuilder] AI node "${this.nodeId}" must have an agent config. Call .agent() first.`
4780
4761
  );
4781
4762
  }
4782
4763
  return this.workflowBuilder._addNode({
@@ -4784,9 +4765,9 @@ var WorkflowAIBuilder = class {
4784
4765
  id: this.nodeId,
4785
4766
  label: this.label,
4786
4767
  description: this.nodeDescription,
4787
- action: this.action,
4788
4768
  timeoutMs: this.nodeTimeoutMs,
4789
- next: nodeId
4769
+ next: nodeId,
4770
+ ...this.agentConfig
4790
4771
  });
4791
4772
  }
4792
4773
  };
@@ -4910,7 +4891,7 @@ var WorkflowBuilder = class {
4910
4891
  * @param options - Slot configuration
4911
4892
  */
4912
4893
  slot(id, objectName, options) {
4913
- if (_optionalChain([this, 'access', _68 => _68.data, 'access', _69 => _69.slots, 'optionalAccess', _70 => _70.some, 'call', _71 => _71((s) => s.id === id)])) {
4894
+ if (_optionalChain([this, 'access', _62 => _62.data, 'access', _63 => _63.slots, 'optionalAccess', _64 => _64.some, 'call', _65 => _65((s) => s.id === id)])) {
4914
4895
  throw new Error(`[WorkflowBuilder] Duplicate slot id: "${id}"`);
4915
4896
  }
4916
4897
  const slot = {
@@ -4921,7 +4902,7 @@ var WorkflowBuilder = class {
4921
4902
  color: options.color,
4922
4903
  icon: options.icon
4923
4904
  };
4924
- _optionalChain([this, 'access', _72 => _72.data, 'access', _73 => _73.slots, 'optionalAccess', _74 => _74.push, 'call', _75 => _75(slot)]);
4905
+ _optionalChain([this, 'access', _66 => _66.data, 'access', _67 => _67.slots, 'optionalAccess', _68 => _68.push, 'call', _69 => _69(slot)]);
4925
4906
  return this;
4926
4907
  }
4927
4908
  // ============================================================================
@@ -4961,9 +4942,7 @@ var WorkflowBuilder = class {
4961
4942
  assign(id, label, targetSlotId) {
4962
4943
  return new WorkflowAssignBuilder(this, id, label, targetSlotId);
4963
4944
  }
4964
- /**
4965
- * Define an AI node (run an AI action like document generation or code execution)
4966
- */
4945
+ /** Define an AI agent node (sync or async, inline or referenced from a definition) */
4967
4946
  ai(id, label) {
4968
4947
  return new WorkflowAIBuilder(this, id, label);
4969
4948
  }
@@ -5054,7 +5033,7 @@ var WorkflowBuilder = class {
5054
5033
  }
5055
5034
  }
5056
5035
  validateSlotReferences() {
5057
- const slotIds = _nullishCoalesce(_optionalChain([this, 'access', _76 => _76.data, 'access', _77 => _77.slots, 'optionalAccess', _78 => _78.reduce, 'call', _79 => _79((set, s) => set.add(s.id), /* @__PURE__ */ new Set())]), () => ( /* @__PURE__ */ new Set()));
5036
+ const slotIds = _nullishCoalesce(_optionalChain([this, 'access', _70 => _70.data, 'access', _71 => _71.slots, 'optionalAccess', _72 => _72.reduce, 'call', _73 => _73((set, s) => set.add(s.id), /* @__PURE__ */ new Set())]), () => ( /* @__PURE__ */ new Set()));
5058
5037
  for (const node of Object.values(_nullishCoalesce(this.data.nodes, () => ( {})))) {
5059
5038
  for (const slotId of getNodeSlotIds(node)) {
5060
5039
  if (!slotIds.has(slotId)) {
@@ -5187,7 +5166,7 @@ var BaseFlagBuilder = class {
5187
5166
  * @throws {Error} If label is not set or is whitespace-only
5188
5167
  */
5189
5168
  build() {
5190
- if (!_optionalChain([this, 'access', _80 => _80.flag, 'access', _81 => _81.label, 'optionalAccess', _82 => _82.trim, 'call', _83 => _83()])) {
5169
+ if (!_optionalChain([this, 'access', _74 => _74.flag, 'access', _75 => _75.label, 'optionalAccess', _76 => _76.trim, 'call', _77 => _77()])) {
5191
5170
  throw new Error(
5192
5171
  `Flag "${this.flag.name}" must have a label. Use .label("Human-readable label").`
5193
5172
  );
@@ -5402,7 +5381,7 @@ var FlagRegistry = class {
5402
5381
  * @returns The default value or undefined if flag not found
5403
5382
  */
5404
5383
  getDefaultValue(name) {
5405
- return _optionalChain([this, 'access', _84 => _84.get, 'call', _85 => _85(name), 'optionalAccess', _86 => _86.defaultValue]);
5384
+ return _optionalChain([this, 'access', _78 => _78.get, 'call', _79 => _79(name), 'optionalAccess', _80 => _80.defaultValue]);
5406
5385
  }
5407
5386
  /**
5408
5387
  * Get a map of all flag names to their default values.
@@ -5448,7 +5427,7 @@ var FlagService = class {
5448
5427
  constructor(options) {
5449
5428
  this.repository = options.repository;
5450
5429
  this.registry = options.registry;
5451
- this.staticDefaults = new Map(_nullishCoalesce(_optionalChain([options, 'access', _87 => _87.staticDefaults, 'optionalAccess', _88 => _88.map, 'call', _89 => _89((d) => [d.name, d.value])]), () => ( [])));
5430
+ this.staticDefaults = new Map(_nullishCoalesce(_optionalChain([options, 'access', _81 => _81.staticDefaults, 'optionalAccess', _82 => _82.map, 'call', _83 => _83((d) => [d.name, d.value])]), () => ( [])));
5452
5431
  }
5453
5432
  /**
5454
5433
  * Resolve all flags for the current context.
@@ -5526,7 +5505,7 @@ var FlagService = class {
5526
5505
  `Flag "${flagName}" does not allow ${level}-level overrides. Allowed levels: ${flag.allowedLevels.join(", ")}`
5527
5506
  );
5528
5507
  }
5529
- if (_optionalChain([flag, 'optionalAccess', _90 => _90.system])) {
5508
+ if (_optionalChain([flag, 'optionalAccess', _84 => _84.system])) {
5530
5509
  throw new Error(`Flag "${flagName}" is a system flag and cannot be overridden via API.`);
5531
5510
  }
5532
5511
  await this.repository.setOverride({
@@ -5577,7 +5556,7 @@ var FlagService = class {
5577
5556
  */
5578
5557
  resolveValue(flagName, overrides, context) {
5579
5558
  const flag = this.registry.get(flagName);
5580
- const allowedLevels = _nullishCoalesce(_optionalChain([flag, 'optionalAccess', _91 => _91.allowedLevels]), () => ( ["global", "tenant", "user"]));
5559
+ const allowedLevels = _nullishCoalesce(_optionalChain([flag, 'optionalAccess', _85 => _85.allowedLevels]), () => ( ["global", "tenant", "user"]));
5581
5560
  if (context.userId && allowedLevels.includes("user")) {
5582
5561
  const userOverride = overrides.user.find((o) => o.flagName === flagName);
5583
5562
  if (userOverride) return userOverride.value;
@@ -5593,14 +5572,14 @@ var FlagService = class {
5593
5572
  if (this.staticDefaults.has(flagName)) {
5594
5573
  return this.staticDefaults.get(flagName);
5595
5574
  }
5596
- return _optionalChain([flag, 'optionalAccess', _92 => _92.defaultValue]);
5575
+ return _optionalChain([flag, 'optionalAccess', _86 => _86.defaultValue]);
5597
5576
  }
5598
5577
  /**
5599
5578
  * Resolve a flag value with source information.
5600
5579
  */
5601
5580
  resolveWithSource(flagName, overrides, context) {
5602
5581
  const flag = this.registry.get(flagName);
5603
- const allowedLevels = _nullishCoalesce(_optionalChain([flag, 'optionalAccess', _93 => _93.allowedLevels]), () => ( ["global", "tenant", "user"]));
5582
+ const allowedLevels = _nullishCoalesce(_optionalChain([flag, 'optionalAccess', _87 => _87.allowedLevels]), () => ( ["global", "tenant", "user"]));
5604
5583
  if (context.userId && allowedLevels.includes("user")) {
5605
5584
  const userOverride = overrides.user.find((o) => o.flagName === flagName);
5606
5585
  if (userOverride) {
@@ -5642,7 +5621,7 @@ var FlagService = class {
5642
5621
  }
5643
5622
  return {
5644
5623
  name: flagName,
5645
- value: _nullishCoalesce(_optionalChain([flag, 'optionalAccess', _94 => _94.defaultValue]), () => ( void 0)),
5624
+ value: _nullishCoalesce(_optionalChain([flag, 'optionalAccess', _88 => _88.defaultValue]), () => ( void 0)),
5646
5625
  source: "default"
5647
5626
  };
5648
5627
  }
@@ -5702,7 +5681,7 @@ Native objects must have system=true. Did you forget to call .system() in your b
5702
5681
  const existing = this.objects.get(object2.name);
5703
5682
  throw new Error(
5704
5683
  `[NativeObjectRegistry] Duplicate object name "${object2.name}":
5705
- - Existing: "${_optionalChain([existing, 'optionalAccess', _95 => _95.label])}" (id: ${_optionalChain([existing, 'optionalAccess', _96 => _96.id])})
5684
+ - Existing: "${_optionalChain([existing, 'optionalAccess', _89 => _89.label])}" (id: ${_optionalChain([existing, 'optionalAccess', _90 => _90.id])})
5706
5685
  - New: "${object2.label}" (id: ${object2.id})
5707
5686
  Please use unique names for each native object.`
5708
5687
  );
@@ -6566,7 +6545,4 @@ function isViewCustomized(view2, object2) {
6566
6545
 
6567
6546
 
6568
6547
 
6569
-
6570
-
6571
-
6572
- exports.AIActionConfigSchema = AIActionConfigSchema; exports.AINodeSchema = AINodeSchema; exports.ALL_ACTIONS = ALL_ACTIONS; exports.ALL_SYSTEM_RESOURCES = ALL_SYSTEM_RESOURCES; exports.ActivityTabConfig = ActivityTabConfig; exports.AssignNodeSchema = AssignNodeSchema; exports.AssignmentMappingSchema = AssignmentMappingSchema; exports.AssignmentSourceSchema = AssignmentSourceSchema; exports.AttributeInUseError = AttributeInUseError; exports.AttributeNotFoundError = AttributeNotFoundError; exports.AuthMethodSchema = AuthMethodSchema; exports.BEHAVIOR_PROPERTIES = BEHAVIOR_PROPERTIES; exports.CodeExecutionActionSchema = CodeExecutionActionSchema; exports.ConcurrentModificationError = ConcurrentModificationError; exports.ConditionGroupSchema = ConditionGroupSchema; exports.ConditionNodeSchema = ConditionNodeSchema; exports.ConditionOperatorSchema = ConditionOperatorSchema; exports.ConditionRuleSchema = ConditionRuleSchema; exports.CreateShareInputSchema = CreateShareInputSchema; exports.CustomTabConfig = CustomTabConfig; exports.DEFAULT_LABEL_FALLBACK = DEFAULT_LABEL_FALLBACK; exports.DEFAULT_RETENTION_POLICY = DEFAULT_RETENTION_POLICY; exports.DEFAULT_ROLES = DEFAULT_ROLES; exports.DEFAULT_ROLE_DESCRIPTIONS = DEFAULT_ROLE_DESCRIPTIONS; exports.DEFAULT_ROLE_FOR_NEW_USERS = DEFAULT_ROLE_FOR_NEW_USERS; exports.DEFAULT_ROLE_LABELS = DEFAULT_ROLE_LABELS; exports.DEFAULT_ROLE_PERMISSIONS = DEFAULT_ROLE_PERMISSIONS; exports.DEFAULT_THEME = DEFAULT_THEME; exports.DEFAULT_VALIDATION_MESSAGES = _chunk7QUI6TSOjs.DEFAULT_VALIDATION_MESSAGES; exports.DetailViewBuilder = DetailViewBuilder; exports.DocumentGenerationActionSchema = DocumentGenerationActionSchema; exports.DocumentsTabConfig = DocumentsTabConfig; exports.DuplicateError = DuplicateError; exports.EMPTY_VALUE_PLACEHOLDER = EMPTY_VALUE_PLACEHOLDER; exports.EndNodeSchema = EndNodeSchema; exports.FORBIDDEN_PROPERTY_TYPES = FORBIDDEN_PROPERTY_TYPES; exports.FileNotFoundError = FileNotFoundError; exports.FlagRegistry = FlagRegistry; exports.FlagService = FlagService; exports.FlowRowFieldSchema = FlowRowFieldSchema; exports.FlowRowSchema = FlowRowSchema; exports.FlowsTabConfig = FlowsTabConfig; exports.ForbiddenError = ForbiddenError; exports.FormFieldRefSchema = FormFieldRefSchema; exports.FormNodeSchema = FormNodeSchema; exports.GroupBuilder = GroupBuilder; exports.IDENTITY_PROPERTIES = IDENTITY_PROPERTIES; exports.ListViewBuilder = ListViewBuilder; exports.ListViewTabConfigBuilder = ListViewTabConfigBuilder; exports.NON_SORTABLE_TYPES = NON_SORTABLE_TYPES; exports.NO_VALUE_OPERATORS = NO_VALUE_OPERATORS; exports.NodePositionSchema = NodePositionSchema; exports.NoopGeocodingAdapter = NoopGeocodingAdapter; exports.NotFoundError = NotFoundError; exports.NotSystemObjectError = NotSystemObjectError; exports.OPERATORS_BY_TYPE = OPERATORS_BY_TYPE; exports.ObjectBuilder = ObjectBuilder; exports.ObjectNotFoundError = ObjectNotFoundError; exports.ObjectReferencedError = ObjectReferencedError; exports.PRESENTATION_PROPERTIES = PRESENTATION_PROPERTIES; exports.PolicyViolationError = PolicyViolationError; exports.ProtectedResourceError = ProtectedResourceError; exports.ProtectedRoleError = ProtectedRoleError; exports.RELATION_TARGET_ANY = RELATION_TARGET_ANY; exports.RESERVED_ATTRIBUTE_NAMES = RESERVED_ATTRIBUTE_NAMES; exports.RecordNotFoundError = RecordNotFoundError; exports.RecordReferencedError = RecordReferencedError; exports.RelationGroupBuilder = RelationGroupBuilder; exports.RichtextTabConfig = RichtextTabConfig; exports.RoleNotFoundError = RoleNotFoundError; exports.SYSTEM_ATTRIBUTES = SYSTEM_ATTRIBUTES; exports.SYSTEM_FIELD_NAMES = SYSTEM_FIELD_NAMES; exports.SYSTEM_RESOURCES = SYSTEM_RESOURCES; exports.SYSTEM_RESOURCE_LABELS = SYSTEM_RESOURCE_LABELS; exports.SchemaError = SchemaError; exports.SchemaErrorCode = SchemaErrorCode; exports.ShareStatusSchema = ShareStatusSchema; exports.SlotModeSchema = SlotModeSchema; exports.StartNodeSchema = StartNodeSchema; exports.SyncError = SyncError; exports.TabBuilder = TabBuilder; exports.TableTabConfig = TableTabConfig; exports.ThemeColorsSchema = ThemeColorsSchema; exports.ThemeLogoSchema = ThemeLogoSchema; exports.USER_STATUSES = USER_STATUSES; exports.UserProfileNotFoundError = UserProfileNotFoundError; exports.ValidationError = ValidationError; exports.ViewBuilder = ViewBuilder; exports.ViewportSchema = ViewportSchema; exports.WorkflowAIBuilder = WorkflowAIBuilder; exports.WorkflowAssignBuilder = WorkflowAssignBuilder; exports.WorkflowBuilder = WorkflowBuilder; exports.WorkflowConditionBuilder = WorkflowConditionBuilder; exports.WorkflowConfigSchema = WorkflowConfigSchema; exports.WorkflowDefinitionSchema = WorkflowDefinitionSchema; exports.WorkflowEndBuilder = WorkflowEndBuilder; exports.WorkflowFormBuilder = WorkflowFormBuilder; exports.WorkflowFormRowBuilder = WorkflowFormRowBuilder; exports.WorkflowLayoutSchema = WorkflowLayoutSchema; exports.WorkflowNodeSchema = WorkflowNodeSchema; exports.WorkflowShareSchema = WorkflowShareSchema; exports.WorkflowSimpleFormBuilder = WorkflowSimpleFormBuilder; exports.WorkflowSlotSchema = WorkflowSlotSchema; exports.WorkflowStartBuilder = WorkflowStartBuilder; exports.WorkflowStatusSchema = WorkflowStatusSchema; exports.WorkflowThemeSchema = WorkflowThemeSchema; exports.ZONE_CONFIG = ZONE_CONFIG; exports.ZONE_ORDER = ZONE_ORDER; exports.accessLevelToActions = accessLevelToActions; exports.actionsToAccessLevel = actionsToAccessLevel; exports.and = and; exports.applyRelationProps = applyRelationProps; exports.asTenantId = _chunkE6XO2STSjs.asTenantId; exports.asUserId = _chunkE6XO2STSjs.asUserId; exports.assignNodeZones = assignNodeZones; exports.attributeConfigSchemas = _chunk7QUI6TSOjs.attributeConfigSchemas; exports.booleanFlag = booleanFlag; exports.canAccessNode = canAccessNode; exports.canResumeInstance = canResumeInstance; exports.checkbox = checkbox; exports.checkboxConfigSchema = _chunk7QUI6TSOjs.checkboxConfigSchema; exports.computeRecordStatus = _chunk7QUI6TSOjs.computeRecordStatus; exports.createAttributeValidator = _chunk7QUI6TSOjs.createAttributeValidator; exports.createCheckboxValidator = _chunk7QUI6TSOjs.createCheckboxValidator; exports.createCurrencyValidator = _chunk7QUI6TSOjs.createCurrencyValidator; exports.createDateValidator = _chunk7QUI6TSOjs.createDateValidator; exports.createDraftValidator = _chunk7QUI6TSOjs.createDraftValidator; exports.createEmptyContext = createEmptyContext; exports.createFileValidator = _chunk7QUI6TSOjs.createFileValidator; exports.createFlagRegistry = createFlagRegistry; exports.createFlagService = createFlagService; exports.createFormAttributeValidator = _chunk7QUI6TSOjs.createFormAttributeValidator; exports.createFormulaValidator = _chunk7QUI6TSOjs.createFormulaValidator; exports.createLocationValidator = _chunk7QUI6TSOjs.createLocationValidator; exports.createMultiRelationValidator = _chunk7QUI6TSOjs.createMultiRelationValidator; exports.createMultiselectValidator = _chunk7QUI6TSOjs.createMultiselectValidator; exports.createNumberValidator = _chunk7QUI6TSOjs.createNumberValidator; exports.createObjectValidator = _chunk7QUI6TSOjs.createObjectValidator; exports.createPhoneValidator = _chunk7QUI6TSOjs.createPhoneValidator; exports.createRatingValidator = _chunk7QUI6TSOjs.createRatingValidator; exports.createRelationValidator = _chunk7QUI6TSOjs.createRelationValidator; exports.createRichtextValidator = _chunk7QUI6TSOjs.createRichtextValidator; exports.createRollupValidator = _chunk7QUI6TSOjs.createRollupValidator; exports.createSelectValidator = _chunk7QUI6TSOjs.createSelectValidator; exports.createSingleRelationValidator = _chunk7QUI6TSOjs.createSingleRelationValidator; exports.createStartTransition = createStartTransition; exports.createStatusValidator = _chunk7QUI6TSOjs.createStatusValidator; exports.createTextAreaValidator = _chunk7QUI6TSOjs.createTextAreaValidator; exports.createTextValidator = _chunk7QUI6TSOjs.createTextValidator; exports.createUserValidator = _chunk7QUI6TSOjs.createUserValidator; exports.currency = currency; exports.currencyConfigSchema = _chunk7QUI6TSOjs.currencyConfigSchema; exports.date = date; exports.dateConfigSchema = _chunk7QUI6TSOjs.dateConfigSchema; exports.deepEqual = _chunkE6XO2STSjs.deepEqual; exports.detailView = detailView; exports.document = document; exports.documentConfigSchema = _chunk7QUI6TSOjs.documentConfigSchema; exports.eq = eq; exports.extractAttributeNames = extractAttributeNames; exports.file = file; exports.fileConfigSchema = _chunk7QUI6TSOjs.fileConfigSchema; exports.flagRegistry = flagRegistry; exports.formatAttributeValue = formatAttributeValue; exports.formatPhoneForDisplay = _chunk7QUI6TSOjs.formatPhoneForDisplay; exports.formatZodErrors = _chunk7QUI6TSOjs.formatZodErrors; exports.formula = formula; exports.formulaConfigSchema = _chunk7QUI6TSOjs.formulaConfigSchema; exports.generateCssVariables = generateCssVariables; exports.generateDefaultDetailView = generateDefaultDetailView; exports.generateDefaultListView = generateDefaultListView; exports.generateFallbackView = generateFallbackView; exports.generateId = _chunkE6XO2STSjs.generateId; exports.generatePrefixedId = _chunkE6XO2STSjs.generatePrefixedId; exports.generateTemplateName = _chunkE6XO2STSjs.generateTemplateName; exports.getActiveTab = getActiveTab; exports.getAttributeConfigSchema = _chunk7QUI6TSOjs.getAttributeConfigSchema; exports.getContextValue = getContextValue; exports.getErrorMessage = getErrorMessage; exports.getFormFieldRefs = getFormFieldRefs; exports.getMissingRequiredAttributes = _chunk7QUI6TSOjs.getMissingRequiredAttributes; exports.getNodeOutputs = getNodeOutputs; exports.getNodeSlotIds = getNodeSlotIds; exports.getRollupFilterOperators = getRollupFilterOperators; exports.getSystemAttributeList = getSystemAttributeList; exports.getZoneAllowedTypes = getZoneAllowedTypes; exports.group = group; exports.groupNodesByZone = groupNodesByZone; exports.hasOptions = hasOptions; exports.hasProperties = hasProperties; exports.inValues = inValues; exports.indexBy = _chunkE6XO2STSjs.indexBy; exports.inferInverseCardinality = inferInverseCardinality; exports.isAINode = isAINode; exports.isActivityTab = isActivityTab; exports.isAdvancedFormNode = isAdvancedFormNode; exports.isAssignNode = isAssignNode; exports.isAttributeSortable = isAttributeSortable; exports.isBehaviorProperty = isBehaviorProperty; exports.isBilateralRelation = isBilateralRelation; exports.isCalendarView = isCalendarView; exports.isConditionGroup = isConditionGroup; exports.isConditionNode = isConditionNode; exports.isConditionRule = isConditionRule; exports.isCustomTab = isCustomTab; exports.isDefaultRole = isDefaultRole; exports.isDetailView = isDetailView; exports.isDocumentsTab = isDocumentsTab; exports.isEmpty = isEmpty2; exports.isEndNode = isEndNode; exports.isFieldGroup = isFieldGroup; exports.isFlowDefinition = isFlowDefinition; exports.isFlowFieldsRow = isFlowFieldsRow; exports.isFlowPublished = isFlowPublished; exports.isFlowRelationListRow = isFlowRelationListRow; exports.isFlowsTab = isFlowsTab; exports.isForbiddenError = isForbiddenError; exports.isFormFieldsRow = isFormFieldsRow; exports.isFormNode = isFormNode; exports.isFormTab = isFormTab; exports.isGalleryView = isGalleryView; exports.isGrantExpired = isGrantExpired; exports.isGrantRevoked = isGrantRevoked; exports.isGrantValid = isGrantValid; exports.isIdentityProperty = isIdentityProperty; exports.isInstanceEvent = isInstanceEvent; exports.isInstanceTerminal = isInstanceTerminal; exports.isInstanceWaiting = isInstanceWaiting; exports.isInverseSourceTab = isInverseSourceTab; exports.isInvitationAccepted = isInvitationAccepted; exports.isInvitationExpired = isInvitationExpired; exports.isInvitationOrGrantEvent = isInvitationOrGrantEvent; exports.isInvitationValid = isInvitationValid; exports.isLabelExpression = isLabelExpression; exports.isLayoutRow = isLayoutRow; exports.isListView = isListView; exports.isNoValueOperator = isNoValueOperator; exports.isNodeEvent = isNodeEvent; exports.isNotEmpty = isNotEmpty2; exports.isNotFoundError = isNotFoundError; exports.isPresentationProperty = isPresentationProperty; exports.isProtectedResourceError = isProtectedResourceError; exports.isRecordComplete = _chunk7QUI6TSOjs.isRecordComplete; exports.isRelationGroup = isRelationGroup; exports.isRelationSourceTab = isRelationSourceTab; exports.isRichtextTab = isRichtextTab; exports.isSchemaError = isSchemaError; exports.isSimpleFormNode = isSimpleFormNode; exports.isStartNode = isStartNode; exports.isSystemAttribute = isSystemAttribute; exports.isSystemAttributeObject = isSystemAttributeObject; exports.isSystemFlow = isSystemFlow; exports.isSystemWorkflow = isSystemWorkflow; exports.isTableTab = isTableTab; exports.isTimelineView = isTimelineView; exports.isTokenRevoked = isTokenRevoked; exports.isUniversalRelation = isUniversalRelation; exports.isValidationError = isValidationError; exports.isViewCustomized = isViewCustomized; exports.isWorkflowDefinition = isWorkflowDefinition; exports.isWorkflowPublished = isWorkflowPublished; exports.jsonFlag = jsonFlag; exports.listView = listView; exports.location = location; exports.locationConfigSchema = _chunk7QUI6TSOjs.locationConfigSchema; exports.mergeWithDefaults = mergeWithDefaults; exports.multiselect = multiselect; exports.multiselectConfigSchema = _chunk7QUI6TSOjs.multiselectConfigSchema; exports.neq = neq; exports.nodeTypeRegistry = nodeTypeRegistry; exports.normalizePhoneNumber = _chunk7QUI6TSOjs.normalizePhoneNumber; exports.number = number; exports.numberConfigSchema = _chunk7QUI6TSOjs.numberConfigSchema; exports.numberFlag = numberFlag; exports.object = object; exports.or = or; exports.parseAttributeConfig = _chunk7QUI6TSOjs.parseAttributeConfig; exports.parseRawPhoneInput = _chunk7QUI6TSOjs.parseRawPhoneInput; exports.phone = phone; exports.phoneConfigSchema = _chunk7QUI6TSOjs.phoneConfigSchema; exports.rating = rating; exports.ratingConfigSchema = _chunk7QUI6TSOjs.ratingConfigSchema; exports.registry = registry; exports.relation = relation; exports.relationConfigSchema = _chunk7QUI6TSOjs.relationConfigSchema; exports.relationGroup = relationGroup; exports.renderLabelExpression = renderLabelExpression; exports.resetViewToDefault = resetViewToDefault; exports.richtext = richtext; exports.richtextConfigSchema = _chunk7QUI6TSOjs.richtextConfigSchema; exports.rollup = rollup; exports.rollupConfigSchema = _chunk7QUI6TSOjs.rollupConfigSchema; exports.safeParseAttributeConfig = _chunk7QUI6TSOjs.safeParseAttributeConfig; exports.select = select; exports.selectConfigSchema = _chunk7QUI6TSOjs.selectConfigSchema; exports.setContextValue = setContextValue; exports.setNodeNext = setNodeNext; exports.slugify = _chunkE6XO2STSjs.slugify; exports.status = status; exports.statusConfigSchema = _chunk7QUI6TSOjs.statusConfigSchema; exports.stringFlag = stringFlag; exports.text = text; exports.textConfigSchema = _chunk7QUI6TSOjs.textConfigSchema; exports.textarea = textarea; exports.textareaConfigSchema = _chunk7QUI6TSOjs.textareaConfigSchema; exports.toUndefinedIfEmpty = toUndefinedIfEmpty; exports.user = user; exports.userConfigSchema = _chunk7QUI6TSOjs.userConfigSchema; exports.validateAttribute = _chunk7QUI6TSOjs.validateAttribute; exports.validateAttributeConfig = _chunk7QUI6TSOjs.validateAttributeConfig; exports.validateDraft = _chunk7QUI6TSOjs.validateDraft; exports.validateDraftOrThrow = _chunk7QUI6TSOjs.validateDraftOrThrow; exports.validateNode = validateNode; exports.validateObject = _chunk7QUI6TSOjs.validateObject; exports.validateObjectOrThrow = _chunk7QUI6TSOjs.validateObjectOrThrow; exports.validatePhoneNumber = _chunk7QUI6TSOjs.validatePhoneNumber; exports.view = view; exports.viewRegistry = viewRegistry; exports.workflow = workflow;
6548
+ exports.AINodeSchema = AINodeSchema; exports.ALL_ACTIONS = ALL_ACTIONS; exports.ALL_SYSTEM_RESOURCES = ALL_SYSTEM_RESOURCES; exports.ActivityTabConfig = ActivityTabConfig; exports.AssignNodeSchema = AssignNodeSchema; exports.AssignmentMappingSchema = AssignmentMappingSchema; exports.AssignmentSourceSchema = AssignmentSourceSchema; exports.AttributeInUseError = AttributeInUseError; exports.AttributeNotFoundError = AttributeNotFoundError; exports.AuthMethodSchema = AuthMethodSchema; exports.BEHAVIOR_PROPERTIES = BEHAVIOR_PROPERTIES; exports.ConcurrentModificationError = ConcurrentModificationError; exports.ConditionGroupSchema = ConditionGroupSchema; exports.ConditionNodeSchema = ConditionNodeSchema; exports.ConditionOperatorSchema = ConditionOperatorSchema; exports.ConditionRuleSchema = ConditionRuleSchema; exports.CreateShareInputSchema = CreateShareInputSchema; exports.CustomTabConfig = CustomTabConfig; exports.DEFAULT_LABEL_FALLBACK = DEFAULT_LABEL_FALLBACK; exports.DEFAULT_RETENTION_POLICY = DEFAULT_RETENTION_POLICY; exports.DEFAULT_ROLES = DEFAULT_ROLES; exports.DEFAULT_ROLE_DESCRIPTIONS = DEFAULT_ROLE_DESCRIPTIONS; exports.DEFAULT_ROLE_FOR_NEW_USERS = DEFAULT_ROLE_FOR_NEW_USERS; exports.DEFAULT_ROLE_LABELS = DEFAULT_ROLE_LABELS; exports.DEFAULT_ROLE_PERMISSIONS = DEFAULT_ROLE_PERMISSIONS; exports.DEFAULT_THEME = DEFAULT_THEME; exports.DEFAULT_VALIDATION_MESSAGES = _chunk7QUI6TSOjs.DEFAULT_VALIDATION_MESSAGES; exports.DetailViewBuilder = DetailViewBuilder; exports.DocumentsTabConfig = DocumentsTabConfig; exports.DuplicateError = DuplicateError; exports.EMPTY_VALUE_PLACEHOLDER = EMPTY_VALUE_PLACEHOLDER; exports.EndNodeSchema = EndNodeSchema; exports.FORBIDDEN_PROPERTY_TYPES = FORBIDDEN_PROPERTY_TYPES; exports.FileNotFoundError = FileNotFoundError; exports.FlagRegistry = FlagRegistry; exports.FlagService = FlagService; exports.FlowRowFieldSchema = FlowRowFieldSchema; exports.FlowRowSchema = FlowRowSchema; exports.FlowsTabConfig = FlowsTabConfig; exports.ForbiddenError = ForbiddenError; exports.FormFieldRefSchema = FormFieldRefSchema; exports.FormNodeSchema = FormNodeSchema; exports.GroupBuilder = GroupBuilder; exports.IDENTITY_PROPERTIES = IDENTITY_PROPERTIES; exports.ListViewBuilder = ListViewBuilder; exports.ListViewTabConfigBuilder = ListViewTabConfigBuilder; exports.NON_SORTABLE_TYPES = NON_SORTABLE_TYPES; exports.NO_VALUE_OPERATORS = NO_VALUE_OPERATORS; exports.NodePositionSchema = NodePositionSchema; exports.NoopGeocodingAdapter = NoopGeocodingAdapter; exports.NotFoundError = NotFoundError; exports.NotSystemObjectError = NotSystemObjectError; exports.OPERATORS_BY_TYPE = OPERATORS_BY_TYPE; exports.ObjectBuilder = ObjectBuilder; exports.ObjectNotFoundError = ObjectNotFoundError; exports.ObjectReferencedError = ObjectReferencedError; exports.PRESENTATION_PROPERTIES = PRESENTATION_PROPERTIES; exports.PolicyViolationError = PolicyViolationError; exports.ProtectedResourceError = ProtectedResourceError; exports.ProtectedRoleError = ProtectedRoleError; exports.RELATION_TARGET_ANY = RELATION_TARGET_ANY; exports.RESERVED_ATTRIBUTE_NAMES = RESERVED_ATTRIBUTE_NAMES; exports.RecordNotFoundError = RecordNotFoundError; exports.RecordReferencedError = RecordReferencedError; exports.RelationGroupBuilder = RelationGroupBuilder; exports.RichtextTabConfig = RichtextTabConfig; exports.RoleNotFoundError = RoleNotFoundError; exports.SYSTEM_ATTRIBUTES = SYSTEM_ATTRIBUTES; exports.SYSTEM_FIELD_NAMES = SYSTEM_FIELD_NAMES; exports.SYSTEM_RESOURCES = SYSTEM_RESOURCES; exports.SYSTEM_RESOURCE_LABELS = SYSTEM_RESOURCE_LABELS; exports.SchemaError = SchemaError; exports.SchemaErrorCode = SchemaErrorCode; exports.ShareStatusSchema = ShareStatusSchema; exports.SlotModeSchema = SlotModeSchema; exports.StartNodeSchema = StartNodeSchema; exports.SyncError = SyncError; exports.TabBuilder = TabBuilder; exports.TableTabConfig = TableTabConfig; exports.ThemeColorsSchema = ThemeColorsSchema; exports.ThemeLogoSchema = ThemeLogoSchema; exports.USER_STATUSES = USER_STATUSES; exports.UserProfileNotFoundError = UserProfileNotFoundError; exports.ValidationError = ValidationError; exports.ViewBuilder = ViewBuilder; exports.ViewportSchema = ViewportSchema; exports.WorkflowAIBuilder = WorkflowAIBuilder; exports.WorkflowAssignBuilder = WorkflowAssignBuilder; exports.WorkflowBuilder = WorkflowBuilder; exports.WorkflowConditionBuilder = WorkflowConditionBuilder; exports.WorkflowConfigSchema = WorkflowConfigSchema; exports.WorkflowDefinitionSchema = WorkflowDefinitionSchema; exports.WorkflowEndBuilder = WorkflowEndBuilder; exports.WorkflowFormBuilder = WorkflowFormBuilder; exports.WorkflowFormRowBuilder = WorkflowFormRowBuilder; exports.WorkflowLayoutSchema = WorkflowLayoutSchema; exports.WorkflowNodeSchema = WorkflowNodeSchema; exports.WorkflowShareSchema = WorkflowShareSchema; exports.WorkflowSimpleFormBuilder = WorkflowSimpleFormBuilder; exports.WorkflowSlotSchema = WorkflowSlotSchema; exports.WorkflowStartBuilder = WorkflowStartBuilder; exports.WorkflowStatusSchema = WorkflowStatusSchema; exports.WorkflowThemeSchema = WorkflowThemeSchema; exports.ZONE_CONFIG = ZONE_CONFIG; exports.ZONE_ORDER = ZONE_ORDER; exports.accessLevelToActions = accessLevelToActions; exports.actionsToAccessLevel = actionsToAccessLevel; exports.and = and; exports.applyRelationProps = applyRelationProps; exports.asTenantId = _chunkE6XO2STSjs.asTenantId; exports.asUserId = _chunkE6XO2STSjs.asUserId; exports.assignNodeZones = assignNodeZones; exports.attributeConfigSchemas = _chunk7QUI6TSOjs.attributeConfigSchemas; exports.booleanFlag = booleanFlag; exports.canAccessNode = canAccessNode; exports.canResumeInstance = canResumeInstance; exports.checkbox = checkbox; exports.checkboxConfigSchema = _chunk7QUI6TSOjs.checkboxConfigSchema; exports.computeRecordStatus = _chunk7QUI6TSOjs.computeRecordStatus; exports.createAttributeValidator = _chunk7QUI6TSOjs.createAttributeValidator; exports.createCheckboxValidator = _chunk7QUI6TSOjs.createCheckboxValidator; exports.createCurrencyValidator = _chunk7QUI6TSOjs.createCurrencyValidator; exports.createDateValidator = _chunk7QUI6TSOjs.createDateValidator; exports.createDraftValidator = _chunk7QUI6TSOjs.createDraftValidator; exports.createEmptyContext = createEmptyContext; exports.createFileValidator = _chunk7QUI6TSOjs.createFileValidator; exports.createFlagRegistry = createFlagRegistry; exports.createFlagService = createFlagService; exports.createFormAttributeValidator = _chunk7QUI6TSOjs.createFormAttributeValidator; exports.createFormulaValidator = _chunk7QUI6TSOjs.createFormulaValidator; exports.createLocationValidator = _chunk7QUI6TSOjs.createLocationValidator; exports.createMultiRelationValidator = _chunk7QUI6TSOjs.createMultiRelationValidator; exports.createMultiselectValidator = _chunk7QUI6TSOjs.createMultiselectValidator; exports.createNumberValidator = _chunk7QUI6TSOjs.createNumberValidator; exports.createObjectValidator = _chunk7QUI6TSOjs.createObjectValidator; exports.createPhoneValidator = _chunk7QUI6TSOjs.createPhoneValidator; exports.createRatingValidator = _chunk7QUI6TSOjs.createRatingValidator; exports.createRelationValidator = _chunk7QUI6TSOjs.createRelationValidator; exports.createRichtextValidator = _chunk7QUI6TSOjs.createRichtextValidator; exports.createRollupValidator = _chunk7QUI6TSOjs.createRollupValidator; exports.createSelectValidator = _chunk7QUI6TSOjs.createSelectValidator; exports.createSingleRelationValidator = _chunk7QUI6TSOjs.createSingleRelationValidator; exports.createStartTransition = createStartTransition; exports.createStatusValidator = _chunk7QUI6TSOjs.createStatusValidator; exports.createTextAreaValidator = _chunk7QUI6TSOjs.createTextAreaValidator; exports.createTextValidator = _chunk7QUI6TSOjs.createTextValidator; exports.createUserValidator = _chunk7QUI6TSOjs.createUserValidator; exports.currency = currency; exports.currencyConfigSchema = _chunk7QUI6TSOjs.currencyConfigSchema; exports.date = date; exports.dateConfigSchema = _chunk7QUI6TSOjs.dateConfigSchema; exports.deepEqual = _chunkE6XO2STSjs.deepEqual; exports.detailView = detailView; exports.document = document; exports.documentConfigSchema = _chunk7QUI6TSOjs.documentConfigSchema; exports.eq = eq; exports.extractAttributeNames = extractAttributeNames; exports.file = file; exports.fileConfigSchema = _chunk7QUI6TSOjs.fileConfigSchema; exports.flagRegistry = flagRegistry; exports.formatAttributeValue = formatAttributeValue; exports.formatPhoneForDisplay = _chunk7QUI6TSOjs.formatPhoneForDisplay; exports.formatZodErrors = _chunk7QUI6TSOjs.formatZodErrors; exports.formula = formula; exports.formulaConfigSchema = _chunk7QUI6TSOjs.formulaConfigSchema; exports.generateCssVariables = generateCssVariables; exports.generateDefaultDetailView = generateDefaultDetailView; exports.generateDefaultListView = generateDefaultListView; exports.generateFallbackView = generateFallbackView; exports.generateId = _chunkE6XO2STSjs.generateId; exports.generatePrefixedId = _chunkE6XO2STSjs.generatePrefixedId; exports.generateTemplateName = _chunkE6XO2STSjs.generateTemplateName; exports.getActiveTab = getActiveTab; exports.getAttributeConfigSchema = _chunk7QUI6TSOjs.getAttributeConfigSchema; exports.getContextValue = getContextValue; exports.getErrorMessage = getErrorMessage; exports.getFormFieldRefs = getFormFieldRefs; exports.getMissingRequiredAttributes = _chunk7QUI6TSOjs.getMissingRequiredAttributes; exports.getNodeOutputs = getNodeOutputs; exports.getNodeSlotIds = getNodeSlotIds; exports.getRollupFilterOperators = getRollupFilterOperators; exports.getSystemAttributeList = getSystemAttributeList; exports.getZoneAllowedTypes = getZoneAllowedTypes; exports.group = group; exports.groupNodesByZone = groupNodesByZone; exports.hasOptions = hasOptions; exports.hasProperties = hasProperties; exports.inValues = inValues; exports.indexBy = _chunkE6XO2STSjs.indexBy; exports.inferInverseCardinality = inferInverseCardinality; exports.isAINode = isAINode; exports.isActivityTab = isActivityTab; exports.isAdvancedFormNode = isAdvancedFormNode; exports.isAssignNode = isAssignNode; exports.isAttributeSortable = isAttributeSortable; exports.isBehaviorProperty = isBehaviorProperty; exports.isBilateralRelation = isBilateralRelation; exports.isCalendarView = isCalendarView; exports.isConditionGroup = isConditionGroup; exports.isConditionNode = isConditionNode; exports.isConditionRule = isConditionRule; exports.isCustomTab = isCustomTab; exports.isDefaultRole = isDefaultRole; exports.isDetailView = isDetailView; exports.isDocumentsTab = isDocumentsTab; exports.isEmpty = isEmpty2; exports.isEndNode = isEndNode; exports.isFieldGroup = isFieldGroup; exports.isFlowDefinition = isFlowDefinition; exports.isFlowFieldsRow = isFlowFieldsRow; exports.isFlowPublished = isFlowPublished; exports.isFlowRelationListRow = isFlowRelationListRow; exports.isFlowsTab = isFlowsTab; exports.isForbiddenError = isForbiddenError; exports.isFormFieldsRow = isFormFieldsRow; exports.isFormNode = isFormNode; exports.isFormTab = isFormTab; exports.isGalleryView = isGalleryView; exports.isGrantExpired = isGrantExpired; exports.isGrantRevoked = isGrantRevoked; exports.isGrantValid = isGrantValid; exports.isIdentityProperty = isIdentityProperty; exports.isInstanceEvent = isInstanceEvent; exports.isInstanceTerminal = isInstanceTerminal; exports.isInstanceWaiting = isInstanceWaiting; exports.isInverseSourceTab = isInverseSourceTab; exports.isInvitationAccepted = isInvitationAccepted; exports.isInvitationExpired = isInvitationExpired; exports.isInvitationOrGrantEvent = isInvitationOrGrantEvent; exports.isInvitationValid = isInvitationValid; exports.isLabelExpression = isLabelExpression; exports.isLayoutRow = isLayoutRow; exports.isListView = isListView; exports.isNoValueOperator = isNoValueOperator; exports.isNodeEvent = isNodeEvent; exports.isNotEmpty = isNotEmpty2; exports.isNotFoundError = isNotFoundError; exports.isPresentationProperty = isPresentationProperty; exports.isProtectedResourceError = isProtectedResourceError; exports.isRecordComplete = _chunk7QUI6TSOjs.isRecordComplete; exports.isRelationGroup = isRelationGroup; exports.isRelationSourceTab = isRelationSourceTab; exports.isRichtextTab = isRichtextTab; exports.isSchemaError = isSchemaError; exports.isSimpleFormNode = isSimpleFormNode; exports.isStartNode = isStartNode; exports.isSystemAttribute = isSystemAttribute; exports.isSystemAttributeObject = isSystemAttributeObject; exports.isSystemFlow = isSystemFlow; exports.isSystemWorkflow = isSystemWorkflow; exports.isTableTab = isTableTab; exports.isTimelineView = isTimelineView; exports.isTokenRevoked = isTokenRevoked; exports.isUniversalRelation = isUniversalRelation; exports.isValidationError = isValidationError; exports.isViewCustomized = isViewCustomized; exports.isWorkflowDefinition = isWorkflowDefinition; exports.isWorkflowPublished = isWorkflowPublished; exports.jsonFlag = jsonFlag; exports.listView = listView; exports.location = location; exports.locationConfigSchema = _chunk7QUI6TSOjs.locationConfigSchema; exports.mergeWithDefaults = mergeWithDefaults; exports.multiselect = multiselect; exports.multiselectConfigSchema = _chunk7QUI6TSOjs.multiselectConfigSchema; exports.neq = neq; exports.nodeTypeRegistry = nodeTypeRegistry; exports.normalizePhoneNumber = _chunk7QUI6TSOjs.normalizePhoneNumber; exports.number = number; exports.numberConfigSchema = _chunk7QUI6TSOjs.numberConfigSchema; exports.numberFlag = numberFlag; exports.object = object; exports.or = or; exports.parseAttributeConfig = _chunk7QUI6TSOjs.parseAttributeConfig; exports.parseRawPhoneInput = _chunk7QUI6TSOjs.parseRawPhoneInput; exports.phone = phone; exports.phoneConfigSchema = _chunk7QUI6TSOjs.phoneConfigSchema; exports.rating = rating; exports.ratingConfigSchema = _chunk7QUI6TSOjs.ratingConfigSchema; exports.registry = registry; exports.relation = relation; exports.relationConfigSchema = _chunk7QUI6TSOjs.relationConfigSchema; exports.relationGroup = relationGroup; exports.renderLabelExpression = renderLabelExpression; exports.resetViewToDefault = resetViewToDefault; exports.richtext = richtext; exports.richtextConfigSchema = _chunk7QUI6TSOjs.richtextConfigSchema; exports.rollup = rollup; exports.rollupConfigSchema = _chunk7QUI6TSOjs.rollupConfigSchema; exports.safeParseAttributeConfig = _chunk7QUI6TSOjs.safeParseAttributeConfig; exports.select = select; exports.selectConfigSchema = _chunk7QUI6TSOjs.selectConfigSchema; exports.setContextValue = setContextValue; exports.setNodeNext = setNodeNext; exports.slugify = _chunkE6XO2STSjs.slugify; exports.status = status; exports.statusConfigSchema = _chunk7QUI6TSOjs.statusConfigSchema; exports.stringFlag = stringFlag; exports.text = text; exports.textConfigSchema = _chunk7QUI6TSOjs.textConfigSchema; exports.textarea = textarea; exports.textareaConfigSchema = _chunk7QUI6TSOjs.textareaConfigSchema; exports.toUndefinedIfEmpty = toUndefinedIfEmpty; exports.user = user; exports.userConfigSchema = _chunk7QUI6TSOjs.userConfigSchema; exports.validateAttribute = _chunk7QUI6TSOjs.validateAttribute; exports.validateAttributeConfig = _chunk7QUI6TSOjs.validateAttributeConfig; exports.validateDraft = _chunk7QUI6TSOjs.validateDraft; exports.validateDraftOrThrow = _chunk7QUI6TSOjs.validateDraftOrThrow; exports.validateNode = validateNode; exports.validateObject = _chunk7QUI6TSOjs.validateObject; exports.validateObjectOrThrow = _chunk7QUI6TSOjs.validateObjectOrThrow; exports.validatePhoneNumber = _chunk7QUI6TSOjs.validatePhoneNumber; exports.view = view; exports.viewRegistry = viewRegistry; exports.workflow = workflow;