@taico/client 0.2.8 → 0.2.11
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 +383 -3
- package/dist/src/v1/client/index.d.ts +9 -0
- package/dist/src/v1/client/index.js +5 -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/ImportBlocksResponseDto.d.ts +6 -0
- package/dist/src/v1/client/models/ImportBlocksResponseDto.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/models/WorkerResponseDto.d.ts +8 -0
- package/dist/src/v1/client/models/WorkerResponseDto.js +1 -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/ContextService.d.ts +19 -0
- package/dist/src/v1/client/services/ContextService.js +28 -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/v1/client/services/WorkersService.d.ts +11 -0
- package/dist/src/v1/client/services/WorkersService.js +15 -0
- package/dist/src/v2/agent-resource.d.ts +5 -1
- package/dist/src/v2/agent-resource.js +6 -2
- package/dist/src/v2/authorization-server-resource.js +3 -3
- package/dist/src/v2/base-client.d.ts +4 -0
- package/dist/src/v2/base-client.js +51 -7
- package/dist/src/v2/chat-providers-resource.js +2 -2
- package/dist/src/v2/client.d.ts +4 -0
- package/dist/src/v2/client.js +6 -0
- package/dist/src/v2/context-resource.d.ts +10 -1
- package/dist/src/v2/context-resource.js +16 -8
- package/dist/src/v2/executions-resource.js +2 -2
- package/dist/src/v2/meta---projects-resource.js +1 -1
- package/dist/src/v2/meta-resource.js +1 -1
- package/dist/src/v2/scheduled-tasks-resource.js +1 -1
- package/dist/src/v2/secrets-resource.js +1 -1
- package/dist/src/v2/task-blueprints-resource.js +1 -1
- package/dist/src/v2/task-resource.js +8 -8
- package/dist/src/v2/threads-resource.js +1 -1
- package/dist/src/v2/types.d.ts +54 -1
- package/dist/src/v2/walkthrough-resource.d.ts +13 -0
- package/dist/src/v2/walkthrough-resource.js +14 -0
- package/dist/src/v2/workers-resource.d.ts +9 -0
- package/dist/src/v2/workers-resource.js +10 -0
- package/package.json +1 -1
|
@@ -17,6 +17,6 @@ export class MetaResource extends BaseClient {
|
|
|
17
17
|
}
|
|
18
18
|
/** Delete a tag from the system */
|
|
19
19
|
async MetaController_deleteTag(params) {
|
|
20
|
-
return this.request('DELETE', `/api/v1/meta/tags/${params.tagId}`, { signal: params?.signal });
|
|
20
|
+
return this.request('DELETE', `/api/v1/meta/tags/${params.tagId}`, { responseType: 'void', signal: params?.signal });
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -21,6 +21,6 @@ export class ScheduledTasksResource extends BaseClient {
|
|
|
21
21
|
}
|
|
22
22
|
/** Delete a scheduled task */
|
|
23
23
|
async ScheduledTasksController_deleteScheduledTask(params) {
|
|
24
|
-
return this.request('DELETE', `/api/v1/scheduled-tasks/${params.id}`, { signal: params?.signal });
|
|
24
|
+
return this.request('DELETE', `/api/v1/scheduled-tasks/${params.id}`, { responseType: 'void', signal: params?.signal });
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -21,7 +21,7 @@ export class SecretsResource extends BaseClient {
|
|
|
21
21
|
}
|
|
22
22
|
/** Delete a secret */
|
|
23
23
|
async SecretsController_deleteSecret(params) {
|
|
24
|
-
return this.request('DELETE', `/api/v1/secrets/${params.id}`, { signal: params?.signal });
|
|
24
|
+
return this.request('DELETE', `/api/v1/secrets/${params.id}`, { responseType: 'void', signal: params?.signal });
|
|
25
25
|
}
|
|
26
26
|
/** Get decrypted secret value */
|
|
27
27
|
async SecretsController_getSecretValue(params) {
|
|
@@ -21,7 +21,7 @@ export class TaskBlueprintsResource extends BaseClient {
|
|
|
21
21
|
}
|
|
22
22
|
/** Delete a task blueprint */
|
|
23
23
|
async TaskBlueprintsController_deleteTaskBlueprint(params) {
|
|
24
|
-
return this.request('DELETE', `/api/v1/task-blueprints/${params.id}`, { signal: params?.signal });
|
|
24
|
+
return this.request('DELETE', `/api/v1/task-blueprints/${params.id}`, { responseType: 'void', signal: params?.signal });
|
|
25
25
|
}
|
|
26
26
|
/** Create a task from a blueprint */
|
|
27
27
|
async TaskBlueprintsController_createTaskFromBlueprint(params) {
|
|
@@ -17,7 +17,7 @@ export class TaskResource extends BaseClient {
|
|
|
17
17
|
}
|
|
18
18
|
/** Delete a task */
|
|
19
19
|
async TasksController_deleteTask(params) {
|
|
20
|
-
return this.request('DELETE', `/api/v1/tasks/tasks/${params.id}`, { signal: params?.signal });
|
|
20
|
+
return this.request('DELETE', `/api/v1/tasks/tasks/${params.id}`, { responseType: 'void', signal: params?.signal });
|
|
21
21
|
}
|
|
22
22
|
/** Get a task by ID */
|
|
23
23
|
async TasksController_getTask(params) {
|
|
@@ -64,24 +64,24 @@ export class TaskResource extends BaseClient {
|
|
|
64
64
|
return this.request('POST', `/api/v1/tasks/tasks/${params.id}/input-requests/${params.inputRequestId}/answer`, { body: params.body, signal: params?.signal });
|
|
65
65
|
}
|
|
66
66
|
async TasksController_handleMcp_get(params) {
|
|
67
|
-
return this.request('GET', '/api/v1/tasks/tasks/mcp', { signal: params?.signal });
|
|
67
|
+
return this.request('GET', '/api/v1/tasks/tasks/mcp', { responseType: 'void', signal: params?.signal });
|
|
68
68
|
}
|
|
69
69
|
async TasksController_handleMcp_post(params) {
|
|
70
|
-
return this.request('POST', '/api/v1/tasks/tasks/mcp', { signal: params?.signal });
|
|
70
|
+
return this.request('POST', '/api/v1/tasks/tasks/mcp', { responseType: 'void', signal: params?.signal });
|
|
71
71
|
}
|
|
72
72
|
async TasksController_handleMcp_put(params) {
|
|
73
|
-
return this.request('PUT', '/api/v1/tasks/tasks/mcp', { signal: params?.signal });
|
|
73
|
+
return this.request('PUT', '/api/v1/tasks/tasks/mcp', { responseType: 'void', signal: params?.signal });
|
|
74
74
|
}
|
|
75
75
|
async TasksController_handleMcp_delete(params) {
|
|
76
|
-
return this.request('DELETE', '/api/v1/tasks/tasks/mcp', { signal: params?.signal });
|
|
76
|
+
return this.request('DELETE', '/api/v1/tasks/tasks/mcp', { responseType: 'void', signal: params?.signal });
|
|
77
77
|
}
|
|
78
78
|
async TasksController_handleMcp_patch(params) {
|
|
79
|
-
return this.request('PATCH', '/api/v1/tasks/tasks/mcp', { signal: params?.signal });
|
|
79
|
+
return this.request('PATCH', '/api/v1/tasks/tasks/mcp', { responseType: 'void', signal: params?.signal });
|
|
80
80
|
}
|
|
81
81
|
async TasksController_handleMcp_options(params) {
|
|
82
|
-
return this.request('OPTIONS', '/api/v1/tasks/tasks/mcp', { signal: params?.signal });
|
|
82
|
+
return this.request('OPTIONS', '/api/v1/tasks/tasks/mcp', { responseType: 'void', signal: params?.signal });
|
|
83
83
|
}
|
|
84
84
|
async TasksController_handleMcp_head(params) {
|
|
85
|
-
return this.request('HEAD', '/api/v1/tasks/tasks/mcp', { signal: params?.signal });
|
|
85
|
+
return this.request('HEAD', '/api/v1/tasks/tasks/mcp', { responseType: 'void', signal: params?.signal });
|
|
86
86
|
}
|
|
87
87
|
}
|
|
@@ -21,7 +21,7 @@ export class ThreadsResource extends BaseClient {
|
|
|
21
21
|
}
|
|
22
22
|
/** Delete a thread */
|
|
23
23
|
async ThreadsController_deleteThread(params) {
|
|
24
|
-
return this.request('DELETE', `/api/v1/threads/${params.id}`, { signal: params?.signal });
|
|
24
|
+
return this.request('DELETE', `/api/v1/threads/${params.id}`, { responseType: 'void', signal: params?.signal });
|
|
25
25
|
}
|
|
26
26
|
/** Get a thread by task ID */
|
|
27
27
|
async ThreadsController_getThreadByTaskId(params) {
|
package/dist/src/v2/types.d.ts
CHANGED
|
@@ -148,7 +148,7 @@ export interface UserResponseDto {
|
|
|
148
148
|
displayName: string;
|
|
149
149
|
role: 'admin' | 'standard';
|
|
150
150
|
actorId: string;
|
|
151
|
-
|
|
151
|
+
onboardingDisplayMode: 'FULL_PAGE' | 'BANNER' | 'OFF';
|
|
152
152
|
}
|
|
153
153
|
export interface LoginResponseDto {
|
|
154
154
|
user: UserResponseDto;
|
|
@@ -585,6 +585,37 @@ export interface AgentListResponseDto {
|
|
|
585
585
|
limit: number;
|
|
586
586
|
totalPages: number;
|
|
587
587
|
}
|
|
588
|
+
export interface AgentTemplateDto {
|
|
589
|
+
id: string;
|
|
590
|
+
label: string;
|
|
591
|
+
description: string;
|
|
592
|
+
type?: 'claude' | 'codex' | 'opencode' | 'adk' | 'githubcopilot' | 'other';
|
|
593
|
+
providerId?: string;
|
|
594
|
+
modelId?: string;
|
|
595
|
+
systemPrompt: string;
|
|
596
|
+
agentDescription?: string;
|
|
597
|
+
statusTriggers: ('NOT_STARTED' | 'IN_PROGRESS' | 'FOR_REVIEW' | 'DONE')[];
|
|
598
|
+
tagTriggers: string[];
|
|
599
|
+
avatarUrl?: string;
|
|
600
|
+
concurrencyLimit?: number;
|
|
601
|
+
}
|
|
602
|
+
export interface AgentTemplateModelOptionDto {
|
|
603
|
+
id: string;
|
|
604
|
+
label: string;
|
|
605
|
+
providerId?: string;
|
|
606
|
+
modelId?: string;
|
|
607
|
+
isDefault: boolean;
|
|
608
|
+
}
|
|
609
|
+
export interface AgentTemplateHarnessDto {
|
|
610
|
+
type: 'claude' | 'codex' | 'opencode' | 'adk' | 'githubcopilot' | 'other';
|
|
611
|
+
label: string;
|
|
612
|
+
description: string;
|
|
613
|
+
modelOptions: AgentTemplateModelOptionDto[];
|
|
614
|
+
}
|
|
615
|
+
export interface AgentTemplateCatalogResponseDto {
|
|
616
|
+
templates: AgentTemplateDto[];
|
|
617
|
+
harnesses: AgentTemplateHarnessDto[];
|
|
618
|
+
}
|
|
588
619
|
export interface PatchAgentDto {
|
|
589
620
|
slug?: string;
|
|
590
621
|
name?: string;
|
|
@@ -761,6 +792,9 @@ export interface BlockTreeResponseDto {
|
|
|
761
792
|
createdAt: string;
|
|
762
793
|
updatedAt: string;
|
|
763
794
|
}
|
|
795
|
+
export interface ImportBlocksResponseDto {
|
|
796
|
+
importedCount: number;
|
|
797
|
+
}
|
|
764
798
|
export interface UpdateBlockDto {
|
|
765
799
|
title?: string;
|
|
766
800
|
content?: string;
|
|
@@ -824,6 +858,14 @@ export interface TaskExecutionHistoryResponseDto {
|
|
|
824
858
|
export interface UpdateRunnerSessionIdDto {
|
|
825
859
|
sessionId: string;
|
|
826
860
|
}
|
|
861
|
+
export interface WorkerResponseDto {
|
|
862
|
+
id: string;
|
|
863
|
+
oauthClientId: string;
|
|
864
|
+
lastSeenAt: string;
|
|
865
|
+
harnesses: ('claude' | 'codex' | 'opencode' | 'adk' | 'githubcopilot' | 'other')[];
|
|
866
|
+
createdAt: string;
|
|
867
|
+
updatedAt: string;
|
|
868
|
+
}
|
|
827
869
|
export interface CreateTaskBlueprintDto {
|
|
828
870
|
name: string;
|
|
829
871
|
description: string;
|
|
@@ -909,3 +951,14 @@ export interface GlobalSearchResultDto {
|
|
|
909
951
|
score: number;
|
|
910
952
|
url: string;
|
|
911
953
|
}
|
|
954
|
+
export interface UserWalkthroughStatusResponseDto {
|
|
955
|
+
workerConfigured: boolean;
|
|
956
|
+
agentCreated: boolean;
|
|
957
|
+
taskCreated: boolean;
|
|
958
|
+
projectCreated: boolean;
|
|
959
|
+
projectConfigured: boolean;
|
|
960
|
+
contextBlockCreated: boolean;
|
|
961
|
+
threadConfigured: boolean;
|
|
962
|
+
taskWithProjectCreated: boolean;
|
|
963
|
+
onboardingDisplayMode: 'FULL_PAGE' | 'BANNER' | 'OFF';
|
|
964
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseClient, ClientConfig } from './base-client.js';
|
|
2
|
+
import type { UserWalkthroughStatusResponseDto } from './types.js';
|
|
3
|
+
export declare class WalkthroughResource extends BaseClient {
|
|
4
|
+
constructor(config: ClientConfig);
|
|
5
|
+
/** Acknowledge walkthrough — transitions FULL_PAGE display mode to BANNER */
|
|
6
|
+
WalkthroughController_acknowledge(params?: {
|
|
7
|
+
signal?: AbortSignal;
|
|
8
|
+
}): Promise<void>;
|
|
9
|
+
/** Get walkthrough status for the current user */
|
|
10
|
+
WalkthroughController_getStatus(params?: {
|
|
11
|
+
signal?: AbortSignal;
|
|
12
|
+
}): Promise<UserWalkthroughStatusResponseDto>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseClient } from './base-client.js';
|
|
2
|
+
export class WalkthroughResource extends BaseClient {
|
|
3
|
+
constructor(config) {
|
|
4
|
+
super(config);
|
|
5
|
+
}
|
|
6
|
+
/** Acknowledge walkthrough — transitions FULL_PAGE display mode to BANNER */
|
|
7
|
+
async WalkthroughController_acknowledge(params) {
|
|
8
|
+
return this.request('POST', '/api/v1/walkthrough/acknowledge', { responseType: 'void', signal: params?.signal });
|
|
9
|
+
}
|
|
10
|
+
/** Get walkthrough status for the current user */
|
|
11
|
+
async WalkthroughController_getStatus(params) {
|
|
12
|
+
return this.request('GET', '/api/v1/walkthrough/status', { signal: params?.signal });
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseClient, ClientConfig } from './base-client.js';
|
|
2
|
+
import type { WorkerResponseDto } from './types.js';
|
|
3
|
+
export declare class WorkersResource extends BaseClient {
|
|
4
|
+
constructor(config: ClientConfig);
|
|
5
|
+
/** List all workers */
|
|
6
|
+
WorkersController_listWorkers(params?: {
|
|
7
|
+
signal?: AbortSignal;
|
|
8
|
+
}): Promise<WorkerResponseDto[]>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseClient } from './base-client.js';
|
|
2
|
+
export class WorkersResource extends BaseClient {
|
|
3
|
+
constructor(config) {
|
|
4
|
+
super(config);
|
|
5
|
+
}
|
|
6
|
+
/** List all workers */
|
|
7
|
+
async WorkersController_listWorkers(params) {
|
|
8
|
+
return this.request('GET', '/api/v1/workers', { signal: params?.signal });
|
|
9
|
+
}
|
|
10
|
+
}
|