@uug-ai/models 1.6.9 → 1.6.11

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 +279 -3
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -20049,6 +20049,162 @@ export interface paths {
20049
20049
  patch?: never;
20050
20050
  trace?: never;
20051
20051
  };
20052
+ "/internal/runworkflowerrorresponse": {
20053
+ parameters: {
20054
+ query?: never;
20055
+ header?: never;
20056
+ path?: never;
20057
+ cookie?: never;
20058
+ };
20059
+ /**
20060
+ * Get RunWorkflowErrorResponse (schema generation only)
20061
+ * @description Internal endpoint used only to ensure RunWorkflowErrorResponse schema is generated in OpenAPI spec
20062
+ */
20063
+ get: {
20064
+ parameters: {
20065
+ query?: never;
20066
+ header?: never;
20067
+ path?: never;
20068
+ cookie?: never;
20069
+ };
20070
+ requestBody?: never;
20071
+ responses: {
20072
+ /** @description OK */
20073
+ 200: {
20074
+ headers: {
20075
+ [name: string]: unknown;
20076
+ };
20077
+ content: {
20078
+ "application/json": components["schemas"]["api.RunWorkflowErrorResponse"];
20079
+ };
20080
+ };
20081
+ };
20082
+ };
20083
+ put?: never;
20084
+ post?: never;
20085
+ delete?: never;
20086
+ options?: never;
20087
+ head?: never;
20088
+ patch?: never;
20089
+ trace?: never;
20090
+ };
20091
+ "/internal/runworkflowrequest": {
20092
+ parameters: {
20093
+ query?: never;
20094
+ header?: never;
20095
+ path?: never;
20096
+ cookie?: never;
20097
+ };
20098
+ /**
20099
+ * Get RunWorkflowRequest (schema generation only)
20100
+ * @description Internal endpoint used only to ensure RunWorkflowRequest schema is generated in OpenAPI spec
20101
+ */
20102
+ get: {
20103
+ parameters: {
20104
+ query?: never;
20105
+ header?: never;
20106
+ path?: never;
20107
+ cookie?: never;
20108
+ };
20109
+ requestBody?: never;
20110
+ responses: {
20111
+ /** @description OK */
20112
+ 200: {
20113
+ headers: {
20114
+ [name: string]: unknown;
20115
+ };
20116
+ content: {
20117
+ "application/json": components["schemas"]["api.RunWorkflowRequest"];
20118
+ };
20119
+ };
20120
+ };
20121
+ };
20122
+ put?: never;
20123
+ post?: never;
20124
+ delete?: never;
20125
+ options?: never;
20126
+ head?: never;
20127
+ patch?: never;
20128
+ trace?: never;
20129
+ };
20130
+ "/internal/runworkflowresponse": {
20131
+ parameters: {
20132
+ query?: never;
20133
+ header?: never;
20134
+ path?: never;
20135
+ cookie?: never;
20136
+ };
20137
+ /**
20138
+ * Get RunWorkflowResponse (schema generation only)
20139
+ * @description Internal endpoint used only to ensure RunWorkflowResponse schema is generated in OpenAPI spec
20140
+ */
20141
+ get: {
20142
+ parameters: {
20143
+ query?: never;
20144
+ header?: never;
20145
+ path?: never;
20146
+ cookie?: never;
20147
+ };
20148
+ requestBody?: never;
20149
+ responses: {
20150
+ /** @description OK */
20151
+ 200: {
20152
+ headers: {
20153
+ [name: string]: unknown;
20154
+ };
20155
+ content: {
20156
+ "application/json": components["schemas"]["api.RunWorkflowResponse"];
20157
+ };
20158
+ };
20159
+ };
20160
+ };
20161
+ put?: never;
20162
+ post?: never;
20163
+ delete?: never;
20164
+ options?: never;
20165
+ head?: never;
20166
+ patch?: never;
20167
+ trace?: never;
20168
+ };
20169
+ "/internal/runworkflowsuccessresponse": {
20170
+ parameters: {
20171
+ query?: never;
20172
+ header?: never;
20173
+ path?: never;
20174
+ cookie?: never;
20175
+ };
20176
+ /**
20177
+ * Get RunWorkflowSuccessResponse (schema generation only)
20178
+ * @description Internal endpoint used only to ensure RunWorkflowSuccessResponse schema is generated in OpenAPI spec
20179
+ */
20180
+ get: {
20181
+ parameters: {
20182
+ query?: never;
20183
+ header?: never;
20184
+ path?: never;
20185
+ cookie?: never;
20186
+ };
20187
+ requestBody?: never;
20188
+ responses: {
20189
+ /** @description OK */
20190
+ 200: {
20191
+ headers: {
20192
+ [name: string]: unknown;
20193
+ };
20194
+ content: {
20195
+ "application/json": components["schemas"]["api.RunWorkflowSuccessResponse"];
20196
+ };
20197
+ };
20198
+ };
20199
+ };
20200
+ put?: never;
20201
+ post?: never;
20202
+ delete?: never;
20203
+ options?: never;
20204
+ head?: never;
20205
+ patch?: never;
20206
+ trace?: never;
20207
+ };
20052
20208
  "/internal/savefaceredactionerrorresponse": {
20053
20209
  parameters: {
20054
20210
  query?: never;
@@ -25548,6 +25704,45 @@ export interface paths {
25548
25704
  patch?: never;
25549
25705
  trace?: never;
25550
25706
  };
25707
+ "/internal/workflowfilter": {
25708
+ parameters: {
25709
+ query?: never;
25710
+ header?: never;
25711
+ path?: never;
25712
+ cookie?: never;
25713
+ };
25714
+ /**
25715
+ * Get WorkflowFilter (schema generation only)
25716
+ * @description Internal endpoint used only to ensure WorkflowFilter schema is generated in OpenAPI spec
25717
+ */
25718
+ get: {
25719
+ parameters: {
25720
+ query?: never;
25721
+ header?: never;
25722
+ path?: never;
25723
+ cookie?: never;
25724
+ };
25725
+ requestBody?: never;
25726
+ responses: {
25727
+ /** @description OK */
25728
+ 200: {
25729
+ headers: {
25730
+ [name: string]: unknown;
25731
+ };
25732
+ content: {
25733
+ "application/json": components["schemas"]["api.WorkflowFilter"];
25734
+ };
25735
+ };
25736
+ };
25737
+ };
25738
+ put?: never;
25739
+ post?: never;
25740
+ delete?: never;
25741
+ options?: never;
25742
+ head?: never;
25743
+ patch?: never;
25744
+ trace?: never;
25745
+ };
25551
25746
  "/internal/workflownode": {
25552
25747
  parameters: {
25553
25748
  query?: never;
@@ -28415,7 +28610,9 @@ export interface components {
28415
28610
  /** @description Additional metadata about the error, such as timestamps and request IDs */
28416
28611
  metadata?: components["schemas"]["api.Metadata"];
28417
28612
  };
28418
- "api.GetWorkflowsRequest": Record<string, never>;
28613
+ "api.GetWorkflowsRequest": {
28614
+ filter?: components["schemas"]["api.WorkflowFilter"];
28615
+ };
28419
28616
  "api.GetWorkflowsResponse": {
28420
28617
  workflows?: components["schemas"]["models.Workflow"][];
28421
28618
  };
@@ -28835,6 +29032,39 @@ export interface components {
28835
29032
  /** @description Additional metadata about the response, such as timestamps and request IDs */
28836
29033
  metadata?: components["schemas"]["api.Metadata"];
28837
29034
  };
29035
+ "api.RunWorkflowErrorResponse": {
29036
+ /** @description Application-specific error code */
29037
+ applicationStatusCode?: string;
29038
+ /** @description Entity-specific error code */
29039
+ entityStatusCode?: string;
29040
+ /** @description HTTP status code for the error */
29041
+ httpStatusCode?: number;
29042
+ /** @description Error message describing the issue */
29043
+ message?: string;
29044
+ /** @description Additional metadata about the error, such as timestamps and request IDs */
29045
+ metadata?: components["schemas"]["api.Metadata"];
29046
+ };
29047
+ "api.RunWorkflowRequest": {
29048
+ mediaIds?: string[];
29049
+ workflowId?: string;
29050
+ };
29051
+ "api.RunWorkflowResponse": {
29052
+ count?: number;
29053
+ runIds?: string[];
29054
+ };
29055
+ "api.RunWorkflowSuccessResponse": {
29056
+ /** @description Application-specific status code */
29057
+ applicationStatusCode?: string;
29058
+ data?: components["schemas"]["api.RunWorkflowResponse"];
29059
+ /** @description Entity-specific status code */
29060
+ entityStatusCode?: string;
29061
+ /** @description HTTP status code for the response */
29062
+ httpStatusCode?: number;
29063
+ /** @description Success message describing the operation */
29064
+ message?: string;
29065
+ /** @description Additional metadata about the response, such as timestamps and request IDs */
29066
+ metadata?: components["schemas"]["api.Metadata"];
29067
+ };
28838
29068
  "api.SaveFaceRedactionErrorResponse": {
28839
29069
  /** @description Application-specific error code */
28840
29070
  applicationStatusCode?: string;
@@ -29501,6 +29731,13 @@ export interface components {
29501
29731
  /** @description Additional metadata about the error, such as timestamps and request IDs */
29502
29732
  metadata?: components["schemas"]["api.Metadata"];
29503
29733
  };
29734
+ "api.WorkflowFilter": {
29735
+ deviceKeys?: string[];
29736
+ enabled?: boolean;
29737
+ source?: components["schemas"]["models.WorkflowSource"];
29738
+ surface?: components["schemas"]["models.WorkflowTriggerSurface"];
29739
+ triggerType?: components["schemas"]["models.WorkflowTriggerType"];
29740
+ };
29504
29741
  /** @enum {integer} */
29505
29742
  "models.AccessLevel": 0 | 1 | 2 | 3;
29506
29743
  "models.AccessToken": {
@@ -30189,7 +30426,7 @@ export interface components {
30189
30426
  website?: string;
30190
30427
  };
30191
30428
  /** @enum {string} */
30192
- "models.ConditionOp": "eq" | "ne" | "contains" | "in" | "exists" | "gt" | "gte" | "lt" | "lte";
30429
+ "models.ConditionOp": "eq" | "ne" | "contains" | "in" | "exists" | "matches" | "gt" | "gte" | "lt" | "lte";
30193
30430
  "models.Contact": {
30194
30431
  email?: string;
30195
30432
  name?: string;
@@ -32790,6 +33027,8 @@ export interface components {
32790
33027
  deviceName?: string;
32791
33028
  /** @description media VideoProvider: where the media is served from */
32792
33029
  provider?: string;
33030
+ /** @description site ids the device is linked to (Device.SiteIds); a gate value, matchable with contains/in/exists/matches */
33031
+ siteIds?: string[];
32793
33032
  /** @description media StorageSolution: where the media is stored */
32794
33033
  storageSolution?: string;
32795
33034
  };
@@ -32972,6 +33211,20 @@ export interface components {
32972
33211
  * (a case id today; a temporal device-series id is a forward-looking twin).
32973
33212
  */
32974
33213
  sourceRef?: string;
33214
+ /**
33215
+ * @description Stages is the run's self-describing routing: the compiled stage set of the
33216
+ * workflow this run executes (the output of Workflow.CompileStages) embedded
33217
+ * on the hand-off so the engine can dispatch a workflow it does not hold in
33218
+ * its boot-loaded config registry — a user/DB workflow launched manually.
33219
+ * Only routing fields are meaningful here (Operation, Dispatch, Needs,
33220
+ * NeedsMode; Queue when the source workflow set one); the engine compiles
33221
+ * these into the same validated registry a config workflow gets. Empty is the
33222
+ * legacy/config path: the engine falls back to the config registry keyed by
33223
+ * WorkflowId, so config workflows and older hand-offs are unchanged. It is
33224
+ * persisted so the return path — a stage result reopening the run on any
33225
+ * replica — resolves the same routing without re-fetching the definition.
33226
+ */
33227
+ stages?: components["schemas"]["models.WorkflowStage"][];
32975
33228
  /**
32976
33229
  * @description Storage carries the credentials a dispatched stage worker needs to fetch
32977
33230
  * the media (global Kerberos Storage plus any resolved per-recording vault
@@ -33113,10 +33366,26 @@ export interface components {
33113
33366
  vaultOverrideUri?: string;
33114
33367
  };
33115
33368
  "models.WorkflowTrigger": {
33369
+ /**
33370
+ * @description Conditions further scopes the automatic trigger with the same structured
33371
+ * (path, op, value) predicates a stage uses, evaluated against the pre-run
33372
+ * envelope (device.*, user.*, and the identity scalars known when a recording
33373
+ * arrives). All conditions must hold (AND) and they combine with the compiled
33374
+ * Devices shorthand, so `matches`, `in`, `eq`, … apply to device matching the
33375
+ * way they do to stages. An empty list adds no constraint. See
33376
+ * CompiledConditions and StageCondition.
33377
+ */
33378
+ conditions?: components["schemas"]["models.StageCondition"][];
33116
33379
  /**
33117
33380
  * @description Devices restricts the automatic trigger to recordings from the listed
33118
33381
  * devices, matched by DeviceKey.Key. An empty list means every device is
33119
33382
  * eligible. Mirrors the alert device selection (see CustomAlert.DevicesList).
33383
+ *
33384
+ * It is a convenience shorthand: a non-empty list compiles (see
33385
+ * CompiledConditions) into a single StageCondition — device.deviceKey `in`
33386
+ * [keys…] — evaluated by the same operator engine stage conditions use, so
33387
+ * device scoping and stage matching stay consistent. Author richer scoping
33388
+ * (a device-name pattern, an organisation check, …) with Conditions.
33120
33389
  */
33121
33390
  devices?: components["schemas"]["models.DeviceKey"][];
33122
33391
  /**
@@ -33135,7 +33404,8 @@ export interface components {
33135
33404
  * each with its own day, time segments and IANA Timezone. An empty schedule
33136
33405
  * means any time is eligible. Reuses the alert weekly-schedule shape so the
33137
33406
  * same editor and evaluation semantics apply. The Timezone on each entry is
33138
- * the user's timezone captured when the schedule was authored.
33407
+ * the user's timezone captured when the schedule was authored. Time is not
33408
+ * path-expressible, so it stays a dedicated field rather than a condition.
33139
33409
  */
33140
33410
  weeklySchedule?: components["schemas"]["models.WeeklySchedule"][];
33141
33411
  };
@@ -33679,6 +33949,7 @@ export declare namespace api {
33679
33949
  type GetWorkflowResponse = components['schemas']['api.GetWorkflowResponse'];
33680
33950
  type GetWorkflowSuccessResponse = components['schemas']['api.GetWorkflowSuccessResponse'];
33681
33951
  type GetWorkflowsErrorResponse = components['schemas']['api.GetWorkflowsErrorResponse'];
33952
+ type GetWorkflowsRequest = components['schemas']['api.GetWorkflowsRequest'];
33682
33953
  type GetWorkflowsResponse = components['schemas']['api.GetWorkflowsResponse'];
33683
33954
  type GetWorkflowsSuccessResponse = components['schemas']['api.GetWorkflowsSuccessResponse'];
33684
33955
  type GroupFilter = components['schemas']['api.GroupFilter'];
@@ -33718,6 +33989,10 @@ export declare namespace api {
33718
33989
  type RequestTaskExportErrorResponse = components['schemas']['api.RequestTaskExportErrorResponse'];
33719
33990
  type RequestTaskExportResponse = components['schemas']['api.RequestTaskExportResponse'];
33720
33991
  type RequestTaskExportSuccessResponse = components['schemas']['api.RequestTaskExportSuccessResponse'];
33992
+ type RunWorkflowErrorResponse = components['schemas']['api.RunWorkflowErrorResponse'];
33993
+ type RunWorkflowRequest = components['schemas']['api.RunWorkflowRequest'];
33994
+ type RunWorkflowResponse = components['schemas']['api.RunWorkflowResponse'];
33995
+ type RunWorkflowSuccessResponse = components['schemas']['api.RunWorkflowSuccessResponse'];
33721
33996
  type SaveFaceRedactionErrorResponse = components['schemas']['api.SaveFaceRedactionErrorResponse'];
33722
33997
  type SaveFaceRedactionRequest = components['schemas']['api.SaveFaceRedactionRequest'];
33723
33998
  type SaveFaceRedactionResponse = components['schemas']['api.SaveFaceRedactionResponse'];
@@ -33793,4 +34068,5 @@ export declare namespace api {
33793
34068
  type UpsertStateResponse = components['schemas']['api.UpsertStateResponse'];
33794
34069
  type UpsertStateSuccessResponse = components['schemas']['api.UpsertStateSuccessResponse'];
33795
34070
  type WarningResponse = components['schemas']['api.WarningResponse'];
34071
+ type WorkflowFilter = components['schemas']['api.WorkflowFilter'];
33796
34072
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uug-ai/models",
3
- "version": "1.6.9",
3
+ "version": "1.6.11",
4
4
  "description": "TypeScript type definitions for Go models",
5
5
  "main": "dist/types.js",
6
6
  "types": "dist/types.d.ts",