@mesadev/rest 0.3.3 → 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.
Files changed (43) hide show
  1. package/README.md +9 -16
  2. package/dist/index.d.mts +3361 -0
  3. package/dist/index.d.mts.map +1 -0
  4. package/dist/index.mjs +944 -0
  5. package/dist/index.mjs.map +1 -0
  6. package/package.json +17 -10
  7. package/src/client.gen.ts +1 -1
  8. package/src/index.ts +144 -2
  9. package/src/sdk.gen.ts +68 -31
  10. package/src/types.gen.ts +451 -89
  11. package/LICENSE +0 -201
  12. package/dist/client/client.gen.d.ts +0 -2
  13. package/dist/client/client.gen.js +0 -234
  14. package/dist/client/index.d.ts +0 -8
  15. package/dist/client/index.js +0 -6
  16. package/dist/client/types.gen.d.ts +0 -117
  17. package/dist/client/types.gen.js +0 -2
  18. package/dist/client/utils.gen.d.ts +0 -33
  19. package/dist/client/utils.gen.js +0 -228
  20. package/dist/client.gen.d.ts +0 -12
  21. package/dist/client.gen.js +0 -3
  22. package/dist/core/auth.gen.d.ts +0 -18
  23. package/dist/core/auth.gen.js +0 -14
  24. package/dist/core/bodySerializer.gen.d.ts +0 -25
  25. package/dist/core/bodySerializer.gen.js +0 -57
  26. package/dist/core/params.gen.d.ts +0 -43
  27. package/dist/core/params.gen.js +0 -100
  28. package/dist/core/pathSerializer.gen.d.ts +0 -33
  29. package/dist/core/pathSerializer.gen.js +0 -106
  30. package/dist/core/queryKeySerializer.gen.d.ts +0 -18
  31. package/dist/core/queryKeySerializer.gen.js +0 -92
  32. package/dist/core/serverSentEvents.gen.d.ts +0 -71
  33. package/dist/core/serverSentEvents.gen.js +0 -133
  34. package/dist/core/types.gen.d.ts +0 -78
  35. package/dist/core/types.gen.js +0 -2
  36. package/dist/core/utils.gen.d.ts +0 -19
  37. package/dist/core/utils.gen.js +0 -87
  38. package/dist/index.d.ts +0 -2
  39. package/dist/index.js +0 -2
  40. package/dist/sdk.gen.d.ts +0 -135
  41. package/dist/sdk.gen.js +0 -226
  42. package/dist/types.gen.d.ts +0 -2547
  43. package/dist/types.gen.js +0 -2
package/src/types.gen.ts CHANGED
@@ -1,19 +1,133 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
 
3
3
  export type ClientOptions = {
4
- baseUrl: 'https://api.mesa.dev/api/v1' | (string & {});
4
+ baseUrl: 'https://api.mesa.dev/v1' | (string & {});
5
5
  };
6
6
 
