briyah 1.0.1 → 1.0.3
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/server/src/ai/LLM/deepseek.service.js +1 -1
- package/package.json +2 -2
- package/dist/ai/LLM/anthropic.module.d.ts +0 -2
- package/dist/ai/LLM/anthropic.module.js +0 -21
- package/dist/ai/LLM/anthropic.service.d.ts +0 -27
- package/dist/ai/LLM/anthropic.service.js +0 -329
- package/dist/ai/LLM/base-ai.service.d.ts +0 -45
- package/dist/ai/LLM/base-ai.service.js +0 -409
- package/dist/ai/LLM/deepseek.module.d.ts +0 -2
- package/dist/ai/LLM/deepseek.module.js +0 -21
- package/dist/ai/LLM/deepseek.service.d.ts +0 -15
- package/dist/ai/LLM/deepseek.service.js +0 -279
- package/dist/ai/LLM/fal.module.d.ts +0 -2
- package/dist/ai/LLM/fal.module.js +0 -21
- package/dist/ai/LLM/fal.service.d.ts +0 -17
- package/dist/ai/LLM/fal.service.js +0 -314
- package/dist/ai/LLM/googleai.module.d.ts +0 -2
- package/dist/ai/LLM/googleai.module.js +0 -21
- package/dist/ai/LLM/googleai.service.d.ts +0 -20
- package/dist/ai/LLM/googleai.service.js +0 -271
- package/dist/ai/LLM/grok.module.d.ts +0 -2
- package/dist/ai/LLM/grok.module.js +0 -21
- package/dist/ai/LLM/grok.service.d.ts +0 -14
- package/dist/ai/LLM/grok.service.js +0 -263
- package/dist/ai/LLM/mock.module.d.ts +0 -2
- package/dist/ai/LLM/mock.module.js +0 -21
- package/dist/ai/LLM/mock.service.d.ts +0 -13
- package/dist/ai/LLM/mock.service.js +0 -194
- package/dist/ai/LLM/openai.module.d.ts +0 -2
- package/dist/ai/LLM/openai.module.js +0 -21
- package/dist/ai/LLM/openai.service.d.ts +0 -21
- package/dist/ai/LLM/openai.service.js +0 -421
- package/dist/ai/LLM/together.module.d.ts +0 -2
- package/dist/ai/LLM/together.module.js +0 -21
- package/dist/ai/LLM/together.service.d.ts +0 -18
- package/dist/ai/LLM/together.service.js +0 -285
- package/dist/ai/LLM/vertexai.module.d.ts +0 -2
- package/dist/ai/LLM/vertexai.module.js +0 -21
- package/dist/ai/LLM/vertexai.service.d.ts +0 -17
- package/dist/ai/LLM/vertexai.service.js +0 -323
- package/dist/ai/agent-config.d.ts +0 -32
- package/dist/ai/agent-config.js +0 -2
- package/dist/ai/agent-factory.d.ts +0 -15
- package/dist/ai/agent-factory.js +0 -24
- package/dist/ai/agent-message.service.d.ts +0 -9
- package/dist/ai/agent-message.service.js +0 -56
- package/dist/ai/agent-store.module.d.ts +0 -2
- package/dist/ai/agent-store.module.js +0 -21
- package/dist/ai/agent-store.service.d.ts +0 -31
- package/dist/ai/agent-store.service.js +0 -352
- package/dist/ai/agent.d.ts +0 -75
- package/dist/ai/agent.js +0 -174
- package/dist/ai/ai-factory.module.d.ts +0 -2
- package/dist/ai/ai-factory.module.js +0 -40
- package/dist/ai/ai-factory.service.d.ts +0 -24
- package/dist/ai/ai-factory.service.js +0 -94
- package/dist/ai/artifact.module.d.ts +0 -2
- package/dist/ai/artifact.module.js +0 -22
- package/dist/ai/artifact.service.d.ts +0 -21
- package/dist/ai/artifact.service.js +0 -239
- package/dist/ai/attached-file.module.d.ts +0 -2
- package/dist/ai/attached-file.module.js +0 -22
- package/dist/ai/attached-file.service.d.ts +0 -35
- package/dist/ai/attached-file.service.js +0 -253
- package/dist/ai/model_prices.d.ts +0 -2
- package/dist/ai/model_prices.js +0 -54
- package/dist/ai/published-agents.service.d.ts +0 -13
- package/dist/ai/published-agents.service.js +0 -118
- package/dist/app/balance-message.service.d.ts +0 -8
- package/dist/app/balance-message.service.js +0 -45
- package/dist/app/balance.module.d.ts +0 -2
- package/dist/app/balance.module.js +0 -20
- package/dist/app/balance.service.d.ts +0 -18
- package/dist/app/balance.service.js +0 -158
- package/dist/app/stripe.controller.d.ts +0 -31
- package/dist/app/stripe.controller.js +0 -150
- package/dist/app/stripe.module.d.ts +0 -2
- package/dist/app/stripe.module.js +0 -22
- package/dist/app/stripe.service.d.ts +0 -28
- package/dist/app/stripe.service.js +0 -198
- package/dist/app/transaction.service.d.ts +0 -15
- package/dist/app/transaction.service.js +0 -139
- package/dist/app/user-service-factory.d.ts +0 -21
- package/dist/app/user-service-factory.js +0 -81
- package/dist/app/user-service-manager.d.ts +0 -28
- package/dist/app/user-service-manager.js +0 -102
- package/dist/app.controller.d.ts +0 -232
- package/dist/app.controller.js +0 -2536
- package/dist/app.module.d.ts +0 -2
- package/dist/app.module.js +0 -45
- package/dist/app.service.d.ts +0 -186
- package/dist/app.service.js +0 -1334
- package/dist/auth/agent-access.decorator.d.ts +0 -2
- package/dist/auth/agent-access.decorator.js +0 -10
- package/dist/auth/auth.controller.d.ts +0 -38
- package/dist/auth/auth.controller.js +0 -356
- package/dist/auth/auth.module.d.ts +0 -2
- package/dist/auth/auth.module.js +0 -55
- package/dist/auth/auth.service.d.ts +0 -14
- package/dist/auth/auth.service.js +0 -84
- package/dist/auth/dto/bot-login.dto.d.ts +0 -4
- package/dist/auth/dto/bot-login.dto.js +0 -2
- package/dist/auth/dto/password-reset.dto.d.ts +0 -11
- package/dist/auth/dto/password-reset.dto.js +0 -2
- package/dist/auth/dto/phone-login.dto.d.ts +0 -8
- package/dist/auth/dto/phone-login.dto.js +0 -2
- package/dist/auth/dto/phone-verification.dto.d.ts +0 -9
- package/dist/auth/dto/phone-verification.dto.js +0 -2
- package/dist/auth/jwt-auth.guard.d.ts +0 -13
- package/dist/auth/jwt-auth.guard.js +0 -143
- package/dist/auth/jwt.strategy.d.ts +0 -17
- package/dist/auth/jwt.strategy.js +0 -45
- package/dist/auth/phone-validation.service.d.ts +0 -7
- package/dist/auth/phone-validation.service.js +0 -50
- package/dist/auth/public.decorator.d.ts +0 -2
- package/dist/auth/public.decorator.js +0 -7
- package/dist/auth/rate-limit.service.d.ts +0 -16
- package/dist/auth/rate-limit.service.js +0 -84
- package/dist/auth/room-access.decorator.d.ts +0 -2
- package/dist/auth/room-access.decorator.js +0 -10
- package/dist/auth/scopes.decorator.d.ts +0 -2
- package/dist/auth/scopes.decorator.js +0 -7
- package/dist/auth/scopes.guard.d.ts +0 -9
- package/dist/auth/scopes.guard.js +0 -82
- package/dist/auth/session.guard.d.ts +0 -7
- package/dist/auth/session.guard.js +0 -55
- package/dist/auth/twilio.service.d.ts +0 -15
- package/dist/auth/twilio.service.js +0 -139
- package/dist/auth/users.service.d.ts +0 -24
- package/dist/auth/users.service.js +0 -149
- package/dist/common/errors.d.ts +0 -12
- package/dist/common/errors.js +0 -43
- package/dist/config/configuration.module.d.ts +0 -2
- package/dist/config/configuration.module.js +0 -20
- package/dist/config/configuration.service.d.ts +0 -26
- package/dist/config/configuration.service.js +0 -131
- package/dist/main.js +0 -15749
- package/dist/room/artifact-store.service.d.ts +0 -15
- package/dist/room/artifact-store.service.js +0 -226
- package/dist/room/artifact.d.ts +0 -6
- package/dist/room/artifact.js +0 -2
- package/dist/room/message.d.ts +0 -19
- package/dist/room/message.js +0 -70
- package/dist/room/published-rooms.service.d.ts +0 -12
- package/dist/room/published-rooms.service.js +0 -108
- package/dist/room/room-config.d.ts +0 -12
- package/dist/room/room-config.js +0 -2
- package/dist/room/room-factory.d.ts +0 -7
- package/dist/room/room-factory.js +0 -16
- package/dist/room/room-message.module.d.ts +0 -2
- package/dist/room/room-message.module.js +0 -21
- package/dist/room/room-message.service.d.ts +0 -8
- package/dist/room/room-message.service.js +0 -44
- package/dist/room/room-store.module.d.ts +0 -2
- package/dist/room/room-store.module.js +0 -25
- package/dist/room/room-store.service.d.ts +0 -38
- package/dist/room/room-store.service.js +0 -353
- package/dist/room/room.d.ts +0 -107
- package/dist/room/room.js +0 -833
- package/dist/sdk/briyah-config.d.ts +0 -13
- package/dist/sdk/briyah-config.js +0 -32
- package/dist/sdk/briyah.d.ts +0 -36
- package/dist/sdk/briyah.js +0 -122
- package/dist/sdk/index.d.ts +0 -6
- package/dist/sdk/index.js +0 -11
- package/dist/shared/shared.module.d.ts +0 -2
- package/dist/shared/shared.module.js +0 -46
- package/dist/story/story-message.service.d.ts +0 -10
- package/dist/story/story-message.service.js +0 -57
- package/dist/story/story-progress.service.d.ts +0 -8
- package/dist/story/story-progress.service.js +0 -44
- package/dist/story/story-store.module.d.ts +0 -2
- package/dist/story/story-store.module.js +0 -22
- package/dist/story/story-store.service.d.ts +0 -23
- package/dist/story/story-store.service.js +0 -392
- package/dist/story/story.service.d.ts +0 -94
- package/dist/story/story.service.js +0 -1797
package/dist/app.module.d.ts
DELETED
package/dist/app.module.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.AppModule = void 0;
|
|
10
|
-
const common_1 = require("@nestjs/common");
|
|
11
|
-
const config_1 = require("@nestjs/config");
|
|
12
|
-
const serve_static_1 = require("@nestjs/serve-static");
|
|
13
|
-
const path_1 = require("path");
|
|
14
|
-
const app_controller_1 = require("./app.controller");
|
|
15
|
-
const ai_factory_module_1 = require("./ai/ai-factory.module");
|
|
16
|
-
const agent_store_module_1 = require("./ai/agent-store.module");
|
|
17
|
-
const story_store_module_1 = require("./story/story-store.module");
|
|
18
|
-
const auth_module_1 = require("./auth/auth.module");
|
|
19
|
-
const shared_module_1 = require("./shared/shared.module");
|
|
20
|
-
const stripe_module_1 = require("./app/stripe.module");
|
|
21
|
-
let AppModule = class AppModule {
|
|
22
|
-
};
|
|
23
|
-
exports.AppModule = AppModule;
|
|
24
|
-
exports.AppModule = AppModule = __decorate([
|
|
25
|
-
(0, common_1.Module)({
|
|
26
|
-
imports: [
|
|
27
|
-
config_1.ConfigModule.forRoot({
|
|
28
|
-
envFilePath: (0, path_1.join)(__dirname, '..', '..', '.env'),
|
|
29
|
-
isGlobal: true,
|
|
30
|
-
}),
|
|
31
|
-
serve_static_1.ServeStaticModule.forRoot({
|
|
32
|
-
rootPath: (0, path_1.join)(__dirname, '..', '..', 'client', 'build'),
|
|
33
|
-
exclude: ['/api'],
|
|
34
|
-
}),
|
|
35
|
-
shared_module_1.SharedModule,
|
|
36
|
-
auth_module_1.AuthModule,
|
|
37
|
-
ai_factory_module_1.AiFactoryModule,
|
|
38
|
-
agent_store_module_1.AgentStoreModule,
|
|
39
|
-
story_store_module_1.StoryStoreModule,
|
|
40
|
-
stripe_module_1.StripeModule,
|
|
41
|
-
],
|
|
42
|
-
controllers: [app_controller_1.AppController],
|
|
43
|
-
providers: [],
|
|
44
|
-
})
|
|
45
|
-
], AppModule);
|
package/dist/app.service.d.ts
DELETED
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import { BaseAiService } from './ai/LLM/base-ai.service';
|
|
2
|
-
import { Agent } from './ai/agent';
|
|
3
|
-
import { Readable } from 'stream';
|
|
4
|
-
import { AgentStoreService } from './ai/agent-store.service';
|
|
5
|
-
import { AgentMessageService } from './ai/agent-message.service';
|
|
6
|
-
import { AiFactoryService } from './ai/ai-factory.service';
|
|
7
|
-
import { Room } from './room/room';
|
|
8
|
-
import { RoomStoreService } from './room/room-store.service';
|
|
9
|
-
import { RoomMessageService } from './room/room-message.service';
|
|
10
|
-
import { StoryStoreService } from './story/story-store.service';
|
|
11
|
-
import { StoryService } from './story/story.service';
|
|
12
|
-
import { ConfigurationService } from './config/configuration.service';
|
|
13
|
-
import { AttachedFileService } from './ai/attached-file.service';
|
|
14
|
-
import { ArtifactService } from './ai/artifact.service';
|
|
15
|
-
import { ArtifactMetadata, ModelInfo, ChapterInfo, StoryIdea } from './shared/types/app.types';
|
|
16
|
-
import { PublishedAgentsService } from './ai/published-agents.service';
|
|
17
|
-
import { PublishedRoomsService } from './room/published-rooms.service';
|
|
18
|
-
import { BalanceService } from './app/balance.service';
|
|
19
|
-
import { BalanceMessageService } from './app/balance-message.service';
|
|
20
|
-
import { TransactionService } from './app/transaction.service';
|
|
21
|
-
import { AgentFactory } from './ai/agent-factory';
|
|
22
|
-
import { RoomFactory } from './room/room-factory';
|
|
23
|
-
import { EventEmitter } from 'events';
|
|
24
|
-
import { AgentInfo, RoomInfo, RoomDetails, CreateRoomResponse, FileList, PromptFileContent, PromptFoldersResponse, PromptFilesResponse, PromptScope, ProcessTextResponse, PreparedPromptResponse, AttachDocumentResponse, AgentMessagesResponse, RoomMessagesResponse, StoryInfo, StoryState, Character } from './shared/types/app.types';
|
|
25
|
-
import { RoomMessage } from './room/message';
|
|
26
|
-
export declare class AppService {
|
|
27
|
-
private readonly aiFactoryService;
|
|
28
|
-
private readonly agentStore;
|
|
29
|
-
private readonly agentMessageService;
|
|
30
|
-
private readonly roomStore;
|
|
31
|
-
private readonly roomMessageService;
|
|
32
|
-
private readonly configService;
|
|
33
|
-
private readonly attachedFileService;
|
|
34
|
-
private readonly artifactService;
|
|
35
|
-
private readonly storyStore;
|
|
36
|
-
private readonly storyService;
|
|
37
|
-
private readonly publishedAgentsService;
|
|
38
|
-
private readonly publishedRoomsService;
|
|
39
|
-
private readonly balanceService;
|
|
40
|
-
private readonly balanceMessageService;
|
|
41
|
-
private readonly transactionService;
|
|
42
|
-
private readonly agentFactory;
|
|
43
|
-
private readonly roomFactory;
|
|
44
|
-
private aiServices;
|
|
45
|
-
private readonly userPreferencesFile;
|
|
46
|
-
constructor(aiFactoryService: AiFactoryService, agentStore: AgentStoreService, agentMessageService: AgentMessageService, roomStore: RoomStoreService, roomMessageService: RoomMessageService, configService: ConfigurationService, attachedFileService: AttachedFileService, artifactService: ArtifactService, storyStore: StoryStoreService, storyService: StoryService, publishedAgentsService: PublishedAgentsService, publishedRoomsService: PublishedRoomsService, balanceService: BalanceService, balanceMessageService: BalanceMessageService, transactionService: TransactionService, agentFactory: AgentFactory, roomFactory: RoomFactory);
|
|
47
|
-
getAiServiceNames(): string[];
|
|
48
|
-
getAiServiceFromServiceName(serviceName: string): BaseAiService;
|
|
49
|
-
listAiModels(aiServiceName: string): Promise<ModelInfo[]>;
|
|
50
|
-
listImageModels(): Promise<ModelInfo[]>;
|
|
51
|
-
listStoryModels(): Promise<ModelInfo[]>;
|
|
52
|
-
listStoryGenres(): string[];
|
|
53
|
-
getRandomStoryIdeaByGenre(genreName: string): StoryIdea | null;
|
|
54
|
-
getRandomStoryIdea(): StoryIdea | null;
|
|
55
|
-
createAgent(aiServiceName: string, agentName: string, agentNickname: string, description: string, aiModel: string, promptName?: string, controlledByHuman?: boolean, reasoningEffort?: 'low' | 'medium' | 'high' | null, maxOutputTokens?: number, beginInstruction?: string): Agent;
|
|
56
|
-
processText(agentId: string, text: string): Promise<ProcessTextResponse>;
|
|
57
|
-
attachDocument(agentId: string, fileName: string, fileData: Buffer): Promise<AttachDocumentResponse>;
|
|
58
|
-
listPromptFolders(): string[];
|
|
59
|
-
listPromptFoldersWithScope(scope?: PromptScope): PromptFoldersResponse;
|
|
60
|
-
listPrompts(agentId: string): Promise<string[]>;
|
|
61
|
-
runPreparedPrompt(agentId: string, promptName: string, variables?: any): Promise<PreparedPromptResponse>;
|
|
62
|
-
listAgents(): Promise<AgentInfo[]>;
|
|
63
|
-
getAgentDetails(agentId: string): Promise<AgentInfo | null>;
|
|
64
|
-
createRoom(roomName: string, goal: string, agentIds: string[]): Promise<CreateRoomResponse>;
|
|
65
|
-
editRoom(roomId: string, roomName: string, goal: string, baseRoomDir?: string, agentIds?: string[]): Promise<void>;
|
|
66
|
-
listRooms(): Promise<RoomInfo[]>;
|
|
67
|
-
getRoomDetails(roomId: string): Promise<RoomDetails | null>;
|
|
68
|
-
getRoomById(roomId: string): Promise<Room | null>;
|
|
69
|
-
getRoomMessages(roomId: string, fromIndex?: number, includeThoughts?: boolean): Promise<RoomMessagesResponse>;
|
|
70
|
-
getAgentMessages(agentId: string, fromIndex?: number): Promise<AgentMessagesResponse>;
|
|
71
|
-
getStoryMessages(storyId: string, fromIndex: number): Promise<RoomMessagesResponse>;
|
|
72
|
-
sendRoomMessage(roomId: string, content: string, sender: string, action?: string, targets?: string[], clearQueue?: boolean): Promise<void>;
|
|
73
|
-
pauseRoom(roomId: string): Promise<void>;
|
|
74
|
-
resumeRoom(roomId: string): Promise<void>;
|
|
75
|
-
deleteAgent(agentId: string): Promise<void>;
|
|
76
|
-
publishAgentInstance(templateId: string, instanceName: string): Promise<{
|
|
77
|
-
instanceId: string;
|
|
78
|
-
publicUrl: string;
|
|
79
|
-
}>;
|
|
80
|
-
getPublishedInstances(templateId: string): Promise<AgentInfo[]>;
|
|
81
|
-
resetPublishedInstance(instanceId: string): Promise<void>;
|
|
82
|
-
listPublishedAgents(): Promise<AgentInfo[]>;
|
|
83
|
-
deleteRoom(roomId: string): Promise<void>;
|
|
84
|
-
publishRoom(templateId: string, publishedName: string | undefined, userId: string): Promise<string>;
|
|
85
|
-
getPublishedRoomInstances(templateId: string): Promise<RoomInfo[]>;
|
|
86
|
-
resetPublishedRoomInstance(instanceId: string): Promise<void>;
|
|
87
|
-
getUserPreferences(): any;
|
|
88
|
-
saveUserPreferences(preferences: any): void;
|
|
89
|
-
listPromptFiles(folderName: string): FileList;
|
|
90
|
-
listPromptFilesWithScope(folderName: string): PromptFilesResponse;
|
|
91
|
-
getPromptFile(folderName: string, fileName: string): PromptFileContent;
|
|
92
|
-
savePromptFile(folderName: string, fileName: string, content: string, fileType: string): void;
|
|
93
|
-
deletePromptFile(folderName: string, fileName: string): void;
|
|
94
|
-
getRoomArtifacts(roomId: string): Promise<{
|
|
95
|
-
artifacts: any[];
|
|
96
|
-
}>;
|
|
97
|
-
publishArtifact(roomId: string, name: string, creator: string, body: string, viewers?: string[]): Promise<void>;
|
|
98
|
-
createPromptFolder(folderName: string): void;
|
|
99
|
-
deletePromptFolder(folderName: string): void;
|
|
100
|
-
updateAgent(agentId: string, updates: {
|
|
101
|
-
agentNickname?: string;
|
|
102
|
-
description?: string;
|
|
103
|
-
modelName?: string;
|
|
104
|
-
reasoningEffort?: 'low' | 'medium' | 'high' | null;
|
|
105
|
-
isControlledByHuman?: boolean;
|
|
106
|
-
maxOutputTokens?: number;
|
|
107
|
-
allowSearch?: boolean;
|
|
108
|
-
beginInstruction?: string;
|
|
109
|
-
}): Promise<void>;
|
|
110
|
-
listAttachedFiles(agentId: string): Promise<FileList>;
|
|
111
|
-
deleteAttachedFile(agentId: string, fileName: string): Promise<void>;
|
|
112
|
-
deleteAttachedFileById(documentId: string): Promise<void>;
|
|
113
|
-
reloadAgent(agentId: string): Promise<void>;
|
|
114
|
-
resetRoom(roomId: string): Promise<void>;
|
|
115
|
-
resetStory(storyId: string): Promise<void>;
|
|
116
|
-
createStory(name: string, idea: string, userCharacterDesc: string, otherCharactersDesc: string, storyModel?: string, isImport?: boolean, imageModelName?: string): Promise<StoryInfo>;
|
|
117
|
-
importStoryFromZip(zipBuffer: Buffer): Promise<StoryInfo>;
|
|
118
|
-
getStoryProgressEmitter(storyId: string): EventEmitter<any>;
|
|
119
|
-
getStoryMessageEmitter(storyId: string): EventEmitter<any>;
|
|
120
|
-
getAgentMessageEmitter(agentId: string): EventEmitter<any>;
|
|
121
|
-
ensureAgentStateCallback(agentId: string): Promise<void>;
|
|
122
|
-
private setupAgentStateCallback;
|
|
123
|
-
getRoomMessageEmitter(roomId: string): EventEmitter<any>;
|
|
124
|
-
getBalanceMessageEmitter(userId: string): EventEmitter;
|
|
125
|
-
ensureRoomStateCallback(roomId: string): Promise<void>;
|
|
126
|
-
private setupRoomStateCallback;
|
|
127
|
-
listStories(): StoryInfo[];
|
|
128
|
-
resumePausedStories(): Promise<number>;
|
|
129
|
-
deleteStory(storyId: string): Promise<void>;
|
|
130
|
-
compactStory(storyId: string): Promise<{
|
|
131
|
-
success: boolean;
|
|
132
|
-
message?: string;
|
|
133
|
-
details?: any;
|
|
134
|
-
}>;
|
|
135
|
-
progressStory(storyId: string): Promise<{
|
|
136
|
-
chapterIndex: number;
|
|
137
|
-
}>;
|
|
138
|
-
getStoryState(storyId: string): Promise<StoryState>;
|
|
139
|
-
getStoryInfo(storyId: string): Promise<StoryInfo | undefined>;
|
|
140
|
-
respondToStory(storyId: string, content: string): Promise<void>;
|
|
141
|
-
introduceCharacterToStory(storyId: string, name: string, description: string, storyModel?: string, fromNarratorSuggestion?: boolean): Promise<void>;
|
|
142
|
-
declineCharacter(storyId: string, characterName: string): Promise<void>;
|
|
143
|
-
deleteCharacterFromStory(storyId: string, characterName: string): Promise<void>;
|
|
144
|
-
listChapters(storyId: string): {
|
|
145
|
-
chapters: ChapterInfo[];
|
|
146
|
-
};
|
|
147
|
-
getChapter(storyId: string, chapterIndex: number): Promise<RoomMessage[]>;
|
|
148
|
-
saveChapter(storyId: string, chapterIndex: number, content: string): void;
|
|
149
|
-
deleteChapter(storyId: string, chapterIndex: number): void;
|
|
150
|
-
listCharacters(storyId: string): Promise<Character[]>;
|
|
151
|
-
getCharacter(storyId: string, characterName: string): Promise<{
|
|
152
|
-
content: string;
|
|
153
|
-
}>;
|
|
154
|
-
saveCharacter(storyId: string, characterName: string, content: string): void;
|
|
155
|
-
getPlotPlan(storyId: string): Promise<{
|
|
156
|
-
content: string;
|
|
157
|
-
}>;
|
|
158
|
-
downloadStoryMarkdown(storyId: string): Promise<string>;
|
|
159
|
-
exportStoryData(storyId: string): Promise<{
|
|
160
|
-
stream: Readable;
|
|
161
|
-
filename: string;
|
|
162
|
-
}>;
|
|
163
|
-
getAgentHistory(storyId: string, agentId: string): Promise<{
|
|
164
|
-
content: string;
|
|
165
|
-
}>;
|
|
166
|
-
savePlotPlan(storyId: string, content: string): Promise<void>;
|
|
167
|
-
getBalance(): number;
|
|
168
|
-
addBalance(amount: number): void;
|
|
169
|
-
getTransactionService(): TransactionService;
|
|
170
|
-
listUserArtifacts(): ArtifactMetadata[];
|
|
171
|
-
getUserArtifact(artifactId: string): string | Buffer | null;
|
|
172
|
-
createUserArtifact(name: string, content: string): string;
|
|
173
|
-
updateUserArtifact(artifactId: string, content: string): boolean;
|
|
174
|
-
convertUserArtifact(name: string, pdfBuffer: Buffer): string;
|
|
175
|
-
private convertSinglePagePDF;
|
|
176
|
-
private convertLargePdfInBackground;
|
|
177
|
-
private convertPdfInBackground;
|
|
178
|
-
renameUserArtifact(artifactId: string, newName: string): boolean;
|
|
179
|
-
deleteUserArtifact(artifactId: string): boolean;
|
|
180
|
-
private getStoryArtifactService;
|
|
181
|
-
listStoryArtifacts(storyId: string): ArtifactMetadata[];
|
|
182
|
-
getStoryArtifact(storyId: string, artifactId: string): string | Buffer | null;
|
|
183
|
-
listAgentArtifacts(agentId: string): Promise<ArtifactMetadata[]>;
|
|
184
|
-
attachArtifactToAgent(agentId: string, artifactId: string): Promise<void>;
|
|
185
|
-
detachArtifactFromAgent(agentId: string, artifactId: string): Promise<void>;
|
|
186
|
-
}
|