@taico/client 0.2.13 → 0.2.14

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.
@@ -1799,6 +1799,26 @@ export interface paths {
1799
1799
  patch: operations["ActiveTaskExecutionController_incrementToolCallCount"];
1800
1800
  trace?: never;
1801
1801
  };
1802
+ "/api/v1/executions/active/{executionId}/interrupt": {
1803
+ parameters: {
1804
+ query?: never;
1805
+ header?: never;
1806
+ path?: never;
1807
+ cookie?: never;
1808
+ };
1809
+ get?: never;
1810
+ put?: never;
1811
+ /**
1812
+ * Request interruption of an active execution
1813
+ * @description Signals the worker to abort the currently running agent execution.
1814
+ */
1815
+ post: operations["ActiveTaskExecutionController_interruptExecution"];
1816
+ delete?: never;
1817
+ options?: never;
1818
+ head?: never;
1819
+ patch?: never;
1820
+ trace?: never;
1821
+ };
1802
1822
  "/api/v1/executions/history": {
1803
1823
  parameters: {
1804
1824
  query?: never;
@@ -4121,7 +4141,7 @@ export interface components {
4121
4141
  providerId?: string;
4122
4142
  /**
4123
4143
  * @description Model ID used by the agent runtime
4124
- * @example gpt-5.2-codex
4144
+ * @example gpt-5.4
4125
4145
  */
4126
4146
  modelId?: string;
4127
4147
  /**
@@ -4211,7 +4231,7 @@ export interface components {
4211
4231
  providerId?: string | null;
4212
4232
  /**
4213
4233
  * @description Model ID used by the agent runtime
4214
- * @example gpt-5.2-codex
4234
+ * @example gpt-5.4
4215
4235
  */
4216
4236
  modelId?: string | null;
4217
4237
  /**
@@ -4391,9 +4411,32 @@ export interface components {
4391
4411
  description: string;
4392
4412
  modelOptions: components["schemas"]["AgentTemplateModelOptionDto"][];
4393
4413
  };
4414
+ AgentAvatarDto: {
4415
+ /**
4416
+ * @description Stable avatar identifier.
4417
+ * @example openai
4418
+ */
4419
+ id: string;
4420
+ /**
4421
+ * @description Human-readable avatar label.
4422
+ * @example OpenAI Blossom
4423
+ */
4424
+ label: string;
4425
+ /**
4426
+ * @description Relative public URL for the avatar image.
4427
+ * @example /avatar/openai.svg
4428
+ */
4429
+ url: string;
4430
+ /**
4431
+ * @description Short explanation of what this avatar represents.
4432
+ * @example OpenAI-inspired avatar for GPT and Codex model selections.
4433
+ */
4434
+ description: string;
4435
+ };
4394
4436
  AgentTemplateCatalogResponseDto: {
4395
4437
  templates: components["schemas"]["AgentTemplateDto"][];
4396
4438
  harnesses: components["schemas"]["AgentTemplateHarnessDto"][];
4439
+ avatars: components["schemas"]["AgentAvatarDto"][];
4397
4440
  };
4398
4441
  PatchAgentDto: {
4399
4442
  /**
@@ -4418,7 +4461,7 @@ export interface components {
4418
4461
  providerId?: string;
4419
4462
  /**
4420
4463
  * @description Model ID used by the agent runtime
4421
- * @example gpt-5.2-codex
4464
+ * @example gpt-5.4
4422
4465
  */
4423
4466
  modelId?: string;
4424
4467
  /**
@@ -5282,7 +5325,7 @@ export interface components {
5282
5325
  * @example OUT_OF_QUOTA
5283
5326
  * @enum {string|null}
5284
5327
  */
5285
- errorCode?: "OUT_OF_QUOTA" | "UNKNOWN" | null;
5328
+ errorCode?: "OUT_OF_QUOTA" | "INTERRUPTED" | "UNKNOWN" | null;
5286
5329
  /**
5287
5330
  * @description Optional human-readable error message for failed or cancelled executions
5288
5331
  * @example ADK runner failed: 429 quota exceeded.
@@ -5349,7 +5392,7 @@ export interface components {
5349
5392
  * @description Optional failure code when execution ended with an error
5350
5393
  * @enum {string|null}
5351
5394
  */
5352
- errorCode: "OUT_OF_QUOTA" | "UNKNOWN" | null;
5395
+ errorCode: "OUT_OF_QUOTA" | "INTERRUPTED" | "UNKNOWN" | null;
5353
5396
  /**
5354
5397
  * @description Optional human-readable error message for failed or cancelled executions
5355
5398
  * @example ADK runner failed: 429 quota exceeded.
@@ -10053,6 +10096,26 @@ export interface operations {
10053
10096
  };
10054
10097
  };
10055
10098
  };
10099
+ ActiveTaskExecutionController_interruptExecution: {
10100
+ parameters: {
10101
+ query?: never;
10102
+ header?: never;
10103
+ path: {
10104
+ /** @description Execution ID to interrupt */
10105
+ executionId: string;
10106
+ };
10107
+ cookie?: never;
10108
+ };
10109
+ requestBody?: never;
10110
+ responses: {
10111
+ 204: {
10112
+ headers: {
10113
+ [name: string]: unknown;
10114
+ };
10115
+ content?: never;
10116
+ };
10117
+ };
10118
+ };
10056
10119
  TaskExecutionHistoryController_listHistory: {
10057
10120
  parameters: {
10058
10121
  query?: never;
@@ -6,6 +6,7 @@ export { ActiveTaskExecutionResponseDto } from './models/ActiveTaskExecutionResp
6
6
  export type { ActiveTaskExecutionTagSnapshotResponseDto } from './models/ActiveTaskExecutionTagSnapshotResponseDto.js';
7
7
  export { ActorResponseDto } from './models/ActorResponseDto.js';
8
8
  export type { AddParticipantDto } from './models/AddParticipantDto.js';
9
+ export type { AgentAvatarDto } from './models/AgentAvatarDto.js';
9
10
  export type { AgentExecutionTokenResponseDto } from './models/AgentExecutionTokenResponseDto.js';
10
11
  export type { AgentListResponseDto } from './models/AgentListResponseDto.js';
11
12
  export { AgentResponseDto } from './models/AgentResponseDto.js';
@@ -0,0 +1,18 @@
1
+ export type AgentAvatarDto = {
2
+ /**
3
+ * Stable avatar identifier.
4
+ */
5
+ id: string;
6
+ /**
7
+ * Human-readable avatar label.
8
+ */
9
+ label: string;
10
+ /**
11
+ * Relative public URL for the avatar image.
12
+ */
13
+ url: string;
14
+ /**
15
+ * Short explanation of what this avatar represents.
16
+ */
17
+ description: string;
18
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,8 @@
1
+ import type { AgentAvatarDto } from './AgentAvatarDto.js';
1
2
  import type { AgentTemplateDto } from './AgentTemplateDto.js';
2
3
  import type { AgentTemplateHarnessDto } from './AgentTemplateHarnessDto.js';
3
4
  export type AgentTemplateCatalogResponseDto = {
4
5
  templates: Array<AgentTemplateDto>;
5
6
  harnesses: Array<AgentTemplateHarnessDto>;
7
+ avatars: Array<AgentAvatarDto>;
6
8
  };
@@ -27,6 +27,7 @@ export declare namespace StopActiveTaskExecutionDto {
27
27
  */
28
28
  enum errorCode {
29
29
  OUT_OF_QUOTA = "OUT_OF_QUOTA",
30
+ INTERRUPTED = "INTERRUPTED",
30
31
  UNKNOWN = "UNKNOWN"
31
32
  }
32
33
  }
@@ -16,6 +16,7 @@ export var StopActiveTaskExecutionDto;
16
16
  let errorCode;
17
17
  (function (errorCode) {
18
18
  errorCode["OUT_OF_QUOTA"] = "OUT_OF_QUOTA";
19
+ errorCode["INTERRUPTED"] = "INTERRUPTED";
19
20
  errorCode["UNKNOWN"] = "UNKNOWN";
20
21
  })(errorCode = StopActiveTaskExecutionDto.errorCode || (StopActiveTaskExecutionDto.errorCode = {}));
21
22
  })(StopActiveTaskExecutionDto || (StopActiveTaskExecutionDto = {}));
@@ -76,6 +76,7 @@ export declare namespace TaskExecutionHistoryResponseDto {
76
76
  */
77
77
  enum errorCode {
78
78
  OUT_OF_QUOTA = "OUT_OF_QUOTA",
79
+ INTERRUPTED = "INTERRUPTED",
79
80
  UNKNOWN = "UNKNOWN"
80
81
  }
81
82
  }
@@ -26,6 +26,7 @@ export var TaskExecutionHistoryResponseDto;
26
26
  let errorCode;
27
27
  (function (errorCode) {
28
28
  errorCode["OUT_OF_QUOTA"] = "OUT_OF_QUOTA";
29
+ errorCode["INTERRUPTED"] = "INTERRUPTED";
29
30
  errorCode["UNKNOWN"] = "UNKNOWN";
30
31
  })(errorCode = TaskExecutionHistoryResponseDto.errorCode || (TaskExecutionHistoryResponseDto.errorCode = {}));
31
32
  })(TaskExecutionHistoryResponseDto || (TaskExecutionHistoryResponseDto = {}));
