@nikcli-ai/sdk 1.294.0 → 1.296.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/dist/httpapi/compat.d.ts
CHANGED
|
@@ -69,6 +69,12 @@ export declare function compat(raw: Raw, defaults?: CompatDefaults): {
|
|
|
69
69
|
start: (input: WithDirectory<import("./client.js").ChatbotStartInput>, options?: CallOptions) => Promise<Result<import("./client.js").ChatbotStartResult>>;
|
|
70
70
|
stop: (input: WithDirectory<import("./client.js").ChatbotStopInput>, options?: CallOptions) => Promise<Result<import("./client.js").ChatbotStopResult>>;
|
|
71
71
|
};
|
|
72
|
+
discord: {
|
|
73
|
+
status: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").DiscordStatus>>;
|
|
74
|
+
setup: (input: WithDirectory<import("./client.js").DiscordSetupInput>, options?: CallOptions) => Promise<Result<import("./client.js").DiscordSetupOutput2>>;
|
|
75
|
+
start: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").DiscordStartResult>>;
|
|
76
|
+
stop: (options?: CallOptions, overrides?: CallOptions) => Promise<Result<import("./client.js").DiscordStopResult>>;
|
|
77
|
+
};
|
|
72
78
|
voice: {
|
|
73
79
|
transcribe: (input: WithDirectory<import("./client.js").VoiceTranscribeInput>, options?: CallOptions) => Promise<Result<import("./client.js").VoiceTranscribeResult>>;
|
|
74
80
|
};
|
package/dist/httpapi/compat.js
CHANGED
|
@@ -100,6 +100,12 @@ export function compat(raw, defaults = {}) {
|
|
|
100
100
|
start: result(raw.chatbot.start),
|
|
101
101
|
stop: result(raw.chatbot.stop),
|
|
102
102
|
},
|
|
103
|
+
discord: {
|
|
104
|
+
status: result0(raw.discord.status),
|
|
105
|
+
setup: result(raw.discord.setup),
|
|
106
|
+
start: result0(raw.discord.start),
|
|
107
|
+
stop: result0(raw.discord.stop),
|
|
108
|
+
},
|
|
103
109
|
voice: {
|
|
104
110
|
transcribe: result(raw.voice.transcribe),
|
|
105
111
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TopLevelVcsStatusOutput, TopLevelVcsApplyInput, TopLevelCommandOutput, TopLevelAgentOutput, TopLevelSkillOutput, TopLevelLspOutput, TopLevelFormatterOutput, AnalyticsDailyInput, AnalyticsDailyOutput, AnalyticsSessionInput, AnalyticsSessionsOutput, AnalyticsDataInput, AppLogInput, AppSkillCreateInput, AppSkillDeleteInput, BrainTriggerInput, ChatbotBotsOutput, ChatbotStartInput, ChatbotStopInput, VoiceTranscribeInput, ProfilePatchInput, ProfileHabitsInput, ProfilePreviewInput, ProfileClearHabitsInput, ConfigUpdateInput, ConnectorsAuthSetInput, ConnectorsAuthRemoveInput, ConnectorsInvalidateInput, ExperimentalToolsInput, ExperimentalWorktreeCreateInput, ExperimentalWorktreeRemoveInput, ExperimentalWorktreeResetInput, ExperimentalManagedWorktreeCreateInput, ExperimentalManagedWorktreeRemoveInput, ExperimentalManagedWorktreeLinkInput, ExperimentalManagedWorktreeChildrenInput, ExperimentalManagedWorktreeAncestorsInput, FileFindTextInput, FileFindTextOutput, FileFindFileInput, FileFindFileOutput, FileFindSymbolInput, FileFindSymbolOutput, FileListInput, FileListOutput, FileContentInput, FileWriteInput, FileStatusOutput, McpAddInput, McpStartAuthInput, McpAuthCallbackInput, McpAuthenticateInput, McpRemoveAuthInput, McpConnectInput, McpDisconnectInput, McpToggleInput, MissionGenerateInput, MissionRecentExecsInput, MissionGetInput, MissionUpsertInput, MissionUpdateInput, MissionRemoveInput, MissionStartInput, MissionPauseInput, MissionCancelInput, MissionFeatureMutateInput, MissionExecsInput, MobileAuthTokenListOutput, MobileAuthTokenCreateInput, MobileAuthTokenCreateOutput, MobileAuthTokenRevokeInput, MobileAuthTokenRevokeOutput, MobileCommandListOutput, MobileProjectListOutput, MobileMemoryHistoryOutput, MobileMemorySearchInput, MobileMemorySearchOutput, MobileMemoryStashListOutput, MobileMemoryStashCreateInput, MobileMemoryStashDeleteInput, MobileGithubReposOutput, MobileGithubBranchesInput, MobileGithubBranchesOutput, MobileGithubImportsOutput, MobileGithubOauthClientInput, MobileGithubOauthDevicePollInput, MobileGithubAuthSetInput, MobileGithubImportInput, MobileGithubImportOutput, MobileGithubSessionCreateInput, MobileSessionListInput, MobileSessionListOutput, MobileSessionCreateInput, MobileSessionDetailInput, MobileSessionDeleteInput, MobileSessionDiffInput, MobileSessionDiffOutput, MobileSessionCommandListInput, MobileSessionCommandListOutput, MobileSessionCommandInput, MobileSessionCommandOutput, MobileSessionMessageInput, MobileSessionMessageOutput, MobileSessionAbortInput, MobilePermissionRespondInput, MobileQuestionRespondInput, MobileQuestionRejectInput, MobileSessionPublishInput, MobileSessionCleanupInput, MobileSessionStreamInput, MobileSessionStreamOutput, MobileSessionRenameInput, MobileSessionTodoInput, MobileSessionTodoOutput, MobileTeleportUploadBeginOutput, MobileTeleportUploadChunkInput, MobileTeleportUploadChunkOutput, MobileTeleportInInput, MobileTeleportOutInput, MobileWorktreeCreateInput, MobileWorktreeRemoveInput, MobileWorktreeResetInput, MobileGitDiffInput, MobileGitDiffOutput, MobileGitCommitsInput, MobileGitCommitsOutput, MobileGitBranchesOutput, MobileGitCommitInput, MobileGitCommitOutput, MobileGitCheckoutInput, MobileGitStageInput, MobileGitUnstageInput, MobileGitDiscardInput, MobileGitPushInput, MobileGitPushOutput, MobileGitPullOutput, MobileLoopListOutput, MobileLoopCreateInput, MobileLoopTemplatesOutput, MobileLoopGenerateInput, MobileLoopRunsRecentInput, MobileLoopRunsRecentOutput, MobileLoopGetInput, MobileLoopGetOutput, MobileLoopDeleteInput, MobileLoopUpdateInput, MobileLoopRunsInput, MobileLoopRunsOutput, MobileLoopRunInput, MobileLoopAbortInput, MobileLoopToggleInput, MobileLoopPauseInput, MobileLoopResumeInput, MobileRoutineListOutput, MobileRoutineCreateInput, MobileRoutineGetInput, MobileRoutineDeleteInput, MobileRoutineUpdateInput, MobileRoutineRunInput, MobileRoutinePauseInput, MobileRoutineResumeInput, MobileRoutineTriggerInput, MobilePtyListOutput, MobilePtyCreateInput, MobilePtyGetInput, MobilePtyUpdateInput, MobilePtyRemoveInput, MobileMissionListOutput, MobileMissionCreateInput, MobileMissionTemplatesOutput, MobileMissionGenerateInput, MobileMissionExecsRecentInput, MobileMissionExecsRecentOutput, MobileMissionGetInput, MobileMissionGetOutput, MobileMissionUpdateInput, MobileMissionDeleteInput, MobileMissionExecsInput, MobileMissionExecsOutput, MobileMissionStartInput, MobileMissionPauseInput, MobileMissionCancelInput, MobileMissionFeatureMutateInput, MobileEventsOutput, MobileBrainStatusOutput, MobileBrainTriggerInput, MobileBrainTriggerOutput, MobileChatBotListOutput, MobileChatBotStartInput, MobileChatBotStartOutput, MobileChatBotStopInput, MobileChatBotStopOutput, MobileObservabilityGetOutput, MobileObservabilitySetInput, MobileObservabilitySetOutput, MobileLspStatusOutput, MobileFusionListOutput, MobileFusionSetInput, MobileFusionSetOutput, MobileHostBrowserOutput, MobileHostComputerOutput, MobileHostHerdrGetOutput, MobileHostHerdrSetInput, MobileHostHerdrSetOutput, MobileHostIslandOutput, MobileHostDevtoolsOutput, ProjectListOutput, ProjectUpdateInput, ProjectDirectoryListInput, ProjectDirectoryListOutput, ProjectCopyCreateInput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, ProviderApiInput, ProviderRemoveAuthInput, ProviderOauthAuthorizeInput, ProviderOauthAuthorizeOutput, ProviderOauthCallbackInput, QuestionListOutput, QuestionReplyInput, QuestionRejectInput, PermissionListOutput, PermissionReplyInput, PtyCreateInput, PtyGetInput, PtyUpdateInput, PtyRemoveInput, LoopGenerateInput, LoopRecentRunsInput, LoopGetInput, LoopUpsertInput, LoopUpdateInput, LoopRemoveInput, LoopToggleInput, LoopRunInput, LoopAbortInput, LoopPauseInput, LoopResumeInput, LoopRunsInput, SessionListInput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionUpdateInput, SessionForkInput, SessionAbortInput, SessionRevertInput, SessionUnrevertInput, SessionShareInput, SessionUnshareInput, SessionSummarizeInput, SessionCommandInput, SessionShellInput, SessionPermissionRespondInput, SessionChildrenInput, SessionTodoInput, SessionDiffInput, SessionMessagesInput, SessionPendingInput, SessionPendingSteerInput, SessionMessageInput, SessionMessageRemoveInput, SessionPartRemoveInput, SessionPartUpdateInput, SessionV2EntriesInput, SessionV2StateInput, SessionV2EventsInput, SessionInstructionsInput, SessionContextBreakdownInput, SessionContextToggleInput, SessionGoalInput, SessionBackgroundInput, SessionBackgroundInspectInput, SessionBackgroundReadInput, SessionBackgroundCancelInput, SessionMonitorInput, SessionMonitorLogInput, SessionMonitorCancelInput, AccountCompleteInput, SyncEventInput, SyncOutboxInput, SyncSnapshotInput, SyncStreamInput, SyncStreamOutput, SyncStatsInput, SyncConfigInput, TuiAppendPromptInput, TuiExecuteCommandInput, TuiShowToastInput, TuiPublishInput, TuiSelectSessionInput, TuiControlResponseInput, WorkspaceAdaptorsOutput, WorkspaceStatusOutput, WorkspaceCreateInput, WorkspaceListOutput, WorkspaceRemoveInput, WorkspaceRestoreInput, WorkspaceSessionRestoreInput, WorkspaceWarpInput, AuthSetInput, AuthRemoveInput, ConfigManagementMcpAddInput, ConfigManagementMcpUpdateInput, ConfigManagementMcpRemoveInput, ConfigManagementProfileCreateInput, ConfigManagementProfileActivateInput, SessionPromptPromptInput, SessionPromptPromptAsyncInput, ShareShortInput, SharePageInput, ShareApiInput, ShareDataInput, EventsSubscribeOutput, EventsGlobalOutput, WorkspaceExtraEventsInput, WorkspaceExtraEventsOutput, WorkspaceExtraSessionWarpInput, UsersRegisterInput, UsersLoginInput, UsersUpdateInput } from "./types.js";
|
|
1
|
+
import type { TopLevelVcsStatusOutput, TopLevelVcsApplyInput, TopLevelCommandOutput, TopLevelAgentOutput, TopLevelSkillOutput, TopLevelLspOutput, TopLevelFormatterOutput, AnalyticsDailyInput, AnalyticsDailyOutput, AnalyticsSessionInput, AnalyticsSessionsOutput, AnalyticsDataInput, AppLogInput, AppSkillCreateInput, AppSkillDeleteInput, BrainTriggerInput, ChatbotBotsOutput, ChatbotStartInput, ChatbotStopInput, DiscordSetupInput, VoiceTranscribeInput, ProfilePatchInput, ProfileHabitsInput, ProfilePreviewInput, ProfileClearHabitsInput, ConfigUpdateInput, ConnectorsAuthSetInput, ConnectorsAuthRemoveInput, ConnectorsInvalidateInput, ExperimentalToolsInput, ExperimentalWorktreeCreateInput, ExperimentalWorktreeRemoveInput, ExperimentalWorktreeResetInput, ExperimentalManagedWorktreeCreateInput, ExperimentalManagedWorktreeRemoveInput, ExperimentalManagedWorktreeLinkInput, ExperimentalManagedWorktreeChildrenInput, ExperimentalManagedWorktreeAncestorsInput, FileFindTextInput, FileFindTextOutput, FileFindFileInput, FileFindFileOutput, FileFindSymbolInput, FileFindSymbolOutput, FileListInput, FileListOutput, FileContentInput, FileWriteInput, FileStatusOutput, McpAddInput, McpStartAuthInput, McpAuthCallbackInput, McpAuthenticateInput, McpRemoveAuthInput, McpConnectInput, McpDisconnectInput, McpToggleInput, MissionGenerateInput, MissionRecentExecsInput, MissionGetInput, MissionUpsertInput, MissionUpdateInput, MissionRemoveInput, MissionStartInput, MissionPauseInput, MissionCancelInput, MissionFeatureMutateInput, MissionExecsInput, MobileAuthTokenListOutput, MobileAuthTokenCreateInput, MobileAuthTokenCreateOutput, MobileAuthTokenRevokeInput, MobileAuthTokenRevokeOutput, MobileCommandListOutput, MobileProjectListOutput, MobileMemoryHistoryOutput, MobileMemorySearchInput, MobileMemorySearchOutput, MobileMemoryStashListOutput, MobileMemoryStashCreateInput, MobileMemoryStashDeleteInput, MobileGithubReposOutput, MobileGithubBranchesInput, MobileGithubBranchesOutput, MobileGithubImportsOutput, MobileGithubOauthClientInput, MobileGithubOauthDevicePollInput, MobileGithubAuthSetInput, MobileGithubImportInput, MobileGithubImportOutput, MobileGithubSessionCreateInput, MobileSessionListInput, MobileSessionListOutput, MobileSessionCreateInput, MobileSessionDetailInput, MobileSessionDeleteInput, MobileSessionDiffInput, MobileSessionDiffOutput, MobileSessionCommandListInput, MobileSessionCommandListOutput, MobileSessionCommandInput, MobileSessionCommandOutput, MobileSessionMessageInput, MobileSessionMessageOutput, MobileSessionAbortInput, MobilePermissionRespondInput, MobileQuestionRespondInput, MobileQuestionRejectInput, MobileSessionPublishInput, MobileSessionCleanupInput, MobileSessionStreamInput, MobileSessionStreamOutput, MobileSessionRenameInput, MobileSessionTodoInput, MobileSessionTodoOutput, MobileTeleportUploadBeginOutput, MobileTeleportUploadChunkInput, MobileTeleportUploadChunkOutput, MobileTeleportInInput, MobileTeleportOutInput, MobileWorktreeCreateInput, MobileWorktreeRemoveInput, MobileWorktreeResetInput, MobileGitDiffInput, MobileGitDiffOutput, MobileGitCommitsInput, MobileGitCommitsOutput, MobileGitBranchesOutput, MobileGitCommitInput, MobileGitCommitOutput, MobileGitCheckoutInput, MobileGitStageInput, MobileGitUnstageInput, MobileGitDiscardInput, MobileGitPushInput, MobileGitPushOutput, MobileGitPullOutput, MobileLoopListOutput, MobileLoopCreateInput, MobileLoopTemplatesOutput, MobileLoopGenerateInput, MobileLoopRunsRecentInput, MobileLoopRunsRecentOutput, MobileLoopGetInput, MobileLoopGetOutput, MobileLoopDeleteInput, MobileLoopUpdateInput, MobileLoopRunsInput, MobileLoopRunsOutput, MobileLoopRunInput, MobileLoopAbortInput, MobileLoopToggleInput, MobileLoopPauseInput, MobileLoopResumeInput, MobileRoutineListOutput, MobileRoutineCreateInput, MobileRoutineGetInput, MobileRoutineDeleteInput, MobileRoutineUpdateInput, MobileRoutineRunInput, MobileRoutinePauseInput, MobileRoutineResumeInput, MobileRoutineTriggerInput, MobilePtyListOutput, MobilePtyCreateInput, MobilePtyGetInput, MobilePtyUpdateInput, MobilePtyRemoveInput, MobileMissionListOutput, MobileMissionCreateInput, MobileMissionTemplatesOutput, MobileMissionGenerateInput, MobileMissionExecsRecentInput, MobileMissionExecsRecentOutput, MobileMissionGetInput, MobileMissionGetOutput, MobileMissionUpdateInput, MobileMissionDeleteInput, MobileMissionExecsInput, MobileMissionExecsOutput, MobileMissionStartInput, MobileMissionPauseInput, MobileMissionCancelInput, MobileMissionFeatureMutateInput, MobileEventsOutput, MobileBrainStatusOutput, MobileBrainTriggerInput, MobileBrainTriggerOutput, MobileChatBotListOutput, MobileChatBotStartInput, MobileChatBotStartOutput, MobileChatBotStopInput, MobileChatBotStopOutput, MobileObservabilityGetOutput, MobileObservabilitySetInput, MobileObservabilitySetOutput, MobileLspStatusOutput, MobileFusionListOutput, MobileFusionSetInput, MobileFusionSetOutput, MobileHostBrowserOutput, MobileHostComputerOutput, MobileHostHerdrGetOutput, MobileHostHerdrSetInput, MobileHostHerdrSetOutput, MobileHostIslandOutput, MobileHostDevtoolsOutput, ProjectListOutput, ProjectUpdateInput, ProjectDirectoryListInput, ProjectDirectoryListOutput, ProjectCopyCreateInput, ProjectCopyRemoveInput, ProjectCopyRefreshInput, ProviderApiInput, ProviderRemoveAuthInput, ProviderOauthAuthorizeInput, ProviderOauthAuthorizeOutput, ProviderOauthCallbackInput, QuestionListOutput, QuestionReplyInput, QuestionRejectInput, PermissionListOutput, PermissionReplyInput, PtyCreateInput, PtyGetInput, PtyUpdateInput, PtyRemoveInput, LoopGenerateInput, LoopRecentRunsInput, LoopGetInput, LoopUpsertInput, LoopUpdateInput, LoopRemoveInput, LoopToggleInput, LoopRunInput, LoopAbortInput, LoopPauseInput, LoopResumeInput, LoopRunsInput, SessionListInput, SessionCreateInput, SessionGetInput, SessionRemoveInput, SessionUpdateInput, SessionForkInput, SessionAbortInput, SessionRevertInput, SessionUnrevertInput, SessionShareInput, SessionUnshareInput, SessionSummarizeInput, SessionCommandInput, SessionShellInput, SessionPermissionRespondInput, SessionChildrenInput, SessionTodoInput, SessionDiffInput, SessionMessagesInput, SessionPendingInput, SessionPendingSteerInput, SessionMessageInput, SessionMessageRemoveInput, SessionPartRemoveInput, SessionPartUpdateInput, SessionV2EntriesInput, SessionV2StateInput, SessionV2EventsInput, SessionInstructionsInput, SessionContextBreakdownInput, SessionContextToggleInput, SessionGoalInput, SessionBackgroundInput, SessionBackgroundInspectInput, SessionBackgroundReadInput, SessionBackgroundCancelInput, SessionMonitorInput, SessionMonitorLogInput, SessionMonitorCancelInput, AccountCompleteInput, SyncEventInput, SyncOutboxInput, SyncSnapshotInput, SyncStreamInput, SyncStreamOutput, SyncStatsInput, SyncConfigInput, TuiAppendPromptInput, TuiExecuteCommandInput, TuiShowToastInput, TuiPublishInput, TuiSelectSessionInput, TuiControlResponseInput, WorkspaceAdaptorsOutput, WorkspaceStatusOutput, WorkspaceCreateInput, WorkspaceListOutput, WorkspaceRemoveInput, WorkspaceRestoreInput, WorkspaceSessionRestoreInput, WorkspaceWarpInput, AuthSetInput, AuthRemoveInput, ConfigManagementMcpAddInput, ConfigManagementMcpUpdateInput, ConfigManagementMcpRemoveInput, ConfigManagementProfileCreateInput, ConfigManagementProfileActivateInput, SessionPromptPromptInput, SessionPromptPromptAsyncInput, ShareShortInput, SharePageInput, ShareApiInput, ShareDataInput, EventsSubscribeOutput, EventsGlobalOutput, WorkspaceExtraEventsInput, WorkspaceExtraEventsOutput, WorkspaceExtraSessionWarpInput, UsersRegisterInput, UsersLoginInput, UsersUpdateInput } from "./types.js";
|
|
2
2
|
export interface ClientOptions {
|
|
3
3
|
readonly baseUrl: string;
|
|
4
4
|
readonly fetch?: typeof globalThis.fetch;
|
|
@@ -44,6 +44,12 @@ export declare function make(options: ClientOptions): {
|
|
|
44
44
|
start: (input: ChatbotStartInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ChatbotStartResult>;
|
|
45
45
|
stop: (input: ChatbotStopInput, requestOptions?: RequestOptions) => Promise<import("./types.js").ChatbotStopResult>;
|
|
46
46
|
};
|
|
47
|
+
discord: {
|
|
48
|
+
status: (requestOptions?: RequestOptions) => Promise<import("./types.js").DiscordStatus>;
|
|
49
|
+
setup: (input: DiscordSetupInput, requestOptions?: RequestOptions) => Promise<import("./types.js").DiscordSetupOutput2>;
|
|
50
|
+
start: (requestOptions?: RequestOptions) => Promise<import("./types.js").DiscordStartResult>;
|
|
51
|
+
stop: (requestOptions?: RequestOptions) => Promise<import("./types.js").DiscordStopResult>;
|
|
52
|
+
};
|
|
47
53
|
voice: {
|
|
48
54
|
transcribe: (input: VoiceTranscribeInput, requestOptions?: RequestOptions) => Promise<import("./types.js").VoiceTranscribeResult>;
|
|
49
55
|
};
|
|
@@ -217,7 +217,7 @@ export function make(options) {
|
|
|
217
217
|
trigger: (input, requestOptions) => request({
|
|
218
218
|
method: "POST",
|
|
219
219
|
path: `/brain/trigger`,
|
|
220
|
-
body: { force: input?.["force"] },
|
|
220
|
+
body: { force: input?.["force"], sessionID: input?.["sessionID"] },
|
|
221
221
|
successStatus: 200,
|
|
222
222
|
declaredStatuses: [],
|
|
223
223
|
empty: false,
|
|
@@ -240,6 +240,19 @@ export function make(options) {
|
|
|
240
240
|
empty: false,
|
|
241
241
|
}, requestOptions),
|
|
242
242
|
},
|
|
243
|
+
discord: {
|
|
244
|
+
status: (requestOptions) => request({ method: "GET", path: `/discord`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
245
|
+
setup: (input, requestOptions) => request({
|
|
246
|
+
method: "POST",
|
|
247
|
+
path: `/discord/setup`,
|
|
248
|
+
body: { botToken: input["botToken"] },
|
|
249
|
+
successStatus: 200,
|
|
250
|
+
declaredStatuses: [400],
|
|
251
|
+
empty: false,
|
|
252
|
+
}, requestOptions),
|
|
253
|
+
start: (requestOptions) => request({ method: "POST", path: `/discord/start`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
254
|
+
stop: (requestOptions) => request({ method: "POST", path: `/discord/stop`, successStatus: 200, declaredStatuses: [], empty: false }, requestOptions),
|
|
255
|
+
},
|
|
243
256
|
voice: {
|
|
244
257
|
transcribe: (input, requestOptions) => request({
|
|
245
258
|
method: "POST",
|
|
@@ -562,7 +575,12 @@ export function make(options) {
|
|
|
562
575
|
generate: (input, requestOptions) => request({
|
|
563
576
|
method: "POST",
|
|
564
577
|
path: `/mission/generate`,
|
|
565
|
-
body: {
|
|
578
|
+
body: {
|
|
579
|
+
description: input["description"],
|
|
580
|
+
model: input["model"],
|
|
581
|
+
agent: input["agent"],
|
|
582
|
+
sessionID: input["sessionID"],
|
|
583
|
+
},
|
|
566
584
|
successStatus: 200,
|
|
567
585
|
declaredStatuses: [400],
|
|
568
586
|
empty: false,
|
|
@@ -1095,7 +1113,12 @@ export function make(options) {
|
|
|
1095
1113
|
loopGenerate: (input, requestOptions) => request({
|
|
1096
1114
|
method: "POST",
|
|
1097
1115
|
path: `/mobile/loops/generate`,
|
|
1098
|
-
body: {
|
|
1116
|
+
body: {
|
|
1117
|
+
description: input["description"],
|
|
1118
|
+
model: input["model"],
|
|
1119
|
+
agent: input["agent"],
|
|
1120
|
+
sessionID: input["sessionID"],
|
|
1121
|
+
},
|
|
1099
1122
|
successStatus: 200,
|
|
1100
1123
|
declaredStatuses: [],
|
|
1101
1124
|
empty: false,
|
|
@@ -1310,7 +1333,12 @@ export function make(options) {
|
|
|
1310
1333
|
missionGenerate: (input, requestOptions) => request({
|
|
1311
1334
|
method: "POST",
|
|
1312
1335
|
path: `/mobile/missions/generate`,
|
|
1313
|
-
body: {
|
|
1336
|
+
body: {
|
|
1337
|
+
description: input["description"],
|
|
1338
|
+
model: input["model"],
|
|
1339
|
+
agent: input["agent"],
|
|
1340
|
+
sessionID: input["sessionID"],
|
|
1341
|
+
},
|
|
1314
1342
|
successStatus: 200,
|
|
1315
1343
|
declaredStatuses: [],
|
|
1316
1344
|
empty: false,
|
|
@@ -1601,7 +1629,12 @@ export function make(options) {
|
|
|
1601
1629
|
generate: (input, requestOptions) => request({
|
|
1602
1630
|
method: "POST",
|
|
1603
1631
|
path: `/loop/generate`,
|
|
1604
|
-
body: {
|
|
1632
|
+
body: {
|
|
1633
|
+
description: input["description"],
|
|
1634
|
+
model: input["model"],
|
|
1635
|
+
agent: input["agent"],
|
|
1636
|
+
sessionID: input["sessionID"],
|
|
1637
|
+
},
|
|
1605
1638
|
successStatus: 200,
|
|
1606
1639
|
declaredStatuses: [400],
|
|
1607
1640
|
empty: false,
|
|
@@ -181,6 +181,26 @@ export type ChatbotStartResult = {
|
|
|
181
181
|
export type ChatbotStopResult = {
|
|
182
182
|
removed: boolean;
|
|
183
183
|
};
|
|
184
|
+
export type DiscordStatus = {
|
|
185
|
+
configured: boolean;
|
|
186
|
+
running: boolean;
|
|
187
|
+
username?: string;
|
|
188
|
+
clientId?: string;
|
|
189
|
+
inviteUrl?: string;
|
|
190
|
+
error?: string;
|
|
191
|
+
};
|
|
192
|
+
export type DiscordSetupOutput2 = {
|
|
193
|
+
username: string;
|
|
194
|
+
clientId: string;
|
|
195
|
+
inviteUrl: string;
|
|
196
|
+
};
|
|
197
|
+
export type DiscordStartResult = {
|
|
198
|
+
running: boolean;
|
|
199
|
+
error?: string;
|
|
200
|
+
};
|
|
201
|
+
export type DiscordStopResult = {
|
|
202
|
+
stopped: boolean;
|
|
203
|
+
};
|
|
184
204
|
export type VoiceTranscribeResult = {
|
|
185
205
|
transcript: string;
|
|
186
206
|
error?: string | undefined;
|
|
@@ -4303,6 +4323,12 @@ export type VcsApplyError = {
|
|
|
4303
4323
|
export type AnalyticsSessionNotFound = {
|
|
4304
4324
|
readonly error: "Session not found";
|
|
4305
4325
|
};
|
|
4326
|
+
export type DiscordValidationError = {
|
|
4327
|
+
readonly name: "ValidationError";
|
|
4328
|
+
readonly data: {
|
|
4329
|
+
readonly [x: string]: any;
|
|
4330
|
+
};
|
|
4331
|
+
};
|
|
4306
4332
|
export type ConfigUpdateError = {
|
|
4307
4333
|
readonly name: string;
|
|
4308
4334
|
readonly data: {
|
|
@@ -4404,6 +4430,10 @@ export type AppSkillCreatePayload = {
|
|
|
4404
4430
|
};
|
|
4405
4431
|
export type BrainTriggerPayload = {
|
|
4406
4432
|
readonly force?: boolean | undefined;
|
|
4433
|
+
readonly sessionID?: string | undefined;
|
|
4434
|
+
};
|
|
4435
|
+
export type DiscordSetupPayload = {
|
|
4436
|
+
readonly botToken: string;
|
|
4407
4437
|
};
|
|
4408
4438
|
export type VoiceTranscribePayload = {
|
|
4409
4439
|
readonly audio: string;
|
|
@@ -4507,6 +4537,7 @@ export type MissionGeneratePayload = {
|
|
|
4507
4537
|
readonly description: string;
|
|
4508
4538
|
readonly model?: string;
|
|
4509
4539
|
readonly agent?: string;
|
|
4540
|
+
readonly sessionID?: string;
|
|
4510
4541
|
};
|
|
4511
4542
|
export type MissionUpsertPayload = {
|
|
4512
4543
|
readonly name: string;
|
|
@@ -5467,6 +5498,7 @@ export type MobileLoopGeneratePayload = {
|
|
|
5467
5498
|
readonly description: string;
|
|
5468
5499
|
readonly model?: string | undefined;
|
|
5469
5500
|
readonly agent?: string | undefined;
|
|
5501
|
+
readonly sessionID?: string | undefined;
|
|
5470
5502
|
};
|
|
5471
5503
|
export type MobileLoopUpdatePayload = {
|
|
5472
5504
|
readonly name: string;
|
|
@@ -5592,6 +5624,7 @@ export type MobileMissionGeneratePayload = {
|
|
|
5592
5624
|
readonly description: string;
|
|
5593
5625
|
readonly model?: string | undefined;
|
|
5594
5626
|
readonly agent?: string | undefined;
|
|
5627
|
+
readonly sessionID?: string | undefined;
|
|
5595
5628
|
};
|
|
5596
5629
|
export type MobileMissionUpdatePayload = {
|
|
5597
5630
|
readonly name: string;
|
|
@@ -5697,6 +5730,7 @@ export type LoopGeneratePayload = {
|
|
|
5697
5730
|
readonly description: string;
|
|
5698
5731
|
readonly model?: string;
|
|
5699
5732
|
readonly agent?: string;
|
|
5733
|
+
readonly sessionID?: string;
|
|
5700
5734
|
};
|
|
5701
5735
|
export type LoopUpsertPayload = {
|
|
5702
5736
|
readonly name: string;
|
|
@@ -6197,6 +6231,7 @@ export type AppSkillDeleteOutput = boolean;
|
|
|
6197
6231
|
export type BrainStatusOutput = BrainStatus;
|
|
6198
6232
|
export type BrainTriggerInput = {
|
|
6199
6233
|
readonly force?: BrainTriggerPayload["force"];
|
|
6234
|
+
readonly sessionID?: BrainTriggerPayload["sessionID"];
|
|
6200
6235
|
};
|
|
6201
6236
|
export type BrainTriggerOutput = BrainResult;
|
|
6202
6237
|
export type ChatbotBotsOutput = Array<ChatbotBot>;
|
|
@@ -6212,6 +6247,13 @@ export type ChatbotStopInput = {
|
|
|
6212
6247
|
}["name"];
|
|
6213
6248
|
};
|
|
6214
6249
|
export type ChatbotStopOutput = ChatbotStopResult;
|
|
6250
|
+
export type DiscordStatusOutput = DiscordStatus;
|
|
6251
|
+
export type DiscordSetupInput = {
|
|
6252
|
+
readonly botToken: DiscordSetupPayload["botToken"];
|
|
6253
|
+
};
|
|
6254
|
+
export type DiscordSetupOutput = DiscordSetupOutput2;
|
|
6255
|
+
export type DiscordStartOutput = DiscordStartResult;
|
|
6256
|
+
export type DiscordStopOutput = DiscordStopResult;
|
|
6215
6257
|
export type VoiceTranscribeInput = {
|
|
6216
6258
|
readonly audio: VoiceTranscribePayload["audio"];
|
|
6217
6259
|
readonly format?: VoiceTranscribePayload["format"];
|
|
@@ -7381,6 +7423,7 @@ export type MissionGenerateInput = {
|
|
|
7381
7423
|
readonly description: MissionGeneratePayload["description"];
|
|
7382
7424
|
readonly model?: MissionGeneratePayload["model"];
|
|
7383
7425
|
readonly agent?: MissionGeneratePayload["agent"];
|
|
7426
|
+
readonly sessionID?: MissionGeneratePayload["sessionID"];
|
|
7384
7427
|
};
|
|
7385
7428
|
export type MissionGenerateOutput = MissionDefinition;
|
|
7386
7429
|
export type MissionRecentExecsInput = {
|
|
@@ -7847,6 +7890,7 @@ export type MobileLoopGenerateInput = {
|
|
|
7847
7890
|
readonly description: MobileLoopGeneratePayload["description"];
|
|
7848
7891
|
readonly model?: MobileLoopGeneratePayload["model"];
|
|
7849
7892
|
readonly agent?: MobileLoopGeneratePayload["agent"];
|
|
7893
|
+
readonly sessionID?: MobileLoopGeneratePayload["sessionID"];
|
|
7850
7894
|
};
|
|
7851
7895
|
export type MobileLoopGenerateOutput = LoopDefinition;
|
|
7852
7896
|
export type MobileLoopRunsRecentInput = {
|
|
@@ -8037,6 +8081,7 @@ export type MobileMissionGenerateInput = {
|
|
|
8037
8081
|
readonly description: MobileMissionGeneratePayload["description"];
|
|
8038
8082
|
readonly model?: MobileMissionGeneratePayload["model"];
|
|
8039
8083
|
readonly agent?: MobileMissionGeneratePayload["agent"];
|
|
8084
|
+
readonly sessionID?: MobileMissionGeneratePayload["sessionID"];
|
|
8040
8085
|
};
|
|
8041
8086
|
export type MobileMissionGenerateOutput = MobileMissionDefinition;
|
|
8042
8087
|
export type MobileMissionExecsRecentInput = {
|
|
@@ -8381,6 +8426,7 @@ export type LoopGenerateInput = {
|
|
|
8381
8426
|
readonly description: LoopGeneratePayload["description"];
|
|
8382
8427
|
readonly model?: LoopGeneratePayload["model"];
|
|
8383
8428
|
readonly agent?: LoopGeneratePayload["agent"];
|
|
8429
|
+
readonly sessionID?: LoopGeneratePayload["sessionID"];
|
|
8384
8430
|
};
|
|
8385
8431
|
export type LoopGenerateOutput = LoopDefinition;
|
|
8386
8432
|
export type LoopRecentRunsInput = {
|
package/dist/server.d.ts
CHANGED
|
@@ -84,6 +84,15 @@ export declare function createNikcli(options?: ServerOptions): Promise<{
|
|
|
84
84
|
readonly workspace?: string;
|
|
85
85
|
}, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").ChatbotStopResult>>;
|
|
86
86
|
};
|
|
87
|
+
discord: {
|
|
88
|
+
status: (options?: import("./httpapi/compat.js").CallOptions, overrides?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").DiscordStatus>>;
|
|
89
|
+
setup: (input: import("./httpapi/client.js").DiscordSetupInput & {
|
|
90
|
+
readonly directory?: string;
|
|
91
|
+
readonly workspace?: string;
|
|
92
|
+
}, options?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").DiscordSetupOutput2>>;
|
|
93
|
+
start: (options?: import("./httpapi/compat.js").CallOptions, overrides?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").DiscordStartResult>>;
|
|
94
|
+
stop: (options?: import("./httpapi/compat.js").CallOptions, overrides?: import("./httpapi/compat.js").CallOptions) => Promise<import("./httpapi/compat.js").Result<import("./httpapi/client.js").DiscordStopResult>>;
|
|
95
|
+
};
|
|
87
96
|
voice: {
|
|
88
97
|
transcribe: (input: import("./httpapi/client.js").VoiceTranscribeInput & {
|
|
89
98
|
readonly directory?: string;
|