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.
Files changed (49) hide show
  1. package/README.md +112 -7
  2. package/dist/api/actions.d.ts +313 -520
  3. package/dist/api/actions.js +3 -3
  4. package/dist/api/actions.js.map +3 -3
  5. package/dist/api/emails.d.ts +41 -206
  6. package/dist/api/emails.js +2 -2
  7. package/dist/api/emails.js.map +1 -1
  8. package/dist/api/issues.d.ts +100 -480
  9. package/dist/api/issues.js +2 -2
  10. package/dist/api/issues.js.map +1 -1
  11. package/dist/api/organizations.d.ts +67 -228
  12. package/dist/api/organizations.js +2 -2
  13. package/dist/api/organizations.js.map +1 -1
  14. package/dist/api/pages.d.ts +35 -0
  15. package/dist/api/pages.js +4 -0
  16. package/dist/api/pages.js.map +10 -0
  17. package/dist/api/pulls.d.ts +75 -520
  18. package/dist/api/pulls.js +2 -2
  19. package/dist/api/pulls.js.map +1 -1
  20. package/dist/api/releases.d.ts +135 -384
  21. package/dist/api/releases.js +2 -2
  22. package/dist/api/releases.js.map +1 -1
  23. package/dist/api/repositories.d.ts +354 -1067
  24. package/dist/api/repositories.js +2 -2
  25. package/dist/api/repositories.js.map +3 -3
  26. package/dist/api/stars.d.ts +55 -272
  27. package/dist/api/stars.js +2 -2
  28. package/dist/api/stars.js.map +1 -1
  29. package/dist/api/teams.d.ts +51 -288
  30. package/dist/api/teams.js +2 -2
  31. package/dist/api/teams.js.map +1 -1
  32. package/dist/api/users.d.ts +52 -263
  33. package/dist/api/users.js +2 -2
  34. package/dist/api/users.js.map +1 -1
  35. package/dist/client.d.ts +118 -150
  36. package/dist/client.js +2 -2
  37. package/dist/client.js.map +1 -1
  38. package/dist/enums.d.ts +47 -48
  39. package/dist/enums.js +2 -2
  40. package/dist/enums.js.map +1 -1
  41. package/dist/errors.d.ts +39 -73
  42. package/dist/errors.js +2 -2
  43. package/dist/errors.js.map +1 -1
  44. package/dist/index.d.ts +54 -2373
  45. package/dist/index.js +2 -2
  46. package/dist/index.js.map +3 -3
  47. package/dist/types.d.ts +1028 -880
  48. package/dist/utils.d.ts +72 -61
  49. package/package.json +1 -3
