@veruna/api-contracts 20.5.2 → 21.0.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/build/locales/validation.d.ts +0 -26
- package/build/locales/validation.js +0 -22
- package/build/locales/validation.js.map +1 -1
- package/build/rest-api.d.ts +5 -8
- package/build/rest-api.js +5 -8
- package/build/rest-api.js.map +1 -1
- package/build/routes/s2s.routes.d.ts +5 -8
- package/build/routes/s2s.routes.js +6 -9
- package/build/routes/s2s.routes.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/ai/tool-id.enum.d.ts +0 -1
- package/build/v1/ai/tool-id.enum.js +0 -1
- package/build/v1/ai/tool-id.enum.js.map +1 -1
- package/build/v1/ai-call/ai-accounting-provider.enum.d.ts +11 -0
- package/build/v1/ai-call/ai-accounting-provider.enum.js +16 -0
- package/build/v1/ai-call/ai-accounting-provider.enum.js.map +1 -0
- package/build/v1/ai-call/index.d.ts +1 -0
- package/build/v1/ai-call/index.js +1 -0
- package/build/v1/ai-call/index.js.map +1 -1
- package/build/v1/chat/commands/create-reg-chat.command.d.ts +31 -0
- package/build/v1/chat/commands/create-unreg-chat.command.d.ts +31 -0
- package/build/v1/chat/commands/update-chat-title.command.d.ts +31 -0
- package/build/v1/chat/commands/update-chat.command.d.ts +31 -0
- package/build/v1/chat/queries/get-last-active-chat.query.d.ts +31 -0
- package/build/v1/chat/queries/get-reg-chat.query.d.ts +31 -0
- package/build/v1/chat/queries/get-unreg-chat.query.d.ts +31 -0
- package/build/v1/chat/schemas/chat-with-messages-response.schema.d.ts +31 -0
- package/build/v1/client-file/client-document.constants.d.ts +10 -0
- package/build/v1/client-file/client-document.constants.js +14 -0
- package/build/v1/client-file/client-document.constants.js.map +1 -0
- package/build/v1/client-file/client-file-content-kind.d.ts +2 -2
- package/build/v1/client-file/client-file-content-kind.js +10 -10
- package/build/v1/client-file/client-file-content-kind.js.map +1 -1
- package/build/v1/client-file/commands/client-document.s2s.d.ts +42 -0
- package/build/v1/client-file/commands/client-document.s2s.js +26 -0
- package/build/v1/client-file/commands/client-document.s2s.js.map +1 -0
- package/build/v1/client-file/commands/client-file-attach.command.d.ts +1 -0
- package/build/v1/client-file/commands/client-file-upload.command.d.ts +1 -0
- package/build/v1/client-file/commands/index.d.ts +1 -0
- package/build/v1/client-file/commands/index.js +1 -0
- package/build/v1/client-file/commands/index.js.map +1 -1
- package/build/v1/client-file/index.d.ts +1 -0
- package/build/v1/client-file/index.js +1 -0
- package/build/v1/client-file/index.js.map +1 -1
- package/build/v1/client-file/queries/client-document.s2s.d.ts +71 -0
- package/build/v1/client-file/queries/client-document.s2s.js +35 -0
- package/build/v1/client-file/queries/client-document.s2s.js.map +1 -0
- package/build/v1/client-file/queries/client-file-list.query.d.ts +1 -0
- package/build/v1/client-file/queries/client-file-reading.s2s.d.ts +0 -190
- package/build/v1/client-file/queries/client-file-reading.s2s.js +1 -71
- package/build/v1/client-file/queries/client-file-reading.s2s.js.map +1 -1
- package/build/v1/client-file/queries/index.d.ts +1 -0
- package/build/v1/client-file/queries/index.js +1 -0
- package/build/v1/client-file/queries/index.js.map +1 -1
- package/build/v1/client-file/schemas/client-document-page-unavailable.enum.d.ts +5 -0
- package/build/v1/client-file/schemas/client-document-page-unavailable.enum.js +10 -0
- package/build/v1/client-file/schemas/client-document-page-unavailable.enum.js.map +1 -0
- package/build/v1/client-file/schemas/client-document.schema.d.ts +60 -0
- package/build/v1/client-file/schemas/client-document.schema.js +77 -0
- package/build/v1/client-file/schemas/client-document.schema.js.map +1 -0
- package/build/v1/client-file/schemas/client-file-attach-response.schema.d.ts +2 -0
- package/build/v1/client-file/schemas/client-file-attach-response.schema.js +5 -0
- package/build/v1/client-file/schemas/client-file-attach-response.schema.js.map +1 -1
- package/build/v1/client-file/schemas/client-file-content-kind.enum.d.ts +9 -0
- package/build/v1/client-file/schemas/client-file-content-kind.enum.js +14 -0
- package/build/v1/client-file/schemas/client-file-content-kind.enum.js.map +1 -0
- package/build/v1/client-file/schemas/client-file-internal-import.schema.d.ts +15 -0
- package/build/v1/client-file/schemas/client-file-internal-import.schema.js +34 -0
- package/build/v1/client-file/schemas/client-file-internal-import.schema.js.map +1 -0
- package/build/v1/client-file/schemas/client-file-item-response.schema.d.ts +1 -0
- package/build/v1/client-file/schemas/client-file-item-response.schema.js +5 -0
- package/build/v1/client-file/schemas/client-file-item-response.schema.js.map +1 -1
- package/build/v1/client-file/schemas/client-file-list-response.schema.d.ts +1 -0
- package/build/v1/client-file/schemas/client-file-reading.schema.d.ts +10 -0
- package/build/v1/client-file/schemas/client-file-reading.schema.js +11 -0
- package/build/v1/client-file/schemas/client-file-reading.schema.js.map +1 -0
- package/build/v1/client-file/schemas/client-file-status.enum.d.ts +3 -1
- package/build/v1/client-file/schemas/client-file-status.enum.js +2 -0
- package/build/v1/client-file/schemas/client-file-status.enum.js.map +1 -1
- package/build/v1/client-file/schemas/client-file-upload-response.schema.d.ts +1 -0
- package/build/v1/client-file/schemas/index.d.ts +5 -2
- package/build/v1/client-file/schemas/index.js +5 -2
- package/build/v1/client-file/schemas/index.js.map +1 -1
- package/build/v1/client-file/schemas/magic-verdict.enum.d.ts +8 -0
- package/build/v1/client-file/schemas/magic-verdict.enum.js +13 -0
- package/build/v1/client-file/schemas/magic-verdict.enum.js.map +1 -0
- package/build/v1/client-file/schemas/upload-magic-type.enum.d.ts +16 -0
- package/build/v1/client-file/schemas/upload-magic-type.enum.js +21 -0
- package/build/v1/client-file/schemas/upload-magic-type.enum.js.map +1 -0
- package/build/v1/client-file/upload-magic-bytes.d.ts +4 -24
- package/build/v1/client-file/upload-magic-bytes.js +46 -66
- package/build/v1/client-file/upload-magic-bytes.js.map +1 -1
- package/build/v1/message/commands/create-message.command.d.ts +2 -0
- package/build/v1/message/queries/get-message-stream-reg.query.d.ts +2 -0
- package/build/v1/message/queries/get-message-stream-unreg.query.d.ts +2 -0
- package/build/v1/message/schemas/find-in-chat-step-content.schema.d.ts +8 -0
- package/build/v1/message/schemas/find-in-chat-step-content.schema.js +11 -0
- package/build/v1/message/schemas/find-in-chat-step-content.schema.js.map +1 -0
- package/build/v1/message/schemas/index.d.ts +3 -0
- package/build/v1/message/schemas/index.js +7 -3
- package/build/v1/message/schemas/index.js.map +1 -1
- package/build/v1/message/schemas/message-response.schema.d.ts +31 -0
- package/build/v1/message/schemas/message-step-response.schema.d.ts +93 -0
- package/build/v1/message/schemas/message-step-response.schema.js +4 -0
- package/build/v1/message/schemas/message-step-response.schema.js.map +1 -1
- package/build/v1/message/schemas/message-stream-frame.schema.d.ts +1 -0
- package/build/v1/message/schemas/preparation-phase.enum.d.ts +4 -0
- package/build/v1/message/schemas/preparation-phase.enum.js +9 -0
- package/build/v1/message/schemas/preparation-phase.enum.js.map +1 -0
- package/build/v1/message/schemas/send-file-step-content.schema.d.ts +1 -0
- package/build/v1/message/schemas/send-file-step-content.schema.js +5 -0
- package/build/v1/message/schemas/send-file-step-content.schema.js.map +1 -1
- package/build/v1/message/schemas/stream-events.schema.d.ts +5 -2
- package/build/v1/message/schemas/stream-events.schema.js +4 -2
- package/build/v1/message/schemas/stream-events.schema.js.map +1 -1
- package/build/v1/message/schemas/view-file-delivery.enum.d.ts +6 -0
- package/build/v1/message/schemas/view-file-delivery.enum.js +11 -0
- package/build/v1/message/schemas/view-file-delivery.enum.js.map +1 -0
- package/build/v1/message/schemas/view-file-mode.enum.d.ts +7 -0
- package/build/v1/message/schemas/view-file-mode.enum.js +12 -0
- package/build/v1/message/schemas/view-file-mode.enum.js.map +1 -0
- package/build/v1/message/schemas/view-file-read-state.enum.d.ts +7 -0
- package/build/v1/message/schemas/view-file-read-state.enum.js +12 -0
- package/build/v1/message/schemas/view-file-read-state.enum.js.map +1 -0
- package/build/v1/message/schemas/view-file-step-content.schema.d.ts +39 -0
- package/build/v1/message/schemas/view-file-step-content.schema.js +48 -0
- package/build/v1/message/schemas/view-file-step-content.schema.js.map +1 -0
- package/build/v1/s2s/queries/list-client-files.query.d.ts +1 -0
- package/build-esm/.tsbuildinfo +1 -1
- package/build-esm/locales/validation.js +0 -22
- package/build-esm/locales/validation.js.map +1 -1
- package/build-esm/rest-api.js +5 -8
- package/build-esm/rest-api.js.map +1 -1
- package/build-esm/routes/s2s.routes.js +6 -9
- package/build-esm/routes/s2s.routes.js.map +1 -1
- package/build-esm/v1/ai/tool-id.enum.js +0 -1
- package/build-esm/v1/ai/tool-id.enum.js.map +1 -1
- package/build-esm/v1/ai-call/ai-accounting-provider.enum.js +13 -0
- package/build-esm/v1/ai-call/ai-accounting-provider.enum.js.map +1 -0
- package/build-esm/v1/ai-call/index.js +1 -0
- package/build-esm/v1/ai-call/index.js.map +1 -1
- package/build-esm/v1/client-file/client-document.constants.js +11 -0
- package/build-esm/v1/client-file/client-document.constants.js.map +1 -0
- package/build-esm/v1/client-file/client-file-content-kind.js +2 -2
- package/build-esm/v1/client-file/client-file-content-kind.js.map +1 -1
- package/build-esm/v1/client-file/commands/client-document.s2s.js +23 -0
- package/build-esm/v1/client-file/commands/client-document.s2s.js.map +1 -0
- package/build-esm/v1/client-file/commands/index.js +1 -0
- package/build-esm/v1/client-file/commands/index.js.map +1 -1
- package/build-esm/v1/client-file/index.js +1 -0
- package/build-esm/v1/client-file/index.js.map +1 -1
- package/build-esm/v1/client-file/queries/client-document.s2s.js +32 -0
- package/build-esm/v1/client-file/queries/client-document.s2s.js.map +1 -0
- package/build-esm/v1/client-file/queries/client-file-reading.s2s.js +0 -70
- package/build-esm/v1/client-file/queries/client-file-reading.s2s.js.map +1 -1
- package/build-esm/v1/client-file/queries/index.js +1 -0
- package/build-esm/v1/client-file/queries/index.js.map +1 -1
- package/build-esm/v1/client-file/schemas/client-document-page-unavailable.enum.js +7 -0
- package/build-esm/v1/client-file/schemas/client-document-page-unavailable.enum.js.map +1 -0
- package/build-esm/v1/client-file/schemas/client-document.schema.js +74 -0
- package/build-esm/v1/client-file/schemas/client-document.schema.js.map +1 -0
- package/build-esm/v1/client-file/schemas/client-file-attach-response.schema.js +5 -0
- package/build-esm/v1/client-file/schemas/client-file-attach-response.schema.js.map +1 -1
- package/build-esm/v1/client-file/schemas/client-file-content-kind.enum.js +11 -0
- package/build-esm/v1/client-file/schemas/client-file-content-kind.enum.js.map +1 -0
- package/build-esm/v1/client-file/schemas/client-file-internal-import.schema.js +31 -0
- package/build-esm/v1/client-file/schemas/client-file-internal-import.schema.js.map +1 -0
- package/build-esm/v1/client-file/schemas/client-file-item-response.schema.js +5 -0
- package/build-esm/v1/client-file/schemas/client-file-item-response.schema.js.map +1 -1
- package/build-esm/v1/client-file/schemas/client-file-reading.schema.js +8 -0
- package/build-esm/v1/client-file/schemas/client-file-reading.schema.js.map +1 -0
- package/build-esm/v1/client-file/schemas/client-file-status.enum.js +2 -0
- package/build-esm/v1/client-file/schemas/client-file-status.enum.js.map +1 -1
- package/build-esm/v1/client-file/schemas/index.js +5 -2
- package/build-esm/v1/client-file/schemas/index.js.map +1 -1
- package/build-esm/v1/client-file/schemas/magic-verdict.enum.js +10 -0
- package/build-esm/v1/client-file/schemas/magic-verdict.enum.js.map +1 -0
- package/build-esm/v1/client-file/schemas/upload-magic-type.enum.js +18 -0
- package/build-esm/v1/client-file/schemas/upload-magic-type.enum.js.map +1 -0
- package/build-esm/v1/client-file/upload-magic-bytes.js +4 -26
- package/build-esm/v1/client-file/upload-magic-bytes.js.map +1 -1
- package/build-esm/v1/message/schemas/find-in-chat-step-content.schema.js +8 -0
- package/build-esm/v1/message/schemas/find-in-chat-step-content.schema.js.map +1 -0
- package/build-esm/v1/message/schemas/index.js +3 -0
- package/build-esm/v1/message/schemas/index.js.map +1 -1
- package/build-esm/v1/message/schemas/message-step-response.schema.js +4 -0
- package/build-esm/v1/message/schemas/message-step-response.schema.js.map +1 -1
- package/build-esm/v1/message/schemas/preparation-phase.enum.js +6 -0
- package/build-esm/v1/message/schemas/preparation-phase.enum.js.map +1 -0
- package/build-esm/v1/message/schemas/send-file-step-content.schema.js +5 -0
- package/build-esm/v1/message/schemas/send-file-step-content.schema.js.map +1 -1
- package/build-esm/v1/message/schemas/stream-events.schema.js +4 -2
- package/build-esm/v1/message/schemas/stream-events.schema.js.map +1 -1
- package/build-esm/v1/message/schemas/view-file-delivery.enum.js +8 -0
- package/build-esm/v1/message/schemas/view-file-delivery.enum.js.map +1 -0
- package/build-esm/v1/message/schemas/view-file-mode.enum.js +9 -0
- package/build-esm/v1/message/schemas/view-file-mode.enum.js.map +1 -0
- package/build-esm/v1/message/schemas/view-file-read-state.enum.js +9 -0
- package/build-esm/v1/message/schemas/view-file-read-state.enum.js.map +1 -0
- package/build-esm/v1/message/schemas/view-file-step-content.schema.js +42 -0
- package/build-esm/v1/message/schemas/view-file-step-content.schema.js.map +1 -0
- package/package.json +6 -6
- package/build/v1/client-file/schemas/client-file-pages.schema.d.ts +0 -201
- package/build/v1/client-file/schemas/client-file-pages.schema.js +0 -186
- package/build/v1/client-file/schemas/client-file-pages.schema.js.map +0 -1
- package/build/v1/client-file/schemas/client-file-search.schema.d.ts +0 -31
- package/build/v1/client-file/schemas/client-file-search.schema.js +0 -49
- package/build/v1/client-file/schemas/client-file-search.schema.js.map +0 -1
- package/build-esm/v1/client-file/schemas/client-file-pages.schema.js +0 -183
- package/build-esm/v1/client-file/schemas/client-file-pages.schema.js.map +0 -1
- package/build-esm/v1/client-file/schemas/client-file-search.schema.js +0 -46
- package/build-esm/v1/client-file/schemas/client-file-search.schema.js.map +0 -1
|
@@ -24,7 +24,6 @@ var ToolId;
|
|
|
24
24
|
ToolId["IMAGE_REMOVE_BG"] = "IMAGE_REMOVE_BG";
|
|
25
25
|
ToolId["FIND_IN_CHAT"] = "FIND_IN_CHAT";
|
|
26
26
|
ToolId["VIEW_FILE"] = "VIEW_FILE";
|
|
27
|
-
ToolId["SEARCH_FILE"] = "SEARCH_FILE";
|
|
28
27
|
ToolId["SEND_FILE"] = "SEND_FILE";
|
|
29
28
|
// Sandbox primitive tools
|
|
30
29
|
ToolId["BASH"] = "BASH";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-id.enum.js","sourceRoot":"","sources":["../../../v1/ai/tool-id.enum.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;GASG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"tool-id.enum.js","sourceRoot":"","sources":["../../../v1/ai/tool-id.enum.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;GASG;AACH,IAAY,MAuBX;AAvBD,WAAY,MAAM;IACd,uDAAuD;IACvD,iCAAuB,CAAA;IACvB,mCAAyB,CAAA;IACzB,mCAAyB,CAAA;IACzB,2DAAiD,CAAA;IACjD,mDAAyC,CAAA;IACzC,iEAAiE;IACjE,yCAA+B,CAAA;IAC/B,6CAAmC,CAAA;IACnC,uCAA6B,CAAA;IAC7B,iCAAuB,CAAA;IACvB,iCAAuB,CAAA;IACvB,0BAA0B;IAC1B,uBAAa,CAAA;IACb,qCAA2B,CAAA;IAC3B,qCAA2B,CAAA;IAC3B,uCAA6B,CAAA;IAC7B,oBAAoB;IACpB,2BAAiB,CAAA;IACjB,0BAA0B;IAC1B,qDAA2C,CAAA;IAC3C,uCAA6B,CAAA;AACjC,CAAC,EAvBW,MAAM,sBAAN,MAAM,QAuBjB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Accounting identity, deliberately separate from the routable MAIN-provider catalog. */
|
|
2
|
+
export declare enum AiAccountingProvider {
|
|
3
|
+
OPENROUTER = "OPENROUTER",
|
|
4
|
+
PERPLEXITY = "PERPLEXITY",
|
|
5
|
+
YANDEX = "YANDEX",
|
|
6
|
+
KIE = "KIE",
|
|
7
|
+
WELLFLOW = "WELLFLOW",
|
|
8
|
+
DEROUTER = "DEROUTER",
|
|
9
|
+
APIROUTE = "APIROUTE",
|
|
10
|
+
MISTRAL = "MISTRAL"
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiAccountingProvider = void 0;
|
|
4
|
+
/** Accounting identity, deliberately separate from the routable MAIN-provider catalog. */
|
|
5
|
+
var AiAccountingProvider;
|
|
6
|
+
(function (AiAccountingProvider) {
|
|
7
|
+
AiAccountingProvider["OPENROUTER"] = "OPENROUTER";
|
|
8
|
+
AiAccountingProvider["PERPLEXITY"] = "PERPLEXITY";
|
|
9
|
+
AiAccountingProvider["YANDEX"] = "YANDEX";
|
|
10
|
+
AiAccountingProvider["KIE"] = "KIE";
|
|
11
|
+
AiAccountingProvider["WELLFLOW"] = "WELLFLOW";
|
|
12
|
+
AiAccountingProvider["DEROUTER"] = "DEROUTER";
|
|
13
|
+
AiAccountingProvider["APIROUTE"] = "APIROUTE";
|
|
14
|
+
AiAccountingProvider["MISTRAL"] = "MISTRAL";
|
|
15
|
+
})(AiAccountingProvider || (exports.AiAccountingProvider = AiAccountingProvider = {}));
|
|
16
|
+
//# sourceMappingURL=ai-accounting-provider.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-accounting-provider.enum.js","sourceRoot":"","sources":["../../../v1/ai-call/ai-accounting-provider.enum.ts"],"names":[],"mappings":";;;AAAA,0FAA0F;AAC1F,IAAY,oBASX;AATD,WAAY,oBAAoB;IAC5B,iDAAyB,CAAA;IACzB,iDAAyB,CAAA;IACzB,yCAAiB,CAAA;IACjB,mCAAW,CAAA;IACX,6CAAqB,CAAA;IACrB,6CAAqB,CAAA;IACrB,6CAAqB,CAAA;IACrB,2CAAmB,CAAA;AACvB,CAAC,EATW,oBAAoB,oCAApB,oBAAoB,QAS/B"}
|
|
@@ -20,4 +20,5 @@ __exportStar(require("./ai-attempt-end-code.enum"), exports);
|
|
|
20
20
|
__exportStar(require("./ai-call.errors"), exports);
|
|
21
21
|
__exportStar(require("./ai-image-operation.enum"), exports);
|
|
22
22
|
__exportStar(require("./ai-call-request-params.schema"), exports);
|
|
23
|
+
__exportStar(require("./ai-accounting-provider.enum"), exports);
|
|
23
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/ai-call/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,wDAAsC;AACtC,6DAA2C;AAC3C,mDAAiC;AACjC,4DAA0C;AAC1C,kEAAgD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/ai-call/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,wDAAsC;AACtC,6DAA2C;AAC3C,mDAAiC;AACjC,4DAA0C;AAC1C,kEAAgD;AAChD,gEAA8C"}
|
|
@@ -33,11 +33,42 @@ export declare namespace CreateRegChatCommand {
|
|
|
33
33
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
34
34
|
modelUuid: z.ZodNullable<z.ZodString>;
|
|
35
35
|
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
36
|
+
attachmentId: z.ZodOptional<z.ZodString>;
|
|
37
|
+
sourceSha256: z.ZodOptional<z.ZodString>;
|
|
38
|
+
filename: z.ZodString;
|
|
39
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
40
|
+
delivery: z.ZodEnum<typeof import("../..").ViewFileDelivery>;
|
|
41
|
+
pages: z.ZodOptional<z.ZodObject<{
|
|
42
|
+
from: z.ZodNumber;
|
|
43
|
+
to: z.ZodNumber;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
sheet: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
rows: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
from: z.ZodNumber;
|
|
48
|
+
to: z.ZodNumber;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
51
|
+
from: z.ZodNumber;
|
|
52
|
+
to: z.ZodNumber;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
mode: z.ZodOptional<z.ZodEnum<typeof import("../..").ViewFileMode>>;
|
|
55
|
+
coverage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
56
|
+
page: z.ZodNumber;
|
|
57
|
+
state: z.ZodEnum<typeof import("../..").ViewFileReadState>;
|
|
58
|
+
}, z.core.$strip>>>;
|
|
59
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
nextOffset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
61
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
+
query: z.ZodString;
|
|
63
|
+
matchCount: z.ZodNumber;
|
|
64
|
+
attachmentIds: z.ZodArray<z.ZodString>;
|
|
65
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36
66
|
path: z.ZodOptional<z.ZodString>;
|
|
37
67
|
sandboxPath: z.ZodString;
|
|
38
68
|
filename: z.ZodString;
|
|
39
69
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
40
70
|
size: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
41
72
|
url: z.ZodOptional<z.ZodString>;
|
|
42
73
|
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
43
74
|
queries: z.ZodArray<z.ZodString>;
|
|
@@ -33,11 +33,42 @@ export declare namespace CreateUnregChatCommand {
|
|
|
33
33
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
34
34
|
modelUuid: z.ZodNullable<z.ZodString>;
|
|
35
35
|
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
36
|
+
attachmentId: z.ZodOptional<z.ZodString>;
|
|
37
|
+
sourceSha256: z.ZodOptional<z.ZodString>;
|
|
38
|
+
filename: z.ZodString;
|
|
39
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
40
|
+
delivery: z.ZodEnum<typeof import("../..").ViewFileDelivery>;
|
|
41
|
+
pages: z.ZodOptional<z.ZodObject<{
|
|
42
|
+
from: z.ZodNumber;
|
|
43
|
+
to: z.ZodNumber;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
sheet: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
rows: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
from: z.ZodNumber;
|
|
48
|
+
to: z.ZodNumber;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
51
|
+
from: z.ZodNumber;
|
|
52
|
+
to: z.ZodNumber;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
mode: z.ZodOptional<z.ZodEnum<typeof import("../..").ViewFileMode>>;
|
|
55
|
+
coverage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
56
|
+
page: z.ZodNumber;
|
|
57
|
+
state: z.ZodEnum<typeof import("../..").ViewFileReadState>;
|
|
58
|
+
}, z.core.$strip>>>;
|
|
59
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
nextOffset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
61
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
+
query: z.ZodString;
|
|
63
|
+
matchCount: z.ZodNumber;
|
|
64
|
+
attachmentIds: z.ZodArray<z.ZodString>;
|
|
65
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36
66
|
path: z.ZodOptional<z.ZodString>;
|
|
37
67
|
sandboxPath: z.ZodString;
|
|
38
68
|
filename: z.ZodString;
|
|
39
69
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
40
70
|
size: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
41
72
|
url: z.ZodOptional<z.ZodString>;
|
|
42
73
|
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
43
74
|
queries: z.ZodArray<z.ZodString>;
|
|
@@ -32,11 +32,42 @@ export declare namespace UpdateChatTitleCommand {
|
|
|
32
32
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
33
33
|
modelUuid: z.ZodNullable<z.ZodString>;
|
|
34
34
|
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
35
|
+
attachmentId: z.ZodOptional<z.ZodString>;
|
|
36
|
+
sourceSha256: z.ZodOptional<z.ZodString>;
|
|
37
|
+
filename: z.ZodString;
|
|
38
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
39
|
+
delivery: z.ZodEnum<typeof import("../..").ViewFileDelivery>;
|
|
40
|
+
pages: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
from: z.ZodNumber;
|
|
42
|
+
to: z.ZodNumber;
|
|
43
|
+
}, z.core.$strip>>;
|
|
44
|
+
sheet: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
rows: z.ZodOptional<z.ZodObject<{
|
|
46
|
+
from: z.ZodNumber;
|
|
47
|
+
to: z.ZodNumber;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
50
|
+
from: z.ZodNumber;
|
|
51
|
+
to: z.ZodNumber;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
mode: z.ZodOptional<z.ZodEnum<typeof import("../..").ViewFileMode>>;
|
|
54
|
+
coverage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
55
|
+
page: z.ZodNumber;
|
|
56
|
+
state: z.ZodEnum<typeof import("../..").ViewFileReadState>;
|
|
57
|
+
}, z.core.$strip>>>;
|
|
58
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
nextOffset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
60
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
+
query: z.ZodString;
|
|
62
|
+
matchCount: z.ZodNumber;
|
|
63
|
+
attachmentIds: z.ZodArray<z.ZodString>;
|
|
64
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
35
65
|
path: z.ZodOptional<z.ZodString>;
|
|
36
66
|
sandboxPath: z.ZodString;
|
|
37
67
|
filename: z.ZodString;
|
|
38
68
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
39
69
|
size: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
40
71
|
url: z.ZodOptional<z.ZodString>;
|
|
41
72
|
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
42
73
|
queries: z.ZodArray<z.ZodString>;
|
|
@@ -34,11 +34,42 @@ export declare namespace UpdateChatCommand {
|
|
|
34
34
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
35
35
|
modelUuid: z.ZodNullable<z.ZodString>;
|
|
36
36
|
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
37
|
+
attachmentId: z.ZodOptional<z.ZodString>;
|
|
38
|
+
sourceSha256: z.ZodOptional<z.ZodString>;
|
|
39
|
+
filename: z.ZodString;
|
|
40
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
41
|
+
delivery: z.ZodEnum<typeof import("../..").ViewFileDelivery>;
|
|
42
|
+
pages: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
from: z.ZodNumber;
|
|
44
|
+
to: z.ZodNumber;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
sheet: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
rows: z.ZodOptional<z.ZodObject<{
|
|
48
|
+
from: z.ZodNumber;
|
|
49
|
+
to: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
52
|
+
from: z.ZodNumber;
|
|
53
|
+
to: z.ZodNumber;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
mode: z.ZodOptional<z.ZodEnum<typeof import("../..").ViewFileMode>>;
|
|
56
|
+
coverage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
57
|
+
page: z.ZodNumber;
|
|
58
|
+
state: z.ZodEnum<typeof import("../..").ViewFileReadState>;
|
|
59
|
+
}, z.core.$strip>>>;
|
|
60
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
nextOffset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
+
query: z.ZodString;
|
|
64
|
+
matchCount: z.ZodNumber;
|
|
65
|
+
attachmentIds: z.ZodArray<z.ZodString>;
|
|
66
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
67
|
path: z.ZodOptional<z.ZodString>;
|
|
38
68
|
sandboxPath: z.ZodString;
|
|
39
69
|
filename: z.ZodString;
|
|
40
70
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
41
71
|
size: z.ZodOptional<z.ZodNumber>;
|
|
72
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
42
73
|
url: z.ZodOptional<z.ZodString>;
|
|
43
74
|
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
44
75
|
queries: z.ZodArray<z.ZodString>;
|
|
@@ -30,11 +30,42 @@ export declare namespace GetLastActiveChatQuery {
|
|
|
30
30
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
31
31
|
modelUuid: z.ZodNullable<z.ZodString>;
|
|
32
32
|
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
33
|
+
attachmentId: z.ZodOptional<z.ZodString>;
|
|
34
|
+
sourceSha256: z.ZodOptional<z.ZodString>;
|
|
35
|
+
filename: z.ZodString;
|
|
36
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
37
|
+
delivery: z.ZodEnum<typeof import("../..").ViewFileDelivery>;
|
|
38
|
+
pages: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
from: z.ZodNumber;
|
|
40
|
+
to: z.ZodNumber;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
sheet: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
rows: z.ZodOptional<z.ZodObject<{
|
|
44
|
+
from: z.ZodNumber;
|
|
45
|
+
to: z.ZodNumber;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
48
|
+
from: z.ZodNumber;
|
|
49
|
+
to: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
mode: z.ZodOptional<z.ZodEnum<typeof import("../..").ViewFileMode>>;
|
|
52
|
+
coverage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
|
+
page: z.ZodNumber;
|
|
54
|
+
state: z.ZodEnum<typeof import("../..").ViewFileReadState>;
|
|
55
|
+
}, z.core.$strip>>>;
|
|
56
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
+
nextOffset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
+
query: z.ZodString;
|
|
60
|
+
matchCount: z.ZodNumber;
|
|
61
|
+
attachmentIds: z.ZodArray<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33
63
|
path: z.ZodOptional<z.ZodString>;
|
|
34
64
|
sandboxPath: z.ZodString;
|
|
35
65
|
filename: z.ZodString;
|
|
36
66
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
37
67
|
size: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
38
69
|
url: z.ZodOptional<z.ZodString>;
|
|
39
70
|
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
40
71
|
queries: z.ZodArray<z.ZodString>;
|
|
@@ -30,11 +30,42 @@ export declare namespace GetRegChatQuery {
|
|
|
30
30
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
31
31
|
modelUuid: z.ZodNullable<z.ZodString>;
|
|
32
32
|
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
33
|
+
attachmentId: z.ZodOptional<z.ZodString>;
|
|
34
|
+
sourceSha256: z.ZodOptional<z.ZodString>;
|
|
35
|
+
filename: z.ZodString;
|
|
36
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
37
|
+
delivery: z.ZodEnum<typeof import("../..").ViewFileDelivery>;
|
|
38
|
+
pages: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
from: z.ZodNumber;
|
|
40
|
+
to: z.ZodNumber;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
sheet: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
rows: z.ZodOptional<z.ZodObject<{
|
|
44
|
+
from: z.ZodNumber;
|
|
45
|
+
to: z.ZodNumber;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
48
|
+
from: z.ZodNumber;
|
|
49
|
+
to: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
mode: z.ZodOptional<z.ZodEnum<typeof import("../..").ViewFileMode>>;
|
|
52
|
+
coverage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
|
+
page: z.ZodNumber;
|
|
54
|
+
state: z.ZodEnum<typeof import("../..").ViewFileReadState>;
|
|
55
|
+
}, z.core.$strip>>>;
|
|
56
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
+
nextOffset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
+
query: z.ZodString;
|
|
60
|
+
matchCount: z.ZodNumber;
|
|
61
|
+
attachmentIds: z.ZodArray<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33
63
|
path: z.ZodOptional<z.ZodString>;
|
|
34
64
|
sandboxPath: z.ZodString;
|
|
35
65
|
filename: z.ZodString;
|
|
36
66
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
37
67
|
size: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
38
69
|
url: z.ZodOptional<z.ZodString>;
|
|
39
70
|
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
40
71
|
queries: z.ZodArray<z.ZodString>;
|
|
@@ -30,11 +30,42 @@ export declare namespace GetUnregChatQuery {
|
|
|
30
30
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
31
31
|
modelUuid: z.ZodNullable<z.ZodString>;
|
|
32
32
|
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
33
|
+
attachmentId: z.ZodOptional<z.ZodString>;
|
|
34
|
+
sourceSha256: z.ZodOptional<z.ZodString>;
|
|
35
|
+
filename: z.ZodString;
|
|
36
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
37
|
+
delivery: z.ZodEnum<typeof import("../..").ViewFileDelivery>;
|
|
38
|
+
pages: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
from: z.ZodNumber;
|
|
40
|
+
to: z.ZodNumber;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
sheet: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
rows: z.ZodOptional<z.ZodObject<{
|
|
44
|
+
from: z.ZodNumber;
|
|
45
|
+
to: z.ZodNumber;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
48
|
+
from: z.ZodNumber;
|
|
49
|
+
to: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
mode: z.ZodOptional<z.ZodEnum<typeof import("../..").ViewFileMode>>;
|
|
52
|
+
coverage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
|
+
page: z.ZodNumber;
|
|
54
|
+
state: z.ZodEnum<typeof import("../..").ViewFileReadState>;
|
|
55
|
+
}, z.core.$strip>>>;
|
|
56
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
+
nextOffset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
+
query: z.ZodString;
|
|
60
|
+
matchCount: z.ZodNumber;
|
|
61
|
+
attachmentIds: z.ZodArray<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
33
63
|
path: z.ZodOptional<z.ZodString>;
|
|
34
64
|
sandboxPath: z.ZodString;
|
|
35
65
|
filename: z.ZodString;
|
|
36
66
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
37
67
|
size: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
38
69
|
url: z.ZodOptional<z.ZodString>;
|
|
39
70
|
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
40
71
|
queries: z.ZodArray<z.ZodString>;
|
|
@@ -24,11 +24,42 @@ export declare const ChatWithMessagesResponseSchema: z.ZodObject<{
|
|
|
24
24
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
25
25
|
modelUuid: z.ZodNullable<z.ZodString>;
|
|
26
26
|
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
27
|
+
attachmentId: z.ZodOptional<z.ZodString>;
|
|
28
|
+
sourceSha256: z.ZodOptional<z.ZodString>;
|
|
29
|
+
filename: z.ZodString;
|
|
30
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
31
|
+
delivery: z.ZodEnum<typeof import("../..").ViewFileDelivery>;
|
|
32
|
+
pages: z.ZodOptional<z.ZodObject<{
|
|
33
|
+
from: z.ZodNumber;
|
|
34
|
+
to: z.ZodNumber;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
sheet: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
rows: z.ZodOptional<z.ZodObject<{
|
|
38
|
+
from: z.ZodNumber;
|
|
39
|
+
to: z.ZodNumber;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
lines: z.ZodOptional<z.ZodObject<{
|
|
42
|
+
from: z.ZodNumber;
|
|
43
|
+
to: z.ZodNumber;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
mode: z.ZodOptional<z.ZodEnum<typeof import("../..").ViewFileMode>>;
|
|
46
|
+
coverage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
47
|
+
page: z.ZodNumber;
|
|
48
|
+
state: z.ZodEnum<typeof import("../..").ViewFileReadState>;
|
|
49
|
+
}, z.core.$strip>>>;
|
|
50
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
nextOffset: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
52
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
+
query: z.ZodString;
|
|
54
|
+
matchCount: z.ZodNumber;
|
|
55
|
+
attachmentIds: z.ZodArray<z.ZodString>;
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
57
|
path: z.ZodOptional<z.ZodString>;
|
|
28
58
|
sandboxPath: z.ZodString;
|
|
29
59
|
filename: z.ZodString;
|
|
30
60
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
31
61
|
size: z.ZodOptional<z.ZodNumber>;
|
|
62
|
+
sha256: z.ZodOptional<z.ZodString>;
|
|
32
63
|
url: z.ZodOptional<z.ZodString>;
|
|
33
64
|
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
34
65
|
queries: z.ZodArray<z.ZodString>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** The OCR profile is opaque to file-api; its cache column holds at most this many characters. */
|
|
2
|
+
export declare const CLIENT_DOCUMENT_PROFILE_MAX_CHARS = 128;
|
|
3
|
+
/** Largest single-page PDF handed back for OCR: the OCR adapter accepts nothing bigger. */
|
|
4
|
+
export declare const CLIENT_DOCUMENT_PAGE_PDF_MAX_BYTES: number;
|
|
5
|
+
export declare const CLIENT_DOCUMENT_PAGE_PDF_MAX_BASE64_CHARS: number;
|
|
6
|
+
/** Ceiling for one `document/pages` response body, base64 included. Both sides enforce it. */
|
|
7
|
+
export declare const CLIENT_DOCUMENT_PAGES_RESPONSE_MAX_BYTES: number;
|
|
8
|
+
/** Largest sandbox file accepted by the internal import. */
|
|
9
|
+
export declare const CLIENT_FILE_INTERNAL_IMPORT_MAX_BYTES: number;
|
|
10
|
+
export declare const CLIENT_FILE_INTERNAL_IMPORT_MAX_BASE64_CHARS: number;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CLIENT_FILE_INTERNAL_IMPORT_MAX_BASE64_CHARS = exports.CLIENT_FILE_INTERNAL_IMPORT_MAX_BYTES = exports.CLIENT_DOCUMENT_PAGES_RESPONSE_MAX_BYTES = exports.CLIENT_DOCUMENT_PAGE_PDF_MAX_BASE64_CHARS = exports.CLIENT_DOCUMENT_PAGE_PDF_MAX_BYTES = exports.CLIENT_DOCUMENT_PROFILE_MAX_CHARS = void 0;
|
|
4
|
+
/** The OCR profile is opaque to file-api; its cache column holds at most this many characters. */
|
|
5
|
+
exports.CLIENT_DOCUMENT_PROFILE_MAX_CHARS = 128;
|
|
6
|
+
/** Largest single-page PDF handed back for OCR: the OCR adapter accepts nothing bigger. */
|
|
7
|
+
exports.CLIENT_DOCUMENT_PAGE_PDF_MAX_BYTES = 16 * 1024 * 1024;
|
|
8
|
+
exports.CLIENT_DOCUMENT_PAGE_PDF_MAX_BASE64_CHARS = Math.ceil(exports.CLIENT_DOCUMENT_PAGE_PDF_MAX_BYTES / 3) * 4;
|
|
9
|
+
/** Ceiling for one `document/pages` response body, base64 included. Both sides enforce it. */
|
|
10
|
+
exports.CLIENT_DOCUMENT_PAGES_RESPONSE_MAX_BYTES = 32 * 1024 * 1024;
|
|
11
|
+
/** Largest sandbox file accepted by the internal import. */
|
|
12
|
+
exports.CLIENT_FILE_INTERNAL_IMPORT_MAX_BYTES = 16 * 1024 * 1024;
|
|
13
|
+
exports.CLIENT_FILE_INTERNAL_IMPORT_MAX_BASE64_CHARS = Math.ceil(exports.CLIENT_FILE_INTERNAL_IMPORT_MAX_BYTES / 3) * 4;
|
|
14
|
+
//# sourceMappingURL=client-document.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-document.constants.js","sourceRoot":"","sources":["../../../v1/client-file/client-document.constants.ts"],"names":[],"mappings":";;;AAAA,kGAAkG;AACrF,QAAA,iCAAiC,GAAG,GAAG,CAAC;AAErD,2FAA2F;AAC9E,QAAA,kCAAkC,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AACtD,QAAA,yCAAyC,GAClD,IAAI,CAAC,IAAI,CAAC,0CAAkC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;AAE1D,8FAA8F;AACjF,QAAA,wCAAwC,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AAEzE,4DAA4D;AAC/C,QAAA,qCAAqC,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AACzD,QAAA,4CAA4C,GACrD,IAAI,CAAC,IAAI,CAAC,6CAAqC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ClientFileContentKind } from './schemas/client-file-
|
|
1
|
+
import { ClientFileContentKind } from './schemas/client-file-content-kind.enum';
|
|
2
2
|
/** Spreadsheets read as sheets and rows (no PDF, no OCR). */
|
|
3
3
|
export declare const CLIENT_FILE_SHEET_MIME_TYPES: ReadonlySet<string>;
|
|
4
|
-
/** Legacy .xls / .ods: no safe maintained parser;
|
|
4
|
+
/** Legacy .xls / .ods: no safe maintained parser; page reads refuse these formats. */
|
|
5
5
|
export declare const CLIENT_FILE_LEGACY_SHEET_MIME_TYPES: ReadonlySet<string>;
|
|
6
6
|
export declare const CLIENT_FILE_PRESENTATION_MIME_TYPES: ReadonlySet<string>;
|
|
7
7
|
/**
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CLIENT_FILE_PRESENTATION_MIME_TYPES = exports.CLIENT_FILE_LEGACY_SHEET_MIME_TYPES = exports.CLIENT_FILE_SHEET_MIME_TYPES = void 0;
|
|
4
4
|
exports.resolveClientFileContentKind = resolveClientFileContentKind;
|
|
5
|
-
const
|
|
5
|
+
const client_file_content_kind_enum_1 = require("./schemas/client-file-content-kind.enum");
|
|
6
6
|
/** Spreadsheets read as sheets and rows (no PDF, no OCR). */
|
|
7
7
|
exports.CLIENT_FILE_SHEET_MIME_TYPES = new Set([
|
|
8
8
|
'text/csv',
|
|
9
9
|
'text/tab-separated-values',
|
|
10
10
|
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
11
11
|
]);
|
|
12
|
-
/** Legacy .xls / .ods: no safe maintained parser;
|
|
12
|
+
/** Legacy .xls / .ods: no safe maintained parser; page reads refuse these formats. */
|
|
13
13
|
exports.CLIENT_FILE_LEGACY_SHEET_MIME_TYPES = new Set([
|
|
14
14
|
'application/vnd.ms-excel',
|
|
15
15
|
'application/vnd.oasis.opendocument.spreadsheet',
|
|
@@ -28,22 +28,22 @@ function resolveClientFileContentKind(mimeType, filename) {
|
|
|
28
28
|
const mime = mimeType.toLowerCase().split(';')[0].trim();
|
|
29
29
|
const extension = (filename ?? '').toLowerCase().split('.').pop() ?? '';
|
|
30
30
|
if (mime.startsWith('image/'))
|
|
31
|
-
return
|
|
31
|
+
return client_file_content_kind_enum_1.ClientFileContentKind.IMAGE;
|
|
32
32
|
if (mime === 'application/pdf')
|
|
33
|
-
return
|
|
33
|
+
return client_file_content_kind_enum_1.ClientFileContentKind.PDF;
|
|
34
34
|
if (exports.CLIENT_FILE_SHEET_MIME_TYPES.has(mime))
|
|
35
|
-
return
|
|
35
|
+
return client_file_content_kind_enum_1.ClientFileContentKind.SHEET;
|
|
36
36
|
if (exports.CLIENT_FILE_LEGACY_SHEET_MIME_TYPES.has(mime))
|
|
37
|
-
return
|
|
37
|
+
return client_file_content_kind_enum_1.ClientFileContentKind.DOCUMENT;
|
|
38
38
|
if (exports.CLIENT_FILE_PRESENTATION_MIME_TYPES.has(mime))
|
|
39
|
-
return
|
|
39
|
+
return client_file_content_kind_enum_1.ClientFileContentKind.PRESENTATION;
|
|
40
40
|
if (mime.includes('word') || mime.includes('opendocument.text') || mime.includes('rtf')) {
|
|
41
|
-
return
|
|
41
|
+
return client_file_content_kind_enum_1.ClientFileContentKind.DOCUMENT;
|
|
42
42
|
}
|
|
43
43
|
if (SHEET_EXTENSIONS.has(extension) &&
|
|
44
44
|
(mime.startsWith('text/') || mime === 'application/octet-stream')) {
|
|
45
|
-
return
|
|
45
|
+
return client_file_content_kind_enum_1.ClientFileContentKind.SHEET;
|
|
46
46
|
}
|
|
47
|
-
return
|
|
47
|
+
return client_file_content_kind_enum_1.ClientFileContentKind.TEXT;
|
|
48
48
|
}
|
|
49
49
|
//# sourceMappingURL=client-file-content-kind.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-file-content-kind.js","sourceRoot":"","sources":["../../../v1/client-file/client-file-content-kind.ts"],"names":[],"mappings":";;;AAwBA,oEAqBC;AA7CD,
|
|
1
|
+
{"version":3,"file":"client-file-content-kind.js","sourceRoot":"","sources":["../../../v1/client-file/client-file-content-kind.ts"],"names":[],"mappings":";;;AAwBA,oEAqBC;AA7CD,2FAAgF;AAEhF,6DAA6D;AAChD,QAAA,4BAA4B,GAAwB,IAAI,GAAG,CAAC;IACrE,UAAU;IACV,2BAA2B;IAC3B,mEAAmE;CACtE,CAAC,CAAC;AACH,sFAAsF;AACzE,QAAA,mCAAmC,GAAwB,IAAI,GAAG,CAAC;IAC5E,0BAA0B;IAC1B,gDAAgD;CACnD,CAAC,CAAC;AACU,QAAA,mCAAmC,GAAwB,IAAI,GAAG,CAAC;IAC5E,+BAA+B;IAC/B,2EAA2E;IAC3E,iDAAiD;CACpD,CAAC,CAAC;AACH,MAAM,gBAAgB,GAAwB,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;AAE9E;;;GAGG;AACH,SAAgB,4BAA4B,CACxC,QAAgB,EAChB,QAAwB;IAExB,MAAM,IAAI,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IACzD,MAAM,SAAS,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC;IACxE,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;QAAE,OAAO,qDAAqB,CAAC,KAAK,CAAC;IAClE,IAAI,IAAI,KAAK,iBAAiB;QAAE,OAAO,qDAAqB,CAAC,GAAG,CAAC;IACjE,IAAI,oCAA4B,CAAC,GAAG,CAAC,IAAI,CAAC;QAAE,OAAO,qDAAqB,CAAC,KAAK,CAAC;IAC/E,IAAI,2CAAmC,CAAC,GAAG,CAAC,IAAI,CAAC;QAAE,OAAO,qDAAqB,CAAC,QAAQ,CAAC;IACzF,IAAI,2CAAmC,CAAC,GAAG,CAAC,IAAI,CAAC;QAAE,OAAO,qDAAqB,CAAC,YAAY,CAAC;IAC7F,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,mBAAmB,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QACtF,OAAO,qDAAqB,CAAC,QAAQ,CAAC;IAC1C,CAAC;IACD,IACI,gBAAgB,CAAC,GAAG,CAAC,SAAS,CAAC;QAC/B,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,IAAI,KAAK,0BAA0B,CAAC,EACnE,CAAC;QACC,OAAO,qDAAqB,CAAC,KAAK,CAAC;IACvC,CAAC;IACD,OAAO,qDAAqB,CAAC,IAAI,CAAC;AACtC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method.enum';
|
|
3
|
+
/** Write-once page text cache: a page already stored stays as it is. */
|
|
4
|
+
export declare namespace ClientDocumentTextsSaveS2SCommand {
|
|
5
|
+
const Params: z.ZodObject<{
|
|
6
|
+
fileId: z.ZodUUID;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
const Request: z.ZodObject<{
|
|
9
|
+
chatId: z.ZodUUID;
|
|
10
|
+
profile: z.ZodString;
|
|
11
|
+
pages: z.ZodArray<z.ZodObject<{
|
|
12
|
+
page: z.ZodNumber;
|
|
13
|
+
text: z.ZodString;
|
|
14
|
+
}, z.core.$strict>>;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
const Response: z.ZodObject<{}, z.core.$strip>;
|
|
17
|
+
const URL: (fileId: string) => string;
|
|
18
|
+
const METHOD = HttpMethod.PUT;
|
|
19
|
+
type ParamsType = z.infer<typeof Params>;
|
|
20
|
+
type RequestType = z.infer<typeof Request>;
|
|
21
|
+
type ResponseType = z.infer<typeof Response>;
|
|
22
|
+
}
|
|
23
|
+
/** Hidden copy of a sandbox file, so it is read the same way as an attachment. */
|
|
24
|
+
export declare namespace ClientFileInternalImportS2SCommand {
|
|
25
|
+
const Request: z.ZodObject<{
|
|
26
|
+
chatId: z.ZodUUID;
|
|
27
|
+
ownerType: z.ZodEnum<typeof import("../..").S2SUploadAiFileOwnerType>;
|
|
28
|
+
ownerId: z.ZodUUID;
|
|
29
|
+
filename: z.ZodString;
|
|
30
|
+
mimeType: z.ZodString;
|
|
31
|
+
fileBase64: z.ZodString;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
const Response: z.ZodObject<{
|
|
34
|
+
fileId: z.ZodUUID;
|
|
35
|
+
key: z.ZodString;
|
|
36
|
+
mimeType: z.ZodString;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
const URL: "/file-api/s2s/files/client-file/internal";
|
|
39
|
+
const METHOD = HttpMethod.POST;
|
|
40
|
+
type RequestType = z.infer<typeof Request>;
|
|
41
|
+
type ResponseType = z.infer<typeof Response>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientFileInternalImportS2SCommand = exports.ClientDocumentTextsSaveS2SCommand = void 0;
|
|
4
|
+
const rest_api_1 = require("../../../rest-api");
|
|
5
|
+
const http_method_enum_1 = require("../../../shared/http-method.enum");
|
|
6
|
+
const client_document_schema_1 = require("../schemas/client-document.schema");
|
|
7
|
+
const client_file_internal_import_schema_1 = require("../schemas/client-file-internal-import.schema");
|
|
8
|
+
const client_file_reading_schema_1 = require("../schemas/client-file-reading.schema");
|
|
9
|
+
/** Write-once page text cache: a page already stored stays as it is. */
|
|
10
|
+
var ClientDocumentTextsSaveS2SCommand;
|
|
11
|
+
(function (ClientDocumentTextsSaveS2SCommand) {
|
|
12
|
+
ClientDocumentTextsSaveS2SCommand.Params = client_file_reading_schema_1.ClientFileIdParamsSchema;
|
|
13
|
+
ClientDocumentTextsSaveS2SCommand.Request = client_document_schema_1.ClientDocumentTextsSaveRequestSchema;
|
|
14
|
+
ClientDocumentTextsSaveS2SCommand.Response = client_document_schema_1.ClientDocumentTextsSaveResponseSchema;
|
|
15
|
+
ClientDocumentTextsSaveS2SCommand.URL = (fileId) => rest_api_1.REST_API.V1.FILE_S2S.CLIENT_DOCUMENT_TEXTS(fileId);
|
|
16
|
+
ClientDocumentTextsSaveS2SCommand.METHOD = http_method_enum_1.HttpMethod.PUT;
|
|
17
|
+
})(ClientDocumentTextsSaveS2SCommand || (exports.ClientDocumentTextsSaveS2SCommand = ClientDocumentTextsSaveS2SCommand = {}));
|
|
18
|
+
/** Hidden copy of a sandbox file, so it is read the same way as an attachment. */
|
|
19
|
+
var ClientFileInternalImportS2SCommand;
|
|
20
|
+
(function (ClientFileInternalImportS2SCommand) {
|
|
21
|
+
ClientFileInternalImportS2SCommand.Request = client_file_internal_import_schema_1.ClientFileInternalImportRequestSchema;
|
|
22
|
+
ClientFileInternalImportS2SCommand.Response = client_file_internal_import_schema_1.ClientFileInternalImportResponseSchema;
|
|
23
|
+
ClientFileInternalImportS2SCommand.URL = rest_api_1.REST_API.V1.FILE_S2S.CLIENT_FILE_INTERNAL_IMPORT;
|
|
24
|
+
ClientFileInternalImportS2SCommand.METHOD = http_method_enum_1.HttpMethod.POST;
|
|
25
|
+
})(ClientFileInternalImportS2SCommand || (exports.ClientFileInternalImportS2SCommand = ClientFileInternalImportS2SCommand = {}));
|
|
26
|
+
//# sourceMappingURL=client-document.s2s.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-document.s2s.js","sourceRoot":"","sources":["../../../../v1/client-file/commands/client-document.s2s.ts"],"names":[],"mappings":";;;AACA,gDAA6C;AAC7C,uEAA8D;AAC9D,8EAG2C;AAC3C,sGAGuD;AACvD,sFAAiF;AAEjF,wEAAwE;AACxE,IAAiB,iCAAiC,CASjD;AATD,WAAiB,iCAAiC;IACjC,wCAAM,GAAG,qDAAwB,CAAC;IAClC,yCAAO,GAAG,6DAAoC,CAAC;IAC/C,0CAAQ,GAAG,8DAAqC,CAAC;IACjD,qCAAG,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC,mBAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAC7E,wCAAM,GAAG,6BAAU,CAAC,GAAG,CAAC;AAIzC,CAAC,EATgB,iCAAiC,iDAAjC,iCAAiC,QASjD;AAED,kFAAkF;AAClF,IAAiB,kCAAkC,CAOlD;AAPD,WAAiB,kCAAkC;IAClC,0CAAO,GAAG,0EAAqC,CAAC;IAChD,2CAAQ,GAAG,2EAAsC,CAAC;IAClD,sCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IACvD,yCAAM,GAAG,6BAAU,CAAC,IAAI,CAAC;AAG1C,CAAC,EAPgB,kCAAkC,kDAAlC,kCAAkC,QAOlD"}
|
|
@@ -21,6 +21,7 @@ export declare namespace ClientFileAttachS2SCommand {
|
|
|
21
21
|
size: z.ZodNumber;
|
|
22
22
|
originalFilename: z.ZodString;
|
|
23
23
|
originalContentType: z.ZodString;
|
|
24
|
+
sourceSha256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
25
|
originalSize: z.ZodNumber;
|
|
25
26
|
originalKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
27
|
processingCategory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -11,6 +11,7 @@ export declare namespace ClientFileUploadCommand {
|
|
|
11
11
|
s3Url: z.ZodString;
|
|
12
12
|
contentType: z.ZodString;
|
|
13
13
|
size: z.ZodNumber;
|
|
14
|
+
sourceSha256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
15
|
originalSize: z.ZodNumber;
|
|
15
16
|
originalFilename: z.ZodString;
|
|
16
17
|
originalContentType: z.ZodString;
|