@taico/client 0.2.1 → 0.2.8

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.
@@ -951,7 +951,7 @@ export interface paths {
951
951
  /**
952
952
  * Create a new agent run
953
953
  * @deprecated
954
- * @description DEPRECATED: This endpoint is a legacy compatibility facade. New workers should use the execution-centric model (TaskExecution) instead of creating AgentRuns. This endpoint will be removed once all workers migrate to execution-id. See /docs/AGENT_RUN_DEPRECATION.md for details.
954
+ * @description Compatibility endpoint for contexts that still create AgentRun records. Execution id is the authoritative runtime identity.
955
955
  */
956
956
  post: operations["AgentRunsController_createAgentRun"];
957
957
  delete?: never;
@@ -977,7 +977,7 @@ export interface paths {
977
977
  /**
978
978
  * Update an agent run
979
979
  * @deprecated
980
- * @description DEPRECATED: This endpoint is a legacy compatibility facade. Workers should update execution state via TaskExecution instead. See /docs/AGENT_RUN_DEPRECATION.md for migration details.
980
+ * @description Compatibility endpoint for updating AgentRun records. Execution lifecycle state is owned by executions.
981
981
  */
982
982
  patch: operations["AgentRunsController_updateAgentRun"];
983
983
  trace?: never;
@@ -1628,7 +1628,7 @@ export interface paths {
1628
1628
  patch: operations["ContextController_handleMcp_patch"];
1629
1629
  trace?: never;
1630
1630
  };
1631
- "/api/v1/executions-v2/queue": {
1631
+ "/api/v1/executions/queue": {
1632
1632
  parameters: {
1633
1633
  query?: never;
1634
1634
  header?: never;
@@ -1637,7 +1637,7 @@ export interface paths {
1637
1637
  };
1638
1638
  /**
1639
1639
  * List the current task execution work queue
1640
- * @description Returns the tasks currently present in the v2 execution queue. Presence means the task is ready to be picked by the executor.
1640
+ * @description Returns the tasks currently present in the execution queue. Presence means the task is ready to be picked by the executor.
1641
1641
  */
1642
1642
  get: operations["TaskExecutionQueueController_listQueue"];
1643
1643
  put?: never;
@@ -1648,7 +1648,7 @@ export interface paths {
1648
1648
  patch?: never;
1649
1649
  trace?: never;
1650
1650
  };
1651
- "/api/v1/executions-v2/queue/{taskId}/claim": {
1651
+ "/api/v1/executions/queue/{taskId}/claim": {
1652
1652
  parameters: {
1653
1653
  query?: never;
1654
1654
  header?: never;
@@ -1668,7 +1668,7 @@ export interface paths {
1668
1668
  patch?: never;
1669
1669
  trace?: never;
1670
1670
  };
1671
- "/api/v1/executions-v2/active": {
1671
+ "/api/v1/executions/active": {
1672
1672
  parameters: {
1673
1673
  query?: never;
1674
1674
  header?: never;
@@ -1677,7 +1677,7 @@ export interface paths {
1677
1677
  };
1678
1678
  /**
1679
1679
  * List active task executions
1680
- * @description Returns the tasks currently being worked on in the v2 execution system.
1680
+ * @description Returns the tasks currently being worked on in the execution system.
1681
1681
  */
1682
1682
  get: operations["ActiveTaskExecutionController_listActiveExecutions"];
1683
1683
  put?: never;
@@ -1688,7 +1688,7 @@ export interface paths {
1688
1688
  patch?: never;
1689
1689
  trace?: never;
1690
1690
  };
1691
- "/api/v1/executions-v2/active/{executionId}/stop": {
1691
+ "/api/v1/executions/active/{executionId}/stop": {
1692
1692
  parameters: {
1693
1693
  query?: never;
1694
1694
  header?: never;
@@ -1708,7 +1708,47 @@ export interface paths {
1708
1708
  patch?: never;
1709
1709
  trace?: never;
1710
1710
  };
1711
- "/api/v1/executions-v2/history": {
1711
+ "/api/v1/executions/active/{executionId}/session": {
1712
+ parameters: {
1713
+ query?: never;
1714
+ header?: never;
1715
+ path?: never;
1716
+ cookie?: never;
1717
+ };
1718
+ get?: never;
1719
+ put?: never;
1720
+ post?: never;
1721
+ delete?: never;
1722
+ options?: never;
1723
+ head?: never;
1724
+ /**
1725
+ * Attach the runner session id to an active execution
1726
+ * @description Stores the runtime session identifier emitted by the agent harness so it can be propagated to execution history.
1727
+ */
1728
+ patch: operations["ActiveTaskExecutionController_updateRunnerSessionId"];
1729
+ trace?: never;
1730
+ };
1731
+ "/api/v1/executions/active/{executionId}/tool-calls/increment": {
1732
+ parameters: {
1733
+ query?: never;
1734
+ header?: never;
1735
+ path?: never;
1736
+ cookie?: never;
1737
+ };
1738
+ get?: never;
1739
+ put?: never;
1740
+ post?: never;
1741
+ delete?: never;
1742
+ options?: never;
1743
+ head?: never;
1744
+ /**
1745
+ * Increment tool call count for an active execution
1746
+ * @description Atomically increments the active execution tool-call counter without touching other mutable execution fields.
1747
+ */
1748
+ patch: operations["ActiveTaskExecutionController_incrementToolCallCount"];
1749
+ trace?: never;
1750
+ };
1751
+ "/api/v1/executions/history": {
1712
1752
  parameters: {
1713
1753
  query?: never;
1714
1754
  header?: never;
@@ -1717,7 +1757,7 @@ export interface paths {
1717
1757
  };
1718
1758
  /**
1719
1759
  * List task execution history
1720
- * @description Returns the persisted execution history rows in the v2 execution system.
1760
+ * @description Returns the persisted execution history rows in the execution system.
1721
1761
  */
1722
1762
  get: operations["TaskExecutionHistoryController_listHistory"];
1723
1763
  put?: never;
@@ -1875,26 +1915,6 @@ export interface paths {
1875
1915
  patch?: never;
1876
1916
  trace?: never;
1877
1917
  };
1878
- "/api/v1/executions": {
1879
- parameters: {
1880
- query?: never;
1881
- header?: never;
1882
- path?: never;
1883
- cookie?: never;
1884
- };
1885
- /**
1886
- * List task executions with optional filtering and pagination
1887
- * @description Returns the backend-tracked work queue showing all TaskExecution records. Useful for debugging the execution reconciler and understanding which tasks are ready to run.
1888
- */
1889
- get: operations["ExecutionsController_listExecutions"];
1890
- put?: never;
1891
- post?: never;
1892
- delete?: never;
1893
- options?: never;
1894
- head?: never;
1895
- patch?: never;
1896
- trace?: never;
1897
- };
1898
1918
  "/api/v1/search/query": {
1899
1919
  parameters: {
1900
1920
  query?: never;
@@ -5006,6 +5026,16 @@ export interface components {
5006
5026
  * @example 2026-04-03T08:25:10.000Z
5007
5027
  */
5008
5028
  lastHeartbeatAt: string | null;
5029
+ /**
5030
+ * @description Agent runtime session identifier associated with this execution
5031
+ * @example session_01JZ0SMM85FBFA8Y82M8VREY2A
5032
+ */
5033
+ runnerSessionId: string | null;
5034
+ /**
5035
+ * @description Number of tool calls made during this execution so far
5036
+ * @example 7
5037
+ */
5038
+ toolCallCount: number;
5009
5039
  /**
5010
5040
  * @description Task status before the task was claimed
5011
5041
  * @enum {string}
@@ -5089,6 +5119,16 @@ export interface components {
5089
5119
  * @example 24f52f295c990c1d6cdc6034fa3d1900
5090
5120
  */
5091
5121
  workerClientId: string;
5122
+ /**
5123
+ * @description Agent runtime session identifier associated with this execution
5124
+ * @example session_01JZ0SMM85FBFA8Y82M8VREY2A
5125
+ */
5126
+ runnerSessionId: string | null;
5127
+ /**
5128
+ * @description Number of tool calls made during the execution
5129
+ * @example 12
5130
+ */
5131
+ toolCallCount: number;
5092
5132
  /**
5093
5133
  * @description Terminal execution status
5094
5134
  * @enum {string}
@@ -5105,6 +5145,13 @@ export interface components {
5105
5145
  */
5106
5146
  errorMessage: string | null;
5107
5147
  };
5148
+ UpdateRunnerSessionIdDto: {
5149
+ /**
5150
+ * @description Agent runtime session identifier for this execution
5151
+ * @example session_01JZ0SMM85FBFA8Y82M8VREY2A
5152
+ */
5153
+ sessionId: string;
5154
+ };
5108
5155
  CreateTaskBlueprintDto: {
5109
5156
  /**
5110
5157
  * @description Name of the task blueprint
@@ -5435,133 +5482,6 @@ export interface components {
5435
5482
  */
5436
5483
  resource_name: string;
5437
5484
  };
5438
- ExecutionResponseDto: {
5439
- /**
5440
- * @description Unique execution identifier
5441
- * @example 123e4567-e89b-12d3-a456-426614174000
5442
- */
5443
- id: string;
5444
- /**
5445
- * @description Task ID
5446
- * @example 123e4567-e89b-12d3-a456-426614174001
5447
- */
5448
- taskId: string;
5449
- /**
5450
- * @description Task name
5451
- * @example Implement feature X
5452
- */
5453
- taskName?: string | null;
5454
- /**
5455
- * @description Agent actor ID
5456
- * @example 123e4567-e89b-12d3-a456-426614174002
5457
- */
5458
- agentActorId: string;
5459
- /**
5460
- * @description Agent slug
5461
- * @example claude-dev
5462
- */
5463
- agentSlug?: string | null;
5464
- /**
5465
- * @description Agent name
5466
- * @example Claude Developer
5467
- */
5468
- agentName?: string | null;
5469
- /**
5470
- * @description Execution status
5471
- * @example READY
5472
- * @enum {string}
5473
- */
5474
- status: "READY" | "CLAIMED" | "RUNNING" | "STOP_REQUESTED" | "COMPLETED" | "FAILED" | "CANCELLED" | "STALE";
5475
- /**
5476
- * @description When the execution was requested
5477
- * @example 2026-03-28T10:30:00.000Z
5478
- */
5479
- requestedAt: string;
5480
- /**
5481
- * Format: date-time
5482
- * @description When the execution was claimed by a worker
5483
- * @example 2026-03-28T10:31:00.000Z
5484
- */
5485
- claimedAt?: string | null;
5486
- /**
5487
- * Format: date-time
5488
- * @description When the execution started running
5489
- * @example 2026-03-28T10:31:05.000Z
5490
- */
5491
- startedAt?: string | null;
5492
- /**
5493
- * Format: date-time
5494
- * @description When the execution finished
5495
- * @example 2026-03-28T10:35:00.000Z
5496
- */
5497
- finishedAt?: string | null;
5498
- /**
5499
- * @description Worker session ID that claimed this execution
5500
- * @example 123e4567-e89b-12d3-a456-426614174003
5501
- */
5502
- workerSessionId?: string | null;
5503
- /**
5504
- * Format: date-time
5505
- * @description When the worker lease expires
5506
- * @example 2026-03-28T10:36:00.000Z
5507
- */
5508
- leaseExpiresAt?: string | null;
5509
- /**
5510
- * Format: date-time
5511
- * @description When a stop was requested
5512
- * @example 2026-03-28T10:34:00.000Z
5513
- */
5514
- stopRequestedAt?: string | null;
5515
- /**
5516
- * @description Failure reason if execution failed
5517
- * @example Worker disconnected
5518
- */
5519
- failureReason?: string | null;
5520
- /**
5521
- * @description Why this execution was triggered
5522
- * @example Task is eligible for execution
5523
- */
5524
- triggerReason?: string | null;
5525
- /**
5526
- * @description Row version for optimistic locking
5527
- * @example 1
5528
- */
5529
- rowVersion: number;
5530
- /**
5531
- * @description Execution creation timestamp
5532
- * @example 2026-03-28T10:30:00.000Z
5533
- */
5534
- createdAt: string;
5535
- /**
5536
- * @description Execution last update timestamp
5537
- * @example 2026-03-28T10:30:00.000Z
5538
- */
5539
- updatedAt: string;
5540
- };
5541
- ExecutionListResponseDto: {
5542
- /** @description Array of task executions */
5543
- items: components["schemas"]["ExecutionResponseDto"][];
5544
- /**
5545
- * @description Total number of executions matching the filter
5546
- * @example 100
5547
- */
5548
- total: number;
5549
- /**
5550
- * @description Current page number (1-indexed)
5551
- * @example 1
5552
- */
5553
- page: number;
5554
- /**
5555
- * @description Number of items per page
5556
- * @example 50
5557
- */
5558
- limit: number;
5559
- /**
5560
- * @description Total number of pages
5561
- * @example 2
5562
- */
5563
- totalPages: number;
5564
- };
5565
5485
  GlobalSearchResultDto: {
5566
5486
  /**
5567
5487
  * @description Result ID
@@ -9767,6 +9687,50 @@ export interface operations {
9767
9687
  };
9768
9688
  };
9769
9689
  };
9690
+ ActiveTaskExecutionController_updateRunnerSessionId: {
9691
+ parameters: {
9692
+ query?: never;
9693
+ header?: never;
9694
+ path: {
9695
+ /** @description Execution ID to update */
9696
+ executionId: string;
9697
+ };
9698
+ cookie?: never;
9699
+ };
9700
+ requestBody: {
9701
+ content: {
9702
+ "application/json": components["schemas"]["UpdateRunnerSessionIdDto"];
9703
+ };
9704
+ };
9705
+ responses: {
9706
+ 204: {
9707
+ headers: {
9708
+ [name: string]: unknown;
9709
+ };
9710
+ content?: never;
9711
+ };
9712
+ };
9713
+ };
9714
+ ActiveTaskExecutionController_incrementToolCallCount: {
9715
+ parameters: {
9716
+ query?: never;
9717
+ header?: never;
9718
+ path: {
9719
+ /** @description Execution ID to update */
9720
+ executionId: string;
9721
+ };
9722
+ cookie?: never;
9723
+ };
9724
+ requestBody?: never;
9725
+ responses: {
9726
+ 204: {
9727
+ headers: {
9728
+ [name: string]: unknown;
9729
+ };
9730
+ content?: never;
9731
+ };
9732
+ };
9733
+ };
9770
9734
  TaskExecutionHistoryController_listHistory: {
9771
9735
  parameters: {
9772
9736
  query?: never;
@@ -10205,36 +10169,6 @@ export interface operations {
10205
10169
  };
10206
10170
  };
10207
10171
  };
10208
- ExecutionsController_listExecutions: {
10209
- parameters: {
10210
- query?: {
10211
- /** @description Filter by execution status */
10212
- status?: "READY" | "CLAIMED" | "RUNNING" | "STOP_REQUESTED" | "COMPLETED" | "FAILED" | "CANCELLED" | "STALE";
10213
- /** @description Filter by agent actor ID */
10214
- agentActorId?: string;
10215
- /** @description Filter by task ID */
10216
- taskId?: string;
10217
- /** @description Page number (1-indexed) */
10218
- page?: number;
10219
- /** @description Number of items per page */
10220
- limit?: number;
10221
- };
10222
- header?: never;
10223
- path?: never;
10224
- cookie?: never;
10225
- };
10226
- requestBody?: never;
10227
- responses: {
10228
- 200: {
10229
- headers: {
10230
- [name: string]: unknown;
10231
- };
10232
- content: {
10233
- "application/json": components["schemas"]["ExecutionListResponseDto"];
10234
- };
10235
- };
10236
- };
10237
- };
10238
10172
  GlobalSearchController_search: {
10239
10173
  parameters: {
10240
10174
  query: {
@@ -60,8 +60,6 @@ export type { DeleteConnectionResponseDto } from './models/DeleteConnectionRespo
60
60
  export type { DeleteMappingResponseDto } from './models/DeleteMappingResponseDto.js';
61
61
  export type { DeleteScopeResponseDto } from './models/DeleteScopeResponseDto.js';
62
62
  export type { DeleteServerResponseDto } from './models/DeleteServerResponseDto.js';
63
- export type { ExecutionListResponseDto } from './models/ExecutionListResponseDto.js';
64
- export { ExecutionResponseDto } from './models/ExecutionResponseDto.js';
65
63
  export type { FlowClientDto } from './models/FlowClientDto.js';
66
64
  export type { FlowServerDto } from './models/FlowServerDto.js';
67
65
  export { GetConsentMetadataResponseDto } from './models/GetConsentMetadataResponseDto.js';
@@ -125,6 +123,7 @@ export type { UpdateAgentRunDto } from './models/UpdateAgentRunDto.js';
125
123
  export type { UpdateBlockDto } from './models/UpdateBlockDto.js';
126
124
  export type { UpdateChatProviderDto } from './models/UpdateChatProviderDto.js';
127
125
  export type { UpdateConnectionDto } from './models/UpdateConnectionDto.js';
126
+ export type { UpdateRunnerSessionIdDto } from './models/UpdateRunnerSessionIdDto.js';
128
127
  export type { UpdateScheduledTaskDto } from './models/UpdateScheduledTaskDto.js';
129
128
  export type { UpdateSecretDto } from './models/UpdateSecretDto.js';
130
129
  export { UpdateServerDto } from './models/UpdateServerDto.js';
@@ -146,7 +145,6 @@ export { ChatProvidersService } from './services/ChatProvidersService.js';
146
145
  export { ContextService } from './services/ContextService.js';
147
146
  export { DiscoveryService } from './services/DiscoveryService.js';
148
147
  export { ExecutionsService } from './services/ExecutionsService.js';
149
- export { ExecutionsV2Service } from './services/ExecutionsV2Service.js';
150
148
  export { JwksService } from './services/JwksService.js';
151
149
  export { MetaService } from './services/MetaService.js';
152
150
  export { MetaProjectsService } from './services/MetaProjectsService.js';
@@ -17,7 +17,6 @@ export { ConnectionFlowResponseDto } from './models/ConnectionFlowResponseDto.js
17
17
  export { CreateAgentDto } from './models/CreateAgentDto.js';
18
18
  export { CreateChatProviderDto } from './models/CreateChatProviderDto.js';
19
19
  export { CreateServerDto } from './models/CreateServerDto.js';
20
- export { ExecutionResponseDto } from './models/ExecutionResponseDto.js';
21
20
  export { GetConsentMetadataResponseDto } from './models/GetConsentMetadataResponseDto.js';
22
21
  export { GlobalSearchResultDto } from './models/GlobalSearchResultDto.js';
23
22
  export { IntrospectTokenRequestDto } from './models/IntrospectTokenRequestDto.js';
@@ -48,7 +47,6 @@ export { ChatProvidersService } from './services/ChatProvidersService.js';
48
47
  export { ContextService } from './services/ContextService.js';
49
48
  export { DiscoveryService } from './services/DiscoveryService.js';
50
49
  export { ExecutionsService } from './services/ExecutionsService.js';
51
- export { ExecutionsV2Service } from './services/ExecutionsV2Service.js';
52
50
  export { JwksService } from './services/JwksService.js';
53
51
  export { MetaService } from './services/MetaService.js';
54
52
  export { MetaProjectsService } from './services/MetaProjectsService.js';
@@ -24,6 +24,14 @@ export type ActiveTaskExecutionResponseDto = {
24
24
  * Latest worker heartbeat received for this active execution
25
25
  */
26
26
  lastHeartbeatAt: string | null;
27
+ /**
28
+ * Agent runtime session identifier associated with this execution
29
+ */
30
+ runnerSessionId: string | null;
31
+ /**
32
+ * Number of tool calls made during this execution so far
33
+ */
34
+ toolCallCount: number;
27
35
  /**
28
36
  * Task status before the task was claimed
29
37
  */
@@ -31,6 +31,14 @@ export type TaskExecutionHistoryResponseDto = {
31
31
  * OAuth client id of the worker that executed the task
32
32
  */
33
33
  workerClientId: string;
34
+ /**
35
+ * Agent runtime session identifier associated with this execution
36
+ */
37
+ runnerSessionId: string | null;
38
+ /**
39
+ * Number of tool calls made during the execution
40
+ */
41
+ toolCallCount: number;
34
42
  /**
35
43
  * Terminal execution status
36
44
  */
@@ -0,0 +1,6 @@
1
+ export type UpdateRunnerSessionIdDto = {
2
+ /**
3
+ * Agent runtime session identifier for this execution
4
+ */
5
+ sessionId: string;
6
+ };
@@ -8,7 +8,7 @@ export declare class AgentRunService {
8
8
  /**
9
9
  * @deprecated
10
10
  * Create a new agent run
11
- * DEPRECATED: This endpoint is a legacy compatibility facade. New workers should use the execution-centric model (TaskExecution) instead of creating AgentRuns. This endpoint will be removed once all workers migrate to execution-id. See /docs/AGENT_RUN_DEPRECATION.md for details.
11
+ * Compatibility endpoint for contexts that still create AgentRun records. Execution id is the authoritative runtime identity.
12
12
  * @param requestBody
13
13
  * @returns AgentRunResponseDto Agent run created successfully
14
14
  * @throws ApiError
@@ -34,7 +34,7 @@ export declare class AgentRunService {
34
34
  /**
35
35
  * @deprecated
36
36
  * Update an agent run
37
- * DEPRECATED: This endpoint is a legacy compatibility facade. Workers should update execution state via TaskExecution instead. See /docs/AGENT_RUN_DEPRECATION.md for migration details.
37
+ * Compatibility endpoint for updating AgentRun records. Execution lifecycle state is owned by executions.
38
38
  * @param runId Agent run ID
39
39
  * @param requestBody
40
40
  * @returns AgentRunResponseDto Agent run updated successfully
@@ -4,7 +4,7 @@ export class AgentRunService {
4
4
  /**
5
5
  * @deprecated
6
6
  * Create a new agent run
7
- * DEPRECATED: This endpoint is a legacy compatibility facade. New workers should use the execution-centric model (TaskExecution) instead of creating AgentRuns. This endpoint will be removed once all workers migrate to execution-id. See /docs/AGENT_RUN_DEPRECATION.md for details.
7
+ * Compatibility endpoint for contexts that still create AgentRun records. Execution id is the authoritative runtime identity.
8
8
  * @param requestBody
9
9
  * @returns AgentRunResponseDto Agent run created successfully
10
10
  * @throws ApiError
@@ -62,7 +62,7 @@ export class AgentRunService {
62
62
  /**
63
63
  * @deprecated
64
64
  * Update an agent run
65
- * DEPRECATED: This endpoint is a legacy compatibility facade. Workers should update execution state via TaskExecution instead. See /docs/AGENT_RUN_DEPRECATION.md for migration details.
65
+ * Compatibility endpoint for updating AgentRun records. Execution lifecycle state is owned by executions.
66
66
  * @param runId Agent run ID
67
67
  * @param requestBody
68
68
  * @returns AgentRunResponseDto Agent run updated successfully
@@ -1,17 +1,64 @@
1
- import type { ExecutionListResponseDto } from '../models/ExecutionListResponseDto.js';
1
+ import type { ActiveTaskExecutionResponseDto } from '../models/ActiveTaskExecutionResponseDto.js';
2
+ import type { StopActiveTaskExecutionDto } from '../models/StopActiveTaskExecutionDto.js';
3
+ import type { TaskExecutionHistoryResponseDto } from '../models/TaskExecutionHistoryResponseDto.js';
4
+ import type { TaskExecutionQueueEntryResponseDto } from '../models/TaskExecutionQueueEntryResponseDto.js';
5
+ import type { UpdateRunnerSessionIdDto } from '../models/UpdateRunnerSessionIdDto.js';
2
6
  import type { CancelablePromise } from '../core/CancelablePromise.js';
3
7
  import type { OpenAPIConfig } from '../core/OpenAPI.js';
4
8
  export declare class ExecutionsService {
5
9
  /**
6
- * List task executions with optional filtering and pagination
7
- * Returns the backend-tracked work queue showing all TaskExecution records. Useful for debugging the execution reconciler and understanding which tasks are ready to run.
8
- * @param status Filter by execution status
9
- * @param agentActorId Filter by agent actor ID
10
- * @param taskId Filter by task ID
11
- * @param page Page number (1-indexed)
12
- * @param limit Number of items per page
13
- * @returns ExecutionListResponseDto
10
+ * List the current task execution work queue
11
+ * Returns the tasks currently present in the execution queue. Presence means the task is ready to be picked by the executor.
12
+ * @returns TaskExecutionQueueEntryResponseDto
14
13
  * @throws ApiError
15
14
  */
16
- static executionsControllerListExecutions(status?: 'READY' | 'CLAIMED' | 'RUNNING' | 'STOP_REQUESTED' | 'COMPLETED' | 'FAILED' | 'CANCELLED' | 'STALE', agentActorId?: string, taskId?: string, page?: number, limit?: number, config?: OpenAPIConfig): CancelablePromise<ExecutionListResponseDto>;
15
+ static taskExecutionQueueControllerListQueue(config?: OpenAPIConfig): CancelablePromise<Array<TaskExecutionQueueEntryResponseDto>>;
16
+ /**
17
+ * Claim a specific task from the execution queue
18
+ * Atomically removes the task from the queue and inserts it into the active execution table.
19
+ * @param taskId Task ID to claim
20
+ * @returns ActiveTaskExecutionResponseDto
21
+ * @throws ApiError
22
+ */
23
+ static taskExecutionQueueControllerClaimTask(taskId: string, config?: OpenAPIConfig): CancelablePromise<ActiveTaskExecutionResponseDto>;
24
+ /**
25
+ * List active task executions
26
+ * Returns the tasks currently being worked on in the execution system.
27
+ * @returns ActiveTaskExecutionResponseDto
28
+ * @throws ApiError
29
+ */
30
+ static activeTaskExecutionControllerListActiveExecutions(config?: OpenAPIConfig): CancelablePromise<Array<ActiveTaskExecutionResponseDto>>;
31
+ /**
32
+ * Stop an active task execution and move it to history
33
+ * Atomically removes the execution from the active execution table and inserts it into the history table.
34
+ * @param executionId Execution ID to stop
35
+ * @param requestBody
36
+ * @returns TaskExecutionHistoryResponseDto
37
+ * @throws ApiError
38
+ */
39
+ static activeTaskExecutionControllerStopTaskExecution(executionId: string, requestBody: StopActiveTaskExecutionDto, config?: OpenAPIConfig): CancelablePromise<TaskExecutionHistoryResponseDto>;
40
+ /**
41
+ * Attach the runner session id to an active execution
42
+ * Stores the runtime session identifier emitted by the agent harness so it can be propagated to execution history.
43
+ * @param executionId Execution ID to update
44
+ * @param requestBody
45
+ * @returns void
46
+ * @throws ApiError
47
+ */
48
+ static activeTaskExecutionControllerUpdateRunnerSessionId(executionId: string, requestBody: UpdateRunnerSessionIdDto, config?: OpenAPIConfig): CancelablePromise<void>;
49
+ /**
50
+ * Increment tool call count for an active execution
51
+ * Atomically increments the active execution tool-call counter without touching other mutable execution fields.
52
+ * @param executionId Execution ID to update
53
+ * @returns void
54
+ * @throws ApiError
55
+ */
56
+ static activeTaskExecutionControllerIncrementToolCallCount(executionId: string, config?: OpenAPIConfig): CancelablePromise<void>;
57
+ /**
58
+ * List task execution history
59
+ * Returns the persisted execution history rows in the execution system.
60
+ * @returns TaskExecutionHistoryResponseDto
61
+ * @throws ApiError
62
+ */
63
+ static taskExecutionHistoryControllerListHistory(config?: OpenAPIConfig): CancelablePromise<Array<TaskExecutionHistoryResponseDto>>;
17
64
  }
@@ -2,27 +2,109 @@ import { OpenAPI } from '../core/OpenAPI.js';
2
2
  import { request as __request } from '../core/request.js';
3
3
  export class ExecutionsService {
4
4
  /**
5
- * List task executions with optional filtering and pagination
6
- * Returns the backend-tracked work queue showing all TaskExecution records. Useful for debugging the execution reconciler and understanding which tasks are ready to run.
7
- * @param status Filter by execution status
8
- * @param agentActorId Filter by agent actor ID
9
- * @param taskId Filter by task ID
10
- * @param page Page number (1-indexed)
11
- * @param limit Number of items per page
12
- * @returns ExecutionListResponseDto
5
+ * List the current task execution work queue
6
+ * Returns the tasks currently present in the execution queue. Presence means the task is ready to be picked by the executor.
7
+ * @returns TaskExecutionQueueEntryResponseDto
13
8
  * @throws ApiError
14
9
  */
15
- static executionsControllerListExecutions(status, agentActorId, taskId, page, limit, config = OpenAPI) {
10
+ static taskExecutionQueueControllerListQueue(config = OpenAPI) {
16
11
  return __request(config, {
17
12
  method: 'GET',
18
- url: '/api/v1/executions',
19
- query: {
20
- 'status': status,
21
- 'agentActorId': agentActorId,
13
+ url: '/api/v1/executions/queue',
14
+ });
15
+ }
16
+ /**
17
+ * Claim a specific task from the execution queue
18
+ * Atomically removes the task from the queue and inserts it into the active execution table.
19
+ * @param taskId Task ID to claim
20
+ * @returns ActiveTaskExecutionResponseDto
21
+ * @throws ApiError
22
+ */
23
+ static taskExecutionQueueControllerClaimTask(taskId, config = OpenAPI) {
24
+ return __request(config, {
25
+ method: 'POST',
26
+ url: '/api/v1/executions/queue/{taskId}/claim',
27
+ path: {
22
28
  'taskId': taskId,
23
- 'page': page,
24
- 'limit': limit,
25
29
  },
26
30
  });
27
31
  }
32
+ /**
33
+ * List active task executions
34
+ * Returns the tasks currently being worked on in the execution system.
35
+ * @returns ActiveTaskExecutionResponseDto
36
+ * @throws ApiError
37
+ */
38
+ static activeTaskExecutionControllerListActiveExecutions(config = OpenAPI) {
39
+ return __request(config, {
40
+ method: 'GET',
41
+ url: '/api/v1/executions/active',
42
+ });
43
+ }
44
+ /**
45
+ * Stop an active task execution and move it to history
46
+ * Atomically removes the execution from the active execution table and inserts it into the history table.
47
+ * @param executionId Execution ID to stop
48
+ * @param requestBody
49
+ * @returns TaskExecutionHistoryResponseDto
50
+ * @throws ApiError
51
+ */
52
+ static activeTaskExecutionControllerStopTaskExecution(executionId, requestBody, config = OpenAPI) {
53
+ return __request(config, {
54
+ method: 'POST',
55
+ url: '/api/v1/executions/active/{executionId}/stop',
56
+ path: {
57
+ 'executionId': executionId,
58
+ },
59
+ body: requestBody,
60
+ mediaType: 'application/json',
61
+ });
62
+ }
63
+ /**
64
+ * Attach the runner session id to an active execution
65
+ * Stores the runtime session identifier emitted by the agent harness so it can be propagated to execution history.
66
+ * @param executionId Execution ID to update
67
+ * @param requestBody
68
+ * @returns void
69
+ * @throws ApiError
70
+ */
71
+ static activeTaskExecutionControllerUpdateRunnerSessionId(executionId, requestBody, config = OpenAPI) {
72
+ return __request(config, {
73
+ method: 'PATCH',
74
+ url: '/api/v1/executions/active/{executionId}/session',
75
+ path: {
76
+ 'executionId': executionId,
77
+ },
78
+ body: requestBody,
79
+ mediaType: 'application/json',
80
+ });
81
+ }
82
+ /**
83
+ * Increment tool call count for an active execution
84
+ * Atomically increments the active execution tool-call counter without touching other mutable execution fields.
85
+ * @param executionId Execution ID to update
86
+ * @returns void
87
+ * @throws ApiError
88
+ */
89
+ static activeTaskExecutionControllerIncrementToolCallCount(executionId, config = OpenAPI) {
90
+ return __request(config, {
91
+ method: 'PATCH',
92
+ url: '/api/v1/executions/active/{executionId}/tool-calls/increment',
93
+ path: {
94
+ 'executionId': executionId,
95
+ },
96
+ });
97
+ }
98
+ /**
99
+ * List task execution history
100
+ * Returns the persisted execution history rows in the execution system.
101
+ * @returns TaskExecutionHistoryResponseDto
102
+ * @throws ApiError
103
+ */
104
+ static taskExecutionHistoryControllerListHistory(config = OpenAPI) {
105
+ return __request(config, {
106
+ method: 'GET',
107
+ url: '/api/v1/executions/history',
108
+ });
109
+ }
28
110
  }
@@ -17,11 +17,10 @@ import { AgentExecutionTokensResource } from './agent-execution-tokens-resource.
17
17
  import { ChatProvidersResource } from './chat-providers-resource.js';
18
18
  import { SecretsResource } from './secrets-resource.js';
19
19
  import { ContextResource } from './context-resource.js';
20
- import { ExecutionsV2Resource } from './executions-v2-resource.js';
20
+ import { ExecutionsResource } from './executions-resource.js';
21
21
  import { TaskBlueprintsResource } from './task-blueprints-resource.js';
22
22
  import { ScheduledTasksResource } from './scheduled-tasks-resource.js';
23
23
  import { DiscoveryResource } from './discovery-resource.js';
24
- import { ExecutionsResource } from './executions-resource.js';
25
24
  import { SearchResource } from './search-resource.js';
26
25
  export declare class ApiClient {
27
26
  readonly app: AppResource;
@@ -42,11 +41,10 @@ export declare class ApiClient {
42
41
  readonly chatProviders: ChatProvidersResource;
43
42
  readonly secrets: SecretsResource;
44
43
  readonly context: ContextResource;
45
- readonly executionsV2: ExecutionsV2Resource;
44
+ readonly executions: ExecutionsResource;
46
45
  readonly taskBlueprints: TaskBlueprintsResource;
47
46
  readonly scheduledTasks: ScheduledTasksResource;
48
47
  readonly discovery: DiscoveryResource;
49
- readonly executions: ExecutionsResource;
50
48
  readonly search: SearchResource;
51
49
  constructor(config: ClientConfig);
52
50
  }
@@ -16,11 +16,10 @@ import { AgentExecutionTokensResource } from './agent-execution-tokens-resource.
16
16
  import { ChatProvidersResource } from './chat-providers-resource.js';
17
17
  import { SecretsResource } from './secrets-resource.js';
18
18
  import { ContextResource } from './context-resource.js';
19
- import { ExecutionsV2Resource } from './executions-v2-resource.js';
19
+ import { ExecutionsResource } from './executions-resource.js';
20
20
  import { TaskBlueprintsResource } from './task-blueprints-resource.js';
21
21
  import { ScheduledTasksResource } from './scheduled-tasks-resource.js';
22
22
  import { DiscoveryResource } from './discovery-resource.js';
23
- import { ExecutionsResource } from './executions-resource.js';
24
23
  import { SearchResource } from './search-resource.js';
25
24
  export class ApiClient {
26
25
  app;
@@ -41,11 +40,10 @@ export class ApiClient {
41
40
  chatProviders;
42
41
  secrets;
43
42
  context;
44
- executionsV2;
43
+ executions;
45
44
  taskBlueprints;
46
45
  scheduledTasks;
47
46
  discovery;
48
- executions;
49
47
  search;
50
48
  constructor(config) {
51
49
  this.app = new AppResource(config);
@@ -66,11 +64,10 @@ export class ApiClient {
66
64
  this.chatProviders = new ChatProvidersResource(config);
67
65
  this.secrets = new SecretsResource(config);
68
66
  this.context = new ContextResource(config);
69
- this.executionsV2 = new ExecutionsV2Resource(config);
67
+ this.executions = new ExecutionsResource(config);
70
68
  this.taskBlueprints = new TaskBlueprintsResource(config);
71
69
  this.scheduledTasks = new ScheduledTasksResource(config);
72
70
  this.discovery = new DiscoveryResource(config);
73
- this.executions = new ExecutionsResource(config);
74
71
  this.search = new SearchResource(config);
75
72
  }
76
73
  }
@@ -1,14 +1,39 @@
1
1
  import { BaseClient, ClientConfig } from './base-client.js';
2
- import type { ExecutionListResponseDto } from './types.js';
2
+ import type { ActiveTaskExecutionResponseDto, StopActiveTaskExecutionDto, TaskExecutionHistoryResponseDto, TaskExecutionQueueEntryResponseDto, UpdateRunnerSessionIdDto } from './types.js';
3
3
  export declare class ExecutionsResource extends BaseClient {
4
4
  constructor(config: ClientConfig);
5
- /** List task executions with optional filtering and pagination */
6
- ExecutionsController_listExecutions(params?: {
7
- status?: 'READY' | 'CLAIMED' | 'RUNNING' | 'STOP_REQUESTED' | 'COMPLETED' | 'FAILED' | 'CANCELLED' | 'STALE';
8
- agentActorId?: string;
9
- taskId?: string;
10
- page?: number;
11
- limit?: number;
12
- signal?: AbortSignal;
13
- }): Promise<ExecutionListResponseDto>;
5
+ /** List the current task execution work queue */
6
+ TaskExecutionQueueController_listQueue(params?: {
7
+ signal?: AbortSignal;
8
+ }): Promise<TaskExecutionQueueEntryResponseDto[]>;
9
+ /** Claim a specific task from the execution queue */
10
+ TaskExecutionQueueController_claimTask(params: {
11
+ taskId: string;
12
+ signal?: AbortSignal;
13
+ }): Promise<ActiveTaskExecutionResponseDto>;
14
+ /** List active task executions */
15
+ ActiveTaskExecutionController_listActiveExecutions(params?: {
16
+ signal?: AbortSignal;
17
+ }): Promise<ActiveTaskExecutionResponseDto[]>;
18
+ /** Stop an active task execution and move it to history */
19
+ ActiveTaskExecutionController_stopTaskExecution(params: {
20
+ executionId: string;
21
+ body: StopActiveTaskExecutionDto;
22
+ signal?: AbortSignal;
23
+ }): Promise<TaskExecutionHistoryResponseDto>;
24
+ /** Attach the runner session id to an active execution */
25
+ ActiveTaskExecutionController_updateRunnerSessionId(params: {
26
+ executionId: string;
27
+ body: UpdateRunnerSessionIdDto;
28
+ signal?: AbortSignal;
29
+ }): Promise<void>;
30
+ /** Increment tool call count for an active execution */
31
+ ActiveTaskExecutionController_incrementToolCallCount(params: {
32
+ executionId: string;
33
+ signal?: AbortSignal;
34
+ }): Promise<void>;
35
+ /** List task execution history */
36
+ TaskExecutionHistoryController_listHistory(params?: {
37
+ signal?: AbortSignal;
38
+ }): Promise<TaskExecutionHistoryResponseDto[]>;
14
39
  }
@@ -3,8 +3,32 @@ export class ExecutionsResource extends BaseClient {
3
3
  constructor(config) {
4
4
  super(config);
5
5
  }
6
- /** List task executions with optional filtering and pagination */
7
- async ExecutionsController_listExecutions(params) {
8
- return this.request('GET', '/api/v1/executions', { params: { status: params?.status, agentActorId: params?.agentActorId, taskId: params?.taskId, page: params?.page, limit: params?.limit }, signal: params?.signal });
6
+ /** List the current task execution work queue */
7
+ async TaskExecutionQueueController_listQueue(params) {
8
+ return this.request('GET', '/api/v1/executions/queue', { signal: params?.signal });
9
+ }
10
+ /** Claim a specific task from the execution queue */
11
+ async TaskExecutionQueueController_claimTask(params) {
12
+ return this.request('POST', `/api/v1/executions/queue/${params.taskId}/claim`, { signal: params?.signal });
13
+ }
14
+ /** List active task executions */
15
+ async ActiveTaskExecutionController_listActiveExecutions(params) {
16
+ return this.request('GET', '/api/v1/executions/active', { signal: params?.signal });
17
+ }
18
+ /** Stop an active task execution and move it to history */
19
+ async ActiveTaskExecutionController_stopTaskExecution(params) {
20
+ return this.request('POST', `/api/v1/executions/active/${params.executionId}/stop`, { body: params.body, signal: params?.signal });
21
+ }
22
+ /** Attach the runner session id to an active execution */
23
+ async ActiveTaskExecutionController_updateRunnerSessionId(params) {
24
+ return this.request('PATCH', `/api/v1/executions/active/${params.executionId}/session`, { body: params.body, signal: params?.signal });
25
+ }
26
+ /** Increment tool call count for an active execution */
27
+ async ActiveTaskExecutionController_incrementToolCallCount(params) {
28
+ return this.request('PATCH', `/api/v1/executions/active/${params.executionId}/tool-calls/increment`, { signal: params?.signal });
29
+ }
30
+ /** List task execution history */
31
+ async TaskExecutionHistoryController_listHistory(params) {
32
+ return this.request('GET', '/api/v1/executions/history', { signal: params?.signal });
9
33
  }
10
34
  }
@@ -793,6 +793,8 @@ export interface ActiveTaskExecutionResponseDto {
793
793
  taskStatus: 'NOT_STARTED' | 'IN_PROGRESS' | 'FOR_REVIEW' | 'DONE';
794
794
  claimedAt: string;
795
795
  lastHeartbeatAt: string | null;
796
+ runnerSessionId: string | null;
797
+ toolCallCount: number;
796
798
  taskStatusBeforeClaim: 'NOT_STARTED' | 'IN_PROGRESS' | 'FOR_REVIEW' | 'DONE';
797
799
  taskTagsBeforeClaim: ActiveTaskExecutionTagSnapshotResponseDto[];
798
800
  workerClientId: string;
@@ -813,10 +815,15 @@ export interface TaskExecutionHistoryResponseDto {
813
815
  transitionedAt: string;
814
816
  agentActorId: string;
815
817
  workerClientId: string;
818
+ runnerSessionId: string | null;
819
+ toolCallCount: number;
816
820
  status: 'SUCCEEDED' | 'FAILED' | 'STALE' | 'CANCELLED';
817
821
  errorCode: 'OUT_OF_QUOTA' | 'UNKNOWN';
818
822
  errorMessage: string | null;
819
823
  }
824
+ export interface UpdateRunnerSessionIdDto {
825
+ sessionId: string;
826
+ }
820
827
  export interface CreateTaskBlueprintDto {
821
828
  name: string;
822
829
  description: string;
@@ -895,34 +902,6 @@ export interface ProtectedResourceMetadataResponseDto {
895
902
  bearer_methods_supported: string[];
896
903
  resource_name: string;
897
904
  }
898
- export interface ExecutionResponseDto {
899
- id: string;
900
- taskId: string;
901
- taskName?: string | null;
902
- agentActorId: string;
903
- agentSlug?: string | null;
904
- agentName?: string | null;
905
- status: 'READY' | 'CLAIMED' | 'RUNNING' | 'STOP_REQUESTED' | 'COMPLETED' | 'FAILED' | 'CANCELLED' | 'STALE';
906
- requestedAt: string;
907
- claimedAt?: string | null;
908
- startedAt?: string | null;
909
- finishedAt?: string | null;
910
- workerSessionId?: string | null;
911
- leaseExpiresAt?: string | null;
912
- stopRequestedAt?: string | null;
913
- failureReason?: string | null;
914
- triggerReason?: string | null;
915
- rowVersion: number;
916
- createdAt: string;
917
- updatedAt: string;
918
- }
919
- export interface ExecutionListResponseDto {
920
- items: ExecutionResponseDto[];
921
- total: number;
922
- page: number;
923
- limit: number;
924
- totalPages: number;
925
- }
926
905
  export interface GlobalSearchResultDto {
927
906
  id: string;
928
907
  type: 'task' | 'context_block' | 'agent' | 'project' | 'tag' | 'tool';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taico/client",
3
- "version": "0.2.1",
3
+ "version": "0.2.8",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -1,23 +0,0 @@
1
- import type { ExecutionResponseDto } from './ExecutionResponseDto.js';
2
- export type ExecutionListResponseDto = {
3
- /**
4
- * Array of task executions
5
- */
6
- items: Array<ExecutionResponseDto>;
7
- /**
8
- * Total number of executions matching the filter
9
- */
10
- total: number;
11
- /**
12
- * Current page number (1-indexed)
13
- */
14
- page: number;
15
- /**
16
- * Number of items per page
17
- */
18
- limit: number;
19
- /**
20
- * Total number of pages
21
- */
22
- totalPages: number;
23
- };
@@ -1,93 +0,0 @@
1
- export type ExecutionResponseDto = {
2
- /**
3
- * Unique execution identifier
4
- */
5
- id: string;
6
- /**
7
- * Task ID
8
- */
9
- taskId: string;
10
- /**
11
- * Task name
12
- */
13
- taskName?: string | null;
14
- /**
15
- * Agent actor ID
16
- */
17
- agentActorId: string;
18
- /**
19
- * Agent slug
20
- */
21
- agentSlug?: string | null;
22
- /**
23
- * Agent name
24
- */
25
- agentName?: string | null;
26
- /**
27
- * Execution status
28
- */
29
- status: ExecutionResponseDto.status;
30
- /**
31
- * When the execution was requested
32
- */
33
- requestedAt: string;
34
- /**
35
- * When the execution was claimed by a worker
36
- */
37
- claimedAt?: string | null;
38
- /**
39
- * When the execution started running
40
- */
41
- startedAt?: string | null;
42
- /**
43
- * When the execution finished
44
- */
45
- finishedAt?: string | null;
46
- /**
47
- * Worker session ID that claimed this execution
48
- */
49
- workerSessionId?: string | null;
50
- /**
51
- * When the worker lease expires
52
- */
53
- leaseExpiresAt?: string | null;
54
- /**
55
- * When a stop was requested
56
- */
57
- stopRequestedAt?: string | null;
58
- /**
59
- * Failure reason if execution failed
60
- */
61
- failureReason?: string | null;
62
- /**
63
- * Why this execution was triggered
64
- */
65
- triggerReason?: string | null;
66
- /**
67
- * Row version for optimistic locking
68
- */
69
- rowVersion: number;
70
- /**
71
- * Execution creation timestamp
72
- */
73
- createdAt: string;
74
- /**
75
- * Execution last update timestamp
76
- */
77
- updatedAt: string;
78
- };
79
- export declare namespace ExecutionResponseDto {
80
- /**
81
- * Execution status
82
- */
83
- enum status {
84
- READY = "READY",
85
- CLAIMED = "CLAIMED",
86
- RUNNING = "RUNNING",
87
- STOP_REQUESTED = "STOP_REQUESTED",
88
- COMPLETED = "COMPLETED",
89
- FAILED = "FAILED",
90
- CANCELLED = "CANCELLED",
91
- STALE = "STALE"
92
- }
93
- }
@@ -1,17 +0,0 @@
1
- export var ExecutionResponseDto;
2
- (function (ExecutionResponseDto) {
3
- /**
4
- * Execution status
5
- */
6
- let status;
7
- (function (status) {
8
- status["READY"] = "READY";
9
- status["CLAIMED"] = "CLAIMED";
10
- status["RUNNING"] = "RUNNING";
11
- status["STOP_REQUESTED"] = "STOP_REQUESTED";
12
- status["COMPLETED"] = "COMPLETED";
13
- status["FAILED"] = "FAILED";
14
- status["CANCELLED"] = "CANCELLED";
15
- status["STALE"] = "STALE";
16
- })(status = ExecutionResponseDto.status || (ExecutionResponseDto.status = {}));
17
- })(ExecutionResponseDto || (ExecutionResponseDto = {}));
@@ -1,46 +0,0 @@
1
- import type { ActiveTaskExecutionResponseDto } from '../models/ActiveTaskExecutionResponseDto.js';
2
- import type { StopActiveTaskExecutionDto } from '../models/StopActiveTaskExecutionDto.js';
3
- import type { TaskExecutionHistoryResponseDto } from '../models/TaskExecutionHistoryResponseDto.js';
4
- import type { TaskExecutionQueueEntryResponseDto } from '../models/TaskExecutionQueueEntryResponseDto.js';
5
- import type { CancelablePromise } from '../core/CancelablePromise.js';
6
- import type { OpenAPIConfig } from '../core/OpenAPI.js';
7
- export declare class ExecutionsV2Service {
8
- /**
9
- * List the current task execution work queue
10
- * Returns the tasks currently present in the v2 execution queue. Presence means the task is ready to be picked by the executor.
11
- * @returns TaskExecutionQueueEntryResponseDto
12
- * @throws ApiError
13
- */
14
- static taskExecutionQueueControllerListQueue(config?: OpenAPIConfig): CancelablePromise<Array<TaskExecutionQueueEntryResponseDto>>;
15
- /**
16
- * Claim a specific task from the execution queue
17
- * Atomically removes the task from the queue and inserts it into the active execution table.
18
- * @param taskId Task ID to claim
19
- * @returns ActiveTaskExecutionResponseDto
20
- * @throws ApiError
21
- */
22
- static taskExecutionQueueControllerClaimTask(taskId: string, config?: OpenAPIConfig): CancelablePromise<ActiveTaskExecutionResponseDto>;
23
- /**
24
- * List active task executions
25
- * Returns the tasks currently being worked on in the v2 execution system.
26
- * @returns ActiveTaskExecutionResponseDto
27
- * @throws ApiError
28
- */
29
- static activeTaskExecutionControllerListActiveExecutions(config?: OpenAPIConfig): CancelablePromise<Array<ActiveTaskExecutionResponseDto>>;
30
- /**
31
- * Stop an active task execution and move it to history
32
- * Atomically removes the execution from the active execution table and inserts it into the history table.
33
- * @param executionId Execution ID to stop
34
- * @param requestBody
35
- * @returns TaskExecutionHistoryResponseDto
36
- * @throws ApiError
37
- */
38
- static activeTaskExecutionControllerStopTaskExecution(executionId: string, requestBody: StopActiveTaskExecutionDto, config?: OpenAPIConfig): CancelablePromise<TaskExecutionHistoryResponseDto>;
39
- /**
40
- * List task execution history
41
- * Returns the persisted execution history rows in the v2 execution system.
42
- * @returns TaskExecutionHistoryResponseDto
43
- * @throws ApiError
44
- */
45
- static taskExecutionHistoryControllerListHistory(config?: OpenAPIConfig): CancelablePromise<Array<TaskExecutionHistoryResponseDto>>;
46
- }
@@ -1,75 +0,0 @@
1
- import { OpenAPI } from '../core/OpenAPI.js';
2
- import { request as __request } from '../core/request.js';
3
- export class ExecutionsV2Service {
4
- /**
5
- * List the current task execution work queue
6
- * Returns the tasks currently present in the v2 execution queue. Presence means the task is ready to be picked by the executor.
7
- * @returns TaskExecutionQueueEntryResponseDto
8
- * @throws ApiError
9
- */
10
- static taskExecutionQueueControllerListQueue(config = OpenAPI) {
11
- return __request(config, {
12
- method: 'GET',
13
- url: '/api/v1/executions-v2/queue',
14
- });
15
- }
16
- /**
17
- * Claim a specific task from the execution queue
18
- * Atomically removes the task from the queue and inserts it into the active execution table.
19
- * @param taskId Task ID to claim
20
- * @returns ActiveTaskExecutionResponseDto
21
- * @throws ApiError
22
- */
23
- static taskExecutionQueueControllerClaimTask(taskId, config = OpenAPI) {
24
- return __request(config, {
25
- method: 'POST',
26
- url: '/api/v1/executions-v2/queue/{taskId}/claim',
27
- path: {
28
- 'taskId': taskId,
29
- },
30
- });
31
- }
32
- /**
33
- * List active task executions
34
- * Returns the tasks currently being worked on in the v2 execution system.
35
- * @returns ActiveTaskExecutionResponseDto
36
- * @throws ApiError
37
- */
38
- static activeTaskExecutionControllerListActiveExecutions(config = OpenAPI) {
39
- return __request(config, {
40
- method: 'GET',
41
- url: '/api/v1/executions-v2/active',
42
- });
43
- }
44
- /**
45
- * Stop an active task execution and move it to history
46
- * Atomically removes the execution from the active execution table and inserts it into the history table.
47
- * @param executionId Execution ID to stop
48
- * @param requestBody
49
- * @returns TaskExecutionHistoryResponseDto
50
- * @throws ApiError
51
- */
52
- static activeTaskExecutionControllerStopTaskExecution(executionId, requestBody, config = OpenAPI) {
53
- return __request(config, {
54
- method: 'POST',
55
- url: '/api/v1/executions-v2/active/{executionId}/stop',
56
- path: {
57
- 'executionId': executionId,
58
- },
59
- body: requestBody,
60
- mediaType: 'application/json',
61
- });
62
- }
63
- /**
64
- * List task execution history
65
- * Returns the persisted execution history rows in the v2 execution system.
66
- * @returns TaskExecutionHistoryResponseDto
67
- * @throws ApiError
68
- */
69
- static taskExecutionHistoryControllerListHistory(config = OpenAPI) {
70
- return __request(config, {
71
- method: 'GET',
72
- url: '/api/v1/executions-v2/history',
73
- });
74
- }
75
- }
@@ -1,28 +0,0 @@
1
- import { BaseClient, ClientConfig } from './base-client.js';
2
- import type { ActiveTaskExecutionResponseDto, StopActiveTaskExecutionDto, TaskExecutionHistoryResponseDto, TaskExecutionQueueEntryResponseDto } from './types.js';
3
- export declare class ExecutionsV2Resource extends BaseClient {
4
- constructor(config: ClientConfig);
5
- /** List the current task execution work queue */
6
- TaskExecutionQueueController_listQueue(params?: {
7
- signal?: AbortSignal;
8
- }): Promise<TaskExecutionQueueEntryResponseDto[]>;
9
- /** Claim a specific task from the execution queue */
10
- TaskExecutionQueueController_claimTask(params: {
11
- taskId: string;
12
- signal?: AbortSignal;
13
- }): Promise<ActiveTaskExecutionResponseDto>;
14
- /** List active task executions */
15
- ActiveTaskExecutionController_listActiveExecutions(params?: {
16
- signal?: AbortSignal;
17
- }): Promise<ActiveTaskExecutionResponseDto[]>;
18
- /** Stop an active task execution and move it to history */
19
- ActiveTaskExecutionController_stopTaskExecution(params: {
20
- executionId: string;
21
- body: StopActiveTaskExecutionDto;
22
- signal?: AbortSignal;
23
- }): Promise<TaskExecutionHistoryResponseDto>;
24
- /** List task execution history */
25
- TaskExecutionHistoryController_listHistory(params?: {
26
- signal?: AbortSignal;
27
- }): Promise<TaskExecutionHistoryResponseDto[]>;
28
- }
@@ -1,26 +0,0 @@
1
- import { BaseClient } from './base-client.js';
2
- export class ExecutionsV2Resource extends BaseClient {
3
- constructor(config) {
4
- super(config);
5
- }
6
- /** List the current task execution work queue */
7
- async TaskExecutionQueueController_listQueue(params) {
8
- return this.request('GET', '/api/v1/executions-v2/queue', { signal: params?.signal });
9
- }
10
- /** Claim a specific task from the execution queue */
11
- async TaskExecutionQueueController_claimTask(params) {
12
- return this.request('POST', `/api/v1/executions-v2/queue/${params.taskId}/claim`, { signal: params?.signal });
13
- }
14
- /** List active task executions */
15
- async ActiveTaskExecutionController_listActiveExecutions(params) {
16
- return this.request('GET', '/api/v1/executions-v2/active', { signal: params?.signal });
17
- }
18
- /** Stop an active task execution and move it to history */
19
- async ActiveTaskExecutionController_stopTaskExecution(params) {
20
- return this.request('POST', `/api/v1/executions-v2/active/${params.executionId}/stop`, { body: params.body, signal: params?.signal });
21
- }
22
- /** List task execution history */
23
- async TaskExecutionHistoryController_listHistory(params) {
24
- return this.request('GET', '/api/v1/executions-v2/history', { signal: params?.signal });
25
- }
26
- }