7
- export type GetByOrgApiKeysData = {
7
+ export type GetWhoamiData = {
8
+ body?: never;
9
+ path?: never;
10
+ query?: never;
11
+ url: '/whoami';
12
+ };
13
+
14
+ export type GetWhoamiErrors = {
15
+ /**
16
+ * Invalid request
17
+ */
18
+ 400: {
19
+ error: {
20
+ code: string;
21
+ message: string;
22
+ details?: {
23
+ [key: string]: unknown;
24
+ };
25
+ };
26
+ };
27
+ /**
28
+ * Unauthorized
29
+ */
30
+ 401: {
31
+ error: {
32
+ code: string;
33
+ message: string;
34
+ details?: {
35
+ [key: string]: unknown;
36
+ };
37
+ };
38
+ };
39
+ /**
40
+ * Forbidden
41
+ */
42
+ 403: {
43
+ error: {
44
+ code: string;
45
+ message: string;
46
+ details?: {
47
+ [key: string]: unknown;
48
+ };
49
+ };
50
+ };
51
+ /**
52
+ * Not found
53
+ */
54
+ 404: {
55
+ error: {
56
+ code: string;
57
+ message: string;
58
+ details?: {
59
+ [key: string]: unknown;
60
+ };
61
+ };
62
+ };
63
+ /**
64
+ * Not acceptable
65
+ */
66
+ 406: {
67
+ error: {
68
+ code: string;
69
+ message: string;
70
+ details?: {
71
+ [key: string]: unknown;
72
+ };
73
+ };
74
+ };
75
+ /**
76
+ * Conflict
77
+ */
78
+ 409: {
79
+ error: {
80
+ code: string;
81
+ message: string;
82
+ details?: {
83
+ [key: string]: unknown;
84
+ };
85
+ };
86
+ };
87
+ /**
88
+ * Internal error
89
+ */
90
+ 500: {
91
+ error: {
92
+ code: string;
93
+ message: string;
94
+ details?: {
95
+ [key: string]: unknown;
96
+ };
97
+ };
98
+ };
99
+ };
100
+
101
+ export type GetWhoamiError = GetWhoamiErrors[keyof GetWhoamiErrors];
102
+
103
+ export type GetWhoamiResponses = {
104
+ /**
105
+ * Caller identity
106
+ */
107
+ 200: {
108
+ org: {
109
+ id: string;
110
+ slug: string;
111
+ name: string;
112
+ };
113
+ key_id: string | null;
114
+ key_name: string | null;
115
+ scopes: Array<string>;
116
+ };
117
+ };
118
+
119
+ export type GetWhoamiResponse = GetWhoamiResponses[keyof GetWhoamiResponses];
120
+
121
+ export type GetByOrgApiKeyData = {
8
122
  body?: never;
9
123
  path: {
10
124
  org: string;
11
125
  };
12
126
  query?: never;
13
- url: '/{org}/api-keys';
127
+ url: '/{org}/api-key';
14
128
  };
15
129
 
16
- export type GetByOrgApiKeysErrors = {
130
+ export type GetByOrgApiKeyErrors = {
17
131
  /**
18
132
  * Invalid request
19
133
  */
@@ -100,9 +214,9 @@ export type GetByOrgApiKeysErrors = {
100
214
  };
101
215
  };
102
216
 
103
- export type GetByOrgApiKeysError = GetByOrgApiKeysErrors[keyof GetByOrgApiKeysErrors];
217
+ export type GetByOrgApiKeyError = GetByOrgApiKeyErrors[keyof GetByOrgApiKeyErrors];
104
218
 
105
- export type GetByOrgApiKeysResponses = {
219
+ export type GetByOrgApiKeyResponses = {
106
220
  /**
107
221
  * API keys list
108
222
  */
@@ -111,6 +225,7 @@ export type GetByOrgApiKeysResponses = {
111
225
  id: string;
112
226
  name: string | null;
113
227
  scopes: Array<string>;
228
+ repo_ids: Array<string> | null;
114
229
  last_used_at: string | null;
115
230
  expires_at: string | null;
116
231
  revoked_at: string | null;
@@ -119,21 +234,22 @@ export type GetByOrgApiKeysResponses = {
119
234
  };
120
235
  };
121
236
 
122
- export type GetByOrgApiKeysResponse = GetByOrgApiKeysResponses[keyof GetByOrgApiKeysResponses];
237
+ export type GetByOrgApiKeyResponse = GetByOrgApiKeyResponses[keyof GetByOrgApiKeyResponses];
123
238
 
124
- export type PostByOrgApiKeysData = {
239
+ export type PostByOrgApiKeyData = {
125
240
  body: {
126
241
  name?: string;
127
242
  scopes?: Array<'git:read' | 'git:write' | 'repo:read' | 'repo:create' | 'repo:delete' | 'webhook:read' | 'webhook:write' | 'admin'>;
243
+ repo_ids?: Array<string>;
128
244
  };
129
245
  path: {
130
246
  org: string;
131
247
  };
132
248
  query?: never;
133
- url: '/{org}/api-keys';
249
+ url: '/{org}/api-key';
134
250
  };
135
251
 
136
- export type PostByOrgApiKeysErrors = {
252
+ export type PostByOrgApiKeyErrors = {
137
253
  /**
138
254
  * Invalid request
139
255
  */
@@ -220,9 +336,9 @@ export type PostByOrgApiKeysErrors = {
220
336
  };
221
337
  };
222
338
 
223
- export type PostByOrgApiKeysError = PostByOrgApiKeysErrors[keyof PostByOrgApiKeysErrors];
339
+ export type PostByOrgApiKeyError = PostByOrgApiKeyErrors[keyof PostByOrgApiKeyErrors];
224
340
 
225
- export type PostByOrgApiKeysResponses = {
341
+ export type PostByOrgApiKeyResponses = {
226
342
  /**
227
343
  * API key created
228
344
  */
@@ -231,23 +347,24 @@ export type PostByOrgApiKeysResponses = {
231
347
  key: string;
232
348
  name: string | null;
233
349
  scopes: Array<string>;
350
+ repo_ids: Array<string> | null;
234
351
  created_at: string;
235
352
  };
236
353
  };
237
354
 
238
- export type PostByOrgApiKeysResponse = PostByOrgApiKeysResponses[keyof PostByOrgApiKeysResponses];
355
+ export type PostByOrgApiKeyResponse = PostByOrgApiKeyResponses[keyof PostByOrgApiKeyResponses];
239
356
 
240
- export type DeleteByOrgApiKeysByIdData = {
357
+ export type DeleteByOrgApiKeyByIdData = {
241
358
  body?: never;
242
359
  path: {
243
360
  id: string;
244
361
  org: string;
245
362
  };
246
363
  query?: never;
247
- url: '/{org}/api-keys/{id}';
364
+ url: '/{org}/api-key/{id}';
248
365
  };
249
366
 
250
- export type DeleteByOrgApiKeysByIdErrors = {
367
+ export type DeleteByOrgApiKeyByIdErrors = {
251
368
  /**
252
369
  * Invalid request
253
370
  */
@@ -334,9 +451,9 @@ export type DeleteByOrgApiKeysByIdErrors = {
334
451
  };
335
452
  };
336
453
 
337
- export type DeleteByOrgApiKeysByIdError = DeleteByOrgApiKeysByIdErrors[keyof DeleteByOrgApiKeysByIdErrors];
454
+ export type DeleteByOrgApiKeyByIdError = DeleteByOrgApiKeyByIdErrors[keyof DeleteByOrgApiKeyByIdErrors];
338
455
 
339
- export type DeleteByOrgApiKeysByIdResponses = {
456
+ export type DeleteByOrgApiKeyByIdResponses = {
340
457
  /**
341
458
  * API key revoked
342
459
  */
@@ -345,9 +462,9 @@ export type DeleteByOrgApiKeysByIdResponses = {
345
462
  };
346
463
  };
347
464
 
348
- export type DeleteByOrgApiKeysByIdResponse = DeleteByOrgApiKeysByIdResponses[keyof DeleteByOrgApiKeysByIdResponses];
465
+ export type DeleteByOrgApiKeyByIdResponse = DeleteByOrgApiKeyByIdResponses[keyof DeleteByOrgApiKeyByIdResponses];
349
466
 
350
- export type GetByOrgReposData = {
467
+ export type GetByOrgRepoData = {
351
468
  body?: never;
352
469
  path: {
353
470
  org: string;
@@ -355,11 +472,12 @@ export type GetByOrgReposData = {
355
472
  query?: {
356
473
  cursor?: string;
357
474
  limit?: number;
475
+ tags?: string;
358
476
  };
359
- url: '/{org}/repos';
477
+ url: '/{org}/repo';
360
478
  };
361
479
 
362
- export type GetByOrgReposErrors = {
480
+ export type GetByOrgRepoErrors = {
363
481
  /**
364
482
  * Invalid request
365
483
  */
@@ -446,9 +564,9 @@ export type GetByOrgReposErrors = {
446
564
  };
447
565
  };
448
566
 
449
- export type GetByOrgReposError = GetByOrgReposErrors[keyof GetByOrgReposErrors];
567
+ export type GetByOrgRepoError = GetByOrgRepoErrors[keyof GetByOrgRepoErrors];
450
568
 
451
- export type GetByOrgReposResponses = {
569
+ export type GetByOrgRepoResponses = {
452
570
  /**
453
571
  * Repository list
454
572
  */
@@ -461,8 +579,10 @@ export type GetByOrgReposResponses = {
461
579
  name: string;
462
580
  default_branch: string;
463
581
  head_oid: string | null;
464
- size_bytes: number;
465
582
  created_at: string;
583
+ tags: {
584
+ [key: string]: string;
585
+ };
466
586
  /**
467
587
  * Optionally add an upstream repository. You can configure automatic syncing from the upstream repository.
468
588
  */
@@ -510,12 +630,15 @@ export type GetByOrgReposResponses = {
510
630
  };
511
631
  };
512
632
 
513
- export type GetByOrgReposResponse = GetByOrgReposResponses[keyof GetByOrgReposResponses];
633
+ export type GetByOrgRepoResponse = GetByOrgRepoResponses[keyof GetByOrgRepoResponses];
514
634
 
515
- export type PostByOrgReposData = {
635
+ export type PostByOrgRepoData = {
516
636
  body: {
517
637
  name: string;
518
638
  default_branch?: string;
639
+ tags?: {
640
+ [key: string]: string;
641
+ };
519
642
  upstream?: {
520
643
  /**
521
644
  * URL of the upstream repository
@@ -549,10 +672,10 @@ export type PostByOrgReposData = {
549
672
  org: string;
550
673
  };
551
674
  query?: never;
552
- url: '/{org}/repos';
675
+ url: '/{org}/repo';
553
676
  };
554
677
 
555
- export type PostByOrgReposErrors = {
678
+ export type PostByOrgRepoErrors = {
556
679
  /**
557
680
  * Invalid request
558
681
  */
@@ -639,9 +762,9 @@ export type PostByOrgReposErrors = {
639
762
  };
640
763
  };
641
764
 
642
- export type PostByOrgReposError = PostByOrgReposErrors[keyof PostByOrgReposErrors];
765
+ export type PostByOrgRepoError = PostByOrgRepoErrors[keyof PostByOrgRepoErrors];
643
766
 
644
- export type PostByOrgReposResponses = {
767
+ export type PostByOrgRepoResponses = {
645
768
  /**
646
769
  * Repository created
647
770
  */
@@ -651,8 +774,10 @@ export type PostByOrgReposResponses = {
651
774
  name: string;
652
775
  default_branch: string;
653
776
  head_oid: string | null;
654
- size_bytes: number;
655
777
  created_at: string;
778
+ tags: {
779
+ [key: string]: string;
780
+ };
656
781
  /**
657
782
  * Optionally add an upstream repository. You can configure automatic syncing from the upstream repository.
658
783
  */
@@ -699,7 +824,7 @@ export type PostByOrgReposResponses = {
699
824
  };
700
825
  };
701
826
 
702
- export type PostByOrgReposResponse = PostByOrgReposResponses[keyof PostByOrgReposResponses];
827
+ export type PostByOrgRepoResponse = PostByOrgRepoResponses[keyof PostByOrgRepoResponses];
703
828
 
704
829
  export type DeleteByOrgByRepoData = {
705
830
  body?: never;
@@ -920,8 +1045,10 @@ export type GetByOrgByRepoResponses = {
920
1045
  name: string;
921
1046
  default_branch: string;
922
1047
  head_oid: string | null;
923
- size_bytes: number;
924
1048
  created_at: string;
1049
+ tags: {
1050
+ [key: string]: string;
1051
+ };
925
1052
  /**
926
1053
  * Optionally add an upstream repository. You can configure automatic syncing from the upstream repository.
927
1054
  */
@@ -974,6 +1101,9 @@ export type PatchByOrgByRepoData = {
974
1101
  body: {
975
1102
  name?: string;
976
1103
  default_branch?: string;
1104
+ tags?: {
1105
+ [key: string]: string | null;
1106
+ };
977
1107
  upstream?: {
978
1108
  /**
979
1109
  * URL of the upstream repository
@@ -1110,8 +1240,10 @@ export type PatchByOrgByRepoResponses = {
1110
1240
  name: string;
1111
1241
  default_branch: string;
1112
1242
  head_oid: string | null;
1113
- size_bytes: number;
1114
1243
  created_at: string;
1244
+ tags: {
1245
+ [key: string]: string;
1246
+ };
1115
1247
  /**
1116
1248
  * Optionally add an upstream repository. You can configure automatic syncing from the upstream repository.
1117
1249
  */
@@ -1160,6 +1292,234 @@ export type PatchByOrgByRepoResponses = {
1160
1292
 
1161
1293
  export type PatchByOrgByRepoResponse = PatchByOrgByRepoResponses[keyof PatchByOrgByRepoResponses];
1162
1294
 
1295
+ export type GetByOrgRepoTagsData = {
1296
+ body?: never;
1297
+ path: {
1298
+ org: string;
1299
+ };
1300
+ query?: never;
1301
+ url: '/{org}/repo/tags';
1302
+ };
1303
+
1304
+ export type GetByOrgRepoTagsErrors = {
1305
+ /**
1306
+ * Invalid request
1307
+ */
1308
+ 400: {
1309
+ error: {
1310
+ code: string;
1311
+ message: string;
1312
+ details?: {
1313
+ [key: string]: unknown;
1314
+ };
1315
+ };
1316
+ };
1317
+ /**
1318
+ * Unauthorized
1319
+ */
1320
+ 401: {
1321
+ error: {
1322
+ code: string;
1323
+ message: string;
1324
+ details?: {
1325
+ [key: string]: unknown;
1326
+ };
1327
+ };
1328
+ };
1329
+ /**
1330
+ * Forbidden
1331
+ */
1332
+ 403: {
1333
+ error: {
1334
+ code: string;
1335
+ message: string;
1336
+ details?: {
1337
+ [key: string]: unknown;
1338
+ };
1339
+ };
1340
+ };
1341
+ /**
1342
+ * Not found
1343
+ */
1344
+ 404: {
1345
+ error: {
1346
+ code: string;
1347
+ message: string;
1348
+ details?: {
1349
+ [key: string]: unknown;
1350
+ };
1351
+ };
1352
+ };
1353
+ /**
1354
+ * Not acceptable
1355
+ */
1356
+ 406: {
1357
+ error: {
1358
+ code: string;
1359
+ message: string;
1360
+ details?: {
1361
+ [key: string]: unknown;
1362
+ };
1363
+ };
1364
+ };
1365
+ /**
1366
+ * Conflict
1367
+ */
1368
+ 409: {
1369
+ error: {
1370
+ code: string;
1371
+ message: string;
1372
+ details?: {
1373
+ [key: string]: unknown;
1374
+ };
1375
+ };
1376
+ };
1377
+ /**
1378
+ * Internal error
1379
+ */
1380
+ 500: {
1381
+ error: {
1382
+ code: string;
1383
+ message: string;
1384
+ details?: {
1385
+ [key: string]: unknown;
1386
+ };
1387
+ };
1388
+ };
1389
+ };
1390
+
1391
+ export type GetByOrgRepoTagsError = GetByOrgRepoTagsErrors[keyof GetByOrgRepoTagsErrors];
1392
+
1393
+ export type GetByOrgRepoTagsResponses = {
1394
+ /**
1395
+ * Repo tags
1396
+ */
1397
+ 200: {
1398
+ tags: {
1399
+ [key: string]: Array<{
1400
+ value: string;
1401
+ count: number;
1402
+ }>;
1403
+ };
1404
+ };
1405
+ };
1406
+
1407
+ export type GetByOrgRepoTagsResponse = GetByOrgRepoTagsResponses[keyof GetByOrgRepoTagsResponses];
1408
+
1409
+ export type PostByOrgRepoBulkTagsData = {
1410
+ body: {
1411
+ repo_ids: Array<string>;
1412
+ action: 'set' | 'remove';
1413
+ key: string;
1414
+ value?: string;
1415
+ };
1416
+ path: {
1417
+ org: string;
1418
+ };
1419
+ query?: never;
1420
+ url: '/{org}/repo/bulk/tags';
1421
+ };
1422
+
1423
+ export type PostByOrgRepoBulkTagsErrors = {
1424
+ /**
1425
+ * Invalid request
1426
+ */
1427
+ 400: {
1428
+ error: {
1429
+ code: string;
1430
+ message: string;
1431
+ details?: {
1432
+ [key: string]: unknown;
1433
+ };
1434
+ };
1435
+ };
1436
+ /**
1437
+ * Unauthorized
1438
+ */
1439
+ 401: {
1440
+ error: {
1441
+ code: string;
1442
+ message: string;
1443
+ details?: {
1444
+ [key: string]: unknown;
1445
+ };
1446
+ };
1447
+ };
1448
+ /**
1449
+ * Forbidden
1450
+ */
1451
+ 403: {
1452
+ error: {
1453
+ code: string;
1454
+ message: string;
1455
+ details?: {
1456
+ [key: string]: unknown;
1457
+ };
1458
+ };
1459
+ };
1460
+ /**
1461
+ * Not found
1462
+ */
1463
+ 404: {
1464
+ error: {
1465
+ code: string;
1466
+ message: string;
1467
+ details?: {
1468
+ [key: string]: unknown;
1469
+ };
1470
+ };
1471
+ };
1472
+ /**
1473
+ * Not acceptable
1474
+ */
1475
+ 406: {
1476
+ error: {
1477
+ code: string;
1478
+ message: string;
1479
+ details?: {
1480
+ [key: string]: unknown;
1481
+ };
1482
+ };
1483
+ };
1484
+ /**
1485
+ * Conflict
1486
+ */
1487
+ 409: {
1488
+ error: {
1489
+ code: string;
1490
+ message: string;
1491
+ details?: {
1492
+ [key: string]: unknown;
1493
+ };
1494
+ };
1495
+ };
1496
+ /**
1497
+ * Internal error
1498
+ */
1499
+ 500: {
1500
+ error: {
1501
+ code: string;
1502
+ message: string;
1503
+ details?: {
1504
+ [key: string]: unknown;
1505
+ };
1506
+ };
1507
+ };
1508
+ };
1509
+
1510
+ export type PostByOrgRepoBulkTagsError = PostByOrgRepoBulkTagsErrors[keyof PostByOrgRepoBulkTagsErrors];
1511
+
1512
+ export type PostByOrgRepoBulkTagsResponses = {
1513
+ /**
1514
+ * Updated count
1515
+ */
1516
+ 200: {
1517
+ updated: number;
1518
+ };
1519
+ };
1520
+
1521
+ export type PostByOrgRepoBulkTagsResponse = PostByOrgRepoBulkTagsResponses[keyof PostByOrgRepoBulkTagsResponses];
1522
+
1163
1523
  export type GetByOrgByRepoContentData = {
1164
1524
  body?: never;
1165
1525
  path: {
@@ -1318,7 +1678,7 @@ export type GetByOrgByRepoContentResponses = {
1318
1678
 
1319
1679
  export type GetByOrgByRepoContentResponse = GetByOrgByRepoContentResponses[keyof GetByOrgByRepoContentResponses];
1320
1680
 
1321
- export type GetByOrgByRepoBranchesData = {
1681
+ export type GetByOrgByRepoBranchData = {
1322
1682
  body?: never;
1323
1683
  path: {
1324
1684
  org: string;
@@ -1328,10 +1688,10 @@ export type GetByOrgByRepoBranchesData = {
1328
1688
  cursor?: string;
1329
1689
  limit?: number;
1330
1690
  };
1331
- url: '/{org}/{repo}/branches';
1691
+ url: '/{org}/{repo}/branch';
1332
1692
  };
1333
1693
 
1334
- export type GetByOrgByRepoBranchesErrors = {
1694
+ export type GetByOrgByRepoBranchErrors = {
1335
1695
  /**
1336
1696
  * Invalid request
1337
1697
  */
@@ -1418,9 +1778,9 @@ export type GetByOrgByRepoBranchesErrors = {
1418
1778
  };
1419
1779
  };
1420
1780
 
1421
- export type GetByOrgByRepoBranchesError = GetByOrgByRepoBranchesErrors[keyof GetByOrgByRepoBranchesErrors];
1781
+ export type GetByOrgByRepoBranchError = GetByOrgByRepoBranchErrors[keyof GetByOrgByRepoBranchErrors];
1422
1782
 
1423
- export type GetByOrgByRepoBranchesResponses = {
1783
+ export type GetByOrgByRepoBranchResponses = {
1424
1784
  /**
1425
1785
  * Branch list
1426
1786
  */
@@ -1435,9 +1795,9 @@ export type GetByOrgByRepoBranchesResponses = {
1435
1795
  };
1436
1796
  };
1437
1797
 
1438
- export type GetByOrgByRepoBranchesResponse = GetByOrgByRepoBranchesResponses[keyof GetByOrgByRepoBranchesResponses];
1798
+ export type GetByOrgByRepoBranchResponse = GetByOrgByRepoBranchResponses[keyof GetByOrgByRepoBranchResponses];
1439
1799
 
1440
- export type PostByOrgByRepoBranchesData = {
1800
+ export type PostByOrgByRepoBranchData = {
1441
1801
  body: {
1442
1802
  name: string;
1443
1803
  from: string;
@@ -1447,10 +1807,10 @@ export type PostByOrgByRepoBranchesData = {
1447
1807
  repo: string;
1448
1808
  };
1449
1809
  query?: never;
1450
- url: '/{org}/{repo}/branches';
1810
+ url: '/{org}/{repo}/branch';
1451
1811
  };
1452
1812
 
1453
- export type PostByOrgByRepoBranchesErrors = {
1813
+ export type PostByOrgByRepoBranchErrors = {
1454
1814
  /**
1455
1815
  * Invalid request
1456
1816
  */
@@ -1537,9 +1897,9 @@ export type PostByOrgByRepoBranchesErrors = {
1537
1897
  };
1538
1898
  };
1539
1899
 
1540
- export type PostByOrgByRepoBranchesError = PostByOrgByRepoBranchesErrors[keyof PostByOrgByRepoBranchesErrors];
1900
+ export type PostByOrgByRepoBranchError = PostByOrgByRepoBranchErrors[keyof PostByOrgByRepoBranchErrors];
1541
1901
 
1542
- export type PostByOrgByRepoBranchesResponses = {
1902
+ export type PostByOrgByRepoBranchResponses = {
1543
1903
  /**
1544
1904
  * Branch created
1545
1905
  */
@@ -1550,9 +1910,9 @@ export type PostByOrgByRepoBranchesResponses = {
1550
1910
  };
1551
1911
  };
1552
1912
 
1553
- export type PostByOrgByRepoBranchesResponse = PostByOrgByRepoBranchesResponses[keyof PostByOrgByRepoBranchesResponses];
1913
+ export type PostByOrgByRepoBranchResponse = PostByOrgByRepoBranchResponses[keyof PostByOrgByRepoBranchResponses];
1554
1914
 
1555
- export type DeleteByOrgByRepoBranchesByBranchData = {
1915
+ export type DeleteByOrgByRepoBranchByBranchData = {
1556
1916
  body?: never;
1557
1917
  path: {
1558
1918
  org: string;
@@ -1560,10 +1920,10 @@ export type DeleteByOrgByRepoBranchesByBranchData = {
1560
1920
  branch: string;
1561
1921
  };
1562
1922
  query?: never;
1563
- url: '/{org}/{repo}/branches/{branch}';
1923
+ url: '/{org}/{repo}/branch/{branch}';
1564
1924
  };
1565
1925
 
1566
- export type DeleteByOrgByRepoBranchesByBranchErrors = {
1926
+ export type DeleteByOrgByRepoBranchByBranchErrors = {
1567
1927
  /**
1568
1928
  * Invalid request
1569
1929
  */
@@ -1650,9 +2010,9 @@ export type DeleteByOrgByRepoBranchesByBranchErrors = {
1650
2010
  };
1651
2011
  };
1652
2012
 
1653
- export type DeleteByOrgByRepoBranchesByBranchError = DeleteByOrgByRepoBranchesByBranchErrors[keyof DeleteByOrgByRepoBranchesByBranchErrors];
2013
+ export type DeleteByOrgByRepoBranchByBranchError = DeleteByOrgByRepoBranchByBranchErrors[keyof DeleteByOrgByRepoBranchByBranchErrors];
1654
2014
 
1655
- export type DeleteByOrgByRepoBranchesByBranchResponses = {
2015
+ export type DeleteByOrgByRepoBranchByBranchResponses = {
1656
2016
  /**
1657
2017
  * Branch deleted
1658
2018
  */
@@ -1661,9 +2021,9 @@ export type DeleteByOrgByRepoBranchesByBranchResponses = {
1661
2021
  };
1662
2022
  };
1663
2023
 
1664
- export type DeleteByOrgByRepoBranchesByBranchResponse = DeleteByOrgByRepoBranchesByBranchResponses[keyof DeleteByOrgByRepoBranchesByBranchResponses];
2024
+ export type DeleteByOrgByRepoBranchByBranchResponse = DeleteByOrgByRepoBranchByBranchResponses[keyof DeleteByOrgByRepoBranchByBranchResponses];
1665
2025
 
1666
- export type GetByOrgByRepoCommitsData = {
2026
+ export type GetByOrgByRepoCommitData = {
1667
2027
  body?: never;
1668
2028
  path: {
1669
2029
  org: string;
@@ -1674,10 +2034,10 @@ export type GetByOrgByRepoCommitsData = {
1674
2034
  limit?: number;
1675
2035
  ref?: string;
1676
2036
  };
1677
- url: '/{org}/{repo}/commits';
2037
+ url: '/{org}/{repo}/commit';
1678
2038
  };
1679
2039
 
1680
- export type GetByOrgByRepoCommitsErrors = {
2040
+ export type GetByOrgByRepoCommitErrors = {
1681
2041
  /**
1682
2042
  * Invalid request
1683
2043
  */
@@ -1764,9 +2124,9 @@ export type GetByOrgByRepoCommitsErrors = {
1764
2124
  };
1765
2125
  };
1766
2126
 
1767
- export type GetByOrgByRepoCommitsError = GetByOrgByRepoCommitsErrors[keyof GetByOrgByRepoCommitsErrors];
2127
+ export type GetByOrgByRepoCommitError = GetByOrgByRepoCommitErrors[keyof GetByOrgByRepoCommitErrors];
1768
2128
 
1769
- export type GetByOrgByRepoCommitsResponses = {
2129
+ export type GetByOrgByRepoCommitResponses = {
1770
2130
  /**
1771
2131
  * Commit list
1772
2132
  */
@@ -1786,13 +2146,14 @@ export type GetByOrgByRepoCommitsResponses = {
1786
2146
  email: string;
1787
2147
  date?: string;
1788
2148
  };
2149
+ parents?: Array<string>;
1789
2150
  }>;
1790
2151
  };
1791
2152
  };
1792
2153
 
1793
- export type GetByOrgByRepoCommitsResponse = GetByOrgByRepoCommitsResponses[keyof GetByOrgByRepoCommitsResponses];
2154
+ export type GetByOrgByRepoCommitResponse = GetByOrgByRepoCommitResponses[keyof GetByOrgByRepoCommitResponses];
1794
2155
 
1795
- export type PostByOrgByRepoCommitsData = {
2156
+ export type PostByOrgByRepoCommitData = {
1796
2157
  body: {
1797
2158
  branch: string;
1798
2159
  message: string;
@@ -1823,10 +2184,10 @@ export type PostByOrgByRepoCommitsData = {
1823
2184
  repo: string;
1824
2185
  };
1825
2186
  query?: never;
1826
- url: '/{org}/{repo}/commits';
2187
+ url: '/{org}/{repo}/commit';
1827
2188
  };
1828
2189
 
1829
- export type PostByOrgByRepoCommitsErrors = {
2190
+ export type PostByOrgByRepoCommitErrors = {
1830
2191
  /**
1831
2192
  * Invalid request
1832
2193
  */
@@ -1913,9 +2274,9 @@ export type PostByOrgByRepoCommitsErrors = {
1913
2274
  };
1914
2275
  };
1915
2276
 
1916
- export type PostByOrgByRepoCommitsError = PostByOrgByRepoCommitsErrors[keyof PostByOrgByRepoCommitsErrors];
2277
+ export type PostByOrgByRepoCommitError = PostByOrgByRepoCommitErrors[keyof PostByOrgByRepoCommitErrors];
1917
2278
 
1918
- export type PostByOrgByRepoCommitsResponses = {
2279
+ export type PostByOrgByRepoCommitResponses = {
1919
2280
  /**
1920
2281
  * Commit created
1921
2282
  */
@@ -1926,9 +2287,9 @@ export type PostByOrgByRepoCommitsResponses = {
1926
2287
  };
1927
2288
  };
1928
2289
 
1929
- export type PostByOrgByRepoCommitsResponse = PostByOrgByRepoCommitsResponses[keyof PostByOrgByRepoCommitsResponses];
2290
+ export type PostByOrgByRepoCommitResponse = PostByOrgByRepoCommitResponses[keyof PostByOrgByRepoCommitResponses];
1930
2291
 
1931
- export type GetByOrgByRepoCommitsByShaData = {
2292
+ export type GetByOrgByRepoCommitByShaData = {
1932
2293
  body?: never;
1933
2294
  path: {
1934
2295
  org: string;
@@ -1936,10 +2297,10 @@ export type GetByOrgByRepoCommitsByShaData = {
1936
2297
  sha: string;
1937
2298
  };
1938
2299
  query?: never;
1939
- url: '/{org}/{repo}/commits/{sha}';
2300
+ url: '/{org}/{repo}/commit/{sha}';
1940
2301
  };
1941
2302
 
1942
- export type GetByOrgByRepoCommitsByShaErrors = {
2303
+ export type GetByOrgByRepoCommitByShaErrors = {
1943
2304
  /**
1944
2305
  * Invalid request
1945
2306
  */
@@ -2026,9 +2387,9 @@ export type GetByOrgByRepoCommitsByShaErrors = {
2026
2387
  };
2027
2388
  };
2028
2389
 
2029
- export type GetByOrgByRepoCommitsByShaError = GetByOrgByRepoCommitsByShaErrors[keyof GetByOrgByRepoCommitsByShaErrors];
2390
+ export type GetByOrgByRepoCommitByShaError = GetByOrgByRepoCommitByShaErrors[keyof GetByOrgByRepoCommitByShaErrors];
2030
2391
 
2031
- export type GetByOrgByRepoCommitsByShaResponses = {
2392
+ export type GetByOrgByRepoCommitByShaResponses = {
2032
2393
  /**
2033
2394
  * Commit
2034
2395
  */
@@ -2045,10 +2406,11 @@ export type GetByOrgByRepoCommitsByShaResponses = {
2045
2406
  email: string;
2046
2407
  date?: string;
2047
2408
  };
2409
+ parents?: Array<string>;
2048
2410
  };
2049
2411
  };
2050
2412
 
2051
- export type GetByOrgByRepoCommitsByShaResponse = GetByOrgByRepoCommitsByShaResponses[keyof GetByOrgByRepoCommitsByShaResponses];
2413
+ export type GetByOrgByRepoCommitByShaResponse = GetByOrgByRepoCommitByShaResponses[keyof GetByOrgByRepoCommitByShaResponses];
2052
2414
 
2053
2415
  export type GetByOrgByRepoDiffData = {
2054
2416
  body?: never;
@@ -2186,17 +2548,17 @@ export type GetByOrgByRepoDiffResponses = {
2186
2548
 
2187
2549
  export type GetByOrgByRepoDiffResponse = GetByOrgByRepoDiffResponses[keyof GetByOrgByRepoDiffResponses];
2188
2550
 
2189
- export type GetByOrgByRepoWebhooksData = {
2551
+ export type GetByOrgByRepoWebhookData = {
2190
2552
  body?: never;
2191
2553
  path: {
2192
2554
  org: string;
2193
2555
  repo: string;
2194
2556
  };
2195
2557
  query?: never;
2196
- url: '/{org}/{repo}/webhooks';
2558
+ url: '/{org}/{repo}/webhook';
2197
2559
  };
2198
2560
 
2199
- export type GetByOrgByRepoWebhooksErrors = {
2561
+ export type GetByOrgByRepoWebhookErrors = {
2200
2562
  /**
2201
2563
  * Invalid request
2202
2564
  */
@@ -2283,9 +2645,9 @@ export type GetByOrgByRepoWebhooksErrors = {
2283
2645
  };
2284
2646
  };
2285
2647
 
2286
- export type GetByOrgByRepoWebhooksError = GetByOrgByRepoWebhooksErrors[keyof GetByOrgByRepoWebhooksErrors];
2648
+ export type GetByOrgByRepoWebhookError = GetByOrgByRepoWebhookErrors[keyof GetByOrgByRepoWebhookErrors];
2287
2649
 
2288
- export type GetByOrgByRepoWebhooksResponses = {
2650
+ export type GetByOrgByRepoWebhookResponses = {
2289
2651
  /**
2290
2652
  * Webhook list
2291
2653
  */
@@ -2302,9 +2664,9 @@ export type GetByOrgByRepoWebhooksResponses = {
2302
2664
  };
2303
2665
  };
2304
2666
 
2305
- export type GetByOrgByRepoWebhooksResponse = GetByOrgByRepoWebhooksResponses[keyof GetByOrgByRepoWebhooksResponses];
2667
+ export type GetByOrgByRepoWebhookResponse = GetByOrgByRepoWebhookResponses[keyof GetByOrgByRepoWebhookResponses];
2306
2668
 
2307
- export type PostByOrgByRepoWebhooksData = {
2669
+ export type PostByOrgByRepoWebhookData = {
2308
2670
  body: {
2309
2671
  url: string;
2310
2672
  events?: Array<'push'>;
@@ -2317,10 +2679,10 @@ export type PostByOrgByRepoWebhooksData = {
2317
2679
  repo: string;
2318
2680
  };
2319
2681
  query?: never;
2320
- url: '/{org}/{repo}/webhooks';
2682
+ url: '/{org}/{repo}/webhook';
2321
2683
  };
2322
2684
 
2323
- export type PostByOrgByRepoWebhooksErrors = {
2685
+ export type PostByOrgByRepoWebhookErrors = {
2324
2686
  /**
2325
2687
  * Invalid request
2326
2688
  */
@@ -2407,9 +2769,9 @@ export type PostByOrgByRepoWebhooksErrors = {
2407
2769
  };
2408
2770
  };
2409
2771
 
2410
- export type PostByOrgByRepoWebhooksError = PostByOrgByRepoWebhooksErrors[keyof PostByOrgByRepoWebhooksErrors];
2772
+ export type PostByOrgByRepoWebhookError = PostByOrgByRepoWebhookErrors[keyof PostByOrgByRepoWebhookErrors];
2411
2773
 
2412
- export type PostByOrgByRepoWebhooksResponses = {
2774
+ export type PostByOrgByRepoWebhookResponses = {
2413
2775
  /**
2414
2776
  * Webhook created
2415
2777
  */
@@ -2425,9 +2787,9 @@ export type PostByOrgByRepoWebhooksResponses = {
2425
2787
  };
2426
2788
  };
2427
2789
 
2428
- export type PostByOrgByRepoWebhooksResponse = PostByOrgByRepoWebhooksResponses[keyof PostByOrgByRepoWebhooksResponses];
2790
+ export type PostByOrgByRepoWebhookResponse = PostByOrgByRepoWebhookResponses[keyof PostByOrgByRepoWebhookResponses];
2429
2791
 
2430
- export type DeleteByOrgByRepoWebhooksByWebhookIdData = {
2792
+ export type DeleteByOrgByRepoWebhookByWebhookIdData = {
2431
2793
  body?: never;
2432
2794
  path: {
2433
2795
  org: string;
@@ -2435,10 +2797,10 @@ export type DeleteByOrgByRepoWebhooksByWebhookIdData = {
2435
2797
  webhookId: string;
2436
2798
  };
2437
2799
  query?: never;
2438
- url: '/{org}/{repo}/webhooks/{webhookId}';
2800
+ url: '/{org}/{repo}/webhook/{webhookId}';
2439
2801
  };
2440
2802
 
2441
- export type DeleteByOrgByRepoWebhooksByWebhookIdErrors = {
2803
+ export type DeleteByOrgByRepoWebhookByWebhookIdErrors = {
2442
2804
  /**
2443
2805
  * Invalid request
2444
2806
  */
@@ -2525,9 +2887,9 @@ export type DeleteByOrgByRepoWebhooksByWebhookIdErrors = {
2525
2887
  };
2526
2888
  };
2527
2889
 
2528
- export type DeleteByOrgByRepoWebhooksByWebhookIdError = DeleteByOrgByRepoWebhooksByWebhookIdErrors[keyof DeleteByOrgByRepoWebhooksByWebhookIdErrors];
2890
+ export type DeleteByOrgByRepoWebhookByWebhookIdError = DeleteByOrgByRepoWebhookByWebhookIdErrors[keyof DeleteByOrgByRepoWebhookByWebhookIdErrors];
2529
2891
 
2530
- export type DeleteByOrgByRepoWebhooksByWebhookIdResponses = {
2892
+ export type DeleteByOrgByRepoWebhookByWebhookIdResponses = {
2531
2893
  /**
2532
2894
  * Webhook deleted
2533
2895
  */
@@ -2536,7 +2898,7 @@ export type DeleteByOrgByRepoWebhooksByWebhookIdResponses = {
2536
2898
  };
2537
2899
  };
2538
2900
 
2539
- export type DeleteByOrgByRepoWebhooksByWebhookIdResponse = DeleteByOrgByRepoWebhooksByWebhookIdResponses[keyof DeleteByOrgByRepoWebhooksByWebhookIdResponses];
2901
+ export type DeleteByOrgByRepoWebhookByWebhookIdResponse = DeleteByOrgByRepoWebhookByWebhookIdResponses[keyof DeleteByOrgByRepoWebhookByWebhookIdResponses];
2540
2902
 
2541
2903
  export type GetByOrgData = {
2542
2904
  body?: never;