coreapi: refresh spec — tolerate unknown response fields · Entire
Log in
coreapi: refresh spec — tolerate unknown response fields
179a6cd→main·
stiak·1mo ago·4 files·+5,606 added/-260 removed
Upstream flipped all 54 schemas from `additionalProperties: false` to `true`. Regenerating turns the generated decoders from strict (hard-error `unexpected field %q`) into tolerant (unknown fields captured into an AdditionalProps map), so a new field on any core API model no longer breaks the CLI.
Refreshed via `curl ... openapi.json` + `go generate ./internal/coreapi/...`.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com
Sessions
756af473d089View transcript
?\ CLI Resilience for New API FieldsClaude Code·Opus 4.8[1m]·1 step
Changes
4
internal/coreapi
Moas_json_gen.go+4212/-54
Moas_schemas_gen.go+1339/-151
spec
Mcore.gen.json+54/-54
Mcore.openapi.json+1/-1
41 unmodified lines
42
43
44
45
46
47
48
49
50
51
52
53
54
10 unmodified lines
65
66
67
68
69
70
71
42 unmodified lines
114
115
116
109
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
48 unmodified lines
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
73 unmodified lines
317
318
319
320
321
322
323
324
325
326
327
328
329
11 unmodified lines
341
342
343
344
345
346
347
66 unmodified lines
414
415
416
332
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
48 unmodified lines
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
75 unmodified lines
619
620
621
622
623
624
625
626
627
628
629
630
631
7 unmodified lines
639
640
641
642
643
644
645
26 unmodified lines
672
673
674
513
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
48 unmodified lines
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
17 unmodified lines
819
820
821
822
823
824
825
826
827
828
829
830
831
7 unmodified lines
839
840
841
842
843
844
845
26 unmodified lines
872
873
874
636
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
48 unmodified lines
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
31 unmodified lines
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
11 unmodified lines
1057
1058
1059
1060
1061
1062
1063
68 unmodified lines
1132
1133
1134
819
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
48 unmodified lines
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
19 unmodified lines
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
8 unmodified lines
1302
1303
1304
1305
1306
1307
1308
31 unmodified lines
1340
1341
1342
950
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
48 unmodified lines
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
25 unmodified lines
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
10 unmodified lines
1518
1519
1520
1521
1522
1523
1524
54 unmodified lines
1579
1580
1581
1112
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
48 unmodified lines
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
57 unmodified lines
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
8 unmodified lines
1787
1788
1789
1790
1791
1792
1793
30 unmodified lines
1824
1825
1826
1280
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
48 unmodified lines
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
27 unmodified lines
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
10 unmodified lines
2004
2005
2006
2007
2008
2009
2010
52 unmodified lines
2063
2064
2065
1442
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
48 unmodified lines
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
69 unmodified lines
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
10 unmodified lines
2285
2286
2287
2288
2289
2290
2291
52 unmodified lines
2344
2345
2346
1646
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
48 unmodified lines
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
57 unmodified lines
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
8 unmodified lines
2552
2553
2554
2555
2556
2557
2558
32 unmodified lines
2591
2592
2593
1816
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
48 unmodified lines
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
29 unmodified lines
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
11 unmodified lines
2774
2775
2776
2777
2778
2779
2780
68 unmodified lines
2849
2850
2851
1997
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
48 unmodified lines
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
21 unmodified lines
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
7 unmodified lines
3020
3021
3022
3023
3024
3025
3026
29 unmodified lines
3056
3057
3058
2127
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
16 unmodified lines
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
49 unmodified lines
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
12 unmodified lines
3228
3229
3230
3231
3232
3233
3234
75 unmodified lines
3310
3311
3312
2304
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
16 unmodified lines
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
41 unmodified lines
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
12 unmodified lines
3474
3475
3476
3477
3478
3479
3480
68 unmodified lines
3549
3550
3551
2466
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
48 unmodified lines
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
75 unmodified lines
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
10 unmodified lines
3777
3778
3779
3780
3781
3782
3783
61 unmodified lines
3845
3846
3847
2685
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
48 unmodified lines
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
85 unmodified lines
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
11 unmodified lines
4084
4085
4086
4087
4088
4089
4090
54 unmodified lines
4145
4146
4147
2908
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
48 unmodified lines
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
55 unmodified lines
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
7 unmodified lines
4350
4351
4352
4353
4354
4355
4356
20 unmodified lines
4377
4378
4379
3063
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
48 unmodified lines
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
27 unmodified lines
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
11 unmodified lines
4558
4559
4560
4561
4562
4563
4564
54 unmodified lines
4619
4620
4621
3228
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
48 unmodified lines
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
55 unmodified lines
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
7 unmodified lines
4824
4825
4826
4827
4828
4829
4830
20 unmodified lines
4851
4852
4853
3383
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
48 unmodified lines
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
21 unmodified lines
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
9 unmodified lines
5024
5025
5026
5027
5028
5029
5030
42 unmodified lines
5073
5074
5075
3528
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
48 unmodified lines
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
53 unmodified lines
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
7 unmodified lines
5276
5277
5278
5279
5280
5281
5282
20 unmodified lines
5303
5304
5305
3681
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
48 unmodified lines
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
17 unmodified lines
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
7 unmodified lines
5470
5471
5472
5473
5474
5475
5476
26 unmodified lines
5503
5504
5505
3804
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
48 unmodified lines
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
17 unmodified lines
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
7 unmodified lines
5670
5671
5672
5673
5674
5675
5676
26 unmodified lines
5703
5704
5705
3927
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
48 unmodified lines
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
17 unmodified lines
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
7 unmodified lines
5870
5871
5872
5873
5874
5875
5876
26 unmodified lines
5903
5904
5905
4050
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
48 unmodified lines
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
17 unmodified lines
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
7 unmodified lines
6070
6071
6072
6073
6074
6075
6076
26 unmodified lines
6103
6104
6105
4173
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
48 unmodified lines
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
17 unmodified lines
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
7 unmodified lines
6270
6271
6272
6273
6274
6275
6276
26 unmodified lines
6303
6304
6305
4296
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
48 unmodified lines
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
17 unmodified lines
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
7 unmodified lines
6470
6471
6472
6473
6474
6475
6476
26 unmodified lines
6503
6504
6505
4419
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
48 unmodified lines
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
17 unmodified lines
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
7 unmodified lines
6670
6671
6672
6673
6674
6675
6676
26 unmodified lines
6703
6704
6705
4542
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
48 unmodified lines
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
17 unmodified lines
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
7 unmodified lines
6870
6871
6872
6873
6874
6875
6876
26 unmodified lines
6903
6904
6905
4665
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
48 unmodified lines
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
17 unmodified lines
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7 unmodified lines
7070
7071
7072
7073
7074
7075
7076
26 unmodified lines
7103
7104
7105
4788
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
48 unmodified lines
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
25 unmodified lines
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7 unmodified lines
7278
7279
7280
7281
7282
7283
7284
35 unmodified lines
7320
7321
7322
4928
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
16 unmodified lines
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
17 unmodified lines
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7 unmodified lines
7455
7456
7457
7458
7459
7460
7461
26 unmodified lines
7488
7489
7490
5019
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
48 unmodified lines
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
17 unmodified lines
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7 unmodified lines
7655
7656
7657
7658
7659
7660
7661
26 unmodified lines
7688
7689
7690
5142
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
48 unmodified lines
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
11 unmodified lines
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7 unmodified lines
7849
7850
7851
7852
7853
7854
7855
22 unmodified lines
7878
7879
7880
5255
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
48 unmodified lines
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
41 unmodified lines
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
12 unmodified lines
8074
8075
8076
8077
8078
8079
8080
72 unmodified lines
8153
8154
8155
5453
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
48 unmodified lines
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
79 unmodified lines
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
10 unmodified lines
8385
8386
8387
8388
8389
8390
8391
66 unmodified lines
8458
8459
8460
5681
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
48 unmodified lines
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
11 unmodified lines
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
7 unmodified lines
8619
8620
8621
8622
8623
8624
8625
22 unmodified lines
8648
8649
8650
5794
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
48 unmodified lines
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
33 unmodified lines
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
10 unmodified lines
8834
8835
8836
8837
8838
8839
8840
58 unmodified lines
8899
8900
8901
5968
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
48 unmodified lines
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
15 unmodified lines
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
8 unmodified lines
9065
9066
9067
9068
9069
9070
9071
34 unmodified lines
9106
9107
9108
6098
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
48 unmodified lines
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
33 unmodified lines
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9 unmodified lines
9291
9292
9293
9294
9295
9296
9297
48 unmodified lines
9346
9347
9348
6261
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
16 unmodified lines
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
19 unmodified lines
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9 unmodified lines
9485
9486
9487
9488
9489
9490
9491
44 unmodified lines
9536
9537
9538
6374
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
48 unmodified lines
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
77 unmodified lines
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
13 unmodified lines
9769
9770
9771
9772
9773
9774
9775
90 unmodified lines
9866
9867
9868
6627
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
48 unmodified lines
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
63 unmodified lines
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
17 unmodified lines
10089
10090
10091
10092
10093
10094
10095
130 unmodified lines
10226
10227
10228
6910
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
49 unmodified lines
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
23 unmodified lines
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
9 unmodified lines
10402
10403
10404
10405
10406
10407
10408
42 unmodified lines
10451
10452
10453
7058
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
48 unmodified lines
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
637 unmodified lines
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11 unmodified lines
11242
11243
11244
11245
11246
11247
11248
66 unmodified lines
11315
11316
11317
7845
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
48 unmodified lines
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
33 unmodified lines
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
12 unmodified lines
11503
11504
11505
11506
11507
11508
11509
78 unmodified lines
11588
11589
11590
8041
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
48 unmodified lines
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
15 unmodified lines
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
8 unmodified lines
11754
11755
11756
11757
11758
11759
11760
34 unmodified lines
11795
11796
11797
8171
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
48 unmodified lines
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
103 unmodified lines
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
16 unmodified lines
12057
12058
12059
12060
12061
12062
12063
114 unmodified lines
12178
12179
12180
8477
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
49 unmodified lines
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
107 unmodified lines
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
10 unmodified lines
12439
12440
12441
12442
12443
12444
12445
56 unmodified lines
12502
12503
12504
8724
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
48 unmodified lines
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
15 unmodified lines
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
7 unmodified lines
12667
12668
12669
12670
12671
12672
12673
30 unmodified lines
12704
12705
12706
8849
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
48 unmodified lines
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
33 unmodified lines
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12 unmodified lines
12892
12893
12894
12895
12896
12897
12898
80 unmodified lines
12979
12980
12981
9047
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
48 unmodified lines
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
21 unmodified lines
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
9 unmodified lines
13152
13153
13154
13155
13156
13157
13158
44 unmodified lines
13203
13204
13205
9194
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
48 unmodified lines
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
35 unmodified lines
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
12 unmodified lines
13393
13394
13395
13396
13397
13398
13399
90 unmodified lines
13490
13491
13492
9404
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
47 unmodified lines
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
41 unmodified lines
s.Role.Encode(e)
}
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfAddOrgMemberInputBody = [4]string{
10 unmodified lines
}
var requiredBitSet [1]uint8
s.setDefaults()
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
42 unmodified lines
return errors.Wrap(err, "decode field \"role\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s AddOrgMemberInputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s AddOrgMemberInputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes AddOrgMemberInputBodyAdditional from json.
func (s *AddOrgMemberInputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode AddOrgMemberInputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode AddOrgMemberInputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s AddOrgMemberInputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *AddOrgMemberInputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode encodes AddOrgMemberInputBodyRole as json.
func (s AddOrgMemberInputBodyRole) Encode(e *jx.Encoder) {
e.Str(string(s))
73 unmodified lines
e.FieldStart("occurredAt")
json.EncodeDateTime(e, s.OccurredAt)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfAuditEvent = [6]string{
11 unmodified lines
return errors.New("invalid: unable to decode AuditEvent to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
66 unmodified lines
return errors.Wrap(err, "decode field \"occurredAt\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s AuditEventAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s AuditEventAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes AuditEventAdditional from json.
func (s *AuditEventAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode AuditEventAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode AuditEventAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s AuditEventAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *AuditEventAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s AuditEventMetadata) Encode(e *jx.Encoder) {
e.ObjStart()
75 unmodified lines
}
e.ArrEnd()
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfBatchLookupInputBody = [2]string{
7 unmodified lines
return errors.New("invalid: unable to decode BatchLookupInputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
26 unmodified lines
return errors.Wrap(err, "decode field \"refs\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s BatchLookupInputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s BatchLookupInputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes BatchLookupInputBodyAdditional from json.
func (s *BatchLookupInputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode BatchLookupInputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode BatchLookupInputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s BatchLookupInputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *BatchLookupInputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *BatchLookupOutputBody) Encode(e *jx.Encoder) {
e.ObjStart()
17 unmodified lines
}
e.ArrEnd()
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfBatchLookupOutputBody = [2]string{
7 unmodified lines
return errors.New("invalid: unable to decode BatchLookupOutputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
26 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s BatchLookupOutputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s BatchLookupOutputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes BatchLookupOutputBodyAdditional from json.
func (s *BatchLookupOutputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode BatchLookupOutputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode BatchLookupOutputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s BatchLookupOutputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *BatchLookupOutputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *Binding) Encode(e *jx.Encoder) {
e.ObjStart()
31 unmodified lines
e.FieldStart("providerId")
e.Str(s.ProviderId)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfBinding = [6]string{
11 unmodified lines
return errors.New("invalid: unable to decode Binding to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
68 unmodified lines
return errors.Wrap(err, "decode field \"providerId\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s BindingAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s BindingAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes BindingAdditional from json.
func (s *BindingAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode BindingAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode BindingAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s BindingAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *BindingAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *CreateBindingInputBody) Encode(e *jx.Encoder) {
e.ObjStart()
19 unmodified lines
e.FieldStart("providerId")
e.Str(s.ProviderId)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfCreateBindingInputBody = [3]string{
8 unmodified lines
return errors.New("invalid: unable to decode CreateBindingInputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
31 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s CreateBindingInputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s CreateBindingInputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes CreateBindingInputBodyAdditional from json.
func (s *CreateBindingInputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode CreateBindingInputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode CreateBindingInputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s CreateBindingInputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *CreateBindingInputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *CreateMirrorInputBody) Encode(e *jx.Encoder) {
e.ObjStart()
25 unmodified lines
e.FieldStart("repo")
e.Str(s.Repo)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfCreateMirrorInputBody = [5]string{
10 unmodified lines
return errors.New("invalid: unable to decode CreateMirrorInputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
54 unmodified lines
return errors.Wrap(err, "decode field \"repo\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s CreateMirrorInputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s CreateMirrorInputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes CreateMirrorInputBodyAdditional from json.
func (s *CreateMirrorInputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode CreateMirrorInputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode CreateMirrorInputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s CreateMirrorInputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *CreateMirrorInputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode encodes CreateMirrorInputBodyProvider as json.
func (s CreateMirrorInputBodyProvider) Encode(e *jx.Encoder) {
e.Str(string(s))
57 unmodified lines
s.Region.Encode(e)
}
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfCreateOrgInputBody = [3]string{
8 unmodified lines
return errors.New("invalid: unable to decode CreateOrgInputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
30 unmodified lines
return errors.Wrap(err, "decode field \"region\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s CreateOrgInputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s CreateOrgInputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes CreateOrgInputBodyAdditional from json.
func (s *CreateOrgInputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode CreateOrgInputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode CreateOrgInputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s CreateOrgInputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *CreateOrgInputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *CreateProjectInputBody) Encode(e *jx.Encoder) {
e.ObjStart()
27 unmodified lines
s.Region.Encode(e)
}
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfCreateProjectInputBody = [5]string{
10 unmodified lines
return errors.New("invalid: unable to decode CreateProjectInputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
52 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s CreateProjectInputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s CreateProjectInputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes CreateProjectInputBodyAdditional from json.
func (s *CreateProjectInputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode CreateProjectInputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode CreateProjectInputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s CreateProjectInputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *CreateProjectInputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode encodes CreateProjectInputBodyOwnerType as json.
func (s CreateProjectInputBodyOwnerType) Encode(e *jx.Encoder) {
e.Str(string(s))
69 unmodified lines
e.FieldStart("projectId")
e.Str(s.ProjectId)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfCreateRepoInputBody = [5]string{
10 unmodified lines
return errors.New("invalid: unable to decode CreateRepoInputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
52 unmodified lines
return errors.Wrap(err, "decode field \"projectId\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s CreateRepoInputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s CreateRepoInputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes CreateRepoInputBodyAdditional from json.
func (s *CreateRepoInputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode CreateRepoInputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode CreateRepoInputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s CreateRepoInputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *CreateRepoInputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode encodes CreateRepoInputBodyObjectFormat as json.
func (s CreateRepoInputBodyObjectFormat) Encode(e *jx.Encoder) {
e.Str(string(s))
57 unmodified lines
e.FieldStart("orgId")
e.Str(s.OrgId)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfCreateServiceAccountInputBody = [3]string{
8 unmodified lines
return errors.New("invalid: unable to decode CreateServiceAccountInputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
32 unmodified lines
return errors.Wrap(err, "decode field \"orgId\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s CreateServiceAccountInputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s CreateServiceAccountInputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes CreateServiceAccountInputBodyAdditional from json.
func (s *CreateServiceAccountInputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode CreateServiceAccountInputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode CreateServiceAccountInputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s CreateServiceAccountInputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *CreateServiceAccountInputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *CreatedMirror) Encode(e *jx.Encoder) {
e.ObjStart()
29 unmodified lines
e.FieldStart("publicUrl")
e.Str(s.PublicUrl)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfCreatedMirror = [6]string{
11 unmodified lines
return errors.New("invalid: unable to decode CreatedMirror to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
68 unmodified lines
return errors.Wrap(err, "decode field \"publicUrl\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s CreatedMirrorAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s CreatedMirrorAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes CreatedMirrorAdditional from json.
func (s *CreatedMirrorAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode CreatedMirrorAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode CreatedMirrorAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s CreatedMirrorAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *CreatedMirrorAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *ErrorDetail) Encode(e *jx.Encoder) {
e.ObjStart()
21 unmodified lines
e.Raw(s.Value)
}
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfErrorDetail = [3]string{
7 unmodified lines
if s == nil {
return errors.New("invalid: unable to decode ErrorDetail to nil")
}
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
29 unmodified lines
return errors.Wrap(err, "decode field \"value\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
16 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s ErrorDetailAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s ErrorDetailAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes ErrorDetailAdditional from json.
func (s *ErrorDetailAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode ErrorDetailAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode ErrorDetailAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s ErrorDetailAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ErrorDetailAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *ErrorModel) Encode(e *jx.Encoder) {
e.ObjStart()
49 unmodified lines
s.Type.Encode(e)
}
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfErrorModel = [7]string{
12 unmodified lines
return errors.New("invalid: unable to decode ErrorModel to nil")
}
s.setDefaults()
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
75 unmodified lines
return errors.Wrap(err, "decode field \"type\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
16 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s ErrorModelAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s ErrorModelAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes ErrorModelAdditional from json.
func (s *ErrorModelAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode ErrorModelAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode ErrorModelAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s ErrorModelAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ErrorModelAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *GetMeOutputBody) Encode(e *jx.Encoder) {
e.ObjStart()
41 unmodified lines
s.RegionalUnavailable.Encode(e)
}
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfGetMeOutputBody = [7]string{
12 unmodified lines
return errors.New("invalid: unable to decode GetMeOutputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
68 unmodified lines
return errors.Wrap(err, "decode field \"regionalUnavailable\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s GetMeOutputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s GetMeOutputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes GetMeOutputBodyAdditional from json.
func (s *GetMeOutputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode GetMeOutputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode GetMeOutputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s GetMeOutputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *GetMeOutputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode encodes GetMeOutputBodyMode as json.
func (s GetMeOutputBodyMode) Encode(e *jx.Encoder) {
e.Str(string(s))
75 unmodified lines
e.FieldStart("resourceType")
e.Str(s.ResourceType)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfGetPermissionsOutputBody = [5]string{
10 unmodified lines
return errors.New("invalid: unable to decode GetPermissionsOutputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
61 unmodified lines
return errors.Wrap(err, "decode field \"resourceType\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s GetPermissionsOutputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s GetPermissionsOutputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes GetPermissionsOutputBodyAdditional from json.
func (s *GetPermissionsOutputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode GetPermissionsOutputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode GetPermissionsOutputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s GetPermissionsOutputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *GetPermissionsOutputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s GetPermissionsOutputBodyExplain) Encode(e *jx.Encoder) {
e.ObjStart()
85 unmodified lines
e.FieldStart("role")
e.Str(s.Role)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfGrantProjectAccessInputBody = [5]string{
11 unmodified lines
}
var requiredBitSet [1]uint8
s.setDefaults()
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
54 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s GrantProjectAccessInputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s GrantProjectAccessInputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes GrantProjectAccessInputBodyAdditional from json.
func (s *GrantProjectAccessInputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode GrantProjectAccessInputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode GrantProjectAccessInputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s GrantProjectAccessInputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *GrantProjectAccessInputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode encodes GrantProjectAccessInputBodyGranteeType as json.
func (s GrantProjectAccessInputBodyGranteeType) Encode(e *jx.Encoder) {
e.Str(string(s))
55 unmodified lines
e.FieldStart("status")
e.Str(s.Status)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfGrantProjectAccessOutputBody = [2]string{
7 unmodified lines
return errors.New("invalid: unable to decode GrantProjectAccessOutputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
20 unmodified lines
return errors.Wrap(err, "decode field \"status\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s GrantProjectAccessOutputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s GrantProjectAccessOutputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes GrantProjectAccessOutputBodyAdditional from json.
func (s *GrantProjectAccessOutputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode GrantProjectAccessOutputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode GrantProjectAccessOutputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s GrantProjectAccessOutputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *GrantProjectAccessOutputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *GrantRepoAccessInputBody) Encode(e *jx.Encoder) {
e.ObjStart()
27 unmodified lines
e.FieldStart("role")
e.Str(s.Role)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfGrantRepoAccessInputBody = [5]string{
11 unmodified lines
}
var requiredBitSet [1]uint8
s.setDefaults()
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
54 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s GrantRepoAccessInputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s GrantRepoAccessInputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes GrantRepoAccessInputBodyAdditional from json.
func (s *GrantRepoAccessInputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode GrantRepoAccessInputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode GrantRepoAccessInputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s GrantRepoAccessInputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *GrantRepoAccessInputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode encodes GrantRepoAccessInputBodyGranteeType as json.
func (s GrantRepoAccessInputBodyGranteeType) Encode(e *jx.Encoder) {
e.Str(string(s))
55 unmodified lines
e.FieldStart("status")
e.Str(s.Status)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfGrantRepoAccessOutputBody = [2]string{
7 unmodified lines
return errors.New("invalid: unable to decode GrantRepoAccessOutputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
20 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s GrantRepoAccessOutputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s GrantRepoAccessOutputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes GrantRepoAccessOutputBodyAdditional from json.
func (s *GrantRepoAccessOutputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode GrantRepoAccessOutputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode GrantRepoAccessOutputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s GrantRepoAccessOutputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *GrantRepoAccessOutputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *GrantServiceAccountAccessInputBody) Encode(e *jx.Encoder) {
e.ObjStart()
21 unmodified lines
e.FieldStart("role")
e.Str(s.Role)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfGrantServiceAccountAccessInputBody = [4]string{
9 unmodified lines
return errors.New("invalid: unable to decode GrantServiceAccountAccessInputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
42 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s GrantServiceAccountAccessInputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s GrantServiceAccountAccessInputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes GrantServiceAccountAccessInputBodyAdditional from json.
func (s *GrantServiceAccountAccessInputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode GrantServiceAccountAccessInputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode GrantServiceAccountAccessInputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s GrantServiceAccountAccessInputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *GrantServiceAccountAccessInputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode encodes GrantServiceAccountAccessInputBodyResourceType as json.
func (s GrantServiceAccountAccessInputBodyResourceType) Encode(e *jx.Encoder) {
e.Str(string(s))
53 unmodified lines
e.FieldStart("status")
e.Str(s.Status)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfGrantServiceAccountAccessOutputBody = [2]string{
7 unmodified lines
return errors.New("invalid: unable to decode GrantServiceAccountAccessOutputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
20 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s GrantServiceAccountAccessOutputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s GrantServiceAccountAccessOutputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes GrantServiceAccountAccessOutputBodyAdditional from json.
func (s *GrantServiceAccountAccessOutputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode GrantServiceAccountAccessOutputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode GrantServiceAccountAccessOutputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s GrantServiceAccountAccessOutputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *GrantServiceAccountAccessOutputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *ListAuditEventsOutputBody) Encode(e *jx.Encoder) {
e.ObjStart()
17 unmodified lines
}
e.ArrEnd()
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfListAuditEventsOutputBody = [2]string{
7 unmodified lines
return errors.New("invalid: unable to decode ListAuditEventsOutputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
26 unmodified lines
return errors.Wrap(err, "decode field \"events\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s ListAuditEventsOutputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s ListAuditEventsOutputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes ListAuditEventsOutputBodyAdditional from json.
func (s *ListAuditEventsOutputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode ListAuditEventsOutputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode ListAuditEventsOutputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s ListAuditEventsOutputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ListAuditEventsOutputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *ListBindingsOutputBody) Encode(e *jx.Encoder) {
e.ObjStart()
17 unmodified lines
}
e.ArrEnd()
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfListBindingsOutputBody = [2]string{
7 unmodified lines
return errors.New("invalid: unable to decode ListBindingsOutputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
26 unmodified lines
return errors.Wrap(err, "decode field \"bindings\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s ListBindingsOutputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s ListBindingsOutputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes ListBindingsOutputBodyAdditional from json.
func (s *ListBindingsOutputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode ListBindingsOutputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode ListBindingsOutputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s ListBindingsOutputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ListBindingsOutputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *ListMirrorsOutputBody) Encode(e *jx.Encoder) {
e.ObjStart()
17 unmodified lines
}
e.ArrEnd()
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfListMirrorsOutputBody = [2]string{
7 unmodified lines
return errors.New("invalid: unable to decode ListMirrorsOutputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
26 unmodified lines
return errors.Wrap(err, "decode field \"mirrors\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s ListMirrorsOutputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s ListMirrorsOutputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes ListMirrorsOutputBodyAdditional from json.
func (s *ListMirrorsOutputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode ListMirrorsOutputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode ListMirrorsOutputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s ListMirrorsOutputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ListMirrorsOutputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *ListOIDCProvidersOutputBody) Encode(e *jx.Encoder) {
e.ObjStart()
17 unmodified lines
}
e.ArrEnd()
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfListOIDCProvidersOutputBody = [2]string{
7 unmodified lines
return errors.New("invalid: unable to decode ListOIDCProvidersOutputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
26 unmodified lines
return errors.Wrap(err, "decode field \"providers\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s ListOIDCProvidersOutputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s ListOIDCProvidersOutputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes ListOIDCProvidersOutputBodyAdditional from json.
func (s *ListOIDCProvidersOutputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode ListOIDCProvidersOutputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode ListOIDCProvidersOutputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s ListOIDCProvidersOutputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ListOIDCProvidersOutputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *ListOrgMembersOutputBody) Encode(e *jx.Encoder) {
e.ObjStart()
17 unmodified lines
}
e.ArrEnd()
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfListOrgMembersOutputBody = [2]string{
7 unmodified lines
return errors.New("invalid: unable to decode ListOrgMembersOutputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
26 unmodified lines
return errors.Wrap(err, "decode field \"members\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s ListOrgMembersOutputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s ListOrgMembersOutputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes ListOrgMembersOutputBodyAdditional from json.
func (s *ListOrgMembersOutputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode ListOrgMembersOutputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode ListOrgMembersOutputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s ListOrgMembersOutputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ListOrgMembersOutputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *ListOrgProjectsOutputBody) Encode(e *jx.Encoder) {
e.ObjStart()
17 unmodified lines
}
e.ArrEnd()
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfListOrgProjectsOutputBody = [2]string{
7 unmodified lines
return errors.New("invalid: unable to decode ListOrgProjectsOutputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
26 unmodified lines
return errors.Wrap(err, "decode field \"projects\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s ListOrgProjectsOutputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s ListOrgProjectsOutputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes ListOrgProjectsOutputBodyAdditional from json.
func (s *ListOrgProjectsOutputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode ListOrgProjectsOutputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode ListOrgProjectsOutputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s ListOrgProjectsOutputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ListOrgProjectsOutputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *ListOrgsOutputBody) Encode(e *jx.Encoder) {
e.ObjStart()
17 unmodified lines
}
e.ArrEnd()
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfListOrgsOutputBody = [2]string{
7 unmodified lines
return errors.New("invalid: unable to decode ListOrgsOutputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
26 unmodified lines
return errors.Wrap(err, "decode field \"orgs\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s ListOrgsOutputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s ListOrgsOutputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes ListOrgsOutputBodyAdditional from json.
func (s *ListOrgsOutputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode ListOrgsOutputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode ListOrgsOutputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s ListOrgsOutputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ListOrgsOutputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *ListProjectMembersOutputBody) Encode(e *jx.Encoder) {
e.ObjStart()
17 unmodified lines
}
e.ArrEnd()
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfListProjectMembersOutputBody = [2]string{
7 unmodified lines
return errors.New("invalid: unable to decode ListProjectMembersOutputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
26 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s ListProjectMembersOutputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s ListProjectMembersOutputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes ListProjectMembersOutputBodyAdditional from json.
func (s *ListProjectMembersOutputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode ListProjectMembersOutputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode ListProjectMembersOutputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s ListProjectMembersOutputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ListProjectMembersOutputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *ListProjectReposOutputBody) Encode(e *jx.Encoder) {
e.ObjStart()
17 unmodified lines
}
e.ArrEnd()
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfListProjectReposOutputBody = [2]string{
7 unmodified lines
return errors.New("invalid: unable to decode ListProjectReposOutputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
26 unmodified lines
return errors.Wrap(err, "decode field \"repos\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s ListProjectReposOutputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s ListProjectReposOutputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes ListProjectReposOutputBodyAdditional from json.
func (s *ListProjectReposOutputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode ListProjectReposOutputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode ListProjectReposOutputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s ListProjectReposOutputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ListProjectReposOutputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *ListProjectsOutputBody) Encode(e *jx.Encoder) {
e.ObjStart()
25 unmodified lines
e.ArrEnd()
}
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfListProjectsOutputBody = [3]string{
7 unmodified lines
if s == nil {
return errors.New("invalid: unable to decode ListProjectsOutputBody to nil")
}
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
35 unmodified lines
return errors.Wrap(err, "decode field \"projects\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
16 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s ListProjectsOutputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s ListProjectsOutputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes ListProjectsOutputBodyAdditional from json.
func (s *ListProjectsOutputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode ListProjectsOutputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode ListProjectsOutputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s ListProjectsOutputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ListProjectsOutputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *ListServiceAccountGrantsOutputBody) Encode(e *jx.Encoder) {
e.ObjStart()
17 unmodified lines
}
e.ArrEnd()
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfListServiceAccountGrantsOutputBody = [2]string{
7 unmodified lines
return errors.New("invalid: unable to decode ListServiceAccountGrantsOutputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
26 unmodified lines
return errors.Wrap(err, "decode field \"grants\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s ListServiceAccountGrantsOutputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s ListServiceAccountGrantsOutputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes ListServiceAccountGrantsOutputBodyAdditional from json.
func (s *ListServiceAccountGrantsOutputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode ListServiceAccountGrantsOutputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode ListServiceAccountGrantsOutputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s ListServiceAccountGrantsOutputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ListServiceAccountGrantsOutputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *ListServiceAccountsOutputBody) Encode(e *jx.Encoder) {
e.ObjStart()
17 unmodified lines
}
e.ArrEnd()
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfListServiceAccountsOutputBody = [2]string{
7 unmodified lines
return errors.New("invalid: unable to decode ListServiceAccountsOutputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
26 unmodified lines
return errors.Wrap(err, "decode field \"serviceAccounts\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s ListServiceAccountsOutputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s ListServiceAccountsOutputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes ListServiceAccountsOutputBodyAdditional from json.
func (s *ListServiceAccountsOutputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode ListServiceAccountsOutputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode ListServiceAccountsOutputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s ListServiceAccountsOutputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ListServiceAccountsOutputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *LookupRef) Encode(e *jx.Encoder) {
e.ObjStart()
11 unmodified lines
e.FieldStart("type")
e.Str(s.Type)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfLookupRef = [2]string{
7 unmodified lines
return errors.New("invalid: unable to decode LookupRef to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
22 unmodified lines
return errors.Wrap(err, "decode field \"type\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s LookupRefAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s LookupRefAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes LookupRefAdditional from json.
func (s *LookupRefAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode LookupRefAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode LookupRefAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s LookupRefAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *LookupRefAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *LookupRefResult) Encode(e *jx.Encoder) {
e.ObjStart()
41 unmodified lines
s.URL.Encode(e)
}
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfLookupRefResult = [7]string{
12 unmodified lines
return errors.New("invalid: unable to decode LookupRefResult to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
72 unmodified lines
return errors.Wrap(err, "decode field \"url\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s LookupRefResultAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s LookupRefResultAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes LookupRefResultAdditional from json.
func (s *LookupRefResultAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode LookupRefResultAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode LookupRefResultAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s LookupRefResultAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *LookupRefResultAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode encodes LookupRefResultOwnerType as json.
func (s LookupRefResultOwnerType) Encode(e *jx.Encoder) {
e.Str(string(s))
79 unmodified lines
e.ArrEnd()
}
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfLookupResourcesOutputBody = [5]string{
10 unmodified lines
return errors.New("invalid: unable to decode LookupResourcesOutputBody to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
66 unmodified lines
return errors.Wrap(err, "decode field \"resources\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s LookupResourcesOutputBodyAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s LookupResourcesOutputBodyAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes LookupResourcesOutputBodyAdditional from json.
func (s *LookupResourcesOutputBodyAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode LookupResourcesOutputBodyAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode LookupResourcesOutputBodyAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s LookupResourcesOutputBodyAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *LookupResourcesOutputBodyAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *MeAuth) Encode(e *jx.Encoder) {
e.ObjStart()
11 unmodified lines
e.FieldStart("providerUserId")
e.Str(s.ProviderUserId)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfMeAuth = [2]string{
7 unmodified lines
return errors.New("invalid: unable to decode MeAuth to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
22 unmodified lines
return errors.Wrap(err, "decode field \"providerUserId\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s MeAuthAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s MeAuthAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes MeAuthAdditional from json.
func (s *MeAuthAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode MeAuthAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode MeAuthAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s MeAuthAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *MeAuthAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *MeGlobal) Encode(e *jx.Encoder) {
e.ObjStart()
33 unmodified lines
s.HomeJurisdiction.Encode(e)
}
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfMeGlobal = [5]string{
10 unmodified lines
return errors.New("invalid: unable to decode MeGlobal to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
58 unmodified lines
return errors.Wrap(err, "decode field \"homeJurisdiction\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s MeGlobalAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s MeGlobalAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes MeGlobalAdditional from json.
func (s *MeGlobalAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode MeGlobalAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode MeGlobalAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s MeGlobalAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *MeGlobalAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *MeIdentityHandle) Encode(e *jx.Encoder) {
e.ObjStart()
15 unmodified lines
e.FieldStart("providerUserId")
e.Str(s.ProviderUserId)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfMeIdentityHandle = [3]string{
8 unmodified lines
return errors.New("invalid: unable to decode MeIdentityHandle to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
34 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s MeIdentityHandleAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s MeIdentityHandleAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes MeIdentityHandleAdditional from json.
func (s *MeIdentityHandleAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode MeIdentityHandleAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode MeIdentityHandleAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s MeIdentityHandleAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *MeIdentityHandleAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *MeRegional) Encode(e *jx.Encoder) {
e.ObjStart()
33 unmodified lines
s.Location.Encode(e)
}
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfMeRegional = [5]string{
9 unmodified lines
if s == nil {
return errors.New("invalid: unable to decode MeRegional to nil")
}
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
48 unmodified lines
return errors.Wrap(err, "decode field \"location\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
16 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s MeRegionalAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s MeRegionalAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes MeRegionalAdditional from json.
func (s *MeRegionalAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode MeRegionalAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode MeRegionalAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s MeRegionalAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *MeRegionalAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *MeRegionalUnavailable) Encode(e *jx.Encoder) {
e.ObjStart()
19 unmodified lines
e.FieldStart("message")
e.Str(s.Message)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfMeRegionalUnavailable = [4]string{
9 unmodified lines
return errors.New("invalid: unable to decode MeRegionalUnavailable to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
44 unmodified lines
return errors.Wrap(err, "decode field \"message\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s MeRegionalUnavailableAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s MeRegionalUnavailableAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes MeRegionalUnavailableAdditional from json.
func (s *MeRegionalUnavailableAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode MeRegionalUnavailableAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode MeRegionalUnavailableAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s MeRegionalUnavailableAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *MeRegionalUnavailableAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode encodes MeRegionalUnavailableError as json.
func (s MeRegionalUnavailableError) Encode(e *jx.Encoder) {
e.Str(string(s))
77 unmodified lines
s.WorkosOrgMembershipId.Encode(e)
}
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfMembership = [8]string{
13 unmodified lines
return errors.New("invalid: unable to decode Membership to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
90 unmodified lines
return errors.Wrap(err, "decode field \"workosOrgMembershipId\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s MembershipAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s MembershipAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes MembershipAdditional from json.
func (s *MembershipAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode MembershipAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode MembershipAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s MembershipAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *MembershipAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *Mirror) Encode(e *jx.Encoder) {
e.ObjStart()
63 unmodified lines
s.SuspendedAt.Encode(e, json.EncodeDateTime)
}
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfMirror = [12]string{
17 unmodified lines
return errors.New("invalid: unable to decode Mirror to nil")
}
var requiredBitSet [2]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
130 unmodified lines
return errors.Wrap(err, "decode field \"suspendedAt\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
49 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s MirrorAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s MirrorAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes MirrorAdditional from json.
func (s *MirrorAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode MirrorAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode MirrorAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s MirrorAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *MirrorAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *OIDCProvider) Encode(e *jx.Encoder) {
e.ObjStart()
23 unmodified lines
e.FieldStart("issuer")
e.Str(s.Issuer)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfOIDCProvider = [4]string{
9 unmodified lines
return errors.New("invalid: unable to decode OIDCProvider to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
42 unmodified lines
return errors.Wrap(err, "decode field \"issuer\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s OIDCProviderAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s OIDCProviderAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes OIDCProviderAdditional from json.
func (s *OIDCProviderAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode OIDCProviderAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode OIDCProviderAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s OIDCProviderAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *OIDCProviderAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode encodes AddOrgMemberInputBodyRole as json.
func (o OptAddOrgMemberInputBodyRole) Encode(e *jx.Encoder) {
if !o.Set {
637 unmodified lines
s.WorkosOrganizationId.Encode(e)
}
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfOrg = [6]string{
11 unmodified lines
return errors.New("invalid: unable to decode Org to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
66 unmodified lines
return errors.Wrap(err, "decode field \"workosOrganizationId\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s OrgAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s OrgAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes OrgAdditional from json.
func (s *OrgAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode OrgAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode OrgAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s OrgAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *OrgAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *Project) Encode(e *jx.Encoder) {
e.ObjStart()
33 unmodified lines
e.FieldStart("region")
e.Str(s.Region)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfProject = [7]string{
12 unmodified lines
return errors.New("invalid: unable to decode Project to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
78 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s ProjectAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s ProjectAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes ProjectAdditional from json.
func (s *ProjectAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode ProjectAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode ProjectAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s ProjectAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ProjectAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *ProjectGrant) Encode(e *jx.Encoder) {
e.ObjStart()
15 unmodified lines
e.FieldStart("role")
e.Str(s.Role)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfProjectGrant = [3]string{
8 unmodified lines
return errors.New("invalid: unable to decode ProjectGrant to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
34 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s ProjectGrantAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s ProjectGrantAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes ProjectGrantAdditional from json.
func (s *ProjectGrantAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode ProjectGrantAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode ProjectGrantAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s ProjectGrantAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ProjectGrantAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode encodes ProjectOwnerType as json.
func (s ProjectOwnerType) Encode(e *jx.Encoder) {
e.Str(string(s))
103 unmodified lines
s.State.Encode(e)
}
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfRepo = [11]string{
16 unmodified lines
return errors.New("invalid: unable to decode Repo to nil")
}
var requiredBitSet [2]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
114 unmodified lines
return errors.Wrap(err, "decode field \"state\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
49 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s RepoAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s RepoAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes RepoAdditional from json.
func (s *RepoAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode RepoAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode RepoAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s RepoAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *RepoAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode encodes RepoObjectFormat as json.
func (s RepoObjectFormat) Encode(e *jx.Encoder) {
e.Str(string(s))
107 unmodified lines
e.FieldStart("providerUserId")
e.Str(s.ProviderUserId)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfResolvedIdentity = [5]string{
10 unmodified lines
return errors.New("invalid: unable to decode ResolvedIdentity to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
56 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s ResolvedIdentityAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s ResolvedIdentityAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes ResolvedIdentityAdditional from json.
func (s *ResolvedIdentityAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode ResolvedIdentityAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode ResolvedIdentityAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s ResolvedIdentityAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ResolvedIdentityAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *ResourceAccess) Encode(e *jx.Encoder) {
e.ObjStart()
15 unmodified lines
e.FieldStart("resourceId")
e.Str(s.ResourceId)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfResourceAccess = [2]string{
7 unmodified lines
return errors.New("invalid: unable to decode ResourceAccess to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
30 unmodified lines
return errors.Wrap(err, "decode field \"resourceId\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s ResourceAccessAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s ResourceAccessAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes ResourceAccessAdditional from json.
func (s *ResourceAccessAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode ResourceAccessAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode ResourceAccessAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s ResourceAccessAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ResourceAccessAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *ServiceAccount) Encode(e *jx.Encoder) {
e.ObjStart()
33 unmodified lines
e.FieldStart("systemManaged")
e.Bool(s.SystemManaged)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfServiceAccount = [7]string{
12 unmodified lines
return errors.New("invalid: unable to decode ServiceAccount to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
80 unmodified lines
return errors.Wrap(err, "decode field \"systemManaged\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
48 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s ServiceAccountAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s ServiceAccountAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes ServiceAccountAdditional from json.
func (s *ServiceAccountAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode ServiceAccountAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode ServiceAccountAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s ServiceAccountAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ServiceAccountAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *ServiceAccountGrant) Encode(e *jx.Encoder) {
e.ObjStart()
21 unmodified lines
e.FieldStart("role")
e.Str(s.Role)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfServiceAccountGrant = [4]string{
9 unmodified lines
return errors.New("invalid: unable to decode ServiceAccountGrant to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
44 unmodified lines
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s ServiceAccountGrantAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s ServiceAccountGrantAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes ServiceAccountGrantAdditional from json.
func (s *ServiceAccountGrantAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode ServiceAccountGrantAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode ServiceAccountGrantAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s ServiceAccountGrantAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ServiceAccountGrantAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s *ServiceAccountWithGrants) Encode(e *jx.Encoder) {
e.ObjStart()
35 unmodified lines
e.FieldStart("systemManaged")
e.Bool(s.SystemManaged)
}
for k, elem := range s.AdditionalProps {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
var jsonFieldsNameOfServiceAccountWithGrants = [7]string{
12 unmodified lines
return errors.New("invalid: unable to decode ServiceAccountWithGrants to nil")
}
var requiredBitSet [1]uint8
s.AdditionalProps = map[string]jx.Raw{}
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
switch string(k) {
90 unmodified lines
return errors.Wrap(err, "decode field \"systemManaged\"")
}
default:
return errors.Errorf("unexpected field %q", k)
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
s.AdditionalProps[string(k)] = elem
}
return nil
}); err != nil {
47 unmodified lines
d := jx.DecodeBytes(data)
return s.Decode(d)
}
// Encode implements json.Marshaler.
func (s ServiceAccountWithGrantsAdditional) Encode(e *jx.Encoder) {
e.ObjStart()
s.encodeFields(e)
e.ObjEnd()
}
// encodeFields implements json.Marshaler.
func (s ServiceAccountWithGrantsAdditional) encodeFields(e *jx.Encoder) {
for k, elem := range s {
e.FieldStart(k)
if len(elem) != 0 {
e.Raw(elem)
}
}
}
// Decode decodes ServiceAccountWithGrantsAdditional from json.
func (s *ServiceAccountWithGrantsAdditional) Decode(d *jx.Decoder) error {
if s == nil {
return errors.New("invalid: unable to decode ServiceAccountWithGrantsAdditional to nil")
}
m := s.init()
if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
var elem jx.Raw
if err := func() error {
v, err := d.RawAppend(nil)
elem = jx.Raw(v)
if err != nil {
return err
}
return nil
}(); err != nil {
return errors.Wrapf(err, "decode field %q", k)
}
m[string(k)] = elem
return nil
}); err != nil {
return errors.Wrap(err, "decode ServiceAccountWithGrantsAdditional")
}
return nil
}
// MarshalJSON implements stdjson.Marshaler.
func (s ServiceAccountWithGrantsAdditional) MarshalJSON() ([]byte, error) {
e := jx.Encoder{}
s.Encode(&e)
return e.Bytes(), nil
}
// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ServiceAccountWithGrantsAdditional) UnmarshalJSON(data []byte) error {
d := jx.DecodeBytes(data)
return s.Decode(d)
}
Minternal/coreapi/oas_json_gen.go+4212/-54
21 unmodified lines
22
23
24
25
25
26
27
28
29
16 unmodified lines
46
47
48
49
50
51
52
53
54
55
56
14 unmodified lines
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
49 unmodified lines
142
143
144
123
124
125
145
146
147
148
149
150
151
26 unmodified lines
178
179
180
181
182
183
184
185
186
187
188
24 unmodified lines
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
8 unmodified lines
243
244
245
202
203
246
247
248
249
250
251
6 unmodified lines
258
259
260
261
262
263
264
265
266
267
268
4 unmodified lines
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
229
230
295
296
297
298
299
300
6 unmodified lines
307
308
309
310
311
312
313
314
315
316
317
4 unmodified lines
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
28 unmodified lines
372
373
374
375
376
377
378
26 unmodified lines
405
406
407
408
409
410
411
412
413
414
415
24 unmodified lines
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
1 unmodified line
463
464
465
466
467
468
469
11 unmodified lines
481
482
483
484
485
486
487
488
489
490
491
9 unmodified lines
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
393
394
395
396
525
526
527
528
529
530
531
532
21 unmodified lines
554
555
556
557
558
559
560
561
562
563
564
19 unmodified lines
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
35 unmodified lines
641
642
643
490
644
645
646
647
648
11 unmodified lines
660
661
662
663
664
665
666
667
668
669
670
9 unmodified lines
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
526
527
528
529
530
702
703
704
705
706
707
708
709
710
21 unmodified lines
732
733
734
735
736
737
738
739
740
741
742
19 unmodified lines
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
44 unmodified lines
828
829
830
633
634
831
832
833
834
835
836
21 unmodified lines
858
859
860
861
862
863
864
865
866
867
868
19 unmodified lines
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
39 unmodified lines
949
950
951
732
733
734
952
953
954
955
956
957
958
11 unmodified lines
970
971
972
973
974
975
976
977
978
979
980
9 unmodified lines
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1 unmodified line
1013
1014
1015
774
775
776
777
1016
1017
1018
1019
1020
1021
1022
1023
26 unmodified lines
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
24 unmodified lines
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
47 unmodified lines
1154
1155
1156
893
1157
1158
1159
1160
1161
11 unmodified lines
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
9 unmodified lines
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
10 unmodified lines
1225
1226
1227
942
1228
1229
1230
1231
1232
31 unmodified lines
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
29 unmodified lines
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
30 unmodified lines
1356
1357
1358
1359
1360
1361
1362
31 unmodified lines
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
29 unmodified lines
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
45 unmodified lines
1501
1502
1503
1174
1175
1176
1177
1178
1504
1505
1506
1507
1508
1509
1510
1511
1512
21 unmodified lines
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
19 unmodified lines
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
8 unmodified lines
1594
1595
1596
1245
1246
1247
1248
1249
1597
1598
1599
1600
1601
1602
1603
1604
1605
21 unmodified lines
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
19 unmodified lines
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
45 unmodified lines
1724
1725
1726
1353
1354
1727
1728
1729
1730
1731
1732
6 unmodified lines
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
4 unmodified lines
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1380
1381
1382
1383
1384
1776
1777
1778
1779
1780
1781
1782
1783
1784
21 unmodified lines
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
19 unmodified lines
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
45 unmodified lines
1903
1904
1905
1488
1489
1906
1907
1908
1909
1910
1911
6 unmodified lines
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
4 unmodified lines
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1515
1516
1517
1518
1955
1956
1957
1958
1959
1960
1961
1962
16 unmodified lines
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
14 unmodified lines
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
38 unmodified lines
2064
2065
2066
1605
1606
2067
2068
2069
2070
2071
2072
6 unmodified lines
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
4 unmodified lines
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
1632
1633
2116
2117
2118
2119
2120
2121
6 unmodified lines
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
4 unmodified lines
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
1659
1660
2165
2166
2167
2168
2169
2170
6 unmodified lines
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
4 unmodified lines
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
1686
1687
2214
2215
2216
2217
2218
2219
6 unmodified lines
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
4 unmodified lines
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
1713
1714
2263
2264
2265
2266
2267
2268
6 unmodified lines
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
4 unmodified lines
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
1740
1741
2312
2313
2314
2315
2316
2317
6 unmodified lines
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
4 unmodified lines
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
1767
1768
2361
2362
2363
2364
2365
2366
6 unmodified lines
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
4 unmodified lines
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
1794
1795
2410
2411
2412
2413
2414
2415
6 unmodified lines
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
4 unmodified lines
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
1821
1822
2459
2460
2461
2462
2463
2464
6 unmodified lines
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
4 unmodified lines
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
1848
1849
2508
2509
2510
2511
2512
2513
6 unmodified lines
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
4 unmodified lines
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
1875
1876
1877
2557
2558
2559
2560
2561
2562
2563
11 unmodified lines
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
9 unmodified lines
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
1913
1914
2617
2618
2619
2620
2621
2622
6 unmodified lines
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
4 unmodified lines
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
6 unmodified lines
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
4 unmodified lines
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
1968
2716
2717
2718
2719
2720
6 unmodified lines
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
4 unmodified lines
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
1993
1994
1995
1996
1997
1998
1999
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
31 unmodified lines
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
29 unmodified lines
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
38 unmodified lines
2905
2906
2907
2116
2117
2118
2119
2120
2908
2909
2910
2911
2912
2913
2914
2915
2916
21 unmodified lines
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
19 unmodified lines
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2175
2176
2989
2990
2991
2992
2993
2994
6 unmodified lines
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
4 unmodified lines
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
1 unmodified line
3039
3040
3041
3042
3043
3044
3045
21 unmodified lines
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
19 unmodified lines
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
2260
2261
2262
3118
3119
3120
3121
3122
3123
3124
11 unmodified lines
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
9 unmodified lines
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
2297
2298
2299
2300
2301
3177
3178
3179
3180
3181
3182
3183
3184
3185
21 unmodified lines
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
19 unmodified lines
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3 unmodified lines
3262
3263
3264
2363
3265
3266
3267
3268
3269
16 unmodified lines
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
14 unmodified lines
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
40 unmodified lines
3373
3374
3375
3376
3377
3378
3379
36 unmodified lines
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
34 unmodified lines
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
56 unmodified lines
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
54 unmodified lines
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
2674
2675
2676
2677
3642
3643
3644
3645
3646
3647
3648
3649
16 unmodified lines
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
14 unmodified lines
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
831 unmodified lines
4544
4545
4546
4547
4548
4549
4550
26 unmodified lines
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
24 unmodified lines
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
3622
3623
3624
3625
3626
3627
3628
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
31 unmodified lines
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
29 unmodified lines
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
3703
3704
3705
4737
4738
4739
4740
4741
4742
4743
11 unmodified lines
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
9 unmodified lines
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
52 unmodified lines
4849
4850
4851
4852
4853
4854
4855
51 unmodified lines
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
49 unmodified lines
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
86 unmodified lines
5075
5076
5077
4000
4001
4002
4003
4004
5078
5079
5080
5081
5082
5083
5084
5085
5086
21 unmodified lines
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
19 unmodified lines
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
4059
4060
5159
5160
5161
5162
5163
5164
6 unmodified lines
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
4 unmodified lines
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
47 unmodified lines
5255
5256
5257
4136
4137
4138
4139
4140
4141
4142
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
31 unmodified lines
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
29 unmodified lines
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
4217
4218
4219
4220
5361
5362
5363
5364
5365
5366
5367
5368
16 unmodified lines
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
14 unmodified lines
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
4265
4266
4267
4268
4269
4270
4271
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
31 unmodified lines
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
29 unmodified lines
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
21 unmodified lines
Provider string `json:"provider"`
ProviderUserId string `json:"providerUserId"`
// Role at the org; defaults to member.
Role OptAddOrgMemberInputBodyRole `json:"role"`
Role OptAddOrgMemberInputBodyRole `json:"role"`
AdditionalProps AddOrgMemberInputBodyAdditional
}
// GetSchema returns the value of Schema.
16 unmodified lines
return s.Role
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *AddOrgMemberInputBody) GetAdditionalProps() AddOrgMemberInputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *AddOrgMemberInputBody) SetSchema(val OptURI) {
s.Schema = val
14 unmodified lines
s.Role = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *AddOrgMemberInputBody) SetAdditionalProps(val AddOrgMemberInputBodyAdditional) {
s.AdditionalProps = val
}
type AddOrgMemberInputBodyAdditional map[string]jx.Raw
func (s *AddOrgMemberInputBodyAdditional) init() AddOrgMemberInputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Role at the org; defaults to member.
type AddOrgMemberInputBodyRole string
49 unmodified lines
EventType string `json:"eventType"`
ID string `json:"id"`
// Source IP recorded when the event was logged.
IpAddress OptString `json:"ipAddress"`
Metadata OptAuditEventMetadata `json:"metadata"`
OccurredAt time.Time `json:"occurredAt"`
IpAddress OptString `json:"ipAddress"`
Metadata OptAuditEventMetadata `json:"metadata"`
OccurredAt time.Time `json:"occurredAt"`
AdditionalProps AuditEventAdditional
}
// GetActorId returns the value of ActorId.
26 unmodified lines
return s.OccurredAt
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *AuditEvent) GetAdditionalProps() AuditEventAdditional {
return s.AdditionalProps
}
// SetActorId sets the value of ActorId.
func (s *AuditEvent) SetActorId(val string) {
s.ActorId = val
24 unmodified lines
s.OccurredAt = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *AuditEvent) SetAdditionalProps(val AuditEventAdditional) {
s.AdditionalProps = val
}
type AuditEventAdditional map[string]jx.Raw
func (s *AuditEventAdditional) init() AuditEventAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
type AuditEventMetadata map[string]jx.Raw
func (s *AuditEventMetadata) init() AuditEventMetadata {
8 unmodified lines
// Ref: #/components/schemas/BatchLookupInputBody
type BatchLookupInputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
Refs []LookupRef `json:"refs"`
Schema OptURI `json:"$schema"`
Refs []LookupRef `json:"refs"`
AdditionalProps BatchLookupInputBodyAdditional
}
// GetSchema returns the value of Schema.
6 unmodified lines
return s.Refs
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *BatchLookupInputBody) GetAdditionalProps() BatchLookupInputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *BatchLookupInputBody) SetSchema(val OptURI) {
s.Schema = val
4 unmodified lines
s.Refs = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *BatchLookupInputBody) SetAdditionalProps(val BatchLookupInputBodyAdditional) {
s.AdditionalProps = val
}
type BatchLookupInputBodyAdditional map[string]jx.Raw
func (s *BatchLookupInputBodyAdditional) init() BatchLookupInputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/BatchLookupOutputBody
type BatchLookupOutputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
Refs []LookupRefResult `json:"refs"`
Schema OptURI `json:"$schema"`
Refs []LookupRefResult `json:"refs"`
AdditionalProps BatchLookupOutputBodyAdditional
}
// GetSchema returns the value of Schema.
6 unmodified lines
return s.Refs
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *BatchLookupOutputBody) GetAdditionalProps() BatchLookupOutputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *BatchLookupOutputBody) SetSchema(val OptURI) {
s.Schema = val
4 unmodified lines
s.Refs = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *BatchLookupOutputBody) SetAdditionalProps(val BatchLookupOutputBodyAdditional) {
s.AdditionalProps = val
}
type BatchLookupOutputBodyAdditional map[string]jx.Raw
func (s *BatchLookupOutputBodyAdditional) init() BatchLookupOutputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
type BearerAuth struct {
Token string
Roles []string
28 unmodified lines
CreatedAt time.Time `json:"createdAt"`
ID string `json:"id"`
ProviderId string `json:"providerId"`
AdditionalProps BindingAdditional
}
// GetSchema returns the value of Schema.
26 unmodified lines
return s.ProviderId
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *Binding) GetAdditionalProps() BindingAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *Binding) SetSchema(val OptURI) {
s.Schema = val
24 unmodified lines
s.ProviderId = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *Binding) SetAdditionalProps(val BindingAdditional) {
s.AdditionalProps = val
}
type BindingAdditional map[string]jx.Raw
func (s *BindingAdditional) init() BindingAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/CreateBindingInputBody
type CreateBindingInputBody struct {
// A URL to the JSON Schema for this object.
1 unmodified line
// Exact-match key/value map; empty filter matches any token.
AttributeFilter jx.Raw `json:"attributeFilter"`
ProviderId string `json:"providerId"`
AdditionalProps CreateBindingInputBodyAdditional
}
// GetSchema returns the value of Schema.
11 unmodified lines
return s.ProviderId
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *CreateBindingInputBody) GetAdditionalProps() CreateBindingInputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *CreateBindingInputBody) SetSchema(val OptURI) {
s.Schema = val
9 unmodified lines
s.ProviderId = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *CreateBindingInputBody) SetAdditionalProps(val CreateBindingInputBodyAdditional) {
s.AdditionalProps = val
}
type CreateBindingInputBodyAdditional map[string]jx.Raw
func (s *CreateBindingInputBodyAdditional) init() CreateBindingInputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/CreateMirrorInputBody
type CreateMirrorInputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
// DNS host of the destination cluster.
ClusterHost string `json:"clusterHost"`
Owner string `json:"owner"`
Provider CreateMirrorInputBodyProvider `json:"provider"`
Repo string `json:"repo"`
ClusterHost string `json:"clusterHost"`
Owner string `json:"owner"`
Provider CreateMirrorInputBodyProvider `json:"provider"`
Repo string `json:"repo"`
AdditionalProps CreateMirrorInputBodyAdditional
}
// GetSchema returns the value of Schema.
21 unmodified lines
return s.Repo
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *CreateMirrorInputBody) GetAdditionalProps() CreateMirrorInputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *CreateMirrorInputBody) SetSchema(val OptURI) {
s.Schema = val
19 unmodified lines
s.Repo = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *CreateMirrorInputBody) SetAdditionalProps(val CreateMirrorInputBodyAdditional) {
s.AdditionalProps = val
}
type CreateMirrorInputBodyAdditional map[string]jx.Raw
func (s *CreateMirrorInputBodyAdditional) init() CreateMirrorInputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
type CreateMirrorInputBodyProvider string
const (
35 unmodified lines
// Display name.
Name string `json:"name"`
// Jurisdiction slug; defaults to the server's home jurisdiction.
Region OptString `json:"region"`
Region OptString `json:"region"`
AdditionalProps CreateOrgInputBodyAdditional
}
// GetSchema returns the value of Schema.
11 unmodified lines
return s.Region
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *CreateOrgInputBody) GetAdditionalProps() CreateOrgInputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *CreateOrgInputBody) SetSchema(val OptURI) {
s.Schema = val
9 unmodified lines
s.Region = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *CreateOrgInputBody) SetAdditionalProps(val CreateOrgInputBodyAdditional) {
s.AdditionalProps = val
}
type CreateOrgInputBodyAdditional map[string]jx.Raw
func (s *CreateOrgInputBodyAdditional) init() CreateOrgInputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/CreateProjectInputBody
type CreateProjectInputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
Name string `json:"name"`
OwnerId string `json:"ownerId"`
OwnerType CreateProjectInputBodyOwnerType `json:"ownerType"`
Region OptString `json:"region"`
Schema OptURI `json:"$schema"`
Name string `json:"name"`
OwnerId string `json:"ownerId"`
OwnerType CreateProjectInputBodyOwnerType `json:"ownerType"`
Region OptString `json:"region"`
AdditionalProps CreateProjectInputBodyAdditional
}
// GetSchema returns the value of Schema.
21 unmodified lines
return s.Region
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *CreateProjectInputBody) GetAdditionalProps() CreateProjectInputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *CreateProjectInputBody) SetSchema(val OptURI) {
s.Schema = val
19 unmodified lines
s.Region = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *CreateProjectInputBody) SetAdditionalProps(val CreateProjectInputBodyAdditional) {
s.AdditionalProps = val
}
type CreateProjectInputBodyAdditional map[string]jx.Raw
func (s *CreateProjectInputBodyAdditional) init() CreateProjectInputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
type CreateProjectInputBodyOwnerType string
const (
44 unmodified lines
ClusterHost OptString `json:"clusterHost"`
Name string `json:"name"`
// Hash format; defaults to sha1.
ObjectFormat OptCreateRepoInputBodyObjectFormat `json:"objectFormat"`
ProjectId string `json:"projectId"`
ObjectFormat OptCreateRepoInputBodyObjectFormat `json:"objectFormat"`
ProjectId string `json:"projectId"`
AdditionalProps CreateRepoInputBodyAdditional
}
// GetSchema returns the value of Schema.
21 unmodified lines
return s.ProjectId
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *CreateRepoInputBody) GetAdditionalProps() CreateRepoInputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *CreateRepoInputBody) SetSchema(val OptURI) {
s.Schema = val
19 unmodified lines
s.ProjectId = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *CreateRepoInputBody) SetAdditionalProps(val CreateRepoInputBodyAdditional) {
s.AdditionalProps = val
}
type CreateRepoInputBodyAdditional map[string]jx.Raw
func (s *CreateRepoInputBodyAdditional) init() CreateRepoInputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Hash format; defaults to sha1.
type CreateRepoInputBodyObjectFormat string
39 unmodified lines
// Ref: #/components/schemas/CreateServiceAccountInputBody
type CreateServiceAccountInputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
Name string `json:"name"`
OrgId string `json:"orgId"`
Schema OptURI `json:"$schema"`
Name string `json:"name"`
OrgId string `json:"orgId"`
AdditionalProps CreateServiceAccountInputBodyAdditional
}
// GetSchema returns the value of Schema.
11 unmodified lines
return s.OrgId
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *CreateServiceAccountInputBody) GetAdditionalProps() CreateServiceAccountInputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *CreateServiceAccountInputBody) SetSchema(val OptURI) {
s.Schema = val
9 unmodified lines
s.OrgId = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *CreateServiceAccountInputBody) SetAdditionalProps(val CreateServiceAccountInputBodyAdditional) {
s.AdditionalProps = val
}
type CreateServiceAccountInputBodyAdditional map[string]jx.Raw
func (s *CreateServiceAccountInputBodyAdditional) init() CreateServiceAccountInputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/CreatedMirror
type CreatedMirror struct {
// A URL to the JSON Schema for this object.
1 unmodified line
// True on fresh creation; false when an existing mirror was returned.
Created bool `json:"created"`
// True when the upstream has no refs to clone.
Empty bool `json:"empty"`
MirrorId string `json:"mirrorId"`
MirrorUrl string `json:"mirrorUrl"`
PublicUrl string `json:"publicUrl"`
Empty bool `json:"empty"`
MirrorId string `json:"mirrorId"`
MirrorUrl string `json:"mirrorUrl"`
PublicUrl string `json:"publicUrl"`
AdditionalProps CreatedMirrorAdditional
}
// GetSchema returns the value of Schema.
26 unmodified lines
return s.PublicUrl
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *CreatedMirror) GetAdditionalProps() CreatedMirrorAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *CreatedMirror) SetSchema(val OptURI) {
s.Schema = val
24 unmodified lines
s.PublicUrl = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *CreatedMirror) SetAdditionalProps(val CreatedMirrorAdditional) {
s.AdditionalProps = val
}
type CreatedMirrorAdditional map[string]jx.Raw
func (s *CreatedMirrorAdditional) init() CreatedMirrorAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// DeleteBindingNoContent is response for DeleteBinding operation.
type DeleteBindingNoContent struct{}
47 unmodified lines
// Error message text.
Message OptString `json:"message"`
// The value at the given location.
Value jx.Raw `json:"value"`
Value jx.Raw `json:"value"`
AdditionalProps ErrorDetailAdditional
}
// GetLocation returns the value of Location.
11 unmodified lines
return s.Value
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *ErrorDetail) GetAdditionalProps() ErrorDetailAdditional {
return s.AdditionalProps
}
// SetLocation sets the value of Location.
func (s *ErrorDetail) SetLocation(val OptString) {
s.Location = val
9 unmodified lines
s.Value = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *ErrorDetail) SetAdditionalProps(val ErrorDetailAdditional) {
s.AdditionalProps = val
}
type ErrorDetailAdditional map[string]jx.Raw
func (s *ErrorDetailAdditional) init() ErrorDetailAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/ErrorModel
type ErrorModel struct {
// A URL to the JSON Schema for this object.
10 unmodified lines
// occurrences of the error.
Title OptString `json:"title"`
// A URI reference to human-readable documentation for the error.
Type OptURI `json:"type"`
Type OptURI `json:"type"`
AdditionalProps ErrorModelAdditional
}
// GetSchema returns the value of Schema.
31 unmodified lines
return s.Type
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *ErrorModel) GetAdditionalProps() ErrorModelAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *ErrorModel) SetSchema(val OptURI) {
s.Schema = val
29 unmodified lines
s.Type = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *ErrorModel) SetAdditionalProps(val ErrorModelAdditional) {
s.AdditionalProps = val
}
type ErrorModelAdditional map[string]jx.Raw
func (s *ErrorModelAdditional) init() ErrorModelAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// ErrorModelStatusCode wraps ErrorModel with StatusCode.
type ErrorModelStatusCode struct {
StatusCode int
30 unmodified lines
Mode OptGetMeOutputBodyMode `json:"mode"`
Regional OptMeRegional `json:"regional"`
RegionalUnavailable OptMeRegionalUnavailable `json:"regionalUnavailable"`
AdditionalProps GetMeOutputBodyAdditional
}
// GetSchema returns the value of Schema.
31 unmodified lines
return s.RegionalUnavailable
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *GetMeOutputBody) GetAdditionalProps() GetMeOutputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *GetMeOutputBody) SetSchema(val OptURI) {
s.Schema = val
29 unmodified lines
s.RegionalUnavailable = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *GetMeOutputBody) SetAdditionalProps(val GetMeOutputBodyAdditional) {
s.AdditionalProps = val
}
type GetMeOutputBodyAdditional map[string]jx.Raw
func (s *GetMeOutputBodyAdditional) init() GetMeOutputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
type GetMeOutputBodyMode string
const (
45 unmodified lines
// Ref: #/components/schemas/GetPermissionsOutputBody
type GetPermissionsOutputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
Explain OptGetPermissionsOutputBodyExplain `json:"explain"`
Permissions []string `json:"permissions"`
ResourceId string `json:"resourceId"`
ResourceType string `json:"resourceType"`
Schema OptURI `json:"$schema"`
Explain OptGetPermissionsOutputBodyExplain `json:"explain"`
Permissions []string `json:"permissions"`
ResourceId string `json:"resourceId"`
ResourceType string `json:"resourceType"`
AdditionalProps GetPermissionsOutputBodyAdditional
}
// GetSchema returns the value of Schema.
21 unmodified lines
return s.ResourceType
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *GetPermissionsOutputBody) GetAdditionalProps() GetPermissionsOutputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *GetPermissionsOutputBody) SetSchema(val OptURI) {
s.Schema = val
19 unmodified lines
s.ResourceType = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *GetPermissionsOutputBody) SetAdditionalProps(val GetPermissionsOutputBodyAdditional) {
s.AdditionalProps = val
}
type GetPermissionsOutputBodyAdditional map[string]jx.Raw
func (s *GetPermissionsOutputBodyAdditional) init() GetPermissionsOutputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
type GetPermissionsOutputBodyExplain map[string]jx.Raw
func (s *GetPermissionsOutputBodyExplain) init() GetPermissionsOutputBodyExplain {
8 unmodified lines
// Ref: #/components/schemas/GrantProjectAccessInputBody
type GrantProjectAccessInputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
GranteeType OptGrantProjectAccessInputBodyGranteeType `json:"granteeType"`
Provider string `json:"provider"`
ProviderUserId string `json:"providerUserId"`
Role string `json:"role"`
Schema OptURI `json:"$schema"`
GranteeType OptGrantProjectAccessInputBodyGranteeType `json:"granteeType"`
Provider string `json:"provider"`
ProviderUserId string `json:"providerUserId"`
Role string `json:"role"`
AdditionalProps GrantProjectAccessInputBodyAdditional
}
// GetSchema returns the value of Schema.
21 unmodified lines
return s.Role
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *GrantProjectAccessInputBody) GetAdditionalProps() GrantProjectAccessInputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *GrantProjectAccessInputBody) SetSchema(val OptURI) {
s.Schema = val
19 unmodified lines
s.Role = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *GrantProjectAccessInputBody) SetAdditionalProps(val GrantProjectAccessInputBodyAdditional) {
s.AdditionalProps = val
}
type GrantProjectAccessInputBodyAdditional map[string]jx.Raw
func (s *GrantProjectAccessInputBodyAdditional) init() GrantProjectAccessInputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
type GrantProjectAccessInputBodyGranteeType string
const (
45 unmodified lines
// Ref: #/components/schemas/GrantProjectAccessOutputBody
type GrantProjectAccessOutputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
Status string `json:"status"`
Schema OptURI `json:"$schema"`
Status string `json:"status"`
AdditionalProps GrantProjectAccessOutputBodyAdditional
}
// GetSchema returns the value of Schema.
6 unmodified lines
return s.Status
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *GrantProjectAccessOutputBody) GetAdditionalProps() GrantProjectAccessOutputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *GrantProjectAccessOutputBody) SetSchema(val OptURI) {
s.Schema = val
4 unmodified lines
s.Status = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *GrantProjectAccessOutputBody) SetAdditionalProps(val GrantProjectAccessOutputBodyAdditional) {
s.AdditionalProps = val
}
type GrantProjectAccessOutputBodyAdditional map[string]jx.Raw
func (s *GrantProjectAccessOutputBodyAdditional) init() GrantProjectAccessOutputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/GrantRepoAccessInputBody
type GrantRepoAccessInputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
GranteeType OptGrantRepoAccessInputBodyGranteeType `json:"granteeType"`
Provider string `json:"provider"`
ProviderUserId string `json:"providerUserId"`
Role string `json:"role"`
Schema OptURI `json:"$schema"`
GranteeType OptGrantRepoAccessInputBodyGranteeType `json:"granteeType"`
Provider string `json:"provider"`
ProviderUserId string `json:"providerUserId"`
Role string `json:"role"`
AdditionalProps GrantRepoAccessInputBodyAdditional
}
// GetSchema returns the value of Schema.
21 unmodified lines
return s.Role
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *GrantRepoAccessInputBody) GetAdditionalProps() GrantRepoAccessInputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *GrantRepoAccessInputBody) SetSchema(val OptURI) {
s.Schema = val
19 unmodified lines
s.Role = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *GrantRepoAccessInputBody) SetAdditionalProps(val GrantRepoAccessInputBodyAdditional) {
s.AdditionalProps = val
}
type GrantRepoAccessInputBodyAdditional map[string]jx.Raw
func (s *GrantRepoAccessInputBodyAdditional) init() GrantRepoAccessInputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
type GrantRepoAccessInputBodyGranteeType string
const (
45 unmodified lines
// Ref: #/components/schemas/GrantRepoAccessOutputBody
type GrantRepoAccessOutputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
Status string `json:"status"`
Schema OptURI `json:"$schema"`
Status string `json:"status"`
AdditionalProps GrantRepoAccessOutputBodyAdditional
}
// GetSchema returns the value of Schema.
6 unmodified lines
return s.Status
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *GrantRepoAccessOutputBody) GetAdditionalProps() GrantRepoAccessOutputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *GrantRepoAccessOutputBody) SetSchema(val OptURI) {
s.Schema = val
4 unmodified lines
s.Status = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *GrantRepoAccessOutputBody) SetAdditionalProps(val GrantRepoAccessOutputBodyAdditional) {
s.AdditionalProps = val
}
type GrantRepoAccessOutputBodyAdditional map[string]jx.Raw
func (s *GrantRepoAccessOutputBodyAdditional) init() GrantRepoAccessOutputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/GrantServiceAccountAccessInputBody
type GrantServiceAccountAccessInputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
ResourceId string `json:"resourceId"`
ResourceType GrantServiceAccountAccessInputBodyResourceType `json:"resourceType"`
Role string `json:"role"`
Schema OptURI `json:"$schema"`
ResourceId string `json:"resourceId"`
ResourceType GrantServiceAccountAccessInputBodyResourceType `json:"resourceType"`
Role string `json:"role"`
AdditionalProps GrantServiceAccountAccessInputBodyAdditional
}
// GetSchema returns the value of Schema.
16 unmodified lines
return s.Role
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *GrantServiceAccountAccessInputBody) GetAdditionalProps() GrantServiceAccountAccessInputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *GrantServiceAccountAccessInputBody) SetSchema(val OptURI) {
s.Schema = val
14 unmodified lines
s.Role = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *GrantServiceAccountAccessInputBody) SetAdditionalProps(val GrantServiceAccountAccessInputBodyAdditional) {
s.AdditionalProps = val
}
type GrantServiceAccountAccessInputBodyAdditional map[string]jx.Raw
func (s *GrantServiceAccountAccessInputBodyAdditional) init() GrantServiceAccountAccessInputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
type GrantServiceAccountAccessInputBodyResourceType string
const (
38 unmodified lines
// Ref: #/components/schemas/GrantServiceAccountAccessOutputBody
type GrantServiceAccountAccessOutputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
Status string `json:"status"`
Schema OptURI `json:"$schema"`
Status string `json:"status"`
AdditionalProps GrantServiceAccountAccessOutputBodyAdditional
}
// GetSchema returns the value of Schema.
6 unmodified lines
return s.Status
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *GrantServiceAccountAccessOutputBody) GetAdditionalProps() GrantServiceAccountAccessOutputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *GrantServiceAccountAccessOutputBody) SetSchema(val OptURI) {
s.Schema = val
4 unmodified lines
s.Status = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *GrantServiceAccountAccessOutputBody) SetAdditionalProps(val GrantServiceAccountAccessOutputBodyAdditional) {
s.AdditionalProps = val
}
type GrantServiceAccountAccessOutputBodyAdditional map[string]jx.Raw
func (s *GrantServiceAccountAccessOutputBodyAdditional) init() GrantServiceAccountAccessOutputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/ListAuditEventsOutputBody
type ListAuditEventsOutputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
Events []AuditEvent `json:"events"`
Schema OptURI `json:"$schema"`
Events []AuditEvent `json:"events"`
AdditionalProps ListAuditEventsOutputBodyAdditional
}
// GetSchema returns the value of Schema.
6 unmodified lines
return s.Events
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *ListAuditEventsOutputBody) GetAdditionalProps() ListAuditEventsOutputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *ListAuditEventsOutputBody) SetSchema(val OptURI) {
s.Schema = val
4 unmodified lines
s.Events = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *ListAuditEventsOutputBody) SetAdditionalProps(val ListAuditEventsOutputBodyAdditional) {
s.AdditionalProps = val
}
type ListAuditEventsOutputBodyAdditional map[string]jx.Raw
func (s *ListAuditEventsOutputBodyAdditional) init() ListAuditEventsOutputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/ListBindingsOutputBody
type ListBindingsOutputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
Bindings []Binding `json:"bindings"`
Schema OptURI `json:"$schema"`
Bindings []Binding `json:"bindings"`
AdditionalProps ListBindingsOutputBodyAdditional
}
// GetSchema returns the value of Schema.
6 unmodified lines
return s.Bindings
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *ListBindingsOutputBody) GetAdditionalProps() ListBindingsOutputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *ListBindingsOutputBody) SetSchema(val OptURI) {
s.Schema = val
4 unmodified lines
s.Bindings = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *ListBindingsOutputBody) SetAdditionalProps(val ListBindingsOutputBodyAdditional) {
s.AdditionalProps = val
}
type ListBindingsOutputBodyAdditional map[string]jx.Raw
func (s *ListBindingsOutputBodyAdditional) init() ListBindingsOutputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/ListMirrorsOutputBody
type ListMirrorsOutputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
Mirrors []Mirror `json:"mirrors"`
Schema OptURI `json:"$schema"`
Mirrors []Mirror `json:"mirrors"`
AdditionalProps ListMirrorsOutputBodyAdditional
}
// GetSchema returns the value of Schema.
6 unmodified lines
return s.Mirrors
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *ListMirrorsOutputBody) GetAdditionalProps() ListMirrorsOutputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *ListMirrorsOutputBody) SetSchema(val OptURI) {
s.Schema = val
4 unmodified lines
s.Mirrors = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *ListMirrorsOutputBody) SetAdditionalProps(val ListMirrorsOutputBodyAdditional) {
s.AdditionalProps = val
}
type ListMirrorsOutputBodyAdditional map[string]jx.Raw
func (s *ListMirrorsOutputBodyAdditional) init() ListMirrorsOutputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/ListOIDCProvidersOutputBody
type ListOIDCProvidersOutputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
Providers []OIDCProvider `json:"providers"`
Schema OptURI `json:"$schema"`
Providers []OIDCProvider `json:"providers"`
AdditionalProps ListOIDCProvidersOutputBodyAdditional
}
// GetSchema returns the value of Schema.
6 unmodified lines
return s.Providers
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *ListOIDCProvidersOutputBody) GetAdditionalProps() ListOIDCProvidersOutputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *ListOIDCProvidersOutputBody) SetSchema(val OptURI) {
s.Schema = val
4 unmodified lines
s.Providers = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *ListOIDCProvidersOutputBody) SetAdditionalProps(val ListOIDCProvidersOutputBodyAdditional) {
s.AdditionalProps = val
}
type ListOIDCProvidersOutputBodyAdditional map[string]jx.Raw
func (s *ListOIDCProvidersOutputBodyAdditional) init() ListOIDCProvidersOutputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/ListOrgMembersOutputBody
type ListOrgMembersOutputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
Members []Membership `json:"members"`
Schema OptURI `json:"$schema"`
Members []Membership `json:"members"`
AdditionalProps ListOrgMembersOutputBodyAdditional
}
// GetSchema returns the value of Schema.
6 unmodified lines
return s.Members
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *ListOrgMembersOutputBody) GetAdditionalProps() ListOrgMembersOutputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *ListOrgMembersOutputBody) SetSchema(val OptURI) {
s.Schema = val
4 unmodified lines
s.Members = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *ListOrgMembersOutputBody) SetAdditionalProps(val ListOrgMembersOutputBodyAdditional) {
s.AdditionalProps = val
}
type ListOrgMembersOutputBodyAdditional map[string]jx.Raw
func (s *ListOrgMembersOutputBodyAdditional) init() ListOrgMembersOutputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/ListOrgProjectsOutputBody
type ListOrgProjectsOutputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
Projects []Project `json:"projects"`
Schema OptURI `json:"$schema"`
Projects []Project `json:"projects"`
AdditionalProps ListOrgProjectsOutputBodyAdditional
}
// GetSchema returns the value of Schema.
6 unmodified lines
return s.Projects
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *ListOrgProjectsOutputBody) GetAdditionalProps() ListOrgProjectsOutputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *ListOrgProjectsOutputBody) SetSchema(val OptURI) {
s.Schema = val
4 unmodified lines
s.Projects = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *ListOrgProjectsOutputBody) SetAdditionalProps(val ListOrgProjectsOutputBodyAdditional) {
s.AdditionalProps = val
}
type ListOrgProjectsOutputBodyAdditional map[string]jx.Raw
func (s *ListOrgProjectsOutputBodyAdditional) init() ListOrgProjectsOutputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/ListOrgsOutputBody
type ListOrgsOutputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
Orgs []Org `json:"orgs"`
Schema OptURI `json:"$schema"`
Orgs []Org `json:"orgs"`
AdditionalProps ListOrgsOutputBodyAdditional
}
// GetSchema returns the value of Schema.
6 unmodified lines
return s.Orgs
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *ListOrgsOutputBody) GetAdditionalProps() ListOrgsOutputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *ListOrgsOutputBody) SetSchema(val OptURI) {
s.Schema = val
4 unmodified lines
s.Orgs = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *ListOrgsOutputBody) SetAdditionalProps(val ListOrgsOutputBodyAdditional) {
s.AdditionalProps = val
}
type ListOrgsOutputBodyAdditional map[string]jx.Raw
func (s *ListOrgsOutputBodyAdditional) init() ListOrgsOutputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/ListProjectMembersOutputBody
type ListProjectMembersOutputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
Members []ProjectGrant `json:"members"`
Schema OptURI `json:"$schema"`
Members []ProjectGrant `json:"members"`
AdditionalProps ListProjectMembersOutputBodyAdditional
}
// GetSchema returns the value of Schema.
6 unmodified lines
return s.Members
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *ListProjectMembersOutputBody) GetAdditionalProps() ListProjectMembersOutputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *ListProjectMembersOutputBody) SetSchema(val OptURI) {
s.Schema = val
4 unmodified lines
s.Members = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *ListProjectMembersOutputBody) SetAdditionalProps(val ListProjectMembersOutputBodyAdditional) {
s.AdditionalProps = val
}
type ListProjectMembersOutputBodyAdditional map[string]jx.Raw
func (s *ListProjectMembersOutputBodyAdditional) init() ListProjectMembersOutputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/ListProjectReposOutputBody
type ListProjectReposOutputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
Repos []Repo `json:"repos"`
Schema OptURI `json:"$schema"`
Repos []Repo `json:"repos"`
AdditionalProps ListProjectReposOutputBodyAdditional
}
// GetSchema returns the value of Schema.
6 unmodified lines
return s.Repos
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *ListProjectReposOutputBody) GetAdditionalProps() ListProjectReposOutputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *ListProjectReposOutputBody) SetSchema(val OptURI) {
s.Schema = val
4 unmodified lines
s.Repos = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *ListProjectReposOutputBody) SetAdditionalProps(val ListProjectReposOutputBodyAdditional) {
s.AdditionalProps = val
}
type ListProjectReposOutputBodyAdditional map[string]jx.Raw
func (s *ListProjectReposOutputBodyAdditional) init() ListProjectReposOutputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/ListProjectsOutputBody
type ListProjectsOutputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
Project OptProject `json:"project"`
Projects []Project `json:"projects"`
Schema OptURI `json:"$schema"`
Project OptProject `json:"project"`
Projects []Project `json:"projects"`
AdditionalProps ListProjectsOutputBodyAdditional
}
// GetSchema returns the value of Schema.
11 unmodified lines
return s.Projects
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *ListProjectsOutputBody) GetAdditionalProps() ListProjectsOutputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *ListProjectsOutputBody) SetSchema(val OptURI) {
s.Schema = val
9 unmodified lines
s.Projects = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *ListProjectsOutputBody) SetAdditionalProps(val ListProjectsOutputBodyAdditional) {
s.AdditionalProps = val
}
type ListProjectsOutputBodyAdditional map[string]jx.Raw
func (s *ListProjectsOutputBodyAdditional) init() ListProjectsOutputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/ListServiceAccountGrantsOutputBody
type ListServiceAccountGrantsOutputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
Grants []ServiceAccountGrant `json:"grants"`
Schema OptURI `json:"$schema"`
Grants []ServiceAccountGrant `json:"grants"`
AdditionalProps ListServiceAccountGrantsOutputBodyAdditional
}
// GetSchema returns the value of Schema.
6 unmodified lines
return s.Grants
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *ListServiceAccountGrantsOutputBody) GetAdditionalProps() ListServiceAccountGrantsOutputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *ListServiceAccountGrantsOutputBody) SetSchema(val OptURI) {
s.Schema = val
4 unmodified lines
s.Grants = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *ListServiceAccountGrantsOutputBody) SetAdditionalProps(val ListServiceAccountGrantsOutputBodyAdditional) {
s.AdditionalProps = val
}
type ListServiceAccountGrantsOutputBodyAdditional map[string]jx.Raw
func (s *ListServiceAccountGrantsOutputBodyAdditional) init() ListServiceAccountGrantsOutputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/ListServiceAccountsOutputBody
type ListServiceAccountsOutputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
ServiceAccounts []ServiceAccountWithGrants `json:"serviceAccounts"`
AdditionalProps ListServiceAccountsOutputBodyAdditional
}
// GetSchema returns the value of Schema.
6 unmodified lines
return s.ServiceAccounts
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *ListServiceAccountsOutputBody) GetAdditionalProps() ListServiceAccountsOutputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *ListServiceAccountsOutputBody) SetSchema(val OptURI) {
s.Schema = val
4 unmodified lines
s.ServiceAccounts = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *ListServiceAccountsOutputBody) SetAdditionalProps(val ListServiceAccountsOutputBodyAdditional) {
s.AdditionalProps = val
}
type ListServiceAccountsOutputBodyAdditional map[string]jx.Raw
func (s *ListServiceAccountsOutputBodyAdditional) init() ListServiceAccountsOutputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/LookupRef
type LookupRef struct {
ID string `json:"id"`
// Resource type slug; "org", "project", "repo" are enriched, unknown types pass through.
Type string `json:"type"`
Type string `json:"type"`
AdditionalProps LookupRefAdditional
}
// GetID returns the value of ID.
6 unmodified lines
return s.Type
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *LookupRef) GetAdditionalProps() LookupRefAdditional {
return s.AdditionalProps
}
// SetID sets the value of ID.
func (s *LookupRef) SetID(val string) {
s.ID = val
4 unmodified lines
s.Type = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *LookupRef) SetAdditionalProps(val LookupRefAdditional) {
s.AdditionalProps = val
}
type LookupRefAdditional map[string]jx.Raw
func (s *LookupRefAdditional) init() LookupRefAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/LookupRefResult
type LookupRefResult struct {
ID string `json:"id"`
Name OptString `json:"name"`
OwnerId OptString `json:"ownerId"`
OwnerType OptLookupRefResultOwnerType `json:"ownerType"`
ProjectId OptString `json:"projectId"`
Type string `json:"type"`
URL OptString `json:"url"`
ID string `json:"id"`
Name OptString `json:"name"`
OwnerId OptString `json:"ownerId"`
OwnerType OptLookupRefResultOwnerType `json:"ownerType"`
ProjectId OptString `json:"projectId"`
Type string `json:"type"`
URL OptString `json:"url"`
AdditionalProps LookupRefResultAdditional
}
// GetID returns the value of ID.
31 unmodified lines
return s.URL
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *LookupRefResult) GetAdditionalProps() LookupRefResultAdditional {
return s.AdditionalProps
}
// SetID sets the value of ID.
func (s *LookupRefResult) SetID(val string) {
s.ID = val
29 unmodified lines
s.URL = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *LookupRefResult) SetAdditionalProps(val LookupRefResultAdditional) {
s.AdditionalProps = val
}
type LookupRefResultAdditional map[string]jx.Raw
func (s *LookupRefResultAdditional) init() LookupRefResultAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
type LookupRefResultOwnerType string
const (
38 unmodified lines
// Ref: #/components/schemas/LookupResourcesOutputBody
type LookupResourcesOutputBody struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
Permission OptString `json:"permission"`
ResourceIds []string `json:"resourceIds"`
ResourceType string `json:"resourceType"`
Resources []ResourceAccess `json:"resources"`
Schema OptURI `json:"$schema"`
Permission OptString `json:"permission"`
ResourceIds []string `json:"resourceIds"`
ResourceType string `json:"resourceType"`
Resources []ResourceAccess `json:"resources"`
AdditionalProps LookupResourcesOutputBodyAdditional
}
// GetSchema returns the value of Schema.
21 unmodified lines
return s.Resources
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *LookupResourcesOutputBody) GetAdditionalProps() LookupResourcesOutputBodyAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *LookupResourcesOutputBody) SetSchema(val OptURI) {
s.Schema = val
19 unmodified lines
s.Resources = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *LookupResourcesOutputBody) SetAdditionalProps(val LookupResourcesOutputBodyAdditional) {
s.AdditionalProps = val
}
type LookupResourcesOutputBodyAdditional map[string]jx.Raw
func (s *LookupResourcesOutputBodyAdditional) init() LookupResourcesOutputBodyAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/MeAuth
type MeAuth struct {
Provider string `json:"provider"`
ProviderUserId string `json:"providerUserId"`
Provider string `json:"provider"`
ProviderUserId string `json:"providerUserId"`
AdditionalProps MeAuthAdditional
}
// GetProvider returns the value of Provider.
6 unmodified lines
return s.ProviderUserId
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *MeAuth) GetAdditionalProps() MeAuthAdditional {
return s.AdditionalProps
}
// SetProvider sets the value of Provider.
func (s *MeAuth) SetProvider(val string) {
s.Provider = val
4 unmodified lines
s.ProviderUserId = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *MeAuth) SetAdditionalProps(val MeAuthAdditional) {
s.AdditionalProps = val
}
type MeAuthAdditional map[string]jx.Raw
func (s *MeAuthAdditional) init() MeAuthAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/MeGlobal
type MeGlobal struct {
AccountId string `json:"accountId"`
1 unmodified line
Handle OptString `json:"handle"`
Handles []MeIdentityHandle `json:"handles"`
HomeJurisdiction OptString `json:"homeJurisdiction"`
AdditionalProps MeGlobalAdditional
}
// GetAccountId returns the value of AccountId.
21 unmodified lines
return s.HomeJurisdiction
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *MeGlobal) GetAdditionalProps() MeGlobalAdditional {
return s.AdditionalProps
}
// SetAccountId sets the value of AccountId.
func (s *MeGlobal) SetAccountId(val string) {
s.AccountId = val
19 unmodified lines
s.HomeJurisdiction = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *MeGlobal) SetAdditionalProps(val MeGlobalAdditional) {
s.AdditionalProps = val
}
type MeGlobalAdditional map[string]jx.Raw
func (s *MeGlobalAdditional) init() MeGlobalAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/MeIdentityHandle
type MeIdentityHandle struct {
Handle string `json:"handle"`
Provider string `json:"provider"`
ProviderUserId string `json:"providerUserId"`
Handle string `json:"handle"`
Provider string `json:"provider"`
ProviderUserId string `json:"providerUserId"`
AdditionalProps MeIdentityHandleAdditional
}
// GetHandle returns the value of Handle.
11 unmodified lines
return s.ProviderUserId
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *MeIdentityHandle) GetAdditionalProps() MeIdentityHandleAdditional {
return s.AdditionalProps
}
// SetHandle sets the value of Handle.
func (s *MeIdentityHandle) SetHandle(val string) {
s.Handle = val
9 unmodified lines
s.ProviderUserId = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *MeIdentityHandle) SetAdditionalProps(val MeIdentityHandleAdditional) {
s.AdditionalProps = val
}
type MeIdentityHandleAdditional map[string]jx.Raw
func (s *MeIdentityHandleAdditional) init() MeIdentityHandleAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/MeRegional
type MeRegional struct {
Bio OptString `json:"bio"`
Company OptString `json:"company"`
DisplayName OptString `json:"displayName"`
Email OptString `json:"email"`
Location OptString `json:"location"`
Bio OptString `json:"bio"`
Company OptString `json:"company"`
DisplayName OptString `json:"displayName"`
Email OptString `json:"email"`
Location OptString `json:"location"`
AdditionalProps MeRegionalAdditional
}
// GetBio returns the value of Bio.
21 unmodified lines
return s.Location
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *MeRegional) GetAdditionalProps() MeRegionalAdditional {
return s.AdditionalProps
}
// SetBio sets the value of Bio.
func (s *MeRegional) SetBio(val OptString) {
s.Bio = val
19 unmodified lines
s.Location = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *MeRegional) SetAdditionalProps(val MeRegionalAdditional) {
s.AdditionalProps = val
}
type MeRegionalAdditional map[string]jx.Raw
func (s *MeRegionalAdditional) init() MeRegionalAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/MeRegionalUnavailable
type MeRegionalUnavailable struct {
// Always 'foreign_jurisdiction'. Discriminator for client-side state machines.
3 unmodified lines
// The account's home jurisdiction (e.g. 'us', 'eu').
Jurisdiction string `json:"jurisdiction"`
// Human-readable copy ready to surface in a UI.
Message string `json:"message"`
Message string `json:"message"`
AdditionalProps MeRegionalUnavailableAdditional
}
// GetError returns the value of Error.
16 unmodified lines
return s.Message
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *MeRegionalUnavailable) GetAdditionalProps() MeRegionalUnavailableAdditional {
return s.AdditionalProps
}
// SetError sets the value of Error.
func (s *MeRegionalUnavailable) SetError(val MeRegionalUnavailableError) {
s.Error = val
14 unmodified lines
s.Message = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *MeRegionalUnavailable) SetAdditionalProps(val MeRegionalUnavailableAdditional) {
s.AdditionalProps = val
}
type MeRegionalUnavailableAdditional map[string]jx.Raw
func (s *MeRegionalUnavailableAdditional) init() MeRegionalUnavailableAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Always 'foreign_jurisdiction'. Discriminator for client-side state machines.
type MeRegionalUnavailableError string
40 unmodified lines
Role string `json:"role"`
Status string `json:"status"`
WorkosOrgMembershipId OptString `json:"workosOrgMembershipId"`
AdditionalProps MembershipAdditional
}
// GetSchema returns the value of Schema.
36 unmodified lines
return s.WorkosOrgMembershipId
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *Membership) GetAdditionalProps() MembershipAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *Membership) SetSchema(val OptURI) {
s.Schema = val
34 unmodified lines
s.WorkosOrgMembershipId = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *Membership) SetAdditionalProps(val MembershipAdditional) {
s.AdditionalProps = val
}
type MembershipAdditional map[string]jx.Raw
func (s *MembershipAdditional) init() MembershipAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/Mirror
type Mirror struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
// Public host of the cluster serving this mirror.
ClusterHost string `json:"clusterHost"`
CreatedAt time.Time `json:"createdAt"`
InstallationId OptInt64 `json:"installationId"`
IsArchived OptBool `json:"isArchived"`
IsPrivate OptBool `json:"isPrivate"`
Jurisdiction OptString `json:"jurisdiction"`
MirrorId string `json:"mirrorId"`
Owner string `json:"owner"`
Provider string `json:"provider"`
Repo string `json:"repo"`
SuspendedAt OptDateTime `json:"suspendedAt"`
ClusterHost string `json:"clusterHost"`
CreatedAt time.Time `json:"createdAt"`
InstallationId OptInt64 `json:"installationId"`
IsArchived OptBool `json:"isArchived"`
IsPrivate OptBool `json:"isPrivate"`
Jurisdiction OptString `json:"jurisdiction"`
MirrorId string `json:"mirrorId"`
Owner string `json:"owner"`
Provider string `json:"provider"`
Repo string `json:"repo"`
SuspendedAt OptDateTime `json:"suspendedAt"`
AdditionalProps MirrorAdditional
}
// GetSchema returns the value of Schema.
56 unmodified lines
return s.SuspendedAt
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *Mirror) GetAdditionalProps() MirrorAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *Mirror) SetSchema(val OptURI) {
s.Schema = val
54 unmodified lines
s.SuspendedAt = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *Mirror) SetAdditionalProps(val MirrorAdditional) {
s.AdditionalProps = val
}
type MirrorAdditional map[string]jx.Raw
func (s *MirrorAdditional) init() MirrorAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/OIDCProvider
type OIDCProvider struct {
Description OptString `json:"description"`
DisplayName OptString `json:"displayName"`
ID string `json:"id"`
Issuer string `json:"issuer"`
Description OptString `json:"description"`
DisplayName OptString `json:"displayName"`
ID string `json:"id"`
Issuer string `json:"issuer"`
AdditionalProps OIDCProviderAdditional
}
// GetDescription returns the value of Description.
16 unmodified lines
return s.Issuer
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *OIDCProvider) GetAdditionalProps() OIDCProviderAdditional {
return s.AdditionalProps
}
// SetDescription sets the value of Description.
func (s *OIDCProvider) SetDescription(val OptString) {
s.Description = val
14 unmodified lines
s.Issuer = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *OIDCProvider) SetAdditionalProps(val OIDCProviderAdditional) {
s.AdditionalProps = val
}
type OIDCProviderAdditional map[string]jx.Raw
func (s *OIDCProviderAdditional) init() OIDCProviderAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// NewOptAddOrgMemberInputBodyRole returns new OptAddOrgMemberInputBodyRole with value set to v.
func NewOptAddOrgMemberInputBodyRole(v AddOrgMemberInputBodyRole) OptAddOrgMemberInputBodyRole {
return OptAddOrgMemberInputBodyRole{
831 unmodified lines
Name string `json:"name"`
Region string `json:"region"`
WorkosOrganizationId OptString `json:"workosOrganizationId"`
AdditionalProps OrgAdditional
}
// GetSchema returns the value of Schema.
26 unmodified lines
return s.WorkosOrganizationId
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *Org) GetAdditionalProps() OrgAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *Org) SetSchema(val OptURI) {
s.Schema = val
24 unmodified lines
s.WorkosOrganizationId = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *Org) SetAdditionalProps(val OrgAdditional) {
s.AdditionalProps = val
}
type OrgAdditional map[string]jx.Raw
func (s *OrgAdditional) init() OrgAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/Project
type Project struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
CreatedAt time.Time `json:"createdAt"`
ID string `json:"id"`
Name string `json:"name"`
OwnerId string `json:"ownerId"`
OwnerType ProjectOwnerType `json:"ownerType"`
Region string `json:"region"`
Schema OptURI `json:"$schema"`
CreatedAt time.Time `json:"createdAt"`
ID string `json:"id"`
Name string `json:"name"`
OwnerId string `json:"ownerId"`
OwnerType ProjectOwnerType `json:"ownerType"`
Region string `json:"region"`
AdditionalProps ProjectAdditional
}
// GetSchema returns the value of Schema.
31 unmodified lines
return s.Region
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *Project) GetAdditionalProps() ProjectAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *Project) SetSchema(val OptURI) {
s.Schema = val
29 unmodified lines
s.Region = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *Project) SetAdditionalProps(val ProjectAdditional) {
s.AdditionalProps = val
}
type ProjectAdditional map[string]jx.Raw
func (s *ProjectAdditional) init() ProjectAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/ProjectGrant
type ProjectGrant struct {
GranteeId string `json:"granteeId"`
GranteeType string `json:"granteeType"`
Role string `json:"role"`
GranteeId string `json:"granteeId"`
GranteeType string `json:"granteeType"`
Role string `json:"role"`
AdditionalProps ProjectGrantAdditional
}
// GetGranteeId returns the value of GranteeId.
11 unmodified lines
return s.Role
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *ProjectGrant) GetAdditionalProps() ProjectGrantAdditional {
return s.AdditionalProps
}
// SetGranteeId sets the value of GranteeId.
func (s *ProjectGrant) SetGranteeId(val string) {
s.GranteeId = val
9 unmodified lines
s.Role = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *ProjectGrant) SetAdditionalProps(val ProjectGrantAdditional) {
s.AdditionalProps = val
}
type ProjectGrantAdditional map[string]jx.Raw
func (s *ProjectGrantAdditional) init() ProjectGrantAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
type ProjectOwnerType string
const (
52 unmodified lines
ProvisionAttempts OptInt64 `json:"provisionAttempts"`
ProvisionReason OptString `json:"provisionReason"`
State OptRepoState `json:"state"`
AdditionalProps RepoAdditional
}
// GetSchema returns the value of Schema.
51 unmodified lines
return s.State
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *Repo) GetAdditionalProps() RepoAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *Repo) SetSchema(val OptURI) {
s.Schema = val
49 unmodified lines
s.State = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *Repo) SetAdditionalProps(val RepoAdditional) {
s.AdditionalProps = val
}
type RepoAdditional map[string]jx.Raw
func (s *RepoAdditional) init() RepoAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
type RepoObjectFormat string
const (
86 unmodified lines
// Ref: #/components/schemas/ResolvedIdentity
type ResolvedIdentity struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
AccountId string `json:"accountId"`
Handle string `json:"handle"`
Provider string `json:"provider"`
ProviderUserId string `json:"providerUserId"`
Schema OptURI `json:"$schema"`
AccountId string `json:"accountId"`
Handle string `json:"handle"`
Provider string `json:"provider"`
ProviderUserId string `json:"providerUserId"`
AdditionalProps ResolvedIdentityAdditional
}
// GetSchema returns the value of Schema.
21 unmodified lines
return s.ProviderUserId
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *ResolvedIdentity) GetAdditionalProps() ResolvedIdentityAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *ResolvedIdentity) SetSchema(val OptURI) {
s.Schema = val
19 unmodified lines
s.ProviderUserId = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *ResolvedIdentity) SetAdditionalProps(val ResolvedIdentityAdditional) {
s.AdditionalProps = val
}
type ResolvedIdentityAdditional map[string]jx.Raw
func (s *ResolvedIdentityAdditional) init() ResolvedIdentityAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/ResourceAccess
type ResourceAccess struct {
Permissions []string `json:"permissions"`
ResourceId string `json:"resourceId"`
Permissions []string `json:"permissions"`
ResourceId string `json:"resourceId"`
AdditionalProps ResourceAccessAdditional
}
// GetPermissions returns the value of Permissions.
6 unmodified lines
return s.ResourceId
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *ResourceAccess) GetAdditionalProps() ResourceAccessAdditional {
return s.AdditionalProps
}
// SetPermissions sets the value of Permissions.
func (s *ResourceAccess) SetPermissions(val []string) {
s.Permissions = val
4 unmodified lines
s.ResourceId = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *ResourceAccess) SetAdditionalProps(val ResourceAccessAdditional) {
s.AdditionalProps = val
}
type ResourceAccessAdditional map[string]jx.Raw
func (s *ResourceAccessAdditional) init() ResourceAccessAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// RevokeProjectAccessByProviderNoContent is response for RevokeProjectAccessByProvider operation.
type RevokeProjectAccessByProviderNoContent struct{}
47 unmodified lines
// Ref: #/components/schemas/ServiceAccount
type ServiceAccount struct {
// A URL to the JSON Schema for this object.
Schema OptURI `json:"$schema"`
AccountId string `json:"accountId"`
CreatedAt time.Time `json:"createdAt"`
Name string `json:"name"`
OrgId string `json:"orgId"`
Status string `json:"status"`
SystemManaged bool `json:"systemManaged"`
Schema OptURI `json:"$schema"`
AccountId string `json:"accountId"`
CreatedAt time.Time `json:"createdAt"`
Name string `json:"name"`
OrgId string `json:"orgId"`
Status string `json:"status"`
SystemManaged bool `json:"systemManaged"`
AdditionalProps ServiceAccountAdditional
}
// GetSchema returns the value of Schema.
31 unmodified lines
return s.SystemManaged
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *ServiceAccount) GetAdditionalProps() ServiceAccountAdditional {
return s.AdditionalProps
}
// SetSchema sets the value of Schema.
func (s *ServiceAccount) SetSchema(val OptURI) {
s.Schema = val
29 unmodified lines
s.SystemManaged = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *ServiceAccount) SetAdditionalProps(val ServiceAccountAdditional) {
s.AdditionalProps = val
}
type ServiceAccountAdditional map[string]jx.Raw
func (s *ServiceAccountAdditional) init() ServiceAccountAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/ServiceAccountGrant
type ServiceAccountGrant struct {
ResourceId string `json:"resourceId"`
ResourceName OptString `json:"resourceName"`
ResourceType string `json:"resourceType"`
Role string `json:"role"`
ResourceId string `json:"resourceId"`
ResourceName OptString `json:"resourceName"`
ResourceType string `json:"resourceType"`
Role string `json:"role"`
AdditionalProps ServiceAccountGrantAdditional
}
// GetResourceId returns the value of ResourceId.
16 unmodified lines
return s.Role
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *ServiceAccountGrant) GetAdditionalProps() ServiceAccountGrantAdditional {
return s.AdditionalProps
}
// SetResourceId sets the value of ResourceId.
func (s *ServiceAccountGrant) SetResourceId(val string) {
s.ResourceId = val
14 unmodified lines
s.Role = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *ServiceAccountGrant) SetAdditionalProps(val ServiceAccountGrantAdditional) {
s.AdditionalProps = val
}
type ServiceAccountGrantAdditional map[string]jx.Raw
func (s *ServiceAccountGrantAdditional) init() ServiceAccountGrantAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/ServiceAccountWithGrants
type ServiceAccountWithGrants struct {
AccountId string `json:"accountId"`
CreatedAt time.Time `json:"createdAt"`
Grants []string `json:"grants"`
Name string `json:"name"`
OrgId string `json:"orgId"`
Status string `json:"status"`
SystemManaged bool `json:"systemManaged"`
AccountId string `json:"accountId"`
CreatedAt time.Time `json:"createdAt"`
Grants []string `json:"grants"`
Name string `json:"name"`
OrgId string `json:"orgId"`
Status string `json:"status"`
SystemManaged bool `json:"systemManaged"`
AdditionalProps ServiceAccountWithGrantsAdditional
}
// GetAccountId returns the value of AccountId.
31 unmodified lines
return s.SystemManaged
}
// GetAdditionalProps returns the value of AdditionalProps.
func (s *ServiceAccountWithGrants) GetAdditionalProps() ServiceAccountWithGrantsAdditional {
return s.AdditionalProps
}
// SetAccountId sets the value of AccountId.
func (s *ServiceAccountWithGrants) SetAccountId(val string) {
s.AccountId = val
29 unmodified lines
s.SystemManaged = val
}
// SetAdditionalProps sets the value of AdditionalProps.
func (s *ServiceAccountWithGrants) SetAdditionalProps(val ServiceAccountWithGrantsAdditional) {
s.AdditionalProps = val
}
type ServiceAccountWithGrantsAdditional map[string]jx.Raw
func (s *ServiceAccountWithGrantsAdditional) init() ServiceAccountWithGrantsAdditional {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
type SessionAuth struct {
APIKey string
Roles []string
Minternal/coreapi/oas_schemas_gen.go+1339/-151
1 unmodified line
2
3
4
5
5
6
7
8
30 unmodified lines
39
40
41
42
42
43
44
45
26 unmodified lines
72
73
74
75
75
76
77
78
19 unmodified lines
98
99
100
101
101
102
103
104
17 unmodified lines
122
123
124
125
125
126
127
128
29 unmodified lines
158
159
160
161
161
162
163
164
18 unmodified lines
183
184
185
186
186
187
188
189
33 unmodified lines
223
224
225
226
226
227
228
229
21 unmodified lines
251
252
253
254
254
255
256
257
32 unmodified lines
290
291
292
293
293
294
295
296
32 unmodified lines
329
330
331
332
332
333
334
335
20 unmodified lines
356
357
358
359
359
360
361
362
32 unmodified lines
395
396
397
398
398
399
400
401
10 unmodified lines
412
413
414
415
415
416
417
418
54 unmodified lines
473
474
475
476
476
477
478
479
35 unmodified lines
515
516
517
518
518
519
520
521
28 unmodified lines
550
551
552
553
553
554
555
556
34 unmodified lines
591
592
593
594
594
595
596
597
14 unmodified lines
612
613
614
615
615
616
617
618
34 unmodified lines
653
654
655
656
656
657
658
659
14 unmodified lines
674
675
676
677
677
678
679
680
28 unmodified lines
709
710
711
712
712
713
714
715
14 unmodified lines
730
731
732
733
733
734
735
736
17 unmodified lines
754
755
756
757
757
758
759
760
17 unmodified lines
778
779
780
781
781
782
783
784
17 unmodified lines
802
803
804
805
805
806
807
808
17 unmodified lines
826
827
828
829
829
830
831
832
17 unmodified lines
850
851
852
853
853
854
855
856
17 unmodified lines
874
875
876
877
877
878
879
880
17 unmodified lines
898
899
900
901
901
902
903
904
17 unmodified lines
922
923
924
925
925
926
927
928
17 unmodified lines
946
947
948
949
949
950
951
952
17 unmodified lines
970
971
972
973
973
974
975
976
17 unmodified lines
994
995
996
997
997
998
999
1000
17 unmodified lines
1018
1019
1020
1021
1021
1022
1023
1024
12 unmodified lines
1037
1038
1039
1040
1040
1041
1042
1043
28 unmodified lines
1072
1073
1074
1075
1075
1076
1077
1078
29 unmodified lines
1108
1109
1110
1111
1111
1112
1113
1114
9 unmodified lines
1124
1125
1126
1127
1127
1128
1129
1130
21 unmodified lines
1152
1153
1154
1155
1155
1156
1157
1158
13 unmodified lines
1172
1173
1174
1175
1175
1176
1177
1178
14 unmodified lines
1193
1194
1195
1196
1196
1197
1198
1199
24 unmodified lines
1224
1225
1226
1227
1227
1228
1229
1230
38 unmodified lines
1269
1270
1271
1272
1272
1273
1274
1275
53 unmodified lines
1329
1330
1331
1332
1332
1333
1334
1335
15 unmodified lines
1351
1352
1353
1354
1354
1355
1356
1357
30 unmodified lines
1388
1389
1390
1391
1391
1392
1393
1394
39 unmodified lines
1434
1435
1436
1437
1437
1438
1439
1440
13 unmodified lines
1454
1455
1456
1457
1457
1458
1459
1460
53 unmodified lines
1514
1515
1516
1517
1517
1518
1519
1520
26 unmodified lines
1547
1548
1549
1550
1550
1551
1552
1553
12 unmodified lines
1566
1567
1568
1569
1569
1570
1571
1572
35 unmodified lines
1608
1609
1610
1611
1611
1612
1613
1614
16 unmodified lines
1631
1632
1633
1634
1634
1635
1636
1637
1 unmodified line
"components": {
"schemas": {
"AddOrgMemberInputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
30 unmodified lines
"type": "object"
},
"AuditEvent": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"actorId": {
"type": "string"
26 unmodified lines
"type": "object"
},
"BatchLookupInputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
19 unmodified lines
"type": "object"
},
"BatchLookupOutputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
17 unmodified lines
"type": "object"
},
"Binding": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
29 unmodified lines
"type": "object"
},
"CreateBindingInputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
18 unmodified lines
"type": "object"
},
"CreateMirrorInputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
33 unmodified lines
"type": "object"
},
"CreateOrgInputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
21 unmodified lines
"type": "object"
},
"CreateProjectInputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
32 unmodified lines
"type": "object"
},
"CreateRepoInputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
32 unmodified lines
"type": "object"
},
"CreateServiceAccountInputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
20 unmodified lines
"type": "object"
},
"CreatedMirror": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
32 unmodified lines
"type": "object"
},
"ErrorDetail": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"location": {
"description": "Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'",
10 unmodified lines
"type": "object"
},
"ErrorModel": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
54 unmodified lines
"type": "object"
},
"GetMeOutputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
35 unmodified lines
"type": "object"
},
"GetPermissionsOutputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
28 unmodified lines
"type": "object"
},
"GrantProjectAccessInputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
34 unmodified lines
"type": "object"
},
"GrantProjectAccessOutputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
14 unmodified lines
"type": "object"
},
"GrantRepoAccessInputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
34 unmodified lines
"type": "object"
},
"GrantRepoAccessOutputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
14 unmodified lines
"type": "object"
},
"GrantServiceAccountAccessInputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
28 unmodified lines
"type": "object"
},
"GrantServiceAccountAccessOutputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
14 unmodified lines
"type": "object"
},
"ListAuditEventsOutputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
17 unmodified lines
"type": "object"
},
"ListBindingsOutputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
17 unmodified lines
"type": "object"
},
"ListMirrorsOutputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
17 unmodified lines
"type": "object"
},
"ListOIDCProvidersOutputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
17 unmodified lines
"type": "object"
},
"ListOrgMembersOutputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
17 unmodified lines
"type": "object"
},
"ListOrgProjectsOutputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
17 unmodified lines
"type": "object"
},
"ListOrgsOutputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
17 unmodified lines
"type": "object"
},
"ListProjectMembersOutputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
17 unmodified lines
"type": "object"
},
"ListProjectReposOutputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
17 unmodified lines
"type": "object"
},
"ListProjectsOutputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
17 unmodified lines
"type": "object"
},
"ListServiceAccountGrantsOutputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
17 unmodified lines
"type": "object"
},
"ListServiceAccountsOutputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
17 unmodified lines
"type": "object"
},
"LookupRef": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"id": {
"minLength": 1,
12 unmodified lines
"type": "object"
},
"LookupRefResult": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"id": {
"type": "string"
28 unmodified lines
"type": "object"
},
"LookupResourcesOutputBody": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
29 unmodified lines
"type": "object"
},
"MeAuth": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"provider": {
"type": "string"
9 unmodified lines
"type": "object"
},
"MeGlobal": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"accountId": {
"type": "string"
21 unmodified lines
"type": "object"
},
"MeIdentityHandle": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"handle": {
"type": "string"
13 unmodified lines
"type": "object"
},
"MeRegional": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"bio": {
"type": "string"
14 unmodified lines
"type": "object"
},
"MeRegionalUnavailable": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"error": {
"description": "Always 'foreign_jurisdiction'. Discriminator for client-side state machines.",
24 unmodified lines
"type": "object"
},
"Membership": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
38 unmodified lines
"type": "object"
},
"Mirror": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
53 unmodified lines
"type": "object"
},
"OIDCProvider": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"description": {
"type": "string"
15 unmodified lines
"type": "object"
},
"Org": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
30 unmodified lines
"type": "object"
},
"Project": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
39 unmodified lines
"type": "object"
},
"ProjectGrant": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"granteeId": {
"type": "string"
13 unmodified lines
"type": "object"
},
"Repo": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
53 unmodified lines
"type": "object"
},
"ResolvedIdentity": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
26 unmodified lines
"type": "object"
},
"ResourceAccess": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"permissions": {
"items": {
12 unmodified lines
"type": "object"
},
"ServiceAccount": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"$schema": {
"description": "A URL to the JSON Schema for this object.",
35 unmodified lines
"type": "object"
},
"ServiceAccountGrant": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"resourceId": {
"type": "string"
16 unmodified lines
"type": "object"
},
"ServiceAccountWithGrants": {
"additionalProperties": false,
"additionalProperties": true,
"properties": {
"accountId": {
"type": "string"
Minternal/coreapi/spec/core.gen.json+54/-54
1
1
{"components":{"schemas":{"AddOrgMemberInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/AddOrgMemberInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"provider":{"minLength":1,"type":"string"},"providerUserId":{"minLength":1,"type":"string"},"role":{"default":"member","description":"Role at the org; defaults to member.","enum":["owner","admin","member"],"type":"string"}},"required":["provider","providerUserId"],"type":"object"},"AuditEvent":{"additionalProperties":false,"properties":{"actorId":{"type":"string"},"eventType":{"type":"string"},"id":{"type":"string"},"ipAddress":{"description":"Source IP recorded when the event was logged.","type":"string"},"metadata":{"additionalProperties":{},"type":"object"},"occurredAt":{"format":"date-time","type":"string"}},"required":["id","occurredAt","eventType","actorId"],"type":"object"},"BatchLookupInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/BatchLookupInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"refs":{"items":{"$ref":"#/components/schemas/LookupRef"},"maxItems":100,"minItems":1,"type":"array"}},"required":["refs"],"type":"object"},"BatchLookupOutputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/BatchLookupOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"refs":{"items":{"$ref":"#/components/schemas/LookupRefResult"},"type":"array"}},"required":["refs"],"type":"object"},"Binding":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/Binding.json"],"format":"uri","readOnly":true,"type":"string"},"accountId":{"type":"string"},"attributeFilter":{},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"providerId":{"type":"string"}},"required":["id","accountId","providerId","attributeFilter","createdAt"],"type":"object"},"CreateBindingInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/CreateBindingInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"attributeFilter":{"description":"Exact-match key/value map; empty filter matches any token."},"providerId":{"minLength":1,"type":"string"}},"required":["providerId"],"type":"object"},"CreateMirrorInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/CreateMirrorInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"clusterHost":{"description":"DNS host of the destination cluster.","minLength":1,"type":"string"},"owner":{"minLength":1,"type":"string"},"provider":{"enum":["github"],"type":"string"},"repo":{"minLength":1,"type":"string"}},"required":["provider","owner","repo","clusterHost"],"type":"object"},"CreateOrgInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/CreateOrgInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"name":{"description":"Display name.","maxLength":100,"minLength":1,"type":"string"},"region":{"description":"Jurisdiction slug; defaults to the server's home jurisdiction.","type":"string"}},"required":["name"],"type":"object"},"CreateProjectInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/CreateProjectInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"name":{"maxLength":100,"minLength":1,"type":"string"},"ownerId":{"minLength":1,"type":"string"},"ownerType":{"enum":["org","account"],"type":"string"},"region":{"type":"string"}},"required":["name","ownerType","ownerId"],"type":"object"},"CreateRepoInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/CreateRepoInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"clusterHost":{"description":"Public host of the cluster to pin the repo to (e.g. royalcanin.partial.to); empty lands on the jurisdiction default.","type":"string"},"name":{"minLength":1,"type":"string"},"objectFormat":{"description":"Hash format; defaults to sha1.","enum":["sha1","sha256"],"type":"string"},"projectId":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},"required":["projectId","name"],"type":"object"},"CreateServiceAccountInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/CreateServiceAccountInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"name":{"minLength":1,"type":"string"},"orgId":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},"required":["orgId","name"],"type":"object"},"CreatedMirror":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/CreatedMirror.json"],"format":"uri","readOnly":true,"type":"string"},"created":{"description":"true on fresh creation; false when an existing mirror was returned.","type":"boolean"},"empty":{"description":"true when the upstream has no refs to clone.","type":"boolean"},"mirrorId":{"type":"string"},"mirrorUrl":{"type":"string"},"publicUrl":{"type":"string"}},"required":["mirrorId","mirrorUrl","publicUrl","created","empty"],"type":"object"},"ErrorDetail":{"additionalProperties":false,"properties":{"location":{"description":"Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'","type":"string"},"message":{"description":"Error message text","type":"string"},"value":{"description":"The value at the given location"}},"type":"object"},"ErrorModel":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ErrorModel.json"],"format":"uri","readOnly":true,"type":"string"},"detail":{"description":"A human-readable explanation specific to this occurrence of the problem.","examples":["Property foo is required but is missing."],"type":"string"},"errors":{"description":"Optional list of individual error details","items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array"},"instance":{"description":"A URI reference that identifies the specific occurrence of the problem.","examples":["https://example.com/error-log/abc123"],"format":"uri","type":"string"},"status":{"description":"HTTP status code","examples":[400],"format":"int64","type":"integer"},"title":{"description":"A short, human-readable summary of the problem type. This value should not change between occurrences of the error.","examples":["Bad Request"],"type":"string"},"type":{"default":"about:blank","description":"A URI reference to human-readable documentation for the error.","examples":["https://example.com/errors/example"],"format":"uri","type":"string"}},"type":"object"},"GetMeOutputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/GetMeOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"auth":{"$ref":"#/components/schemas/MeAuth"},"global":{"$ref":"#/components/schemas/MeGlobal"},"jurisdiction":{"type":"string"},"mode":{"enum":["standalone","global","regional"],"type":"string"},"regional":{"$ref":"#/components/schemas/MeRegional"},"regionalUnavailable":{"$ref":"#/components/schemas/MeRegionalUnavailable"}},"required":["global","auth"],"type":"object"},"GetPermissionsOutputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/GetPermissionsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"explain":{"additionalProperties":{},"type":"object"},"permissions":{"items":{"type":"string"},"type":"array"},"resourceId":{"type":"string"},"resourceType":{"type":"string"}},"required":["resourceType","resourceId"],"type":"object"},"GrantProjectAccessInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/GrantProjectAccessInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"granteeType":{"default":"account","enum":["account","org","team"],"type":"string"},"provider":{"minLength":1,"type":"string"},"providerUserId":{"minLength":1,"type":"string"},"role":{"minLength":1,"type":"string"}},"required":["provider","providerUserId","role"],"type":"object"},"GrantProjectAccessOutputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/GrantProjectAccessOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"status":{"type":"string"}},"required":["status"],"type":"object"},"GrantRepoAccessInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/GrantRepoAccessInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"granteeType":{"default":"account","enum":["account","org","team"],"type":"string"},"provider":{"minLength":1,"type":"string"},"providerUserId":{"minLength":1,"type":"string"},"role":{"minLength":1,"type":"string"}},"required":["provider","providerUserId","role"],"type":"object"},"GrantRepoAccessOutputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/GrantRepoAccessOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"status":{"type":"string"}},"required":["status"],"type":"object"},"GrantServiceAccountAccessInputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/GrantServiceAccountAccessInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"resourceId":{"minLength":1,"type":"string"},"resourceType":{"enum":["repo","project"],"type":"string"},"role":{"minLength":1,"type":"string"}},"required":["resourceType","resourceId","role"],"type":"object"},"GrantServiceAccountAccessOutputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/GrantServiceAccountAccessOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"status":{"type":"string"}},"required":["status"],"type":"object"},"ListAuditEventsOutputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListAuditEventsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"events":{"items":{"$ref":"#/components/schemas/AuditEvent"},"type":"array"}},"required":["events"],"type":"object"},"ListBindingsOutputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListBindingsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"bindings":{"items":{"$ref":"#/components/schemas/Binding"},"type":"array"}},"required":["bindings"],"type":"object"},"ListMirrorsOutputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListMirrorsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"mirrors":{"items":{"$ref":"#/components/schemas/Mirror"},"type":"array"}},"required":["mirrors"],"type":"object"},"ListOIDCProvidersOutputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListOIDCProvidersOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"providers":{"items":{"$ref":"#/components/schemas/OIDCProvider"},"type":"array"}},"required":["providers"],"type":"object"},"ListOrgMembersOutputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListOrgMembersOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"members":{"items":{"$ref":"#/components/schemas/Membership"},"type":"array"}},"required":["members"],"type":"object"},"ListOrgProjectsOutputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListOrgProjectsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"projects":{"items":{"$ref":"#/components/schemas/Project"},"type":"array"}},"required":["projects"],"type":"object"},"ListOrgsOutputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListOrgsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"orgs":{"items":{"$ref":"#/components/schemas/Org"},"type":"array"}},"required":["orgs"],"type":"object"},"ListProjectMembersOutputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListProjectMembersOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"members":{"items":{"$ref":"#/components/schemas/ProjectGrant"},"type":"array"}},"required":["members"],"type":"object"},"ListProjectReposOutputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListProjectReposOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"repos":{"items":{"$ref":"#/components/schemas/Repo"},"type":"array"}},"required":["repos"],"type":"object"},"ListProjectsOutputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListProjectsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"project":{"$ref":"#/components/schemas/Project"},"projects":{"items":{"$ref":"#/components/schemas/Project"},"type":"array"}},"type":"object"},"ListServiceAccountGrantsOutputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListServiceAccountGrantsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"grants":{"items":{"$ref":"#/components/schemas/ServiceAccountGrant"},"type":"array"}},"required":["grants"],"type":"object"},"ListServiceAccountsOutputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListServiceAccountsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"serviceAccounts":{"items":{"$ref":"#/components/schemas/ServiceAccountWithGrants"},"type":"array"}},"required":["serviceAccounts"],"type":"object"},"LookupRef":{"additionalProperties":false,"properties":{"id":{"minLength":1,"type":"string"},"type":{"description":"Resource type slug; \"org\", \"project\", \"repo\" are enriched, unknown types pass through.","minLength":1,"type":"string"}},"required":["type","id"],"type":"object"},"LookupRefResult":{"additionalProperties":false,"properties":{"id":{"type":"string"},"name":{"type":"string"},"ownerId":{"type":"string"},"ownerType":{"enum":["org","account"],"type":"string"},"projectId":{"type":"string"},"type":{"type":"string"},"url":{"type":"string"}},"required":["type","id"],"type":"object"},"LookupResourcesOutputBody":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/LookupResourcesOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"permission":{"type":"string"},"resourceIds":{"items":{"type":"string"},"type":"array"},"resourceType":{"type":"string"},"resources":{"items":{"$ref":"#/components/schemas/ResourceAccess"},"type":"array"}},"required":["resourceType"],"type":"object"},"MeAuth":{"additionalProperties":false,"properties":{"provider":{"type":"string"},"providerUserId":{"type":"string"}},"required":["provider","providerUserId"],"type":"object"},"MeGlobal":{"additionalProperties":false,"properties":{"accountId":{"type":"string"},"avatarUrl":{"type":"string"},"handle":{"type":"string"},"handles":{"items":{"$ref":"#/components/schemas/MeIdentityHandle"},"type":"array"},"homeJurisdiction":{"type":"string"}},"required":["accountId","handles"],"type":"object"},"MeIdentityHandle":{"additionalProperties":false,"properties":{"handle":{"type":"string"},"provider":{"type":"string"},"providerUserId":{"type":"string"}},"required":["provider","handle","providerUserId"],"type":"object"},"MeRegional":{"additionalProperties":false,"properties":{"bio":{"type":"string"},"company":{"type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"location":{"type":"string"}},"type":"object"},"MeRegionalUnavailable":{"additionalProperties":false,"properties":{"error":{"description":"Always 'foreign_jurisdiction'. Discriminator for client-side state machines.","enum":["foreign_jurisdiction"],"type":"string"},"homeCoreUrl":{"description":"Deep link into the home console for this account.","type":"string"},"jurisdiction":{"description":"The account's home jurisdiction (e.g. 'us', 'eu').","type":"string"},"message":{"description":"Human-readable copy ready to surface in a UI.","type":"string"}},"required":["error","jurisdiction","homeCoreUrl","message"],"type":"object"},"Membership":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/Membership.json"],"format":"uri","readOnly":true,"type":"string"},"accountId":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"orgId":{"type":"string"},"role":{"type":"string"},"status":{"type":"string"},"workosOrgMembershipId":{"type":"string"}},"required":["id","accountId","orgId","role","status","createdAt"],"type":"object"},"Mirror":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/Mirror.json"],"format":"uri","readOnly":true,"type":"string"},"clusterHost":{"description":"Public host of the cluster serving this mirror.","type":"string"},"createdAt":{"format":"date-time","type":"string"},"installationId":{"format":"int64","type":"integer"},"isArchived":{"type":"boolean"},"isPrivate":{"type":"boolean"},"jurisdiction":{"type":"string"},"mirrorId":{"type":"string"},"owner":{"type":"string"},"provider":{"type":"string"},"repo":{"type":"string"},"suspendedAt":{"format":"date-time","type":"string"}},"required":["mirrorId","provider","owner","repo","clusterHost","createdAt"],"type":"object"},"OIDCProvider":{"additionalProperties":false,"properties":{"description":{"type":"string"},"displayName":{"type":"string"},"id":{"type":"string"},"issuer":{"type":"string"}},"required":["id","issuer"],"type":"object"},"Org":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/Org.json"],"format":"uri","readOnly":true,"type":"string"},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"name":{"type":"string"},"region":{"type":"string"},"workosOrganizationId":{"type":"string"}},"required":["id","name","region","createdAt"],"type":"object"},"Project":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/Project.json"],"format":"uri","readOnly":true,"type":"string"},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"name":{"type":"string"},"ownerId":{"type":"string"},"ownerType":{"enum":["org","account"],"type":"string"},"region":{"type":"string"}},"required":["id","name","ownerType","ownerId","region","createdAt"],"type":"object"},"ProjectGrant":{"additionalProperties":false,"properties":{"granteeId":{"type":"string"},"granteeType":{"type":"string"},"role":{"type":"string"}},"required":["granteeType","granteeId","role"],"type":"object"},"Repo":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/Repo.json"],"format":"uri","readOnly":true,"type":"string"},"clusterHost":{"type":"string"},"foreign":{"type":"boolean"},"id":{"type":"string"},"name":{"type":"string"},"objectFormat":{"enum":["sha1","sha256"],"type":"string"},"owningProjectId":{"type":"string"},"path":{"type":"string"},"provisionAttempts":{"format":"int64","type":"integer"},"provisionReason":{"type":"string"},"state":{"enum":["provisioning","active","failed"],"type":"string"}},"required":["id","owningProjectId","name"],"type":"object"},"ResolvedIdentity":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ResolvedIdentity.json"],"format":"uri","readOnly":true,"type":"string"},"accountId":{"type":"string"},"handle":{"type":"string"},"provider":{"type":"string"},"providerUserId":{"type":"string"}},"required":["accountId","provider","handle","providerUserId"],"type":"object"},"ResourceAccess":{"additionalProperties":false,"properties":{"permissions":{"items":{"type":"string"},"type":"array"},"resourceId":{"type":"string"}},"required":["resourceId","permissions"],"type":"object"},"ServiceAccount":{"additionalProperties":false,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ServiceAccount.json"],"format":"uri","readOnly":true,"type":"string"},"accountId":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"name":{"type":"string"},"orgId":{"type":"string"},"status":{"type":"string"},"systemManaged":{"type":"boolean"}},"required":["accountId","name","orgId","status","systemManaged","createdAt"],"type":"object"},"ServiceAccountGrant":{"additionalProperties":false,"properties":{"resourceId":{"type":"string"},"resourceName":{"type":"string"},"resourceType":{"type":"string"},"role":{"type":"string"}},"required":["resourceType","resourceId","role"],"type":"object"},"ServiceAccountWithGrants":{"additionalProperties":false,"properties":{"accountId":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"grants":{"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"orgId":{"type":"string"},"status":{"type":"string"},"systemManaged":{"type":"boolean"}},"required":["grants","accountId","name","orgId","status","systemManaged","createdAt"],"type":"object"}},"securitySchemes":{"bearerAuth":{"bearerFormat":"JWT","description":"Bearer token minted by entire-core's device-code flow or STS exchange.","scheme":"bearer","type":"http"},"sessionAuth":{"description":"Console session cookie issued by the browser login flow.","in":"cookie","name":"entire_session","type":"apiKey"}}},"info":{"description":"Entire control plane: identity, orgs, projects, repos, mirrors, service accounts.","title":"Entire Core API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/access/{resourceType}":{"get":{"operationId":"lookupResources","parameters":[{"description":"SpiceDB resource type (e.g. \"repo\", \"project\", \"org\").","in":"path","name":"resourceType","required":true,"schema":{"description":"SpiceDB resource type (e.g. \"repo\", \"project\", \"org\").","minLength":1,"type":"string"}},{"description":"Optional: only list resources where the caller has this permission.","explode":false,"in":"query","name":"permission","schema":{"description":"Optional: only list resources where the caller has this permission.","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupResourcesOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List resources of a type the caller can access","tags":["identity"]}},"/access/{resourceType}/{resourceId}":{"get":{"operationId":"getPermissions","parameters":[{"in":"path","name":"resourceType","required":true,"schema":{"minLength":1,"type":"string"}},{"in":"path","name":"resourceId","required":true,"schema":{"minLength":1,"type":"string"}},{"description":"If set, return the SpiceDB trace for this permission instead of the permission list.","explode":false,"in":"query","name":"explain","schema":{"description":"If set, return the SpiceDB trace for this permission instead of the permission list.","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPermissionsOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List the caller's permissions on a single resource","tags":["identity"]}},"/audit":{"get":{"operationId":"listAuditEvents","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAuditEventsOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List the calling account's recent audit events","tags":["identity"]}},"/identity/handles/{provider}/{handle}":{"get":{"operationId":"resolveHandle","parameters":[{"description":"IdP slug (e.g. \"github\").","in":"path","name":"provider","required":true,"schema":{"description":"IdP slug (e.g. \"github\").","minLength":1,"type":"string"}},{"description":"User-visible handle at the provider.","in":"path","name":"handle","required":true,"schema":{"description":"User-visible handle at the provider.","minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvedIdentity"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Resolve account by external provider handle","tags":["identity"]}},"/lookup":{"post":{"operationId":"batchLookup","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchLookupInputBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchLookupOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Batch-resolve (type, id) refs to enriched records","tags":["identity"]}},"/me":{"get":{"operationId":"getMe","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetMeOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Get the calling account's identity and profile","tags":["identity"]}},"/mirrors":{"delete":{"operationId":"deleteMirror","parameters":[{"explode":false,"in":"query","name":"provider","required":true,"schema":{"enum":["github"],"type":"string"}},{"explode":false,"in":"query","name":"owner","required":true,"schema":{"minLength":1,"type":"string"}},{"explode":false,"in":"query","name":"repo","required":true,"schema":{"minLength":1,"type":"string"}},{"description":"Public host of the cluster serving the mirror.","explode":false,"in":"query","name":"clusterHost","required":true,"schema":{"description":"Public host of the cluster serving the mirror.","minLength":1,"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"421":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Misdirected Request"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"502":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Gateway"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Delete a mirror by upstream coords + cluster host","tags":["mirrors"]},"get":{"operationId":"listMirrors","parameters":[{"description":"Optional: restrict to mirrors on this cluster (public host, e.g. royalcanin.partial.to).","explode":false,"in":"query","name":"cluster","schema":{"description":"Optional: restrict to mirrors on this cluster (public host, e.g. royalcanin.partial.to).","type":"string"}},{"description":"Optional: restrict to mirrors of this upstream provider (e.g. \"github\").","explode":false,"in":"query","name":"provider","schema":{"description":"Optional: restrict to mirrors of this upstream provider (e.g. \"github\").","type":"string"}},{"description":"Optional: restrict to mirrors with this upstream owner login.","explode":false,"in":"query","name":"owner","schema":{"description":"Optional: restrict to mirrors with this upstream owner login.","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMirrorsOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List mirrors visible to the caller","tags":["mirrors"]},"post":{"operationId":"createMirror","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMirrorInputBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedMirror"}}},"description":"Created"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Conflict"},"412":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Precondition Failed"},"421":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Misdirected Request"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"502":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Gateway"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Create GitHub mirror","tags":["mirrors"]}},"/mirrors/{mirrorId}":{"get":{"operationId":"getMirror","parameters":[{"in":"path","name":"mirrorId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mirror"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Get mirror by id","tags":["mirrors"]}},"/oidc-providers":{"get":{"operationId":"listOIDCProviders","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListOIDCProvidersOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List federated OIDC identity providers","tags":["identity"]}},"/orgs":{"get":{"operationId":"listOrgs","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListOrgsOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List organizations the caller can see","tags":["orgs"]},"post":{"operationId":"createOrg","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrgInputBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Org"}}},"description":"Created"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Create organization","tags":["orgs"]}},"/orgs/{orgId}/members":{"get":{"operationId":"listOrgMembers","parameters":[{"in":"path","name":"orgId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListOrgMembersOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List members of an organization","tags":["orgs"]},"post":{"operationId":"addOrgMember","parameters":[{"in":"path","name":"orgId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddOrgMemberInputBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Membership"}}},"description":"Created"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Add a member to an organization","tags":["orgs"]}},"/orgs/{orgId}/members/{provider}/{providerUserId}":{"delete":{"operationId":"removeOrgMember","parameters":[{"in":"path","name":"orgId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"in":"path","name":"provider","required":true,"schema":{"minLength":1,"type":"string"}},{"in":"path","name":"providerUserId","required":true,"schema":{"minLength":1,"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Remove a member from an organization","tags":["orgs"]}},"/orgs/{orgId}/projects":{"get":{"operationId":"listOrgProjects","parameters":[{"in":"path","name":"orgId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListOrgProjectsOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List projects owned by an organization","tags":["projects"]}},"/projects":{"get":{"operationId":"listProjects","parameters":[{"description":"Optional: exact-match project name.","explode":false,"in":"query","name":"name","schema":{"description":"Optional: exact-match project name.","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProjectsOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List projects accessible to the caller (or one by name)","tags":["projects"]},"post":{"operationId":"createProject","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectInputBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}},"description":"Created"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Conflict"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Create project","tags":["projects"]}},"/projects/{projectId}/grants":{"post":{"operationId":"grantProjectAccess","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantProjectAccessInputBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantProjectAccessOutputBody"}}},"description":"Created"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Conflict"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Grant project access to an identity","tags":["projects"]}},"/projects/{projectId}/grants/account/{provider}/{providerUserId}":{"delete":{"operationId":"revokeProjectAccessByProvider","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"in":"path","name":"provider","required":true,"schema":{"minLength":1,"type":"string"}},{"in":"path","name":"providerUserId","required":true,"schema":{"minLength":1,"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Revoke project access by provider identity","tags":["projects"]}},"/projects/{projectId}/grants/{granteeType}/{granteeId}":{"delete":{"operationId":"revokeProjectAccess","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"in":"path","name":"granteeType","required":true,"schema":{"minLength":1,"type":"string"}},{"in":"path","name":"granteeId","required":true,"schema":{"minLength":1,"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Revoke project access by grantee id","tags":["projects"]}},"/projects/{projectId}/members":{"get":{"operationId":"listProjectMembers","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProjectMembersOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List project members and their roles","tags":["projects"]}},"/projects/{projectId}/repos":{"get":{"operationId":"listProjectRepos","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProjectReposOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List repositories in a project","tags":["repos"]}},"/repos":{"post":{"operationId":"createRepo","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRepoInputBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Repo"}}},"description":"Created"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Conflict"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Create repository","tags":["repos"]}},"/repos/{repoId}":{"delete":{"operationId":"deleteRepo","parameters":[{"in":"path","name":"repoId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"502":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Gateway"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Delete repository","tags":["repos"]},"get":{"operationId":"getRepo","parameters":[{"in":"path","name":"repoId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Repo"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Get repository","tags":["repos"]}},"/repos/{repoId}/grants":{"post":{"operationId":"grantRepoAccess","parameters":[{"in":"path","name":"repoId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantRepoAccessInputBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantRepoAccessOutputBody"}}},"description":"Created"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Conflict"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Grant repo access to an identity","tags":["repos"]}},"/service-accounts":{"get":{"operationId":"listServiceAccounts","parameters":[{"explode":false,"in":"query","name":"orgId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListServiceAccountsOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List service accounts in an org","tags":["service-accounts"]},"post":{"operationId":"createServiceAccount","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateServiceAccountInputBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAccount"}}},"description":"Created"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Conflict"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Create service account","tags":["service-accounts"]}},"/service-accounts/{accountId}":{"delete":{"operationId":"deleteServiceAccount","parameters":[{"in":"path","name":"accountId","required":true,"schema":{"minLength":1,"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Delete service account","tags":["service-accounts"]},"get":{"operationId":"getServiceAccount","parameters":[{"in":"path","name":"accountId","required":true,"schema":{"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAccount"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Get service account","tags":["service-accounts"]}},"/service-accounts/{accountId}/bindings":{"get":{"operationId":"listBindings","parameters":[{"in":"path","name":"accountId","required":true,"schema":{"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListBindingsOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List OIDC bindings","tags":["service-accounts"]},"post":{"operationId":"createBinding","parameters":[{"in":"path","name":"accountId","required":true,"schema":{"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBindingInputBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Binding"}}},"description":"Created"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Conflict"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Create OIDC binding","tags":["service-accounts"]}},"/service-accounts/{accountId}/bindings/{bindingId}":{"delete":{"operationId":"deleteBinding","parameters":[{"in":"path","name":"accountId","required":true,"schema":{"minLength":1,"type":"string"}},{"in":"path","name":"bindingId","required":true,"schema":{"minLength":1,"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Delete OIDC binding","tags":["service-accounts"]}},"/service-accounts/{accountId}/grants":{"get":{"operationId":"listServiceAccountGrants","parameters":[{"in":"path","name":"accountId","required":true,"schema":{"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListServiceAccountGrantsOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List service account grants","tags":["service-accounts"]},"post":{"operationId":"grantServiceAccountAccess","parameters":[{"in":"path","name":"accountId","required":true,"schema":{"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantServiceAccountAccessInputBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantServiceAccountAccessOutputBody"}}},"description":"Created"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Conflict"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Grant service account access on a repo or project","tags":["service-accounts"]}},"/service-accounts/{accountId}/grants/{resourceType}/{resourceId}":{"delete":{"operationId":"revokeServiceAccountAccess","parameters":[{"in":"path","name":"accountId","required":true,"schema":{"minLength":1,"type":"string"}},{"in":"path","name":"resourceType","required":true,"schema":{"enum":["repo","project"],"type":"string"}},{"in":"path","name":"resourceId","required":true,"schema":{"minLength":1,"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Revoke service account access","tags":["service-accounts"]}}},"servers":[{"url":"/api/v1"}]}
{"components":{"schemas":{"AddOrgMemberInputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/AddOrgMemberInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"provider":{"minLength":1,"type":"string"},"providerUserId":{"minLength":1,"type":"string"},"role":{"default":"member","description":"Role at the org; defaults to member.","enum":["owner","admin","member"],"type":"string"}},"required":["provider","providerUserId"],"type":"object"},"AuditEvent":{"additionalProperties":true,"properties":{"actorId":{"type":"string"},"eventType":{"type":"string"},"id":{"type":"string"},"ipAddress":{"description":"Source IP recorded when the event was logged.","type":"string"},"metadata":{"additionalProperties":{},"type":"object"},"occurredAt":{"format":"date-time","type":"string"}},"required":["id","occurredAt","eventType","actorId"],"type":"object"},"BatchLookupInputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/BatchLookupInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"refs":{"items":{"$ref":"#/components/schemas/LookupRef"},"maxItems":100,"minItems":1,"type":"array"}},"required":["refs"],"type":"object"},"BatchLookupOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/BatchLookupOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"refs":{"items":{"$ref":"#/components/schemas/LookupRefResult"},"type":"array"}},"required":["refs"],"type":"object"},"Binding":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/Binding.json"],"format":"uri","readOnly":true,"type":"string"},"accountId":{"type":"string"},"attributeFilter":{},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"providerId":{"type":"string"}},"required":["id","accountId","providerId","attributeFilter","createdAt"],"type":"object"},"CreateBindingInputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/CreateBindingInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"attributeFilter":{"description":"Exact-match key/value map; empty filter matches any token."},"providerId":{"minLength":1,"type":"string"}},"required":["providerId"],"type":"object"},"CreateMirrorInputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/CreateMirrorInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"clusterHost":{"description":"DNS host of the destination cluster.","minLength":1,"type":"string"},"owner":{"minLength":1,"type":"string"},"provider":{"enum":["github"],"type":"string"},"repo":{"minLength":1,"type":"string"}},"required":["provider","owner","repo","clusterHost"],"type":"object"},"CreateOrgInputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/CreateOrgInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"name":{"description":"Display name.","maxLength":100,"minLength":1,"type":"string"},"region":{"description":"Jurisdiction slug; defaults to the server's home jurisdiction.","type":"string"}},"required":["name"],"type":"object"},"CreateProjectInputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/CreateProjectInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"name":{"maxLength":100,"minLength":1,"type":"string"},"ownerId":{"minLength":1,"type":"string"},"ownerType":{"enum":["org","account"],"type":"string"},"region":{"type":"string"}},"required":["name","ownerType","ownerId"],"type":"object"},"CreateRepoInputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/CreateRepoInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"clusterHost":{"description":"Public host of the cluster to pin the repo to (e.g. royalcanin.partial.to); empty lands on the jurisdiction default.","type":"string"},"name":{"minLength":1,"type":"string"},"objectFormat":{"description":"Hash format; defaults to sha1.","enum":["sha1","sha256"],"type":"string"},"projectId":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},"required":["projectId","name"],"type":"object"},"CreateServiceAccountInputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/CreateServiceAccountInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"name":{"minLength":1,"type":"string"},"orgId":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},"required":["orgId","name"],"type":"object"},"CreatedMirror":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/CreatedMirror.json"],"format":"uri","readOnly":true,"type":"string"},"created":{"description":"true on fresh creation; false when an existing mirror was returned.","type":"boolean"},"empty":{"description":"true when the upstream has no refs to clone.","type":"boolean"},"mirrorId":{"type":"string"},"mirrorUrl":{"type":"string"},"publicUrl":{"type":"string"}},"required":["mirrorId","mirrorUrl","publicUrl","created","empty"],"type":"object"},"ErrorDetail":{"additionalProperties":true,"properties":{"location":{"description":"Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'","type":"string"},"message":{"description":"Error message text","type":"string"},"value":{"description":"The value at the given location"}},"type":"object"},"ErrorModel":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ErrorModel.json"],"format":"uri","readOnly":true,"type":"string"},"detail":{"description":"A human-readable explanation specific to this occurrence of the problem.","examples":["Property foo is required but is missing."],"type":"string"},"errors":{"description":"Optional list of individual error details","items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array"},"instance":{"description":"A URI reference that identifies the specific occurrence of the problem.","examples":["https://example.com/error-log/abc123"],"format":"uri","type":"string"},"status":{"description":"HTTP status code","examples":[400],"format":"int64","type":"integer"},"title":{"description":"A short, human-readable summary of the problem type. This value should not change between occurrences of the error.","examples":["Bad Request"],"type":"string"},"type":{"default":"about:blank","description":"A URI reference to human-readable documentation for the error.","examples":["https://example.com/errors/example"],"format":"uri","type":"string"}},"type":"object"},"GetMeOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/GetMeOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"auth":{"$ref":"#/components/schemas/MeAuth"},"global":{"$ref":"#/components/schemas/MeGlobal"},"jurisdiction":{"type":"string"},"mode":{"enum":["standalone","global","regional"],"type":"string"},"regional":{"$ref":"#/components/schemas/MeRegional"},"regionalUnavailable":{"$ref":"#/components/schemas/MeRegionalUnavailable"}},"required":["global","auth"],"type":"object"},"GetPermissionsOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/GetPermissionsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"explain":{"additionalProperties":{},"type":"object"},"permissions":{"items":{"type":"string"},"type":"array"},"resourceId":{"type":"string"},"resourceType":{"type":"string"}},"required":["resourceType","resourceId"],"type":"object"},"GrantProjectAccessInputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/GrantProjectAccessInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"granteeType":{"default":"account","enum":["account","org","team"],"type":"string"},"provider":{"minLength":1,"type":"string"},"providerUserId":{"minLength":1,"type":"string"},"role":{"minLength":1,"type":"string"}},"required":["provider","providerUserId","role"],"type":"object"},"GrantProjectAccessOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/GrantProjectAccessOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"status":{"type":"string"}},"required":["status"],"type":"object"},"GrantRepoAccessInputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/GrantRepoAccessInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"granteeType":{"default":"account","enum":["account","org","team"],"type":"string"},"provider":{"minLength":1,"type":"string"},"providerUserId":{"minLength":1,"type":"string"},"role":{"minLength":1,"type":"string"}},"required":["provider","providerUserId","role"],"type":"object"},"GrantRepoAccessOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/GrantRepoAccessOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"status":{"type":"string"}},"required":["status"],"type":"object"},"GrantServiceAccountAccessInputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/GrantServiceAccountAccessInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"resourceId":{"minLength":1,"type":"string"},"resourceType":{"enum":["repo","project"],"type":"string"},"role":{"minLength":1,"type":"string"}},"required":["resourceType","resourceId","role"],"type":"object"},"GrantServiceAccountAccessOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/GrantServiceAccountAccessOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"status":{"type":"string"}},"required":["status"],"type":"object"},"ListAuditEventsOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListAuditEventsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"events":{"items":{"$ref":"#/components/schemas/AuditEvent"},"type":"array"}},"required":["events"],"type":"object"},"ListBindingsOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListBindingsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"bindings":{"items":{"$ref":"#/components/schemas/Binding"},"type":"array"}},"required":["bindings"],"type":"object"},"ListMirrorsOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListMirrorsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"mirrors":{"items":{"$ref":"#/components/schemas/Mirror"},"type":"array"}},"required":["mirrors"],"type":"object"},"ListOIDCProvidersOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListOIDCProvidersOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"providers":{"items":{"$ref":"#/components/schemas/OIDCProvider"},"type":"array"}},"required":["providers"],"type":"object"},"ListOrgMembersOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListOrgMembersOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"members":{"items":{"$ref":"#/components/schemas/Membership"},"type":"array"}},"required":["members"],"type":"object"},"ListOrgProjectsOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListOrgProjectsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"projects":{"items":{"$ref":"#/components/schemas/Project"},"type":"array"}},"required":["projects"],"type":"object"},"ListOrgsOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListOrgsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"orgs":{"items":{"$ref":"#/components/schemas/Org"},"type":"array"}},"required":["orgs"],"type":"object"},"ListProjectMembersOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListProjectMembersOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"members":{"items":{"$ref":"#/components/schemas/ProjectGrant"},"type":"array"}},"required":["members"],"type":"object"},"ListProjectReposOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListProjectReposOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"repos":{"items":{"$ref":"#/components/schemas/Repo"},"type":"array"}},"required":["repos"],"type":"object"},"ListProjectsOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListProjectsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"project":{"$ref":"#/components/schemas/Project"},"projects":{"items":{"$ref":"#/components/schemas/Project"},"type":"array"}},"type":"object"},"ListServiceAccountGrantsOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListServiceAccountGrantsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"grants":{"items":{"$ref":"#/components/schemas/ServiceAccountGrant"},"type":"array"}},"required":["grants"],"type":"object"},"ListServiceAccountsOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListServiceAccountsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"serviceAccounts":{"items":{"$ref":"#/components/schemas/ServiceAccountWithGrants"},"type":"array"}},"required":["serviceAccounts"],"type":"object"},"LookupRef":{"additionalProperties":true,"properties":{"id":{"minLength":1,"type":"string"},"type":{"description":"Resource type slug; \"org\", \"project\", \"repo\" are enriched, unknown types pass through.","minLength":1,"type":"string"}},"required":["type","id"],"type":"object"},"LookupRefResult":{"additionalProperties":true,"properties":{"id":{"type":"string"},"name":{"type":"string"},"ownerId":{"type":"string"},"ownerType":{"enum":["org","account"],"type":"string"},"projectId":{"type":"string"},"type":{"type":"string"},"url":{"type":"string"}},"required":["type","id"],"type":"object"},"LookupResourcesOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/LookupResourcesOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"permission":{"type":"string"},"resourceIds":{"items":{"type":"string"},"type":"array"},"resourceType":{"type":"string"},"resources":{"items":{"$ref":"#/components/schemas/ResourceAccess"},"type":"array"}},"required":["resourceType"],"type":"object"},"MeAuth":{"additionalProperties":true,"properties":{"provider":{"type":"string"},"providerUserId":{"type":"string"}},"required":["provider","providerUserId"],"type":"object"},"MeGlobal":{"additionalProperties":true,"properties":{"accountId":{"type":"string"},"avatarUrl":{"type":"string"},"handle":{"type":"string"},"handles":{"items":{"$ref":"#/components/schemas/MeIdentityHandle"},"type":"array"},"homeJurisdiction":{"type":"string"}},"required":["accountId","handles"],"type":"object"},"MeIdentityHandle":{"additionalProperties":true,"properties":{"handle":{"type":"string"},"provider":{"type":"string"},"providerUserId":{"type":"string"}},"required":["provider","handle","providerUserId"],"type":"object"},"MeRegional":{"additionalProperties":true,"properties":{"bio":{"type":"string"},"company":{"type":"string"},"displayName":{"type":"string"},"email":{"type":"string"},"location":{"type":"string"}},"type":"object"},"MeRegionalUnavailable":{"additionalProperties":true,"properties":{"error":{"description":"Always 'foreign_jurisdiction'. Discriminator for client-side state machines.","enum":["foreign_jurisdiction"],"type":"string"},"homeCoreUrl":{"description":"Deep link into the home console for this account.","type":"string"},"jurisdiction":{"description":"The account's home jurisdiction (e.g. 'us', 'eu').","type":"string"},"message":{"description":"Human-readable copy ready to surface in a UI.","type":"string"}},"required":["error","jurisdiction","homeCoreUrl","message"],"type":"object"},"Membership":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/Membership.json"],"format":"uri","readOnly":true,"type":"string"},"accountId":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"orgId":{"type":"string"},"role":{"type":"string"},"status":{"type":"string"},"workosOrgMembershipId":{"type":"string"}},"required":["id","accountId","orgId","role","status","createdAt"],"type":"object"},"Mirror":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/Mirror.json"],"format":"uri","readOnly":true,"type":"string"},"clusterHost":{"description":"Public host of the cluster serving this mirror.","type":"string"},"createdAt":{"format":"date-time","type":"string"},"installationId":{"format":"int64","type":"integer"},"isArchived":{"type":"boolean"},"isPrivate":{"type":"boolean"},"jurisdiction":{"type":"string"},"mirrorId":{"type":"string"},"owner":{"type":"string"},"provider":{"type":"string"},"repo":{"type":"string"},"suspendedAt":{"format":"date-time","type":"string"}},"required":["mirrorId","provider","owner","repo","clusterHost","createdAt"],"type":"object"},"OIDCProvider":{"additionalProperties":true,"properties":{"description":{"type":"string"},"displayName":{"type":"string"},"id":{"type":"string"},"issuer":{"type":"string"}},"required":["id","issuer"],"type":"object"},"Org":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/Org.json"],"format":"uri","readOnly":true,"type":"string"},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"name":{"type":"string"},"region":{"type":"string"},"workosOrganizationId":{"type":"string"}},"required":["id","name","region","createdAt"],"type":"object"},"Project":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/Project.json"],"format":"uri","readOnly":true,"type":"string"},"createdAt":{"format":"date-time","type":"string"},"id":{"type":"string"},"name":{"type":"string"},"ownerId":{"type":"string"},"ownerType":{"enum":["org","account"],"type":"string"},"region":{"type":"string"}},"required":["id","name","ownerType","ownerId","region","createdAt"],"type":"object"},"ProjectGrant":{"additionalProperties":true,"properties":{"granteeId":{"type":"string"},"granteeType":{"type":"string"},"role":{"type":"string"}},"required":["granteeType","granteeId","role"],"type":"object"},"Repo":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/Repo.json"],"format":"uri","readOnly":true,"type":"string"},"clusterHost":{"type":"string"},"foreign":{"type":"boolean"},"id":{"type":"string"},"name":{"type":"string"},"objectFormat":{"enum":["sha1","sha256"],"type":"string"},"owningProjectId":{"type":"string"},"path":{"type":"string"},"provisionAttempts":{"format":"int64","type":"integer"},"provisionReason":{"type":"string"},"state":{"enum":["provisioning","active","failed"],"type":"string"}},"required":["id","owningProjectId","name"],"type":"object"},"ResolvedIdentity":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ResolvedIdentity.json"],"format":"uri","readOnly":true,"type":"string"},"accountId":{"type":"string"},"handle":{"type":"string"},"provider":{"type":"string"},"providerUserId":{"type":"string"}},"required":["accountId","provider","handle","providerUserId"],"type":"object"},"ResourceAccess":{"additionalProperties":true,"properties":{"permissions":{"items":{"type":"string"},"type":"array"},"resourceId":{"type":"string"}},"required":["resourceId","permissions"],"type":"object"},"ServiceAccount":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ServiceAccount.json"],"format":"uri","readOnly":true,"type":"string"},"accountId":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"name":{"type":"string"},"orgId":{"type":"string"},"status":{"type":"string"},"systemManaged":{"type":"boolean"}},"required":["accountId","name","orgId","status","systemManaged","createdAt"],"type":"object"},"ServiceAccountGrant":{"additionalProperties":true,"properties":{"resourceId":{"type":"string"},"resourceName":{"type":"string"},"resourceType":{"type":"string"},"role":{"type":"string"}},"required":["resourceType","resourceId","role"],"type":"object"},"ServiceAccountWithGrants":{"additionalProperties":true,"properties":{"accountId":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"grants":{"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"orgId":{"type":"string"},"status":{"type":"string"},"systemManaged":{"type":"boolean"}},"required":["grants","accountId","name","orgId","status","systemManaged","createdAt"],"type":"object"}},"securitySchemes":{"bearerAuth":{"bearerFormat":"JWT","description":"Bearer token minted by entire-core's device-code flow or STS exchange.","scheme":"bearer","type":"http"},"sessionAuth":{"description":"Console session cookie issued by the browser login flow.","in":"cookie","name":"entire_session","type":"apiKey"}}},"info":{"description":"Entire control plane: identity, orgs, projects, repos, mirrors, service accounts.","title":"Entire Core API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/access/{resourceType}":{"get":{"operationId":"lookupResources","parameters":[{"description":"SpiceDB resource type (e.g. \"repo\", \"project\", \"org\").","in":"path","name":"resourceType","required":true,"schema":{"description":"SpiceDB resource type (e.g. \"repo\", \"project\", \"org\").","minLength":1,"type":"string"}},{"description":"Optional: only list resources where the caller has this permission.","explode":false,"in":"query","name":"permission","schema":{"description":"Optional: only list resources where the caller has this permission.","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupResourcesOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List resources of a type the caller can access","tags":["identity"]}},"/access/{resourceType}/{resourceId}":{"get":{"operationId":"getPermissions","parameters":[{"in":"path","name":"resourceType","required":true,"schema":{"minLength":1,"type":"string"}},{"in":"path","name":"resourceId","required":true,"schema":{"minLength":1,"type":"string"}},{"description":"If set, return the SpiceDB trace for this permission instead of the permission list.","explode":false,"in":"query","name":"explain","schema":{"description":"If set, return the SpiceDB trace for this permission instead of the permission list.","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPermissionsOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List the caller's permissions on a single resource","tags":["identity"]}},"/audit":{"get":{"operationId":"listAuditEvents","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAuditEventsOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List the calling account's recent audit events","tags":["identity"]}},"/identity/handles/{provider}/{handle}":{"get":{"operationId":"resolveHandle","parameters":[{"description":"IdP slug (e.g. \"github\").","in":"path","name":"provider","required":true,"schema":{"description":"IdP slug (e.g. \"github\").","minLength":1,"type":"string"}},{"description":"User-visible handle at the provider.","in":"path","name":"handle","required":true,"schema":{"description":"User-visible handle at the provider.","minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvedIdentity"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Resolve account by external provider handle","tags":["identity"]}},"/lookup":{"post":{"operationId":"batchLookup","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchLookupInputBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchLookupOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Batch-resolve (type, id) refs to enriched records","tags":["identity"]}},"/me":{"get":{"operationId":"getMe","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetMeOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Get the calling account's identity and profile","tags":["identity"]}},"/mirrors":{"delete":{"operationId":"deleteMirror","parameters":[{"explode":false,"in":"query","name":"provider","required":true,"schema":{"enum":["github"],"type":"string"}},{"explode":false,"in":"query","name":"owner","required":true,"schema":{"minLength":1,"type":"string"}},{"explode":false,"in":"query","name":"repo","required":true,"schema":{"minLength":1,"type":"string"}},{"description":"Public host of the cluster serving the mirror.","explode":false,"in":"query","name":"clusterHost","required":true,"schema":{"description":"Public host of the cluster serving the mirror.","minLength":1,"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"421":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Misdirected Request"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"502":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Gateway"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Delete a mirror by upstream coords + cluster host","tags":["mirrors"]},"get":{"operationId":"listMirrors","parameters":[{"description":"Optional: restrict to mirrors on this cluster (public host, e.g. royalcanin.partial.to).","explode":false,"in":"query","name":"cluster","schema":{"description":"Optional: restrict to mirrors on this cluster (public host, e.g. royalcanin.partial.to).","type":"string"}},{"description":"Optional: restrict to mirrors of this upstream provider (e.g. \"github\").","explode":false,"in":"query","name":"provider","schema":{"description":"Optional: restrict to mirrors of this upstream provider (e.g. \"github\").","type":"string"}},{"description":"Optional: restrict to mirrors with this upstream owner login.","explode":false,"in":"query","name":"owner","schema":{"description":"Optional: restrict to mirrors with this upstream owner login.","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMirrorsOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List mirrors visible to the caller","tags":["mirrors"]},"post":{"operationId":"createMirror","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMirrorInputBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedMirror"}}},"description":"Created"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Conflict"},"412":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Precondition Failed"},"421":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Misdirected Request"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"502":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Gateway"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Create GitHub mirror","tags":["mirrors"]}},"/mirrors/{mirrorId}":{"get":{"operationId":"getMirror","parameters":[{"in":"path","name":"mirrorId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mirror"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Get mirror by id","tags":["mirrors"]}},"/oidc-providers":{"get":{"operationId":"listOIDCProviders","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListOIDCProvidersOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List federated OIDC identity providers","tags":["identity"]}},"/orgs":{"get":{"operationId":"listOrgs","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListOrgsOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List organizations the caller can see","tags":["orgs"]},"post":{"operationId":"createOrg","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrgInputBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Org"}}},"description":"Created"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Create organization","tags":["orgs"]}},"/orgs/{orgId}/members":{"get":{"operationId":"listOrgMembers","parameters":[{"in":"path","name":"orgId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListOrgMembersOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List members of an organization","tags":["orgs"]},"post":{"operationId":"addOrgMember","parameters":[{"in":"path","name":"orgId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddOrgMemberInputBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Membership"}}},"description":"Created"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Add a member to an organization","tags":["orgs"]}},"/orgs/{orgId}/members/{provider}/{providerUserId}":{"delete":{"operationId":"removeOrgMember","parameters":[{"in":"path","name":"orgId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"in":"path","name":"provider","required":true,"schema":{"minLength":1,"type":"string"}},{"in":"path","name":"providerUserId","required":true,"schema":{"minLength":1,"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Remove a member from an organization","tags":["orgs"]}},"/orgs/{orgId}/projects":{"get":{"operationId":"listOrgProjects","parameters":[{"in":"path","name":"orgId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListOrgProjectsOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List projects owned by an organization","tags":["projects"]}},"/projects":{"get":{"operationId":"listProjects","parameters":[{"description":"Optional: exact-match project name.","explode":false,"in":"query","name":"name","schema":{"description":"Optional: exact-match project name.","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProjectsOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List projects accessible to the caller (or one by name)","tags":["projects"]},"post":{"operationId":"createProject","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectInputBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}},"description":"Created"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Conflict"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Create project","tags":["projects"]}},"/projects/{projectId}/grants":{"post":{"operationId":"grantProjectAccess","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantProjectAccessInputBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantProjectAccessOutputBody"}}},"description":"Created"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Conflict"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Grant project access to an identity","tags":["projects"]}},"/projects/{projectId}/grants/account/{provider}/{providerUserId}":{"delete":{"operationId":"revokeProjectAccessByProvider","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"in":"path","name":"provider","required":true,"schema":{"minLength":1,"type":"string"}},{"in":"path","name":"providerUserId","required":true,"schema":{"minLength":1,"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Revoke project access by provider identity","tags":["projects"]}},"/projects/{projectId}/grants/{granteeType}/{granteeId}":{"delete":{"operationId":"revokeProjectAccess","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"in":"path","name":"granteeType","required":true,"schema":{"minLength":1,"type":"string"}},{"in":"path","name":"granteeId","required":true,"schema":{"minLength":1,"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Revoke project access by grantee id","tags":["projects"]}},"/projects/{projectId}/members":{"get":{"operationId":"listProjectMembers","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProjectMembersOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List project members and their roles","tags":["projects"]}},"/projects/{projectId}/repos":{"get":{"operationId":"listProjectRepos","parameters":[{"in":"path","name":"projectId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProjectReposOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List repositories in a project","tags":["repos"]}},"/repos":{"post":{"operationId":"createRepo","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRepoInputBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Repo"}}},"description":"Created"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Conflict"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Create repository","tags":["repos"]}},"/repos/{repoId}":{"delete":{"operationId":"deleteRepo","parameters":[{"in":"path","name":"repoId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"502":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Gateway"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Delete repository","tags":["repos"]},"get":{"operationId":"getRepo","parameters":[{"in":"path","name":"repoId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Repo"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Get repository","tags":["repos"]}},"/repos/{repoId}/grants":{"post":{"operationId":"grantRepoAccess","parameters":[{"in":"path","name":"repoId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantRepoAccessInputBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantRepoAccessOutputBody"}}},"description":"Created"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Conflict"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Grant repo access to an identity","tags":["repos"]}},"/service-accounts":{"get":{"operationId":"listServiceAccounts","parameters":[{"explode":false,"in":"query","name":"orgId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListServiceAccountsOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List service accounts in an org","tags":["service-accounts"]},"post":{"operationId":"createServiceAccount","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateServiceAccountInputBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAccount"}}},"description":"Created"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Conflict"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Create service account","tags":["service-accounts"]}},"/service-accounts/{accountId}":{"delete":{"operationId":"deleteServiceAccount","parameters":[{"in":"path","name":"accountId","required":true,"schema":{"minLength":1,"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Delete service account","tags":["service-accounts"]},"get":{"operationId":"getServiceAccount","parameters":[{"in":"path","name":"accountId","required":true,"schema":{"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAccount"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Get service account","tags":["service-accounts"]}},"/service-accounts/{accountId}/bindings":{"get":{"operationId":"listBindings","parameters":[{"in":"path","name":"accountId","required":true,"schema":{"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListBindingsOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List OIDC bindings","tags":["service-accounts"]},"post":{"operationId":"createBinding","parameters":[{"in":"path","name":"accountId","required":true,"schema":{"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBindingInputBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Binding"}}},"description":"Created"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Conflict"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Create OIDC binding","tags":["service-accounts"]}},"/service-accounts/{accountId}/bindings/{bindingId}":{"delete":{"operationId":"deleteBinding","parameters":[{"in":"path","name":"accountId","required":true,"schema":{"minLength":1,"type":"string"}},{"in":"path","name":"bindingId","required":true,"schema":{"minLength":1,"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Delete OIDC binding","tags":["service-accounts"]}},"/service-accounts/{accountId}/grants":{"get":{"operationId":"listServiceAccountGrants","parameters":[{"in":"path","name":"accountId","required":true,"schema":{"minLength":1,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListServiceAccountGrantsOutputBody"}}},"description":"OK"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"List service account grants","tags":["service-accounts"]},"post":{"operationId":"grantServiceAccountAccess","parameters":[{"in":"path","name":"accountId","required":true,"schema":{"minLength":1,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantServiceAccountAccessInputBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantServiceAccountAccessOutputBody"}}},"description":"Created"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Conflict"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Grant service account access on a repo or project","tags":["service-accounts"]}},"/service-accounts/{accountId}/grants/{resourceType}/{resourceId}":{"delete":{"operationId":"revokeServiceAccountAccess","parameters":[{"in":"path","name":"accountId","required":true,"schema":{"minLength":1,"type":"string"}},{"in":"path","name":"resourceType","required":true,"schema":{"enum":["repo","project"],"type":"string"}},{"in":"path","name":"resourceId","required":true,"schema":{"minLength":1,"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Bad Request"},"401":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unauthorized"},"403":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Forbidden"},"404":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Not Found"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Unprocessable Entity"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"},"503":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Service Unavailable"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Revoke service account access","tags":["service-accounts"]}}},"servers":[{"url":"/api/v1"}]}
No newline at end of file
Minternal/coreapi/spec/core.openapi.json+1/-1