@stellaris/metrics-shared 0.1.10 → 0.1.12
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/bff-service.d.ts +8 -6
- package/package.json +1 -1
- package/schemas/rpa-event.ts +1 -1
- package/schemas/rpa-session.ts +12 -6
package/bff-service.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
3
|
export type ReportStatus = "draft" | "published" | "archived";
|
|
4
|
+
export type RpaStage = "queued" | "executing" | "success" | "failed";
|
|
5
|
+
export type RpaActionEventType = "reply-message" | "change-cs-status";
|
|
4
6
|
declare const app: import("hono/hono-base").HonoBase<{}, {
|
|
5
7
|
"/health": {
|
|
6
8
|
$get: {
|
|
@@ -910,7 +912,7 @@ declare const app: import("hono/hono-base").HonoBase<{}, {
|
|
|
910
912
|
aiAgentConfigId: number;
|
|
911
913
|
host: string;
|
|
912
914
|
platformCode: string;
|
|
913
|
-
tbUid
|
|
915
|
+
tbUid: string;
|
|
914
916
|
msgId?: string | undefined;
|
|
915
917
|
procState?: string | undefined;
|
|
916
918
|
transferReason?: string | undefined;
|
|
@@ -2182,7 +2184,7 @@ declare const app: import("hono/hono-base").HonoBase<{}, {
|
|
|
2182
2184
|
aiAgentConfigId: number;
|
|
2183
2185
|
host: string;
|
|
2184
2186
|
platformCode: string;
|
|
2185
|
-
tbUid
|
|
2187
|
+
tbUid: string;
|
|
2186
2188
|
msgId?: string | undefined;
|
|
2187
2189
|
procState?: string | undefined;
|
|
2188
2190
|
transferReason?: string | undefined;
|
|
@@ -2255,7 +2257,7 @@ declare const app: import("hono/hono-base").HonoBase<{}, {
|
|
|
2255
2257
|
aiAgentConfigId: number;
|
|
2256
2258
|
host: string;
|
|
2257
2259
|
platformCode: string;
|
|
2258
|
-
tbUid
|
|
2260
|
+
tbUid: string;
|
|
2259
2261
|
msgId?: string | undefined;
|
|
2260
2262
|
procState?: string | undefined;
|
|
2261
2263
|
transferReason?: string | undefined;
|
|
@@ -2340,12 +2342,12 @@ declare const app: import("hono/hono-base").HonoBase<{}, {
|
|
|
2340
2342
|
userId: string;
|
|
2341
2343
|
status: "active";
|
|
2342
2344
|
lastEventType: string;
|
|
2343
|
-
lastStage:
|
|
2345
|
+
lastStage: RpaStage;
|
|
2344
2346
|
lastEventSeq: number;
|
|
2345
2347
|
lastEventAt: number;
|
|
2346
2348
|
lastMessage?: string | null | undefined;
|
|
2347
|
-
lastActionType?:
|
|
2348
|
-
lastActionStage?:
|
|
2349
|
+
lastActionType?: RpaActionEventType | undefined;
|
|
2350
|
+
lastActionStage?: RpaStage | undefined;
|
|
2349
2351
|
lastActionSeq?: number | undefined;
|
|
2350
2352
|
lastActionAt?: number | undefined;
|
|
2351
2353
|
lastActionMessage?: string | null | undefined;
|
package/package.json
CHANGED
package/schemas/rpa-event.ts
CHANGED
|
@@ -40,7 +40,7 @@ export const replyMessageEventSchema = rpaEventBaseSchema.extend({
|
|
|
40
40
|
aiAgentConfigId: z.number(),
|
|
41
41
|
host: z.string(),
|
|
42
42
|
platformCode: z.string(),
|
|
43
|
-
tbUid: z.string()
|
|
43
|
+
tbUid: z.string(),
|
|
44
44
|
msgId: z.string().optional(),
|
|
45
45
|
procState: z.string().optional(),
|
|
46
46
|
transferReason: z.string().optional(),
|
package/schemas/rpa-session.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export type RpaStage = "queued" | "executing" | "success" | "failed";
|
|
2
|
+
|
|
3
|
+
export type RpaActionEventType = "reply-message" | "change-cs-status";
|
|
4
|
+
|
|
5
|
+
export type AgentStatus = "online" | "suspended" | "offline";
|
|
6
|
+
|
|
1
7
|
export type SessionUpdateMessage =
|
|
2
8
|
| {
|
|
3
9
|
type: "upsert";
|
|
@@ -34,12 +40,12 @@ export type RpaSession = {
|
|
|
34
40
|
userId: string;
|
|
35
41
|
status: "active";
|
|
36
42
|
lastEventType: string;
|
|
37
|
-
lastStage:
|
|
43
|
+
lastStage: RpaStage;
|
|
38
44
|
lastEventSeq: number;
|
|
39
45
|
lastEventAt: number;
|
|
40
46
|
lastMessage?: string | null;
|
|
41
|
-
lastActionType?:
|
|
42
|
-
lastActionStage?:
|
|
47
|
+
lastActionType?: RpaActionEventType;
|
|
48
|
+
lastActionStage?: RpaStage;
|
|
43
49
|
lastActionSeq?: number;
|
|
44
50
|
lastActionAt?: number;
|
|
45
51
|
lastActionMessage?: string | null;
|
|
@@ -49,8 +55,8 @@ export type RpaSession = {
|
|
|
49
55
|
export type RpaAction = {
|
|
50
56
|
actionKey: string;
|
|
51
57
|
actionId?: string | null;
|
|
52
|
-
eventType:
|
|
53
|
-
stage:
|
|
58
|
+
eventType: RpaActionEventType;
|
|
59
|
+
stage: RpaStage;
|
|
54
60
|
message?: string | null;
|
|
55
61
|
timestamp: number;
|
|
56
62
|
sequence: number;
|
|
@@ -62,5 +68,5 @@ export type RpaAction = {
|
|
|
62
68
|
export type SessionIdentity = {
|
|
63
69
|
platform: string;
|
|
64
70
|
uid: string;
|
|
65
|
-
userId
|
|
71
|
+
userId: string;
|
|
66
72
|
};
|