@mesadev/rest 0.3.3
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/LICENSE +201 -0
- package/README.md +28 -0
- package/dist/client/client.gen.d.ts +2 -0
- package/dist/client/client.gen.js +234 -0
- package/dist/client/index.d.ts +8 -0
- package/dist/client/index.js +6 -0
- package/dist/client/types.gen.d.ts +117 -0
- package/dist/client/types.gen.js +2 -0
- package/dist/client/utils.gen.d.ts +33 -0
- package/dist/client/utils.gen.js +228 -0
- package/dist/client.gen.d.ts +12 -0
- package/dist/client.gen.js +3 -0
- package/dist/core/auth.gen.d.ts +18 -0
- package/dist/core/auth.gen.js +14 -0
- package/dist/core/bodySerializer.gen.d.ts +25 -0
- package/dist/core/bodySerializer.gen.js +57 -0
- package/dist/core/params.gen.d.ts +43 -0
- package/dist/core/params.gen.js +100 -0
- package/dist/core/pathSerializer.gen.d.ts +33 -0
- package/dist/core/pathSerializer.gen.js +106 -0
- package/dist/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/core/queryKeySerializer.gen.js +92 -0
- package/dist/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/core/serverSentEvents.gen.js +133 -0
- package/dist/core/types.gen.d.ts +78 -0
- package/dist/core/types.gen.js +2 -0
- package/dist/core/utils.gen.d.ts +19 -0
- package/dist/core/utils.gen.js +87 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/sdk.gen.d.ts +135 -0
- package/dist/sdk.gen.js +226 -0
- package/dist/types.gen.d.ts +2547 -0
- package/dist/types.gen.js +2 -0
- package/package.json +37 -0
- package/src/client/client.gen.ts +288 -0
- package/src/client/index.ts +25 -0
- package/src/client/types.gen.ts +214 -0
- package/src/client/utils.gen.ts +316 -0
- package/src/client.gen.ts +16 -0
- package/src/core/auth.gen.ts +41 -0
- package/src/core/bodySerializer.gen.ts +84 -0
- package/src/core/params.gen.ts +169 -0
- package/src/core/pathSerializer.gen.ts +171 -0
- package/src/core/queryKeySerializer.gen.ts +117 -0
- package/src/core/serverSentEvents.gen.ts +243 -0
- package/src/core/types.gen.ts +104 -0
- package/src/core/utils.gen.ts +140 -0
- package/src/index.ts +4 -0
- package/src/sdk.gen.ts +263 -0
- package/src/types.gen.ts +2649 -0
|
@@ -0,0 +1,2547 @@
|
|
|
1
|
+
export type ClientOptions = {
|
|
2
|
+
baseUrl: 'https://api.mesa.dev/api/v1' | (string & {});
|
|
3
|
+
};
|
|
4
|
+
export type GetByOrgApiKeysData = {
|
|
5
|
+
body?: never;
|
|
6
|
+
path: {
|
|
7
|
+
org: string;
|
|
8
|
+
};
|
|
9
|
+
query?: never;
|
|
10
|
+
url: '/{org}/api-keys';
|
|
11
|
+
};
|
|
12
|
+
export type GetByOrgApiKeysErrors = {
|
|
13
|
+
/**
|
|
14
|
+
* Invalid request
|
|
15
|
+
*/
|
|
16
|
+
400: {
|
|
17
|
+
error: {
|
|
18
|
+
code: string;
|
|
19
|
+
message: string;
|
|
20
|
+
details?: {
|
|
21
|
+
[key: string]: unknown;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Unauthorized
|
|
27
|
+
*/
|
|
28
|
+
401: {
|
|
29
|
+
error: {
|
|
30
|
+
code: string;
|
|
31
|
+
message: string;
|
|
32
|
+
details?: {
|
|
33
|
+
[key: string]: unknown;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Forbidden
|
|
39
|
+
*/
|
|
40
|
+
403: {
|
|
41
|
+
error: {
|
|
42
|
+
code: string;
|
|
43
|
+
message: string;
|
|
44
|
+
details?: {
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Not found
|
|
51
|
+
*/
|
|
52
|
+
404: {
|
|
53
|
+
error: {
|
|
54
|
+
code: string;
|
|
55
|
+
message: string;
|
|
56
|
+
details?: {
|
|
57
|
+
[key: string]: unknown;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Not acceptable
|
|
63
|
+
*/
|
|
64
|
+
406: {
|
|
65
|
+
error: {
|
|
66
|
+
code: string;
|
|
67
|
+
message: string;
|
|
68
|
+
details?: {
|
|
69
|
+
[key: string]: unknown;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Conflict
|
|
75
|
+
*/
|
|
76
|
+
409: {
|
|
77
|
+
error: {
|
|
78
|
+
code: string;
|
|
79
|
+
message: string;
|
|
80
|
+
details?: {
|
|
81
|
+
[key: string]: unknown;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Internal error
|
|
87
|
+
*/
|
|
88
|
+
500: {
|
|
89
|
+
error: {
|
|
90
|
+
code: string;
|
|
91
|
+
message: string;
|
|
92
|
+
details?: {
|
|
93
|
+
[key: string]: unknown;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
export type GetByOrgApiKeysError = GetByOrgApiKeysErrors[keyof GetByOrgApiKeysErrors];
|
|
99
|
+
export type GetByOrgApiKeysResponses = {
|
|
100
|
+
/**
|
|
101
|
+
* API keys list
|
|
102
|
+
*/
|
|
103
|
+
200: {
|
|
104
|
+
api_keys: Array<{
|
|
105
|
+
id: string;
|
|
106
|
+
name: string | null;
|
|
107
|
+
scopes: Array<string>;
|
|
108
|
+
last_used_at: string | null;
|
|
109
|
+
expires_at: string | null;
|
|
110
|
+
revoked_at: string | null;
|
|
111
|
+
created_at: string;
|
|
112
|
+
}>;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
export type GetByOrgApiKeysResponse = GetByOrgApiKeysResponses[keyof GetByOrgApiKeysResponses];
|
|
116
|
+
export type PostByOrgApiKeysData = {
|
|
117
|
+
body: {
|
|
118
|
+
name?: string;
|
|
119
|
+
scopes?: Array<'git:read' | 'git:write' | 'repo:read' | 'repo:create' | 'repo:delete' | 'webhook:read' | 'webhook:write' | 'admin'>;
|
|
120
|
+
};
|
|
121
|
+
path: {
|
|
122
|
+
org: string;
|
|
123
|
+
};
|
|
124
|
+
query?: never;
|
|
125
|
+
url: '/{org}/api-keys';
|
|
126
|
+
};
|
|
127
|
+
export type PostByOrgApiKeysErrors = {
|
|
128
|
+
/**
|
|
129
|
+
* Invalid request
|
|
130
|
+
*/
|
|
131
|
+
400: {
|
|
132
|
+
error: {
|
|
133
|
+
code: string;
|
|
134
|
+
message: string;
|
|
135
|
+
details?: {
|
|
136
|
+
[key: string]: unknown;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Unauthorized
|
|
142
|
+
*/
|
|
143
|
+
401: {
|
|
144
|
+
error: {
|
|
145
|
+
code: string;
|
|
146
|
+
message: string;
|
|
147
|
+
details?: {
|
|
148
|
+
[key: string]: unknown;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Forbidden
|
|
154
|
+
*/
|
|
155
|
+
403: {
|
|
156
|
+
error: {
|
|
157
|
+
code: string;
|
|
158
|
+
message: string;
|
|
159
|
+
details?: {
|
|
160
|
+
[key: string]: unknown;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* Not found
|
|
166
|
+
*/
|
|
167
|
+
404: {
|
|
168
|
+
error: {
|
|
169
|
+
code: string;
|
|
170
|
+
message: string;
|
|
171
|
+
details?: {
|
|
172
|
+
[key: string]: unknown;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Not acceptable
|
|
178
|
+
*/
|
|
179
|
+
406: {
|
|
180
|
+
error: {
|
|
181
|
+
code: string;
|
|
182
|
+
message: string;
|
|
183
|
+
details?: {
|
|
184
|
+
[key: string]: unknown;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Conflict
|
|
190
|
+
*/
|
|
191
|
+
409: {
|
|
192
|
+
error: {
|
|
193
|
+
code: string;
|
|
194
|
+
message: string;
|
|
195
|
+
details?: {
|
|
196
|
+
[key: string]: unknown;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
* Internal error
|
|
202
|
+
*/
|
|
203
|
+
500: {
|
|
204
|
+
error: {
|
|
205
|
+
code: string;
|
|
206
|
+
message: string;
|
|
207
|
+
details?: {
|
|
208
|
+
[key: string]: unknown;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
export type PostByOrgApiKeysError = PostByOrgApiKeysErrors[keyof PostByOrgApiKeysErrors];
|
|
214
|
+
export type PostByOrgApiKeysResponses = {
|
|
215
|
+
/**
|
|
216
|
+
* API key created
|
|
217
|
+
*/
|
|
218
|
+
201: {
|
|
219
|
+
id: string;
|
|
220
|
+
key: string;
|
|
221
|
+
name: string | null;
|
|
222
|
+
scopes: Array<string>;
|
|
223
|
+
created_at: string;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
export type PostByOrgApiKeysResponse = PostByOrgApiKeysResponses[keyof PostByOrgApiKeysResponses];
|
|
227
|
+
export type DeleteByOrgApiKeysByIdData = {
|
|
228
|
+
body?: never;
|
|
229
|
+
path: {
|
|
230
|
+
id: string;
|
|
231
|
+
org: string;
|
|
232
|
+
};
|
|
233
|
+
query?: never;
|
|
234
|
+
url: '/{org}/api-keys/{id}';
|
|
235
|
+
};
|
|
236
|
+
export type DeleteByOrgApiKeysByIdErrors = {
|
|
237
|
+
/**
|
|
238
|
+
* Invalid request
|
|
239
|
+
*/
|
|
240
|
+
400: {
|
|
241
|
+
error: {
|
|
242
|
+
code: string;
|
|
243
|
+
message: string;
|
|
244
|
+
details?: {
|
|
245
|
+
[key: string]: unknown;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
/**
|
|
250
|
+
* Unauthorized
|
|
251
|
+
*/
|
|
252
|
+
401: {
|
|
253
|
+
error: {
|
|
254
|
+
code: string;
|
|
255
|
+
message: string;
|
|
256
|
+
details?: {
|
|
257
|
+
[key: string]: unknown;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
/**
|
|
262
|
+
* Forbidden
|
|
263
|
+
*/
|
|
264
|
+
403: {
|
|
265
|
+
error: {
|
|
266
|
+
code: string;
|
|
267
|
+
message: string;
|
|
268
|
+
details?: {
|
|
269
|
+
[key: string]: unknown;
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* Not found
|
|
275
|
+
*/
|
|
276
|
+
404: {
|
|
277
|
+
error: {
|
|
278
|
+
code: string;
|
|
279
|
+
message: string;
|
|
280
|
+
details?: {
|
|
281
|
+
[key: string]: unknown;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
* Not acceptable
|
|
287
|
+
*/
|
|
288
|
+
406: {
|
|
289
|
+
error: {
|
|
290
|
+
code: string;
|
|
291
|
+
message: string;
|
|
292
|
+
details?: {
|
|
293
|
+
[key: string]: unknown;
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
/**
|
|
298
|
+
* Conflict
|
|
299
|
+
*/
|
|
300
|
+
409: {
|
|
301
|
+
error: {
|
|
302
|
+
code: string;
|
|
303
|
+
message: string;
|
|
304
|
+
details?: {
|
|
305
|
+
[key: string]: unknown;
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
/**
|
|
310
|
+
* Internal error
|
|
311
|
+
*/
|
|
312
|
+
500: {
|
|
313
|
+
error: {
|
|
314
|
+
code: string;
|
|
315
|
+
message: string;
|
|
316
|
+
details?: {
|
|
317
|
+
[key: string]: unknown;
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
export type DeleteByOrgApiKeysByIdError = DeleteByOrgApiKeysByIdErrors[keyof DeleteByOrgApiKeysByIdErrors];
|
|
323
|
+
export type DeleteByOrgApiKeysByIdResponses = {
|
|
324
|
+
/**
|
|
325
|
+
* API key revoked
|
|
326
|
+
*/
|
|
327
|
+
200: {
|
|
328
|
+
success: true;
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
export type DeleteByOrgApiKeysByIdResponse = DeleteByOrgApiKeysByIdResponses[keyof DeleteByOrgApiKeysByIdResponses];
|
|
332
|
+
export type GetByOrgReposData = {
|
|
333
|
+
body?: never;
|
|
334
|
+
path: {
|
|
335
|
+
org: string;
|
|
336
|
+
};
|
|
337
|
+
query?: {
|
|
338
|
+
cursor?: string;
|
|
339
|
+
limit?: number;
|
|
340
|
+
};
|
|
341
|
+
url: '/{org}/repos';
|
|
342
|
+
};
|
|
343
|
+
export type GetByOrgReposErrors = {
|
|
344
|
+
/**
|
|
345
|
+
* Invalid request
|
|
346
|
+
*/
|
|
347
|
+
400: {
|
|
348
|
+
error: {
|
|
349
|
+
code: string;
|
|
350
|
+
message: string;
|
|
351
|
+
details?: {
|
|
352
|
+
[key: string]: unknown;
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
/**
|
|
357
|
+
* Unauthorized
|
|
358
|
+
*/
|
|
359
|
+
401: {
|
|
360
|
+
error: {
|
|
361
|
+
code: string;
|
|
362
|
+
message: string;
|
|
363
|
+
details?: {
|
|
364
|
+
[key: string]: unknown;
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
/**
|
|
369
|
+
* Forbidden
|
|
370
|
+
*/
|
|
371
|
+
403: {
|
|
372
|
+
error: {
|
|
373
|
+
code: string;
|
|
374
|
+
message: string;
|
|
375
|
+
details?: {
|
|
376
|
+
[key: string]: unknown;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
/**
|
|
381
|
+
* Not found
|
|
382
|
+
*/
|
|
383
|
+
404: {
|
|
384
|
+
error: {
|
|
385
|
+
code: string;
|
|
386
|
+
message: string;
|
|
387
|
+
details?: {
|
|
388
|
+
[key: string]: unknown;
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
/**
|
|
393
|
+
* Not acceptable
|
|
394
|
+
*/
|
|
395
|
+
406: {
|
|
396
|
+
error: {
|
|
397
|
+
code: string;
|
|
398
|
+
message: string;
|
|
399
|
+
details?: {
|
|
400
|
+
[key: string]: unknown;
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
/**
|
|
405
|
+
* Conflict
|
|
406
|
+
*/
|
|
407
|
+
409: {
|
|
408
|
+
error: {
|
|
409
|
+
code: string;
|
|
410
|
+
message: string;
|
|
411
|
+
details?: {
|
|
412
|
+
[key: string]: unknown;
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
/**
|
|
417
|
+
* Internal error
|
|
418
|
+
*/
|
|
419
|
+
500: {
|
|
420
|
+
error: {
|
|
421
|
+
code: string;
|
|
422
|
+
message: string;
|
|
423
|
+
details?: {
|
|
424
|
+
[key: string]: unknown;
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
export type GetByOrgReposError = GetByOrgReposErrors[keyof GetByOrgReposErrors];
|
|
430
|
+
export type GetByOrgReposResponses = {
|
|
431
|
+
/**
|
|
432
|
+
* Repository list
|
|
433
|
+
*/
|
|
434
|
+
200: {
|
|
435
|
+
next_cursor: string | null;
|
|
436
|
+
has_more: boolean;
|
|
437
|
+
repos: Array<{
|
|
438
|
+
id: string;
|
|
439
|
+
org: string;
|
|
440
|
+
name: string;
|
|
441
|
+
default_branch: string;
|
|
442
|
+
head_oid: string | null;
|
|
443
|
+
size_bytes: number;
|
|
444
|
+
created_at: string;
|
|
445
|
+
/**
|
|
446
|
+
* Optionally add an upstream repository. You can configure automatic syncing from the upstream repository.
|
|
447
|
+
*/
|
|
448
|
+
upstream: {
|
|
449
|
+
/**
|
|
450
|
+
* URL of the upstream repository
|
|
451
|
+
*/
|
|
452
|
+
uri: string;
|
|
453
|
+
/**
|
|
454
|
+
* Automatic sync configuration, if enabled
|
|
455
|
+
*/
|
|
456
|
+
autosync: {
|
|
457
|
+
type: 'poll';
|
|
458
|
+
/**
|
|
459
|
+
* Polling period in seconds
|
|
460
|
+
*/
|
|
461
|
+
period: number;
|
|
462
|
+
/**
|
|
463
|
+
* Conflict resolution strategy. "none" means sync will fail on conflicts.
|
|
464
|
+
*/
|
|
465
|
+
resolution_strategy: 'none';
|
|
466
|
+
} | null;
|
|
467
|
+
/**
|
|
468
|
+
* Timestamp of the last sync attempt
|
|
469
|
+
*/
|
|
470
|
+
last_sync_attempt: string | null;
|
|
471
|
+
/**
|
|
472
|
+
* Timestamp of the last successful sync
|
|
473
|
+
*/
|
|
474
|
+
last_sync_success: string | null;
|
|
475
|
+
/**
|
|
476
|
+
* Error message from the last failed sync attempt
|
|
477
|
+
*/
|
|
478
|
+
last_sync_error: string | null;
|
|
479
|
+
/**
|
|
480
|
+
* Whether this upstream has an authentication credential configured
|
|
481
|
+
*/
|
|
482
|
+
has_credential: boolean;
|
|
483
|
+
/**
|
|
484
|
+
* The host the credential is scoped to (e.g. "github.com")
|
|
485
|
+
*/
|
|
486
|
+
credential_host: string | null;
|
|
487
|
+
} | null;
|
|
488
|
+
}>;
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
export type GetByOrgReposResponse = GetByOrgReposResponses[keyof GetByOrgReposResponses];
|
|
492
|
+
export type PostByOrgReposData = {
|
|
493
|
+
body: {
|
|
494
|
+
name: string;
|
|
495
|
+
default_branch?: string;
|
|
496
|
+
upstream?: {
|
|
497
|
+
/**
|
|
498
|
+
* URL of the upstream repository
|
|
499
|
+
*/
|
|
500
|
+
uri: string;
|
|
501
|
+
/**
|
|
502
|
+
* Optionally enable automatic sync from the upstream repository
|
|
503
|
+
*/
|
|
504
|
+
autosync?: {
|
|
505
|
+
type: 'poll';
|
|
506
|
+
/**
|
|
507
|
+
* Polling period in seconds (60s to 24.8d)
|
|
508
|
+
*/
|
|
509
|
+
period: number;
|
|
510
|
+
/**
|
|
511
|
+
* Conflict resolution strategy. "none" means sync will fail on conflicts.
|
|
512
|
+
*/
|
|
513
|
+
resolution_strategy?: 'none';
|
|
514
|
+
};
|
|
515
|
+
/**
|
|
516
|
+
* Personal access token for private upstream repos. Set to null to unlink credential.
|
|
517
|
+
*/
|
|
518
|
+
token?: string | null;
|
|
519
|
+
/**
|
|
520
|
+
* Username for git credential auth. Defaults to "x-access-token". Use actual username for Bitbucket app passwords.
|
|
521
|
+
*/
|
|
522
|
+
token_username?: string;
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
path: {
|
|
526
|
+
org: string;
|
|
527
|
+
};
|
|
528
|
+
query?: never;
|
|
529
|
+
url: '/{org}/repos';
|
|
530
|
+
};
|
|
531
|
+
export type PostByOrgReposErrors = {
|
|
532
|
+
/**
|
|
533
|
+
* Invalid request
|
|
534
|
+
*/
|
|
535
|
+
400: {
|
|
536
|
+
error: {
|
|
537
|
+
code: string;
|
|
538
|
+
message: string;
|
|
539
|
+
details?: {
|
|
540
|
+
[key: string]: unknown;
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
/**
|
|
545
|
+
* Unauthorized
|
|
546
|
+
*/
|
|
547
|
+
401: {
|
|
548
|
+
error: {
|
|
549
|
+
code: string;
|
|
550
|
+
message: string;
|
|
551
|
+
details?: {
|
|
552
|
+
[key: string]: unknown;
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
};
|
|
556
|
+
/**
|
|
557
|
+
* Forbidden
|
|
558
|
+
*/
|
|
559
|
+
403: {
|
|
560
|
+
error: {
|
|
561
|
+
code: string;
|
|
562
|
+
message: string;
|
|
563
|
+
details?: {
|
|
564
|
+
[key: string]: unknown;
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
};
|
|
568
|
+
/**
|
|
569
|
+
* Not found
|
|
570
|
+
*/
|
|
571
|
+
404: {
|
|
572
|
+
error: {
|
|
573
|
+
code: string;
|
|
574
|
+
message: string;
|
|
575
|
+
details?: {
|
|
576
|
+
[key: string]: unknown;
|
|
577
|
+
};
|
|
578
|
+
};
|
|
579
|
+
};
|
|
580
|
+
/**
|
|
581
|
+
* Not acceptable
|
|
582
|
+
*/
|
|
583
|
+
406: {
|
|
584
|
+
error: {
|
|
585
|
+
code: string;
|
|
586
|
+
message: string;
|
|
587
|
+
details?: {
|
|
588
|
+
[key: string]: unknown;
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
/**
|
|
593
|
+
* Conflict
|
|
594
|
+
*/
|
|
595
|
+
409: {
|
|
596
|
+
error: {
|
|
597
|
+
code: string;
|
|
598
|
+
message: string;
|
|
599
|
+
details?: {
|
|
600
|
+
[key: string]: unknown;
|
|
601
|
+
};
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
/**
|
|
605
|
+
* Internal error
|
|
606
|
+
*/
|
|
607
|
+
500: {
|
|
608
|
+
error: {
|
|
609
|
+
code: string;
|
|
610
|
+
message: string;
|
|
611
|
+
details?: {
|
|
612
|
+
[key: string]: unknown;
|
|
613
|
+
};
|
|
614
|
+
};
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
export type PostByOrgReposError = PostByOrgReposErrors[keyof PostByOrgReposErrors];
|
|
618
|
+
export type PostByOrgReposResponses = {
|
|
619
|
+
/**
|
|
620
|
+
* Repository created
|
|
621
|
+
*/
|
|
622
|
+
201: {
|
|
623
|
+
id: string;
|
|
624
|
+
org: string;
|
|
625
|
+
name: string;
|
|
626
|
+
default_branch: string;
|
|
627
|
+
head_oid: string | null;
|
|
628
|
+
size_bytes: number;
|
|
629
|
+
created_at: string;
|
|
630
|
+
/**
|
|
631
|
+
* Optionally add an upstream repository. You can configure automatic syncing from the upstream repository.
|
|
632
|
+
*/
|
|
633
|
+
upstream: {
|
|
634
|
+
/**
|
|
635
|
+
* URL of the upstream repository
|
|
636
|
+
*/
|
|
637
|
+
uri: string;
|
|
638
|
+
/**
|
|
639
|
+
* Automatic sync configuration, if enabled
|
|
640
|
+
*/
|
|
641
|
+
autosync: {
|
|
642
|
+
type: 'poll';
|
|
643
|
+
/**
|
|
644
|
+
* Polling period in seconds
|
|
645
|
+
*/
|
|
646
|
+
period: number;
|
|
647
|
+
/**
|
|
648
|
+
* Conflict resolution strategy. "none" means sync will fail on conflicts.
|
|
649
|
+
*/
|
|
650
|
+
resolution_strategy: 'none';
|
|
651
|
+
} | null;
|
|
652
|
+
/**
|
|
653
|
+
* Timestamp of the last sync attempt
|
|
654
|
+
*/
|
|
655
|
+
last_sync_attempt: string | null;
|
|
656
|
+
/**
|
|
657
|
+
* Timestamp of the last successful sync
|
|
658
|
+
*/
|
|
659
|
+
last_sync_success: string | null;
|
|
660
|
+
/**
|
|
661
|
+
* Error message from the last failed sync attempt
|
|
662
|
+
*/
|
|
663
|
+
last_sync_error: string | null;
|
|
664
|
+
/**
|
|
665
|
+
* Whether this upstream has an authentication credential configured
|
|
666
|
+
*/
|
|
667
|
+
has_credential: boolean;
|
|
668
|
+
/**
|
|
669
|
+
* The host the credential is scoped to (e.g. "github.com")
|
|
670
|
+
*/
|
|
671
|
+
credential_host: string | null;
|
|
672
|
+
} | null;
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
export type PostByOrgReposResponse = PostByOrgReposResponses[keyof PostByOrgReposResponses];
|
|
676
|
+
export type DeleteByOrgByRepoData = {
|
|
677
|
+
body?: never;
|
|
678
|
+
path: {
|
|
679
|
+
org: string;
|
|
680
|
+
repo: string;
|
|
681
|
+
};
|
|
682
|
+
query?: never;
|
|
683
|
+
url: '/{org}/{repo}';
|
|
684
|
+
};
|
|
685
|
+
export type DeleteByOrgByRepoErrors = {
|
|
686
|
+
/**
|
|
687
|
+
* Invalid request
|
|
688
|
+
*/
|
|
689
|
+
400: {
|
|
690
|
+
error: {
|
|
691
|
+
code: string;
|
|
692
|
+
message: string;
|
|
693
|
+
details?: {
|
|
694
|
+
[key: string]: unknown;
|
|
695
|
+
};
|
|
696
|
+
};
|
|
697
|
+
};
|
|
698
|
+
/**
|
|
699
|
+
* Unauthorized
|
|
700
|
+
*/
|
|
701
|
+
401: {
|
|
702
|
+
error: {
|
|
703
|
+
code: string;
|
|
704
|
+
message: string;
|
|
705
|
+
details?: {
|
|
706
|
+
[key: string]: unknown;
|
|
707
|
+
};
|
|
708
|
+
};
|
|
709
|
+
};
|
|
710
|
+
/**
|
|
711
|
+
* Forbidden
|
|
712
|
+
*/
|
|
713
|
+
403: {
|
|
714
|
+
error: {
|
|
715
|
+
code: string;
|
|
716
|
+
message: string;
|
|
717
|
+
details?: {
|
|
718
|
+
[key: string]: unknown;
|
|
719
|
+
};
|
|
720
|
+
};
|
|
721
|
+
};
|
|
722
|
+
/**
|
|
723
|
+
* Not found
|
|
724
|
+
*/
|
|
725
|
+
404: {
|
|
726
|
+
error: {
|
|
727
|
+
code: string;
|
|
728
|
+
message: string;
|
|
729
|
+
details?: {
|
|
730
|
+
[key: string]: unknown;
|
|
731
|
+
};
|
|
732
|
+
};
|
|
733
|
+
};
|
|
734
|
+
/**
|
|
735
|
+
* Not acceptable
|
|
736
|
+
*/
|
|
737
|
+
406: {
|
|
738
|
+
error: {
|
|
739
|
+
code: string;
|
|
740
|
+
message: string;
|
|
741
|
+
details?: {
|
|
742
|
+
[key: string]: unknown;
|
|
743
|
+
};
|
|
744
|
+
};
|
|
745
|
+
};
|
|
746
|
+
/**
|
|
747
|
+
* Conflict
|
|
748
|
+
*/
|
|
749
|
+
409: {
|
|
750
|
+
error: {
|
|
751
|
+
code: string;
|
|
752
|
+
message: string;
|
|
753
|
+
details?: {
|
|
754
|
+
[key: string]: unknown;
|
|
755
|
+
};
|
|
756
|
+
};
|
|
757
|
+
};
|
|
758
|
+
/**
|
|
759
|
+
* Internal error
|
|
760
|
+
*/
|
|
761
|
+
500: {
|
|
762
|
+
error: {
|
|
763
|
+
code: string;
|
|
764
|
+
message: string;
|
|
765
|
+
details?: {
|
|
766
|
+
[key: string]: unknown;
|
|
767
|
+
};
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
};
|
|
771
|
+
export type DeleteByOrgByRepoError = DeleteByOrgByRepoErrors[keyof DeleteByOrgByRepoErrors];
|
|
772
|
+
export type DeleteByOrgByRepoResponses = {
|
|
773
|
+
/**
|
|
774
|
+
* Repository deleted
|
|
775
|
+
*/
|
|
776
|
+
200: {
|
|
777
|
+
success: true;
|
|
778
|
+
};
|
|
779
|
+
};
|
|
780
|
+
export type DeleteByOrgByRepoResponse = DeleteByOrgByRepoResponses[keyof DeleteByOrgByRepoResponses];
|
|
781
|
+
export type GetByOrgByRepoData = {
|
|
782
|
+
body?: never;
|
|
783
|
+
path: {
|
|
784
|
+
org: string;
|
|
785
|
+
repo: string;
|
|
786
|
+
};
|
|
787
|
+
query?: never;
|
|
788
|
+
url: '/{org}/{repo}';
|
|
789
|
+
};
|
|
790
|
+
export type GetByOrgByRepoErrors = {
|
|
791
|
+
/**
|
|
792
|
+
* Invalid request
|
|
793
|
+
*/
|
|
794
|
+
400: {
|
|
795
|
+
error: {
|
|
796
|
+
code: string;
|
|
797
|
+
message: string;
|
|
798
|
+
details?: {
|
|
799
|
+
[key: string]: unknown;
|
|
800
|
+
};
|
|
801
|
+
};
|
|
802
|
+
};
|
|
803
|
+
/**
|
|
804
|
+
* Unauthorized
|
|
805
|
+
*/
|
|
806
|
+
401: {
|
|
807
|
+
error: {
|
|
808
|
+
code: string;
|
|
809
|
+
message: string;
|
|
810
|
+
details?: {
|
|
811
|
+
[key: string]: unknown;
|
|
812
|
+
};
|
|
813
|
+
};
|
|
814
|
+
};
|
|
815
|
+
/**
|
|
816
|
+
* Forbidden
|
|
817
|
+
*/
|
|
818
|
+
403: {
|
|
819
|
+
error: {
|
|
820
|
+
code: string;
|
|
821
|
+
message: string;
|
|
822
|
+
details?: {
|
|
823
|
+
[key: string]: unknown;
|
|
824
|
+
};
|
|
825
|
+
};
|
|
826
|
+
};
|
|
827
|
+
/**
|
|
828
|
+
* Not found
|
|
829
|
+
*/
|
|
830
|
+
404: {
|
|
831
|
+
error: {
|
|
832
|
+
code: string;
|
|
833
|
+
message: string;
|
|
834
|
+
details?: {
|
|
835
|
+
[key: string]: unknown;
|
|
836
|
+
};
|
|
837
|
+
};
|
|
838
|
+
};
|
|
839
|
+
/**
|
|
840
|
+
* Not acceptable
|
|
841
|
+
*/
|
|
842
|
+
406: {
|
|
843
|
+
error: {
|
|
844
|
+
code: string;
|
|
845
|
+
message: string;
|
|
846
|
+
details?: {
|
|
847
|
+
[key: string]: unknown;
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
};
|
|
851
|
+
/**
|
|
852
|
+
* Conflict
|
|
853
|
+
*/
|
|
854
|
+
409: {
|
|
855
|
+
error: {
|
|
856
|
+
code: string;
|
|
857
|
+
message: string;
|
|
858
|
+
details?: {
|
|
859
|
+
[key: string]: unknown;
|
|
860
|
+
};
|
|
861
|
+
};
|
|
862
|
+
};
|
|
863
|
+
/**
|
|
864
|
+
* Internal error
|
|
865
|
+
*/
|
|
866
|
+
500: {
|
|
867
|
+
error: {
|
|
868
|
+
code: string;
|
|
869
|
+
message: string;
|
|
870
|
+
details?: {
|
|
871
|
+
[key: string]: unknown;
|
|
872
|
+
};
|
|
873
|
+
};
|
|
874
|
+
};
|
|
875
|
+
};
|
|
876
|
+
export type GetByOrgByRepoError = GetByOrgByRepoErrors[keyof GetByOrgByRepoErrors];
|
|
877
|
+
export type GetByOrgByRepoResponses = {
|
|
878
|
+
/**
|
|
879
|
+
* Repository
|
|
880
|
+
*/
|
|
881
|
+
200: {
|
|
882
|
+
id: string;
|
|
883
|
+
org: string;
|
|
884
|
+
name: string;
|
|
885
|
+
default_branch: string;
|
|
886
|
+
head_oid: string | null;
|
|
887
|
+
size_bytes: number;
|
|
888
|
+
created_at: string;
|
|
889
|
+
/**
|
|
890
|
+
* Optionally add an upstream repository. You can configure automatic syncing from the upstream repository.
|
|
891
|
+
*/
|
|
892
|
+
upstream: {
|
|
893
|
+
/**
|
|
894
|
+
* URL of the upstream repository
|
|
895
|
+
*/
|
|
896
|
+
uri: string;
|
|
897
|
+
/**
|
|
898
|
+
* Automatic sync configuration, if enabled
|
|
899
|
+
*/
|
|
900
|
+
autosync: {
|
|
901
|
+
type: 'poll';
|
|
902
|
+
/**
|
|
903
|
+
* Polling period in seconds
|
|
904
|
+
*/
|
|
905
|
+
period: number;
|
|
906
|
+
/**
|
|
907
|
+
* Conflict resolution strategy. "none" means sync will fail on conflicts.
|
|
908
|
+
*/
|
|
909
|
+
resolution_strategy: 'none';
|
|
910
|
+
} | null;
|
|
911
|
+
/**
|
|
912
|
+
* Timestamp of the last sync attempt
|
|
913
|
+
*/
|
|
914
|
+
last_sync_attempt: string | null;
|
|
915
|
+
/**
|
|
916
|
+
* Timestamp of the last successful sync
|
|
917
|
+
*/
|
|
918
|
+
last_sync_success: string | null;
|
|
919
|
+
/**
|
|
920
|
+
* Error message from the last failed sync attempt
|
|
921
|
+
*/
|
|
922
|
+
last_sync_error: string | null;
|
|
923
|
+
/**
|
|
924
|
+
* Whether this upstream has an authentication credential configured
|
|
925
|
+
*/
|
|
926
|
+
has_credential: boolean;
|
|
927
|
+
/**
|
|
928
|
+
* The host the credential is scoped to (e.g. "github.com")
|
|
929
|
+
*/
|
|
930
|
+
credential_host: string | null;
|
|
931
|
+
} | null;
|
|
932
|
+
};
|
|
933
|
+
};
|
|
934
|
+
export type GetByOrgByRepoResponse = GetByOrgByRepoResponses[keyof GetByOrgByRepoResponses];
|
|
935
|
+
export type PatchByOrgByRepoData = {
|
|
936
|
+
body: {
|
|
937
|
+
name?: string;
|
|
938
|
+
default_branch?: string;
|
|
939
|
+
upstream?: {
|
|
940
|
+
/**
|
|
941
|
+
* URL of the upstream repository
|
|
942
|
+
*/
|
|
943
|
+
uri: string;
|
|
944
|
+
/**
|
|
945
|
+
* Optionally enable automatic sync from the upstream repository
|
|
946
|
+
*/
|
|
947
|
+
autosync?: {
|
|
948
|
+
type: 'poll';
|
|
949
|
+
/**
|
|
950
|
+
* Polling period in seconds (60s to 24.8d)
|
|
951
|
+
*/
|
|
952
|
+
period: number;
|
|
953
|
+
/**
|
|
954
|
+
* Conflict resolution strategy. "none" means sync will fail on conflicts.
|
|
955
|
+
*/
|
|
956
|
+
resolution_strategy?: 'none';
|
|
957
|
+
};
|
|
958
|
+
/**
|
|
959
|
+
* Personal access token for private upstream repos. Set to null to unlink credential.
|
|
960
|
+
*/
|
|
961
|
+
token?: string | null;
|
|
962
|
+
/**
|
|
963
|
+
* Username for git credential auth. Defaults to "x-access-token". Use actual username for Bitbucket app passwords.
|
|
964
|
+
*/
|
|
965
|
+
token_username?: string;
|
|
966
|
+
} | null;
|
|
967
|
+
};
|
|
968
|
+
path: {
|
|
969
|
+
org: string;
|
|
970
|
+
repo: string;
|
|
971
|
+
};
|
|
972
|
+
query?: never;
|
|
973
|
+
url: '/{org}/{repo}';
|
|
974
|
+
};
|
|
975
|
+
export type PatchByOrgByRepoErrors = {
|
|
976
|
+
/**
|
|
977
|
+
* Invalid request
|
|
978
|
+
*/
|
|
979
|
+
400: {
|
|
980
|
+
error: {
|
|
981
|
+
code: string;
|
|
982
|
+
message: string;
|
|
983
|
+
details?: {
|
|
984
|
+
[key: string]: unknown;
|
|
985
|
+
};
|
|
986
|
+
};
|
|
987
|
+
};
|
|
988
|
+
/**
|
|
989
|
+
* Unauthorized
|
|
990
|
+
*/
|
|
991
|
+
401: {
|
|
992
|
+
error: {
|
|
993
|
+
code: string;
|
|
994
|
+
message: string;
|
|
995
|
+
details?: {
|
|
996
|
+
[key: string]: unknown;
|
|
997
|
+
};
|
|
998
|
+
};
|
|
999
|
+
};
|
|
1000
|
+
/**
|
|
1001
|
+
* Forbidden
|
|
1002
|
+
*/
|
|
1003
|
+
403: {
|
|
1004
|
+
error: {
|
|
1005
|
+
code: string;
|
|
1006
|
+
message: string;
|
|
1007
|
+
details?: {
|
|
1008
|
+
[key: string]: unknown;
|
|
1009
|
+
};
|
|
1010
|
+
};
|
|
1011
|
+
};
|
|
1012
|
+
/**
|
|
1013
|
+
* Not found
|
|
1014
|
+
*/
|
|
1015
|
+
404: {
|
|
1016
|
+
error: {
|
|
1017
|
+
code: string;
|
|
1018
|
+
message: string;
|
|
1019
|
+
details?: {
|
|
1020
|
+
[key: string]: unknown;
|
|
1021
|
+
};
|
|
1022
|
+
};
|
|
1023
|
+
};
|
|
1024
|
+
/**
|
|
1025
|
+
* Not acceptable
|
|
1026
|
+
*/
|
|
1027
|
+
406: {
|
|
1028
|
+
error: {
|
|
1029
|
+
code: string;
|
|
1030
|
+
message: string;
|
|
1031
|
+
details?: {
|
|
1032
|
+
[key: string]: unknown;
|
|
1033
|
+
};
|
|
1034
|
+
};
|
|
1035
|
+
};
|
|
1036
|
+
/**
|
|
1037
|
+
* Conflict
|
|
1038
|
+
*/
|
|
1039
|
+
409: {
|
|
1040
|
+
error: {
|
|
1041
|
+
code: string;
|
|
1042
|
+
message: string;
|
|
1043
|
+
details?: {
|
|
1044
|
+
[key: string]: unknown;
|
|
1045
|
+
};
|
|
1046
|
+
};
|
|
1047
|
+
};
|
|
1048
|
+
/**
|
|
1049
|
+
* Internal error
|
|
1050
|
+
*/
|
|
1051
|
+
500: {
|
|
1052
|
+
error: {
|
|
1053
|
+
code: string;
|
|
1054
|
+
message: string;
|
|
1055
|
+
details?: {
|
|
1056
|
+
[key: string]: unknown;
|
|
1057
|
+
};
|
|
1058
|
+
};
|
|
1059
|
+
};
|
|
1060
|
+
};
|
|
1061
|
+
export type PatchByOrgByRepoError = PatchByOrgByRepoErrors[keyof PatchByOrgByRepoErrors];
|
|
1062
|
+
export type PatchByOrgByRepoResponses = {
|
|
1063
|
+
/**
|
|
1064
|
+
* Repository updated
|
|
1065
|
+
*/
|
|
1066
|
+
200: {
|
|
1067
|
+
id: string;
|
|
1068
|
+
org: string;
|
|
1069
|
+
name: string;
|
|
1070
|
+
default_branch: string;
|
|
1071
|
+
head_oid: string | null;
|
|
1072
|
+
size_bytes: number;
|
|
1073
|
+
created_at: string;
|
|
1074
|
+
/**
|
|
1075
|
+
* Optionally add an upstream repository. You can configure automatic syncing from the upstream repository.
|
|
1076
|
+
*/
|
|
1077
|
+
upstream: {
|
|
1078
|
+
/**
|
|
1079
|
+
* URL of the upstream repository
|
|
1080
|
+
*/
|
|
1081
|
+
uri: string;
|
|
1082
|
+
/**
|
|
1083
|
+
* Automatic sync configuration, if enabled
|
|
1084
|
+
*/
|
|
1085
|
+
autosync: {
|
|
1086
|
+
type: 'poll';
|
|
1087
|
+
/**
|
|
1088
|
+
* Polling period in seconds
|
|
1089
|
+
*/
|
|
1090
|
+
period: number;
|
|
1091
|
+
/**
|
|
1092
|
+
* Conflict resolution strategy. "none" means sync will fail on conflicts.
|
|
1093
|
+
*/
|
|
1094
|
+
resolution_strategy: 'none';
|
|
1095
|
+
} | null;
|
|
1096
|
+
/**
|
|
1097
|
+
* Timestamp of the last sync attempt
|
|
1098
|
+
*/
|
|
1099
|
+
last_sync_attempt: string | null;
|
|
1100
|
+
/**
|
|
1101
|
+
* Timestamp of the last successful sync
|
|
1102
|
+
*/
|
|
1103
|
+
last_sync_success: string | null;
|
|
1104
|
+
/**
|
|
1105
|
+
* Error message from the last failed sync attempt
|
|
1106
|
+
*/
|
|
1107
|
+
last_sync_error: string | null;
|
|
1108
|
+
/**
|
|
1109
|
+
* Whether this upstream has an authentication credential configured
|
|
1110
|
+
*/
|
|
1111
|
+
has_credential: boolean;
|
|
1112
|
+
/**
|
|
1113
|
+
* The host the credential is scoped to (e.g. "github.com")
|
|
1114
|
+
*/
|
|
1115
|
+
credential_host: string | null;
|
|
1116
|
+
} | null;
|
|
1117
|
+
};
|
|
1118
|
+
};
|
|
1119
|
+
export type PatchByOrgByRepoResponse = PatchByOrgByRepoResponses[keyof PatchByOrgByRepoResponses];
|
|
1120
|
+
export type GetByOrgByRepoContentData = {
|
|
1121
|
+
body?: never;
|
|
1122
|
+
path: {
|
|
1123
|
+
org: string;
|
|
1124
|
+
repo: string;
|
|
1125
|
+
};
|
|
1126
|
+
query?: {
|
|
1127
|
+
oid?: string;
|
|
1128
|
+
path?: string;
|
|
1129
|
+
depth?: number;
|
|
1130
|
+
};
|
|
1131
|
+
url: '/{org}/{repo}/content';
|
|
1132
|
+
};
|
|
1133
|
+
export type GetByOrgByRepoContentErrors = {
|
|
1134
|
+
/**
|
|
1135
|
+
* Invalid request
|
|
1136
|
+
*/
|
|
1137
|
+
400: {
|
|
1138
|
+
error: {
|
|
1139
|
+
code: string;
|
|
1140
|
+
message: string;
|
|
1141
|
+
details?: {
|
|
1142
|
+
[key: string]: unknown;
|
|
1143
|
+
};
|
|
1144
|
+
};
|
|
1145
|
+
};
|
|
1146
|
+
/**
|
|
1147
|
+
* Unauthorized
|
|
1148
|
+
*/
|
|
1149
|
+
401: {
|
|
1150
|
+
error: {
|
|
1151
|
+
code: string;
|
|
1152
|
+
message: string;
|
|
1153
|
+
details?: {
|
|
1154
|
+
[key: string]: unknown;
|
|
1155
|
+
};
|
|
1156
|
+
};
|
|
1157
|
+
};
|
|
1158
|
+
/**
|
|
1159
|
+
* Forbidden
|
|
1160
|
+
*/
|
|
1161
|
+
403: {
|
|
1162
|
+
error: {
|
|
1163
|
+
code: string;
|
|
1164
|
+
message: string;
|
|
1165
|
+
details?: {
|
|
1166
|
+
[key: string]: unknown;
|
|
1167
|
+
};
|
|
1168
|
+
};
|
|
1169
|
+
};
|
|
1170
|
+
/**
|
|
1171
|
+
* Not found
|
|
1172
|
+
*/
|
|
1173
|
+
404: {
|
|
1174
|
+
error: {
|
|
1175
|
+
code: string;
|
|
1176
|
+
message: string;
|
|
1177
|
+
details?: {
|
|
1178
|
+
[key: string]: unknown;
|
|
1179
|
+
};
|
|
1180
|
+
};
|
|
1181
|
+
};
|
|
1182
|
+
/**
|
|
1183
|
+
* Not acceptable
|
|
1184
|
+
*/
|
|
1185
|
+
406: {
|
|
1186
|
+
error: {
|
|
1187
|
+
code: string;
|
|
1188
|
+
message: string;
|
|
1189
|
+
details?: {
|
|
1190
|
+
[key: string]: unknown;
|
|
1191
|
+
};
|
|
1192
|
+
};
|
|
1193
|
+
};
|
|
1194
|
+
/**
|
|
1195
|
+
* Conflict
|
|
1196
|
+
*/
|
|
1197
|
+
409: {
|
|
1198
|
+
error: {
|
|
1199
|
+
code: string;
|
|
1200
|
+
message: string;
|
|
1201
|
+
details?: {
|
|
1202
|
+
[key: string]: unknown;
|
|
1203
|
+
};
|
|
1204
|
+
};
|
|
1205
|
+
};
|
|
1206
|
+
/**
|
|
1207
|
+
* Internal error
|
|
1208
|
+
*/
|
|
1209
|
+
500: {
|
|
1210
|
+
error: {
|
|
1211
|
+
code: string;
|
|
1212
|
+
message: string;
|
|
1213
|
+
details?: {
|
|
1214
|
+
[key: string]: unknown;
|
|
1215
|
+
};
|
|
1216
|
+
};
|
|
1217
|
+
};
|
|
1218
|
+
};
|
|
1219
|
+
export type GetByOrgByRepoContentError = GetByOrgByRepoContentErrors[keyof GetByOrgByRepoContentErrors];
|
|
1220
|
+
export type GetByOrgByRepoContentResponses = {
|
|
1221
|
+
/**
|
|
1222
|
+
* Content response
|
|
1223
|
+
*/
|
|
1224
|
+
200: {
|
|
1225
|
+
type: 'file';
|
|
1226
|
+
name: string;
|
|
1227
|
+
path: string;
|
|
1228
|
+
sha: string;
|
|
1229
|
+
size: number;
|
|
1230
|
+
encoding: 'base64';
|
|
1231
|
+
content: string;
|
|
1232
|
+
mode: number;
|
|
1233
|
+
} | {
|
|
1234
|
+
type: 'symlink';
|
|
1235
|
+
name: string;
|
|
1236
|
+
path: string;
|
|
1237
|
+
sha: string;
|
|
1238
|
+
size: number;
|
|
1239
|
+
encoding: 'base64';
|
|
1240
|
+
content: string;
|
|
1241
|
+
mode: number;
|
|
1242
|
+
} | {
|
|
1243
|
+
type: 'dir';
|
|
1244
|
+
name: string;
|
|
1245
|
+
path: string;
|
|
1246
|
+
sha: string;
|
|
1247
|
+
child_count: number;
|
|
1248
|
+
entries: Array<{
|
|
1249
|
+
type: 'file';
|
|
1250
|
+
name: string;
|
|
1251
|
+
path: string;
|
|
1252
|
+
sha: string;
|
|
1253
|
+
size: number;
|
|
1254
|
+
mode: number;
|
|
1255
|
+
} | {
|
|
1256
|
+
type: 'symlink';
|
|
1257
|
+
name: string;
|
|
1258
|
+
path: string;
|
|
1259
|
+
sha: string;
|
|
1260
|
+
size: number;
|
|
1261
|
+
mode: number;
|
|
1262
|
+
} | {
|
|
1263
|
+
type: 'dir';
|
|
1264
|
+
name: string;
|
|
1265
|
+
path: string;
|
|
1266
|
+
sha: string;
|
|
1267
|
+
}>;
|
|
1268
|
+
next_cursor: string | null;
|
|
1269
|
+
has_more: boolean;
|
|
1270
|
+
};
|
|
1271
|
+
};
|
|
1272
|
+
export type GetByOrgByRepoContentResponse = GetByOrgByRepoContentResponses[keyof GetByOrgByRepoContentResponses];
|
|
1273
|
+
export type GetByOrgByRepoBranchesData = {
|
|
1274
|
+
body?: never;
|
|
1275
|
+
path: {
|
|
1276
|
+
org: string;
|
|
1277
|
+
repo: string;
|
|
1278
|
+
};
|
|
1279
|
+
query?: {
|
|
1280
|
+
cursor?: string;
|
|
1281
|
+
limit?: number;
|
|
1282
|
+
};
|
|
1283
|
+
url: '/{org}/{repo}/branches';
|
|
1284
|
+
};
|
|
1285
|
+
export type GetByOrgByRepoBranchesErrors = {
|
|
1286
|
+
/**
|
|
1287
|
+
* Invalid request
|
|
1288
|
+
*/
|
|
1289
|
+
400: {
|
|
1290
|
+
error: {
|
|
1291
|
+
code: string;
|
|
1292
|
+
message: string;
|
|
1293
|
+
details?: {
|
|
1294
|
+
[key: string]: unknown;
|
|
1295
|
+
};
|
|
1296
|
+
};
|
|
1297
|
+
};
|
|
1298
|
+
/**
|
|
1299
|
+
* Unauthorized
|
|
1300
|
+
*/
|
|
1301
|
+
401: {
|
|
1302
|
+
error: {
|
|
1303
|
+
code: string;
|
|
1304
|
+
message: string;
|
|
1305
|
+
details?: {
|
|
1306
|
+
[key: string]: unknown;
|
|
1307
|
+
};
|
|
1308
|
+
};
|
|
1309
|
+
};
|
|
1310
|
+
/**
|
|
1311
|
+
* Forbidden
|
|
1312
|
+
*/
|
|
1313
|
+
403: {
|
|
1314
|
+
error: {
|
|
1315
|
+
code: string;
|
|
1316
|
+
message: string;
|
|
1317
|
+
details?: {
|
|
1318
|
+
[key: string]: unknown;
|
|
1319
|
+
};
|
|
1320
|
+
};
|
|
1321
|
+
};
|
|
1322
|
+
/**
|
|
1323
|
+
* Not found
|
|
1324
|
+
*/
|
|
1325
|
+
404: {
|
|
1326
|
+
error: {
|
|
1327
|
+
code: string;
|
|
1328
|
+
message: string;
|
|
1329
|
+
details?: {
|
|
1330
|
+
[key: string]: unknown;
|
|
1331
|
+
};
|
|
1332
|
+
};
|
|
1333
|
+
};
|
|
1334
|
+
/**
|
|
1335
|
+
* Not acceptable
|
|
1336
|
+
*/
|
|
1337
|
+
406: {
|
|
1338
|
+
error: {
|
|
1339
|
+
code: string;
|
|
1340
|
+
message: string;
|
|
1341
|
+
details?: {
|
|
1342
|
+
[key: string]: unknown;
|
|
1343
|
+
};
|
|
1344
|
+
};
|
|
1345
|
+
};
|
|
1346
|
+
/**
|
|
1347
|
+
* Conflict
|
|
1348
|
+
*/
|
|
1349
|
+
409: {
|
|
1350
|
+
error: {
|
|
1351
|
+
code: string;
|
|
1352
|
+
message: string;
|
|
1353
|
+
details?: {
|
|
1354
|
+
[key: string]: unknown;
|
|
1355
|
+
};
|
|
1356
|
+
};
|
|
1357
|
+
};
|
|
1358
|
+
/**
|
|
1359
|
+
* Internal error
|
|
1360
|
+
*/
|
|
1361
|
+
500: {
|
|
1362
|
+
error: {
|
|
1363
|
+
code: string;
|
|
1364
|
+
message: string;
|
|
1365
|
+
details?: {
|
|
1366
|
+
[key: string]: unknown;
|
|
1367
|
+
};
|
|
1368
|
+
};
|
|
1369
|
+
};
|
|
1370
|
+
};
|
|
1371
|
+
export type GetByOrgByRepoBranchesError = GetByOrgByRepoBranchesErrors[keyof GetByOrgByRepoBranchesErrors];
|
|
1372
|
+
export type GetByOrgByRepoBranchesResponses = {
|
|
1373
|
+
/**
|
|
1374
|
+
* Branch list
|
|
1375
|
+
*/
|
|
1376
|
+
200: {
|
|
1377
|
+
next_cursor: string | null;
|
|
1378
|
+
has_more: boolean;
|
|
1379
|
+
branches: Array<{
|
|
1380
|
+
name: string;
|
|
1381
|
+
head_oid: string;
|
|
1382
|
+
is_default: boolean;
|
|
1383
|
+
}>;
|
|
1384
|
+
};
|
|
1385
|
+
};
|
|
1386
|
+
export type GetByOrgByRepoBranchesResponse = GetByOrgByRepoBranchesResponses[keyof GetByOrgByRepoBranchesResponses];
|
|
1387
|
+
export type PostByOrgByRepoBranchesData = {
|
|
1388
|
+
body: {
|
|
1389
|
+
name: string;
|
|
1390
|
+
from: string;
|
|
1391
|
+
};
|
|
1392
|
+
path: {
|
|
1393
|
+
org: string;
|
|
1394
|
+
repo: string;
|
|
1395
|
+
};
|
|
1396
|
+
query?: never;
|
|
1397
|
+
url: '/{org}/{repo}/branches';
|
|
1398
|
+
};
|
|
1399
|
+
export type PostByOrgByRepoBranchesErrors = {
|
|
1400
|
+
/**
|
|
1401
|
+
* Invalid request
|
|
1402
|
+
*/
|
|
1403
|
+
400: {
|
|
1404
|
+
error: {
|
|
1405
|
+
code: string;
|
|
1406
|
+
message: string;
|
|
1407
|
+
details?: {
|
|
1408
|
+
[key: string]: unknown;
|
|
1409
|
+
};
|
|
1410
|
+
};
|
|
1411
|
+
};
|
|
1412
|
+
/**
|
|
1413
|
+
* Unauthorized
|
|
1414
|
+
*/
|
|
1415
|
+
401: {
|
|
1416
|
+
error: {
|
|
1417
|
+
code: string;
|
|
1418
|
+
message: string;
|
|
1419
|
+
details?: {
|
|
1420
|
+
[key: string]: unknown;
|
|
1421
|
+
};
|
|
1422
|
+
};
|
|
1423
|
+
};
|
|
1424
|
+
/**
|
|
1425
|
+
* Forbidden
|
|
1426
|
+
*/
|
|
1427
|
+
403: {
|
|
1428
|
+
error: {
|
|
1429
|
+
code: string;
|
|
1430
|
+
message: string;
|
|
1431
|
+
details?: {
|
|
1432
|
+
[key: string]: unknown;
|
|
1433
|
+
};
|
|
1434
|
+
};
|
|
1435
|
+
};
|
|
1436
|
+
/**
|
|
1437
|
+
* Not found
|
|
1438
|
+
*/
|
|
1439
|
+
404: {
|
|
1440
|
+
error: {
|
|
1441
|
+
code: string;
|
|
1442
|
+
message: string;
|
|
1443
|
+
details?: {
|
|
1444
|
+
[key: string]: unknown;
|
|
1445
|
+
};
|
|
1446
|
+
};
|
|
1447
|
+
};
|
|
1448
|
+
/**
|
|
1449
|
+
* Not acceptable
|
|
1450
|
+
*/
|
|
1451
|
+
406: {
|
|
1452
|
+
error: {
|
|
1453
|
+
code: string;
|
|
1454
|
+
message: string;
|
|
1455
|
+
details?: {
|
|
1456
|
+
[key: string]: unknown;
|
|
1457
|
+
};
|
|
1458
|
+
};
|
|
1459
|
+
};
|
|
1460
|
+
/**
|
|
1461
|
+
* Conflict
|
|
1462
|
+
*/
|
|
1463
|
+
409: {
|
|
1464
|
+
error: {
|
|
1465
|
+
code: string;
|
|
1466
|
+
message: string;
|
|
1467
|
+
details?: {
|
|
1468
|
+
[key: string]: unknown;
|
|
1469
|
+
};
|
|
1470
|
+
};
|
|
1471
|
+
};
|
|
1472
|
+
/**
|
|
1473
|
+
* Internal error
|
|
1474
|
+
*/
|
|
1475
|
+
500: {
|
|
1476
|
+
error: {
|
|
1477
|
+
code: string;
|
|
1478
|
+
message: string;
|
|
1479
|
+
details?: {
|
|
1480
|
+
[key: string]: unknown;
|
|
1481
|
+
};
|
|
1482
|
+
};
|
|
1483
|
+
};
|
|
1484
|
+
};
|
|
1485
|
+
export type PostByOrgByRepoBranchesError = PostByOrgByRepoBranchesErrors[keyof PostByOrgByRepoBranchesErrors];
|
|
1486
|
+
export type PostByOrgByRepoBranchesResponses = {
|
|
1487
|
+
/**
|
|
1488
|
+
* Branch created
|
|
1489
|
+
*/
|
|
1490
|
+
201: {
|
|
1491
|
+
name: string;
|
|
1492
|
+
head_oid: string;
|
|
1493
|
+
is_default: boolean;
|
|
1494
|
+
};
|
|
1495
|
+
};
|
|
1496
|
+
export type PostByOrgByRepoBranchesResponse = PostByOrgByRepoBranchesResponses[keyof PostByOrgByRepoBranchesResponses];
|
|
1497
|
+
export type DeleteByOrgByRepoBranchesByBranchData = {
|
|
1498
|
+
body?: never;
|
|
1499
|
+
path: {
|
|
1500
|
+
org: string;
|
|
1501
|
+
repo: string;
|
|
1502
|
+
branch: string;
|
|
1503
|
+
};
|
|
1504
|
+
query?: never;
|
|
1505
|
+
url: '/{org}/{repo}/branches/{branch}';
|
|
1506
|
+
};
|
|
1507
|
+
export type DeleteByOrgByRepoBranchesByBranchErrors = {
|
|
1508
|
+
/**
|
|
1509
|
+
* Invalid request
|
|
1510
|
+
*/
|
|
1511
|
+
400: {
|
|
1512
|
+
error: {
|
|
1513
|
+
code: string;
|
|
1514
|
+
message: string;
|
|
1515
|
+
details?: {
|
|
1516
|
+
[key: string]: unknown;
|
|
1517
|
+
};
|
|
1518
|
+
};
|
|
1519
|
+
};
|
|
1520
|
+
/**
|
|
1521
|
+
* Unauthorized
|
|
1522
|
+
*/
|
|
1523
|
+
401: {
|
|
1524
|
+
error: {
|
|
1525
|
+
code: string;
|
|
1526
|
+
message: string;
|
|
1527
|
+
details?: {
|
|
1528
|
+
[key: string]: unknown;
|
|
1529
|
+
};
|
|
1530
|
+
};
|
|
1531
|
+
};
|
|
1532
|
+
/**
|
|
1533
|
+
* Forbidden
|
|
1534
|
+
*/
|
|
1535
|
+
403: {
|
|
1536
|
+
error: {
|
|
1537
|
+
code: string;
|
|
1538
|
+
message: string;
|
|
1539
|
+
details?: {
|
|
1540
|
+
[key: string]: unknown;
|
|
1541
|
+
};
|
|
1542
|
+
};
|
|
1543
|
+
};
|
|
1544
|
+
/**
|
|
1545
|
+
* Not found
|
|
1546
|
+
*/
|
|
1547
|
+
404: {
|
|
1548
|
+
error: {
|
|
1549
|
+
code: string;
|
|
1550
|
+
message: string;
|
|
1551
|
+
details?: {
|
|
1552
|
+
[key: string]: unknown;
|
|
1553
|
+
};
|
|
1554
|
+
};
|
|
1555
|
+
};
|
|
1556
|
+
/**
|
|
1557
|
+
* Not acceptable
|
|
1558
|
+
*/
|
|
1559
|
+
406: {
|
|
1560
|
+
error: {
|
|
1561
|
+
code: string;
|
|
1562
|
+
message: string;
|
|
1563
|
+
details?: {
|
|
1564
|
+
[key: string]: unknown;
|
|
1565
|
+
};
|
|
1566
|
+
};
|
|
1567
|
+
};
|
|
1568
|
+
/**
|
|
1569
|
+
* Conflict
|
|
1570
|
+
*/
|
|
1571
|
+
409: {
|
|
1572
|
+
error: {
|
|
1573
|
+
code: string;
|
|
1574
|
+
message: string;
|
|
1575
|
+
details?: {
|
|
1576
|
+
[key: string]: unknown;
|
|
1577
|
+
};
|
|
1578
|
+
};
|
|
1579
|
+
};
|
|
1580
|
+
/**
|
|
1581
|
+
* Internal error
|
|
1582
|
+
*/
|
|
1583
|
+
500: {
|
|
1584
|
+
error: {
|
|
1585
|
+
code: string;
|
|
1586
|
+
message: string;
|
|
1587
|
+
details?: {
|
|
1588
|
+
[key: string]: unknown;
|
|
1589
|
+
};
|
|
1590
|
+
};
|
|
1591
|
+
};
|
|
1592
|
+
};
|
|
1593
|
+
export type DeleteByOrgByRepoBranchesByBranchError = DeleteByOrgByRepoBranchesByBranchErrors[keyof DeleteByOrgByRepoBranchesByBranchErrors];
|
|
1594
|
+
export type DeleteByOrgByRepoBranchesByBranchResponses = {
|
|
1595
|
+
/**
|
|
1596
|
+
* Branch deleted
|
|
1597
|
+
*/
|
|
1598
|
+
200: {
|
|
1599
|
+
success: true;
|
|
1600
|
+
};
|
|
1601
|
+
};
|
|
1602
|
+
export type DeleteByOrgByRepoBranchesByBranchResponse = DeleteByOrgByRepoBranchesByBranchResponses[keyof DeleteByOrgByRepoBranchesByBranchResponses];
|
|
1603
|
+
export type GetByOrgByRepoCommitsData = {
|
|
1604
|
+
body?: never;
|
|
1605
|
+
path: {
|
|
1606
|
+
org: string;
|
|
1607
|
+
repo: string;
|
|
1608
|
+
};
|
|
1609
|
+
query?: {
|
|
1610
|
+
cursor?: string;
|
|
1611
|
+
limit?: number;
|
|
1612
|
+
ref?: string;
|
|
1613
|
+
};
|
|
1614
|
+
url: '/{org}/{repo}/commits';
|
|
1615
|
+
};
|
|
1616
|
+
export type GetByOrgByRepoCommitsErrors = {
|
|
1617
|
+
/**
|
|
1618
|
+
* Invalid request
|
|
1619
|
+
*/
|
|
1620
|
+
400: {
|
|
1621
|
+
error: {
|
|
1622
|
+
code: string;
|
|
1623
|
+
message: string;
|
|
1624
|
+
details?: {
|
|
1625
|
+
[key: string]: unknown;
|
|
1626
|
+
};
|
|
1627
|
+
};
|
|
1628
|
+
};
|
|
1629
|
+
/**
|
|
1630
|
+
* Unauthorized
|
|
1631
|
+
*/
|
|
1632
|
+
401: {
|
|
1633
|
+
error: {
|
|
1634
|
+
code: string;
|
|
1635
|
+
message: string;
|
|
1636
|
+
details?: {
|
|
1637
|
+
[key: string]: unknown;
|
|
1638
|
+
};
|
|
1639
|
+
};
|
|
1640
|
+
};
|
|
1641
|
+
/**
|
|
1642
|
+
* Forbidden
|
|
1643
|
+
*/
|
|
1644
|
+
403: {
|
|
1645
|
+
error: {
|
|
1646
|
+
code: string;
|
|
1647
|
+
message: string;
|
|
1648
|
+
details?: {
|
|
1649
|
+
[key: string]: unknown;
|
|
1650
|
+
};
|
|
1651
|
+
};
|
|
1652
|
+
};
|
|
1653
|
+
/**
|
|
1654
|
+
* Not found
|
|
1655
|
+
*/
|
|
1656
|
+
404: {
|
|
1657
|
+
error: {
|
|
1658
|
+
code: string;
|
|
1659
|
+
message: string;
|
|
1660
|
+
details?: {
|
|
1661
|
+
[key: string]: unknown;
|
|
1662
|
+
};
|
|
1663
|
+
};
|
|
1664
|
+
};
|
|
1665
|
+
/**
|
|
1666
|
+
* Not acceptable
|
|
1667
|
+
*/
|
|
1668
|
+
406: {
|
|
1669
|
+
error: {
|
|
1670
|
+
code: string;
|
|
1671
|
+
message: string;
|
|
1672
|
+
details?: {
|
|
1673
|
+
[key: string]: unknown;
|
|
1674
|
+
};
|
|
1675
|
+
};
|
|
1676
|
+
};
|
|
1677
|
+
/**
|
|
1678
|
+
* Conflict
|
|
1679
|
+
*/
|
|
1680
|
+
409: {
|
|
1681
|
+
error: {
|
|
1682
|
+
code: string;
|
|
1683
|
+
message: string;
|
|
1684
|
+
details?: {
|
|
1685
|
+
[key: string]: unknown;
|
|
1686
|
+
};
|
|
1687
|
+
};
|
|
1688
|
+
};
|
|
1689
|
+
/**
|
|
1690
|
+
* Internal error
|
|
1691
|
+
*/
|
|
1692
|
+
500: {
|
|
1693
|
+
error: {
|
|
1694
|
+
code: string;
|
|
1695
|
+
message: string;
|
|
1696
|
+
details?: {
|
|
1697
|
+
[key: string]: unknown;
|
|
1698
|
+
};
|
|
1699
|
+
};
|
|
1700
|
+
};
|
|
1701
|
+
};
|
|
1702
|
+
export type GetByOrgByRepoCommitsError = GetByOrgByRepoCommitsErrors[keyof GetByOrgByRepoCommitsErrors];
|
|
1703
|
+
export type GetByOrgByRepoCommitsResponses = {
|
|
1704
|
+
/**
|
|
1705
|
+
* Commit list
|
|
1706
|
+
*/
|
|
1707
|
+
200: {
|
|
1708
|
+
next_cursor: string | null;
|
|
1709
|
+
has_more: boolean;
|
|
1710
|
+
commits: Array<{
|
|
1711
|
+
sha: string;
|
|
1712
|
+
message: string;
|
|
1713
|
+
author: {
|
|
1714
|
+
name: string;
|
|
1715
|
+
email: string;
|
|
1716
|
+
date?: string;
|
|
1717
|
+
};
|
|
1718
|
+
committer: {
|
|
1719
|
+
name: string;
|
|
1720
|
+
email: string;
|
|
1721
|
+
date?: string;
|
|
1722
|
+
};
|
|
1723
|
+
}>;
|
|
1724
|
+
};
|
|
1725
|
+
};
|
|
1726
|
+
export type GetByOrgByRepoCommitsResponse = GetByOrgByRepoCommitsResponses[keyof GetByOrgByRepoCommitsResponses];
|
|
1727
|
+
export type PostByOrgByRepoCommitsData = {
|
|
1728
|
+
body: {
|
|
1729
|
+
branch: string;
|
|
1730
|
+
message: string;
|
|
1731
|
+
author: {
|
|
1732
|
+
name: string;
|
|
1733
|
+
email: string;
|
|
1734
|
+
date?: string;
|
|
1735
|
+
};
|
|
1736
|
+
committer?: {
|
|
1737
|
+
name: string;
|
|
1738
|
+
email: string;
|
|
1739
|
+
date?: string;
|
|
1740
|
+
};
|
|
1741
|
+
base_sha?: string;
|
|
1742
|
+
files: Array<{
|
|
1743
|
+
path: string;
|
|
1744
|
+
content: string;
|
|
1745
|
+
encoding?: 'utf-8' | 'base64';
|
|
1746
|
+
action?: 'upsert';
|
|
1747
|
+
mode?: '100644' | '100755';
|
|
1748
|
+
} | {
|
|
1749
|
+
path: string;
|
|
1750
|
+
action: 'delete';
|
|
1751
|
+
}>;
|
|
1752
|
+
};
|
|
1753
|
+
path: {
|
|
1754
|
+
org: string;
|
|
1755
|
+
repo: string;
|
|
1756
|
+
};
|
|
1757
|
+
query?: never;
|
|
1758
|
+
url: '/{org}/{repo}/commits';
|
|
1759
|
+
};
|
|
1760
|
+
export type PostByOrgByRepoCommitsErrors = {
|
|
1761
|
+
/**
|
|
1762
|
+
* Invalid request
|
|
1763
|
+
*/
|
|
1764
|
+
400: {
|
|
1765
|
+
error: {
|
|
1766
|
+
code: string;
|
|
1767
|
+
message: string;
|
|
1768
|
+
details?: {
|
|
1769
|
+
[key: string]: unknown;
|
|
1770
|
+
};
|
|
1771
|
+
};
|
|
1772
|
+
};
|
|
1773
|
+
/**
|
|
1774
|
+
* Unauthorized
|
|
1775
|
+
*/
|
|
1776
|
+
401: {
|
|
1777
|
+
error: {
|
|
1778
|
+
code: string;
|
|
1779
|
+
message: string;
|
|
1780
|
+
details?: {
|
|
1781
|
+
[key: string]: unknown;
|
|
1782
|
+
};
|
|
1783
|
+
};
|
|
1784
|
+
};
|
|
1785
|
+
/**
|
|
1786
|
+
* Forbidden
|
|
1787
|
+
*/
|
|
1788
|
+
403: {
|
|
1789
|
+
error: {
|
|
1790
|
+
code: string;
|
|
1791
|
+
message: string;
|
|
1792
|
+
details?: {
|
|
1793
|
+
[key: string]: unknown;
|
|
1794
|
+
};
|
|
1795
|
+
};
|
|
1796
|
+
};
|
|
1797
|
+
/**
|
|
1798
|
+
* Not found
|
|
1799
|
+
*/
|
|
1800
|
+
404: {
|
|
1801
|
+
error: {
|
|
1802
|
+
code: string;
|
|
1803
|
+
message: string;
|
|
1804
|
+
details?: {
|
|
1805
|
+
[key: string]: unknown;
|
|
1806
|
+
};
|
|
1807
|
+
};
|
|
1808
|
+
};
|
|
1809
|
+
/**
|
|
1810
|
+
* Not acceptable
|
|
1811
|
+
*/
|
|
1812
|
+
406: {
|
|
1813
|
+
error: {
|
|
1814
|
+
code: string;
|
|
1815
|
+
message: string;
|
|
1816
|
+
details?: {
|
|
1817
|
+
[key: string]: unknown;
|
|
1818
|
+
};
|
|
1819
|
+
};
|
|
1820
|
+
};
|
|
1821
|
+
/**
|
|
1822
|
+
* Conflict
|
|
1823
|
+
*/
|
|
1824
|
+
409: {
|
|
1825
|
+
error: {
|
|
1826
|
+
code: string;
|
|
1827
|
+
message: string;
|
|
1828
|
+
details?: {
|
|
1829
|
+
[key: string]: unknown;
|
|
1830
|
+
};
|
|
1831
|
+
};
|
|
1832
|
+
};
|
|
1833
|
+
/**
|
|
1834
|
+
* Internal error
|
|
1835
|
+
*/
|
|
1836
|
+
500: {
|
|
1837
|
+
error: {
|
|
1838
|
+
code: string;
|
|
1839
|
+
message: string;
|
|
1840
|
+
details?: {
|
|
1841
|
+
[key: string]: unknown;
|
|
1842
|
+
};
|
|
1843
|
+
};
|
|
1844
|
+
};
|
|
1845
|
+
};
|
|
1846
|
+
export type PostByOrgByRepoCommitsError = PostByOrgByRepoCommitsErrors[keyof PostByOrgByRepoCommitsErrors];
|
|
1847
|
+
export type PostByOrgByRepoCommitsResponses = {
|
|
1848
|
+
/**
|
|
1849
|
+
* Commit created
|
|
1850
|
+
*/
|
|
1851
|
+
201: {
|
|
1852
|
+
sha: string;
|
|
1853
|
+
branch: string;
|
|
1854
|
+
message: string;
|
|
1855
|
+
};
|
|
1856
|
+
};
|
|
1857
|
+
export type PostByOrgByRepoCommitsResponse = PostByOrgByRepoCommitsResponses[keyof PostByOrgByRepoCommitsResponses];
|
|
1858
|
+
export type GetByOrgByRepoCommitsByShaData = {
|
|
1859
|
+
body?: never;
|
|
1860
|
+
path: {
|
|
1861
|
+
org: string;
|
|
1862
|
+
repo: string;
|
|
1863
|
+
sha: string;
|
|
1864
|
+
};
|
|
1865
|
+
query?: never;
|
|
1866
|
+
url: '/{org}/{repo}/commits/{sha}';
|
|
1867
|
+
};
|
|
1868
|
+
export type GetByOrgByRepoCommitsByShaErrors = {
|
|
1869
|
+
/**
|
|
1870
|
+
* Invalid request
|
|
1871
|
+
*/
|
|
1872
|
+
400: {
|
|
1873
|
+
error: {
|
|
1874
|
+
code: string;
|
|
1875
|
+
message: string;
|
|
1876
|
+
details?: {
|
|
1877
|
+
[key: string]: unknown;
|
|
1878
|
+
};
|
|
1879
|
+
};
|
|
1880
|
+
};
|
|
1881
|
+
/**
|
|
1882
|
+
* Unauthorized
|
|
1883
|
+
*/
|
|
1884
|
+
401: {
|
|
1885
|
+
error: {
|
|
1886
|
+
code: string;
|
|
1887
|
+
message: string;
|
|
1888
|
+
details?: {
|
|
1889
|
+
[key: string]: unknown;
|
|
1890
|
+
};
|
|
1891
|
+
};
|
|
1892
|
+
};
|
|
1893
|
+
/**
|
|
1894
|
+
* Forbidden
|
|
1895
|
+
*/
|
|
1896
|
+
403: {
|
|
1897
|
+
error: {
|
|
1898
|
+
code: string;
|
|
1899
|
+
message: string;
|
|
1900
|
+
details?: {
|
|
1901
|
+
[key: string]: unknown;
|
|
1902
|
+
};
|
|
1903
|
+
};
|
|
1904
|
+
};
|
|
1905
|
+
/**
|
|
1906
|
+
* Not found
|
|
1907
|
+
*/
|
|
1908
|
+
404: {
|
|
1909
|
+
error: {
|
|
1910
|
+
code: string;
|
|
1911
|
+
message: string;
|
|
1912
|
+
details?: {
|
|
1913
|
+
[key: string]: unknown;
|
|
1914
|
+
};
|
|
1915
|
+
};
|
|
1916
|
+
};
|
|
1917
|
+
/**
|
|
1918
|
+
* Not acceptable
|
|
1919
|
+
*/
|
|
1920
|
+
406: {
|
|
1921
|
+
error: {
|
|
1922
|
+
code: string;
|
|
1923
|
+
message: string;
|
|
1924
|
+
details?: {
|
|
1925
|
+
[key: string]: unknown;
|
|
1926
|
+
};
|
|
1927
|
+
};
|
|
1928
|
+
};
|
|
1929
|
+
/**
|
|
1930
|
+
* Conflict
|
|
1931
|
+
*/
|
|
1932
|
+
409: {
|
|
1933
|
+
error: {
|
|
1934
|
+
code: string;
|
|
1935
|
+
message: string;
|
|
1936
|
+
details?: {
|
|
1937
|
+
[key: string]: unknown;
|
|
1938
|
+
};
|
|
1939
|
+
};
|
|
1940
|
+
};
|
|
1941
|
+
/**
|
|
1942
|
+
* Internal error
|
|
1943
|
+
*/
|
|
1944
|
+
500: {
|
|
1945
|
+
error: {
|
|
1946
|
+
code: string;
|
|
1947
|
+
message: string;
|
|
1948
|
+
details?: {
|
|
1949
|
+
[key: string]: unknown;
|
|
1950
|
+
};
|
|
1951
|
+
};
|
|
1952
|
+
};
|
|
1953
|
+
};
|
|
1954
|
+
export type GetByOrgByRepoCommitsByShaError = GetByOrgByRepoCommitsByShaErrors[keyof GetByOrgByRepoCommitsByShaErrors];
|
|
1955
|
+
export type GetByOrgByRepoCommitsByShaResponses = {
|
|
1956
|
+
/**
|
|
1957
|
+
* Commit
|
|
1958
|
+
*/
|
|
1959
|
+
200: {
|
|
1960
|
+
sha: string;
|
|
1961
|
+
message: string;
|
|
1962
|
+
author: {
|
|
1963
|
+
name: string;
|
|
1964
|
+
email: string;
|
|
1965
|
+
date?: string;
|
|
1966
|
+
};
|
|
1967
|
+
committer: {
|
|
1968
|
+
name: string;
|
|
1969
|
+
email: string;
|
|
1970
|
+
date?: string;
|
|
1971
|
+
};
|
|
1972
|
+
};
|
|
1973
|
+
};
|
|
1974
|
+
export type GetByOrgByRepoCommitsByShaResponse = GetByOrgByRepoCommitsByShaResponses[keyof GetByOrgByRepoCommitsByShaResponses];
|
|
1975
|
+
export type GetByOrgByRepoDiffData = {
|
|
1976
|
+
body?: never;
|
|
1977
|
+
path: {
|
|
1978
|
+
org: string;
|
|
1979
|
+
repo: string;
|
|
1980
|
+
};
|
|
1981
|
+
query: {
|
|
1982
|
+
base: string;
|
|
1983
|
+
head: string;
|
|
1984
|
+
};
|
|
1985
|
+
url: '/{org}/{repo}/diff';
|
|
1986
|
+
};
|
|
1987
|
+
export type GetByOrgByRepoDiffErrors = {
|
|
1988
|
+
/**
|
|
1989
|
+
* Invalid request
|
|
1990
|
+
*/
|
|
1991
|
+
400: {
|
|
1992
|
+
error: {
|
|
1993
|
+
code: string;
|
|
1994
|
+
message: string;
|
|
1995
|
+
details?: {
|
|
1996
|
+
[key: string]: unknown;
|
|
1997
|
+
};
|
|
1998
|
+
};
|
|
1999
|
+
};
|
|
2000
|
+
/**
|
|
2001
|
+
* Unauthorized
|
|
2002
|
+
*/
|
|
2003
|
+
401: {
|
|
2004
|
+
error: {
|
|
2005
|
+
code: string;
|
|
2006
|
+
message: string;
|
|
2007
|
+
details?: {
|
|
2008
|
+
[key: string]: unknown;
|
|
2009
|
+
};
|
|
2010
|
+
};
|
|
2011
|
+
};
|
|
2012
|
+
/**
|
|
2013
|
+
* Forbidden
|
|
2014
|
+
*/
|
|
2015
|
+
403: {
|
|
2016
|
+
error: {
|
|
2017
|
+
code: string;
|
|
2018
|
+
message: string;
|
|
2019
|
+
details?: {
|
|
2020
|
+
[key: string]: unknown;
|
|
2021
|
+
};
|
|
2022
|
+
};
|
|
2023
|
+
};
|
|
2024
|
+
/**
|
|
2025
|
+
* Not found
|
|
2026
|
+
*/
|
|
2027
|
+
404: {
|
|
2028
|
+
error: {
|
|
2029
|
+
code: string;
|
|
2030
|
+
message: string;
|
|
2031
|
+
details?: {
|
|
2032
|
+
[key: string]: unknown;
|
|
2033
|
+
};
|
|
2034
|
+
};
|
|
2035
|
+
};
|
|
2036
|
+
/**
|
|
2037
|
+
* Not acceptable
|
|
2038
|
+
*/
|
|
2039
|
+
406: {
|
|
2040
|
+
error: {
|
|
2041
|
+
code: string;
|
|
2042
|
+
message: string;
|
|
2043
|
+
details?: {
|
|
2044
|
+
[key: string]: unknown;
|
|
2045
|
+
};
|
|
2046
|
+
};
|
|
2047
|
+
};
|
|
2048
|
+
/**
|
|
2049
|
+
* Conflict
|
|
2050
|
+
*/
|
|
2051
|
+
409: {
|
|
2052
|
+
error: {
|
|
2053
|
+
code: string;
|
|
2054
|
+
message: string;
|
|
2055
|
+
details?: {
|
|
2056
|
+
[key: string]: unknown;
|
|
2057
|
+
};
|
|
2058
|
+
};
|
|
2059
|
+
};
|
|
2060
|
+
/**
|
|
2061
|
+
* Internal error
|
|
2062
|
+
*/
|
|
2063
|
+
500: {
|
|
2064
|
+
error: {
|
|
2065
|
+
code: string;
|
|
2066
|
+
message: string;
|
|
2067
|
+
details?: {
|
|
2068
|
+
[key: string]: unknown;
|
|
2069
|
+
};
|
|
2070
|
+
};
|
|
2071
|
+
};
|
|
2072
|
+
};
|
|
2073
|
+
export type GetByOrgByRepoDiffError = GetByOrgByRepoDiffErrors[keyof GetByOrgByRepoDiffErrors];
|
|
2074
|
+
export type GetByOrgByRepoDiffResponses = {
|
|
2075
|
+
/**
|
|
2076
|
+
* Diff response
|
|
2077
|
+
*/
|
|
2078
|
+
200: {
|
|
2079
|
+
base: string;
|
|
2080
|
+
head: string;
|
|
2081
|
+
truncated: boolean;
|
|
2082
|
+
stats: {
|
|
2083
|
+
files: number;
|
|
2084
|
+
additions: number;
|
|
2085
|
+
deletions: number;
|
|
2086
|
+
changes: number;
|
|
2087
|
+
};
|
|
2088
|
+
files: Array<{
|
|
2089
|
+
path: string;
|
|
2090
|
+
status: 'A' | 'M' | 'D' | 'R' | 'C' | 'T';
|
|
2091
|
+
old_path?: string;
|
|
2092
|
+
bytes?: number;
|
|
2093
|
+
is_eof?: boolean;
|
|
2094
|
+
raw?: string;
|
|
2095
|
+
}>;
|
|
2096
|
+
filtered_files: Array<{
|
|
2097
|
+
path: string;
|
|
2098
|
+
status: 'A' | 'M' | 'D' | 'R' | 'C' | 'T';
|
|
2099
|
+
old_path?: string;
|
|
2100
|
+
bytes?: number;
|
|
2101
|
+
is_eof?: boolean;
|
|
2102
|
+
}>;
|
|
2103
|
+
};
|
|
2104
|
+
};
|
|
2105
|
+
export type GetByOrgByRepoDiffResponse = GetByOrgByRepoDiffResponses[keyof GetByOrgByRepoDiffResponses];
|
|
2106
|
+
export type GetByOrgByRepoWebhooksData = {
|
|
2107
|
+
body?: never;
|
|
2108
|
+
path: {
|
|
2109
|
+
org: string;
|
|
2110
|
+
repo: string;
|
|
2111
|
+
};
|
|
2112
|
+
query?: never;
|
|
2113
|
+
url: '/{org}/{repo}/webhooks';
|
|
2114
|
+
};
|
|
2115
|
+
export type GetByOrgByRepoWebhooksErrors = {
|
|
2116
|
+
/**
|
|
2117
|
+
* Invalid request
|
|
2118
|
+
*/
|
|
2119
|
+
400: {
|
|
2120
|
+
error: {
|
|
2121
|
+
code: string;
|
|
2122
|
+
message: string;
|
|
2123
|
+
details?: {
|
|
2124
|
+
[key: string]: unknown;
|
|
2125
|
+
};
|
|
2126
|
+
};
|
|
2127
|
+
};
|
|
2128
|
+
/**
|
|
2129
|
+
* Unauthorized
|
|
2130
|
+
*/
|
|
2131
|
+
401: {
|
|
2132
|
+
error: {
|
|
2133
|
+
code: string;
|
|
2134
|
+
message: string;
|
|
2135
|
+
details?: {
|
|
2136
|
+
[key: string]: unknown;
|
|
2137
|
+
};
|
|
2138
|
+
};
|
|
2139
|
+
};
|
|
2140
|
+
/**
|
|
2141
|
+
* Forbidden
|
|
2142
|
+
*/
|
|
2143
|
+
403: {
|
|
2144
|
+
error: {
|
|
2145
|
+
code: string;
|
|
2146
|
+
message: string;
|
|
2147
|
+
details?: {
|
|
2148
|
+
[key: string]: unknown;
|
|
2149
|
+
};
|
|
2150
|
+
};
|
|
2151
|
+
};
|
|
2152
|
+
/**
|
|
2153
|
+
* Not found
|
|
2154
|
+
*/
|
|
2155
|
+
404: {
|
|
2156
|
+
error: {
|
|
2157
|
+
code: string;
|
|
2158
|
+
message: string;
|
|
2159
|
+
details?: {
|
|
2160
|
+
[key: string]: unknown;
|
|
2161
|
+
};
|
|
2162
|
+
};
|
|
2163
|
+
};
|
|
2164
|
+
/**
|
|
2165
|
+
* Not acceptable
|
|
2166
|
+
*/
|
|
2167
|
+
406: {
|
|
2168
|
+
error: {
|
|
2169
|
+
code: string;
|
|
2170
|
+
message: string;
|
|
2171
|
+
details?: {
|
|
2172
|
+
[key: string]: unknown;
|
|
2173
|
+
};
|
|
2174
|
+
};
|
|
2175
|
+
};
|
|
2176
|
+
/**
|
|
2177
|
+
* Conflict
|
|
2178
|
+
*/
|
|
2179
|
+
409: {
|
|
2180
|
+
error: {
|
|
2181
|
+
code: string;
|
|
2182
|
+
message: string;
|
|
2183
|
+
details?: {
|
|
2184
|
+
[key: string]: unknown;
|
|
2185
|
+
};
|
|
2186
|
+
};
|
|
2187
|
+
};
|
|
2188
|
+
/**
|
|
2189
|
+
* Internal error
|
|
2190
|
+
*/
|
|
2191
|
+
500: {
|
|
2192
|
+
error: {
|
|
2193
|
+
code: string;
|
|
2194
|
+
message: string;
|
|
2195
|
+
details?: {
|
|
2196
|
+
[key: string]: unknown;
|
|
2197
|
+
};
|
|
2198
|
+
};
|
|
2199
|
+
};
|
|
2200
|
+
};
|
|
2201
|
+
export type GetByOrgByRepoWebhooksError = GetByOrgByRepoWebhooksErrors[keyof GetByOrgByRepoWebhooksErrors];
|
|
2202
|
+
export type GetByOrgByRepoWebhooksResponses = {
|
|
2203
|
+
/**
|
|
2204
|
+
* Webhook list
|
|
2205
|
+
*/
|
|
2206
|
+
200: {
|
|
2207
|
+
webhooks: Array<{
|
|
2208
|
+
id: string;
|
|
2209
|
+
url: string;
|
|
2210
|
+
events: Array<'push'>;
|
|
2211
|
+
branches: Array<string> | null;
|
|
2212
|
+
globs: Array<string> | null;
|
|
2213
|
+
created_at: string;
|
|
2214
|
+
updated_at: string;
|
|
2215
|
+
}>;
|
|
2216
|
+
};
|
|
2217
|
+
};
|
|
2218
|
+
export type GetByOrgByRepoWebhooksResponse = GetByOrgByRepoWebhooksResponses[keyof GetByOrgByRepoWebhooksResponses];
|
|
2219
|
+
export type PostByOrgByRepoWebhooksData = {
|
|
2220
|
+
body: {
|
|
2221
|
+
url: string;
|
|
2222
|
+
events?: Array<'push'>;
|
|
2223
|
+
branches?: Array<string>;
|
|
2224
|
+
globs?: Array<string>;
|
|
2225
|
+
secret?: string;
|
|
2226
|
+
};
|
|
2227
|
+
path: {
|
|
2228
|
+
org: string;
|
|
2229
|
+
repo: string;
|
|
2230
|
+
};
|
|
2231
|
+
query?: never;
|
|
2232
|
+
url: '/{org}/{repo}/webhooks';
|
|
2233
|
+
};
|
|
2234
|
+
export type PostByOrgByRepoWebhooksErrors = {
|
|
2235
|
+
/**
|
|
2236
|
+
* Invalid request
|
|
2237
|
+
*/
|
|
2238
|
+
400: {
|
|
2239
|
+
error: {
|
|
2240
|
+
code: string;
|
|
2241
|
+
message: string;
|
|
2242
|
+
details?: {
|
|
2243
|
+
[key: string]: unknown;
|
|
2244
|
+
};
|
|
2245
|
+
};
|
|
2246
|
+
};
|
|
2247
|
+
/**
|
|
2248
|
+
* Unauthorized
|
|
2249
|
+
*/
|
|
2250
|
+
401: {
|
|
2251
|
+
error: {
|
|
2252
|
+
code: string;
|
|
2253
|
+
message: string;
|
|
2254
|
+
details?: {
|
|
2255
|
+
[key: string]: unknown;
|
|
2256
|
+
};
|
|
2257
|
+
};
|
|
2258
|
+
};
|
|
2259
|
+
/**
|
|
2260
|
+
* Forbidden
|
|
2261
|
+
*/
|
|
2262
|
+
403: {
|
|
2263
|
+
error: {
|
|
2264
|
+
code: string;
|
|
2265
|
+
message: string;
|
|
2266
|
+
details?: {
|
|
2267
|
+
[key: string]: unknown;
|
|
2268
|
+
};
|
|
2269
|
+
};
|
|
2270
|
+
};
|
|
2271
|
+
/**
|
|
2272
|
+
* Not found
|
|
2273
|
+
*/
|
|
2274
|
+
404: {
|
|
2275
|
+
error: {
|
|
2276
|
+
code: string;
|
|
2277
|
+
message: string;
|
|
2278
|
+
details?: {
|
|
2279
|
+
[key: string]: unknown;
|
|
2280
|
+
};
|
|
2281
|
+
};
|
|
2282
|
+
};
|
|
2283
|
+
/**
|
|
2284
|
+
* Not acceptable
|
|
2285
|
+
*/
|
|
2286
|
+
406: {
|
|
2287
|
+
error: {
|
|
2288
|
+
code: string;
|
|
2289
|
+
message: string;
|
|
2290
|
+
details?: {
|
|
2291
|
+
[key: string]: unknown;
|
|
2292
|
+
};
|
|
2293
|
+
};
|
|
2294
|
+
};
|
|
2295
|
+
/**
|
|
2296
|
+
* Conflict
|
|
2297
|
+
*/
|
|
2298
|
+
409: {
|
|
2299
|
+
error: {
|
|
2300
|
+
code: string;
|
|
2301
|
+
message: string;
|
|
2302
|
+
details?: {
|
|
2303
|
+
[key: string]: unknown;
|
|
2304
|
+
};
|
|
2305
|
+
};
|
|
2306
|
+
};
|
|
2307
|
+
/**
|
|
2308
|
+
* Internal error
|
|
2309
|
+
*/
|
|
2310
|
+
500: {
|
|
2311
|
+
error: {
|
|
2312
|
+
code: string;
|
|
2313
|
+
message: string;
|
|
2314
|
+
details?: {
|
|
2315
|
+
[key: string]: unknown;
|
|
2316
|
+
};
|
|
2317
|
+
};
|
|
2318
|
+
};
|
|
2319
|
+
};
|
|
2320
|
+
export type PostByOrgByRepoWebhooksError = PostByOrgByRepoWebhooksErrors[keyof PostByOrgByRepoWebhooksErrors];
|
|
2321
|
+
export type PostByOrgByRepoWebhooksResponses = {
|
|
2322
|
+
/**
|
|
2323
|
+
* Webhook created
|
|
2324
|
+
*/
|
|
2325
|
+
201: {
|
|
2326
|
+
id: string;
|
|
2327
|
+
url: string;
|
|
2328
|
+
events: Array<'push'>;
|
|
2329
|
+
branches: Array<string> | null;
|
|
2330
|
+
globs: Array<string> | null;
|
|
2331
|
+
created_at: string;
|
|
2332
|
+
updated_at: string;
|
|
2333
|
+
secret: string;
|
|
2334
|
+
};
|
|
2335
|
+
};
|
|
2336
|
+
export type PostByOrgByRepoWebhooksResponse = PostByOrgByRepoWebhooksResponses[keyof PostByOrgByRepoWebhooksResponses];
|
|
2337
|
+
export type DeleteByOrgByRepoWebhooksByWebhookIdData = {
|
|
2338
|
+
body?: never;
|
|
2339
|
+
path: {
|
|
2340
|
+
org: string;
|
|
2341
|
+
repo: string;
|
|
2342
|
+
webhookId: string;
|
|
2343
|
+
};
|
|
2344
|
+
query?: never;
|
|
2345
|
+
url: '/{org}/{repo}/webhooks/{webhookId}';
|
|
2346
|
+
};
|
|
2347
|
+
export type DeleteByOrgByRepoWebhooksByWebhookIdErrors = {
|
|
2348
|
+
/**
|
|
2349
|
+
* Invalid request
|
|
2350
|
+
*/
|
|
2351
|
+
400: {
|
|
2352
|
+
error: {
|
|
2353
|
+
code: string;
|
|
2354
|
+
message: string;
|
|
2355
|
+
details?: {
|
|
2356
|
+
[key: string]: unknown;
|
|
2357
|
+
};
|
|
2358
|
+
};
|
|
2359
|
+
};
|
|
2360
|
+
/**
|
|
2361
|
+
* Unauthorized
|
|
2362
|
+
*/
|
|
2363
|
+
401: {
|
|
2364
|
+
error: {
|
|
2365
|
+
code: string;
|
|
2366
|
+
message: string;
|
|
2367
|
+
details?: {
|
|
2368
|
+
[key: string]: unknown;
|
|
2369
|
+
};
|
|
2370
|
+
};
|
|
2371
|
+
};
|
|
2372
|
+
/**
|
|
2373
|
+
* Forbidden
|
|
2374
|
+
*/
|
|
2375
|
+
403: {
|
|
2376
|
+
error: {
|
|
2377
|
+
code: string;
|
|
2378
|
+
message: string;
|
|
2379
|
+
details?: {
|
|
2380
|
+
[key: string]: unknown;
|
|
2381
|
+
};
|
|
2382
|
+
};
|
|
2383
|
+
};
|
|
2384
|
+
/**
|
|
2385
|
+
* Not found
|
|
2386
|
+
*/
|
|
2387
|
+
404: {
|
|
2388
|
+
error: {
|
|
2389
|
+
code: string;
|
|
2390
|
+
message: string;
|
|
2391
|
+
details?: {
|
|
2392
|
+
[key: string]: unknown;
|
|
2393
|
+
};
|
|
2394
|
+
};
|
|
2395
|
+
};
|
|
2396
|
+
/**
|
|
2397
|
+
* Not acceptable
|
|
2398
|
+
*/
|
|
2399
|
+
406: {
|
|
2400
|
+
error: {
|
|
2401
|
+
code: string;
|
|
2402
|
+
message: string;
|
|
2403
|
+
details?: {
|
|
2404
|
+
[key: string]: unknown;
|
|
2405
|
+
};
|
|
2406
|
+
};
|
|
2407
|
+
};
|
|
2408
|
+
/**
|
|
2409
|
+
* Conflict
|
|
2410
|
+
*/
|
|
2411
|
+
409: {
|
|
2412
|
+
error: {
|
|
2413
|
+
code: string;
|
|
2414
|
+
message: string;
|
|
2415
|
+
details?: {
|
|
2416
|
+
[key: string]: unknown;
|
|
2417
|
+
};
|
|
2418
|
+
};
|
|
2419
|
+
};
|
|
2420
|
+
/**
|
|
2421
|
+
* Internal error
|
|
2422
|
+
*/
|
|
2423
|
+
500: {
|
|
2424
|
+
error: {
|
|
2425
|
+
code: string;
|
|
2426
|
+
message: string;
|
|
2427
|
+
details?: {
|
|
2428
|
+
[key: string]: unknown;
|
|
2429
|
+
};
|
|
2430
|
+
};
|
|
2431
|
+
};
|
|
2432
|
+
};
|
|
2433
|
+
export type DeleteByOrgByRepoWebhooksByWebhookIdError = DeleteByOrgByRepoWebhooksByWebhookIdErrors[keyof DeleteByOrgByRepoWebhooksByWebhookIdErrors];
|
|
2434
|
+
export type DeleteByOrgByRepoWebhooksByWebhookIdResponses = {
|
|
2435
|
+
/**
|
|
2436
|
+
* Webhook deleted
|
|
2437
|
+
*/
|
|
2438
|
+
200: {
|
|
2439
|
+
success: true;
|
|
2440
|
+
};
|
|
2441
|
+
};
|
|
2442
|
+
export type DeleteByOrgByRepoWebhooksByWebhookIdResponse = DeleteByOrgByRepoWebhooksByWebhookIdResponses[keyof DeleteByOrgByRepoWebhooksByWebhookIdResponses];
|
|
2443
|
+
export type GetByOrgData = {
|
|
2444
|
+
body?: never;
|
|
2445
|
+
path: {
|
|
2446
|
+
org: string;
|
|
2447
|
+
};
|
|
2448
|
+
query?: never;
|
|
2449
|
+
url: '/{org}';
|
|
2450
|
+
};
|
|
2451
|
+
export type GetByOrgErrors = {
|
|
2452
|
+
/**
|
|
2453
|
+
* Invalid request
|
|
2454
|
+
*/
|
|
2455
|
+
400: {
|
|
2456
|
+
error: {
|
|
2457
|
+
code: string;
|
|
2458
|
+
message: string;
|
|
2459
|
+
details?: {
|
|
2460
|
+
[key: string]: unknown;
|
|
2461
|
+
};
|
|
2462
|
+
};
|
|
2463
|
+
};
|
|
2464
|
+
/**
|
|
2465
|
+
* Unauthorized
|
|
2466
|
+
*/
|
|
2467
|
+
401: {
|
|
2468
|
+
error: {
|
|
2469
|
+
code: string;
|
|
2470
|
+
message: string;
|
|
2471
|
+
details?: {
|
|
2472
|
+
[key: string]: unknown;
|
|
2473
|
+
};
|
|
2474
|
+
};
|
|
2475
|
+
};
|
|
2476
|
+
/**
|
|
2477
|
+
* Forbidden
|
|
2478
|
+
*/
|
|
2479
|
+
403: {
|
|
2480
|
+
error: {
|
|
2481
|
+
code: string;
|
|
2482
|
+
message: string;
|
|
2483
|
+
details?: {
|
|
2484
|
+
[key: string]: unknown;
|
|
2485
|
+
};
|
|
2486
|
+
};
|
|
2487
|
+
};
|
|
2488
|
+
/**
|
|
2489
|
+
* Not found
|
|
2490
|
+
*/
|
|
2491
|
+
404: {
|
|
2492
|
+
error: {
|
|
2493
|
+
code: string;
|
|
2494
|
+
message: string;
|
|
2495
|
+
details?: {
|
|
2496
|
+
[key: string]: unknown;
|
|
2497
|
+
};
|
|
2498
|
+
};
|
|
2499
|
+
};
|
|
2500
|
+
/**
|
|
2501
|
+
* Not acceptable
|
|
2502
|
+
*/
|
|
2503
|
+
406: {
|
|
2504
|
+
error: {
|
|
2505
|
+
code: string;
|
|
2506
|
+
message: string;
|
|
2507
|
+
details?: {
|
|
2508
|
+
[key: string]: unknown;
|
|
2509
|
+
};
|
|
2510
|
+
};
|
|
2511
|
+
};
|
|
2512
|
+
/**
|
|
2513
|
+
* Conflict
|
|
2514
|
+
*/
|
|
2515
|
+
409: {
|
|
2516
|
+
error: {
|
|
2517
|
+
code: string;
|
|
2518
|
+
message: string;
|
|
2519
|
+
details?: {
|
|
2520
|
+
[key: string]: unknown;
|
|
2521
|
+
};
|
|
2522
|
+
};
|
|
2523
|
+
};
|
|
2524
|
+
/**
|
|
2525
|
+
* Internal error
|
|
2526
|
+
*/
|
|
2527
|
+
500: {
|
|
2528
|
+
error: {
|
|
2529
|
+
code: string;
|
|
2530
|
+
message: string;
|
|
2531
|
+
details?: {
|
|
2532
|
+
[key: string]: unknown;
|
|
2533
|
+
};
|
|
2534
|
+
};
|
|
2535
|
+
};
|
|
2536
|
+
};
|
|
2537
|
+
export type GetByOrgError = GetByOrgErrors[keyof GetByOrgErrors];
|
|
2538
|
+
export type GetByOrgResponses = {
|
|
2539
|
+
/**
|
|
2540
|
+
* Organization summary
|
|
2541
|
+
*/
|
|
2542
|
+
200: {
|
|
2543
|
+
created_at: string;
|
|
2544
|
+
num_repos: number;
|
|
2545
|
+
};
|
|
2546
|
+
};
|
|
2547
|
+
export type GetByOrgResponse = GetByOrgResponses[keyof GetByOrgResponses];
|