@uug-ai/models 1.7.65 → 1.7.66

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +93 -14
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -31008,6 +31008,45 @@ export interface paths {
31008
31008
  patch?: never;
31009
31009
  trace?: never;
31010
31010
  };
31011
+ "/internal/workflowedgetrigger": {
31012
+ parameters: {
31013
+ query?: never;
31014
+ header?: never;
31015
+ path?: never;
31016
+ cookie?: never;
31017
+ };
31018
+ /**
31019
+ * Get WorkflowEdgeTrigger (schema generation only)
31020
+ * @description Internal endpoint used only to ensure WorkflowEdgeTrigger schema is generated in OpenAPI spec
31021
+ */
31022
+ get: {
31023
+ parameters: {
31024
+ query?: never;
31025
+ header?: never;
31026
+ path?: never;
31027
+ cookie?: never;
31028
+ };
31029
+ requestBody?: never;
31030
+ responses: {
31031
+ /** @description OK */
31032
+ 200: {
31033
+ headers: {
31034
+ [name: string]: unknown;
31035
+ };
31036
+ content: {
31037
+ "application/json": components["schemas"]["models.WorkflowEdgeTrigger"];
31038
+ };
31039
+ };
31040
+ };
31041
+ };
31042
+ put?: never;
31043
+ post?: never;
31044
+ delete?: never;
31045
+ options?: never;
31046
+ head?: never;
31047
+ patch?: never;
31048
+ trace?: never;
31049
+ };
31011
31050
  "/internal/workflowfilter": {
31012
31051
  parameters: {
31013
31052
  query?: never;
@@ -36454,6 +36493,7 @@ export interface components {
36454
36493
  end?: number;
36455
36494
  hasResults?: boolean;
36456
36495
  key?: string;
36496
+ matchedStartEdgeIds?: string[];
36457
36497
  mediaId?: string;
36458
36498
  operations?: components["schemas"]["models.WorkflowRunOperationStatus"][];
36459
36499
  origin?: components["schemas"]["models.WorkflowRunOrigin"];
@@ -36500,7 +36540,7 @@ export interface components {
36500
36540
  userId?: string;
36501
36541
  };
36502
36542
  /** @enum {string} */
36503
- "models.AccessTokenScope": "days.read" | "markers.read" | "markers.write" | "markers.all" | "workflows.read" | "workflows.create" | "workflows.update" | "workflows.delete" | "application" | "media.read" | "media.update" | "media.export" | "media.share" | "media.redact" | "media.delete" | "workflow-runs.create" | "workflow-runs.read" | "workflow-runs.update" | "cases.read" | "cases.create" | "cases.update" | "cases.share" | "cases.export" | "cases.runWorkflow" | "cases.delete";
36543
+ "models.AccessTokenScope": "days.read" | "cases.read" | "cases.create" | "cases.update" | "cases.share" | "cases.export" | "cases.runWorkflow" | "cases.delete" | "workflow-runs.create" | "workflow-runs.read" | "workflow-runs.update" | "workflows.read" | "workflows.create" | "workflows.update" | "workflows.delete" | "application" | "media.read" | "media.update" | "media.export" | "media.share" | "media.redact" | "media.delete" | "markers.read" | "markers.write" | "markers.all";
36504
36544
  "models.Account": {
36505
36545
  account?: components["schemas"]["models.AccountBody"];
36506
36546
  };
@@ -37229,7 +37269,7 @@ export interface components {
37229
37269
  /** @enum {string} */
37230
37270
  "models.ConditionMode": "all" | "any";
37231
37271
  /** @enum {string} */
37232
- "models.ConditionOp": "eq" | "ne" | "contains" | "in" | "exists" | "matches" | "gt" | "gte" | "lt" | "lte" | "anyMatch";
37272
+ "models.ConditionOp": "eq" | "ne" | "contains" | "in" | "exists" | "matches" | "gt" | "gte" | "lt" | "lte" | "anyMatch" | "all" | "any";
37233
37273
  "models.Contact": {
37234
37274
  email?: string;
37235
37275
  name?: string;
@@ -38956,7 +38996,7 @@ export interface components {
38956
38996
  videowall?: components["schemas"]["models.Videowall"];
38957
38997
  };
38958
38998
  /** @enum {string} */
38959
- "models.Permission": "days.read" | "markers.read" | "markers.write" | "markers.all" | "workflows.read" | "workflows.create" | "workflows.update" | "workflows.delete" | "application" | "media.read" | "media.update" | "media.export" | "media.share" | "media.redact" | "media.delete" | "workflow-runs.create" | "workflow-runs.read" | "workflow-runs.update" | "cases.read" | "cases.create" | "cases.update" | "cases.share" | "cases.export" | "cases.runWorkflow" | "cases.delete";
38999
+ "models.Permission": "days.read" | "cases.read" | "cases.create" | "cases.update" | "cases.share" | "cases.export" | "cases.runWorkflow" | "cases.delete" | "workflow-runs.create" | "workflow-runs.read" | "workflow-runs.update" | "workflows.read" | "workflows.create" | "workflows.update" | "workflows.delete" | "application" | "media.read" | "media.update" | "media.export" | "media.share" | "media.redact" | "media.delete" | "markers.read" | "markers.write" | "markers.all";
38960
39000
  /** @enum {integer} */
38961
39001
  "models.PermissionLevel": 1 | 2 | 3 | 4 | 2 | 3 | 4 | 5 | 2 | 3 | 2 | 2 | 3 | 2 | 3 | 4;
38962
39002
  "models.Permissions": {
@@ -39283,6 +39323,9 @@ export interface components {
39283
39323
  width?: number;
39284
39324
  };
39285
39325
  "models.StageCondition": {
39326
+ /** @description Conditions belongs only to logical all/any groups, which have no path,
39327
+ * value or match. Children retain absolute paths; anyMatch stays relative. */
39328
+ conditions?: components["schemas"]["models.WorkflowCondition"][];
39286
39329
  match?: components["schemas"]["models.WorkflowPredicateSet"];
39287
39330
  /** @description see the ConditionOp consts */
39288
39331
  op?: components["schemas"]["models.ConditionOp"];
@@ -39308,6 +39351,11 @@ export interface components {
39308
39351
  * the run root itself (device/user/identity, or an input present from open),
39309
39352
  * evaluated as soon as the run opens with nothing to wait for. */
39310
39353
  operation?: string;
39354
+ /** @description StartEdgeId marks an automatic entry alternative. StartMatched is frozen
39355
+ * at activation, so later worker output cannot activate a rejected branch.
39356
+ * Entry alternatives combine with OR, independently of ordinary joins. */
39357
+ startEdgeId?: string;
39358
+ startMatched?: boolean;
39311
39359
  };
39312
39360
  "models.StageParam": {
39313
39361
  /** @description Default is applied when a node supplies no value for this parameter. */
@@ -40144,11 +40192,10 @@ export interface components {
40144
40192
  * read-only workflow. Every workflow persisted before this field existed
40145
40193
  * decodes as user. */
40146
40194
  source?: components["schemas"]["models.WorkflowSource"];
40147
- /** @description Stages is the workflow's executable stage set: the runtime-authoritative
40148
- * projection the engine dispatches against. When set it is used as-is (config
40149
- * workflows author it directly in the helm registry form: operation, dispatch,
40150
- * needs, needsMode); when empty it is derived from Nodes+Edges on demand (UI
40151
- * workflows author the graph and CompileStages projects it). Read it through
40195
+ /** @description Stages is the executable stage set for stage-only/config definitions.
40196
+ * An explicit Start graph always wins over this cached projection; otherwise
40197
+ * populated stages are used as-is, or derived from Nodes+Edges on demand.
40198
+ * Read it through
40152
40199
  * CompileStages, never directly, so both authoring styles resolve uniformly.
40153
40200
  *
40154
40201
  * Only the routing fields (Operation, Dispatch, Needs, NeedsMode) are
@@ -40177,6 +40224,9 @@ export interface components {
40177
40224
  url?: string;
40178
40225
  };
40179
40226
  "models.WorkflowCondition": {
40227
+ /** @description Conditions belongs only to logical all/any groups, which have no path,
40228
+ * value or match. Children retain absolute paths; anyMatch stays relative. */
40229
+ conditions?: components["schemas"]["models.WorkflowCondition"][];
40180
40230
  match?: components["schemas"]["models.WorkflowPredicateSet"];
40181
40231
  /** @description see the ConditionOp consts */
40182
40232
  op?: components["schemas"]["models.ConditionOp"];
@@ -40220,6 +40270,17 @@ export interface components {
40220
40270
  /** @description TargetPort optionally selects which of the target stage's declared Inputs
40221
40271
  * (see WorkflowStage.Inputs) this edge feeds. Empty means the default port. */
40222
40272
  targetPort?: string;
40273
+ /** @description Trigger is the complete source/classification/schedule scope of an outgoing Start edge.
40274
+ * Nil reads the legacy node scope; a present empty object means unrestricted.
40275
+ * Manual Start retains this configuration without activating it. */
40276
+ trigger?: components["schemas"]["models.WorkflowEdgeTrigger"];
40277
+ };
40278
+ "models.WorkflowEdgeTrigger": {
40279
+ classifications?: string[];
40280
+ devices?: components["schemas"]["models.DeviceKey"][];
40281
+ groupIds?: string[];
40282
+ siteIds?: string[];
40283
+ weeklySchedule?: components["schemas"]["models.WeeklySchedule"][];
40223
40284
  };
40224
40285
  "models.WorkflowInvocation": {
40225
40286
  callback?: components["schemas"]["models.WorkflowCallback"];
@@ -40252,8 +40313,8 @@ export interface components {
40252
40313
  data?: {
40253
40314
  [key: string]: unknown;
40254
40315
  };
40255
- /** @description Devices scopes an automatic root to recordings from these devices. Empty means
40256
- * every device the workflow's owner can see. Ignored on stage nodes. */
40316
+ /** @description Devices scopes legacy automatic roots. Start edges inherit it only when
40317
+ * their Trigger is nil. Empty means every eligible device; ignored on stages. */
40257
40318
  devices?: components["schemas"]["models.DeviceKey"][];
40258
40319
  /** @description Id is this instance's identity within the workflow. It is the stable
40259
40320
  * handle that edges connect to, and the per-instance runtime key when the
@@ -40264,9 +40325,9 @@ export interface components {
40264
40325
  * by platform- and user-defined stages), not its Mongo Id. Set on every
40265
40326
  * stage node and resolved at compile time; empty on a root node. */
40266
40327
  stageRef?: string;
40267
- /** @description Trigger is required on Start nodes. Automatic settings and inactive manual
40268
- * surface selections are retained here; NormalizeTriggers derives runtime
40269
- * triggers without exposing inactive settings. */
40328
+ /** @description Trigger is required on Start nodes for Type and manual Surfaces. Legacy
40329
+ * automatic settings remain readable; new scopes are authored on edges.
40330
+ * NormalizeTriggers derives runtime triggers without exposing inactive settings. */
40270
40331
  trigger?: components["schemas"]["models.WorkflowTrigger"];
40271
40332
  /** @description Type is what the node represents; empty means WorkflowNodeStage. */
40272
40333
  type?: components["schemas"]["models.WorkflowNodeType"];
@@ -40325,6 +40386,9 @@ export interface components {
40325
40386
  * run state is correlated by Id/RunId because several workflows and manual
40326
40387
  * re-runs may execute over the same key. */
40327
40388
  key?: string;
40389
+ /** @description MatchedStartEdgeIds is the safe activation provenance projection for run lists.
40390
+ * It contains no trigger definitions or predicate values. */
40391
+ matchedStartEdgeIds?: string[];
40328
40392
  mediaId?: string;
40329
40393
  /** @description Operation marks the message's role on the workflows queue (wire-only):
40330
40394
  * - "event": a fresh run hand-off from analysis. It opens the run and
@@ -40472,7 +40536,8 @@ export interface components {
40472
40536
  /** @description TraceId continues the distributed trace across the workflow tail and lets
40473
40537
  * authorized detail surfaces correlate the durable run with telemetry. */
40474
40538
  traceId?: string;
40475
- /** @description TriggerMatch records the first automatic trigger that selected this run.
40539
+ /** @description TriggerMatch records the first selecting automatic trigger and all matching
40540
+ * Start edge IDs. It is immutable activation provenance, not routing state.
40476
40541
  * It is immutable engine-owned provenance, not stage execution state. Nil
40477
40542
  * means no captured match (legacy or a launch that bypassed automatic matching).
40478
40543
  * Readers must not reconstruct it from Origin or today's workflow definition. */
@@ -40562,6 +40627,9 @@ export interface components {
40562
40627
  /** @description Index is zero-based in the normalized trigger list at selection time.
40563
40628
  * It is historical context, not a stable ID into an edited definition. */
40564
40629
  index?: number;
40630
+ /** @description MatchedEdgeIds captures all matching automatic Start edges in graph order.
40631
+ * Legacy trigger lists omit it; Index/Trigger still describe the first match. */
40632
+ matchedEdgeIds?: string[];
40565
40633
  trigger?: components["schemas"]["models.WorkflowTrigger"];
40566
40634
  };
40567
40635
  /** @enum {string} */
@@ -40659,6 +40727,10 @@ export interface components {
40659
40727
  projectId?: string;
40660
40728
  };
40661
40729
  "models.WorkflowTrigger": {
40730
+ /** @description Classifications requires at least one selected label in the initial
40731
+ * inputs.classify.details.*.classified values, independently of ConditionMode.
40732
+ * Empty means unrestricted; future worker results never satisfy this scope. */
40733
+ classifications?: string[];
40662
40734
  /** @description Conditions read the pre-run envelope, including already available,
40663
40735
  * sanitized inputs, never future results. Scope and schedule remain mandatory
40664
40736
  * even when this group's ConditionMode is any. */
@@ -40674,7 +40746,13 @@ export interface components {
40674
40746
  * device scoping and stage matching stay consistent. Author richer scoping
40675
40747
  * (a device-name pattern, an organisation check, …) with Conditions. */
40676
40748
  devices?: components["schemas"]["models.DeviceKey"][];
40749
+ /** @description EdgeId identifies the outgoing automatic Start edge that derived this
40750
+ * trigger. It is a projection, never an independently authored edge type. */
40751
+ edgeId?: string;
40677
40752
  groupIds?: string[];
40753
+ /** @description SharedConditions preserves legacy Start-level gating independently of the
40754
+ * edge's condition mode. Both groups must match; new editors author edges. */
40755
+ sharedConditions?: components["schemas"]["models.WorkflowConditionSet"];
40678
40756
  /** @description SiteIds and GroupIds are stable membership IDs resolved by the caller, not
40679
40757
  * names or authorization grants. Selectors are OR within each category and
40680
40758
  * AND between populated categories. */
@@ -41018,6 +41096,7 @@ export declare namespace models {
41018
41096
  type WorkflowDevice = components['schemas']['models.WorkflowDevice'];
41019
41097
  type WorkflowDeviceReference = components['schemas']['models.WorkflowDeviceReference'];
41020
41098
  type WorkflowEdge = components['schemas']['models.WorkflowEdge'];
41099
+ type WorkflowEdgeTrigger = components['schemas']['models.WorkflowEdgeTrigger'];
41021
41100
  type WorkflowInvocation = components['schemas']['models.WorkflowInvocation'];
41022
41101
  type WorkflowInvocationWorkflow = components['schemas']['models.WorkflowInvocationWorkflow'];
41023
41102
  type WorkflowMediaReference = components['schemas']['models.WorkflowMediaReference'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uug-ai/models",
3
- "version": "1.7.65",
3
+ "version": "1.7.66",
4
4
  "description": "TypeScript type definitions for Go models",
5
5
  "main": "dist/types.js",
6
6
  "types": "dist/types.d.ts",