@hexabot-ai/types 3.0.0-alpha.0
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/LICENSE.md +120 -0
- package/README.md +172 -0
- package/dist/cjs/analytics/index.js +18 -0
- package/dist/cjs/analytics/integration-health.js +30 -0
- package/dist/cjs/analytics/stats.js +32 -0
- package/dist/cjs/attachment/attachment.js +53 -0
- package/dist/cjs/attachment/index.js +16 -0
- package/dist/cjs/audit/audit-log.js +33 -0
- package/dist/cjs/audit/index.js +11 -0
- package/dist/cjs/channel/channel-metadata.js +15 -0
- package/dist/cjs/channel/index.js +15 -0
- package/dist/cjs/channel/source-full.js +16 -0
- package/dist/cjs/channel/source.js +25 -0
- package/dist/cjs/chat/attachment.js +32 -0
- package/dist/cjs/chat/button.js +70 -0
- package/dist/cjs/chat/index.js +87 -0
- package/dist/cjs/chat/label-group.js +22 -0
- package/dist/cjs/chat/label.js +37 -0
- package/dist/cjs/chat/message-contract.js +183 -0
- package/dist/cjs/chat/message.js +107 -0
- package/dist/cjs/chat/options.js +122 -0
- package/dist/cjs/chat/quick-reply.js +35 -0
- package/dist/cjs/chat/subscriber.js +36 -0
- package/dist/cjs/chat/thread.js +36 -0
- package/dist/cjs/cms/content-type.js +17 -0
- package/dist/cjs/cms/content.js +29 -0
- package/dist/cjs/cms/index.js +21 -0
- package/dist/cjs/cms/menu.js +36 -0
- package/dist/cjs/dummy/dummy.js +18 -0
- package/dist/cjs/dummy/index.js +12 -0
- package/dist/cjs/i18n/index.js +16 -0
- package/dist/cjs/i18n/language.js +19 -0
- package/dist/cjs/i18n/translation.js +17 -0
- package/dist/cjs/index.js +32 -0
- package/dist/cjs/setting/index.js +18 -0
- package/dist/cjs/setting/metadata.js +17 -0
- package/dist/cjs/setting/setting.js +36 -0
- package/dist/cjs/shared/aliases.js +41 -0
- package/dist/cjs/shared/base.js +14 -0
- package/dist/cjs/shared/object.js +19 -0
- package/dist/cjs/shared/preprocess.js +13 -0
- package/dist/cjs/shared/profile.js +33 -0
- package/dist/cjs/user/credential.js +26 -0
- package/dist/cjs/user/domain.js +56 -0
- package/dist/cjs/user/index.js +39 -0
- package/dist/cjs/user/model.js +24 -0
- package/dist/cjs/user/permission.js +32 -0
- package/dist/cjs/user/role.js +24 -0
- package/dist/cjs/user/user-profile-assigned.js +38 -0
- package/dist/cjs/user/user-profile.js +12 -0
- package/dist/cjs/user/user.js +44 -0
- package/dist/cjs/workflow/domain.js +44 -0
- package/dist/cjs/workflow/helpers.js +35 -0
- package/dist/cjs/workflow/index.js +40 -0
- package/dist/cjs/workflow/mcp-server.js +33 -0
- package/dist/cjs/workflow/memory-definition.js +21 -0
- package/dist/cjs/workflow/memory-record.js +44 -0
- package/dist/cjs/workflow/workflow-run.js +100 -0
- package/dist/cjs/workflow/workflow-version.js +39 -0
- package/dist/cjs/workflow/workflow.js +98 -0
- package/dist/esm/analytics/index.js +7 -0
- package/dist/esm/analytics/integration-health.js +27 -0
- package/dist/esm/analytics/stats.js +29 -0
- package/dist/esm/attachment/attachment.js +50 -0
- package/dist/esm/attachment/index.js +6 -0
- package/dist/esm/audit/audit-log.js +30 -0
- package/dist/esm/audit/index.js +6 -0
- package/dist/esm/channel/channel-metadata.js +12 -0
- package/dist/esm/channel/index.js +8 -0
- package/dist/esm/channel/source-full.js +13 -0
- package/dist/esm/channel/source.js +22 -0
- package/dist/esm/chat/attachment.js +29 -0
- package/dist/esm/chat/button.js +67 -0
- package/dist/esm/chat/index.js +15 -0
- package/dist/esm/chat/label-group.js +19 -0
- package/dist/esm/chat/label.js +34 -0
- package/dist/esm/chat/message-contract.js +180 -0
- package/dist/esm/chat/message.js +104 -0
- package/dist/esm/chat/options.js +119 -0
- package/dist/esm/chat/quick-reply.js +32 -0
- package/dist/esm/chat/subscriber.js +33 -0
- package/dist/esm/chat/thread.js +33 -0
- package/dist/esm/cms/content-type.js +14 -0
- package/dist/esm/cms/content.js +26 -0
- package/dist/esm/cms/index.js +8 -0
- package/dist/esm/cms/menu.js +33 -0
- package/dist/esm/dummy/dummy.js +15 -0
- package/dist/esm/dummy/index.js +6 -0
- package/dist/esm/i18n/index.js +7 -0
- package/dist/esm/i18n/language.js +16 -0
- package/dist/esm/i18n/translation.js +14 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/setting/index.js +7 -0
- package/dist/esm/setting/metadata.js +14 -0
- package/dist/esm/setting/setting.js +33 -0
- package/dist/esm/shared/aliases.js +35 -0
- package/dist/esm/shared/base.js +11 -0
- package/dist/esm/shared/object.js +14 -0
- package/dist/esm/shared/preprocess.js +9 -0
- package/dist/esm/shared/profile.js +30 -0
- package/dist/esm/user/credential.js +23 -0
- package/dist/esm/user/domain.js +53 -0
- package/dist/esm/user/index.js +13 -0
- package/dist/esm/user/model.js +21 -0
- package/dist/esm/user/permission.js +29 -0
- package/dist/esm/user/role.js +21 -0
- package/dist/esm/user/user-profile-assigned.js +35 -0
- package/dist/esm/user/user-profile.js +9 -0
- package/dist/esm/user/user.js +41 -0
- package/dist/esm/workflow/domain.js +41 -0
- package/dist/esm/workflow/helpers.js +30 -0
- package/dist/esm/workflow/index.js +12 -0
- package/dist/esm/workflow/mcp-server.js +30 -0
- package/dist/esm/workflow/memory-definition.js +18 -0
- package/dist/esm/workflow/memory-record.js +41 -0
- package/dist/esm/workflow/workflow-run.js +96 -0
- package/dist/esm/workflow/workflow-version.js +36 -0
- package/dist/esm/workflow/workflow.js +94 -0
- package/dist/types/analytics/index.d.ts +3 -0
- package/dist/types/analytics/index.d.ts.map +1 -0
- package/dist/types/analytics/integration-health.d.ts +55 -0
- package/dist/types/analytics/integration-health.d.ts.map +1 -0
- package/dist/types/analytics/stats.d.ts +43 -0
- package/dist/types/analytics/stats.d.ts.map +1 -0
- package/dist/types/attachment/attachment.d.ts +212 -0
- package/dist/types/attachment/attachment.d.ts.map +1 -0
- package/dist/types/attachment/index.d.ts +2 -0
- package/dist/types/attachment/index.d.ts.map +1 -0
- package/dist/types/audit/audit-log.d.ts +58 -0
- package/dist/types/audit/audit-log.d.ts.map +1 -0
- package/dist/types/audit/index.d.ts +2 -0
- package/dist/types/audit/index.d.ts.map +1 -0
- package/dist/types/channel/channel-metadata.d.ts +7 -0
- package/dist/types/channel/channel-metadata.d.ts.map +1 -0
- package/dist/types/channel/index.d.ts +4 -0
- package/dist/types/channel/index.d.ts.map +1 -0
- package/dist/types/channel/source-full.d.ts +58 -0
- package/dist/types/channel/source-full.d.ts.map +1 -0
- package/dist/types/channel/source.d.ts +44 -0
- package/dist/types/channel/source.d.ts.map +1 -0
- package/dist/types/chat/attachment.d.ts +34 -0
- package/dist/types/chat/attachment.d.ts.map +1 -0
- package/dist/types/chat/button.d.ts +31 -0
- package/dist/types/chat/button.d.ts.map +1 -0
- package/dist/types/chat/index.d.ts +11 -0
- package/dist/types/chat/index.d.ts.map +1 -0
- package/dist/types/chat/label-group.d.ts +47 -0
- package/dist/types/chat/label-group.d.ts.map +1 -0
- package/dist/types/chat/label.d.ts +102 -0
- package/dist/types/chat/label.d.ts.map +1 -0
- package/dist/types/chat/message-contract.d.ts +883 -0
- package/dist/types/chat/message-contract.d.ts.map +1 -0
- package/dist/types/chat/message.d.ts +1132 -0
- package/dist/types/chat/message.d.ts.map +1 -0
- package/dist/types/chat/options.d.ts +64 -0
- package/dist/types/chat/options.d.ts.map +1 -0
- package/dist/types/chat/quick-reply.d.ts +32 -0
- package/dist/types/chat/quick-reply.d.ts.map +1 -0
- package/dist/types/chat/subscriber.d.ts +236 -0
- package/dist/types/chat/subscriber.d.ts.map +1 -0
- package/dist/types/chat/thread.d.ts +126 -0
- package/dist/types/chat/thread.d.ts.map +1 -0
- package/dist/types/cms/content-type.d.ts +26 -0
- package/dist/types/cms/content-type.d.ts.map +1 -0
- package/dist/types/cms/content.d.ts +49 -0
- package/dist/types/cms/content.d.ts.map +1 -0
- package/dist/types/cms/index.d.ts +4 -0
- package/dist/types/cms/index.d.ts.map +1 -0
- package/dist/types/cms/menu.d.ts +85 -0
- package/dist/types/cms/menu.d.ts.map +1 -0
- package/dist/types/dummy/dummy.d.ts +26 -0
- package/dist/types/dummy/dummy.d.ts.map +1 -0
- package/dist/types/dummy/index.d.ts +2 -0
- package/dist/types/dummy/index.d.ts.map +1 -0
- package/dist/types/i18n/index.d.ts +3 -0
- package/dist/types/i18n/index.d.ts.map +1 -0
- package/dist/types/i18n/language.d.ts +32 -0
- package/dist/types/i18n/language.d.ts.map +1 -0
- package/dist/types/i18n/translation.d.ts +26 -0
- package/dist/types/i18n/translation.d.ts.map +1 -0
- package/dist/types/index.d.ts +12 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/setting/index.d.ts +3 -0
- package/dist/types/setting/index.d.ts.map +1 -0
- package/dist/types/setting/metadata.d.ts +26 -0
- package/dist/types/setting/metadata.d.ts.map +1 -0
- package/dist/types/setting/setting.d.ts +41 -0
- package/dist/types/setting/setting.d.ts.map +1 -0
- package/dist/types/shared/aliases.d.ts +4 -0
- package/dist/types/shared/aliases.d.ts.map +1 -0
- package/dist/types/shared/base.d.ts +7 -0
- package/dist/types/shared/base.d.ts.map +1 -0
- package/dist/types/shared/object.d.ts +3 -0
- package/dist/types/shared/object.d.ts.map +1 -0
- package/dist/types/shared/preprocess.d.ts +3 -0
- package/dist/types/shared/preprocess.d.ts.map +1 -0
- package/dist/types/shared/profile.d.ts +40 -0
- package/dist/types/shared/profile.d.ts.map +1 -0
- package/dist/types/user/credential.d.ts +97 -0
- package/dist/types/user/credential.d.ts.map +1 -0
- package/dist/types/user/domain.d.ts +54 -0
- package/dist/types/user/domain.d.ts.map +1 -0
- package/dist/types/user/index.d.ts +9 -0
- package/dist/types/user/index.d.ts.map +1 -0
- package/dist/types/user/model.d.ts +142 -0
- package/dist/types/user/model.d.ts.map +1 -0
- package/dist/types/user/permission.d.ts +90 -0
- package/dist/types/user/permission.d.ts.map +1 -0
- package/dist/types/user/role.d.ts +111 -0
- package/dist/types/user/role.d.ts.map +1 -0
- package/dist/types/user/user-profile-assigned.d.ts +181 -0
- package/dist/types/user/user-profile-assigned.d.ts.map +1 -0
- package/dist/types/user/user-profile.d.ts +32 -0
- package/dist/types/user/user-profile.d.ts.map +1 -0
- package/dist/types/user/user.d.ts +270 -0
- package/dist/types/user/user.d.ts.map +1 -0
- package/dist/types/workflow/domain.d.ts +32 -0
- package/dist/types/workflow/domain.d.ts.map +1 -0
- package/dist/types/workflow/helpers.d.ts +117 -0
- package/dist/types/workflow/helpers.d.ts.map +1 -0
- package/dist/types/workflow/index.d.ts +8 -0
- package/dist/types/workflow/index.d.ts.map +1 -0
- package/dist/types/workflow/mcp-server.d.ts +67 -0
- package/dist/types/workflow/mcp-server.d.ts.map +1 -0
- package/dist/types/workflow/memory-definition.d.ts +35 -0
- package/dist/types/workflow/memory-definition.d.ts.map +1 -0
- package/dist/types/workflow/memory-record.d.ts +284 -0
- package/dist/types/workflow/memory-record.d.ts.map +1 -0
- package/dist/types/workflow/workflow-run.d.ts +375 -0
- package/dist/types/workflow/workflow-run.d.ts.map +1 -0
- package/dist/types/workflow/workflow-version.d.ts +179 -0
- package/dist/types/workflow/workflow-version.d.ts.map +1 -0
- package/dist/types/workflow/workflow.d.ts +366 -0
- package/dist/types/workflow/workflow.d.ts.map +1 -0
- package/package.json +59 -0
- package/src/analytics/index.ts +26 -0
- package/src/analytics/integration-health.ts +44 -0
- package/src/analytics/stats.ts +41 -0
- package/src/attachment/attachment.ts +75 -0
- package/src/attachment/index.ts +19 -0
- package/src/audit/audit-log.ts +42 -0
- package/src/audit/index.ts +12 -0
- package/src/channel/channel-metadata.ts +20 -0
- package/src/channel/index.ts +19 -0
- package/src/channel/source-full.ts +25 -0
- package/src/channel/source.ts +42 -0
- package/src/chat/attachment.ts +44 -0
- package/src/chat/button.ts +90 -0
- package/src/chat/index.ts +173 -0
- package/src/chat/label-group.ts +35 -0
- package/src/chat/label.ts +56 -0
- package/src/chat/message-contract.ts +370 -0
- package/src/chat/message.ts +164 -0
- package/src/chat/options.ts +130 -0
- package/src/chat/quick-reply.ts +41 -0
- package/src/chat/subscriber.ts +73 -0
- package/src/chat/thread.ts +55 -0
- package/src/cms/content-type.ts +26 -0
- package/src/cms/content.ts +48 -0
- package/src/cms/index.ts +33 -0
- package/src/cms/menu.ts +54 -0
- package/src/dummy/dummy.ts +30 -0
- package/src/dummy/index.ts +14 -0
- package/src/i18n/index.ts +23 -0
- package/src/i18n/language.ts +28 -0
- package/src/i18n/translation.ts +26 -0
- package/src/index.test.ts +1271 -0
- package/src/index.ts +27 -0
- package/src/setting/index.ts +25 -0
- package/src/setting/metadata.ts +26 -0
- package/src/setting/setting.ts +46 -0
- package/src/shared/aliases.ts +48 -0
- package/src/shared/base.ts +13 -0
- package/src/shared/object.ts +19 -0
- package/src/shared/preprocess.ts +14 -0
- package/src/shared/profile.ts +49 -0
- package/src/user/credential.ts +45 -0
- package/src/user/domain.ts +94 -0
- package/src/user/index.ts +78 -0
- package/src/user/model.ts +40 -0
- package/src/user/permission.ts +51 -0
- package/src/user/role.ts +43 -0
- package/src/user/user-profile-assigned.ts +70 -0
- package/src/user/user-profile.ts +21 -0
- package/src/user/user.ts +87 -0
- package/src/workflow/domain.ts +47 -0
- package/src/workflow/helpers.ts +40 -0
- package/src/workflow/index.ts +70 -0
- package/src/workflow/mcp-server.ts +64 -0
- package/src/workflow/memory-definition.ts +31 -0
- package/src/workflow/memory-record.ts +71 -0
- package/src/workflow/workflow-run.ts +156 -0
- package/src/workflow/workflow-version.ts +68 -0
- package/src/workflow/workflow.ts +163 -0
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const memoryRecordStubSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
5
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
6
|
+
value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7
|
+
ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
8
|
+
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const memoryRecordSchema: z.ZodType<{
|
|
11
|
+
id: string;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
value: Record<string, unknown>;
|
|
15
|
+
definition: string;
|
|
16
|
+
owner: string;
|
|
17
|
+
ttlSeconds?: number | null | undefined;
|
|
18
|
+
expiresAt?: Date | null | undefined;
|
|
19
|
+
workflow?: string | undefined;
|
|
20
|
+
run?: string | undefined;
|
|
21
|
+
thread?: string | undefined;
|
|
22
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
23
|
+
id: string;
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
updatedAt: Date;
|
|
26
|
+
value: Record<string, unknown>;
|
|
27
|
+
definition: string;
|
|
28
|
+
owner: string;
|
|
29
|
+
ttlSeconds?: number | null | undefined;
|
|
30
|
+
expiresAt?: Date | null | undefined;
|
|
31
|
+
workflow?: string | undefined;
|
|
32
|
+
run?: string | undefined;
|
|
33
|
+
thread?: string | undefined;
|
|
34
|
+
}, unknown>>;
|
|
35
|
+
export declare const memoryRecordFullSchema: z.ZodObject<{
|
|
36
|
+
id: z.ZodString;
|
|
37
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
38
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
39
|
+
value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
40
|
+
ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
41
|
+
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
42
|
+
definition: z.ZodObject<{
|
|
43
|
+
id: z.ZodString;
|
|
44
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
45
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
slug: z.ZodString;
|
|
48
|
+
scope: z.ZodEnum<typeof import("./domain").MemoryScope>;
|
|
49
|
+
schema: z.ZodAny;
|
|
50
|
+
ttlSeconds: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
owner: z.ZodType<{
|
|
53
|
+
id: string;
|
|
54
|
+
createdAt: Date;
|
|
55
|
+
updatedAt: Date;
|
|
56
|
+
firstName: string;
|
|
57
|
+
lastName: string;
|
|
58
|
+
language: string | null;
|
|
59
|
+
timezone: number;
|
|
60
|
+
locale: string | null;
|
|
61
|
+
gender: string | null;
|
|
62
|
+
country: string | null;
|
|
63
|
+
foreignId: string | null;
|
|
64
|
+
assignedAt: Date | null;
|
|
65
|
+
lastvisit: Date | null;
|
|
66
|
+
retainedFrom: Date | null;
|
|
67
|
+
channel: {
|
|
68
|
+
name: string | null;
|
|
69
|
+
data?: Record<string, any> | null | undefined;
|
|
70
|
+
};
|
|
71
|
+
labels: string[];
|
|
72
|
+
assignedTo: string | null;
|
|
73
|
+
avatar: string | null;
|
|
74
|
+
source: string | null;
|
|
75
|
+
} | {
|
|
76
|
+
id: string;
|
|
77
|
+
createdAt: Date;
|
|
78
|
+
updatedAt: Date;
|
|
79
|
+
firstName: string;
|
|
80
|
+
lastName: string;
|
|
81
|
+
language: string | null;
|
|
82
|
+
timezone: number;
|
|
83
|
+
locale: string | null;
|
|
84
|
+
gender: string | null;
|
|
85
|
+
country: string | null;
|
|
86
|
+
foreignId: string | null;
|
|
87
|
+
assignedAt: Date | null;
|
|
88
|
+
lastvisit: Date | null;
|
|
89
|
+
retainedFrom: Date | null;
|
|
90
|
+
channel: {
|
|
91
|
+
name: string | null;
|
|
92
|
+
data?: Record<string, any> | null | undefined;
|
|
93
|
+
};
|
|
94
|
+
username: string;
|
|
95
|
+
email: string;
|
|
96
|
+
sendEmail: boolean;
|
|
97
|
+
state: boolean;
|
|
98
|
+
resetCount: number;
|
|
99
|
+
resetToken: string | null;
|
|
100
|
+
labels: string[];
|
|
101
|
+
assignedTo: string | null;
|
|
102
|
+
roles: string[];
|
|
103
|
+
avatar: string | null;
|
|
104
|
+
provider?: {
|
|
105
|
+
strategy: "local";
|
|
106
|
+
sub?: string | undefined;
|
|
107
|
+
} | undefined;
|
|
108
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
109
|
+
id: string;
|
|
110
|
+
createdAt: Date;
|
|
111
|
+
updatedAt: Date;
|
|
112
|
+
firstName: string;
|
|
113
|
+
lastName: string;
|
|
114
|
+
language: string | null;
|
|
115
|
+
timezone: number;
|
|
116
|
+
locale: string | null;
|
|
117
|
+
gender: string | null;
|
|
118
|
+
country: string | null;
|
|
119
|
+
foreignId: string | null;
|
|
120
|
+
assignedAt: Date | null;
|
|
121
|
+
lastvisit: Date | null;
|
|
122
|
+
retainedFrom: Date | null;
|
|
123
|
+
channel: {
|
|
124
|
+
name: string | null;
|
|
125
|
+
data?: Record<string, any> | null | undefined;
|
|
126
|
+
};
|
|
127
|
+
labels: string[];
|
|
128
|
+
assignedTo: string | null;
|
|
129
|
+
avatar: string | null;
|
|
130
|
+
source: string | null;
|
|
131
|
+
} | {
|
|
132
|
+
id: string;
|
|
133
|
+
createdAt: Date;
|
|
134
|
+
updatedAt: Date;
|
|
135
|
+
firstName: string;
|
|
136
|
+
lastName: string;
|
|
137
|
+
language: string | null;
|
|
138
|
+
timezone: number;
|
|
139
|
+
locale: string | null;
|
|
140
|
+
gender: string | null;
|
|
141
|
+
country: string | null;
|
|
142
|
+
foreignId: string | null;
|
|
143
|
+
assignedAt: Date | null;
|
|
144
|
+
lastvisit: Date | null;
|
|
145
|
+
retainedFrom: Date | null;
|
|
146
|
+
channel: {
|
|
147
|
+
name: string | null;
|
|
148
|
+
data?: Record<string, any> | null | undefined;
|
|
149
|
+
};
|
|
150
|
+
username: string;
|
|
151
|
+
email: string;
|
|
152
|
+
sendEmail: boolean;
|
|
153
|
+
state: boolean;
|
|
154
|
+
resetCount: number;
|
|
155
|
+
resetToken: string | null;
|
|
156
|
+
labels: string[];
|
|
157
|
+
assignedTo: string | null;
|
|
158
|
+
roles: string[];
|
|
159
|
+
avatar: string | null;
|
|
160
|
+
provider?: {
|
|
161
|
+
strategy: "local";
|
|
162
|
+
sub?: string | undefined;
|
|
163
|
+
} | undefined;
|
|
164
|
+
}, unknown>>;
|
|
165
|
+
workflow: z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
166
|
+
id: string;
|
|
167
|
+
createdAt: Date;
|
|
168
|
+
updatedAt: Date;
|
|
169
|
+
name: string;
|
|
170
|
+
description: string | null;
|
|
171
|
+
type: import("./domain").WorkflowType;
|
|
172
|
+
schedule: string | null;
|
|
173
|
+
inputSchema: any;
|
|
174
|
+
builtin: boolean;
|
|
175
|
+
x: number;
|
|
176
|
+
y: number;
|
|
177
|
+
zoom: number;
|
|
178
|
+
direction: import("./domain").DirectionType;
|
|
179
|
+
createdBy: string | null;
|
|
180
|
+
runAfterMs: number;
|
|
181
|
+
currentVersion?: string | null | undefined;
|
|
182
|
+
publishedVersion?: string | null | undefined;
|
|
183
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
184
|
+
id: string;
|
|
185
|
+
createdAt: Date;
|
|
186
|
+
updatedAt: Date;
|
|
187
|
+
name: string;
|
|
188
|
+
description: string | null;
|
|
189
|
+
type: import("./domain").WorkflowType;
|
|
190
|
+
schedule: string | null;
|
|
191
|
+
inputSchema: any;
|
|
192
|
+
builtin: boolean;
|
|
193
|
+
x: number;
|
|
194
|
+
y: number;
|
|
195
|
+
zoom: number;
|
|
196
|
+
direction: import("./domain").DirectionType;
|
|
197
|
+
createdBy: string | null;
|
|
198
|
+
runAfterMs: number;
|
|
199
|
+
currentVersion?: string | null | undefined;
|
|
200
|
+
publishedVersion?: string | null | undefined;
|
|
201
|
+
}, unknown>>>>;
|
|
202
|
+
run: z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
203
|
+
id: string;
|
|
204
|
+
createdAt: Date;
|
|
205
|
+
updatedAt: Date;
|
|
206
|
+
status: "idle" | "running" | "suspended" | "finished" | "failed";
|
|
207
|
+
input: Record<string, any> | null;
|
|
208
|
+
output: Record<string, any> | null;
|
|
209
|
+
context: Record<string, any>;
|
|
210
|
+
snapshot: any;
|
|
211
|
+
stepLog: Record<string, any> | null;
|
|
212
|
+
suspendedStep: string | null;
|
|
213
|
+
suspensionReason: string | null;
|
|
214
|
+
suspensionData: unknown;
|
|
215
|
+
suspensionStepExecId: string | null;
|
|
216
|
+
suspensionIndex: number | null;
|
|
217
|
+
suspensionKey: string | null;
|
|
218
|
+
suspensionAwaitResults: Record<string, any> | null;
|
|
219
|
+
lastResumeData: unknown;
|
|
220
|
+
error: string | null;
|
|
221
|
+
suspendedAt: Date | null;
|
|
222
|
+
finishedAt: Date | null;
|
|
223
|
+
failedAt: Date | null;
|
|
224
|
+
duration: number | null;
|
|
225
|
+
metadata: Record<string, any> | null;
|
|
226
|
+
workflow: string;
|
|
227
|
+
workflowVersion: string | null;
|
|
228
|
+
triggeredBy: string | null;
|
|
229
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
230
|
+
id: string;
|
|
231
|
+
createdAt: Date;
|
|
232
|
+
updatedAt: Date;
|
|
233
|
+
status: "idle" | "running" | "suspended" | "finished" | "failed";
|
|
234
|
+
input: Record<string, any> | null;
|
|
235
|
+
output: Record<string, any> | null;
|
|
236
|
+
context: Record<string, any>;
|
|
237
|
+
snapshot: any;
|
|
238
|
+
stepLog: Record<string, any> | null;
|
|
239
|
+
suspendedStep: string | null;
|
|
240
|
+
suspensionReason: string | null;
|
|
241
|
+
suspensionData: unknown;
|
|
242
|
+
suspensionStepExecId: string | null;
|
|
243
|
+
suspensionIndex: number | null;
|
|
244
|
+
suspensionKey: string | null;
|
|
245
|
+
suspensionAwaitResults: Record<string, any> | null;
|
|
246
|
+
lastResumeData: unknown;
|
|
247
|
+
error: string | null;
|
|
248
|
+
suspendedAt: Date | null;
|
|
249
|
+
finishedAt: Date | null;
|
|
250
|
+
failedAt: Date | null;
|
|
251
|
+
duration: number | null;
|
|
252
|
+
metadata: Record<string, any> | null;
|
|
253
|
+
workflow: string;
|
|
254
|
+
workflowVersion: string | null;
|
|
255
|
+
triggeredBy: string | null;
|
|
256
|
+
}, unknown>>>>;
|
|
257
|
+
thread: z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
258
|
+
id: string;
|
|
259
|
+
createdAt: Date;
|
|
260
|
+
updatedAt: Date;
|
|
261
|
+
status: "open" | "closed";
|
|
262
|
+
subscriber: string;
|
|
263
|
+
source: string;
|
|
264
|
+
lastMessageAt?: Date | null | undefined;
|
|
265
|
+
closedAt?: Date | null | undefined;
|
|
266
|
+
closeReason?: "manual" | "inactivity" | null | undefined;
|
|
267
|
+
title?: string | null | undefined;
|
|
268
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
269
|
+
id: string;
|
|
270
|
+
createdAt: Date;
|
|
271
|
+
updatedAt: Date;
|
|
272
|
+
status: "open" | "closed";
|
|
273
|
+
subscriber: string;
|
|
274
|
+
source: string;
|
|
275
|
+
lastMessageAt?: Date | null | undefined;
|
|
276
|
+
closedAt?: Date | null | undefined;
|
|
277
|
+
closeReason?: "manual" | "inactivity" | null | undefined;
|
|
278
|
+
title?: string | null | undefined;
|
|
279
|
+
}, unknown>>>>;
|
|
280
|
+
}, z.core.$strip>;
|
|
281
|
+
export type MemoryRecordStub = z.infer<typeof memoryRecordStubSchema>;
|
|
282
|
+
export type MemoryRecord = z.infer<typeof memoryRecordSchema>;
|
|
283
|
+
export type MemoryRecordFull = z.infer<typeof memoryRecordFullSchema>;
|
|
284
|
+
//# sourceMappingURL=memory-record.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-record.d.ts","sourceRoot":"","sources":["../../../src/workflow/memory-record.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwBxB,eAAO,MAAM,sBAAsB;;;;;;;iBAA+B,CAAC;AAEnE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;YAwB9B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const workflowRunStatusSchema: z.ZodEnum<{
|
|
3
|
+
idle: "idle";
|
|
4
|
+
running: "running";
|
|
5
|
+
suspended: "suspended";
|
|
6
|
+
finished: "finished";
|
|
7
|
+
failed: "failed";
|
|
8
|
+
}>;
|
|
9
|
+
export declare const resolveRunDurationMs: (run: {
|
|
10
|
+
createdAt?: Date | string | null;
|
|
11
|
+
finishedAt?: Date | string | null;
|
|
12
|
+
failedAt?: Date | string | null;
|
|
13
|
+
suspendedAt?: Date | string | null;
|
|
14
|
+
status?: z.infer<typeof workflowRunStatusSchema> | null;
|
|
15
|
+
}) => number | null;
|
|
16
|
+
export declare const workflowRunStubSchema: z.ZodType<{
|
|
17
|
+
id: string;
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
updatedAt: Date;
|
|
20
|
+
status: "idle" | "running" | "suspended" | "finished" | "failed";
|
|
21
|
+
input: Record<string, any> | null;
|
|
22
|
+
output: Record<string, any> | null;
|
|
23
|
+
context: Record<string, any>;
|
|
24
|
+
snapshot: any;
|
|
25
|
+
stepLog: Record<string, any> | null;
|
|
26
|
+
suspendedStep: string | null;
|
|
27
|
+
suspensionReason: string | null;
|
|
28
|
+
suspensionData: unknown;
|
|
29
|
+
suspensionStepExecId: string | null;
|
|
30
|
+
suspensionIndex: number | null;
|
|
31
|
+
suspensionKey: string | null;
|
|
32
|
+
suspensionAwaitResults: Record<string, any> | null;
|
|
33
|
+
lastResumeData: unknown;
|
|
34
|
+
error: string | null;
|
|
35
|
+
suspendedAt: Date | null;
|
|
36
|
+
finishedAt: Date | null;
|
|
37
|
+
failedAt: Date | null;
|
|
38
|
+
duration: number | null;
|
|
39
|
+
metadata: Record<string, any> | null;
|
|
40
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
41
|
+
id: string;
|
|
42
|
+
createdAt: Date;
|
|
43
|
+
updatedAt: Date;
|
|
44
|
+
status: "idle" | "running" | "suspended" | "finished" | "failed";
|
|
45
|
+
input: Record<string, any> | null;
|
|
46
|
+
output: Record<string, any> | null;
|
|
47
|
+
context: Record<string, any>;
|
|
48
|
+
snapshot: any;
|
|
49
|
+
stepLog: Record<string, any> | null;
|
|
50
|
+
suspendedStep: string | null;
|
|
51
|
+
suspensionReason: string | null;
|
|
52
|
+
suspensionData: unknown;
|
|
53
|
+
suspensionStepExecId: string | null;
|
|
54
|
+
suspensionIndex: number | null;
|
|
55
|
+
suspensionKey: string | null;
|
|
56
|
+
suspensionAwaitResults: Record<string, any> | null;
|
|
57
|
+
lastResumeData: unknown;
|
|
58
|
+
error: string | null;
|
|
59
|
+
suspendedAt: Date | null;
|
|
60
|
+
finishedAt: Date | null;
|
|
61
|
+
failedAt: Date | null;
|
|
62
|
+
duration: number | null;
|
|
63
|
+
metadata: Record<string, any> | null;
|
|
64
|
+
}, unknown>>;
|
|
65
|
+
export declare const workflowRunSchema: z.ZodType<{
|
|
66
|
+
id: string;
|
|
67
|
+
createdAt: Date;
|
|
68
|
+
updatedAt: Date;
|
|
69
|
+
status: "idle" | "running" | "suspended" | "finished" | "failed";
|
|
70
|
+
input: Record<string, any> | null;
|
|
71
|
+
output: Record<string, any> | null;
|
|
72
|
+
context: Record<string, any>;
|
|
73
|
+
snapshot: any;
|
|
74
|
+
stepLog: Record<string, any> | null;
|
|
75
|
+
suspendedStep: string | null;
|
|
76
|
+
suspensionReason: string | null;
|
|
77
|
+
suspensionData: unknown;
|
|
78
|
+
suspensionStepExecId: string | null;
|
|
79
|
+
suspensionIndex: number | null;
|
|
80
|
+
suspensionKey: string | null;
|
|
81
|
+
suspensionAwaitResults: Record<string, any> | null;
|
|
82
|
+
lastResumeData: unknown;
|
|
83
|
+
error: string | null;
|
|
84
|
+
suspendedAt: Date | null;
|
|
85
|
+
finishedAt: Date | null;
|
|
86
|
+
failedAt: Date | null;
|
|
87
|
+
duration: number | null;
|
|
88
|
+
metadata: Record<string, any> | null;
|
|
89
|
+
workflow: string;
|
|
90
|
+
workflowVersion: string | null;
|
|
91
|
+
triggeredBy: string | null;
|
|
92
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
93
|
+
id: string;
|
|
94
|
+
createdAt: Date;
|
|
95
|
+
updatedAt: Date;
|
|
96
|
+
status: "idle" | "running" | "suspended" | "finished" | "failed";
|
|
97
|
+
input: Record<string, any> | null;
|
|
98
|
+
output: Record<string, any> | null;
|
|
99
|
+
context: Record<string, any>;
|
|
100
|
+
snapshot: any;
|
|
101
|
+
stepLog: Record<string, any> | null;
|
|
102
|
+
suspendedStep: string | null;
|
|
103
|
+
suspensionReason: string | null;
|
|
104
|
+
suspensionData: unknown;
|
|
105
|
+
suspensionStepExecId: string | null;
|
|
106
|
+
suspensionIndex: number | null;
|
|
107
|
+
suspensionKey: string | null;
|
|
108
|
+
suspensionAwaitResults: Record<string, any> | null;
|
|
109
|
+
lastResumeData: unknown;
|
|
110
|
+
error: string | null;
|
|
111
|
+
suspendedAt: Date | null;
|
|
112
|
+
finishedAt: Date | null;
|
|
113
|
+
failedAt: Date | null;
|
|
114
|
+
duration: number | null;
|
|
115
|
+
metadata: Record<string, any> | null;
|
|
116
|
+
workflow: string;
|
|
117
|
+
workflowVersion: string | null;
|
|
118
|
+
triggeredBy: string | null;
|
|
119
|
+
}, unknown>>;
|
|
120
|
+
export declare const workflowRunFullSchema: z.ZodType<{
|
|
121
|
+
id: string;
|
|
122
|
+
createdAt: Date;
|
|
123
|
+
updatedAt: Date;
|
|
124
|
+
status: "idle" | "running" | "suspended" | "finished" | "failed";
|
|
125
|
+
input: Record<string, any> | null;
|
|
126
|
+
output: Record<string, any> | null;
|
|
127
|
+
context: Record<string, any>;
|
|
128
|
+
snapshot: any;
|
|
129
|
+
stepLog: Record<string, any> | null;
|
|
130
|
+
suspendedStep: string | null;
|
|
131
|
+
suspensionReason: string | null;
|
|
132
|
+
suspensionData: unknown;
|
|
133
|
+
suspensionStepExecId: string | null;
|
|
134
|
+
suspensionIndex: number | null;
|
|
135
|
+
suspensionKey: string | null;
|
|
136
|
+
suspensionAwaitResults: Record<string, any> | null;
|
|
137
|
+
lastResumeData: unknown;
|
|
138
|
+
error: string | null;
|
|
139
|
+
suspendedAt: Date | null;
|
|
140
|
+
finishedAt: Date | null;
|
|
141
|
+
failedAt: Date | null;
|
|
142
|
+
duration: number | null;
|
|
143
|
+
metadata: Record<string, any> | null;
|
|
144
|
+
workflow: {
|
|
145
|
+
id: string;
|
|
146
|
+
createdAt: Date;
|
|
147
|
+
updatedAt: Date;
|
|
148
|
+
name: string;
|
|
149
|
+
description: string | null;
|
|
150
|
+
type: import("./domain").WorkflowType;
|
|
151
|
+
schedule: string | null;
|
|
152
|
+
inputSchema: any;
|
|
153
|
+
builtin: boolean;
|
|
154
|
+
x: number;
|
|
155
|
+
y: number;
|
|
156
|
+
zoom: number;
|
|
157
|
+
direction: import("./domain").DirectionType;
|
|
158
|
+
createdBy: string | null;
|
|
159
|
+
runAfterMs: number;
|
|
160
|
+
currentVersion?: string | null | undefined;
|
|
161
|
+
publishedVersion?: string | null | undefined;
|
|
162
|
+
};
|
|
163
|
+
triggeredBy: {
|
|
164
|
+
id: string;
|
|
165
|
+
createdAt: Date;
|
|
166
|
+
updatedAt: Date;
|
|
167
|
+
firstName: string;
|
|
168
|
+
lastName: string;
|
|
169
|
+
language: string | null;
|
|
170
|
+
timezone: number;
|
|
171
|
+
locale: string | null;
|
|
172
|
+
gender: string | null;
|
|
173
|
+
country: string | null;
|
|
174
|
+
foreignId: string | null;
|
|
175
|
+
assignedAt: Date | null;
|
|
176
|
+
lastvisit: Date | null;
|
|
177
|
+
retainedFrom: Date | null;
|
|
178
|
+
channel: {
|
|
179
|
+
name: string | null;
|
|
180
|
+
data?: Record<string, any> | null | undefined;
|
|
181
|
+
};
|
|
182
|
+
labels: string[];
|
|
183
|
+
assignedTo: string | null;
|
|
184
|
+
avatar: string | null;
|
|
185
|
+
source: string | null;
|
|
186
|
+
} | {
|
|
187
|
+
id: string;
|
|
188
|
+
createdAt: Date;
|
|
189
|
+
updatedAt: Date;
|
|
190
|
+
firstName: string;
|
|
191
|
+
lastName: string;
|
|
192
|
+
language: string | null;
|
|
193
|
+
timezone: number;
|
|
194
|
+
locale: string | null;
|
|
195
|
+
gender: string | null;
|
|
196
|
+
country: string | null;
|
|
197
|
+
foreignId: string | null;
|
|
198
|
+
assignedAt: Date | null;
|
|
199
|
+
lastvisit: Date | null;
|
|
200
|
+
retainedFrom: Date | null;
|
|
201
|
+
channel: {
|
|
202
|
+
name: string | null;
|
|
203
|
+
data?: Record<string, any> | null | undefined;
|
|
204
|
+
};
|
|
205
|
+
username: string;
|
|
206
|
+
email: string;
|
|
207
|
+
sendEmail: boolean;
|
|
208
|
+
state: boolean;
|
|
209
|
+
resetCount: number;
|
|
210
|
+
resetToken: string | null;
|
|
211
|
+
labels: string[];
|
|
212
|
+
assignedTo: string | null;
|
|
213
|
+
roles: string[];
|
|
214
|
+
avatar: string | null;
|
|
215
|
+
provider?: {
|
|
216
|
+
strategy: "local";
|
|
217
|
+
sub?: string | undefined;
|
|
218
|
+
} | undefined;
|
|
219
|
+
} | null;
|
|
220
|
+
workflowVersion?: {
|
|
221
|
+
id: string;
|
|
222
|
+
createdAt: Date;
|
|
223
|
+
updatedAt: Date;
|
|
224
|
+
version: number;
|
|
225
|
+
definitionYml: string;
|
|
226
|
+
checksum: string;
|
|
227
|
+
message: string | null;
|
|
228
|
+
action: import("./domain").WorkflowVersionAction | null;
|
|
229
|
+
parentVersion: string | null;
|
|
230
|
+
workflow: string;
|
|
231
|
+
createdBy: string | null;
|
|
232
|
+
} | null | undefined;
|
|
233
|
+
thread?: {
|
|
234
|
+
id: string;
|
|
235
|
+
createdAt: Date;
|
|
236
|
+
updatedAt: Date;
|
|
237
|
+
status: "open" | "closed";
|
|
238
|
+
subscriber: string;
|
|
239
|
+
source: string;
|
|
240
|
+
lastMessageAt?: Date | null | undefined;
|
|
241
|
+
closedAt?: Date | null | undefined;
|
|
242
|
+
closeReason?: "manual" | "inactivity" | null | undefined;
|
|
243
|
+
title?: string | null | undefined;
|
|
244
|
+
} | null | undefined;
|
|
245
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
246
|
+
id: string;
|
|
247
|
+
createdAt: Date;
|
|
248
|
+
updatedAt: Date;
|
|
249
|
+
status: "idle" | "running" | "suspended" | "finished" | "failed";
|
|
250
|
+
input: Record<string, any> | null;
|
|
251
|
+
output: Record<string, any> | null;
|
|
252
|
+
context: Record<string, any>;
|
|
253
|
+
snapshot: any;
|
|
254
|
+
stepLog: Record<string, any> | null;
|
|
255
|
+
suspendedStep: string | null;
|
|
256
|
+
suspensionReason: string | null;
|
|
257
|
+
suspensionData: unknown;
|
|
258
|
+
suspensionStepExecId: string | null;
|
|
259
|
+
suspensionIndex: number | null;
|
|
260
|
+
suspensionKey: string | null;
|
|
261
|
+
suspensionAwaitResults: Record<string, any> | null;
|
|
262
|
+
lastResumeData: unknown;
|
|
263
|
+
error: string | null;
|
|
264
|
+
suspendedAt: Date | null;
|
|
265
|
+
finishedAt: Date | null;
|
|
266
|
+
failedAt: Date | null;
|
|
267
|
+
duration: number | null;
|
|
268
|
+
metadata: Record<string, any> | null;
|
|
269
|
+
workflow: {
|
|
270
|
+
id: string;
|
|
271
|
+
createdAt: Date;
|
|
272
|
+
updatedAt: Date;
|
|
273
|
+
name: string;
|
|
274
|
+
description: string | null;
|
|
275
|
+
type: import("./domain").WorkflowType;
|
|
276
|
+
schedule: string | null;
|
|
277
|
+
inputSchema: any;
|
|
278
|
+
builtin: boolean;
|
|
279
|
+
x: number;
|
|
280
|
+
y: number;
|
|
281
|
+
zoom: number;
|
|
282
|
+
direction: import("./domain").DirectionType;
|
|
283
|
+
createdBy: string | null;
|
|
284
|
+
runAfterMs: number;
|
|
285
|
+
currentVersion?: string | null | undefined;
|
|
286
|
+
publishedVersion?: string | null | undefined;
|
|
287
|
+
};
|
|
288
|
+
triggeredBy: {
|
|
289
|
+
id: string;
|
|
290
|
+
createdAt: Date;
|
|
291
|
+
updatedAt: Date;
|
|
292
|
+
firstName: string;
|
|
293
|
+
lastName: string;
|
|
294
|
+
language: string | null;
|
|
295
|
+
timezone: number;
|
|
296
|
+
locale: string | null;
|
|
297
|
+
gender: string | null;
|
|
298
|
+
country: string | null;
|
|
299
|
+
foreignId: string | null;
|
|
300
|
+
assignedAt: Date | null;
|
|
301
|
+
lastvisit: Date | null;
|
|
302
|
+
retainedFrom: Date | null;
|
|
303
|
+
channel: {
|
|
304
|
+
name: string | null;
|
|
305
|
+
data?: Record<string, any> | null | undefined;
|
|
306
|
+
};
|
|
307
|
+
labels: string[];
|
|
308
|
+
assignedTo: string | null;
|
|
309
|
+
avatar: string | null;
|
|
310
|
+
source: string | null;
|
|
311
|
+
} | {
|
|
312
|
+
id: string;
|
|
313
|
+
createdAt: Date;
|
|
314
|
+
updatedAt: Date;
|
|
315
|
+
firstName: string;
|
|
316
|
+
lastName: string;
|
|
317
|
+
language: string | null;
|
|
318
|
+
timezone: number;
|
|
319
|
+
locale: string | null;
|
|
320
|
+
gender: string | null;
|
|
321
|
+
country: string | null;
|
|
322
|
+
foreignId: string | null;
|
|
323
|
+
assignedAt: Date | null;
|
|
324
|
+
lastvisit: Date | null;
|
|
325
|
+
retainedFrom: Date | null;
|
|
326
|
+
channel: {
|
|
327
|
+
name: string | null;
|
|
328
|
+
data?: Record<string, any> | null | undefined;
|
|
329
|
+
};
|
|
330
|
+
username: string;
|
|
331
|
+
email: string;
|
|
332
|
+
sendEmail: boolean;
|
|
333
|
+
state: boolean;
|
|
334
|
+
resetCount: number;
|
|
335
|
+
resetToken: string | null;
|
|
336
|
+
labels: string[];
|
|
337
|
+
assignedTo: string | null;
|
|
338
|
+
roles: string[];
|
|
339
|
+
avatar: string | null;
|
|
340
|
+
provider?: {
|
|
341
|
+
strategy: "local";
|
|
342
|
+
sub?: string | undefined;
|
|
343
|
+
} | undefined;
|
|
344
|
+
} | null;
|
|
345
|
+
workflowVersion?: {
|
|
346
|
+
id: string;
|
|
347
|
+
createdAt: Date;
|
|
348
|
+
updatedAt: Date;
|
|
349
|
+
version: number;
|
|
350
|
+
definitionYml: string;
|
|
351
|
+
checksum: string;
|
|
352
|
+
message: string | null;
|
|
353
|
+
action: import("./domain").WorkflowVersionAction | null;
|
|
354
|
+
parentVersion: string | null;
|
|
355
|
+
workflow: string;
|
|
356
|
+
createdBy: string | null;
|
|
357
|
+
} | null | undefined;
|
|
358
|
+
thread?: {
|
|
359
|
+
id: string;
|
|
360
|
+
createdAt: Date;
|
|
361
|
+
updatedAt: Date;
|
|
362
|
+
status: "open" | "closed";
|
|
363
|
+
subscriber: string;
|
|
364
|
+
source: string;
|
|
365
|
+
lastMessageAt?: Date | null | undefined;
|
|
366
|
+
closedAt?: Date | null | undefined;
|
|
367
|
+
closeReason?: "manual" | "inactivity" | null | undefined;
|
|
368
|
+
title?: string | null | undefined;
|
|
369
|
+
} | null | undefined;
|
|
370
|
+
}, unknown>>;
|
|
371
|
+
export type WorkflowRunStub = z.infer<typeof workflowRunStubSchema>;
|
|
372
|
+
export type WorkflowRun = z.infer<typeof workflowRunSchema>;
|
|
373
|
+
export type WorkflowRunFull = z.infer<typeof workflowRunFullSchema>;
|
|
374
|
+
export {};
|
|
375
|
+
//# sourceMappingURL=workflow-run.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-run.d.ts","sourceRoot":"","sources":["../../../src/workflow/workflow-run.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,QAAA,MAAM,uBAAuB;;;;;;EAM3B,CAAC;AAYH,eAAO,MAAM,oBAAoB,GAAI,KAAK;IACxC,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;IACjC,UAAU,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;IAChC,WAAW,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;IACnC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,GAAG,IAAI,CAAC;CACzD,KAAG,MAAM,GAAG,IAiBZ,CAAC;AAoDF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAGjC,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAgB7B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAWjC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|