@veruna/api-contracts 22.17.0 → 22.20.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 +132 -0
- package/build/locales/validation.js +60 -0
- package/build/locales/validation.js.map +1 -1
- package/build/rest-api.d.ts +7 -0
- package/build/rest-api.js +7 -0
- package/build/rest-api.js.map +1 -1
- package/build/routes/s2s.routes.d.ts +7 -0
- package/build/routes/s2s.routes.js +8 -1
- package/build/routes/s2s.routes.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/client-file/ai-output.constants.d.ts +8 -0
- package/build/v1/client-file/ai-output.constants.js +9 -1
- package/build/v1/client-file/ai-output.constants.js.map +1 -1
- package/build/v1/client-file/ai-output.enums.d.ts +11 -0
- package/build/v1/client-file/ai-output.enums.js +17 -0
- package/build/v1/client-file/ai-output.enums.js.map +1 -0
- package/build/v1/client-file/commands/ai-output.s2s.d.ts +163 -5
- package/build/v1/client-file/commands/ai-output.s2s.js +48 -6
- package/build/v1/client-file/commands/ai-output.s2s.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/user-files-stats.query.d.ts +4 -0
- package/build/v1/client-file/schemas/ai-output.schema.d.ts +118 -7
- package/build/v1/client-file/schemas/ai-output.schema.js +132 -9
- package/build/v1/client-file/schemas/ai-output.schema.js.map +1 -1
- package/build/v1/client-file/schemas/user-files-stats-response.schema.d.ts +4 -0
- package/build/v1/client-file/schemas/user-files-stats-response.schema.js +4 -0
- package/build/v1/client-file/schemas/user-files-stats-response.schema.js.map +1 -1
- package/build/v1/client-file/upload-magic-bytes.js +17 -1
- package/build/v1/client-file/upload-magic-bytes.js.map +1 -1
- package/build/v1/file/file.errors.d.ts +7 -7
- package/build/v1/file/file.errors.js +12 -12
- package/build/v1/file/file.errors.js.map +1 -1
- package/build/v1/s2s/queries/get-chat-by-id.query.d.ts +4 -0
- package/build/v1/s2s/queries/get-chat-by-id.query.js +4 -0
- package/build/v1/s2s/queries/get-chat-by-id.query.js.map +1 -1
- package/build/v1/s2s/schemas/s2s-chat-response.schema.d.ts +1 -0
- package/build/v1/s2s/schemas/s2s-chat-response.schema.js +1 -0
- package/build/v1/s2s/schemas/s2s-chat-response.schema.js.map +1 -1
- package/build-esm/.tsbuildinfo +1 -1
- package/build-esm/locales/validation.js +60 -0
- package/build-esm/locales/validation.js.map +1 -1
- package/build-esm/rest-api.js +7 -0
- package/build-esm/rest-api.js.map +1 -1
- package/build-esm/routes/s2s.routes.js +8 -1
- package/build-esm/routes/s2s.routes.js.map +1 -1
- package/build-esm/v1/client-file/ai-output.constants.js +8 -0
- package/build-esm/v1/client-file/ai-output.constants.js.map +1 -1
- package/build-esm/v1/client-file/ai-output.enums.js +14 -0
- package/build-esm/v1/client-file/ai-output.enums.js.map +1 -0
- package/build-esm/v1/client-file/commands/ai-output.s2s.js +48 -6
- package/build-esm/v1/client-file/commands/ai-output.s2s.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/schemas/ai-output.schema.js +131 -8
- package/build-esm/v1/client-file/schemas/ai-output.schema.js.map +1 -1
- package/build-esm/v1/client-file/schemas/user-files-stats-response.schema.js +4 -0
- package/build-esm/v1/client-file/schemas/user-files-stats-response.schema.js.map +1 -1
- package/build-esm/v1/client-file/upload-magic-bytes.js +17 -1
- package/build-esm/v1/client-file/upload-magic-bytes.js.map +1 -1
- package/build-esm/v1/file/file.errors.js +12 -12
- package/build-esm/v1/file/file.errors.js.map +1 -1
- package/build-esm/v1/s2s/queries/get-chat-by-id.query.js +4 -0
- package/build-esm/v1/s2s/queries/get-chat-by-id.query.js.map +1 -1
- package/build-esm/v1/s2s/schemas/s2s-chat-response.schema.js +1 -0
- package/build-esm/v1/s2s/schemas/s2s-chat-response.schema.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
/** Most results one provider order may store (a music order returns a few tracks and a cover). */
|
|
2
2
|
export declare const AI_OUTPUT_MAX_OUTPUTS_PER_ORDER = 16;
|
|
3
|
+
export declare const AI_OUTPUT_METADATA_HEADER = "x-ai-output-metadata";
|
|
4
|
+
export declare const AI_OUTPUT_STREAM_CONTENT_TYPE = "application/octet-stream";
|
|
5
|
+
export declare const AI_OUTPUT_METADATA_MAX_CHARS = 6144;
|
|
6
|
+
export declare const AI_OUTPUT_UPLOAD_MAX_SECONDS: number;
|
|
7
|
+
/** Legacy delivery has time for setup, a previous writer's lease, and its own write/finalize. */
|
|
8
|
+
export declare const LEGACY_AI_WRITER_LEASE_MS = 15000;
|
|
9
|
+
export declare const LEGACY_AI_REQUEST_TIMEOUT_MS: number;
|
|
10
|
+
export declare const LEGACY_AI_DEADLINE_HEADER = "x-legacy-ai-upload-deadline-ms";
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AI_OUTPUT_MAX_OUTPUTS_PER_ORDER = void 0;
|
|
3
|
+
exports.LEGACY_AI_DEADLINE_HEADER = exports.LEGACY_AI_REQUEST_TIMEOUT_MS = exports.LEGACY_AI_WRITER_LEASE_MS = exports.AI_OUTPUT_UPLOAD_MAX_SECONDS = exports.AI_OUTPUT_METADATA_MAX_CHARS = exports.AI_OUTPUT_STREAM_CONTENT_TYPE = exports.AI_OUTPUT_METADATA_HEADER = exports.AI_OUTPUT_MAX_OUTPUTS_PER_ORDER = void 0;
|
|
4
4
|
/** Most results one provider order may store (a music order returns a few tracks and a cover). */
|
|
5
5
|
exports.AI_OUTPUT_MAX_OUTPUTS_PER_ORDER = 16;
|
|
6
|
+
exports.AI_OUTPUT_METADATA_HEADER = 'x-ai-output-metadata';
|
|
7
|
+
exports.AI_OUTPUT_STREAM_CONTENT_TYPE = 'application/octet-stream';
|
|
8
|
+
exports.AI_OUTPUT_METADATA_MAX_CHARS = 6144;
|
|
9
|
+
exports.AI_OUTPUT_UPLOAD_MAX_SECONDS = 15 * 60;
|
|
10
|
+
/** Legacy delivery has time for setup, a previous writer's lease, and its own write/finalize. */
|
|
11
|
+
exports.LEGACY_AI_WRITER_LEASE_MS = 15_000;
|
|
12
|
+
exports.LEGACY_AI_REQUEST_TIMEOUT_MS = 3 * exports.LEGACY_AI_WRITER_LEASE_MS;
|
|
13
|
+
exports.LEGACY_AI_DEADLINE_HEADER = 'x-legacy-ai-upload-deadline-ms';
|
|
6
14
|
//# sourceMappingURL=ai-output.constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-output.constants.js","sourceRoot":"","sources":["../../../v1/client-file/ai-output.constants.ts"],"names":[],"mappings":";;;AAAA,kGAAkG;AACrF,QAAA,+BAA+B,GAAG,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"ai-output.constants.js","sourceRoot":"","sources":["../../../v1/client-file/ai-output.constants.ts"],"names":[],"mappings":";;;AAAA,kGAAkG;AACrF,QAAA,+BAA+B,GAAG,EAAE,CAAC;AAErC,QAAA,yBAAyB,GAAG,sBAAsB,CAAC;AACnD,QAAA,6BAA6B,GAAG,0BAA0B,CAAC;AAC3D,QAAA,4BAA4B,GAAG,IAAI,CAAC;AAEpC,QAAA,4BAA4B,GAAG,EAAE,GAAG,EAAE,CAAC;AAEpD,iGAAiG;AACpF,QAAA,yBAAyB,GAAG,MAAM,CAAC;AACnC,QAAA,4BAA4B,GAAG,CAAC,GAAG,iCAAyB,CAAC;AAC7D,QAAA,yBAAyB,GAAG,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiOutputSlotState = exports.AiOutputLookupState = void 0;
|
|
4
|
+
var AiOutputLookupState;
|
|
5
|
+
(function (AiOutputLookupState) {
|
|
6
|
+
AiOutputLookupState["PENDING"] = "PENDING";
|
|
7
|
+
AiOutputLookupState["ABSENT"] = "ABSENT";
|
|
8
|
+
AiOutputLookupState["ID_ONLY"] = "ID_ONLY";
|
|
9
|
+
AiOutputLookupState["FOUND"] = "FOUND";
|
|
10
|
+
})(AiOutputLookupState || (exports.AiOutputLookupState = AiOutputLookupState = {}));
|
|
11
|
+
var AiOutputSlotState;
|
|
12
|
+
(function (AiOutputSlotState) {
|
|
13
|
+
AiOutputSlotState["STREAMING"] = "STREAMING";
|
|
14
|
+
AiOutputSlotState["DONE"] = "DONE";
|
|
15
|
+
AiOutputSlotState["RETIRED"] = "RETIRED";
|
|
16
|
+
})(AiOutputSlotState || (exports.AiOutputSlotState = AiOutputSlotState = {}));
|
|
17
|
+
//# sourceMappingURL=ai-output.enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-output.enums.js","sourceRoot":"","sources":["../../../v1/client-file/ai-output.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC3B,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,sCAAe,CAAA;AACnB,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B;AAED,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IACzB,4CAAuB,CAAA;IACvB,kCAAa,CAAA;IACb,wCAAmB,CAAA;AACvB,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B"}
|
|
@@ -8,6 +8,9 @@ export declare namespace AiOutputAdmissionS2SCommand {
|
|
|
8
8
|
ownerId: z.ZodUUID;
|
|
9
9
|
chatId: z.ZodUUID;
|
|
10
10
|
messageId: z.ZodUUID;
|
|
11
|
+
creationDeadlineAt: z.ZodOptional<z.ZodISODateTime>;
|
|
12
|
+
isGroup: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
expectedBytesPerSlot: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
11
14
|
maxOutputs: z.ZodNumber;
|
|
12
15
|
}, z.core.$strict>;
|
|
13
16
|
const Response: z.ZodObject<{
|
|
@@ -18,7 +21,165 @@ export declare namespace AiOutputAdmissionS2SCommand {
|
|
|
18
21
|
type RequestType = z.infer<typeof Request>;
|
|
19
22
|
type ResponseType = z.infer<typeof Response>;
|
|
20
23
|
}
|
|
21
|
-
/**
|
|
24
|
+
/** Stream one output slot as binary with base64url-encoded JSON metadata in the S2S header. */
|
|
25
|
+
export declare namespace AiOutputStreamS2SCommand {
|
|
26
|
+
const Metadata: z.ZodObject<{
|
|
27
|
+
orderKey: z.ZodString;
|
|
28
|
+
ownerType: z.ZodEnum<typeof import("../..").S2SUploadAiFileOwnerType>;
|
|
29
|
+
ownerId: z.ZodUUID;
|
|
30
|
+
chatId: z.ZodUUID;
|
|
31
|
+
messageId: z.ZodUUID;
|
|
32
|
+
admissionId: z.ZodUUID;
|
|
33
|
+
slotIndex: z.ZodNumber;
|
|
34
|
+
kind: z.ZodEnum<{
|
|
35
|
+
IMAGE: import("..").ClientFileType.IMAGE;
|
|
36
|
+
AUDIO: import("..").ClientFileType.AUDIO;
|
|
37
|
+
VIDEO: import("..").ClientFileType.VIDEO;
|
|
38
|
+
}>;
|
|
39
|
+
mimeType: z.ZodString;
|
|
40
|
+
filename: z.ZodString;
|
|
41
|
+
declaredSize: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
}, z.core.$strict>;
|
|
43
|
+
const Response: z.ZodObject<{
|
|
44
|
+
fileId: z.ZodUUID;
|
|
45
|
+
key: z.ZodString;
|
|
46
|
+
contentType: z.ZodString;
|
|
47
|
+
size: z.ZodNumber;
|
|
48
|
+
filename: z.ZodString;
|
|
49
|
+
url: z.ZodURL;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
const GroupResponse: z.ZodObject<{
|
|
52
|
+
fileId: z.ZodUUID;
|
|
53
|
+
key: z.ZodString;
|
|
54
|
+
contentType: z.ZodString;
|
|
55
|
+
size: z.ZodNumber;
|
|
56
|
+
filename: z.ZodString;
|
|
57
|
+
}, z.core.$strict>;
|
|
58
|
+
const URL: "/file-api/s2s/files/ai-output/stream";
|
|
59
|
+
const METHOD = HttpMethod.POST;
|
|
60
|
+
type MetadataType = z.infer<typeof Metadata>;
|
|
61
|
+
type GroupResponseType = z.infer<typeof GroupResponse>;
|
|
62
|
+
type ResponseType = z.infer<typeof Response>;
|
|
63
|
+
}
|
|
64
|
+
export declare namespace AiOutputLookupS2SQuery {
|
|
65
|
+
const Request: z.ZodObject<{
|
|
66
|
+
orderKey: z.ZodString;
|
|
67
|
+
ownerType: z.ZodEnum<typeof import("../..").S2SUploadAiFileOwnerType>;
|
|
68
|
+
ownerId: z.ZodUUID;
|
|
69
|
+
chatId: z.ZodUUID;
|
|
70
|
+
messageId: z.ZodUUID;
|
|
71
|
+
creationDeadlineAt: z.ZodOptional<z.ZodISODateTime>;
|
|
72
|
+
idOnly: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
+
}, z.core.$strict>;
|
|
74
|
+
const Response: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
75
|
+
state: z.ZodEnum<{
|
|
76
|
+
PENDING: import("..").AiOutputLookupState.PENDING;
|
|
77
|
+
ABSENT: import("..").AiOutputLookupState.ABSENT;
|
|
78
|
+
}>;
|
|
79
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
80
|
+
admissionId: z.ZodUUID;
|
|
81
|
+
state: z.ZodLiteral<import("..").AiOutputLookupState.ID_ONLY>;
|
|
82
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
+
admissionId: z.ZodUUID;
|
|
84
|
+
state: z.ZodLiteral<import("..").AiOutputLookupState.FOUND>;
|
|
85
|
+
isGroup: z.ZodBoolean;
|
|
86
|
+
closed: z.ZodBoolean;
|
|
87
|
+
expiresAt: z.ZodISODateTime;
|
|
88
|
+
recoveryExpiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
89
|
+
recoverySlots: z.ZodArray<z.ZodNumber>;
|
|
90
|
+
slots: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
91
|
+
fileId: z.ZodUUID;
|
|
92
|
+
key: z.ZodString;
|
|
93
|
+
contentType: z.ZodString;
|
|
94
|
+
size: z.ZodNumber;
|
|
95
|
+
filename: z.ZodString;
|
|
96
|
+
slotIndex: z.ZodNumber;
|
|
97
|
+
state: z.ZodLiteral<import("..").AiOutputSlotState.DONE>;
|
|
98
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
99
|
+
slotIndex: z.ZodNumber;
|
|
100
|
+
state: z.ZodEnum<{
|
|
101
|
+
STREAMING: import("..").AiOutputSlotState.STREAMING;
|
|
102
|
+
RETIRED: import("..").AiOutputSlotState.RETIRED;
|
|
103
|
+
}>;
|
|
104
|
+
}, z.core.$strip>], "state">>;
|
|
105
|
+
}, z.core.$strip>], "state">;
|
|
106
|
+
const URL: "/file-api/s2s/files/ai-output/lookup";
|
|
107
|
+
const METHOD = HttpMethod.POST;
|
|
108
|
+
type RequestType = z.infer<typeof Request>;
|
|
109
|
+
type ResponseType = z.infer<typeof Response>;
|
|
110
|
+
}
|
|
111
|
+
export declare namespace AiOutputReadmitS2SCommand {
|
|
112
|
+
const Request: z.ZodObject<{
|
|
113
|
+
orderKey: z.ZodString;
|
|
114
|
+
ownerType: z.ZodEnum<typeof import("../..").S2SUploadAiFileOwnerType>;
|
|
115
|
+
ownerId: z.ZodUUID;
|
|
116
|
+
chatId: z.ZodUUID;
|
|
117
|
+
messageId: z.ZodUUID;
|
|
118
|
+
creationDeadlineAt: z.ZodOptional<z.ZodISODateTime>;
|
|
119
|
+
slotIndex: z.ZodNumber;
|
|
120
|
+
}, z.core.$strict>;
|
|
121
|
+
const Response: z.ZodObject<{
|
|
122
|
+
admissionId: z.ZodUUID;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
const URL: "/file-api/s2s/files/ai-output/readmit";
|
|
125
|
+
const METHOD = HttpMethod.POST;
|
|
126
|
+
type RequestType = z.infer<typeof Request>;
|
|
127
|
+
type ResponseType = z.infer<typeof Response>;
|
|
128
|
+
}
|
|
129
|
+
export declare namespace AiOutputPublishGroupS2SCommand {
|
|
130
|
+
const Request: z.ZodObject<{
|
|
131
|
+
orderKey: z.ZodString;
|
|
132
|
+
ownerType: z.ZodEnum<typeof import("../..").S2SUploadAiFileOwnerType>;
|
|
133
|
+
ownerId: z.ZodUUID;
|
|
134
|
+
chatId: z.ZodUUID;
|
|
135
|
+
messageId: z.ZodUUID;
|
|
136
|
+
creationDeadlineAt: z.ZodOptional<z.ZodISODateTime>;
|
|
137
|
+
slots: z.ZodArray<z.ZodObject<{
|
|
138
|
+
slotIndex: z.ZodNumber;
|
|
139
|
+
fileId: z.ZodUUID;
|
|
140
|
+
}, z.core.$strict>>;
|
|
141
|
+
}, z.core.$strict>;
|
|
142
|
+
const Response: z.ZodObject<{
|
|
143
|
+
success: z.ZodLiteral<true>;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
const URL: "/file-api/s2s/files/ai-output/publish-group";
|
|
146
|
+
const METHOD = HttpMethod.POST;
|
|
147
|
+
type RequestType = z.infer<typeof Request>;
|
|
148
|
+
type ResponseType = z.infer<typeof Response>;
|
|
149
|
+
}
|
|
150
|
+
export declare namespace AiOutputCloseS2SCommand {
|
|
151
|
+
const Request: z.ZodObject<{
|
|
152
|
+
orderKey: z.ZodString;
|
|
153
|
+
ownerType: z.ZodEnum<typeof import("../..").S2SUploadAiFileOwnerType>;
|
|
154
|
+
ownerId: z.ZodUUID;
|
|
155
|
+
chatId: z.ZodUUID;
|
|
156
|
+
messageId: z.ZodUUID;
|
|
157
|
+
admissionId: z.ZodOptional<z.ZodUUID>;
|
|
158
|
+
}, z.core.$strict>;
|
|
159
|
+
const Response: z.ZodObject<{
|
|
160
|
+
success: z.ZodLiteral<true>;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
const URL: "/file-api/s2s/files/ai-output/admissions/close";
|
|
163
|
+
const METHOD = HttpMethod.POST;
|
|
164
|
+
type RequestType = z.infer<typeof Request>;
|
|
165
|
+
type ResponseType = z.infer<typeof Response>;
|
|
166
|
+
}
|
|
167
|
+
export declare namespace DeleteChatFilesS2SCommand {
|
|
168
|
+
const Request: z.ZodObject<{
|
|
169
|
+
chatId: z.ZodUUID;
|
|
170
|
+
ownerType: z.ZodEnum<typeof import("../..").S2SUploadAiFileOwnerType>;
|
|
171
|
+
ownerId: z.ZodUUID;
|
|
172
|
+
intentId: z.ZodUUID;
|
|
173
|
+
}, z.core.$strict>;
|
|
174
|
+
const Response: z.ZodObject<{
|
|
175
|
+
success: z.ZodLiteral<true>;
|
|
176
|
+
}, z.core.$strip>;
|
|
177
|
+
const URL: "/file-api/s2s/files/chat/delete";
|
|
178
|
+
const METHOD = HttpMethod.POST;
|
|
179
|
+
type RequestType = z.infer<typeof Request>;
|
|
180
|
+
type ResponseType = z.infer<typeof Response>;
|
|
181
|
+
}
|
|
182
|
+
/** @deprecated Direct upload endpoints have been retired. */
|
|
22
183
|
export declare namespace AiOutputIntentS2SCommand {
|
|
23
184
|
const Request: z.ZodObject<{
|
|
24
185
|
admissionId: z.ZodUUID;
|
|
@@ -54,10 +215,7 @@ export declare namespace AiOutputIntentS2SCommand {
|
|
|
54
215
|
type RequestType = z.infer<typeof Request>;
|
|
55
216
|
type ResponseType = z.infer<typeof Response>;
|
|
56
217
|
}
|
|
57
|
-
/**
|
|
58
|
-
* Report the PUT finished. Repeatable: the same intent always answers with the same file.
|
|
59
|
-
* AI_OUTPUT_NOT_UPLOADED means nothing is stored yet and the call may be repeated.
|
|
60
|
-
*/
|
|
218
|
+
/** @deprecated Direct upload endpoints have been retired. */
|
|
61
219
|
export declare namespace AiOutputDoneS2SCommand {
|
|
62
220
|
const Params: z.ZodObject<{
|
|
63
221
|
intentId: z.ZodUUID;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AiOutputDoneS2SCommand = exports.AiOutputIntentS2SCommand = exports.AiOutputAdmissionS2SCommand = void 0;
|
|
3
|
+
exports.AiOutputDoneS2SCommand = exports.AiOutputIntentS2SCommand = exports.DeleteChatFilesS2SCommand = exports.AiOutputCloseS2SCommand = exports.AiOutputPublishGroupS2SCommand = exports.AiOutputReadmitS2SCommand = exports.AiOutputLookupS2SQuery = exports.AiOutputStreamS2SCommand = exports.AiOutputAdmissionS2SCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
4
5
|
const rest_api_1 = require("../../../rest-api");
|
|
5
6
|
const http_method_enum_1 = require("../../../shared/http-method.enum");
|
|
6
7
|
const ai_output_schema_1 = require("../schemas/ai-output.schema");
|
|
@@ -12,7 +13,51 @@ var AiOutputAdmissionS2SCommand;
|
|
|
12
13
|
AiOutputAdmissionS2SCommand.URL = rest_api_1.REST_API.V1.FILE_S2S.AI_OUTPUT_ADMISSIONS;
|
|
13
14
|
AiOutputAdmissionS2SCommand.METHOD = http_method_enum_1.HttpMethod.POST;
|
|
14
15
|
})(AiOutputAdmissionS2SCommand || (exports.AiOutputAdmissionS2SCommand = AiOutputAdmissionS2SCommand = {}));
|
|
15
|
-
/**
|
|
16
|
+
/** Stream one output slot as binary with base64url-encoded JSON metadata in the S2S header. */
|
|
17
|
+
var AiOutputStreamS2SCommand;
|
|
18
|
+
(function (AiOutputStreamS2SCommand) {
|
|
19
|
+
AiOutputStreamS2SCommand.Metadata = ai_output_schema_1.AiOutputStreamMetadataSchema;
|
|
20
|
+
AiOutputStreamS2SCommand.Response = ai_output_schema_1.AiOutputStreamResponseSchema;
|
|
21
|
+
AiOutputStreamS2SCommand.GroupResponse = ai_output_schema_1.AiOutputGroupStreamResponseSchema;
|
|
22
|
+
AiOutputStreamS2SCommand.URL = rest_api_1.REST_API.V1.FILE_S2S.AI_OUTPUT_STREAM;
|
|
23
|
+
AiOutputStreamS2SCommand.METHOD = http_method_enum_1.HttpMethod.POST;
|
|
24
|
+
})(AiOutputStreamS2SCommand || (exports.AiOutputStreamS2SCommand = AiOutputStreamS2SCommand = {}));
|
|
25
|
+
var AiOutputLookupS2SQuery;
|
|
26
|
+
(function (AiOutputLookupS2SQuery) {
|
|
27
|
+
AiOutputLookupS2SQuery.Request = ai_output_schema_1.AiOutputLookupRequestSchema;
|
|
28
|
+
AiOutputLookupS2SQuery.Response = ai_output_schema_1.AiOutputLookupResponseSchema;
|
|
29
|
+
AiOutputLookupS2SQuery.URL = rest_api_1.REST_API.V1.FILE_S2S.AI_OUTPUT_LOOKUP;
|
|
30
|
+
AiOutputLookupS2SQuery.METHOD = http_method_enum_1.HttpMethod.POST;
|
|
31
|
+
})(AiOutputLookupS2SQuery || (exports.AiOutputLookupS2SQuery = AiOutputLookupS2SQuery = {}));
|
|
32
|
+
var AiOutputReadmitS2SCommand;
|
|
33
|
+
(function (AiOutputReadmitS2SCommand) {
|
|
34
|
+
AiOutputReadmitS2SCommand.Request = ai_output_schema_1.AiOutputReadmitRequestSchema;
|
|
35
|
+
AiOutputReadmitS2SCommand.Response = ai_output_schema_1.AiOutputAdmissionResponseSchema;
|
|
36
|
+
AiOutputReadmitS2SCommand.URL = rest_api_1.REST_API.V1.FILE_S2S.AI_OUTPUT_READMIT;
|
|
37
|
+
AiOutputReadmitS2SCommand.METHOD = http_method_enum_1.HttpMethod.POST;
|
|
38
|
+
})(AiOutputReadmitS2SCommand || (exports.AiOutputReadmitS2SCommand = AiOutputReadmitS2SCommand = {}));
|
|
39
|
+
var AiOutputPublishGroupS2SCommand;
|
|
40
|
+
(function (AiOutputPublishGroupS2SCommand) {
|
|
41
|
+
AiOutputPublishGroupS2SCommand.Request = ai_output_schema_1.AiOutputPublishGroupRequestSchema;
|
|
42
|
+
AiOutputPublishGroupS2SCommand.Response = zod_1.z.object({ success: zod_1.z.literal(true) });
|
|
43
|
+
AiOutputPublishGroupS2SCommand.URL = rest_api_1.REST_API.V1.FILE_S2S.AI_OUTPUT_PUBLISH_GROUP;
|
|
44
|
+
AiOutputPublishGroupS2SCommand.METHOD = http_method_enum_1.HttpMethod.POST;
|
|
45
|
+
})(AiOutputPublishGroupS2SCommand || (exports.AiOutputPublishGroupS2SCommand = AiOutputPublishGroupS2SCommand = {}));
|
|
46
|
+
var AiOutputCloseS2SCommand;
|
|
47
|
+
(function (AiOutputCloseS2SCommand) {
|
|
48
|
+
AiOutputCloseS2SCommand.Request = ai_output_schema_1.AiOutputCloseRequestSchema;
|
|
49
|
+
AiOutputCloseS2SCommand.Response = zod_1.z.object({ success: zod_1.z.literal(true) });
|
|
50
|
+
AiOutputCloseS2SCommand.URL = rest_api_1.REST_API.V1.FILE_S2S.AI_OUTPUT_CLOSE;
|
|
51
|
+
AiOutputCloseS2SCommand.METHOD = http_method_enum_1.HttpMethod.POST;
|
|
52
|
+
})(AiOutputCloseS2SCommand || (exports.AiOutputCloseS2SCommand = AiOutputCloseS2SCommand = {}));
|
|
53
|
+
var DeleteChatFilesS2SCommand;
|
|
54
|
+
(function (DeleteChatFilesS2SCommand) {
|
|
55
|
+
DeleteChatFilesS2SCommand.Request = ai_output_schema_1.DeleteChatFilesRequestSchema;
|
|
56
|
+
DeleteChatFilesS2SCommand.Response = zod_1.z.object({ success: zod_1.z.literal(true) });
|
|
57
|
+
DeleteChatFilesS2SCommand.URL = rest_api_1.REST_API.V1.FILE_S2S.DELETE_CHAT_FILES;
|
|
58
|
+
DeleteChatFilesS2SCommand.METHOD = http_method_enum_1.HttpMethod.POST;
|
|
59
|
+
})(DeleteChatFilesS2SCommand || (exports.DeleteChatFilesS2SCommand = DeleteChatFilesS2SCommand = {}));
|
|
60
|
+
/** @deprecated Direct upload endpoints have been retired. */
|
|
16
61
|
var AiOutputIntentS2SCommand;
|
|
17
62
|
(function (AiOutputIntentS2SCommand) {
|
|
18
63
|
AiOutputIntentS2SCommand.Request = ai_output_schema_1.AiOutputIntentRequestSchema;
|
|
@@ -20,10 +65,7 @@ var AiOutputIntentS2SCommand;
|
|
|
20
65
|
AiOutputIntentS2SCommand.URL = rest_api_1.REST_API.V1.FILE_S2S.AI_OUTPUT_INTENTS;
|
|
21
66
|
AiOutputIntentS2SCommand.METHOD = http_method_enum_1.HttpMethod.POST;
|
|
22
67
|
})(AiOutputIntentS2SCommand || (exports.AiOutputIntentS2SCommand = AiOutputIntentS2SCommand = {}));
|
|
23
|
-
/**
|
|
24
|
-
* Report the PUT finished. Repeatable: the same intent always answers with the same file.
|
|
25
|
-
* AI_OUTPUT_NOT_UPLOADED means nothing is stored yet and the call may be repeated.
|
|
26
|
-
*/
|
|
68
|
+
/** @deprecated Direct upload endpoints have been retired. */
|
|
27
69
|
var AiOutputDoneS2SCommand;
|
|
28
70
|
(function (AiOutputDoneS2SCommand) {
|
|
29
71
|
AiOutputDoneS2SCommand.Params = ai_output_schema_1.AiOutputIntentParamsSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-output.s2s.js","sourceRoot":"","sources":["../../../../v1/client-file/commands/ai-output.s2s.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ai-output.s2s.js","sourceRoot":"","sources":["../../../../v1/client-file/commands/ai-output.s2s.ts"],"names":[],"mappings":"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"}
|
|
@@ -26,4 +26,5 @@ __exportStar(require("./client-file-extensions"), exports);
|
|
|
26
26
|
__exportStar(require("./ai-file-policy.constants"), exports);
|
|
27
27
|
__exportStar(require("./client-document.constants"), exports);
|
|
28
28
|
__exportStar(require("./ai-output.constants"), exports);
|
|
29
|
+
__exportStar(require("./ai-output.enums"), exports);
|
|
29
30
|
//# 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;AAC3C,2DAAyC;AAEzC,6DAA2C;AAE3C,8DAA4C;AAC5C,wDAAsC"}
|
|
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;AAC3C,2DAAyC;AAEzC,6DAA2C;AAE3C,8DAA4C;AAC5C,wDAAsC;AACtC,oDAAkC"}
|
|
@@ -21,6 +21,8 @@ export declare namespace UserFilesStatsQuery {
|
|
|
21
21
|
byType: z.ZodObject<{
|
|
22
22
|
IMAGE: z.ZodNumber;
|
|
23
23
|
DOC: z.ZodNumber;
|
|
24
|
+
AUDIO: z.ZodNumber;
|
|
25
|
+
VIDEO: z.ZodNumber;
|
|
24
26
|
}, z.core.$strip>;
|
|
25
27
|
bytesByStatus: z.ZodObject<{
|
|
26
28
|
UPLOADING: z.ZodNumber;
|
|
@@ -31,6 +33,8 @@ export declare namespace UserFilesStatsQuery {
|
|
|
31
33
|
bytesByType: z.ZodObject<{
|
|
32
34
|
IMAGE: z.ZodNumber;
|
|
33
35
|
DOC: z.ZodNumber;
|
|
36
|
+
AUDIO: z.ZodNumber;
|
|
37
|
+
VIDEO: z.ZodNumber;
|
|
34
38
|
}, z.core.$strip>;
|
|
35
39
|
}, z.core.$strip>;
|
|
36
40
|
const URL: "/file-api/v1/client/files/stats";
|
|
@@ -1,27 +1,137 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { AiOutputLookupState, AiOutputSlotState } from '../ai-output.enums';
|
|
2
3
|
import { ClientFileType } from './client-file-type.enum';
|
|
4
|
+
/** Optional absolute Unix time in milliseconds on legacy S2S uploads. */
|
|
5
|
+
export declare const LegacyAiUploadDeadlineSchema: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodCoercedNumber<string>>>;
|
|
3
6
|
/** Kinds a provider can deliver straight to storage; documents go through the file tools. */
|
|
4
7
|
export declare const AiOutputKindSchema: z.ZodEnum<{
|
|
5
8
|
IMAGE: ClientFileType.IMAGE;
|
|
6
9
|
AUDIO: ClientFileType.AUDIO;
|
|
7
10
|
VIDEO: ClientFileType.VIDEO;
|
|
8
11
|
}>;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/
|
|
12
|
+
export declare const AiOutputAdmissionResponseSchema: z.ZodObject<{
|
|
13
|
+
admissionId: z.ZodUUID;
|
|
14
|
+
}, z.core.$strip>;
|
|
13
15
|
export declare const AiOutputAdmissionRequestSchema: z.ZodObject<{
|
|
14
16
|
orderKey: z.ZodString;
|
|
15
17
|
ownerType: z.ZodEnum<typeof import("../..").S2SUploadAiFileOwnerType>;
|
|
16
18
|
ownerId: z.ZodUUID;
|
|
17
19
|
chatId: z.ZodUUID;
|
|
18
20
|
messageId: z.ZodUUID;
|
|
21
|
+
creationDeadlineAt: z.ZodOptional<z.ZodISODateTime>;
|
|
22
|
+
isGroup: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
expectedBytesPerSlot: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
19
24
|
maxOutputs: z.ZodNumber;
|
|
20
25
|
}, z.core.$strict>;
|
|
21
|
-
export declare const
|
|
26
|
+
export declare const AiOutputLookupRequestSchema: z.ZodObject<{
|
|
27
|
+
orderKey: z.ZodString;
|
|
28
|
+
ownerType: z.ZodEnum<typeof import("../..").S2SUploadAiFileOwnerType>;
|
|
29
|
+
ownerId: z.ZodUUID;
|
|
30
|
+
chatId: z.ZodUUID;
|
|
31
|
+
messageId: z.ZodUUID;
|
|
32
|
+
creationDeadlineAt: z.ZodOptional<z.ZodISODateTime>;
|
|
33
|
+
idOnly: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
}, z.core.$strict>;
|
|
35
|
+
export declare const AiOutputReadmitRequestSchema: z.ZodObject<{
|
|
36
|
+
orderKey: z.ZodString;
|
|
37
|
+
ownerType: z.ZodEnum<typeof import("../..").S2SUploadAiFileOwnerType>;
|
|
38
|
+
ownerId: z.ZodUUID;
|
|
39
|
+
chatId: z.ZodUUID;
|
|
40
|
+
messageId: z.ZodUUID;
|
|
41
|
+
creationDeadlineAt: z.ZodOptional<z.ZodISODateTime>;
|
|
42
|
+
slotIndex: z.ZodNumber;
|
|
43
|
+
}, z.core.$strict>;
|
|
44
|
+
export declare const AiOutputPublishGroupRequestSchema: z.ZodObject<{
|
|
45
|
+
orderKey: z.ZodString;
|
|
46
|
+
ownerType: z.ZodEnum<typeof import("../..").S2SUploadAiFileOwnerType>;
|
|
47
|
+
ownerId: z.ZodUUID;
|
|
48
|
+
chatId: z.ZodUUID;
|
|
49
|
+
messageId: z.ZodUUID;
|
|
50
|
+
creationDeadlineAt: z.ZodOptional<z.ZodISODateTime>;
|
|
51
|
+
slots: z.ZodArray<z.ZodObject<{
|
|
52
|
+
slotIndex: z.ZodNumber;
|
|
53
|
+
fileId: z.ZodUUID;
|
|
54
|
+
}, z.core.$strict>>;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
export declare const AiOutputCloseRequestSchema: z.ZodObject<{
|
|
57
|
+
orderKey: z.ZodString;
|
|
58
|
+
ownerType: z.ZodEnum<typeof import("../..").S2SUploadAiFileOwnerType>;
|
|
59
|
+
ownerId: z.ZodUUID;
|
|
60
|
+
chatId: z.ZodUUID;
|
|
61
|
+
messageId: z.ZodUUID;
|
|
62
|
+
admissionId: z.ZodOptional<z.ZodUUID>;
|
|
63
|
+
}, z.core.$strict>;
|
|
64
|
+
export declare const DeleteChatFilesRequestSchema: z.ZodObject<{
|
|
65
|
+
chatId: z.ZodUUID;
|
|
66
|
+
ownerType: z.ZodEnum<typeof import("../..").S2SUploadAiFileOwnerType>;
|
|
67
|
+
ownerId: z.ZodUUID;
|
|
68
|
+
intentId: z.ZodUUID;
|
|
69
|
+
}, z.core.$strict>;
|
|
70
|
+
export declare const AiOutputStreamMetadataSchema: z.ZodObject<{
|
|
71
|
+
orderKey: z.ZodString;
|
|
72
|
+
ownerType: z.ZodEnum<typeof import("../..").S2SUploadAiFileOwnerType>;
|
|
73
|
+
ownerId: z.ZodUUID;
|
|
74
|
+
chatId: z.ZodUUID;
|
|
75
|
+
messageId: z.ZodUUID;
|
|
22
76
|
admissionId: z.ZodUUID;
|
|
77
|
+
slotIndex: z.ZodNumber;
|
|
78
|
+
kind: z.ZodEnum<{
|
|
79
|
+
IMAGE: ClientFileType.IMAGE;
|
|
80
|
+
AUDIO: ClientFileType.AUDIO;
|
|
81
|
+
VIDEO: ClientFileType.VIDEO;
|
|
82
|
+
}>;
|
|
83
|
+
mimeType: z.ZodString;
|
|
84
|
+
filename: z.ZodString;
|
|
85
|
+
declaredSize: z.ZodOptional<z.ZodNumber>;
|
|
86
|
+
}, z.core.$strict>;
|
|
87
|
+
export declare const AiOutputStreamResponseSchema: z.ZodObject<{
|
|
88
|
+
fileId: z.ZodUUID;
|
|
89
|
+
key: z.ZodString;
|
|
90
|
+
contentType: z.ZodString;
|
|
91
|
+
size: z.ZodNumber;
|
|
92
|
+
filename: z.ZodString;
|
|
93
|
+
url: z.ZodURL;
|
|
23
94
|
}, z.core.$strip>;
|
|
24
|
-
|
|
95
|
+
export declare const AiOutputGroupStreamResponseSchema: z.ZodObject<{
|
|
96
|
+
fileId: z.ZodUUID;
|
|
97
|
+
key: z.ZodString;
|
|
98
|
+
contentType: z.ZodString;
|
|
99
|
+
size: z.ZodNumber;
|
|
100
|
+
filename: z.ZodString;
|
|
101
|
+
}, z.core.$strict>;
|
|
102
|
+
export declare const AiOutputLookupResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
103
|
+
state: z.ZodEnum<{
|
|
104
|
+
PENDING: AiOutputLookupState.PENDING;
|
|
105
|
+
ABSENT: AiOutputLookupState.ABSENT;
|
|
106
|
+
}>;
|
|
107
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
108
|
+
admissionId: z.ZodUUID;
|
|
109
|
+
state: z.ZodLiteral<AiOutputLookupState.ID_ONLY>;
|
|
110
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
111
|
+
admissionId: z.ZodUUID;
|
|
112
|
+
state: z.ZodLiteral<AiOutputLookupState.FOUND>;
|
|
113
|
+
isGroup: z.ZodBoolean;
|
|
114
|
+
closed: z.ZodBoolean;
|
|
115
|
+
expiresAt: z.ZodISODateTime;
|
|
116
|
+
recoveryExpiresAt: z.ZodNullable<z.ZodISODateTime>;
|
|
117
|
+
recoverySlots: z.ZodArray<z.ZodNumber>;
|
|
118
|
+
slots: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
119
|
+
fileId: z.ZodUUID;
|
|
120
|
+
key: z.ZodString;
|
|
121
|
+
contentType: z.ZodString;
|
|
122
|
+
size: z.ZodNumber;
|
|
123
|
+
filename: z.ZodString;
|
|
124
|
+
slotIndex: z.ZodNumber;
|
|
125
|
+
state: z.ZodLiteral<AiOutputSlotState.DONE>;
|
|
126
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
127
|
+
slotIndex: z.ZodNumber;
|
|
128
|
+
state: z.ZodEnum<{
|
|
129
|
+
STREAMING: AiOutputSlotState.STREAMING;
|
|
130
|
+
RETIRED: AiOutputSlotState.RETIRED;
|
|
131
|
+
}>;
|
|
132
|
+
}, z.core.$strip>], "state">>;
|
|
133
|
+
}, z.core.$strip>], "state">;
|
|
134
|
+
/** @deprecated Direct upload endpoints have been retired. */
|
|
25
135
|
export declare const AiOutputIntentRequestSchema: z.ZodObject<{
|
|
26
136
|
admissionId: z.ZodUUID;
|
|
27
137
|
slotIndex: z.ZodNumber;
|
|
@@ -34,7 +144,7 @@ export declare const AiOutputIntentRequestSchema: z.ZodObject<{
|
|
|
34
144
|
filename: z.ZodString;
|
|
35
145
|
declaredSize: z.ZodOptional<z.ZodNumber>;
|
|
36
146
|
}, z.core.$strict>;
|
|
37
|
-
/**
|
|
147
|
+
/** @deprecated Use AiOutputStreamResponseSchema. */
|
|
38
148
|
export declare const AiOutputDoneResponseSchema: z.ZodObject<{
|
|
39
149
|
fileId: z.ZodUUID;
|
|
40
150
|
key: z.ZodString;
|
|
@@ -64,6 +174,7 @@ export declare const AiOutputIntentResponseSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
64
174
|
stored: z.ZodLiteral<true>;
|
|
65
175
|
intentId: z.ZodUUID;
|
|
66
176
|
}, z.core.$strip>], "stored">;
|
|
177
|
+
/** @deprecated Direct upload endpoints have been retired. */
|
|
67
178
|
export declare const AiOutputIntentParamsSchema: z.ZodObject<{
|
|
68
179
|
intentId: z.ZodUUID;
|
|
69
180
|
}, z.core.$strip>;
|