gitverse-api-sdk 5.0.1 → 5.2.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/README.md +112 -7
- package/dist/api/actions.d.ts +313 -520
- package/dist/api/actions.js +3 -3
- package/dist/api/actions.js.map +3 -3
- package/dist/api/emails.d.ts +41 -206
- package/dist/api/emails.js +2 -2
- package/dist/api/emails.js.map +1 -1
- package/dist/api/issues.d.ts +100 -480
- package/dist/api/issues.js +2 -2
- package/dist/api/issues.js.map +1 -1
- package/dist/api/organizations.d.ts +67 -228
- package/dist/api/organizations.js +2 -2
- package/dist/api/organizations.js.map +1 -1
- package/dist/api/pages.d.ts +35 -0
- package/dist/api/pages.js +4 -0
- package/dist/api/pages.js.map +10 -0
- package/dist/api/pulls.d.ts +75 -520
- package/dist/api/pulls.js +2 -2
- package/dist/api/pulls.js.map +1 -1
- package/dist/api/releases.d.ts +135 -384
- package/dist/api/releases.js +2 -2
- package/dist/api/releases.js.map +1 -1
- package/dist/api/repositories.d.ts +354 -1067
- package/dist/api/repositories.js +2 -2
- package/dist/api/repositories.js.map +3 -3
- package/dist/api/stars.d.ts +55 -272
- package/dist/api/stars.js +2 -2
- package/dist/api/stars.js.map +1 -1
- package/dist/api/teams.d.ts +51 -288
- package/dist/api/teams.js +2 -2
- package/dist/api/teams.js.map +1 -1
- package/dist/api/users.d.ts +52 -263
- package/dist/api/users.js +2 -2
- package/dist/api/users.js.map +1 -1
- package/dist/client.d.ts +118 -150
- package/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/enums.d.ts +47 -48
- package/dist/enums.js +2 -2
- package/dist/enums.js.map +1 -1
- package/dist/errors.d.ts +39 -73
- package/dist/errors.js +2 -2
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +54 -2373
- package/dist/index.js +2 -2
- package/dist/index.js.map +3 -3
- package/dist/types.d.ts +1028 -880
- package/dist/utils.d.ts +72 -61
- package/package.json +1 -3
package/dist/api/actions.d.ts
CHANGED
|
@@ -1,522 +1,315 @@
|
|
|
1
|
+
import type { GitVerseClient } from "../client";
|
|
2
|
+
import type { ActionArtifact, ActionArtifactList, ActionLink, ActionRunner, ActionRunners, CreateActionLinkParams, CreateVariableParams, RegistrationToken, Variable, VariableList, WorkflowDispatchInputList } from "../types";
|
|
1
3
|
/**
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
*
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
*
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
updateOrgVariable(org: string, name: string, params: CreateVariableParams, options?: {
|
|
314
|
-
signal?: AbortSignal
|
|
315
|
-
}): Promise<void>;
|
|
316
|
-
/**
|
|
317
|
-
* Delete an organization variable
|
|
318
|
-
* @param org The organization name
|
|
319
|
-
* @param name The name of the variable
|
|
320
|
-
* @param options Опции запроса
|
|
321
|
-
* @returns void
|
|
322
|
-
*/
|
|
323
|
-
deleteOrgVariable(org: string, name: string, options?: {
|
|
324
|
-
signal?: AbortSignal
|
|
325
|
-
}): Promise<void>;
|
|
326
|
-
/**
|
|
327
|
-
* Returns a list of artifacts in the repository
|
|
328
|
-
* @param owner Owner of the repository (owner or organization name)
|
|
329
|
-
* @param repo Name of the repository without the .git extension
|
|
330
|
-
* @param queryParams Параметры запроса
|
|
331
|
-
* @param options Опции запроса
|
|
332
|
-
* @returns ActionArtifactList
|
|
333
|
-
*/
|
|
334
|
-
listArtifacts(owner: string, repo: string, queryParams?: {
|
|
335
|
-
page?: number
|
|
336
|
-
per_page?: number
|
|
337
|
-
name?: string
|
|
338
|
-
}, options?: {
|
|
339
|
-
signal?: AbortSignal
|
|
340
|
-
}): Promise<ActionArtifactList>;
|
|
341
|
-
/**
|
|
342
|
-
* Returns a specific artifact from the repository
|
|
343
|
-
* @param owner Owner of the repository (owner or organization name)
|
|
344
|
-
* @param repo Name of the repository without the .git extension
|
|
345
|
-
* @param artifact_id Identifier of the artifact
|
|
346
|
-
* @param options Опции запроса
|
|
347
|
-
* @returns ActionArtifact
|
|
348
|
-
*/
|
|
349
|
-
getArtifact(owner: string, repo: string, artifact_id: string, options?: {
|
|
350
|
-
signal?: AbortSignal
|
|
351
|
-
}): Promise<ActionArtifact>;
|
|
352
|
-
/**
|
|
353
|
-
* Deletes a specific artifact
|
|
354
|
-
* @param owner Owner of the repository (owner or organization name)
|
|
355
|
-
* @param repo Name of the repository without the .git extension
|
|
356
|
-
* @param artifact_id Identifier of the artifact
|
|
357
|
-
* @param options Опции запроса
|
|
358
|
-
* @returns void
|
|
359
|
-
*/
|
|
360
|
-
deleteArtifact(owner: string, repo: string, artifact_id: string, options?: {
|
|
361
|
-
signal?: AbortSignal
|
|
362
|
-
}): Promise<void>;
|
|
363
|
-
/**
|
|
364
|
-
* Downloads a specific artifact as a ZIP archive
|
|
365
|
-
* @param owner Owner of the repository (owner or organization name)
|
|
366
|
-
* @param repo Name of the repository without the .git extension
|
|
367
|
-
* @param artifact_id Identifier of the artifact
|
|
368
|
-
* @param options Опции запроса
|
|
369
|
-
* @returns void
|
|
370
|
-
*/
|
|
371
|
-
downloadArtifact(owner: string, repo: string, artifact_id: string, options?: {
|
|
372
|
-
signal?: AbortSignal
|
|
373
|
-
}): Promise<void>;
|
|
374
|
-
/**
|
|
375
|
-
* Downloads the artifact ZIP archive directly
|
|
376
|
-
* @param owner Owner of the repository (owner or organization name)
|
|
377
|
-
* @param repo Name of the repository without the .git extension
|
|
378
|
-
* @param artifact_id Identifier of the artifact
|
|
379
|
-
* @param options Опции запроса
|
|
380
|
-
* @returns string
|
|
381
|
-
*/
|
|
382
|
-
downloadArtifactRaw(owner: string, repo: string, artifact_id: string, options?: {
|
|
383
|
-
signal?: AbortSignal
|
|
384
|
-
}): Promise<string>;
|
|
385
|
-
/**
|
|
386
|
-
* Returns a list of runners for the repository
|
|
387
|
-
* @param owner Owner of the repository (owner or organization name)
|
|
388
|
-
* @param repo Name of the repository without the .git extension
|
|
389
|
-
* @param queryParams Параметры запроса
|
|
390
|
-
* @param options Опции запроса
|
|
391
|
-
* @returns ActionRunners
|
|
392
|
-
*/
|
|
393
|
-
listRepoRunners(owner: string, repo: string, queryParams?: {
|
|
394
|
-
page?: number
|
|
395
|
-
per_page?: number
|
|
396
|
-
}, options?: {
|
|
397
|
-
signal?: AbortSignal
|
|
398
|
-
}): Promise<ActionRunners>;
|
|
399
|
-
/**
|
|
400
|
-
* Creates a registration token for a repository runner
|
|
401
|
-
* @param owner Owner of the repository (owner or organization name)
|
|
402
|
-
* @param repo Name of the repository without the .git extension
|
|
403
|
-
* @param options Опции запроса
|
|
404
|
-
* @returns RegistrationToken
|
|
405
|
-
*/
|
|
406
|
-
createRepoRunnerRegistrationToken(owner: string, repo: string, options?: {
|
|
407
|
-
signal?: AbortSignal
|
|
408
|
-
}): Promise<RegistrationToken>;
|
|
409
|
-
/**
|
|
410
|
-
* Gets a specific runner for a repository
|
|
411
|
-
* @param owner Owner of the repository (owner or organization name)
|
|
412
|
-
* @param repo Name of the repository without the .git extension
|
|
413
|
-
* @param runner_id Unique identifier of the runner
|
|
414
|
-
* @param options Опции запроса
|
|
415
|
-
* @returns ActionRunner
|
|
416
|
-
*/
|
|
417
|
-
getRepoRunner(owner: string, repo: string, runner_id: number, options?: {
|
|
418
|
-
signal?: AbortSignal
|
|
419
|
-
}): Promise<ActionRunner>;
|
|
420
|
-
/**
|
|
421
|
-
* Deletes a specific self-hosted runner from the repository
|
|
422
|
-
* @param owner Owner of the repository (owner or organization name)
|
|
423
|
-
* @param repo Name of the repository without the .git extension
|
|
424
|
-
* @param runner_id Unique identifier of the runner
|
|
425
|
-
* @param options Опции запроса
|
|
426
|
-
* @returns void
|
|
427
|
-
*/
|
|
428
|
-
deleteRepoRunner(owner: string, repo: string, runner_id: number, options?: {
|
|
429
|
-
signal?: AbortSignal
|
|
430
|
-
}): Promise<void>;
|
|
431
|
-
/**
|
|
432
|
-
* List repository variables
|
|
433
|
-
* @param owner The account owner of the repository
|
|
434
|
-
* @param repo The name of the repository
|
|
435
|
-
* @param queryParams Параметры запроса
|
|
436
|
-
* @param options Опции запроса
|
|
437
|
-
* @returns VariableList
|
|
438
|
-
*/
|
|
439
|
-
listRepoVariables(owner: string, repo: string, queryParams?: {
|
|
440
|
-
per_page?: number
|
|
441
|
-
page?: number
|
|
442
|
-
}, options?: {
|
|
443
|
-
signal?: AbortSignal
|
|
444
|
-
}): Promise<VariableList>;
|
|
445
|
-
/**
|
|
446
|
-
* Create a repository variable
|
|
447
|
-
* @param owner The account owner of the repository
|
|
448
|
-
* @param repo The name of the repository
|
|
449
|
-
* @param params The request body
|
|
450
|
-
* @param options Опции запроса
|
|
451
|
-
* @returns void
|
|
452
|
-
*/
|
|
453
|
-
createRepoVariable(owner: string, repo: string, params: CreateVariableParams, options?: {
|
|
454
|
-
signal?: AbortSignal
|
|
455
|
-
}): Promise<void>;
|
|
456
|
-
/**
|
|
457
|
-
* Get a repository variable
|
|
458
|
-
* @param owner The account owner of the repository
|
|
459
|
-
* @param repo The name of the repository
|
|
460
|
-
* @param name The name of the variable
|
|
461
|
-
* @param options Опции запроса
|
|
462
|
-
* @returns Variable
|
|
463
|
-
*/
|
|
464
|
-
getRepoVariable(owner: string, repo: string, name: string, options?: {
|
|
465
|
-
signal?: AbortSignal
|
|
466
|
-
}): Promise<Variable>;
|
|
467
|
-
/**
|
|
468
|
-
* Update a repository variable
|
|
469
|
-
* @param owner The account owner of the repository
|
|
470
|
-
* @param repo The name of the repository
|
|
471
|
-
* @param name The name of the variable
|
|
472
|
-
* @param params The request body
|
|
473
|
-
* @param options Опции запроса
|
|
474
|
-
* @returns void
|
|
475
|
-
*/
|
|
476
|
-
updateRepoVariable(owner: string, repo: string, name: string, params: CreateVariableParams, options?: {
|
|
477
|
-
signal?: AbortSignal
|
|
478
|
-
}): Promise<void>;
|
|
479
|
-
/**
|
|
480
|
-
* Delete a repository variable
|
|
481
|
-
* @param owner The account owner of the repository
|
|
482
|
-
* @param repo The name of the repository
|
|
483
|
-
* @param name The name of the variable
|
|
484
|
-
* @param options Опции запроса
|
|
485
|
-
* @returns void
|
|
486
|
-
*/
|
|
487
|
-
deleteRepoVariable(owner: string, repo: string, name: string, options?: {
|
|
488
|
-
signal?: AbortSignal
|
|
489
|
-
}): Promise<void>;
|
|
490
|
-
/**
|
|
491
|
-
* Get workflow_dispatch parameters
|
|
492
|
-
* @param owner Repository owner owner
|
|
493
|
-
* @param repo Repository name
|
|
494
|
-
* @param workflow Workflow name filter
|
|
495
|
-
* @param queryParams Параметры запроса
|
|
496
|
-
* @param options Опции запроса
|
|
497
|
-
* @returns WorkflowDispatchInputList
|
|
498
|
-
*/
|
|
499
|
-
getWorkflowDispatchInputs(owner: string, repo: string, workflow: string, queryParams?: {
|
|
500
|
-
branch?: string
|
|
501
|
-
tag?: string
|
|
502
|
-
}, options?: {
|
|
503
|
-
signal?: AbortSignal
|
|
504
|
-
}): Promise<WorkflowDispatchInputList>;
|
|
505
|
-
/**
|
|
506
|
-
* Trigger workflow_dispatch
|
|
507
|
-
* @param owner Repository owner owner
|
|
508
|
-
* @param repo Repository name
|
|
509
|
-
* @param workflow Workflow filename
|
|
510
|
-
* @param params Output parameters for workflow dispatch. Key - input parameter name, Value - input parameter value
|
|
511
|
-
* @param queryParams Параметры запроса
|
|
512
|
-
* @param options Опции запроса
|
|
513
|
-
* @returns void
|
|
514
|
-
*/
|
|
515
|
-
dispatchWorkflow(owner: string, repo: string, workflow: string, params: unknown, queryParams?: {
|
|
516
|
-
branch?: string
|
|
517
|
-
tag?: string
|
|
518
|
-
}, options?: {
|
|
519
|
-
signal?: AbortSignal
|
|
520
|
-
}): Promise<void>;
|
|
4
|
+
* API для работы с GitHub Actions
|
|
5
|
+
*/
|
|
6
|
+
export declare class ActionsApi {
|
|
7
|
+
private client;
|
|
8
|
+
/**
|
|
9
|
+
* Создает новый экземпляр API
|
|
10
|
+
* @param client GitVerse клиент
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: GitVerseClient);
|
|
13
|
+
/**
|
|
14
|
+
* Returns a list of self-hosted runners for an organization
|
|
15
|
+
* @param org The organization name
|
|
16
|
+
* @param queryParams Параметры запроса
|
|
17
|
+
* @param options Опции запроса
|
|
18
|
+
* @returns ActionRunners
|
|
19
|
+
*/
|
|
20
|
+
listOrgRunners(org: string, queryParams?: {
|
|
21
|
+
page?: number;
|
|
22
|
+
per_page?: number;
|
|
23
|
+
}, options?: {
|
|
24
|
+
signal?: AbortSignal;
|
|
25
|
+
}): Promise<ActionRunners>;
|
|
26
|
+
/**
|
|
27
|
+
* Creates a registration token for an organization runner
|
|
28
|
+
* @param org The organization name
|
|
29
|
+
* @param options Опции запроса
|
|
30
|
+
* @returns RegistrationToken
|
|
31
|
+
*/
|
|
32
|
+
createOrgRunnerRegistrationToken(org: string, options?: {
|
|
33
|
+
signal?: AbortSignal;
|
|
34
|
+
}): Promise<RegistrationToken>;
|
|
35
|
+
/**
|
|
36
|
+
* Gets a specific self-hosted runner for an organization
|
|
37
|
+
* @param org The organization name
|
|
38
|
+
* @param runner_id Unique identifier of the runner
|
|
39
|
+
* @param options Опции запроса
|
|
40
|
+
* @returns ActionRunner
|
|
41
|
+
*/
|
|
42
|
+
getOrgRunner(org: string, runner_id: number, options?: {
|
|
43
|
+
signal?: AbortSignal;
|
|
44
|
+
}): Promise<ActionRunner>;
|
|
45
|
+
/**
|
|
46
|
+
* Deletes a specific self-hosted runner from the organization
|
|
47
|
+
* @param org The organization name
|
|
48
|
+
* @param runner_id Unique identifier of the runner
|
|
49
|
+
* @param options Опции запроса
|
|
50
|
+
* @returns void
|
|
51
|
+
*/
|
|
52
|
+
deleteOrgRunner(org: string, runner_id: number, options?: {
|
|
53
|
+
signal?: AbortSignal;
|
|
54
|
+
}): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* List organization variables
|
|
57
|
+
* @param org The organization name
|
|
58
|
+
* @param queryParams Параметры запроса
|
|
59
|
+
* @param options Опции запроса
|
|
60
|
+
* @returns VariableList
|
|
61
|
+
*/
|
|
62
|
+
listOrgVariables(org: string, queryParams?: {
|
|
63
|
+
per_page?: number;
|
|
64
|
+
page?: number;
|
|
65
|
+
}, options?: {
|
|
66
|
+
signal?: AbortSignal;
|
|
67
|
+
}): Promise<VariableList>;
|
|
68
|
+
/**
|
|
69
|
+
* Create an organization variable
|
|
70
|
+
* @param org The organization name
|
|
71
|
+
* @param params The request body
|
|
72
|
+
* @param options Опции запроса
|
|
73
|
+
* @returns void
|
|
74
|
+
*/
|
|
75
|
+
createOrgVariable(org: string, params: CreateVariableParams, options?: {
|
|
76
|
+
signal?: AbortSignal;
|
|
77
|
+
}): Promise<void>;
|
|
78
|
+
/**
|
|
79
|
+
* Get an organization variable
|
|
80
|
+
* @param org The organization name
|
|
81
|
+
* @param name The name of the variable
|
|
82
|
+
* @param options Опции запроса
|
|
83
|
+
* @returns Variable
|
|
84
|
+
*/
|
|
85
|
+
getOrgVariable(org: string, name: string, options?: {
|
|
86
|
+
signal?: AbortSignal;
|
|
87
|
+
}): Promise<Variable>;
|
|
88
|
+
/**
|
|
89
|
+
* Update an organization variable
|
|
90
|
+
* @param org The organization name
|
|
91
|
+
* @param name The name of the variable
|
|
92
|
+
* @param params The request body
|
|
93
|
+
* @param options Опции запроса
|
|
94
|
+
* @returns void
|
|
95
|
+
*/
|
|
96
|
+
updateOrgVariable(org: string, name: string, params: CreateVariableParams, options?: {
|
|
97
|
+
signal?: AbortSignal;
|
|
98
|
+
}): Promise<void>;
|
|
99
|
+
/**
|
|
100
|
+
* Delete an organization variable
|
|
101
|
+
* @param org The organization name
|
|
102
|
+
* @param name The name of the variable
|
|
103
|
+
* @param options Опции запроса
|
|
104
|
+
* @returns void
|
|
105
|
+
*/
|
|
106
|
+
deleteOrgVariable(org: string, name: string, options?: {
|
|
107
|
+
signal?: AbortSignal;
|
|
108
|
+
}): Promise<void>;
|
|
109
|
+
/**
|
|
110
|
+
* Returns a list of artifacts in the repository
|
|
111
|
+
* @param owner Owner of the repository (owner or organization name)
|
|
112
|
+
* @param repo Name of the repository without the .git extension
|
|
113
|
+
* @param queryParams Параметры запроса
|
|
114
|
+
* @param options Опции запроса
|
|
115
|
+
* @returns ActionArtifactList
|
|
116
|
+
*/
|
|
117
|
+
listArtifacts(owner: string, repo: string, queryParams?: {
|
|
118
|
+
page?: number;
|
|
119
|
+
per_page?: number;
|
|
120
|
+
name?: string;
|
|
121
|
+
}, options?: {
|
|
122
|
+
signal?: AbortSignal;
|
|
123
|
+
}): Promise<ActionArtifactList>;
|
|
124
|
+
/**
|
|
125
|
+
* Returns a specific artifact from the repository
|
|
126
|
+
* @param owner Owner of the repository (owner or organization name)
|
|
127
|
+
* @param repo Name of the repository without the .git extension
|
|
128
|
+
* @param artifact_id Identifier of the artifact
|
|
129
|
+
* @param options Опции запроса
|
|
130
|
+
* @returns ActionArtifact
|
|
131
|
+
*/
|
|
132
|
+
getArtifact(owner: string, repo: string, artifact_id: string, options?: {
|
|
133
|
+
signal?: AbortSignal;
|
|
134
|
+
}): Promise<ActionArtifact>;
|
|
135
|
+
/**
|
|
136
|
+
* Deletes a specific artifact
|
|
137
|
+
* @param owner Owner of the repository (owner or organization name)
|
|
138
|
+
* @param repo Name of the repository without the .git extension
|
|
139
|
+
* @param artifact_id Identifier of the artifact
|
|
140
|
+
* @param options Опции запроса
|
|
141
|
+
* @returns void
|
|
142
|
+
*/
|
|
143
|
+
deleteArtifact(owner: string, repo: string, artifact_id: string, options?: {
|
|
144
|
+
signal?: AbortSignal;
|
|
145
|
+
}): Promise<void>;
|
|
146
|
+
/**
|
|
147
|
+
* Downloads a specific artifact as a ZIP archive
|
|
148
|
+
* @param owner Owner of the repository (owner or organization name)
|
|
149
|
+
* @param repo Name of the repository without the .git extension
|
|
150
|
+
* @param artifact_id Identifier of the artifact
|
|
151
|
+
* @param options Опции запроса
|
|
152
|
+
* @returns void
|
|
153
|
+
*/
|
|
154
|
+
downloadArtifact(owner: string, repo: string, artifact_id: string, options?: {
|
|
155
|
+
signal?: AbortSignal;
|
|
156
|
+
}): Promise<void>;
|
|
157
|
+
/**
|
|
158
|
+
* Downloads the artifact ZIP archive directly
|
|
159
|
+
* @param owner Owner of the repository (owner or organization name)
|
|
160
|
+
* @param repo Name of the repository without the .git extension
|
|
161
|
+
* @param artifact_id Identifier of the artifact
|
|
162
|
+
* @param options Опции запроса
|
|
163
|
+
* @returns string
|
|
164
|
+
*/
|
|
165
|
+
downloadArtifactRaw(owner: string, repo: string, artifact_id: string, options?: {
|
|
166
|
+
signal?: AbortSignal;
|
|
167
|
+
}): Promise<string>;
|
|
168
|
+
/**
|
|
169
|
+
* Adds a link to an action run
|
|
170
|
+
* @param owner Owner of the repository (username or organization name)
|
|
171
|
+
* @param repo Name of the repository without the .git extension
|
|
172
|
+
* @param params Link details: url, name, description, and optional metadata
|
|
173
|
+
* @param options Опции запроса
|
|
174
|
+
* @returns ActionLink
|
|
175
|
+
*/
|
|
176
|
+
createActionLink(owner: string, repo: string, params: CreateActionLinkParams, options?: {
|
|
177
|
+
signal?: AbortSignal;
|
|
178
|
+
}): Promise<ActionLink>;
|
|
179
|
+
/**
|
|
180
|
+
* Returns a list of runners for the repository
|
|
181
|
+
* @param owner Owner of the repository (owner or organization name)
|
|
182
|
+
* @param repo Name of the repository without the .git extension
|
|
183
|
+
* @param queryParams Параметры запроса
|
|
184
|
+
* @param options Опции запроса
|
|
185
|
+
* @returns ActionRunners
|
|
186
|
+
*/
|
|
187
|
+
listRepoRunners(owner: string, repo: string, queryParams?: {
|
|
188
|
+
page?: number;
|
|
189
|
+
per_page?: number;
|
|
190
|
+
}, options?: {
|
|
191
|
+
signal?: AbortSignal;
|
|
192
|
+
}): Promise<ActionRunners>;
|
|
193
|
+
/**
|
|
194
|
+
* Creates a registration token for a repository runner
|
|
195
|
+
* @param owner Owner of the repository (owner or organization name)
|
|
196
|
+
* @param repo Name of the repository without the .git extension
|
|
197
|
+
* @param options Опции запроса
|
|
198
|
+
* @returns RegistrationToken
|
|
199
|
+
*/
|
|
200
|
+
createRepoRunnerRegistrationToken(owner: string, repo: string, options?: {
|
|
201
|
+
signal?: AbortSignal;
|
|
202
|
+
}): Promise<RegistrationToken>;
|
|
203
|
+
/**
|
|
204
|
+
* Gets a specific runner for a repository
|
|
205
|
+
* @param owner Owner of the repository (owner or organization name)
|
|
206
|
+
* @param repo Name of the repository without the .git extension
|
|
207
|
+
* @param runner_id Unique identifier of the runner
|
|
208
|
+
* @param options Опции запроса
|
|
209
|
+
* @returns ActionRunner
|
|
210
|
+
*/
|
|
211
|
+
getRepoRunner(owner: string, repo: string, runner_id: number, options?: {
|
|
212
|
+
signal?: AbortSignal;
|
|
213
|
+
}): Promise<ActionRunner>;
|
|
214
|
+
/**
|
|
215
|
+
* Deletes a specific self-hosted runner from the repository
|
|
216
|
+
* @param owner Owner of the repository (owner or organization name)
|
|
217
|
+
* @param repo Name of the repository without the .git extension
|
|
218
|
+
* @param runner_id Unique identifier of the runner
|
|
219
|
+
* @param options Опции запроса
|
|
220
|
+
* @returns void
|
|
221
|
+
*/
|
|
222
|
+
deleteRepoRunner(owner: string, repo: string, runner_id: number, options?: {
|
|
223
|
+
signal?: AbortSignal;
|
|
224
|
+
}): Promise<void>;
|
|
225
|
+
/**
|
|
226
|
+
* List repository variables
|
|
227
|
+
* @param owner The account owner of the repository
|
|
228
|
+
* @param repo The name of the repository
|
|
229
|
+
* @param queryParams Параметры запроса
|
|
230
|
+
* @param options Опции запроса
|
|
231
|
+
* @returns VariableList
|
|
232
|
+
*/
|
|
233
|
+
listRepoVariables(owner: string, repo: string, queryParams?: {
|
|
234
|
+
per_page?: number;
|
|
235
|
+
page?: number;
|
|
236
|
+
}, options?: {
|
|
237
|
+
signal?: AbortSignal;
|
|
238
|
+
}): Promise<VariableList>;
|
|
239
|
+
/**
|
|
240
|
+
* Create a repository variable
|
|
241
|
+
* @param owner The account owner of the repository
|
|
242
|
+
* @param repo The name of the repository
|
|
243
|
+
* @param params The request body
|
|
244
|
+
* @param options Опции запроса
|
|
245
|
+
* @returns void
|
|
246
|
+
*/
|
|
247
|
+
createRepoVariable(owner: string, repo: string, params: CreateVariableParams, options?: {
|
|
248
|
+
signal?: AbortSignal;
|
|
249
|
+
}): Promise<void>;
|
|
250
|
+
/**
|
|
251
|
+
* Get a repository variable
|
|
252
|
+
* @param owner The account owner of the repository
|
|
253
|
+
* @param repo The name of the repository
|
|
254
|
+
* @param name The name of the variable
|
|
255
|
+
* @param options Опции запроса
|
|
256
|
+
* @returns Variable
|
|
257
|
+
*/
|
|
258
|
+
getRepoVariable(owner: string, repo: string, name: string, options?: {
|
|
259
|
+
signal?: AbortSignal;
|
|
260
|
+
}): Promise<Variable>;
|
|
261
|
+
/**
|
|
262
|
+
* Update a repository variable
|
|
263
|
+
* @param owner The account owner of the repository
|
|
264
|
+
* @param repo The name of the repository
|
|
265
|
+
* @param name The name of the variable
|
|
266
|
+
* @param params The request body
|
|
267
|
+
* @param options Опции запроса
|
|
268
|
+
* @returns void
|
|
269
|
+
*/
|
|
270
|
+
updateRepoVariable(owner: string, repo: string, name: string, params: CreateVariableParams, options?: {
|
|
271
|
+
signal?: AbortSignal;
|
|
272
|
+
}): Promise<void>;
|
|
273
|
+
/**
|
|
274
|
+
* Delete a repository variable
|
|
275
|
+
* @param owner The account owner of the repository
|
|
276
|
+
* @param repo The name of the repository
|
|
277
|
+
* @param name The name of the variable
|
|
278
|
+
* @param options Опции запроса
|
|
279
|
+
* @returns void
|
|
280
|
+
*/
|
|
281
|
+
deleteRepoVariable(owner: string, repo: string, name: string, options?: {
|
|
282
|
+
signal?: AbortSignal;
|
|
283
|
+
}): Promise<void>;
|
|
284
|
+
/**
|
|
285
|
+
* Get workflow_dispatch parameters
|
|
286
|
+
* @param owner Repository owner owner
|
|
287
|
+
* @param repo Repository name
|
|
288
|
+
* @param workflow Workflow name filter
|
|
289
|
+
* @param queryParams Параметры запроса
|
|
290
|
+
* @param options Опции запроса
|
|
291
|
+
* @returns WorkflowDispatchInputList
|
|
292
|
+
*/
|
|
293
|
+
getWorkflowDispatchInputs(owner: string, repo: string, workflow: string, queryParams?: {
|
|
294
|
+
branch?: string;
|
|
295
|
+
tag?: string;
|
|
296
|
+
}, options?: {
|
|
297
|
+
signal?: AbortSignal;
|
|
298
|
+
}): Promise<WorkflowDispatchInputList>;
|
|
299
|
+
/**
|
|
300
|
+
* Trigger workflow_dispatch
|
|
301
|
+
* @param owner Repository owner owner
|
|
302
|
+
* @param repo Repository name
|
|
303
|
+
* @param workflow Workflow filename
|
|
304
|
+
* @param params Output parameters for workflow dispatch. Key - input parameter name, Value - input parameter value
|
|
305
|
+
* @param queryParams Параметры запроса
|
|
306
|
+
* @param options Опции запроса
|
|
307
|
+
* @returns void
|
|
308
|
+
*/
|
|
309
|
+
dispatchWorkflow(owner: string, repo: string, workflow: string, params: unknown, queryParams?: {
|
|
310
|
+
branch?: string;
|
|
311
|
+
tag?: string;
|
|
312
|
+
}, options?: {
|
|
313
|
+
signal?: AbortSignal;
|
|
314
|
+
}): Promise<void>;
|
|
521
315
|
}
|
|
522
|
-
export { ActionsApi };
|