@veruna/api-contracts 1.0.68 → 1.0.70
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/build/rest-api.d.ts +3 -0
- package/build/rest-api.js +3 -0
- package/build/rest-api.js.map +1 -1
- package/build/routes/chat-project.routes.d.ts +2 -0
- package/build/routes/chat-project.routes.js +2 -0
- package/build/routes/chat-project.routes.js.map +1 -1
- package/build/routes/chat.routes.d.ts +1 -0
- package/build/routes/chat.routes.js +1 -0
- package/build/routes/chat.routes.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/chat/commands/delete-homeless-chats.command.d.ts +12 -0
- package/build/v1/chat/commands/delete-homeless-chats.command.js +15 -0
- package/build/v1/chat/commands/delete-homeless-chats.command.js.map +1 -0
- package/build/v1/chat/commands/index.d.ts +1 -0
- package/build/v1/chat/commands/index.js +3 -1
- package/build/v1/chat/commands/index.js.map +1 -1
- package/build/v1/chat/schemas/bulk-delete-chats-response.schema.d.ts +5 -0
- package/build/v1/chat/schemas/bulk-delete-chats-response.schema.js +8 -0
- package/build/v1/chat/schemas/bulk-delete-chats-response.schema.js.map +1 -0
- package/build/v1/chat/schemas/index.d.ts +2 -0
- package/build/v1/chat/schemas/index.js +3 -1
- package/build/v1/chat/schemas/index.js.map +1 -1
- package/build/v1/chat-project/chat-project.errors.d.ts +5 -1
- package/build/v1/chat-project/chat-project.errors.js +20 -0
- package/build/v1/chat-project/chat-project.errors.js.map +1 -1
- package/build/v1/chat-project/commands/delete-folder-chats.command.d.ts +12 -0
- package/build/v1/chat-project/commands/delete-folder-chats.command.js +15 -0
- package/build/v1/chat-project/commands/delete-folder-chats.command.js.map +1 -0
- package/build/v1/chat-project/commands/index.d.ts +2 -0
- package/build/v1/chat-project/commands/index.js +2 -0
- package/build/v1/chat-project/commands/index.js.map +1 -1
- package/build/v1/chat-project/commands/organize.command.d.ts +21 -0
- package/build/v1/chat-project/commands/organize.command.js +15 -0
- package/build/v1/chat-project/commands/organize.command.js.map +1 -0
- package/build/v1/chat-project/schemas/index.d.ts +1 -0
- package/build/v1/chat-project/schemas/index.js +1 -0
- package/build/v1/chat-project/schemas/index.js.map +1 -1
- package/build/v1/chat-project/schemas/organize-response.schema.d.ts +20 -0
- package/build/v1/chat-project/schemas/organize-response.schema.js +18 -0
- package/build/v1/chat-project/schemas/organize-response.schema.js.map +1 -0
- package/build/v1/client-file/schemas/client-file-mime-types.d.ts +4 -0
- package/build/v1/client-file/schemas/client-file-mime-types.js +49 -0
- package/build/v1/client-file/schemas/client-file-mime-types.js.map +1 -0
- package/build/v1/client-file/schemas/index.d.ts +1 -0
- package/build/v1/client-file/schemas/index.js +1 -0
- package/build/v1/client-file/schemas/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace DeleteHomelessChatsCommand {
|
|
4
|
+
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
deletedCount: z.ZodNumber;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
const URL: "/api/v1/chat/homeless";
|
|
9
|
+
const METHOD = HttpMethod.DELETE;
|
|
10
|
+
type RequestType = z.infer<typeof Request>;
|
|
11
|
+
type ResponseType = z.infer<typeof Response>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteHomelessChatsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const bulk_delete_chats_response_schema_1 = require("../schemas/bulk-delete-chats-response.schema");
|
|
6
|
+
const rest_api_1 = require("../../../rest-api");
|
|
7
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
8
|
+
var DeleteHomelessChatsCommand;
|
|
9
|
+
(function (DeleteHomelessChatsCommand) {
|
|
10
|
+
DeleteHomelessChatsCommand.Request = zod_1.z.object({});
|
|
11
|
+
DeleteHomelessChatsCommand.Response = bulk_delete_chats_response_schema_1.BulkDeleteChatsResponseSchema;
|
|
12
|
+
DeleteHomelessChatsCommand.URL = rest_api_1.REST_API.V1.CHAT.DELETE_HOMELESS;
|
|
13
|
+
DeleteHomelessChatsCommand.METHOD = http_method_1.HttpMethod.DELETE;
|
|
14
|
+
})(DeleteHomelessChatsCommand || (exports.DeleteHomelessChatsCommand = DeleteHomelessChatsCommand = {}));
|
|
15
|
+
//# sourceMappingURL=delete-homeless-chats.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-homeless-chats.command.js","sourceRoot":"","sources":["../../../../v1/chat/commands/delete-homeless-chats.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,oGAA6F;AAC7F,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,0BAA0B,CAO1C;AAPD,WAAiB,0BAA0B;IAC1B,kCAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,mCAAQ,GAAG,iEAA6B,CAAC;IACzC,8BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC;IACvC,iCAAM,GAAG,wBAAU,CAAC,MAAM,CAAC;AAG5C,CAAC,EAPgB,0BAA0B,0CAA1B,0BAA0B,QAO1C"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { CreateUnregChatCommand } from './create-unreg-chat.command';
|
|
2
2
|
export { CreateRegChatCommand } from './create-reg-chat.command';
|
|
3
3
|
export { DeleteChatCommand } from './delete-chat.command';
|
|
4
|
+
export { DeleteHomelessChatsCommand } from './delete-homeless-chats.command';
|
|
4
5
|
export { UpdateChatTitleCommand } from './update-chat-title.command';
|
|
5
6
|
export { UpdateChatCommand } from './update-chat.command';
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateChatCommand = exports.UpdateChatTitleCommand = exports.DeleteChatCommand = exports.CreateRegChatCommand = exports.CreateUnregChatCommand = void 0;
|
|
3
|
+
exports.UpdateChatCommand = exports.UpdateChatTitleCommand = exports.DeleteHomelessChatsCommand = exports.DeleteChatCommand = exports.CreateRegChatCommand = exports.CreateUnregChatCommand = void 0;
|
|
4
4
|
var create_unreg_chat_command_1 = require("./create-unreg-chat.command");
|
|
5
5
|
Object.defineProperty(exports, "CreateUnregChatCommand", { enumerable: true, get: function () { return create_unreg_chat_command_1.CreateUnregChatCommand; } });
|
|
6
6
|
var create_reg_chat_command_1 = require("./create-reg-chat.command");
|
|
7
7
|
Object.defineProperty(exports, "CreateRegChatCommand", { enumerable: true, get: function () { return create_reg_chat_command_1.CreateRegChatCommand; } });
|
|
8
8
|
var delete_chat_command_1 = require("./delete-chat.command");
|
|
9
9
|
Object.defineProperty(exports, "DeleteChatCommand", { enumerable: true, get: function () { return delete_chat_command_1.DeleteChatCommand; } });
|
|
10
|
+
var delete_homeless_chats_command_1 = require("./delete-homeless-chats.command");
|
|
11
|
+
Object.defineProperty(exports, "DeleteHomelessChatsCommand", { enumerable: true, get: function () { return delete_homeless_chats_command_1.DeleteHomelessChatsCommand; } });
|
|
10
12
|
var update_chat_title_command_1 = require("./update-chat-title.command");
|
|
11
13
|
Object.defineProperty(exports, "UpdateChatTitleCommand", { enumerable: true, get: function () { return update_chat_title_command_1.UpdateChatTitleCommand; } });
|
|
12
14
|
var update_chat_command_1 = require("./update-chat.command");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/chat/commands/index.ts"],"names":[],"mappings":";;;AAAA,yEAAqE;AAA5D,mIAAA,sBAAsB,OAAA;AAC/B,qEAAiE;AAAxD,+HAAA,oBAAoB,OAAA;AAC7B,6DAA0D;AAAjD,wHAAA,iBAAiB,OAAA;AAC1B,yEAAqE;AAA5D,mIAAA,sBAAsB,OAAA;AAC/B,6DAA0D;AAAjD,wHAAA,iBAAiB,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/chat/commands/index.ts"],"names":[],"mappings":";;;AAAA,yEAAqE;AAA5D,mIAAA,sBAAsB,OAAA;AAC/B,qEAAiE;AAAxD,+HAAA,oBAAoB,OAAA;AAC7B,6DAA0D;AAAjD,wHAAA,iBAAiB,OAAA;AAC1B,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,yEAAqE;AAA5D,mIAAA,sBAAsB,OAAA;AAC/B,6DAA0D;AAAjD,wHAAA,iBAAiB,OAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BulkDeleteChatsResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.BulkDeleteChatsResponseSchema = zod_1.z.object({
|
|
6
|
+
deletedCount: zod_1.z.number(),
|
|
7
|
+
});
|
|
8
|
+
//# sourceMappingURL=bulk-delete-chats-response.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk-delete-chats-response.schema.js","sourceRoot":"","sources":["../../../../v1/chat/schemas/bulk-delete-chats-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC"}
|
|
@@ -18,3 +18,5 @@ export { ChatPeriodType, MONTH_NAMES_RU, PERIOD_LABELS_RU, ChatHistoryItemSchema
|
|
|
18
18
|
export type { ChatHistoryItemDto, ChatPeriodDto, GetChatHistoryRequestDto, GetChatHistoryResponseDto, } from './chat-history.schema';
|
|
19
19
|
export { SearchMatchType, SearchMessageSnippetSchema, SearchChatItemSchema, SearchPeriodSchema, SearchChatsRequestSchema, SearchChatsResponseSchema, } from './search-chats.schema';
|
|
20
20
|
export type { SearchMessageSnippetDto, SearchChatItemDto, SearchPeriodDto, SearchChatsRequestDto, SearchChatsResponseDto, } from './search-chats.schema';
|
|
21
|
+
export { BulkDeleteChatsResponseSchema } from './bulk-delete-chats-response.schema';
|
|
22
|
+
export type { BulkDeleteChatsResponseDto } from './bulk-delete-chats-response.schema';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SearchChatsResponseSchema = exports.SearchChatsRequestSchema = exports.SearchPeriodSchema = exports.SearchChatItemSchema = exports.SearchMessageSnippetSchema = exports.SearchMatchType = exports.GetChatHistoryResponseSchema = exports.GetChatHistoryRequestSchema = exports.ChatPeriodSchema = exports.ChatHistoryItemSchema = exports.PERIOD_LABELS_RU = exports.MONTH_NAMES_RU = exports.ChatPeriodType = exports.DeleteChatResponseSchema = exports.UpdateChatRequestSchema = exports.CreateChatRequestSchema = exports.UpdateChatTitleRequestSchema = exports.ChatIdParamSchema = exports.PageIdParamSchema = exports.ChatWithMessagesResponseSchema = exports.ChatResponseSchema = exports.ChatMark = exports.ChatStatus = void 0;
|
|
3
|
+
exports.BulkDeleteChatsResponseSchema = exports.SearchChatsResponseSchema = exports.SearchChatsRequestSchema = exports.SearchPeriodSchema = exports.SearchChatItemSchema = exports.SearchMessageSnippetSchema = exports.SearchMatchType = exports.GetChatHistoryResponseSchema = exports.GetChatHistoryRequestSchema = exports.ChatPeriodSchema = exports.ChatHistoryItemSchema = exports.PERIOD_LABELS_RU = exports.MONTH_NAMES_RU = exports.ChatPeriodType = exports.DeleteChatResponseSchema = exports.UpdateChatRequestSchema = exports.CreateChatRequestSchema = exports.UpdateChatTitleRequestSchema = exports.ChatIdParamSchema = exports.PageIdParamSchema = exports.ChatWithMessagesResponseSchema = exports.ChatResponseSchema = exports.ChatMark = exports.ChatStatus = void 0;
|
|
4
4
|
var chat_status_enum_1 = require("./chat-status.enum");
|
|
5
5
|
Object.defineProperty(exports, "ChatStatus", { enumerable: true, get: function () { return chat_status_enum_1.ChatStatus; } });
|
|
6
6
|
var chat_mark_enum_1 = require("./chat-mark.enum");
|
|
@@ -36,4 +36,6 @@ Object.defineProperty(exports, "SearchChatItemSchema", { enumerable: true, get:
|
|
|
36
36
|
Object.defineProperty(exports, "SearchPeriodSchema", { enumerable: true, get: function () { return search_chats_schema_1.SearchPeriodSchema; } });
|
|
37
37
|
Object.defineProperty(exports, "SearchChatsRequestSchema", { enumerable: true, get: function () { return search_chats_schema_1.SearchChatsRequestSchema; } });
|
|
38
38
|
Object.defineProperty(exports, "SearchChatsResponseSchema", { enumerable: true, get: function () { return search_chats_schema_1.SearchChatsResponseSchema; } });
|
|
39
|
+
var bulk_delete_chats_response_schema_1 = require("./bulk-delete-chats-response.schema");
|
|
40
|
+
Object.defineProperty(exports, "BulkDeleteChatsResponseSchema", { enumerable: true, get: function () { return bulk_delete_chats_response_schema_1.BulkDeleteChatsResponseSchema; } });
|
|
39
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/chat/schemas/index.ts"],"names":[],"mappings":";;;AAAA,uDAAgD;AAAvC,8GAAA,UAAU,OAAA;AACnB,mDAA4C;AAAnC,0GAAA,QAAQ,OAAA;AACjB,+DAA4D;AAAnD,0HAAA,kBAAkB,OAAA;AAC3B,2FAAsF;AAA7E,oJAAA,8BAA8B,OAAA;AACvC,+DAA2D;AAAlD,yHAAA,iBAAiB,OAAA;AAE1B,+DAA2D;AAAlD,yHAAA,iBAAiB,OAAA;AAE1B,uFAAkF;AAAzE,gJAAA,4BAA4B,OAAA;AAErC,2EAAuE;AAA9D,qIAAA,uBAAuB,OAAA;AAEhC,2EAAuE;AAA9D,qIAAA,uBAAuB,OAAA;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B,2HAAA,oBAAoB,OAAA;AACpB,yHAAA,kBAAkB,OAAA;AAClB,+HAAA,wBAAwB,OAAA;AACxB,gIAAA,yBAAyB,OAAA;AAS7B,yFAAoF;AAA3E,kJAAA,6BAA6B,OAAA"}
|
|
@@ -3,6 +3,10 @@ export declare enum ChatProjectErrorCode {
|
|
|
3
3
|
PROJECT_NOT_FOUND = "PROJECT_NOT_FOUND",
|
|
4
4
|
PROJECT_ACCESS_DENIED = "PROJECT_ACCESS_DENIED",
|
|
5
5
|
INVALID_PROJECT_STATUS = "INVALID_PROJECT_STATUS",
|
|
6
|
-
INVALID_PROJECT_COLOR = "INVALID_PROJECT_COLOR"
|
|
6
|
+
INVALID_PROJECT_COLOR = "INVALID_PROJECT_COLOR",
|
|
7
|
+
NO_HOMELESS_CHATS = "NO_HOMELESS_CHATS",
|
|
8
|
+
ORGANIZE_AI_FAILED = "ORGANIZE_AI_FAILED",
|
|
9
|
+
ORGANIZE_PARSE_FAILED = "ORGANIZE_PARSE_FAILED",
|
|
10
|
+
ORGANIZE_DAILY_LIMIT_REACHED = "ORGANIZE_DAILY_LIMIT_REACHED"
|
|
7
11
|
}
|
|
8
12
|
export declare const CHAT_PROJECT_ERRORS: Record<ChatProjectErrorCode, ErrorMetadata>;
|
|
@@ -7,6 +7,10 @@ var ChatProjectErrorCode;
|
|
|
7
7
|
ChatProjectErrorCode["PROJECT_ACCESS_DENIED"] = "PROJECT_ACCESS_DENIED";
|
|
8
8
|
ChatProjectErrorCode["INVALID_PROJECT_STATUS"] = "INVALID_PROJECT_STATUS";
|
|
9
9
|
ChatProjectErrorCode["INVALID_PROJECT_COLOR"] = "INVALID_PROJECT_COLOR";
|
|
10
|
+
ChatProjectErrorCode["NO_HOMELESS_CHATS"] = "NO_HOMELESS_CHATS";
|
|
11
|
+
ChatProjectErrorCode["ORGANIZE_AI_FAILED"] = "ORGANIZE_AI_FAILED";
|
|
12
|
+
ChatProjectErrorCode["ORGANIZE_PARSE_FAILED"] = "ORGANIZE_PARSE_FAILED";
|
|
13
|
+
ChatProjectErrorCode["ORGANIZE_DAILY_LIMIT_REACHED"] = "ORGANIZE_DAILY_LIMIT_REACHED";
|
|
10
14
|
})(ChatProjectErrorCode || (exports.ChatProjectErrorCode = ChatProjectErrorCode = {}));
|
|
11
15
|
exports.CHAT_PROJECT_ERRORS = {
|
|
12
16
|
[ChatProjectErrorCode.PROJECT_NOT_FOUND]: {
|
|
@@ -25,5 +29,21 @@ exports.CHAT_PROJECT_ERRORS = {
|
|
|
25
29
|
code: ChatProjectErrorCode.INVALID_PROJECT_COLOR,
|
|
26
30
|
statusCode: 400,
|
|
27
31
|
},
|
|
32
|
+
[ChatProjectErrorCode.NO_HOMELESS_CHATS]: {
|
|
33
|
+
code: ChatProjectErrorCode.NO_HOMELESS_CHATS,
|
|
34
|
+
statusCode: 404,
|
|
35
|
+
},
|
|
36
|
+
[ChatProjectErrorCode.ORGANIZE_AI_FAILED]: {
|
|
37
|
+
code: ChatProjectErrorCode.ORGANIZE_AI_FAILED,
|
|
38
|
+
statusCode: 502,
|
|
39
|
+
},
|
|
40
|
+
[ChatProjectErrorCode.ORGANIZE_PARSE_FAILED]: {
|
|
41
|
+
code: ChatProjectErrorCode.ORGANIZE_PARSE_FAILED,
|
|
42
|
+
statusCode: 502,
|
|
43
|
+
},
|
|
44
|
+
[ChatProjectErrorCode.ORGANIZE_DAILY_LIMIT_REACHED]: {
|
|
45
|
+
code: ChatProjectErrorCode.ORGANIZE_DAILY_LIMIT_REACHED,
|
|
46
|
+
statusCode: 429,
|
|
47
|
+
},
|
|
28
48
|
};
|
|
29
49
|
//# sourceMappingURL=chat-project.errors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-project.errors.js","sourceRoot":"","sources":["../../../v1/chat-project/chat-project.errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,
|
|
1
|
+
{"version":3,"file":"chat-project.errors.js","sourceRoot":"","sources":["../../../v1/chat-project/chat-project.errors.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,GAAG;KAClB;CACK,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace ChatProjectDeleteFolderChatsCommand {
|
|
4
|
+
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
deletedCount: z.ZodNumber;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
const URL: (uuid: string) => string;
|
|
9
|
+
const METHOD = HttpMethod.DELETE;
|
|
10
|
+
type RequestType = z.infer<typeof Request>;
|
|
11
|
+
type ResponseType = z.infer<typeof Response>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChatProjectDeleteFolderChatsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const bulk_delete_chats_response_schema_1 = require("../../chat/schemas/bulk-delete-chats-response.schema");
|
|
6
|
+
const rest_api_1 = require("../../../rest-api");
|
|
7
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
8
|
+
var ChatProjectDeleteFolderChatsCommand;
|
|
9
|
+
(function (ChatProjectDeleteFolderChatsCommand) {
|
|
10
|
+
ChatProjectDeleteFolderChatsCommand.Request = zod_1.z.object({});
|
|
11
|
+
ChatProjectDeleteFolderChatsCommand.Response = bulk_delete_chats_response_schema_1.BulkDeleteChatsResponseSchema;
|
|
12
|
+
ChatProjectDeleteFolderChatsCommand.URL = rest_api_1.REST_API.V1.CHAT_PROJECT.DELETE_CHATS;
|
|
13
|
+
ChatProjectDeleteFolderChatsCommand.METHOD = http_method_1.HttpMethod.DELETE;
|
|
14
|
+
})(ChatProjectDeleteFolderChatsCommand || (exports.ChatProjectDeleteFolderChatsCommand = ChatProjectDeleteFolderChatsCommand = {}));
|
|
15
|
+
//# sourceMappingURL=delete-folder-chats.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-folder-chats.command.js","sourceRoot":"","sources":["../../../../v1/chat-project/commands/delete-folder-chats.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4GAAqG;AACrG,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,mCAAmC,CAOnD;AAPD,WAAiB,mCAAmC;IACnC,2CAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,4CAAQ,GAAG,iEAA6B,CAAC;IACzC,uCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,YAAY,CAAC,YAAY,CAAC;IAC5C,0CAAM,GAAG,wBAAU,CAAC,MAAM,CAAC;AAG5C,CAAC,EAPgB,mCAAmC,mDAAnC,mCAAmC,QAOnD"}
|
|
@@ -17,4 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./create-project.command"), exports);
|
|
18
18
|
__exportStar(require("./update-project.command"), exports);
|
|
19
19
|
__exportStar(require("./delete-project.command"), exports);
|
|
20
|
+
__exportStar(require("./delete-folder-chats.command"), exports);
|
|
21
|
+
__exportStar(require("./organize.command"), exports);
|
|
20
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/chat-project/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,2DAAyC;AACzC,2DAAyC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/chat-project/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,2DAAyC;AACzC,2DAAyC;AACzC,gEAA8C;AAC9C,qDAAmC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace ChatProjectOrganizeCommand {
|
|
4
|
+
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
totalChatsProcessed: z.ZodNumber;
|
|
7
|
+
chatsMoved: z.ZodNumber;
|
|
8
|
+
foldersCreated: z.ZodNumber;
|
|
9
|
+
folders: z.ZodArray<z.ZodObject<{
|
|
10
|
+
uuid: z.ZodString;
|
|
11
|
+
title: z.ZodString;
|
|
12
|
+
color: z.ZodString;
|
|
13
|
+
isNew: z.ZodBoolean;
|
|
14
|
+
chatsCount: z.ZodNumber;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
const URL: "/api/v1/projects/organize";
|
|
18
|
+
const METHOD = HttpMethod.POST;
|
|
19
|
+
type RequestType = z.infer<typeof Request>;
|
|
20
|
+
type ResponseType = z.infer<typeof Response>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChatProjectOrganizeCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../schemas");
|
|
6
|
+
const rest_api_1 = require("../../../rest-api");
|
|
7
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
8
|
+
var ChatProjectOrganizeCommand;
|
|
9
|
+
(function (ChatProjectOrganizeCommand) {
|
|
10
|
+
ChatProjectOrganizeCommand.Request = zod_1.z.object({});
|
|
11
|
+
ChatProjectOrganizeCommand.Response = schemas_1.OrganizeResponseSchema;
|
|
12
|
+
ChatProjectOrganizeCommand.URL = rest_api_1.REST_API.V1.CHAT_PROJECT.ORGANIZE;
|
|
13
|
+
ChatProjectOrganizeCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
14
|
+
})(ChatProjectOrganizeCommand || (exports.ChatProjectOrganizeCommand = ChatProjectOrganizeCommand = {}));
|
|
15
|
+
//# sourceMappingURL=organize.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organize.command.js","sourceRoot":"","sources":["../../../../v1/chat-project/commands/organize.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAAoD;AACpD,gDAA6C;AAC7C,6DAAyD;AAEzD,IAAiB,0BAA0B,CAQ1C;AARD,WAAiB,0BAA0B;IAC1B,kCAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,mCAAQ,GAAG,gCAAsB,CAAC;IAClC,8BAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC;IACxC,iCAAM,GAAG,wBAAU,CAAC,IAAI,CAAC;AAI1C,CAAC,EARgB,0BAA0B,0CAA1B,0BAA0B,QAQ1C"}
|
|
@@ -20,4 +20,5 @@ __exportStar(require("./update-project-request.schema"), exports);
|
|
|
20
20
|
__exportStar(require("./project-response.schema"), exports);
|
|
21
21
|
__exportStar(require("./route-params.schema"), exports);
|
|
22
22
|
__exportStar(require("./get-project-chats.schema"), exports);
|
|
23
|
+
__exportStar(require("./organize-response.schema"), exports);
|
|
23
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/chat-project/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,kEAAgD;AAChD,kEAAgD;AAChD,4DAA0C;AAC1C,wDAAsC;AACtC,6DAA2C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/chat-project/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,kEAAgD;AAChD,kEAAgD;AAChD,4DAA0C;AAC1C,wDAAsC;AACtC,6DAA2C;AAC3C,6DAA2C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const OrganizeFolderInfoSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodString;
|
|
4
|
+
title: z.ZodString;
|
|
5
|
+
color: z.ZodString;
|
|
6
|
+
isNew: z.ZodBoolean;
|
|
7
|
+
chatsCount: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export declare const OrganizeResponseSchema: z.ZodObject<{
|
|
10
|
+
totalChatsProcessed: z.ZodNumber;
|
|
11
|
+
chatsMoved: z.ZodNumber;
|
|
12
|
+
foldersCreated: z.ZodNumber;
|
|
13
|
+
folders: z.ZodArray<z.ZodObject<{
|
|
14
|
+
uuid: z.ZodString;
|
|
15
|
+
title: z.ZodString;
|
|
16
|
+
color: z.ZodString;
|
|
17
|
+
isNew: z.ZodBoolean;
|
|
18
|
+
chatsCount: z.ZodNumber;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrganizeResponseSchema = exports.OrganizeFolderInfoSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.OrganizeFolderInfoSchema = zod_1.z.object({
|
|
6
|
+
uuid: zod_1.z.string(),
|
|
7
|
+
title: zod_1.z.string(),
|
|
8
|
+
color: zod_1.z.string(),
|
|
9
|
+
isNew: zod_1.z.boolean(),
|
|
10
|
+
chatsCount: zod_1.z.number(),
|
|
11
|
+
});
|
|
12
|
+
exports.OrganizeResponseSchema = zod_1.z.object({
|
|
13
|
+
totalChatsProcessed: zod_1.z.number(),
|
|
14
|
+
chatsMoved: zod_1.z.number(),
|
|
15
|
+
foldersCreated: zod_1.z.number(),
|
|
16
|
+
folders: zod_1.z.array(exports.OrganizeFolderInfoSchema),
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=organize-response.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organize-response.schema.js","sourceRoot":"","sources":["../../../../v1/chat-project/schemas/organize-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,OAAC,CAAC,OAAO,EAAE;IAClB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAC;AAEU,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE;IAC/B,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,gCAAwB,CAAC;CAC7C,CAAC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const CLIENT_FILE_IMAGE_MIME_TYPES: readonly ["image/jpeg", "image/png", "image/webp"];
|
|
2
|
+
export declare const CLIENT_FILE_DOC_MIME_TYPES: readonly ["application/pdf", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.presentationml.presentation", "text/plain", "text/markdown", "text/csv", "text/html", "text/css", "text/xml", "application/json", "application/xml", "text/yaml", "application/x-yaml", "text/javascript", "application/javascript", "text/x-python", "application/x-python-code", "text/x-java-source", "text/x-c", "text/x-c++src", "text/x-csharp", "text/x-go", "text/x-rust", "text/x-ruby", "text/x-php", "application/x-php", "text/x-swift", "text/x-kotlin", "text/x-scala", "text/x-sql", "text/x-shellscript", "application/x-sh", "text/x-typescript", "application/typescript"];
|
|
3
|
+
export type ClientFileImageMimeType = (typeof CLIENT_FILE_IMAGE_MIME_TYPES)[number];
|
|
4
|
+
export type ClientFileDocMimeType = (typeof CLIENT_FILE_DOC_MIME_TYPES)[number];
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CLIENT_FILE_DOC_MIME_TYPES = exports.CLIENT_FILE_IMAGE_MIME_TYPES = void 0;
|
|
4
|
+
exports.CLIENT_FILE_IMAGE_MIME_TYPES = [
|
|
5
|
+
'image/jpeg',
|
|
6
|
+
'image/png',
|
|
7
|
+
'image/webp',
|
|
8
|
+
];
|
|
9
|
+
exports.CLIENT_FILE_DOC_MIME_TYPES = [
|
|
10
|
+
'application/pdf',
|
|
11
|
+
'application/msword',
|
|
12
|
+
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
13
|
+
'application/vnd.ms-excel',
|
|
14
|
+
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
15
|
+
'application/vnd.ms-powerpoint',
|
|
16
|
+
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
|
17
|
+
'text/plain',
|
|
18
|
+
'text/markdown',
|
|
19
|
+
'text/csv',
|
|
20
|
+
'text/html',
|
|
21
|
+
'text/css',
|
|
22
|
+
'text/xml',
|
|
23
|
+
'application/json',
|
|
24
|
+
'application/xml',
|
|
25
|
+
'text/yaml',
|
|
26
|
+
'application/x-yaml',
|
|
27
|
+
'text/javascript',
|
|
28
|
+
'application/javascript',
|
|
29
|
+
'text/x-python',
|
|
30
|
+
'application/x-python-code',
|
|
31
|
+
'text/x-java-source',
|
|
32
|
+
'text/x-c',
|
|
33
|
+
'text/x-c++src',
|
|
34
|
+
'text/x-csharp',
|
|
35
|
+
'text/x-go',
|
|
36
|
+
'text/x-rust',
|
|
37
|
+
'text/x-ruby',
|
|
38
|
+
'text/x-php',
|
|
39
|
+
'application/x-php',
|
|
40
|
+
'text/x-swift',
|
|
41
|
+
'text/x-kotlin',
|
|
42
|
+
'text/x-scala',
|
|
43
|
+
'text/x-sql',
|
|
44
|
+
'text/x-shellscript',
|
|
45
|
+
'application/x-sh',
|
|
46
|
+
'text/x-typescript',
|
|
47
|
+
'application/typescript',
|
|
48
|
+
];
|
|
49
|
+
//# sourceMappingURL=client-file-mime-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-file-mime-types.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/client-file-mime-types.ts"],"names":[],"mappings":";;;AACa,QAAA,4BAA4B,GAAG;IACxC,YAAY;IACZ,WAAW;IACX,YAAY;CACN,CAAC;AAGE,QAAA,0BAA0B,GAAG;IAEtC,iBAAiB;IACjB,oBAAoB;IACpB,yEAAyE;IACzE,0BAA0B;IAC1B,mEAAmE;IACnE,+BAA+B;IAC/B,2EAA2E;IAE3E,YAAY;IACZ,eAAe;IACf,UAAU;IACV,WAAW;IACX,UAAU;IACV,UAAU;IACV,kBAAkB;IAClB,iBAAiB;IACjB,WAAW;IACX,oBAAoB;IAEpB,iBAAiB;IACjB,wBAAwB;IACxB,eAAe;IACf,2BAA2B;IAC3B,oBAAoB;IACpB,UAAU;IACV,eAAe;IACf,eAAe;IACf,WAAW;IACX,aAAa;IACb,aAAa;IACb,YAAY;IACZ,mBAAmB;IACnB,cAAc;IACd,eAAe;IACf,cAAc;IACd,YAAY;IACZ,oBAAoB;IACpB,kBAAkB;IAClB,mBAAmB;IACnB,wBAAwB;CAClB,CAAC"}
|
|
@@ -24,4 +24,5 @@ __exportStar(require("./client-file-upload-response.schema"), exports);
|
|
|
24
24
|
__exportStar(require("./client-file-delete-response.schema"), exports);
|
|
25
25
|
__exportStar(require("./client-file-attach-request.schema"), exports);
|
|
26
26
|
__exportStar(require("./client-file-attach-response.schema"), exports);
|
|
27
|
+
__exportStar(require("./client-file-mime-types"), exports);
|
|
27
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,gEAA8C;AAC9C,mEAAiD;AACjD,oEAAkD;AAClD,qEAAmD;AACnD,qEAAmD;AACnD,uEAAqD;AACrD,uEAAqD;AACrD,sEAAoD;AACpD,uEAAqD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,gEAA8C;AAC9C,mEAAiD;AACjD,oEAAkD;AAClD,qEAAmD;AACnD,qEAAmD;AACnD,uEAAqD;AACrD,uEAAqD;AACrD,sEAAoD;AACpD,uEAAqD;AACrD,2DAAyC"}
|