gitverse-api-sdk 5.1.0 → 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.
@@ -1,546 +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 CreateActionLinkParams {
19
- description?: string;
20
- link?: string;
21
- name?: string;
22
- run_id?: number;
23
- }
24
- interface CreateVariableParams {
25
- name?: string;
26
- value?: string;
27
- }
28
- interface ActionWorkflowRun {
29
- head_sha?: string;
30
- id?: number;
31
- repository_id?: number;
32
- }
33
- interface ActionArtifact {
34
- archive_download_url?: string;
35
- created_at?: string;
36
- expired?: boolean;
37
- expires_at?: string;
38
- id?: number;
39
- name?: string;
40
- size_in_bytes?: number;
41
- updated_at?: string;
42
- url?: string;
43
- workflow_run?: ActionWorkflowRun;
44
- }
45
- interface ActionArtifactList {
46
- artifacts?: ActionArtifact[];
47
- total_count?: number;
48
- }
49
- interface ActionLink {
50
- description?: string;
51
- id?: number;
52
- link?: string;
53
- name?: string;
54
- run_id?: number;
55
- }
56
- interface ActionRunnerLabel {
57
- id?: number;
58
- name?: string;
59
- type?: string;
60
- }
61
- interface ActionRunner {
62
- busy?: boolean;
63
- id?: number;
64
- labels?: ActionRunnerLabel[];
65
- name?: string;
66
- status?: string;
67
- }
68
- interface ActionRunners {
69
- runners?: ActionRunner[];
70
- total_count?: number;
71
- }
72
- interface RegistrationToken {
73
- token?: string;
74
- }
75
- interface Variable {
76
- created_at?: string;
77
- name?: string;
78
- updated_at?: string;
79
- value?: string;
80
- }
81
- interface VariableList {
82
- total_count?: number;
83
- variables?: Variable[];
84
- }
85
- interface WorkflowDispatchInput {
86
- default?: string;
87
- description?: string;
88
- name?: string;
89
- options?: string[];
90
- required?: boolean;
91
- type?: string;
92
- }
93
- interface WorkflowDispatchInputList {
94
- inputs?: WorkflowDispatchInput[];
95
- }
96
- /**
97
- * Предупреждение об устаревшей версии API
98
- */
99
- declare class ApiVersionWarning {
100
- /** Текущая используемая версия */
101
- readonly currentVersion: string;
102
- /** Последняя доступная версия */
103
- readonly latestVersion: string;
104
- /** Дата вывода из эксплуатации */
105
- readonly decommissioning?: string;
106
- constructor(currentVersion: string, latestVersion: string, decommissioning?: string);
107
- /**
108
- * Возвращает сообщение о предупреждении
109
- */
110
- getMessage(): string;
111
- }
112
- declare const HTTPMethods: {
113
- readonly DELETE: "DELETE"
114
- readonly GET: "GET"
115
- readonly PATCH: "PATCH"
116
- readonly POST: "POST"
117
- readonly PUT: "PUT"
118
- };
119
- type HTTPMethods = (typeof HTTPMethods)[keyof typeof HTTPMethods];
120
- /**
121
- * Параметры для конфигурации GitVerse клиента
122
- */
123
- interface GitVerseClientConfig {
124
- /**
125
- * Базовый URL API GitVerse
126
- * @default 'https://api.gitverse.ru'
127
- */
128
- baseUrl?: string;
129
- /**
130
- * Токен доступа для авторизации в API
131
- */
132
- token?: string;
133
- /**
134
- * Версия API
135
- * @default '1'
136
- */
137
- apiVersion?: string;
138
- }
139
- /**
140
- * Основной класс для работы с GitVerse API
141
- */
142
- declare class GitVerseClient {
143
- private baseUrl;
144
- private token?;
145
- private apiVersion;
146
- /**
147
- * Callback для обработки предупреждений об устаревшей версии API
148
- */
149
- onApiVersionWarning?: (warning: ApiVersionWarning) => void;
150
- /**
151
- * Создает новый экземпляр GitVerse клиента
152
- * @param config Конфигурация клиента
153
- */
154
- constructor(config?: GitVerseClientConfig);
155
- /**
156
- * Устанавливает токен авторизации
157
- * @param token Токен доступа
158
- */
159
- setToken(token: string): void;
160
- /**
161
- * Извлекает информацию о Rate Limit из заголовков ответа
162
- */
163
- private extractRateLimitInfo;
164
- /**
165
- * Извлекает информацию о версии API из заголовков ответа
166
- */
167
- private extractApiVersionInfo;
168
- /**
169
- * Извлекает метаданные из заголовков ответа
170
- */
171
- private extractMetadata;
172
- /**
173
- * Выполняет API-запрос с учетом авторизации и версии API
174
- * @param path Путь к API-ресурсу
175
- * @param method HTTP-метод
176
- * @param body Тело запроса (опционально)
177
- * @param options Опции запроса (опционально)
178
- * @returns Ответ от API
179
- * @throws {RateLimitError} При превышении лимита запросов (429)
180
- * @throws {GitVerseApiError} При других ошибках API
181
- */
182
- request<T>(path: string, method: HTTPMethods, body?: unknown, options?: RequestOptions): Promise<T>;
183
- /**
184
- * Выполняет GET-запрос
185
- * @param path Путь к API-ресурсу
186
- * @param options Опции запроса (опционально)
187
- * @returns Ответ от API
188
- */
189
- get<T>(path: string, options?: RequestOptions): Promise<T>;
190
- /**
191
- * Выполняет POST-запрос
192
- * @param path Путь к API-ресурсу
193
- * @param body Тело запроса
194
- * @param options Опции запроса (опционально)
195
- * @returns Ответ от API
196
- */
197
- post<T>(path: string, body?: unknown, options?: RequestOptions): Promise<T>;
198
- /**
199
- * Выполняет PUT-запрос
200
- * @param path Путь к API-ресурсу
201
- * @param body Тело запроса
202
- * @param options Опции запроса (опционально)
203
- * @returns Ответ от API
204
- */
205
- put<T>(path: string, body?: unknown, options?: RequestOptions): Promise<T>;
206
- /**
207
- * Выполняет DELETE-запрос
208
- * @param path Путь к API-ресурсу
209
- * @param body Тело запроса (опционально)
210
- * @param options Опции запроса (опционально)
211
- * @returns Ответ от API
212
- */
213
- delete<T>(path: string, body?: unknown, options?: RequestOptions): Promise<T>;
214
- /**
215
- * Выполняет PATCH-запрос
216
- * @param path Путь к API-ресурсу
217
- * @param body Тело запроса
218
- * @param options Опции запроса (опционально)
219
- * @returns Ответ от API
220
- */
221
- patch<T>(path: string, body?: unknown, options?: RequestOptions): Promise<T>;
222
- /**
223
- * Выполняет загрузку файла через multipart/form-data
224
- * @param path Путь к API-ресурсу
225
- * @param fieldName Имя поля для файла
226
- * @param file Файл для загрузки (Blob или ArrayBuffer)
227
- * @param fileName Имя файла
228
- * @param options Опции запроса (опционально)
229
- * @returns Ответ от API
230
- */
231
- uploadFile<T>(path: string, fieldName: string, file: Blob | ArrayBuffer, fileName: string, options?: RequestOptions): Promise<T>;
232
- }
233
- /**
234
- * API для работы с GitHub Actions
235
- */
236
- declare class ActionsApi {
237
- private client;
238
- /**
239
- * Создает новый экземпляр API
240
- * @param client GitVerse клиент
241
- */
242
- constructor(client: GitVerseClient);
243
- /**
244
- * Returns a list of self-hosted runners for an organization
245
- * @param org The organization name
246
- * @param queryParams Параметры запроса
247
- * @param options Опции запроса
248
- * @returns ActionRunners
249
- */
250
- listOrgRunners(org: string, queryParams?: {
251
- page?: number
252
- per_page?: number
253
- }, options?: {
254
- signal?: AbortSignal
255
- }): Promise<ActionRunners>;
256
- /**
257
- * Creates a registration token for an organization runner
258
- * @param org The organization name
259
- * @param options Опции запроса
260
- * @returns RegistrationToken
261
- */
262
- createOrgRunnerRegistrationToken(org: string, options?: {
263
- signal?: AbortSignal
264
- }): Promise<RegistrationToken>;
265
- /**
266
- * Gets a specific self-hosted runner for an organization
267
- * @param org The organization name
268
- * @param runner_id Unique identifier of the runner
269
- * @param options Опции запроса
270
- * @returns ActionRunner
271
- */
272
- getOrgRunner(org: string, runner_id: number, options?: {
273
- signal?: AbortSignal
274
- }): Promise<ActionRunner>;
275
- /**
276
- * Deletes a specific self-hosted runner from the organization
277
- * @param org The organization name
278
- * @param runner_id Unique identifier of the runner
279
- * @param options Опции запроса
280
- * @returns void
281
- */
282
- deleteOrgRunner(org: string, runner_id: number, options?: {
283
- signal?: AbortSignal
284
- }): Promise<void>;
285
- /**
286
- * List organization variables
287
- * @param org The organization name
288
- * @param queryParams Параметры запроса
289
- * @param options Опции запроса
290
- * @returns VariableList
291
- */
292
- listOrgVariables(org: string, queryParams?: {
293
- per_page?: number
294
- page?: number
295
- }, options?: {
296
- signal?: AbortSignal
297
- }): Promise<VariableList>;
298
- /**
299
- * Create an organization variable
300
- * @param org The organization name
301
- * @param params The request body
302
- * @param options Опции запроса
303
- * @returns void
304
- */
305
- createOrgVariable(org: string, params: CreateVariableParams, options?: {
306
- signal?: AbortSignal
307
- }): Promise<void>;
308
- /**
309
- * Get an organization variable
310
- * @param org The organization name
311
- * @param name The name of the variable
312
- * @param options Опции запроса
313
- * @returns Variable
314
- */
315
- getOrgVariable(org: string, name: string, options?: {
316
- signal?: AbortSignal
317
- }): Promise<Variable>;
318
- /**
319
- * Update an organization variable
320
- * @param org The organization name
321
- * @param name The name of the variable
322
- * @param params The request body
323
- * @param options Опции запроса
324
- * @returns void
325
- */
326
- updateOrgVariable(org: string, name: string, params: CreateVariableParams, options?: {
327
- signal?: AbortSignal
328
- }): Promise<void>;
329
- /**
330
- * Delete an organization variable
331
- * @param org The organization name
332
- * @param name The name of the variable
333
- * @param options Опции запроса
334
- * @returns void
335
- */
336
- deleteOrgVariable(org: string, name: string, options?: {
337
- signal?: AbortSignal
338
- }): Promise<void>;
339
- /**
340
- * Returns a list of artifacts in the repository
341
- * @param owner Owner of the repository (owner or organization name)
342
- * @param repo Name of the repository without the .git extension
343
- * @param queryParams Параметры запроса
344
- * @param options Опции запроса
345
- * @returns ActionArtifactList
346
- */
347
- listArtifacts(owner: string, repo: string, queryParams?: {
348
- page?: number
349
- per_page?: number
350
- name?: string
351
- }, options?: {
352
- signal?: AbortSignal
353
- }): Promise<ActionArtifactList>;
354
- /**
355
- * Returns a specific artifact from the repository
356
- * @param owner Owner of the repository (owner or organization name)
357
- * @param repo Name of the repository without the .git extension
358
- * @param artifact_id Identifier of the artifact
359
- * @param options Опции запроса
360
- * @returns ActionArtifact
361
- */
362
- getArtifact(owner: string, repo: string, artifact_id: string, options?: {
363
- signal?: AbortSignal
364
- }): Promise<ActionArtifact>;
365
- /**
366
- * Deletes a specific artifact
367
- * @param owner Owner of the repository (owner or organization name)
368
- * @param repo Name of the repository without the .git extension
369
- * @param artifact_id Identifier of the artifact
370
- * @param options Опции запроса
371
- * @returns void
372
- */
373
- deleteArtifact(owner: string, repo: string, artifact_id: string, options?: {
374
- signal?: AbortSignal
375
- }): Promise<void>;
376
- /**
377
- * Downloads a specific artifact as a ZIP archive
378
- * @param owner Owner of the repository (owner or organization name)
379
- * @param repo Name of the repository without the .git extension
380
- * @param artifact_id Identifier of the artifact
381
- * @param options Опции запроса
382
- * @returns void
383
- */
384
- downloadArtifact(owner: string, repo: string, artifact_id: string, options?: {
385
- signal?: AbortSignal
386
- }): Promise<void>;
387
- /**
388
- * Downloads the artifact ZIP archive directly
389
- * @param owner Owner of the repository (owner or organization name)
390
- * @param repo Name of the repository without the .git extension
391
- * @param artifact_id Identifier of the artifact
392
- * @param options Опции запроса
393
- * @returns string
394
- */
395
- downloadArtifactRaw(owner: string, repo: string, artifact_id: string, options?: {
396
- signal?: AbortSignal
397
- }): Promise<string>;
398
- /**
399
- * Adds a link to an action run
400
- * @param owner Owner of the repository (username or organization name)
401
- * @param repo Name of the repository without the .git extension
402
- * @param params Link details: url, name, description, and optional metadata
403
- * @param options Опции запроса
404
- * @returns ActionLink
405
- */
406
- createActionLink(owner: string, repo: string, params: CreateActionLinkParams, options?: {
407
- signal?: AbortSignal
408
- }): Promise<ActionLink>;
409
- /**
410
- * Returns a list of runners for the 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 queryParams Параметры запроса
414
- * @param options Опции запроса
415
- * @returns ActionRunners
416
- */
417
- listRepoRunners(owner: string, repo: string, queryParams?: {
418
- page?: number
419
- per_page?: number
420
- }, options?: {
421
- signal?: AbortSignal
422
- }): Promise<ActionRunners>;
423
- /**
424
- * Creates a registration token for a repository runner
425
- * @param owner Owner of the repository (owner or organization name)
426
- * @param repo Name of the repository without the .git extension
427
- * @param options Опции запроса
428
- * @returns RegistrationToken
429
- */
430
- createRepoRunnerRegistrationToken(owner: string, repo: string, options?: {
431
- signal?: AbortSignal
432
- }): Promise<RegistrationToken>;
433
- /**
434
- * Gets a specific runner for a repository
435
- * @param owner Owner of the repository (owner or organization name)
436
- * @param repo Name of the repository without the .git extension
437
- * @param runner_id Unique identifier of the runner
438
- * @param options Опции запроса
439
- * @returns ActionRunner
440
- */
441
- getRepoRunner(owner: string, repo: string, runner_id: number, options?: {
442
- signal?: AbortSignal
443
- }): Promise<ActionRunner>;
444
- /**
445
- * Deletes a specific self-hosted runner from the repository
446
- * @param owner Owner of the repository (owner or organization name)
447
- * @param repo Name of the repository without the .git extension
448
- * @param runner_id Unique identifier of the runner
449
- * @param options Опции запроса
450
- * @returns void
451
- */
452
- deleteRepoRunner(owner: string, repo: string, runner_id: number, options?: {
453
- signal?: AbortSignal
454
- }): Promise<void>;
455
- /**
456
- * List repository variables
457
- * @param owner The account owner of the repository
458
- * @param repo The name of the repository
459
- * @param queryParams Параметры запроса
460
- * @param options Опции запроса
461
- * @returns VariableList
462
- */
463
- listRepoVariables(owner: string, repo: string, queryParams?: {
464
- per_page?: number
465
- page?: number
466
- }, options?: {
467
- signal?: AbortSignal
468
- }): Promise<VariableList>;
469
- /**
470
- * Create a repository variable
471
- * @param owner The account owner of the repository
472
- * @param repo The name of the repository
473
- * @param params The request body
474
- * @param options Опции запроса
475
- * @returns void
476
- */
477
- createRepoVariable(owner: string, repo: string, params: CreateVariableParams, options?: {
478
- signal?: AbortSignal
479
- }): Promise<void>;
480
- /**
481
- * Get a repository variable
482
- * @param owner The account owner of the repository
483
- * @param repo The name of the repository
484
- * @param name The name of the variable
485
- * @param options Опции запроса
486
- * @returns Variable
487
- */
488
- getRepoVariable(owner: string, repo: string, name: string, options?: {
489
- signal?: AbortSignal
490
- }): Promise<Variable>;
491
- /**
492
- * Update a repository variable
493
- * @param owner The account owner of the repository
494
- * @param repo The name of the repository
495
- * @param name The name of the variable
496
- * @param params The request body
497
- * @param options Опции запроса
498
- * @returns void
499
- */
500
- updateRepoVariable(owner: string, repo: string, name: string, params: CreateVariableParams, options?: {
501
- signal?: AbortSignal
502
- }): Promise<void>;
503
- /**
504
- * Delete a repository variable
505
- * @param owner The account owner of the repository
506
- * @param repo The name of the repository
507
- * @param name The name of the variable
508
- * @param options Опции запроса
509
- * @returns void
510
- */
511
- deleteRepoVariable(owner: string, repo: string, name: string, options?: {
512
- signal?: AbortSignal
513
- }): Promise<void>;
514
- /**
515
- * Get workflow_dispatch parameters
516
- * @param owner Repository owner owner
517
- * @param repo Repository name
518
- * @param workflow Workflow name filter
519
- * @param queryParams Параметры запроса
520
- * @param options Опции запроса
521
- * @returns WorkflowDispatchInputList
522
- */
523
- getWorkflowDispatchInputs(owner: string, repo: string, workflow: string, queryParams?: {
524
- branch?: string
525
- tag?: string
526
- }, options?: {
527
- signal?: AbortSignal
528
- }): Promise<WorkflowDispatchInputList>;
529
- /**
530
- * Trigger workflow_dispatch
531
- * @param owner Repository owner owner
532
- * @param repo Repository name
533
- * @param workflow Workflow filename
534
- * @param params Output parameters for workflow dispatch. Key - input parameter name, Value - input parameter value
535
- * @param queryParams Параметры запроса
536
- * @param options Опции запроса
537
- * @returns void
538
- */
539
- dispatchWorkflow(owner: string, repo: string, workflow: string, params: unknown, queryParams?: {
540
- branch?: string
541
- tag?: string
542
- }, options?: {
543
- signal?: AbortSignal
544
- }): 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>;
545
315
  }
546
- export { ActionsApi };