@uug-ai/models 1.7.59 → 1.7.61
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 +322 -68
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -42,6 +42,45 @@ export interface paths {
|
|
|
42
42
|
patch?: never;
|
|
43
43
|
trace?: never;
|
|
44
44
|
};
|
|
45
|
+
"/internal/accesstokenscope": {
|
|
46
|
+
parameters: {
|
|
47
|
+
query?: never;
|
|
48
|
+
header?: never;
|
|
49
|
+
path?: never;
|
|
50
|
+
cookie?: never;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Get AccessTokenScope (schema generation only)
|
|
54
|
+
* @description Internal endpoint used only to ensure AccessTokenScope schema is generated in OpenAPI spec
|
|
55
|
+
*/
|
|
56
|
+
get: {
|
|
57
|
+
parameters: {
|
|
58
|
+
query?: never;
|
|
59
|
+
header?: never;
|
|
60
|
+
path?: never;
|
|
61
|
+
cookie?: never;
|
|
62
|
+
};
|
|
63
|
+
requestBody?: never;
|
|
64
|
+
responses: {
|
|
65
|
+
/** @description OK */
|
|
66
|
+
200: {
|
|
67
|
+
headers: {
|
|
68
|
+
[name: string]: unknown;
|
|
69
|
+
};
|
|
70
|
+
content: {
|
|
71
|
+
"application/json": components["schemas"]["models.AccessTokenScope"];
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
put?: never;
|
|
77
|
+
post?: never;
|
|
78
|
+
delete?: never;
|
|
79
|
+
options?: never;
|
|
80
|
+
head?: never;
|
|
81
|
+
patch?: never;
|
|
82
|
+
trace?: never;
|
|
83
|
+
};
|
|
45
84
|
"/internal/account": {
|
|
46
85
|
parameters: {
|
|
47
86
|
query?: never;
|
|
@@ -30774,6 +30813,84 @@ export interface paths {
|
|
|
30774
30813
|
patch?: never;
|
|
30775
30814
|
trace?: never;
|
|
30776
30815
|
};
|
|
30816
|
+
"/internal/workflowcondition": {
|
|
30817
|
+
parameters: {
|
|
30818
|
+
query?: never;
|
|
30819
|
+
header?: never;
|
|
30820
|
+
path?: never;
|
|
30821
|
+
cookie?: never;
|
|
30822
|
+
};
|
|
30823
|
+
/**
|
|
30824
|
+
* Get WorkflowCondition (schema generation only)
|
|
30825
|
+
* @description Internal endpoint used only to ensure WorkflowCondition schema is generated in OpenAPI spec
|
|
30826
|
+
*/
|
|
30827
|
+
get: {
|
|
30828
|
+
parameters: {
|
|
30829
|
+
query?: never;
|
|
30830
|
+
header?: never;
|
|
30831
|
+
path?: never;
|
|
30832
|
+
cookie?: never;
|
|
30833
|
+
};
|
|
30834
|
+
requestBody?: never;
|
|
30835
|
+
responses: {
|
|
30836
|
+
/** @description OK */
|
|
30837
|
+
200: {
|
|
30838
|
+
headers: {
|
|
30839
|
+
[name: string]: unknown;
|
|
30840
|
+
};
|
|
30841
|
+
content: {
|
|
30842
|
+
"application/json": components["schemas"]["models.WorkflowCondition"];
|
|
30843
|
+
};
|
|
30844
|
+
};
|
|
30845
|
+
};
|
|
30846
|
+
};
|
|
30847
|
+
put?: never;
|
|
30848
|
+
post?: never;
|
|
30849
|
+
delete?: never;
|
|
30850
|
+
options?: never;
|
|
30851
|
+
head?: never;
|
|
30852
|
+
patch?: never;
|
|
30853
|
+
trace?: never;
|
|
30854
|
+
};
|
|
30855
|
+
"/internal/workflowconditionset": {
|
|
30856
|
+
parameters: {
|
|
30857
|
+
query?: never;
|
|
30858
|
+
header?: never;
|
|
30859
|
+
path?: never;
|
|
30860
|
+
cookie?: never;
|
|
30861
|
+
};
|
|
30862
|
+
/**
|
|
30863
|
+
* Get WorkflowConditionSet (schema generation only)
|
|
30864
|
+
* @description Internal endpoint used only to ensure WorkflowConditionSet schema is generated in OpenAPI spec
|
|
30865
|
+
*/
|
|
30866
|
+
get: {
|
|
30867
|
+
parameters: {
|
|
30868
|
+
query?: never;
|
|
30869
|
+
header?: never;
|
|
30870
|
+
path?: never;
|
|
30871
|
+
cookie?: never;
|
|
30872
|
+
};
|
|
30873
|
+
requestBody?: never;
|
|
30874
|
+
responses: {
|
|
30875
|
+
/** @description OK */
|
|
30876
|
+
200: {
|
|
30877
|
+
headers: {
|
|
30878
|
+
[name: string]: unknown;
|
|
30879
|
+
};
|
|
30880
|
+
content: {
|
|
30881
|
+
"application/json": components["schemas"]["models.WorkflowConditionSet"];
|
|
30882
|
+
};
|
|
30883
|
+
};
|
|
30884
|
+
};
|
|
30885
|
+
};
|
|
30886
|
+
put?: never;
|
|
30887
|
+
post?: never;
|
|
30888
|
+
delete?: never;
|
|
30889
|
+
options?: never;
|
|
30890
|
+
head?: never;
|
|
30891
|
+
patch?: never;
|
|
30892
|
+
trace?: never;
|
|
30893
|
+
};
|
|
30777
30894
|
"/internal/workflowdevice": {
|
|
30778
30895
|
parameters: {
|
|
30779
30896
|
query?: never;
|
|
@@ -31086,6 +31203,84 @@ export interface paths {
|
|
|
31086
31203
|
patch?: never;
|
|
31087
31204
|
trace?: never;
|
|
31088
31205
|
};
|
|
31206
|
+
"/internal/workflowpredicate": {
|
|
31207
|
+
parameters: {
|
|
31208
|
+
query?: never;
|
|
31209
|
+
header?: never;
|
|
31210
|
+
path?: never;
|
|
31211
|
+
cookie?: never;
|
|
31212
|
+
};
|
|
31213
|
+
/**
|
|
31214
|
+
* Get WorkflowPredicate (schema generation only)
|
|
31215
|
+
* @description Internal endpoint used only to ensure WorkflowPredicate schema is generated in OpenAPI spec
|
|
31216
|
+
*/
|
|
31217
|
+
get: {
|
|
31218
|
+
parameters: {
|
|
31219
|
+
query?: never;
|
|
31220
|
+
header?: never;
|
|
31221
|
+
path?: never;
|
|
31222
|
+
cookie?: never;
|
|
31223
|
+
};
|
|
31224
|
+
requestBody?: never;
|
|
31225
|
+
responses: {
|
|
31226
|
+
/** @description OK */
|
|
31227
|
+
200: {
|
|
31228
|
+
headers: {
|
|
31229
|
+
[name: string]: unknown;
|
|
31230
|
+
};
|
|
31231
|
+
content: {
|
|
31232
|
+
"application/json": components["schemas"]["models.WorkflowPredicate"];
|
|
31233
|
+
};
|
|
31234
|
+
};
|
|
31235
|
+
};
|
|
31236
|
+
};
|
|
31237
|
+
put?: never;
|
|
31238
|
+
post?: never;
|
|
31239
|
+
delete?: never;
|
|
31240
|
+
options?: never;
|
|
31241
|
+
head?: never;
|
|
31242
|
+
patch?: never;
|
|
31243
|
+
trace?: never;
|
|
31244
|
+
};
|
|
31245
|
+
"/internal/workflowpredicateset": {
|
|
31246
|
+
parameters: {
|
|
31247
|
+
query?: never;
|
|
31248
|
+
header?: never;
|
|
31249
|
+
path?: never;
|
|
31250
|
+
cookie?: never;
|
|
31251
|
+
};
|
|
31252
|
+
/**
|
|
31253
|
+
* Get WorkflowPredicateSet (schema generation only)
|
|
31254
|
+
* @description Internal endpoint used only to ensure WorkflowPredicateSet schema is generated in OpenAPI spec
|
|
31255
|
+
*/
|
|
31256
|
+
get: {
|
|
31257
|
+
parameters: {
|
|
31258
|
+
query?: never;
|
|
31259
|
+
header?: never;
|
|
31260
|
+
path?: never;
|
|
31261
|
+
cookie?: never;
|
|
31262
|
+
};
|
|
31263
|
+
requestBody?: never;
|
|
31264
|
+
responses: {
|
|
31265
|
+
/** @description OK */
|
|
31266
|
+
200: {
|
|
31267
|
+
headers: {
|
|
31268
|
+
[name: string]: unknown;
|
|
31269
|
+
};
|
|
31270
|
+
content: {
|
|
31271
|
+
"application/json": components["schemas"]["models.WorkflowPredicateSet"];
|
|
31272
|
+
};
|
|
31273
|
+
};
|
|
31274
|
+
};
|
|
31275
|
+
};
|
|
31276
|
+
put?: never;
|
|
31277
|
+
post?: never;
|
|
31278
|
+
delete?: never;
|
|
31279
|
+
options?: never;
|
|
31280
|
+
head?: never;
|
|
31281
|
+
patch?: never;
|
|
31282
|
+
trace?: never;
|
|
31283
|
+
};
|
|
31089
31284
|
"/internal/workflowresult": {
|
|
31090
31285
|
parameters: {
|
|
31091
31286
|
query?: never;
|
|
@@ -31229,7 +31424,7 @@ export interface paths {
|
|
|
31229
31424
|
[name: string]: unknown;
|
|
31230
31425
|
};
|
|
31231
31426
|
content: {
|
|
31232
|
-
"application/json": components["schemas"]["
|
|
31427
|
+
"application/json": components["schemas"]["models.WorkflowRunOperationStatus"];
|
|
31233
31428
|
};
|
|
31234
31429
|
};
|
|
31235
31430
|
};
|
|
@@ -31242,7 +31437,7 @@ export interface paths {
|
|
|
31242
31437
|
patch?: never;
|
|
31243
31438
|
trace?: never;
|
|
31244
31439
|
};
|
|
31245
|
-
"/internal/
|
|
31440
|
+
"/internal/workflowrunstageexecution": {
|
|
31246
31441
|
parameters: {
|
|
31247
31442
|
query?: never;
|
|
31248
31443
|
header?: never;
|
|
@@ -31250,8 +31445,8 @@ export interface paths {
|
|
|
31250
31445
|
cookie?: never;
|
|
31251
31446
|
};
|
|
31252
31447
|
/**
|
|
31253
|
-
* Get
|
|
31254
|
-
* @description Internal endpoint used only to ensure
|
|
31448
|
+
* Get WorkflowRunStageExecution (schema generation only)
|
|
31449
|
+
* @description Internal endpoint used only to ensure WorkflowRunStageExecution schema is generated in OpenAPI spec
|
|
31255
31450
|
*/
|
|
31256
31451
|
get: {
|
|
31257
31452
|
parameters: {
|
|
@@ -31268,7 +31463,7 @@ export interface paths {
|
|
|
31268
31463
|
[name: string]: unknown;
|
|
31269
31464
|
};
|
|
31270
31465
|
content: {
|
|
31271
|
-
"application/json": components["schemas"]["
|
|
31466
|
+
"application/json": components["schemas"]["models.WorkflowRunStageExecution"];
|
|
31272
31467
|
};
|
|
31273
31468
|
};
|
|
31274
31469
|
};
|
|
@@ -34578,7 +34773,7 @@ export interface components {
|
|
|
34578
34773
|
metadata?: components["schemas"]["api.Metadata"];
|
|
34579
34774
|
};
|
|
34580
34775
|
"api.GetWorkflowRunsResponse": {
|
|
34581
|
-
runs?: components["schemas"]["
|
|
34776
|
+
runs?: components["schemas"]["models.WorkflowRun"][];
|
|
34582
34777
|
summary?: components["schemas"]["api.WorkflowRunStatusSummary"];
|
|
34583
34778
|
};
|
|
34584
34779
|
"api.GetWorkflowRunsSuccessResponse": {
|
|
@@ -34764,7 +34959,7 @@ export interface components {
|
|
|
34764
34959
|
};
|
|
34765
34960
|
"api.ListWorkflowRunsResponse": {
|
|
34766
34961
|
pagination?: components["schemas"]["api.CursorPagination"];
|
|
34767
|
-
runs?: components["schemas"]["
|
|
34962
|
+
runs?: components["schemas"]["models.WorkflowRun"][];
|
|
34768
34963
|
summary?: components["schemas"]["api.WorkflowRunStatusSummary"];
|
|
34769
34964
|
};
|
|
34770
34965
|
"api.ListWorkflowRunsSuccessResponse": {
|
|
@@ -36009,44 +36204,6 @@ export interface components {
|
|
|
36009
36204
|
to?: number;
|
|
36010
36205
|
workflowIds?: string[];
|
|
36011
36206
|
};
|
|
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
36207
|
"api.WorkflowRunStatusSummary": {
|
|
36051
36208
|
completed?: number;
|
|
36052
36209
|
noResult?: number;
|
|
@@ -36075,7 +36232,7 @@ export interface components {
|
|
|
36075
36232
|
userId?: string;
|
|
36076
36233
|
};
|
|
36077
36234
|
/** @enum {string} */
|
|
36078
|
-
"models.AccessTokenScope": "
|
|
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";
|
|
36079
36236
|
"models.Account": {
|
|
36080
36237
|
account?: components["schemas"]["models.AccountBody"];
|
|
36081
36238
|
};
|
|
@@ -36801,7 +36958,9 @@ export interface components {
|
|
|
36801
36958
|
website?: string;
|
|
36802
36959
|
};
|
|
36803
36960
|
/** @enum {string} */
|
|
36804
|
-
"models.
|
|
36961
|
+
"models.ConditionMode": "all" | "any";
|
|
36962
|
+
/** @enum {string} */
|
|
36963
|
+
"models.ConditionOp": "eq" | "ne" | "contains" | "in" | "exists" | "matches" | "gt" | "gte" | "lt" | "lte" | "anyMatch";
|
|
36805
36964
|
"models.Contact": {
|
|
36806
36965
|
email?: string;
|
|
36807
36966
|
name?: string;
|
|
@@ -38525,7 +38684,7 @@ export interface components {
|
|
|
38525
38684
|
videowall?: components["schemas"]["models.Videowall"];
|
|
38526
38685
|
};
|
|
38527
38686
|
/** @enum {string} */
|
|
38528
|
-
"models.Permission": "
|
|
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";
|
|
38529
38688
|
/** @enum {integer} */
|
|
38530
38689
|
"models.PermissionLevel": 1 | 2 | 3 | 4 | 2 | 3 | 4 | 5 | 2 | 3 | 2 | 2 | 3 | 2 | 3 | 4;
|
|
38531
38690
|
"models.Permissions": {
|
|
@@ -38852,6 +39011,7 @@ export interface components {
|
|
|
38852
39011
|
width?: number;
|
|
38853
39012
|
};
|
|
38854
39013
|
"models.StageCondition": {
|
|
39014
|
+
match?: components["schemas"]["models.WorkflowPredicateSet"];
|
|
38855
39015
|
/** @description see the ConditionOp consts */
|
|
38856
39016
|
op?: components["schemas"]["models.ConditionOp"];
|
|
38857
39017
|
/** @description absolute dot-path into the run root (see type doc) */
|
|
@@ -38861,8 +39021,13 @@ export interface components {
|
|
|
38861
39021
|
};
|
|
38862
39022
|
"models.StageDependency": {
|
|
38863
39023
|
/** @description Condition is the predicate evaluated against the run root. Nil means the
|
|
38864
|
-
* need matches as soon as its gate (if any) is satisfied
|
|
39024
|
+
* need matches as soon as its gate (if any) is satisfied, unless plural
|
|
39025
|
+
* Conditions are supplied. The two representations must not be combined. */
|
|
38865
39026
|
condition?: components["schemas"]["models.StageCondition"];
|
|
39027
|
+
/** @description ConditionMode combines this dependency's predicates, not its readiness
|
|
39028
|
+
* gate or the stage's other dependencies. Empty defaults to all. */
|
|
39029
|
+
conditionMode?: components["schemas"]["models.ConditionMode"];
|
|
39030
|
+
conditions?: components["schemas"]["models.WorkflowCondition"][];
|
|
38866
39031
|
/** @description Operation is the id of the operation whose presence gates this need: it must
|
|
38867
39032
|
* be available on the run — present in Inputs or Results — before the need's
|
|
38868
39033
|
* Condition is evaluated. It is an operation id, not necessarily a deployed
|
|
@@ -39738,9 +39903,24 @@ export interface components {
|
|
|
39738
39903
|
resultSchema?: string;
|
|
39739
39904
|
url?: string;
|
|
39740
39905
|
};
|
|
39906
|
+
"models.WorkflowCondition": {
|
|
39907
|
+
match?: components["schemas"]["models.WorkflowPredicateSet"];
|
|
39908
|
+
/** @description see the ConditionOp consts */
|
|
39909
|
+
op?: components["schemas"]["models.ConditionOp"];
|
|
39910
|
+
/** @description absolute dot-path into the run root (see type doc) */
|
|
39911
|
+
path?: string;
|
|
39912
|
+
/** @description comparison operand (unused for ConditionOpExists) */
|
|
39913
|
+
value?: unknown;
|
|
39914
|
+
};
|
|
39915
|
+
"models.WorkflowConditionSet": {
|
|
39916
|
+
conditionMode?: components["schemas"]["models.ConditionMode"];
|
|
39917
|
+
conditions?: components["schemas"]["models.WorkflowCondition"][];
|
|
39918
|
+
};
|
|
39741
39919
|
"models.WorkflowDevice": {
|
|
39742
39920
|
deviceKey?: string;
|
|
39743
39921
|
deviceName?: string;
|
|
39922
|
+
/** @description effective group memberships resolved by the caller, never an authorization grant */
|
|
39923
|
+
groupIds?: string[];
|
|
39744
39924
|
/** @description media VideoProvider: where the media is served from */
|
|
39745
39925
|
provider?: string;
|
|
39746
39926
|
/** @description site ids the device is linked to (Device.SiteIds); a gate value, matchable with contains/in/exists/matches */
|
|
@@ -39754,17 +39934,14 @@ export interface components {
|
|
|
39754
39934
|
siteIds?: string[];
|
|
39755
39935
|
};
|
|
39756
39936
|
"models.WorkflowEdge": {
|
|
39757
|
-
/** @description Condition is the
|
|
39758
|
-
*
|
|
39759
|
-
* authoring source of truth for routing: this Condition is what compiles into
|
|
39760
|
-
* the target stage's Needs[].Condition (see WorkflowStage.Needs), which is the
|
|
39761
|
-
* derived runtime projection. */
|
|
39937
|
+
/** @description Condition is the legacy single-predicate form. Do not combine it with
|
|
39938
|
+
* Conditions; ConditionSet reads it as a one-item all group. */
|
|
39762
39939
|
condition?: components["schemas"]["models.StageCondition"];
|
|
39940
|
+
conditionMode?: components["schemas"]["models.ConditionMode"];
|
|
39941
|
+
conditions?: components["schemas"]["models.WorkflowCondition"][];
|
|
39763
39942
|
id?: string;
|
|
39764
39943
|
source?: string;
|
|
39765
|
-
/** @description SourcePort
|
|
39766
|
-
* (see WorkflowStage.Outputs) this edge reads; Condition is evaluated against
|
|
39767
|
-
* that output's result. Empty means the stage's single implicit default port. */
|
|
39944
|
+
/** @description SourcePort names a source port for the editor. It does not rebase paths. */
|
|
39768
39945
|
sourcePort?: string;
|
|
39769
39946
|
target?: string;
|
|
39770
39947
|
/** @description TargetPort optionally selects which of the target stage's declared Inputs
|
|
@@ -39821,6 +39998,15 @@ export interface components {
|
|
|
39821
39998
|
};
|
|
39822
39999
|
/** @enum {string} */
|
|
39823
40000
|
"models.WorkflowNodeType": "stage" | "device";
|
|
40001
|
+
"models.WorkflowPredicate": {
|
|
40002
|
+
op?: components["schemas"]["models.ConditionOp"];
|
|
40003
|
+
path?: string;
|
|
40004
|
+
value?: unknown;
|
|
40005
|
+
};
|
|
40006
|
+
"models.WorkflowPredicateSet": {
|
|
40007
|
+
conditionMode?: components["schemas"]["models.ConditionMode"];
|
|
40008
|
+
conditions?: components["schemas"]["models.WorkflowPredicate"][];
|
|
40009
|
+
};
|
|
39824
40010
|
"models.WorkflowResult": {
|
|
39825
40011
|
payload?: number[];
|
|
39826
40012
|
result?: {
|
|
@@ -39835,6 +40021,20 @@ export interface components {
|
|
|
39835
40021
|
* media is stored/served from). Copied from the recording at hand-off time.
|
|
39836
40022
|
* Wire-only. */
|
|
39837
40023
|
device?: components["schemas"]["models.WorkflowDevice"];
|
|
40024
|
+
deviceKey?: string;
|
|
40025
|
+
deviceName?: string;
|
|
40026
|
+
dispatched?: number;
|
|
40027
|
+
/** @description DispatchedOperations are the operation ids the engine has enqueued for this
|
|
40028
|
+
* run — the always-stages seeded at open plus any conditional stages that
|
|
40029
|
+
* matched. Every entry is a deployed stage's operation (only stages are ever
|
|
40030
|
+
* dispatched), so here stage and operation coincide; the field is named by
|
|
40031
|
+
* operation because the stored value is the operation id and to stay
|
|
40032
|
+
* symmetric with ResolvedOperations. Written idempotently via $addToSet. */
|
|
40033
|
+
dispatchedOperations?: string[];
|
|
40034
|
+
durationMs?: number;
|
|
40035
|
+
end?: number;
|
|
40036
|
+
endedAtMs?: number;
|
|
40037
|
+
hasResults?: boolean;
|
|
39838
40038
|
/** @description Inputs is the immutable start context the run opens with, keyed by the
|
|
39839
40039
|
* upstream operation that produced it (e.g. "classify" → the classification
|
|
39840
40040
|
* result). Conditions and stages read upstream context from here; it is set
|
|
@@ -39848,6 +40048,7 @@ export interface components {
|
|
|
39848
40048
|
* run state is correlated by Id/RunId because several workflows and manual
|
|
39849
40049
|
* re-runs may execute over the same key. */
|
|
39850
40050
|
key?: string;
|
|
40051
|
+
mediaId?: string;
|
|
39851
40052
|
/** @description Operation marks the message's role on the workflows queue (wire-only):
|
|
39852
40053
|
* - "event": a fresh run hand-off from analysis. It opens the run and
|
|
39853
40054
|
* carries the start context in Inputs (e.g. the classification result).
|
|
@@ -39858,6 +40059,7 @@ export interface components {
|
|
|
39858
40059
|
* a dispatch goes to the worker's own queue — so the engine never has to
|
|
39859
40060
|
* disambiguate a dispatch from a result. */
|
|
39860
40061
|
operation?: string;
|
|
40062
|
+
operations?: components["schemas"]["models.WorkflowRunOperationStatus"][];
|
|
39861
40063
|
/** @description Origin records how this run was opened — the run-side counterpart of the
|
|
39862
40064
|
* Workflow's trigger Type. An automatic run was teed off the pipeline by
|
|
39863
40065
|
* analysis for a matching recording; a manual run was launched on demand by a
|
|
@@ -39903,6 +40105,17 @@ export interface components {
|
|
|
39903
40105
|
* something a worker has to echo back, so it is not part of the stage
|
|
39904
40106
|
* contract. */
|
|
39905
40107
|
recordingTimestamp?: number;
|
|
40108
|
+
resolved?: number;
|
|
40109
|
+
/** @description ResolvedOperations are the operation ids whose stage results the engine has
|
|
40110
|
+
* observed (each worker hands its result back under its operation). With
|
|
40111
|
+
* DispatchedOperations it drives finalization — the run ends once every
|
|
40112
|
+
* dispatched operation is resolved — and idempotency.
|
|
40113
|
+
*
|
|
40114
|
+
* This is narrower than the set a need's gate checks: gate readiness is
|
|
40115
|
+
* evaluated against the run's available operations — the keys of Inputs ∪
|
|
40116
|
+
* Results, which also include the trigger analysis hands off (e.g. "classify")
|
|
40117
|
+
* that seeds Inputs but never resolves as a stage and so never appears here. */
|
|
40118
|
+
resolvedOperations?: string[];
|
|
39906
40119
|
/** @description Results is the run's accumulated stage outputs, keyed by operation. Each
|
|
39907
40120
|
* stage worker writes its result under its operation on the way back, and
|
|
39908
40121
|
* conditions / downstream stages read upstream outputs from here. It grows
|
|
@@ -39939,6 +40152,11 @@ export interface components {
|
|
|
39939
40152
|
* the run. Empty for automatic runs. It generalises to any run-grouping handle
|
|
39940
40153
|
* (a case id today; a temporal device-series id is a forward-looking twin). */
|
|
39941
40154
|
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. */
|
|
40159
|
+
stageExecutions?: components["schemas"]["models.WorkflowRunStageExecution"][];
|
|
39942
40160
|
/** @description Stages is the run's self-describing routing: the compiled stage set of the
|
|
39943
40161
|
* workflow this run executes (the output of Workflow.CompileStages) embedded
|
|
39944
40162
|
* on the hand-off so the engine can dispatch a workflow it does not hold in
|
|
@@ -39951,6 +40169,16 @@ export interface components {
|
|
|
39951
40169
|
* persisted so the return path — a stage result reopening the run on any
|
|
39952
40170
|
* replica — resolves the same routing without re-fetching the definition. */
|
|
39953
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. */
|
|
40174
|
+
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
|
+
/** @description The fields below are API read projections. They are derived or joined by
|
|
40180
|
+
* the service after loading a run and never persist back into workflow state. */
|
|
40181
|
+
state?: components["schemas"]["models.WorkflowRunState"];
|
|
39954
40182
|
/** @description Storage carries the credentials a dispatched stage worker needs to fetch
|
|
39955
40183
|
* the media (global Kerberos Storage plus any resolved per-recording vault
|
|
39956
40184
|
* override). It is populated by the engine only on the engine→worker
|
|
@@ -39958,7 +40186,8 @@ export interface components {
|
|
|
39958
40186
|
* result. `bson:"-"` is load-bearing: credentials never sit in the run's
|
|
39959
40187
|
* persisted state. */
|
|
39960
40188
|
storage?: components["schemas"]["models.WorkflowStorage"];
|
|
39961
|
-
/** @description TraceId continues the distributed trace across the workflow tail
|
|
40189
|
+
/** @description TraceId continues the distributed trace across the workflow tail and lets
|
|
40190
|
+
* authorized detail surfaces correlate the durable run with telemetry. */
|
|
39962
40191
|
traceId?: string;
|
|
39963
40192
|
/** @description User is the curated, secret-free account context a run needs: the
|
|
39964
40193
|
* organisation that owns the recording (for logging/scoping) and the account
|
|
@@ -39979,8 +40208,27 @@ export interface components {
|
|
|
39979
40208
|
};
|
|
39980
40209
|
/** @enum {string} */
|
|
39981
40210
|
"models.WorkflowRunOperationState": "dispatched" | "resolved";
|
|
40211
|
+
"models.WorkflowRunOperationStatus": {
|
|
40212
|
+
operation?: string;
|
|
40213
|
+
status?: components["schemas"]["models.WorkflowRunOperationState"];
|
|
40214
|
+
};
|
|
39982
40215
|
/** @enum {string} */
|
|
39983
40216
|
"models.WorkflowRunOrigin": "automatic" | "manual";
|
|
40217
|
+
"models.WorkflowRunStageExecution": {
|
|
40218
|
+
dependencies?: string[];
|
|
40219
|
+
dispatchAttempts?: number;
|
|
40220
|
+
dispatchedAtMs?: number;
|
|
40221
|
+
durationMs?: number;
|
|
40222
|
+
firstDispatchAttemptAtMs?: number;
|
|
40223
|
+
lastDispatchAttemptAtMs?: number;
|
|
40224
|
+
lastDispatchErrorCode?: string;
|
|
40225
|
+
name?: string;
|
|
40226
|
+
operation?: string;
|
|
40227
|
+
resolvedAtMs?: number;
|
|
40228
|
+
state?: components["schemas"]["models.WorkflowRunStageState"];
|
|
40229
|
+
};
|
|
40230
|
+
/** @enum {string} */
|
|
40231
|
+
"models.WorkflowRunStageState": "waiting" | "retrying" | "dispatched" | "resolved" | "dispatchFailed" | "timedOut" | "skipped";
|
|
39984
40232
|
/** @enum {string} */
|
|
39985
40233
|
"models.WorkflowRunState": "running" | "completed" | "noResult";
|
|
39986
40234
|
/** @enum {string} */
|
|
@@ -40078,14 +40326,11 @@ export interface components {
|
|
|
40078
40326
|
projectId?: string;
|
|
40079
40327
|
};
|
|
40080
40328
|
"models.WorkflowTrigger": {
|
|
40081
|
-
/** @description Conditions
|
|
40082
|
-
*
|
|
40083
|
-
*
|
|
40084
|
-
|
|
40085
|
-
|
|
40086
|
-
* way they do to stages. An empty list adds no constraint. See
|
|
40087
|
-
* CompiledConditions and StageCondition. */
|
|
40088
|
-
conditions?: components["schemas"]["models.StageCondition"][];
|
|
40329
|
+
/** @description Conditions read the pre-run envelope, including already available,
|
|
40330
|
+
* sanitized inputs, never future results. Scope and schedule remain mandatory
|
|
40331
|
+
* even when this group's ConditionMode is any. */
|
|
40332
|
+
conditionMode?: components["schemas"]["models.ConditionMode"];
|
|
40333
|
+
conditions?: components["schemas"]["models.WorkflowCondition"][];
|
|
40089
40334
|
/** @description Devices restricts the automatic trigger to recordings from the listed
|
|
40090
40335
|
* devices, matched by DeviceKey.Key. An empty list means every device is
|
|
40091
40336
|
* eligible. Mirrors the alert device selection (see CustomAlert.DevicesList).
|
|
@@ -40096,6 +40341,11 @@ export interface components {
|
|
|
40096
40341
|
* device scoping and stage matching stay consistent. Author richer scoping
|
|
40097
40342
|
* (a device-name pattern, an organisation check, …) with Conditions. */
|
|
40098
40343
|
devices?: components["schemas"]["models.DeviceKey"][];
|
|
40344
|
+
groupIds?: string[];
|
|
40345
|
+
/** @description SiteIds and GroupIds are stable membership IDs resolved by the caller, not
|
|
40346
|
+
* names or authorization grants. Selectors are OR within each category and
|
|
40347
|
+
* AND between populated categories. */
|
|
40348
|
+
siteIds?: string[];
|
|
40099
40349
|
/** @description Surfaces lists the UI surfaces a manual trigger can be launched from
|
|
40100
40350
|
* (manual). Ignored for automatic triggers. */
|
|
40101
40351
|
surfaces?: components["schemas"]["models.WorkflowTriggerSurface"][];
|
|
@@ -40430,6 +40680,8 @@ export declare namespace models {
|
|
|
40430
40680
|
type WeeklySchedule = components['schemas']['models.WeeklySchedule'];
|
|
40431
40681
|
type Workflow = components['schemas']['models.Workflow'];
|
|
40432
40682
|
type WorkflowCallback = components['schemas']['models.WorkflowCallback'];
|
|
40683
|
+
type WorkflowCondition = components['schemas']['models.WorkflowCondition'];
|
|
40684
|
+
type WorkflowConditionSet = components['schemas']['models.WorkflowConditionSet'];
|
|
40433
40685
|
type WorkflowDevice = components['schemas']['models.WorkflowDevice'];
|
|
40434
40686
|
type WorkflowDeviceReference = components['schemas']['models.WorkflowDeviceReference'];
|
|
40435
40687
|
type WorkflowEdge = components['schemas']['models.WorkflowEdge'];
|
|
@@ -40437,8 +40689,12 @@ export declare namespace models {
|
|
|
40437
40689
|
type WorkflowInvocationWorkflow = components['schemas']['models.WorkflowInvocationWorkflow'];
|
|
40438
40690
|
type WorkflowMediaReference = components['schemas']['models.WorkflowMediaReference'];
|
|
40439
40691
|
type WorkflowNode = components['schemas']['models.WorkflowNode'];
|
|
40692
|
+
type WorkflowPredicate = components['schemas']['models.WorkflowPredicate'];
|
|
40693
|
+
type WorkflowPredicateSet = components['schemas']['models.WorkflowPredicateSet'];
|
|
40440
40694
|
type WorkflowResult = components['schemas']['models.WorkflowResult'];
|
|
40441
40695
|
type WorkflowRun = components['schemas']['models.WorkflowRun'];
|
|
40696
|
+
type WorkflowRunOperationStatus = components['schemas']['models.WorkflowRunOperationStatus'];
|
|
40697
|
+
type WorkflowRunStageExecution = components['schemas']['models.WorkflowRunStageExecution'];
|
|
40442
40698
|
type WorkflowStage = components['schemas']['models.WorkflowStage'];
|
|
40443
40699
|
type WorkflowStageReference = components['schemas']['models.WorkflowStageReference'];
|
|
40444
40700
|
type WorkflowStorage = components['schemas']['models.WorkflowStorage'];
|
|
@@ -40909,7 +41165,5 @@ export declare namespace api {
|
|
|
40909
41165
|
type WarningResponse = components['schemas']['api.WarningResponse'];
|
|
40910
41166
|
type WorkflowFilter = components['schemas']['api.WorkflowFilter'];
|
|
40911
41167
|
type WorkflowRunFilter = components['schemas']['api.WorkflowRunFilter'];
|
|
40912
|
-
type WorkflowRunOperationStatus = components['schemas']['api.WorkflowRunOperationStatus'];
|
|
40913
|
-
type WorkflowRunStatus = components['schemas']['api.WorkflowRunStatus'];
|
|
40914
41168
|
type WorkflowRunStatusSummary = components['schemas']['api.WorkflowRunStatusSummary'];
|
|
40915
41169
|
}
|