@mesadev/rest 0.3.3 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/README.md +9 -16
  2. package/dist/client/client.gen.d.ts +1 -0
  3. package/dist/client/client.gen.d.ts.map +1 -0
  4. package/dist/client/client.gen.js +1 -0
  5. package/dist/client/client.gen.js.map +1 -0
  6. package/dist/client/index.d.ts +1 -0
  7. package/dist/client/index.d.ts.map +1 -0
  8. package/dist/client/index.js +1 -0
  9. package/dist/client/index.js.map +1 -0
  10. package/dist/client/types.gen.d.ts +1 -0
  11. package/dist/client/types.gen.d.ts.map +1 -0
  12. package/dist/client/types.gen.js +1 -0
  13. package/dist/client/types.gen.js.map +1 -0
  14. package/dist/client/utils.gen.d.ts +1 -0
  15. package/dist/client/utils.gen.d.ts.map +1 -0
  16. package/dist/client/utils.gen.js +1 -0
  17. package/dist/client/utils.gen.js.map +1 -0
  18. package/dist/client.gen.d.ts +1 -0
  19. package/dist/client.gen.d.ts.map +1 -0
  20. package/dist/client.gen.js +2 -1
  21. package/dist/client.gen.js.map +1 -0
  22. package/dist/core/auth.gen.d.ts +1 -0
  23. package/dist/core/auth.gen.d.ts.map +1 -0
  24. package/dist/core/auth.gen.js +1 -0
  25. package/dist/core/auth.gen.js.map +1 -0
  26. package/dist/core/bodySerializer.gen.d.ts +1 -0
  27. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  28. package/dist/core/bodySerializer.gen.js +1 -0
  29. package/dist/core/bodySerializer.gen.js.map +1 -0
  30. package/dist/core/params.gen.d.ts +1 -0
  31. package/dist/core/params.gen.d.ts.map +1 -0
  32. package/dist/core/params.gen.js +1 -0
  33. package/dist/core/params.gen.js.map +1 -0
  34. package/dist/core/pathSerializer.gen.d.ts +3 -2
  35. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  36. package/dist/core/pathSerializer.gen.js +1 -0
  37. package/dist/core/pathSerializer.gen.js.map +1 -0
  38. package/dist/core/queryKeySerializer.gen.d.ts +1 -0
  39. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  40. package/dist/core/queryKeySerializer.gen.js +1 -0
  41. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  42. package/dist/core/serverSentEvents.gen.d.ts +1 -0
  43. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  44. package/dist/core/serverSentEvents.gen.js +1 -0
  45. package/dist/core/serverSentEvents.gen.js.map +1 -0
  46. package/dist/core/types.gen.d.ts +1 -0
  47. package/dist/core/types.gen.d.ts.map +1 -0
  48. package/dist/core/types.gen.js +1 -0
  49. package/dist/core/types.gen.js.map +1 -0
  50. package/dist/core/utils.gen.d.ts +1 -0
  51. package/dist/core/utils.gen.d.ts.map +1 -0
  52. package/dist/core/utils.gen.js +1 -0
  53. package/dist/core/utils.gen.js.map +1 -0
  54. package/dist/index.d.ts +3 -2
  55. package/dist/index.d.ts.map +1 -0
  56. package/dist/index.js +2 -1
  57. package/dist/index.js.map +1 -0
  58. package/dist/sdk.gen.d.ts +36 -17
  59. package/dist/sdk.gen.d.ts.map +1 -0
  60. package/dist/sdk.gen.js +65 -30
  61. package/dist/sdk.gen.js.map +1 -0
  62. package/dist/types.gen.d.ts +437 -89
  63. package/dist/types.gen.d.ts.map +1 -0
  64. package/dist/types.gen.js +1 -0
  65. package/dist/types.gen.js.map +1 -0
  66. package/package.json +11 -6
  67. package/src/client.gen.ts +1 -1
  68. package/src/index.ts +144 -2
  69. package/src/sdk.gen.ts +68 -31
  70. package/src/types.gen.ts +451 -89
  71. package/LICENSE +0 -201
@@ -1,15 +1,124 @@
1
1
  export type ClientOptions = {
2
- baseUrl: 'https://api.mesa.dev/api/v1' | (string & {});
2
+ baseUrl: 'https://api.mesa.dev/v1' | (string & {});
3
3
  };
