gitverse-api-sdk 4.0.2 → 5.0.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/README.md +106 -270
- package/dist/api/actions.d.ts +360 -363
- package/dist/api/actions.js +3 -3
- package/dist/api/actions.js.map +3 -3
- package/dist/api/emails.d.ts +56 -51
- package/dist/api/emails.js +3 -3
- package/dist/api/emails.js.map +3 -3
- package/dist/api/issues.d.ts +297 -214
- package/dist/api/issues.js +3 -3
- package/dist/api/issues.js.map +3 -3
- package/dist/api/organizations.d.ts +78 -7
- package/dist/api/organizations.js +3 -3
- package/dist/api/organizations.js.map +3 -3
- package/dist/api/pulls.d.ts +338 -427
- package/dist/api/pulls.js +3 -3
- package/dist/api/pulls.js.map +3 -3
- package/dist/api/releases.d.ts +198 -231
- package/dist/api/releases.js +3 -3
- package/dist/api/releases.js.map +3 -3
- package/dist/api/repositories.d.ts +878 -330
- package/dist/api/repositories.js +3 -3
- package/dist/api/repositories.js.map +3 -3
- package/dist/api/stars.d.ts +109 -182
- package/dist/api/stars.js +3 -3
- package/dist/api/stars.js.map +3 -3
- package/dist/api/teams.d.ts +118 -134
- package/dist/api/teams.js +3 -3
- package/dist/api/teams.js.map +3 -3
- package/dist/api/users.d.ts +99 -97
- package/dist/api/users.js +3 -3
- package/dist/api/users.js.map +3 -3
- package/dist/client.d.ts +14 -0
- package/dist/client.js +3 -3
- package/dist/client.js.map +3 -3
- package/dist/enums.d.ts +27 -71
- package/dist/enums.js +3 -3
- package/dist/enums.js.map +3 -3
- package/dist/errors.d.ts +12 -10
- package/dist/errors.js +2 -2
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +2042 -2130
- package/dist/index.js +2 -2
- package/dist/index.js.map +3 -3
- package/dist/types.d.ts +779 -1223
- package/dist/utils.js +1 -2
- package/dist/utils.js.map +1 -1
- package/package.json +2 -2
- package/dist/api/branches.d.ts +0 -173
- package/dist/api/branches.js +0 -4
- package/dist/api/branches.js.map +0 -10
- package/dist/api/collaborators.d.ts +0 -243
- package/dist/api/collaborators.js +0 -4
- package/dist/api/collaborators.js.map +0 -10
- package/dist/api/commits.d.ts +0 -321
- package/dist/api/commits.js +0 -4
- package/dist/api/commits.js.map +0 -10
- package/dist/api/contents.d.ts +0 -364
- package/dist/api/contents.js +0 -4
- package/dist/api/contents.js.map +0 -10
- package/dist/api/forks.d.ts +0 -344
- package/dist/api/forks.js +0 -4
- package/dist/api/forks.js.map +0 -10
- package/dist/api/git.d.ts +0 -247
- package/dist/api/git.js +0 -4
- package/dist/api/git.js.map +0 -10
package/dist/api/actions.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* Типы данных для GitVerse API
|
|
3
|
+
* @generated Сгенерировано автоматически из OpenAPI спецификации
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
2
6
|
* Опции для выполнения HTTP-запросов
|
|
3
7
|
*/
|
|
4
8
|
interface RequestOptions {
|
|
@@ -11,111 +15,70 @@ interface RequestOptions {
|
|
|
11
15
|
*/
|
|
12
16
|
signal?: AbortSignal;
|
|
13
17
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
interface Runner {
|
|
18
|
-
/** Идентификатор раннера */
|
|
19
|
-
id: number;
|
|
20
|
-
/** Название раннера */
|
|
21
|
-
name: string;
|
|
22
|
-
/** Операционная система */
|
|
23
|
-
os: string;
|
|
24
|
-
/** Статус раннера */
|
|
25
|
-
status: "online" | "offline";
|
|
26
|
-
/** Занят ли раннер */
|
|
27
|
-
busy: boolean;
|
|
28
|
-
/** Метки раннера */
|
|
29
|
-
labels: Array<{
|
|
30
|
-
id: number
|
|
31
|
-
name: string
|
|
32
|
-
type: string
|
|
33
|
-
}>;
|
|
18
|
+
interface CreateVariableParams {
|
|
19
|
+
name?: string;
|
|
20
|
+
value?: string;
|
|
34
21
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
/** Название секрета */
|
|
40
|
-
name: string;
|
|
41
|
-
/** Дата создания */
|
|
42
|
-
created_at: string;
|
|
43
|
-
/** Дата обновления */
|
|
44
|
-
updated_at: string;
|
|
22
|
+
interface ActionWorkflowRun {
|
|
23
|
+
head_sha?: string;
|
|
24
|
+
id?: number;
|
|
25
|
+
repository_id?: number;
|
|
45
26
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
27
|
+
interface ActionArtifact {
|
|
28
|
+
archive_download_url?: string;
|
|
29
|
+
created_at?: string;
|
|
30
|
+
expired?: boolean;
|
|
31
|
+
expires_at?: string;
|
|
32
|
+
id?: number;
|
|
33
|
+
name?: string;
|
|
34
|
+
size_in_bytes?: number;
|
|
35
|
+
updated_at?: string;
|
|
36
|
+
url?: string;
|
|
37
|
+
workflow_run?: ActionWorkflowRun;
|
|
54
38
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
interface Variable {
|
|
59
|
-
/** Название переменной */
|
|
60
|
-
name: string;
|
|
61
|
-
/** Значение переменной */
|
|
62
|
-
value: string;
|
|
63
|
-
/** Дата создания */
|
|
64
|
-
created_at: string;
|
|
65
|
-
/** Дата обновления */
|
|
66
|
-
updated_at: string;
|
|
39
|
+
interface ActionArtifactList {
|
|
40
|
+
artifacts?: ActionArtifact[];
|
|
41
|
+
total_count?: number;
|
|
67
42
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
/** Название переменной */
|
|
73
|
-
name: string;
|
|
74
|
-
/** Значение переменной */
|
|
75
|
-
value: string;
|
|
43
|
+
interface ActionRunnerLabel {
|
|
44
|
+
id?: number;
|
|
45
|
+
name?: string;
|
|
46
|
+
type?: string;
|
|
76
47
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
48
|
+
interface ActionRunner {
|
|
49
|
+
busy?: boolean;
|
|
50
|
+
id?: number;
|
|
51
|
+
labels?: ActionRunnerLabel[];
|
|
52
|
+
name?: string;
|
|
53
|
+
status?: string;
|
|
54
|
+
}
|
|
55
|
+
interface ActionRunners {
|
|
56
|
+
runners?: ActionRunner[];
|
|
57
|
+
total_count?: number;
|
|
58
|
+
}
|
|
59
|
+
interface RegistrationToken {
|
|
60
|
+
token?: string;
|
|
61
|
+
}
|
|
62
|
+
interface Variable {
|
|
63
|
+
created_at?: string;
|
|
82
64
|
name?: string;
|
|
83
|
-
|
|
65
|
+
updated_at?: string;
|
|
84
66
|
value?: string;
|
|
85
67
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
interface Artifact {
|
|
90
|
-
/** Идентификатор артефакта */
|
|
91
|
-
id: number;
|
|
92
|
-
/** Node ID артефакта */
|
|
93
|
-
node_id: string;
|
|
94
|
-
/** Название артефакта */
|
|
95
|
-
name: string;
|
|
96
|
-
/** Размер в байтах */
|
|
97
|
-
size_in_bytes: number;
|
|
98
|
-
/** API-ссылка */
|
|
99
|
-
url: string;
|
|
100
|
-
/** Ссылка на архив */
|
|
101
|
-
archive_download_url: string;
|
|
102
|
-
/** Истёк ли срок действия */
|
|
103
|
-
expired: boolean;
|
|
104
|
-
/** Дата создания */
|
|
105
|
-
created_at: string;
|
|
106
|
-
/** Дата истечения */
|
|
107
|
-
expires_at: string;
|
|
108
|
-
/** Дата обновления */
|
|
109
|
-
updated_at: string;
|
|
68
|
+
interface VariableList {
|
|
69
|
+
total_count?: number;
|
|
70
|
+
variables?: Variable[];
|
|
110
71
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
72
|
+
interface WorkflowDispatchInput {
|
|
73
|
+
default?: string;
|
|
74
|
+
description?: string;
|
|
75
|
+
name?: string;
|
|
76
|
+
options?: string[];
|
|
77
|
+
required?: boolean;
|
|
78
|
+
type?: string;
|
|
79
|
+
}
|
|
80
|
+
interface WorkflowDispatchInputList {
|
|
81
|
+
inputs?: WorkflowDispatchInput[];
|
|
119
82
|
}
|
|
120
83
|
/**
|
|
121
84
|
* Предупреждение об устаревшей версии API
|
|
@@ -243,6 +206,16 @@ declare class GitVerseClient {
|
|
|
243
206
|
* @returns Ответ от API
|
|
244
207
|
*/
|
|
245
208
|
patch<T>(path: string, body?: unknown, options?: RequestOptions): Promise<T>;
|
|
209
|
+
/**
|
|
210
|
+
* Выполняет загрузку файла через multipart/form-data
|
|
211
|
+
* @param path Путь к API-ресурсу
|
|
212
|
+
* @param fieldName Имя поля для файла
|
|
213
|
+
* @param file Файл для загрузки (Blob или ArrayBuffer)
|
|
214
|
+
* @param fileName Имя файла
|
|
215
|
+
* @param options Опции запроса (опционально)
|
|
216
|
+
* @returns Ответ от API
|
|
217
|
+
*/
|
|
218
|
+
uploadFile<T>(path: string, fieldName: string, file: Blob | ArrayBuffer, fileName: string, options?: RequestOptions): Promise<T>;
|
|
246
219
|
}
|
|
247
220
|
/**
|
|
248
221
|
* API для работы с GitHub Actions
|
|
@@ -250,276 +223,300 @@ declare class GitVerseClient {
|
|
|
250
223
|
declare class ActionsApi {
|
|
251
224
|
private client;
|
|
252
225
|
/**
|
|
253
|
-
* Создает новый экземпляр API
|
|
226
|
+
* Создает новый экземпляр API
|
|
254
227
|
* @param client GitVerse клиент
|
|
255
228
|
*/
|
|
256
229
|
constructor(client: GitVerseClient);
|
|
257
230
|
/**
|
|
258
|
-
*
|
|
259
|
-
* @param org
|
|
260
|
-
* @
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
*
|
|
283
|
-
* @param
|
|
284
|
-
* @
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
*
|
|
291
|
-
* @param
|
|
292
|
-
* @
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
*
|
|
301
|
-
* @
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
*
|
|
317
|
-
* @
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
*
|
|
325
|
-
* @param
|
|
326
|
-
* @
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
*
|
|
334
|
-
* @param
|
|
335
|
-
* @
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
*
|
|
348
|
-
* @
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
*
|
|
355
|
-
* @param owner
|
|
356
|
-
* @param repo
|
|
357
|
-
* @
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
*
|
|
372
|
-
* @param
|
|
373
|
-
* @param
|
|
374
|
-
* @
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
/**
|
|
380
|
-
*
|
|
381
|
-
* @param owner
|
|
382
|
-
* @param repo
|
|
383
|
-
* @param
|
|
384
|
-
* @
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
*
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
*
|
|
404
|
-
* @param
|
|
405
|
-
* @param
|
|
406
|
-
* @
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
*
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
*
|
|
418
|
-
* @
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
*
|
|
428
|
-
* @
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
*
|
|
438
|
-
* @
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
*
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
*
|
|
451
|
-
* @param
|
|
452
|
-
* @param
|
|
453
|
-
* @
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
*
|
|
460
|
-
* @param
|
|
461
|
-
* @param name
|
|
462
|
-
* @param
|
|
463
|
-
* @
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
*
|
|
477
|
-
* @param
|
|
478
|
-
* @
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
/**
|
|
484
|
-
*
|
|
485
|
-
* @param owner
|
|
486
|
-
* @param repo
|
|
487
|
-
* @param
|
|
488
|
-
* @
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
*
|
|
496
|
-
* @
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
*
|
|
501
|
-
* @
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
*
|
|
509
|
-
* @param
|
|
510
|
-
* @param
|
|
511
|
-
* @param
|
|
512
|
-
* @returns
|
|
513
|
-
*/
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
*
|
|
519
|
-
* @param
|
|
520
|
-
* @param
|
|
521
|
-
* @
|
|
522
|
-
|
|
523
|
-
|
|
231
|
+
* Returns a list of self-hosted runners for an organization
|
|
232
|
+
* @param org The organization name
|
|
233
|
+
* @param queryParams Параметры запроса
|
|
234
|
+
* @param options Опции запроса
|
|
235
|
+
* @returns ActionRunners
|
|
236
|
+
*/
|
|
237
|
+
listOrgRunners(org: string, queryParams?: {
|
|
238
|
+
page?: number
|
|
239
|
+
per_page?: number
|
|
240
|
+
}, options?: {
|
|
241
|
+
signal?: AbortSignal
|
|
242
|
+
}): Promise<ActionRunners>;
|
|
243
|
+
/**
|
|
244
|
+
* Creates a registration token for an organization runner
|
|
245
|
+
* @param org The organization name
|
|
246
|
+
* @param options Опции запроса
|
|
247
|
+
* @returns RegistrationToken
|
|
248
|
+
*/
|
|
249
|
+
createOrgRunnerRegistrationToken(org: string, options?: {
|
|
250
|
+
signal?: AbortSignal
|
|
251
|
+
}): Promise<RegistrationToken>;
|
|
252
|
+
/**
|
|
253
|
+
* Gets a specific self-hosted runner for an organization
|
|
254
|
+
* @param org The organization name
|
|
255
|
+
* @param runner_id Unique identifier of the runner
|
|
256
|
+
* @param options Опции запроса
|
|
257
|
+
* @returns ActionRunner
|
|
258
|
+
*/
|
|
259
|
+
getOrgRunner(org: string, runner_id: number, options?: {
|
|
260
|
+
signal?: AbortSignal
|
|
261
|
+
}): Promise<ActionRunner>;
|
|
262
|
+
/**
|
|
263
|
+
* Deletes a specific self-hosted runner from the organization
|
|
264
|
+
* @param org The organization name
|
|
265
|
+
* @param runner_id Unique identifier of the runner
|
|
266
|
+
* @param options Опции запроса
|
|
267
|
+
* @returns void
|
|
268
|
+
*/
|
|
269
|
+
deleteOrgRunner(org: string, runner_id: number, options?: {
|
|
270
|
+
signal?: AbortSignal
|
|
271
|
+
}): Promise<void>;
|
|
272
|
+
/**
|
|
273
|
+
* List organization variables
|
|
274
|
+
* @param org The organization name
|
|
275
|
+
* @param queryParams Параметры запроса
|
|
276
|
+
* @param options Опции запроса
|
|
277
|
+
* @returns VariableList
|
|
278
|
+
*/
|
|
279
|
+
listOrgVariables(org: string, queryParams?: {
|
|
280
|
+
per_page?: number
|
|
281
|
+
page?: number
|
|
282
|
+
}, options?: {
|
|
283
|
+
signal?: AbortSignal
|
|
284
|
+
}): Promise<VariableList>;
|
|
285
|
+
/**
|
|
286
|
+
* Create an organization variable
|
|
287
|
+
* @param org The organization name
|
|
288
|
+
* @param params The request body
|
|
289
|
+
* @param options Опции запроса
|
|
290
|
+
* @returns void
|
|
291
|
+
*/
|
|
292
|
+
createOrgVariable(org: string, params: CreateVariableParams, options?: {
|
|
293
|
+
signal?: AbortSignal
|
|
294
|
+
}): Promise<void>;
|
|
295
|
+
/**
|
|
296
|
+
* Get an organization variable
|
|
297
|
+
* @param org The organization name
|
|
298
|
+
* @param name The name of the variable
|
|
299
|
+
* @param options Опции запроса
|
|
300
|
+
* @returns Variable
|
|
301
|
+
*/
|
|
302
|
+
getOrgVariable(org: string, name: string, options?: {
|
|
303
|
+
signal?: AbortSignal
|
|
304
|
+
}): Promise<Variable>;
|
|
305
|
+
/**
|
|
306
|
+
* Update an organization variable
|
|
307
|
+
* @param org The organization name
|
|
308
|
+
* @param name The name of the variable
|
|
309
|
+
* @param params The request body
|
|
310
|
+
* @param options Опции запроса
|
|
311
|
+
* @returns void
|
|
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>;
|
|
524
521
|
}
|
|
525
522
|
export { ActionsApi };
|