@@ -54,6 +54,14 @@ export declare class ExecutionsService {
54
54
  * @throws ApiError
55
55
  */
56
56
  static activeTaskExecutionControllerIncrementToolCallCount(executionId: string, config?: OpenAPIConfig): CancelablePromise<void>;
57
+ /**
58
+ * Request interruption of an active execution
59
+ * Signals the worker to abort the currently running agent execution.
60
+ * @param executionId Execution ID to interrupt
61
+ * @returns void
62
+ * @throws ApiError
63
+ */
64
+ static activeTaskExecutionControllerInterruptExecution(executionId: string, config?: OpenAPIConfig): CancelablePromise<void>;
57
65
  /**
58
66
  * List task execution history
59
67
  * Returns the persisted execution history rows in the execution system.
@@ -95,6 +95,22 @@ export class ExecutionsService {
95
95
  },
96
96
  });
97
97
  }
98
+ /**
99
+ * Request interruption of an active execution
100
+ * Signals the worker to abort the currently running agent execution.
101
+ * @param executionId Execution ID to interrupt
102
+ * @returns void
103
+ * @throws ApiError
104
+ */
105
+ static activeTaskExecutionControllerInterruptExecution(executionId, config = OpenAPI) {
106
+ return __request(config, {
107
+ method: 'POST',
108
+ url: '/api/v1/executions/active/{executionId}/interrupt',
109
+ path: {
110
+ 'executionId': executionId,
111
+ },
112
+ });
113
+ }
98
114
  /**
99
115
  * List task execution history
100
116
  * Returns the persisted execution history rows in the execution system.
@@ -32,6 +32,11 @@ export declare class ExecutionsResource extends BaseClient {
32
32
  executionId: string;
33
33
  signal?: AbortSignal;
34
34
  }): Promise<void>;
35
+ /** Request interruption of an active execution */
36
+ ActiveTaskExecutionController_interruptExecution(params: {
37
+ executionId: string;
38
+ signal?: AbortSignal;
39
+ }): Promise<void>;
35
40
  /** List task execution history */
36
41
  TaskExecutionHistoryController_listHistory(params?: {
37
42
  signal?: AbortSignal;
@@ -27,6 +27,10 @@ export class ExecutionsResource extends BaseClient {
27
27
  async ActiveTaskExecutionController_incrementToolCallCount(params) {
28
28
  return this.request('PATCH', `/api/v1/executions/active/${params.executionId}/tool-calls/increment`, { responseType: 'void', signal: params?.signal });
29
29
  }
30
+ /** Request interruption of an active execution */
31
+ async ActiveTaskExecutionController_interruptExecution(params) {
32
+ return this.request('POST', `/api/v1/executions/active/${params.executionId}/interrupt`, { responseType: 'void', signal: params?.signal });
33
+ }
30
34
  /** List task execution history */
31
35
  async TaskExecutionHistoryController_listHistory(params) {
32
36
  return this.request('GET', '/api/v1/executions/history', { signal: params?.signal });
@@ -612,9 +612,16 @@ export interface AgentTemplateHarnessDto {
612
612
  description: string;
613
613
  modelOptions: AgentTemplateModelOptionDto[];
614
614
  }
615
+ export interface AgentAvatarDto {
616
+ id: string;
617
+ label: string;
618
+ url: string;
619
+ description: string;
620
+ }
615
621
  export interface AgentTemplateCatalogResponseDto {
616
622
  templates: AgentTemplateDto[];
617
623
  harnesses: AgentTemplateHarnessDto[];
624
+ avatars: AgentAvatarDto[];
618
625
  }
619
626
  export interface PatchAgentDto {
620
627
  slug?: string;
@@ -837,7 +844,7 @@ export interface ActiveTaskExecutionResponseDto {
837
844
  }
838
845
  export interface StopActiveTaskExecutionDto {
839
846
  status: 'SUCCEEDED' | 'FAILED' | 'STALE' | 'CANCELLED';
840
- errorCode?: 'OUT_OF_QUOTA' | 'UNKNOWN';
847
+ errorCode?: 'OUT_OF_QUOTA' | 'INTERRUPTED' | 'UNKNOWN';
841
848
  errorMessage?: string | null;
842
849
  }
843
850
  export interface TaskExecutionHistoryResponseDto {
@@ -852,7 +859,7 @@ export interface TaskExecutionHistoryResponseDto {
852
859
  runnerSessionId: string | null;
853
860
  toolCallCount: number;
854
861
  status: 'SUCCEEDED' | 'FAILED' | 'STALE' | 'CANCELLED';
855
- errorCode: 'OUT_OF_QUOTA' | 'UNKNOWN';
862
+ errorCode: 'OUT_OF_QUOTA' | 'INTERRUPTED' | 'UNKNOWN';
856
863
  errorMessage: string | null;
857
864
  }
858
865
  export interface UpdateRunnerSessionIdDto {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taico/client",
3
- "version": "0.2.13",
3
+ "version": "0.2.14",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "license": "MIT",