@uug-ai/models 1.7.61 → 1.7.62

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 +113 -18
  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;
@@ -36232,7 +36310,7 @@ export interface components {
36232
36310
  userId?: string;
36233
36311
  };
36234
36312
  /** @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";
36313
+ "models.AccessTokenScope": "media.read" | "media.update" | "media.export" | "media.share" | "media.redact" | "media.delete" | "application" | "workflow-runs.create" | "workflow-runs.read" | "workflow-runs.update" | "cases.read" | "cases.create" | "cases.update" | "cases.share" | "cases.export" | "cases.runWorkflow" | "cases.delete" | "days.read" | "markers.read" | "markers.write" | "markers.all" | "workflows.read" | "workflows.create" | "workflows.update" | "workflows.delete";
36236
36314
  "models.Account": {
36237
36315
  account?: components["schemas"]["models.AccountBody"];
36238
36316
  };
@@ -38684,7 +38762,7 @@ export interface components {
38684
38762
  videowall?: components["schemas"]["models.Videowall"];
38685
38763
  };
38686
38764
  /** @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";
38765
+ "models.Permission": "media.read" | "media.update" | "media.export" | "media.share" | "media.redact" | "media.delete" | "application" | "workflow-runs.create" | "workflow-runs.read" | "workflow-runs.update" | "cases.read" | "cases.create" | "cases.update" | "cases.share" | "cases.export" | "cases.runWorkflow" | "cases.delete" | "days.read" | "markers.read" | "markers.write" | "markers.all" | "workflows.read" | "workflows.create" | "workflows.update" | "workflows.delete";
38688
38766
  /** @enum {integer} */
38689
38767
  "models.PermissionLevel": 1 | 2 | 3 | 4 | 2 | 3 | 4 | 5 | 2 | 3 | 2 | 2 | 3 | 2 | 3 | 4;
38690
38768
  "models.Permissions": {
@@ -40152,23 +40230,17 @@ export interface components {
40152
40230
  * the run. Empty for automatic runs. It generalises to any run-grouping handle
40153
40231
  * (a case id today; a temporal device-series id is a forward-looking twin). */
40154
40232
  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. */
40233
+ /** @description StageExecutions reads the legacy split timeline. NormalizeStages moves
40234
+ * matched summaries into Stages, retaining unmatched history without
40235
+ * reconstructing missing routing. Serialization does not normalize implicitly.
40236
+ * Deprecated: new writers use Stages[i].Execution. */
40159
40237
  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"][];
40238
+ /** @description Stages captures the run's compiled rules and per-stage execution facts.
40239
+ * New writers use NewWorkflowRunStages after resolving queues and defaults.
40240
+ * Legacy routing-only elements decode unchanged; NormalizeStages joins any
40241
+ * split lifecycle summaries. Nil means no captured routing (legacy fallback);
40242
+ * an explicit empty slice is an authoritative zero-stage plan. */
40243
+ stages?: components["schemas"]["models.WorkflowRunStage"][];
40172
40244
  /** @description Start and End stamp the run's lifecycle (unix seconds). They remain for
40173
40245
  * compatibility with existing runs and list indexes. */
40174
40246
  start?: number;
@@ -40214,6 +40286,17 @@ export interface components {
40214
40286
  };
40215
40287
  /** @enum {string} */
40216
40288
  "models.WorkflowRunOrigin": "automatic" | "manual";
40289
+ "models.WorkflowRunStage": {
40290
+ dispatch?: components["schemas"]["models.Dispatch"];
40291
+ /** @description A non-nil execution, including {}, takes precedence over the entire legacy
40292
+ * summary. Missing execution means lifecycle facts may still live there. */
40293
+ execution?: components["schemas"]["models.WorkflowRunStageExecutionDetails"];
40294
+ name?: string;
40295
+ needs?: components["schemas"]["models.StageDependency"][];
40296
+ needsMode?: components["schemas"]["models.NeedsMode"];
40297
+ operation?: string;
40298
+ queue?: string;
40299
+ };
40217
40300
  "models.WorkflowRunStageExecution": {
40218
40301
  dependencies?: string[];
40219
40302
  dispatchAttempts?: number;
@@ -40227,6 +40310,16 @@ export interface components {
40227
40310
  resolvedAtMs?: number;
40228
40311
  state?: components["schemas"]["models.WorkflowRunStageState"];
40229
40312
  };
40313
+ "models.WorkflowRunStageExecutionDetails": {
40314
+ dispatchAttempts?: number;
40315
+ dispatchedAtMs?: number;
40316
+ durationMs?: number;
40317
+ firstDispatchAttemptAtMs?: number;
40318
+ lastDispatchAttemptAtMs?: number;
40319
+ lastDispatchErrorCode?: string;
40320
+ resolvedAtMs?: number;
40321
+ state?: components["schemas"]["models.WorkflowRunStageState"];
40322
+ };
40230
40323
  /** @enum {string} */
40231
40324
  "models.WorkflowRunStageState": "waiting" | "retrying" | "dispatched" | "resolved" | "dispatchFailed" | "timedOut" | "skipped";
40232
40325
  /** @enum {string} */
@@ -40694,7 +40787,9 @@ export declare namespace models {
40694
40787
  type WorkflowResult = components['schemas']['models.WorkflowResult'];
40695
40788
  type WorkflowRun = components['schemas']['models.WorkflowRun'];
40696
40789
  type WorkflowRunOperationStatus = components['schemas']['models.WorkflowRunOperationStatus'];
40790
+ type WorkflowRunStage = components['schemas']['models.WorkflowRunStage'];
40697
40791
  type WorkflowRunStageExecution = components['schemas']['models.WorkflowRunStageExecution'];
40792
+ type WorkflowRunStageExecutionDetails = components['schemas']['models.WorkflowRunStageExecutionDetails'];
40698
40793
  type WorkflowStage = components['schemas']['models.WorkflowStage'];
40699
40794
  type WorkflowStageReference = components['schemas']['models.WorkflowStageReference'];
40700
40795
  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.62",
4
4
  "description": "TypeScript type definitions for Go models",
5
5
  "main": "dist/types.js",
6
6
  "types": "dist/types.d.ts",