@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 @@
|
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/chat/message.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EAKpB,MAAM,oBAAoB,CAAC;AAoG5B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA0B,CAAC;AAEzD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAoBzB,CAAC;AAYF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAG7B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const contentOptionsSchema: z.ZodObject<{
|
|
3
|
+
display: z.ZodEnum<{
|
|
4
|
+
list: "list";
|
|
5
|
+
carousel: "carousel";
|
|
6
|
+
}>;
|
|
7
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
8
|
+
fields: z.ZodObject<{
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
11
|
+
image_url: z.ZodOptional<z.ZodString>;
|
|
12
|
+
url: z.ZodOptional<z.ZodString>;
|
|
13
|
+
action_title: z.ZodOptional<z.ZodString>;
|
|
14
|
+
action_payload: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
buttons: z.ZodArray<z.ZodType<import("./button").Button, unknown, z.core.$ZodTypeInternals<import("./button").Button, unknown>>>;
|
|
17
|
+
limit: z.ZodNumber;
|
|
18
|
+
query: z.ZodOptional<z.ZodAny>;
|
|
19
|
+
top_element_style: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
compact: "compact";
|
|
21
|
+
large: "large";
|
|
22
|
+
}>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export type ContentOptions = z.infer<typeof contentOptionsSchema>;
|
|
25
|
+
export declare const fallbackOptionsSchema: z.ZodObject<{
|
|
26
|
+
active: z.ZodBoolean;
|
|
27
|
+
message: z.ZodArray<z.ZodString>;
|
|
28
|
+
max_attempts: z.ZodNumber;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export type FallbackOptions = z.infer<typeof fallbackOptionsSchema>;
|
|
31
|
+
export declare const ActionOptionsSchema: z.ZodObject<{
|
|
32
|
+
typing: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodInt]>>;
|
|
33
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
34
|
+
display: z.ZodEnum<{
|
|
35
|
+
list: "list";
|
|
36
|
+
carousel: "carousel";
|
|
37
|
+
}>;
|
|
38
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
39
|
+
fields: z.ZodObject<{
|
|
40
|
+
title: z.ZodString;
|
|
41
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
42
|
+
image_url: z.ZodOptional<z.ZodString>;
|
|
43
|
+
url: z.ZodOptional<z.ZodString>;
|
|
44
|
+
action_title: z.ZodOptional<z.ZodString>;
|
|
45
|
+
action_payload: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
buttons: z.ZodArray<z.ZodType<import("./button").Button, unknown, z.core.$ZodTypeInternals<import("./button").Button, unknown>>>;
|
|
48
|
+
limit: z.ZodNumber;
|
|
49
|
+
query: z.ZodOptional<z.ZodAny>;
|
|
50
|
+
top_element_style: z.ZodOptional<z.ZodEnum<{
|
|
51
|
+
compact: "compact";
|
|
52
|
+
large: "large";
|
|
53
|
+
}>>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
fallback: z.ZodOptional<z.ZodObject<{
|
|
56
|
+
active: z.ZodBoolean;
|
|
57
|
+
message: z.ZodArray<z.ZodString>;
|
|
58
|
+
max_attempts: z.ZodNumber;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
assignTo: z.ZodOptional<z.ZodString>;
|
|
61
|
+
effects: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export type ActionOptions = z.infer<typeof ActionOptionsSchema>;
|
|
64
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/chat/options.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;iBAmG/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { PayloadType } from "./button";
|
|
3
|
+
export declare const coordinatesSchema: z.ZodObject<{
|
|
4
|
+
lat: z.ZodNumber;
|
|
5
|
+
lon: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const payloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8
|
+
type: z.ZodLiteral<PayloadType.location>;
|
|
9
|
+
coordinates: z.ZodObject<{
|
|
10
|
+
lat: z.ZodNumber;
|
|
11
|
+
lon: z.ZodNumber;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14
|
+
type: z.ZodLiteral<PayloadType.attachment>;
|
|
15
|
+
attachment: z.ZodObject<{
|
|
16
|
+
type: z.ZodEnum<typeof import("./attachment").FileType>;
|
|
17
|
+
payload: z.ZodUnion<readonly [z.ZodObject<{
|
|
18
|
+
id: z.ZodNullable<z.ZodString>;
|
|
19
|
+
url: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
url: z.ZodString;
|
|
23
|
+
}, z.core.$strip>]>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
}, z.core.$strip>], "type">;
|
|
26
|
+
export declare const stdQuickReplySchema: z.ZodObject<{
|
|
27
|
+
title: z.ZodString;
|
|
28
|
+
payload: z.ZodString;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export type Payload = z.infer<typeof payloadSchema>;
|
|
31
|
+
export type StdQuickReply = z.infer<typeof stdQuickReplySchema>;
|
|
32
|
+
//# sourceMappingURL=quick-reply.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quick-reply.d.ts","sourceRoot":"","sources":["../../../src/chat/quick-reply.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;2BASxB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;iBAS9B,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const subscriberStubSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
5
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
6
|
+
firstName: z.ZodString;
|
|
7
|
+
lastName: z.ZodString;
|
|
8
|
+
language: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
9
|
+
timezone: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
10
|
+
locale: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
11
|
+
gender: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
12
|
+
country: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
13
|
+
foreignId: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
14
|
+
assignedAt: z.ZodType<Date | null, unknown, z.core.$ZodTypeInternals<Date | null, unknown>>;
|
|
15
|
+
lastvisit: z.ZodType<Date | null, unknown, z.core.$ZodTypeInternals<Date | null, unknown>>;
|
|
16
|
+
retainedFrom: z.ZodType<Date | null, unknown, z.core.$ZodTypeInternals<Date | null, unknown>>;
|
|
17
|
+
channel: z.ZodType<{
|
|
18
|
+
name: string | null;
|
|
19
|
+
data?: Record<string, any> | null | undefined;
|
|
20
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
21
|
+
name: string | null;
|
|
22
|
+
data?: Record<string, any> | null | undefined;
|
|
23
|
+
}, unknown>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export declare const subscriberSchema: z.ZodType<{
|
|
26
|
+
id: string;
|
|
27
|
+
createdAt: Date;
|
|
28
|
+
updatedAt: Date;
|
|
29
|
+
firstName: string;
|
|
30
|
+
lastName: string;
|
|
31
|
+
language: string | null;
|
|
32
|
+
timezone: number;
|
|
33
|
+
locale: string | null;
|
|
34
|
+
gender: string | null;
|
|
35
|
+
country: string | null;
|
|
36
|
+
foreignId: string | null;
|
|
37
|
+
assignedAt: Date | null;
|
|
38
|
+
lastvisit: Date | null;
|
|
39
|
+
retainedFrom: Date | null;
|
|
40
|
+
channel: {
|
|
41
|
+
name: string | null;
|
|
42
|
+
data?: Record<string, any> | null | undefined;
|
|
43
|
+
};
|
|
44
|
+
labels: string[];
|
|
45
|
+
assignedTo: string | null;
|
|
46
|
+
avatar: string | null;
|
|
47
|
+
source: string | null;
|
|
48
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
49
|
+
id: string;
|
|
50
|
+
createdAt: Date;
|
|
51
|
+
updatedAt: Date;
|
|
52
|
+
firstName: string;
|
|
53
|
+
lastName: string;
|
|
54
|
+
language: string | null;
|
|
55
|
+
timezone: number;
|
|
56
|
+
locale: string | null;
|
|
57
|
+
gender: string | null;
|
|
58
|
+
country: string | null;
|
|
59
|
+
foreignId: string | null;
|
|
60
|
+
assignedAt: Date | null;
|
|
61
|
+
lastvisit: Date | null;
|
|
62
|
+
retainedFrom: Date | null;
|
|
63
|
+
channel: {
|
|
64
|
+
name: string | null;
|
|
65
|
+
data?: Record<string, any> | null | undefined;
|
|
66
|
+
};
|
|
67
|
+
labels: string[];
|
|
68
|
+
assignedTo: string | null;
|
|
69
|
+
avatar: string | null;
|
|
70
|
+
source: string | null;
|
|
71
|
+
}, unknown>>;
|
|
72
|
+
export declare const subscriberFullSchema: z.ZodObject<{
|
|
73
|
+
id: z.ZodString;
|
|
74
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
75
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
76
|
+
firstName: z.ZodString;
|
|
77
|
+
lastName: z.ZodString;
|
|
78
|
+
language: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
79
|
+
timezone: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
80
|
+
locale: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
81
|
+
gender: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
82
|
+
country: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
83
|
+
foreignId: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
84
|
+
assignedAt: z.ZodType<Date | null, unknown, z.core.$ZodTypeInternals<Date | null, unknown>>;
|
|
85
|
+
lastvisit: z.ZodType<Date | null, unknown, z.core.$ZodTypeInternals<Date | null, unknown>>;
|
|
86
|
+
retainedFrom: z.ZodType<Date | null, unknown, z.core.$ZodTypeInternals<Date | null, unknown>>;
|
|
87
|
+
channel: z.ZodType<{
|
|
88
|
+
name: string | null;
|
|
89
|
+
data?: Record<string, any> | null | undefined;
|
|
90
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
91
|
+
name: string | null;
|
|
92
|
+
data?: Record<string, any> | null | undefined;
|
|
93
|
+
}, unknown>>;
|
|
94
|
+
labels: z.ZodType<{
|
|
95
|
+
id: string;
|
|
96
|
+
createdAt: Date;
|
|
97
|
+
updatedAt: Date;
|
|
98
|
+
title: string;
|
|
99
|
+
name: string;
|
|
100
|
+
builtin: boolean;
|
|
101
|
+
label_id?: Record<string, unknown> | null | undefined;
|
|
102
|
+
description?: string | null | undefined;
|
|
103
|
+
group?: string | null | undefined;
|
|
104
|
+
users?: undefined;
|
|
105
|
+
}[], unknown, z.core.$ZodTypeInternals<{
|
|
106
|
+
id: string;
|
|
107
|
+
createdAt: Date;
|
|
108
|
+
updatedAt: Date;
|
|
109
|
+
title: string;
|
|
110
|
+
name: string;
|
|
111
|
+
builtin: boolean;
|
|
112
|
+
label_id?: Record<string, unknown> | null | undefined;
|
|
113
|
+
description?: string | null | undefined;
|
|
114
|
+
group?: string | null | undefined;
|
|
115
|
+
users?: undefined;
|
|
116
|
+
}[], unknown>>;
|
|
117
|
+
assignedTo: z.ZodType<{
|
|
118
|
+
id: string;
|
|
119
|
+
createdAt: Date;
|
|
120
|
+
updatedAt: Date;
|
|
121
|
+
firstName: string;
|
|
122
|
+
lastName: string;
|
|
123
|
+
language: string | null;
|
|
124
|
+
timezone: number;
|
|
125
|
+
locale: string | null;
|
|
126
|
+
gender: string | null;
|
|
127
|
+
country: string | null;
|
|
128
|
+
foreignId: string | null;
|
|
129
|
+
assignedAt: Date | null;
|
|
130
|
+
lastvisit: Date | null;
|
|
131
|
+
retainedFrom: Date | null;
|
|
132
|
+
channel: {
|
|
133
|
+
name: string | null;
|
|
134
|
+
data?: Record<string, any> | null | undefined;
|
|
135
|
+
};
|
|
136
|
+
labels: string[];
|
|
137
|
+
assignedTo: string | null;
|
|
138
|
+
username: string;
|
|
139
|
+
email: string;
|
|
140
|
+
sendEmail: boolean;
|
|
141
|
+
state: boolean;
|
|
142
|
+
resetCount: number;
|
|
143
|
+
resetToken: string | null;
|
|
144
|
+
roles: string[];
|
|
145
|
+
avatar: string | null;
|
|
146
|
+
provider?: {
|
|
147
|
+
strategy: "local";
|
|
148
|
+
sub?: string | undefined;
|
|
149
|
+
} | undefined;
|
|
150
|
+
} | null, unknown, z.core.$ZodTypeInternals<{
|
|
151
|
+
id: string;
|
|
152
|
+
createdAt: Date;
|
|
153
|
+
updatedAt: Date;
|
|
154
|
+
firstName: string;
|
|
155
|
+
lastName: string;
|
|
156
|
+
language: string | null;
|
|
157
|
+
timezone: number;
|
|
158
|
+
locale: string | null;
|
|
159
|
+
gender: string | null;
|
|
160
|
+
country: string | null;
|
|
161
|
+
foreignId: string | null;
|
|
162
|
+
assignedAt: Date | null;
|
|
163
|
+
lastvisit: Date | null;
|
|
164
|
+
retainedFrom: Date | null;
|
|
165
|
+
channel: {
|
|
166
|
+
name: string | null;
|
|
167
|
+
data?: Record<string, any> | null | undefined;
|
|
168
|
+
};
|
|
169
|
+
labels: string[];
|
|
170
|
+
assignedTo: string | null;
|
|
171
|
+
username: string;
|
|
172
|
+
email: string;
|
|
173
|
+
sendEmail: boolean;
|
|
174
|
+
state: boolean;
|
|
175
|
+
resetCount: number;
|
|
176
|
+
resetToken: string | null;
|
|
177
|
+
roles: string[];
|
|
178
|
+
avatar: string | null;
|
|
179
|
+
provider?: {
|
|
180
|
+
strategy: "local";
|
|
181
|
+
sub?: string | undefined;
|
|
182
|
+
} | undefined;
|
|
183
|
+
} | null, unknown>>;
|
|
184
|
+
avatar: z.ZodType<{
|
|
185
|
+
id: string;
|
|
186
|
+
createdAt: Date;
|
|
187
|
+
updatedAt: Date;
|
|
188
|
+
name: string;
|
|
189
|
+
type: string;
|
|
190
|
+
size: number;
|
|
191
|
+
location: string;
|
|
192
|
+
resourceRef: import("../attachment/attachment").AttachmentResourceRef;
|
|
193
|
+
access: import("../attachment/attachment").AttachmentAccess;
|
|
194
|
+
url: string;
|
|
195
|
+
channel?: Record<string, unknown> | undefined;
|
|
196
|
+
createdByRef?: import("../attachment/attachment").AttachmentCreatedByRef | undefined;
|
|
197
|
+
createdBy?: string | null | undefined;
|
|
198
|
+
} | null, unknown, z.core.$ZodTypeInternals<{
|
|
199
|
+
id: string;
|
|
200
|
+
createdAt: Date;
|
|
201
|
+
updatedAt: Date;
|
|
202
|
+
name: string;
|
|
203
|
+
type: string;
|
|
204
|
+
size: number;
|
|
205
|
+
location: string;
|
|
206
|
+
resourceRef: import("../attachment/attachment").AttachmentResourceRef;
|
|
207
|
+
access: import("../attachment/attachment").AttachmentAccess;
|
|
208
|
+
url: string;
|
|
209
|
+
channel?: Record<string, unknown> | undefined;
|
|
210
|
+
createdByRef?: import("../attachment/attachment").AttachmentCreatedByRef | undefined;
|
|
211
|
+
createdBy?: string | null | undefined;
|
|
212
|
+
} | null, unknown>>;
|
|
213
|
+
source: z.ZodType<{
|
|
214
|
+
id: string;
|
|
215
|
+
createdAt: Date;
|
|
216
|
+
updatedAt: Date;
|
|
217
|
+
name: string;
|
|
218
|
+
channel: string;
|
|
219
|
+
settings: Record<string, unknown>;
|
|
220
|
+
state: boolean;
|
|
221
|
+
defaultWorkflow: string | null;
|
|
222
|
+
} | null, unknown, z.core.$ZodTypeInternals<{
|
|
223
|
+
id: string;
|
|
224
|
+
createdAt: Date;
|
|
225
|
+
updatedAt: Date;
|
|
226
|
+
name: string;
|
|
227
|
+
channel: string;
|
|
228
|
+
settings: Record<string, unknown>;
|
|
229
|
+
state: boolean;
|
|
230
|
+
defaultWorkflow: string | null;
|
|
231
|
+
} | null, unknown>>;
|
|
232
|
+
}, z.core.$strip>;
|
|
233
|
+
export type SubscriberStub = z.infer<typeof subscriberStubSchema>;
|
|
234
|
+
export type Subscriber = z.infer<typeof subscriberSchema>;
|
|
235
|
+
export type SubscriberFull = z.infer<typeof subscriberFullSchema>;
|
|
236
|
+
//# sourceMappingURL=subscriber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriber.d.ts","sourceRoot":"","sources":["../../../src/chat/subscriber.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoCxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;iBAAuB,CAAC;AAEzD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAG5B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiB/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const threadStubSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
5
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
6
|
+
status: z.ZodEnum<{
|
|
7
|
+
open: "open";
|
|
8
|
+
closed: "closed";
|
|
9
|
+
}>;
|
|
10
|
+
lastMessageAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
11
|
+
closedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
12
|
+
closeReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
13
|
+
manual: "manual";
|
|
14
|
+
inactivity: "inactivity";
|
|
15
|
+
}>>>;
|
|
16
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export declare const threadSchema: z.ZodType<{
|
|
19
|
+
id: string;
|
|
20
|
+
createdAt: Date;
|
|
21
|
+
updatedAt: Date;
|
|
22
|
+
status: "open" | "closed";
|
|
23
|
+
subscriber: string;
|
|
24
|
+
source: string;
|
|
25
|
+
lastMessageAt?: Date | null | undefined;
|
|
26
|
+
closedAt?: Date | null | undefined;
|
|
27
|
+
closeReason?: "manual" | "inactivity" | null | undefined;
|
|
28
|
+
title?: string | null | undefined;
|
|
29
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
30
|
+
id: string;
|
|
31
|
+
createdAt: Date;
|
|
32
|
+
updatedAt: Date;
|
|
33
|
+
status: "open" | "closed";
|
|
34
|
+
subscriber: string;
|
|
35
|
+
source: string;
|
|
36
|
+
lastMessageAt?: Date | null | undefined;
|
|
37
|
+
closedAt?: Date | null | undefined;
|
|
38
|
+
closeReason?: "manual" | "inactivity" | null | undefined;
|
|
39
|
+
title?: string | null | undefined;
|
|
40
|
+
}, unknown>>;
|
|
41
|
+
export declare const threadFullSchema: z.ZodObject<{
|
|
42
|
+
id: z.ZodString;
|
|
43
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
44
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
45
|
+
status: z.ZodEnum<{
|
|
46
|
+
open: "open";
|
|
47
|
+
closed: "closed";
|
|
48
|
+
}>;
|
|
49
|
+
lastMessageAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
50
|
+
closedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
51
|
+
closeReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
52
|
+
manual: "manual";
|
|
53
|
+
inactivity: "inactivity";
|
|
54
|
+
}>>>;
|
|
55
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
subscriber: z.ZodType<{
|
|
57
|
+
id: string;
|
|
58
|
+
createdAt: Date;
|
|
59
|
+
updatedAt: Date;
|
|
60
|
+
firstName: string;
|
|
61
|
+
lastName: string;
|
|
62
|
+
language: string | null;
|
|
63
|
+
timezone: number;
|
|
64
|
+
locale: string | null;
|
|
65
|
+
gender: string | null;
|
|
66
|
+
country: string | null;
|
|
67
|
+
foreignId: string | null;
|
|
68
|
+
assignedAt: Date | null;
|
|
69
|
+
lastvisit: Date | null;
|
|
70
|
+
retainedFrom: Date | null;
|
|
71
|
+
channel: {
|
|
72
|
+
name: string | null;
|
|
73
|
+
data?: Record<string, any> | null | undefined;
|
|
74
|
+
};
|
|
75
|
+
labels: string[];
|
|
76
|
+
assignedTo: string | null;
|
|
77
|
+
avatar: string | null;
|
|
78
|
+
source: string | null;
|
|
79
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
80
|
+
id: string;
|
|
81
|
+
createdAt: Date;
|
|
82
|
+
updatedAt: Date;
|
|
83
|
+
firstName: string;
|
|
84
|
+
lastName: string;
|
|
85
|
+
language: string | null;
|
|
86
|
+
timezone: number;
|
|
87
|
+
locale: string | null;
|
|
88
|
+
gender: string | null;
|
|
89
|
+
country: string | null;
|
|
90
|
+
foreignId: string | null;
|
|
91
|
+
assignedAt: Date | null;
|
|
92
|
+
lastvisit: Date | null;
|
|
93
|
+
retainedFrom: Date | null;
|
|
94
|
+
channel: {
|
|
95
|
+
name: string | null;
|
|
96
|
+
data?: Record<string, any> | null | undefined;
|
|
97
|
+
};
|
|
98
|
+
labels: string[];
|
|
99
|
+
assignedTo: string | null;
|
|
100
|
+
avatar: string | null;
|
|
101
|
+
source: string | null;
|
|
102
|
+
}, unknown>>;
|
|
103
|
+
source: z.ZodType<{
|
|
104
|
+
id: string;
|
|
105
|
+
createdAt: Date;
|
|
106
|
+
updatedAt: Date;
|
|
107
|
+
name: string;
|
|
108
|
+
channel: string;
|
|
109
|
+
settings: Record<string, unknown>;
|
|
110
|
+
state: boolean;
|
|
111
|
+
defaultWorkflow: string | null;
|
|
112
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
113
|
+
id: string;
|
|
114
|
+
createdAt: Date;
|
|
115
|
+
updatedAt: Date;
|
|
116
|
+
name: string;
|
|
117
|
+
channel: string;
|
|
118
|
+
settings: Record<string, unknown>;
|
|
119
|
+
state: boolean;
|
|
120
|
+
defaultWorkflow: string | null;
|
|
121
|
+
}, unknown>>;
|
|
122
|
+
}, z.core.$strip>;
|
|
123
|
+
export type ThreadStub = z.infer<typeof threadStubSchema>;
|
|
124
|
+
export type Thread = z.infer<typeof threadSchema>;
|
|
125
|
+
export type ThreadFull = z.infer<typeof threadFullSchema>;
|
|
126
|
+
//# sourceMappingURL=thread.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../src/chat/thread.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuBxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;iBAAyB,CAAC;AAEvD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;YAYxB,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const contentTypeStubSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
5
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
schema: z.ZodAny;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export declare const contentTypeSchema: z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
12
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
schema: z.ZodAny;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare const contentTypeFullSchema: z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
19
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
schema: z.ZodAny;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type ContentTypeStub = z.infer<typeof contentTypeStubSchema>;
|
|
24
|
+
export type ContentType = z.infer<typeof contentTypeSchema>;
|
|
25
|
+
export type ContentTypeFull = z.infer<typeof contentTypeFullSchema>;
|
|
26
|
+
//# sourceMappingURL=content-type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-type.d.ts","sourceRoot":"","sources":["../../../src/cms/content-type.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,qBAAqB;;;;;;iBAA0B,CAAC;AAE7D,eAAO,MAAM,iBAAiB;;;;;;iBAA0B,CAAC;AAEzD,eAAO,MAAM,qBAAqB;;;;;;iBAA0B,CAAC;AAE7D,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"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const contentStubSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
5
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
status: z.ZodCoercedBoolean<unknown>;
|
|
8
|
+
properties: z.ZodType<Record<string, unknown> | null, unknown, z.core.$ZodTypeInternals<Record<string, unknown> | null, unknown>>;
|
|
9
|
+
searchText: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const contentSchema: z.ZodType<{
|
|
12
|
+
id: string;
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
updatedAt: Date;
|
|
15
|
+
title: string;
|
|
16
|
+
status: boolean;
|
|
17
|
+
properties: Record<string, unknown> | null;
|
|
18
|
+
searchText: string;
|
|
19
|
+
contentType: string;
|
|
20
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
21
|
+
id: string;
|
|
22
|
+
createdAt: Date;
|
|
23
|
+
updatedAt: Date;
|
|
24
|
+
title: string;
|
|
25
|
+
status: boolean;
|
|
26
|
+
properties: Record<string, unknown> | null;
|
|
27
|
+
searchText: string;
|
|
28
|
+
contentType: string;
|
|
29
|
+
}, unknown>>;
|
|
30
|
+
export declare const contentFullSchema: z.ZodObject<{
|
|
31
|
+
id: z.ZodString;
|
|
32
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
33
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
34
|
+
title: z.ZodString;
|
|
35
|
+
status: z.ZodCoercedBoolean<unknown>;
|
|
36
|
+
properties: z.ZodType<Record<string, unknown> | null, unknown, z.core.$ZodTypeInternals<Record<string, unknown> | null, unknown>>;
|
|
37
|
+
searchText: z.ZodString;
|
|
38
|
+
contentType: z.ZodObject<{
|
|
39
|
+
id: z.ZodString;
|
|
40
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
41
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
schema: z.ZodAny;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
export type ContentStub = z.infer<typeof contentStubSchema>;
|
|
47
|
+
export type Content = z.infer<typeof contentSchema>;
|
|
48
|
+
export type ContentFull = z.infer<typeof contentFullSchema>;
|
|
49
|
+
//# sourceMappingURL=content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/cms/content.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,eAAO,MAAM,iBAAiB;;;;;;;;iBAA0B,CAAC;AAEzD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;YAQzB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;iBAE5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { contentTypeFullSchema, contentTypeSchema, contentTypeStubSchema, type ContentType, type ContentTypeFull, type ContentTypeStub, } from "./content-type";
|
|
2
|
+
export { contentFullSchema, contentSchema, contentStubSchema, type Content, type ContentFull, type ContentStub, } from "./content";
|
|
3
|
+
export { MenuType, menuFullSchema, menuSchema, menuStubSchema, type Menu, type MenuFull, type MenuStub, } from "./menu";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cms/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,eAAe,GACrB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,WAAW,GACjB,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,QAAQ,EACR,cAAc,EACd,UAAU,EACV,cAAc,EACd,KAAK,IAAI,EACT,KAAK,QAAQ,EACb,KAAK,QAAQ,GACd,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare enum MenuType {
|
|
3
|
+
web_url = "web_url",
|
|
4
|
+
postback = "postback",
|
|
5
|
+
nested = "nested"
|
|
6
|
+
}
|
|
7
|
+
export declare const menuStubSchema: z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
10
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
11
|
+
title: z.ZodString;
|
|
12
|
+
type: z.ZodEnum<typeof MenuType>;
|
|
13
|
+
payload: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare const menuSchema: z.ZodType<{
|
|
17
|
+
id: string;
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
updatedAt: Date;
|
|
20
|
+
title: string;
|
|
21
|
+
type: MenuType;
|
|
22
|
+
payload?: string | null | undefined;
|
|
23
|
+
url?: string | null | undefined;
|
|
24
|
+
parent?: string | null | undefined;
|
|
25
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
26
|
+
id: string;
|
|
27
|
+
createdAt: Date;
|
|
28
|
+
updatedAt: Date;
|
|
29
|
+
title: string;
|
|
30
|
+
type: MenuType;
|
|
31
|
+
payload?: string | null | undefined;
|
|
32
|
+
url?: string | null | undefined;
|
|
33
|
+
parent?: string | null | undefined;
|
|
34
|
+
}, unknown>>;
|
|
35
|
+
export declare const menuFullSchema: z.ZodObject<{
|
|
36
|
+
id: z.ZodString;
|
|
37
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
38
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
39
|
+
title: z.ZodString;
|
|
40
|
+
type: z.ZodEnum<typeof MenuType>;
|
|
41
|
+
payload: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
parent: z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
44
|
+
id: string;
|
|
45
|
+
createdAt: Date;
|
|
46
|
+
updatedAt: Date;
|
|
47
|
+
title: string;
|
|
48
|
+
type: MenuType;
|
|
49
|
+
payload?: string | null | undefined;
|
|
50
|
+
url?: string | null | undefined;
|
|
51
|
+
parent?: string | null | undefined;
|
|
52
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
53
|
+
id: string;
|
|
54
|
+
createdAt: Date;
|
|
55
|
+
updatedAt: Date;
|
|
56
|
+
title: string;
|
|
57
|
+
type: MenuType;
|
|
58
|
+
payload?: string | null | undefined;
|
|
59
|
+
url?: string | null | undefined;
|
|
60
|
+
parent?: string | null | undefined;
|
|
61
|
+
}, unknown>>>>;
|
|
62
|
+
children: z.ZodOptional<z.ZodType<{
|
|
63
|
+
id: string;
|
|
64
|
+
createdAt: Date;
|
|
65
|
+
updatedAt: Date;
|
|
66
|
+
title: string;
|
|
67
|
+
type: MenuType;
|
|
68
|
+
payload?: string | null | undefined;
|
|
69
|
+
url?: string | null | undefined;
|
|
70
|
+
parent?: string | null | undefined;
|
|
71
|
+
}[], unknown, z.core.$ZodTypeInternals<{
|
|
72
|
+
id: string;
|
|
73
|
+
createdAt: Date;
|
|
74
|
+
updatedAt: Date;
|
|
75
|
+
title: string;
|
|
76
|
+
type: MenuType;
|
|
77
|
+
payload?: string | null | undefined;
|
|
78
|
+
url?: string | null | undefined;
|
|
79
|
+
parent?: string | null | undefined;
|
|
80
|
+
}[], unknown>>>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
export type MenuStub = z.infer<typeof menuStubSchema>;
|
|
83
|
+
export type Menu = z.infer<typeof menuSchema>;
|
|
84
|
+
export type MenuFull = z.infer<typeof menuFullSchema>;
|
|
85
|
+
//# sourceMappingURL=menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/cms/menu.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,oBAAY,QAAQ;IAClB,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,MAAM,WAAW;CAClB;AAaD,eAAO,MAAM,cAAc;;;;;;;;iBAAuB,CAAC;AAEnD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;YAQtB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|