@cyberstrike-io/sdk 1.1.9 → 1.1.12-beta.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/v2/gen/sdk.gen.d.ts +165 -4
- package/dist/v2/gen/sdk.gen.js +320 -2
- package/dist/v2/gen/types.gen.d.ts +606 -73
- package/package.json +1 -1
package/dist/v2/gen/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Client, type Options as Options2, type TDataShape } from "./client/index.js";
|
|
2
|
-
import type { AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses,
|
|
2
|
+
import type { AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, BoltAddErrors, BoltAddResponses, BoltConfig, BoltConnectResponses, BoltDisconnectResponses, BoltPairErrors, BoltPairResponses, BoltRemoveResponses, BoltStatusResponses, CommandListResponses, Config as Config3, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalResourceListResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventPollResponses, GlobalEventResponses, GlobalHealthResponses, GlobalVersionCheckResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpBoltToolsResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpRemoveResponses, McpStatusResponses, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, ProjectCurrentResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, SessionAbortErrors, SessionAbortResponses, SessionAddWebCredentialErrors, SessionAddWebCredentialResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDeleteWebCredentialErrors, SessionDeleteWebCredentialResponses, SessionDiffResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionHackbrowserLaunchErrors, SessionHackbrowserLaunchResponses, SessionHackbrowserStatusErrors, SessionHackbrowserStatusResponses, SessionHackbrowserStopErrors, SessionHackbrowserStopResponses, SessionIngestErrors, SessionIngestResponses, SessionInitErrors, SessionInitResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionQueuePauseErrors, SessionQueuePauseResponses, SessionQueueResumeErrors, SessionQueueResumeResponses, SessionQueueStatusErrors, SessionQueueStatusResponses, SessionRequestErrors, SessionRequestResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SessionUpdateWebCredentialErrors, SessionUpdateWebCredentialResponses, SessionVulnerabilityErrors, SessionVulnerabilityResponses, SessionWebCredentialsErrors, SessionWebCredentialsResponses, SessionWebFunctionsErrors, SessionWebFunctionsResponses, SessionWebObjectsErrors, SessionWebObjectsResponses, SessionWebRetestQueueErrors, SessionWebRetestQueueResponses, SessionWebRolesErrors, SessionWebRolesResponses, SkillChainErrors, SkillChainResponses, SkillContextResponses, SkillDisableResponses, SkillEnableResponses, SkillGetErrors, SkillGetResponses, SkillInstallErrors, SkillInstallResponses, SkillListResponses, SkillRemoveErrors, SkillRemoveResponses, SkillSearchResponses, SkillVerifyErrors, SkillVerifyResponses, SubtaskPartInput, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastResponses, TuiSubmitPromptResponses, VcsGetResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -333,6 +333,46 @@ export declare class Session extends HeyApiClient {
|
|
|
333
333
|
status<ThrowOnError extends boolean = false>(parameters?: {
|
|
334
334
|
directory?: string;
|
|
335
335
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionStatusResponses, SessionStatusErrors, ThrowOnError, "fields">;
|
|
336
|
+
/**
|
|
337
|
+
* Get ingest queue status
|
|
338
|
+
*
|
|
339
|
+
* Retrieve the current ingest-queue state for all sessions (paused flag and pending count). Sessions with no active queue are omitted.
|
|
340
|
+
*/
|
|
341
|
+
queueStatus<ThrowOnError extends boolean = false>(parameters?: {
|
|
342
|
+
directory?: string;
|
|
343
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionQueueStatusResponses, SessionQueueStatusErrors, ThrowOnError, "fields">;
|
|
344
|
+
/**
|
|
345
|
+
* Launch a hackbrowser crawl
|
|
346
|
+
*
|
|
347
|
+
* Start a hackbrowser crawl for a session from an interactive entry point (TUI slash, CLI subcommand). Same backend as the LLM-callable hackbrowser tool — agent invocation, slash, and CLI all share this surface. Returns a KickOffResult; captures stream into the session asynchronously.
|
|
348
|
+
*/
|
|
349
|
+
hackbrowserLaunch<ThrowOnError extends boolean = false>(parameters: {
|
|
350
|
+
sessionID: string;
|
|
351
|
+
directory?: string;
|
|
352
|
+
target?: string;
|
|
353
|
+
credentials?: Array<string>;
|
|
354
|
+
scope?: Array<string>;
|
|
355
|
+
exclude?: Array<string>;
|
|
356
|
+
steps?: number;
|
|
357
|
+
headless?: boolean;
|
|
358
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionHackbrowserLaunchResponses, SessionHackbrowserLaunchErrors, ThrowOnError, "fields">;
|
|
359
|
+
/**
|
|
360
|
+
* Stop the active hackbrowser run for a session
|
|
361
|
+
*
|
|
362
|
+
* Cancels an in-flight hackbrowser crawl. The agent finishes the current page's pending tasks (graceful exit), closes the browser, and transitions HackbrowserStatus to completed with whatever was captured so far. Returns false when no hackbrowser run is active for this session.
|
|
363
|
+
*/
|
|
364
|
+
hackbrowserStop<ThrowOnError extends boolean = false>(parameters: {
|
|
365
|
+
sessionID: string;
|
|
366
|
+
directory?: string;
|
|
367
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionHackbrowserStopResponses, SessionHackbrowserStopErrors, ThrowOnError, "fields">;
|
|
368
|
+
/**
|
|
369
|
+
* Get hackbrowser status
|
|
370
|
+
*
|
|
371
|
+
* Retrieve the current hackbrowser run state for all sessions (phase, page/endpoint counters, errors). Used by the TUI sidebar bootstrap. Sessions with no hackbrowser run are omitted.
|
|
372
|
+
*/
|
|
373
|
+
hackbrowserStatus<ThrowOnError extends boolean = false>(parameters?: {
|
|
374
|
+
directory?: string;
|
|
375
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionHackbrowserStatusResponses, SessionHackbrowserStatusErrors, ThrowOnError, "fields">;
|
|
336
376
|
/**
|
|
337
377
|
* Delete session
|
|
338
378
|
*
|
|
@@ -523,6 +563,14 @@ export declare class Session extends HeyApiClient {
|
|
|
523
563
|
*/
|
|
524
564
|
body: string;
|
|
525
565
|
};
|
|
566
|
+
trigger_element?: string;
|
|
567
|
+
element_roles?: Array<string>;
|
|
568
|
+
ui_context?: {
|
|
569
|
+
[key: string]: unknown;
|
|
570
|
+
};
|
|
571
|
+
page_url?: string;
|
|
572
|
+
page_visited_by?: Array<string>;
|
|
573
|
+
scheme?: "http" | "https";
|
|
526
574
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionIngestResponses, SessionIngestErrors, ThrowOnError, "fields">;
|
|
527
575
|
/**
|
|
528
576
|
* Initialize session
|
|
@@ -555,6 +603,24 @@ export declare class Session extends HeyApiClient {
|
|
|
555
603
|
sessionID: string;
|
|
556
604
|
directory?: string;
|
|
557
605
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionAbortResponses, SessionAbortErrors, ThrowOnError, "fields">;
|
|
606
|
+
/**
|
|
607
|
+
* Pause ingest queue
|
|
608
|
+
*
|
|
609
|
+
* Pause the ingest queue for a session. The current in-flight ingest finishes; the next one waits until queue/resume is called. Other flows (chat input, abort) are unaffected.
|
|
610
|
+
*/
|
|
611
|
+
queuePause<ThrowOnError extends boolean = false>(parameters: {
|
|
612
|
+
sessionID: string;
|
|
613
|
+
directory?: string;
|
|
614
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionQueuePauseResponses, SessionQueuePauseErrors, ThrowOnError, "fields">;
|
|
615
|
+
/**
|
|
616
|
+
* Resume ingest queue
|
|
617
|
+
*
|
|
618
|
+
* Resume the ingest queue for a session. Tasks queued while paused start processing in original order.
|
|
619
|
+
*/
|
|
620
|
+
queueResume<ThrowOnError extends boolean = false>(parameters: {
|
|
621
|
+
sessionID: string;
|
|
622
|
+
directory?: string;
|
|
623
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionQueueResumeResponses, SessionQueueResumeErrors, ThrowOnError, "fields">;
|
|
558
624
|
/**
|
|
559
625
|
* Unshare session
|
|
560
626
|
*
|
|
@@ -626,6 +692,7 @@ export declare class Session extends HeyApiClient {
|
|
|
626
692
|
format?: OutputFormat;
|
|
627
693
|
system?: string;
|
|
628
694
|
variant?: string;
|
|
695
|
+
excludeHistory?: boolean;
|
|
629
696
|
parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
|
|
630
697
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionPromptResponses, SessionPromptErrors, ThrowOnError, "fields">;
|
|
631
698
|
/**
|
|
@@ -659,6 +726,7 @@ export declare class Session extends HeyApiClient {
|
|
|
659
726
|
format?: OutputFormat;
|
|
660
727
|
system?: string;
|
|
661
728
|
variant?: string;
|
|
729
|
+
excludeHistory?: boolean;
|
|
662
730
|
parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
|
|
663
731
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionPromptAsyncResponses, SessionPromptAsyncErrors, ThrowOnError, "fields">;
|
|
664
732
|
/**
|
|
@@ -1235,14 +1303,105 @@ export declare class App extends HeyApiClient {
|
|
|
1235
1303
|
agents<ThrowOnError extends boolean = false>(parameters?: {
|
|
1236
1304
|
directory?: string;
|
|
1237
1305
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppAgentsResponses, unknown, ThrowOnError, "fields">;
|
|
1306
|
+
}
|
|
1307
|
+
export declare class Skill extends HeyApiClient {
|
|
1238
1308
|
/**
|
|
1239
1309
|
* List skills
|
|
1240
1310
|
*
|
|
1241
|
-
* Get
|
|
1311
|
+
* Get all available skills with verification status.
|
|
1242
1312
|
*/
|
|
1243
|
-
|
|
1313
|
+
list<ThrowOnError extends boolean = false>(parameters?: {
|
|
1314
|
+
directory?: string;
|
|
1315
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SkillListResponses, unknown, ThrowOnError, "fields">;
|
|
1316
|
+
/**
|
|
1317
|
+
* Search skills
|
|
1318
|
+
*
|
|
1319
|
+
* Search skills by keyword, tech stack, CWE, or category.
|
|
1320
|
+
*/
|
|
1321
|
+
search<ThrowOnError extends boolean = false>(parameters?: {
|
|
1322
|
+
directory?: string;
|
|
1323
|
+
q?: string;
|
|
1324
|
+
tech?: string;
|
|
1325
|
+
cwe?: string;
|
|
1326
|
+
category?: string;
|
|
1327
|
+
tag?: string;
|
|
1328
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SkillSearchResponses, unknown, ThrowOnError, "fields">;
|
|
1329
|
+
/**
|
|
1330
|
+
* Get loaded skills
|
|
1331
|
+
*
|
|
1332
|
+
* Get skills currently loaded in agent context.
|
|
1333
|
+
*/
|
|
1334
|
+
context<ThrowOnError extends boolean = false>(parameters?: {
|
|
1335
|
+
directory?: string;
|
|
1336
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SkillContextResponses, unknown, ThrowOnError, "fields">;
|
|
1337
|
+
/**
|
|
1338
|
+
* Kill chain analysis
|
|
1339
|
+
*
|
|
1340
|
+
* Analyze findings for kill chain opportunities.
|
|
1341
|
+
*/
|
|
1342
|
+
chain<ThrowOnError extends boolean = false>(parameters?: {
|
|
1343
|
+
directory?: string;
|
|
1344
|
+
findings?: Array<{
|
|
1345
|
+
skill_id: string;
|
|
1346
|
+
severity: "info" | "low" | "medium" | "high" | "critical";
|
|
1347
|
+
cwe_id?: string;
|
|
1348
|
+
tech_stack?: Array<string>;
|
|
1349
|
+
}>;
|
|
1350
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SkillChainResponses, SkillChainErrors, ThrowOnError, "fields">;
|
|
1351
|
+
/**
|
|
1352
|
+
* Remove a skill
|
|
1353
|
+
*
|
|
1354
|
+
* Remove a locally cached remote skill.
|
|
1355
|
+
*/
|
|
1356
|
+
remove<ThrowOnError extends boolean = false>(parameters: {
|
|
1357
|
+
name: string;
|
|
1358
|
+
directory?: string;
|
|
1359
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SkillRemoveResponses, SkillRemoveErrors, ThrowOnError, "fields">;
|
|
1360
|
+
/**
|
|
1361
|
+
* Get skill detail
|
|
1362
|
+
*
|
|
1363
|
+
* Get a single skill with full content.
|
|
1364
|
+
*/
|
|
1365
|
+
get<ThrowOnError extends boolean = false>(parameters: {
|
|
1366
|
+
name: string;
|
|
1367
|
+
directory?: string;
|
|
1368
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SkillGetResponses, SkillGetErrors, ThrowOnError, "fields">;
|
|
1369
|
+
/**
|
|
1370
|
+
* Verify skill integrity
|
|
1371
|
+
*
|
|
1372
|
+
* Re-verify a skill's SHA-256 hash and signature.
|
|
1373
|
+
*/
|
|
1374
|
+
verify<ThrowOnError extends boolean = false>(parameters: {
|
|
1375
|
+
name: string;
|
|
1376
|
+
directory?: string;
|
|
1377
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SkillVerifyResponses, SkillVerifyErrors, ThrowOnError, "fields">;
|
|
1378
|
+
/**
|
|
1379
|
+
* Install skill from URL
|
|
1380
|
+
*
|
|
1381
|
+
* Download and install a skill from a remote URL or registry.
|
|
1382
|
+
*/
|
|
1383
|
+
install<ThrowOnError extends boolean = false>(parameters?: {
|
|
1384
|
+
directory?: string;
|
|
1385
|
+
url?: string;
|
|
1386
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SkillInstallResponses, SkillInstallErrors, ThrowOnError, "fields">;
|
|
1387
|
+
/**
|
|
1388
|
+
* Enable a skill
|
|
1389
|
+
*
|
|
1390
|
+
* Remove a skill from the disabled list in config.
|
|
1391
|
+
*/
|
|
1392
|
+
enable<ThrowOnError extends boolean = false>(parameters: {
|
|
1393
|
+
name: string;
|
|
1394
|
+
directory?: string;
|
|
1395
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SkillEnableResponses, unknown, ThrowOnError, "fields">;
|
|
1396
|
+
/**
|
|
1397
|
+
* Disable a skill
|
|
1398
|
+
*
|
|
1399
|
+
* Add a skill to the disabled list in config.
|
|
1400
|
+
*/
|
|
1401
|
+
disable<ThrowOnError extends boolean = false>(parameters: {
|
|
1402
|
+
name: string;
|
|
1244
1403
|
directory?: string;
|
|
1245
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<
|
|
1404
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SkillDisableResponses, unknown, ThrowOnError, "fields">;
|
|
1246
1405
|
}
|
|
1247
1406
|
export declare class Lsp extends HeyApiClient {
|
|
1248
1407
|
/**
|
|
@@ -1326,6 +1485,8 @@ export declare class CyberstrikeClient extends HeyApiClient {
|
|
|
1326
1485
|
get command(): Command;
|
|
1327
1486
|
private _app?;
|
|
1328
1487
|
get app(): App;
|
|
1488
|
+
private _skill?;
|
|
1489
|
+
get skill(): Skill;
|
|
1329
1490
|
private _lsp?;
|
|
1330
1491
|
get lsp(): Lsp;
|
|
1331
1492
|
private _formatter?;
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -610,6 +610,83 @@ export class Session extends HeyApiClient {
|
|
|
610
610
|
...params,
|
|
611
611
|
});
|
|
612
612
|
}
|
|
613
|
+
/**
|
|
614
|
+
* Get ingest queue status
|
|
615
|
+
*
|
|
616
|
+
* Retrieve the current ingest-queue state for all sessions (paused flag and pending count). Sessions with no active queue are omitted.
|
|
617
|
+
*/
|
|
618
|
+
queueStatus(parameters, options) {
|
|
619
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
|
|
620
|
+
return (options?.client ?? this.client).get({
|
|
621
|
+
url: "/session/queue/status",
|
|
622
|
+
...options,
|
|
623
|
+
...params,
|
|
624
|
+
});
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* Launch a hackbrowser crawl
|
|
628
|
+
*
|
|
629
|
+
* Start a hackbrowser crawl for a session from an interactive entry point (TUI slash, CLI subcommand). Same backend as the LLM-callable hackbrowser tool — agent invocation, slash, and CLI all share this surface. Returns a KickOffResult; captures stream into the session asynchronously.
|
|
630
|
+
*/
|
|
631
|
+
hackbrowserLaunch(parameters, options) {
|
|
632
|
+
const params = buildClientParams([parameters], [
|
|
633
|
+
{
|
|
634
|
+
args: [
|
|
635
|
+
{ in: "path", key: "sessionID" },
|
|
636
|
+
{ in: "query", key: "directory" },
|
|
637
|
+
{ in: "body", key: "target" },
|
|
638
|
+
{ in: "body", key: "credentials" },
|
|
639
|
+
{ in: "body", key: "scope" },
|
|
640
|
+
{ in: "body", key: "exclude" },
|
|
641
|
+
{ in: "body", key: "steps" },
|
|
642
|
+
{ in: "body", key: "headless" },
|
|
643
|
+
],
|
|
644
|
+
},
|
|
645
|
+
]);
|
|
646
|
+
return (options?.client ?? this.client).post({
|
|
647
|
+
url: "/session/{sessionID}/hackbrowser/launch",
|
|
648
|
+
...options,
|
|
649
|
+
...params,
|
|
650
|
+
headers: {
|
|
651
|
+
"Content-Type": "application/json",
|
|
652
|
+
...options?.headers,
|
|
653
|
+
...params.headers,
|
|
654
|
+
},
|
|
655
|
+
});
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* Stop the active hackbrowser run for a session
|
|
659
|
+
*
|
|
660
|
+
* Cancels an in-flight hackbrowser crawl. The agent finishes the current page's pending tasks (graceful exit), closes the browser, and transitions HackbrowserStatus to completed with whatever was captured so far. Returns false when no hackbrowser run is active for this session.
|
|
661
|
+
*/
|
|
662
|
+
hackbrowserStop(parameters, options) {
|
|
663
|
+
const params = buildClientParams([parameters], [
|
|
664
|
+
{
|
|
665
|
+
args: [
|
|
666
|
+
{ in: "path", key: "sessionID" },
|
|
667
|
+
{ in: "query", key: "directory" },
|
|
668
|
+
],
|
|
669
|
+
},
|
|
670
|
+
]);
|
|
671
|
+
return (options?.client ?? this.client).post({
|
|
672
|
+
url: "/session/{sessionID}/hackbrowser/stop",
|
|
673
|
+
...options,
|
|
674
|
+
...params,
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* Get hackbrowser status
|
|
679
|
+
*
|
|
680
|
+
* Retrieve the current hackbrowser run state for all sessions (phase, page/endpoint counters, errors). Used by the TUI sidebar bootstrap. Sessions with no hackbrowser run are omitted.
|
|
681
|
+
*/
|
|
682
|
+
hackbrowserStatus(parameters, options) {
|
|
683
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
|
|
684
|
+
return (options?.client ?? this.client).get({
|
|
685
|
+
url: "/session/hackbrowser/status",
|
|
686
|
+
...options,
|
|
687
|
+
...params,
|
|
688
|
+
});
|
|
689
|
+
}
|
|
613
690
|
/**
|
|
614
691
|
* Delete session
|
|
615
692
|
*
|
|
@@ -953,6 +1030,12 @@ export class Session extends HeyApiClient {
|
|
|
953
1030
|
{ in: "body", key: "credential_id" },
|
|
954
1031
|
{ in: "body", key: "credential" },
|
|
955
1032
|
{ in: "body", key: "response" },
|
|
1033
|
+
{ in: "body", key: "trigger_element" },
|
|
1034
|
+
{ in: "body", key: "element_roles" },
|
|
1035
|
+
{ in: "body", key: "ui_context" },
|
|
1036
|
+
{ in: "body", key: "page_url" },
|
|
1037
|
+
{ in: "body", key: "page_visited_by" },
|
|
1038
|
+
{ in: "body", key: "scheme" },
|
|
956
1039
|
],
|
|
957
1040
|
},
|
|
958
1041
|
]);
|
|
@@ -1041,6 +1124,46 @@ export class Session extends HeyApiClient {
|
|
|
1041
1124
|
...params,
|
|
1042
1125
|
});
|
|
1043
1126
|
}
|
|
1127
|
+
/**
|
|
1128
|
+
* Pause ingest queue
|
|
1129
|
+
*
|
|
1130
|
+
* Pause the ingest queue for a session. The current in-flight ingest finishes; the next one waits until queue/resume is called. Other flows (chat input, abort) are unaffected.
|
|
1131
|
+
*/
|
|
1132
|
+
queuePause(parameters, options) {
|
|
1133
|
+
const params = buildClientParams([parameters], [
|
|
1134
|
+
{
|
|
1135
|
+
args: [
|
|
1136
|
+
{ in: "path", key: "sessionID" },
|
|
1137
|
+
{ in: "query", key: "directory" },
|
|
1138
|
+
],
|
|
1139
|
+
},
|
|
1140
|
+
]);
|
|
1141
|
+
return (options?.client ?? this.client).post({
|
|
1142
|
+
url: "/session/{sessionID}/queue/pause",
|
|
1143
|
+
...options,
|
|
1144
|
+
...params,
|
|
1145
|
+
});
|
|
1146
|
+
}
|
|
1147
|
+
/**
|
|
1148
|
+
* Resume ingest queue
|
|
1149
|
+
*
|
|
1150
|
+
* Resume the ingest queue for a session. Tasks queued while paused start processing in original order.
|
|
1151
|
+
*/
|
|
1152
|
+
queueResume(parameters, options) {
|
|
1153
|
+
const params = buildClientParams([parameters], [
|
|
1154
|
+
{
|
|
1155
|
+
args: [
|
|
1156
|
+
{ in: "path", key: "sessionID" },
|
|
1157
|
+
{ in: "query", key: "directory" },
|
|
1158
|
+
],
|
|
1159
|
+
},
|
|
1160
|
+
]);
|
|
1161
|
+
return (options?.client ?? this.client).post({
|
|
1162
|
+
url: "/session/{sessionID}/queue/resume",
|
|
1163
|
+
...options,
|
|
1164
|
+
...params,
|
|
1165
|
+
});
|
|
1166
|
+
}
|
|
1044
1167
|
/**
|
|
1045
1168
|
* Unshare session
|
|
1046
1169
|
*
|
|
@@ -1170,6 +1293,7 @@ export class Session extends HeyApiClient {
|
|
|
1170
1293
|
{ in: "body", key: "format" },
|
|
1171
1294
|
{ in: "body", key: "system" },
|
|
1172
1295
|
{ in: "body", key: "variant" },
|
|
1296
|
+
{ in: "body", key: "excludeHistory" },
|
|
1173
1297
|
{ in: "body", key: "parts" },
|
|
1174
1298
|
],
|
|
1175
1299
|
},
|
|
@@ -1225,6 +1349,7 @@ export class Session extends HeyApiClient {
|
|
|
1225
1349
|
{ in: "body", key: "format" },
|
|
1226
1350
|
{ in: "body", key: "system" },
|
|
1227
1351
|
{ in: "body", key: "variant" },
|
|
1352
|
+
{ in: "body", key: "excludeHistory" },
|
|
1228
1353
|
{ in: "body", key: "parts" },
|
|
1229
1354
|
],
|
|
1230
1355
|
},
|
|
@@ -2415,12 +2540,14 @@ export class App extends HeyApiClient {
|
|
|
2415
2540
|
...params,
|
|
2416
2541
|
});
|
|
2417
2542
|
}
|
|
2543
|
+
}
|
|
2544
|
+
export class Skill extends HeyApiClient {
|
|
2418
2545
|
/**
|
|
2419
2546
|
* List skills
|
|
2420
2547
|
*
|
|
2421
|
-
* Get
|
|
2548
|
+
* Get all available skills with verification status.
|
|
2422
2549
|
*/
|
|
2423
|
-
|
|
2550
|
+
list(parameters, options) {
|
|
2424
2551
|
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
|
|
2425
2552
|
return (options?.client ?? this.client).get({
|
|
2426
2553
|
url: "/skill",
|
|
@@ -2428,6 +2555,193 @@ export class App extends HeyApiClient {
|
|
|
2428
2555
|
...params,
|
|
2429
2556
|
});
|
|
2430
2557
|
}
|
|
2558
|
+
/**
|
|
2559
|
+
* Search skills
|
|
2560
|
+
*
|
|
2561
|
+
* Search skills by keyword, tech stack, CWE, or category.
|
|
2562
|
+
*/
|
|
2563
|
+
search(parameters, options) {
|
|
2564
|
+
const params = buildClientParams([parameters], [
|
|
2565
|
+
{
|
|
2566
|
+
args: [
|
|
2567
|
+
{ in: "query", key: "directory" },
|
|
2568
|
+
{ in: "query", key: "q" },
|
|
2569
|
+
{ in: "query", key: "tech" },
|
|
2570
|
+
{ in: "query", key: "cwe" },
|
|
2571
|
+
{ in: "query", key: "category" },
|
|
2572
|
+
{ in: "query", key: "tag" },
|
|
2573
|
+
],
|
|
2574
|
+
},
|
|
2575
|
+
]);
|
|
2576
|
+
return (options?.client ?? this.client).get({
|
|
2577
|
+
url: "/skill/search",
|
|
2578
|
+
...options,
|
|
2579
|
+
...params,
|
|
2580
|
+
});
|
|
2581
|
+
}
|
|
2582
|
+
/**
|
|
2583
|
+
* Get loaded skills
|
|
2584
|
+
*
|
|
2585
|
+
* Get skills currently loaded in agent context.
|
|
2586
|
+
*/
|
|
2587
|
+
context(parameters, options) {
|
|
2588
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
|
|
2589
|
+
return (options?.client ?? this.client).get({
|
|
2590
|
+
url: "/skill/context",
|
|
2591
|
+
...options,
|
|
2592
|
+
...params,
|
|
2593
|
+
});
|
|
2594
|
+
}
|
|
2595
|
+
/**
|
|
2596
|
+
* Kill chain analysis
|
|
2597
|
+
*
|
|
2598
|
+
* Analyze findings for kill chain opportunities.
|
|
2599
|
+
*/
|
|
2600
|
+
chain(parameters, options) {
|
|
2601
|
+
const params = buildClientParams([parameters], [
|
|
2602
|
+
{
|
|
2603
|
+
args: [
|
|
2604
|
+
{ in: "query", key: "directory" },
|
|
2605
|
+
{ in: "body", key: "findings" },
|
|
2606
|
+
],
|
|
2607
|
+
},
|
|
2608
|
+
]);
|
|
2609
|
+
return (options?.client ?? this.client).post({
|
|
2610
|
+
url: "/skill/chain",
|
|
2611
|
+
...options,
|
|
2612
|
+
...params,
|
|
2613
|
+
headers: {
|
|
2614
|
+
"Content-Type": "application/json",
|
|
2615
|
+
...options?.headers,
|
|
2616
|
+
...params.headers,
|
|
2617
|
+
},
|
|
2618
|
+
});
|
|
2619
|
+
}
|
|
2620
|
+
/**
|
|
2621
|
+
* Remove a skill
|
|
2622
|
+
*
|
|
2623
|
+
* Remove a locally cached remote skill.
|
|
2624
|
+
*/
|
|
2625
|
+
remove(parameters, options) {
|
|
2626
|
+
const params = buildClientParams([parameters], [
|
|
2627
|
+
{
|
|
2628
|
+
args: [
|
|
2629
|
+
{ in: "path", key: "name" },
|
|
2630
|
+
{ in: "query", key: "directory" },
|
|
2631
|
+
],
|
|
2632
|
+
},
|
|
2633
|
+
]);
|
|
2634
|
+
return (options?.client ?? this.client).delete({
|
|
2635
|
+
url: "/skill/{name}",
|
|
2636
|
+
...options,
|
|
2637
|
+
...params,
|
|
2638
|
+
});
|
|
2639
|
+
}
|
|
2640
|
+
/**
|
|
2641
|
+
* Get skill detail
|
|
2642
|
+
*
|
|
2643
|
+
* Get a single skill with full content.
|
|
2644
|
+
*/
|
|
2645
|
+
get(parameters, options) {
|
|
2646
|
+
const params = buildClientParams([parameters], [
|
|
2647
|
+
{
|
|
2648
|
+
args: [
|
|
2649
|
+
{ in: "path", key: "name" },
|
|
2650
|
+
{ in: "query", key: "directory" },
|
|
2651
|
+
],
|
|
2652
|
+
},
|
|
2653
|
+
]);
|
|
2654
|
+
return (options?.client ?? this.client).get({
|
|
2655
|
+
url: "/skill/{name}",
|
|
2656
|
+
...options,
|
|
2657
|
+
...params,
|
|
2658
|
+
});
|
|
2659
|
+
}
|
|
2660
|
+
/**
|
|
2661
|
+
* Verify skill integrity
|
|
2662
|
+
*
|
|
2663
|
+
* Re-verify a skill's SHA-256 hash and signature.
|
|
2664
|
+
*/
|
|
2665
|
+
verify(parameters, options) {
|
|
2666
|
+
const params = buildClientParams([parameters], [
|
|
2667
|
+
{
|
|
2668
|
+
args: [
|
|
2669
|
+
{ in: "path", key: "name" },
|
|
2670
|
+
{ in: "query", key: "directory" },
|
|
2671
|
+
],
|
|
2672
|
+
},
|
|
2673
|
+
]);
|
|
2674
|
+
return (options?.client ?? this.client).post({
|
|
2675
|
+
url: "/skill/{name}/verify",
|
|
2676
|
+
...options,
|
|
2677
|
+
...params,
|
|
2678
|
+
});
|
|
2679
|
+
}
|
|
2680
|
+
/**
|
|
2681
|
+
* Install skill from URL
|
|
2682
|
+
*
|
|
2683
|
+
* Download and install a skill from a remote URL or registry.
|
|
2684
|
+
*/
|
|
2685
|
+
install(parameters, options) {
|
|
2686
|
+
const params = buildClientParams([parameters], [
|
|
2687
|
+
{
|
|
2688
|
+
args: [
|
|
2689
|
+
{ in: "query", key: "directory" },
|
|
2690
|
+
{ in: "body", key: "url" },
|
|
2691
|
+
],
|
|
2692
|
+
},
|
|
2693
|
+
]);
|
|
2694
|
+
return (options?.client ?? this.client).post({
|
|
2695
|
+
url: "/skill/install",
|
|
2696
|
+
...options,
|
|
2697
|
+
...params,
|
|
2698
|
+
headers: {
|
|
2699
|
+
"Content-Type": "application/json",
|
|
2700
|
+
...options?.headers,
|
|
2701
|
+
...params.headers,
|
|
2702
|
+
},
|
|
2703
|
+
});
|
|
2704
|
+
}
|
|
2705
|
+
/**
|
|
2706
|
+
* Enable a skill
|
|
2707
|
+
*
|
|
2708
|
+
* Remove a skill from the disabled list in config.
|
|
2709
|
+
*/
|
|
2710
|
+
enable(parameters, options) {
|
|
2711
|
+
const params = buildClientParams([parameters], [
|
|
2712
|
+
{
|
|
2713
|
+
args: [
|
|
2714
|
+
{ in: "path", key: "name" },
|
|
2715
|
+
{ in: "query", key: "directory" },
|
|
2716
|
+
],
|
|
2717
|
+
},
|
|
2718
|
+
]);
|
|
2719
|
+
return (options?.client ?? this.client).post({
|
|
2720
|
+
url: "/skill/{name}/enable",
|
|
2721
|
+
...options,
|
|
2722
|
+
...params,
|
|
2723
|
+
});
|
|
2724
|
+
}
|
|
2725
|
+
/**
|
|
2726
|
+
* Disable a skill
|
|
2727
|
+
*
|
|
2728
|
+
* Add a skill to the disabled list in config.
|
|
2729
|
+
*/
|
|
2730
|
+
disable(parameters, options) {
|
|
2731
|
+
const params = buildClientParams([parameters], [
|
|
2732
|
+
{
|
|
2733
|
+
args: [
|
|
2734
|
+
{ in: "path", key: "name" },
|
|
2735
|
+
{ in: "query", key: "directory" },
|
|
2736
|
+
],
|
|
2737
|
+
},
|
|
2738
|
+
]);
|
|
2739
|
+
return (options?.client ?? this.client).post({
|
|
2740
|
+
url: "/skill/{name}/disable",
|
|
2741
|
+
...options,
|
|
2742
|
+
...params,
|
|
2743
|
+
});
|
|
2744
|
+
}
|
|
2431
2745
|
}
|
|
2432
2746
|
export class Lsp extends HeyApiClient {
|
|
2433
2747
|
/**
|
|
@@ -2572,6 +2886,10 @@ export class CyberstrikeClient extends HeyApiClient {
|
|
|
2572
2886
|
get app() {
|
|
2573
2887
|
return (this._app ??= new App({ client: this.client }));
|
|
2574
2888
|
}
|
|
2889
|
+
_skill;
|
|
2890
|
+
get skill() {
|
|
2891
|
+
return (this._skill ??= new Skill({ client: this.client }));
|
|
2892
|
+
}
|
|
2575
2893
|
_lsp;
|
|
2576
2894
|
get lsp() {
|
|
2577
2895
|
return (this._lsp ??= new Lsp({ client: this.client }));
|