@veruna/api-contracts 20.4.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/tsconfig.tsbuildinfo +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/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/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/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/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/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/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/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
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.ErrorMetaSchema = exports.GenerationStatus = exports.MessageErrorAction = exports.MessageErrorCategory = exports.CancelStreamResponseSchema = exports.DeleteMessageResponseSchema = exports.DeleteMessageParamsSchema = exports.RateMessageParamsSchema = exports.RateMessageResponseSchema = exports.RateMessageRequestSchema = exports.GenerationStepSchema = exports.FollowupSuggestionsStepContentSchema = exports.FOLLOWUP_SUGGESTION_MAX_CHARS = exports.FOLLOWUP_SUGGESTIONS_MAX_COUNT = exports.FileTruncatedStepContentSchema = exports.TruncationUnit = exports.CapabilityLockedStepContentSchema = exports.LockedCapability = exports.BudgetPromoBudgetCutoffSchema = exports.BudgetPromoDiscountAppliedSchema = exports.BudgetPromoStepContentSchema = exports.BudgetPromoKind = exports.CardMessageKey = exports.CardCta = exports.MessageStepStatus = exports.isModelAttributedStepType = exports.MODEL_ATTRIBUTED_STEP_TYPES = exports.GenerationStepType = exports.AttachmentsSchema = exports.AttachmentSchema = exports.AttachmentStatus = exports.AttachmentType = exports.AttachmentSource = exports.ViewChunkMetadataSchema = exports.StrReplaceChunkMetadataSchema = exports.CreateFileChunkMetadataSchema = exports.BashChunkMetadataSchema = exports.DescribeChunkMetadataSchema = exports.ArgsChunkMetadataSchema = exports.StepChunkMetadataSchema = exports.STEP_CHUNK_LINES_MAX_ITEMS = exports.STEP_CHUNK_LINE_MAX_LENGTH = exports.BashChunkStream = exports.StepChunkKind = exports.StepDoneMetadataByType = exports.StepStartMetadataByType = exports.UploadStepDoneMetadataSchema = exports.ConnectorToolStepStartMetadataSchema = exports.CodeExecutionStepStartMetadataSchema = void 0;
|
|
17
|
+
exports.ImageEditStepStartMetadataSchema = exports.ConversationSearchStepStartMetadataSchema = exports.WebSearchStepStartMetadataSchema = exports.StepDoneMetadataSchema = exports.StepStartMetadataSchema = exports.SendFileStepStartMetadataSchema = exports.CitationSchema = exports.CitationStatus = exports.StreamCancellationReason = exports.StreamErrorEventSchema = exports.StreamCancelledEventSchema = exports.StreamDoneEventSchema = exports.StreamHeartbeatEventSchema = exports.StreamCitationsEventSchema = exports.StreamImageGenerationErrorEventSchema = exports.StreamImageEventSchema = exports.StreamBillingEstimateEventSchema = exports.StreamStepBilledEventSchema = exports.StreamStepDoneEventSchema = exports.StreamStepErrorEventSchema = exports.StreamStepChunkEventSchema = exports.StreamStepStartEventSchema = exports.StreamGenerationStatusEventSchema = exports.StreamEventSchema = exports.StreamEventType = exports.MessageCitationsResponseSchema = exports.MessageCitationResponseSchema = exports.AttachmentMetaResponseSchema = exports.MessageAttachmentsResponseSchema = exports.MessageAttachmentResponseSchema = exports.ConnectorToolStepContentSchema = exports.VideoAnalysisStepContentSchema = exports.ConversationSearchStepContentSchema = exports.ConversationSearchResultItemSchema = exports.MemoryStepContentSchema = exports.CodeExecutionStepContentResponseSchema = exports.UploadStepContentSchema = exports.ImageGenStepContentSchema = exports.WebSearchStepContentSchema = exports.WebSearchCitationSchema = exports.TextStepContentSchema = exports.StepContentResponseSchema = exports.MessageStepsResponseSchema = exports.MessageStepResponseSchema = exports.MessageResponseSchema = exports.CreateMessageResponseSchema = exports.CreateMessageRequestSchema = exports.UserRating = exports.MessageStatus = exports.MessageRole = void 0;
|
|
18
|
+
exports.ErrorMetaSchema = exports.GenerationStatus = exports.MessageErrorAction = exports.MessageErrorCategory = exports.CancelStreamResponseSchema = exports.DeleteMessageResponseSchema = exports.DeleteMessageParamsSchema = exports.RateMessageParamsSchema = exports.RateMessageResponseSchema = exports.RateMessageRequestSchema = exports.GenerationStepSchema = exports.FollowupSuggestionsStepContentSchema = exports.FOLLOWUP_SUGGESTION_MAX_CHARS = exports.FOLLOWUP_SUGGESTIONS_MAX_COUNT = exports.FileTruncatedStepContentSchema = exports.TruncationUnit = exports.CapabilityLockedStepContentSchema = exports.LockedCapability = exports.BudgetPromoBudgetCutoffSchema = exports.BudgetPromoDiscountAppliedSchema = exports.BudgetPromoStepContentSchema = exports.BudgetPromoKind = exports.CardMessageKey = exports.CardCta = exports.MessageStepStatus = exports.isModelAttributedStepType = exports.MODEL_ATTRIBUTED_STEP_TYPES = exports.GenerationStepType = exports.AttachmentsSchema = exports.AttachmentSchema = exports.AttachmentStatus = exports.AttachmentType = exports.AttachmentSource = exports.ViewChunkMetadataSchema = exports.StrReplaceChunkMetadataSchema = exports.CreateFileChunkMetadataSchema = exports.BashChunkMetadataSchema = exports.DescribeChunkMetadataSchema = exports.ArgsChunkMetadataSchema = exports.StepChunkMetadataSchema = exports.STEP_CHUNK_LINES_MAX_ITEMS = exports.STEP_CHUNK_LINE_MAX_LENGTH = exports.BashChunkStream = exports.StepChunkKind = exports.StepDoneMetadataByType = exports.StepStartMetadataByType = exports.UploadStepDoneMetadataSchema = exports.ConnectorToolStepStartMetadataSchema = exports.CodeExecutionStepStartMetadataSchema = exports.VideoAnalysisStepStartMetadataSchema = void 0;
|
|
19
|
+
__exportStar(require("./send-file-step-content.schema"), exports);
|
|
20
|
+
__exportStar(require("./search-file-step-content.schema"), exports);
|
|
5
21
|
var message_role_enum_1 = require("./message-role.enum");
|
|
6
22
|
Object.defineProperty(exports, "MessageRole", { enumerable: true, get: function () { return message_role_enum_1.MessageRole; } });
|
|
7
23
|
var message_status_enum_1 = require("./message-status.enum");
|
|
@@ -60,6 +76,7 @@ Object.defineProperty(exports, "CitationStatus", { enumerable: true, get: functi
|
|
|
60
76
|
var citation_schema_1 = require("./citation.schema");
|
|
61
77
|
Object.defineProperty(exports, "CitationSchema", { enumerable: true, get: function () { return citation_schema_1.CitationSchema; } });
|
|
62
78
|
var step_metadata_schema_1 = require("./step-metadata.schema");
|
|
79
|
+
Object.defineProperty(exports, "SendFileStepStartMetadataSchema", { enumerable: true, get: function () { return step_metadata_schema_1.SendFileStepStartMetadataSchema; } });
|
|
63
80
|
Object.defineProperty(exports, "StepStartMetadataSchema", { enumerable: true, get: function () { return step_metadata_schema_1.StepStartMetadataSchema; } });
|
|
64
81
|
Object.defineProperty(exports, "StepDoneMetadataSchema", { enumerable: true, get: function () { return step_metadata_schema_1.StepDoneMetadataSchema; } });
|
|
65
82
|
Object.defineProperty(exports, "WebSearchStepStartMetadataSchema", { enumerable: true, get: function () { return step_metadata_schema_1.WebSearchStepStartMetadataSchema; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/message/schemas/index.ts"],"names":[],"mappings":"
|
|
1
|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iE;AAAxD,+HAAA,kBAAkB,OAAA;AAC3B,yFAG6C;AAFzC,gJAAA,2BAA2B,OAAA;AAC3B,8IAAA,yBAAyB,OAAA;AAE7B,uEAA+D;AAAtD,6HAAA,iBAAiB,OAAA;AAC1B,qDAA4D;AAAnD,0GAAA,OAAO,OAAA;AAAE,iHAAA,cAAc,OAAA;AAChC,uFAK4C;AAJxC,mIAAA,eAAe,OAAA;AACf,gJAAA,4BAA4B,OAAA;AAC5B,oJAAA,gCAAgC,OAAA;AAChC,iJAAA,6BAA6B,OAAA;AAGjC,iGAGiD;AAF7C,yIAAA,gBAAgB,OAAA;AAChB,0JAAA,iCAAiC,OAAA;AAGrC,2FAG8C;AAF1C,oIAAA,cAAc,OAAA;AACd,oJAAA,8BAA8B,OAAA;AAGlC,uGAIoD;AAHhD,0JAAA,8BAA8B,OAAA;AAC9B,yJAAA,6BAA6B,OAAA;AAC7B,gKAAA,oCAAoC,OAAA;AAGxC,mEAAgE;AAAvD,8HAAA,oBAAoB,OAAA;AAE7B,6DAI+B;AAH3B,+HAAA,wBAAwB,OAAA;AACxB,gIAAA,yBAAyB,OAAA;AACzB,8HAAA,uBAAuB,OAAA;AAO3B,iEAAiG;AAAxF,kIAAA,yBAAyB,OAAA;AAAE,oIAAA,2BAA2B,OAAA;AAE/D,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AAGnC,6EAAqE;AAA5D,mIAAA,oBAAoB,OAAA;AAE7B,yEAAiE;AAAxD,+HAAA,kBAAkB,OAAA;AAE3B,mEAA4D;AAAnD,0HAAA,gBAAgB,OAAA;AACzB,yDAAsD;AAA7C,oHAAA,eAAe,OAAA"}
|
|
@@ -17,7 +17,50 @@ export declare const MessageResponseSchema: z.ZodObject<{
|
|
|
17
17
|
type: z.ZodEnum<typeof import("./generation-step-type.enum").GenerationStepType>;
|
|
18
18
|
status: z.ZodEnum<typeof import("./message-step-status.enum").MessageStepStatus>;
|
|
19
19
|
modelUuid: z.ZodNullable<z.ZodString>;
|
|
20
|
-
content: z.ZodNullable<z.ZodUnion<readonly [z.
|
|
20
|
+
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
21
|
+
path: z.ZodOptional<z.ZodString>;
|
|
22
|
+
sandboxPath: z.ZodString;
|
|
23
|
+
filename: z.ZodString;
|
|
24
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
25
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
url: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
28
|
+
queries: z.ZodArray<z.ZodString>;
|
|
29
|
+
hitCount: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
files: z.ZodArray<z.ZodObject<{
|
|
31
|
+
attachment_id: z.ZodString;
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
hits: z.ZodArray<z.ZodObject<{
|
|
35
|
+
attachment_id: z.ZodString;
|
|
36
|
+
page: z.ZodNumber;
|
|
37
|
+
score: z.ZodNumber;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
40
|
+
hitCount: number;
|
|
41
|
+
queries: string[];
|
|
42
|
+
files: {
|
|
43
|
+
attachment_id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
}[];
|
|
46
|
+
hits: {
|
|
47
|
+
attachment_id: string;
|
|
48
|
+
page: number;
|
|
49
|
+
score: number;
|
|
50
|
+
}[];
|
|
51
|
+
}, {
|
|
52
|
+
queries: string[];
|
|
53
|
+
files: {
|
|
54
|
+
attachment_id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
}[];
|
|
57
|
+
hits: {
|
|
58
|
+
attachment_id: string;
|
|
59
|
+
page: number;
|
|
60
|
+
score: number;
|
|
61
|
+
}[];
|
|
62
|
+
hitCount?: number | undefined;
|
|
63
|
+
}>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
21
64
|
cta: z.ZodEnum<typeof import("./step-card.enums").CardCta>;
|
|
22
65
|
messageKey: z.ZodOptional<z.ZodEnum<typeof import("./step-card.enums").CardMessageKey>>;
|
|
23
66
|
kind: z.ZodLiteral<import("./budget-promo-step-content.schema").BudgetPromoKind.DISCOUNT_APPLIED>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { MemoryEditCommand } from '../../memory/schemas/memory-edit-command.enum';
|
|
2
3
|
import { GenerationStepType } from './generation-step-type.enum';
|
|
3
4
|
import { MessageStepStatus } from './message-step-status.enum';
|
|
4
|
-
import { MemoryEditCommand } from '../../memory/schemas/memory-edit-command.enum';
|
|
5
5
|
/**
|
|
6
6
|
* Text-based step content (REASONING, TEXT_GENERATION, PROMPT_GENERATION)
|
|
7
7
|
*/
|
|
@@ -189,7 +189,50 @@ export declare const ConnectorToolStepContentSchema: z.ZodObject<{
|
|
|
189
189
|
* vanishes on reload is exactly that bug — the shape has to be listed here too,
|
|
190
190
|
* not only in the domain schema.
|
|
191
191
|
*/
|
|
192
|
-
export declare const StepContentResponseSchema: z.ZodUnion<readonly [z.
|
|
192
|
+
export declare const StepContentResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
193
|
+
path: z.ZodOptional<z.ZodString>;
|
|
194
|
+
sandboxPath: z.ZodString;
|
|
195
|
+
filename: z.ZodString;
|
|
196
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
197
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
198
|
+
url: z.ZodOptional<z.ZodString>;
|
|
199
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
200
|
+
queries: z.ZodArray<z.ZodString>;
|
|
201
|
+
hitCount: z.ZodOptional<z.ZodNumber>;
|
|
202
|
+
files: z.ZodArray<z.ZodObject<{
|
|
203
|
+
attachment_id: z.ZodString;
|
|
204
|
+
name: z.ZodString;
|
|
205
|
+
}, z.core.$strip>>;
|
|
206
|
+
hits: z.ZodArray<z.ZodObject<{
|
|
207
|
+
attachment_id: z.ZodString;
|
|
208
|
+
page: z.ZodNumber;
|
|
209
|
+
score: z.ZodNumber;
|
|
210
|
+
}, z.core.$strip>>;
|
|
211
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
212
|
+
hitCount: number;
|
|
213
|
+
queries: string[];
|
|
214
|
+
files: {
|
|
215
|
+
attachment_id: string;
|
|
216
|
+
name: string;
|
|
217
|
+
}[];
|
|
218
|
+
hits: {
|
|
219
|
+
attachment_id: string;
|
|
220
|
+
page: number;
|
|
221
|
+
score: number;
|
|
222
|
+
}[];
|
|
223
|
+
}, {
|
|
224
|
+
queries: string[];
|
|
225
|
+
files: {
|
|
226
|
+
attachment_id: string;
|
|
227
|
+
name: string;
|
|
228
|
+
}[];
|
|
229
|
+
hits: {
|
|
230
|
+
attachment_id: string;
|
|
231
|
+
page: number;
|
|
232
|
+
score: number;
|
|
233
|
+
}[];
|
|
234
|
+
hitCount?: number | undefined;
|
|
235
|
+
}>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
193
236
|
cta: z.ZodEnum<typeof import("./step-card.enums").CardCta>;
|
|
194
237
|
messageKey: z.ZodOptional<z.ZodEnum<typeof import("./step-card.enums").CardMessageKey>>;
|
|
195
238
|
kind: z.ZodLiteral<import("./budget-promo-step-content.schema").BudgetPromoKind.DISCOUNT_APPLIED>;
|
|
@@ -324,7 +367,50 @@ export declare const MessageStepResponseSchema: z.ZodObject<{
|
|
|
324
367
|
type: z.ZodEnum<typeof GenerationStepType>;
|
|
325
368
|
status: z.ZodEnum<typeof MessageStepStatus>;
|
|
326
369
|
modelUuid: z.ZodNullable<z.ZodString>;
|
|
327
|
-
content: z.ZodNullable<z.ZodUnion<readonly [z.
|
|
370
|
+
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
371
|
+
path: z.ZodOptional<z.ZodString>;
|
|
372
|
+
sandboxPath: z.ZodString;
|
|
373
|
+
filename: z.ZodString;
|
|
374
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
375
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
376
|
+
url: z.ZodOptional<z.ZodString>;
|
|
377
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
378
|
+
queries: z.ZodArray<z.ZodString>;
|
|
379
|
+
hitCount: z.ZodOptional<z.ZodNumber>;
|
|
380
|
+
files: z.ZodArray<z.ZodObject<{
|
|
381
|
+
attachment_id: z.ZodString;
|
|
382
|
+
name: z.ZodString;
|
|
383
|
+
}, z.core.$strip>>;
|
|
384
|
+
hits: z.ZodArray<z.ZodObject<{
|
|
385
|
+
attachment_id: z.ZodString;
|
|
386
|
+
page: z.ZodNumber;
|
|
387
|
+
score: z.ZodNumber;
|
|
388
|
+
}, z.core.$strip>>;
|
|
389
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
390
|
+
hitCount: number;
|
|
391
|
+
queries: string[];
|
|
392
|
+
files: {
|
|
393
|
+
attachment_id: string;
|
|
394
|
+
name: string;
|
|
395
|
+
}[];
|
|
396
|
+
hits: {
|
|
397
|
+
attachment_id: string;
|
|
398
|
+
page: number;
|
|
399
|
+
score: number;
|
|
400
|
+
}[];
|
|
401
|
+
}, {
|
|
402
|
+
queries: string[];
|
|
403
|
+
files: {
|
|
404
|
+
attachment_id: string;
|
|
405
|
+
name: string;
|
|
406
|
+
}[];
|
|
407
|
+
hits: {
|
|
408
|
+
attachment_id: string;
|
|
409
|
+
page: number;
|
|
410
|
+
score: number;
|
|
411
|
+
}[];
|
|
412
|
+
hitCount?: number | undefined;
|
|
413
|
+
}>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
328
414
|
cta: z.ZodEnum<typeof import("./step-card.enums").CardCta>;
|
|
329
415
|
messageKey: z.ZodOptional<z.ZodEnum<typeof import("./step-card.enums").CardMessageKey>>;
|
|
330
416
|
kind: z.ZodLiteral<import("./budget-promo-step-content.schema").BudgetPromoKind.DISCOUNT_APPLIED>;
|
|
@@ -478,7 +564,50 @@ export declare const MessageStepsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
478
564
|
type: z.ZodEnum<typeof GenerationStepType>;
|
|
479
565
|
status: z.ZodEnum<typeof MessageStepStatus>;
|
|
480
566
|
modelUuid: z.ZodNullable<z.ZodString>;
|
|
481
|
-
content: z.ZodNullable<z.ZodUnion<readonly [z.
|
|
567
|
+
content: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
568
|
+
path: z.ZodOptional<z.ZodString>;
|
|
569
|
+
sandboxPath: z.ZodString;
|
|
570
|
+
filename: z.ZodString;
|
|
571
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
572
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
573
|
+
url: z.ZodOptional<z.ZodString>;
|
|
574
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
575
|
+
queries: z.ZodArray<z.ZodString>;
|
|
576
|
+
hitCount: z.ZodOptional<z.ZodNumber>;
|
|
577
|
+
files: z.ZodArray<z.ZodObject<{
|
|
578
|
+
attachment_id: z.ZodString;
|
|
579
|
+
name: z.ZodString;
|
|
580
|
+
}, z.core.$strip>>;
|
|
581
|
+
hits: z.ZodArray<z.ZodObject<{
|
|
582
|
+
attachment_id: z.ZodString;
|
|
583
|
+
page: z.ZodNumber;
|
|
584
|
+
score: z.ZodNumber;
|
|
585
|
+
}, z.core.$strip>>;
|
|
586
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
587
|
+
hitCount: number;
|
|
588
|
+
queries: string[];
|
|
589
|
+
files: {
|
|
590
|
+
attachment_id: string;
|
|
591
|
+
name: string;
|
|
592
|
+
}[];
|
|
593
|
+
hits: {
|
|
594
|
+
attachment_id: string;
|
|
595
|
+
page: number;
|
|
596
|
+
score: number;
|
|
597
|
+
}[];
|
|
598
|
+
}, {
|
|
599
|
+
queries: string[];
|
|
600
|
+
files: {
|
|
601
|
+
attachment_id: string;
|
|
602
|
+
name: string;
|
|
603
|
+
}[];
|
|
604
|
+
hits: {
|
|
605
|
+
attachment_id: string;
|
|
606
|
+
page: number;
|
|
607
|
+
score: number;
|
|
608
|
+
}[];
|
|
609
|
+
hitCount?: number | undefined;
|
|
610
|
+
}>>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
482
611
|
cta: z.ZodEnum<typeof import("./step-card.enums").CardCta>;
|
|
483
612
|
messageKey: z.ZodOptional<z.ZodEnum<typeof import("./step-card.enums").CardMessageKey>>;
|
|
484
613
|
kind: z.ZodLiteral<import("./budget-promo-step-content.schema").BudgetPromoKind.DISCOUNT_APPLIED>;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MessageStepsResponseSchema = exports.MessageStepResponseSchema = exports.StepContentResponseSchema = exports.ConnectorToolStepContentSchema = exports.VideoAnalysisStepContentSchema = exports.ConversationSearchStepContentSchema = exports.ConversationSearchResultItemSchema = exports.MemoryStepContentSchema = exports.CodeExecutionStepContentResponseSchema = exports.UploadStepContentSchema = exports.ImageGenStepContentSchema = exports.WebSearchStepContentSchema = exports.WebSearchCitationSchema = exports.TextStepContentSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const primitive_completion_schema_1 = require("../../tool/sandbox/primitive-completion.schema");
|
|
6
|
+
const memory_edit_command_enum_1 = require("../../memory/schemas/memory-edit-command.enum");
|
|
7
|
+
const send_file_step_content_schema_1 = require("./send-file-step-content.schema");
|
|
8
|
+
const search_file_step_content_schema_1 = require("./search-file-step-content.schema");
|
|
4
9
|
const budget_promo_step_content_schema_1 = require("./budget-promo-step-content.schema");
|
|
5
10
|
const capability_locked_step_content_schema_1 = require("./capability-locked-step-content.schema");
|
|
6
11
|
const file_truncated_step_content_schema_1 = require("./file-truncated-step-content.schema");
|
|
7
|
-
const zod_1 = require("zod");
|
|
8
|
-
const primitive_completion_schema_1 = require("../../tool/sandbox/primitive-completion.schema");
|
|
9
12
|
const generation_step_type_enum_1 = require("./generation-step-type.enum");
|
|
10
13
|
const message_step_status_enum_1 = require("./message-step-status.enum");
|
|
11
|
-
const memory_edit_command_enum_1 = require("../../memory/schemas/memory-edit-command.enum");
|
|
12
14
|
const followup_suggestions_step_content_schema_1 = require("./followup-suggestions-step-content.schema");
|
|
13
15
|
/**
|
|
14
16
|
* Text-based step content (REASONING, TEXT_GENERATION, PROMPT_GENERATION)
|
|
@@ -149,6 +151,8 @@ exports.ConnectorToolStepContentSchema = zod_1.z.object({
|
|
|
149
151
|
* not only in the domain schema.
|
|
150
152
|
*/
|
|
151
153
|
exports.StepContentResponseSchema = zod_1.z.union([
|
|
154
|
+
send_file_step_content_schema_1.SendFileStepContentSchema,
|
|
155
|
+
search_file_step_content_schema_1.SearchFileStepContentSchema,
|
|
152
156
|
budget_promo_step_content_schema_1.BudgetPromoStepContentSchema,
|
|
153
157
|
capability_locked_step_content_schema_1.CapabilityLockedStepContentSchema,
|
|
154
158
|
file_truncated_step_content_schema_1.FileTruncatedStepContentSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-step-response.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/message-step-response.schema.ts"],"names":[],"mappings":";;;AAAA,yFAAkF;AAClF,mGAA4F;AAC5F,6FAAsF;AACtF,
|
|
1
|
+
{"version":3,"file":"message-step-response.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/message-step-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,gGAAkG;AAClG,4FAAkF;AAClF,mFAA4E;AAC5E,uFAAgF;AAChF,yFAAkF;AAClF,mGAA4F;AAC5F,6FAAsF;AACtF,2EAAiE;AACjE,yEAA+D;AAC/D,yGAAkG;AAElG;;GAEG;AACU,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AA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EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,wBAAwB;IACxB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,0BAA0B;IAC1B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC;;;;;;;;;OASG;IACH,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IACxD;;;;;;;;;;;;;;;OAeG;IACH,sBAAsB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;CACpE,CAAC,CAAC;AAkBH;;GAEG;AACU,QAAA,0BAA0B,GAAG,OAAC,CAAC,KAAK,CAAC,iCAAyB,CAAC,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** UI search details. Model-facing snippets and coverage stay in tool output. */
|
|
3
|
+
export declare const SearchFileStepContentSchema: z.ZodPipe<z.ZodObject<{
|
|
4
|
+
queries: z.ZodArray<z.ZodString>;
|
|
5
|
+
hitCount: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
files: z.ZodArray<z.ZodObject<{
|
|
7
|
+
attachment_id: z.ZodString;
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
hits: z.ZodArray<z.ZodObject<{
|
|
11
|
+
attachment_id: z.ZodString;
|
|
12
|
+
page: z.ZodNumber;
|
|
13
|
+
score: z.ZodNumber;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
16
|
+
hitCount: number;
|
|
17
|
+
queries: string[];
|
|
18
|
+
files: {
|
|
19
|
+
attachment_id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
}[];
|
|
22
|
+
hits: {
|
|
23
|
+
attachment_id: string;
|
|
24
|
+
page: number;
|
|
25
|
+
score: number;
|
|
26
|
+
}[];
|
|
27
|
+
}, {
|
|
28
|
+
queries: string[];
|
|
29
|
+
files: {
|
|
30
|
+
attachment_id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
}[];
|
|
33
|
+
hits: {
|
|
34
|
+
attachment_id: string;
|
|
35
|
+
page: number;
|
|
36
|
+
score: number;
|
|
37
|
+
}[];
|
|
38
|
+
hitCount?: number | undefined;
|
|
39
|
+
}>>;
|
|
40
|
+
export type SearchFileStepContent = z.infer<typeof SearchFileStepContentSchema>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SearchFileStepContentSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/** UI search details. Model-facing snippets and coverage stay in tool output. */
|
|
6
|
+
exports.SearchFileStepContentSchema = zod_1.z
|
|
7
|
+
.object({
|
|
8
|
+
queries: zod_1.z.array(zod_1.z.string()),
|
|
9
|
+
hitCount: zod_1.z.number().int().nonnegative().optional(),
|
|
10
|
+
files: zod_1.z.array(zod_1.z.object({ attachment_id: zod_1.z.string(), name: zod_1.z.string() })),
|
|
11
|
+
hits: zod_1.z.array(zod_1.z.object({ attachment_id: zod_1.z.string(), page: zod_1.z.number(), score: zod_1.z.number() })),
|
|
12
|
+
})
|
|
13
|
+
.transform((details) => ({ ...details, hitCount: details.hitCount ?? details.hits.length }));
|
|
14
|
+
//# sourceMappingURL=search-file-step-content.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-file-step-content.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/search-file-step-content.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,iFAAiF;AACpE,QAAA,2BAA2B,GAAG,OAAC;KACvC,MAAM,CAAC;IACJ,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IACnD,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACzE,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;CAC9F,CAAC;KACD,SAAS,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Identity survives refusals; delivery fields exist only after a successful upload. */
|
|
3
|
+
export declare const SendFileStepContentSchema: z.ZodObject<{
|
|
4
|
+
path: z.ZodOptional<z.ZodString>;
|
|
5
|
+
sandboxPath: z.ZodString;
|
|
6
|
+
filename: z.ZodString;
|
|
7
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
8
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
url: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type SendFileStepContent = z.infer<typeof SendFileStepContentSchema>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendFileStepContentSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/** Identity survives refusals; delivery fields exist only after a successful upload. */
|
|
6
|
+
exports.SendFileStepContentSchema = zod_1.z.object({
|
|
7
|
+
path: zod_1.z.string().optional(),
|
|
8
|
+
sandboxPath: zod_1.z.string(),
|
|
9
|
+
filename: zod_1.z.string(),
|
|
10
|
+
mimeType: zod_1.z.string().optional(),
|
|
11
|
+
size: zod_1.z.number().nonnegative().optional(),
|
|
12
|
+
url: zod_1.z.string().optional(),
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=send-file-step-content.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-file-step-content.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/send-file-step-content.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,wFAAwF;AAC3E,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IACzC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { SandboxPrimitiveType } from '../../tool/sandbox/sandbox-primitive-type.enum';
|
|
3
3
|
import { GenerationStepType } from './generation-step-type.enum';
|
|
4
|
+
export declare const SendFileStepStartMetadataSchema: z.ZodObject<{
|
|
5
|
+
path: z.ZodString;
|
|
6
|
+
filename: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
4
8
|
/**
|
|
5
9
|
* WEB_SEARCH step-start metadata: the queries being searched.
|
|
6
10
|
*/
|
|
@@ -67,6 +71,9 @@ export declare const StepStartMetadataByType: Partial<Record<GenerationStepType,
|
|
|
67
71
|
* stream-events schema for the metadata field.
|
|
68
72
|
*/
|
|
69
73
|
export declare const StepStartMetadataSchema: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
74
|
+
path: z.ZodString;
|
|
75
|
+
filename: z.ZodString;
|
|
76
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
70
77
|
queries: z.ZodArray<z.ZodString>;
|
|
71
78
|
}, z.core.$strip>, z.ZodObject<{
|
|
72
79
|
query: z.ZodString;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StepDoneMetadataSchema = exports.StepDoneMetadataByType = exports.UploadStepDoneMetadataSchema = exports.StepStartMetadataSchema = exports.StepStartMetadataByType = exports.ConnectorToolStepStartMetadataSchema = exports.CodeExecutionStepStartMetadataSchema = exports.VideoAnalysisStepStartMetadataSchema = exports.ImageEditStepStartMetadataSchema = exports.ConversationSearchStepStartMetadataSchema = exports.WebSearchStepStartMetadataSchema = void 0;
|
|
3
|
+
exports.StepDoneMetadataSchema = exports.StepDoneMetadataByType = exports.UploadStepDoneMetadataSchema = exports.StepStartMetadataSchema = exports.StepStartMetadataByType = exports.ConnectorToolStepStartMetadataSchema = exports.CodeExecutionStepStartMetadataSchema = exports.VideoAnalysisStepStartMetadataSchema = exports.ImageEditStepStartMetadataSchema = exports.ConversationSearchStepStartMetadataSchema = exports.WebSearchStepStartMetadataSchema = exports.SendFileStepStartMetadataSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const sandbox_primitive_type_enum_1 = require("../../tool/sandbox/sandbox-primitive-type.enum");
|
|
6
6
|
const generation_step_type_enum_1 = require("./generation-step-type.enum");
|
|
7
7
|
// ============================================================================
|
|
8
8
|
// Step-Start metadata — typed per step type
|
|
9
9
|
// ============================================================================
|
|
10
|
+
exports.SendFileStepStartMetadataSchema = zod_1.z.object({
|
|
11
|
+
path: zod_1.z.string(),
|
|
12
|
+
filename: zod_1.z.string(),
|
|
13
|
+
});
|
|
10
14
|
/**
|
|
11
15
|
* WEB_SEARCH step-start metadata: the queries being searched.
|
|
12
16
|
*/
|
|
@@ -68,6 +72,7 @@ exports.ConnectorToolStepStartMetadataSchema = zod_1.z.object({
|
|
|
68
72
|
* to pick the right schema given a step type at runtime.
|
|
69
73
|
*/
|
|
70
74
|
exports.StepStartMetadataByType = {
|
|
75
|
+
[generation_step_type_enum_1.GenerationStepType.SEND_FILE]: exports.SendFileStepStartMetadataSchema,
|
|
71
76
|
[generation_step_type_enum_1.GenerationStepType.WEB_SEARCH]: exports.WebSearchStepStartMetadataSchema,
|
|
72
77
|
[generation_step_type_enum_1.GenerationStepType.CONVERSATION_SEARCH]: exports.ConversationSearchStepStartMetadataSchema,
|
|
73
78
|
[generation_step_type_enum_1.GenerationStepType.IMAGE_EDIT]: exports.ImageEditStepStartMetadataSchema,
|
|
@@ -81,6 +86,7 @@ exports.StepStartMetadataByType = {
|
|
|
81
86
|
*/
|
|
82
87
|
exports.StepStartMetadataSchema = zod_1.z
|
|
83
88
|
.union([
|
|
89
|
+
exports.SendFileStepStartMetadataSchema,
|
|
84
90
|
exports.WebSearchStepStartMetadataSchema,
|
|
85
91
|
exports.ConversationSearchStepStartMetadataSchema,
|
|
86
92
|
exports.ImageEditStepStartMetadataSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-metadata.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/step-metadata.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,gGAAsF;AACtF,2EAAiE;AAEjE,+EAA+E;AAC/E,4CAA4C;AAC5C,+EAA+E;
|
|
1
|
+
{"version":3,"file":"step-metadata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;IACrF,CAAC,8CAAkB,CAAC,MAAM,CAAC,EAAE,oCAA4B;CAC5D,CAAC;AAEF;;GAEG;AACU,QAAA,sBAAsB,GAAG,oCAA4B,CAAC,QAAQ,EAAE,CAAC"}
|
|
@@ -15,6 +15,9 @@ export declare const StreamStepStartEventSchema: z.ZodObject<{
|
|
|
15
15
|
stepIndex: z.ZodNumber;
|
|
16
16
|
modelUuid: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
18
|
+
path: z.ZodString;
|
|
19
|
+
filename: z.ZodString;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18
21
|
queries: z.ZodArray<z.ZodString>;
|
|
19
22
|
}, z.core.$strip>, z.ZodObject<{
|
|
20
23
|
query: z.ZodString;
|
|
@@ -309,6 +312,9 @@ export declare const StreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
309
312
|
stepIndex: z.ZodNumber;
|
|
310
313
|
modelUuid: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
311
314
|
metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
315
|
+
path: z.ZodString;
|
|
316
|
+
filename: z.ZodString;
|
|
317
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
312
318
|
queries: z.ZodArray<z.ZodString>;
|
|
313
319
|
}, z.core.$strip>, z.ZodObject<{
|
|
314
320
|
query: z.ZodString;
|
|
@@ -9,6 +9,7 @@ export declare namespace S2SCheckClientFileQuotaQuery {
|
|
|
9
9
|
available: z.ZodBoolean;
|
|
10
10
|
used: z.ZodNumber;
|
|
11
11
|
cap: z.ZodNumber;
|
|
12
|
+
maxFileSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
12
13
|
kind: z.ZodEnum<typeof import("..").S2SUploadAiImageOwnerType>;
|
|
13
14
|
}, z.core.$strip>;
|
|
14
15
|
const URL: "/file-api/s2s/files/check-quota";
|
|
@@ -4,6 +4,7 @@ export declare const S2SCheckClientFileQuotaResponseSchema: z.ZodObject<{
|
|
|
4
4
|
available: z.ZodBoolean;
|
|
5
5
|
used: z.ZodNumber;
|
|
6
6
|
cap: z.ZodNumber;
|
|
7
|
+
maxFileSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
7
8
|
kind: z.ZodEnum<typeof S2SUploadAiImageOwnerType>;
|
|
8
9
|
}, z.core.$strip>;
|
|
9
10
|
export type S2SCheckClientFileQuotaResponseDto = z.infer<typeof S2SCheckClientFileQuotaResponseSchema>;
|
|
@@ -7,6 +7,7 @@ exports.S2SCheckClientFileQuotaResponseSchema = zod_1.z.object({
|
|
|
7
7
|
available: zod_1.z.boolean(),
|
|
8
8
|
used: zod_1.z.number(),
|
|
9
9
|
cap: zod_1.z.number(),
|
|
10
|
+
maxFileSizeBytes: zod_1.z.number().int().positive().optional(),
|
|
10
11
|
kind: zod_1.z.enum(s2s_upload_ai_image_owner_type_enum_1.S2SUploadAiImageOwnerType),
|
|
11
12
|
});
|
|
12
13
|
//# sourceMappingURL=s2s-check-client-file-quota-response.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"s2s-check-client-file-quota-response.schema.js","sourceRoot":"","sources":["../../../../v1/s2s/schemas/s2s-check-client-file-quota-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+FAAkF;AAErE,QAAA,qCAAqC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1D,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE;IACtB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,+DAAyB,CAAC;CAC1C,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"s2s-check-client-file-quota-response.schema.js","sourceRoot":"","sources":["../../../../v1/s2s/schemas/s2s-check-client-file-quota-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+FAAkF;AAErE,QAAA,qCAAqC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1D,SAAS,EAAE,OAAC,CAAC,OAAO,EAAE;IACtB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACxD,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,+DAAyB,CAAC;CAC1C,CAAC,CAAC"}
|
|
@@ -5,6 +5,8 @@ import { ErrorMetadata } from '../../../shared';
|
|
|
5
5
|
* Used by sandbox tools for validation and infrastructure handlers for lifecycle and file errors.
|
|
6
6
|
*/
|
|
7
7
|
export declare enum SandboxErrorCode {
|
|
8
|
+
/** HTTP 422: generated file bytes or content failed delivery validation. */
|
|
9
|
+
SEND_FILE_CONTENT_INVALID = "SEND_FILE_CONTENT_INVALID",
|
|
8
10
|
/** The requested file or directory does not exist in the sandbox. */
|
|
9
11
|
SANDBOX_FILE_NOT_FOUND = "SANDBOX_FILE_NOT_FOUND",
|
|
10
12
|
/** The requested path is outside the allowed sandbox directories. */
|
|
@@ -8,6 +8,8 @@ exports.SANDBOX_ERRORS = exports.SandboxErrorCode = void 0;
|
|
|
8
8
|
*/
|
|
9
9
|
var SandboxErrorCode;
|
|
10
10
|
(function (SandboxErrorCode) {
|
|
11
|
+
/** HTTP 422: generated file bytes or content failed delivery validation. */
|
|
12
|
+
SandboxErrorCode["SEND_FILE_CONTENT_INVALID"] = "SEND_FILE_CONTENT_INVALID";
|
|
11
13
|
/** The requested file or directory does not exist in the sandbox. */
|
|
12
14
|
SandboxErrorCode["SANDBOX_FILE_NOT_FOUND"] = "SANDBOX_FILE_NOT_FOUND";
|
|
13
15
|
/** The requested path is outside the allowed sandbox directories. */
|
|
@@ -76,6 +78,10 @@ var SandboxErrorCode;
|
|
|
76
78
|
SandboxErrorCode["SANDBOX_PATH_IS_DIRECTORY"] = "SANDBOX_PATH_IS_DIRECTORY";
|
|
77
79
|
})(SandboxErrorCode || (exports.SandboxErrorCode = SandboxErrorCode = {}));
|
|
78
80
|
exports.SANDBOX_ERRORS = {
|
|
81
|
+
[SandboxErrorCode.SEND_FILE_CONTENT_INVALID]: {
|
|
82
|
+
code: SandboxErrorCode.SEND_FILE_CONTENT_INVALID,
|
|
83
|
+
statusCode: 422,
|
|
84
|
+
},
|
|
79
85
|
[SandboxErrorCode.SANDBOX_FILE_NOT_FOUND]: {
|
|
80
86
|
code: SandboxErrorCode.SANDBOX_FILE_NOT_FOUND,
|
|
81
87
|
statusCode: 404,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sandbox.errors.js","sourceRoot":"","sources":["../../../../v1/tool/sandbox/sandbox.errors.ts"],"names":[],"mappings":";;;AAEA;;;;GAIG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"sandbox.errors.js","sourceRoot":"","sources":["../../../../v1/tool/sandbox/sandbox.errors.ts"],"names":[],"mappings":";;;AAEA;;;;GAIG;AACH,IAAY,gBAqEX;AArED,WAAY,gBAAgB;IACxB,4EAA4E;IAC5E,2EAAuD,CAAA;IACvD,qEAAqE;IACrE,qEAAiD,CAAA;IACjD,qEAAqE;IACrE,yDAAqC,CAAA;IACrC,uEAAuE;IACvE,iEAA6C,CAAA;IAC7C,oFAAoF;IACpF,iFAA6D,CAAA;IAC7D,yDAAyD;IACzD,+DAA2C,CAAA;IAC3C,8EAA8E;IAC9E,qEAAiD,CAAA;IACjD,sFAAsF;IACtF,+EAA2D,CAAA;IAC3D;;;;OAIG;IACH,6FAAyE,CAAA;IACzE;;;OAGG;IACH,mFAA+D,CAAA;IAC/D,+EAA+E;IAC/E,uEAAmD,CAAA;IACnD,gFAAgF;IAChF,qFAAiE,CAAA;IACjE;;;OAGG;IACH,2DAAuC,CAAA;IACvC;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