@nathapp/koda-cli 0.4.2 → 0.5.0-canary.1
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/commands/admin.d.ts +3 -0
- package/dist/commands/admin.d.ts.map +1 -0
- package/dist/commands/admin.js +98 -0
- package/dist/commands/admin.js.map +1 -0
- package/dist/commands/agent.d.ts.map +1 -1
- package/dist/commands/agent.js +147 -22
- package/dist/commands/agent.js.map +1 -1
- package/dist/commands/approval.d.ts +3 -0
- package/dist/commands/approval.d.ts.map +1 -0
- package/dist/commands/approval.js +319 -0
- package/dist/commands/approval.js.map +1 -0
- package/dist/commands/auth.d.ts +3 -0
- package/dist/commands/auth.d.ts.map +1 -0
- package/dist/commands/auth.js +97 -0
- package/dist/commands/auth.js.map +1 -0
- package/dist/commands/ci-webhook.d.ts +3 -0
- package/dist/commands/ci-webhook.d.ts.map +1 -0
- package/dist/commands/ci-webhook.js +83 -0
- package/dist/commands/ci-webhook.js.map +1 -0
- package/dist/commands/code-intel.d.ts +3 -0
- package/dist/commands/code-intel.d.ts.map +1 -0
- package/dist/commands/code-intel.js +107 -0
- package/dist/commands/code-intel.js.map +1 -0
- package/dist/commands/comment.d.ts.map +1 -1
- package/dist/commands/comment.js +21 -63
- package/dist/commands/comment.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +2 -1
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/context.d.ts +3 -0
- package/dist/commands/context.d.ts.map +1 -0
- package/dist/commands/context.js +64 -0
- package/dist/commands/context.js.map +1 -0
- package/dist/commands/evaluate.d.ts +3 -0
- package/dist/commands/evaluate.d.ts.map +1 -0
- package/dist/commands/evaluate.js +108 -0
- package/dist/commands/evaluate.js.map +1 -0
- package/dist/commands/fleet-analytics.d.ts +9 -0
- package/dist/commands/fleet-analytics.d.ts.map +1 -0
- package/dist/commands/fleet-analytics.js +235 -0
- package/dist/commands/fleet-analytics.js.map +1 -0
- package/dist/commands/fleet-budget.d.ts +27 -0
- package/dist/commands/fleet-budget.d.ts.map +1 -0
- package/dist/commands/fleet-budget.js +217 -0
- package/dist/commands/fleet-budget.js.map +1 -0
- package/dist/commands/fleet-config.d.ts +3 -0
- package/dist/commands/fleet-config.d.ts.map +1 -0
- package/dist/commands/fleet-config.js +62 -0
- package/dist/commands/fleet-config.js.map +1 -0
- package/dist/commands/fleet-dispatch.d.ts +9 -0
- package/dist/commands/fleet-dispatch.d.ts.map +1 -0
- package/dist/commands/fleet-dispatch.js +134 -0
- package/dist/commands/fleet-dispatch.js.map +1 -0
- package/dist/commands/fleet-ingest.d.ts +4 -0
- package/dist/commands/fleet-ingest.d.ts.map +1 -0
- package/dist/commands/fleet-ingest.js +93 -0
- package/dist/commands/fleet-ingest.js.map +1 -0
- package/dist/commands/fleet-job-logs.d.ts +46 -0
- package/dist/commands/fleet-job-logs.d.ts.map +1 -0
- package/dist/commands/fleet-job-logs.js +139 -0
- package/dist/commands/fleet-job-logs.js.map +1 -0
- package/dist/commands/fleet-job-rulings.d.ts +3 -0
- package/dist/commands/fleet-job-rulings.d.ts.map +1 -0
- package/dist/commands/fleet-job-rulings.js +60 -0
- package/dist/commands/fleet-job-rulings.js.map +1 -0
- package/dist/commands/fleet-job.d.ts +3 -0
- package/dist/commands/fleet-job.d.ts.map +1 -0
- package/dist/commands/fleet-job.js +201 -0
- package/dist/commands/fleet-job.js.map +1 -0
- package/dist/commands/fleet-repo.d.ts +3 -0
- package/dist/commands/fleet-repo.d.ts.map +1 -0
- package/dist/commands/fleet-repo.js +200 -0
- package/dist/commands/fleet-repo.js.map +1 -0
- package/dist/commands/fleet-runner.d.ts +3 -0
- package/dist/commands/fleet-runner.d.ts.map +1 -0
- package/dist/commands/fleet-runner.js +109 -0
- package/dist/commands/fleet-runner.js.map +1 -0
- package/dist/commands/fleet-schedule.d.ts +10 -0
- package/dist/commands/fleet-schedule.d.ts.map +1 -0
- package/dist/commands/fleet-schedule.js +291 -0
- package/dist/commands/fleet-schedule.js.map +1 -0
- package/dist/commands/fleet-shared.d.ts +43 -0
- package/dist/commands/fleet-shared.d.ts.map +1 -0
- package/dist/commands/fleet-shared.js +155 -0
- package/dist/commands/fleet-shared.js.map +1 -0
- package/dist/commands/fleet-status.d.ts +10 -0
- package/dist/commands/fleet-status.d.ts.map +1 -0
- package/dist/commands/fleet-status.js +101 -0
- package/dist/commands/fleet-status.js.map +1 -0
- package/dist/commands/fleet.d.ts +4 -0
- package/dist/commands/fleet.d.ts.map +1 -0
- package/dist/commands/fleet.js +30 -0
- package/dist/commands/fleet.js.map +1 -0
- package/dist/commands/init.d.ts +2 -2
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +35 -8
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/kb.d.ts.map +1 -1
- package/dist/commands/kb.js +109 -94
- package/dist/commands/kb.js.map +1 -1
- package/dist/commands/label.d.ts.map +1 -1
- package/dist/commands/label.js +15 -49
- package/dist/commands/label.js.map +1 -1
- package/dist/commands/login.d.ts +9 -0
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +52 -7
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/member.d.ts +3 -0
- package/dist/commands/member.d.ts.map +1 -0
- package/dist/commands/member.js +221 -0
- package/dist/commands/member.js.map +1 -0
- package/dist/commands/memory.d.ts +3 -0
- package/dist/commands/memory.d.ts.map +1 -0
- package/dist/commands/memory.js +282 -0
- package/dist/commands/memory.js.map +1 -0
- package/dist/commands/notifications.d.ts +3 -0
- package/dist/commands/notifications.d.ts.map +1 -0
- package/dist/commands/notifications.js +72 -0
- package/dist/commands/notifications.js.map +1 -0
- package/dist/commands/project.d.ts.map +1 -1
- package/dist/commands/project.js +53 -35
- package/dist/commands/project.js.map +1 -1
- package/dist/commands/role-binding.d.ts +14 -0
- package/dist/commands/role-binding.d.ts.map +1 -0
- package/dist/commands/role-binding.js +136 -0
- package/dist/commands/role-binding.js.map +1 -0
- package/dist/commands/ticket-watch.d.ts +4 -0
- package/dist/commands/ticket-watch.d.ts.map +1 -0
- package/dist/commands/ticket-watch.js +36 -0
- package/dist/commands/ticket-watch.js.map +1 -0
- package/dist/commands/ticket.d.ts.map +1 -1
- package/dist/commands/ticket.js +174 -244
- package/dist/commands/ticket.js.map +1 -1
- package/dist/commands/user.d.ts +3 -0
- package/dist/commands/user.d.ts.map +1 -0
- package/dist/commands/user.js +89 -0
- package/dist/commands/user.js.map +1 -0
- package/dist/commands/vcs-messages.d.ts +4 -3
- package/dist/commands/vcs-messages.d.ts.map +1 -1
- package/dist/commands/vcs-messages.js +4 -3
- package/dist/commands/vcs-messages.js.map +1 -1
- package/dist/commands/vcs.d.ts.map +1 -1
- package/dist/commands/vcs.js +99 -196
- package/dist/commands/vcs.js.map +1 -1
- package/dist/commands/webhook.d.ts +3 -0
- package/dist/commands/webhook.d.ts.map +1 -0
- package/dist/commands/webhook.js +98 -0
- package/dist/commands/webhook.js.map +1 -0
- package/dist/config.d.ts +19 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +111 -7
- package/dist/config.js.map +1 -1
- package/dist/generated/client/client.gen.d.ts +3 -0
- package/dist/generated/client/client.gen.d.ts.map +1 -0
- package/dist/generated/client/client.gen.js +221 -0
- package/dist/generated/client/client.gen.js.map +1 -0
- package/dist/generated/client/index.d.ts +11 -0
- package/dist/generated/client/index.d.ts.map +1 -0
- package/dist/generated/client/index.js +18 -0
- package/dist/generated/client/index.js.map +1 -0
- package/dist/generated/client/types.gen.d.ts +121 -0
- package/dist/generated/client/types.gen.d.ts.map +1 -0
- package/dist/generated/client/types.gen.js +4 -0
- package/dist/generated/client/types.gen.js.map +1 -0
- package/dist/generated/client/utils.gen.d.ts +38 -0
- package/dist/generated/client/utils.gen.d.ts.map +1 -0
- package/dist/generated/client/utils.gen.js +240 -0
- package/dist/generated/client/utils.gen.js.map +1 -0
- package/dist/generated/client.gen.d.ts +13 -0
- package/dist/generated/client.gen.d.ts.map +1 -0
- package/dist/generated/client.gen.js +7 -0
- package/dist/generated/client.gen.js.map +1 -0
- package/dist/generated/core/auth.gen.d.ts +26 -0
- package/dist/generated/core/auth.gen.d.ts.map +1 -0
- package/dist/generated/core/auth.gen.js +19 -0
- package/dist/generated/core/auth.gen.js.map +1 -0
- package/dist/generated/core/bodySerializer.gen.d.ts +26 -0
- package/dist/generated/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/generated/core/bodySerializer.gen.js +61 -0
- package/dist/generated/core/bodySerializer.gen.js.map +1 -0
- package/dist/generated/core/params.gen.d.ts +44 -0
- package/dist/generated/core/params.gen.d.ts.map +1 -0
- package/dist/generated/core/params.gen.js +113 -0
- package/dist/generated/core/params.gen.js.map +1 -0
- package/dist/generated/core/pathSerializer.gen.d.ts +34 -0
- package/dist/generated/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/generated/core/pathSerializer.gen.js +116 -0
- package/dist/generated/core/pathSerializer.gen.js.map +1 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/generated/core/queryKeySerializer.gen.js +99 -0
- package/dist/generated/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/generated/core/serverSentEvents.gen.js +136 -0
- package/dist/generated/core/serverSentEvents.gen.js.map +1 -0
- package/dist/generated/core/types.gen.d.ts +84 -0
- package/dist/generated/core/types.gen.d.ts.map +1 -0
- package/dist/generated/core/types.gen.js +4 -0
- package/dist/generated/core/types.gen.js.map +1 -0
- package/dist/generated/core/utils.gen.d.ts +20 -0
- package/dist/generated/core/utils.gen.d.ts.map +1 -0
- package/dist/generated/core/utils.gen.js +94 -0
- package/dist/generated/core/utils.gen.js.map +1 -0
- package/dist/generated/index.d.ts +2 -6
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +288 -26
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/sdk.gen.d.ts +1136 -0
- package/dist/generated/sdk.gen.d.ts.map +1 -0
- package/dist/generated/sdk.gen.js +3200 -0
- package/dist/generated/sdk.gen.js.map +1 -0
- package/dist/generated/types.gen.d.ts +12034 -1280
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/index.js +118 -33
- package/dist/index.js.map +1 -1
- package/dist/utils/api-client.d.ts +9 -0
- package/dist/utils/api-client.d.ts.map +1 -0
- package/dist/utils/api-client.js +30 -0
- package/dist/utils/api-client.js.map +1 -0
- package/dist/utils/api-error-code.d.ts +6 -0
- package/dist/utils/api-error-code.d.ts.map +1 -0
- package/dist/utils/api-error-code.js +14 -0
- package/dist/utils/api-error-code.js.map +1 -0
- package/dist/utils/approval-pending.d.ts +12 -0
- package/dist/utils/approval-pending.d.ts.map +1 -0
- package/dist/utils/approval-pending.js +13 -0
- package/dist/utils/approval-pending.js.map +1 -0
- package/dist/utils/auth.d.ts +9 -1
- package/dist/utils/auth.d.ts.map +1 -1
- package/dist/utils/auth.js +13 -7
- package/dist/utils/auth.js.map +1 -1
- package/dist/utils/context.d.ts +29 -0
- package/dist/utils/context.d.ts.map +1 -0
- package/dist/utils/context.js +22 -0
- package/dist/utils/context.js.map +1 -0
- package/dist/utils/error.d.ts +9 -1
- package/dist/utils/error.d.ts.map +1 -1
- package/dist/utils/error.js +91 -27
- package/dist/utils/error.js.map +1 -1
- package/dist/utils/force.d.ts +7 -0
- package/dist/utils/force.d.ts.map +1 -0
- package/dist/utils/force.js +17 -0
- package/dist/utils/force.js.map +1 -0
- package/dist/utils/json-mode.d.ts +3 -0
- package/dist/utils/json-mode.d.ts.map +1 -0
- package/dist/utils/json-mode.js +25 -0
- package/dist/utils/json-mode.js.map +1 -0
- package/dist/utils/output.d.ts +4 -0
- package/dist/utils/output.d.ts.map +1 -1
- package/dist/utils/output.js +50 -0
- package/dist/utils/output.js.map +1 -1
- package/dist/utils/parse-positive-int.d.ts +8 -0
- package/dist/utils/parse-positive-int.d.ts.map +1 -0
- package/dist/utils/parse-positive-int.js +19 -0
- package/dist/utils/parse-positive-int.js.map +1 -0
- package/dist/utils/parse-usd.d.ts +8 -0
- package/dist/utils/parse-usd.d.ts.map +1 -0
- package/dist/utils/parse-usd.js +27 -0
- package/dist/utils/parse-usd.js.map +1 -0
- package/dist/utils/secret-input.d.ts +32 -0
- package/dist/utils/secret-input.d.ts.map +1 -0
- package/dist/utils/secret-input.js +106 -0
- package/dist/utils/secret-input.js.map +1 -0
- package/dist/utils/signals.d.ts +14 -0
- package/dist/utils/signals.d.ts.map +1 -0
- package/dist/utils/signals.js +23 -0
- package/dist/utils/signals.js.map +1 -0
- package/package.json +4 -3
- package/dist/generated/core/ApiError.d.ts +0 -11
- package/dist/generated/core/ApiError.d.ts.map +0 -1
- package/dist/generated/core/ApiError.js +0 -21
- package/dist/generated/core/ApiError.js.map +0 -1
- package/dist/generated/core/ApiRequestOptions.d.ts +0 -14
- package/dist/generated/core/ApiRequestOptions.d.ts.map +0 -1
- package/dist/generated/core/ApiRequestOptions.js +0 -3
- package/dist/generated/core/ApiRequestOptions.js.map +0 -1
- package/dist/generated/core/ApiResult.d.ts +0 -8
- package/dist/generated/core/ApiResult.d.ts.map +0 -1
- package/dist/generated/core/ApiResult.js +0 -3
- package/dist/generated/core/ApiResult.js.map +0 -1
- package/dist/generated/core/CancelablePromise.d.ts +0 -27
- package/dist/generated/core/CancelablePromise.d.ts.map +0 -1
- package/dist/generated/core/CancelablePromise.js +0 -101
- package/dist/generated/core/CancelablePromise.js.map +0 -1
- package/dist/generated/core/OpenAPI.d.ts +0 -29
- package/dist/generated/core/OpenAPI.d.ts.map +0 -1
- package/dist/generated/core/OpenAPI.js +0 -35
- package/dist/generated/core/OpenAPI.js.map +0 -1
- package/dist/generated/core/request.d.ts +0 -33
- package/dist/generated/core/request.d.ts.map +0 -1
- package/dist/generated/core/request.js +0 -310
- package/dist/generated/core/request.js.map +0 -1
- package/dist/generated/schemas.gen.d.ts +0 -895
- package/dist/generated/schemas.gen.d.ts.map +0 -1
- package/dist/generated/schemas.gen.js +0 -903
- package/dist/generated/schemas.gen.js.map +0 -1
- package/dist/generated/services.gen.d.ts +0 -546
- package/dist/generated/services.gen.d.ts.map +0 -1
- package/dist/generated/services.gen.js +0 -1393
- package/dist/generated/services.gen.js.map +0 -1
- package/dist/vcs-client.stub.d.ts +0 -74
- package/dist/vcs-client.stub.d.ts.map +0 -1
- package/dist/vcs-client.stub.js +0 -40
- package/dist/vcs-client.stub.js.map +0 -1
|
@@ -1,1393 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.ticketLinksControllerFindAll = exports.ticketLinksControllerCreate = exports.vcsWebhookControllerHandleWebhook = exports.vcsControllerSyncPr = exports.vcsControllerSyncAll = exports.vcsControllerSyncIssue = exports.vcsControllerTestConnection = exports.vcsControllerDeleteConnection = exports.vcsControllerUpdateConnection = exports.vcsControllerGetConnection = exports.vcsControllerCreateConnection = exports.webhookControllerRemove = exports.webhookControllerList = exports.webhookControllerRegister = exports.ragControllerOptimizeTable = exports.ragControllerSearch = exports.ragControllerDeleteDocument = exports.ragControllerListDocuments = exports.ragControllerAddDocument = exports.ticketsControllerReject = exports.ticketsControllerClose = exports.ticketsControllerVerifyFix = exports.ticketsControllerFix = exports.ticketsControllerStart = exports.ticketsControllerVerify = exports.ticketsControllerAssign = exports.ticketsControllerSoftDelete = exports.ticketsControllerUpdate = exports.ticketsControllerFindByRef = exports.ticketsControllerFindAll = exports.ticketsControllerCreate = exports.projectsControllerRemove = exports.projectsControllerUpdate = exports.projectsControllerFindBySlug = exports.projectsControllerFindAll = exports.projectsControllerCreate = exports.agentsControllerRotateApiKey = exports.agentsControllerUpdateCapabilities = exports.agentsControllerUpdateRoles = exports.agentsControllerSuggestTicket = exports.agentsControllerRemove = exports.agentsControllerUpdate = exports.agentsControllerFindBySlug = exports.agentsControllerFindMe = exports.agentsControllerFindAll = exports.agentsControllerGenerateApiKey = exports.authControllerMe = exports.authControllerRefresh = exports.authControllerLogin = exports.authControllerRegister = void 0;
|
|
5
|
-
exports.ciWebhookControllerHandleCiWebhook = exports.healthControllerCheck = exports.labelsControllerRemoveLabelFromHttp = exports.labelsControllerAssignLabelFromHttp = exports.labelsControllerDeleteFromHttp = exports.labelsControllerUpdateFromHttp = exports.labelsControllerFindByProjectFromHttp = exports.labelsControllerCreateFromHttp = exports.commentsControllerDeleteFromHttp = exports.commentsControllerUpdateFromHttp = exports.commentsControllerListByTicketFromHttp = exports.commentsControllerCreateFromHttp = exports.ticketLinksControllerRemove = void 0;
|
|
6
|
-
const OpenAPI_1 = require("./core/OpenAPI");
|
|
7
|
-
const request_1 = require("./core/request");
|
|
8
|
-
/**
|
|
9
|
-
* Register a new user
|
|
10
|
-
* @param data The data for the request.
|
|
11
|
-
* @param data.requestBody
|
|
12
|
-
* @returns AuthResponseDto
|
|
13
|
-
* @throws ApiError
|
|
14
|
-
*/
|
|
15
|
-
const authControllerRegister = (data) => {
|
|
16
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
17
|
-
method: 'POST',
|
|
18
|
-
url: '/api/auth/register',
|
|
19
|
-
body: data.requestBody,
|
|
20
|
-
mediaType: 'application/json',
|
|
21
|
-
errors: {
|
|
22
|
-
400: 'Invalid input'
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
exports.authControllerRegister = authControllerRegister;
|
|
27
|
-
/**
|
|
28
|
-
* Login with email and password
|
|
29
|
-
* @param data The data for the request.
|
|
30
|
-
* @param data.requestBody
|
|
31
|
-
* @returns AuthResponseDto
|
|
32
|
-
* @throws ApiError
|
|
33
|
-
*/
|
|
34
|
-
const authControllerLogin = (data) => {
|
|
35
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
36
|
-
method: 'POST',
|
|
37
|
-
url: '/api/auth/login',
|
|
38
|
-
body: data.requestBody,
|
|
39
|
-
mediaType: 'application/json',
|
|
40
|
-
errors: {
|
|
41
|
-
401: 'Invalid credentials'
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
exports.authControllerLogin = authControllerLogin;
|
|
46
|
-
/**
|
|
47
|
-
* Refresh access and refresh tokens
|
|
48
|
-
* @returns AuthResponseDto
|
|
49
|
-
* @throws ApiError
|
|
50
|
-
*/
|
|
51
|
-
const authControllerRefresh = () => {
|
|
52
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
53
|
-
method: 'POST',
|
|
54
|
-
url: '/api/auth/refresh',
|
|
55
|
-
errors: {
|
|
56
|
-
401: 'Invalid or missing token'
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
exports.authControllerRefresh = authControllerRefresh;
|
|
61
|
-
/**
|
|
62
|
-
* Get current authenticated user
|
|
63
|
-
* @returns UserResponseDto
|
|
64
|
-
* @throws ApiError
|
|
65
|
-
*/
|
|
66
|
-
const authControllerMe = () => {
|
|
67
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
68
|
-
method: 'GET',
|
|
69
|
-
url: '/api/auth/me',
|
|
70
|
-
errors: {
|
|
71
|
-
401: 'Missing or invalid token'
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
exports.authControllerMe = authControllerMe;
|
|
76
|
-
/**
|
|
77
|
-
* Create agent and generate API key (admin only)
|
|
78
|
-
* @param data The data for the request.
|
|
79
|
-
* @param data.requestBody
|
|
80
|
-
* @returns unknown Agent created with API key
|
|
81
|
-
* @throws ApiError
|
|
82
|
-
*/
|
|
83
|
-
const agentsControllerGenerateApiKey = (data) => {
|
|
84
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
85
|
-
method: 'POST',
|
|
86
|
-
url: '/api/agents',
|
|
87
|
-
body: data.requestBody,
|
|
88
|
-
mediaType: 'application/json',
|
|
89
|
-
errors: {
|
|
90
|
-
401: 'Unauthorized',
|
|
91
|
-
403: 'Forbidden - admin role required'
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
};
|
|
95
|
-
exports.agentsControllerGenerateApiKey = agentsControllerGenerateApiKey;
|
|
96
|
-
/**
|
|
97
|
-
* List all agents
|
|
98
|
-
* @returns unknown Agents retrieved successfully
|
|
99
|
-
* @throws ApiError
|
|
100
|
-
*/
|
|
101
|
-
const agentsControllerFindAll = () => {
|
|
102
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
103
|
-
method: 'GET',
|
|
104
|
-
url: '/api/agents'
|
|
105
|
-
});
|
|
106
|
-
};
|
|
107
|
-
exports.agentsControllerFindAll = agentsControllerFindAll;
|
|
108
|
-
/**
|
|
109
|
-
* Get current agent profile (API key auth)
|
|
110
|
-
* @returns unknown Agent profile retrieved
|
|
111
|
-
* @throws ApiError
|
|
112
|
-
*/
|
|
113
|
-
const agentsControllerFindMe = () => {
|
|
114
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
115
|
-
method: 'GET',
|
|
116
|
-
url: '/api/agents/me',
|
|
117
|
-
errors: {
|
|
118
|
-
401: 'Unauthorized'
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
};
|
|
122
|
-
exports.agentsControllerFindMe = agentsControllerFindMe;
|
|
123
|
-
/**
|
|
124
|
-
* Get agent by slug
|
|
125
|
-
* @param data The data for the request.
|
|
126
|
-
* @param data.slug
|
|
127
|
-
* @returns unknown Agent retrieved successfully
|
|
128
|
-
* @throws ApiError
|
|
129
|
-
*/
|
|
130
|
-
const agentsControllerFindBySlug = (data) => {
|
|
131
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
132
|
-
method: 'GET',
|
|
133
|
-
url: '/api/agents/{slug}',
|
|
134
|
-
path: {
|
|
135
|
-
slug: data.slug
|
|
136
|
-
},
|
|
137
|
-
errors: {
|
|
138
|
-
404: 'Agent not found'
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
};
|
|
142
|
-
exports.agentsControllerFindBySlug = agentsControllerFindBySlug;
|
|
143
|
-
/**
|
|
144
|
-
* Update agent (admin only)
|
|
145
|
-
* @param data The data for the request.
|
|
146
|
-
* @param data.slug
|
|
147
|
-
* @param data.requestBody
|
|
148
|
-
* @returns unknown Agent updated successfully
|
|
149
|
-
* @throws ApiError
|
|
150
|
-
*/
|
|
151
|
-
const agentsControllerUpdate = (data) => {
|
|
152
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
153
|
-
method: 'PATCH',
|
|
154
|
-
url: '/api/agents/{slug}',
|
|
155
|
-
path: {
|
|
156
|
-
slug: data.slug
|
|
157
|
-
},
|
|
158
|
-
body: data.requestBody,
|
|
159
|
-
mediaType: 'application/json',
|
|
160
|
-
errors: {
|
|
161
|
-
401: 'Unauthorized',
|
|
162
|
-
403: 'Forbidden - admin role required',
|
|
163
|
-
404: 'Agent not found'
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
|
-
};
|
|
167
|
-
exports.agentsControllerUpdate = agentsControllerUpdate;
|
|
168
|
-
/**
|
|
169
|
-
* Delete (soft-delete) an agent
|
|
170
|
-
* @param data The data for the request.
|
|
171
|
-
* @param data.slug
|
|
172
|
-
* @returns unknown Agent deleted successfully
|
|
173
|
-
* @throws ApiError
|
|
174
|
-
*/
|
|
175
|
-
const agentsControllerRemove = (data) => {
|
|
176
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
177
|
-
method: 'DELETE',
|
|
178
|
-
url: '/api/agents/{slug}',
|
|
179
|
-
path: {
|
|
180
|
-
slug: data.slug
|
|
181
|
-
},
|
|
182
|
-
errors: {
|
|
183
|
-
401: 'Unauthorized',
|
|
184
|
-
403: 'Forbidden - admin role required',
|
|
185
|
-
404: 'Agent not found'
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
};
|
|
189
|
-
exports.agentsControllerRemove = agentsControllerRemove;
|
|
190
|
-
/**
|
|
191
|
-
* Suggest a ticket for the agent to pick up
|
|
192
|
-
* @param data The data for the request.
|
|
193
|
-
* @param data.slug
|
|
194
|
-
* @param data.project Project slug
|
|
195
|
-
* @returns unknown Suggested ticket or null
|
|
196
|
-
* @throws ApiError
|
|
197
|
-
*/
|
|
198
|
-
const agentsControllerSuggestTicket = (data) => {
|
|
199
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
200
|
-
method: 'GET',
|
|
201
|
-
url: '/api/agents/{slug}/pickup',
|
|
202
|
-
path: {
|
|
203
|
-
slug: data.slug
|
|
204
|
-
},
|
|
205
|
-
query: {
|
|
206
|
-
project: data.project
|
|
207
|
-
},
|
|
208
|
-
errors: {
|
|
209
|
-
400: 'Missing project query param',
|
|
210
|
-
404: 'Agent not found'
|
|
211
|
-
}
|
|
212
|
-
});
|
|
213
|
-
};
|
|
214
|
-
exports.agentsControllerSuggestTicket = agentsControllerSuggestTicket;
|
|
215
|
-
/**
|
|
216
|
-
* Update agent roles (admin only)
|
|
217
|
-
* @param data The data for the request.
|
|
218
|
-
* @param data.slug
|
|
219
|
-
* @param data.requestBody
|
|
220
|
-
* @returns unknown Roles updated successfully
|
|
221
|
-
* @throws ApiError
|
|
222
|
-
*/
|
|
223
|
-
const agentsControllerUpdateRoles = (data) => {
|
|
224
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
225
|
-
method: 'PATCH',
|
|
226
|
-
url: '/api/agents/{slug}/update-roles',
|
|
227
|
-
path: {
|
|
228
|
-
slug: data.slug
|
|
229
|
-
},
|
|
230
|
-
body: data.requestBody,
|
|
231
|
-
mediaType: 'application/json',
|
|
232
|
-
errors: {
|
|
233
|
-
401: 'Unauthorized',
|
|
234
|
-
403: 'Forbidden - admin role required',
|
|
235
|
-
404: 'Agent not found'
|
|
236
|
-
}
|
|
237
|
-
});
|
|
238
|
-
};
|
|
239
|
-
exports.agentsControllerUpdateRoles = agentsControllerUpdateRoles;
|
|
240
|
-
/**
|
|
241
|
-
* Update agent capabilities (admin only)
|
|
242
|
-
* @param data The data for the request.
|
|
243
|
-
* @param data.slug
|
|
244
|
-
* @param data.requestBody
|
|
245
|
-
* @returns unknown Capabilities updated successfully
|
|
246
|
-
* @throws ApiError
|
|
247
|
-
*/
|
|
248
|
-
const agentsControllerUpdateCapabilities = (data) => {
|
|
249
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
250
|
-
method: 'PATCH',
|
|
251
|
-
url: '/api/agents/{slug}/update-capabilities',
|
|
252
|
-
path: {
|
|
253
|
-
slug: data.slug
|
|
254
|
-
},
|
|
255
|
-
body: data.requestBody,
|
|
256
|
-
mediaType: 'application/json',
|
|
257
|
-
errors: {
|
|
258
|
-
401: 'Unauthorized',
|
|
259
|
-
403: 'Forbidden - admin role required',
|
|
260
|
-
404: 'Agent not found'
|
|
261
|
-
}
|
|
262
|
-
});
|
|
263
|
-
};
|
|
264
|
-
exports.agentsControllerUpdateCapabilities = agentsControllerUpdateCapabilities;
|
|
265
|
-
/**
|
|
266
|
-
* Rotate agent API key (admin only)
|
|
267
|
-
* @param data The data for the request.
|
|
268
|
-
* @param data.slug
|
|
269
|
-
* @returns unknown API key rotated successfully
|
|
270
|
-
* @throws ApiError
|
|
271
|
-
*/
|
|
272
|
-
const agentsControllerRotateApiKey = (data) => {
|
|
273
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
274
|
-
method: 'POST',
|
|
275
|
-
url: '/api/agents/{slug}/rotate-key',
|
|
276
|
-
path: {
|
|
277
|
-
slug: data.slug
|
|
278
|
-
},
|
|
279
|
-
errors: {
|
|
280
|
-
401: 'Unauthorized',
|
|
281
|
-
403: 'Forbidden - admin role required',
|
|
282
|
-
404: 'Agent not found'
|
|
283
|
-
}
|
|
284
|
-
});
|
|
285
|
-
};
|
|
286
|
-
exports.agentsControllerRotateApiKey = agentsControllerRotateApiKey;
|
|
287
|
-
/**
|
|
288
|
-
* Create a new project (admin only)
|
|
289
|
-
* @param data The data for the request.
|
|
290
|
-
* @param data.requestBody
|
|
291
|
-
* @returns unknown Project created successfully
|
|
292
|
-
* @throws ApiError
|
|
293
|
-
*/
|
|
294
|
-
const projectsControllerCreate = (data) => {
|
|
295
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
296
|
-
method: 'POST',
|
|
297
|
-
url: '/api/projects',
|
|
298
|
-
body: data.requestBody,
|
|
299
|
-
mediaType: 'application/json',
|
|
300
|
-
errors: {
|
|
301
|
-
400: 'Invalid request data',
|
|
302
|
-
401: 'Unauthorized',
|
|
303
|
-
403: 'Forbidden - admin role required',
|
|
304
|
-
409: 'Conflict - duplicate slug or key'
|
|
305
|
-
}
|
|
306
|
-
});
|
|
307
|
-
};
|
|
308
|
-
exports.projectsControllerCreate = projectsControllerCreate;
|
|
309
|
-
/**
|
|
310
|
-
* List all projects (excluding soft-deleted)
|
|
311
|
-
* @returns unknown List of projects
|
|
312
|
-
* @throws ApiError
|
|
313
|
-
*/
|
|
314
|
-
const projectsControllerFindAll = () => {
|
|
315
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
316
|
-
method: 'GET',
|
|
317
|
-
url: '/api/projects'
|
|
318
|
-
});
|
|
319
|
-
};
|
|
320
|
-
exports.projectsControllerFindAll = projectsControllerFindAll;
|
|
321
|
-
/**
|
|
322
|
-
* Get a project by slug
|
|
323
|
-
* @param data The data for the request.
|
|
324
|
-
* @param data.slug
|
|
325
|
-
* @returns unknown Project found
|
|
326
|
-
* @throws ApiError
|
|
327
|
-
*/
|
|
328
|
-
const projectsControllerFindBySlug = (data) => {
|
|
329
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
330
|
-
method: 'GET',
|
|
331
|
-
url: '/api/projects/{slug}',
|
|
332
|
-
path: {
|
|
333
|
-
slug: data.slug
|
|
334
|
-
},
|
|
335
|
-
errors: {
|
|
336
|
-
404: 'Project not found'
|
|
337
|
-
}
|
|
338
|
-
});
|
|
339
|
-
};
|
|
340
|
-
exports.projectsControllerFindBySlug = projectsControllerFindBySlug;
|
|
341
|
-
/**
|
|
342
|
-
* Update a project (admin only)
|
|
343
|
-
* @param data The data for the request.
|
|
344
|
-
* @param data.slug
|
|
345
|
-
* @param data.requestBody
|
|
346
|
-
* @returns unknown Project updated successfully
|
|
347
|
-
* @throws ApiError
|
|
348
|
-
*/
|
|
349
|
-
const projectsControllerUpdate = (data) => {
|
|
350
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
351
|
-
method: 'PATCH',
|
|
352
|
-
url: '/api/projects/{slug}',
|
|
353
|
-
path: {
|
|
354
|
-
slug: data.slug
|
|
355
|
-
},
|
|
356
|
-
body: data.requestBody,
|
|
357
|
-
mediaType: 'application/json',
|
|
358
|
-
errors: {
|
|
359
|
-
400: 'Invalid request data',
|
|
360
|
-
401: 'Unauthorized',
|
|
361
|
-
403: 'Forbidden - admin role required',
|
|
362
|
-
404: 'Project not found',
|
|
363
|
-
409: 'Conflict - duplicate slug or key'
|
|
364
|
-
}
|
|
365
|
-
});
|
|
366
|
-
};
|
|
367
|
-
exports.projectsControllerUpdate = projectsControllerUpdate;
|
|
368
|
-
/**
|
|
369
|
-
* Soft delete a project (admin only)
|
|
370
|
-
* @param data The data for the request.
|
|
371
|
-
* @param data.slug
|
|
372
|
-
* @returns unknown Project soft deleted successfully
|
|
373
|
-
* @throws ApiError
|
|
374
|
-
*/
|
|
375
|
-
const projectsControllerRemove = (data) => {
|
|
376
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
377
|
-
method: 'DELETE',
|
|
378
|
-
url: '/api/projects/{slug}',
|
|
379
|
-
path: {
|
|
380
|
-
slug: data.slug
|
|
381
|
-
},
|
|
382
|
-
errors: {
|
|
383
|
-
401: 'Unauthorized',
|
|
384
|
-
403: 'Forbidden - admin role required',
|
|
385
|
-
404: 'Project not found'
|
|
386
|
-
}
|
|
387
|
-
});
|
|
388
|
-
};
|
|
389
|
-
exports.projectsControllerRemove = projectsControllerRemove;
|
|
390
|
-
/**
|
|
391
|
-
* Create a new ticket
|
|
392
|
-
* @param data The data for the request.
|
|
393
|
-
* @param data.slug
|
|
394
|
-
* @param data.requestBody
|
|
395
|
-
* @returns TicketResponseDto
|
|
396
|
-
* @throws ApiError
|
|
397
|
-
*/
|
|
398
|
-
const ticketsControllerCreate = (data) => {
|
|
399
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
400
|
-
method: 'POST',
|
|
401
|
-
url: '/api/projects/{slug}/tickets',
|
|
402
|
-
path: {
|
|
403
|
-
slug: data.slug
|
|
404
|
-
},
|
|
405
|
-
body: data.requestBody,
|
|
406
|
-
mediaType: 'application/json',
|
|
407
|
-
errors: {
|
|
408
|
-
400: 'Invalid request data',
|
|
409
|
-
404: 'Project not found'
|
|
410
|
-
}
|
|
411
|
-
});
|
|
412
|
-
};
|
|
413
|
-
exports.ticketsControllerCreate = ticketsControllerCreate;
|
|
414
|
-
/**
|
|
415
|
-
* List all tickets for a project
|
|
416
|
-
* @param data The data for the request.
|
|
417
|
-
* @param data.slug
|
|
418
|
-
* @param data.page
|
|
419
|
-
* @param data.limit
|
|
420
|
-
* @param data.unassigned
|
|
421
|
-
* @param data.assignedTo User ID to filter by
|
|
422
|
-
* @param data.priority
|
|
423
|
-
* @param data.type
|
|
424
|
-
* @param data.status
|
|
425
|
-
* @returns unknown List of tickets
|
|
426
|
-
* @throws ApiError
|
|
427
|
-
*/
|
|
428
|
-
const ticketsControllerFindAll = (data) => {
|
|
429
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
430
|
-
method: 'GET',
|
|
431
|
-
url: '/api/projects/{slug}/tickets',
|
|
432
|
-
path: {
|
|
433
|
-
slug: data.slug
|
|
434
|
-
},
|
|
435
|
-
query: {
|
|
436
|
-
page: data.page,
|
|
437
|
-
limit: data.limit,
|
|
438
|
-
unassigned: data.unassigned,
|
|
439
|
-
assignedTo: data.assignedTo,
|
|
440
|
-
priority: data.priority,
|
|
441
|
-
type: data.type,
|
|
442
|
-
status: data.status
|
|
443
|
-
},
|
|
444
|
-
errors: {
|
|
445
|
-
404: 'Project not found'
|
|
446
|
-
}
|
|
447
|
-
});
|
|
448
|
-
};
|
|
449
|
-
exports.ticketsControllerFindAll = ticketsControllerFindAll;
|
|
450
|
-
/**
|
|
451
|
-
* Get a ticket by reference (KODA-42 or CUID)
|
|
452
|
-
* @param data The data for the request.
|
|
453
|
-
* @param data.slug
|
|
454
|
-
* @param data.ref
|
|
455
|
-
* @returns TicketResponseDto
|
|
456
|
-
* @throws ApiError
|
|
457
|
-
*/
|
|
458
|
-
const ticketsControllerFindByRef = (data) => {
|
|
459
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
460
|
-
method: 'GET',
|
|
461
|
-
url: '/api/projects/{slug}/tickets/{ref}',
|
|
462
|
-
path: {
|
|
463
|
-
slug: data.slug,
|
|
464
|
-
ref: data.ref
|
|
465
|
-
},
|
|
466
|
-
errors: {
|
|
467
|
-
404: 'Ticket or project not found'
|
|
468
|
-
}
|
|
469
|
-
});
|
|
470
|
-
};
|
|
471
|
-
exports.ticketsControllerFindByRef = ticketsControllerFindByRef;
|
|
472
|
-
/**
|
|
473
|
-
* Update a ticket
|
|
474
|
-
* @param data The data for the request.
|
|
475
|
-
* @param data.slug
|
|
476
|
-
* @param data.ref
|
|
477
|
-
* @param data.requestBody
|
|
478
|
-
* @returns TicketResponseDto
|
|
479
|
-
* @throws ApiError
|
|
480
|
-
*/
|
|
481
|
-
const ticketsControllerUpdate = (data) => {
|
|
482
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
483
|
-
method: 'PATCH',
|
|
484
|
-
url: '/api/projects/{slug}/tickets/{ref}',
|
|
485
|
-
path: {
|
|
486
|
-
slug: data.slug,
|
|
487
|
-
ref: data.ref
|
|
488
|
-
},
|
|
489
|
-
body: data.requestBody,
|
|
490
|
-
mediaType: 'application/json',
|
|
491
|
-
errors: {
|
|
492
|
-
400: 'Invalid request data',
|
|
493
|
-
404: 'Ticket or project not found'
|
|
494
|
-
}
|
|
495
|
-
});
|
|
496
|
-
};
|
|
497
|
-
exports.ticketsControllerUpdate = ticketsControllerUpdate;
|
|
498
|
-
/**
|
|
499
|
-
* Soft delete a ticket (admin only)
|
|
500
|
-
* @param data The data for the request.
|
|
501
|
-
* @param data.slug
|
|
502
|
-
* @param data.ref
|
|
503
|
-
* @returns TicketResponseDto
|
|
504
|
-
* @throws ApiError
|
|
505
|
-
*/
|
|
506
|
-
const ticketsControllerSoftDelete = (data) => {
|
|
507
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
508
|
-
method: 'DELETE',
|
|
509
|
-
url: '/api/projects/{slug}/tickets/{ref}',
|
|
510
|
-
path: {
|
|
511
|
-
slug: data.slug,
|
|
512
|
-
ref: data.ref
|
|
513
|
-
},
|
|
514
|
-
errors: {
|
|
515
|
-
403: 'Forbidden - admin role required',
|
|
516
|
-
404: 'Ticket or project not found'
|
|
517
|
-
}
|
|
518
|
-
});
|
|
519
|
-
};
|
|
520
|
-
exports.ticketsControllerSoftDelete = ticketsControllerSoftDelete;
|
|
521
|
-
/**
|
|
522
|
-
* Assign or unassign a ticket
|
|
523
|
-
* @param data The data for the request.
|
|
524
|
-
* @param data.slug
|
|
525
|
-
* @param data.ref
|
|
526
|
-
* @returns TicketResponseDto
|
|
527
|
-
* @throws ApiError
|
|
528
|
-
*/
|
|
529
|
-
const ticketsControllerAssign = (data) => {
|
|
530
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
531
|
-
method: 'POST',
|
|
532
|
-
url: '/api/projects/{slug}/tickets/{ref}/assign',
|
|
533
|
-
path: {
|
|
534
|
-
slug: data.slug,
|
|
535
|
-
ref: data.ref
|
|
536
|
-
},
|
|
537
|
-
errors: {
|
|
538
|
-
400: 'Cannot assign to both user and agent',
|
|
539
|
-
404: 'Ticket or project not found'
|
|
540
|
-
}
|
|
541
|
-
});
|
|
542
|
-
};
|
|
543
|
-
exports.ticketsControllerAssign = ticketsControllerAssign;
|
|
544
|
-
/**
|
|
545
|
-
* Verify a ticket (CREATED → VERIFIED)
|
|
546
|
-
* @param data The data for the request.
|
|
547
|
-
* @param data.slug
|
|
548
|
-
* @param data.ref
|
|
549
|
-
* @param data.requestBody
|
|
550
|
-
* @returns unknown Ticket verified
|
|
551
|
-
* @throws ApiError
|
|
552
|
-
*/
|
|
553
|
-
const ticketsControllerVerify = (data) => {
|
|
554
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
555
|
-
method: 'POST',
|
|
556
|
-
url: '/api/projects/{slug}/tickets/{ref}/verify',
|
|
557
|
-
path: {
|
|
558
|
-
slug: data.slug,
|
|
559
|
-
ref: data.ref
|
|
560
|
-
},
|
|
561
|
-
body: data.requestBody,
|
|
562
|
-
mediaType: 'application/json',
|
|
563
|
-
errors: {
|
|
564
|
-
400: 'Invalid transition',
|
|
565
|
-
404: 'Ticket or project not found'
|
|
566
|
-
}
|
|
567
|
-
});
|
|
568
|
-
};
|
|
569
|
-
exports.ticketsControllerVerify = ticketsControllerVerify;
|
|
570
|
-
/**
|
|
571
|
-
* Start work on a ticket (VERIFIED → IN_PROGRESS)
|
|
572
|
-
* @param data The data for the request.
|
|
573
|
-
* @param data.slug
|
|
574
|
-
* @param data.ref
|
|
575
|
-
* @returns unknown Ticket started
|
|
576
|
-
* @throws ApiError
|
|
577
|
-
*/
|
|
578
|
-
const ticketsControllerStart = (data) => {
|
|
579
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
580
|
-
method: 'POST',
|
|
581
|
-
url: '/api/projects/{slug}/tickets/{ref}/start',
|
|
582
|
-
path: {
|
|
583
|
-
slug: data.slug,
|
|
584
|
-
ref: data.ref
|
|
585
|
-
},
|
|
586
|
-
errors: {
|
|
587
|
-
400: 'Invalid transition',
|
|
588
|
-
404: 'Ticket or project not found'
|
|
589
|
-
}
|
|
590
|
-
});
|
|
591
|
-
};
|
|
592
|
-
exports.ticketsControllerStart = ticketsControllerStart;
|
|
593
|
-
/**
|
|
594
|
-
* Submit fix for verification (IN_PROGRESS → VERIFY_FIX)
|
|
595
|
-
* @param data The data for the request.
|
|
596
|
-
* @param data.slug
|
|
597
|
-
* @param data.ref
|
|
598
|
-
* @param data.requestBody
|
|
599
|
-
* @returns unknown Fix submitted
|
|
600
|
-
* @throws ApiError
|
|
601
|
-
*/
|
|
602
|
-
const ticketsControllerFix = (data) => {
|
|
603
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
604
|
-
method: 'POST',
|
|
605
|
-
url: '/api/projects/{slug}/tickets/{ref}/fix',
|
|
606
|
-
path: {
|
|
607
|
-
slug: data.slug,
|
|
608
|
-
ref: data.ref
|
|
609
|
-
},
|
|
610
|
-
body: data.requestBody,
|
|
611
|
-
mediaType: 'application/json',
|
|
612
|
-
errors: {
|
|
613
|
-
400: 'Invalid transition',
|
|
614
|
-
404: 'Ticket or project not found'
|
|
615
|
-
}
|
|
616
|
-
});
|
|
617
|
-
};
|
|
618
|
-
exports.ticketsControllerFix = ticketsControllerFix;
|
|
619
|
-
/**
|
|
620
|
-
* Approve or reject fix (VERIFY_FIX → CLOSED or IN_PROGRESS)
|
|
621
|
-
* @param data The data for the request.
|
|
622
|
-
* @param data.slug
|
|
623
|
-
* @param data.ref
|
|
624
|
-
* @param data.requestBody
|
|
625
|
-
* @returns unknown Fix reviewed
|
|
626
|
-
* @throws ApiError
|
|
627
|
-
*/
|
|
628
|
-
const ticketsControllerVerifyFix = (data) => {
|
|
629
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
630
|
-
method: 'POST',
|
|
631
|
-
url: '/api/projects/{slug}/tickets/{ref}/verify-fix',
|
|
632
|
-
path: {
|
|
633
|
-
slug: data.slug,
|
|
634
|
-
ref: data.ref
|
|
635
|
-
},
|
|
636
|
-
body: data.requestBody,
|
|
637
|
-
mediaType: 'application/json',
|
|
638
|
-
errors: {
|
|
639
|
-
400: 'Invalid transition',
|
|
640
|
-
404: 'Ticket or project not found'
|
|
641
|
-
}
|
|
642
|
-
});
|
|
643
|
-
};
|
|
644
|
-
exports.ticketsControllerVerifyFix = ticketsControllerVerifyFix;
|
|
645
|
-
/**
|
|
646
|
-
* Close a ticket
|
|
647
|
-
* @param data The data for the request.
|
|
648
|
-
* @param data.slug
|
|
649
|
-
* @param data.ref
|
|
650
|
-
* @returns unknown Ticket closed
|
|
651
|
-
* @throws ApiError
|
|
652
|
-
*/
|
|
653
|
-
const ticketsControllerClose = (data) => {
|
|
654
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
655
|
-
method: 'POST',
|
|
656
|
-
url: '/api/projects/{slug}/tickets/{ref}/close',
|
|
657
|
-
path: {
|
|
658
|
-
slug: data.slug,
|
|
659
|
-
ref: data.ref
|
|
660
|
-
},
|
|
661
|
-
errors: {
|
|
662
|
-
400: 'Invalid transition',
|
|
663
|
-
404: 'Ticket or project not found'
|
|
664
|
-
}
|
|
665
|
-
});
|
|
666
|
-
};
|
|
667
|
-
exports.ticketsControllerClose = ticketsControllerClose;
|
|
668
|
-
/**
|
|
669
|
-
* Reject a ticket (CREATED or VERIFIED → REJECTED)
|
|
670
|
-
* @param data The data for the request.
|
|
671
|
-
* @param data.slug
|
|
672
|
-
* @param data.ref
|
|
673
|
-
* @param data.requestBody
|
|
674
|
-
* @returns unknown Ticket rejected
|
|
675
|
-
* @throws ApiError
|
|
676
|
-
*/
|
|
677
|
-
const ticketsControllerReject = (data) => {
|
|
678
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
679
|
-
method: 'POST',
|
|
680
|
-
url: '/api/projects/{slug}/tickets/{ref}/reject',
|
|
681
|
-
path: {
|
|
682
|
-
slug: data.slug,
|
|
683
|
-
ref: data.ref
|
|
684
|
-
},
|
|
685
|
-
body: data.requestBody,
|
|
686
|
-
mediaType: 'application/json',
|
|
687
|
-
errors: {
|
|
688
|
-
400: 'Invalid transition',
|
|
689
|
-
404: 'Ticket or project not found'
|
|
690
|
-
}
|
|
691
|
-
});
|
|
692
|
-
};
|
|
693
|
-
exports.ticketsControllerReject = ticketsControllerReject;
|
|
694
|
-
/**
|
|
695
|
-
* Add a document to the project knowledge base
|
|
696
|
-
* @param data The data for the request.
|
|
697
|
-
* @param data.slug
|
|
698
|
-
* @param data.requestBody
|
|
699
|
-
* @returns unknown Document indexed
|
|
700
|
-
* @throws ApiError
|
|
701
|
-
*/
|
|
702
|
-
const ragControllerAddDocument = (data) => {
|
|
703
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
704
|
-
method: 'POST',
|
|
705
|
-
url: '/api/projects/{slug}/kb/documents',
|
|
706
|
-
path: {
|
|
707
|
-
slug: data.slug
|
|
708
|
-
},
|
|
709
|
-
body: data.requestBody,
|
|
710
|
-
mediaType: 'application/json',
|
|
711
|
-
errors: {
|
|
712
|
-
404: 'Project not found'
|
|
713
|
-
}
|
|
714
|
-
});
|
|
715
|
-
};
|
|
716
|
-
exports.ragControllerAddDocument = ragControllerAddDocument;
|
|
717
|
-
/**
|
|
718
|
-
* List indexed documents in the project knowledge base
|
|
719
|
-
* @param data The data for the request.
|
|
720
|
-
* @param data.slug
|
|
721
|
-
* @param data.limit
|
|
722
|
-
* @returns unknown Documents listed
|
|
723
|
-
* @throws ApiError
|
|
724
|
-
*/
|
|
725
|
-
const ragControllerListDocuments = (data) => {
|
|
726
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
727
|
-
method: 'GET',
|
|
728
|
-
url: '/api/projects/{slug}/kb/documents',
|
|
729
|
-
path: {
|
|
730
|
-
slug: data.slug
|
|
731
|
-
},
|
|
732
|
-
query: {
|
|
733
|
-
limit: data.limit
|
|
734
|
-
},
|
|
735
|
-
errors: {
|
|
736
|
-
404: 'Project not found'
|
|
737
|
-
}
|
|
738
|
-
});
|
|
739
|
-
};
|
|
740
|
-
exports.ragControllerListDocuments = ragControllerListDocuments;
|
|
741
|
-
/**
|
|
742
|
-
* Delete documents by sourceId from the knowledge base (admin only)
|
|
743
|
-
* @param data The data for the request.
|
|
744
|
-
* @param data.slug
|
|
745
|
-
* @param data.sourceId
|
|
746
|
-
* @returns unknown Delete documents by sourceId
|
|
747
|
-
* @throws ApiError
|
|
748
|
-
*/
|
|
749
|
-
const ragControllerDeleteDocument = (data) => {
|
|
750
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
751
|
-
method: 'DELETE',
|
|
752
|
-
url: '/api/projects/{slug}/kb/documents/{sourceId}',
|
|
753
|
-
path: {
|
|
754
|
-
slug: data.slug,
|
|
755
|
-
sourceId: data.sourceId
|
|
756
|
-
},
|
|
757
|
-
errors: {
|
|
758
|
-
403: 'Forbidden - admin role required',
|
|
759
|
-
404: 'Project not found'
|
|
760
|
-
}
|
|
761
|
-
});
|
|
762
|
-
};
|
|
763
|
-
exports.ragControllerDeleteDocument = ragControllerDeleteDocument;
|
|
764
|
-
/**
|
|
765
|
-
* Hybrid search the project knowledge base
|
|
766
|
-
* @param data The data for the request.
|
|
767
|
-
* @param data.slug
|
|
768
|
-
* @param data.requestBody
|
|
769
|
-
* @returns unknown Search results with RRF merge and similarity tiers
|
|
770
|
-
* @throws ApiError
|
|
771
|
-
*/
|
|
772
|
-
const ragControllerSearch = (data) => {
|
|
773
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
774
|
-
method: 'POST',
|
|
775
|
-
url: '/api/projects/{slug}/kb/search',
|
|
776
|
-
path: {
|
|
777
|
-
slug: data.slug
|
|
778
|
-
},
|
|
779
|
-
body: data.requestBody,
|
|
780
|
-
mediaType: 'application/json',
|
|
781
|
-
errors: {
|
|
782
|
-
404: 'Project not found'
|
|
783
|
-
}
|
|
784
|
-
});
|
|
785
|
-
};
|
|
786
|
-
exports.ragControllerSearch = ragControllerSearch;
|
|
787
|
-
/**
|
|
788
|
-
* Optimize the LanceDB table for a project (admin only)
|
|
789
|
-
* @param data The data for the request.
|
|
790
|
-
* @param data.slug
|
|
791
|
-
* @returns unknown Table optimized
|
|
792
|
-
* @throws ApiError
|
|
793
|
-
*/
|
|
794
|
-
const ragControllerOptimizeTable = (data) => {
|
|
795
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
796
|
-
method: 'POST',
|
|
797
|
-
url: '/api/projects/{slug}/kb/optimize',
|
|
798
|
-
path: {
|
|
799
|
-
slug: data.slug
|
|
800
|
-
},
|
|
801
|
-
errors: {
|
|
802
|
-
403: 'Forbidden - admin role required',
|
|
803
|
-
404: 'Project not found'
|
|
804
|
-
}
|
|
805
|
-
});
|
|
806
|
-
};
|
|
807
|
-
exports.ragControllerOptimizeTable = ragControllerOptimizeTable;
|
|
808
|
-
/**
|
|
809
|
-
* Register a webhook for a project
|
|
810
|
-
* @param data The data for the request.
|
|
811
|
-
* @param data.slug
|
|
812
|
-
* @param data.requestBody
|
|
813
|
-
* @returns unknown Webhook registered
|
|
814
|
-
* @throws ApiError
|
|
815
|
-
*/
|
|
816
|
-
const webhookControllerRegister = (data) => {
|
|
817
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
818
|
-
method: 'POST',
|
|
819
|
-
url: '/api/projects/{slug}/webhooks',
|
|
820
|
-
path: {
|
|
821
|
-
slug: data.slug
|
|
822
|
-
},
|
|
823
|
-
body: data.requestBody,
|
|
824
|
-
mediaType: 'application/json',
|
|
825
|
-
errors: {
|
|
826
|
-
400: 'Invalid request data',
|
|
827
|
-
404: 'Project not found'
|
|
828
|
-
}
|
|
829
|
-
});
|
|
830
|
-
};
|
|
831
|
-
exports.webhookControllerRegister = webhookControllerRegister;
|
|
832
|
-
/**
|
|
833
|
-
* List all webhooks for a project
|
|
834
|
-
* @param data The data for the request.
|
|
835
|
-
* @param data.slug
|
|
836
|
-
* @returns unknown List of webhooks
|
|
837
|
-
* @throws ApiError
|
|
838
|
-
*/
|
|
839
|
-
const webhookControllerList = (data) => {
|
|
840
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
841
|
-
method: 'GET',
|
|
842
|
-
url: '/api/projects/{slug}/webhooks',
|
|
843
|
-
path: {
|
|
844
|
-
slug: data.slug
|
|
845
|
-
},
|
|
846
|
-
errors: {
|
|
847
|
-
404: 'Project not found'
|
|
848
|
-
}
|
|
849
|
-
});
|
|
850
|
-
};
|
|
851
|
-
exports.webhookControllerList = webhookControllerList;
|
|
852
|
-
/**
|
|
853
|
-
* Remove a webhook
|
|
854
|
-
* @param data The data for the request.
|
|
855
|
-
* @param data.id
|
|
856
|
-
* @returns void Webhook deleted
|
|
857
|
-
* @throws ApiError
|
|
858
|
-
*/
|
|
859
|
-
const webhookControllerRemove = (data) => {
|
|
860
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
861
|
-
method: 'DELETE',
|
|
862
|
-
url: '/api/api/webhooks/{id}',
|
|
863
|
-
path: {
|
|
864
|
-
id: data.id
|
|
865
|
-
},
|
|
866
|
-
errors: {
|
|
867
|
-
404: 'Webhook not found'
|
|
868
|
-
}
|
|
869
|
-
});
|
|
870
|
-
};
|
|
871
|
-
exports.webhookControllerRemove = webhookControllerRemove;
|
|
872
|
-
/**
|
|
873
|
-
* @param data The data for the request.
|
|
874
|
-
* @param data.slug
|
|
875
|
-
* @param data.requestBody
|
|
876
|
-
* @returns VcsConnectionResponseDto
|
|
877
|
-
* @throws ApiError
|
|
878
|
-
*/
|
|
879
|
-
const vcsControllerCreateConnection = (data) => {
|
|
880
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
881
|
-
method: 'POST',
|
|
882
|
-
url: '/api/projects/{slug}/vcs',
|
|
883
|
-
path: {
|
|
884
|
-
slug: data.slug
|
|
885
|
-
},
|
|
886
|
-
body: data.requestBody,
|
|
887
|
-
mediaType: 'application/json'
|
|
888
|
-
});
|
|
889
|
-
};
|
|
890
|
-
exports.vcsControllerCreateConnection = vcsControllerCreateConnection;
|
|
891
|
-
/**
|
|
892
|
-
* @param data The data for the request.
|
|
893
|
-
* @param data.slug
|
|
894
|
-
* @returns VcsConnectionResponseDto
|
|
895
|
-
* @throws ApiError
|
|
896
|
-
*/
|
|
897
|
-
const vcsControllerGetConnection = (data) => {
|
|
898
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
899
|
-
method: 'GET',
|
|
900
|
-
url: '/api/projects/{slug}/vcs',
|
|
901
|
-
path: {
|
|
902
|
-
slug: data.slug
|
|
903
|
-
}
|
|
904
|
-
});
|
|
905
|
-
};
|
|
906
|
-
exports.vcsControllerGetConnection = vcsControllerGetConnection;
|
|
907
|
-
/**
|
|
908
|
-
* @param data The data for the request.
|
|
909
|
-
* @param data.slug
|
|
910
|
-
* @param data.requestBody
|
|
911
|
-
* @returns VcsConnectionResponseDto
|
|
912
|
-
* @throws ApiError
|
|
913
|
-
*/
|
|
914
|
-
const vcsControllerUpdateConnection = (data) => {
|
|
915
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
916
|
-
method: 'PATCH',
|
|
917
|
-
url: '/api/projects/{slug}/vcs',
|
|
918
|
-
path: {
|
|
919
|
-
slug: data.slug
|
|
920
|
-
},
|
|
921
|
-
body: data.requestBody,
|
|
922
|
-
mediaType: 'application/json'
|
|
923
|
-
});
|
|
924
|
-
};
|
|
925
|
-
exports.vcsControllerUpdateConnection = vcsControllerUpdateConnection;
|
|
926
|
-
/**
|
|
927
|
-
* @param data The data for the request.
|
|
928
|
-
* @param data.slug
|
|
929
|
-
* @returns void
|
|
930
|
-
* @throws ApiError
|
|
931
|
-
*/
|
|
932
|
-
const vcsControllerDeleteConnection = (data) => {
|
|
933
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
934
|
-
method: 'DELETE',
|
|
935
|
-
url: '/api/projects/{slug}/vcs',
|
|
936
|
-
path: {
|
|
937
|
-
slug: data.slug
|
|
938
|
-
}
|
|
939
|
-
});
|
|
940
|
-
};
|
|
941
|
-
exports.vcsControllerDeleteConnection = vcsControllerDeleteConnection;
|
|
942
|
-
/**
|
|
943
|
-
* @param data The data for the request.
|
|
944
|
-
* @param data.slug
|
|
945
|
-
* @returns TestConnectionResultDto
|
|
946
|
-
* @throws ApiError
|
|
947
|
-
*/
|
|
948
|
-
const vcsControllerTestConnection = (data) => {
|
|
949
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
950
|
-
method: 'POST',
|
|
951
|
-
url: '/api/projects/{slug}/vcs/test',
|
|
952
|
-
path: {
|
|
953
|
-
slug: data.slug
|
|
954
|
-
}
|
|
955
|
-
});
|
|
956
|
-
};
|
|
957
|
-
exports.vcsControllerTestConnection = vcsControllerTestConnection;
|
|
958
|
-
/**
|
|
959
|
-
* Manually sync a specific issue by number
|
|
960
|
-
* @param data The data for the request.
|
|
961
|
-
* @param data.slug
|
|
962
|
-
* @param data.issueNumber
|
|
963
|
-
* @returns SyncResultDto Issue synced successfully
|
|
964
|
-
* @throws ApiError
|
|
965
|
-
*/
|
|
966
|
-
const vcsControllerSyncIssue = (data) => {
|
|
967
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
968
|
-
method: 'POST',
|
|
969
|
-
url: '/api/projects/{slug}/vcs/sync/{issueNumber}',
|
|
970
|
-
path: {
|
|
971
|
-
slug: data.slug,
|
|
972
|
-
issueNumber: data.issueNumber
|
|
973
|
-
},
|
|
974
|
-
errors: {
|
|
975
|
-
404: 'Project or VCS connection not found',
|
|
976
|
-
409: 'Issue already synced (externalVcsId exists)'
|
|
977
|
-
}
|
|
978
|
-
});
|
|
979
|
-
};
|
|
980
|
-
exports.vcsControllerSyncIssue = vcsControllerSyncIssue;
|
|
981
|
-
/**
|
|
982
|
-
* Trigger a full sync of all issues from the VCS provider
|
|
983
|
-
* @param data The data for the request.
|
|
984
|
-
* @param data.slug
|
|
985
|
-
* @returns SyncResultDto Full sync completed
|
|
986
|
-
* @throws ApiError
|
|
987
|
-
*/
|
|
988
|
-
const vcsControllerSyncAll = (data) => {
|
|
989
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
990
|
-
method: 'POST',
|
|
991
|
-
url: '/api/projects/{slug}/vcs/sync',
|
|
992
|
-
path: {
|
|
993
|
-
slug: data.slug
|
|
994
|
-
},
|
|
995
|
-
errors: {
|
|
996
|
-
404: 'Project or VCS connection not found'
|
|
997
|
-
}
|
|
998
|
-
});
|
|
999
|
-
};
|
|
1000
|
-
exports.vcsControllerSyncAll = vcsControllerSyncAll;
|
|
1001
|
-
/**
|
|
1002
|
-
* Manually sync PR status for all active pull requests
|
|
1003
|
-
* @param data The data for the request.
|
|
1004
|
-
* @param data.slug
|
|
1005
|
-
* @returns unknown PR sync completed
|
|
1006
|
-
* @throws ApiError
|
|
1007
|
-
*/
|
|
1008
|
-
const vcsControllerSyncPr = (data) => {
|
|
1009
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1010
|
-
method: 'POST',
|
|
1011
|
-
url: '/api/projects/{slug}/vcs/sync-pr',
|
|
1012
|
-
path: {
|
|
1013
|
-
slug: data.slug
|
|
1014
|
-
},
|
|
1015
|
-
errors: {
|
|
1016
|
-
404: 'Project or VCS connection not found'
|
|
1017
|
-
}
|
|
1018
|
-
});
|
|
1019
|
-
};
|
|
1020
|
-
exports.vcsControllerSyncPr = vcsControllerSyncPr;
|
|
1021
|
-
/**
|
|
1022
|
-
* Receive GitHub VCS issue webhook
|
|
1023
|
-
* @param data The data for the request.
|
|
1024
|
-
* @param data.slug
|
|
1025
|
-
* @param data.xHubSignature256
|
|
1026
|
-
* @param data.xGithubEvent
|
|
1027
|
-
* @returns unknown Webhook processed
|
|
1028
|
-
* @throws ApiError
|
|
1029
|
-
*/
|
|
1030
|
-
const vcsWebhookControllerHandleWebhook = (data) => {
|
|
1031
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1032
|
-
method: 'POST',
|
|
1033
|
-
url: '/api/projects/{slug}/vcs-webhook',
|
|
1034
|
-
path: {
|
|
1035
|
-
slug: data.slug
|
|
1036
|
-
},
|
|
1037
|
-
headers: {
|
|
1038
|
-
'x-hub-signature-256': data.xHubSignature256,
|
|
1039
|
-
'x-github-event': data.xGithubEvent
|
|
1040
|
-
},
|
|
1041
|
-
errors: {
|
|
1042
|
-
401: 'Invalid webhook signature'
|
|
1043
|
-
}
|
|
1044
|
-
});
|
|
1045
|
-
};
|
|
1046
|
-
exports.vcsWebhookControllerHandleWebhook = vcsWebhookControllerHandleWebhook;
|
|
1047
|
-
/**
|
|
1048
|
-
* Create or return existing link for a ticket
|
|
1049
|
-
* @param data The data for the request.
|
|
1050
|
-
* @param data.slug
|
|
1051
|
-
* @param data.ref
|
|
1052
|
-
* @param data.requestBody
|
|
1053
|
-
* @returns TicketLinkResponseDto
|
|
1054
|
-
* @throws ApiError
|
|
1055
|
-
*/
|
|
1056
|
-
const ticketLinksControllerCreate = (data) => {
|
|
1057
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1058
|
-
method: 'POST',
|
|
1059
|
-
url: '/api/projects/{slug}/tickets/{ref}/links',
|
|
1060
|
-
path: {
|
|
1061
|
-
slug: data.slug,
|
|
1062
|
-
ref: data.ref
|
|
1063
|
-
},
|
|
1064
|
-
body: data.requestBody,
|
|
1065
|
-
mediaType: 'application/json',
|
|
1066
|
-
errors: {
|
|
1067
|
-
400: 'Invalid URL',
|
|
1068
|
-
404: 'Ticket not found'
|
|
1069
|
-
}
|
|
1070
|
-
});
|
|
1071
|
-
};
|
|
1072
|
-
exports.ticketLinksControllerCreate = ticketLinksControllerCreate;
|
|
1073
|
-
/**
|
|
1074
|
-
* List all links for a ticket
|
|
1075
|
-
* @param data The data for the request.
|
|
1076
|
-
* @param data.slug
|
|
1077
|
-
* @param data.ref
|
|
1078
|
-
* @returns TicketLinkResponseDto
|
|
1079
|
-
* @throws ApiError
|
|
1080
|
-
*/
|
|
1081
|
-
const ticketLinksControllerFindAll = (data) => {
|
|
1082
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1083
|
-
method: 'GET',
|
|
1084
|
-
url: '/api/projects/{slug}/tickets/{ref}/links',
|
|
1085
|
-
path: {
|
|
1086
|
-
slug: data.slug,
|
|
1087
|
-
ref: data.ref
|
|
1088
|
-
},
|
|
1089
|
-
errors: {
|
|
1090
|
-
404: 'Ticket not found'
|
|
1091
|
-
}
|
|
1092
|
-
});
|
|
1093
|
-
};
|
|
1094
|
-
exports.ticketLinksControllerFindAll = ticketLinksControllerFindAll;
|
|
1095
|
-
/**
|
|
1096
|
-
* Delete a ticket link by id
|
|
1097
|
-
* @param data The data for the request.
|
|
1098
|
-
* @param data.slug
|
|
1099
|
-
* @param data.ref
|
|
1100
|
-
* @param data.linkId
|
|
1101
|
-
* @returns void Link deleted
|
|
1102
|
-
* @throws ApiError
|
|
1103
|
-
*/
|
|
1104
|
-
const ticketLinksControllerRemove = (data) => {
|
|
1105
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1106
|
-
method: 'DELETE',
|
|
1107
|
-
url: '/api/projects/{slug}/tickets/{ref}/links/{linkId}',
|
|
1108
|
-
path: {
|
|
1109
|
-
slug: data.slug,
|
|
1110
|
-
ref: data.ref,
|
|
1111
|
-
linkId: data.linkId
|
|
1112
|
-
},
|
|
1113
|
-
errors: {
|
|
1114
|
-
404: 'Link not found'
|
|
1115
|
-
}
|
|
1116
|
-
});
|
|
1117
|
-
};
|
|
1118
|
-
exports.ticketLinksControllerRemove = ticketLinksControllerRemove;
|
|
1119
|
-
/**
|
|
1120
|
-
* Create a comment on a ticket
|
|
1121
|
-
* @param data The data for the request.
|
|
1122
|
-
* @param data.slug
|
|
1123
|
-
* @param data.ref
|
|
1124
|
-
* @param data.requestBody
|
|
1125
|
-
* @returns unknown Comment created
|
|
1126
|
-
* @throws ApiError
|
|
1127
|
-
*/
|
|
1128
|
-
const commentsControllerCreateFromHttp = (data) => {
|
|
1129
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1130
|
-
method: 'POST',
|
|
1131
|
-
url: '/api/projects/{slug}/tickets/{ref}/comments',
|
|
1132
|
-
path: {
|
|
1133
|
-
slug: data.slug,
|
|
1134
|
-
ref: data.ref
|
|
1135
|
-
},
|
|
1136
|
-
body: data.requestBody,
|
|
1137
|
-
mediaType: 'application/json',
|
|
1138
|
-
errors: {
|
|
1139
|
-
400: 'Invalid request data',
|
|
1140
|
-
404: 'Project or ticket not found'
|
|
1141
|
-
}
|
|
1142
|
-
});
|
|
1143
|
-
};
|
|
1144
|
-
exports.commentsControllerCreateFromHttp = commentsControllerCreateFromHttp;
|
|
1145
|
-
/**
|
|
1146
|
-
* List all comments for a ticket
|
|
1147
|
-
* @param data The data for the request.
|
|
1148
|
-
* @param data.slug
|
|
1149
|
-
* @param data.ref
|
|
1150
|
-
* @returns unknown List of comments
|
|
1151
|
-
* @throws ApiError
|
|
1152
|
-
*/
|
|
1153
|
-
const commentsControllerListByTicketFromHttp = (data) => {
|
|
1154
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1155
|
-
method: 'GET',
|
|
1156
|
-
url: '/api/projects/{slug}/tickets/{ref}/comments',
|
|
1157
|
-
path: {
|
|
1158
|
-
slug: data.slug,
|
|
1159
|
-
ref: data.ref
|
|
1160
|
-
},
|
|
1161
|
-
errors: {
|
|
1162
|
-
404: 'Project or ticket not found'
|
|
1163
|
-
}
|
|
1164
|
-
});
|
|
1165
|
-
};
|
|
1166
|
-
exports.commentsControllerListByTicketFromHttp = commentsControllerListByTicketFromHttp;
|
|
1167
|
-
/**
|
|
1168
|
-
* Update a comment
|
|
1169
|
-
* @param data The data for the request.
|
|
1170
|
-
* @param data.id
|
|
1171
|
-
* @param data.requestBody
|
|
1172
|
-
* @returns unknown Comment updated
|
|
1173
|
-
* @throws ApiError
|
|
1174
|
-
*/
|
|
1175
|
-
const commentsControllerUpdateFromHttp = (data) => {
|
|
1176
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1177
|
-
method: 'PATCH',
|
|
1178
|
-
url: '/api/comments/{id}',
|
|
1179
|
-
path: {
|
|
1180
|
-
id: data.id
|
|
1181
|
-
},
|
|
1182
|
-
body: data.requestBody,
|
|
1183
|
-
mediaType: 'application/json',
|
|
1184
|
-
errors: {
|
|
1185
|
-
403: 'Not authorized to edit this comment',
|
|
1186
|
-
404: 'Comment not found'
|
|
1187
|
-
}
|
|
1188
|
-
});
|
|
1189
|
-
};
|
|
1190
|
-
exports.commentsControllerUpdateFromHttp = commentsControllerUpdateFromHttp;
|
|
1191
|
-
/**
|
|
1192
|
-
* Delete a comment
|
|
1193
|
-
* @param data The data for the request.
|
|
1194
|
-
* @param data.id
|
|
1195
|
-
* @returns unknown Comment deleted
|
|
1196
|
-
* @throws ApiError
|
|
1197
|
-
*/
|
|
1198
|
-
const commentsControllerDeleteFromHttp = (data) => {
|
|
1199
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1200
|
-
method: 'DELETE',
|
|
1201
|
-
url: '/api/comments/{id}',
|
|
1202
|
-
path: {
|
|
1203
|
-
id: data.id
|
|
1204
|
-
},
|
|
1205
|
-
errors: {
|
|
1206
|
-
403: 'Not authorized to delete this comment',
|
|
1207
|
-
404: 'Comment not found'
|
|
1208
|
-
}
|
|
1209
|
-
});
|
|
1210
|
-
};
|
|
1211
|
-
exports.commentsControllerDeleteFromHttp = commentsControllerDeleteFromHttp;
|
|
1212
|
-
/**
|
|
1213
|
-
* Create a label for a project
|
|
1214
|
-
* @param data The data for the request.
|
|
1215
|
-
* @param data.slug
|
|
1216
|
-
* @param data.requestBody
|
|
1217
|
-
* @returns unknown Label created
|
|
1218
|
-
* @throws ApiError
|
|
1219
|
-
*/
|
|
1220
|
-
const labelsControllerCreateFromHttp = (data) => {
|
|
1221
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1222
|
-
method: 'POST',
|
|
1223
|
-
url: '/api/projects/{slug}/labels',
|
|
1224
|
-
path: {
|
|
1225
|
-
slug: data.slug
|
|
1226
|
-
},
|
|
1227
|
-
body: data.requestBody,
|
|
1228
|
-
mediaType: 'application/json',
|
|
1229
|
-
errors: {
|
|
1230
|
-
400: 'Invalid request data',
|
|
1231
|
-
403: 'Unauthorized - admin only',
|
|
1232
|
-
404: 'Project not found'
|
|
1233
|
-
}
|
|
1234
|
-
});
|
|
1235
|
-
};
|
|
1236
|
-
exports.labelsControllerCreateFromHttp = labelsControllerCreateFromHttp;
|
|
1237
|
-
/**
|
|
1238
|
-
* List all labels for a project
|
|
1239
|
-
* @param data The data for the request.
|
|
1240
|
-
* @param data.slug
|
|
1241
|
-
* @returns unknown List of labels
|
|
1242
|
-
* @throws ApiError
|
|
1243
|
-
*/
|
|
1244
|
-
const labelsControllerFindByProjectFromHttp = (data) => {
|
|
1245
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1246
|
-
method: 'GET',
|
|
1247
|
-
url: '/api/projects/{slug}/labels',
|
|
1248
|
-
path: {
|
|
1249
|
-
slug: data.slug
|
|
1250
|
-
},
|
|
1251
|
-
errors: {
|
|
1252
|
-
404: 'Project not found'
|
|
1253
|
-
}
|
|
1254
|
-
});
|
|
1255
|
-
};
|
|
1256
|
-
exports.labelsControllerFindByProjectFromHttp = labelsControllerFindByProjectFromHttp;
|
|
1257
|
-
/**
|
|
1258
|
-
* Update a label
|
|
1259
|
-
* @param data The data for the request.
|
|
1260
|
-
* @param data.slug
|
|
1261
|
-
* @param data.id
|
|
1262
|
-
* @param data.requestBody
|
|
1263
|
-
* @returns unknown Label updated
|
|
1264
|
-
* @throws ApiError
|
|
1265
|
-
*/
|
|
1266
|
-
const labelsControllerUpdateFromHttp = (data) => {
|
|
1267
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1268
|
-
method: 'PATCH',
|
|
1269
|
-
url: '/api/projects/{slug}/labels/{id}',
|
|
1270
|
-
path: {
|
|
1271
|
-
slug: data.slug,
|
|
1272
|
-
id: data.id
|
|
1273
|
-
},
|
|
1274
|
-
body: data.requestBody,
|
|
1275
|
-
mediaType: 'application/json',
|
|
1276
|
-
errors: {
|
|
1277
|
-
400: 'Invalid request data',
|
|
1278
|
-
403: 'Unauthorized - admin only',
|
|
1279
|
-
404: 'Label or project not found'
|
|
1280
|
-
}
|
|
1281
|
-
});
|
|
1282
|
-
};
|
|
1283
|
-
exports.labelsControllerUpdateFromHttp = labelsControllerUpdateFromHttp;
|
|
1284
|
-
/**
|
|
1285
|
-
* Delete a label
|
|
1286
|
-
* @param data The data for the request.
|
|
1287
|
-
* @param data.slug
|
|
1288
|
-
* @param data.id
|
|
1289
|
-
* @returns void Label deleted
|
|
1290
|
-
* @throws ApiError
|
|
1291
|
-
*/
|
|
1292
|
-
const labelsControllerDeleteFromHttp = (data) => {
|
|
1293
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1294
|
-
method: 'DELETE',
|
|
1295
|
-
url: '/api/projects/{slug}/labels/{id}',
|
|
1296
|
-
path: {
|
|
1297
|
-
slug: data.slug,
|
|
1298
|
-
id: data.id
|
|
1299
|
-
},
|
|
1300
|
-
errors: {
|
|
1301
|
-
403: 'Unauthorized - admin only',
|
|
1302
|
-
404: 'Label or project not found'
|
|
1303
|
-
}
|
|
1304
|
-
});
|
|
1305
|
-
};
|
|
1306
|
-
exports.labelsControllerDeleteFromHttp = labelsControllerDeleteFromHttp;
|
|
1307
|
-
/**
|
|
1308
|
-
* Assign a label to a ticket
|
|
1309
|
-
* @param data The data for the request.
|
|
1310
|
-
* @param data.slug
|
|
1311
|
-
* @param data.ref
|
|
1312
|
-
* @param data.requestBody
|
|
1313
|
-
* @returns unknown Label assigned to ticket
|
|
1314
|
-
* @throws ApiError
|
|
1315
|
-
*/
|
|
1316
|
-
const labelsControllerAssignLabelFromHttp = (data) => {
|
|
1317
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1318
|
-
method: 'POST',
|
|
1319
|
-
url: '/api/projects/{slug}/tickets/{ref}/labels',
|
|
1320
|
-
path: {
|
|
1321
|
-
slug: data.slug,
|
|
1322
|
-
ref: data.ref
|
|
1323
|
-
},
|
|
1324
|
-
body: data.requestBody,
|
|
1325
|
-
mediaType: 'application/json',
|
|
1326
|
-
errors: {
|
|
1327
|
-
400: 'Invalid request data or label already assigned',
|
|
1328
|
-
404: 'Ticket or label not found'
|
|
1329
|
-
}
|
|
1330
|
-
});
|
|
1331
|
-
};
|
|
1332
|
-
exports.labelsControllerAssignLabelFromHttp = labelsControllerAssignLabelFromHttp;
|
|
1333
|
-
/**
|
|
1334
|
-
* Remove a label from a ticket
|
|
1335
|
-
* @param data The data for the request.
|
|
1336
|
-
* @param data.slug
|
|
1337
|
-
* @param data.ref
|
|
1338
|
-
* @param data.labelId
|
|
1339
|
-
* @returns void Label removed from ticket
|
|
1340
|
-
* @throws ApiError
|
|
1341
|
-
*/
|
|
1342
|
-
const labelsControllerRemoveLabelFromHttp = (data) => {
|
|
1343
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1344
|
-
method: 'DELETE',
|
|
1345
|
-
url: '/api/projects/{slug}/tickets/{ref}/labels/{labelId}',
|
|
1346
|
-
path: {
|
|
1347
|
-
slug: data.slug,
|
|
1348
|
-
ref: data.ref,
|
|
1349
|
-
labelId: data.labelId
|
|
1350
|
-
},
|
|
1351
|
-
errors: {
|
|
1352
|
-
404: 'Ticket or label assignment not found'
|
|
1353
|
-
}
|
|
1354
|
-
});
|
|
1355
|
-
};
|
|
1356
|
-
exports.labelsControllerRemoveLabelFromHttp = labelsControllerRemoveLabelFromHttp;
|
|
1357
|
-
/**
|
|
1358
|
-
* Health check
|
|
1359
|
-
* @returns unknown Service is healthy
|
|
1360
|
-
* @throws ApiError
|
|
1361
|
-
*/
|
|
1362
|
-
const healthControllerCheck = () => {
|
|
1363
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1364
|
-
method: 'GET',
|
|
1365
|
-
url: '/api/health'
|
|
1366
|
-
});
|
|
1367
|
-
};
|
|
1368
|
-
exports.healthControllerCheck = healthControllerCheck;
|
|
1369
|
-
/**
|
|
1370
|
-
* Receive CI pipeline failure webhook and auto-create ticket
|
|
1371
|
-
* @param data The data for the request.
|
|
1372
|
-
* @param data.slug
|
|
1373
|
-
* @param data.requestBody
|
|
1374
|
-
* @returns CiWebhookResponseDto Webhook processed
|
|
1375
|
-
* @throws ApiError
|
|
1376
|
-
*/
|
|
1377
|
-
const ciWebhookControllerHandleCiWebhook = (data) => {
|
|
1378
|
-
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
1379
|
-
method: 'POST',
|
|
1380
|
-
url: '/api/projects/{slug}/ci-webhook',
|
|
1381
|
-
path: {
|
|
1382
|
-
slug: data.slug
|
|
1383
|
-
},
|
|
1384
|
-
body: data.requestBody,
|
|
1385
|
-
mediaType: 'application/json',
|
|
1386
|
-
errors: {
|
|
1387
|
-
400: 'Invalid request data',
|
|
1388
|
-
404: 'Project not found'
|
|
1389
|
-
}
|
|
1390
|
-
});
|
|
1391
|
-
};
|
|
1392
|
-
exports.ciWebhookControllerHandleCiWebhook = ciWebhookControllerHandleCiWebhook;
|
|
1393
|
-
//# sourceMappingURL=services.gen.js.map
|