@taico/client 0.2.9 → 0.2.12
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/contracts/types.d.ts +828 -595
- package/dist/src/v1/client/index.d.ts +6 -0
- package/dist/src/v1/client/index.js +4 -0
- package/dist/src/v1/client/models/AgentTemplateCatalogResponseDto.d.ts +6 -0
- package/dist/src/v1/client/models/AgentTemplateCatalogResponseDto.js +1 -0
- package/dist/src/v1/client/models/AgentTemplateDto.d.ts +63 -0
- package/dist/src/v1/client/models/AgentTemplateDto.js +15 -0
- package/dist/src/v1/client/models/AgentTemplateHarnessDto.d.ts +29 -0
- package/dist/src/v1/client/models/AgentTemplateHarnessDto.js +15 -0
- package/dist/src/v1/client/models/AgentTemplateModelOptionDto.d.ts +22 -0
- package/dist/src/v1/client/models/AgentTemplateModelOptionDto.js +1 -0
- package/dist/src/v1/client/models/ChatProviderResponseDto.d.ts +2 -1
- package/dist/src/v1/client/models/ChatProviderResponseDto.js +1 -0
- package/dist/src/v1/client/models/CreateChatProviderDto.d.ts +2 -1
- package/dist/src/v1/client/models/CreateChatProviderDto.js +1 -0
- package/dist/src/v1/client/models/UserResponseDto.d.ts +10 -2
- package/dist/src/v1/client/models/UserResponseDto.js +9 -0
- package/dist/src/v1/client/models/UserWalkthroughStatusResponseDto.d.ts +18 -0
- package/dist/src/v1/client/models/UserWalkthroughStatusResponseDto.js +9 -0
- package/dist/src/v1/client/services/AgentService.d.ts +7 -0
- package/dist/src/v1/client/services/AgentService.js +11 -0
- package/dist/src/v1/client/services/WalkthroughService.d.ts +17 -0
- package/dist/src/v1/client/services/WalkthroughService.js +26 -0
- package/dist/src/v2/agent-resource.d.ts +5 -1
- package/dist/src/v2/agent-resource.js +4 -0
- package/dist/src/v2/client.d.ts +4 -2
- package/dist/src/v2/client.js +6 -3
- package/dist/src/v2/types.d.ts +92 -50
- package/dist/src/v2/walkthrough-resource.d.ts +13 -0
- package/dist/src/v2/walkthrough-resource.js +14 -0
- package/package.json +1 -1
|
@@ -11,6 +11,10 @@ export type { AgentListResponseDto } from './models/AgentListResponseDto.js';
|
|
|
11
11
|
export { AgentResponseDto } from './models/AgentResponseDto.js';
|
|
12
12
|
export type { AgentRunListResponseDto } from './models/AgentRunListResponseDto.js';
|
|
13
13
|
export type { AgentRunResponseDto } from './models/AgentRunResponseDto.js';
|
|
14
|
+
export type { AgentTemplateCatalogResponseDto } from './models/AgentTemplateCatalogResponseDto.js';
|
|
15
|
+
export { AgentTemplateDto } from './models/AgentTemplateDto.js';
|
|
16
|
+
export { AgentTemplateHarnessDto } from './models/AgentTemplateHarnessDto.js';
|
|
17
|
+
export type { AgentTemplateModelOptionDto } from './models/AgentTemplateModelOptionDto.js';
|
|
14
18
|
export type { AgentToolPermissionResponseDto } from './models/AgentToolPermissionResponseDto.js';
|
|
15
19
|
export type { AgentToolPermissionScopeResponseDto } from './models/AgentToolPermissionScopeResponseDto.js';
|
|
16
20
|
export { AgentToolPermissionServerResponseDto } from './models/AgentToolPermissionServerResponseDto.js';
|
|
@@ -134,6 +138,7 @@ export type { UpdateThreadDto } from './models/UpdateThreadDto.js';
|
|
|
134
138
|
export type { UpdateThreadStateDto } from './models/UpdateThreadStateDto.js';
|
|
135
139
|
export type { UpsertAgentToolPermissionDto } from './models/UpsertAgentToolPermissionDto.js';
|
|
136
140
|
export { UserResponseDto } from './models/UserResponseDto.js';
|
|
141
|
+
export { UserWalkthroughStatusResponseDto } from './models/UserWalkthroughStatusResponseDto.js';
|
|
137
142
|
export type { WorkerResponseDto } from './models/WorkerResponseDto.js';
|
|
138
143
|
export { ActorsService } from './services/ActorsService.js';
|
|
139
144
|
export { AgentService } from './services/AgentService.js';
|
|
@@ -157,5 +162,6 @@ export { TaskService } from './services/TaskService.js';
|
|
|
157
162
|
export { TaskBlueprintsService } from './services/TaskBlueprintsService.js';
|
|
158
163
|
export { ThreadsService } from './services/ThreadsService.js';
|
|
159
164
|
export { ToolsService } from './services/ToolsService.js';
|
|
165
|
+
export { WalkthroughService } from './services/WalkthroughService.js';
|
|
160
166
|
export { WebAuthenticationService } from './services/WebAuthenticationService.js';
|
|
161
167
|
export { WorkersService } from './services/WorkersService.js';
|
|
@@ -8,6 +8,8 @@ export { OpenAPI } from './core/OpenAPI.js';
|
|
|
8
8
|
export { ActiveTaskExecutionResponseDto } from './models/ActiveTaskExecutionResponseDto.js';
|
|
9
9
|
export { ActorResponseDto } from './models/ActorResponseDto.js';
|
|
10
10
|
export { AgentResponseDto } from './models/AgentResponseDto.js';
|
|
11
|
+
export { AgentTemplateDto } from './models/AgentTemplateDto.js';
|
|
12
|
+
export { AgentTemplateHarnessDto } from './models/AgentTemplateHarnessDto.js';
|
|
11
13
|
export { AgentToolPermissionServerResponseDto } from './models/AgentToolPermissionServerResponseDto.js';
|
|
12
14
|
export { AuthJourneyResponseDto } from './models/AuthJourneyResponseDto.js';
|
|
13
15
|
export { ChangeTaskStatusDto } from './models/ChangeTaskStatusDto.js';
|
|
@@ -35,6 +37,7 @@ export { TokenRequestDto } from './models/TokenRequestDto.js';
|
|
|
35
37
|
export { TokenResponseDto } from './models/TokenResponseDto.js';
|
|
36
38
|
export { UpdateServerDto } from './models/UpdateServerDto.js';
|
|
37
39
|
export { UserResponseDto } from './models/UserResponseDto.js';
|
|
40
|
+
export { UserWalkthroughStatusResponseDto } from './models/UserWalkthroughStatusResponseDto.js';
|
|
38
41
|
export { ActorsService } from './services/ActorsService.js';
|
|
39
42
|
export { AgentService } from './services/AgentService.js';
|
|
40
43
|
export { AgentExecutionTokensService } from './services/AgentExecutionTokensService.js';
|
|
@@ -57,5 +60,6 @@ export { TaskService } from './services/TaskService.js';
|
|
|
57
60
|
export { TaskBlueprintsService } from './services/TaskBlueprintsService.js';
|
|
58
61
|
export { ThreadsService } from './services/ThreadsService.js';
|
|
59
62
|
export { ToolsService } from './services/ToolsService.js';
|
|
63
|
+
export { WalkthroughService } from './services/WalkthroughService.js';
|
|
60
64
|
export { WebAuthenticationService } from './services/WebAuthenticationService.js';
|
|
61
65
|
export { WorkersService } from './services/WorkersService.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AgentTemplateDto } from './AgentTemplateDto.js';
|
|
2
|
+
import type { AgentTemplateHarnessDto } from './AgentTemplateHarnessDto.js';
|
|
3
|
+
export type AgentTemplateCatalogResponseDto = {
|
|
4
|
+
templates: Array<AgentTemplateDto>;
|
|
5
|
+
harnesses: Array<AgentTemplateHarnessDto>;
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export type AgentTemplateDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Stable template identifier.
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* Human-readable template name.
|
|
8
|
+
*/
|
|
9
|
+
label: string;
|
|
10
|
+
/**
|
|
11
|
+
* Short explanation of what this template configures.
|
|
12
|
+
*/
|
|
13
|
+
description: string;
|
|
14
|
+
/**
|
|
15
|
+
* Default harness type for this template.
|
|
16
|
+
*/
|
|
17
|
+
type?: AgentTemplateDto.type;
|
|
18
|
+
/**
|
|
19
|
+
* Default provider ID for this template.
|
|
20
|
+
*/
|
|
21
|
+
providerId?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Default model ID for this template.
|
|
24
|
+
*/
|
|
25
|
+
modelId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Default system prompt for this template.
|
|
28
|
+
*/
|
|
29
|
+
systemPrompt: string;
|
|
30
|
+
/**
|
|
31
|
+
* Default agent description.
|
|
32
|
+
*/
|
|
33
|
+
agentDescription?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Default statuses that trigger the agent.
|
|
36
|
+
*/
|
|
37
|
+
statusTriggers: Array<'NOT_STARTED' | 'IN_PROGRESS' | 'FOR_REVIEW' | 'DONE'>;
|
|
38
|
+
/**
|
|
39
|
+
* Default tag names that filter agent triggers.
|
|
40
|
+
*/
|
|
41
|
+
tagTriggers: Array<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Default avatar URL for this template.
|
|
44
|
+
*/
|
|
45
|
+
avatarUrl?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Default concurrency limit for this template.
|
|
48
|
+
*/
|
|
49
|
+
concurrencyLimit?: number;
|
|
50
|
+
};
|
|
51
|
+
export declare namespace AgentTemplateDto {
|
|
52
|
+
/**
|
|
53
|
+
* Default harness type for this template.
|
|
54
|
+
*/
|
|
55
|
+
enum type {
|
|
56
|
+
CLAUDE = "claude",
|
|
57
|
+
CODEX = "codex",
|
|
58
|
+
OPENCODE = "opencode",
|
|
59
|
+
ADK = "adk",
|
|
60
|
+
GITHUBCOPILOT = "githubcopilot",
|
|
61
|
+
OTHER = "other"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export var AgentTemplateDto;
|
|
2
|
+
(function (AgentTemplateDto) {
|
|
3
|
+
/**
|
|
4
|
+
* Default harness type for this template.
|
|
5
|
+
*/
|
|
6
|
+
let type;
|
|
7
|
+
(function (type) {
|
|
8
|
+
type["CLAUDE"] = "claude";
|
|
9
|
+
type["CODEX"] = "codex";
|
|
10
|
+
type["OPENCODE"] = "opencode";
|
|
11
|
+
type["ADK"] = "adk";
|
|
12
|
+
type["GITHUBCOPILOT"] = "githubcopilot";
|
|
13
|
+
type["OTHER"] = "other";
|
|
14
|
+
})(type = AgentTemplateDto.type || (AgentTemplateDto.type = {}));
|
|
15
|
+
})(AgentTemplateDto || (AgentTemplateDto = {}));
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AgentTemplateModelOptionDto } from './AgentTemplateModelOptionDto.js';
|
|
2
|
+
export type AgentTemplateHarnessDto = {
|
|
3
|
+
/**
|
|
4
|
+
* Agent harness type.
|
|
5
|
+
*/
|
|
6
|
+
type: AgentTemplateHarnessDto.type;
|
|
7
|
+
/**
|
|
8
|
+
* Human-readable harness name.
|
|
9
|
+
*/
|
|
10
|
+
label: string;
|
|
11
|
+
/**
|
|
12
|
+
* Short explanation of when to use this harness.
|
|
13
|
+
*/
|
|
14
|
+
description: string;
|
|
15
|
+
modelOptions: Array<AgentTemplateModelOptionDto>;
|
|
16
|
+
};
|
|
17
|
+
export declare namespace AgentTemplateHarnessDto {
|
|
18
|
+
/**
|
|
19
|
+
* Agent harness type.
|
|
20
|
+
*/
|
|
21
|
+
enum type {
|
|
22
|
+
CLAUDE = "claude",
|
|
23
|
+
CODEX = "codex",
|
|
24
|
+
OPENCODE = "opencode",
|
|
25
|
+
ADK = "adk",
|
|
26
|
+
GITHUBCOPILOT = "githubcopilot",
|
|
27
|
+
OTHER = "other"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export var AgentTemplateHarnessDto;
|
|
2
|
+
(function (AgentTemplateHarnessDto) {
|
|
3
|
+
/**
|
|
4
|
+
* Agent harness type.
|
|
5
|
+
*/
|
|
6
|
+
let type;
|
|
7
|
+
(function (type) {
|
|
8
|
+
type["CLAUDE"] = "claude";
|
|
9
|
+
type["CODEX"] = "codex";
|
|
10
|
+
type["OPENCODE"] = "opencode";
|
|
11
|
+
type["ADK"] = "adk";
|
|
12
|
+
type["GITHUBCOPILOT"] = "githubcopilot";
|
|
13
|
+
type["OTHER"] = "other";
|
|
14
|
+
})(type = AgentTemplateHarnessDto.type || (AgentTemplateHarnessDto.type = {}));
|
|
15
|
+
})(AgentTemplateHarnessDto || (AgentTemplateHarnessDto = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type AgentTemplateModelOptionDto = {
|
|
2
|
+
/**
|
|
3
|
+
* Stable option identifier used by the UI.
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* Human-readable model option label.
|
|
8
|
+
*/
|
|
9
|
+
label: string;
|
|
10
|
+
/**
|
|
11
|
+
* Provider ID submitted when this option is selected.
|
|
12
|
+
*/
|
|
13
|
+
providerId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Model ID submitted when this option is selected.
|
|
16
|
+
*/
|
|
17
|
+
modelId?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Whether this represents the runtime default model.
|
|
20
|
+
*/
|
|
21
|
+
isDefault: boolean;
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -20,9 +20,9 @@ export type UserResponseDto = {
|
|
|
20
20
|
*/
|
|
21
21
|
actorId: string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* How onboarding UI should be shown for this user (full page, banner, or off)
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
onboardingDisplayMode: UserResponseDto.onboardingDisplayMode;
|
|
26
26
|
};
|
|
27
27
|
export declare namespace UserResponseDto {
|
|
28
28
|
/**
|
|
@@ -32,4 +32,12 @@ export declare namespace UserResponseDto {
|
|
|
32
32
|
ADMIN = "admin",
|
|
33
33
|
STANDARD = "standard"
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* How onboarding UI should be shown for this user (full page, banner, or off)
|
|
37
|
+
*/
|
|
38
|
+
enum onboardingDisplayMode {
|
|
39
|
+
FULL_PAGE = "FULL_PAGE",
|
|
40
|
+
BANNER = "BANNER",
|
|
41
|
+
OFF = "OFF"
|
|
42
|
+
}
|
|
35
43
|
}
|
|
@@ -8,4 +8,13 @@ export var UserResponseDto;
|
|
|
8
8
|
role["ADMIN"] = "admin";
|
|
9
9
|
role["STANDARD"] = "standard";
|
|
10
10
|
})(role = UserResponseDto.role || (UserResponseDto.role = {}));
|
|
11
|
+
/**
|
|
12
|
+
* How onboarding UI should be shown for this user (full page, banner, or off)
|
|
13
|
+
*/
|
|
14
|
+
let onboardingDisplayMode;
|
|
15
|
+
(function (onboardingDisplayMode) {
|
|
16
|
+
onboardingDisplayMode["FULL_PAGE"] = "FULL_PAGE";
|
|
17
|
+
onboardingDisplayMode["BANNER"] = "BANNER";
|
|
18
|
+
onboardingDisplayMode["OFF"] = "OFF";
|
|
19
|
+
})(onboardingDisplayMode = UserResponseDto.onboardingDisplayMode || (UserResponseDto.onboardingDisplayMode = {}));
|
|
11
20
|
})(UserResponseDto || (UserResponseDto = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type UserWalkthroughStatusResponseDto = {
|
|
2
|
+
workerConfigured: boolean;
|
|
3
|
+
agentCreated: boolean;
|
|
4
|
+
taskCreated: boolean;
|
|
5
|
+
projectCreated: boolean;
|
|
6
|
+
projectConfigured: boolean;
|
|
7
|
+
contextBlockCreated: boolean;
|
|
8
|
+
threadConfigured: boolean;
|
|
9
|
+
taskWithProjectCreated: boolean;
|
|
10
|
+
onboardingDisplayMode: UserWalkthroughStatusResponseDto.onboardingDisplayMode;
|
|
11
|
+
};
|
|
12
|
+
export declare namespace UserWalkthroughStatusResponseDto {
|
|
13
|
+
enum onboardingDisplayMode {
|
|
14
|
+
FULL_PAGE = "FULL_PAGE",
|
|
15
|
+
BANNER = "BANNER",
|
|
16
|
+
OFF = "OFF"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export var UserWalkthroughStatusResponseDto;
|
|
2
|
+
(function (UserWalkthroughStatusResponseDto) {
|
|
3
|
+
let onboardingDisplayMode;
|
|
4
|
+
(function (onboardingDisplayMode) {
|
|
5
|
+
onboardingDisplayMode["FULL_PAGE"] = "FULL_PAGE";
|
|
6
|
+
onboardingDisplayMode["BANNER"] = "BANNER";
|
|
7
|
+
onboardingDisplayMode["OFF"] = "OFF";
|
|
8
|
+
})(onboardingDisplayMode = UserWalkthroughStatusResponseDto.onboardingDisplayMode || (UserWalkthroughStatusResponseDto.onboardingDisplayMode = {}));
|
|
9
|
+
})(UserWalkthroughStatusResponseDto || (UserWalkthroughStatusResponseDto = {}));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AgentListResponseDto } from '../models/AgentListResponseDto.js';
|
|
2
2
|
import type { AgentResponseDto } from '../models/AgentResponseDto.js';
|
|
3
|
+
import type { AgentTemplateCatalogResponseDto } from '../models/AgentTemplateCatalogResponseDto.js';
|
|
3
4
|
import type { AgentToolPermissionResponseDto } from '../models/AgentToolPermissionResponseDto.js';
|
|
4
5
|
import type { CreateAgentDto } from '../models/CreateAgentDto.js';
|
|
5
6
|
import type { PatchAgentDto } from '../models/PatchAgentDto.js';
|
|
@@ -23,6 +24,12 @@ export declare class AgentService {
|
|
|
23
24
|
* @throws ApiError
|
|
24
25
|
*/
|
|
25
26
|
static agentsControllerListAgents(isActive?: boolean, page?: number, limit?: number, config?: OpenAPIConfig): CancelablePromise<AgentListResponseDto>;
|
|
27
|
+
/**
|
|
28
|
+
* List available agent creation templates
|
|
29
|
+
* @returns AgentTemplateCatalogResponseDto
|
|
30
|
+
* @throws ApiError
|
|
31
|
+
*/
|
|
32
|
+
static agentsControllerListAgentTemplates(config?: OpenAPIConfig): CancelablePromise<AgentTemplateCatalogResponseDto>;
|
|
26
33
|
/**
|
|
27
34
|
* Get an agent by slug
|
|
28
35
|
* @param slug Agent slug
|
|
@@ -34,6 +34,17 @@ export class AgentService {
|
|
|
34
34
|
},
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* List available agent creation templates
|
|
39
|
+
* @returns AgentTemplateCatalogResponseDto
|
|
40
|
+
* @throws ApiError
|
|
41
|
+
*/
|
|
42
|
+
static agentsControllerListAgentTemplates(config = OpenAPI) {
|
|
43
|
+
return __request(config, {
|
|
44
|
+
method: 'GET',
|
|
45
|
+
url: '/api/v1/agents/templates',
|
|
46
|
+
});
|
|
47
|
+
}
|
|
37
48
|
/**
|
|
38
49
|
* Get an agent by slug
|
|
39
50
|
* @param slug Agent slug
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { UserWalkthroughStatusResponseDto } from '../models/UserWalkthroughStatusResponseDto.js';
|
|
2
|
+
import type { CancelablePromise } from '../core/CancelablePromise.js';
|
|
3
|
+
import type { OpenAPIConfig } from '../core/OpenAPI.js';
|
|
4
|
+
export declare class WalkthroughService {
|
|
5
|
+
/**
|
|
6
|
+
* Acknowledge walkthrough — transitions FULL_PAGE display mode to BANNER
|
|
7
|
+
* @returns any Acknowledged
|
|
8
|
+
* @throws ApiError
|
|
9
|
+
*/
|
|
10
|
+
static walkthroughControllerAcknowledge(config?: OpenAPIConfig): CancelablePromise<any>;
|
|
11
|
+
/**
|
|
12
|
+
* Get walkthrough status for the current user
|
|
13
|
+
* @returns UserWalkthroughStatusResponseDto Current walkthrough progress and display mode
|
|
14
|
+
* @throws ApiError
|
|
15
|
+
*/
|
|
16
|
+
static walkthroughControllerGetStatus(config?: OpenAPIConfig): CancelablePromise<UserWalkthroughStatusResponseDto>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
|
+
import { request as __request } from '../core/request.js';
|
|
3
|
+
export class WalkthroughService {
|
|
4
|
+
/**
|
|
5
|
+
* Acknowledge walkthrough — transitions FULL_PAGE display mode to BANNER
|
|
6
|
+
* @returns any Acknowledged
|
|
7
|
+
* @throws ApiError
|
|
8
|
+
*/
|
|
9
|
+
static walkthroughControllerAcknowledge(config = OpenAPI) {
|
|
10
|
+
return __request(config, {
|
|
11
|
+
method: 'POST',
|
|
12
|
+
url: '/api/v1/walkthrough/acknowledge',
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Get walkthrough status for the current user
|
|
17
|
+
* @returns UserWalkthroughStatusResponseDto Current walkthrough progress and display mode
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
static walkthroughControllerGetStatus(config = OpenAPI) {
|
|
21
|
+
return __request(config, {
|
|
22
|
+
method: 'GET',
|
|
23
|
+
url: '/api/v1/walkthrough/status',
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseClient, ClientConfig } from './base-client.js';
|
|
2
|
-
import type { AgentListResponseDto, AgentResponseDto, AgentToolPermissionResponseDto, CreateAgentDto, PatchAgentDto, UpsertAgentToolPermissionDto } from './types.js';
|
|
2
|
+
import type { AgentListResponseDto, AgentResponseDto, AgentTemplateCatalogResponseDto, AgentToolPermissionResponseDto, CreateAgentDto, PatchAgentDto, UpsertAgentToolPermissionDto } from './types.js';
|
|
3
3
|
export declare class AgentResource extends BaseClient {
|
|
4
4
|
constructor(config: ClientConfig);
|
|
5
5
|
/** Create a new agent */
|
|
@@ -14,6 +14,10 @@ export declare class AgentResource extends BaseClient {
|
|
|
14
14
|
limit?: number;
|
|
15
15
|
signal?: AbortSignal;
|
|
16
16
|
}): Promise<AgentListResponseDto>;
|
|
17
|
+
/** List available agent creation templates */
|
|
18
|
+
AgentsController_listAgentTemplates(params?: {
|
|
19
|
+
signal?: AbortSignal;
|
|
20
|
+
}): Promise<AgentTemplateCatalogResponseDto>;
|
|
17
21
|
/** Get an agent by slug */
|
|
18
22
|
AgentsController_getAgentBySlug(params: {
|
|
19
23
|
slug: string;
|
|
@@ -11,6 +11,10 @@ export class AgentResource extends BaseClient {
|
|
|
11
11
|
async AgentsController_listAgents(params) {
|
|
12
12
|
return this.request('GET', '/api/v1/agents', { params: { isActive: params?.isActive, page: params?.page, limit: params?.limit }, signal: params?.signal });
|
|
13
13
|
}
|
|
14
|
+
/** List available agent creation templates */
|
|
15
|
+
async AgentsController_listAgentTemplates(params) {
|
|
16
|
+
return this.request('GET', '/api/v1/agents/templates', { signal: params?.signal });
|
|
17
|
+
}
|
|
14
18
|
/** Get an agent by slug */
|
|
15
19
|
async AgentsController_getAgentBySlug(params) {
|
|
16
20
|
return this.request('GET', `/api/v1/agents/${params.slug}`, { signal: params?.signal });
|
package/dist/src/v2/client.d.ts
CHANGED
|
@@ -14,15 +14,16 @@ import { ThreadsResource } from './threads-resource.js';
|
|
|
14
14
|
import { AgentResource } from './agent-resource.js';
|
|
15
15
|
import { AgentTokensResource } from './agent-tokens-resource.js';
|
|
16
16
|
import { AgentExecutionTokensResource } from './agent-execution-tokens-resource.js';
|
|
17
|
+
import { ContextResource } from './context-resource.js';
|
|
17
18
|
import { ChatProvidersResource } from './chat-providers-resource.js';
|
|
18
19
|
import { SecretsResource } from './secrets-resource.js';
|
|
19
|
-
import { ContextResource } from './context-resource.js';
|
|
20
20
|
import { ExecutionsResource } from './executions-resource.js';
|
|
21
21
|
import { WorkersResource } from './workers-resource.js';
|
|
22
22
|
import { TaskBlueprintsResource } from './task-blueprints-resource.js';
|
|
23
23
|
import { ScheduledTasksResource } from './scheduled-tasks-resource.js';
|
|
24
24
|
import { DiscoveryResource } from './discovery-resource.js';
|
|
25
25
|
import { SearchResource } from './search-resource.js';
|
|
26
|
+
import { WalkthroughResource } from './walkthrough-resource.js';
|
|
26
27
|
export declare class ApiClient {
|
|
27
28
|
readonly app: AppResource;
|
|
28
29
|
readonly meta: MetaResource;
|
|
@@ -39,14 +40,15 @@ export declare class ApiClient {
|
|
|
39
40
|
readonly agent: AgentResource;
|
|
40
41
|
readonly agentTokens: AgentTokensResource;
|
|
41
42
|
readonly agentExecutionTokens: AgentExecutionTokensResource;
|
|
43
|
+
readonly context: ContextResource;
|
|
42
44
|
readonly chatProviders: ChatProvidersResource;
|
|
43
45
|
readonly secrets: SecretsResource;
|
|
44
|
-
readonly context: ContextResource;
|
|
45
46
|
readonly executions: ExecutionsResource;
|
|
46
47
|
readonly workers: WorkersResource;
|
|
47
48
|
readonly taskBlueprints: TaskBlueprintsResource;
|
|
48
49
|
readonly scheduledTasks: ScheduledTasksResource;
|
|
49
50
|
readonly discovery: DiscoveryResource;
|
|
50
51
|
readonly search: SearchResource;
|
|
52
|
+
readonly walkthrough: WalkthroughResource;
|
|
51
53
|
constructor(config: ClientConfig);
|
|
52
54
|
}
|
package/dist/src/v2/client.js
CHANGED
|
@@ -13,15 +13,16 @@ import { ThreadsResource } from './threads-resource.js';
|
|
|
13
13
|
import { AgentResource } from './agent-resource.js';
|
|
14
14
|
import { AgentTokensResource } from './agent-tokens-resource.js';
|
|
15
15
|
import { AgentExecutionTokensResource } from './agent-execution-tokens-resource.js';
|
|
16
|
+
import { ContextResource } from './context-resource.js';
|
|
16
17
|
import { ChatProvidersResource } from './chat-providers-resource.js';
|
|
17
18
|
import { SecretsResource } from './secrets-resource.js';
|
|
18
|
-
import { ContextResource } from './context-resource.js';
|
|
19
19
|
import { ExecutionsResource } from './executions-resource.js';
|
|
20
20
|
import { WorkersResource } from './workers-resource.js';
|
|
21
21
|
import { TaskBlueprintsResource } from './task-blueprints-resource.js';
|
|
22
22
|
import { ScheduledTasksResource } from './scheduled-tasks-resource.js';
|
|
23
23
|
import { DiscoveryResource } from './discovery-resource.js';
|
|
24
24
|
import { SearchResource } from './search-resource.js';
|
|
25
|
+
import { WalkthroughResource } from './walkthrough-resource.js';
|
|
25
26
|
export class ApiClient {
|
|
26
27
|
app;
|
|
27
28
|
meta;
|
|
@@ -38,15 +39,16 @@ export class ApiClient {
|
|
|
38
39
|
agent;
|
|
39
40
|
agentTokens;
|
|
40
41
|
agentExecutionTokens;
|
|
42
|
+
context;
|
|
41
43
|
chatProviders;
|
|
42
44
|
secrets;
|
|
43
|
-
context;
|
|
44
45
|
executions;
|
|
45
46
|
workers;
|
|
46
47
|
taskBlueprints;
|
|
47
48
|
scheduledTasks;
|
|
48
49
|
discovery;
|
|
49
50
|
search;
|
|
51
|
+
walkthrough;
|
|
50
52
|
constructor(config) {
|
|
51
53
|
this.app = new AppResource(config);
|
|
52
54
|
this.meta = new MetaResource(config);
|
|
@@ -63,14 +65,15 @@ export class ApiClient {
|
|
|
63
65
|
this.agent = new AgentResource(config);
|
|
64
66
|
this.agentTokens = new AgentTokensResource(config);
|
|
65
67
|
this.agentExecutionTokens = new AgentExecutionTokensResource(config);
|
|
68
|
+
this.context = new ContextResource(config);
|
|
66
69
|
this.chatProviders = new ChatProvidersResource(config);
|
|
67
70
|
this.secrets = new SecretsResource(config);
|
|
68
|
-
this.context = new ContextResource(config);
|
|
69
71
|
this.executions = new ExecutionsResource(config);
|
|
70
72
|
this.workers = new WorkersResource(config);
|
|
71
73
|
this.taskBlueprints = new TaskBlueprintsResource(config);
|
|
72
74
|
this.scheduledTasks = new ScheduledTasksResource(config);
|
|
73
75
|
this.discovery = new DiscoveryResource(config);
|
|
74
76
|
this.search = new SearchResource(config);
|
|
77
|
+
this.walkthrough = new WalkthroughResource(config);
|
|
75
78
|
}
|
|
76
79
|
}
|