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