@taico/client 0.9.0 → 0.9.2
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/README.md +1 -1
- package/dist/contracts/types.d.ts +55 -1
- package/dist/src/v1/client/index.d.ts +1 -1
- package/dist/src/v1/client/index.js +1 -0
- package/dist/src/v1/client/models/ExecutionTraceResponseDto.d.ts +8 -1
- package/dist/src/v1/client/models/ExecutionTraceResponseDto.js +8 -1
- package/dist/src/v1/client/models/ExecutionTracesResponseDto.d.ts +4 -0
- package/dist/src/v1/client/services/ExecutionsService.d.ts +8 -0
- package/dist/src/v1/client/services/ExecutionsService.js +19 -0
- package/dist/src/v1/client/services/TaskService.d.ts +2 -1
- package/dist/src/v1/client/services/TaskService.js +3 -1
- package/dist/src/v2/executions-resource.d.ts +5 -0
- package/dist/src/v2/executions-resource.js +4 -0
- package/dist/src/v2/task-resource.d.ts +1 -0
- package/dist/src/v2/task-resource.js +1 -1
- package/dist/src/v2/types.d.ts +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
# @taico/client
|
|
2
2
|
|
|
3
|
-
[](https://badge.socket.dev/npm/package/@taico/client/0.9.2)
|
|
@@ -2179,6 +2179,26 @@ export interface paths {
|
|
|
2179
2179
|
patch?: never;
|
|
2180
2180
|
trace?: never;
|
|
2181
2181
|
};
|
|
2182
|
+
"/api/v1/executions/history/{id}": {
|
|
2183
|
+
parameters: {
|
|
2184
|
+
query?: never;
|
|
2185
|
+
header?: never;
|
|
2186
|
+
path?: never;
|
|
2187
|
+
cookie?: never;
|
|
2188
|
+
};
|
|
2189
|
+
/**
|
|
2190
|
+
* Get one finished execution
|
|
2191
|
+
* @description Returns a single execution history row by id, including runs older than the latest page of history.
|
|
2192
|
+
*/
|
|
2193
|
+
get: operations["TaskExecutionHistoryController_getHistoryEntry"];
|
|
2194
|
+
put?: never;
|
|
2195
|
+
post?: never;
|
|
2196
|
+
delete?: never;
|
|
2197
|
+
options?: never;
|
|
2198
|
+
head?: never;
|
|
2199
|
+
patch?: never;
|
|
2200
|
+
trace?: never;
|
|
2201
|
+
};
|
|
2182
2202
|
"/api/v1/executions/{executionId}/traces": {
|
|
2183
2203
|
parameters: {
|
|
2184
2204
|
query?: never;
|
|
@@ -6476,7 +6496,9 @@ export interface components {
|
|
|
6476
6496
|
ExecutionTraceResponseDto: {
|
|
6477
6497
|
executionId: string;
|
|
6478
6498
|
sequence: number;
|
|
6479
|
-
|
|
6499
|
+
/** @enum {string} */
|
|
6500
|
+
source: "worker" | "harness";
|
|
6501
|
+
harness: string | null;
|
|
6480
6502
|
runnerSessionId: string | null;
|
|
6481
6503
|
/** Format: date-time */
|
|
6482
6504
|
emittedAt: string;
|
|
@@ -6489,6 +6511,8 @@ export interface components {
|
|
|
6489
6511
|
};
|
|
6490
6512
|
ExecutionTracesResponseDto: {
|
|
6491
6513
|
items: components["schemas"]["ExecutionTraceResponseDto"][];
|
|
6514
|
+
/** @description Worker lifecycle records across the entire execution, independent of the raw-event page */
|
|
6515
|
+
lifecycle: components["schemas"]["ExecutionTraceResponseDto"][];
|
|
6492
6516
|
hasMoreBefore: boolean;
|
|
6493
6517
|
nextAfterSequence: number;
|
|
6494
6518
|
};
|
|
@@ -9567,6 +9591,8 @@ export interface operations {
|
|
|
9567
9591
|
sessionId?: string;
|
|
9568
9592
|
/** @description Filter tasks by tag name */
|
|
9569
9593
|
tag?: string;
|
|
9594
|
+
/** @description Only tasks whose ID starts with this (at least 4 hex digits, as shown in "#5fc5ec") */
|
|
9595
|
+
idPrefix?: string;
|
|
9570
9596
|
/** @description Page number (1-indexed) */
|
|
9571
9597
|
page?: number;
|
|
9572
9598
|
/** @description Items per page (1-100) */
|
|
@@ -12128,6 +12154,34 @@ export interface operations {
|
|
|
12128
12154
|
};
|
|
12129
12155
|
};
|
|
12130
12156
|
};
|
|
12157
|
+
TaskExecutionHistoryController_getHistoryEntry: {
|
|
12158
|
+
parameters: {
|
|
12159
|
+
query?: never;
|
|
12160
|
+
header?: never;
|
|
12161
|
+
path: {
|
|
12162
|
+
id: string;
|
|
12163
|
+
};
|
|
12164
|
+
cookie?: never;
|
|
12165
|
+
};
|
|
12166
|
+
requestBody?: never;
|
|
12167
|
+
responses: {
|
|
12168
|
+
200: {
|
|
12169
|
+
headers: {
|
|
12170
|
+
[name: string]: unknown;
|
|
12171
|
+
};
|
|
12172
|
+
content: {
|
|
12173
|
+
"application/json": components["schemas"]["TaskExecutionHistoryResponseDto"];
|
|
12174
|
+
};
|
|
12175
|
+
};
|
|
12176
|
+
/** @description Execution not found */
|
|
12177
|
+
404: {
|
|
12178
|
+
headers: {
|
|
12179
|
+
[name: string]: unknown;
|
|
12180
|
+
};
|
|
12181
|
+
content?: never;
|
|
12182
|
+
};
|
|
12183
|
+
};
|
|
12184
|
+
};
|
|
12131
12185
|
ExecutionTracesController_list: {
|
|
12132
12186
|
parameters: {
|
|
12133
12187
|
query?: {
|
|
@@ -81,7 +81,7 @@ export type { DeleteScopeResponseDto } from './models/DeleteScopeResponseDto.js'
|
|
|
81
81
|
export type { DeleteServerResponseDto } from './models/DeleteServerResponseDto.js';
|
|
82
82
|
export type { DisconnectAiProviderResponseDto } from './models/DisconnectAiProviderResponseDto.js';
|
|
83
83
|
export type { ExecutionStatsResponseDto } from './models/ExecutionStatsResponseDto.js';
|
|
84
|
-
export
|
|
84
|
+
export { ExecutionTraceResponseDto } from './models/ExecutionTraceResponseDto.js';
|
|
85
85
|
export type { ExecutionTracesResponseDto } from './models/ExecutionTracesResponseDto.js';
|
|
86
86
|
export { FlowClientDto } from './models/FlowClientDto.js';
|
|
87
87
|
export type { FlowServerDto } from './models/FlowServerDto.js';
|
|
@@ -25,6 +25,7 @@ export { CreateAgentDto } from './models/CreateAgentDto.js';
|
|
|
25
25
|
export { CreateAiProviderDto } from './models/CreateAiProviderDto.js';
|
|
26
26
|
export { CreateManagedUserRequestDto } from './models/CreateManagedUserRequestDto.js';
|
|
27
27
|
export { CreateServerDto } from './models/CreateServerDto.js';
|
|
28
|
+
export { ExecutionTraceResponseDto } from './models/ExecutionTraceResponseDto.js';
|
|
28
29
|
export { FlowClientDto } from './models/FlowClientDto.js';
|
|
29
30
|
export { GetConsentMetadataResponseDto } from './models/GetConsentMetadataResponseDto.js';
|
|
30
31
|
export { IntrospectTokenRequestDto } from './models/IntrospectTokenRequestDto.js';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export type ExecutionTraceResponseDto = {
|
|
2
2
|
executionId: string;
|
|
3
3
|
sequence: number;
|
|
4
|
-
|
|
4
|
+
source: ExecutionTraceResponseDto.source;
|
|
5
|
+
harness: string | null;
|
|
5
6
|
runnerSessionId: string | null;
|
|
6
7
|
emittedAt: string;
|
|
7
8
|
receivedAt: string;
|
|
@@ -10,3 +11,9 @@ export type ExecutionTraceResponseDto = {
|
|
|
10
11
|
*/
|
|
11
12
|
payload: Record<string, any> | null;
|
|
12
13
|
};
|
|
14
|
+
export declare namespace ExecutionTraceResponseDto {
|
|
15
|
+
enum source {
|
|
16
|
+
WORKER = "worker",
|
|
17
|
+
HARNESS = "harness"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export var ExecutionTraceResponseDto;
|
|
2
|
+
(function (ExecutionTraceResponseDto) {
|
|
3
|
+
let source;
|
|
4
|
+
(function (source) {
|
|
5
|
+
source["WORKER"] = "worker";
|
|
6
|
+
source["HARNESS"] = "harness";
|
|
7
|
+
})(source = ExecutionTraceResponseDto.source || (ExecutionTraceResponseDto.source = {}));
|
|
8
|
+
})(ExecutionTraceResponseDto || (ExecutionTraceResponseDto = {}));
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { ExecutionTraceResponseDto } from './ExecutionTraceResponseDto.js';
|
|
2
2
|
export type ExecutionTracesResponseDto = {
|
|
3
3
|
items: Array<ExecutionTraceResponseDto>;
|
|
4
|
+
/**
|
|
5
|
+
* Worker lifecycle records across the entire execution, independent of the raw-event page
|
|
6
|
+
*/
|
|
7
|
+
lifecycle: Array<ExecutionTraceResponseDto>;
|
|
4
8
|
hasMoreBefore: boolean;
|
|
5
9
|
nextAfterSequence: number;
|
|
6
10
|
};
|
|
@@ -98,6 +98,14 @@ export declare class ExecutionsService {
|
|
|
98
98
|
* @throws ApiError
|
|
99
99
|
*/
|
|
100
100
|
static taskExecutionHistoryControllerListHistory(page?: number, limit?: number, taskId?: string, config?: OpenAPIConfig): CancelablePromise<TaskExecutionHistoryListResponseDto>;
|
|
101
|
+
/**
|
|
102
|
+
* Get one finished execution
|
|
103
|
+
* Returns a single execution history row by id, including runs older than the latest page of history.
|
|
104
|
+
* @param id
|
|
105
|
+
* @returns TaskExecutionHistoryResponseDto
|
|
106
|
+
* @throws ApiError
|
|
107
|
+
*/
|
|
108
|
+
static taskExecutionHistoryControllerGetHistoryEntry(id: string, config?: OpenAPIConfig): CancelablePromise<TaskExecutionHistoryResponseDto>;
|
|
101
109
|
/**
|
|
102
110
|
* Read raw harness events for an active or historical execution
|
|
103
111
|
* @param executionId
|
|
@@ -180,6 +180,25 @@ export class ExecutionsService {
|
|
|
180
180
|
},
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
|
+
/**
|
|
184
|
+
* Get one finished execution
|
|
185
|
+
* Returns a single execution history row by id, including runs older than the latest page of history.
|
|
186
|
+
* @param id
|
|
187
|
+
* @returns TaskExecutionHistoryResponseDto
|
|
188
|
+
* @throws ApiError
|
|
189
|
+
*/
|
|
190
|
+
static taskExecutionHistoryControllerGetHistoryEntry(id, config = OpenAPI) {
|
|
191
|
+
return __request(config, {
|
|
192
|
+
method: 'GET',
|
|
193
|
+
url: '/api/v1/executions/history/{id}',
|
|
194
|
+
path: {
|
|
195
|
+
'id': id,
|
|
196
|
+
},
|
|
197
|
+
errors: {
|
|
198
|
+
404: `Execution not found`,
|
|
199
|
+
},
|
|
200
|
+
});
|
|
201
|
+
}
|
|
183
202
|
/**
|
|
184
203
|
* Read raw harness events for an active or historical execution
|
|
185
204
|
* @param executionId
|
|
@@ -28,12 +28,13 @@ export declare class TaskService {
|
|
|
28
28
|
* @param assignee Filter tasks by assignee name
|
|
29
29
|
* @param sessionId Filter tasks by session ID
|
|
30
30
|
* @param tag Filter tasks by tag name
|
|
31
|
+
* @param idPrefix Only tasks whose ID starts with this (at least 4 hex digits, as shown in "#5fc5ec")
|
|
31
32
|
* @param page Page number (1-indexed)
|
|
32
33
|
* @param limit Items per page (1-100)
|
|
33
34
|
* @returns TaskListResponseDto Paginated list of tasks
|
|
34
35
|
* @throws ApiError
|
|
35
36
|
*/
|
|
36
|
-
static tasksControllerListTasks(assignee?: string, sessionId?: string, tag?: string, page?: number, limit?: number, config?: OpenAPIConfig): CancelablePromise<TaskListResponseDto>;
|
|
37
|
+
static tasksControllerListTasks(assignee?: string, sessionId?: string, tag?: string, idPrefix?: string, page?: number, limit?: number, config?: OpenAPIConfig): CancelablePromise<TaskListResponseDto>;
|
|
37
38
|
/**
|
|
38
39
|
* Update task description
|
|
39
40
|
* @param id Task UUID
|
|
@@ -23,12 +23,13 @@ export class TaskService {
|
|
|
23
23
|
* @param assignee Filter tasks by assignee name
|
|
24
24
|
* @param sessionId Filter tasks by session ID
|
|
25
25
|
* @param tag Filter tasks by tag name
|
|
26
|
+
* @param idPrefix Only tasks whose ID starts with this (at least 4 hex digits, as shown in "#5fc5ec")
|
|
26
27
|
* @param page Page number (1-indexed)
|
|
27
28
|
* @param limit Items per page (1-100)
|
|
28
29
|
* @returns TaskListResponseDto Paginated list of tasks
|
|
29
30
|
* @throws ApiError
|
|
30
31
|
*/
|
|
31
|
-
static tasksControllerListTasks(assignee, sessionId, tag, page = 1, limit = 20, config = OpenAPI) {
|
|
32
|
+
static tasksControllerListTasks(assignee, sessionId, tag, idPrefix, page = 1, limit = 20, config = OpenAPI) {
|
|
32
33
|
return __request(config, {
|
|
33
34
|
method: 'GET',
|
|
34
35
|
url: '/api/v1/tasks/tasks',
|
|
@@ -36,6 +37,7 @@ export class TaskService {
|
|
|
36
37
|
'assignee': assignee,
|
|
37
38
|
'sessionId': sessionId,
|
|
38
39
|
'tag': tag,
|
|
40
|
+
'idPrefix': idPrefix,
|
|
39
41
|
'page': page,
|
|
40
42
|
'limit': limit,
|
|
41
43
|
},
|
|
@@ -60,6 +60,11 @@ export declare class ExecutionsResource extends BaseClient {
|
|
|
60
60
|
taskId?: string;
|
|
61
61
|
signal?: AbortSignal;
|
|
62
62
|
}): Promise<TaskExecutionHistoryListResponseDto>;
|
|
63
|
+
/** Get one finished execution */
|
|
64
|
+
TaskExecutionHistoryController_getHistoryEntry(params: {
|
|
65
|
+
id: string;
|
|
66
|
+
signal?: AbortSignal;
|
|
67
|
+
}): Promise<TaskExecutionHistoryResponseDto>;
|
|
63
68
|
/** Read raw harness events for an active or historical execution */
|
|
64
69
|
ExecutionTracesController_list(params: {
|
|
65
70
|
executionId: string;
|
|
@@ -43,6 +43,10 @@ export class ExecutionsResource extends BaseClient {
|
|
|
43
43
|
async TaskExecutionHistoryController_listHistory(params) {
|
|
44
44
|
return this.request('GET', '/api/v1/executions/history', { params: { page: params?.page, limit: params?.limit, taskId: params?.taskId }, signal: params?.signal });
|
|
45
45
|
}
|
|
46
|
+
/** Get one finished execution */
|
|
47
|
+
async TaskExecutionHistoryController_getHistoryEntry(params) {
|
|
48
|
+
return this.request('GET', `/api/v1/executions/history/${params.id}`, { signal: params?.signal });
|
|
49
|
+
}
|
|
46
50
|
/** Read raw harness events for an active or historical execution */
|
|
47
51
|
async ExecutionTracesController_list(params) {
|
|
48
52
|
return this.request('GET', `/api/v1/executions/${params.executionId}/traces`, { params: { afterSequence: params.afterSequence, limit: params.limit, latest: params.latest, beforeSequence: params.beforeSequence }, signal: params?.signal });
|
|
@@ -9,7 +9,7 @@ export class TaskResource extends BaseClient {
|
|
|
9
9
|
}
|
|
10
10
|
/** List tasks with optional filtering and pagination */
|
|
11
11
|
async TasksController_listTasks(params) {
|
|
12
|
-
return this.request('GET', '/api/v1/tasks/tasks', { params: { assignee: params?.assignee, sessionId: params?.sessionId, tag: params?.tag, page: params?.page, limit: params?.limit }, signal: params?.signal });
|
|
12
|
+
return this.request('GET', '/api/v1/tasks/tasks', { params: { assignee: params?.assignee, sessionId: params?.sessionId, tag: params?.tag, idPrefix: params?.idPrefix, page: params?.page, limit: params?.limit }, signal: params?.signal });
|
|
13
13
|
}
|
|
14
14
|
/** Update task description */
|
|
15
15
|
async TasksController_updateTask(params) {
|
package/dist/src/v2/types.d.ts
CHANGED
|
@@ -1038,7 +1038,8 @@ export interface TaskExecutionHistoryListResponseDto {
|
|
|
1038
1038
|
export interface ExecutionTraceResponseDto {
|
|
1039
1039
|
executionId: string;
|
|
1040
1040
|
sequence: number;
|
|
1041
|
-
|
|
1041
|
+
source: 'worker' | 'harness';
|
|
1042
|
+
harness: string | null;
|
|
1042
1043
|
runnerSessionId: string | null;
|
|
1043
1044
|
emittedAt: string;
|
|
1044
1045
|
receivedAt: string;
|
|
@@ -1046,6 +1047,7 @@ export interface ExecutionTraceResponseDto {
|
|
|
1046
1047
|
}
|
|
1047
1048
|
export interface ExecutionTracesResponseDto {
|
|
1048
1049
|
items: ExecutionTraceResponseDto[];
|
|
1050
|
+
lifecycle: ExecutionTraceResponseDto[];
|
|
1049
1051
|
hasMoreBefore: boolean;
|
|
1050
1052
|
nextAfterSequence: number;
|
|
1051
1053
|
}
|