@uug-ai/models 1.7.59 → 1.7.60
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/types.d.ts +74 -50
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -31229,7 +31229,7 @@ export interface paths {
|
|
|
31229
31229
|
[name: string]: unknown;
|
|
31230
31230
|
};
|
|
31231
31231
|
content: {
|
|
31232
|
-
"application/json": components["schemas"]["
|
|
31232
|
+
"application/json": components["schemas"]["models.WorkflowRunOperationStatus"];
|
|
31233
31233
|
};
|
|
31234
31234
|
};
|
|
31235
31235
|
};
|
|
@@ -31242,7 +31242,7 @@ export interface paths {
|
|
|
31242
31242
|
patch?: never;
|
|
31243
31243
|
trace?: never;
|
|
31244
31244
|
};
|
|
31245
|
-
"/internal/
|
|
31245
|
+
"/internal/workflowrunstageexecution": {
|
|
31246
31246
|
parameters: {
|
|
31247
31247
|
query?: never;
|
|
31248
31248
|
header?: never;
|
|
@@ -31250,8 +31250,8 @@ export interface paths {
|
|
|
31250
31250
|
cookie?: never;
|
|
31251
31251
|
};
|
|
31252
31252
|
/**
|
|
31253
|
-
* Get
|
|
31254
|
-
* @description Internal endpoint used only to ensure
|
|
31253
|
+
* Get WorkflowRunStageExecution (schema generation only)
|
|
31254
|
+
* @description Internal endpoint used only to ensure WorkflowRunStageExecution schema is generated in OpenAPI spec
|
|
31255
31255
|
*/
|
|
31256
31256
|
get: {
|
|
31257
31257
|
parameters: {
|
|
@@ -31268,7 +31268,7 @@ export interface paths {
|
|
|
31268
31268
|
[name: string]: unknown;
|
|
31269
31269
|
};
|
|
31270
31270
|
content: {
|
|
31271
|
-
"application/json": components["schemas"]["
|
|
31271
|
+
"application/json": components["schemas"]["models.WorkflowRunStageExecution"];
|
|
31272
31272
|
};
|
|
31273
31273
|
};
|
|
31274
31274
|
};
|
|
@@ -34578,7 +34578,7 @@ export interface components {
|
|
|
34578
34578
|
metadata?: components["schemas"]["api.Metadata"];
|
|
34579
34579
|
};
|
|
34580
34580
|
"api.GetWorkflowRunsResponse": {
|
|
34581
|
-
runs?: components["schemas"]["
|
|
34581
|
+
runs?: components["schemas"]["models.WorkflowRun"][];
|
|
34582
34582
|
summary?: components["schemas"]["api.WorkflowRunStatusSummary"];
|
|
34583
34583
|
};
|
|
34584
34584
|
"api.GetWorkflowRunsSuccessResponse": {
|
|
@@ -34764,7 +34764,7 @@ export interface components {
|
|
|
34764
34764
|
};
|
|
34765
34765
|
"api.ListWorkflowRunsResponse": {
|
|
34766
34766
|
pagination?: components["schemas"]["api.CursorPagination"];
|
|
34767
|
-
runs?: components["schemas"]["
|
|
34767
|
+
runs?: components["schemas"]["models.WorkflowRun"][];
|
|
34768
34768
|
summary?: components["schemas"]["api.WorkflowRunStatusSummary"];
|
|
34769
34769
|
};
|
|
34770
34770
|
"api.ListWorkflowRunsSuccessResponse": {
|
|
@@ -36009,44 +36009,6 @@ export interface components {
|
|
|
36009
36009
|
to?: number;
|
|
36010
36010
|
workflowIds?: string[];
|
|
36011
36011
|
};
|
|
36012
|
-
"api.WorkflowRunOperationStatus": {
|
|
36013
|
-
operation?: string;
|
|
36014
|
-
status?: components["schemas"]["models.WorkflowRunOperationState"];
|
|
36015
|
-
};
|
|
36016
|
-
"api.WorkflowRunStatus": {
|
|
36017
|
-
deviceKey?: string;
|
|
36018
|
-
deviceName?: string;
|
|
36019
|
-
/** @description Dispatched / Resolved are the sizes of the run's dispatched and resolved
|
|
36020
|
-
* operation sets, exposed as a coarse progress hint. */
|
|
36021
|
-
dispatched?: number;
|
|
36022
|
-
/** @description DispatchedOperations / ResolvedOperations name the stages behind the
|
|
36023
|
-
* Dispatched / Resolved counts, in dispatch/resolution order, so a surface
|
|
36024
|
-
* can render per-stage progress (e.g. "pose done, redaction running")
|
|
36025
|
-
* instead of only a run-level running/completed flip for multi-stage runs. */
|
|
36026
|
-
dispatchedOperations?: string[];
|
|
36027
|
-
end?: number;
|
|
36028
|
-
/** @description HasResults is true when the run accumulated any stage output. */
|
|
36029
|
-
hasResults?: boolean;
|
|
36030
|
-
key?: string;
|
|
36031
|
-
mediaId?: string;
|
|
36032
|
-
/** @description Operations provides the same lifecycle as the operation sets in a
|
|
36033
|
-
* render-ready form. It contains every dispatched operation in dispatch
|
|
36034
|
-
* order, marked dispatched until it appears in ResolvedOperations. */
|
|
36035
|
-
operations?: components["schemas"]["api.WorkflowRunOperationStatus"][];
|
|
36036
|
-
origin?: string;
|
|
36037
|
-
recordingTimestamp?: number;
|
|
36038
|
-
resolved?: number;
|
|
36039
|
-
resolvedOperations?: string[];
|
|
36040
|
-
runId?: string;
|
|
36041
|
-
sourceRef?: string;
|
|
36042
|
-
/** @description Start / End are unix seconds; End is 0 while the run is still open. */
|
|
36043
|
-
start?: number;
|
|
36044
|
-
/** @description State is the derived lifecycle: running | completed | noResult
|
|
36045
|
-
* (models.WorkflowRunState). */
|
|
36046
|
-
state?: string;
|
|
36047
|
-
workflowId?: string;
|
|
36048
|
-
workflowName?: string;
|
|
36049
|
-
};
|
|
36050
36012
|
"api.WorkflowRunStatusSummary": {
|
|
36051
36013
|
completed?: number;
|
|
36052
36014
|
noResult?: number;
|
|
@@ -36075,7 +36037,7 @@ export interface components {
|
|
|
36075
36037
|
userId?: string;
|
|
36076
36038
|
};
|
|
36077
36039
|
/** @enum {string} */
|
|
36078
|
-
"models.AccessTokenScope": "
|
|
36040
|
+
"models.AccessTokenScope": "workflow-runs.create" | "workflow-runs.read" | "workflow-runs.update" | "days.read" | "application" | "markers.read" | "markers.write" | "markers.all" | "workflows.read" | "workflows.create" | "workflows.update" | "workflows.delete" | "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";
|
|
36079
36041
|
"models.Account": {
|
|
36080
36042
|
account?: components["schemas"]["models.AccountBody"];
|
|
36081
36043
|
};
|
|
@@ -38525,7 +38487,7 @@ export interface components {
|
|
|
38525
38487
|
videowall?: components["schemas"]["models.Videowall"];
|
|
38526
38488
|
};
|
|
38527
38489
|
/** @enum {string} */
|
|
38528
|
-
"models.Permission": "
|
|
38490
|
+
"models.Permission": "workflow-runs.create" | "workflow-runs.read" | "workflow-runs.update" | "days.read" | "application" | "markers.read" | "markers.write" | "markers.all" | "workflows.read" | "workflows.create" | "workflows.update" | "workflows.delete" | "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";
|
|
38529
38491
|
/** @enum {integer} */
|
|
38530
38492
|
"models.PermissionLevel": 1 | 2 | 3 | 4 | 2 | 3 | 4 | 5 | 2 | 3 | 2 | 2 | 3 | 2 | 3 | 4;
|
|
38531
38493
|
"models.Permissions": {
|
|
@@ -39835,6 +39797,20 @@ export interface components {
|
|
|
39835
39797
|
* media is stored/served from). Copied from the recording at hand-off time.
|
|
39836
39798
|
* Wire-only. */
|
|
39837
39799
|
device?: components["schemas"]["models.WorkflowDevice"];
|
|
39800
|
+
deviceKey?: string;
|
|
39801
|
+
deviceName?: string;
|
|
39802
|
+
dispatched?: number;
|
|
39803
|
+
/** @description DispatchedOperations are the operation ids the engine has enqueued for this
|
|
39804
|
+
* run — the always-stages seeded at open plus any conditional stages that
|
|
39805
|
+
* matched. Every entry is a deployed stage's operation (only stages are ever
|
|
39806
|
+
* dispatched), so here stage and operation coincide; the field is named by
|
|
39807
|
+
* operation because the stored value is the operation id and to stay
|
|
39808
|
+
* symmetric with ResolvedOperations. Written idempotently via $addToSet. */
|
|
39809
|
+
dispatchedOperations?: string[];
|
|
39810
|
+
durationMs?: number;
|
|
39811
|
+
end?: number;
|
|
39812
|
+
endedAtMs?: number;
|
|
39813
|
+
hasResults?: boolean;
|
|
39838
39814
|
/** @description Inputs is the immutable start context the run opens with, keyed by the
|
|
39839
39815
|
* upstream operation that produced it (e.g. "classify" → the classification
|
|
39840
39816
|
* result). Conditions and stages read upstream context from here; it is set
|
|
@@ -39848,6 +39824,7 @@ export interface components {
|
|
|
39848
39824
|
* run state is correlated by Id/RunId because several workflows and manual
|
|
39849
39825
|
* re-runs may execute over the same key. */
|
|
39850
39826
|
key?: string;
|
|
39827
|
+
mediaId?: string;
|
|
39851
39828
|
/** @description Operation marks the message's role on the workflows queue (wire-only):
|
|
39852
39829
|
* - "event": a fresh run hand-off from analysis. It opens the run and
|
|
39853
39830
|
* carries the start context in Inputs (e.g. the classification result).
|
|
@@ -39858,6 +39835,7 @@ export interface components {
|
|
|
39858
39835
|
* a dispatch goes to the worker's own queue — so the engine never has to
|
|
39859
39836
|
* disambiguate a dispatch from a result. */
|
|
39860
39837
|
operation?: string;
|
|
39838
|
+
operations?: components["schemas"]["models.WorkflowRunOperationStatus"][];
|
|
39861
39839
|
/** @description Origin records how this run was opened — the run-side counterpart of the
|
|
39862
39840
|
* Workflow's trigger Type. An automatic run was teed off the pipeline by
|
|
39863
39841
|
* analysis for a matching recording; a manual run was launched on demand by a
|
|
@@ -39903,6 +39881,17 @@ export interface components {
|
|
|
39903
39881
|
* something a worker has to echo back, so it is not part of the stage
|
|
39904
39882
|
* contract. */
|
|
39905
39883
|
recordingTimestamp?: number;
|
|
39884
|
+
resolved?: number;
|
|
39885
|
+
/** @description ResolvedOperations are the operation ids whose stage results the engine has
|
|
39886
|
+
* observed (each worker hands its result back under its operation). With
|
|
39887
|
+
* DispatchedOperations it drives finalization — the run ends once every
|
|
39888
|
+
* dispatched operation is resolved — and idempotency.
|
|
39889
|
+
*
|
|
39890
|
+
* This is narrower than the set a need's gate checks: gate readiness is
|
|
39891
|
+
* evaluated against the run's available operations — the keys of Inputs ∪
|
|
39892
|
+
* Results, which also include the trigger analysis hands off (e.g. "classify")
|
|
39893
|
+
* that seeds Inputs but never resolves as a stage and so never appears here. */
|
|
39894
|
+
resolvedOperations?: string[];
|
|
39906
39895
|
/** @description Results is the run's accumulated stage outputs, keyed by operation. Each
|
|
39907
39896
|
* stage worker writes its result under its operation on the way back, and
|
|
39908
39897
|
* conditions / downstream stages read upstream outputs from here. It grows
|
|
@@ -39939,6 +39928,11 @@ export interface components {
|
|
|
39939
39928
|
* the run. Empty for automatic runs. It generalises to any run-grouping handle
|
|
39940
39929
|
* (a case id today; a temporal device-series id is a forward-looking twin). */
|
|
39941
39930
|
sourceRef?: string;
|
|
39931
|
+
/** @description StageExecutions is the bounded stage plan and execution summary used by run
|
|
39932
|
+
* detail surfaces. The compiled routing plan already occupies the JSON
|
|
39933
|
+
* "stages" field, so the execution timeline has its own unambiguous name.
|
|
39934
|
+
* Sparse queue messages leave this field empty. */
|
|
39935
|
+
stageExecutions?: components["schemas"]["models.WorkflowRunStageExecution"][];
|
|
39942
39936
|
/** @description Stages is the run's self-describing routing: the compiled stage set of the
|
|
39943
39937
|
* workflow this run executes (the output of Workflow.CompileStages) embedded
|
|
39944
39938
|
* on the hand-off so the engine can dispatch a workflow it does not hold in
|
|
@@ -39951,6 +39945,16 @@ export interface components {
|
|
|
39951
39945
|
* persisted so the return path — a stage result reopening the run on any
|
|
39952
39946
|
* replica — resolves the same routing without re-fetching the definition. */
|
|
39953
39947
|
stages?: components["schemas"]["models.WorkflowStage"][];
|
|
39948
|
+
/** @description Start and End stamp the run's lifecycle (unix seconds). They remain for
|
|
39949
|
+
* compatibility with existing runs and list indexes. */
|
|
39950
|
+
start?: number;
|
|
39951
|
+
/** @description StartedAtMs and EndedAtMs are the millisecond-precision counterparts of the
|
|
39952
|
+
* legacy Start and End fields. New writers populate both pairs; readers fall
|
|
39953
|
+
* back to Start/End for runs created before these fields existed. */
|
|
39954
|
+
startedAtMs?: number;
|
|
39955
|
+
/** @description The fields below are API read projections. They are derived or joined by
|
|
39956
|
+
* the service after loading a run and never persist back into workflow state. */
|
|
39957
|
+
state?: components["schemas"]["models.WorkflowRunState"];
|
|
39954
39958
|
/** @description Storage carries the credentials a dispatched stage worker needs to fetch
|
|
39955
39959
|
* the media (global Kerberos Storage plus any resolved per-recording vault
|
|
39956
39960
|
* override). It is populated by the engine only on the engine→worker
|
|
@@ -39958,7 +39962,8 @@ export interface components {
|
|
|
39958
39962
|
* result. `bson:"-"` is load-bearing: credentials never sit in the run's
|
|
39959
39963
|
* persisted state. */
|
|
39960
39964
|
storage?: components["schemas"]["models.WorkflowStorage"];
|
|
39961
|
-
/** @description TraceId continues the distributed trace across the workflow tail
|
|
39965
|
+
/** @description TraceId continues the distributed trace across the workflow tail and lets
|
|
39966
|
+
* authorized detail surfaces correlate the durable run with telemetry. */
|
|
39962
39967
|
traceId?: string;
|
|
39963
39968
|
/** @description User is the curated, secret-free account context a run needs: the
|
|
39964
39969
|
* organisation that owns the recording (for logging/scoping) and the account
|
|
@@ -39979,8 +39984,27 @@ export interface components {
|
|
|
39979
39984
|
};
|
|
39980
39985
|
/** @enum {string} */
|
|
39981
39986
|
"models.WorkflowRunOperationState": "dispatched" | "resolved";
|
|
39987
|
+
"models.WorkflowRunOperationStatus": {
|
|
39988
|
+
operation?: string;
|
|
39989
|
+
status?: components["schemas"]["models.WorkflowRunOperationState"];
|
|
39990
|
+
};
|
|
39982
39991
|
/** @enum {string} */
|
|
39983
39992
|
"models.WorkflowRunOrigin": "automatic" | "manual";
|
|
39993
|
+
"models.WorkflowRunStageExecution": {
|
|
39994
|
+
dependencies?: string[];
|
|
39995
|
+
dispatchAttempts?: number;
|
|
39996
|
+
dispatchedAtMs?: number;
|
|
39997
|
+
durationMs?: number;
|
|
39998
|
+
firstDispatchAttemptAtMs?: number;
|
|
39999
|
+
lastDispatchAttemptAtMs?: number;
|
|
40000
|
+
lastDispatchErrorCode?: string;
|
|
40001
|
+
name?: string;
|
|
40002
|
+
operation?: string;
|
|
40003
|
+
resolvedAtMs?: number;
|
|
40004
|
+
state?: components["schemas"]["models.WorkflowRunStageState"];
|
|
40005
|
+
};
|
|
40006
|
+
/** @enum {string} */
|
|
40007
|
+
"models.WorkflowRunStageState": "waiting" | "retrying" | "dispatched" | "resolved" | "dispatchFailed" | "timedOut" | "skipped";
|
|
39984
40008
|
/** @enum {string} */
|
|
39985
40009
|
"models.WorkflowRunState": "running" | "completed" | "noResult";
|
|
39986
40010
|
/** @enum {string} */
|
|
@@ -40439,6 +40463,8 @@ export declare namespace models {
|
|
|
40439
40463
|
type WorkflowNode = components['schemas']['models.WorkflowNode'];
|
|
40440
40464
|
type WorkflowResult = components['schemas']['models.WorkflowResult'];
|
|
40441
40465
|
type WorkflowRun = components['schemas']['models.WorkflowRun'];
|
|
40466
|
+
type WorkflowRunOperationStatus = components['schemas']['models.WorkflowRunOperationStatus'];
|
|
40467
|
+
type WorkflowRunStageExecution = components['schemas']['models.WorkflowRunStageExecution'];
|
|
40442
40468
|
type WorkflowStage = components['schemas']['models.WorkflowStage'];
|
|
40443
40469
|
type WorkflowStageReference = components['schemas']['models.WorkflowStageReference'];
|
|
40444
40470
|
type WorkflowStorage = components['schemas']['models.WorkflowStorage'];
|
|
@@ -40909,7 +40935,5 @@ export declare namespace api {
|
|
|
40909
40935
|
type WarningResponse = components['schemas']['api.WarningResponse'];
|
|
40910
40936
|
type WorkflowFilter = components['schemas']['api.WorkflowFilter'];
|
|
40911
40937
|
type WorkflowRunFilter = components['schemas']['api.WorkflowRunFilter'];
|
|
40912
|
-
type WorkflowRunOperationStatus = components['schemas']['api.WorkflowRunOperationStatus'];
|
|
40913
|
-
type WorkflowRunStatus = components['schemas']['api.WorkflowRunStatus'];
|
|
40914
40938
|
type WorkflowRunStatusSummary = components['schemas']['api.WorkflowRunStatusSummary'];
|
|
40915
40939
|
}
|