@veruna/api-contracts 1.0.60 → 1.0.62
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/controllers/index.d.ts +1 -0
- package/build/controllers/index.js +3 -1
- package/build/controllers/index.js.map +1 -1
- package/build/controllers/telegram-profile.controllers.d.ts +1 -0
- package/build/controllers/telegram-profile.controllers.js +5 -0
- package/build/controllers/telegram-profile.controllers.js.map +1 -0
- package/build/rest-api.d.ts +8 -0
- package/build/rest-api.js +8 -0
- package/build/rest-api.js.map +1 -1
- package/build/routes/index.d.ts +1 -0
- package/build/routes/index.js +3 -1
- package/build/routes/index.js.map +1 -1
- package/build/routes/telegram-profile.routes.d.ts +6 -0
- package/build/routes/telegram-profile.routes.js +10 -0
- package/build/routes/telegram-profile.routes.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/ai-model/admin/commands/create-model.command.d.ts +16 -0
- package/build/v1/ai-model/admin/commands/update-model.command.d.ts +16 -0
- package/build/v1/ai-model/admin/queries/get-model.query.d.ts +8 -0
- package/build/v1/ai-model/admin/queries/get-models.query.d.ts +8 -0
- package/build/v1/ai-model/schemas/create-model-request.schema.d.ts +8 -0
- package/build/v1/ai-model/schemas/create-model-request.schema.js +2 -0
- package/build/v1/ai-model/schemas/create-model-request.schema.js.map +1 -1
- package/build/v1/ai-model/schemas/index.d.ts +1 -0
- package/build/v1/ai-model/schemas/index.js +1 -0
- package/build/v1/ai-model/schemas/index.js.map +1 -1
- package/build/v1/ai-model/schemas/model-response.schema.d.ts +8 -0
- package/build/v1/ai-model/schemas/model-response.schema.js +3 -0
- package/build/v1/ai-model/schemas/model-response.schema.js.map +1 -1
- package/build/v1/ai-model/schemas/steps-settings.schema.d.ts +26 -0
- package/build/v1/ai-model/schemas/steps-settings.schema.js +24 -0
- package/build/v1/ai-model/schemas/steps-settings.schema.js.map +1 -0
- package/build/v1/ai-model/schemas/update-model-request.schema.d.ts +8 -0
- package/build/v1/ai-model/schemas/update-model-request.schema.js +2 -0
- package/build/v1/ai-model/schemas/update-model-request.schema.js.map +1 -1
- package/build/v1/chat/commands/create-reg-chat.command.d.ts +30 -28
- package/build/v1/chat/commands/create-unreg-chat.command.d.ts +30 -28
- package/build/v1/chat/commands/update-chat-title.command.d.ts +30 -28
- package/build/v1/chat/commands/update-chat.command.d.ts +30 -28
- package/build/v1/chat/queries/get-last-active-chat.query.d.ts +30 -28
- package/build/v1/chat/queries/get-reg-chat.query.d.ts +30 -28
- package/build/v1/chat/queries/get-unreg-chat.query.d.ts +30 -28
- package/build/v1/chat/schemas/chat-with-messages-response.schema.d.ts +30 -28
- package/build/v1/message/commands/cancel-stream-reg.command.d.ts +12 -0
- package/build/v1/message/commands/cancel-stream-reg.command.js +15 -0
- package/build/v1/message/commands/cancel-stream-reg.command.js.map +1 -0
- package/build/v1/message/commands/cancel-stream-unreg.command.d.ts +12 -0
- package/build/v1/message/commands/cancel-stream-unreg.command.js +15 -0
- package/build/v1/message/commands/cancel-stream-unreg.command.js.map +1 -0
- package/build/v1/message/commands/create-message.command.d.ts +47 -48
- package/build/v1/message/commands/create-message.command.js +4 -1
- package/build/v1/message/commands/create-message.command.js.map +1 -1
- package/build/v1/message/commands/delete-message-reg.command.d.ts +12 -0
- package/build/v1/message/commands/delete-message-reg.command.js +15 -0
- package/build/v1/message/commands/delete-message-reg.command.js.map +1 -0
- package/build/v1/message/commands/delete-message-unreg.command.d.ts +12 -0
- package/build/v1/message/commands/delete-message-unreg.command.js +15 -0
- package/build/v1/message/commands/delete-message-unreg.command.js.map +1 -0
- package/build/v1/message/commands/index.d.ts +4 -0
- package/build/v1/message/commands/index.js +9 -1
- package/build/v1/message/commands/index.js.map +1 -1
- package/build/v1/message/message.errors.d.ts +6 -1
- package/build/v1/message/message.errors.js +25 -0
- package/build/v1/message/message.errors.js.map +1 -1
- package/build/v1/message/schemas/citation.schema.d.ts +4 -0
- package/build/v1/message/schemas/citation.schema.js +6 -1
- package/build/v1/message/schemas/citation.schema.js.map +1 -1
- package/build/v1/message/schemas/generation-step.schema.d.ts +11 -1
- package/build/v1/message/schemas/generation-step.schema.js +12 -1
- package/build/v1/message/schemas/generation-step.schema.js.map +1 -1
- package/build/v1/message/schemas/index.d.ts +10 -6
- package/build/v1/message/schemas/index.js +21 -10
- package/build/v1/message/schemas/index.js.map +1 -1
- package/build/v1/message/schemas/message-attachment-response.schema.d.ts +35 -0
- package/build/v1/message/schemas/message-attachment-response.schema.js +21 -0
- package/build/v1/message/schemas/message-attachment-response.schema.js.map +1 -0
- package/build/v1/message/schemas/message-attachment.schema.d.ts +12 -1
- package/build/v1/message/schemas/message-attachment.schema.js +14 -1
- package/build/v1/message/schemas/message-attachment.schema.js.map +1 -1
- package/build/v1/message/schemas/message-citation-response.schema.d.ts +19 -0
- package/build/v1/message/schemas/message-citation-response.schema.js +14 -0
- package/build/v1/message/schemas/message-citation-response.schema.js.map +1 -0
- package/build/v1/message/schemas/message-response.schema.d.ts +30 -28
- package/build/v1/message/schemas/message-response.schema.js +6 -2
- package/build/v1/message/schemas/message-response.schema.js.map +1 -1
- package/build/v1/message/schemas/message-status.enum.d.ts +1 -0
- package/build/v1/message/schemas/message-status.enum.js +1 -0
- package/build/v1/message/schemas/message-status.enum.js.map +1 -1
- package/build/v1/message/schemas/message-step-response.schema.d.ts +29 -0
- package/build/v1/message/schemas/message-step-response.schema.js +19 -0
- package/build/v1/message/schemas/message-step-response.schema.js.map +1 -0
- package/build/v1/message/schemas/stream-events.schema.d.ts +48 -100
- package/build/v1/message/schemas/stream-events.schema.js +30 -44
- package/build/v1/message/schemas/stream-events.schema.js.map +1 -1
- package/build/v1/telegram-auth/constants/index.d.ts +1 -0
- package/build/v1/telegram-auth/constants/index.js +18 -0
- package/build/v1/telegram-auth/constants/index.js.map +1 -0
- package/build/v1/telegram-auth/constants/telegram-auth.constants.d.ts +1 -0
- package/build/v1/telegram-auth/constants/telegram-auth.constants.js +5 -0
- package/build/v1/telegram-auth/constants/telegram-auth.constants.js.map +1 -0
- package/build/v1/telegram-auth/index.d.ts +1 -0
- package/build/v1/telegram-auth/index.js +1 -0
- package/build/v1/telegram-auth/index.js.map +1 -1
- package/build/v1/telegram-auth/schemas/index.d.ts +1 -0
- package/build/v1/telegram-auth/schemas/index.js +1 -0
- package/build/v1/telegram-auth/schemas/index.js.map +1 -1
- package/build/v1/telegram-auth/schemas/telegram-auth-request-type.enum.d.ts +4 -0
- package/build/v1/telegram-auth/schemas/telegram-auth-request-type.enum.js +9 -0
- package/build/v1/telegram-auth/schemas/telegram-auth-request-type.enum.js.map +1 -0
- package/build/v1/telegram-auth/schemas/telegram-auth-status.enum.d.ts +2 -1
- package/build/v1/telegram-auth/schemas/telegram-auth-status.enum.js +1 -0
- package/build/v1/telegram-auth/schemas/telegram-auth-status.enum.js.map +1 -1
- package/build/v1/telegram-profile/commands/index.d.ts +2 -0
- package/build/v1/telegram-profile/commands/index.js +19 -0
- package/build/v1/telegram-profile/commands/index.js.map +1 -0
- package/build/v1/telegram-profile/commands/link-telegram.command.d.ts +14 -0
- package/build/v1/telegram-profile/commands/link-telegram.command.js +15 -0
- package/build/v1/telegram-profile/commands/link-telegram.command.js.map +1 -0
- package/build/v1/telegram-profile/commands/unlink-telegram.command.d.ts +10 -0
- package/build/v1/telegram-profile/commands/unlink-telegram.command.js +13 -0
- package/build/v1/telegram-profile/commands/unlink-telegram.command.js.map +1 -0
- package/build/v1/telegram-profile/index.d.ts +5 -0
- package/build/v1/telegram-profile/index.js +8 -0
- package/build/v1/telegram-profile/index.js.map +1 -1
- package/build/v1/telegram-profile/queries/get-telegram-link-status.query.d.ts +12 -0
- package/build/v1/telegram-profile/queries/get-telegram-link-status.query.js +13 -0
- package/build/v1/telegram-profile/queries/get-telegram-link-status.query.js.map +1 -0
- package/build/v1/telegram-profile/queries/get-telegram-profile.query.d.ts +15 -0
- package/build/v1/telegram-profile/queries/get-telegram-profile.query.js +13 -0
- package/build/v1/telegram-profile/queries/get-telegram-profile.query.js.map +1 -0
- package/build/v1/telegram-profile/queries/index.d.ts +2 -0
- package/build/v1/telegram-profile/queries/index.js +19 -0
- package/build/v1/telegram-profile/queries/index.js.map +1 -0
- package/build/v1/telegram-profile/schemas/index.d.ts +4 -0
- package/build/v1/telegram-profile/schemas/index.js +21 -0
- package/build/v1/telegram-profile/schemas/index.js.map +1 -0
- package/build/v1/telegram-profile/schemas/telegram-link-response.schema.d.ts +7 -0
- package/build/v1/telegram-profile/schemas/telegram-link-response.schema.js +10 -0
- package/build/v1/telegram-profile/schemas/telegram-link-response.schema.js.map +1 -0
- package/build/v1/telegram-profile/schemas/telegram-link-status-response.schema.d.ts +8 -0
- package/build/v1/telegram-profile/schemas/telegram-link-status-response.schema.js +11 -0
- package/build/v1/telegram-profile/schemas/telegram-link-status-response.schema.js.map +1 -0
- package/build/v1/telegram-profile/schemas/telegram-profile-response.schema.d.ts +10 -0
- package/build/v1/telegram-profile/schemas/telegram-profile-response.schema.js +13 -0
- package/build/v1/telegram-profile/schemas/telegram-profile-response.schema.js.map +1 -0
- package/build/v1/telegram-profile/schemas/telegram-unlink-response.schema.d.ts +5 -0
- package/build/v1/telegram-profile/schemas/telegram-unlink-response.schema.js +8 -0
- package/build/v1/telegram-profile/schemas/telegram-unlink-response.schema.js.map +1 -0
- package/build/v1/telegram-profile/telegram-profile.errors.d.ts +6 -1
- package/build/v1/telegram-profile/telegram-profile.errors.js +25 -0
- package/build/v1/telegram-profile/telegram-profile.errors.js.map +1 -1
- package/package.json +1 -1
- package/build/v1/message/schemas/message-meta.schema.d.ts +0 -53
- package/build/v1/message/schemas/message-meta.schema.js +0 -25
- package/build/v1/message/schemas/message-meta.schema.js.map +0 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageStepsResponseSchema = exports.MessageStepResponseSchema = exports.StepContentResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const generation_step_schema_1 = require("./generation-step.schema");
|
|
6
|
+
exports.StepContentResponseSchema = zod_1.z.object({
|
|
7
|
+
text: zod_1.z.string().optional(),
|
|
8
|
+
});
|
|
9
|
+
exports.MessageStepResponseSchema = zod_1.z.object({
|
|
10
|
+
uuid: zod_1.z.string().uuid(),
|
|
11
|
+
type: zod_1.z.nativeEnum(generation_step_schema_1.GenerationStepType),
|
|
12
|
+
status: zod_1.z.nativeEnum(generation_step_schema_1.MessageStepStatus),
|
|
13
|
+
content: exports.StepContentResponseSchema.nullable(),
|
|
14
|
+
showInUi: zod_1.z.boolean(),
|
|
15
|
+
startedAt: zod_1.z.string().nullable(),
|
|
16
|
+
completedAt: zod_1.z.string().nullable(),
|
|
17
|
+
});
|
|
18
|
+
exports.MessageStepsResponseSchema = zod_1.z.array(exports.MessageStepResponseSchema);
|
|
19
|
+
//# sourceMappingURL=message-step-response.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-step-response.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/message-step-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qEAAiF;AAOpE,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAMU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAE9C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAEvB,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,2CAAkB,CAAC;IAEtC,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,0CAAiB,CAAC;IAEvC,OAAO,EAAE,iCAAyB,CAAC,QAAQ,EAAE;IAE7C,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;IAErB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAEhC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;AAOU,QAAA,0BAA0B,GAAG,OAAC,CAAC,KAAK,CAAC,iCAAyB,CAAC,CAAC"}
|
|
@@ -1,110 +1,78 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { GenerationStepType } from './generation-step.schema';
|
|
3
3
|
export declare enum StreamEventType {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
IMAGE = "image",
|
|
7
|
-
PROMPT_GENERATION = "prompt_generation",
|
|
4
|
+
STEP_START = "step_start",
|
|
5
|
+
STEP_CHUNK = "step_chunk",
|
|
8
6
|
STEP_DONE = "step_done",
|
|
9
|
-
|
|
7
|
+
IMAGE = "image",
|
|
10
8
|
IMAGE_GENERATION_ERROR = "image_generation_error",
|
|
11
|
-
IMAGE_UPLOADED = "image_uploaded",
|
|
12
9
|
CITATIONS = "citations",
|
|
10
|
+
HEARTBEAT = "heartbeat",
|
|
13
11
|
DONE = "done",
|
|
14
12
|
CANCELLED = "cancelled",
|
|
15
13
|
ERROR = "error"
|
|
16
14
|
}
|
|
17
|
-
export declare const
|
|
15
|
+
export declare const StreamStepStartEventSchema: z.ZodObject<{
|
|
16
|
+
id: z.ZodNumber;
|
|
17
|
+
chatId: z.ZodString;
|
|
18
|
+
messageId: z.ZodString;
|
|
19
|
+
type: z.ZodLiteral<StreamEventType.STEP_START>;
|
|
20
|
+
stepType: z.ZodEnum<typeof GenerationStepType>;
|
|
21
|
+
stepId: z.ZodString;
|
|
22
|
+
stepIndex: z.ZodNumber;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export declare const StreamStepChunkEventSchema: z.ZodObject<{
|
|
18
25
|
id: z.ZodNumber;
|
|
19
26
|
chatId: z.ZodString;
|
|
20
27
|
messageId: z.ZodString;
|
|
21
|
-
type: z.ZodLiteral<StreamEventType.
|
|
22
|
-
|
|
28
|
+
type: z.ZodLiteral<StreamEventType.STEP_CHUNK>;
|
|
29
|
+
stepType: z.ZodEnum<typeof GenerationStepType>;
|
|
30
|
+
stepId: z.ZodString;
|
|
31
|
+
chunk: z.ZodString;
|
|
23
32
|
}, z.core.$strip>;
|
|
24
|
-
export declare const
|
|
25
|
-
id: z.ZodNumber;
|
|
26
|
-
chatId: z.ZodString;
|
|
27
|
-
messageId: z.ZodString;
|
|
28
|
-
type: z.ZodLiteral<StreamEventType.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
text: z.ZodOptional<z.ZodString>;
|
|
34
|
-
format: z.ZodOptional<z.ZodString>;
|
|
35
|
-
index: z.ZodOptional<z.ZodNumber>;
|
|
36
|
-
id: z.ZodOptional<z.ZodString>;
|
|
37
|
-
data: z.ZodOptional<z.ZodString>;
|
|
38
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
39
|
-
}, z.core.$strip>>>;
|
|
33
|
+
export declare const StreamStepDoneEventSchema: z.ZodObject<{
|
|
34
|
+
id: z.ZodNumber;
|
|
35
|
+
chatId: z.ZodString;
|
|
36
|
+
messageId: z.ZodString;
|
|
37
|
+
type: z.ZodLiteral<StreamEventType.STEP_DONE>;
|
|
38
|
+
stepType: z.ZodEnum<typeof GenerationStepType>;
|
|
39
|
+
stepId: z.ZodString;
|
|
40
|
+
stepIndex: z.ZodNumber;
|
|
41
|
+
fullContent: z.ZodOptional<z.ZodString>;
|
|
40
42
|
}, z.core.$strip>;
|
|
41
43
|
export declare const StreamDoneEventSchema: z.ZodObject<{
|
|
42
44
|
id: z.ZodNumber;
|
|
43
45
|
chatId: z.ZodString;
|
|
44
46
|
messageId: z.ZodString;
|
|
45
47
|
type: z.ZodLiteral<StreamEventType.DONE>;
|
|
46
|
-
content: z.ZodLiteral<"">;
|
|
47
48
|
}, z.core.$strip>;
|
|
48
49
|
export declare const StreamCancelledEventSchema: z.ZodObject<{
|
|
49
50
|
id: z.ZodNumber;
|
|
50
51
|
chatId: z.ZodString;
|
|
51
52
|
messageId: z.ZodString;
|
|
52
53
|
type: z.ZodLiteral<StreamEventType.CANCELLED>;
|
|
53
|
-
content: z.ZodLiteral<"">;
|
|
54
54
|
}, z.core.$strip>;
|
|
55
55
|
export declare const StreamErrorEventSchema: z.ZodObject<{
|
|
56
56
|
id: z.ZodNumber;
|
|
57
57
|
chatId: z.ZodString;
|
|
58
58
|
messageId: z.ZodString;
|
|
59
59
|
type: z.ZodLiteral<StreamEventType.ERROR>;
|
|
60
|
-
errorCode: z.ZodOptional<z.ZodString>;
|
|
61
|
-
errorMessage: z.ZodOptional<z.ZodString>;
|
|
62
60
|
}, z.core.$strip>;
|
|
63
61
|
export declare const StreamImageEventSchema: z.ZodObject<{
|
|
64
62
|
id: z.ZodNumber;
|
|
65
63
|
chatId: z.ZodString;
|
|
66
64
|
messageId: z.ZodString;
|
|
67
65
|
type: z.ZodLiteral<StreamEventType.IMAGE>;
|
|
68
|
-
content: z.ZodLiteral<"">;
|
|
69
66
|
imageBase64: z.ZodString;
|
|
70
67
|
imageMimeType: z.ZodString;
|
|
71
68
|
imageIndex: z.ZodNumber;
|
|
72
69
|
}, z.core.$strip>;
|
|
73
|
-
export declare const StreamPromptGenerationEventSchema: z.ZodObject<{
|
|
74
|
-
id: z.ZodNumber;
|
|
75
|
-
chatId: z.ZodString;
|
|
76
|
-
messageId: z.ZodString;
|
|
77
|
-
type: z.ZodLiteral<StreamEventType.PROMPT_GENERATION>;
|
|
78
|
-
promptChunk: z.ZodString;
|
|
79
|
-
}, z.core.$strip>;
|
|
80
|
-
export declare const StreamStepDoneEventSchema: z.ZodObject<{
|
|
81
|
-
id: z.ZodNumber;
|
|
82
|
-
chatId: z.ZodString;
|
|
83
|
-
messageId: z.ZodString;
|
|
84
|
-
type: z.ZodLiteral<StreamEventType.STEP_DONE>;
|
|
85
|
-
stepType: z.ZodEnum<typeof GenerationStepType>;
|
|
86
|
-
fullContent: z.ZodOptional<z.ZodString>;
|
|
87
|
-
}, z.core.$strip>;
|
|
88
|
-
export declare const StreamImageGenerationStartEventSchema: z.ZodObject<{
|
|
89
|
-
id: z.ZodNumber;
|
|
90
|
-
chatId: z.ZodString;
|
|
91
|
-
messageId: z.ZodString;
|
|
92
|
-
type: z.ZodLiteral<StreamEventType.IMAGE_GENERATION_START>;
|
|
93
|
-
}, z.core.$strip>;
|
|
94
70
|
export declare const StreamImageGenerationErrorEventSchema: z.ZodObject<{
|
|
95
71
|
id: z.ZodNumber;
|
|
96
72
|
chatId: z.ZodString;
|
|
97
73
|
messageId: z.ZodString;
|
|
98
74
|
type: z.ZodLiteral<StreamEventType.IMAGE_GENERATION_ERROR>;
|
|
99
75
|
}, z.core.$strip>;
|
|
100
|
-
export declare const StreamImageUploadedEventSchema: z.ZodObject<{
|
|
101
|
-
id: z.ZodNumber;
|
|
102
|
-
chatId: z.ZodString;
|
|
103
|
-
messageId: z.ZodString;
|
|
104
|
-
type: z.ZodLiteral<StreamEventType.IMAGE_UPLOADED>;
|
|
105
|
-
imageUrl: z.ZodString;
|
|
106
|
-
imageIndex: z.ZodNumber;
|
|
107
|
-
}, z.core.$strip>;
|
|
108
76
|
export declare const StreamCitationsEventSchema: z.ZodObject<{
|
|
109
77
|
id: z.ZodNumber;
|
|
110
78
|
chatId: z.ZodString;
|
|
@@ -118,67 +86,48 @@ export declare const StreamCitationsEventSchema: z.ZodObject<{
|
|
|
118
86
|
endIndex: z.ZodNumber;
|
|
119
87
|
}, z.core.$strip>>;
|
|
120
88
|
}, z.core.$strip>;
|
|
89
|
+
export declare const StreamHeartbeatEventSchema: z.ZodObject<{
|
|
90
|
+
type: z.ZodLiteral<StreamEventType.HEARTBEAT>;
|
|
91
|
+
timestamp: z.ZodString;
|
|
92
|
+
}, z.core.$strip>;
|
|
121
93
|
export declare const StreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
122
94
|
id: z.ZodNumber;
|
|
123
95
|
chatId: z.ZodString;
|
|
124
96
|
messageId: z.ZodString;
|
|
125
|
-
type: z.ZodLiteral<StreamEventType.
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
chatId: z.ZodString;
|
|
130
|
-
messageId: z.ZodString;
|
|
131
|
-
type: z.ZodLiteral<StreamEventType.REASONING>;
|
|
132
|
-
content: z.ZodLiteral<"">;
|
|
133
|
-
reasoning: z.ZodString;
|
|
134
|
-
reasoningDetails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
135
|
-
type: z.ZodString;
|
|
136
|
-
text: z.ZodOptional<z.ZodString>;
|
|
137
|
-
format: z.ZodOptional<z.ZodString>;
|
|
138
|
-
index: z.ZodOptional<z.ZodNumber>;
|
|
139
|
-
id: z.ZodOptional<z.ZodString>;
|
|
140
|
-
data: z.ZodOptional<z.ZodString>;
|
|
141
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
142
|
-
}, z.core.$strip>>>;
|
|
143
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
144
|
-
id: z.ZodNumber;
|
|
145
|
-
chatId: z.ZodString;
|
|
146
|
-
messageId: z.ZodString;
|
|
147
|
-
type: z.ZodLiteral<StreamEventType.IMAGE>;
|
|
148
|
-
content: z.ZodLiteral<"">;
|
|
149
|
-
imageBase64: z.ZodString;
|
|
150
|
-
imageMimeType: z.ZodString;
|
|
151
|
-
imageIndex: z.ZodNumber;
|
|
97
|
+
type: z.ZodLiteral<StreamEventType.STEP_START>;
|
|
98
|
+
stepType: z.ZodEnum<typeof GenerationStepType>;
|
|
99
|
+
stepId: z.ZodString;
|
|
100
|
+
stepIndex: z.ZodNumber;
|
|
152
101
|
}, z.core.$strip>, z.ZodObject<{
|
|
153
102
|
id: z.ZodNumber;
|
|
154
103
|
chatId: z.ZodString;
|
|
155
104
|
messageId: z.ZodString;
|
|
156
|
-
type: z.ZodLiteral<StreamEventType.
|
|
157
|
-
|
|
105
|
+
type: z.ZodLiteral<StreamEventType.STEP_CHUNK>;
|
|
106
|
+
stepType: z.ZodEnum<typeof GenerationStepType>;
|
|
107
|
+
stepId: z.ZodString;
|
|
108
|
+
chunk: z.ZodString;
|
|
158
109
|
}, z.core.$strip>, z.ZodObject<{
|
|
159
110
|
id: z.ZodNumber;
|
|
160
111
|
chatId: z.ZodString;
|
|
161
112
|
messageId: z.ZodString;
|
|
162
113
|
type: z.ZodLiteral<StreamEventType.STEP_DONE>;
|
|
163
114
|
stepType: z.ZodEnum<typeof GenerationStepType>;
|
|
115
|
+
stepId: z.ZodString;
|
|
116
|
+
stepIndex: z.ZodNumber;
|
|
164
117
|
fullContent: z.ZodOptional<z.ZodString>;
|
|
165
118
|
}, z.core.$strip>, z.ZodObject<{
|
|
166
119
|
id: z.ZodNumber;
|
|
167
120
|
chatId: z.ZodString;
|
|
168
121
|
messageId: z.ZodString;
|
|
169
|
-
type: z.ZodLiteral<StreamEventType.
|
|
122
|
+
type: z.ZodLiteral<StreamEventType.IMAGE>;
|
|
123
|
+
imageBase64: z.ZodString;
|
|
124
|
+
imageMimeType: z.ZodString;
|
|
125
|
+
imageIndex: z.ZodNumber;
|
|
170
126
|
}, z.core.$strip>, z.ZodObject<{
|
|
171
127
|
id: z.ZodNumber;
|
|
172
128
|
chatId: z.ZodString;
|
|
173
129
|
messageId: z.ZodString;
|
|
174
130
|
type: z.ZodLiteral<StreamEventType.IMAGE_GENERATION_ERROR>;
|
|
175
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
176
|
-
id: z.ZodNumber;
|
|
177
|
-
chatId: z.ZodString;
|
|
178
|
-
messageId: z.ZodString;
|
|
179
|
-
type: z.ZodLiteral<StreamEventType.IMAGE_UPLOADED>;
|
|
180
|
-
imageUrl: z.ZodString;
|
|
181
|
-
imageIndex: z.ZodNumber;
|
|
182
131
|
}, z.core.$strip>, z.ZodObject<{
|
|
183
132
|
id: z.ZodNumber;
|
|
184
133
|
chatId: z.ZodString;
|
|
@@ -191,23 +140,22 @@ export declare const StreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
191
140
|
startIndex: z.ZodNumber;
|
|
192
141
|
endIndex: z.ZodNumber;
|
|
193
142
|
}, z.core.$strip>>;
|
|
143
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
144
|
+
type: z.ZodLiteral<StreamEventType.HEARTBEAT>;
|
|
145
|
+
timestamp: z.ZodString;
|
|
194
146
|
}, z.core.$strip>, z.ZodObject<{
|
|
195
147
|
id: z.ZodNumber;
|
|
196
148
|
chatId: z.ZodString;
|
|
197
149
|
messageId: z.ZodString;
|
|
198
150
|
type: z.ZodLiteral<StreamEventType.DONE>;
|
|
199
|
-
content: z.ZodLiteral<"">;
|
|
200
151
|
}, z.core.$strip>, z.ZodObject<{
|
|
201
152
|
id: z.ZodNumber;
|
|
202
153
|
chatId: z.ZodString;
|
|
203
154
|
messageId: z.ZodString;
|
|
204
155
|
type: z.ZodLiteral<StreamEventType.CANCELLED>;
|
|
205
|
-
content: z.ZodLiteral<"">;
|
|
206
156
|
}, z.core.$strip>, z.ZodObject<{
|
|
207
157
|
id: z.ZodNumber;
|
|
208
158
|
chatId: z.ZodString;
|
|
209
159
|
messageId: z.ZodString;
|
|
210
160
|
type: z.ZodLiteral<StreamEventType.ERROR>;
|
|
211
|
-
errorCode: z.ZodOptional<z.ZodString>;
|
|
212
|
-
errorMessage: z.ZodOptional<z.ZodString>;
|
|
213
161
|
}, z.core.$strip>], "type">;
|
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StreamEventSchema = exports.
|
|
3
|
+
exports.StreamEventSchema = exports.StreamHeartbeatEventSchema = exports.StreamCitationsEventSchema = exports.StreamImageGenerationErrorEventSchema = exports.StreamImageEventSchema = exports.StreamErrorEventSchema = exports.StreamCancelledEventSchema = exports.StreamDoneEventSchema = exports.StreamStepDoneEventSchema = exports.StreamStepChunkEventSchema = exports.StreamStepStartEventSchema = exports.StreamEventType = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const message_meta_schema_1 = require("./message-meta.schema");
|
|
6
5
|
const generation_step_schema_1 = require("./generation-step.schema");
|
|
7
6
|
const citation_schema_1 = require("./citation.schema");
|
|
8
7
|
var StreamEventType;
|
|
9
8
|
(function (StreamEventType) {
|
|
10
|
-
StreamEventType["
|
|
11
|
-
StreamEventType["
|
|
12
|
-
StreamEventType["IMAGE"] = "image";
|
|
13
|
-
StreamEventType["PROMPT_GENERATION"] = "prompt_generation";
|
|
9
|
+
StreamEventType["STEP_START"] = "step_start";
|
|
10
|
+
StreamEventType["STEP_CHUNK"] = "step_chunk";
|
|
14
11
|
StreamEventType["STEP_DONE"] = "step_done";
|
|
15
|
-
StreamEventType["
|
|
12
|
+
StreamEventType["IMAGE"] = "image";
|
|
16
13
|
StreamEventType["IMAGE_GENERATION_ERROR"] = "image_generation_error";
|
|
17
|
-
StreamEventType["IMAGE_UPLOADED"] = "image_uploaded";
|
|
18
14
|
StreamEventType["CITATIONS"] = "citations";
|
|
15
|
+
StreamEventType["HEARTBEAT"] = "heartbeat";
|
|
19
16
|
StreamEventType["DONE"] = "done";
|
|
20
17
|
StreamEventType["CANCELLED"] = "cancelled";
|
|
21
18
|
StreamEventType["ERROR"] = "error";
|
|
@@ -25,70 +22,59 @@ const BaseStreamEventSchema = zod_1.z.object({
|
|
|
25
22
|
chatId: zod_1.z.string().uuid(),
|
|
26
23
|
messageId: zod_1.z.string().uuid(),
|
|
27
24
|
});
|
|
28
|
-
exports.
|
|
29
|
-
type: zod_1.z.literal(StreamEventType.
|
|
30
|
-
|
|
25
|
+
exports.StreamStepStartEventSchema = BaseStreamEventSchema.extend({
|
|
26
|
+
type: zod_1.z.literal(StreamEventType.STEP_START),
|
|
27
|
+
stepType: zod_1.z.nativeEnum(generation_step_schema_1.GenerationStepType),
|
|
28
|
+
stepId: zod_1.z.string().uuid(),
|
|
29
|
+
stepIndex: zod_1.z.number().int().nonnegative(),
|
|
31
30
|
});
|
|
32
|
-
exports.
|
|
33
|
-
type: zod_1.z.literal(StreamEventType.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
exports.StreamStepChunkEventSchema = BaseStreamEventSchema.extend({
|
|
32
|
+
type: zod_1.z.literal(StreamEventType.STEP_CHUNK),
|
|
33
|
+
stepType: zod_1.z.nativeEnum(generation_step_schema_1.GenerationStepType),
|
|
34
|
+
stepId: zod_1.z.string().uuid(),
|
|
35
|
+
chunk: zod_1.z.string(),
|
|
36
|
+
});
|
|
37
|
+
exports.StreamStepDoneEventSchema = BaseStreamEventSchema.extend({
|
|
38
|
+
type: zod_1.z.literal(StreamEventType.STEP_DONE),
|
|
39
|
+
stepType: zod_1.z.nativeEnum(generation_step_schema_1.GenerationStepType),
|
|
40
|
+
stepId: zod_1.z.string().uuid(),
|
|
41
|
+
stepIndex: zod_1.z.number().int().nonnegative(),
|
|
42
|
+
fullContent: zod_1.z.string().optional(),
|
|
37
43
|
});
|
|
38
44
|
exports.StreamDoneEventSchema = BaseStreamEventSchema.extend({
|
|
39
45
|
type: zod_1.z.literal(StreamEventType.DONE),
|
|
40
|
-
content: zod_1.z.literal(''),
|
|
41
46
|
});
|
|
42
47
|
exports.StreamCancelledEventSchema = BaseStreamEventSchema.extend({
|
|
43
48
|
type: zod_1.z.literal(StreamEventType.CANCELLED),
|
|
44
|
-
content: zod_1.z.literal(''),
|
|
45
49
|
});
|
|
46
50
|
exports.StreamErrorEventSchema = BaseStreamEventSchema.extend({
|
|
47
51
|
type: zod_1.z.literal(StreamEventType.ERROR),
|
|
48
|
-
errorCode: zod_1.z.string().optional(),
|
|
49
|
-
errorMessage: zod_1.z.string().optional(),
|
|
50
52
|
});
|
|
51
53
|
exports.StreamImageEventSchema = BaseStreamEventSchema.extend({
|
|
52
54
|
type: zod_1.z.literal(StreamEventType.IMAGE),
|
|
53
|
-
content: zod_1.z.literal(''),
|
|
54
55
|
imageBase64: zod_1.z.string().min(1),
|
|
55
56
|
imageMimeType: zod_1.z.string().min(1),
|
|
56
57
|
imageIndex: zod_1.z.number().int().nonnegative(),
|
|
57
58
|
});
|
|
58
|
-
exports.StreamPromptGenerationEventSchema = BaseStreamEventSchema.extend({
|
|
59
|
-
type: zod_1.z.literal(StreamEventType.PROMPT_GENERATION),
|
|
60
|
-
promptChunk: zod_1.z.string(),
|
|
61
|
-
});
|
|
62
|
-
exports.StreamStepDoneEventSchema = BaseStreamEventSchema.extend({
|
|
63
|
-
type: zod_1.z.literal(StreamEventType.STEP_DONE),
|
|
64
|
-
stepType: zod_1.z.nativeEnum(generation_step_schema_1.GenerationStepType),
|
|
65
|
-
fullContent: zod_1.z.string().optional(),
|
|
66
|
-
});
|
|
67
|
-
exports.StreamImageGenerationStartEventSchema = BaseStreamEventSchema.extend({
|
|
68
|
-
type: zod_1.z.literal(StreamEventType.IMAGE_GENERATION_START),
|
|
69
|
-
});
|
|
70
59
|
exports.StreamImageGenerationErrorEventSchema = BaseStreamEventSchema.extend({
|
|
71
60
|
type: zod_1.z.literal(StreamEventType.IMAGE_GENERATION_ERROR),
|
|
72
61
|
});
|
|
73
|
-
exports.StreamImageUploadedEventSchema = BaseStreamEventSchema.extend({
|
|
74
|
-
type: zod_1.z.literal(StreamEventType.IMAGE_UPLOADED),
|
|
75
|
-
imageUrl: zod_1.z.string().url(),
|
|
76
|
-
imageIndex: zod_1.z.number().int().nonnegative(),
|
|
77
|
-
});
|
|
78
62
|
exports.StreamCitationsEventSchema = BaseStreamEventSchema.extend({
|
|
79
63
|
type: zod_1.z.literal(StreamEventType.CITATIONS),
|
|
80
64
|
citations: zod_1.z.array(citation_schema_1.CitationSchema),
|
|
81
65
|
});
|
|
66
|
+
exports.StreamHeartbeatEventSchema = zod_1.z.object({
|
|
67
|
+
type: zod_1.z.literal(StreamEventType.HEARTBEAT),
|
|
68
|
+
timestamp: zod_1.z.string().datetime(),
|
|
69
|
+
});
|
|
82
70
|
exports.StreamEventSchema = zod_1.z.discriminatedUnion('type', [
|
|
83
|
-
exports.
|
|
84
|
-
exports.
|
|
85
|
-
exports.StreamImageEventSchema,
|
|
86
|
-
exports.StreamPromptGenerationEventSchema,
|
|
71
|
+
exports.StreamStepStartEventSchema,
|
|
72
|
+
exports.StreamStepChunkEventSchema,
|
|
87
73
|
exports.StreamStepDoneEventSchema,
|
|
88
|
-
exports.
|
|
74
|
+
exports.StreamImageEventSchema,
|
|
89
75
|
exports.StreamImageGenerationErrorEventSchema,
|
|
90
|
-
exports.StreamImageUploadedEventSchema,
|
|
91
76
|
exports.StreamCitationsEventSchema,
|
|
77
|
+
exports.StreamHeartbeatEventSchema,
|
|
92
78
|
exports.StreamDoneEventSchema,
|
|
93
79
|
exports.StreamCancelledEventSchema,
|
|
94
80
|
exports.StreamErrorEventSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-events.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/stream-events.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB
|
|
1
|
+
{"version":3,"file":"stream-events.schema.js","sourceRoot":"","sources":["../../../../v1/message/schemas/stream-events.schema.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './telegram-auth.constants';
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./telegram-auth.constants"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/telegram-auth/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TELEGRAM_AUTH_CODE_PREFIX: "auth_";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telegram-auth.constants.js","sourceRoot":"","sources":["../../../../v1/telegram-auth/constants/telegram-auth.constants.ts"],"names":[],"mappings":";;;AAKa,QAAA,yBAAyB,GAAG,OAAgB,CAAC"}
|
|
@@ -2,5 +2,6 @@ export * from './schemas';
|
|
|
2
2
|
export * from './telegram-auth.errors';
|
|
3
3
|
export * from './commands';
|
|
4
4
|
export * from './queries';
|
|
5
|
+
export * from './constants';
|
|
5
6
|
export { TELEGRAM_AUTH_CONTROLLER } from '../../controllers';
|
|
6
7
|
export { TELEGRAM_AUTH_ROUTES } from '../../routes';
|
|
@@ -19,6 +19,7 @@ __exportStar(require("./schemas"), exports);
|
|
|
19
19
|
__exportStar(require("./telegram-auth.errors"), exports);
|
|
20
20
|
__exportStar(require("./commands"), exports);
|
|
21
21
|
__exportStar(require("./queries"), exports);
|
|
22
|
+
__exportStar(require("./constants"), exports);
|
|
22
23
|
var controllers_1 = require("../../controllers");
|
|
23
24
|
Object.defineProperty(exports, "TELEGRAM_AUTH_CONTROLLER", { enumerable: true, get: function () { return controllers_1.TELEGRAM_AUTH_CONTROLLER; } });
|
|
24
25
|
var routes_1 = require("../../routes");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/telegram-auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,yDAAuC;AACvC,6CAA2B;AAC3B,4CAA0B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../v1/telegram-auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,yDAAuC;AACvC,6CAA2B;AAC3B,4CAA0B;AAC1B,8CAA4B;AAE5B,iDAA6D;AAApD,uHAAA,wBAAwB,OAAA;AACjC,uCAAoD;AAA3C,8GAAA,oBAAoB,OAAA"}
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./telegram-auth-status.enum"), exports);
|
|
18
|
+
__exportStar(require("./telegram-auth-request-type.enum"), exports);
|
|
18
19
|
__exportStar(require("./telegram-auth-init-response.schema"), exports);
|
|
19
20
|
__exportStar(require("./telegram-auth-status-response.schema"), exports);
|
|
20
21
|
__exportStar(require("./telegram-auth-exchange-request.schema"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/telegram-auth/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,uEAAqD;AACrD,yEAAuD;AACvD,0EAAwD;AACxD,2EAAyD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/telegram-auth/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,oEAAkD;AAClD,uEAAqD;AACrD,yEAAuD;AACvD,0EAAwD;AACxD,2EAAyD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TelegramAuthRequestType = void 0;
|
|
4
|
+
var TelegramAuthRequestType;
|
|
5
|
+
(function (TelegramAuthRequestType) {
|
|
6
|
+
TelegramAuthRequestType["AUTH"] = "auth";
|
|
7
|
+
TelegramAuthRequestType["LINK"] = "link";
|
|
8
|
+
})(TelegramAuthRequestType || (exports.TelegramAuthRequestType = TelegramAuthRequestType = {}));
|
|
9
|
+
//# sourceMappingURL=telegram-auth-request-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telegram-auth-request-type.enum.js","sourceRoot":"","sources":["../../../../v1/telegram-auth/schemas/telegram-auth-request-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAC/B,wCAAa,CAAA;IACb,wCAAa,CAAA;AACjB,CAAC,EAHW,uBAAuB,uCAAvB,uBAAuB,QAGlC"}
|
|
@@ -7,5 +7,6 @@ var TelegramAuthStatus;
|
|
|
7
7
|
TelegramAuthStatus["CONFIRMED"] = "confirmed";
|
|
8
8
|
TelegramAuthStatus["EXCHANGED"] = "exchanged";
|
|
9
9
|
TelegramAuthStatus["EXPIRED"] = "expired";
|
|
10
|
+
TelegramAuthStatus["FAILED"] = "failed";
|
|
10
11
|
})(TelegramAuthStatus || (exports.TelegramAuthStatus = TelegramAuthStatus = {}));
|
|
11
12
|
//# sourceMappingURL=telegram-auth-status.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telegram-auth-status.enum.js","sourceRoot":"","sources":["../../../../v1/telegram-auth/schemas/telegram-auth-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"telegram-auth-status.enum.js","sourceRoot":"","sources":["../../../../v1/telegram-auth/schemas/telegram-auth-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC1B,yCAAmB,CAAA;IACnB,6CAAuB,CAAA;IACvB,6CAAuB,CAAA;IACvB,yCAAmB,CAAA;IACnB,uCAAiB,CAAA;AACrB,CAAC,EANW,kBAAkB,kCAAlB,kBAAkB,QAM7B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./link-telegram.command"), exports);
|
|
18
|
+
__exportStar(require("./unlink-telegram.command"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../v1/telegram-profile/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,4DAA0C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace LinkTelegramCommand {
|
|
4
|
+
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
const Response: z.ZodObject<{
|
|
6
|
+
uuid: z.ZodString;
|
|
7
|
+
link: z.ZodString;
|
|
8
|
+
expiresAt: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
const URL: "/api/v1/profiles/telegram/link";
|
|
11
|
+
const METHOD = HttpMethod.POST;
|
|
12
|
+
type RequestType = z.infer<typeof Request>;
|
|
13
|
+
type ResponseType = z.infer<typeof Response>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LinkTelegramCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const schemas_1 = require("../schemas");
|
|
6
|
+
const http_method_1 = require("../../../shared/http-method");
|
|
7
|
+
const rest_api_1 = require("../../../rest-api");
|
|
8
|
+
var LinkTelegramCommand;
|
|
9
|
+
(function (LinkTelegramCommand) {
|
|
10
|
+
LinkTelegramCommand.Request = zod_1.z.object({});
|
|
11
|
+
LinkTelegramCommand.Response = schemas_1.TelegramLinkResponseSchema;
|
|
12
|
+
LinkTelegramCommand.URL = rest_api_1.REST_API.V1.TELEGRAM_PROFILE.LINK;
|
|
13
|
+
LinkTelegramCommand.METHOD = http_method_1.HttpMethod.POST;
|
|
14
|
+
})(LinkTelegramCommand || (exports.LinkTelegramCommand = LinkTelegramCommand = {}));
|
|
15
|
+
//# sourceMappingURL=link-telegram.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-telegram.command.js","sourceRoot":"","sources":["../../../../v1/telegram-profile/commands/link-telegram.command.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,wCAAwD;AACxD,6DAAyD;AACzD,gDAA6C;AAM7C,IAAiB,mBAAmB,CASnC;AATD,WAAiB,mBAAmB;IACnB,2BAAO,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACvB,4BAAQ,GAAG,oCAA0B,CAAC;IAEtC,uBAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC;IACxC,0BAAM,GAAG,wBAAU,CAAC,IAAI,CAAC;AAI1C,CAAC,EATgB,mBAAmB,mCAAnB,mBAAmB,QASnC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpMethod } from '../../../shared/http-method';
|
|
3
|
+
export declare namespace UnlinkTelegramCommand {
|
|
4
|
+
const Response: z.ZodObject<{
|
|
5
|
+
success: z.ZodLiteral<true>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
const URL: "/api/v1/profiles/telegram/unlink";
|
|
8
|
+
const METHOD = HttpMethod.DELETE;
|
|
9
|
+
type ResponseType = z.infer<typeof Response>;
|
|
10
|
+
}
|