@rtsee/common 0.0.79 → 0.0.81
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/dist/common/src/interfaces/messenger/Message.d.ts +19 -0
- package/dist/common/src/interfaces/messenger/Message.d.ts.map +1 -1
- package/dist/common/src/interfaces/messenger/RTSeeMessengerEvents.d.ts +2 -0
- package/dist/common/src/interfaces/messenger/RTSeeMessengerEvents.d.ts.map +1 -1
- package/dist/common/src/interfaces/messenger/RTSeeMessengerEvents.js +2 -0
- package/dist/common/src/interfaces/messenger/RTSeeMessengerEvents.js.map +1 -1
- package/dist/common/src/interfaces/messenger/StorageHandlers.d.ts +3 -1
- package/dist/common/src/interfaces/messenger/StorageHandlers.d.ts.map +1 -1
- package/dist/common/src/interfaces/ozzy/workflows/index.d.ts +1 -0
- package/dist/common/src/interfaces/ozzy/workflows/index.d.ts.map +1 -1
- package/dist/common/src/interfaces/ozzy/workflows/index.js +1 -0
- package/dist/common/src/interfaces/ozzy/workflows/index.js.map +1 -1
- package/dist/common/src/interfaces/ozzy/workflows/storyTranslator.d.ts +30 -0
- package/dist/common/src/interfaces/ozzy/workflows/storyTranslator.d.ts.map +1 -0
- package/dist/common/src/interfaces/ozzy/workflows/storyTranslator.js +15 -0
- package/dist/common/src/interfaces/ozzy/workflows/storyTranslator.js.map +1 -0
- package/dist/common/src/interfaces/presentation/Illustrator.d.ts +7 -1
- package/dist/common/src/interfaces/presentation/Illustrator.d.ts.map +1 -1
- package/dist/common/src/interfaces/presentation/Illustrator.js +2 -0
- package/dist/common/src/interfaces/presentation/Illustrator.js.map +1 -1
- package/dist/common/src/interfaces/presentation/StoriesQuery.d.ts +2 -0
- package/dist/common/src/interfaces/presentation/StoriesQuery.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
import { IOzzyPromptCost, RTSeeMessageStatus } from "@rtsee/common";
|
|
2
2
|
export interface IRTSeeMessageImage {
|
|
3
3
|
name: string;
|
|
4
|
+
/** Originally generated / uploaded image (full size) */
|
|
4
5
|
url: string;
|
|
6
|
+
/** Persisted Image id (set once the image is stored) */
|
|
7
|
+
id?: string;
|
|
8
|
+
/** Downsized, web-optimized version of the image (used for previews) */
|
|
9
|
+
smallVersionUrl?: string;
|
|
10
|
+
}
|
|
11
|
+
/** Downsized version of a stored message image, produced client-side */
|
|
12
|
+
export interface IRTSeeMessageImageSmallVersion {
|
|
13
|
+
/** id of the original (persisted) image */
|
|
14
|
+
imageId: string;
|
|
15
|
+
/** base64 data url of the downsized image */
|
|
16
|
+
dataUrl: string;
|
|
17
|
+
width?: number;
|
|
18
|
+
height?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface IRTSeeUpdateMessageImagesOptions {
|
|
21
|
+
chatId: string;
|
|
22
|
+
messageId: string;
|
|
23
|
+
smallVersions: IRTSeeMessageImageSmallVersion[];
|
|
5
24
|
}
|
|
6
25
|
export interface IRTSeeMessageVideo {
|
|
7
26
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/messenger/Message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAE,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAElE,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/messenger/Message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAE,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAElE,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,wDAAwD;IACxD,GAAG,EAAE,MAAM,CAAC;IACZ,wDAAwD;IACxD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,wEAAwE;IACxE,eAAe,CAAC,EAAE,MA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AAM,CAAC;CACnB"}
|
|
@@ -5,6 +5,8 @@ export declare enum RTSeeMessengerEvents {
|
|
|
5
5
|
OUTGOING_MESSAGES_SEEN = "rtsee-outgoing-message-seen",
|
|
6
6
|
MESSAGE_RECEIVED = "message-received",
|
|
7
7
|
GET_MESSAGES = "rtsee-get-messages",
|
|
8
|
+
UPDATE_MESSAGE_IMAGES = "rtsee-update-message-images",
|
|
9
|
+
MESSAGE_UPDATED = "rtsee-message-updated",
|
|
8
10
|
GET_PEER = "rtsee-get-peer",
|
|
9
11
|
UPDATE_PEER = "rtsee-update-peer",
|
|
10
12
|
OWN_PROFILE_CLOSED = "rtsee-own-profile-closed",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RTSeeMessengerEvents.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/messenger/RTSeeMessengerEvents.ts"],"names":[],"mappings":"AAAA,oBAAY,oBAAoB;IAE9B,gBAAgB,2BAA2B;IAC3C,YAAY,uBAAuB;IACnC,sBAAsB,gCAAgC;IACtD,sBAAsB,gCAAgC;IACtD,gBAAgB,qBAAqB;IACrC,YAAY,uBAAuB;
|
|
1
|
+
{"version":3,"file":"RTSeeMessengerEvents.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/messenger/RTSeeMessengerEvents.ts"],"names":[],"mappings":"AAAA,oBAAY,oBAAoB;IAE9B,gBAAgB,2BAA2B;IAC3C,YAAY,uBAAuB;IACnC,sBAAsB,gCAAgC;IACtD,sBAAsB,gCAAgC;IACtD,gBAAgB,qBAAqB;IACrC,YAAY,uBAAuB;IACnC,qBAAqB,gCAAgC;IACrD,eAAe,0BAA0B;IAGzC,QAAQ,mBAAmB;IAC3B,WAAW,sBAAsB;IACjC,kBAAkB,6BAA6B;IAG/C,MAAM,2BAA2B;IAGjC,SAAS,oBAAoB;IAC7B,QAAQ,mBAAmB;IAC3B,WAAW,sBAAsB;IACjC,SAAS,oBAAoB;IAC7B,WAAW,sBAAsB;IAGjC,gBAAgB,2BAA2B;IAC3C,eAAe,0BAA0B;IACzC,eAAe,0BAA0B;IACzC,gBAAgB,2BAA2B;IAC3C,kBAAkB,6BAA6B;IAG/C,wBAAwB,mCAAmC;IAC3D,kBAAkB,6BAA6B;IAG/C,YAAY,uBAAuB;IACnC,YAAY,uBAAuB;IACnC,iBAAiB,4BAA4B;IAC7C,mBAAmB,8BAA8B;IACjD,mBAAmB,8BAA8B;IAGjD,kBAAkB,6BAA6B;IAC/C,gBAAgB,2BAA2B;IAC3C,gBAAgB,2BAA2B;IAC3C,kBAAkB,6BAA6B;IAC/C,mBAAmB,8BAA8B;IAGjD,gBAAgB,2BAA2B;IAC3C,yBAAyB,oCAAoC;IAG7D,cAAc,yBAAyB;CACxC"}
|
|
@@ -10,6 +10,8 @@ var RTSeeMessengerEvents;
|
|
|
10
10
|
RTSeeMessengerEvents["OUTGOING_MESSAGES_SEEN"] = "rtsee-outgoing-message-seen";
|
|
11
11
|
RTSeeMessengerEvents["MESSAGE_RECEIVED"] = "message-received";
|
|
12
12
|
RTSeeMessengerEvents["GET_MESSAGES"] = "rtsee-get-messages";
|
|
13
|
+
RTSeeMessengerEvents["UPDATE_MESSAGE_IMAGES"] = "rtsee-update-message-images";
|
|
14
|
+
RTSeeMessengerEvents["MESSAGE_UPDATED"] = "rtsee-message-updated";
|
|
13
15
|
// --- Peer ---
|
|
14
16
|
RTSeeMessengerEvents["GET_PEER"] = "rtsee-get-peer";
|
|
15
17
|
RTSeeMessengerEvents["UPDATE_PEER"] = "rtsee-update-peer";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RTSeeMessengerEvents.js","sourceRoot":"","sources":["../../../../../src/interfaces/messenger/RTSeeMessengerEvents.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"RTSeeMessengerEvents.js","sourceRoot":"","sources":["../../../../../src/interfaces/messenger/RTSeeMessengerEvents.ts"],"names":[],"mappings":";;;AAAA,IAAY,oBAyDX;AAzDD,WAAY,oBAAoB;IAC9B,mBAAmB;IACnB,mEAA2C,CAAA;IAC3C,2DAAmC,CAAA;IACnC,8EAAsD,CAAA;IACtD,8EAAsD,CAAA;IACtD,6DAAqC,CAAA;IACrC,2DAAmC,CAAA;IACnC,6EAAqD,CAAA;IACrD,iEAAyC,CAAA;IAEzC,eAAe;IACf,mDAA2B,CAAA;IAC3B,yDAAiC,CAAA;IACjC,uEAA+C,CAAA;IAE/C,iBAAiB;IACjB,yDAAiC,CAAA;IAEjC,qBAAqB;IACrB,qDAA6B,CAAA;IAC7B,mDAA2B,CAAA;IAC3B,yDAAiC,CAAA;IACjC,qDAA6B,CAAA;IAC7B,yDAAiC,CAAA;IAEjC,4BAA4B;IAC5B,mEAA2C,CAAA;IAC3C,iEAAyC,CAAA;IACzC,iEAAyC,CAAA;IACzC,mEAA2C,CAAA;IAC3C,uEAA+C,CAAA;IAE/C,0BAA0B;IAC1B,mFAA2D,CAAA;IAC3D,uEAA+C,CAAA;IAE/C,kDAAkD;IAClD,2DAAmC,CAAA;IACnC,2DAAmC,CAAA;IACnC,qEAA6C,CAAA;IAC7C,yEAAiD,CAAA;IACjD,yEAAiD,CAAA;IAEjD,0BAA0B;IAC1B,uEAA+C,CAAA;IAC/C,mEAA2C,CAAA;IAC3C,mEAA2C,CAAA;IAC3C,uEAA+C,CAAA;IAC/C,yEAAiD,CAAA;IAEjD,4BAA4B;IAC5B,mEAA2C,CAAA;IAC3C,qFAA6D,CAAA;IAE7D,2BAA2B;IAC3B,+DAAuC,CAAA;AACzC,CAAC,EAzDW,oBAAoB,oCAApB,oBAAoB,QAyD/B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IRTSeeChat, IRTSeeChatsQuery, IRTSeeChatsResult, IRTSeeCreateChatOptions, IRTSeeEditChatOptions, IRTSeeMessageBase, IRTSeeMessagesQuery, IRTSeeMessagesResult, IRTSeeMessageStatusTransportData, IRTSeeMessengerSearchOptions, IRTSeeMessengerSearchResults, IRTSeeChatMember, IRTSeeAddChatMemberOptions, IRTSeeEditChatMemberOptions, IRTSeeRemoveChatMemberOptions, IRTSeeGetChatMembersQuery, IRTSeeGetChatMembersResult, IRTSeeGetChatInvitationLinkQuery, IRTSeeGetChatInvitationLinkResult, IOzzyPromptCost } from "@rtsee/common";
|
|
1
|
+
import { IRTSeeChat, IRTSeeChatsQuery, IRTSeeChatsResult, IRTSeeCreateChatOptions, IRTSeeEditChatOptions, IRTSeeMessageBase, IRTSeeMessagesQuery, IRTSeeMessagesResult, IRTSeeMessageStatusTransportData, IRTSeeMessengerSearchOptions, IRTSeeMessengerSearchResults, IRTSeeChatMember, IRTSeeAddChatMemberOptions, IRTSeeEditChatMemberOptions, IRTSeeRemoveChatMemberOptions, IRTSeeGetChatMembersQuery, IRTSeeGetChatMembersResult, IRTSeeGetChatInvitationLinkQuery, IRTSeeGetChatInvitationLinkResult, IOzzyPromptCost, IRTSeeUpdateMessageImagesOptions } from "@rtsee/common";
|
|
2
2
|
import { IPeer, IRTSeeTransport } from "@rtsee/core";
|
|
3
3
|
export interface IRTSeeMessengerStorageHandlers {
|
|
4
4
|
getPeerById: (transport: IRTSeeTransport, id: string) => Promise<IPeer | null>;
|
|
@@ -27,5 +27,7 @@ export interface IRTSeeMessengerStorageHandlers {
|
|
|
27
27
|
getChatInvitationLink?: (transport: IRTSeeTransport, options: IRTSeeGetChatInvitationLinkQuery) => Promise<IRTSeeGetChatInvitationLinkResult>;
|
|
28
28
|
joinChatByToken?: (transport: IRTSeeTransport, token: string) => Promise<IRTSeeChat>;
|
|
29
29
|
persistAgenticCost?: (transport: IRTSeeTransport, cost: IOzzyPromptCost) => Promise<void>;
|
|
30
|
+
/** Persist downsized (client-optimized) versions of message images, returns the updated message */
|
|
31
|
+
updateMessageImages?: (transport: IRTSeeTransport, options: IRTSeeUpdateMessageImagesOptions) => Promise<IRTSeeMessageBase | null>;
|
|
30
32
|
}
|
|
31
33
|
//# sourceMappingURL=StorageHandlers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageHandlers.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/messenger/StorageHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,gCAAgC,EAChC,4BAA4B,EAC5B,4BAA4B,EAC5B,gBAAgB,EAChB,0BAA0B,EAC1B,2BAA2B,EAC3B,6BAA6B,EAC7B,yBAAyB,EACzB,0BAA0B,EAC1B,gCAAgC,EAChC,iCAAiC,EACjC,eAAe,
|
|
1
|
+
{"version":3,"file":"StorageHandlers.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/messenger/StorageHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,gCAAgC,EAChC,4BAA4B,EAC5B,4BAA4B,EAC5B,gBAAgB,EAChB,0BAA0B,EAC1B,2BAA2B,EAC3B,6BAA6B,EAC7B,yBAAyB,EACzB,0BAA0B,EAC1B,gCAAgC,EAChC,iCAAiC,EACjC,eAAe,EACf,gCAAgC,EACjC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,WAAW,8BAA8B;IAC7C,WAAW,EAAE,CACX,SAAS,EAAE,eAAe,EAC1B,EAAE,EAAE,MAAM,KACP,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;IAC3B,UAAU,EAAE,CACV,SAAS,EAAE,eAAe,EAC1B,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,KACjB,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;IAC3B,WAAW,EAAE,CACX,SAAS,EAA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AAI,CAAC,CAAC;IACnB,mGAAmG;IACnG,mBAAmB,CAAC,EAAE,CACpB,SAAS,EAAE,eAAe,EAC1B,OAAO,EAAE,gCAAgC,KACtC,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;CACxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/interfaces/ozzy/workflows/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/interfaces/ozzy/workflows/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC"}
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./step"), exports);
|
|
18
18
|
__exportStar(require("./workflow"), exports);
|
|
19
|
+
__exportStar(require("./storyTranslator"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/interfaces/ozzy/workflows/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/interfaces/ozzy/workflows/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,6CAA2B;AAC3B,oDAAkC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const STORY_TRANSLATOR_WORKFLOW_NAME = "story-translator";
|
|
2
|
+
export declare const STORY_TRANSLATOR_TASK_NAME = "story-translator";
|
|
3
|
+
export interface IStoryTranslatorLanguage {
|
|
4
|
+
/** ISO 639-1 code */
|
|
5
|
+
code: string;
|
|
6
|
+
/** English name, used in the LLM prompt */
|
|
7
|
+
name: string;
|
|
8
|
+
/** Native name, used in the UI */
|
|
9
|
+
nativeName: string;
|
|
10
|
+
}
|
|
11
|
+
/** Languages a story can be translated to (extend this list to support more) */
|
|
12
|
+
export declare const STORY_TRANSLATOR_LANGUAGES: IStoryTranslatorLanguage[];
|
|
13
|
+
export declare function getStoryTranslatorLanguage(code: string): IStoryTranslatorLanguage | undefined;
|
|
14
|
+
/** Output of the story-translator form step / input of the story-translator task */
|
|
15
|
+
export interface IStoryTranslatorInput {
|
|
16
|
+
storyId: string;
|
|
17
|
+
storyName?: string;
|
|
18
|
+
language: string;
|
|
19
|
+
/** agentic chat member whose model is used for the translation */
|
|
20
|
+
agentId: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IStoryTranslatorOutput {
|
|
23
|
+
storyId: string;
|
|
24
|
+
originalStoryId: string;
|
|
25
|
+
language: string;
|
|
26
|
+
name: string;
|
|
27
|
+
description: string;
|
|
28
|
+
slidesCount: number;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=storyTranslator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storyTranslator.d.ts","sourceRoot":"","sources":["../../../../../../src/interfaces/ozzy/workflows/storyTranslator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B,qBAAqB,CAAC;AACjE,eAAO,MAAM,0BAA0B,qBAAqB,CAAC;AAE7D,MAAM,WAAW,wBAAwB;IACvC,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,kCAAkC;IAClC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,gFAAgF;AAChF,eAAO,MAAM,0BAA0B,EAAE,wBAAwB,EAGhE,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,wBAAwB,GAAG,SAAS,CAE7F;AAED,oFAAoF;AACpF,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,kEAAkE;IAClE,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.STORY_TRANSLATOR_LANGUAGES = exports.STORY_TRANSLATOR_TASK_NAME = exports.STORY_TRANSLATOR_WORKFLOW_NAME = void 0;
|
|
4
|
+
exports.getStoryTranslatorLanguage = getStoryTranslatorLanguage;
|
|
5
|
+
exports.STORY_TRANSLATOR_WORKFLOW_NAME = 'story-translator';
|
|
6
|
+
exports.STORY_TRANSLATOR_TASK_NAME = 'story-translator';
|
|
7
|
+
/** Languages a story can be translated to (extend this list to support more) */
|
|
8
|
+
exports.STORY_TRANSLATOR_LANGUAGES = [
|
|
9
|
+
{ code: 'en', name: 'English', nativeName: 'English' },
|
|
10
|
+
{ code: 'uk', name: 'Ukrainian', nativeName: 'Українська' },
|
|
11
|
+
];
|
|
12
|
+
function getStoryTranslatorLanguage(code) {
|
|
13
|
+
return exports.STORY_TRANSLATOR_LANGUAGES.find(function (l) { return l.code === code; });
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=storyTranslator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storyTranslator.js","sourceRoot":"","sources":["../../../../../../src/interfaces/ozzy/workflows/storyTranslator.ts"],"names":[],"mappings":";;;AAkBA,gEAEC;AApBY,QAAA,8BAA8B,GAAG,kBAAkB,CAAC;AACpD,QAAA,0BAA0B,GAAG,kBAAkB,CAAC;AAW7D,gFAAgF;AACnE,QAAA,0BAA0B,GAA+B;IACpE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE;IACtD,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE;CAC5D,CAAC;AAEF,SAAgB,0BAA0B,CAAC,IAAY;IACrD,OAAO,kCAA0B,CAAC,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,IAAI,KAAK,IAAI,EAAf,CAAe,CAAC,CAAC;AACjE,CAAC"}
|
|
@@ -9,7 +9,9 @@ export declare enum RTSeeIllustratorEvents {
|
|
|
9
9
|
GENERATION_COMPLETED = "rtsee:illustrator:generation-completed",
|
|
10
10
|
GET_CURRENT_IMAGE = "rtsee:illustrator:get-current-image",
|
|
11
11
|
CURRENT_IMAGE_RESPONSE = "rtsee:illustrator:current-image-response",
|
|
12
|
-
SET_IMAGE_FOR_REVIEW = "rtsee:illustrator:set-image-for-review"
|
|
12
|
+
SET_IMAGE_FOR_REVIEW = "rtsee:illustrator:set-image-for-review",
|
|
13
|
+
RESET_STATE = "rtsee:illustrator:reset-state",
|
|
14
|
+
REQUESTED_GENERATION_SUCCEED = "rtsee:illustrator:requested-generation-succeed"
|
|
13
15
|
}
|
|
14
16
|
export interface IRTSeeIllustratorSetImageForReviewPayload {
|
|
15
17
|
imageUrl: string;
|
|
@@ -56,12 +58,14 @@ export interface IRTSeeIllustratorSubmitPayload {
|
|
|
56
58
|
contextImages: IRTSeeIllustratorContextImage[];
|
|
57
59
|
isIteration?: boolean;
|
|
58
60
|
baseImageUrl?: string;
|
|
61
|
+
requestId?: string;
|
|
59
62
|
}
|
|
60
63
|
export interface IRTSeeIllustratorGenerationCompletedPayload {
|
|
61
64
|
chatId?: string;
|
|
62
65
|
imageUrl?: string;
|
|
63
66
|
messageId?: string;
|
|
64
67
|
flowId?: string;
|
|
68
|
+
requestId?: string;
|
|
65
69
|
error?: string;
|
|
66
70
|
success?: boolean;
|
|
67
71
|
}
|
|
@@ -82,12 +86,14 @@ export interface IRTSeeGenerateImageOptions {
|
|
|
82
86
|
prompt: string;
|
|
83
87
|
config?: INanoBananaImageConfig;
|
|
84
88
|
contextImages?: IRTSeeIllustratorContextImage[];
|
|
89
|
+
requestId?: string;
|
|
85
90
|
}
|
|
86
91
|
export interface IRTSeeGenerateImageResult {
|
|
87
92
|
success: boolean;
|
|
88
93
|
messageId?: string;
|
|
89
94
|
flowId?: string;
|
|
90
95
|
imageUrl?: string;
|
|
96
|
+
requestId?: string;
|
|
91
97
|
error?: string;
|
|
92
98
|
}
|
|
93
99
|
//# sourceMappingURL=Illustrator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Illustrator.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/presentation/Illustrator.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB;IAChC,cAAc,qCAAqC;IACnD,eAAe,sCAAsC;IACrD,oBAAoB,2CAA2C;IAC/D,aAAa,oCAAoC;IACjD,UAAU,iCAAiC;IAC3C,oBAAoB,2CAA2C;IAC/D,kBAAkB,yCAAyC;IAC3D,oBAAoB,2CAA2C;IAC/D,iBAAiB,wCAAwC;IACzD,sBAAsB,6CAA6C;IACnE,oBAAoB,2CAA2C;
|
|
1
|
+
{"version":3,"file":"Illustrator.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/presentation/Illustrator.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB;IAChC,cAAc,qCAAqC;IACnD,eAAe,sCAAsC;IACrD,oBAAoB,2CAA2C;IAC/D,aAAa,oCAAoC;IACjD,UAAU,iCAAiC;IAC3C,oBAAoB,2CAA2C;IAC/D,kBAAkB,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AAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -14,5 +14,7 @@ var RTSeeIllustratorEvents;
|
|
|
14
14
|
RTSeeIllustratorEvents["GET_CURRENT_IMAGE"] = "rtsee:illustrator:get-current-image";
|
|
15
15
|
RTSeeIllustratorEvents["CURRENT_IMAGE_RESPONSE"] = "rtsee:illustrator:current-image-response";
|
|
16
16
|
RTSeeIllustratorEvents["SET_IMAGE_FOR_REVIEW"] = "rtsee:illustrator:set-image-for-review";
|
|
17
|
+
RTSeeIllustratorEvents["RESET_STATE"] = "rtsee:illustrator:reset-state";
|
|
18
|
+
RTSeeIllustratorEvents["REQUESTED_GENERATION_SUCCEED"] = "rtsee:illustrator:requested-generation-succeed";
|
|
17
19
|
})(RTSeeIllustratorEvents || (exports.RTSeeIllustratorEvents = RTSeeIllustratorEvents = {}));
|
|
18
20
|
//# sourceMappingURL=Illustrator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Illustrator.js","sourceRoot":"","sources":["../../../../../src/interfaces/presentation/Illustrator.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"Illustrator.js","sourceRoot":"","sources":["../../../../../src/interfaces/presentation/Illustrator.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAcX;AAdD,WAAY,sBAAsB;IAChC,6EAAmD,CAAA;IACnD,+EAAqD,CAAA;IACrD,yFAA+D,CAAA;IAC/D,2EAAiD,CAAA;IACjD,qEAA2C,CAAA;IAC3C,yFAA+D,CAAA;IAC/D,qFAA2D,CAAA;IAC3D,yFAA+D,CAAA;IAC/D,mFAAyD,CAAA;IACzD,6FAAmE,CAAA;IACnE,yFAA+D,CAAA;IAC/D,uEAA6C,CAAA;IAC7C,yGAA+E,CAAA;AACjF,CAAC,EAdW,sBAAsB,sCAAtB,sBAAsB,QAcjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StoriesQuery.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/presentation/StoriesQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEjE,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"StoriesQuery.d.ts","sourceRoot":"","sources":["../../../../../src/interfaces/presentation/StoriesQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEjE,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,0BAA0B;IACzC,UAAU,EAAE,mBAAmB,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;CACZ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rtsee/common",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.81",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/common/src/index",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "b103c5583d87f361e10ab55e44807600d573b588"
|
|
35
35
|
}
|