@taico/client 0.0.1 → 0.0.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.
Files changed (56) hide show
  1. package/dist/contracts/types.d.ts +2996 -1718
  2. package/dist/src/client/index.d.ts +21 -3
  3. package/dist/src/client/index.js +6 -0
  4. package/dist/src/client/models/CreateScheduledTaskDto.d.ts +14 -0
  5. package/dist/src/client/models/CreateScheduledTaskDto.js +1 -0
  6. package/dist/src/client/models/CreateSecretDto.d.ts +14 -0
  7. package/dist/src/client/models/CreateSecretDto.js +1 -0
  8. package/dist/src/client/models/CreateServerDto.d.ts +21 -0
  9. package/dist/src/client/models/CreateServerDto.js +11 -1
  10. package/dist/src/client/models/CreateTaskBlueprintDto.d.ts +22 -0
  11. package/dist/src/client/models/CreateTaskBlueprintDto.js +1 -0
  12. package/dist/src/client/models/CreateThreadDto.d.ts +2 -2
  13. package/dist/src/client/models/CreateThreadMessageDto.d.ts +6 -0
  14. package/dist/src/client/models/CreateThreadMessageDto.js +1 -0
  15. package/dist/src/client/models/IntrospectTokenResponseDto.d.ts +22 -22
  16. package/dist/src/client/models/IntrospectTokenResponseDto.js +1 -1
  17. package/dist/src/client/models/ListThreadMessagesResponseDto.d.ts +19 -0
  18. package/dist/src/client/models/ListThreadMessagesResponseDto.js +1 -0
  19. package/dist/src/client/models/PatchAgentDto.d.ts +25 -1
  20. package/dist/src/client/models/ScheduledTaskListResponseDto.d.ts +19 -0
  21. package/dist/src/client/models/ScheduledTaskListResponseDto.js +1 -0
  22. package/dist/src/client/models/ScheduledTaskResponseDto.d.ts +43 -0
  23. package/dist/src/client/models/ScheduledTaskResponseDto.js +1 -0
  24. package/dist/src/client/models/SecretResponseDto.d.ts +34 -0
  25. package/dist/src/client/models/SecretResponseDto.js +1 -0
  26. package/dist/src/client/models/SecretValueResponseDto.d.ts +14 -0
  27. package/dist/src/client/models/SecretValueResponseDto.js +1 -0
  28. package/dist/src/client/models/ServerResponseDto.d.ts +21 -0
  29. package/dist/src/client/models/ServerResponseDto.js +11 -1
  30. package/dist/src/client/models/TaskBlueprintListResponseDto.d.ts +19 -0
  31. package/dist/src/client/models/TaskBlueprintListResponseDto.js +1 -0
  32. package/dist/src/client/models/TaskBlueprintResponseDto.d.ts +48 -0
  33. package/dist/src/client/models/TaskBlueprintResponseDto.js +1 -0
  34. package/dist/src/client/models/ThreadListItemResponseDto.d.ts +4 -0
  35. package/dist/src/client/models/ThreadMessageResponseDto.d.ts +31 -0
  36. package/dist/src/client/models/ThreadMessageResponseDto.js +1 -0
  37. package/dist/src/client/models/ThreadResponseDto.d.ts +6 -2
  38. package/dist/src/client/models/UpdateScheduledTaskDto.d.ts +10 -0
  39. package/dist/src/client/models/UpdateScheduledTaskDto.js +1 -0
  40. package/dist/src/client/models/UpdateSecretDto.d.ts +14 -0
  41. package/dist/src/client/models/UpdateSecretDto.js +1 -0
  42. package/dist/src/client/models/UpdateServerDto.d.ts +21 -0
  43. package/dist/src/client/models/UpdateServerDto.js +11 -1
  44. package/dist/src/client/models/UpdateTaskBlueprintDto.d.ts +22 -0
  45. package/dist/src/client/models/UpdateTaskBlueprintDto.js +1 -0
  46. package/dist/src/client/services/AgentService.d.ts +1 -1
  47. package/dist/src/client/services/AgentService.js +1 -1
  48. package/dist/src/client/services/ScheduledTasksService.d.ts +45 -0
  49. package/dist/src/client/services/ScheduledTasksService.js +98 -0
  50. package/dist/src/client/services/SecretsService.d.ts +49 -0
  51. package/dist/src/client/services/SecretsService.js +104 -0
  52. package/dist/src/client/services/TaskBlueprintsService.d.ts +52 -0
  53. package/dist/src/client/services/TaskBlueprintsService.js +115 -0
  54. package/dist/src/client/services/ThreadsService.d.ts +27 -0
  55. package/dist/src/client/services/ThreadsService.js +61 -0
  56. package/package.json +4 -2
