@uug-ai/models 1.7.65 → 1.7.67

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 +96 -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;
@@ -34815,6 +34854,7 @@ export interface components {
34815
34854
  "api.GetTimelineMarkersRequest": {
34816
34855
  disableGrouping?: boolean;
34817
34856
  filter?: components["schemas"]["api.MarkerFilter"];
34857
+ pagination?: components["schemas"]["api.CursorPagination"];
34818
34858
  };
34819
34859
  "api.GetTimelineMarkersResponse": {
34820
34860
  timelines?: components["schemas"]["models.MarkerTimeline"][];
@@ -34847,8 +34887,10 @@ export interface components {
34847
34887
  "api.GetTimelineMediaRequest": {
34848
34888
  disableGrouping?: boolean;
34849
34889
  filter?: components["schemas"]["api.MediaFilter"];
34890
+ pagination?: components["schemas"]["api.CursorPagination"];
34850
34891
  };
34851
34892
  "api.GetTimelineMediaResponse": {
34893
+ groupingWindowSeconds?: number;
34852
34894
  timelines?: components["schemas"]["models.MediaTimeline"][];
34853
34895
  };
34854
34896
  "api.GetTimelineMediaSuccessResponse": {
@@ -36454,6 +36496,7 @@ export interface components {
36454
36496
  end?: number;
36455
36497
  hasResults?: boolean;
36456
36498
  key?: string;
36499
+ matchedStartEdgeIds?: string[];
36457
36500
  mediaId?: string;
36458
36501
  operations?: components["schemas"]["models.WorkflowRunOperationStatus"][];
36459
36502
  origin?: components["schemas"]["models.WorkflowRunOrigin"];
@@ -36500,7 +36543,7 @@ export interface components {
36500
36543
  userId?: string;
36501
36544
  };
36502
36545
  /** @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";
36546
+ "models.AccessTokenScope": "workflow-runs.create" | "workflow-runs.read" | "workflow-runs.update" | "days.read" | "application" | "workflows.read" | "workflows.create" | "workflows.update" | "workflows.delete" | "markers.read" | "markers.write" | "markers.all" | "media.read" | "media.update" | "media.export" | "media.share" | "media.redact" | "media.delete" | "cases.read" | "cases.create" | "cases.update" | "cases.share" | "cases.export" | "cases.runWorkflow" | "cases.delete";
36504
36547
  "models.Account": {
36505
36548
  account?: components["schemas"]["models.AccountBody"];
36506
36549
  };
@@ -37229,7 +37272,7 @@ export interface components {
37229
37272
  /** @enum {string} */
37230
37273
  "models.ConditionMode": "all" | "any";
37231
37274
  /** @enum {string} */
37232
- "models.ConditionOp": "eq" | "ne" | "contains" | "in" | "exists" | "matches" | "gt" | "gte" | "lt" | "lte" | "anyMatch";
37275
+ "models.ConditionOp": "eq" | "ne" | "contains" | "in" | "exists" | "matches" | "gt" | "gte" | "lt" | "lte" | "anyMatch" | "all" | "any";
37233
37276
  "models.Contact": {
37234
37277
  email?: string;
37235
37278
  name?: string;
@@ -38956,7 +38999,7 @@ export interface components {
38956
38999
  videowall?: components["schemas"]["models.Videowall"];
38957
39000
  };
38958
39001
  /** @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";
39002
+ "models.Permission": "workflow-runs.create" | "workflow-runs.read" | "workflow-runs.update" | "days.read" | "application" | "workflows.read" | "workflows.create" | "workflows.update" | "workflows.delete" | "markers.read" | "markers.write" | "markers.all" | "media.read" | "media.update" | "media.export" | "media.share" | "media.redact" | "media.delete" | "cases.read" | "cases.create" | "cases.update" | "cases.share" | "cases.export" | "cases.runWorkflow" | "cases.delete";
38960
39003
  /** @enum {integer} */
38961
39004
  "models.PermissionLevel": 1 | 2 | 3 | 4 | 2 | 3 | 4 | 5 | 2 | 3 | 2 | 2 | 3 | 2 | 3 | 4;
38962
39005
  "models.Permissions": {
@@ -39283,6 +39326,9 @@ export interface components {
39283
39326
  width?: number;
39284
39327
  };
39285
39328
  "models.StageCondition": {
39329
+ /** @description Conditions belongs only to logical all/any groups, which have no path,
39330
+ * value or match. Children retain absolute paths; anyMatch stays relative. */
39331
+ conditions?: components["schemas"]["models.WorkflowCondition"][];
39286
39332
  match?: components["schemas"]["models.WorkflowPredicateSet"];
39287
39333
  /** @description see the ConditionOp consts */
39288
39334
  op?: components["schemas"]["models.ConditionOp"];
@@ -39308,6 +39354,11 @@ export interface components {
39308
39354
  * the run root itself (device/user/identity, or an input present from open),
39309
39355
  * evaluated as soon as the run opens with nothing to wait for. */
39310
39356
  operation?: string;
39357
+ /** @description StartEdgeId marks an automatic entry alternative. StartMatched is frozen
39358
+ * at activation, so later worker output cannot activate a rejected branch.
39359
+ * Entry alternatives combine with OR, independently of ordinary joins. */
39360
+ startEdgeId?: string;
39361
+ startMatched?: boolean;
39311
39362
  };
39312
39363
  "models.StageParam": {
39313
39364
  /** @description Default is applied when a node supplies no value for this parameter. */
@@ -40144,11 +40195,10 @@ export interface components {
40144
40195
  * read-only workflow. Every workflow persisted before this field existed
40145
40196
  * decodes as user. */
40146
40197
  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
40198
+ /** @description Stages is the executable stage set for stage-only/config definitions.
40199
+ * An explicit Start graph always wins over this cached projection; otherwise
40200
+ * populated stages are used as-is, or derived from Nodes+Edges on demand.
40201
+ * Read it through
40152
40202
  * CompileStages, never directly, so both authoring styles resolve uniformly.
40153
40203
  *
40154
40204
  * Only the routing fields (Operation, Dispatch, Needs, NeedsMode) are
@@ -40177,6 +40227,9 @@ export interface components {
40177
40227
  url?: string;
40178
40228
  };
40179
40229
  "models.WorkflowCondition": {
40230
+ /** @description Conditions belongs only to logical all/any groups, which have no path,
40231
+ * value or match. Children retain absolute paths; anyMatch stays relative. */
40232
+ conditions?: components["schemas"]["models.WorkflowCondition"][];
40180
40233
  match?: components["schemas"]["models.WorkflowPredicateSet"];
40181
40234
  /** @description see the ConditionOp consts */
40182
40235
  op?: components["schemas"]["models.ConditionOp"];
@@ -40220,6 +40273,17 @@ export interface components {
40220
40273
  /** @description TargetPort optionally selects which of the target stage's declared Inputs
40221
40274
  * (see WorkflowStage.Inputs) this edge feeds. Empty means the default port. */
40222
40275
  targetPort?: string;
40276
+ /** @description Trigger is the complete source/classification/schedule scope of an outgoing Start edge.
40277
+ * Nil reads the legacy node scope; a present empty object means unrestricted.
40278
+ * Manual Start retains this configuration without activating it. */
40279
+ trigger?: components["schemas"]["models.WorkflowEdgeTrigger"];
40280
+ };
40281
+ "models.WorkflowEdgeTrigger": {
40282
+ classifications?: string[];
40283
+ devices?: components["schemas"]["models.DeviceKey"][];
40284
+ groupIds?: string[];
40285
+ siteIds?: string[];
40286
+ weeklySchedule?: components["schemas"]["models.WeeklySchedule"][];
40223
40287
  };
40224
40288
  "models.WorkflowInvocation": {
40225
40289
  callback?: components["schemas"]["models.WorkflowCallback"];
@@ -40252,8 +40316,8 @@ export interface components {
40252
40316
  data?: {
40253
40317
  [key: string]: unknown;
40254
40318
  };
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. */
40319
+ /** @description Devices scopes legacy automatic roots. Start edges inherit it only when
40320
+ * their Trigger is nil. Empty means every eligible device; ignored on stages. */
40257
40321
  devices?: components["schemas"]["models.DeviceKey"][];
40258
40322
  /** @description Id is this instance's identity within the workflow. It is the stable
40259
40323
  * handle that edges connect to, and the per-instance runtime key when the
@@ -40264,9 +40328,9 @@ export interface components {
40264
40328
  * by platform- and user-defined stages), not its Mongo Id. Set on every
40265
40329
  * stage node and resolved at compile time; empty on a root node. */
40266
40330
  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. */
40331
+ /** @description Trigger is required on Start nodes for Type and manual Surfaces. Legacy
40332
+ * automatic settings remain readable; new scopes are authored on edges.
40333
+ * NormalizeTriggers derives runtime triggers without exposing inactive settings. */
40270
40334
  trigger?: components["schemas"]["models.WorkflowTrigger"];
40271
40335
  /** @description Type is what the node represents; empty means WorkflowNodeStage. */
40272
40336
  type?: components["schemas"]["models.WorkflowNodeType"];
@@ -40325,6 +40389,9 @@ export interface components {
40325
40389
  * run state is correlated by Id/RunId because several workflows and manual
40326
40390
  * re-runs may execute over the same key. */
40327
40391
  key?: string;
40392
+ /** @description MatchedStartEdgeIds is the safe activation provenance projection for run lists.
40393
+ * It contains no trigger definitions or predicate values. */
40394
+ matchedStartEdgeIds?: string[];
40328
40395
  mediaId?: string;
40329
40396
  /** @description Operation marks the message's role on the workflows queue (wire-only):
40330
40397
  * - "event": a fresh run hand-off from analysis. It opens the run and
@@ -40472,7 +40539,8 @@ export interface components {
40472
40539
  /** @description TraceId continues the distributed trace across the workflow tail and lets
40473
40540
  * authorized detail surfaces correlate the durable run with telemetry. */
40474
40541
  traceId?: string;
40475
- /** @description TriggerMatch records the first automatic trigger that selected this run.
40542
+ /** @description TriggerMatch records the first selecting automatic trigger and all matching
40543
+ * Start edge IDs. It is immutable activation provenance, not routing state.
40476
40544
  * It is immutable engine-owned provenance, not stage execution state. Nil
40477
40545
  * means no captured match (legacy or a launch that bypassed automatic matching).
40478
40546
  * Readers must not reconstruct it from Origin or today's workflow definition. */
@@ -40562,6 +40630,9 @@ export interface components {
40562
40630
  /** @description Index is zero-based in the normalized trigger list at selection time.
40563
40631
  * It is historical context, not a stable ID into an edited definition. */
40564
40632
  index?: number;
40633
+ /** @description MatchedEdgeIds captures all matching automatic Start edges in graph order.
40634
+ * Legacy trigger lists omit it; Index/Trigger still describe the first match. */
40635
+ matchedEdgeIds?: string[];
40565
40636
  trigger?: components["schemas"]["models.WorkflowTrigger"];
40566
40637
  };
40567
40638
  /** @enum {string} */
@@ -40659,6 +40730,10 @@ export interface components {
40659
40730
  projectId?: string;
40660
40731
  };
40661
40732
  "models.WorkflowTrigger": {
40733
+ /** @description Classifications requires at least one selected label in the initial
40734
+ * inputs.classify.details.*.classified values, independently of ConditionMode.
40735
+ * Empty means unrestricted; future worker results never satisfy this scope. */
40736
+ classifications?: string[];
40662
40737
  /** @description Conditions read the pre-run envelope, including already available,
40663
40738
  * sanitized inputs, never future results. Scope and schedule remain mandatory
40664
40739
  * even when this group's ConditionMode is any. */
@@ -40674,7 +40749,13 @@ export interface components {
40674
40749
  * device scoping and stage matching stay consistent. Author richer scoping
40675
40750
  * (a device-name pattern, an organisation check, …) with Conditions. */
40676
40751
  devices?: components["schemas"]["models.DeviceKey"][];
40752
+ /** @description EdgeId identifies the outgoing automatic Start edge that derived this
40753
+ * trigger. It is a projection, never an independently authored edge type. */
40754
+ edgeId?: string;
40677
40755
  groupIds?: string[];
40756
+ /** @description SharedConditions preserves legacy Start-level gating independently of the
40757
+ * edge's condition mode. Both groups must match; new editors author edges. */
40758
+ sharedConditions?: components["schemas"]["models.WorkflowConditionSet"];
40678
40759
  /** @description SiteIds and GroupIds are stable membership IDs resolved by the caller, not
40679
40760
  * names or authorization grants. Selectors are OR within each category and
40680
40761
  * AND between populated categories. */
@@ -41018,6 +41099,7 @@ export declare namespace models {
41018
41099
  type WorkflowDevice = components['schemas']['models.WorkflowDevice'];
41019
41100
  type WorkflowDeviceReference = components['schemas']['models.WorkflowDeviceReference'];
41020
41101
  type WorkflowEdge = components['schemas']['models.WorkflowEdge'];
41102
+ type WorkflowEdgeTrigger = components['schemas']['models.WorkflowEdgeTrigger'];
41021
41103
  type WorkflowInvocation = components['schemas']['models.WorkflowInvocation'];
41022
41104
  type WorkflowInvocationWorkflow = components['schemas']['models.WorkflowInvocationWorkflow'];
41023
41105
  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.67",
4
4
  "description": "TypeScript type definitions for Go models",
5
5
  "main": "dist/types.js",
6
6
  "types": "dist/types.d.ts",