Elffuss BraidHub

kikocis/continue public

main · 1003 BRawPermalink
1import {
2 AssistantUnrolled,
3 ConfigResult,
4 FQSN,
5 FullSlug,
6 SecretResult,
7} from "@continuedev/config-yaml";
8
9/**
10 * Interface for the Continue Hub client.
11 */
12export interface IContinueHubClient {
13 resolveFQSNs(
14 fqsns: FQSN[],
15 orgScopeId: string | null,
16 ): Promise<(SecretResult | undefined)[]>;
17
18 /**
19 * Do a full reload of all assistants used in the organization by the user.
20 */
21 listAssistants(options: {
22 organizationId: string | null;
23 alwaysUseProxy?: boolean;
24 }): Promise<
25 {
26 configResult: ConfigResult<AssistantUnrolled>;
27 ownerSlug: string;
28 packageSlug: string;
29 iconUrl: string;
30 rawYaml: string;
31 }[]
32 >;
33
34 /**
35 * Get the list of FullSlugs (ownerSlug/packageSlug@versionSlug) for all assistant uses in the organization for the user.
36 * Can be used to poll for changes to assistants and then full reload when needed.
37 */
38 listAssistantFullSlugs(
39 organizationId: string | null,
40 ): Promise<FullSlug[] | null>;
41}