@@ -7,4 +7,8 @@ export type ThreadListItemResponseDto = {
7
7
  * Thread title
8
8
  */
9
9
  title: string;
10
+ /**
11
+ * Provider-specific chat session/conversation ID associated with this thread
12
+ */
13
+ chatSessionId: string | null;
10
14
  };
@@ -0,0 +1,31 @@
1
+ import type { ActorResponseDto } from './ActorResponseDto.js';
2
+ export type ThreadMessageResponseDto = {
3
+ /**
4
+ * Message ID
5
+ */
6
+ id: string;
7
+ /**
8
+ * Thread ID this message belongs to
9
+ */
10
+ threadId: string;
11
+ /**
12
+ * Content of the message
13
+ */
14
+ content: string;
15
+ /**
16
+ * Actor ID who created the message
17
+ */
18
+ createdByActorId?: string | null;
19
+ /**
20
+ * Actor who created the message
21
+ */
22
+ createdByActor?: ActorResponseDto | null;
23
+ /**
24
+ * When the message was created
25
+ */
26
+ createdAt: string;
27
+ /**
28
+ * When the message was last updated
29
+ */
30
+ updatedAt: string;
31
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -11,14 +11,18 @@ export type ThreadResponseDto = {
11
11
  * Thread title
12
12
  */
13
13
  title: string;
14
+ /**
15
+ * Provider-specific chat session/conversation ID associated with this thread
16
+ */
17
+ chatSessionId: string | null;
14
18
  /**
15
19
  * Actor who created the thread
16
20
  */
17
21
  createdByActor: ActorResponseDto;
18
22
  /**
19
- * Parent task ID that this thread belongs to
23
+ * Parent task ID that this thread belongs to (null for headless threads)
20
24
  */
21
- parentTaskId: string;
25
+ parentTaskId?: string | null;
22
26
  /**
23
27
  * State context block ID that tracks the evolving state of this thread
24
28
  */
@@ -0,0 +1,10 @@
1
+ export type UpdateScheduledTaskDto = {
2
+ /**
3
+ * Cron expression for scheduling (e.g., "0 9 * * 1-5" for weekdays at 9am)
4
+ */
5
+ cronExpression?: string;
6
+ /**
7
+ * Whether the scheduled task is enabled
8
+ */
9
+ enabled?: boolean;
10
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ export type UpdateSecretDto = {
2
+ /**
3
+ * New name for the secret
4
+ */
5
+ name?: string;
6
+ /**
7
+ * New description for the secret
8
+ */
9
+ description?: string | null;
10
+ /**
11
+ * New secret value (will be encrypted at rest)
12
+ */
13
+ value?: string;
14
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,8 @@
1
1
  export type UpdateServerDto = {
2
+ /**
3
+ * Transport type of the MCP server
4
+ */
5
+ type?: UpdateServerDto.type;
2
6
  /**
3
7
  * Display name of the MCP server
4
8
  */
@@ -11,4 +15,21 @@ export type UpdateServerDto = {
11
15
  * URL that MCP Clients will use to connect to the server
12
16
  */
13
17
  url?: string;
18
+ /**
19
+ * Command used to start a stdio MCP server
20
+ */
21
+ cmd?: string;
22
+ /**
23
+ * Arguments passed to the stdio command
24
+ */
25
+ args?: Array<string>;
14
26
  };
27
+ export declare namespace UpdateServerDto {
28
+ /**
29
+ * Transport type of the MCP server
30
+ */
31
+ enum type {
32
+ HTTP = "http",
33
+ STDIO = "stdio"
34
+ }
35
+ }
@@ -1 +1,11 @@
1
- export {};
1
+ export var UpdateServerDto;
2
+ (function (UpdateServerDto) {
3
+ /**
4
+ * Transport type of the MCP server
5
+ */
6
+ let type;
7
+ (function (type) {
8
+ type["HTTP"] = "http";
9
+ type["STDIO"] = "stdio";
10
+ })(type = UpdateServerDto.type || (UpdateServerDto.type = {}));
11
+ })(UpdateServerDto || (UpdateServerDto = {}));
@@ -0,0 +1,22 @@
1
+ export type UpdateTaskBlueprintDto = {
2
+ /**
3
+ * Name of the task blueprint
4
+ */
5
+ name?: string;
6
+ /**
7
+ * Detailed description of the task blueprint
8
+ */
9
+ description?: string;
10
+ /**
11
+ * ID or slug of the default assignee for tasks created from this blueprint
12
+ */
13
+ assigneeActorId?: Record<string, any> | null;
14
+ /**
15
+ * Array of tag names to associate with tasks created from this blueprint
16
+ */
17
+ tagNames?: Array<string>;
18
+ /**
19
+ * Array of task IDs that tasks created from this blueprint should depend on
20
+ */
21
+ dependsOnIds?: Array<string>;
22
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -28,7 +28,7 @@ export declare class AgentService {
28
28
  */
29
29
  static agentsControllerGetAgentBySlug(slug: string): CancelablePromise<AgentResponseDto>;
30
30
  /**
31
- * Patch an agent (update system prompt, status triggers, tag triggers, and/or type)
31
+ * Patch an agent and its linked actor fields
32
32
  * @param actorId Agent actor ID
33
33
  * @param requestBody
34
34
  * @returns AgentResponseDto
@@ -50,7 +50,7 @@ export class AgentService {
50
50
  });
51
51
  }
52
52
  /**
53
- * Patch an agent (update system prompt, status triggers, tag triggers, and/or type)
53
+ * Patch an agent and its linked actor fields
54
54
  * @param actorId Agent actor ID
55
55
  * @param requestBody
56
56
  * @returns AgentResponseDto
@@ -0,0 +1,45 @@
1
+ import type { CreateScheduledTaskDto } from '../models/CreateScheduledTaskDto.js';
2
+ import type { ScheduledTaskListResponseDto } from '../models/ScheduledTaskListResponseDto.js';
3
+ import type { ScheduledTaskResponseDto } from '../models/ScheduledTaskResponseDto.js';
4
+ import type { UpdateScheduledTaskDto } from '../models/UpdateScheduledTaskDto.js';
5
+ import type { CancelablePromise } from '../core/CancelablePromise.js';
6
+ export declare class ScheduledTasksService {
7
+ /**
8
+ * Create a new scheduled task
9
+ * @param requestBody
10
+ * @returns ScheduledTaskResponseDto Scheduled task created successfully
11
+ * @throws ApiError
12
+ */
13
+ static scheduledTasksControllerCreateScheduledTask(requestBody: CreateScheduledTaskDto): CancelablePromise<ScheduledTaskResponseDto>;
14
+ /**
15
+ * List all scheduled tasks
16
+ * @param page Page number (1-indexed)
17
+ * @param limit Number of items per page
18
+ * @param enabled Filter by enabled status
19
+ * @returns ScheduledTaskListResponseDto Scheduled tasks retrieved successfully
20
+ * @throws ApiError
21
+ */
22
+ static scheduledTasksControllerListScheduledTasks(page?: number, limit?: number, enabled?: boolean): CancelablePromise<ScheduledTaskListResponseDto>;
23
+ /**
24
+ * Get a scheduled task by ID
25
+ * @param id Scheduled task ID
26
+ * @returns ScheduledTaskResponseDto Scheduled task retrieved successfully
27
+ * @throws ApiError
28
+ */
29
+ static scheduledTasksControllerGetScheduledTask(id: string): CancelablePromise<ScheduledTaskResponseDto>;
30
+ /**
31
+ * Update a scheduled task
32
+ * @param id Scheduled task ID
33
+ * @param requestBody
34
+ * @returns ScheduledTaskResponseDto Scheduled task updated successfully
35
+ * @throws ApiError
36
+ */
37
+ static scheduledTasksControllerUpdateScheduledTask(id: string, requestBody: UpdateScheduledTaskDto): CancelablePromise<ScheduledTaskResponseDto>;
38
+ /**
39
+ * Delete a scheduled task
40
+ * @param id Scheduled task ID
41
+ * @returns void
42
+ * @throws ApiError
43
+ */
44
+ static scheduledTasksControllerDeleteScheduledTask(id: string): CancelablePromise<void>;
45
+ }
@@ -0,0 +1,98 @@
1
+ import { OpenAPI } from '../core/OpenAPI.js';
2
+ import { request as __request } from '../core/request.js';
3
+ export class ScheduledTasksService {
4
+ /**
5
+ * Create a new scheduled task
6
+ * @param requestBody
7
+ * @returns ScheduledTaskResponseDto Scheduled task created successfully
8
+ * @throws ApiError
9
+ */
10
+ static scheduledTasksControllerCreateScheduledTask(requestBody) {
11
+ return __request(OpenAPI, {
12
+ method: 'POST',
13
+ url: '/api/v1/scheduled-tasks',
14
+ body: requestBody,
15
+ mediaType: 'application/json',
16
+ errors: {
17
+ 400: `Invalid input data`,
18
+ },
19
+ });
20
+ }
21
+ /**
22
+ * List all scheduled tasks
23
+ * @param page Page number (1-indexed)
24
+ * @param limit Number of items per page
25
+ * @param enabled Filter by enabled status
26
+ * @returns ScheduledTaskListResponseDto Scheduled tasks retrieved successfully
27
+ * @throws ApiError
28
+ */
29
+ static scheduledTasksControllerListScheduledTasks(page = 1, limit = 20, enabled) {
30
+ return __request(OpenAPI, {
31
+ method: 'GET',
32
+ url: '/api/v1/scheduled-tasks',
33
+ query: {
34
+ 'page': page,
35
+ 'limit': limit,
36
+ 'enabled': enabled,
37
+ },
38
+ });
39
+ }
40
+ /**
41
+ * Get a scheduled task by ID
42
+ * @param id Scheduled task ID
43
+ * @returns ScheduledTaskResponseDto Scheduled task retrieved successfully
44
+ * @throws ApiError
45
+ */
46
+ static scheduledTasksControllerGetScheduledTask(id) {
47
+ return __request(OpenAPI, {
48
+ method: 'GET',
49
+ url: '/api/v1/scheduled-tasks/{id}',
50
+ path: {
51
+ 'id': id,
52
+ },
53
+ errors: {
54
+ 404: `Scheduled task not found`,
55
+ },
56
+ });
57
+ }
58
+ /**
59
+ * Update a scheduled task
60
+ * @param id Scheduled task ID
61
+ * @param requestBody
62
+ * @returns ScheduledTaskResponseDto Scheduled task updated successfully
63
+ * @throws ApiError
64
+ */
65
+ static scheduledTasksControllerUpdateScheduledTask(id, requestBody) {
66
+ return __request(OpenAPI, {
67
+ method: 'PATCH',
68
+ url: '/api/v1/scheduled-tasks/{id}',
69
+ path: {
70
+ 'id': id,
71
+ },
72
+ body: requestBody,
73
+ mediaType: 'application/json',
74
+ errors: {
75
+ 400: `Invalid input data`,
76
+ 404: `Scheduled task not found`,
77
+ },
78
+ });
79
+ }
80
+ /**
81
+ * Delete a scheduled task
82
+ * @param id Scheduled task ID
83
+ * @returns void
84
+ * @throws ApiError
85
+ */
86
+ static scheduledTasksControllerDeleteScheduledTask(id) {
87
+ return __request(OpenAPI, {
88
+ method: 'DELETE',
89
+ url: '/api/v1/scheduled-tasks/{id}',
90
+ path: {
91
+ 'id': id,
92
+ },
93
+ errors: {
94
+ 404: `Scheduled task not found`,
95
+ },
96
+ });
97
+ }
98
+ }
@@ -0,0 +1,49 @@
1
+ import type { CreateSecretDto } from '../models/CreateSecretDto.js';
2
+ import type { SecretResponseDto } from '../models/SecretResponseDto.js';
3
+ import type { SecretValueResponseDto } from '../models/SecretValueResponseDto.js';
4
+ import type { UpdateSecretDto } from '../models/UpdateSecretDto.js';
5
+ import type { CancelablePromise } from '../core/CancelablePromise.js';
6
+ export declare class SecretsService {
7
+ /**
8
+ * Create a new secret
9
+ * @param requestBody
10
+ * @returns SecretResponseDto Secret created successfully
11
+ * @throws ApiError
12
+ */
13
+ static secretsControllerCreateSecret(requestBody: CreateSecretDto): CancelablePromise<SecretResponseDto>;
14
+ /**
15
+ * List all secrets - values not included
16
+ * @returns SecretResponseDto List of secrets (no values)
17
+ * @throws ApiError
18
+ */
19
+ static secretsControllerListSecrets(): CancelablePromise<Array<SecretResponseDto>>;
20
+ /**
21
+ * Get secret metadata by ID - value not included
22
+ * @param id Secret identifier
23
+ * @returns SecretResponseDto Secret metadata
24
+ * @throws ApiError
25
+ */
26
+ static secretsControllerGetSecret(id: string): CancelablePromise<SecretResponseDto>;
27
+ /**
28
+ * Update a secret
29
+ * @param id Secret identifier
30
+ * @param requestBody
31
+ * @returns SecretResponseDto Secret updated successfully
32
+ * @throws ApiError
33
+ */
34
+ static secretsControllerUpdateSecret(id: string, requestBody: UpdateSecretDto): CancelablePromise<SecretResponseDto>;
35
+ /**
36
+ * Delete a secret
37
+ * @param id Secret identifier
38
+ * @returns void
39
+ * @throws ApiError
40
+ */
41
+ static secretsControllerDeleteSecret(id: string): CancelablePromise<void>;
42
+ /**
43
+ * Get decrypted secret value
44
+ * @param id Secret identifier
45
+ * @returns SecretValueResponseDto Decrypted secret value
46
+ * @throws ApiError
47
+ */
48
+ static secretsControllerGetSecretValue(id: string): CancelablePromise<SecretValueResponseDto>;
49
+ }
@@ -0,0 +1,104 @@
1
+ import { OpenAPI } from '../core/OpenAPI.js';
2
+ import { request as __request } from '../core/request.js';
3
+ export class SecretsService {
4
+ /**
5
+ * Create a new secret
6
+ * @param requestBody
7
+ * @returns SecretResponseDto Secret created successfully
8
+ * @throws ApiError
9
+ */
10
+ static secretsControllerCreateSecret(requestBody) {
11
+ return __request(OpenAPI, {
12
+ method: 'POST',
13
+ url: '/api/v1/secrets',
14
+ body: requestBody,
15
+ mediaType: 'application/json',
16
+ });
17
+ }
18
+ /**
19
+ * List all secrets - values not included
20
+ * @returns SecretResponseDto List of secrets (no values)
21
+ * @throws ApiError
22
+ */
23
+ static secretsControllerListSecrets() {
24
+ return __request(OpenAPI, {
25
+ method: 'GET',
26
+ url: '/api/v1/secrets',
27
+ });
28
+ }
29
+ /**
30
+ * Get secret metadata by ID - value not included
31
+ * @param id Secret identifier
32
+ * @returns SecretResponseDto Secret metadata
33
+ * @throws ApiError
34
+ */
35
+ static secretsControllerGetSecret(id) {
36
+ return __request(OpenAPI, {
37
+ method: 'GET',
38
+ url: '/api/v1/secrets/{id}',
39
+ path: {
40
+ 'id': id,
41
+ },
42
+ errors: {
43
+ 404: `Secret not found`,
44
+ },
45
+ });
46
+ }
47
+ /**
48
+ * Update a secret
49
+ * @param id Secret identifier
50
+ * @param requestBody
51
+ * @returns SecretResponseDto Secret updated successfully
52
+ * @throws ApiError
53
+ */
54
+ static secretsControllerUpdateSecret(id, requestBody) {
55
+ return __request(OpenAPI, {
56
+ method: 'PATCH',
57
+ url: '/api/v1/secrets/{id}',
58
+ path: {
59
+ 'id': id,
60
+ },
61
+ body: requestBody,
62
+ mediaType: 'application/json',
63
+ errors: {
64
+ 404: `Secret not found`,
65
+ },
66
+ });
67
+ }
68
+ /**
69
+ * Delete a secret
70
+ * @param id Secret identifier
71
+ * @returns void
72
+ * @throws ApiError
73
+ */
74
+ static secretsControllerDeleteSecret(id) {
75
+ return __request(OpenAPI, {
76
+ method: 'DELETE',
77
+ url: '/api/v1/secrets/{id}',
78
+ path: {
79
+ 'id': id,
80
+ },
81
+ errors: {
82
+ 404: `Secret not found`,
83
+ },
84
+ });
85
+ }
86
+ /**
87
+ * Get decrypted secret value
88
+ * @param id Secret identifier
89
+ * @returns SecretValueResponseDto Decrypted secret value
90
+ * @throws ApiError
91
+ */
92
+ static secretsControllerGetSecretValue(id) {
93
+ return __request(OpenAPI, {
94
+ method: 'GET',
95
+ url: '/api/v1/secrets/{id}/value',
96
+ path: {
97
+ 'id': id,
98
+ },
99
+ errors: {
100
+ 404: `Secret not found`,
101
+ },
102
+ });
103
+ }
104
+ }
@@ -0,0 +1,52 @@
1
+ import type { CreateTaskBlueprintDto } from '../models/CreateTaskBlueprintDto.js';
2
+ import type { TaskBlueprintListResponseDto } from '../models/TaskBlueprintListResponseDto.js';
3
+ import type { TaskBlueprintResponseDto } from '../models/TaskBlueprintResponseDto.js';
4
+ import type { TaskResponseDto } from '../models/TaskResponseDto.js';
5
+ import type { UpdateTaskBlueprintDto } from '../models/UpdateTaskBlueprintDto.js';
6
+ import type { CancelablePromise } from '../core/CancelablePromise.js';
7
+ export declare class TaskBlueprintsService {
8
+ /**
9
+ * Create a new task blueprint
10
+ * @param requestBody
11
+ * @returns TaskBlueprintResponseDto Task blueprint created successfully
12
+ * @throws ApiError
13
+ */
14
+ static taskBlueprintsControllerCreateTaskBlueprint(requestBody: CreateTaskBlueprintDto): CancelablePromise<TaskBlueprintResponseDto>;
15
+ /**
16
+ * List all task blueprints
17
+ * @param page Page number (1-indexed)
18
+ * @param limit Number of items per page
19
+ * @returns TaskBlueprintListResponseDto Task blueprints retrieved successfully
20
+ * @throws ApiError
21
+ */
22
+ static taskBlueprintsControllerListTaskBlueprints(page?: number, limit?: number): CancelablePromise<TaskBlueprintListResponseDto>;
23
+ /**
24
+ * Get a task blueprint by ID
25
+ * @param id Task blueprint ID
26
+ * @returns TaskBlueprintResponseDto Task blueprint retrieved successfully
27
+ * @throws ApiError
28
+ */
29
+ static taskBlueprintsControllerGetTaskBlueprint(id: string): CancelablePromise<TaskBlueprintResponseDto>;
30
+ /**
31
+ * Update a task blueprint
32
+ * @param id Task blueprint ID
33
+ * @param requestBody
34
+ * @returns TaskBlueprintResponseDto Task blueprint updated successfully
35
+ * @throws ApiError
36
+ */
37
+ static taskBlueprintsControllerUpdateTaskBlueprint(id: string, requestBody: UpdateTaskBlueprintDto): CancelablePromise<TaskBlueprintResponseDto>;
38
+ /**
39
+ * Delete a task blueprint
40
+ * @param id Task blueprint ID
41
+ * @returns void
42
+ * @throws ApiError
43
+ */
44
+ static taskBlueprintsControllerDeleteTaskBlueprint(id: string): CancelablePromise<void>;
45
+ /**
46
+ * Create a task from a blueprint
47
+ * @param id Task blueprint ID
48
+ * @returns TaskResponseDto Task created from blueprint successfully
49
+ * @throws ApiError
50
+ */
51
+ static taskBlueprintsControllerCreateTaskFromBlueprint(id: string): CancelablePromise<TaskResponseDto>;
52
+ }
@@ -0,0 +1,115 @@
1
+ import { OpenAPI } from '../core/OpenAPI.js';
2
+ import { request as __request } from '../core/request.js';
3
+ export class TaskBlueprintsService {
4
+ /**
5
+ * Create a new task blueprint
6
+ * @param requestBody
7
+ * @returns TaskBlueprintResponseDto Task blueprint created successfully
8
+ * @throws ApiError
9
+ */
10
+ static taskBlueprintsControllerCreateTaskBlueprint(requestBody) {
11
+ return __request(OpenAPI, {
12
+ method: 'POST',
13
+ url: '/api/v1/task-blueprints',
14
+ body: requestBody,
15
+ mediaType: 'application/json',
16
+ errors: {
17
+ 400: `Invalid input data`,
18
+ },
19
+ });
20
+ }
21
+ /**
22
+ * List all task blueprints
23
+ * @param page Page number (1-indexed)
24
+ * @param limit Number of items per page
25
+ * @returns TaskBlueprintListResponseDto Task blueprints retrieved successfully
26
+ * @throws ApiError
27
+ */
28
+ static taskBlueprintsControllerListTaskBlueprints(page = 1, limit = 20) {
29
+ return __request(OpenAPI, {
30
+ method: 'GET',
31
+ url: '/api/v1/task-blueprints',
32
+ query: {
33
+ 'page': page,
34
+ 'limit': limit,
35
+ },
36
+ });
37
+ }
38
+ /**
39
+ * Get a task blueprint by ID
40
+ * @param id Task blueprint ID
41
+ * @returns TaskBlueprintResponseDto Task blueprint retrieved successfully
42
+ * @throws ApiError
43
+ */
44
+ static taskBlueprintsControllerGetTaskBlueprint(id) {
45
+ return __request(OpenAPI, {
46
+ method: 'GET',
47
+ url: '/api/v1/task-blueprints/{id}',
48
+ path: {
49
+ 'id': id,
50
+ },
51
+ errors: {
52
+ 404: `Task blueprint not found`,
53
+ },
54
+ });
55
+ }
56
+ /**
57
+ * Update a task blueprint
58
+ * @param id Task blueprint ID
59
+ * @param requestBody
60
+ * @returns TaskBlueprintResponseDto Task blueprint updated successfully
61
+ * @throws ApiError
62
+ */
63
+ static taskBlueprintsControllerUpdateTaskBlueprint(id, requestBody) {
64
+ return __request(OpenAPI, {
65
+ method: 'PATCH',
66
+ url: '/api/v1/task-blueprints/{id}',
67
+ path: {
68
+ 'id': id,
69
+ },
70
+ body: requestBody,
71
+ mediaType: 'application/json',
72
+ errors: {
73
+ 400: `Invalid input data`,
74
+ 404: `Task blueprint not found`,
75
+ },
76
+ });
77
+ }
78
+ /**
79
+ * Delete a task blueprint
80
+ * @param id Task blueprint ID
81
+ * @returns void
82
+ * @throws ApiError
83
+ */
84
+ static taskBlueprintsControllerDeleteTaskBlueprint(id) {
85
+ return __request(OpenAPI, {
86
+ method: 'DELETE',
87
+ url: '/api/v1/task-blueprints/{id}',
88
+ path: {
89
+ 'id': id,
90
+ },
91
+ errors: {
92
+ 404: `Task blueprint not found`,
93
+ 409: `Task blueprint has active schedules`,
94
+ },
95
+ });
96
+ }
97
+ /**
98
+ * Create a task from a blueprint
99
+ * @param id Task blueprint ID
100
+ * @returns TaskResponseDto Task created from blueprint successfully
101
+ * @throws ApiError
102
+ */
103
+ static taskBlueprintsControllerCreateTaskFromBlueprint(id) {
104
+ return __request(OpenAPI, {
105
+ method: 'POST',
106
+ url: '/api/v1/task-blueprints/{id}/create-task',
107
+ path: {
108
+ 'id': id,
109
+ },
110
+ errors: {
111
+ 404: `Task blueprint not found`,
112
+ },
113
+ });
114
+ }
115
+ }