@@ -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
- * Типы данных для GitVerse API
3
- * @generated Сгенерировано автоматически из OpenAPI спецификации
4
- */
5
- /**
6
- * Опции для выполнения HTTP-запросов
7
- */
8
- interface RequestOptions {
9
- /**
10
- * AbortSignal для отмены запроса
11
- * @example
12
- * const controller = new AbortController();
13
- * const promise = client.users.getCurrent({ signal: controller.signal });
14
- * controller.abort(); // Отменяет запрос
15
- */
16
- signal?: AbortSignal;
17
- }
18
- interface CreateVariableParams {
19
- name?: string;
20
- value?: string;
21
- }
22
- interface ActionWorkflowRun {
23
- head_sha?: string;
24
- id?: number;
25
- repository_id?: number;
26
- }
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;
38
- }
39
- interface ActionArtifactList {
40
- artifacts?: ActionArtifact[];
41
- total_count?: number;
42
- }
43
- interface ActionRunnerLabel {
44
- id?: number;
45
- name?: string;
46
- type?: string;
47
- }
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;
64
- name?: string;
65
- updated_at?: string;
66
- value?: string;
67
- }
68
- interface VariableList {
69
- total_count?: number;
70
- variables?: Variable[];
71
- }
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[];
82
- }
83
- /**
84
- * Предупреждение об устаревшей версии API
85
- */
86
- declare class ApiVersionWarning {
87
- /** Текущая используемая версия */
88
- readonly currentVersion: string;
89
- /** Последняя доступная версия */
90
- readonly latestVersion: string;
91
- /** Дата вывода из эксплуатации */
92
- readonly decommissioning?: string;
93
- constructor(currentVersion: string, latestVersion: string, decommissioning?: string);
94
- /**
95
- * Возвращает сообщение о предупреждении
96
- */
97
- getMessage(): string;
98
- }
99
- declare const HTTPMethods: {
100
- readonly DELETE: "DELETE"
101
- readonly GET: "GET"
102
- readonly PATCH: "PATCH"
103
- readonly POST: "POST"
104
- readonly PUT: "PUT"
105
- };
106
- type HTTPMethods = (typeof HTTPMethods)[keyof typeof HTTPMethods];
107
- /**
108
- * Параметры для конфигурации GitVerse клиента
109
- */
110
- interface GitVerseClientConfig {
111
- /**
112
- * Базовый URL API GitVerse
113
- * @default 'https://api.gitverse.ru'
114
- */
115
- baseUrl?: string;
116
- /**
117
- * Токен доступа для авторизации в API
118
- */
119
- token?: string;
120
- /**
121
- * Версия API
122
- * @default '1'
123
- */
124
- apiVersion?: string;
125
- }
126
- /**
127
- * Основной класс для работы с GitVerse API
128
- */
129
- declare class GitVerseClient {
130
- private baseUrl;
131
- private token?;
132
- private apiVersion;
133
- /**
134
- * Callback для обработки предупреждений об устаревшей версии API
135
- */
136
- onApiVersionWarning?: (warning: ApiVersionWarning) => void;
137
- /**
138
- * Создает новый экземпляр GitVerse клиента
139
- * @param config Конфигурация клиента
140
- */
141
- constructor(config?: GitVerseClientConfig);
142
- /**
143
- * Устанавливает токен авторизации
144
- * @param token Токен доступа
145
- */
146
- setToken(token: string): void;
147
- /**
148
- * Извлекает информацию о Rate Limit из заголовков ответа
149
- */
150
- private extractRateLimitInfo;
151
- /**
152
- * Извлекает информацию о версии API из заголовков ответа
153
- */
154
- private extractApiVersionInfo;
155
- /**
156
- * Извлекает метаданные из заголовков ответа
157
- */
158
- private extractMetadata;
159
- /**
160
- * Выполняет API-запрос с учетом авторизации и версии API
161
- * @param path Путь к API-ресурсу
162
- * @param method HTTP-метод
163
- * @param body Тело запроса (опционально)
164
- * @param options Опции запроса (опционально)
165
- * @returns Ответ от API
166
- * @throws {RateLimitError} При превышении лимита запросов (429)
167
- * @throws {GitVerseApiError} При других ошибках API
168
- */
169
- request<T>(path: string, method: HTTPMethods, body?: unknown, options?: RequestOptions): Promise<T>;
170
- /**
171
- * Выполняет GET-запрос
172
- * @param path Путь к API-ресурсу
173
- * @param options Опции запроса (опционально)
174
- * @returns Ответ от API
175
- */
176
- get<T>(path: string, options?: RequestOptions): Promise<T>;
177
- /**
178
- * Выполняет POST-запрос
179
- * @param path Путь к API-ресурсу
180
- * @param body Тело запроса
181
- * @param options Опции запроса (опционально)
182
- * @returns Ответ от API
183
- */
184
- post<T>(path: string, body?: unknown, options?: RequestOptions): Promise<T>;
185
- /**
186
- * Выполняет PUT-запрос
187
- * @param path Путь к API-ресурсу
188
- * @param body Тело запроса
189
- * @param options Опции запроса (опционально)
190
- * @returns Ответ от API
191
- */
192
- put<T>(path: string, body?: unknown, options?: RequestOptions): Promise<T>;
193
- /**
194
- * Выполняет DELETE-запрос
195
- * @param path Путь к API-ресурсу
196
- * @param body Тело запроса (опционально)
197
- * @param options Опции запроса (опционально)
198
- * @returns Ответ от API
199
- */
200
- delete<T>(path: string, body?: unknown, options?: RequestOptions): Promise<T>;
201
- /**
202
- * Выполняет PATCH-запрос
203
- * @param path Путь к API-ресурсу
204
- * @param body Тело запроса
205
- * @param options Опции запроса (опционально)
206
- * @returns Ответ от API
207
- */
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>;
219
- }
220
- /**
221
- * API для работы с GitHub Actions
222
- */
223
- declare class ActionsApi {
224
- private client;
225
- /**
226
- * Создает новый экземпляр API
227
- * @param client GitVerse клиент
228
- */
229
- constructor(client: GitVerseClient);
230
- /**
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>;
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 };