@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,43 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare enum StatsType {
|
|
3
|
+
outgoing = "outgoing",
|
|
4
|
+
new_users = "new_users",
|
|
5
|
+
all_messages = "all_messages",
|
|
6
|
+
incoming = "incoming",
|
|
7
|
+
returning_users = "returning_users",
|
|
8
|
+
retention = "retention",
|
|
9
|
+
echo = "echo",
|
|
10
|
+
new_threads = "new_threads",
|
|
11
|
+
handoffs = "handoffs"
|
|
12
|
+
}
|
|
13
|
+
export declare const statsStubSchema: z.ZodObject<{
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
16
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
17
|
+
type: z.ZodEnum<typeof StatsType>;
|
|
18
|
+
day: z.ZodCoercedDate<unknown>;
|
|
19
|
+
value: z.ZodCoercedNumber<unknown>;
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export declare const statsSchema: z.ZodObject<{
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
25
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
26
|
+
type: z.ZodEnum<typeof StatsType>;
|
|
27
|
+
day: z.ZodCoercedDate<unknown>;
|
|
28
|
+
value: z.ZodCoercedNumber<unknown>;
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export declare const statsFullSchema: z.ZodObject<{
|
|
32
|
+
id: z.ZodString;
|
|
33
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
34
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
35
|
+
type: z.ZodEnum<typeof StatsType>;
|
|
36
|
+
day: z.ZodCoercedDate<unknown>;
|
|
37
|
+
value: z.ZodCoercedNumber<unknown>;
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
export type StatsStub = z.infer<typeof statsStubSchema>;
|
|
41
|
+
export type Stats = z.infer<typeof statsSchema>;
|
|
42
|
+
export type StatsFull = z.infer<typeof statsFullSchema>;
|
|
43
|
+
//# sourceMappingURL=stats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../src/analytics/stats.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,oBAAY,SAAS;IACnB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,YAAY,iBAAiB;IAC7B,QAAQ,aAAa;IACrB,eAAe,oBAAoB;IACnC,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;CACtB;AAUD,eAAO,MAAM,eAAe;;;;;;;;iBAAoB,CAAC;AAEjD,eAAO,MAAM,WAAW;;;;;;;;iBAAoB,CAAC;AAE7C,eAAO,MAAM,eAAe;;;;;;;;iBAAoB,CAAC;AAEjD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare enum AttachmentCreatedByRef {
|
|
3
|
+
User = "User",
|
|
4
|
+
Subscriber = "Subscriber"
|
|
5
|
+
}
|
|
6
|
+
export declare enum AttachmentResourceRef {
|
|
7
|
+
SettingAttachment = "Setting",
|
|
8
|
+
UserAvatar = "User",
|
|
9
|
+
SubscriberAvatar = "Subscriber",
|
|
10
|
+
ContentAttachment = "Content",
|
|
11
|
+
MessageAttachment = "Message"
|
|
12
|
+
}
|
|
13
|
+
export declare enum AttachmentAccess {
|
|
14
|
+
Public = "public",
|
|
15
|
+
Private = "private"
|
|
16
|
+
}
|
|
17
|
+
export declare const attachmentOwnerSchema: z.ZodType<{
|
|
18
|
+
id: string;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
firstName: string;
|
|
22
|
+
lastName: string;
|
|
23
|
+
language: string | null;
|
|
24
|
+
timezone: number;
|
|
25
|
+
locale: string | null;
|
|
26
|
+
gender: string | null;
|
|
27
|
+
country: string | null;
|
|
28
|
+
foreignId: string | null;
|
|
29
|
+
assignedAt: Date | null;
|
|
30
|
+
lastvisit: Date | null;
|
|
31
|
+
retainedFrom: Date | null;
|
|
32
|
+
channel: {
|
|
33
|
+
name: string | null;
|
|
34
|
+
data?: Record<string, any> | null | undefined;
|
|
35
|
+
};
|
|
36
|
+
labels: string[];
|
|
37
|
+
assignedTo: string | null;
|
|
38
|
+
username: string;
|
|
39
|
+
email: string;
|
|
40
|
+
sendEmail: boolean;
|
|
41
|
+
state: boolean;
|
|
42
|
+
resetCount: number;
|
|
43
|
+
resetToken: string | null;
|
|
44
|
+
roles: string[];
|
|
45
|
+
avatar: string | null;
|
|
46
|
+
provider?: {
|
|
47
|
+
strategy: "local";
|
|
48
|
+
sub?: string | undefined;
|
|
49
|
+
} | undefined;
|
|
50
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
51
|
+
id: string;
|
|
52
|
+
createdAt: Date;
|
|
53
|
+
updatedAt: Date;
|
|
54
|
+
firstName: string;
|
|
55
|
+
lastName: string;
|
|
56
|
+
language: string | null;
|
|
57
|
+
timezone: number;
|
|
58
|
+
locale: string | null;
|
|
59
|
+
gender: string | null;
|
|
60
|
+
country: string | null;
|
|
61
|
+
foreignId: string | null;
|
|
62
|
+
assignedAt: Date | null;
|
|
63
|
+
lastvisit: Date | null;
|
|
64
|
+
retainedFrom: Date | null;
|
|
65
|
+
channel: {
|
|
66
|
+
name: string | null;
|
|
67
|
+
data?: Record<string, any> | null | undefined;
|
|
68
|
+
};
|
|
69
|
+
labels: string[];
|
|
70
|
+
assignedTo: string | null;
|
|
71
|
+
username: string;
|
|
72
|
+
email: string;
|
|
73
|
+
sendEmail: boolean;
|
|
74
|
+
state: boolean;
|
|
75
|
+
resetCount: number;
|
|
76
|
+
resetToken: string | null;
|
|
77
|
+
roles: string[];
|
|
78
|
+
avatar: string | null;
|
|
79
|
+
provider?: {
|
|
80
|
+
strategy: "local";
|
|
81
|
+
sub?: string | undefined;
|
|
82
|
+
} | undefined;
|
|
83
|
+
}, unknown>>;
|
|
84
|
+
export declare const attachmentStubSchema: z.ZodObject<{
|
|
85
|
+
id: z.ZodString;
|
|
86
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
87
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
88
|
+
name: z.ZodString;
|
|
89
|
+
type: z.ZodString;
|
|
90
|
+
size: z.ZodCoercedNumber<unknown>;
|
|
91
|
+
location: z.ZodString;
|
|
92
|
+
channel: z.ZodOptional<z.ZodType<Record<string, unknown> | undefined, unknown, z.core.$ZodTypeInternals<Record<string, unknown> | undefined, unknown>>>;
|
|
93
|
+
createdByRef: z.ZodOptional<z.ZodEnum<typeof AttachmentCreatedByRef>>;
|
|
94
|
+
resourceRef: z.ZodEnum<typeof AttachmentResourceRef>;
|
|
95
|
+
access: z.ZodEnum<typeof AttachmentAccess>;
|
|
96
|
+
url: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
export declare const attachmentSchema: z.ZodType<{
|
|
99
|
+
id: string;
|
|
100
|
+
createdAt: Date;
|
|
101
|
+
updatedAt: Date;
|
|
102
|
+
name: string;
|
|
103
|
+
type: string;
|
|
104
|
+
size: number;
|
|
105
|
+
location: string;
|
|
106
|
+
resourceRef: AttachmentResourceRef;
|
|
107
|
+
access: AttachmentAccess;
|
|
108
|
+
url: string;
|
|
109
|
+
channel?: Record<string, unknown> | undefined;
|
|
110
|
+
createdByRef?: AttachmentCreatedByRef | undefined;
|
|
111
|
+
createdBy?: string | null | undefined;
|
|
112
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
113
|
+
id: string;
|
|
114
|
+
createdAt: Date;
|
|
115
|
+
updatedAt: Date;
|
|
116
|
+
name: string;
|
|
117
|
+
type: string;
|
|
118
|
+
size: number;
|
|
119
|
+
location: string;
|
|
120
|
+
resourceRef: AttachmentResourceRef;
|
|
121
|
+
access: AttachmentAccess;
|
|
122
|
+
url: string;
|
|
123
|
+
channel?: Record<string, unknown> | undefined;
|
|
124
|
+
createdByRef?: AttachmentCreatedByRef | undefined;
|
|
125
|
+
createdBy?: string | null | undefined;
|
|
126
|
+
}, unknown>>;
|
|
127
|
+
export declare const attachmentFullSchema: z.ZodObject<{
|
|
128
|
+
id: z.ZodString;
|
|
129
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
130
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
131
|
+
name: z.ZodString;
|
|
132
|
+
type: z.ZodString;
|
|
133
|
+
size: z.ZodCoercedNumber<unknown>;
|
|
134
|
+
location: z.ZodString;
|
|
135
|
+
channel: z.ZodOptional<z.ZodType<Record<string, unknown> | undefined, unknown, z.core.$ZodTypeInternals<Record<string, unknown> | undefined, unknown>>>;
|
|
136
|
+
createdByRef: z.ZodOptional<z.ZodEnum<typeof AttachmentCreatedByRef>>;
|
|
137
|
+
resourceRef: z.ZodEnum<typeof AttachmentResourceRef>;
|
|
138
|
+
access: z.ZodEnum<typeof AttachmentAccess>;
|
|
139
|
+
url: z.ZodType<string, unknown, z.core.$ZodTypeInternals<string, unknown>>;
|
|
140
|
+
createdBy: z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
141
|
+
id: string;
|
|
142
|
+
createdAt: Date;
|
|
143
|
+
updatedAt: Date;
|
|
144
|
+
firstName: string;
|
|
145
|
+
lastName: string;
|
|
146
|
+
language: string | null;
|
|
147
|
+
timezone: number;
|
|
148
|
+
locale: string | null;
|
|
149
|
+
gender: string | null;
|
|
150
|
+
country: string | null;
|
|
151
|
+
foreignId: string | null;
|
|
152
|
+
assignedAt: Date | null;
|
|
153
|
+
lastvisit: Date | null;
|
|
154
|
+
retainedFrom: Date | null;
|
|
155
|
+
channel: {
|
|
156
|
+
name: string | null;
|
|
157
|
+
data?: Record<string, any> | null | undefined;
|
|
158
|
+
};
|
|
159
|
+
labels: string[];
|
|
160
|
+
assignedTo: string | null;
|
|
161
|
+
username: string;
|
|
162
|
+
email: string;
|
|
163
|
+
sendEmail: boolean;
|
|
164
|
+
state: boolean;
|
|
165
|
+
resetCount: number;
|
|
166
|
+
resetToken: string | null;
|
|
167
|
+
roles: string[];
|
|
168
|
+
avatar: string | null;
|
|
169
|
+
provider?: {
|
|
170
|
+
strategy: "local";
|
|
171
|
+
sub?: string | undefined;
|
|
172
|
+
} | undefined;
|
|
173
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
174
|
+
id: string;
|
|
175
|
+
createdAt: Date;
|
|
176
|
+
updatedAt: Date;
|
|
177
|
+
firstName: string;
|
|
178
|
+
lastName: string;
|
|
179
|
+
language: string | null;
|
|
180
|
+
timezone: number;
|
|
181
|
+
locale: string | null;
|
|
182
|
+
gender: string | null;
|
|
183
|
+
country: string | null;
|
|
184
|
+
foreignId: string | null;
|
|
185
|
+
assignedAt: Date | null;
|
|
186
|
+
lastvisit: Date | null;
|
|
187
|
+
retainedFrom: Date | null;
|
|
188
|
+
channel: {
|
|
189
|
+
name: string | null;
|
|
190
|
+
data?: Record<string, any> | null | undefined;
|
|
191
|
+
};
|
|
192
|
+
labels: string[];
|
|
193
|
+
assignedTo: string | null;
|
|
194
|
+
username: string;
|
|
195
|
+
email: string;
|
|
196
|
+
sendEmail: boolean;
|
|
197
|
+
state: boolean;
|
|
198
|
+
resetCount: number;
|
|
199
|
+
resetToken: string | null;
|
|
200
|
+
roles: string[];
|
|
201
|
+
avatar: string | null;
|
|
202
|
+
provider?: {
|
|
203
|
+
strategy: "local";
|
|
204
|
+
sub?: string | undefined;
|
|
205
|
+
} | undefined;
|
|
206
|
+
}, unknown>>>>;
|
|
207
|
+
}, z.core.$strip>;
|
|
208
|
+
export type AttachmentOwner = z.infer<typeof attachmentOwnerSchema>;
|
|
209
|
+
export type AttachmentStub = z.infer<typeof attachmentStubSchema>;
|
|
210
|
+
export type Attachment = z.infer<typeof attachmentSchema>;
|
|
211
|
+
export type AttachmentFull = z.infer<typeof attachmentFullSchema>;
|
|
212
|
+
//# sourceMappingURL=attachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachment.d.ts","sourceRoot":"","sources":["../../../src/attachment/attachment.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,oBAAY,sBAAsB;IAChC,IAAI,SAAS;IACb,UAAU,eAAe;CAC1B;AAED,oBAAY,qBAAqB;IAC/B,iBAAiB,YAAY;IAC7B,UAAU,SAAS;IACnB,gBAAgB,eAAe;IAC/B,iBAAiB,YAAY;IAC7B,iBAAiB,YAAY;CAC9B;AAED,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAMD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAA4B,CAAC;AAiB/D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;iBAA6B,CAAC;AAE/D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAQ5B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE/B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,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,2 @@
|
|
|
1
|
+
export { AttachmentAccess, AttachmentCreatedByRef, AttachmentResourceRef, attachmentFullSchema, attachmentOwnerSchema, attachmentSchema, attachmentStubSchema, type Attachment, type AttachmentFull, type AttachmentOwner, type AttachmentStub, } from "./attachment";
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/attachment/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,cAAc,GACpB,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const auditLogSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
5
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
6
|
+
resourceId: z.ZodString;
|
|
7
|
+
resourceType: z.ZodString;
|
|
8
|
+
resourceLabel: z.ZodNullable<z.ZodString>;
|
|
9
|
+
operationId: z.ZodString;
|
|
10
|
+
operationType: z.ZodString;
|
|
11
|
+
operationStatus: z.ZodEnum<{
|
|
12
|
+
UNSPECIFIED: "UNSPECIFIED";
|
|
13
|
+
SUCCEEDED: "SUCCEEDED";
|
|
14
|
+
FAILED: "FAILED";
|
|
15
|
+
}>;
|
|
16
|
+
actorId: z.ZodString;
|
|
17
|
+
actorType: z.ZodString;
|
|
18
|
+
actorLabel: z.ZodNullable<z.ZodString>;
|
|
19
|
+
actorIp: z.ZodNullable<z.ZodString>;
|
|
20
|
+
actorAgent: z.ZodNullable<z.ZodString>;
|
|
21
|
+
requestId: z.ZodNullable<z.ZodString>;
|
|
22
|
+
requestMethod: z.ZodNullable<z.ZodString>;
|
|
23
|
+
requestPath: z.ZodNullable<z.ZodString>;
|
|
24
|
+
dataBefore: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
25
|
+
dataAfter: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
26
|
+
dataDiff: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
27
|
+
raw: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export declare const auditLogFullSchema: z.ZodObject<{
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
32
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
33
|
+
resourceId: z.ZodString;
|
|
34
|
+
resourceType: z.ZodString;
|
|
35
|
+
resourceLabel: z.ZodNullable<z.ZodString>;
|
|
36
|
+
operationId: z.ZodString;
|
|
37
|
+
operationType: z.ZodString;
|
|
38
|
+
operationStatus: z.ZodEnum<{
|
|
39
|
+
UNSPECIFIED: "UNSPECIFIED";
|
|
40
|
+
SUCCEEDED: "SUCCEEDED";
|
|
41
|
+
FAILED: "FAILED";
|
|
42
|
+
}>;
|
|
43
|
+
actorId: z.ZodString;
|
|
44
|
+
actorType: z.ZodString;
|
|
45
|
+
actorLabel: z.ZodNullable<z.ZodString>;
|
|
46
|
+
actorIp: z.ZodNullable<z.ZodString>;
|
|
47
|
+
actorAgent: z.ZodNullable<z.ZodString>;
|
|
48
|
+
requestId: z.ZodNullable<z.ZodString>;
|
|
49
|
+
requestMethod: z.ZodNullable<z.ZodString>;
|
|
50
|
+
requestPath: z.ZodNullable<z.ZodString>;
|
|
51
|
+
dataBefore: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
52
|
+
dataAfter: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
53
|
+
dataDiff: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
54
|
+
raw: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export type AuditLog = z.infer<typeof auditLogSchema>;
|
|
57
|
+
export type AuditLogFull = z.infer<typeof auditLogFullSchema>;
|
|
58
|
+
//# sourceMappingURL=audit-log.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-log.d.ts","sourceRoot":"","sources":["../../../src/audit/audit-log.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmBzB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAiB,CAAC;AAEjD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/audit/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,KAAK,QAAQ,EACb,KAAK,YAAY,GAClB,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const channelMetadataSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
settingsSchema: z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type ChannelMetadata = z.infer<typeof channelMetadataSchema>;
|
|
7
|
+
//# sourceMappingURL=channel-metadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channel-metadata.d.ts","sourceRoot":"","sources":["../../../src/channel/channel-metadata.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,qBAAqB;;;iBAA8B,CAAC;AAEjE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { sourceSchema, sourceStubSchema, type Source, type SourceStub, } from "./source";
|
|
2
|
+
export { sourceFullSchema, type SourceFull } from "./source-full";
|
|
3
|
+
export { channelMetadataSchema, type ChannelMetadata, } from "./channel-metadata";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/channel/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,KAAK,MAAM,EACX,KAAK,UAAU,GAChB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,gBAAgB,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAElE,OAAO,EACL,qBAAqB,EACrB,KAAK,eAAe,GACrB,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const sourceFullSchema: z.ZodType<{
|
|
3
|
+
id: string;
|
|
4
|
+
createdAt: Date;
|
|
5
|
+
updatedAt: Date;
|
|
6
|
+
name: string;
|
|
7
|
+
channel: string;
|
|
8
|
+
settings: Record<string, unknown>;
|
|
9
|
+
state: boolean;
|
|
10
|
+
defaultWorkflow: {
|
|
11
|
+
id: string;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
name: string;
|
|
15
|
+
description: string | null;
|
|
16
|
+
type: import("..").WorkflowType;
|
|
17
|
+
schedule: string | null;
|
|
18
|
+
inputSchema: any;
|
|
19
|
+
builtin: boolean;
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
zoom: number;
|
|
23
|
+
direction: import("..").DirectionType;
|
|
24
|
+
createdBy: string | null;
|
|
25
|
+
runAfterMs: number;
|
|
26
|
+
currentVersion?: string | null | undefined;
|
|
27
|
+
publishedVersion?: string | null | undefined;
|
|
28
|
+
} | null;
|
|
29
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
30
|
+
id: string;
|
|
31
|
+
createdAt: Date;
|
|
32
|
+
updatedAt: Date;
|
|
33
|
+
name: string;
|
|
34
|
+
channel: string;
|
|
35
|
+
settings: Record<string, unknown>;
|
|
36
|
+
state: boolean;
|
|
37
|
+
defaultWorkflow: {
|
|
38
|
+
id: string;
|
|
39
|
+
createdAt: Date;
|
|
40
|
+
updatedAt: Date;
|
|
41
|
+
name: string;
|
|
42
|
+
description: string | null;
|
|
43
|
+
type: import("..").WorkflowType;
|
|
44
|
+
schedule: string | null;
|
|
45
|
+
inputSchema: any;
|
|
46
|
+
builtin: boolean;
|
|
47
|
+
x: number;
|
|
48
|
+
y: number;
|
|
49
|
+
zoom: number;
|
|
50
|
+
direction: import("..").DirectionType;
|
|
51
|
+
createdBy: string | null;
|
|
52
|
+
runAfterMs: number;
|
|
53
|
+
currentVersion?: string | null | undefined;
|
|
54
|
+
publishedVersion?: string | null | undefined;
|
|
55
|
+
} | null;
|
|
56
|
+
}, unknown>>;
|
|
57
|
+
export type SourceFull = z.infer<typeof sourceFullSchema>;
|
|
58
|
+
//# sourceMappingURL=source-full.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-full.d.ts","sourceRoot":"","sources":["../../../src/channel/source-full.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAQ5B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const sourceAliasMap: {
|
|
3
|
+
readonly defaultWorkflowId: "defaultWorkflow";
|
|
4
|
+
};
|
|
5
|
+
export declare const sourceObjectSchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
8
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
channel: z.ZodString;
|
|
11
|
+
settings: z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>;
|
|
12
|
+
state: z.ZodCoercedBoolean<unknown>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export declare const sourceStubSchema: z.ZodObject<{
|
|
15
|
+
id: z.ZodString;
|
|
16
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
17
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
channel: z.ZodString;
|
|
20
|
+
settings: z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>;
|
|
21
|
+
state: z.ZodCoercedBoolean<unknown>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export declare const sourceSchema: z.ZodType<{
|
|
24
|
+
id: string;
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
updatedAt: Date;
|
|
27
|
+
name: string;
|
|
28
|
+
channel: string;
|
|
29
|
+
settings: Record<string, unknown>;
|
|
30
|
+
state: boolean;
|
|
31
|
+
defaultWorkflow: string | null;
|
|
32
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
33
|
+
id: string;
|
|
34
|
+
createdAt: Date;
|
|
35
|
+
updatedAt: Date;
|
|
36
|
+
name: string;
|
|
37
|
+
channel: string;
|
|
38
|
+
settings: Record<string, unknown>;
|
|
39
|
+
state: boolean;
|
|
40
|
+
defaultWorkflow: string | null;
|
|
41
|
+
}, unknown>>;
|
|
42
|
+
export type SourceStub = z.infer<typeof sourceStubSchema>;
|
|
43
|
+
export type Source = z.infer<typeof sourceSchema>;
|
|
44
|
+
//# sourceMappingURL=source.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../../src/channel/source.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,cAAc;;CAEjB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;iBAS7B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;iBAAqB,CAAC;AAEnD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;YAQxB,CAAC;AAEF,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"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare enum FileType {
|
|
3
|
+
image = "image",
|
|
4
|
+
video = "video",
|
|
5
|
+
audio = "audio",
|
|
6
|
+
file = "file",
|
|
7
|
+
unknown = "unknown"
|
|
8
|
+
}
|
|
9
|
+
export declare const fileTypeSchema: z.ZodEnum<typeof FileType>;
|
|
10
|
+
export declare const attachmentRefSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
11
|
+
id: z.ZodNullable<z.ZodString>;
|
|
12
|
+
url: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
url: z.ZodString;
|
|
16
|
+
}, z.core.$strip>]>;
|
|
17
|
+
export type AttachmentRef = z.infer<typeof attachmentRefSchema>;
|
|
18
|
+
export declare const attachmentPayloadSchema: z.ZodObject<{
|
|
19
|
+
type: z.ZodEnum<typeof FileType>;
|
|
20
|
+
payload: z.ZodUnion<readonly [z.ZodObject<{
|
|
21
|
+
id: z.ZodNullable<z.ZodString>;
|
|
22
|
+
url: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
url: z.ZodString;
|
|
26
|
+
}, z.core.$strip>]>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export type AttachmentPayload = z.infer<typeof attachmentPayloadSchema>;
|
|
29
|
+
export type TAttachmentForeignKey = AttachmentRef;
|
|
30
|
+
export interface IAttachmentPayload {
|
|
31
|
+
type: FileType;
|
|
32
|
+
payload: AttachmentRef;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=attachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachment.d.ts","sourceRoot":"","sources":["../../../src/chat/attachment.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;IACb,OAAO,YAAY;CACpB;AAED,eAAO,MAAM,cAAc,4BAAmB,CAAC;AAE/C,eAAO,MAAM,mBAAmB;;;;;;mBAS9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,uBAAuB;;;;;;;;;iBAGlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC;AAElD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,aAAa,CAAC;CACxB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare enum ButtonType {
|
|
3
|
+
postback = "postback",
|
|
4
|
+
web_url = "web_url"
|
|
5
|
+
}
|
|
6
|
+
export type PostBackButton = {
|
|
7
|
+
type: ButtonType.postback;
|
|
8
|
+
title: string;
|
|
9
|
+
payload: string;
|
|
10
|
+
};
|
|
11
|
+
export type WebviewHeightRatio = "compact" | "tall" | "full";
|
|
12
|
+
export type WebUrlButton = {
|
|
13
|
+
type: ButtonType.web_url;
|
|
14
|
+
title: string;
|
|
15
|
+
url: string;
|
|
16
|
+
messenger_extensions?: boolean;
|
|
17
|
+
webview_height_ratio?: WebviewHeightRatio;
|
|
18
|
+
};
|
|
19
|
+
export type Button = PostBackButton | WebUrlButton;
|
|
20
|
+
export type AnyButton = Button;
|
|
21
|
+
export declare const buttonSchema: z.ZodType<Button>;
|
|
22
|
+
export declare enum PayloadType {
|
|
23
|
+
location = "location",
|
|
24
|
+
attachment = "attachment",
|
|
25
|
+
quickReply = "quickReply",
|
|
26
|
+
button = "button",
|
|
27
|
+
outcome = "outcome",
|
|
28
|
+
menu = "menu",
|
|
29
|
+
content = "content"
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/chat/button.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,UAAU;IACpB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAE7D,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,oBAAoB,CAAC,EAAE,kBAAkB,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,cAAc,GAAG,YAAY,CAAC;AAEnD,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B,eAAO,MAAM,YAAY,EA8CN,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AAErC,oBAAY,WAAW;IACrB,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,OAAO,YAAY;CACpB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { fileTypeSchema, attachmentRefSchema, attachmentPayloadSchema, FileType, type AttachmentRef, type AttachmentPayload, type IAttachmentPayload, type TAttachmentForeignKey, } from "./attachment";
|
|
2
|
+
export { buttonSchema, ButtonType, PayloadType, type AnyButton, type Button, type PostBackButton, type WebUrlButton, type WebviewHeightRatio, } from "./button";
|
|
3
|
+
export { contentOptionsSchema, fallbackOptionsSchema, ActionOptionsSchema, type ActionOptions, type ContentOptions, type FallbackOptions, } from "./options";
|
|
4
|
+
export { coordinatesSchema, payloadSchema, stdQuickReplySchema, type Payload, type StdQuickReply, } from "./quick-reply";
|
|
5
|
+
export { incomingMessageType, outgoingMessageTypeSchema, payloadTypeSchema, stdOutgoingTextMessageDataSchema, stdOutgoingQuickRepliesMessageDataSchema, stdOutgoingButtonsMessageDataSchema, stdOutgoingListMessageDataSchema, stdOutgoingAttachmentMessageDataSchema, stdOutgoingSystemMessageDataSchema, stdOutgoingTextMessageSchema, stdOutgoingQuickRepliesMessageSchema, stdOutgoingButtonsMessageSchema, contentElementSchema, contentPaginationSchema, stdOutgoingListMessageSchema, stdOutgoingCarouselMessageSchema, stdOutgoingAttachmentMessageSchema, stdOutgoingSystemMessageSchema, stdOutgoingMessageSchema, stdIncomingTextMessageDataSchema, stdIncomingPayloadMessageDataSchema, stdIncomingLocationMessageDataSchema, stdIncomingAttachmentMessageDataSchema, stdIncomingTextMessageSchema, stdIncomingPostBackMessageSchema, stdIncomingQuickReplyMessageSchema, stdIncomingLocationMessageSchema, stdIncomingAttachmentMessageSchema, stdIncomingMessageSchema, stdOutgoingTextEnvelopeSchema, stdOutgoingQuickRepliesEnvelopeSchema, stdOutgoingButtonsEnvelopeSchema, stdOutgoingListEnvelopeSchema, stdOutgoingAttachmentEnvelopeSchema, stdOutgoingSystemEnvelopeSchema, stdOutgoingMessageEnvelopeSchema, stdOutgoingEnvelopeSchema, IncomingMessageType, OutgoingMessageType, StdEventType, type AnyMessage, type ContentElement, type ContentPagination, type IncomingMessage, type IncomingMessageTypeLiteral, type OutgoingMessage, type OutgoingMessageTypeLiteral, type OutgoingPopulatedListMessage, type PayloadTypeLiteral, type StdIncomingAttachmentMessageData, type StdIncomingAttachmentMessage, type StdIncomingLocationMessageData, type StdIncomingLocationMessage, type StdIncomingPayloadMessageData, type StdIncomingQuickReplyMessage, type StdIncomingMessage, type StdIncomingPostBackMessage, type StdIncomingTextMessageData, type StdIncomingTextMessage, type StdOutgoingAttachmentMessageData, type StdOutgoingAttachmentEnvelope, type StdOutgoingAttachmentMessage, type StdOutgoingButtonsMessageData, type StdOutgoingButtonsEnvelope, type StdOutgoingButtonsMessage, type StdOutgoingCarouselMessage, type StdOutgoingEnvelope, type StdOutgoingListMessageData, type StdOutgoingListEnvelope, type StdOutgoingListMessage, type StdOutgoingMessage, type StdOutgoingQuickRepliesMessageData, type StdOutgoingMessageEnvelope, type StdOutgoingQuickRepliesEnvelope, type StdOutgoingQuickRepliesMessage, type StdOutgoingSystemMessageData, type StdOutgoingSystemEnvelope, type StdOutgoingSystemMessage, type StdOutgoingTextMessageData, type StdOutgoingTextEnvelope, type StdOutgoingTextMessage, } from "./message-contract";
|
|
6
|
+
export { labelGroupFullSchema, labelGroupSchema, labelGroupStubSchema, type LabelGroup, type LabelGroupFull, type LabelGroupStub, } from "./label-group";
|
|
7
|
+
export { labelFullSchema, labelSchema, labelStubSchema, type Label, type LabelFull, type LabelStub, } from "./label";
|
|
8
|
+
export { subscriberFullSchema, subscriberSchema, subscriberStubSchema, type Subscriber, type SubscriberFull, type SubscriberStub, } from "./subscriber";
|
|
9
|
+
export { threadFullSchema, threadSchema, threadStubSchema, type Thread, type ThreadFull, type ThreadStub, } from "./thread";
|
|
10
|
+
export { messageFullSchema, messageSchema, messageStubSchema, type Message, type MessageFull, type MessageStub, } from "./message";
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/chat/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const labelGroupStubSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
5
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const labelGroupSchema: z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
11
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
labels: z.ZodOptional<z.ZodType<undefined, unknown, z.core.$ZodTypeInternals<undefined, unknown>>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const labelGroupFullSchema: z.ZodObject<{
|
|
16
|
+
id: z.ZodString;
|
|
17
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
18
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
labels: z.ZodOptional<z.ZodType<{
|
|
21
|
+
id: string;
|
|
22
|
+
createdAt: Date;
|
|
23
|
+
updatedAt: Date;
|
|
24
|
+
title: string;
|
|
25
|
+
name: string;
|
|
26
|
+
builtin: boolean;
|
|
27
|
+
label_id?: Record<string, unknown> | null | undefined;
|
|
28
|
+
description?: string | null | undefined;
|
|
29
|
+
group?: string | null | undefined;
|
|
30
|
+
users?: undefined;
|
|
31
|
+
}[], unknown, z.core.$ZodTypeInternals<{
|
|
32
|
+
id: string;
|
|
33
|
+
createdAt: Date;
|
|
34
|
+
updatedAt: Date;
|
|
35
|
+
title: string;
|
|
36
|
+
name: string;
|
|
37
|
+
builtin: boolean;
|
|
38
|
+
label_id?: Record<string, unknown> | null | undefined;
|
|
39
|
+
description?: string | null | undefined;
|
|
40
|
+
group?: string | null | undefined;
|
|
41
|
+
users?: undefined;
|
|
42
|
+
}[], unknown>>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export type LabelGroupStub = z.infer<typeof labelGroupStubSchema>;
|
|
45
|
+
export type LabelGroup = z.infer<typeof labelGroupSchema>;
|
|
46
|
+
export type LabelGroupFull = z.infer<typeof labelGroupFullSchema>;
|
|
47
|
+
//# sourceMappingURL=label-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label-group.d.ts","sourceRoot":"","sources":["../../../src/chat/label-group.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,oBAAoB;;;;;iBAAyB,CAAC;AAE3D,eAAO,MAAM,gBAAgB;;;;;;iBAE3B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK/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"}
|