@uug-ai/models 1.7.61 → 1.7.63

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 +182 -26
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -31437,6 +31437,45 @@ export interface paths {
31437
31437
  patch?: never;
31438
31438
  trace?: never;
31439
31439
  };
31440
+ "/internal/workflowrunstage": {
31441
+ parameters: {
31442
+ query?: never;
31443
+ header?: never;
31444
+ path?: never;
31445
+ cookie?: never;
31446
+ };
31447
+ /**
31448
+ * Get WorkflowRunStage (schema generation only)
31449
+ * @description Internal endpoint used only to ensure WorkflowRunStage schema is generated in OpenAPI spec
31450
+ */
31451
+ get: {
31452
+ parameters: {
31453
+ query?: never;
31454
+ header?: never;
31455
+ path?: never;
31456
+ cookie?: never;
31457
+ };
31458
+ requestBody?: never;
31459
+ responses: {
31460
+ /** @description OK */
31461
+ 200: {
31462
+ headers: {
31463
+ [name: string]: unknown;
31464
+ };
31465
+ content: {
31466
+ "application/json": components["schemas"]["models.WorkflowRunStage"];
31467
+ };
31468
+ };
31469
+ };
31470
+ };
31471
+ put?: never;
31472
+ post?: never;
31473
+ delete?: never;
31474
+ options?: never;
31475
+ head?: never;
31476
+ patch?: never;
31477
+ trace?: never;
31478
+ };
31440
31479
  "/internal/workflowrunstageexecution": {
31441
31480
  parameters: {
31442
31481
  query?: never;
@@ -31476,6 +31515,45 @@ export interface paths {
31476
31515
  patch?: never;
31477
31516
  trace?: never;
31478
31517
  };
31518
+ "/internal/workflowrunstageexecutiondetails": {
31519
+ parameters: {
31520
+ query?: never;
31521
+ header?: never;
31522
+ path?: never;
31523
+ cookie?: never;
31524
+ };
31525
+ /**
31526
+ * Get WorkflowRunStageExecutionDetails (schema generation only)
31527
+ * @description Internal endpoint used only to ensure WorkflowRunStageExecutionDetails schema is generated in OpenAPI spec
31528
+ */
31529
+ get: {
31530
+ parameters: {
31531
+ query?: never;
31532
+ header?: never;
31533
+ path?: never;
31534
+ cookie?: never;
31535
+ };
31536
+ requestBody?: never;
31537
+ responses: {
31538
+ /** @description OK */
31539
+ 200: {
31540
+ headers: {
31541
+ [name: string]: unknown;
31542
+ };
31543
+ content: {
31544
+ "application/json": components["schemas"]["models.WorkflowRunStageExecutionDetails"];
31545
+ };
31546
+ };
31547
+ };
31548
+ };
31549
+ put?: never;
31550
+ post?: never;
31551
+ delete?: never;
31552
+ options?: never;
31553
+ head?: never;
31554
+ patch?: never;
31555
+ trace?: never;
31556
+ };
31479
31557
  "/internal/workflowrunstatussummary": {
31480
31558
  parameters: {
31481
31559
  query?: never;
@@ -31515,6 +31593,45 @@ export interface paths {
31515
31593
  patch?: never;
31516
31594
  trace?: never;
31517
31595
  };
31596
+ "/internal/workflowruntriggermatch": {
31597
+ parameters: {
31598
+ query?: never;
31599
+ header?: never;
31600
+ path?: never;
31601
+ cookie?: never;
31602
+ };
31603
+ /**
31604
+ * Get WorkflowRunTriggerMatch (schema generation only)
31605
+ * @description Internal endpoint used only to ensure WorkflowRunTriggerMatch schema is generated in OpenAPI spec
31606
+ */
31607
+ get: {
31608
+ parameters: {
31609
+ query?: never;
31610
+ header?: never;
31611
+ path?: never;
31612
+ cookie?: never;
31613
+ };
31614
+ requestBody?: never;
31615
+ responses: {
31616
+ /** @description OK */
31617
+ 200: {
31618
+ headers: {
31619
+ [name: string]: unknown;
31620
+ };
31621
+ content: {
31622
+ "application/json": components["schemas"]["models.WorkflowRunTriggerMatch"];
31623
+ };
31624
+ };
31625
+ };
31626
+ };
31627
+ put?: never;
31628
+ post?: never;
31629
+ delete?: never;
31630
+ options?: never;
31631
+ head?: never;
31632
+ patch?: never;
31633
+ trace?: never;
31634
+ };
31518
31635
  "/internal/workflowstage": {
31519
31636
  parameters: {
31520
31637
  query?: never;
@@ -36232,7 +36349,7 @@ export interface components {
36232
36349
  userId?: string;
36233
36350
  };
36234
36351
  /** @enum {string} */
36235
- "models.AccessTokenScope": "days.read" | "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" | "workflow-runs.create" | "workflow-runs.read" | "workflow-runs.update" | "markers.read" | "markers.write" | "markers.all" | "application" | "workflows.read" | "workflows.create" | "workflows.update" | "workflows.delete";
36352
+ "models.AccessTokenScope": "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" | "workflow-runs.create" | "workflow-runs.read" | "workflow-runs.update" | "workflows.read" | "workflows.create" | "workflows.update" | "workflows.delete" | "days.read" | "application" | "markers.read" | "markers.write" | "markers.all";
36236
36353
  "models.Account": {
36237
36354
  account?: components["schemas"]["models.AccountBody"];
36238
36355
  };
@@ -38684,7 +38801,7 @@ export interface components {
38684
38801
  videowall?: components["schemas"]["models.Videowall"];
38685
38802
  };
38686
38803
  /** @enum {string} */
38687
- "models.Permission": "days.read" | "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" | "workflow-runs.create" | "workflow-runs.read" | "workflow-runs.update" | "markers.read" | "markers.write" | "markers.all" | "application" | "workflows.read" | "workflows.create" | "workflows.update" | "workflows.delete";
38804
+ "models.Permission": "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" | "workflow-runs.create" | "workflow-runs.read" | "workflow-runs.update" | "workflows.read" | "workflows.create" | "workflows.update" | "workflows.delete" | "days.read" | "application" | "markers.read" | "markers.write" | "markers.all";
38688
38805
  /** @enum {integer} */
38689
38806
  "models.PermissionLevel": 1 | 2 | 3 | 4 | 2 | 3 | 4 | 5 | 2 | 3 | 2 | 2 | 3 | 2 | 3 | 4;
38690
38807
  "models.Permissions": {
@@ -39040,6 +39157,7 @@ export interface components {
39040
39157
  "models.StageParam": {
39041
39158
  /** @description Default is applied when a node supplies no value for this parameter. */
39042
39159
  default?: unknown;
39160
+ description?: string;
39043
39161
  label?: string;
39044
39162
  name?: string;
39045
39163
  /** @description Options enumerates the permitted values when Type is StageParamSelect. */
@@ -39048,7 +39166,7 @@ export interface components {
39048
39166
  type?: components["schemas"]["models.StageParamType"];
39049
39167
  };
39050
39168
  /** @enum {string} */
39051
- "models.StageParamType": "string" | "number" | "boolean" | "select";
39169
+ "models.StageParamType": "string" | "number" | "boolean" | "select" | "secret";
39052
39170
  "models.StagePort": {
39053
39171
  label?: string;
39054
39172
  name?: string;
@@ -40033,7 +40151,6 @@ export interface components {
40033
40151
  dispatchedOperations?: string[];
40034
40152
  durationMs?: number;
40035
40153
  end?: number;
40036
- endedAtMs?: number;
40037
40154
  hasResults?: boolean;
40038
40155
  /** @description Inputs is the immutable start context the run opens with, keyed by the
40039
40156
  * upstream operation that produced it (e.g. "classify" → the classification
@@ -40068,6 +40185,17 @@ export interface components {
40068
40185
  * be filtered by how they started. Empty is treated as automatic for runs
40069
40186
  * opened before origins existed. */
40070
40187
  origin?: components["schemas"]["models.WorkflowRunOrigin"];
40188
+ /** @description Params carries the per-placement parameter values the workflow editor
40189
+ * stored for the dispatched stage (WorkflowNode.Data, declared by the
40190
+ * stage's WorkflowStage.Params). The engine resolves them from the workflow
40191
+ * definition on every engine→worker dispatch, so a worker such as the
40192
+ * forwarder can let a tenant override deployment defaults. Values may include
40193
+ * StageParamSecret credentials, so `bson:"-"` is load-bearing — like Storage,
40194
+ * they never persist in run state — and a worker must never echo them back
40195
+ * or copy them into anything it forwards. */
40196
+ params?: {
40197
+ [key: string]: unknown;
40198
+ };
40071
40199
  /** @description Payload is the self-describing block envelope a delegated-ingest worker
40072
40200
  * hands back for the platform to persist: one or more typed blocks (e.g. a
40073
40201
  * "detection" block carrying a PostDetectionsRequest, optionally followed by
@@ -40152,30 +40280,20 @@ export interface components {
40152
40280
  * the run. Empty for automatic runs. It generalises to any run-grouping handle
40153
40281
  * (a case id today; a temporal device-series id is a forward-looking twin). */
40154
40282
  sourceRef?: string;
40155
- /** @description StageExecutions is the bounded stage plan and execution summary used by run
40156
- * detail surfaces. The compiled routing plan already occupies the JSON
40157
- * "stages" field, so the execution timeline has its own unambiguous name.
40158
- * Sparse queue messages leave this field empty. */
40283
+ /** @description StageExecutions reads the legacy split timeline. NormalizeStages moves
40284
+ * matched summaries into Stages, retaining unmatched history without
40285
+ * reconstructing missing routing. Serialization does not normalize implicitly.
40286
+ * Deprecated: new writers use Stages[i].Execution. */
40159
40287
  stageExecutions?: components["schemas"]["models.WorkflowRunStageExecution"][];
40160
- /** @description Stages is the run's self-describing routing: the compiled stage set of the
40161
- * workflow this run executes (the output of Workflow.CompileStages) embedded
40162
- * on the hand-off so the engine can dispatch a workflow it does not hold in
40163
- * its boot-loaded config registry — a user/DB workflow launched manually.
40164
- * Only routing fields are meaningful here (Operation, Dispatch, Needs,
40165
- * NeedsMode; Queue when the source workflow set one); the engine compiles
40166
- * these into the same validated registry a config workflow gets. Empty is the
40167
- * legacy/config path: the engine falls back to the config registry keyed by
40168
- * WorkflowId, so config workflows and older hand-offs are unchanged. It is
40169
- * persisted so the return path — a stage result reopening the run on any
40170
- * replica — resolves the same routing without re-fetching the definition. */
40171
- stages?: components["schemas"]["models.WorkflowStage"][];
40172
- /** @description Start and End stamp the run's lifecycle (unix seconds). They remain for
40173
- * compatibility with existing runs and list indexes. */
40288
+ /** @description Stages captures the run's compiled rules and per-stage execution facts.
40289
+ * New writers use NewWorkflowRunStages after resolving queues and defaults.
40290
+ * Legacy routing-only elements decode unchanged; NormalizeStages joins any
40291
+ * split lifecycle summaries. Nil means no captured routing (legacy fallback);
40292
+ * an explicit empty slice is an authoritative zero-stage plan. */
40293
+ stages?: components["schemas"]["models.WorkflowRunStage"][];
40294
+ /** @description Start and End stamp the run's lifecycle in Unix milliseconds. Readers
40295
+ * normalize legacy runs whose values were persisted in Unix seconds. */
40174
40296
  start?: number;
40175
- /** @description StartedAtMs and EndedAtMs are the millisecond-precision counterparts of the
40176
- * legacy Start and End fields. New writers populate both pairs; readers fall
40177
- * back to Start/End for runs created before these fields existed. */
40178
- startedAtMs?: number;
40179
40297
  /** @description The fields below are API read projections. They are derived or joined by
40180
40298
  * the service after loading a run and never persist back into workflow state. */
40181
40299
  state?: components["schemas"]["models.WorkflowRunState"];
@@ -40189,6 +40307,11 @@ export interface components {
40189
40307
  /** @description TraceId continues the distributed trace across the workflow tail and lets
40190
40308
  * authorized detail surfaces correlate the durable run with telemetry. */
40191
40309
  traceId?: string;
40310
+ /** @description TriggerMatch records the first automatic trigger that selected this run.
40311
+ * It is immutable engine-owned provenance, not stage execution state. Nil
40312
+ * means no captured match (legacy or a launch that bypassed automatic matching).
40313
+ * Readers must not reconstruct it from Origin or today's workflow definition. */
40314
+ triggerMatch?: components["schemas"]["models.WorkflowRunTriggerMatch"];
40192
40315
  /** @description User is the curated, secret-free account context a run needs: the
40193
40316
  * organisation that owns the recording (for logging/scoping) and the account
40194
40317
  * Storage block used to resolve a per-recording vault override. Copied (and
@@ -40214,6 +40337,17 @@ export interface components {
40214
40337
  };
40215
40338
  /** @enum {string} */
40216
40339
  "models.WorkflowRunOrigin": "automatic" | "manual";
40340
+ "models.WorkflowRunStage": {
40341
+ dispatch?: components["schemas"]["models.Dispatch"];
40342
+ /** @description A non-nil execution, including {}, takes precedence over the entire legacy
40343
+ * summary. Missing execution means lifecycle facts may still live there. */
40344
+ execution?: components["schemas"]["models.WorkflowRunStageExecutionDetails"];
40345
+ name?: string;
40346
+ needs?: components["schemas"]["models.StageDependency"][];
40347
+ needsMode?: components["schemas"]["models.NeedsMode"];
40348
+ operation?: string;
40349
+ queue?: string;
40350
+ };
40217
40351
  "models.WorkflowRunStageExecution": {
40218
40352
  dependencies?: string[];
40219
40353
  dispatchAttempts?: number;
@@ -40227,10 +40361,29 @@ export interface components {
40227
40361
  resolvedAtMs?: number;
40228
40362
  state?: components["schemas"]["models.WorkflowRunStageState"];
40229
40363
  };
40364
+ "models.WorkflowRunStageExecutionDetails": {
40365
+ dispatchAttempts?: number;
40366
+ dispatchedAtMs?: number;
40367
+ durationMs?: number;
40368
+ firstDispatchAttemptAtMs?: number;
40369
+ lastDispatchAttemptAtMs?: number;
40370
+ lastDispatchErrorCode?: string;
40371
+ resolvedAtMs?: number;
40372
+ state?: components["schemas"]["models.WorkflowRunStageState"];
40373
+ };
40230
40374
  /** @enum {string} */
40231
40375
  "models.WorkflowRunStageState": "waiting" | "retrying" | "dispatched" | "resolved" | "dispatchFailed" | "timedOut" | "skipped";
40232
40376
  /** @enum {string} */
40233
40377
  "models.WorkflowRunState": "running" | "completed" | "noResult";
40378
+ "models.WorkflowRunTriggerMatch": {
40379
+ /** @description EvaluatedAtMs is the Unix-millisecond instant used for schedule matching
40380
+ * (usually recording time), not when the engine processed or opened the run. */
40381
+ evaluatedAtMs?: number;
40382
+ /** @description Index is zero-based in the normalized trigger list at selection time.
40383
+ * It is historical context, not a stable ID into an edited definition. */
40384
+ index?: number;
40385
+ trigger?: components["schemas"]["models.WorkflowTrigger"];
40386
+ };
40234
40387
  /** @enum {string} */
40235
40388
  "models.WorkflowSource": "user" | "config";
40236
40389
  "models.WorkflowStage": {
@@ -40694,7 +40847,10 @@ export declare namespace models {
40694
40847
  type WorkflowResult = components['schemas']['models.WorkflowResult'];
40695
40848
  type WorkflowRun = components['schemas']['models.WorkflowRun'];
40696
40849
  type WorkflowRunOperationStatus = components['schemas']['models.WorkflowRunOperationStatus'];
40850
+ type WorkflowRunStage = components['schemas']['models.WorkflowRunStage'];
40697
40851
  type WorkflowRunStageExecution = components['schemas']['models.WorkflowRunStageExecution'];
40852
+ type WorkflowRunStageExecutionDetails = components['schemas']['models.WorkflowRunStageExecutionDetails'];
40853
+ type WorkflowRunTriggerMatch = components['schemas']['models.WorkflowRunTriggerMatch'];
40698
40854
  type WorkflowStage = components['schemas']['models.WorkflowStage'];
40699
40855
  type WorkflowStageReference = components['schemas']['models.WorkflowStageReference'];
40700
40856
  type WorkflowStorage = components['schemas']['models.WorkflowStorage'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uug-ai/models",
3
- "version": "1.7.61",
3
+ "version": "1.7.63",
4
4
  "description": "TypeScript type definitions for Go models",
5
5
  "main": "dist/types.js",
6
6
  "types": "dist/types.d.ts",