@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,90 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { Action } from "./domain";
|
|
3
|
+
export declare const permissionStubSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
6
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
7
|
+
action: z.ZodEnum<typeof Action>;
|
|
8
|
+
relation: z.ZodEnum<{
|
|
9
|
+
createdBy: "createdBy";
|
|
10
|
+
role: "role";
|
|
11
|
+
}>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const permissionSchema: z.ZodType<{
|
|
14
|
+
id: string;
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
action: Action;
|
|
18
|
+
relation: "createdBy" | "role";
|
|
19
|
+
model: string;
|
|
20
|
+
role: string;
|
|
21
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
22
|
+
id: string;
|
|
23
|
+
createdAt: Date;
|
|
24
|
+
updatedAt: Date;
|
|
25
|
+
action: Action;
|
|
26
|
+
relation: "createdBy" | "role";
|
|
27
|
+
model: string;
|
|
28
|
+
role: string;
|
|
29
|
+
}, unknown>>;
|
|
30
|
+
export declare const permissionFullSchema: z.ZodObject<{
|
|
31
|
+
id: z.ZodString;
|
|
32
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
33
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
34
|
+
action: z.ZodEnum<typeof Action>;
|
|
35
|
+
relation: z.ZodEnum<{
|
|
36
|
+
createdBy: "createdBy";
|
|
37
|
+
role: "role";
|
|
38
|
+
}>;
|
|
39
|
+
model: z.ZodLazy<z.ZodObject<{
|
|
40
|
+
id: z.ZodString;
|
|
41
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
42
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
43
|
+
name: z.ZodString;
|
|
44
|
+
identity: z.ZodEnum<{
|
|
45
|
+
message: "message";
|
|
46
|
+
language: "language";
|
|
47
|
+
source: "source";
|
|
48
|
+
role: "role";
|
|
49
|
+
contenttype: "contenttype";
|
|
50
|
+
content: "content";
|
|
51
|
+
nlpentity: "nlpentity";
|
|
52
|
+
nlpsampleentity: "nlpsampleentity";
|
|
53
|
+
nlpsample: "nlpsample";
|
|
54
|
+
nlpvalue: "nlpvalue";
|
|
55
|
+
setting: "setting";
|
|
56
|
+
attachment: "attachment";
|
|
57
|
+
auditlog: "auditlog";
|
|
58
|
+
user: "user";
|
|
59
|
+
permission: "permission";
|
|
60
|
+
label: "label";
|
|
61
|
+
labelgroup: "labelgroup";
|
|
62
|
+
thread: "thread";
|
|
63
|
+
subscriber: "subscriber";
|
|
64
|
+
translation: "translation";
|
|
65
|
+
stats: "stats";
|
|
66
|
+
menu: "menu";
|
|
67
|
+
workflow: "workflow";
|
|
68
|
+
workflowversion: "workflowversion";
|
|
69
|
+
workflowrun: "workflowrun";
|
|
70
|
+
memorydefinition: "memorydefinition";
|
|
71
|
+
memoryrecord: "memoryrecord";
|
|
72
|
+
mcpserver: "mcpserver";
|
|
73
|
+
model: "model";
|
|
74
|
+
credential: "credential";
|
|
75
|
+
}>;
|
|
76
|
+
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
77
|
+
relation: z.ZodOptional<z.ZodType<"createdBy" | "role" | undefined, unknown, z.core.$ZodTypeInternals<"createdBy" | "role" | undefined, unknown>>>;
|
|
78
|
+
}, z.core.$strip>>;
|
|
79
|
+
role: z.ZodLazy<z.ZodObject<{
|
|
80
|
+
id: z.ZodString;
|
|
81
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
82
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
active: z.ZodCoercedBoolean<unknown>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
export type PermissionStub = z.infer<typeof permissionStubSchema>;
|
|
88
|
+
export type Permission = z.infer<typeof permissionSchema>;
|
|
89
|
+
export type PermissionFull = z.infer<typeof permissionFullSchema>;
|
|
90
|
+
//# sourceMappingURL=permission.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission.d.ts","sourceRoot":"","sources":["../../../src/user/permission.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,OAAO,EAAE,MAAM,EAAkB,MAAM,UAAU,CAAC;AAalD,eAAO,MAAM,oBAAoB;;;;;;;;;iBAA6B,CAAC;AAE/D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;YAY5B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG/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,111 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const roleStubSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
5
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
active: z.ZodCoercedBoolean<unknown>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export declare const roleSchema: z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
12
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
active: z.ZodCoercedBoolean<unknown>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare const roleFullSchema: z.ZodIntersection<z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
19
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
active: z.ZodCoercedBoolean<unknown>;
|
|
22
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
+
permissions: z.ZodOptional<z.ZodType<{
|
|
24
|
+
id: string;
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
updatedAt: Date;
|
|
27
|
+
action: import("./domain").Action;
|
|
28
|
+
relation: "createdBy" | "role";
|
|
29
|
+
model: string;
|
|
30
|
+
role: string;
|
|
31
|
+
}[], unknown, z.core.$ZodTypeInternals<{
|
|
32
|
+
id: string;
|
|
33
|
+
createdAt: Date;
|
|
34
|
+
updatedAt: Date;
|
|
35
|
+
action: import("./domain").Action;
|
|
36
|
+
relation: "createdBy" | "role";
|
|
37
|
+
model: string;
|
|
38
|
+
role: string;
|
|
39
|
+
}[], unknown>>>;
|
|
40
|
+
users: z.ZodType<{
|
|
41
|
+
id: string;
|
|
42
|
+
createdAt: Date;
|
|
43
|
+
updatedAt: Date;
|
|
44
|
+
firstName: string;
|
|
45
|
+
lastName: string;
|
|
46
|
+
language: string | null;
|
|
47
|
+
timezone: number;
|
|
48
|
+
locale: string | null;
|
|
49
|
+
gender: string | null;
|
|
50
|
+
country: string | null;
|
|
51
|
+
foreignId: string | null;
|
|
52
|
+
assignedAt: Date | null;
|
|
53
|
+
lastvisit: Date | null;
|
|
54
|
+
retainedFrom: Date | null;
|
|
55
|
+
channel: {
|
|
56
|
+
name: string | null;
|
|
57
|
+
data?: Record<string, any> | null | undefined;
|
|
58
|
+
};
|
|
59
|
+
username: string;
|
|
60
|
+
email: string;
|
|
61
|
+
sendEmail: boolean;
|
|
62
|
+
state: boolean;
|
|
63
|
+
resetCount: number;
|
|
64
|
+
resetToken: string | null;
|
|
65
|
+
labels: string[];
|
|
66
|
+
assignedTo: string | null;
|
|
67
|
+
roles: string[];
|
|
68
|
+
avatar: string | null;
|
|
69
|
+
provider?: {
|
|
70
|
+
strategy: "local";
|
|
71
|
+
sub?: string | undefined;
|
|
72
|
+
} | undefined;
|
|
73
|
+
}[], unknown, z.core.$ZodTypeInternals<{
|
|
74
|
+
id: string;
|
|
75
|
+
createdAt: Date;
|
|
76
|
+
updatedAt: Date;
|
|
77
|
+
firstName: string;
|
|
78
|
+
lastName: string;
|
|
79
|
+
language: string | null;
|
|
80
|
+
timezone: number;
|
|
81
|
+
locale: string | null;
|
|
82
|
+
gender: string | null;
|
|
83
|
+
country: string | null;
|
|
84
|
+
foreignId: string | null;
|
|
85
|
+
assignedAt: Date | null;
|
|
86
|
+
lastvisit: Date | null;
|
|
87
|
+
retainedFrom: Date | null;
|
|
88
|
+
channel: {
|
|
89
|
+
name: string | null;
|
|
90
|
+
data?: Record<string, any> | null | undefined;
|
|
91
|
+
};
|
|
92
|
+
username: string;
|
|
93
|
+
email: string;
|
|
94
|
+
sendEmail: boolean;
|
|
95
|
+
state: boolean;
|
|
96
|
+
resetCount: number;
|
|
97
|
+
resetToken: string | null;
|
|
98
|
+
labels: string[];
|
|
99
|
+
assignedTo: string | null;
|
|
100
|
+
roles: string[];
|
|
101
|
+
avatar: string | null;
|
|
102
|
+
provider?: {
|
|
103
|
+
strategy: "local";
|
|
104
|
+
sub?: string | undefined;
|
|
105
|
+
} | undefined;
|
|
106
|
+
}[], unknown>>;
|
|
107
|
+
}, z.core.$strip>>;
|
|
108
|
+
export type RoleStub = z.infer<typeof roleStubSchema>;
|
|
109
|
+
export type Role = z.infer<typeof roleSchema>;
|
|
110
|
+
export type RoleFull = z.infer<typeof roleFullSchema>;
|
|
111
|
+
//# sourceMappingURL=role.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role.d.ts","sourceRoot":"","sources":["../../../src/user/role.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAuBxB,eAAO,MAAM,cAAc;;;;;;iBAAiB,CAAC;AAE7C,eAAO,MAAM,UAAU;;;;;;iBAAiB,CAAC;AAEzC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAG1B,CAAC;AAEF,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"}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const userProviderSchema: z.ZodObject<{
|
|
3
|
+
strategy: z.ZodLiteral<"local">;
|
|
4
|
+
sub: z.ZodOptional<z.ZodString>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const userProfileAssignedStubSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
9
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
10
|
+
firstName: z.ZodString;
|
|
11
|
+
lastName: z.ZodString;
|
|
12
|
+
language: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
13
|
+
timezone: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
14
|
+
locale: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
15
|
+
gender: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
16
|
+
country: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
17
|
+
foreignId: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
18
|
+
assignedAt: z.ZodType<Date | null, unknown, z.core.$ZodTypeInternals<Date | null, unknown>>;
|
|
19
|
+
lastvisit: z.ZodType<Date | null, unknown, z.core.$ZodTypeInternals<Date | null, unknown>>;
|
|
20
|
+
retainedFrom: z.ZodType<Date | null, unknown, z.core.$ZodTypeInternals<Date | null, unknown>>;
|
|
21
|
+
channel: z.ZodType<{
|
|
22
|
+
name: string | null;
|
|
23
|
+
data?: Record<string, any> | null | undefined;
|
|
24
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
25
|
+
name: string | null;
|
|
26
|
+
data?: Record<string, any> | null | undefined;
|
|
27
|
+
}, unknown>>;
|
|
28
|
+
labels: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
29
|
+
assignedTo: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
30
|
+
username: z.ZodString;
|
|
31
|
+
email: z.ZodString;
|
|
32
|
+
sendEmail: z.ZodCoercedBoolean<unknown>;
|
|
33
|
+
state: z.ZodCoercedBoolean<unknown>;
|
|
34
|
+
resetCount: z.ZodCoercedNumber<unknown>;
|
|
35
|
+
resetToken: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
36
|
+
provider: z.ZodOptional<z.ZodObject<{
|
|
37
|
+
strategy: z.ZodLiteral<"local">;
|
|
38
|
+
sub: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
roles: z.ZodType<string[], unknown, z.core.$ZodTypeInternals<string[], unknown>>;
|
|
41
|
+
avatar: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export declare const userProfileAssignedSchema: z.ZodType<{
|
|
44
|
+
id: string;
|
|
45
|
+
createdAt: Date;
|
|
46
|
+
updatedAt: Date;
|
|
47
|
+
firstName: string;
|
|
48
|
+
lastName: string;
|
|
49
|
+
language: string | null;
|
|
50
|
+
timezone: number;
|
|
51
|
+
locale: string | null;
|
|
52
|
+
gender: string | null;
|
|
53
|
+
country: string | null;
|
|
54
|
+
foreignId: string | null;
|
|
55
|
+
assignedAt: Date | null;
|
|
56
|
+
lastvisit: Date | null;
|
|
57
|
+
retainedFrom: Date | null;
|
|
58
|
+
channel: {
|
|
59
|
+
name: string | null;
|
|
60
|
+
data?: Record<string, any> | null | undefined;
|
|
61
|
+
};
|
|
62
|
+
labels: string[];
|
|
63
|
+
assignedTo: string | null;
|
|
64
|
+
username: string;
|
|
65
|
+
email: string;
|
|
66
|
+
sendEmail: boolean;
|
|
67
|
+
state: boolean;
|
|
68
|
+
resetCount: number;
|
|
69
|
+
resetToken: string | null;
|
|
70
|
+
roles: string[];
|
|
71
|
+
avatar: string | null;
|
|
72
|
+
provider?: {
|
|
73
|
+
strategy: "local";
|
|
74
|
+
sub?: string | undefined;
|
|
75
|
+
} | undefined;
|
|
76
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
77
|
+
id: string;
|
|
78
|
+
createdAt: Date;
|
|
79
|
+
updatedAt: Date;
|
|
80
|
+
firstName: string;
|
|
81
|
+
lastName: string;
|
|
82
|
+
language: string | null;
|
|
83
|
+
timezone: number;
|
|
84
|
+
locale: string | null;
|
|
85
|
+
gender: string | null;
|
|
86
|
+
country: string | null;
|
|
87
|
+
foreignId: string | null;
|
|
88
|
+
assignedAt: Date | null;
|
|
89
|
+
lastvisit: Date | null;
|
|
90
|
+
retainedFrom: Date | null;
|
|
91
|
+
channel: {
|
|
92
|
+
name: string | null;
|
|
93
|
+
data?: Record<string, any> | null | undefined;
|
|
94
|
+
};
|
|
95
|
+
labels: string[];
|
|
96
|
+
assignedTo: string | null;
|
|
97
|
+
username: string;
|
|
98
|
+
email: string;
|
|
99
|
+
sendEmail: boolean;
|
|
100
|
+
state: boolean;
|
|
101
|
+
resetCount: number;
|
|
102
|
+
resetToken: string | null;
|
|
103
|
+
roles: string[];
|
|
104
|
+
avatar: string | null;
|
|
105
|
+
provider?: {
|
|
106
|
+
strategy: "local";
|
|
107
|
+
sub?: string | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
}, unknown>>;
|
|
110
|
+
export declare const userProfileAssignedFullSchema: z.ZodType<{
|
|
111
|
+
id: string;
|
|
112
|
+
createdAt: Date;
|
|
113
|
+
updatedAt: Date;
|
|
114
|
+
firstName: string;
|
|
115
|
+
lastName: string;
|
|
116
|
+
language: string | null;
|
|
117
|
+
timezone: number;
|
|
118
|
+
locale: string | null;
|
|
119
|
+
gender: string | null;
|
|
120
|
+
country: string | null;
|
|
121
|
+
foreignId: string | null;
|
|
122
|
+
assignedAt: Date | null;
|
|
123
|
+
lastvisit: Date | null;
|
|
124
|
+
retainedFrom: Date | null;
|
|
125
|
+
channel: {
|
|
126
|
+
name: string | null;
|
|
127
|
+
data?: Record<string, any> | null | undefined;
|
|
128
|
+
};
|
|
129
|
+
labels: string[];
|
|
130
|
+
assignedTo: string | null;
|
|
131
|
+
username: string;
|
|
132
|
+
email: string;
|
|
133
|
+
sendEmail: boolean;
|
|
134
|
+
state: boolean;
|
|
135
|
+
resetCount: number;
|
|
136
|
+
resetToken: string | null;
|
|
137
|
+
roles: string[];
|
|
138
|
+
avatar: string | null;
|
|
139
|
+
provider?: {
|
|
140
|
+
strategy: "local";
|
|
141
|
+
sub?: string | undefined;
|
|
142
|
+
} | undefined;
|
|
143
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
144
|
+
id: string;
|
|
145
|
+
createdAt: Date;
|
|
146
|
+
updatedAt: Date;
|
|
147
|
+
firstName: string;
|
|
148
|
+
lastName: string;
|
|
149
|
+
language: string | null;
|
|
150
|
+
timezone: number;
|
|
151
|
+
locale: string | null;
|
|
152
|
+
gender: string | null;
|
|
153
|
+
country: string | null;
|
|
154
|
+
foreignId: string | null;
|
|
155
|
+
assignedAt: Date | null;
|
|
156
|
+
lastvisit: Date | null;
|
|
157
|
+
retainedFrom: Date | null;
|
|
158
|
+
channel: {
|
|
159
|
+
name: string | null;
|
|
160
|
+
data?: Record<string, any> | null | undefined;
|
|
161
|
+
};
|
|
162
|
+
labels: string[];
|
|
163
|
+
assignedTo: string | null;
|
|
164
|
+
username: string;
|
|
165
|
+
email: string;
|
|
166
|
+
sendEmail: boolean;
|
|
167
|
+
state: boolean;
|
|
168
|
+
resetCount: number;
|
|
169
|
+
resetToken: string | null;
|
|
170
|
+
roles: string[];
|
|
171
|
+
avatar: string | null;
|
|
172
|
+
provider?: {
|
|
173
|
+
strategy: "local";
|
|
174
|
+
sub?: string | undefined;
|
|
175
|
+
} | undefined;
|
|
176
|
+
}, unknown>>;
|
|
177
|
+
export type UserProvider = z.infer<typeof userProviderSchema>;
|
|
178
|
+
export type UserProfileAssignedStub = z.infer<typeof userProfileAssignedStubSchema>;
|
|
179
|
+
export type UserProfileAssigned = z.infer<typeof userProfileAssignedSchema>;
|
|
180
|
+
export type UserProfileAssignedFull = z.infer<typeof userProfileAssignedFullSchema>;
|
|
181
|
+
//# sourceMappingURL=user-profile-assigned.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-profile-assigned.d.ts","sourceRoot":"","sources":["../../../src/user/user-profile-assigned.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,eAAO,MAAM,kBAAkB;;;iBAG7B,CAAC;AA4BH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAkC,CAAC;AAE7E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAGrC,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAA4B,CAAC;AAEvE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const userProfileStubSchema: 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
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const userProfileSchema: z.ZodObject<{
|
|
12
|
+
id: z.ZodString;
|
|
13
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
14
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
15
|
+
firstName: z.ZodString;
|
|
16
|
+
lastName: z.ZodString;
|
|
17
|
+
language: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
18
|
+
timezone: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export declare const userProfileFullSchema: z.ZodObject<{
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
23
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
24
|
+
firstName: z.ZodString;
|
|
25
|
+
lastName: z.ZodString;
|
|
26
|
+
language: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
27
|
+
timezone: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export type UserProfileStub = z.infer<typeof userProfileStubSchema>;
|
|
30
|
+
export type UserProfile = z.infer<typeof userProfileSchema>;
|
|
31
|
+
export type UserProfileFull = z.infer<typeof userProfileFullSchema>;
|
|
32
|
+
//# sourceMappingURL=user-profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-profile.d.ts","sourceRoot":"","sources":["../../../src/user/user-profile.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,qBAAqB;;;;;;;;iBAAwB,CAAC;AAE3D,eAAO,MAAM,iBAAiB;;;;;;;;iBAAwB,CAAC;AAEvD,eAAO,MAAM,qBAAqB;;;;;;;;iBAAwB,CAAC;AAE3D,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"}
|