4
- export type GetByOrgApiKeysData = {
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 = {
5
114
  body?: never;
6
115
  path: {
7
116
  org: string;
8
117
  };
9
118
  query?: never;
10
- url: '/{org}/api-keys';
119
+ url: '/{org}/api-key';
11
120
  };
12
- export type GetByOrgApiKeysErrors = {
121
+ export type GetByOrgApiKeyErrors = {
13
122
  /**
14
123
  * Invalid request
15
124
  */
@@ -95,8 +204,8 @@ export type GetByOrgApiKeysErrors = {
95
204
  };
96
205
  };
97
206
  };
98
- export type GetByOrgApiKeysError = GetByOrgApiKeysErrors[keyof GetByOrgApiKeysErrors];
99
- export type GetByOrgApiKeysResponses = {
207
+ export type GetByOrgApiKeyError = GetByOrgApiKeyErrors[keyof GetByOrgApiKeyErrors];
208
+ export type GetByOrgApiKeyResponses = {
100
209
  /**
101
210
  * API keys list
102
211
  */
@@ -105,6 +214,7 @@ export type GetByOrgApiKeysResponses = {
105
214
  id: string;
106
215
  name: string | null;
107
216
  scopes: Array<string>;
217
+ repo_ids: Array<string> | null;
108
218
  last_used_at: string | null;
109
219
  expires_at: string | null;
110
220
  revoked_at: string | null;
@@ -112,19 +222,20 @@ export type GetByOrgApiKeysResponses = {
112
222
  }>;
113
223
  };
114
224
  };
115
- export type GetByOrgApiKeysResponse = GetByOrgApiKeysResponses[keyof GetByOrgApiKeysResponses];
116
- export type PostByOrgApiKeysData = {
225
+ export type GetByOrgApiKeyResponse = GetByOrgApiKeyResponses[keyof GetByOrgApiKeyResponses];
226
+ export type PostByOrgApiKeyData = {
117
227
  body: {
118
228
  name?: string;
119
229
  scopes?: Array<'git:read' | 'git:write' | 'repo:read' | 'repo:create' | 'repo:delete' | 'webhook:read' | 'webhook:write' | 'admin'>;
230
+ repo_ids?: Array<string>;
120
231
  };
121
232
  path: {
122
233
  org: string;
123
234
  };
124
235
  query?: never;
125
- url: '/{org}/api-keys';
236
+ url: '/{org}/api-key';
126
237
  };
127
- export type PostByOrgApiKeysErrors = {
238
+ export type PostByOrgApiKeyErrors = {
128
239
  /**
129
240
  * Invalid request
130
241
  */
@@ -210,8 +321,8 @@ export type PostByOrgApiKeysErrors = {
210
321
  };
211
322
  };
212
323
  };
213
- export type PostByOrgApiKeysError = PostByOrgApiKeysErrors[keyof PostByOrgApiKeysErrors];
214
- export type PostByOrgApiKeysResponses = {
324
+ export type PostByOrgApiKeyError = PostByOrgApiKeyErrors[keyof PostByOrgApiKeyErrors];
325
+ export type PostByOrgApiKeyResponses = {
215
326
  /**
216
327
  * API key created
217
328
  */
@@ -220,20 +331,21 @@ export type PostByOrgApiKeysResponses = {
220
331
  key: string;
221
332
  name: string | null;
222
333
  scopes: Array<string>;
334
+ repo_ids: Array<string> | null;
223
335
  created_at: string;
224
336
  };
225
337
  };
226
- export type PostByOrgApiKeysResponse = PostByOrgApiKeysResponses[keyof PostByOrgApiKeysResponses];
227
- export type DeleteByOrgApiKeysByIdData = {
338
+ export type PostByOrgApiKeyResponse = PostByOrgApiKeyResponses[keyof PostByOrgApiKeyResponses];
339
+ export type DeleteByOrgApiKeyByIdData = {
228
340
  body?: never;
229
341
  path: {
230
342
  id: string;
231
343
  org: string;
232
344
  };
233
345
  query?: never;
234
- url: '/{org}/api-keys/{id}';
346
+ url: '/{org}/api-key/{id}';
235
347
  };
236
- export type DeleteByOrgApiKeysByIdErrors = {
348
+ export type DeleteByOrgApiKeyByIdErrors = {
237
349
  /**
238
350
  * Invalid request
239
351
  */
@@ -319,8 +431,8 @@ export type DeleteByOrgApiKeysByIdErrors = {
319
431
  };
320
432
  };
321
433
  };
322
- export type DeleteByOrgApiKeysByIdError = DeleteByOrgApiKeysByIdErrors[keyof DeleteByOrgApiKeysByIdErrors];
323
- export type DeleteByOrgApiKeysByIdResponses = {
434
+ export type DeleteByOrgApiKeyByIdError = DeleteByOrgApiKeyByIdErrors[keyof DeleteByOrgApiKeyByIdErrors];
435
+ export type DeleteByOrgApiKeyByIdResponses = {
324
436
  /**
325
437
  * API key revoked
326
438
  */
@@ -328,8 +440,8 @@ export type DeleteByOrgApiKeysByIdResponses = {
328
440
  success: true;
329
441
  };
330
442
  };
331
- export type DeleteByOrgApiKeysByIdResponse = DeleteByOrgApiKeysByIdResponses[keyof DeleteByOrgApiKeysByIdResponses];
332
- export type GetByOrgReposData = {
443
+ export type DeleteByOrgApiKeyByIdResponse = DeleteByOrgApiKeyByIdResponses[keyof DeleteByOrgApiKeyByIdResponses];
444
+ export type GetByOrgRepoData = {
333
445
  body?: never;
334
446
  path: {
335
447
  org: string;
@@ -337,10 +449,11 @@ export type GetByOrgReposData = {
337
449
  query?: {
338
450
  cursor?: string;
339
451
  limit?: number;
452
+ tags?: string;
340
453
  };
341
- url: '/{org}/repos';
454
+ url: '/{org}/repo';
342
455
  };
343
- export type GetByOrgReposErrors = {
456
+ export type GetByOrgRepoErrors = {
344
457
  /**
345
458
  * Invalid request
346
459
  */
@@ -426,8 +539,8 @@ export type GetByOrgReposErrors = {
426
539
  };
427
540
  };
428
541
  };
429
- export type GetByOrgReposError = GetByOrgReposErrors[keyof GetByOrgReposErrors];
430
- export type GetByOrgReposResponses = {
542
+ export type GetByOrgRepoError = GetByOrgRepoErrors[keyof GetByOrgRepoErrors];
543
+ export type GetByOrgRepoResponses = {
431
544
  /**
432
545
  * Repository list
433
546
  */
@@ -440,8 +553,10 @@ export type GetByOrgReposResponses = {
440
553
  name: string;
441
554
  default_branch: string;
442
555
  head_oid: string | null;
443
- size_bytes: number;
444
556
  created_at: string;
557
+ tags: {
558
+ [key: string]: string;
559
+ };
445
560
  /**
446
561
  * Optionally add an upstream repository. You can configure automatic syncing from the upstream repository.
447
562
  */
@@ -488,11 +603,14 @@ export type GetByOrgReposResponses = {
488
603
  }>;
489
604
  };
490
605
  };
491
- export type GetByOrgReposResponse = GetByOrgReposResponses[keyof GetByOrgReposResponses];
492
- export type PostByOrgReposData = {
606
+ export type GetByOrgRepoResponse = GetByOrgRepoResponses[keyof GetByOrgRepoResponses];
607
+ export type PostByOrgRepoData = {
493
608
  body: {
494
609
  name: string;
495
610
  default_branch?: string;
611
+ tags?: {
612
+ [key: string]: string;
613
+ };
496
614
  upstream?: {
497
615
  /**
498
616
  * URL of the upstream repository
@@ -526,9 +644,9 @@ export type PostByOrgReposData = {
526
644
  org: string;
527
645
  };
528
646
  query?: never;
529
- url: '/{org}/repos';
647
+ url: '/{org}/repo';
530
648
  };
531
- export type PostByOrgReposErrors = {
649
+ export type PostByOrgRepoErrors = {
532
650
  /**
533
651
  * Invalid request
534
652
  */
@@ -614,8 +732,8 @@ export type PostByOrgReposErrors = {
614
732
  };
615
733
  };
616
734
  };
617
- export type PostByOrgReposError = PostByOrgReposErrors[keyof PostByOrgReposErrors];
618
- export type PostByOrgReposResponses = {
735
+ export type PostByOrgRepoError = PostByOrgRepoErrors[keyof PostByOrgRepoErrors];
736
+ export type PostByOrgRepoResponses = {
619
737
  /**
620
738
  * Repository created
621
739
  */
@@ -625,8 +743,10 @@ export type PostByOrgReposResponses = {
625
743
  name: string;
626
744
  default_branch: string;
627
745
  head_oid: string | null;
628
- size_bytes: number;
629
746
  created_at: string;
747
+ tags: {
748
+ [key: string]: string;
749
+ };
630
750
  /**
631
751
  * Optionally add an upstream repository. You can configure automatic syncing from the upstream repository.
632
752
  */
@@ -672,7 +792,7 @@ export type PostByOrgReposResponses = {
672
792
  } | null;
673
793
  };
674
794
  };
675
- export type PostByOrgReposResponse = PostByOrgReposResponses[keyof PostByOrgReposResponses];
795
+ export type PostByOrgRepoResponse = PostByOrgRepoResponses[keyof PostByOrgRepoResponses];
676
796
  export type DeleteByOrgByRepoData = {
677
797
  body?: never;
678
798
  path: {
@@ -884,8 +1004,10 @@ export type GetByOrgByRepoResponses = {
884
1004
  name: string;
885
1005
  default_branch: string;
886
1006
  head_oid: string | null;
887
- size_bytes: number;
888
1007
  created_at: string;
1008
+ tags: {
1009
+ [key: string]: string;
1010
+ };
889
1011
  /**
890
1012
  * Optionally add an upstream repository. You can configure automatic syncing from the upstream repository.
891
1013
  */
@@ -936,6 +1058,9 @@ export type PatchByOrgByRepoData = {
936
1058
  body: {
937
1059
  name?: string;
938
1060
  default_branch?: string;
1061
+ tags?: {
1062
+ [key: string]: string | null;
1063
+ };
939
1064
  upstream?: {
940
1065
  /**
941
1066
  * URL of the upstream repository
@@ -1069,8 +1194,10 @@ export type PatchByOrgByRepoResponses = {
1069
1194
  name: string;
1070
1195
  default_branch: string;
1071
1196
  head_oid: string | null;
1072
- size_bytes: number;
1073
1197
  created_at: string;
1198
+ tags: {
1199
+ [key: string]: string;
1200
+ };
1074
1201
  /**
1075
1202
  * Optionally add an upstream repository. You can configure automatic syncing from the upstream repository.
1076
1203
  */
@@ -1117,6 +1244,224 @@ export type PatchByOrgByRepoResponses = {
1117
1244
  };
1118
1245
  };
1119
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];
1120
1465
  export type GetByOrgByRepoContentData = {
1121
1466
  body?: never;
1122
1467
  path: {
@@ -1270,7 +1615,7 @@ export type GetByOrgByRepoContentResponses = {
1270
1615
  };
1271
1616
  };
1272
1617
  export type GetByOrgByRepoContentResponse = GetByOrgByRepoContentResponses[keyof GetByOrgByRepoContentResponses];
1273
- export type GetByOrgByRepoBranchesData = {
1618
+ export type GetByOrgByRepoBranchData = {
1274
1619
  body?: never;
1275
1620
  path: {
1276
1621
  org: string;
@@ -1280,9 +1625,9 @@ export type GetByOrgByRepoBranchesData = {
1280
1625
  cursor?: string;
1281
1626
  limit?: number;
1282
1627
  };
1283
- url: '/{org}/{repo}/branches';
1628
+ url: '/{org}/{repo}/branch';
1284
1629
  };
1285
- export type GetByOrgByRepoBranchesErrors = {
1630
+ export type GetByOrgByRepoBranchErrors = {
1286
1631
  /**
1287
1632
  * Invalid request
1288
1633
  */
@@ -1368,8 +1713,8 @@ export type GetByOrgByRepoBranchesErrors = {
1368
1713
  };
1369
1714
  };
1370
1715
  };
1371
- export type GetByOrgByRepoBranchesError = GetByOrgByRepoBranchesErrors[keyof GetByOrgByRepoBranchesErrors];
1372
- export type GetByOrgByRepoBranchesResponses = {
1716
+ export type GetByOrgByRepoBranchError = GetByOrgByRepoBranchErrors[keyof GetByOrgByRepoBranchErrors];
1717
+ export type GetByOrgByRepoBranchResponses = {
1373
1718
  /**
1374
1719
  * Branch list
1375
1720
  */
@@ -1383,8 +1728,8 @@ export type GetByOrgByRepoBranchesResponses = {
1383
1728
  }>;
1384
1729
  };
1385
1730
  };
1386
- export type GetByOrgByRepoBranchesResponse = GetByOrgByRepoBranchesResponses[keyof GetByOrgByRepoBranchesResponses];
1387
- export type PostByOrgByRepoBranchesData = {
1731
+ export type GetByOrgByRepoBranchResponse = GetByOrgByRepoBranchResponses[keyof GetByOrgByRepoBranchResponses];
1732
+ export type PostByOrgByRepoBranchData = {
1388
1733
  body: {
1389
1734
  name: string;
1390
1735
  from: string;
@@ -1394,9 +1739,9 @@ export type PostByOrgByRepoBranchesData = {
1394
1739
  repo: string;
1395
1740
  };
1396
1741
  query?: never;
1397
- url: '/{org}/{repo}/branches';
1742
+ url: '/{org}/{repo}/branch';
1398
1743
  };
1399
- export type PostByOrgByRepoBranchesErrors = {
1744
+ export type PostByOrgByRepoBranchErrors = {
1400
1745
  /**
1401
1746
  * Invalid request
1402
1747
  */
@@ -1482,8 +1827,8 @@ export type PostByOrgByRepoBranchesErrors = {
1482
1827
  };
1483
1828
  };
1484
1829
  };
1485
- export type PostByOrgByRepoBranchesError = PostByOrgByRepoBranchesErrors[keyof PostByOrgByRepoBranchesErrors];
1486
- export type PostByOrgByRepoBranchesResponses = {
1830
+ export type PostByOrgByRepoBranchError = PostByOrgByRepoBranchErrors[keyof PostByOrgByRepoBranchErrors];
1831
+ export type PostByOrgByRepoBranchResponses = {
1487
1832
  /**
1488
1833
  * Branch created
1489
1834
  */
@@ -1493,8 +1838,8 @@ export type PostByOrgByRepoBranchesResponses = {
1493
1838
  is_default: boolean;
1494
1839
  };
1495
1840
  };
1496
- export type PostByOrgByRepoBranchesResponse = PostByOrgByRepoBranchesResponses[keyof PostByOrgByRepoBranchesResponses];
1497
- export type DeleteByOrgByRepoBranchesByBranchData = {
1841
+ export type PostByOrgByRepoBranchResponse = PostByOrgByRepoBranchResponses[keyof PostByOrgByRepoBranchResponses];
1842
+ export type DeleteByOrgByRepoBranchByBranchData = {
1498
1843
  body?: never;
1499
1844
  path: {
1500
1845
  org: string;
@@ -1502,9 +1847,9 @@ export type DeleteByOrgByRepoBranchesByBranchData = {
1502
1847
  branch: string;
1503
1848
  };
1504
1849
  query?: never;
1505
- url: '/{org}/{repo}/branches/{branch}';
1850
+ url: '/{org}/{repo}/branch/{branch}';
1506
1851
  };
1507
- export type DeleteByOrgByRepoBranchesByBranchErrors = {
1852
+ export type DeleteByOrgByRepoBranchByBranchErrors = {
1508
1853
  /**
1509
1854
  * Invalid request
1510
1855
  */
@@ -1590,8 +1935,8 @@ export type DeleteByOrgByRepoBranchesByBranchErrors = {
1590
1935
  };
1591
1936
  };
1592
1937
  };
1593
- export type DeleteByOrgByRepoBranchesByBranchError = DeleteByOrgByRepoBranchesByBranchErrors[keyof DeleteByOrgByRepoBranchesByBranchErrors];
1594
- export type DeleteByOrgByRepoBranchesByBranchResponses = {
1938
+ export type DeleteByOrgByRepoBranchByBranchError = DeleteByOrgByRepoBranchByBranchErrors[keyof DeleteByOrgByRepoBranchByBranchErrors];
1939
+ export type DeleteByOrgByRepoBranchByBranchResponses = {
1595
1940
  /**
1596
1941
  * Branch deleted
1597
1942
  */
@@ -1599,8 +1944,8 @@ export type DeleteByOrgByRepoBranchesByBranchResponses = {
1599
1944
  success: true;
1600
1945
  };
1601
1946
  };
1602
- export type DeleteByOrgByRepoBranchesByBranchResponse = DeleteByOrgByRepoBranchesByBranchResponses[keyof DeleteByOrgByRepoBranchesByBranchResponses];
1603
- export type GetByOrgByRepoCommitsData = {
1947
+ export type DeleteByOrgByRepoBranchByBranchResponse = DeleteByOrgByRepoBranchByBranchResponses[keyof DeleteByOrgByRepoBranchByBranchResponses];
1948
+ export type GetByOrgByRepoCommitData = {
1604
1949
  body?: never;
1605
1950
  path: {
1606
1951
  org: string;
@@ -1611,9 +1956,9 @@ export type GetByOrgByRepoCommitsData = {
1611
1956
  limit?: number;
1612
1957
  ref?: string;
1613
1958
  };
1614
- url: '/{org}/{repo}/commits';
1959
+ url: '/{org}/{repo}/commit';
1615
1960
  };
1616
- export type GetByOrgByRepoCommitsErrors = {
1961
+ export type GetByOrgByRepoCommitErrors = {
1617
1962
  /**
1618
1963
  * Invalid request
1619
1964
  */
@@ -1699,8 +2044,8 @@ export type GetByOrgByRepoCommitsErrors = {
1699
2044
  };
1700
2045
  };
1701
2046
  };
1702
- export type GetByOrgByRepoCommitsError = GetByOrgByRepoCommitsErrors[keyof GetByOrgByRepoCommitsErrors];
1703
- export type GetByOrgByRepoCommitsResponses = {
2047
+ export type GetByOrgByRepoCommitError = GetByOrgByRepoCommitErrors[keyof GetByOrgByRepoCommitErrors];
2048
+ export type GetByOrgByRepoCommitResponses = {
1704
2049
  /**
1705
2050
  * Commit list
1706
2051
  */
@@ -1720,11 +2065,12 @@ export type GetByOrgByRepoCommitsResponses = {
1720
2065
  email: string;
1721
2066
  date?: string;
1722
2067
  };
2068
+ parents?: Array<string>;
1723
2069
  }>;
1724
2070
  };
1725
2071
  };
1726
- export type GetByOrgByRepoCommitsResponse = GetByOrgByRepoCommitsResponses[keyof GetByOrgByRepoCommitsResponses];
1727
- export type PostByOrgByRepoCommitsData = {
2072
+ export type GetByOrgByRepoCommitResponse = GetByOrgByRepoCommitResponses[keyof GetByOrgByRepoCommitResponses];
2073
+ export type PostByOrgByRepoCommitData = {
1728
2074
  body: {
1729
2075
  branch: string;
1730
2076
  message: string;
@@ -1755,9 +2101,9 @@ export type PostByOrgByRepoCommitsData = {
1755
2101
  repo: string;
1756
2102
  };
1757
2103
  query?: never;
1758
- url: '/{org}/{repo}/commits';
2104
+ url: '/{org}/{repo}/commit';
1759
2105
  };
1760
- export type PostByOrgByRepoCommitsErrors = {
2106
+ export type PostByOrgByRepoCommitErrors = {
1761
2107
  /**
1762
2108
  * Invalid request
1763
2109
  */
@@ -1843,8 +2189,8 @@ export type PostByOrgByRepoCommitsErrors = {
1843
2189
  };
1844
2190
  };
1845
2191
  };
1846
- export type PostByOrgByRepoCommitsError = PostByOrgByRepoCommitsErrors[keyof PostByOrgByRepoCommitsErrors];
1847
- export type PostByOrgByRepoCommitsResponses = {
2192
+ export type PostByOrgByRepoCommitError = PostByOrgByRepoCommitErrors[keyof PostByOrgByRepoCommitErrors];
2193
+ export type PostByOrgByRepoCommitResponses = {
1848
2194
  /**
1849
2195
  * Commit created
1850
2196
  */
@@ -1854,8 +2200,8 @@ export type PostByOrgByRepoCommitsResponses = {
1854
2200
  message: string;
1855
2201
  };
1856
2202
  };
1857
- export type PostByOrgByRepoCommitsResponse = PostByOrgByRepoCommitsResponses[keyof PostByOrgByRepoCommitsResponses];
1858
- export type GetByOrgByRepoCommitsByShaData = {
2203
+ export type PostByOrgByRepoCommitResponse = PostByOrgByRepoCommitResponses[keyof PostByOrgByRepoCommitResponses];
2204
+ export type GetByOrgByRepoCommitByShaData = {
1859
2205
  body?: never;
1860
2206
  path: {
1861
2207
  org: string;
@@ -1863,9 +2209,9 @@ export type GetByOrgByRepoCommitsByShaData = {
1863
2209
  sha: string;
1864
2210
  };
1865
2211
  query?: never;
1866
- url: '/{org}/{repo}/commits/{sha}';
2212
+ url: '/{org}/{repo}/commit/{sha}';
1867
2213
  };
1868
- export type GetByOrgByRepoCommitsByShaErrors = {
2214
+ export type GetByOrgByRepoCommitByShaErrors = {
1869
2215
  /**
1870
2216
  * Invalid request
1871
2217
  */
@@ -1951,8 +2297,8 @@ export type GetByOrgByRepoCommitsByShaErrors = {
1951
2297
  };
1952
2298
  };
1953
2299
  };
1954
- export type GetByOrgByRepoCommitsByShaError = GetByOrgByRepoCommitsByShaErrors[keyof GetByOrgByRepoCommitsByShaErrors];
1955
- export type GetByOrgByRepoCommitsByShaResponses = {
2300
+ export type GetByOrgByRepoCommitByShaError = GetByOrgByRepoCommitByShaErrors[keyof GetByOrgByRepoCommitByShaErrors];
2301
+ export type GetByOrgByRepoCommitByShaResponses = {
1956
2302
  /**
1957
2303
  * Commit
1958
2304
  */
@@ -1969,9 +2315,10 @@ export type GetByOrgByRepoCommitsByShaResponses = {
1969
2315
  email: string;
1970
2316
  date?: string;
1971
2317
  };
2318
+ parents?: Array<string>;
1972
2319
  };
1973
2320
  };
1974
- export type GetByOrgByRepoCommitsByShaResponse = GetByOrgByRepoCommitsByShaResponses[keyof GetByOrgByRepoCommitsByShaResponses];
2321
+ export type GetByOrgByRepoCommitByShaResponse = GetByOrgByRepoCommitByShaResponses[keyof GetByOrgByRepoCommitByShaResponses];
1975
2322
  export type GetByOrgByRepoDiffData = {
1976
2323
  body?: never;
1977
2324
  path: {
@@ -2103,16 +2450,16 @@ export type GetByOrgByRepoDiffResponses = {
2103
2450
  };
2104
2451
  };
2105
2452
  export type GetByOrgByRepoDiffResponse = GetByOrgByRepoDiffResponses[keyof GetByOrgByRepoDiffResponses];
2106
- export type GetByOrgByRepoWebhooksData = {
2453
+ export type GetByOrgByRepoWebhookData = {
2107
2454
  body?: never;
2108
2455
  path: {
2109
2456
  org: string;
2110
2457
  repo: string;
2111
2458
  };
2112
2459
  query?: never;
2113
- url: '/{org}/{repo}/webhooks';
2460
+ url: '/{org}/{repo}/webhook';
2114
2461
  };
2115
- export type GetByOrgByRepoWebhooksErrors = {
2462
+ export type GetByOrgByRepoWebhookErrors = {
2116
2463
  /**
2117
2464
  * Invalid request
2118
2465
  */
@@ -2198,8 +2545,8 @@ export type GetByOrgByRepoWebhooksErrors = {
2198
2545
  };
2199
2546
  };
2200
2547
  };
2201
- export type GetByOrgByRepoWebhooksError = GetByOrgByRepoWebhooksErrors[keyof GetByOrgByRepoWebhooksErrors];
2202
- export type GetByOrgByRepoWebhooksResponses = {
2548
+ export type GetByOrgByRepoWebhookError = GetByOrgByRepoWebhookErrors[keyof GetByOrgByRepoWebhookErrors];
2549
+ export type GetByOrgByRepoWebhookResponses = {
2203
2550
  /**
2204
2551
  * Webhook list
2205
2552
  */
@@ -2215,8 +2562,8 @@ export type GetByOrgByRepoWebhooksResponses = {
2215
2562
  }>;
2216
2563
  };
2217
2564
  };
2218
- export type GetByOrgByRepoWebhooksResponse = GetByOrgByRepoWebhooksResponses[keyof GetByOrgByRepoWebhooksResponses];
2219
- export type PostByOrgByRepoWebhooksData = {
2565
+ export type GetByOrgByRepoWebhookResponse = GetByOrgByRepoWebhookResponses[keyof GetByOrgByRepoWebhookResponses];
2566
+ export type PostByOrgByRepoWebhookData = {
2220
2567
  body: {
2221
2568
  url: string;
2222
2569
  events?: Array<'push'>;
@@ -2229,9 +2576,9 @@ export type PostByOrgByRepoWebhooksData = {
2229
2576
  repo: string;
2230
2577
  };
2231
2578
  query?: never;
2232
- url: '/{org}/{repo}/webhooks';
2579
+ url: '/{org}/{repo}/webhook';
2233
2580
  };
2234
- export type PostByOrgByRepoWebhooksErrors = {
2581
+ export type PostByOrgByRepoWebhookErrors = {
2235
2582
  /**
2236
2583
  * Invalid request
2237
2584
  */
@@ -2317,8 +2664,8 @@ export type PostByOrgByRepoWebhooksErrors = {
2317
2664
  };
2318
2665
  };
2319
2666
  };
2320
- export type PostByOrgByRepoWebhooksError = PostByOrgByRepoWebhooksErrors[keyof PostByOrgByRepoWebhooksErrors];
2321
- export type PostByOrgByRepoWebhooksResponses = {
2667
+ export type PostByOrgByRepoWebhookError = PostByOrgByRepoWebhookErrors[keyof PostByOrgByRepoWebhookErrors];
2668
+ export type PostByOrgByRepoWebhookResponses = {
2322
2669
  /**
2323
2670
  * Webhook created
2324
2671
  */
@@ -2333,8 +2680,8 @@ export type PostByOrgByRepoWebhooksResponses = {
2333
2680
  secret: string;
2334
2681
  };
2335
2682
  };
2336
- export type PostByOrgByRepoWebhooksResponse = PostByOrgByRepoWebhooksResponses[keyof PostByOrgByRepoWebhooksResponses];
2337
- export type DeleteByOrgByRepoWebhooksByWebhookIdData = {
2683
+ export type PostByOrgByRepoWebhookResponse = PostByOrgByRepoWebhookResponses[keyof PostByOrgByRepoWebhookResponses];
2684
+ export type DeleteByOrgByRepoWebhookByWebhookIdData = {
2338
2685
  body?: never;
2339
2686
  path: {
2340
2687
  org: string;
@@ -2342,9 +2689,9 @@ export type DeleteByOrgByRepoWebhooksByWebhookIdData = {
2342
2689
  webhookId: string;
2343
2690
  };
2344
2691
  query?: never;
2345
- url: '/{org}/{repo}/webhooks/{webhookId}';
2692
+ url: '/{org}/{repo}/webhook/{webhookId}';
2346
2693
  };
2347
- export type DeleteByOrgByRepoWebhooksByWebhookIdErrors = {
2694
+ export type DeleteByOrgByRepoWebhookByWebhookIdErrors = {
2348
2695
  /**
2349
2696
  * Invalid request
2350
2697
  */
@@ -2430,8 +2777,8 @@ export type DeleteByOrgByRepoWebhooksByWebhookIdErrors = {
2430
2777
  };
2431
2778
  };
2432
2779
  };
2433
- export type DeleteByOrgByRepoWebhooksByWebhookIdError = DeleteByOrgByRepoWebhooksByWebhookIdErrors[keyof DeleteByOrgByRepoWebhooksByWebhookIdErrors];
2434
- export type DeleteByOrgByRepoWebhooksByWebhookIdResponses = {
2780
+ export type DeleteByOrgByRepoWebhookByWebhookIdError = DeleteByOrgByRepoWebhookByWebhookIdErrors[keyof DeleteByOrgByRepoWebhookByWebhookIdErrors];
2781
+ export type DeleteByOrgByRepoWebhookByWebhookIdResponses = {
2435
2782
  /**
2436
2783
  * Webhook deleted
2437
2784
  */
@@ -2439,7 +2786,7 @@ export type DeleteByOrgByRepoWebhooksByWebhookIdResponses = {
2439
2786
  success: true;
2440
2787
  };
2441
2788
  };
2442
- export type DeleteByOrgByRepoWebhooksByWebhookIdResponse = DeleteByOrgByRepoWebhooksByWebhookIdResponses[keyof DeleteByOrgByRepoWebhooksByWebhookIdResponses];
2789
+ export type DeleteByOrgByRepoWebhookByWebhookIdResponse = DeleteByOrgByRepoWebhookByWebhookIdResponses[keyof DeleteByOrgByRepoWebhookByWebhookIdResponses];
2443
2790
  export type GetByOrgData = {
2444
2791
  body?: never;
2445
2792
  path: {
@@ -2545,3 +2892,4 @@ export type GetByOrgResponses = {
2545
2892
  };
2546
2893
  };
2547
2894
  export type GetByOrgResponse = GetByOrgResponses[keyof GetByOrgResponses];
2895
+ //# sourceMappingURL=types.gen.d.ts.map