@veruna/api-contracts 20.3.0 → 20.5.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 +26 -0
- package/build/locales/validation.js +22 -0
- package/build/locales/validation.js.map +1 -1
- package/build/rest-api.d.ts +1 -0
- package/build/rest-api.js +1 -0
- package/build/rest-api.js.map +1 -1
- package/build/routes/s2s.routes.d.ts +1 -0
- package/build/routes/s2s.routes.js +1 -0
- package/build/routes/s2s.routes.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/ai/tool-id.enum.d.ts +1 -0
- package/build/v1/ai/tool-id.enum.js +1 -0
- package/build/v1/ai/tool-id.enum.js.map +1 -1
- package/build/v1/chat/commands/create-reg-chat.command.d.ts +44 -1
- package/build/v1/chat/commands/create-unreg-chat.command.d.ts +44 -1
- package/build/v1/chat/commands/update-chat-title.command.d.ts +44 -1
- package/build/v1/chat/commands/update-chat.command.d.ts +44 -1
- package/build/v1/chat/queries/get-last-active-chat.query.d.ts +44 -1
- package/build/v1/chat/queries/get-reg-chat.query.d.ts +44 -1
- package/build/v1/chat/queries/get-unreg-chat.query.d.ts +44 -1
- package/build/v1/chat/schemas/chat-with-messages-response.schema.d.ts +44 -1
- package/build/v1/client-file/ai-file-policy.constants.d.ts +8 -0
- package/build/v1/client-file/ai-file-policy.constants.js +20 -0
- package/build/v1/client-file/ai-file-policy.constants.js.map +1 -0
- 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-file-reading.s2s.d.ts +23 -0
- package/build/v1/client-file/queries/client-file-reading.s2s.js +10 -1
- package/build/v1/client-file/queries/client-file-reading.s2s.js.map +1 -1
- package/build/v1/client-file/schemas/client-file-mime-types.js +4 -3
- package/build/v1/client-file/schemas/client-file-mime-types.js.map +1 -1
- package/build/v1/client-file/schemas/client-file-pages.schema.d.ts +6 -1
- package/build/v1/client-file/schemas/client-file-pages.schema.js +9 -4
- package/build/v1/client-file/schemas/client-file-pages.schema.js.map +1 -1
- package/build/v1/client-file/schemas/client-file-search.schema.d.ts +31 -0
- package/build/v1/client-file/schemas/client-file-search.schema.js +49 -0
- package/build/v1/client-file/schemas/client-file-search.schema.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/build/v1/client-file/upload-magic-bytes.js +2 -0
- package/build/v1/client-file/upload-magic-bytes.js.map +1 -1
- package/build/v1/message/commands/create-message.command.d.ts +6 -0
- package/build/v1/message/queries/get-message-stream-reg.query.d.ts +3 -0
- package/build/v1/message/queries/get-message-stream-unreg.query.d.ts +3 -0
- package/build/v1/message/schemas/generation-step-type.enum.d.ts +1 -0
- package/build/v1/message/schemas/generation-step-type.enum.js +1 -0
- package/build/v1/message/schemas/generation-step-type.enum.js.map +1 -1
- package/build/v1/message/schemas/index.d.ts +3 -1
- package/build/v1/message/schemas/index.js +19 -2
- package/build/v1/message/schemas/index.js.map +1 -1
- package/build/v1/message/schemas/message-response.schema.d.ts +44 -1
- package/build/v1/message/schemas/message-step-response.schema.d.ts +133 -4
- package/build/v1/message/schemas/message-step-response.schema.js +7 -3
- package/build/v1/message/schemas/message-step-response.schema.js.map +1 -1
- package/build/v1/message/schemas/search-file-step-content.schema.d.ts +40 -0
- package/build/v1/message/schemas/search-file-step-content.schema.js +14 -0
- package/build/v1/message/schemas/search-file-step-content.schema.js.map +1 -0
- package/build/v1/message/schemas/send-file-step-content.schema.d.ts +11 -0
- package/build/v1/message/schemas/send-file-step-content.schema.js +14 -0
- package/build/v1/message/schemas/send-file-step-content.schema.js.map +1 -0
- package/build/v1/message/schemas/step-metadata.schema.d.ts +7 -0
- package/build/v1/message/schemas/step-metadata.schema.js +7 -1
- package/build/v1/message/schemas/step-metadata.schema.js.map +1 -1
- package/build/v1/message/schemas/stream-events.schema.d.ts +6 -0
- package/build/v1/s2s/queries/check-client-file-quota.query.d.ts +1 -0
- package/build/v1/s2s/schemas/s2s-check-client-file-quota-response.schema.d.ts +1 -0
- package/build/v1/s2s/schemas/s2s-check-client-file-quota-response.schema.js +1 -0
- package/build/v1/s2s/schemas/s2s-check-client-file-quota-response.schema.js.map +1 -1
- package/build/v1/tool/sandbox/sandbox.errors.d.ts +2 -0
- package/build/v1/tool/sandbox/sandbox.errors.js +6 -0
- package/build/v1/tool/sandbox/sandbox.errors.js.map +1 -1
- package/build-esm/.tsbuildinfo +1 -1
- package/build-esm/locales/validation.js +22 -0
- package/build-esm/locales/validation.js.map +1 -1
- package/build-esm/rest-api.js +1 -0
- package/build-esm/rest-api.js.map +1 -1
- package/build-esm/routes/s2s.routes.js +1 -0
- package/build-esm/routes/s2s.routes.js.map +1 -1
- package/build-esm/v1/ai/tool-id.enum.js +1 -0
- package/build-esm/v1/ai/tool-id.enum.js.map +1 -1
- package/build-esm/v1/client-file/ai-file-policy.constants.js +17 -0
- package/build-esm/v1/client-file/ai-file-policy.constants.js.map +1 -0
- 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-file-reading.s2s.js +9 -0
- package/build-esm/v1/client-file/queries/client-file-reading.s2s.js.map +1 -1
- package/build-esm/v1/client-file/schemas/client-file-mime-types.js +4 -3
- package/build-esm/v1/client-file/schemas/client-file-mime-types.js.map +1 -1
- package/build-esm/v1/client-file/schemas/client-file-pages.schema.js +8 -3
- package/build-esm/v1/client-file/schemas/client-file-pages.schema.js.map +1 -1
- package/build-esm/v1/client-file/schemas/client-file-search.schema.js +46 -0
- package/build-esm/v1/client-file/schemas/client-file-search.schema.js.map +1 -0
- package/build-esm/v1/client-file/schemas/index.js +1 -0
- package/build-esm/v1/client-file/schemas/index.js.map +1 -1
- package/build-esm/v1/client-file/upload-magic-bytes.js +2 -0
- package/build-esm/v1/client-file/upload-magic-bytes.js.map +1 -1
- package/build-esm/v1/message/schemas/generation-step-type.enum.js +1 -0
- package/build-esm/v1/message/schemas/generation-step-type.enum.js.map +1 -1
- package/build-esm/v1/message/schemas/index.js +3 -1
- package/build-esm/v1/message/schemas/index.js.map +1 -1
- package/build-esm/v1/message/schemas/message-step-response.schema.js +7 -3
- package/build-esm/v1/message/schemas/message-step-response.schema.js.map +1 -1
- package/build-esm/v1/message/schemas/search-file-step-content.schema.js +11 -0
- package/build-esm/v1/message/schemas/search-file-step-content.schema.js.map +1 -0
- package/build-esm/v1/message/schemas/send-file-step-content.schema.js +11 -0
- package/build-esm/v1/message/schemas/send-file-step-content.schema.js.map +1 -0
- package/build-esm/v1/message/schemas/step-metadata.schema.js +6 -0
- package/build-esm/v1/message/schemas/step-metadata.schema.js.map +1 -1
- package/build-esm/v1/s2s/schemas/s2s-check-client-file-quota-response.schema.js +1 -0
- package/build-esm/v1/s2s/schemas/s2s-check-client-file-quota-response.schema.js.map +1 -1
- package/build-esm/v1/tool/sandbox/sandbox.errors.js +6 -0
- package/build-esm/v1/tool/sandbox/sandbox.errors.js.map +1 -1
- package/package.json +10 -1
|
@@ -24,6 +24,7 @@ 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";
|
|
27
28
|
ToolId["SEND_FILE"] = "SEND_FILE";
|
|
28
29
|
// Sandbox primitive tools
|
|
29
30
|
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,MAwBX;AAxBD,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,qCAA2B,CAAA;IAC3B,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,EAxBW,MAAM,sBAAN,MAAM,QAwBjB"}
|
|
@@ -32,7 +32,50 @@ export declare namespace CreateRegChatCommand {
|
|
|
32
32
|
type: z.ZodEnum<typeof import("../..").GenerationStepType>;
|
|
33
33
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
34
34
|
modelUuid: z.ZodNullable<z.ZodString>;
|
|
35
|
-
content: z.ZodNullable<z.ZodUnion<readonly [z.
|
|
35
|
+
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
36
|
+
path: z.ZodOptional<z.ZodString>;
|
|
37
|
+
sandboxPath: z.ZodString;
|
|
38
|
+
filename: z.ZodString;
|
|
39
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
40
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
url: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
43
|
+
queries: z.ZodArray<z.ZodString>;
|
|
44
|
+
hitCount: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
files: z.ZodArray<z.ZodObject<{
|
|
46
|
+
attachment_id: z.ZodString;
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
hits: z.ZodArray<z.ZodObject<{
|
|
50
|
+
attachment_id: z.ZodString;
|
|
51
|
+
page: z.ZodNumber;
|
|
52
|
+
score: z.ZodNumber;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
55
|
+
hitCount: number;
|
|
56
|
+
queries: string[];
|
|
57
|
+
files: {
|
|
58
|
+
attachment_id: string;
|
|
59
|
+
name: string;
|
|
60
|
+
}[];
|
|
61
|
+
hits: {
|
|
62
|
+
attachment_id: string;
|
|
63
|
+
page: number;
|
|
64
|
+
score: number;
|
|
65
|
+
}[];
|
|
66
|
+
}, {
|
|
67
|
+
queries: string[];
|
|
68
|
+
files: {
|
|
69
|
+
attachment_id: string;
|
|
70
|
+
name: string;
|
|
71
|
+
}[];
|
|
72
|
+
hits: {
|
|
73
|
+
attachment_id: string;
|
|
74
|
+
page: number;
|
|
75
|
+
score: number;
|
|
76
|
+
}[];
|
|
77
|
+
hitCount?: number | undefined;
|
|
78
|
+
}>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36
79
|
cta: z.ZodEnum<typeof import("../..").CardCta>;
|
|
37
80
|
messageKey: z.ZodOptional<z.ZodEnum<typeof import("../..").CardMessageKey>>;
|
|
38
81
|
kind: z.ZodLiteral<import("../..").BudgetPromoKind.DISCOUNT_APPLIED>;
|
|
@@ -32,7 +32,50 @@ export declare namespace CreateUnregChatCommand {
|
|
|
32
32
|
type: z.ZodEnum<typeof import("../..").GenerationStepType>;
|
|
33
33
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
34
34
|
modelUuid: z.ZodNullable<z.ZodString>;
|
|
35
|
-
content: z.ZodNullable<z.ZodUnion<readonly [z.
|
|
35
|
+
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
36
|
+
path: z.ZodOptional<z.ZodString>;
|
|
37
|
+
sandboxPath: z.ZodString;
|
|
38
|
+
filename: z.ZodString;
|
|
39
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
40
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
url: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
43
|
+
queries: z.ZodArray<z.ZodString>;
|
|
44
|
+
hitCount: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
files: z.ZodArray<z.ZodObject<{
|
|
46
|
+
attachment_id: z.ZodString;
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
hits: z.ZodArray<z.ZodObject<{
|
|
50
|
+
attachment_id: z.ZodString;
|
|
51
|
+
page: z.ZodNumber;
|
|
52
|
+
score: z.ZodNumber;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
55
|
+
hitCount: number;
|
|
56
|
+
queries: string[];
|
|
57
|
+
files: {
|
|
58
|
+
attachment_id: string;
|
|
59
|
+
name: string;
|
|
60
|
+
}[];
|
|
61
|
+
hits: {
|
|
62
|
+
attachment_id: string;
|
|
63
|
+
page: number;
|
|
64
|
+
score: number;
|
|
65
|
+
}[];
|
|
66
|
+
}, {
|
|
67
|
+
queries: string[];
|
|
68
|
+
files: {
|
|
69
|
+
attachment_id: string;
|
|
70
|
+
name: string;
|
|
71
|
+
}[];
|
|
72
|
+
hits: {
|
|
73
|
+
attachment_id: string;
|
|
74
|
+
page: number;
|
|
75
|
+
score: number;
|
|
76
|
+
}[];
|
|
77
|
+
hitCount?: number | undefined;
|
|
78
|
+
}>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36
79
|
cta: z.ZodEnum<typeof import("../..").CardCta>;
|
|
37
80
|
messageKey: z.ZodOptional<z.ZodEnum<typeof import("../..").CardMessageKey>>;
|
|
38
81
|
kind: z.ZodLiteral<import("../..").BudgetPromoKind.DISCOUNT_APPLIED>;
|
|
@@ -31,7 +31,50 @@ export declare namespace UpdateChatTitleCommand {
|
|
|
31
31
|
type: z.ZodEnum<typeof import("../..").GenerationStepType>;
|
|
32
32
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
33
33
|
modelUuid: z.ZodNullable<z.ZodString>;
|
|
34
|
-
content: z.ZodNullable<z.ZodUnion<readonly [z.
|
|
34
|
+
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
35
|
+
path: z.ZodOptional<z.ZodString>;
|
|
36
|
+
sandboxPath: z.ZodString;
|
|
37
|
+
filename: z.ZodString;
|
|
38
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
39
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
url: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
42
|
+
queries: z.ZodArray<z.ZodString>;
|
|
43
|
+
hitCount: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
files: z.ZodArray<z.ZodObject<{
|
|
45
|
+
attachment_id: z.ZodString;
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
hits: z.ZodArray<z.ZodObject<{
|
|
49
|
+
attachment_id: z.ZodString;
|
|
50
|
+
page: z.ZodNumber;
|
|
51
|
+
score: z.ZodNumber;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
54
|
+
hitCount: number;
|
|
55
|
+
queries: string[];
|
|
56
|
+
files: {
|
|
57
|
+
attachment_id: string;
|
|
58
|
+
name: string;
|
|
59
|
+
}[];
|
|
60
|
+
hits: {
|
|
61
|
+
attachment_id: string;
|
|
62
|
+
page: number;
|
|
63
|
+
score: number;
|
|
64
|
+
}[];
|
|
65
|
+
}, {
|
|
66
|
+
queries: string[];
|
|
67
|
+
files: {
|
|
68
|
+
attachment_id: string;
|
|
69
|
+
name: string;
|
|
70
|
+
}[];
|
|
71
|
+
hits: {
|
|
72
|
+
attachment_id: string;
|
|
73
|
+
page: number;
|
|
74
|
+
score: number;
|
|
75
|
+
}[];
|
|
76
|
+
hitCount?: number | undefined;
|
|
77
|
+
}>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
35
78
|
cta: z.ZodEnum<typeof import("../..").CardCta>;
|
|
36
79
|
messageKey: z.ZodOptional<z.ZodEnum<typeof import("../..").CardMessageKey>>;
|
|
37
80
|
kind: z.ZodLiteral<import("../..").BudgetPromoKind.DISCOUNT_APPLIED>;
|
|
@@ -33,7 +33,50 @@ export declare namespace UpdateChatCommand {
|
|
|
33
33
|
type: z.ZodEnum<typeof import("../..").GenerationStepType>;
|
|
34
34
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
35
35
|
modelUuid: z.ZodNullable<z.ZodString>;
|
|
36
|
-
content: z.ZodNullable<z.ZodUnion<readonly [z.
|
|
36
|
+
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
37
|
+
path: z.ZodOptional<z.ZodString>;
|
|
38
|
+
sandboxPath: z.ZodString;
|
|
39
|
+
filename: z.ZodString;
|
|
40
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
41
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
url: z.ZodOptional<z.ZodString>;
|
|
43
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
44
|
+
queries: z.ZodArray<z.ZodString>;
|
|
45
|
+
hitCount: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
files: z.ZodArray<z.ZodObject<{
|
|
47
|
+
attachment_id: z.ZodString;
|
|
48
|
+
name: z.ZodString;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
hits: z.ZodArray<z.ZodObject<{
|
|
51
|
+
attachment_id: z.ZodString;
|
|
52
|
+
page: z.ZodNumber;
|
|
53
|
+
score: z.ZodNumber;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
56
|
+
hitCount: number;
|
|
57
|
+
queries: string[];
|
|
58
|
+
files: {
|
|
59
|
+
attachment_id: string;
|
|
60
|
+
name: string;
|
|
61
|
+
}[];
|
|
62
|
+
hits: {
|
|
63
|
+
attachment_id: string;
|
|
64
|
+
page: number;
|
|
65
|
+
score: number;
|
|
66
|
+
}[];
|
|
67
|
+
}, {
|
|
68
|
+
queries: string[];
|
|
69
|
+
files: {
|
|
70
|
+
attachment_id: string;
|
|
71
|
+
name: string;
|
|
72
|
+
}[];
|
|
73
|
+
hits: {
|
|
74
|
+
attachment_id: string;
|
|
75
|
+
page: number;
|
|
76
|
+
score: number;
|
|
77
|
+
}[];
|
|
78
|
+
hitCount?: number | undefined;
|
|
79
|
+
}>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
37
80
|
cta: z.ZodEnum<typeof import("../..").CardCta>;
|
|
38
81
|
messageKey: z.ZodOptional<z.ZodEnum<typeof import("../..").CardMessageKey>>;
|
|
39
82
|
kind: z.ZodLiteral<import("../..").BudgetPromoKind.DISCOUNT_APPLIED>;
|
|
@@ -29,7 +29,50 @@ export declare namespace GetLastActiveChatQuery {
|
|
|
29
29
|
type: z.ZodEnum<typeof import("../..").GenerationStepType>;
|
|
30
30
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
31
31
|
modelUuid: z.ZodNullable<z.ZodString>;
|
|
32
|
-
content: z.ZodNullable<z.ZodUnion<readonly [z.
|
|
32
|
+
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
33
|
+
path: z.ZodOptional<z.ZodString>;
|
|
34
|
+
sandboxPath: z.ZodString;
|
|
35
|
+
filename: z.ZodString;
|
|
36
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
37
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
url: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
40
|
+
queries: z.ZodArray<z.ZodString>;
|
|
41
|
+
hitCount: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
files: z.ZodArray<z.ZodObject<{
|
|
43
|
+
attachment_id: z.ZodString;
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
hits: z.ZodArray<z.ZodObject<{
|
|
47
|
+
attachment_id: z.ZodString;
|
|
48
|
+
page: z.ZodNumber;
|
|
49
|
+
score: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
52
|
+
hitCount: number;
|
|
53
|
+
queries: string[];
|
|
54
|
+
files: {
|
|
55
|
+
attachment_id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
}[];
|
|
58
|
+
hits: {
|
|
59
|
+
attachment_id: string;
|
|
60
|
+
page: number;
|
|
61
|
+
score: number;
|
|
62
|
+
}[];
|
|
63
|
+
}, {
|
|
64
|
+
queries: string[];
|
|
65
|
+
files: {
|
|
66
|
+
attachment_id: string;
|
|
67
|
+
name: string;
|
|
68
|
+
}[];
|
|
69
|
+
hits: {
|
|
70
|
+
attachment_id: string;
|
|
71
|
+
page: number;
|
|
72
|
+
score: number;
|
|
73
|
+
}[];
|
|
74
|
+
hitCount?: number | undefined;
|
|
75
|
+
}>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
33
76
|
cta: z.ZodEnum<typeof import("../..").CardCta>;
|
|
34
77
|
messageKey: z.ZodOptional<z.ZodEnum<typeof import("../..").CardMessageKey>>;
|
|
35
78
|
kind: z.ZodLiteral<import("../..").BudgetPromoKind.DISCOUNT_APPLIED>;
|
|
@@ -29,7 +29,50 @@ export declare namespace GetRegChatQuery {
|
|
|
29
29
|
type: z.ZodEnum<typeof import("../..").GenerationStepType>;
|
|
30
30
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
31
31
|
modelUuid: z.ZodNullable<z.ZodString>;
|
|
32
|
-
content: z.ZodNullable<z.ZodUnion<readonly [z.
|
|
32
|
+
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
33
|
+
path: z.ZodOptional<z.ZodString>;
|
|
34
|
+
sandboxPath: z.ZodString;
|
|
35
|
+
filename: z.ZodString;
|
|
36
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
37
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
url: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
40
|
+
queries: z.ZodArray<z.ZodString>;
|
|
41
|
+
hitCount: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
files: z.ZodArray<z.ZodObject<{
|
|
43
|
+
attachment_id: z.ZodString;
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
hits: z.ZodArray<z.ZodObject<{
|
|
47
|
+
attachment_id: z.ZodString;
|
|
48
|
+
page: z.ZodNumber;
|
|
49
|
+
score: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
52
|
+
hitCount: number;
|
|
53
|
+
queries: string[];
|
|
54
|
+
files: {
|
|
55
|
+
attachment_id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
}[];
|
|
58
|
+
hits: {
|
|
59
|
+
attachment_id: string;
|
|
60
|
+
page: number;
|
|
61
|
+
score: number;
|
|
62
|
+
}[];
|
|
63
|
+
}, {
|
|
64
|
+
queries: string[];
|
|
65
|
+
files: {
|
|
66
|
+
attachment_id: string;
|
|
67
|
+
name: string;
|
|
68
|
+
}[];
|
|
69
|
+
hits: {
|
|
70
|
+
attachment_id: string;
|
|
71
|
+
page: number;
|
|
72
|
+
score: number;
|
|
73
|
+
}[];
|
|
74
|
+
hitCount?: number | undefined;
|
|
75
|
+
}>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
33
76
|
cta: z.ZodEnum<typeof import("../..").CardCta>;
|
|
34
77
|
messageKey: z.ZodOptional<z.ZodEnum<typeof import("../..").CardMessageKey>>;
|
|
35
78
|
kind: z.ZodLiteral<import("../..").BudgetPromoKind.DISCOUNT_APPLIED>;
|
|
@@ -29,7 +29,50 @@ export declare namespace GetUnregChatQuery {
|
|
|
29
29
|
type: z.ZodEnum<typeof import("../..").GenerationStepType>;
|
|
30
30
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
31
31
|
modelUuid: z.ZodNullable<z.ZodString>;
|
|
32
|
-
content: z.ZodNullable<z.ZodUnion<readonly [z.
|
|
32
|
+
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
33
|
+
path: z.ZodOptional<z.ZodString>;
|
|
34
|
+
sandboxPath: z.ZodString;
|
|
35
|
+
filename: z.ZodString;
|
|
36
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
37
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
url: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
40
|
+
queries: z.ZodArray<z.ZodString>;
|
|
41
|
+
hitCount: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
files: z.ZodArray<z.ZodObject<{
|
|
43
|
+
attachment_id: z.ZodString;
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
hits: z.ZodArray<z.ZodObject<{
|
|
47
|
+
attachment_id: z.ZodString;
|
|
48
|
+
page: z.ZodNumber;
|
|
49
|
+
score: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
52
|
+
hitCount: number;
|
|
53
|
+
queries: string[];
|
|
54
|
+
files: {
|
|
55
|
+
attachment_id: string;
|
|
56
|
+
name: string;
|
|
57
|
+
}[];
|
|
58
|
+
hits: {
|
|
59
|
+
attachment_id: string;
|
|
60
|
+
page: number;
|
|
61
|
+
score: number;
|
|
62
|
+
}[];
|
|
63
|
+
}, {
|
|
64
|
+
queries: string[];
|
|
65
|
+
files: {
|
|
66
|
+
attachment_id: string;
|
|
67
|
+
name: string;
|
|
68
|
+
}[];
|
|
69
|
+
hits: {
|
|
70
|
+
attachment_id: string;
|
|
71
|
+
page: number;
|
|
72
|
+
score: number;
|
|
73
|
+
}[];
|
|
74
|
+
hitCount?: number | undefined;
|
|
75
|
+
}>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
33
76
|
cta: z.ZodEnum<typeof import("../..").CardCta>;
|
|
34
77
|
messageKey: z.ZodOptional<z.ZodEnum<typeof import("../..").CardMessageKey>>;
|
|
35
78
|
kind: z.ZodLiteral<import("../..").BudgetPromoKind.DISCOUNT_APPLIED>;
|
|
@@ -23,7 +23,50 @@ export declare const ChatWithMessagesResponseSchema: z.ZodObject<{
|
|
|
23
23
|
type: z.ZodEnum<typeof import("../..").GenerationStepType>;
|
|
24
24
|
status: z.ZodEnum<typeof import("../..").MessageStepStatus>;
|
|
25
25
|
modelUuid: z.ZodNullable<z.ZodString>;
|
|
26
|
-
content: z.ZodNullable<z.ZodUnion<readonly [z.
|
|
26
|
+
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
27
|
+
path: z.ZodOptional<z.ZodString>;
|
|
28
|
+
sandboxPath: z.ZodString;
|
|
29
|
+
filename: z.ZodString;
|
|
30
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
31
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
url: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
34
|
+
queries: z.ZodArray<z.ZodString>;
|
|
35
|
+
hitCount: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
files: z.ZodArray<z.ZodObject<{
|
|
37
|
+
attachment_id: z.ZodString;
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
hits: z.ZodArray<z.ZodObject<{
|
|
41
|
+
attachment_id: z.ZodString;
|
|
42
|
+
page: z.ZodNumber;
|
|
43
|
+
score: z.ZodNumber;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
46
|
+
hitCount: number;
|
|
47
|
+
queries: string[];
|
|
48
|
+
files: {
|
|
49
|
+
attachment_id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
}[];
|
|
52
|
+
hits: {
|
|
53
|
+
attachment_id: string;
|
|
54
|
+
page: number;
|
|
55
|
+
score: number;
|
|
56
|
+
}[];
|
|
57
|
+
}, {
|
|
58
|
+
queries: string[];
|
|
59
|
+
files: {
|
|
60
|
+
attachment_id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
}[];
|
|
63
|
+
hits: {
|
|
64
|
+
attachment_id: string;
|
|
65
|
+
page: number;
|
|
66
|
+
score: number;
|
|
67
|
+
}[];
|
|
68
|
+
hitCount?: number | undefined;
|
|
69
|
+
}>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
27
70
|
cta: z.ZodEnum<typeof import("../..").CardCta>;
|
|
28
71
|
messageKey: z.ZodOptional<z.ZodEnum<typeof import("../..").CardMessageKey>>;
|
|
29
72
|
kind: z.ZodLiteral<import("../..").BudgetPromoKind.DISCOUNT_APPLIED>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Formats which cannot be safely delivered as generated Office documents. */
|
|
2
|
+
export declare const AI_UNSUPPORTED_EXTENSIONS: ReadonlySet<string>;
|
|
3
|
+
export declare const AI_UNSUPPORTED_FORMAT_HINT = "Convert to PDF/PNG/modern Office; encrypted Office, legacy Office, ODF and RTF are not accepted.";
|
|
4
|
+
export declare const AI_OFFICE_MIME_TYPES: {
|
|
5
|
+
readonly docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
6
|
+
readonly xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
7
|
+
readonly pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation";
|
|
8
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AI_OFFICE_MIME_TYPES = exports.AI_UNSUPPORTED_FORMAT_HINT = exports.AI_UNSUPPORTED_EXTENSIONS = void 0;
|
|
4
|
+
/** Formats which cannot be safely delivered as generated Office documents. */
|
|
5
|
+
exports.AI_UNSUPPORTED_EXTENSIONS = new Set([
|
|
6
|
+
'doc',
|
|
7
|
+
'xls',
|
|
8
|
+
'ppt',
|
|
9
|
+
'odt',
|
|
10
|
+
'ods',
|
|
11
|
+
'odp',
|
|
12
|
+
'rtf',
|
|
13
|
+
]);
|
|
14
|
+
exports.AI_UNSUPPORTED_FORMAT_HINT = 'Convert to PDF/PNG/modern Office; encrypted Office, legacy Office, ODF and RTF are not accepted.';
|
|
15
|
+
exports.AI_OFFICE_MIME_TYPES = {
|
|
16
|
+
docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
17
|
+
xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
18
|
+
pptx: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=ai-file-policy.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-file-policy.constants.js","sourceRoot":"","sources":["../../../v1/client-file/ai-file-policy.constants.ts"],"names":[],"mappings":";;;AAAA,8EAA8E;AACjE,QAAA,yBAAyB,GAAwB,IAAI,GAAG,CAAC;IAClE,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;CACR,CAAC,CAAC;AACU,QAAA,0BAA0B,GACnC,kGAAkG,CAAC;AAC1F,QAAA,oBAAoB,GAAG;IAChC,IAAI,EAAE,yEAAyE;IAC/E,IAAI,EAAE,mEAAmE;IACzE,IAAI,EAAE,2EAA2E;CAC3E,CAAC"}
|
|
@@ -22,4 +22,5 @@ __exportStar(require("./upload-magic-bytes"), exports);
|
|
|
22
22
|
__exportStar(require("./attachment-coverage"), exports);
|
|
23
23
|
__exportStar(require("./attachment-coverage.types"), exports);
|
|
24
24
|
__exportStar(require("./client-file-content-kind"), exports);
|
|
25
|
+
__exportStar(require("./ai-file-policy.constants"), exports);
|
|
25
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/client-file/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,8DAA4C;AAC5C,uDAAqC;AACrC,wDAAsC;AACtC,8DAA4C;AAC5C,6DAA2C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/client-file/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B;AAC3B,4CAA0B;AAC1B,8DAA4C;AAC5C,uDAAqC;AACrC,wDAAsC;AACtC,8DAA4C;AAC5C,6DAA2C;AAE3C,6DAA2C"}
|
|
@@ -181,3 +181,26 @@ export declare namespace ClientFileResolveKeyS2SQuery {
|
|
|
181
181
|
type QueryType = z.infer<typeof Query>;
|
|
182
182
|
type ResponseType = z.infer<typeof Response>;
|
|
183
183
|
}
|
|
184
|
+
export declare namespace ClientFileSearchS2SQuery {
|
|
185
|
+
const Params: z.ZodObject<{
|
|
186
|
+
fileId: z.ZodUUID;
|
|
187
|
+
}, z.core.$strip>;
|
|
188
|
+
const Query: z.ZodObject<{
|
|
189
|
+
q: z.ZodOptional<z.ZodString>;
|
|
190
|
+
queries: z.ZodPipe<z.ZodTransform<any, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
191
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
192
|
+
}, z.core.$strip>;
|
|
193
|
+
const Response: z.ZodObject<{
|
|
194
|
+
fileId: z.ZodUUID;
|
|
195
|
+
hits: z.ZodArray<z.ZodObject<{
|
|
196
|
+
queryIndex: z.ZodOptional<z.ZodNumber>;
|
|
197
|
+
page: z.ZodNumber;
|
|
198
|
+
score: z.ZodNumber;
|
|
199
|
+
snippets: z.ZodArray<z.ZodString>;
|
|
200
|
+
}, z.core.$strip>>;
|
|
201
|
+
}, z.core.$strip>;
|
|
202
|
+
const URL: (fileId: string) => string;
|
|
203
|
+
const METHOD = HttpMethod.GET;
|
|
204
|
+
type QueryType = z.infer<typeof Query>;
|
|
205
|
+
type ResponseType = z.infer<typeof Response>;
|
|
206
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ClientFileResolveKeyS2SQuery = exports.ClientFileTextLinesS2SQuery = exports.ClientFileSheetRowsS2SQuery = exports.ClientFilePageImageS2SQuery = exports.ClientFilePagePdfS2SQuery = exports.ClientFileOcrPagesS2SCommand = exports.ClientFilePagesS2SQuery = exports.ClientFileOutlineS2SQuery = void 0;
|
|
3
|
+
exports.ClientFileSearchS2SQuery = exports.ClientFileResolveKeyS2SQuery = exports.ClientFileTextLinesS2SQuery = exports.ClientFileSheetRowsS2SQuery = exports.ClientFilePageImageS2SQuery = exports.ClientFilePagePdfS2SQuery = exports.ClientFileOcrPagesS2SCommand = exports.ClientFilePagesS2SQuery = exports.ClientFileOutlineS2SQuery = void 0;
|
|
4
4
|
const client_file_resolve_key_schema_1 = require("../schemas/client-file-resolve-key.schema");
|
|
5
5
|
const client_file_pages_schema_1 = require("../schemas/client-file-pages.schema");
|
|
6
6
|
const rest_api_1 = require("../../../rest-api");
|
|
7
7
|
const http_method_enum_1 = require("../../../shared/http-method.enum");
|
|
8
|
+
const client_file_search_schema_1 = require("../schemas/client-file-search.schema");
|
|
8
9
|
/** S2S (api → file-service): the reading outline of one client file — kind, pages with status/hint, sheets. */
|
|
9
10
|
var ClientFileOutlineS2SQuery;
|
|
10
11
|
(function (ClientFileOutlineS2SQuery) {
|
|
@@ -73,4 +74,12 @@ var ClientFileResolveKeyS2SQuery;
|
|
|
73
74
|
ClientFileResolveKeyS2SQuery.URL = rest_api_1.REST_API.V1.FILE_S2S.CLIENT_FILE_RESOLVE_KEY;
|
|
74
75
|
ClientFileResolveKeyS2SQuery.METHOD = http_method_enum_1.HttpMethod.GET;
|
|
75
76
|
})(ClientFileResolveKeyS2SQuery || (exports.ClientFileResolveKeyS2SQuery = ClientFileResolveKeyS2SQuery = {}));
|
|
77
|
+
var ClientFileSearchS2SQuery;
|
|
78
|
+
(function (ClientFileSearchS2SQuery) {
|
|
79
|
+
ClientFileSearchS2SQuery.Params = client_file_pages_schema_1.ClientFileIdParamsSchema;
|
|
80
|
+
ClientFileSearchS2SQuery.Query = client_file_search_schema_1.ClientFileSearchQuerySchema;
|
|
81
|
+
ClientFileSearchS2SQuery.Response = client_file_search_schema_1.ClientFileSearchResponseSchema;
|
|
82
|
+
ClientFileSearchS2SQuery.URL = (fileId) => rest_api_1.REST_API.V1.FILE_S2S.CLIENT_FILE_SEARCH(fileId);
|
|
83
|
+
ClientFileSearchS2SQuery.METHOD = http_method_enum_1.HttpMethod.GET;
|
|
84
|
+
})(ClientFileSearchS2SQuery || (exports.ClientFileSearchS2SQuery = ClientFileSearchS2SQuery = {}));
|
|
76
85
|
//# sourceMappingURL=client-file-reading.s2s.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-file-reading.s2s.js","sourceRoot":"","sources":["../../../../v1/client-file/queries/client-file-reading.s2s.ts"],"names":[],"mappings":";;;AACA,8FAGmD;AACnD,kFAc6C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LIENT_FILE_DOC_MIME_TYPES = exports.CLIENT_FILE_VISUAL_DOC_MIME_TYPES = exports.CLIENT_FILE_TEXT_NATIVE_MIME_TYPES = exports.CLIENT_FILE_IMAGE_MIME_TYPES = void 0;
|
|
4
4
|
exports.isClientFileVisualDocMimeType = isClientFileVisualDocMimeType;
|
|
5
|
+
const ai_file_policy_constants_1 = require("../ai-file-policy.constants");
|
|
5
6
|
// Image MIME types
|
|
6
7
|
exports.CLIENT_FILE_IMAGE_MIME_TYPES = ['image/jpeg', 'image/png', 'image/webp'];
|
|
7
8
|
/**
|
|
@@ -98,11 +99,11 @@ exports.CANONICAL_EXTENSION_BY_VISUAL_DOC_MIME = {
|
|
|
98
99
|
'application/vnd.oasis.opendocument.text': 'odt',
|
|
99
100
|
'application/vnd.oasis.opendocument.presentation': 'odp',
|
|
100
101
|
'application/vnd.oasis.opendocument.spreadsheet': 'ods',
|
|
101
|
-
|
|
102
|
+
[ai_file_policy_constants_1.AI_OFFICE_MIME_TYPES.docx]: 'docx',
|
|
102
103
|
'application/vnd.ms-excel': 'xls',
|
|
103
|
-
|
|
104
|
+
[ai_file_policy_constants_1.AI_OFFICE_MIME_TYPES.xlsx]: 'xlsx',
|
|
104
105
|
'application/vnd.ms-powerpoint': 'ppt',
|
|
105
|
-
|
|
106
|
+
[ai_file_policy_constants_1.AI_OFFICE_MIME_TYPES.pptx]: 'pptx',
|
|
106
107
|
};
|
|
107
108
|
const VISUAL_DOC_MIME_TYPE_SET = new Set(exports.CLIENT_FILE_VISUAL_DOC_MIME_TYPES);
|
|
108
109
|
function isClientFileVisualDocMimeType(value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-file-mime-types.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/client-file-mime-types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"client-file-mime-types.js","sourceRoot":"","sources":["../../../../v1/client-file/schemas/client-file-mime-types.ts"],"names":[],"mappings":";;;AAkHA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ACnC,+BAA+B,EAAE,KAAK;IACtC,CAAC,+CAAoB,CAAC,IAAI,CAAC,EAAE,MAAM;CACtC,CAAC;AAEF,MAAM,wBAAwB,GAAwB,IAAI,GAAG,CACzD,yCAAiC,CACpC,CAAC;AAEF,SAAgB,6BAA6B,CAAC,KAAa;IACvD,OAAO,wBAAwB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC/C,CAAC"}
|
|
@@ -51,7 +51,10 @@ export declare enum ClientFileExtractionState {
|
|
|
51
51
|
/** OCR failures after which a page becomes UNREADABLE. */
|
|
52
52
|
export declare const CLIENT_FILE_OCR_MAX_FAILURES = 2;
|
|
53
53
|
/** Most pages one read may return: the model reads a document at most this many pages at a time. */
|
|
54
|
-
export declare const
|
|
54
|
+
export declare const FILE_TEXT_READ_MAX_PAGES = 20;
|
|
55
|
+
export declare const FILE_TEXT_READ_MAX_CHARS = 60000;
|
|
56
|
+
export declare const FILE_IMAGE_READ_MAX_PAGES = 5;
|
|
57
|
+
export declare const FILE_READ_TECH_MAX_PAGES = 1000;
|
|
55
58
|
/** Most spreadsheet rows one read may return. */
|
|
56
59
|
export declare const CLIENT_FILE_MAX_ROWS_PER_READ = 50;
|
|
57
60
|
/** Most text lines one read may return. */
|
|
@@ -194,3 +197,5 @@ export declare const ClientFileTextLinesResponseSchema: z.ZodObject<{
|
|
|
194
197
|
totalLines: z.ZodNumber;
|
|
195
198
|
}, z.core.$strip>;
|
|
196
199
|
export type ClientFileTextLinesResponse = z.infer<typeof ClientFileTextLinesResponseSchema>;
|
|
200
|
+
/** @deprecated Use FILE_TEXT_READ_MAX_PAGES. */
|
|
201
|
+
export declare const CLIENT_FILE_MAX_PAGES_PER_READ = 5;
|