@taico/client 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contracts/types.d.ts +3176 -1732
- package/dist/src/client/index.d.ts +23 -3
- package/dist/src/client/index.js +6 -0
- package/dist/src/client/models/CreateProjectDto.d.ts +1 -1
- package/dist/src/client/models/CreateScheduledTaskDto.d.ts +14 -0
- package/dist/src/client/models/CreateScheduledTaskDto.js +1 -0
- package/dist/src/client/models/CreateSecretDto.d.ts +14 -0
- package/dist/src/client/models/CreateSecretDto.js +1 -0
- package/dist/src/client/models/CreateServerDto.d.ts +21 -0
- package/dist/src/client/models/CreateServerDto.js +11 -1
- package/dist/src/client/models/CreateTaskBlueprintDto.d.ts +22 -0
- package/dist/src/client/models/CreateTaskBlueprintDto.js +1 -0
- package/dist/src/client/models/CreateThreadDto.d.ts +2 -2
- package/dist/src/client/models/CreateThreadMessageDto.d.ts +6 -0
- package/dist/src/client/models/CreateThreadMessageDto.js +1 -0
- package/dist/src/client/models/IntrospectTokenResponseDto.d.ts +22 -22
- package/dist/src/client/models/IntrospectTokenResponseDto.js +1 -1
- package/dist/src/client/models/ListThreadMessagesResponseDto.d.ts +19 -0
- package/dist/src/client/models/ListThreadMessagesResponseDto.js +1 -0
- package/dist/src/client/models/OnboardingRequestDto.d.ts +18 -0
- package/dist/src/client/models/OnboardingRequestDto.js +1 -0
- package/dist/src/client/models/OnboardingStatusResponseDto.d.ts +6 -0
- package/dist/src/client/models/OnboardingStatusResponseDto.js +1 -0
- package/dist/src/client/models/PatchAgentDto.d.ts +25 -1
- package/dist/src/client/models/PatchProjectDto.d.ts +1 -1
- package/dist/src/client/models/ScheduledTaskListResponseDto.d.ts +19 -0
- package/dist/src/client/models/ScheduledTaskListResponseDto.js +1 -0
- package/dist/src/client/models/ScheduledTaskResponseDto.d.ts +43 -0
- package/dist/src/client/models/ScheduledTaskResponseDto.js +1 -0
- package/dist/src/client/models/SecretResponseDto.d.ts +34 -0
- package/dist/src/client/models/SecretResponseDto.js +1 -0
- package/dist/src/client/models/SecretValueResponseDto.d.ts +14 -0
- package/dist/src/client/models/SecretValueResponseDto.js +1 -0
- package/dist/src/client/models/ServerResponseDto.d.ts +21 -0
- package/dist/src/client/models/ServerResponseDto.js +11 -1
- package/dist/src/client/models/TaskBlueprintListResponseDto.d.ts +19 -0
- package/dist/src/client/models/TaskBlueprintListResponseDto.js +1 -0
- package/dist/src/client/models/TaskBlueprintResponseDto.d.ts +48 -0
- package/dist/src/client/models/TaskBlueprintResponseDto.js +1 -0
- package/dist/src/client/models/ThreadListItemResponseDto.d.ts +4 -0
- package/dist/src/client/models/ThreadMessageResponseDto.d.ts +31 -0
- package/dist/src/client/models/ThreadMessageResponseDto.js +1 -0
- package/dist/src/client/models/ThreadResponseDto.d.ts +6 -2
- package/dist/src/client/models/UpdateScheduledTaskDto.d.ts +10 -0
- package/dist/src/client/models/UpdateScheduledTaskDto.js +1 -0
- package/dist/src/client/models/UpdateSecretDto.d.ts +14 -0
- package/dist/src/client/models/UpdateSecretDto.js +1 -0
- package/dist/src/client/models/UpdateServerDto.d.ts +21 -0
- package/dist/src/client/models/UpdateServerDto.js +11 -1
- package/dist/src/client/models/UpdateTaskBlueprintDto.d.ts +22 -0
- package/dist/src/client/models/UpdateTaskBlueprintDto.js +1 -0
- package/dist/src/client/models/UserResponseDto.d.ts +4 -0
- package/dist/src/client/services/AgentService.d.ts +1 -1
- package/dist/src/client/services/AgentService.js +1 -1
- package/dist/src/client/services/AuthorizationServerService.d.ts +2 -2
- package/dist/src/client/services/AuthorizationServerService.js +2 -2
- package/dist/src/client/services/ScheduledTasksService.d.ts +45 -0
- package/dist/src/client/services/ScheduledTasksService.js +98 -0
- package/dist/src/client/services/SecretsService.d.ts +49 -0
- package/dist/src/client/services/SecretsService.js +104 -0
- package/dist/src/client/services/TaskBlueprintsService.d.ts +52 -0
- package/dist/src/client/services/TaskBlueprintsService.js +115 -0
- package/dist/src/client/services/ThreadsService.d.ts +27 -0
- package/dist/src/client/services/ThreadsService.js +61 -0
- package/dist/src/client/services/WebAuthenticationService.d.ts +23 -0
- package/dist/src/client/services/WebAuthenticationService.js +42 -0
- package/package.json +4 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { TaskBlueprintResponseDto } from './TaskBlueprintResponseDto.js';
|
|
2
|
+
export type TaskBlueprintListResponseDto = {
|
|
3
|
+
/**
|
|
4
|
+
* List of task blueprints
|
|
5
|
+
*/
|
|
6
|
+
items: Array<TaskBlueprintResponseDto>;
|
|
7
|
+
/**
|
|
8
|
+
* Total number of task blueprints
|
|
9
|
+
*/
|
|
10
|
+
total: number;
|
|
11
|
+
/**
|
|
12
|
+
* Current page number
|
|
13
|
+
*/
|
|
14
|
+
page: number;
|
|
15
|
+
/**
|
|
16
|
+
* Number of items per page
|
|
17
|
+
*/
|
|
18
|
+
limit: number;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { ActorResponseDto } from './ActorResponseDto.js';
|
|
2
|
+
import type { TagResponseDto } from './TagResponseDto.js';
|
|
3
|
+
export type TaskBlueprintResponseDto = {
|
|
4
|
+
/**
|
|
5
|
+
* Unique identifier for the task blueprint
|
|
6
|
+
*/
|
|
7
|
+
id: string;
|
|
8
|
+
/**
|
|
9
|
+
* Name of the task blueprint
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* Detailed description of the task blueprint
|
|
14
|
+
*/
|
|
15
|
+
description: string;
|
|
16
|
+
/**
|
|
17
|
+
* ID of the default assignee for tasks created from this blueprint
|
|
18
|
+
*/
|
|
19
|
+
assigneeActorId?: Record<string, any> | null;
|
|
20
|
+
/**
|
|
21
|
+
* Actor assigned to tasks created from this blueprint
|
|
22
|
+
*/
|
|
23
|
+
assigneeActor?: ActorResponseDto | null;
|
|
24
|
+
/**
|
|
25
|
+
* Tags associated with tasks created from this blueprint
|
|
26
|
+
*/
|
|
27
|
+
tags: Array<TagResponseDto>;
|
|
28
|
+
/**
|
|
29
|
+
* Array of task IDs that tasks created from this blueprint should depend on
|
|
30
|
+
*/
|
|
31
|
+
dependsOnIds: Array<string>;
|
|
32
|
+
/**
|
|
33
|
+
* Actor who created this task blueprint
|
|
34
|
+
*/
|
|
35
|
+
createdByActor: ActorResponseDto;
|
|
36
|
+
/**
|
|
37
|
+
* Row version for optimistic locking
|
|
38
|
+
*/
|
|
39
|
+
rowVersion: number;
|
|
40
|
+
/**
|
|
41
|
+
* Blueprint creation timestamp
|
|
42
|
+
*/
|
|
43
|
+
createdAt: string;
|
|
44
|
+
/**
|
|
45
|
+
* Blueprint last update timestamp
|
|
46
|
+
*/
|
|
47
|
+
updatedAt: string;
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
|
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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
|
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
|
|
53
|
+
* Patch an agent and its linked actor fields
|
|
54
54
|
* @param actorId Agent actor ID
|
|
55
55
|
* @param requestBody
|
|
56
56
|
* @returns AgentResponseDto
|
|
@@ -45,14 +45,14 @@ export declare class AuthorizationServerService {
|
|
|
45
45
|
* @param codeChallengeMethod PKCE code challenge method (S256 for SHA-256)
|
|
46
46
|
* @param redirectUri Redirect URI where the authorization response will be sent
|
|
47
47
|
* @param state Opaque state value for CSRF protection
|
|
48
|
-
* @param resource Resource server URL that the client wants to access
|
|
49
48
|
* @param serverIdentifier
|
|
50
49
|
* @param version
|
|
51
50
|
* @param scope Space-delimited list of scopes being requested
|
|
51
|
+
* @param resource Resource server URL that the client wants to access
|
|
52
52
|
* @returns void
|
|
53
53
|
* @throws ApiError
|
|
54
54
|
*/
|
|
55
|
-
static authorizationControllerAuthorize(responseType: 'code', clientId: string, codeChallenge: string, codeChallengeMethod: string, redirectUri: string, state: string,
|
|
55
|
+
static authorizationControllerAuthorize(responseType: 'code', clientId: string, codeChallenge: string, codeChallengeMethod: string, redirectUri: string, state: string, serverIdentifier: string, version: string, scope?: string, resource?: string): CancelablePromise<void>;
|
|
56
56
|
/**
|
|
57
57
|
* OAuth 2.0 Authorization Consent Handler
|
|
58
58
|
* Handles user consent decision. Validates the flow ID (CSRF token), generates an authorization code if approved, and redirects back to the client with the code or error.
|
|
@@ -66,14 +66,14 @@ export class AuthorizationServerService {
|
|
|
66
66
|
* @param codeChallengeMethod PKCE code challenge method (S256 for SHA-256)
|
|
67
67
|
* @param redirectUri Redirect URI where the authorization response will be sent
|
|
68
68
|
* @param state Opaque state value for CSRF protection
|
|
69
|
-
* @param resource Resource server URL that the client wants to access
|
|
70
69
|
* @param serverIdentifier
|
|
71
70
|
* @param version
|
|
72
71
|
* @param scope Space-delimited list of scopes being requested
|
|
72
|
+
* @param resource Resource server URL that the client wants to access
|
|
73
73
|
* @returns void
|
|
74
74
|
* @throws ApiError
|
|
75
75
|
*/
|
|
76
|
-
static authorizationControllerAuthorize(responseType, clientId, codeChallenge, codeChallengeMethod, redirectUri, state,
|
|
76
|
+
static authorizationControllerAuthorize(responseType, clientId, codeChallenge, codeChallengeMethod, redirectUri, state, serverIdentifier, version, scope, resource) {
|
|
77
77
|
return __request(OpenAPI, {
|
|
78
78
|
method: 'GET',
|
|
79
79
|
url: '/api/v1/auth/authorize/mcp/{serverIdentifier}/{version}',
|
|
@@ -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
|
+
}
|