@taico/client 0.2.15 → 0.2.16

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.
@@ -1759,6 +1759,26 @@ export interface paths {
1759
1759
  patch?: never;
1760
1760
  trace?: never;
1761
1761
  };
1762
+ "/api/v1/executions/active/{executionId}/unclaim": {
1763
+ parameters: {
1764
+ query?: never;
1765
+ header?: never;
1766
+ path?: never;
1767
+ cookie?: never;
1768
+ };
1769
+ get?: never;
1770
+ put?: never;
1771
+ /**
1772
+ * Unclaim an active task execution and return it to the queue
1773
+ * @description Atomically removes the execution from the active execution table and returns its task to the execution queue. Only the worker that claimed the execution may unclaim it.
1774
+ */
1775
+ post: operations["ActiveTaskExecutionController_unclaimTaskExecution"];
1776
+ delete?: never;
1777
+ options?: never;
1778
+ head?: never;
1779
+ patch?: never;
1780
+ trace?: never;
1781
+ };
1762
1782
  "/api/v1/executions/active/{executionId}/session": {
1763
1783
  parameters: {
1764
1784
  query?: never;
@@ -10224,6 +10244,26 @@ export interface operations {
10224
10244
  };
10225
10245
  };
10226
10246
  };
10247
+ ActiveTaskExecutionController_unclaimTaskExecution: {
10248
+ parameters: {
10249
+ query?: never;
10250
+ header?: never;
10251
+ path: {
10252
+ /** @description Execution ID to unclaim */
10253
+ executionId: string;
10254
+ };
10255
+ cookie?: never;
10256
+ };
10257
+ requestBody?: never;
10258
+ responses: {
10259
+ 204: {
10260
+ headers: {
10261
+ [name: string]: unknown;
10262
+ };
10263
+ content?: never;
10264
+ };
10265
+ };
10266
+ };
10227
10267
  ActiveTaskExecutionController_updateRunnerSessionId: {
10228
10268
  parameters: {
10229
10269
  query?: never;
@@ -45,6 +45,14 @@ export declare class ExecutionsService {
45
45
  * @throws ApiError
46
46
  */
47
47
  static activeTaskExecutionControllerStopTaskExecution(executionId: string, requestBody: StopActiveTaskExecutionDto, config?: OpenAPIConfig): CancelablePromise<TaskExecutionHistoryResponseDto>;
48
+ /**
49
+ * Unclaim an active task execution and return it to the queue
50
+ * Atomically removes the execution from the active execution table and returns its task to the execution queue. Only the worker that claimed the execution may unclaim it.
51
+ * @param executionId Execution ID to unclaim
52
+ * @returns void
53
+ * @throws ApiError
54
+ */
55
+ static activeTaskExecutionControllerUnclaimTaskExecution(executionId: string, config?: OpenAPIConfig): CancelablePromise<void>;
48
56
  /**
49
57
  * Attach the runner session id to an active execution
50
58
  * Stores the runtime session identifier emitted by the agent harness so it can be propagated to execution history.
@@ -74,6 +74,22 @@ export class ExecutionsService {
74
74
  mediaType: 'application/json',
75
75
  });
76
76
  }
77
+ /**
78
+ * Unclaim an active task execution and return it to the queue
79
+ * Atomically removes the execution from the active execution table and returns its task to the execution queue. Only the worker that claimed the execution may unclaim it.
80
+ * @param executionId Execution ID to unclaim
81
+ * @returns void
82
+ * @throws ApiError
83
+ */
84
+ static activeTaskExecutionControllerUnclaimTaskExecution(executionId, config = OpenAPI) {
85
+ return __request(config, {
86
+ method: 'POST',
87
+ url: '/api/v1/executions/active/{executionId}/unclaim',
88
+ path: {
89
+ 'executionId': executionId,
90
+ },
91
+ });
92
+ }
77
93
  /**
78
94
  * Attach the runner session id to an active execution
79
95
  * Stores the runtime session identifier emitted by the agent harness so it can be propagated to execution history.
@@ -26,6 +26,11 @@ export declare class ExecutionsResource extends BaseClient {
26
26
  body: StopActiveTaskExecutionDto;
27
27
  signal?: AbortSignal;
28
28
  }): Promise<TaskExecutionHistoryResponseDto>;
29
+ /** Unclaim an active task execution and return it to the queue */
30
+ ActiveTaskExecutionController_unclaimTaskExecution(params: {
31
+ executionId: string;
32
+ signal?: AbortSignal;
33
+ }): Promise<void>;
29
34
  /** Attach the runner session id to an active execution */
30
35
  ActiveTaskExecutionController_updateRunnerSessionId(params: {
31
36
  executionId: string;
@@ -19,6 +19,10 @@ export class ExecutionsResource extends BaseClient {
19
19
  async ActiveTaskExecutionController_stopTaskExecution(params) {
20
20
  return this.request('POST', `/api/v1/executions/active/${params.executionId}/stop`, { body: params.body, signal: params?.signal });
21
21
  }
22
+ /** Unclaim an active task execution and return it to the queue */
23
+ async ActiveTaskExecutionController_unclaimTaskExecution(params) {
24
+ return this.request('POST', `/api/v1/executions/active/${params.executionId}/unclaim`, { responseType: 'void', signal: params?.signal });
25
+ }
22
26
  /** Attach the runner session id to an active execution */
23
27
  async ActiveTaskExecutionController_updateRunnerSessionId(params) {
24
28
  return this.request('PATCH', `/api/v1/executions/active/${params.executionId}/session`, { body: params.body, responseType: 'void', signal: params?.signal });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taico/client",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "license": "MIT",