@manojkmfsi/monodog 1.1.43 → 1.1.44
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/CHANGELOG.md +6 -0
- package/README.md +16 -2
- package/dist/config/swagger-config.js +9 -1050
- package/dist/config/swagger-paths-auth.js +236 -0
- package/dist/config/swagger-paths-packages.js +165 -0
- package/dist/config/swagger-paths-pipelines.js +78 -0
- package/dist/config/swagger-paths-publish.js +261 -0
- package/dist/config/swagger-paths-workflows.js +226 -0
- package/dist/config/swagger-paths.js +72 -0
- package/dist/config/swagger-schemas.js +630 -0
- package/dist/middleware/server-startup.js +4 -2
- package/dist/routes/pipeline-routes.js +22 -70
- package/dist/routes/workflow-routes.js +51 -0
- package/package.json +1 -1
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Swagger Publish Paths
|
|
4
|
+
* Generate Changeset and publish packages endpoints
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.publishPaths = void 0;
|
|
8
|
+
exports.publishPaths = {
|
|
9
|
+
'/publish/packages': {
|
|
10
|
+
get: {
|
|
11
|
+
tags: ['Publish'],
|
|
12
|
+
summary: 'Get all workspace packages for publishing',
|
|
13
|
+
operationId: 'getPublishPackages',
|
|
14
|
+
description: 'Retrieves all public packages in the workspace that can be published. Private packages are filtered out.',
|
|
15
|
+
security: [{ BearerAuth: [] }],
|
|
16
|
+
responses: {
|
|
17
|
+
'200': {
|
|
18
|
+
description: 'List of packages available for publishing',
|
|
19
|
+
content: {
|
|
20
|
+
'application/json': {
|
|
21
|
+
schema: {
|
|
22
|
+
type: 'object',
|
|
23
|
+
properties: {
|
|
24
|
+
success: { type: 'boolean' },
|
|
25
|
+
packages: {
|
|
26
|
+
type: 'array',
|
|
27
|
+
items: { $ref: '#/components/schemas/PublishPackage' },
|
|
28
|
+
},
|
|
29
|
+
total: { type: 'number', description: 'Total number of packages' },
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
'401': { description: 'Unauthorized - authentication required' },
|
|
36
|
+
'500': { description: 'Internal server error' },
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
'/publish/changesets': {
|
|
41
|
+
get: {
|
|
42
|
+
tags: ['Publish'],
|
|
43
|
+
summary: 'Get existing unpublished changesets',
|
|
44
|
+
operationId: 'getPublishChangesets',
|
|
45
|
+
description: 'Retrieves all existing changesets that have not yet been published.',
|
|
46
|
+
security: [{ BearerAuth: [] }],
|
|
47
|
+
responses: {
|
|
48
|
+
'200': {
|
|
49
|
+
description: 'List of existing changesets',
|
|
50
|
+
content: {
|
|
51
|
+
'application/json': {
|
|
52
|
+
schema: {
|
|
53
|
+
type: 'object',
|
|
54
|
+
properties: {
|
|
55
|
+
success: { type: 'boolean' },
|
|
56
|
+
changesets: {
|
|
57
|
+
type: 'array',
|
|
58
|
+
items: { $ref: '#/components/schemas/Changeset' },
|
|
59
|
+
},
|
|
60
|
+
total: { type: 'number', description: 'Total number of changesets' },
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
'401': { description: 'Unauthorized - authentication required' },
|
|
67
|
+
'500': { description: 'Internal server error' },
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
post: {
|
|
71
|
+
tags: ['Publish'],
|
|
72
|
+
summary: 'Create a new changeset',
|
|
73
|
+
operationId: 'createChangeset',
|
|
74
|
+
description: 'Creates a new changeset for selected packages with specified version bumps. Requires write permission.',
|
|
75
|
+
security: [{ BearerAuth: [] }],
|
|
76
|
+
requestBody: {
|
|
77
|
+
required: true,
|
|
78
|
+
content: {
|
|
79
|
+
'application/json': {
|
|
80
|
+
schema: {
|
|
81
|
+
type: 'object',
|
|
82
|
+
required: ['packages', 'summary'],
|
|
83
|
+
properties: {
|
|
84
|
+
packages: {
|
|
85
|
+
type: 'array',
|
|
86
|
+
items: { type: 'string' },
|
|
87
|
+
description: 'Array of package names to include in changeset',
|
|
88
|
+
},
|
|
89
|
+
bumps: {
|
|
90
|
+
type: 'array',
|
|
91
|
+
items: { $ref: '#/components/schemas/VersionBump' },
|
|
92
|
+
description: 'Version bump specifications for packages (optional, defaults to patch)',
|
|
93
|
+
},
|
|
94
|
+
summary: {
|
|
95
|
+
type: 'string',
|
|
96
|
+
minLength: 10,
|
|
97
|
+
description: 'Summary of changes (minimum 10 characters)',
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
responses: {
|
|
105
|
+
'200': {
|
|
106
|
+
description: 'Changeset created successfully',
|
|
107
|
+
content: {
|
|
108
|
+
'application/json': {
|
|
109
|
+
schema: {
|
|
110
|
+
type: 'object',
|
|
111
|
+
properties: {
|
|
112
|
+
success: { type: 'boolean' },
|
|
113
|
+
changeset: { $ref: '#/components/schemas/Changeset' },
|
|
114
|
+
message: { type: 'string' },
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
'400': { description: 'Invalid request - missing or invalid parameters' },
|
|
121
|
+
'401': { description: 'Unauthorized - authentication required' },
|
|
122
|
+
'403': { description: 'Forbidden - insufficient permissions (write required)' },
|
|
123
|
+
'500': { description: 'Internal server error' },
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
'/publish/preview': {
|
|
128
|
+
post: {
|
|
129
|
+
tags: ['Publish'],
|
|
130
|
+
summary: 'Preview the publish plan',
|
|
131
|
+
operationId: 'previewPublish',
|
|
132
|
+
description: 'Calculates and previews a publish plan including new versions, affected packages, and validation checks.',
|
|
133
|
+
security: [{ BearerAuth: [] }],
|
|
134
|
+
requestBody: {
|
|
135
|
+
required: true,
|
|
136
|
+
content: {
|
|
137
|
+
'application/json': {
|
|
138
|
+
schema: {
|
|
139
|
+
type: 'object',
|
|
140
|
+
required: ['packages'],
|
|
141
|
+
properties: {
|
|
142
|
+
packages: {
|
|
143
|
+
type: 'array',
|
|
144
|
+
items: { type: 'string' },
|
|
145
|
+
description: 'Array of package names to preview',
|
|
146
|
+
},
|
|
147
|
+
bumps: {
|
|
148
|
+
type: 'array',
|
|
149
|
+
items: { $ref: '#/components/schemas/VersionBump' },
|
|
150
|
+
description: 'Version bump specifications (optional)',
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
responses: {
|
|
158
|
+
'200': {
|
|
159
|
+
description: 'Publish preview calculated successfully',
|
|
160
|
+
content: {
|
|
161
|
+
'application/json': {
|
|
162
|
+
schema: { $ref: '#/components/schemas/PublishPreview' },
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
'400': { description: 'Invalid request parameters' },
|
|
167
|
+
'401': { description: 'Unauthorized - authentication required' },
|
|
168
|
+
'500': { description: 'Internal server error' },
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
'/publish/status': {
|
|
173
|
+
get: {
|
|
174
|
+
tags: ['Publish'],
|
|
175
|
+
summary: 'Check publish readiness status',
|
|
176
|
+
operationId: 'checkPublishStatus',
|
|
177
|
+
description: 'Checks if the repository is ready for publishing (clean working tree, changesets exist, etc.).',
|
|
178
|
+
security: [{ BearerAuth: [] }],
|
|
179
|
+
responses: {
|
|
180
|
+
'200': {
|
|
181
|
+
description: 'Publish status retrieved successfully',
|
|
182
|
+
content: {
|
|
183
|
+
'application/json': {
|
|
184
|
+
schema: {
|
|
185
|
+
type: 'object',
|
|
186
|
+
properties: {
|
|
187
|
+
success: { type: 'boolean' },
|
|
188
|
+
status: { $ref: '#/components/schemas/PublishStatus' },
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
'401': { description: 'Unauthorized - authentication required' },
|
|
195
|
+
'500': { description: 'Internal server error' },
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
},
|
|
199
|
+
'/publish/trigger': {
|
|
200
|
+
post: {
|
|
201
|
+
tags: ['Publish'],
|
|
202
|
+
summary: 'Trigger the publishing workflow',
|
|
203
|
+
operationId: 'triggerPublish',
|
|
204
|
+
description: 'Triggers the GitHub Actions release/publish workflow. Requires maintain permission and clean working tree.',
|
|
205
|
+
security: [{ BearerAuth: [] }],
|
|
206
|
+
requestBody: {
|
|
207
|
+
required: false,
|
|
208
|
+
content: {
|
|
209
|
+
'application/json': {
|
|
210
|
+
schema: {
|
|
211
|
+
type: 'object',
|
|
212
|
+
properties: {
|
|
213
|
+
packages: {
|
|
214
|
+
type: 'array',
|
|
215
|
+
items: {
|
|
216
|
+
type: 'object',
|
|
217
|
+
properties: {
|
|
218
|
+
name: { type: 'string' },
|
|
219
|
+
newVersion: { type: 'string' },
|
|
220
|
+
bumpType: { type: 'string', enum: ['major', 'minor', 'patch'] },
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
description: 'Array of packages to publish with version info',
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
responses: {
|
|
231
|
+
'200': {
|
|
232
|
+
description: 'Publishing workflow triggered successfully',
|
|
233
|
+
content: {
|
|
234
|
+
'application/json': {
|
|
235
|
+
schema: {
|
|
236
|
+
type: 'object',
|
|
237
|
+
properties: {
|
|
238
|
+
success: { type: 'boolean' },
|
|
239
|
+
message: { type: 'string' },
|
|
240
|
+
result: {
|
|
241
|
+
type: 'object',
|
|
242
|
+
properties: {
|
|
243
|
+
workflow_runs: {
|
|
244
|
+
type: 'array',
|
|
245
|
+
items: { type: 'object' },
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
},
|
|
254
|
+
'400': { description: 'Invalid request - working tree not clean or no changesets' },
|
|
255
|
+
'401': { description: 'Unauthorized - authentication required' },
|
|
256
|
+
'403': { description: 'Forbidden - insufficient permissions (maintain required)' },
|
|
257
|
+
'500': { description: 'Internal server error' },
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
};
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Swagger Workflows Paths
|
|
4
|
+
* GitHub Actions workflow runs and job management endpoints
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.workflowsPaths = void 0;
|
|
8
|
+
exports.workflowsPaths = {
|
|
9
|
+
'/workflows/{owner}/{repo}/available': {
|
|
10
|
+
get: {
|
|
11
|
+
tags: ['Workflows'],
|
|
12
|
+
summary: 'List available workflows',
|
|
13
|
+
operationId: 'listAvailableWorkflows',
|
|
14
|
+
description: 'Lists all available GitHub Actions workflows in a repository',
|
|
15
|
+
security: [{ BearerAuth: [] }],
|
|
16
|
+
parameters: [
|
|
17
|
+
{ name: 'owner', in: 'path', required: true, schema: { type: 'string' }, description: 'Repository owner' },
|
|
18
|
+
{ name: 'repo', in: 'path', required: true, schema: { type: 'string' }, description: 'Repository name' },
|
|
19
|
+
],
|
|
20
|
+
responses: {
|
|
21
|
+
'200': {
|
|
22
|
+
description: 'List of available workflows',
|
|
23
|
+
content: {
|
|
24
|
+
'application/json': {
|
|
25
|
+
schema: { type: 'array', items: { $ref: '#/components/schemas/Workflow' } },
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
'401': { description: 'Unauthorized - authentication required' },
|
|
30
|
+
'404': { description: 'Repository not found' },
|
|
31
|
+
'500': { description: 'Internal server error' },
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
'/workflows/{owner}/{repo}': {
|
|
36
|
+
get: {
|
|
37
|
+
tags: ['Workflows'],
|
|
38
|
+
summary: 'Get workflow runs',
|
|
39
|
+
operationId: 'getWorkflowRuns',
|
|
40
|
+
description: 'Retrieves all workflow runs for a repository',
|
|
41
|
+
security: [{ BearerAuth: [] }],
|
|
42
|
+
parameters: [
|
|
43
|
+
{ name: 'owner', in: 'path', required: true, schema: { type: 'string' }, description: 'Repository owner' },
|
|
44
|
+
{ name: 'repo', in: 'path', required: true, schema: { type: 'string' }, description: 'Repository name' },
|
|
45
|
+
],
|
|
46
|
+
responses: {
|
|
47
|
+
'200': {
|
|
48
|
+
description: 'List of workflow runs',
|
|
49
|
+
content: {
|
|
50
|
+
'application/json': {
|
|
51
|
+
schema: { type: 'array', items: { $ref: '#/components/schemas/WorkflowRun' } },
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
'401': { description: 'Unauthorized - authentication required' },
|
|
56
|
+
'404': { description: 'Repository not found' },
|
|
57
|
+
'500': { description: 'Internal server error' },
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
'/workflows/{owner}/{repo}/runs/{runId}': {
|
|
62
|
+
get: {
|
|
63
|
+
tags: ['Workflows'],
|
|
64
|
+
summary: 'Get workflow run details',
|
|
65
|
+
operationId: 'getWorkflowRunWithJobs',
|
|
66
|
+
description: 'Retrieves detailed information for a specific workflow run including all jobs',
|
|
67
|
+
security: [{ BearerAuth: [] }],
|
|
68
|
+
parameters: [
|
|
69
|
+
{ name: 'owner', in: 'path', required: true, schema: { type: 'string' }, description: 'Repository owner' },
|
|
70
|
+
{ name: 'repo', in: 'path', required: true, schema: { type: 'string' }, description: 'Repository name' },
|
|
71
|
+
{ name: 'runId', in: 'path', required: true, schema: { type: 'string' }, description: 'Workflow run ID' },
|
|
72
|
+
],
|
|
73
|
+
responses: {
|
|
74
|
+
'200': {
|
|
75
|
+
description: 'Workflow run details with jobs',
|
|
76
|
+
content: {
|
|
77
|
+
'application/json': {
|
|
78
|
+
schema: { $ref: '#/components/schemas/WorkflowRunDetail' },
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
'401': { description: 'Unauthorized - authentication required' },
|
|
83
|
+
'404': { description: 'Workflow run not found' },
|
|
84
|
+
'500': { description: 'Internal server error' },
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
'/workflows/{owner}/{repo}/jobs/{jobId}/logs': {
|
|
89
|
+
get: {
|
|
90
|
+
tags: ['Workflows'],
|
|
91
|
+
summary: 'Get job logs',
|
|
92
|
+
operationId: 'getJobLogs',
|
|
93
|
+
description: 'Retrieves logs for a specific job in a workflow run',
|
|
94
|
+
security: [{ BearerAuth: [] }],
|
|
95
|
+
parameters: [
|
|
96
|
+
{ name: 'owner', in: 'path', required: true, schema: { type: 'string' }, description: 'Repository owner' },
|
|
97
|
+
{ name: 'repo', in: 'path', required: true, schema: { type: 'string' }, description: 'Repository name' },
|
|
98
|
+
{ name: 'jobId', in: 'path', required: true, schema: { type: 'string' }, description: 'Job ID' },
|
|
99
|
+
],
|
|
100
|
+
responses: {
|
|
101
|
+
'200': {
|
|
102
|
+
description: 'Job logs',
|
|
103
|
+
content: {
|
|
104
|
+
'application/json': {
|
|
105
|
+
schema: {
|
|
106
|
+
type: 'object',
|
|
107
|
+
properties: {
|
|
108
|
+
logs: { type: 'string' },
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
'401': { description: 'Unauthorized - authentication required' },
|
|
115
|
+
'404': { description: 'Job not found' },
|
|
116
|
+
'500': { description: 'Internal server error' },
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
'/workflows/{owner}/{repo}/trigger': {
|
|
121
|
+
post: {
|
|
122
|
+
tags: ['Workflows'],
|
|
123
|
+
summary: 'Trigger a workflow',
|
|
124
|
+
operationId: 'triggerWorkflow',
|
|
125
|
+
description: 'Triggers a GitHub Actions workflow in a repository. Requires maintain permission.',
|
|
126
|
+
security: [{ BearerAuth: [] }],
|
|
127
|
+
parameters: [
|
|
128
|
+
{ name: 'owner', in: 'path', required: true, schema: { type: 'string' }, description: 'Repository owner' },
|
|
129
|
+
{ name: 'repo', in: 'path', required: true, schema: { type: 'string' }, description: 'Repository name' },
|
|
130
|
+
],
|
|
131
|
+
requestBody: {
|
|
132
|
+
required: false,
|
|
133
|
+
content: {
|
|
134
|
+
'application/json': {
|
|
135
|
+
schema: {
|
|
136
|
+
type: 'object',
|
|
137
|
+
properties: {
|
|
138
|
+
workflowId: { type: 'string', description: 'ID or name of the workflow to trigger' },
|
|
139
|
+
ref: { type: 'string', description: 'Git ref (branch, tag, or SHA)' },
|
|
140
|
+
inputs: { type: 'object', description: 'Workflow input parameters' },
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
responses: {
|
|
147
|
+
'200': {
|
|
148
|
+
description: 'Workflow triggered successfully',
|
|
149
|
+
content: {
|
|
150
|
+
'application/json': {
|
|
151
|
+
schema: {
|
|
152
|
+
type: 'object',
|
|
153
|
+
properties: {
|
|
154
|
+
success: { type: 'boolean' },
|
|
155
|
+
runId: { type: 'string' },
|
|
156
|
+
message: { type: 'string' },
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
'400': { description: 'Invalid request' },
|
|
163
|
+
'401': { description: 'Unauthorized - authentication required' },
|
|
164
|
+
'403': { description: 'Forbidden - insufficient permissions (maintain required)' },
|
|
165
|
+
'404': { description: 'Repository or workflow not found' },
|
|
166
|
+
'500': { description: 'Internal server error' },
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
'/workflows/{owner}/{repo}/runs/{runId}/cancel': {
|
|
171
|
+
post: {
|
|
172
|
+
tags: ['Workflows'],
|
|
173
|
+
summary: 'Cancel a workflow run',
|
|
174
|
+
operationId: 'cancelWorkflowRun',
|
|
175
|
+
description: 'Cancels an in-progress workflow run. Requires maintain permission.',
|
|
176
|
+
security: [{ BearerAuth: [] }],
|
|
177
|
+
parameters: [
|
|
178
|
+
{ name: 'owner', in: 'path', required: true, schema: { type: 'string' }, description: 'Repository owner' },
|
|
179
|
+
{ name: 'repo', in: 'path', required: true, schema: { type: 'string' }, description: 'Repository name' },
|
|
180
|
+
{ name: 'runId', in: 'path', required: true, schema: { type: 'string' }, description: 'Workflow run ID' },
|
|
181
|
+
],
|
|
182
|
+
responses: {
|
|
183
|
+
'200': { description: 'Workflow run cancelled successfully' },
|
|
184
|
+
'401': { description: 'Unauthorized - authentication required' },
|
|
185
|
+
'403': { description: 'Forbidden - insufficient permissions (maintain required)' },
|
|
186
|
+
'404': { description: 'Workflow run not found' },
|
|
187
|
+
'500': { description: 'Internal server error' },
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
'/workflows/{owner}/{repo}/runs/{runId}/rerun': {
|
|
192
|
+
post: {
|
|
193
|
+
tags: ['Workflows'],
|
|
194
|
+
summary: 'Rerun a workflow',
|
|
195
|
+
operationId: 'rerunWorkflow',
|
|
196
|
+
description: 'Reruns a completed workflow run. Requires maintain permission.',
|
|
197
|
+
security: [{ BearerAuth: [] }],
|
|
198
|
+
parameters: [
|
|
199
|
+
{ name: 'owner', in: 'path', required: true, schema: { type: 'string' }, description: 'Repository owner' },
|
|
200
|
+
{ name: 'repo', in: 'path', required: true, schema: { type: 'string' }, description: 'Repository name' },
|
|
201
|
+
{ name: 'runId', in: 'path', required: true, schema: { type: 'string' }, description: 'Workflow run ID' },
|
|
202
|
+
],
|
|
203
|
+
responses: {
|
|
204
|
+
'200': {
|
|
205
|
+
description: 'Workflow rerun successfully',
|
|
206
|
+
content: {
|
|
207
|
+
'application/json': {
|
|
208
|
+
schema: {
|
|
209
|
+
type: 'object',
|
|
210
|
+
properties: {
|
|
211
|
+
success: { type: 'boolean' },
|
|
212
|
+
newRunId: { type: 'string' },
|
|
213
|
+
message: { type: 'string' },
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
'401': { description: 'Unauthorized - authentication required' },
|
|
220
|
+
'403': { description: 'Forbidden - insufficient permissions (maintain required)' },
|
|
221
|
+
'404': { description: 'Workflow run not found' },
|
|
222
|
+
'500': { description: 'Internal server error' },
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Swagger API Paths
|
|
4
|
+
* Main file that combines all API endpoint definitions by groups
|
|
5
|
+
*
|
|
6
|
+
* Organized by functional groups:
|
|
7
|
+
* - Authentication endpoints (/auth/*)
|
|
8
|
+
* - Packages, Health, Commits & Configuration endpoints (/packages/*, /health/*, /commits/*, /config/*)
|
|
9
|
+
* - Publishing endpoints (/publish/*)
|
|
10
|
+
* - Pipelines endpoints (/pipelines/*)
|
|
11
|
+
* - Workflows endpoints (/workflows/*)
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.workflowsPaths = exports.pipelinesPaths = exports.publishPaths = exports.configPaths = exports.commitsPaths = exports.healthPaths = exports.packagesPaths = exports.authPaths = exports.swaggerTags = exports.swaggerPaths = void 0;
|
|
15
|
+
const swagger_paths_auth_1 = require("./swagger-paths-auth");
|
|
16
|
+
Object.defineProperty(exports, "authPaths", { enumerable: true, get: function () { return swagger_paths_auth_1.authPaths; } });
|
|
17
|
+
const swagger_paths_packages_1 = require("./swagger-paths-packages");
|
|
18
|
+
Object.defineProperty(exports, "packagesPaths", { enumerable: true, get: function () { return swagger_paths_packages_1.packagesPaths; } });
|
|
19
|
+
Object.defineProperty(exports, "healthPaths", { enumerable: true, get: function () { return swagger_paths_packages_1.healthPaths; } });
|
|
20
|
+
Object.defineProperty(exports, "commitsPaths", { enumerable: true, get: function () { return swagger_paths_packages_1.commitsPaths; } });
|
|
21
|
+
Object.defineProperty(exports, "configPaths", { enumerable: true, get: function () { return swagger_paths_packages_1.configPaths; } });
|
|
22
|
+
const swagger_paths_publish_1 = require("./swagger-paths-publish");
|
|
23
|
+
Object.defineProperty(exports, "publishPaths", { enumerable: true, get: function () { return swagger_paths_publish_1.publishPaths; } });
|
|
24
|
+
const swagger_paths_pipelines_1 = require("./swagger-paths-pipelines");
|
|
25
|
+
Object.defineProperty(exports, "pipelinesPaths", { enumerable: true, get: function () { return swagger_paths_pipelines_1.pipelinesPaths; } });
|
|
26
|
+
const swagger_paths_workflows_1 = require("./swagger-paths-workflows");
|
|
27
|
+
Object.defineProperty(exports, "workflowsPaths", { enumerable: true, get: function () { return swagger_paths_workflows_1.workflowsPaths; } });
|
|
28
|
+
exports.swaggerPaths = {
|
|
29
|
+
...swagger_paths_auth_1.authPaths,
|
|
30
|
+
...swagger_paths_packages_1.packagesPaths,
|
|
31
|
+
...swagger_paths_packages_1.healthPaths,
|
|
32
|
+
...swagger_paths_packages_1.commitsPaths,
|
|
33
|
+
...swagger_paths_packages_1.configPaths,
|
|
34
|
+
...swagger_paths_publish_1.publishPaths,
|
|
35
|
+
...swagger_paths_pipelines_1.pipelinesPaths,
|
|
36
|
+
...swagger_paths_workflows_1.workflowsPaths,
|
|
37
|
+
};
|
|
38
|
+
// API tags for grouping endpoints in documentation
|
|
39
|
+
exports.swaggerTags = [
|
|
40
|
+
{
|
|
41
|
+
name: 'Authentication',
|
|
42
|
+
description: 'GitHub OAuth authentication and session management endpoints',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: 'Packages',
|
|
46
|
+
description: 'Package management and analysis endpoints',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'Health',
|
|
50
|
+
description: 'Health monitoring and status endpoints',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'Commits',
|
|
54
|
+
description: 'Git commit history and analysis endpoints',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: 'Configuration',
|
|
58
|
+
description: 'Configuration file management endpoints',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'Publish',
|
|
62
|
+
description: 'Generate Changeset and publish packages endpoints',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'Pipelines',
|
|
66
|
+
description: 'GitHub Actions pipeline management and monitoring endpoints',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'Workflows',
|
|
70
|
+
description: 'GitHub Actions workflow runs and job management endpoints',
|
|
71
|
+
},
|
|
72
|
+
];
|