@mesadev/sdk 0.3.2 → 0.3.3

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