@taico/client 0.9.1 → 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 +50 -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/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;
|
|
@@ -9571,6 +9591,8 @@ export interface operations {
|
|
|
9571
9591
|
sessionId?: string;
|
|
9572
9592
|
/** @description Filter tasks by tag name */
|
|
9573
9593
|
tag?: string;
|
|
9594
|
+
/** @description Only tasks whose ID starts with this (at least 4 hex digits, as shown in "#5fc5ec") */
|
|
9595
|
+
idPrefix?: string;
|
|
9574
9596
|
/** @description Page number (1-indexed) */
|
|
9575
9597
|
page?: number;
|
|
9576
9598
|
/** @description Items per page (1-100) */
|
|
@@ -12132,6 +12154,34 @@ export interface operations {
|
|
|
12132
12154
|
};
|
|
12133
12155
|
};
|
|
12134
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
|
+
};
|
|
12135
12185
|
ExecutionTracesController_list: {
|
|
12136
12186
|
parameters: {
|
|
12137
12187
|
query?: {
|
|
@@ -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) {
|