@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,26 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const dummyStubSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
5
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
6
|
+
dummy: z.ZodString;
|
|
7
|
+
dynamicField: z.ZodOptional<z.ZodType<Record<string, unknown> | undefined, unknown, z.core.$ZodTypeInternals<Record<string, unknown> | undefined, unknown>>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export declare const dummySchema: z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
12
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
13
|
+
dummy: z.ZodString;
|
|
14
|
+
dynamicField: z.ZodOptional<z.ZodType<Record<string, unknown> | undefined, unknown, z.core.$ZodTypeInternals<Record<string, unknown> | undefined, unknown>>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare const dummyFullSchema: z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
19
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
20
|
+
dummy: z.ZodString;
|
|
21
|
+
dynamicField: z.ZodOptional<z.ZodType<Record<string, unknown> | undefined, unknown, z.core.$ZodTypeInternals<Record<string, unknown> | undefined, unknown>>>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type DummyStub = z.infer<typeof dummyStubSchema>;
|
|
24
|
+
export type Dummy = z.infer<typeof dummySchema>;
|
|
25
|
+
export type DummyFull = z.infer<typeof dummyFullSchema>;
|
|
26
|
+
//# sourceMappingURL=dummy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dummy.d.ts","sourceRoot":"","sources":["../../../src/dummy/dummy.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dummy/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,eAAe,EACf,WAAW,EACX,eAAe,EACf,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,SAAS,GACf,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { languageFullSchema, languageSchema, languageStubSchema, type Language, type LanguageFull, type LanguageStub, } from "./language";
|
|
2
|
+
export { translationFullSchema, translationSchema, translationStubSchema, type Translation, type TranslationFull, type TranslationStub, } from "./translation";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/i18n/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,YAAY,GAClB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,eAAe,GACrB,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const languageStubSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
5
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
code: z.ZodString;
|
|
8
|
+
isDefault: z.ZodCoercedBoolean<unknown>;
|
|
9
|
+
isRTL: z.ZodCoercedBoolean<unknown>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const languageSchema: z.ZodObject<{
|
|
12
|
+
id: z.ZodString;
|
|
13
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
14
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
15
|
+
title: z.ZodString;
|
|
16
|
+
code: z.ZodString;
|
|
17
|
+
isDefault: z.ZodCoercedBoolean<unknown>;
|
|
18
|
+
isRTL: z.ZodCoercedBoolean<unknown>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export declare const languageFullSchema: z.ZodObject<{
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
23
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
24
|
+
title: z.ZodString;
|
|
25
|
+
code: z.ZodString;
|
|
26
|
+
isDefault: z.ZodCoercedBoolean<unknown>;
|
|
27
|
+
isRTL: z.ZodCoercedBoolean<unknown>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export type LanguageStub = z.infer<typeof languageStubSchema>;
|
|
30
|
+
export type Language = z.infer<typeof languageSchema>;
|
|
31
|
+
export type LanguageFull = z.infer<typeof languageFullSchema>;
|
|
32
|
+
//# sourceMappingURL=language.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../../src/i18n/language.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,kBAAkB;;;;;;;;iBAAuB,CAAC;AAEvD,eAAO,MAAM,cAAc;;;;;;;;iBAAuB,CAAC;AAEnD,eAAO,MAAM,kBAAkB;;;;;;;;iBAAuB,CAAC;AAEvD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,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,26 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const translationStubSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
5
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
6
|
+
str: z.ZodString;
|
|
7
|
+
translations: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export declare const translationSchema: z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
12
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
13
|
+
str: z.ZodString;
|
|
14
|
+
translations: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare const translationFullSchema: z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
19
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
20
|
+
str: z.ZodString;
|
|
21
|
+
translations: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type TranslationStub = z.infer<typeof translationStubSchema>;
|
|
24
|
+
export type Translation = z.infer<typeof translationSchema>;
|
|
25
|
+
export type TranslationFull = z.infer<typeof translationFullSchema>;
|
|
26
|
+
//# sourceMappingURL=translation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translation.d.ts","sourceRoot":"","sources":["../../../src/i18n/translation.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,12 @@
|
|
|
1
|
+
export * from "./attachment";
|
|
2
|
+
export * from "./analytics";
|
|
3
|
+
export * from "./audit";
|
|
4
|
+
export * from "./channel";
|
|
5
|
+
export * from "./chat";
|
|
6
|
+
export * from "./cms";
|
|
7
|
+
export * from "./i18n";
|
|
8
|
+
export * from "./setting";
|
|
9
|
+
export * from "./user";
|
|
10
|
+
export * from "./workflow";
|
|
11
|
+
export * from "./dummy";
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAMA,cAAc,cAAc,CAAC;AAE7B,cAAc,aAAa,CAAC;AAE5B,cAAc,SAAS,CAAC;AAExB,cAAc,WAAW,CAAC;AAE1B,cAAc,QAAQ,CAAC;AAEvB,cAAc,OAAO,CAAC;AAEtB,cAAc,QAAQ,CAAC;AAEvB,cAAc,WAAW,CAAC;AAE1B,cAAc,QAAQ,CAAC;AAEvB,cAAc,YAAY,CAAC;AAE3B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { FieldType, settingFullSchema, settingSchema, settingStubSchema, settingValueSchema, type Setting, type SettingFull, type SettingStub, } from "./setting";
|
|
2
|
+
export { metadataFullSchema, metadataSchema, metadataStubSchema, type Metadata, type MetadataFull, type MetadataStub, } from "./metadata";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/setting/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,SAAS,EACT,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,WAAW,GACjB,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,YAAY,GAClB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const metadataStubSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
5
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
value: z.ZodAny;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export declare const metadataSchema: z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
12
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
value: z.ZodAny;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare const metadataFullSchema: z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
19
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
value: z.ZodAny;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type MetadataStub = z.infer<typeof metadataStubSchema>;
|
|
24
|
+
export type Metadata = z.infer<typeof metadataSchema>;
|
|
25
|
+
export type MetadataFull = z.infer<typeof metadataFullSchema>;
|
|
26
|
+
//# sourceMappingURL=metadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../src/setting/metadata.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,kBAAkB;;;;;;iBAAuB,CAAC;AAEvD,eAAO,MAAM,cAAc;;;;;;iBAAuB,CAAC;AAEnD,eAAO,MAAM,kBAAkB;;;;;;iBAAuB,CAAC;AAEvD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,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,41 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const settingValueSchema: z.ZodUnion<readonly [z.ZodNull, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
3
|
+
export declare const settingStubSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
6
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
7
|
+
group: z.ZodString;
|
|
8
|
+
subgroup: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
label: z.ZodString;
|
|
10
|
+
value: z.ZodUnion<readonly [z.ZodNull, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const settingSchema: z.ZodObject<{
|
|
13
|
+
id: z.ZodString;
|
|
14
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
15
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
16
|
+
group: z.ZodString;
|
|
17
|
+
subgroup: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
label: z.ZodString;
|
|
19
|
+
value: z.ZodUnion<readonly [z.ZodNull, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export declare const settingFullSchema: z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
24
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
25
|
+
group: z.ZodString;
|
|
26
|
+
subgroup: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
label: z.ZodString;
|
|
28
|
+
value: z.ZodUnion<readonly [z.ZodNull, z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export type SettingStub = z.infer<typeof settingStubSchema>;
|
|
31
|
+
export type Setting = z.infer<typeof settingSchema>;
|
|
32
|
+
export type SettingFull = z.infer<typeof settingFullSchema>;
|
|
33
|
+
export declare enum FieldType {
|
|
34
|
+
text = "text",
|
|
35
|
+
url = "url",
|
|
36
|
+
textarea = "textarea",
|
|
37
|
+
checkbox = "checkbox",
|
|
38
|
+
file = "file",
|
|
39
|
+
html = "html"
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=setting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setting.d.ts","sourceRoot":"","sources":["../../../src/setting/setting.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,kBAAkB,2IAO7B,CAAC;AASH,eAAO,MAAM,iBAAiB;;;;;;;;iBAAsB,CAAC;AAErD,eAAO,MAAM,aAAa;;;;;;;;iBAAsB,CAAC;AAEjD,eAAO,MAAM,iBAAiB;;;;;;;;iBAAsB,CAAC;AAErD,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;AAE5D,oBAAY,SAAS;IACnB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,IAAI,SAAS;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aliases.d.ts","sourceRoot":"","sources":["../../../src/shared/aliases.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,WAAW,GACtB,OAAO,OAAO,EACd,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC9B,OAeF,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,OAAO,OAAO,KAAG,OAWrC,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,OAAO,KAAG,OAM1C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/shared/base.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;iBAIzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../src/shared/object.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,QAAQ,GAAI,OAAO,OAAO,KAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAMnE,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,OAAO,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC7B,MAAM,CAAC,MAAM,EAAE,OAAO,CAExB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preprocess.d.ts","sourceRoot":"","sources":["../../../src/shared/preprocess.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,UAAU,GAAI,CAAC,EAC1B,aAAa,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,EACxC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KACnB,CAAC,CAAC,OAAO,CAAC,CAAC,CAEb,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const nullableStringSchema: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
3
|
+
export declare const nullableDateSchema: z.ZodType<Date | null, unknown, z.core.$ZodTypeInternals<Date | null, unknown>>;
|
|
4
|
+
export declare const userProfileBaseSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
7
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
8
|
+
firstName: z.ZodString;
|
|
9
|
+
lastName: z.ZodString;
|
|
10
|
+
language: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
11
|
+
timezone: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export declare const subscriberChannelSchema: z.ZodObject<{
|
|
14
|
+
name: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
15
|
+
data: z.ZodOptional<z.ZodType<Record<string, any> | null, unknown, z.core.$ZodTypeInternals<Record<string, any> | null, unknown>>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export declare const subscriberBaseSchema: z.ZodObject<{
|
|
18
|
+
id: z.ZodString;
|
|
19
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
20
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
21
|
+
firstName: z.ZodString;
|
|
22
|
+
lastName: z.ZodString;
|
|
23
|
+
language: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
24
|
+
timezone: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
25
|
+
locale: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
26
|
+
gender: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
27
|
+
country: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
28
|
+
foreignId: z.ZodType<string | null, unknown, z.core.$ZodTypeInternals<string | null, unknown>>;
|
|
29
|
+
assignedAt: z.ZodType<Date | null, unknown, z.core.$ZodTypeInternals<Date | null, unknown>>;
|
|
30
|
+
lastvisit: z.ZodType<Date | null, unknown, z.core.$ZodTypeInternals<Date | null, unknown>>;
|
|
31
|
+
retainedFrom: z.ZodType<Date | null, unknown, z.core.$ZodTypeInternals<Date | null, unknown>>;
|
|
32
|
+
channel: z.ZodType<{
|
|
33
|
+
name: string | null;
|
|
34
|
+
data?: Record<string, any> | null | undefined;
|
|
35
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
36
|
+
name: string | null;
|
|
37
|
+
data?: Record<string, any> | null | undefined;
|
|
38
|
+
}, unknown>>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
//# sourceMappingURL=profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../src/shared/profile.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,oBAAoB,qFAGhC,CAAC;AAEF,eAAO,MAAM,kBAAkB,iFAG9B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;iBAKhC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;iBAMlC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;iBAY/B,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const credentialStubSchema: 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 credentialSchema: z.ZodType<{
|
|
9
|
+
id: string;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
name: string;
|
|
13
|
+
owner: string;
|
|
14
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
15
|
+
id: string;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
name: string;
|
|
19
|
+
owner: string;
|
|
20
|
+
}, unknown>>;
|
|
21
|
+
export declare const credentialFullSchema: z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
24
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
owner: z.ZodType<{
|
|
27
|
+
id: string;
|
|
28
|
+
createdAt: Date;
|
|
29
|
+
updatedAt: Date;
|
|
30
|
+
firstName: string;
|
|
31
|
+
lastName: string;
|
|
32
|
+
language: string | null;
|
|
33
|
+
timezone: number;
|
|
34
|
+
locale: string | null;
|
|
35
|
+
gender: string | null;
|
|
36
|
+
country: string | null;
|
|
37
|
+
foreignId: string | null;
|
|
38
|
+
assignedAt: Date | null;
|
|
39
|
+
lastvisit: Date | null;
|
|
40
|
+
retainedFrom: Date | null;
|
|
41
|
+
channel: {
|
|
42
|
+
name: string | null;
|
|
43
|
+
data?: Record<string, any> | null | undefined;
|
|
44
|
+
};
|
|
45
|
+
username: string;
|
|
46
|
+
email: string;
|
|
47
|
+
sendEmail: boolean;
|
|
48
|
+
state: boolean;
|
|
49
|
+
resetCount: number;
|
|
50
|
+
resetToken: string | null;
|
|
51
|
+
labels: string[];
|
|
52
|
+
assignedTo: string | null;
|
|
53
|
+
roles: string[];
|
|
54
|
+
avatar: string | null;
|
|
55
|
+
provider?: {
|
|
56
|
+
strategy: "local";
|
|
57
|
+
sub?: string | undefined;
|
|
58
|
+
} | undefined;
|
|
59
|
+
} | null, unknown, z.core.$ZodTypeInternals<{
|
|
60
|
+
id: string;
|
|
61
|
+
createdAt: Date;
|
|
62
|
+
updatedAt: Date;
|
|
63
|
+
firstName: string;
|
|
64
|
+
lastName: string;
|
|
65
|
+
language: string | null;
|
|
66
|
+
timezone: number;
|
|
67
|
+
locale: string | null;
|
|
68
|
+
gender: string | null;
|
|
69
|
+
country: string | null;
|
|
70
|
+
foreignId: string | null;
|
|
71
|
+
assignedAt: Date | null;
|
|
72
|
+
lastvisit: Date | null;
|
|
73
|
+
retainedFrom: Date | null;
|
|
74
|
+
channel: {
|
|
75
|
+
name: string | null;
|
|
76
|
+
data?: Record<string, any> | null | undefined;
|
|
77
|
+
};
|
|
78
|
+
username: string;
|
|
79
|
+
email: string;
|
|
80
|
+
sendEmail: boolean;
|
|
81
|
+
state: boolean;
|
|
82
|
+
resetCount: number;
|
|
83
|
+
resetToken: string | null;
|
|
84
|
+
labels: string[];
|
|
85
|
+
assignedTo: string | null;
|
|
86
|
+
roles: string[];
|
|
87
|
+
avatar: string | null;
|
|
88
|
+
provider?: {
|
|
89
|
+
strategy: "local";
|
|
90
|
+
sub?: string | undefined;
|
|
91
|
+
} | undefined;
|
|
92
|
+
} | null, unknown>>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export type CredentialStub = z.infer<typeof credentialStubSchema>;
|
|
95
|
+
export type Credential = z.infer<typeof credentialSchema>;
|
|
96
|
+
export type CredentialFull = z.infer<typeof credentialFullSchema>;
|
|
97
|
+
//# sourceMappingURL=credential.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential.d.ts","sourceRoot":"","sources":["../../../src/user/credential.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,oBAAoB;;;;;iBAA6B,CAAC;AAE/D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;YAQ5B,CAAC;AAEF,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"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare enum Action {
|
|
3
|
+
CREATE = "create",
|
|
4
|
+
READ = "read",
|
|
5
|
+
UPDATE = "update",
|
|
6
|
+
DELETE = "delete"
|
|
7
|
+
}
|
|
8
|
+
export declare enum MethodToAction {
|
|
9
|
+
POST = "create",
|
|
10
|
+
GET = "read",
|
|
11
|
+
PATCH = "update",
|
|
12
|
+
DELETE = "delete"
|
|
13
|
+
}
|
|
14
|
+
export type TRelation = "role" | "createdBy";
|
|
15
|
+
export type TModel = "contenttype" | "content" | "nlpentity" | "nlpsampleentity" | "nlpsample" | "nlpvalue" | "setting" | "attachment" | "auditlog" | "user" | "role" | "permission" | "label" | "labelgroup" | "message" | "thread" | "subscriber" | "source" | "language" | "translation" | "stats" | "menu" | "workflow" | "workflowversion" | "workflowrun" | "memorydefinition" | "memoryrecord" | "mcpserver" | "model" | "credential";
|
|
16
|
+
export type ModelPermissionsPerRole = Record<TModel, Action[]>;
|
|
17
|
+
export type PermissionsTree = Record<string, ModelPermissionsPerRole>;
|
|
18
|
+
export declare const relationSchema: z.ZodEnum<{
|
|
19
|
+
createdBy: "createdBy";
|
|
20
|
+
role: "role";
|
|
21
|
+
}>;
|
|
22
|
+
export declare const modelIdentitySchema: z.ZodEnum<{
|
|
23
|
+
message: "message";
|
|
24
|
+
language: "language";
|
|
25
|
+
source: "source";
|
|
26
|
+
role: "role";
|
|
27
|
+
contenttype: "contenttype";
|
|
28
|
+
content: "content";
|
|
29
|
+
nlpentity: "nlpentity";
|
|
30
|
+
nlpsampleentity: "nlpsampleentity";
|
|
31
|
+
nlpsample: "nlpsample";
|
|
32
|
+
nlpvalue: "nlpvalue";
|
|
33
|
+
setting: "setting";
|
|
34
|
+
attachment: "attachment";
|
|
35
|
+
auditlog: "auditlog";
|
|
36
|
+
user: "user";
|
|
37
|
+
permission: "permission";
|
|
38
|
+
label: "label";
|
|
39
|
+
labelgroup: "labelgroup";
|
|
40
|
+
thread: "thread";
|
|
41
|
+
subscriber: "subscriber";
|
|
42
|
+
translation: "translation";
|
|
43
|
+
stats: "stats";
|
|
44
|
+
menu: "menu";
|
|
45
|
+
workflow: "workflow";
|
|
46
|
+
workflowversion: "workflowversion";
|
|
47
|
+
workflowrun: "workflowrun";
|
|
48
|
+
memorydefinition: "memorydefinition";
|
|
49
|
+
memoryrecord: "memoryrecord";
|
|
50
|
+
mcpserver: "mcpserver";
|
|
51
|
+
model: "model";
|
|
52
|
+
credential: "credential";
|
|
53
|
+
}>;
|
|
54
|
+
//# sourceMappingURL=domain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../../../src/user/domain.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAY,MAAM;IAChB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,oBAAY,cAAc;IACxB,IAAI,WAAW;IACf,GAAG,SAAS;IACZ,KAAK,WAAW;IAChB,MAAM,WAAW;CAClB;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,WAAW,CAAC;AAE7C,MAAM,MAAM,MAAM,GACd,aAAa,GACb,SAAS,GACT,WAAW,GACX,iBAAiB,GACjB,WAAW,GACX,UAAU,GACV,SAAS,GACT,YAAY,GACZ,UAAU,GACV,MAAM,GACN,MAAM,GACN,YAAY,GACZ,OAAO,GACP,YAAY,GACZ,SAAS,GACT,QAAQ,GACR,YAAY,GACZ,QAAQ,GACR,UAAU,GACV,aAAa,GACb,OAAO,GACP,MAAM,GACN,UAAU,GACV,iBAAiB,GACjB,aAAa,GACb,kBAAkB,GAClB,cAAc,GACd,WAAW,GACX,OAAO,GACP,YAAY,CAAC;AAEjB,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;AAE/D,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;AAEtE,eAAO,MAAM,cAAc;;;EAAgC,CAAC;AAE5D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+B9B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { Action, MethodToAction, type ModelPermissionsPerRole, type PermissionsTree, type TModel, type TRelation, } from "./domain";
|
|
2
|
+
export { userProfileFullSchema, userProfileSchema, userProfileStubSchema, type UserProfile, type UserProfileFull, type UserProfileStub, } from "./user-profile";
|
|
3
|
+
export { userProfileAssignedFullSchema, userProfileAssignedSchema, userProfileAssignedStubSchema, type UserProfileAssigned, type UserProfileAssignedFull, type UserProfileAssignedStub, type UserProvider, } from "./user-profile-assigned";
|
|
4
|
+
export { userFullSchema, userSchema, userStubSchema, type User, type UserFull, type UserStub, } from "./user";
|
|
5
|
+
export { roleFullSchema, roleSchema, roleStubSchema, type Role, type RoleFull, type RoleStub, } from "./role";
|
|
6
|
+
export { modelFullSchema, modelSchema, modelStubSchema, type Model, type ModelFull, type ModelStub, } from "./model";
|
|
7
|
+
export { permissionFullSchema, permissionSchema, permissionStubSchema, type Permission, type PermissionFull, type PermissionStub, } from "./permission";
|
|
8
|
+
export { credentialFullSchema, credentialSchema, credentialStubSchema, type Credential, type CredentialFull, type CredentialStub, } from "./credential";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/user/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,MAAM,EACN,cAAc,EACd,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,MAAM,EACX,KAAK,SAAS,GACf,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,eAAe,GACrB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,6BAA6B,EAC7B,yBAAyB,EACzB,6BAA6B,EAC7B,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,YAAY,GAClB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,cAAc,EACd,UAAU,EACV,cAAc,EACd,KAAK,IAAI,EACT,KAAK,QAAQ,EACb,KAAK,QAAQ,GACd,MAAM,QAAQ,CAAC;AAEhB,OAAO,EACL,cAAc,EACd,UAAU,EACV,cAAc,EACd,KAAK,IAAI,EACT,KAAK,QAAQ,EACb,KAAK,QAAQ,GACd,MAAM,QAAQ,CAAC;AAEhB,OAAO,EACL,eAAe,EACf,WAAW,EACX,eAAe,EACf,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,SAAS,GACf,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,cAAc,GACpB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,cAAc,GACpB,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const modelStubSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
5
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
identity: z.ZodEnum<{
|
|
8
|
+
message: "message";
|
|
9
|
+
language: "language";
|
|
10
|
+
source: "source";
|
|
11
|
+
role: "role";
|
|
12
|
+
contenttype: "contenttype";
|
|
13
|
+
content: "content";
|
|
14
|
+
nlpentity: "nlpentity";
|
|
15
|
+
nlpsampleentity: "nlpsampleentity";
|
|
16
|
+
nlpsample: "nlpsample";
|
|
17
|
+
nlpvalue: "nlpvalue";
|
|
18
|
+
setting: "setting";
|
|
19
|
+
attachment: "attachment";
|
|
20
|
+
auditlog: "auditlog";
|
|
21
|
+
user: "user";
|
|
22
|
+
permission: "permission";
|
|
23
|
+
label: "label";
|
|
24
|
+
labelgroup: "labelgroup";
|
|
25
|
+
thread: "thread";
|
|
26
|
+
subscriber: "subscriber";
|
|
27
|
+
translation: "translation";
|
|
28
|
+
stats: "stats";
|
|
29
|
+
menu: "menu";
|
|
30
|
+
workflow: "workflow";
|
|
31
|
+
workflowversion: "workflowversion";
|
|
32
|
+
workflowrun: "workflowrun";
|
|
33
|
+
memorydefinition: "memorydefinition";
|
|
34
|
+
memoryrecord: "memoryrecord";
|
|
35
|
+
mcpserver: "mcpserver";
|
|
36
|
+
model: "model";
|
|
37
|
+
credential: "credential";
|
|
38
|
+
}>;
|
|
39
|
+
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
40
|
+
relation: z.ZodOptional<z.ZodType<"createdBy" | "role" | undefined, unknown, z.core.$ZodTypeInternals<"createdBy" | "role" | undefined, unknown>>>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export declare const modelSchema: z.ZodObject<{
|
|
43
|
+
id: z.ZodString;
|
|
44
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
45
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
identity: z.ZodEnum<{
|
|
48
|
+
message: "message";
|
|
49
|
+
language: "language";
|
|
50
|
+
source: "source";
|
|
51
|
+
role: "role";
|
|
52
|
+
contenttype: "contenttype";
|
|
53
|
+
content: "content";
|
|
54
|
+
nlpentity: "nlpentity";
|
|
55
|
+
nlpsampleentity: "nlpsampleentity";
|
|
56
|
+
nlpsample: "nlpsample";
|
|
57
|
+
nlpvalue: "nlpvalue";
|
|
58
|
+
setting: "setting";
|
|
59
|
+
attachment: "attachment";
|
|
60
|
+
auditlog: "auditlog";
|
|
61
|
+
user: "user";
|
|
62
|
+
permission: "permission";
|
|
63
|
+
label: "label";
|
|
64
|
+
labelgroup: "labelgroup";
|
|
65
|
+
thread: "thread";
|
|
66
|
+
subscriber: "subscriber";
|
|
67
|
+
translation: "translation";
|
|
68
|
+
stats: "stats";
|
|
69
|
+
menu: "menu";
|
|
70
|
+
workflow: "workflow";
|
|
71
|
+
workflowversion: "workflowversion";
|
|
72
|
+
workflowrun: "workflowrun";
|
|
73
|
+
memorydefinition: "memorydefinition";
|
|
74
|
+
memoryrecord: "memoryrecord";
|
|
75
|
+
mcpserver: "mcpserver";
|
|
76
|
+
model: "model";
|
|
77
|
+
credential: "credential";
|
|
78
|
+
}>;
|
|
79
|
+
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
80
|
+
relation: z.ZodOptional<z.ZodType<"createdBy" | "role" | undefined, unknown, z.core.$ZodTypeInternals<"createdBy" | "role" | undefined, unknown>>>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
export declare const modelFullSchema: z.ZodObject<{
|
|
83
|
+
id: z.ZodString;
|
|
84
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
85
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
86
|
+
name: z.ZodString;
|
|
87
|
+
identity: z.ZodEnum<{
|
|
88
|
+
message: "message";
|
|
89
|
+
language: "language";
|
|
90
|
+
source: "source";
|
|
91
|
+
role: "role";
|
|
92
|
+
contenttype: "contenttype";
|
|
93
|
+
content: "content";
|
|
94
|
+
nlpentity: "nlpentity";
|
|
95
|
+
nlpsampleentity: "nlpsampleentity";
|
|
96
|
+
nlpsample: "nlpsample";
|
|
97
|
+
nlpvalue: "nlpvalue";
|
|
98
|
+
setting: "setting";
|
|
99
|
+
attachment: "attachment";
|
|
100
|
+
auditlog: "auditlog";
|
|
101
|
+
user: "user";
|
|
102
|
+
permission: "permission";
|
|
103
|
+
label: "label";
|
|
104
|
+
labelgroup: "labelgroup";
|
|
105
|
+
thread: "thread";
|
|
106
|
+
subscriber: "subscriber";
|
|
107
|
+
translation: "translation";
|
|
108
|
+
stats: "stats";
|
|
109
|
+
menu: "menu";
|
|
110
|
+
workflow: "workflow";
|
|
111
|
+
workflowversion: "workflowversion";
|
|
112
|
+
workflowrun: "workflowrun";
|
|
113
|
+
memorydefinition: "memorydefinition";
|
|
114
|
+
memoryrecord: "memoryrecord";
|
|
115
|
+
mcpserver: "mcpserver";
|
|
116
|
+
model: "model";
|
|
117
|
+
credential: "credential";
|
|
118
|
+
}>;
|
|
119
|
+
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
120
|
+
relation: z.ZodOptional<z.ZodType<"createdBy" | "role" | undefined, unknown, z.core.$ZodTypeInternals<"createdBy" | "role" | undefined, unknown>>>;
|
|
121
|
+
permissions: z.ZodOptional<z.ZodType<{
|
|
122
|
+
id: string;
|
|
123
|
+
createdAt: Date;
|
|
124
|
+
updatedAt: Date;
|
|
125
|
+
action: import("./domain").Action;
|
|
126
|
+
relation: "createdBy" | "role";
|
|
127
|
+
model: string;
|
|
128
|
+
role: string;
|
|
129
|
+
}[], unknown, z.core.$ZodTypeInternals<{
|
|
130
|
+
id: string;
|
|
131
|
+
createdAt: Date;
|
|
132
|
+
updatedAt: Date;
|
|
133
|
+
action: import("./domain").Action;
|
|
134
|
+
relation: "createdBy" | "role";
|
|
135
|
+
model: string;
|
|
136
|
+
role: string;
|
|
137
|
+
}[], unknown>>>;
|
|
138
|
+
}, z.core.$strip>;
|
|
139
|
+
export type ModelStub = z.infer<typeof modelStubSchema>;
|
|
140
|
+
export type Model = z.infer<typeof modelSchema>;
|
|
141
|
+
export type ModelFull = z.infer<typeof modelFullSchema>;
|
|
142
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/user/model.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAwB,CAAC;AAErD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAwB,CAAC;AAEjD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK1B,CAAC;AAEH,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"}
|