[Home](/content/site-root.html)

Log in

# Refresh Core API OpenAPI spec and regenerate client

`592bbac`→[main](/content/gh/entireio/cli/commits/main/index.html)·

toothbrush·3w ago·13 files·+6,263 added/-393 removed

Fetched latest us.console.entire.io/api/v1/openapi.json and ran
\`go generate ./internal/coreapi/...\`. New surface: /clusters,
/orgs/{orgId}, /projects/{projectId}, repo grant routes, and the
UpdateMe/RepoGrant/ListRepoGrants/Cluster schemas.

Adapted call sites for upstream drift: grant roles are now typed enums
(GrantProjectAccessInputBodyRole / GrantRepoAccessInputBodyRole) and
ListOrgs gained a params arg.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

## Sessions

69107861b7c5View transcript

[?\\
Refresh Core API OpenAPI SpecClaude Code·Opus 4.8\[1m\]·1 step](/content/gh/entireio/cli/session/65465eb0-fbd3-44da-9799-d829c180e9bd#timeline-69107861b7c5/index.html)

## Changes

13

- cmd/entire/cli

- Mgrant.go+2/-2

- Morg.go+1/-1

- internal/coreapi

- Moas\_client\_gen.go+1571/-16

- Moas\_json\_gen.go+1823/-207

- Moas\_operations\_gen.go+9

- Moas\_parameters\_gen.go+118/-4

- Moas\_request\_encoders\_gen.go+14

- Moas\_response\_decoders\_gen.go+646/-9

- Moas\_schemas\_gen.go+876/-58

- Moas\_security\_gen.go+18

- Moas\_validators\_gen.go+156/-73

- spec

- Mcore.gen.json+1028/-22

- Mcore.openapi.json+1/-1

```
171 unmodified lines

172
173
174
175
175
176
177
178
74 unmodified lines

253
254
255
256
256
257
258
259

171 unmodified lines

body := &coreapi.GrantProjectAccessInputBody{
					Provider:       provider,
					ProviderUserId: providerUserID,
					Role:           role,
					Role:           coreapi.GrantProjectAccessInputBodyRole(role),
				}
				if granteeType != "" {
					body.GranteeType = coreapi.NewOptGrantProjectAccessInputBodyGranteeType(coreapi.GrantProjectAccessInputBodyGranteeType(granteeType))
74 unmodified lines

body := &coreapi.GrantRepoAccessInputBody{
					Provider:       provider,
					ProviderUserId: providerUserID,
					Role:           role,
					Role:           coreapi.GrantRepoAccessInputBodyRole(role),
				}
				if granteeType != "" {
					body.GranteeType = coreapi.NewOptGrantRepoAccessInputBodyGranteeType(coreapi.GrantRepoAccessInputBodyGranteeType(granteeType))
```

Mcmd/entire/cli/grant.go+2/-2

```
57 unmodified lines

58
59
60
61
61
62
63
64

57 unmodified lines

Args:  cobra.NoArgs,
		RunE: func(cmd *cobra.Command, _ []string) error {
			return runCoreList(cmd, orgColumns, orgRow, func(ctx context.Context, c *coreapi.Client) ([]coreapi.Org, error) {
				out, err := c.ListOrgs(ctx)
				out, err := c.ListOrgs(ctx, coreapi.ListOrgsParams{})
				if err != nil {
					return nil, err
				}
```

Mcmd/entire/cli/org.go+1/-1

```
80 unmodified lines

81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
18 unmodified lines

117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
41 unmodified lines

182
183
184
161
185
186
187
188
6 unmodified lines

195
196
197
198
199
200
201
202
203
204
205
206
11 unmodified lines

218
219
220
191
221
222
223
224
8 unmodified lines

233
234
235
206
236
237
238
209
239
240
241
242
2 unmodified lines

245
246
247
218
248
249
250
251
3 unmodified lines

255
256
257
258
259
260
261
262
263
264
265
266
42 unmodified lines

309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
1015 unmodified lines

1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
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
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
376 unmodified lines

1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
133 unmodified lines

2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
633 unmodified lines

2914
2915
2916
2463
2464
2917
2918
2919
2920
2921
2468
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
197 unmodified lines

3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
59 unmodified lines

3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
153 unmodified lines

3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
117 unmodified lines

3666
3667
3668
3025
3026
3669
3670
3671
3672
3673
3030
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
95 unmodified lines

3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
95 unmodified lines

3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
61 unmodified lines

4075
4076
4077
3306
4078
4079
4080
3309
3310
4081
4082
4083
4084
4085
3314
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
95 unmodified lines

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
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
61 unmodified lines

4349
4350
4351
3489
4352
4353
4354
4355
27 unmodified lines

4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
77 unmodified lines

4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
78 unmodified lines

4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
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
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
30 unmodified lines

4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
77 unmodified lines

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
111 unmodified lines

5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
766 unmodified lines

5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
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
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
131 unmodified lines

6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389

80 unmodified lines

//
	// DELETE /mirrors
	DeleteMirror(ctx context.Context, params DeleteMirrorParams) error
	// DeleteOrg invokes deleteOrg operation.
	//
	// Delete an organization.
	//
	// DELETE /orgs/{orgId}
	DeleteOrg(ctx context.Context, params DeleteOrgParams) error
	// DeleteProject invokes deleteProject operation.
	//
	// Delete a project.
	//
	// DELETE /projects/{projectId}
	DeleteProject(ctx context.Context, params DeleteProjectParams) error
	// DeleteRepo invokes deleteRepo operation.
	//
	// Delete repository.
18 unmodified lines

//
	// GET /mirrors/{mirrorId}
	GetMirror(ctx context.Context, params GetMirrorParams) (*Mirror, error)
	// GetOrg invokes getOrg operation.
	//
	// Get an organization.
	//
	// GET /orgs/{orgId}
	GetOrg(ctx context.Context, params GetOrgParams) (*Org, error)
	// GetPermissions invokes getPermissions operation.
	//
	// List the caller's permissions on a single resource.
	//
	// GET /access/{resourceType}/{resourceId}
	GetPermissions(ctx context.Context, params GetPermissionsParams) (*GetPermissionsOutputBody, error)
	// GetProject invokes getProject operation.
	//
	// Get a project by id.
	//
	// GET /projects/{projectId}
	GetProject(ctx context.Context, params GetProjectParams) (*Project, error)
	// GetRepo invokes getRepo operation.
	//
	// Get repository.
41 unmodified lines

// List the calling account's recent audit events.
	//
	// GET /audit
	ListAuditEvents(ctx context.Context) (*ListAuditEventsOutputBody, error)
	ListAuditEvents(ctx context.Context, params ListAuditEventsParams) (*ListAuditEventsOutputBody, error)
	// ListAvailableMirrors invokes listAvailableMirrors operation.
	//
	// List GitHub repos the caller could onboard as mirrors.
6 unmodified lines

//
	// GET /service-accounts/{accountId}/bindings
	ListBindings(ctx context.Context, params ListBindingsParams) (*ListBindingsOutputBody, error)
	// ListClusters invokes listClusters operation.
	//
	// List data-plane clusters attached to this control plane.
	//
	// GET /clusters
	ListClusters(ctx context.Context) (*ListClustersOutputBody, error)
	// ListMirrorCollaborators invokes listMirrorCollaborators operation.
	//
	// List the principals with access to a mirror (live GitHub-admin gated).
11 unmodified lines

// List federated OIDC identity providers.
	//
	// GET /oidc-providers
	ListOIDCProviders(ctx context.Context) (*ListOIDCProvidersOutputBody, error)
	ListOIDCProviders(ctx context.Context, params ListOIDCProvidersParams) (*ListOIDCProvidersOutputBody, error)
	// ListOrgMembers invokes listOrgMembers operation.
	//
	// List members of an organization.
8 unmodified lines

ListOrgProjects(ctx context.Context, params ListOrgProjectsParams) (*ListOrgProjectsOutputBody, error)
	// ListOrgs invokes listOrgs operation.
	//
	// List organizations the caller can see.
	// List organizations the caller can see (or one by name).
	//
	// GET /orgs
	ListOrgs(ctx context.Context) (*ListOrgsOutputBody, error)
	ListOrgs(ctx context.Context, params ListOrgsParams) (*ListOrgsOutputBody, error)
	// ListProjectMembers invokes listProjectMembers operation.
	//
	// List project members and their roles.
2 unmodified lines

ListProjectMembers(ctx context.Context, params ListProjectMembersParams) (*ListProjectMembersOutputBody, error)
	// ListProjectRepos invokes listProjectRepos operation.
	//
	// List repositories in a project.
	// List repositories in a project (or one by name).
	//
	// GET /projects/{projectId}/repos
	ListProjectRepos(ctx context.Context, params ListProjectReposParams) (*ListProjectReposOutputBody, error)
3 unmodified lines

//
	// GET /projects
	ListProjects(ctx context.Context, params ListProjectsParams) (*ListProjectsOutputBody, error)
	// ListRepoGrants invokes listRepoGrants operation.
	//
	// List repo grants.
	//
	// GET /repos/{repoId}/grants
	ListRepoGrants(ctx context.Context, params ListRepoGrantsParams) (*ListRepoGrantsOutputBody, error)
	// ListServiceAccountGrants invokes listServiceAccountGrants operation.
	//
	// List service account grants.
42 unmodified lines

//
	// DELETE /projects/{projectId}/grants/account/{provider}/{providerUserId}
	RevokeProjectAccessByProvider(ctx context.Context, params RevokeProjectAccessByProviderParams) error
	// RevokeRepoAccess invokes revokeRepoAccess operation.
	//
	// Revoke repo access by grantee id.
	//
	// DELETE /repos/{repoId}/grants/{granteeType}/{granteeId}
	RevokeRepoAccess(ctx context.Context, params RevokeRepoAccessParams) error
	// RevokeRepoAccessByProvider invokes revokeRepoAccessByProvider operation.
	//
	// Revoke repo access by provider identity.
	//
	// DELETE /repos/{repoId}/grants/account/{provider}/{providerUserId}
	RevokeRepoAccessByProvider(ctx context.Context, params RevokeRepoAccessByProviderParams) error
	// RevokeServiceAccountAccess invokes revokeServiceAccountAccess operation.
	//
	// Revoke service account access.
	//
	// DELETE /service-accounts/{accountId}/grants/{resourceType}/{resourceId}
	RevokeServiceAccountAccess(ctx context.Context, params RevokeServiceAccountAccessParams) error
	// UpdateMe invokes updateMe operation.
	//
	// Update the calling account's contact email.
	//
	// PATCH /me
	UpdateMe(ctx context.Context, request *UpdateMeInputBody) (*UpdateMeOutputBody, error)
}

// Client implements OAS client.
1015 unmodified lines

return result, nil
}

// DeleteOrg invokes deleteOrg operation.
//
// Delete an organization.
//
// DELETE /orgs/{orgId}
func (c *Client) DeleteOrg(ctx context.Context, params DeleteOrgParams) error {
	_, err := c.sendDeleteOrg(ctx, params)
	return err
}

func (c *Client) sendDeleteOrg(ctx context.Context, params DeleteOrgParams) (res *DeleteOrgNoContent, err error) {

u := uri.Clone(c.requestURL(ctx))
	var pathParts [2]string
	pathParts[0] = "/orgs/"
	{
		// Encode "orgId" parameter.
		e := uri.NewPathEncoder(uri.PathEncoderConfig{
			Param:   "orgId",
			Style:   uri.PathStyleSimple,
			Explode: false,
		})
		if err := func() error {
			return e.EncodeValue(conv.StringToString(params.OrgId))
		}(); err != nil {
			return res, errors.Wrap(err, "encode path")
		}
		encoded, err := e.Result()
		if err != nil {
			return res, errors.Wrap(err, "encode path")
		}
		pathParts[1] = encoded
	}
	uri.AddPathParts(u, pathParts[:]...)

r, err := ht.NewRequest(ctx, "DELETE", u)
	if err != nil {
		return res, errors.Wrap(err, "create request")
	}

{
		type bitset = [1]uint8
		var satisfied bitset
		{

switch err := c.securityBearerAuth(ctx, DeleteOrgOperation, r); {
			case err == nil: // if NO error
				satisfied[0] |= 1 << 0
			case errors.Is(err, ogenerrors.ErrSkipClientSecurity):
				// Skip this security.
			default:
				return res, errors.Wrap(err, "security \"BearerAuth\"")
			}
		}
		{

switch err := c.securitySessionAuth(ctx, DeleteOrgOperation, r); {
			case err == nil: // if NO error
				satisfied[0] |= 1 << 1
			case errors.Is(err, ogenerrors.ErrSkipClientSecurity):
				// Skip this security.
			default:
				return res, errors.Wrap(err, "security \"SessionAuth\"")
			}
		}

if ok := func() bool {
		nextRequirement:
			for _, requirement := range []bitset{
				{0b00000001},
				{0b00000010},
			} {
				for i, mask := range requirement {
					if satisfied[i]&mask != mask {
						continue nextRequirement
					}
				}
				return true
			}
			return false
		}(); !ok {
			return res, ogenerrors.ErrSecurityRequirementIsNotSatisfied
		}
	}

resp, err := c.cfg.Client.Do(r)
	if err != nil {
		return res, errors.Wrap(err, "do request")
	}
	body := resp.Body
	defer body.Close()

result, err := decodeDeleteOrgResponse(resp)
	if err != nil {
		return res, errors.Wrap(err, "decode response")
	}

return result, nil
}

// DeleteProject invokes deleteProject operation.
//
// Delete a project.
//
// DELETE /projects/{projectId}
func (c *Client) DeleteProject(ctx context.Context, params DeleteProjectParams) error {
	_, err := c.sendDeleteProject(ctx, params)
	return err
}

func (c *Client) sendDeleteProject(ctx context.Context, params DeleteProjectParams) (res *DeleteProjectNoContent, err error) {

u := uri.Clone(c.requestURL(ctx))
	var pathParts [2]string
	pathParts[0] = "/projects/"
	{
		// Encode "projectId" parameter.
		e := uri.NewPathEncoder(uri.PathEncoderConfig{
			Param:   "projectId",
			Style:   uri.PathStyleSimple,
			Explode: false,
		})
		if err := func() error {
			return e.EncodeValue(conv.StringToString(params.ProjectId))
		}(); err != nil {
			return res, errors.Wrap(err, "encode path")
		}
		encoded, err := e.Result()
		if err != nil {
			return res, errors.Wrap(err, "encode path")
		}
		pathParts[1] = encoded
	}
	uri.AddPathParts(u, pathParts[:]...)

r, err := ht.NewRequest(ctx, "DELETE", u)
	if err != nil {
		return res, errors.Wrap(err, "create request")
	}

{
		type bitset = [1]uint8
		var satisfied bitset
		{

switch err := c.securityBearerAuth(ctx, DeleteProjectOperation, r); {
			case err == nil: // if NO error
				satisfied[0] |= 1 << 0
			case errors.Is(err, ogenerrors.ErrSkipClientSecurity):
				// Skip this security.
			default:
				return res, errors.Wrap(err, "security \"BearerAuth\"")
			}
		}
		{

switch err := c.securitySessionAuth(ctx, DeleteProjectOperation, r); {
			case err == nil: // if NO error
				satisfied[0] |= 1 << 1
			case errors.Is(err, ogenerrors.ErrSkipClientSecurity):
				// Skip this security.
			default:
				return res, errors.Wrap(err, "security \"SessionAuth\"")
			}
		}

resp, err := c.cfg.Client.Do(r)
	if err != nil {
		return res, errors.Wrap(err, "do request")
	}
	body := resp.Body
	defer body.Close()

result, err := decodeDeleteProjectResponse(resp)
	if err != nil {
		return res, errors.Wrap(err, "decode response")
	}

return result, nil
}

// DeleteRepo invokes deleteRepo operation.
//
// Delete repository.
376 unmodified lines

return result, nil
}

// GetOrg invokes getOrg operation.
//
// Get an organization.
//
// GET /orgs/{orgId}
func (c *Client) GetOrg(ctx context.Context, params GetOrgParams) (*Org, error) {
	res, err := c.sendGetOrg(ctx, params)
	return res, err
}

func (c *Client) sendGetOrg(ctx context.Context, params GetOrgParams) (res *Org, err error) {

r, err := ht.NewRequest(ctx, "GET", u)
	if err != nil {
		return res, errors.Wrap(err, "create request")
	}

{
		type bitset = [1]uint8
		var satisfied bitset
		{

switch err := c.securityBearerAuth(ctx, GetOrgOperation, r); {
			case err == nil: // if NO error
				satisfied[0] |= 1 << 0
			case errors.Is(err, ogenerrors.ErrSkipClientSecurity):
				// Skip this security.
			default:
				return res, errors.Wrap(err, "security \"BearerAuth\"")
			}
		}
		{

switch err := c.securitySessionAuth(ctx, GetOrgOperation, r); {
			case err == nil: // if NO error
				satisfied[0] |= 1 << 1
			case errors.Is(err, ogenerrors.ErrSkipClientSecurity):
				// Skip this security.
			default:
				return res, errors.Wrap(err, "security \"SessionAuth\"")
			}
		}

resp, err := c.cfg.Client.Do(r)
	if err != nil {
		return res, errors.Wrap(err, "do request")
	}
	body := resp.Body
	defer body.Close()

result, err := decodeGetOrgResponse(resp)
	if err != nil {
		return res, errors.Wrap(err, "decode response")
	}

return result, nil
}

// GetPermissions invokes getPermissions operation.
//
// List the caller's permissions on a single resource.
133 unmodified lines

return result, nil
}

// GetProject invokes getProject operation.
//
// Get a project by id.
//
// GET /projects/{projectId}
func (c *Client) GetProject(ctx context.Context, params GetProjectParams) (*Project, error) {
	res, err := c.sendGetProject(ctx, params)
	return res, err
}

func (c *Client) sendGetProject(ctx context.Context, params GetProjectParams) (res *Project, err error) {

r, err := ht.NewRequest(ctx, "GET", u)
	if err != nil {
		return res, errors.Wrap(err, "create request")
	}

{
		type bitset = [1]uint8
		var satisfied bitset
		{

switch err := c.securityBearerAuth(ctx, GetProjectOperation, r); {
			case err == nil: // if NO error
				satisfied[0] |= 1 << 0
			case errors.Is(err, ogenerrors.ErrSkipClientSecurity):
				// Skip this security.
			default:
				return res, errors.Wrap(err, "security \"BearerAuth\"")
			}
		}
		{

switch err := c.securitySessionAuth(ctx, GetProjectOperation, r); {
			case err == nil: // if NO error
				satisfied[0] |= 1 << 1
			case errors.Is(err, ogenerrors.ErrSkipClientSecurity):
				// Skip this security.
			default:
				return res, errors.Wrap(err, "security \"SessionAuth\"")
			}
		}

resp, err := c.cfg.Client.Do(r)
	if err != nil {
		return res, errors.Wrap(err, "do request")
	}
	body := resp.Body
	defer body.Close()

result, err := decodeGetProjectResponse(resp)
	if err != nil {
		return res, errors.Wrap(err, "decode response")
	}

return result, nil
}

// GetRepo invokes getRepo operation.
//
// Get repository.
633 unmodified lines

// List the calling account's recent audit events.
//
// GET /audit
func (c *Client) ListAuditEvents(ctx context.Context) (*ListAuditEventsOutputBody, error) {
	res, err := c.sendListAuditEvents(ctx)
func (c *Client) ListAuditEvents(ctx context.Context, params ListAuditEventsParams) (*ListAuditEventsOutputBody, error) {
	res, err := c.sendListAuditEvents(ctx, params)
	return res, err
}

func (c *Client) sendListAuditEvents(ctx context.Context) (res *ListAuditEventsOutputBody, err error) {
func (c *Client) sendListAuditEvents(ctx context.Context, params ListAuditEventsParams) (res *ListAuditEventsOutputBody, err error) {

u := uri.Clone(c.requestURL(ctx))
	var pathParts [1]string
	pathParts[0] = "/audit"
	uri.AddPathParts(u, pathParts[:]...)

q := uri.NewQueryEncoder()
	{
		// Encode "pageSize" parameter.
		cfg := uri.QueryParameterEncodingConfig{
			Name:    "pageSize",
			Style:   uri.QueryStyleForm,
			Explode: false,
		}

if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
			if val, ok := params.PageSize.Get(); ok {
				return e.EncodeValue(conv.Int32ToString(val))
			}
			return nil
		}); err != nil {
			return res, errors.Wrap(err, "encode query")
		}
	}
	{
		// Encode "pageToken" parameter.
		cfg := uri.QueryParameterEncodingConfig{
			Name:    "pageToken",
			Style:   uri.QueryStyleForm,
			Explode: false,
		}

if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
			if val, ok := params.PageToken.Get(); ok {
				return e.EncodeValue(conv.StringToString(val))
			}
			return nil
		}); err != nil {
			return res, errors.Wrap(err, "encode query")
		}
	}
	u.RawQuery = q.Values().Encode()

r, err := ht.NewRequest(ctx, "GET", u)
	if err != nil {
		return res, errors.Wrap(err, "create request")
197 unmodified lines

pathParts[2] = "/bindings"
	uri.AddPathParts(u, pathParts[:]...)

r, err := ht.NewRequest(ctx, "GET", u)
	if err != nil {
		return res, errors.Wrap(err, "create request")
59 unmodified lines

return result, nil
}

// ListClusters invokes listClusters operation.
//
// List data-plane clusters attached to this control plane.
//
// GET /clusters
func (c *Client) ListClusters(ctx context.Context) (*ListClustersOutputBody, error) {
	res, err := c.sendListClusters(ctx)
	return res, err
}

func (c *Client) sendListClusters(ctx context.Context) (res *ListClustersOutputBody, err error) {

u := uri.Clone(c.requestURL(ctx))
	var pathParts [1]string
	pathParts[0] = "/clusters"
	uri.AddPathParts(u, pathParts[:]...)

r, err := ht.NewRequest(ctx, "GET", u)
	if err != nil {
		return res, errors.Wrap(err, "create request")
	}

{
		type bitset = [1]uint8
		var satisfied bitset
		{

switch err := c.securityBearerAuth(ctx, ListClustersOperation, r); {
			case err == nil: // if NO error
				satisfied[0] |= 1 << 0
			case errors.Is(err, ogenerrors.ErrSkipClientSecurity):
				// Skip this security.
			default:
				return res, errors.Wrap(err, "security \"BearerAuth\"")
			}
		}
		{

switch err := c.securitySessionAuth(ctx, ListClustersOperation, r); {
			case err == nil: // if NO error
				satisfied[0] |= 1 << 1
			case errors.Is(err, ogenerrors.ErrSkipClientSecurity):
				// Skip this security.
			default:
				return res, errors.Wrap(err, "security \"SessionAuth\"")
			}
		}

resp, err := c.cfg.Client.Do(r)
	if err != nil {
		return res, errors.Wrap(err, "do request")
	}
	body := resp.Body
	defer body.Close()

result, err := decodeListClustersResponse(resp)
	if err != nil {
		return res, errors.Wrap(err, "decode response")
	}

return result, nil
}

// ListMirrorCollaborators invokes listMirrorCollaborators operation.
//
// List the principals with access to a mirror (live GitHub-admin gated).
153 unmodified lines

uri.AddPathParts(u, pathParts[:]...)

if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
			if val, ok := params.PageToken.Get(); ok {
				return e.EncodeValue(conv.StringToString(val))
			}
			return nil
		}); err != nil {
			return res, errors.Wrap(err, "encode query")
		}
	}
	{
		// Encode "cluster" parameter.
		cfg := uri.QueryParameterEncodingConfig{
117 unmodified lines

// List federated OIDC identity providers.
//
// GET /oidc-providers
func (c *Client) ListOIDCProviders(ctx context.Context) (*ListOIDCProvidersOutputBody, error) {
	res, err := c.sendListOIDCProviders(ctx)
func (c *Client) ListOIDCProviders(ctx context.Context, params ListOIDCProvidersParams) (*ListOIDCProvidersOutputBody, error) {
	res, err := c.sendListOIDCProviders(ctx, params)
	return res, err
}

func (c *Client) sendListOIDCProviders(ctx context.Context) (res *ListOIDCProvidersOutputBody, err error) {
func (c *Client) sendListOIDCProviders(ctx context.Context, params ListOIDCProvidersParams) (res *ListOIDCProvidersOutputBody, err error) {

u := uri.Clone(c.requestURL(ctx))
	var pathParts [1]string
	pathParts[0] = "/oidc-providers"
	uri.AddPathParts(u, pathParts[:]...)

r, err := ht.NewRequest(ctx, "GET", u)
	if err != nil {
		return res, errors.Wrap(err, "create request")
95 unmodified lines

pathParts[2] = "/members"
	uri.AddPathParts(u, pathParts[:]...)

r, err := ht.NewRequest(ctx, "GET", u)
	if err != nil {
		return res, errors.Wrap(err, "create request")
95 unmodified lines

pathParts[2] = "/projects"
	uri.AddPathParts(u, pathParts[:]...)

if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
			if val, ok := params.PageToken.Get(); ok {
				return e.EncodeValue(conv.StringToString(val))
			}
			return nil
		}); err != nil {
			return res, errors.Wrap(err, "encode query")
		}
	}
	{
		// Encode "name" parameter.
		cfg := uri.QueryParameterEncodingConfig{
			Name:    "name",
			Style:   uri.QueryStyleForm,
			Explode: false,
		}

if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
			if val, ok := params.Name.Get(); ok {
				return e.EncodeValue(conv.StringToString(val))
			}
			return nil
		}); err != nil {
			return res, errors.Wrap(err, "encode query")
		}
	}
	u.RawQuery = q.Values().Encode()

r, err := ht.NewRequest(ctx, "GET", u)
	if err != nil {
		return res, errors.Wrap(err, "create request")
61 unmodified lines

// ListOrgs invokes listOrgs operation.
//
// List organizations the caller can see.
// List organizations the caller can see (or one by name).
//
// GET /orgs
func (c *Client) ListOrgs(ctx context.Context) (*ListOrgsOutputBody, error) {
	res, err := c.sendListOrgs(ctx)
func (c *Client) ListOrgs(ctx context.Context, params ListOrgsParams) (*ListOrgsOutputBody, error) {
	res, err := c.sendListOrgs(ctx, params)
	return res, err
}

func (c *Client) sendListOrgs(ctx context.Context) (res *ListOrgsOutputBody, err error) {
func (c *Client) sendListOrgs(ctx context.Context, params ListOrgsParams) (res *ListOrgsOutputBody, err error) {

u := uri.Clone(c.requestURL(ctx))
	var pathParts [1]string
	pathParts[0] = "/orgs"
	uri.AddPathParts(u, pathParts[:]...)

r, err := ht.NewRequest(ctx, "GET", u)
	if err != nil {
		return res, errors.Wrap(err, "create request")
95 unmodified lines

pathParts[2] = "/members"
	uri.AddPathParts(u, pathParts[:]...)

r, err := ht.NewRequest(ctx, "GET", u)
	if err != nil {
		return res, errors.Wrap(err, "create request")
61 unmodified lines

// ListProjectRepos invokes listProjectRepos operation.
//
// List repositories in a project.
// List repositories in a project (or one by name).
//
// GET /projects/{projectId}/repos
func (c *Client) ListProjectRepos(ctx context.Context, params ListProjectReposParams) (*ListProjectReposOutputBody, error) {
27 unmodified lines

pathParts[2] = "/repos"
	uri.AddPathParts(u, pathParts[:]...)

r, err := ht.NewRequest(ctx, "GET", u)
	if err != nil {
		return res, errors.Wrap(err, "create request")
77 unmodified lines

uri.AddPathParts(u, pathParts[:]...)

if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
			if val, ok := params.PageToken.Get(); ok {
				return e.EncodeValue(conv.StringToString(val))
			}
			return nil
		}); err != nil {
			return res, errors.Wrap(err, "encode query")
		}
	}
	{
		// Encode "name" parameter.
		cfg := uri.QueryParameterEncodingConfig{
78 unmodified lines

return result, nil
}

// ListRepoGrants invokes listRepoGrants operation.
//
// List repo grants.
//
// GET /repos/{repoId}/grants
func (c *Client) ListRepoGrants(ctx context.Context, params ListRepoGrantsParams) (*ListRepoGrantsOutputBody, error) {
	res, err := c.sendListRepoGrants(ctx, params)
	return res, err
}

func (c *Client) sendListRepoGrants(ctx context.Context, params ListRepoGrantsParams) (res *ListRepoGrantsOutputBody, err error) {

u := uri.Clone(c.requestURL(ctx))
	var pathParts [3]string
	pathParts[0] = "/repos/"
	{
		// Encode "repoId" parameter.
		e := uri.NewPathEncoder(uri.PathEncoderConfig{
			Param:   "repoId",
			Style:   uri.PathStyleSimple,
			Explode: false,
		})
		if err := func() error {
			return e.EncodeValue(conv.StringToString(params.RepoId))
		}(); err != nil {
			return res, errors.Wrap(err, "encode path")
		}
		encoded, err := e.Result()
		if err != nil {
			return res, errors.Wrap(err, "encode path")
		}
		pathParts[1] = encoded
	}
	pathParts[2] = "/grants"
	uri.AddPathParts(u, pathParts[:]...)

r, err := ht.NewRequest(ctx, "GET", u)
	if err != nil {
		return res, errors.Wrap(err, "create request")
	}

{
		type bitset = [1]uint8
		var satisfied bitset
		{

switch err := c.securityBearerAuth(ctx, ListRepoGrantsOperation, r); {
			case err == nil: // if NO error
				satisfied[0] |= 1 << 0
			case errors.Is(err, ogenerrors.ErrSkipClientSecurity):
				// Skip this security.
			default:
				return res, errors.Wrap(err, "security \"BearerAuth\"")
			}
		}
		{

switch err := c.securitySessionAuth(ctx, ListRepoGrantsOperation, r); {
			case err == nil: // if NO error
				satisfied[0] |= 1 << 1
			case errors.Is(err, ogenerrors.ErrSkipClientSecurity):
				// Skip this security.
			default:
				return res, errors.Wrap(err, "security \"SessionAuth\"")
			}
		}

resp, err := c.cfg.Client.Do(r)
	if err != nil {
		return res, errors.Wrap(err, "do request")
	}
	body := resp.Body
	defer body.Close()

result, err := decodeListRepoGrantsResponse(resp)
	if err != nil {
		return res, errors.Wrap(err, "decode response")
	}

return result, nil
}

// ListServiceAccountGrants invokes listServiceAccountGrants operation.
//
// List service account grants.
30 unmodified lines

pathParts[2] = "/grants"
	uri.AddPathParts(u, pathParts[:]...)

r, err := ht.NewRequest(ctx, "GET", u)
	if err != nil {
		return res, errors.Wrap(err, "create request")
77 unmodified lines

uri.AddPathParts(u, pathParts[:]...)

if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
			if val, ok := params.PageToken.Get(); ok {
				return e.EncodeValue(conv.StringToString(val))
			}
			return nil
		}); err != nil {
			return res, errors.Wrap(err, "encode query")
		}
	}
	{
		// Encode "orgId" parameter.
		cfg := uri.QueryParameterEncodingConfig{
111 unmodified lines

uri.AddPathParts(u, pathParts[:]...)

if err := q.EncodeParam(cfg, func(e uri.Encoder) error {
			if val, ok := params.PageToken.Get(); ok {
				return e.EncodeValue(conv.StringToString(val))
			}
			return nil
		}); err != nil {
			return res, errors.Wrap(err, "encode query")
		}
	}
	{
		// Encode "permission" parameter.
		cfg := uri.QueryParameterEncodingConfig{
766 unmodified lines

return result, nil
}

// RevokeRepoAccess invokes revokeRepoAccess operation.
//
// Revoke repo access by grantee id.
//
// DELETE /repos/{repoId}/grants/{granteeType}/{granteeId}
func (c *Client) RevokeRepoAccess(ctx context.Context, params RevokeRepoAccessParams) error {
	_, err := c.sendRevokeRepoAccess(ctx, params)
	return err
}

func (c *Client) sendRevokeRepoAccess(ctx context.Context, params RevokeRepoAccessParams) (res *RevokeRepoAccessNoContent, err error) {

u := uri.Clone(c.requestURL(ctx))
	var pathParts [6]string
	pathParts[0] = "/repos/"
	{
		// Encode "repoId" parameter.
		e := uri.NewPathEncoder(uri.PathEncoderConfig{
			Param:   "repoId",
			Style:   uri.PathStyleSimple,
			Explode: false,
		})
		if err := func() error {
			return e.EncodeValue(conv.StringToString(params.RepoId))
		}(); err != nil {
			return res, errors.Wrap(err, "encode path")
		}
		encoded, err := e.Result()
		if err != nil {
			return res, errors.Wrap(err, "encode path")
		}
		pathParts[1] = encoded
	}
	pathParts[2] = "/grants/"
	{
		// Encode "granteeType" parameter.
		e := uri.NewPathEncoder(uri.PathEncoderConfig{
			Param:   "granteeType",
			Style:   uri.PathStyleSimple,
			Explode: false,
		})
		if err := func() error {
			return e.EncodeValue(conv.StringToString(params.GranteeType))
		}(); err != nil {
			return res, errors.Wrap(err, "encode path")
		}
		encoded, err := e.Result()
		if err != nil {
			return res, errors.Wrap(err, "encode path")
		}
		pathParts[3] = encoded
	}
	pathParts[4] = "/"
	{
		// Encode "granteeId" parameter.
		e := uri.NewPathEncoder(uri.PathEncoderConfig{
			Param:   "granteeId",
			Style:   uri.PathStyleSimple,
			Explode: false,
		})
		if err := func() error {
			return e.EncodeValue(conv.StringToString(params.GranteeId))
		}(); err != nil {
			return res, errors.Wrap(err, "encode path")
		}
		encoded, err := e.Result()
		if err != nil {
			return res, errors.Wrap(err, "encode path")
		}
		pathParts[5] = encoded
	}
	uri.AddPathParts(u, pathParts[:]...)

r, err := ht.NewRequest(ctx, "DELETE", u)
	if err != nil {
		return res, errors.Wrap(err, "create request")
	}

{
		type bitset = [1]uint8
		var satisfied bitset
		{

switch err := c.securityBearerAuth(ctx, RevokeRepoAccessOperation, r); {
			case err == nil: // if NO error
				satisfied[0] |= 1 << 0
			case errors.Is(err, ogenerrors.ErrSkipClientSecurity):
				// Skip this security.
			default:
				return res, errors.Wrap(err, "security \"BearerAuth\"")
			}
		}
		{

switch err := c.securitySessionAuth(ctx, RevokeRepoAccessOperation, r); {
			case err == nil: // if NO error
				satisfied[0] |= 1 << 1
			case errors.Is(err, ogenerrors.ErrSkipClientSecurity):
				// Skip this security.
			default:
				return res, errors.Wrap(err, "security \"SessionAuth\"")
			}
		}

resp, err := c.cfg.Client.Do(r)
	if err != nil {
		return res, errors.Wrap(err, "do request")
	}
	body := resp.Body
	defer body.Close()

result, err := decodeRevokeRepoAccessResponse(resp)
	if err != nil {
		return res, errors.Wrap(err, "decode response")
	}

return result, nil
}

// RevokeRepoAccessByProvider invokes revokeRepoAccessByProvider operation.
//
// Revoke repo access by provider identity.
//
// DELETE /repos/{repoId}/grants/account/{provider}/{providerUserId}
func (c *Client) RevokeRepoAccessByProvider(ctx context.Context, params RevokeRepoAccessByProviderParams) error {
	_, err := c.sendRevokeRepoAccessByProvider(ctx, params)
	return err
}

func (c *Client) sendRevokeRepoAccessByProvider(ctx context.Context, params RevokeRepoAccessByProviderParams) (res *RevokeRepoAccessByProviderNoContent, err error) {

r, err := ht.NewRequest(ctx, "DELETE", u)
	if err != nil {
		return res, errors.Wrap(err, "create request")
	}

{
		type bitset = [1]uint8
		var satisfied bitset
		{

switch err := c.securityBearerAuth(ctx, RevokeRepoAccessByProviderOperation, r); {
			case err == nil: // if NO error
				satisfied[0] |= 1 << 0
			case errors.Is(err, ogenerrors.ErrSkipClientSecurity):
				// Skip this security.
			default:
				return res, errors.Wrap(err, "security \"BearerAuth\"")
			}
		}
		{

switch err := c.securitySessionAuth(ctx, RevokeRepoAccessByProviderOperation, r); {
			case err == nil: // if NO error
				satisfied[0] |= 1 << 1
			case errors.Is(err, ogenerrors.ErrSkipClientSecurity):
				// Skip this security.
			default:
				return res, errors.Wrap(err, "security \"SessionAuth\"")
			}
		}

resp, err := c.cfg.Client.Do(r)
	if err != nil {
		return res, errors.Wrap(err, "do request")
	}
	body := resp.Body
	defer body.Close()

result, err := decodeRevokeRepoAccessByProviderResponse(resp)
	if err != nil {
		return res, errors.Wrap(err, "decode response")
	}

return result, nil
}

// RevokeServiceAccountAccess invokes revokeServiceAccountAccess operation.
//
// Revoke service account access.
131 unmodified lines

return result, nil
}

// UpdateMe invokes updateMe operation.
//
// Update the calling account's contact email.
//
// PATCH /me
func (c *Client) UpdateMe(ctx context.Context, request *UpdateMeInputBody) (*UpdateMeOutputBody, error) {
	res, err := c.sendUpdateMe(ctx, request)
	return res, err
}

func (c *Client) sendUpdateMe(ctx context.Context, request *UpdateMeInputBody) (res *UpdateMeOutputBody, err error) {

u := uri.Clone(c.requestURL(ctx))
	var pathParts [1]string
	pathParts[0] = "/me"
	uri.AddPathParts(u, pathParts[:]...)

r, err := ht.NewRequest(ctx, "PATCH", u)
	if err != nil {
		return res, errors.Wrap(err, "create request")
	}
	if err := encodeUpdateMeRequest(request, r); err != nil {
		return res, errors.Wrap(err, "encode request")
	}

{
		type bitset = [1]uint8
		var satisfied bitset
		{

switch err := c.securityBearerAuth(ctx, UpdateMeOperation, r); {
			case err == nil: // if NO error
				satisfied[0] |= 1 << 0
			case errors.Is(err, ogenerrors.ErrSkipClientSecurity):
				// Skip this security.
			default:
				return res, errors.Wrap(err, "security \"BearerAuth\"")
			}
		}
		{

switch err := c.securitySessionAuth(ctx, UpdateMeOperation, r); {
			case err == nil: // if NO error
				satisfied[0] |= 1 << 1
			case errors.Is(err, ogenerrors.ErrSkipClientSecurity):
				// Skip this security.
			default:
				return res, errors.Wrap(err, "security \"SessionAuth\"")
			}
		}

resp, err := c.cfg.Client.Do(r)
	if err != nil {
		return res, errors.Wrap(err, "do request")
	}
	body := resp.Body
	defer body.Close()

result, err := decodeUpdateMeResponse(resp)
	if err != nil {
		return res, errors.Wrap(err, "decode response")
	}

return result, nil
}
```

Minternal/coreapi/oas\_client\_gen.go+1571/-16

```
1593 unmodified lines

1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
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
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
3394 unmodified lines

5218
5219
5220
4997
5221
5222
5223
5224
70 unmodified lines

5295
5296
5297
5074
5075
5076
5298
5299
5300
5301
143 unmodified lines

5445
5446
5447
5226
5227
5228
5229
5448
5449
5450
14 unmodified lines

5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
215 unmodified lines

5728
5729
5730
5471
5731
5732
5733
5734
70 unmodified lines

5805
5806
5807
5548
5549
5550
5808
5809
5810
5811
143 unmodified lines

5955
5956
5957
5700
5701
5702
5703
5958
5959
5960
14 unmodified lines

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
209 unmodified lines

6232
6233
6234
5939
6235
6236
6237
6238
56 unmodified lines

6295
6296
6297
6002
6003
6004
6298
6299
6300
6301
165 unmodified lines

6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
414 unmodified lines

6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
3 unmodified lines

6944
6945
6946
6605
6947
6948
6949
6950
6951
6952
6953
34 unmodified lines

6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
342 unmodified lines

7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
3 unmodified lines

7361
7362
7363
7005
7364
7365
7366
7367
7368
7369
7370
34 unmodified lines

7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
119 unmodified lines

7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
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
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
217 unmodified lines

7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
3 unmodified lines

7978
7979
7980
7405
7981
7982
7983
7984
7985
7986
7987
34 unmodified lines

8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
134 unmodified lines

8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
11 unmodified lines

8195
8196
8197
7605
8198
8199
7607
8200
8201
8202
8203
8204
16 unmodified lines

8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
7631
8235
8236
8237
8238
31 unmodified lines

8270
8271
8272
7669
8273
8274
8275
8276
120 unmodified lines

8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
3 unmodified lines

8412
8413
8414
7805
8415
8416
8417
8418
8419
8420
8421
34 unmodified lines

8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
135 unmodified lines

8607
8608
8609
7989
7990
7991
7992
8610
8611
8612
8613
7994
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
3 unmodified lines

8637
8638
8639
8005
8640
8641
8007
8642
8643
8644
8645
8646
8647
1 unmodified line

8649
8650
8651
8015
8652
8653
8654
8 unmodified lines

8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8031
8687
8688
8689
28 unmodified lines

8718
8719
8720
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8721
8722
8723
85 unmodified lines

8809
8810
8811
8189
8190
8191
8192
8812
8813
8814
8815
8194
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
3 unmodified lines

8839
8840
8841
8205
8842
8843
8207
8844
8845
8846
8847
8848
8849
1 unmodified line

8851
8852
8853
8215
8854
8855
8856
8 unmodified lines

8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8231
8889
8890
8891
28 unmodified lines

8920
8921
8922
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8923
8924
8925
92 unmodified lines

9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
3 unmodified lines

9033
9034
9035
8405
9036
9037
9038
9039
9040
9041
9042
34 unmodified lines

9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
135 unmodified lines

9228
9229
9230
8589
8590
8591
8592
9231
9232
9233
9234
8594
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
3 unmodified lines

9258
9259
9260
8605
9261
9262
8607
9263
9264
9265
9266
9267
9268
1 unmodified line

9270
9271
9272
8615
9273
9274
9275
8 unmodified lines

9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
8631
9308
9309
9310
28 unmodified lines

9339
9340
9341
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
9342
9343
9344
84 unmodified lines

9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
19 unmodified lines

9460
9461
9462
8813
9463
9464
8815
8816
9465
9466
9467
9468
9469
9470
15 unmodified lines

9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
114 unmodified lines

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
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
17 unmodified lines

9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
3 unmodified lines

9871
9872
9873
8990
9874
9875
9876
9877
9878
9879
9880
34 unmodified lines

9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
134 unmodified lines

10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
11 unmodified lines

10088
10089
10090
9190
10091
10092
9192
10093
10094
10095
10096
10097
16 unmodified lines

10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
9216
10128
10129
10130
10131
31 unmodified lines

10163
10164
10165
9254
10166
10167
10168
10169
617 unmodified lines

10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
33 unmodified lines

10832
10833
10834
9917
10835
10836
9919
9920
9921
9922
10837
10838
10839
10840
10841
10842
10843
10844
16 unmodified lines

10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
24 unmodified lines

10901
10902
10903
9975
10904
10905
10906
10907
42 unmodified lines

10950
10951
10952
10024
10953
10954
10955
10956
547 unmodified lines

11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
15 unmodified lines

11531
11532
11533
10599
10600
10601
10602
11534
11535
11536
11537
11538
11539
11540
11541
6 unmodified lines

11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
10616
11562
11563
11564
11565
5 unmodified lines

11571
11572
11573
10628
11574
11575
11576
11577
5 unmodified lines

11583
11584
11585
10640
11586
11587
11588
11589
25 unmodified lines

11615
11616
11617
10672
11618
11619
11620
11621
872 unmodified lines

12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
57 unmodified lines

12563
12564
12565
11614
12566
12567
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
16 unmodified lines

12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
11650
12613
12614
12615
12616
5 unmodified lines

12622
12623
12624
11662
12625
12626
12627
12628
45 unmodified lines

12674
12675
12676
11714
12677
12678
12679
12680
5 unmodified lines

12686
12687
12688
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
12689
12690
12691
11741
12692
12693
12694
12695
12696
12697
11747
12698
12699
11749
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
35 unmodified lines

12752
12753
12754
11792
11793
12755
12756
12757
12758
12759
998 unmodified lines

13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
27 unmodified lines

13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
1286 unmodified lines

15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
1304 unmodified lines

16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048

1593 unmodified lines

return s.Decode(d)
}

// Encode implements json.Marshaler.
func (s *Cluster) Encode(e *jx.Encoder) {
	e.ObjStart()
	s.encodeFields(e)
	e.ObjEnd()
}

// encodeFields encodes fields.
func (s *Cluster) encodeFields(e *jx.Encoder) {
	{
		e.FieldStart("isDefault")
		e.Bool(s.IsDefault)
	}
	{
		e.FieldStart("jurisdiction")
		e.Str(s.Jurisdiction)
	}
	{
		e.FieldStart("publicUrl")
		e.Str(s.PublicUrl)
	}
	{
		e.FieldStart("slug")
		e.Str(s.Slug)
	}
	for k, elem := range s.AdditionalProps {
		e.FieldStart(k)

if len(elem) != 0 {
			e.Raw(elem)
		}
	}
}

var jsonFieldsNameOfCluster = [4]string{
	0: "isDefault",
	1: "jurisdiction",
	2: "publicUrl",
	3: "slug",
}

// Decode decodes Cluster from json.
func (s *Cluster) Decode(d *jx.Decoder) error {
	if s == nil {
		return errors.New("invalid: unable to decode Cluster 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) {
		case "isDefault":
			requiredBitSet[0] |= 1 << 0
			if err := func() error {
				v, err := d.Bool()
				s.IsDefault = bool(v)
				if err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"isDefault\"")
			}
		case "jurisdiction":
			requiredBitSet[0] |= 1 << 1
			if err := func() error {
				v, err := d.Str()
				s.Jurisdiction = string(v)
				if err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"jurisdiction\"")
			}
		case "publicUrl":
			requiredBitSet[0] |= 1 << 2
			if err := func() error {
				v, err := d.Str()
				s.PublicUrl = string(v)
				if err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"publicUrl\"")
			}
		case "slug":
			requiredBitSet[0] |= 1 << 3
			if err := func() error {
				v, err := d.Str()
				s.Slug = string(v)
				if err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"slug\"")
			}
		default:
			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 {
		return errors.Wrap(err, "decode Cluster")
	}
	// Validate required fields.
	var failures []validate.FieldError
	for i, mask := range [1]uint8{
		0b00001111,
	} {
		if result := (requiredBitSet[i] & mask) ^ mask; result != 0 {
			// Mask only required fields and check equality to mask using XOR.
			//
			// If XOR result is not zero, result is not equal to expected, so some fields are missed.
			// Bits of fields which would be set are actually bits of missed fields.
			missed := bits.OnesCount8(result)
			for bitN := 0; bitN < missed; bitN++ {
				bitIdx := bits.TrailingZeros8(result)
				fieldIdx := i*8 + bitIdx
				var name string
				if fieldIdx < len(jsonFieldsNameOfCluster) {
					name = jsonFieldsNameOfCluster[fieldIdx]
				} else {
					name = strconv.Itoa(fieldIdx)
				}
				failures = append(failures, validate.FieldError{
					Name:  name,
					Error: validate.ErrFieldRequired,
				})
				// Reset bit.
				result &^= 1 << bitIdx
			}
		}
	}
	if len(failures) > 0 {
		return &validate.Error{Fields: failures}
	}

return nil
}

// MarshalJSON implements stdjson.Marshaler.
func (s *Cluster) MarshalJSON() ([]byte, error) {
	e := jx.Encoder{}
	s.Encode(&e)
	return e.Bytes(), nil
}

// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *Cluster) UnmarshalJSON(data []byte) error {
	d := jx.DecodeBytes(data)
	return s.Decode(d)
}

// Encode implements json.Marshaler.
func (s ClusterAdditional) Encode(e *jx.Encoder) {
	e.ObjStart()
	s.encodeFields(e)
	e.ObjEnd()
}

// encodeFields implements json.Marshaler.
func (s ClusterAdditional) encodeFields(e *jx.Encoder) {
	for k, elem := range s {
		e.FieldStart(k)

if len(elem) != 0 {
			e.Raw(elem)
		}
	}
}

// Decode decodes ClusterAdditional from json.
func (s *ClusterAdditional) Decode(d *jx.Decoder) error {
	if s == nil {
		return errors.New("invalid: unable to decode ClusterAdditional 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 ClusterAdditional")
	}

return nil
}

// MarshalJSON implements stdjson.Marshaler.
func (s ClusterAdditional) MarshalJSON() ([]byte, error) {
	e := jx.Encoder{}
	s.Encode(&e)
	return e.Bytes(), nil
}

// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ClusterAdditional) 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()
3394 unmodified lines

}
	{
		e.FieldStart("role")
		e.Str(s.Role)
		s.Role.Encode(e)
	}
	for k, elem := range s.AdditionalProps {
		e.FieldStart(k)
70 unmodified lines

case "role":
			requiredBitSet[0] |= 1 << 4
			if err := func() error {
				v, err := d.Str()
				s.Role = string(v)
				if err != nil {
				if err := s.Role.Decode(d); err != nil {
					return err
				}
				return nil
143 unmodified lines

switch GrantProjectAccessInputBodyGranteeType(v) {
	case GrantProjectAccessInputBodyGranteeTypeAccount:
		*s = GrantProjectAccessInputBodyGranteeTypeAccount
	case GrantProjectAccessInputBodyGranteeTypeOrg:
		*s = GrantProjectAccessInputBodyGranteeTypeOrg
	case GrantProjectAccessInputBodyGranteeTypeTeam:
		*s = GrantProjectAccessInputBodyGranteeTypeTeam
	default:
		*s = GrantProjectAccessInputBodyGranteeType(v)
	}
14 unmodified lines

return s.Decode(d)
}

// Encode encodes GrantProjectAccessInputBodyRole as json.
func (s GrantProjectAccessInputBodyRole) Encode(e *jx.Encoder) {
	e.Str(string(s))
}

// Decode decodes GrantProjectAccessInputBodyRole from json.
func (s *GrantProjectAccessInputBodyRole) Decode(d *jx.Decoder) error {
	if s == nil {
		return errors.New("invalid: unable to decode GrantProjectAccessInputBodyRole to nil")
	}
	v, err := d.StrBytes()
	if err != nil {
		return err
	}
	// Try to use constant string.
	switch GrantProjectAccessInputBodyRole(v) {
	case GrantProjectAccessInputBodyRoleReader:
		*s = GrantProjectAccessInputBodyRoleReader
	case GrantProjectAccessInputBodyRoleWriter:
		*s = GrantProjectAccessInputBodyRoleWriter
	case GrantProjectAccessInputBodyRoleAdmin:
		*s = GrantProjectAccessInputBodyRoleAdmin
	default:
		*s = GrantProjectAccessInputBodyRole(v)
	}

return nil
}

// MarshalJSON implements stdjson.Marshaler.
func (s GrantProjectAccessInputBodyRole) MarshalJSON() ([]byte, error) {
	e := jx.Encoder{}
	s.Encode(&e)
	return e.Bytes(), nil
}

// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *GrantProjectAccessInputBodyRole) UnmarshalJSON(data []byte) error {
	d := jx.DecodeBytes(data)
	return s.Decode(d)
}

// Encode implements json.Marshaler.
func (s *GrantProjectAccessOutputBody) Encode(e *jx.Encoder) {
	e.ObjStart()
215 unmodified lines

}
	{
		e.FieldStart("role")
		e.Str(s.Role)
		s.Role.Encode(e)
	}
	for k, elem := range s.AdditionalProps {
		e.FieldStart(k)
70 unmodified lines

switch GrantRepoAccessInputBodyGranteeType(v) {
	case GrantRepoAccessInputBodyGranteeTypeAccount:
		*s = GrantRepoAccessInputBodyGranteeTypeAccount
	case GrantRepoAccessInputBodyGranteeTypeOrg:
		*s = GrantRepoAccessInputBodyGranteeTypeOrg
	case GrantRepoAccessInputBodyGranteeTypeTeam:
		*s = GrantRepoAccessInputBodyGranteeTypeTeam
	default:
		*s = GrantRepoAccessInputBodyGranteeType(v)
	}
14 unmodified lines

return s.Decode(d)
}

// Encode encodes GrantRepoAccessInputBodyRole as json.
func (s GrantRepoAccessInputBodyRole) Encode(e *jx.Encoder) {
	e.Str(string(s))
}

// Decode decodes GrantRepoAccessInputBodyRole from json.
func (s *GrantRepoAccessInputBodyRole) Decode(d *jx.Decoder) error {
	if s == nil {
		return errors.New("invalid: unable to decode GrantRepoAccessInputBodyRole to nil")
	}
	v, err := d.StrBytes()
	if err != nil {
		return err
	}
	// Try to use constant string.
	switch GrantRepoAccessInputBodyRole(v) {
	case GrantRepoAccessInputBodyRoleReader:
		*s = GrantRepoAccessInputBodyRoleReader
	case GrantRepoAccessInputBodyRoleWriter:
		*s = GrantRepoAccessInputBodyRoleWriter
	case GrantRepoAccessInputBodyRoleAdmin:
		*s = GrantRepoAccessInputBodyRoleAdmin
	default:
		*s = GrantRepoAccessInputBodyRole(v)
	}

return nil
}

// MarshalJSON implements stdjson.Marshaler.
func (s GrantRepoAccessInputBodyRole) MarshalJSON() ([]byte, error) {
	e := jx.Encoder{}
	s.Encode(&e)
	return e.Bytes(), nil
}

// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *GrantRepoAccessInputBodyRole) UnmarshalJSON(data []byte) error {
	d := jx.DecodeBytes(data)
	return s.Decode(d)
}

// Encode implements json.Marshaler.
func (s *GrantRepoAccessOutputBody) Encode(e *jx.Encoder) {
	e.ObjStart()
209 unmodified lines

}
	{
		e.FieldStart("role")
		e.Str(s.Role)
		s.Role.Encode(e)
	}
	for k, elem := range s.AdditionalProps {
		e.FieldStart(k)
56 unmodified lines

case "role":
			requiredBitSet[0] |= 1 << 3
			if err := func() error {
				v, err := d.Str()
				s.Role = string(v)
				if err != nil {
				if err := s.Role.Decode(d); err != nil {
					return err
				}
				return nil
165 unmodified lines

return s.Decode(d)
}

// Encode encodes GrantServiceAccountAccessInputBodyRole as json.
func (s GrantServiceAccountAccessInputBodyRole) Encode(e *jx.Encoder) {
	e.Str(string(s))
}

// Decode decodes GrantServiceAccountAccessInputBodyRole from json.
func (s *GrantServiceAccountAccessInputBodyRole) Decode(d *jx.Decoder) error {
	if s == nil {
		return errors.New("invalid: unable to decode GrantServiceAccountAccessInputBodyRole to nil")
	}
	v, err := d.StrBytes()
	if err != nil {
		return err
	}
	// Try to use constant string.
	switch GrantServiceAccountAccessInputBodyRole(v) {
	case GrantServiceAccountAccessInputBodyRoleReader:
		*s = GrantServiceAccountAccessInputBodyRoleReader
	case GrantServiceAccountAccessInputBodyRoleWriter:
		*s = GrantServiceAccountAccessInputBodyRoleWriter
	case GrantServiceAccountAccessInputBodyRoleAdmin:
		*s = GrantServiceAccountAccessInputBodyRoleAdmin
	default:
		*s = GrantServiceAccountAccessInputBodyRole(v)
	}

return nil
}

// MarshalJSON implements stdjson.Marshaler.
func (s GrantServiceAccountAccessInputBodyRole) MarshalJSON() ([]byte, error) {
	e := jx.Encoder{}
	s.Encode(&e)
	return e.Bytes(), nil
}

// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *GrantServiceAccountAccessInputBodyRole) UnmarshalJSON(data []byte) error {
	d := jx.DecodeBytes(data)
	return s.Decode(d)
}

// Encode implements json.Marshaler.
func (s *GrantServiceAccountAccessOutputBody) Encode(e *jx.Encoder) {
	e.ObjStart()
414 unmodified lines

}
		e.ArrEnd()
	}
	{
		if s.NextPageToken.Set {
			e.FieldStart("nextPageToken")
			s.NextPageToken.Encode(e)
		}
	}
	for k, elem := range s.AdditionalProps {
		e.FieldStart(k)

3 unmodified lines

}
}

var jsonFieldsNameOfListAuditEventsOutputBody = [2]string{
var jsonFieldsNameOfListAuditEventsOutputBody = [3]string{
	0: "$schema",
	1: "events",
	2: "nextPageToken",
}

// Decode decodes ListAuditEventsOutputBody from json.
34 unmodified lines

}(); err != nil {
				return errors.Wrap(err, "decode field \"events\"")
			}
		case "nextPageToken":
			if err := func() error {
				s.NextPageToken.Reset()
				if err := s.NextPageToken.Decode(d); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"nextPageToken\"")
			}
		default:
			var elem jx.Raw
			if err := func() error {
342 unmodified lines

}
		e.ArrEnd()
	}
	{
		if s.NextPageToken.Set {
			e.FieldStart("nextPageToken")
			s.NextPageToken.Encode(e)
		}
	}
	for k, elem := range s.AdditionalProps {
		e.FieldStart(k)

3 unmodified lines

}
}

var jsonFieldsNameOfListBindingsOutputBody = [2]string{
var jsonFieldsNameOfListBindingsOutputBody = [3]string{
	0: "$schema",
	1: "bindings",
	2: "nextPageToken",
}

// Decode decodes ListBindingsOutputBody from json.
34 unmodified lines

}(); err != nil {
				return errors.Wrap(err, "decode field \"bindings\"")
			}
		case "nextPageToken":
			if err := func() error {
				s.NextPageToken.Reset()
				if err := s.NextPageToken.Decode(d); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"nextPageToken\"")
			}
		default:
			var elem jx.Raw
			if err := func() error {
119 unmodified lines

return s.Decode(d)
}

// Encode implements json.Marshaler.
func (s *ListClustersOutputBody) Encode(e *jx.Encoder) {
	e.ObjStart()
	s.encodeFields(e)
	e.ObjEnd()
}

// encodeFields encodes fields.
func (s *ListClustersOutputBody) encodeFields(e *jx.Encoder) {
	{
		if s.Schema.Set {
			e.FieldStart("$schema")
			s.Schema.Encode(e)
		}
	}
	{
		e.FieldStart("clusters")
		e.ArrStart()
		for _, elem := range s.Clusters {
			elem.Encode(e)
		}
		e.ArrEnd()
	}
	for k, elem := range s.AdditionalProps {
		e.FieldStart(k)

if len(elem) != 0 {
			e.Raw(elem)
		}
	}
}

var jsonFieldsNameOfListClustersOutputBody = [2]string{
	0: "$schema",
	1: "clusters",
}

// Decode decodes ListClustersOutputBody from json.
func (s *ListClustersOutputBody) Decode(d *jx.Decoder) error {
	if s == nil {
		return errors.New("invalid: unable to decode ListClustersOutputBody 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) {
		case "$schema":
			if err := func() error {
				s.Schema.Reset()
				if err := s.Schema.Decode(d); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"$schema\"")
			}
		case "clusters":
			requiredBitSet[0] |= 1 << 1
			if err := func() error {
				s.Clusters = make([]Cluster, 0)
				if err := d.Arr(func(d *jx.Decoder) error {
					var elem Cluster
					if err := elem.Decode(d); err != nil {
						return err
					}
					s.Clusters = append(s.Clusters, elem)
					return nil
				}); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"clusters\"")
			}
		default:
			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 {
		return errors.Wrap(err, "decode ListClustersOutputBody")
	}
	// Validate required fields.
	var failures []validate.FieldError
	for i, mask := range [1]uint8{
		0b00000010,
	} {
		if result := (requiredBitSet[i] & mask) ^ mask; result != 0 {
			// Mask only required fields and check equality to mask using XOR.
			//
			// If XOR result is not zero, result is not equal to expected, so some fields are missed.
			// Bits of fields which would be set are actually bits of missed fields.
			missed := bits.OnesCount8(result)
			for bitN := 0; bitN < missed; bitN++ {
				bitIdx := bits.TrailingZeros8(result)
				fieldIdx := i*8 + bitIdx
				var name string
				if fieldIdx < len(jsonFieldsNameOfListClustersOutputBody) {
					name = jsonFieldsNameOfListClustersOutputBody[fieldIdx]
				} else {
					name = strconv.Itoa(fieldIdx)
				}
				failures = append(failures, validate.FieldError{
					Name:  name,
					Error: validate.ErrFieldRequired,
				})
				// Reset bit.
				result &^= 1 << bitIdx
			}
		}
	}
	if len(failures) > 0 {
		return &validate.Error{Fields: failures}
	}

return nil
}

// MarshalJSON implements stdjson.Marshaler.
func (s *ListClustersOutputBody) MarshalJSON() ([]byte, error) {
	e := jx.Encoder{}
	s.Encode(&e)
	return e.Bytes(), nil
}

// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ListClustersOutputBody) UnmarshalJSON(data []byte) error {
	d := jx.DecodeBytes(data)
	return s.Decode(d)
}

// Encode implements json.Marshaler.
func (s ListClustersOutputBodyAdditional) Encode(e *jx.Encoder) {
	e.ObjStart()
	s.encodeFields(e)
	e.ObjEnd()
}

// encodeFields implements json.Marshaler.
func (s ListClustersOutputBodyAdditional) encodeFields(e *jx.Encoder) {
	for k, elem := range s {
		e.FieldStart(k)

if len(elem) != 0 {
			e.Raw(elem)
		}
	}
}

// Decode decodes ListClustersOutputBodyAdditional from json.
func (s *ListClustersOutputBodyAdditional) Decode(d *jx.Decoder) error {
	if s == nil {
		return errors.New("invalid: unable to decode ListClustersOutputBodyAdditional 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 ListClustersOutputBodyAdditional")
	}

return nil
}

// MarshalJSON implements stdjson.Marshaler.
func (s ListClustersOutputBodyAdditional) MarshalJSON() ([]byte, error) {
	e := jx.Encoder{}
	s.Encode(&e)
	return e.Bytes(), nil
}

// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ListClustersOutputBodyAdditional) UnmarshalJSON(data []byte) error {
	d := jx.DecodeBytes(data)
	return s.Decode(d)
}

// Encode implements json.Marshaler.
func (s *ListMirrorCollaboratorsOutputBody) Encode(e *jx.Encoder) {
	e.ObjStart()
217 unmodified lines

}
		e.ArrEnd()
	}
	{
		if s.NextPageToken.Set {
			e.FieldStart("nextPageToken")
			s.NextPageToken.Encode(e)
		}
	}
	for k, elem := range s.AdditionalProps {
		e.FieldStart(k)

3 unmodified lines

}
}

var jsonFieldsNameOfListMirrorsOutputBody = [2]string{
var jsonFieldsNameOfListMirrorsOutputBody = [3]string{
	0: "$schema",
	1: "mirrors",
	2: "nextPageToken",
}

// Decode decodes ListMirrorsOutputBody from json.
34 unmodified lines

}(); err != nil {
				return errors.Wrap(err, "decode field \"mirrors\"")
			}
		case "nextPageToken":
			if err := func() error {
				s.NextPageToken.Reset()
				if err := s.NextPageToken.Decode(d); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"nextPageToken\"")
			}
		default:
			var elem jx.Raw
			if err := func() error {
134 unmodified lines

s.Schema.Encode(e)
		}
	}
	{
		if s.NextPageToken.Set {
			e.FieldStart("nextPageToken")
			s.NextPageToken.Encode(e)
		}
	}
	{
		e.FieldStart("providers")
		e.ArrStart()
11 unmodified lines

}
}

var jsonFieldsNameOfListOIDCProvidersOutputBody = [2]string{
var jsonFieldsNameOfListOIDCProvidersOutputBody = [3]string{
	0: "$schema",
	1: "providers",
	1: "nextPageToken",
	2: "providers",
}

// Decode decodes ListOIDCProvidersOutputBody from json.
16 unmodified lines

}(); err != nil {
				return errors.Wrap(err, "decode field \"$schema\"")
			}
		case "nextPageToken":
			if err := func() error {
				s.NextPageToken.Reset()
				if err := s.NextPageToken.Decode(d); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"nextPageToken\"")
			}
		case "providers":
			requiredBitSet[0] |= 1 << 1
			requiredBitSet[0] |= 1 << 2
			if err := func() error {
				s.Providers = make([]OIDCProvider, 0)
				if err := d.Arr(func(d *jx.Decoder) error {
31 unmodified lines

// Validate required fields.
	var failures []validate.FieldError
	for i, mask := range [1]uint8{
		0b00000010,
		0b00000100,
	} {
		if result := (requiredBitSet[i] & mask) ^ mask; result != 0 {
			// Mask only required fields and check equality to mask using XOR.
120 unmodified lines

}
		e.ArrEnd()
	}
	{
		if s.NextPageToken.Set {
			e.FieldStart("nextPageToken")
			s.NextPageToken.Encode(e)
		}
	}
	for k, elem := range s.AdditionalProps {
		e.FieldStart(k)

3 unmodified lines

}
}

var jsonFieldsNameOfListOrgMembersOutputBody = [2]string{
var jsonFieldsNameOfListOrgMembersOutputBody = [3]string{
	0: "$schema",
	1: "members",
	2: "nextPageToken",
}

// Decode decodes ListOrgMembersOutputBody from json.
34 unmodified lines

}(); err != nil {
				return errors.Wrap(err, "decode field \"members\"")
			}
		case "nextPageToken":
			if err := func() error {
				s.NextPageToken.Reset()
				if err := s.NextPageToken.Decode(d); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"nextPageToken\"")
			}
		default:
			var elem jx.Raw
			if err := func() error {
135 unmodified lines

}
	}
	{
		e.FieldStart("projects")
		e.ArrStart()
		for _, elem := range s.Projects {
			elem.Encode(e)
		if s.NextPageToken.Set {
			e.FieldStart("nextPageToken")
			s.NextPageToken.Encode(e)
		}
		e.ArrEnd()
	}
	{
		if s.Project.Set {
			e.FieldStart("project")
			s.Project.Encode(e)
		}
	}
	{
		if s.Projects != nil {
			e.FieldStart("projects")
			e.ArrStart()
			for _, elem := range s.Projects {
				elem.Encode(e)
			}
			e.ArrEnd()
		}
	}
	for k, elem := range s.AdditionalProps {
		e.FieldStart(k)

3 unmodified lines

}
}

var jsonFieldsNameOfListOrgProjectsOutputBody = [2]string{
var jsonFieldsNameOfListOrgProjectsOutputBody = [4]string{
	0: "$schema",
	1: "projects",
	1: "nextPageToken",
	2: "project",
	3: "projects",
}

// Decode decodes ListOrgProjectsOutputBody from json.
1 unmodified line

if s == nil {
		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 {
8 unmodified lines

}(); err != nil {
				return errors.Wrap(err, "decode field \"$schema\"")
			}
		case "nextPageToken":
			if err := func() error {
				s.NextPageToken.Reset()
				if err := s.NextPageToken.Decode(d); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"nextPageToken\"")
			}
		case "project":
			if err := func() error {
				s.Project.Reset()
				if err := s.Project.Decode(d); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"project\"")
			}
		case "projects":
			requiredBitSet[0] |= 1 << 1
			if err := func() error {
				s.Projects = make([]Project, 0)
				if err := d.Arr(func(d *jx.Decoder) error {
28 unmodified lines

}); err != nil {
		return errors.Wrap(err, "decode ListOrgProjectsOutputBody")
	}
	// Validate required fields.
	var failures []validate.FieldError
	for i, mask := range [1]uint8{
		0b00000010,
	} {
		if result := (requiredBitSet[i] & mask) ^ mask; result != 0 {
			// Mask only required fields and check equality to mask using XOR.
			//
			// If XOR result is not zero, result is not equal to expected, so some fields are missed.
			// Bits of fields which would be set are actually bits of missed fields.
			missed := bits.OnesCount8(result)
			for bitN := 0; bitN < missed; bitN++ {
				bitIdx := bits.TrailingZeros8(result)
				fieldIdx := i*8 + bitIdx
				var name string
				if fieldIdx < len(jsonFieldsNameOfListOrgProjectsOutputBody) {
					name = jsonFieldsNameOfListOrgProjectsOutputBody[fieldIdx]
				} else {
					name = strconv.Itoa(fieldIdx)
				}
				failures = append(failures, validate.FieldError{
					Name:  name,
					Error: validate.ErrFieldRequired,
				})
				// Reset bit.
				result &^= 1 << bitIdx
			}
		}
	}
	if len(failures) > 0 {
		return &validate.Error{Fields: failures}
	}

return nil
}
85 unmodified lines

}
	}
	{
		e.FieldStart("orgs")
		e.ArrStart()
		for _, elem := range s.Orgs {
			elem.Encode(e)
		if s.NextPageToken.Set {
			e.FieldStart("nextPageToken")
			s.NextPageToken.Encode(e)
		}
		e.ArrEnd()
	}
	{
		if s.Org.Set {
			e.FieldStart("org")
			s.Org.Encode(e)
		}
	}
	{
		if s.Orgs != nil {
			e.FieldStart("orgs")
			e.ArrStart()
			for _, elem := range s.Orgs {
				elem.Encode(e)
			}
			e.ArrEnd()
		}
	}
	for k, elem := range s.AdditionalProps {
		e.FieldStart(k)

3 unmodified lines

}
}

var jsonFieldsNameOfListOrgsOutputBody = [2]string{
var jsonFieldsNameOfListOrgsOutputBody = [4]string{
	0: "$schema",
	1: "orgs",
	1: "nextPageToken",
	2: "org",
	3: "orgs",
}

// Decode decodes ListOrgsOutputBody from json.
1 unmodified line

if s == nil {
		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 {
8 unmodified lines

}(); err != nil {
				return errors.Wrap(err, "decode field \"$schema\"")
			}
		case "nextPageToken":
			if err := func() error {
				s.NextPageToken.Reset()
				if err := s.NextPageToken.Decode(d); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"nextPageToken\"")
			}
		case "org":
			if err := func() error {
				s.Org.Reset()
				if err := s.Org.Decode(d); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"org\"")
			}
		case "orgs":
			requiredBitSet[0] |= 1 << 1
			if err := func() error {
				s.Orgs = make([]Org, 0)
				if err := d.Arr(func(d *jx.Decoder) error {
28 unmodified lines

}); err != nil {
		return errors.Wrap(err, "decode ListOrgsOutputBody")
	}
	// Validate required fields.
	var failures []validate.FieldError
	for i, mask := range [1]uint8{
		0b00000010,
	} {
		if result := (requiredBitSet[i] & mask) ^ mask; result != 0 {
			// Mask only required fields and check equality to mask using XOR.
			//
			// If XOR result is not zero, result is not equal to expected, so some fields are missed.
			// Bits of fields which would be set are actually bits of missed fields.
			missed := bits.OnesCount8(result)
			for bitN := 0; bitN < missed; bitN++ {
				bitIdx := bits.TrailingZeros8(result)
				fieldIdx := i*8 + bitIdx
				var name string
				if fieldIdx < len(jsonFieldsNameOfListOrgsOutputBody) {
					name = jsonFieldsNameOfListOrgsOutputBody[fieldIdx]
				} else {
					name = strconv.Itoa(fieldIdx)
				}
				failures = append(failures, validate.FieldError{
					Name:  name,
					Error: validate.ErrFieldRequired,
				})
				// Reset bit.
				result &^= 1 << bitIdx
			}
		}
	}
	if len(failures) > 0 {
		return &validate.Error{Fields: failures}
	}

return nil
}
92 unmodified lines

}
		e.ArrEnd()
	}
	{
		if s.NextPageToken.Set {
			e.FieldStart("nextPageToken")
			s.NextPageToken.Encode(e)
		}
	}
	for k, elem := range s.AdditionalProps {
		e.FieldStart(k)

3 unmodified lines

}
}

var jsonFieldsNameOfListProjectMembersOutputBody = [2]string{
var jsonFieldsNameOfListProjectMembersOutputBody = [3]string{
	0: "$schema",
	1: "members",
	2: "nextPageToken",
}

// Decode decodes ListProjectMembersOutputBody from json.
34 unmodified lines

}
	}
	{
		e.FieldStart("repos")
		e.ArrStart()
		for _, elem := range s.Repos {
			elem.Encode(e)
		if s.NextPageToken.Set {
			e.FieldStart("nextPageToken")
			s.NextPageToken.Encode(e)
		}
		e.ArrEnd()
	}
	{
		if s.Repo.Set {
			e.FieldStart("repo")
			s.Repo.Encode(e)
		}
	}
	{
		if s.Repos != nil {
			e.FieldStart("repos")
			e.ArrStart()
			for _, elem := range s.Repos {
				elem.Encode(e)
			}
			e.ArrEnd()
		}
	}
	for k, elem := range s.AdditionalProps {
		e.FieldStart(k)

3 unmodified lines

}
}

var jsonFieldsNameOfListProjectReposOutputBody = [2]string{
var jsonFieldsNameOfListProjectReposOutputBody = [4]string{
	0: "$schema",
	1: "repos",
	1: "nextPageToken",
	2: "repo",
	3: "repos",
}

// Decode decodes ListProjectReposOutputBody from json.
1 unmodified line

if s == nil {
		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 {
8 unmodified lines

}(); err != nil {
				return errors.Wrap(err, "decode field \"$schema\"")
			}
		case "nextPageToken":
			if err := func() error {
				s.NextPageToken.Reset()
				if err := s.NextPageToken.Decode(d); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"nextPageToken\"")
			}
		case "repo":
			if err := func() error {
				s.Repo.Reset()
				if err := s.Repo.Decode(d); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"repo\"")
			}
		case "repos":
			requiredBitSet[0] |= 1 << 1
			if err := func() error {
				s.Repos = make([]Repo, 0)
				if err := d.Arr(func(d *jx.Decoder) error {
28 unmodified lines

}); err != nil {
		return errors.Wrap(err, "decode ListProjectReposOutputBody")
	}
	// Validate required fields.
	var failures []validate.FieldError
	for i, mask := range [1]uint8{
		0b00000010,
	} {
		if result := (requiredBitSet[i] & mask) ^ mask; result != 0 {
			// Mask only required fields and check equality to mask using XOR.
			//
			// If XOR result is not zero, result is not equal to expected, so some fields are missed.
			// Bits of fields which would be set are actually bits of missed fields.
			missed := bits.OnesCount8(result)
			for bitN := 0; bitN < missed; bitN++ {
				bitIdx := bits.TrailingZeros8(result)
				fieldIdx := i*8 + bitIdx
				var name string
				if fieldIdx < len(jsonFieldsNameOfListProjectReposOutputBody) {
					name = jsonFieldsNameOfListProjectReposOutputBody[fieldIdx]
				} else {
					name = strconv.Itoa(fieldIdx)
				}
				failures = append(failures, validate.FieldError{
					Name:  name,
					Error: validate.ErrFieldRequired,
				})
				// Reset bit.
				result &^= 1 << bitIdx
			}
		}
	}
	if len(failures) > 0 {
		return &validate.Error{Fields: failures}
	}

return nil
}
84 unmodified lines

s.Schema.Encode(e)
		}
	}
	{
		if s.NextPageToken.Set {
			e.FieldStart("nextPageToken")
			s.NextPageToken.Encode(e)
		}
	}
	{
		if s.Project.Set {
			e.FieldStart("project")
19 unmodified lines

}
}

var jsonFieldsNameOfListProjectsOutputBody = [3]string{
var jsonFieldsNameOfListProjectsOutputBody = [4]string{
	0: "$schema",
	1: "project",
	2: "projects",
	1: "nextPageToken",
	2: "project",
	3: "projects",
}

// Decode decodes ListProjectsOutputBody from json.
15 unmodified lines

}(); err != nil {
				return errors.Wrap(err, "decode field \"$schema\"")
			}
		case "nextPageToken":
			if err := func() error {
				s.NextPageToken.Reset()
				if err := s.NextPageToken.Decode(d); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"nextPageToken\"")
			}
		case "project":
			if err := func() error {
				s.Project.Reset()
114 unmodified lines

return s.Decode(d)
}

// Encode implements json.Marshaler.
func (s *ListRepoGrantsOutputBody) Encode(e *jx.Encoder) {
	e.ObjStart()
	s.encodeFields(e)
	e.ObjEnd()
}

// encodeFields encodes fields.
func (s *ListRepoGrantsOutputBody) encodeFields(e *jx.Encoder) {
	{
		if s.Schema.Set {
			e.FieldStart("$schema")
			s.Schema.Encode(e)
		}
	}
	{
		e.FieldStart("grants")
		e.ArrStart()
		for _, elem := range s.Grants {
			elem.Encode(e)
		}
		e.ArrEnd()
	}
	{
		if s.NextPageToken.Set {
			e.FieldStart("nextPageToken")
			s.NextPageToken.Encode(e)
		}
	}
	for k, elem := range s.AdditionalProps {
		e.FieldStart(k)

if len(elem) != 0 {
			e.Raw(elem)
		}
	}
}

var jsonFieldsNameOfListRepoGrantsOutputBody = [3]string{
	0: "$schema",
	1: "grants",
	2: "nextPageToken",
}

// Decode decodes ListRepoGrantsOutputBody from json.
func (s *ListRepoGrantsOutputBody) Decode(d *jx.Decoder) error {
	if s == nil {
		return errors.New("invalid: unable to decode ListRepoGrantsOutputBody 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) {
		case "$schema":
			if err := func() error {
				s.Schema.Reset()
				if err := s.Schema.Decode(d); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"$schema\"")
			}
		case "grants":
			requiredBitSet[0] |= 1 << 1
			if err := func() error {
				s.Grants = make([]RepoGrant, 0)
				if err := d.Arr(func(d *jx.Decoder) error {
					var elem RepoGrant
					if err := elem.Decode(d); err != nil {
						return err
					}
					s.Grants = append(s.Grants, elem)
					return nil
				}); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"grants\"")
			}
		case "nextPageToken":
			if err := func() error {
				s.NextPageToken.Reset()
				if err := s.NextPageToken.Decode(d); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"nextPageToken\"")
			}
		default:
			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 {
		return errors.Wrap(err, "decode ListRepoGrantsOutputBody")
	}
	// Validate required fields.
	var failures []validate.FieldError
	for i, mask := range [1]uint8{
		0b00000010,
	} {
		if result := (requiredBitSet[i] & mask) ^ mask; result != 0 {
			// Mask only required fields and check equality to mask using XOR.
			//
			// If XOR result is not zero, result is not equal to expected, so some fields are missed.
			// Bits of fields which would be set are actually bits of missed fields.
			missed := bits.OnesCount8(result)
			for bitN := 0; bitN < missed; bitN++ {
				bitIdx := bits.TrailingZeros8(result)
				fieldIdx := i*8 + bitIdx
				var name string
				if fieldIdx < len(jsonFieldsNameOfListRepoGrantsOutputBody) {
					name = jsonFieldsNameOfListRepoGrantsOutputBody[fieldIdx]
				} else {
					name = strconv.Itoa(fieldIdx)
				}
				failures = append(failures, validate.FieldError{
					Name:  name,
					Error: validate.ErrFieldRequired,
				})
				// Reset bit.
				result &^= 1 << bitIdx
			}
		}
	}
	if len(failures) > 0 {
		return &validate.Error{Fields: failures}
	}

return nil
}

// MarshalJSON implements stdjson.Marshaler.
func (s *ListRepoGrantsOutputBody) MarshalJSON() ([]byte, error) {
	e := jx.Encoder{}
	s.Encode(&e)
	return e.Bytes(), nil
}

// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ListRepoGrantsOutputBody) UnmarshalJSON(data []byte) error {
	d := jx.DecodeBytes(data)
	return s.Decode(d)
}

// Encode implements json.Marshaler.
func (s ListRepoGrantsOutputBodyAdditional) Encode(e *jx.Encoder) {
	e.ObjStart()
	s.encodeFields(e)
	e.ObjEnd()
}

// encodeFields implements json.Marshaler.
func (s ListRepoGrantsOutputBodyAdditional) encodeFields(e *jx.Encoder) {
	for k, elem := range s {
		e.FieldStart(k)

if len(elem) != 0 {
			e.Raw(elem)
		}
	}
}

// Decode decodes ListRepoGrantsOutputBodyAdditional from json.
func (s *ListRepoGrantsOutputBodyAdditional) Decode(d *jx.Decoder) error {
	if s == nil {
		return errors.New("invalid: unable to decode ListRepoGrantsOutputBodyAdditional 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 ListRepoGrantsOutputBodyAdditional")
	}

return nil
}

// MarshalJSON implements stdjson.Marshaler.
func (s ListRepoGrantsOutputBodyAdditional) MarshalJSON() ([]byte, error) {
	e := jx.Encoder{}
	s.Encode(&e)
	return e.Bytes(), nil
}

// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *ListRepoGrantsOutputBodyAdditional) 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()
	}
	{
		if s.NextPageToken.Set {
			e.FieldStart("nextPageToken")
			s.NextPageToken.Encode(e)
		}
	}
	for k, elem := range s.AdditionalProps {
		e.FieldStart(k)

3 unmodified lines

}
}

var jsonFieldsNameOfListServiceAccountGrantsOutputBody = [2]string{
var jsonFieldsNameOfListServiceAccountGrantsOutputBody = [3]string{
	0: "$schema",
	1: "grants",
	2: "nextPageToken",
}

// Decode decodes ListServiceAccountGrantsOutputBody from json.
34 unmodified lines

}(); err != nil {
				return errors.Wrap(err, "decode field \"grants\"")
			}
		case "nextPageToken":
			if err := func() error {
				s.NextPageToken.Reset()
				if err := s.NextPageToken.Decode(d); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"nextPageToken\"")
			}
		default:
			var elem jx.Raw
			if err := func() error {
134 unmodified lines

s.Schema.Encode(e)
		}
	}
	{
		if s.NextPageToken.Set {
			e.FieldStart("nextPageToken")
			s.NextPageToken.Encode(e)
		}
	}
	{
		e.FieldStart("serviceAccounts")
		e.ArrStart()
11 unmodified lines

}
}

var jsonFieldsNameOfListServiceAccountsOutputBody = [2]string{
var jsonFieldsNameOfListServiceAccountsOutputBody = [3]string{
	0: "$schema",
	1: "serviceAccounts",
	1: "nextPageToken",
	2: "serviceAccounts",
}

// Decode decodes ListServiceAccountsOutputBody from json.
16 unmodified lines

}(); err != nil {
				return errors.Wrap(err, "decode field \"$schema\"")
			}
		case "nextPageToken":
			if err := func() error {
				s.NextPageToken.Reset()
				if err := s.NextPageToken.Decode(d); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"nextPageToken\"")
			}
		case "serviceAccounts":
			requiredBitSet[0] |= 1 << 1
			requiredBitSet[0] |= 1 << 2
			if err := func() error {
				s.ServiceAccounts = make([]ServiceAccountWithGrants, 0)
				if err := d.Arr(func(d *jx.Decoder) error {
31 unmodified lines

// Validate required fields.
	var failures []validate.FieldError
	for i, mask := range [1]uint8{
		0b00000010,
		0b00000100,
	} {
		if result := (requiredBitSet[i] & mask) ^ mask; result != 0 {
			// Mask only required fields and check equality to mask using XOR.
617 unmodified lines

s.Schema.Encode(e)
		}
	}
	{
		if s.NextPageToken.Set {
			e.FieldStart("nextPageToken")
			s.NextPageToken.Encode(e)
		}
	}
	{
		if s.Permission.Set {
			e.FieldStart("permission")
33 unmodified lines

}
}

var jsonFieldsNameOfLookupResourcesOutputBody = [5]string{
var jsonFieldsNameOfLookupResourcesOutputBody = [6]string{
	0: "$schema",
	1: "permission",
	2: "resourceIds",
	3: "resourceType",
	4: "resources",
	1: "nextPageToken",
	2: "permission",
	3: "resourceIds",
	4: "resourceType",
	5: "resources",
}

// Decode decodes LookupResourcesOutputBody from json.
16 unmodified lines

}(); err != nil {
				return errors.Wrap(err, "decode field \"$schema\"")
			}
		case "nextPageToken":
			if err := func() error {
				s.NextPageToken.Reset()
				if err := s.NextPageToken.Decode(d); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"nextPageToken\"")
			}
		case "permission":
			if err := func() error {
				s.Permission.Reset()
24 unmodified lines

return errors.Wrap(err, "decode field \"resourceIds\"")
			}
		case "resourceType":
			requiredBitSet[0] |= 1 << 3
			requiredBitSet[0] |= 1 << 4
			if err := func() error {
				v, err := d.Str()
				s.ResourceType = string(v)
42 unmodified lines

// Validate required fields.
	var failures []validate.FieldError
	for i, mask := range [1]uint8{
		0b00001000,
		0b00010000,
	} {
		if result := (requiredBitSet[i] & mask) ^ mask; result != 0 {
			// Mask only required fields and check equality to mask using XOR.
547 unmodified lines

// encodeFields encodes fields.
func (s *MeIdentityHandle) encodeFields(e *jx.Encoder) {
	{
		if s.Email.Set {
			e.FieldStart("email")
			s.Email.Encode(e)
		}
	}
	{
		e.FieldStart("handle")
		e.Str(s.Handle)
15 unmodified lines

}
}

var jsonFieldsNameOfMeIdentityHandle = [3]string{
	0: "handle",
	1: "provider",
	2: "providerUserId",
var jsonFieldsNameOfMeIdentityHandle = [4]string{
	0: "email",
	1: "handle",
	2: "provider",
	3: "providerUserId",
}

// Decode decodes MeIdentityHandle from json.
6 unmodified lines

if err := d.ObjBytes(func(d *jx.Decoder, k []byte) error {
		switch string(k) {
		case "email":
			if err := func() error {
				s.Email.Reset()
				if err := s.Email.Decode(d); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"email\"")
			}
		case "handle":
			requiredBitSet[0] |= 1 << 0
			requiredBitSet[0] |= 1 << 1
			if err := func() error {
				v, err := d.Str()
				s.Handle = string(v)
5 unmodified lines

return errors.Wrap(err, "decode field \"handle\"")
			}
		case "provider":
			requiredBitSet[0] |= 1 << 1
			requiredBitSet[0] |= 1 << 2
			if err := func() error {
				v, err := d.Str()
				s.Provider = string(v)
5 unmodified lines

return errors.Wrap(err, "decode field \"provider\"")
			}
		case "providerUserId":
			requiredBitSet[0] |= 1 << 2
			requiredBitSet[0] |= 1 << 3
			if err := func() error {
				v, err := d.Str()
				s.ProviderUserId = string(v)
25 unmodified lines

// Validate required fields.
	var failures []validate.FieldError
	for i, mask := range [1]uint8{
		0b00000111,
		0b00001110,
	} {
		if result := (requiredBitSet[i] & mask) ^ mask; result != 0 {
			// Mask only required fields and check equality to mask using XOR.
872 unmodified lines

s.Schema.Encode(e)
		}
	}
	{
		if s.Cell.Set {
			e.FieldStart("cell")
			s.Cell.Encode(e)
		}
	}
	{
		e.FieldStart("clusterHost")
		e.Str(s.ClusterHost)
57 unmodified lines

}
}

var jsonFieldsNameOfMirror = [12]string{
var jsonFieldsNameOfMirror = [13]string{
	0:  "$schema",
	1:  "clusterHost",
	2:  "createdAt",
	3:  "installationId",
	4:  "isArchived",
	5:  "isPrivate",
	6:  "jurisdiction",
	7:  "mirrorId",
	8:  "owner",
	9:  "provider",
	10: "repo",
	11: "suspendedAt",
	1:  "cell",
	2:  "clusterHost",
	3:  "createdAt",
	4:  "installationId",
	5:  "isArchived",
	6:  "isPrivate",
	7:  "jurisdiction",
	8:  "mirrorId",
	9:  "owner",
	10: "provider",
	11: "repo",
	12: "suspendedAt",
}

// Decode decodes Mirror from json.
16 unmodified lines

}(); err != nil {
				return errors.Wrap(err, "decode field \"$schema\"")
			}
		case "cell":
			if err := func() error {
				s.Cell.Reset()
				if err := s.Cell.Decode(d); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"cell\"")
			}
		case "clusterHost":
			requiredBitSet[0] |= 1 << 1
			requiredBitSet[0] |= 1 << 2
			if err := func() error {
				v, err := d.Str()
				s.ClusterHost = string(v)
5 unmodified lines

return errors.Wrap(err, "decode field \"clusterHost\"")
			}
		case "createdAt":
			requiredBitSet[0] |= 1 << 2
			requiredBitSet[0] |= 1 << 3
			if err := func() error {
				v, err := json.DecodeDateTime(d)
				s.CreatedAt = v
45 unmodified lines

return errors.Wrap(err, "decode field \"jurisdiction\"")
			}
		case "mirrorId":
			requiredBitSet[0] |= 1 << 7
			requiredBitSet[1] |= 1 << 0
			if err := func() error {
				v, err := d.Str()
				s.MirrorId = string(v)
5 unmodified lines

return errors.Wrap(err, "decode field \"mirrorId\"")
			}
		case "owner":
			requiredBitSet[1] |= 1 << 0
			if err := func() error {
				v, err := d.Str()
				s.Owner = string(v)
				if err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"owner\"")
			}
		case "provider":
			requiredBitSet[1] |= 1 << 1
			if err := func() error {
				v, err := d.Str()
				s.Provider = string(v)
				s.Owner = string(v)
				if err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"provider\"")
				return errors.Wrap(err, "decode field \"owner\"")
			}
		case "repo":
		case "provider":
			requiredBitSet[1] |= 1 << 2
			if err := func() error {
				v, err := d.Str()
				s.Provider = string(v)
				if err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"provider\"")
			}
		case "repo":
			requiredBitSet[1] |= 1 << 3
			if err := func() error {
				v, err := d.Str()
				s.Repo = string(v)
35 unmodified lines

// Validate required fields.
	var failures []validate.FieldError
	for i, mask := range [2]uint8{
		0b10000110,
		0b00000111,
		0b00001100,
		0b00001111,
	} {
		if result := (requiredBitSet[i] & mask) ^ mask; result != 0 {
			// Mask only required fields and check equality to mask using XOR.
998 unmodified lines

return s.Decode(d)
}

// Encode encodes Org as json.
func (o OptOrg) Encode(e *jx.Encoder) {
	if !o.Set {
		return
	}
	o.Value.Encode(e)
}

// Decode decodes Org from json.
func (o *OptOrg) Decode(d *jx.Decoder) error {
	if o == nil {
		return errors.New("invalid: unable to decode OptOrg to nil")
	}
	o.Set = true
	if err := o.Value.Decode(d); err != nil {
		return err
	}
	return nil
}

// MarshalJSON implements stdjson.Marshaler.
func (s OptOrg) MarshalJSON() ([]byte, error) {
	e := jx.Encoder{}
	s.Encode(&e)
	return e.Bytes(), nil
}

// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *OptOrg) UnmarshalJSON(data []byte) error {
	d := jx.DecodeBytes(data)
	return s.Decode(d)
}

// Encode encodes Project as json.
func (o OptProject) Encode(e *jx.Encoder) {
	if !o.Set {
27 unmodified lines

return s.Decode(d)
}

// Encode encodes Repo as json.
func (o OptRepo) Encode(e *jx.Encoder) {
	if !o.Set {
		return
	}
	o.Value.Encode(e)
}

// Decode decodes Repo from json.
func (o *OptRepo) Decode(d *jx.Decoder) error {
	if o == nil {
		return errors.New("invalid: unable to decode OptRepo to nil")
	}
	o.Set = true
	if err := o.Value.Decode(d); err != nil {
		return err
	}
	return nil
}

// MarshalJSON implements stdjson.Marshaler.
func (s OptRepo) MarshalJSON() ([]byte, error) {
	e := jx.Encoder{}
	s.Encode(&e)
	return e.Bytes(), nil
}

// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *OptRepo) UnmarshalJSON(data []byte) error {
	d := jx.DecodeBytes(data)
	return s.Decode(d)
}

// Encode encodes RepoObjectFormat as json.
func (o OptRepoObjectFormat) Encode(e *jx.Encoder) {
	if !o.Set {
1286 unmodified lines

return s.Decode(d)
}

// Encode implements json.Marshaler.
func (s *RepoGrant) Encode(e *jx.Encoder) {
	e.ObjStart()
	s.encodeFields(e)
	e.ObjEnd()
}

// encodeFields encodes fields.
func (s *RepoGrant) encodeFields(e *jx.Encoder) {
	{
		e.FieldStart("granteeId")
		e.Str(s.GranteeId)
	}
	{
		e.FieldStart("granteeType")
		e.Str(s.GranteeType)
	}
	{
		e.FieldStart("role")
		e.Str(s.Role)
	}
	for k, elem := range s.AdditionalProps {
		e.FieldStart(k)

if len(elem) != 0 {
			e.Raw(elem)
		}
	}
}

var jsonFieldsNameOfRepoGrant = [3]string{
	0: "granteeId",
	1: "granteeType",
	2: "role",
}

// Decode decodes RepoGrant from json.
func (s *RepoGrant) Decode(d *jx.Decoder) error {
	if s == nil {
		return errors.New("invalid: unable to decode RepoGrant 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) {
		case "granteeId":
			requiredBitSet[0] |= 1 << 0
			if err := func() error {
				v, err := d.Str()
				s.GranteeId = string(v)
				if err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"granteeId\"")
			}
		case "granteeType":
			requiredBitSet[0] |= 1 << 1
			if err := func() error {
				v, err := d.Str()
				s.GranteeType = string(v)
				if err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"granteeType\"")
			}
		case "role":
			requiredBitSet[0] |= 1 << 2
			if err := func() error {
				v, err := d.Str()
				s.Role = string(v)
				if err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"role\"")
			}
		default:
			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 {
		return errors.Wrap(err, "decode RepoGrant")
	}
	// Validate required fields.
	var failures []validate.FieldError
	for i, mask := range [1]uint8{
		0b00000111,
	} {
		if result := (requiredBitSet[i] & mask) ^ mask; result != 0 {
			// Mask only required fields and check equality to mask using XOR.
			//
			// If XOR result is not zero, result is not equal to expected, so some fields are missed.
			// Bits of fields which would be set are actually bits of missed fields.
			missed := bits.OnesCount8(result)
			for bitN := 0; bitN < missed; bitN++ {
				bitIdx := bits.TrailingZeros8(result)
				fieldIdx := i*8 + bitIdx
				var name string
				if fieldIdx < len(jsonFieldsNameOfRepoGrant) {
					name = jsonFieldsNameOfRepoGrant[fieldIdx]
				} else {
					name = strconv.Itoa(fieldIdx)
				}
				failures = append(failures, validate.FieldError{
					Name:  name,
					Error: validate.ErrFieldRequired,
				})
				// Reset bit.
				result &^= 1 << bitIdx
			}
		}
	}
	if len(failures) > 0 {
		return &validate.Error{Fields: failures}
	}

return nil
}

// MarshalJSON implements stdjson.Marshaler.
func (s *RepoGrant) MarshalJSON() ([]byte, error) {
	e := jx.Encoder{}
	s.Encode(&e)
	return e.Bytes(), nil
}

// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *RepoGrant) UnmarshalJSON(data []byte) error {
	d := jx.DecodeBytes(data)
	return s.Decode(d)
}

// Encode implements json.Marshaler.
func (s RepoGrantAdditional) Encode(e *jx.Encoder) {
	e.ObjStart()
	s.encodeFields(e)
	e.ObjEnd()
}

// encodeFields implements json.Marshaler.
func (s RepoGrantAdditional) encodeFields(e *jx.Encoder) {
	for k, elem := range s {
		e.FieldStart(k)

if len(elem) != 0 {
			e.Raw(elem)
		}
	}
}

// Decode decodes RepoGrantAdditional from json.
func (s *RepoGrantAdditional) Decode(d *jx.Decoder) error {
	if s == nil {
		return errors.New("invalid: unable to decode RepoGrantAdditional 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 RepoGrantAdditional")
	}

return nil
}

// MarshalJSON implements stdjson.Marshaler.
func (s RepoGrantAdditional) MarshalJSON() ([]byte, error) {
	e := jx.Encoder{}
	s.Encode(&e)
	return e.Bytes(), nil
}

// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *RepoGrantAdditional) 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))
1304 unmodified lines

d := jx.DecodeBytes(data)
	return s.Decode(d)
}

// Encode implements json.Marshaler.
func (s *UpdateMeInputBody) Encode(e *jx.Encoder) {
	e.ObjStart()
	s.encodeFields(e)
	e.ObjEnd()
}

// encodeFields encodes fields.
func (s *UpdateMeInputBody) encodeFields(e *jx.Encoder) {
	{
		if s.Schema.Set {
			e.FieldStart("$schema")
			s.Schema.Encode(e)
		}
	}
	{
		e.FieldStart("email")
		e.Str(s.Email)
	}
	for k, elem := range s.AdditionalProps {
		e.FieldStart(k)

if len(elem) != 0 {
			e.Raw(elem)
		}
	}
}

var jsonFieldsNameOfUpdateMeInputBody = [2]string{
	0: "$schema",
	1: "email",
}

// Decode decodes UpdateMeInputBody from json.
func (s *UpdateMeInputBody) Decode(d *jx.Decoder) error {
	if s == nil {
		return errors.New("invalid: unable to decode UpdateMeInputBody 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) {
		case "$schema":
			if err := func() error {
				s.Schema.Reset()
				if err := s.Schema.Decode(d); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"$schema\"")
			}
		case "email":
			requiredBitSet[0] |= 1 << 1
			if err := func() error {
				v, err := d.Str()
				s.Email = string(v)
				if err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return errors.Wrap(err, "decode field \"email\"")
			}
		default:
			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 {
		return errors.Wrap(err, "decode UpdateMeInputBody")
	}
	// Validate required fields.
	var failures []validate.FieldError
	for i, mask := range [1]uint8{
		0b00000010,
	} {
		if result := (requiredBitSet[i] & mask) ^ mask; result != 0 {
			// Mask only required fields and check equality to mask using XOR.
			//
			// If XOR result is not zero, result is not equal to expected, so some fields are missed.
			// Bits of fields which would be set are actually bits of missed fields.
			missed := bits.OnesCount8(result)
			for bitN := 0; bitN < missed; bitN++ {
				bitIdx := bits.TrailingZeros8(result)
				fieldIdx := i*8 + bitIdx
				var name string
				if fieldIdx < len(jsonFieldsNameOfUpdateMeInputBody) {
					name = jsonFieldsNameOfUpdateMeInputBody[fieldIdx]
				} else {
					name = strconv.Itoa(fieldIdx)
				}
				failures = append(failures, validate.FieldError{
					Name:  name,
					Error: validate.ErrFieldRequired,
				})
				// Reset bit.
				result &^= 1 << bitIdx
			}
		}
	}
	if len(failures) > 0 {
		return &validate.Error{Fields: failures}
	}

return nil
}

// MarshalJSON implements stdjson.Marshaler.
func (s *UpdateMeInputBody) MarshalJSON() ([]byte, error) {
	e := jx.Encoder{}
	s.Encode(&e)
	return e.Bytes(), nil
}

// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *UpdateMeInputBody) UnmarshalJSON(data []byte) error {
	d := jx.DecodeBytes(data)
	return s.Decode(d)
}

// Encode implements json.Marshaler.
func (s UpdateMeInputBodyAdditional) Encode(e *jx.Encoder) {
	e.ObjStart()
	s.encodeFields(e)
	e.ObjEnd()
}

// encodeFields implements json.Marshaler.
func (s UpdateMeInputBodyAdditional) encodeFields(e *jx.Encoder) {
	for k, elem := range s {
		e.FieldStart(k)

if len(elem) != 0 {
			e.Raw(elem)
		}
	}
}

// Decode decodes UpdateMeInputBodyAdditional from json.
func (s *UpdateMeInputBodyAdditional) Decode(d *jx.Decoder) error {
	if s == nil {
		return errors.New("invalid: unable to decode UpdateMeInputBodyAdditional 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 UpdateMeInputBodyAdditional")
	}

return nil
}

// MarshalJSON implements stdjson.Marshaler.
func (s UpdateMeInputBodyAdditional) MarshalJSON() ([]byte, error) {
	e := jx.Encoder{}
	s.Encode(&e)
	return e.Bytes(), nil
}

// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *UpdateMeInputBodyAdditional) UnmarshalJSON(data []byte) error {
	d := jx.DecodeBytes(data)
	return s.Decode(d)
}

// Encode implements json.Marshaler.
func (s *UpdateMeOutputBody) Encode(e *jx.Encoder) {
	e.ObjStart()
	s.encodeFields(e)
	e.ObjEnd()
}

// encodeFields encodes fields.
func (s *UpdateMeOutputBody) encodeFields(e *jx.Encoder) {
	{
		if s.Schema.Set {
			e.FieldStart("$schema")
			s.Schema.Encode(e)
		}
	}
	{
		e.FieldStart("email")
		e.Str(s.Email)
	}
	for k, elem := range s.AdditionalProps {
		e.FieldStart(k)

if len(elem) != 0 {
			e.Raw(elem)
		}
	}
}

var jsonFieldsNameOfUpdateMeOutputBody = [2]string{
	0: "$schema",
	1: "email",
}

// Decode decodes UpdateMeOutputBody from json.
func (s *UpdateMeOutputBody) Decode(d *jx.Decoder) error {
	if s == nil {
		return errors.New("invalid: unable to decode UpdateMeOutputBody to nil")
	}
	var requiredBitSet [1]uint8
	s.AdditionalProps = map[string]jx.Raw{}

return nil
}

// MarshalJSON implements stdjson.Marshaler.
func (s *UpdateMeOutputBody) MarshalJSON() ([]byte, error) {
	e := jx.Encoder{}
	s.Encode(&e)
	return e.Bytes(), nil
}

// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *UpdateMeOutputBody) UnmarshalJSON(data []byte) error {
	d := jx.DecodeBytes(data)
	return s.Decode(d)
}

// Encode implements json.Marshaler.
func (s UpdateMeOutputBodyAdditional) Encode(e *jx.Encoder) {
	e.ObjStart()
	s.encodeFields(e)
	e.ObjEnd()
}

// encodeFields implements json.Marshaler.
func (s UpdateMeOutputBodyAdditional) encodeFields(e *jx.Encoder) {
	for k, elem := range s {
		e.FieldStart(k)

if len(elem) != 0 {
			e.Raw(elem)
		}
	}
}

// Decode decodes UpdateMeOutputBodyAdditional from json.
func (s *UpdateMeOutputBodyAdditional) Decode(d *jx.Decoder) error {
	if s == nil {
		return errors.New("invalid: unable to decode UpdateMeOutputBodyAdditional 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 UpdateMeOutputBodyAdditional")
	}

return nil
}

// MarshalJSON implements stdjson.Marshaler.
func (s UpdateMeOutputBodyAdditional) MarshalJSON() ([]byte, error) {
	e := jx.Encoder{}
	s.Encode(&e)
	return e.Bytes(), nil
}

// UnmarshalJSON implements stdjson.Unmarshaler.
func (s *UpdateMeOutputBodyAdditional) UnmarshalJSON(data []byte) error {
	d := jx.DecodeBytes(data)
	return s.Decode(d)
}
```

Minternal/coreapi/oas\_json\_gen.go+1823/-207

```
15 unmodified lines

16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
4 unmodified lines

35
36
37
38
39
40
41
3 unmodified lines

45
46
47
48
49
50
51
2 unmodified lines

54
55
56
57
58
59
60
61

15 unmodified lines

CreateServiceAccountOperation          OperationName = "CreateServiceAccount"
	DeleteBindingOperation                 OperationName = "DeleteBinding"
	DeleteMirrorOperation                  OperationName = "DeleteMirror"
	DeleteOrgOperation                     OperationName = "DeleteOrg"
	DeleteProjectOperation                 OperationName = "DeleteProject"
	DeleteRepoOperation                    OperationName = "DeleteRepo"
	DeleteServiceAccountOperation          OperationName = "DeleteServiceAccount"
	GetMeOperation                         OperationName = "GetMe"
	GetMirrorOperation                     OperationName = "GetMirror"
	GetOrgOperation                        OperationName = "GetOrg"
	GetPermissionsOperation                OperationName = "GetPermissions"
	GetProjectOperation                    OperationName = "GetProject"
	GetRepoOperation                       OperationName = "GetRepo"
	GetServiceAccountOperation             OperationName = "GetServiceAccount"
	GetVersionOperation                    OperationName = "GetVersion"
4 unmodified lines

ListAuditEventsOperation               OperationName = "ListAuditEvents"
	ListAvailableMirrorsOperation          OperationName = "ListAvailableMirrors"
	ListBindingsOperation                  OperationName = "ListBindings"
	ListClustersOperation                  OperationName = "ListClusters"
	ListMirrorCollaboratorsOperation       OperationName = "ListMirrorCollaborators"
	ListMirrorsOperation                   OperationName = "ListMirrors"
	ListOIDCProvidersOperation             OperationName = "ListOIDCProviders"
3 unmodified lines

ListProjectMembersOperation            OperationName = "ListProjectMembers"
	ListProjectReposOperation              OperationName = "ListProjectRepos"
	ListProjectsOperation                  OperationName = "ListProjects"
	ListRepoGrantsOperation                OperationName = "ListRepoGrants"
	ListServiceAccountGrantsOperation      OperationName = "ListServiceAccountGrants"
	ListServiceAccountsOperation           OperationName = "ListServiceAccounts"
	LookupResourcesOperation               OperationName = "LookupResources"
2 unmodified lines

RevokeMirrorCollaboratorOperation      OperationName = "RevokeMirrorCollaborator"
	RevokeProjectAccessOperation           OperationName = "RevokeProjectAccess"
	RevokeProjectAccessByProviderOperation OperationName = "RevokeProjectAccessByProvider"
	RevokeRepoAccessOperation              OperationName = "RevokeRepoAccess"
	RevokeRepoAccessByProviderOperation    OperationName = "RevokeRepoAccessByProvider"
	RevokeServiceAccountAccessOperation    OperationName = "RevokeServiceAccountAccess"
	UpdateMeOperation                      OperationName = "UpdateMe"
)
```

Minternal/coreapi/oas\_operations\_gen.go+9

```
26 unmodified lines

27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
9 unmodified lines

52
53
54
55
56
57
58
59
60
61
62
2 unmodified lines

65
66
67
68
69
70
71
72
73
74
75
19 unmodified lines

95
96
97
98
99
100
101
102
103
104
105
106
107
108
2 unmodified lines

111
112
113
114
115
116
117
118
119
120
8 unmodified lines

129
130
131
132
133
134
135
136
137
138
2 unmodified lines

141
142
143
144
145
146
147
148
149
150
151
152
153
110
154
155
156
157
158
159
160
161
162
115
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
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
141
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
148
247
248
249
250
251
37 unmodified lines

289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308

26 unmodified lines

ClusterHost string
}

// DeleteOrgParams is parameters of deleteOrg operation.
type DeleteOrgParams struct {
	OrgId string
}

// DeleteProjectParams is parameters of deleteProject operation.
type DeleteProjectParams struct {
	ProjectId string
}

// DeleteRepoParams is parameters of deleteRepo operation.
type DeleteRepoParams struct {
	RepoId string
9 unmodified lines

MirrorId string
}

// GetOrgParams is parameters of getOrg operation.
type GetOrgParams struct {
	OrgId string
}

// GetPermissionsParams is parameters of getPermissions operation.
type GetPermissionsParams struct {
	ResourceType string
2 unmodified lines

Explain OptString `json:",omitempty,omitzero"`
}

// GetProjectParams is parameters of getProject operation.
type GetProjectParams struct {
	ProjectId string
}

// GetRepoParams is parameters of getRepo operation.
type GetRepoParams struct {
	RepoId string
19 unmodified lines

AccountId string
}

// ListAuditEventsParams is parameters of listAuditEvents operation.
type ListAuditEventsParams struct {
	// Maximum entries to return; server may cap further.
	PageSize OptInt32 `json:",omitempty,omitzero"`
	// Opaque cursor from a previous response's nextPageToken.
	PageToken OptString `json:",omitempty,omitzero"`
}

// ListAvailableMirrorsParams is parameters of listAvailableMirrors operation.
type ListAvailableMirrorsParams struct {
	// Optional: restrict to repos with this owner login.
2 unmodified lines

// ListBindingsParams is parameters of listBindings operation.
type ListBindingsParams struct {
	// Maximum entries to return; server may cap further.
	PageSize OptInt32 `json:",omitempty,omitzero"`
	// Opaque cursor from a previous response's nextPageToken.
	PageToken OptString `json:",omitempty,omitzero"`
	AccountId string
}

8 unmodified lines

// ListMirrorsParams is parameters of listMirrors operation.
type ListMirrorsParams struct {
	// Maximum entries to return; server may cap further.
	PageSize OptInt32 `json:",omitempty,omitzero"`
	// Opaque cursor from a previous response's nextPageToken.
	PageToken OptString `json:",omitempty,omitzero"`
	// Optional: restrict to mirrors on this cluster (public host, e.g. royalcanin.partial.to).
	Cluster OptString `json:",omitempty,omitzero"`
	// Optional: restrict to mirrors of this upstream provider (e.g. "github").
2 unmodified lines

Owner OptString `json:",omitempty,omitzero"`
}

// ListOIDCProvidersParams is parameters of listOIDCProviders operation.
type ListOIDCProvidersParams struct {
	// Maximum entries to return; server may cap further.
	PageSize OptInt32 `json:",omitempty,omitzero"`
	// Opaque cursor from a previous response's nextPageToken.
	PageToken OptString `json:",omitempty,omitzero"`
}

// ListOrgMembersParams is parameters of listOrgMembers operation.
type ListOrgMembersParams struct {
	OrgId string
	// Maximum entries to return; server may cap further.
	PageSize OptInt32 `json:",omitempty,omitzero"`
	// Opaque cursor from a previous response's nextPageToken.
	PageToken OptString `json:",omitempty,omitzero"`
	OrgId     string
}

// ListOrgProjectsParams is parameters of listOrgProjects operation.
type ListOrgProjectsParams struct {
	OrgId string
	// Maximum entries to return; server may cap further.
	PageSize OptInt32 `json:",omitempty,omitzero"`
	// Opaque cursor from a previous response's nextPageToken.
	PageToken OptString `json:",omitempty,omitzero"`
	OrgId     string
	// Optional: exact-match project name (case-insensitive).
	Name OptString `json:",omitempty,omitzero"`
}

// ListOrgsParams is parameters of listOrgs operation.
type ListOrgsParams struct {
	// Maximum entries to return; server may cap further.
	PageSize OptInt32 `json:",omitempty,omitzero"`
	// Opaque cursor from a previous response's nextPageToken.
	PageToken OptString `json:",omitempty,omitzero"`
	// Optional: exact-match org name.
	Name OptString `json:",omitempty,omitzero"`
}

// ListProjectMembersParams is parameters of listProjectMembers operation.
type ListProjectMembersParams struct {
	// Maximum entries to return; server may cap further.
	PageSize OptInt32 `json:",omitempty,omitzero"`
	// Opaque cursor from a previous response's nextPageToken.
	PageToken OptString `json:",omitempty,omitzero"`
	ProjectId string
}

// ListProjectReposParams is parameters of listProjectRepos operation.
type ListProjectReposParams struct {
	// Maximum entries to return; server may cap further.
	PageSize OptInt32 `json:",omitempty,omitzero"`
	// Opaque cursor from a previous response's nextPageToken.
	PageToken OptString `json:",omitempty,omitzero"`
	ProjectId string
	// Optional: exact-match repo name.
	Name OptString `json:",omitempty,omitzero"`
}

// ListProjectsParams is parameters of listProjects operation.
type ListProjectsParams struct {
	// Maximum entries to return; server may cap further.
	PageSize OptInt32 `json:",omitempty,omitzero"`
	// Opaque cursor from a previous response's nextPageToken.
	PageToken OptString `json:",omitempty,omitzero"`
	// Optional: exact-match project name.
	Name OptString `json:",omitempty,omitzero"`
}

// ListRepoGrantsParams is parameters of listRepoGrants operation.
type ListRepoGrantsParams struct {
	// Maximum entries to return; server may cap further.
	PageSize OptInt32 `json:",omitempty,omitzero"`
	// Opaque cursor from a previous response's nextPageToken.
	PageToken OptString `json:",omitempty,omitzero"`
	RepoId    string
}

// ListServiceAccountGrantsParams is parameters of listServiceAccountGrants operation.
type ListServiceAccountGrantsParams struct {
	// Maximum entries to return; server may cap further.
	PageSize OptInt32 `json:",omitempty,omitzero"`
	// Opaque cursor from a previous response's nextPageToken.
	PageToken OptString `json:",omitempty,omitzero"`
	AccountId string
}

// ListServiceAccountsParams is parameters of listServiceAccounts operation.
type ListServiceAccountsParams struct {
	OrgId string
	// Maximum entries to return; server may cap further.
	PageSize OptInt32 `json:",omitempty,omitzero"`
	// Opaque cursor from a previous response's nextPageToken.
	PageToken OptString `json:",omitempty,omitzero"`
	OrgId     string
}

// LookupResourcesParams is parameters of lookupResources operation.
type LookupResourcesParams struct {
	// Maximum entries to return; server may cap further.
	PageSize OptInt32 `json:",omitempty,omitzero"`
	// Opaque cursor from a previous response's nextPageToken.
	PageToken OptString `json:",omitempty,omitzero"`
	// SpiceDB resource type (e.g. "repo", "project", "org").
	ResourceType string
	// Optional: only list resources where the caller has this permission.
	// Optional: only list resources where the caller has this permission. pageSize/pageToken apply only
	// when set.
	Permission OptString `json:",omitempty,omitzero"`
}

37 unmodified lines

ProviderUserId string
}

// RevokeRepoAccessParams is parameters of revokeRepoAccess operation.
type RevokeRepoAccessParams struct {
	RepoId      string
	GranteeType string
	GranteeId   string
}

// RevokeRepoAccessByProviderParams is parameters of revokeRepoAccessByProvider operation.
type RevokeRepoAccessByProviderParams struct {
	RepoId         string
	Provider       string
	ProviderUserId string
}

// RevokeServiceAccountAccessParams is parameters of revokeServiceAccountAccess operation.
type RevokeServiceAccountAccessParams struct {
	AccountId    string
```

Minternal/coreapi/oas\_parameters\_gen.go+118/-4

```
176 unmodified lines

177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193

176 unmodified lines

ht.SetBody(r, bytes.NewReader(encoded), contentType)
	return nil
}

func encodeUpdateMeRequest(
	req *UpdateMeInputBody,
	r *http.Request,
) error {
	const contentType = "application/json"
	e := new(jx.Encoder)
	{
		req.Encode(e)
	}
	encoded := e.Bytes()
	ht.SetBody(r, bytes.NewReader(encoded), contentType)
	return nil
}
```

Minternal/coreapi/oas\_request\_encoders\_gen.go+14

```
805 unmodified lines

806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
271 unmodified lines

1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
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
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
77 unmodified lines

1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
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
869 unmodified lines

2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
487 unmodified lines

2903
2904
2905
2537
2538
2539
2540
2541
2542
2543
2544
2545
2906
2907
2908
320 unmodified lines

3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
557 unmodified lines

3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
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
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
44 unmodified lines

4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121

805 unmodified lines

return res, errors.Wrap(defRes, "error")
}

func decodeDeleteOrgResponse(resp *http.Response) (res *DeleteOrgNoContent, _ error) {
	switch resp.StatusCode {
	case 204:
		// Code 204.
		return &DeleteOrgNoContent{}, nil
	}
	// Convenient error response.
	defRes, err := func() (res *ErrorModelStatusCode, err error) {
		ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
		if err != nil {
			return res, errors.Wrap(err, "parse media type")
		}
		switch {
		case ct == "application/problem+json":
			buf, err := io.ReadAll(resp.Body)
			if err != nil {
				return res, err
			}
			d := jx.DecodeBytes(buf)

var response ErrorModel
			if err := func() error {
				if err := response.Decode(d); err != nil {
					return err
				}
				if err := d.Skip(); err != io.EOF {
					return errors.New("unexpected trailing data")
				}
				return nil
			}(); err != nil {
				err = &ogenerrors.DecodeBodyError{
					ContentType: ct,
					Body:        buf,
					Err:         err,
				}
				return res, err
			}
			return &ErrorModelStatusCode{
				StatusCode: resp.StatusCode,
				Response:   response,
			}, nil
		default:
			return res, validate.InvalidContentType(ct)
		}
	}()
	if err != nil {
		return res, errors.Wrapf(err, "default (code %d)", resp.StatusCode)
	}
	return res, errors.Wrap(defRes, "error")
}

func decodeDeleteProjectResponse(resp *http.Response) (res *DeleteProjectNoContent, _ error) {
	switch resp.StatusCode {
	case 204:
		// Code 204.
		return &DeleteProjectNoContent{}, nil
	}
	// Convenient error response.
	defRes, err := func() (res *ErrorModelStatusCode, err error) {
		ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
		if err != nil {
			return res, errors.Wrap(err, "parse media type")
		}
		switch {
		case ct == "application/problem+json":
			buf, err := io.ReadAll(resp.Body)
			if err != nil {
				return res, err
			}
			d := jx.DecodeBytes(buf)

func decodeDeleteRepoResponse(resp *http.Response) (res *DeleteRepoNoContent, _ error) {
	switch resp.StatusCode {
	case 204:
271 unmodified lines

return res, errors.Wrap(defRes, "error")
}

func decodeGetOrgResponse(resp *http.Response) (res *Org, _ error) {
	switch resp.StatusCode {
	case 200:
		// Code 200.
		ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
		if err != nil {
			return res, errors.Wrap(err, "parse media type")
		}
		switch {
		case ct == "application/json":
			buf, err := io.ReadAll(resp.Body)
			if err != nil {
				return res, err
			}
			d := jx.DecodeBytes(buf)

var response Org
			if err := func() error {
				if err := response.Decode(d); err != nil {
					return err
				}
				if err := d.Skip(); err != io.EOF {
					return errors.New("unexpected trailing data")
				}
				return nil
			}(); err != nil {
				err = &ogenerrors.DecodeBodyError{
					ContentType: ct,
					Body:        buf,
					Err:         err,
				}
				return res, err
			}
			return &response, nil
		default:
			return res, validate.InvalidContentType(ct)
		}
	}
	// Convenient error response.
	defRes, err := func() (res *ErrorModelStatusCode, err error) {
		ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
		if err != nil {
			return res, errors.Wrap(err, "parse media type")
		}
		switch {
		case ct == "application/problem+json":
			buf, err := io.ReadAll(resp.Body)
			if err != nil {
				return res, err
			}
			d := jx.DecodeBytes(buf)

func decodeGetPermissionsResponse(resp *http.Response) (res *GetPermissionsOutputBody, _ error) {
	switch resp.StatusCode {
	case 200:
77 unmodified lines

return res, errors.Wrap(defRes, "error")
}

func decodeGetProjectResponse(resp *http.Response) (res *Project, _ error) {
	switch resp.StatusCode {
	case 200:
		// Code 200.
		ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
		if err != nil {
			return res, errors.Wrap(err, "parse media type")
		}
		switch {
		case ct == "application/json":
			buf, err := io.ReadAll(resp.Body)
			if err != nil {
				return res, err
			}
			d := jx.DecodeBytes(buf)

var response Project
			if err := func() error {
				if err := response.Decode(d); err != nil {
					return err
				}
				if err := d.Skip(); err != io.EOF {
					return errors.New("unexpected trailing data")
				}
				return nil
			}(); err != nil {
				err = &ogenerrors.DecodeBodyError{
					ContentType: ct,
					Body:        buf,
					Err:         err,
				}
				return res, err
			}
			// Validate response.
			if err := func() error {
				if err := response.Validate(); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return res, errors.Wrap(err, "validate")
			}
			return &response, nil
		default:
			return res, validate.InvalidContentType(ct)
		}
	}
	// Convenient error response.
	defRes, err := func() (res *ErrorModelStatusCode, err error) {
		ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
		if err != nil {
			return res, errors.Wrap(err, "parse media type")
		}
		switch {
		case ct == "application/problem+json":
			buf, err := io.ReadAll(resp.Body)
			if err != nil {
				return res, err
			}
			d := jx.DecodeBytes(buf)

func decodeGetRepoResponse(resp *http.Response) (res *Repo, _ error) {
	switch resp.StatusCode {
	case 200:
869 unmodified lines

return res, errors.Wrap(defRes, "error")
}

func decodeListClustersResponse(resp *http.Response) (res *ListClustersOutputBody, _ error) {
	switch resp.StatusCode {
	case 200:
		// Code 200.
		ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
		if err != nil {
			return res, errors.Wrap(err, "parse media type")
		}
		switch {
		case ct == "application/json":
			buf, err := io.ReadAll(resp.Body)
			if err != nil {
				return res, err
			}
			d := jx.DecodeBytes(buf)

var response ListClustersOutputBody
			if err := func() error {
				if err := response.Decode(d); err != nil {
					return err
				}
				if err := d.Skip(); err != io.EOF {
					return errors.New("unexpected trailing data")
				}
				return nil
			}(); err != nil {
				err = &ogenerrors.DecodeBodyError{
					ContentType: ct,
					Body:        buf,
					Err:         err,
				}
				return res, err
			}
			// Validate response.
			if err := func() error {
				if err := response.Validate(); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return res, errors.Wrap(err, "validate")
			}
			return &response, nil
		default:
			return res, validate.InvalidContentType(ct)
		}
	}
	// Convenient error response.
	defRes, err := func() (res *ErrorModelStatusCode, err error) {
		ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
		if err != nil {
			return res, errors.Wrap(err, "parse media type")
		}
		switch {
		case ct == "application/problem+json":
			buf, err := io.ReadAll(resp.Body)
			if err != nil {
				return res, err
			}
			d := jx.DecodeBytes(buf)

func decodeListMirrorCollaboratorsResponse(resp *http.Response) (res *ListMirrorCollaboratorsOutputBody, _ error) {
	switch resp.StatusCode {
	case 200:
487 unmodified lines

}
				return res, err
			}
			// Validate response.
			if err := func() error {
				if err := response.Validate(); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return res, errors.Wrap(err, "validate")
			}
			return &response, nil
		default:
			return res, validate.InvalidContentType(ct)
320 unmodified lines

return res, errors.Wrap(defRes, "error")
}

func decodeListRepoGrantsResponse(resp *http.Response) (res *ListRepoGrantsOutputBody, _ error) {
	switch resp.StatusCode {
	case 200:
		// Code 200.
		ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
		if err != nil {
			return res, errors.Wrap(err, "parse media type")
		}
		switch {
		case ct == "application/json":
			buf, err := io.ReadAll(resp.Body)
			if err != nil {
				return res, err
			}
			d := jx.DecodeBytes(buf)

var response ListRepoGrantsOutputBody
			if err := func() error {
				if err := response.Decode(d); err != nil {
					return err
				}
				if err := d.Skip(); err != io.EOF {
					return errors.New("unexpected trailing data")
				}
				return nil
			}(); err != nil {
				err = &ogenerrors.DecodeBodyError{
					ContentType: ct,
					Body:        buf,
					Err:         err,
				}
				return res, err
			}
			// Validate response.
			if err := func() error {
				if err := response.Validate(); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return res, errors.Wrap(err, "validate")
			}
			return &response, nil
		default:
			return res, validate.InvalidContentType(ct)
		}
	}
	// Convenient error response.
	defRes, err := func() (res *ErrorModelStatusCode, err error) {
		ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
		if err != nil {
			return res, errors.Wrap(err, "parse media type")
		}
		switch {
		case ct == "application/problem+json":
			buf, err := io.ReadAll(resp.Body)
			if err != nil {
				return res, err
			}
			d := jx.DecodeBytes(buf)

func decodeListServiceAccountGrantsResponse(resp *http.Response) (res *ListServiceAccountGrantsOutputBody, _ error) {
	switch resp.StatusCode {
	case 200:
557 unmodified lines

return res, errors.Wrap(defRes, "error")
}

func decodeRevokeRepoAccessResponse(resp *http.Response) (res *RevokeRepoAccessNoContent, _ error) {
	switch resp.StatusCode {
	case 204:
		// Code 204.
		return &RevokeRepoAccessNoContent{}, nil
	}
	// Convenient error response.
	defRes, err := func() (res *ErrorModelStatusCode, err error) {
		ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
		if err != nil {
			return res, errors.Wrap(err, "parse media type")
		}
		switch {
		case ct == "application/problem+json":
			buf, err := io.ReadAll(resp.Body)
			if err != nil {
				return res, err
			}
			d := jx.DecodeBytes(buf)

func decodeRevokeRepoAccessByProviderResponse(resp *http.Response) (res *RevokeRepoAccessByProviderNoContent, _ error) {
	switch resp.StatusCode {
	case 204:
		// Code 204.
		return &RevokeRepoAccessByProviderNoContent{}, nil
	}
	// Convenient error response.
	defRes, err := func() (res *ErrorModelStatusCode, err error) {
		ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
		if err != nil {
			return res, errors.Wrap(err, "parse media type")
		}
		switch {
		case ct == "application/problem+json":
			buf, err := io.ReadAll(resp.Body)
			if err != nil {
				return res, err
			}
			d := jx.DecodeBytes(buf)

func decodeRevokeServiceAccountAccessResponse(resp *http.Response) (res *RevokeServiceAccountAccessNoContent, _ error) {
	switch resp.StatusCode {
	case 204:
44 unmodified lines

}
	return res, errors.Wrap(defRes, "error")
}

func decodeUpdateMeResponse(resp *http.Response) (res *UpdateMeOutputBody, _ error) {
	switch resp.StatusCode {
	case 200:
		// Code 200.
		ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
		if err != nil {
			return res, errors.Wrap(err, "parse media type")
		}
		switch {
		case ct == "application/json":
			buf, err := io.ReadAll(resp.Body)
			if err != nil {
				return res, err
			}
			d := jx.DecodeBytes(buf)

var response UpdateMeOutputBody
			if err := func() error {
				if err := response.Decode(d); err != nil {
					return err
				}
				if err := d.Skip(); err != io.EOF {
					return errors.New("unexpected trailing data")
				}
				return nil
			}(); err != nil {
				err = &ogenerrors.DecodeBodyError{
					ContentType: ct,
					Body:        buf,
					Err:         err,
				}
				return res, err
			}
			return &response, nil
		default:
			return res, validate.InvalidContentType(ct)
		}
	}
	// Convenient error response.
	defRes, err := func() (res *ErrorModelStatusCode, err error) {
		ct, _, err := mime.ParseMediaType(resp.Header.Get("Content-Type"))
		if err != nil {
			return res, errors.Wrap(err, "parse media type")
		}
		switch {
		case ct == "application/problem+json":
			buf, err := io.ReadAll(resp.Body)
			if err != nil {
				return res, err
			}
			d := jx.DecodeBytes(buf)

Minternal/coreapi/oas\_response\_decoders\_gen.go+646/-9

```
649 unmodified lines

650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
679 unmodified lines

1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
745 unmodified lines

2162
2163
2164
2089
2165
2166
2167
2168
18 unmodified lines

2187
2188
2189
2114
2190
2191
2192
2193
23 unmodified lines

2217
2218
2219
2144
2220
2221
2222
2223
17 unmodified lines

2241
2242
2243
2168
2169
2244
2245
2246
2247
2248
2249
2176
2177
2250
2251
2252
2 unmodified lines

2255
2256
2257
2186
2187
2188
2189
2258
2259
2260
5 unmodified lines

2266
2267
2268
2201
2202
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2204
2205
2311
2312
2313
2314
2315
2316
2317
2318
56 unmodified lines

2375
2376
2377
2268
2378
2379
2380
2381
18 unmodified lines

2400
2401
2402
2293
2403
2404
2405
2406
23 unmodified lines

2430
2431
2432
2323
2433
2434
2435
2436
17 unmodified lines

2454
2455
2456
2347
2348
2457
2458
2459
2460
2461
2462
2355
2356
2463
2464
2465
2 unmodified lines

2468
2469
2470
2365
2366
2367
2368
2471
2472
2473
5 unmodified lines

2479
2480
2481
2380
2381
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2383
2384
2524
2525
2526
2527
2528
2529
2530
2531
55 unmodified lines

2587
2588
2589
2446
2590
2591
2592
2593
13 unmodified lines

2607
2608
2609
2466
2610
2611
2612
2613
18 unmodified lines

2632
2633
2634
2491
2635
2636
2637
2638
54 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
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
107 unmodified lines

2854
2855
2856
2665
2666
2857
2858
2859
2860
2861
2862
2863
7 unmodified lines

2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
9 unmodified lines

2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
62 unmodified lines

2964
2965
2966
2763
2764
2967
2968
2969
2970
2971
2972
2973
7 unmodified lines

2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
9 unmodified lines

3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
10 unmodified lines

3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
80 unmodified lines

3157
3158
3159
2895
2896
3160
3161
3162
3163
3164
3165
3166
7 unmodified lines

3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
9 unmodified lines

3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
13 unmodified lines

3218
3219
3220
2944
3221
3222
3223
3224
3225
3226
3 unmodified lines

3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
9 unmodified lines

3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
18 unmodified lines

3279
3280
3281
2993
2994
3282
3283
3284
3285
3286
3287
3288
7 unmodified lines

3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
9 unmodified lines

3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
13 unmodified lines

3340
3341
3342
3042
3043
3343
3344
3345
3346
3347
3348
3349
3350
2 unmodified lines

3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
9 unmodified lines

3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
18 unmodified lines

3412
3413
3414
3091
3092
3415
3416
3417
3418
3419
3420
3421
3422
2 unmodified lines

3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
9 unmodified lines

3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
18 unmodified lines

3484
3485
3486
3140
3141
3487
3488
3489
3490
3491
3492
3493
7 unmodified lines

3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
9 unmodified lines

3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
13 unmodified lines

3545
3546
3547
3189
3190
3548
3549
3550
3551
3552
3553
3554
3555
2 unmodified lines

3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
9 unmodified lines

3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
18 unmodified lines

3617
3618
3619
3238
3620
3621
3622
3623
3624
3625
4 unmodified lines

3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
14 unmodified lines

3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
20 unmodified lines

3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3298
3299
3753
3754
3755
3756
3757
3758
3759
7 unmodified lines

3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
9 unmodified lines

3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
13 unmodified lines

3811
3812
3813
3347
3814
3815
3816
3817
3818
3819
3 unmodified lines

3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
9 unmodified lines

3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
211 unmodified lines

4065
4066
4067
3589
4068
4069
4070
4071
4072
4073
6 unmodified lines

4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
24 unmodified lines

4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
161 unmodified lines

4287
4288
4289
3799
3800
3801
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
14 unmodified lines

4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
334 unmodified lines

4666
4667
4668
4669
4670
4671
4672
4673
14 unmodified lines

4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
59 unmodified lines

4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
656 unmodified lines

5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
178 unmodified lines

5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
40 unmodified lines

5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
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
648 unmodified lines

6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
256 unmodified lines

6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
339 unmodified lines

7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
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

649 unmodified lines

return m
}

// Ref: #/components/schemas/Cluster
type Cluster struct {
	IsDefault       bool   `json:"isDefault"`
	Jurisdiction    string `json:"jurisdiction"`
	PublicUrl       string `json:"publicUrl"`
	Slug            string `json:"slug"`
	AdditionalProps ClusterAdditional
}

// GetIsDefault returns the value of IsDefault.
func (s *Cluster) GetIsDefault() bool {
	return s.IsDefault
}

// GetJurisdiction returns the value of Jurisdiction.
func (s *Cluster) GetJurisdiction() string {
	return s.Jurisdiction
}

// GetPublicUrl returns the value of PublicUrl.
func (s *Cluster) GetPublicUrl() string {
	return s.PublicUrl
}

// GetSlug returns the value of Slug.
func (s *Cluster) GetSlug() string {
	return s.Slug
}

// GetAdditionalProps returns the value of AdditionalProps.
func (s *Cluster) GetAdditionalProps() ClusterAdditional {
	return s.AdditionalProps
}

// SetIsDefault sets the value of IsDefault.
func (s *Cluster) SetIsDefault(val bool) {
	s.IsDefault = val
}

// SetJurisdiction sets the value of Jurisdiction.
func (s *Cluster) SetJurisdiction(val string) {
	s.Jurisdiction = val
}

// SetPublicUrl sets the value of PublicUrl.
func (s *Cluster) SetPublicUrl(val string) {
	s.PublicUrl = val
}

// SetSlug sets the value of Slug.
func (s *Cluster) SetSlug(val string) {
	s.Slug = val
}

// SetAdditionalProps sets the value of AdditionalProps.
func (s *Cluster) SetAdditionalProps(val ClusterAdditional) {
	s.AdditionalProps = val
}

type ClusterAdditional map[string]jx.Raw

func (s *ClusterAdditional) init() ClusterAdditional {
	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.
679 unmodified lines

}
}

// DeleteOrgNoContent is response for DeleteOrg operation.
type DeleteOrgNoContent struct{}

// DeleteProjectNoContent is response for DeleteProject operation.
type DeleteProjectNoContent struct{}

// DeleteRepoNoContent is response for DeleteRepo operation.
type DeleteRepoNoContent struct{}

745 unmodified lines

GranteeType     OptGrantProjectAccessInputBodyGranteeType `json:"granteeType"`
	Provider        string                                    `json:"provider"`
	ProviderUserId  string                                    `json:"providerUserId"`
	Role            string                                    `json:"role"`
	Role            GrantProjectAccessInputBodyRole           `json:"role"`
	AdditionalProps GrantProjectAccessInputBodyAdditional
}

18 unmodified lines

}

// GetRole returns the value of Role.
func (s *GrantProjectAccessInputBody) GetRole() string {
func (s *GrantProjectAccessInputBody) GetRole() GrantProjectAccessInputBodyRole {
	return s.Role
}

23 unmodified lines

}

// SetRole sets the value of Role.
func (s *GrantProjectAccessInputBody) SetRole(val string) {
func (s *GrantProjectAccessInputBody) SetRole(val GrantProjectAccessInputBodyRole) {
	s.Role = val
}

17 unmodified lines

const (
	GrantProjectAccessInputBodyGranteeTypeAccount GrantProjectAccessInputBodyGranteeType = "account"
	GrantProjectAccessInputBodyGranteeTypeOrg     GrantProjectAccessInputBodyGranteeType = "org"
	GrantProjectAccessInputBodyGranteeTypeTeam    GrantProjectAccessInputBodyGranteeType = "team"
)

// AllValues returns all GrantProjectAccessInputBodyGranteeType values.
func (GrantProjectAccessInputBodyGranteeType) AllValues() []GrantProjectAccessInputBodyGranteeType {
	return []GrantProjectAccessInputBodyGranteeType{
		GrantProjectAccessInputBodyGranteeTypeAccount,
		GrantProjectAccessInputBodyGranteeTypeOrg,
		GrantProjectAccessInputBodyGranteeTypeTeam,
	}
}

2 unmodified lines

switch s {
	case GrantProjectAccessInputBodyGranteeTypeAccount:
		return []byte(s), nil
	case GrantProjectAccessInputBodyGranteeTypeOrg:
		return []byte(s), nil
	case GrantProjectAccessInputBodyGranteeTypeTeam:
		return []byte(s), nil
	default:
		return nil, errors.Errorf("invalid value: %q", s)
	}
5 unmodified lines

case GrantProjectAccessInputBodyGranteeTypeAccount:
		*s = GrantProjectAccessInputBodyGranteeTypeAccount
		return nil
	case GrantProjectAccessInputBodyGranteeTypeOrg:
		*s = GrantProjectAccessInputBodyGranteeTypeOrg
	default:
		return errors.Errorf("invalid value: %q", data)
	}
}

type GrantProjectAccessInputBodyRole string

const (
	GrantProjectAccessInputBodyRoleReader GrantProjectAccessInputBodyRole = "reader"
	GrantProjectAccessInputBodyRoleWriter GrantProjectAccessInputBodyRole = "writer"
	GrantProjectAccessInputBodyRoleAdmin  GrantProjectAccessInputBodyRole = "admin"
)

// AllValues returns all GrantProjectAccessInputBodyRole values.
func (GrantProjectAccessInputBodyRole) AllValues() []GrantProjectAccessInputBodyRole {
	return []GrantProjectAccessInputBodyRole{
		GrantProjectAccessInputBodyRoleReader,
		GrantProjectAccessInputBodyRoleWriter,
		GrantProjectAccessInputBodyRoleAdmin,
	}
}

// MarshalText implements encoding.TextMarshaler.
func (s GrantProjectAccessInputBodyRole) MarshalText() ([]byte, error) {
	switch s {
	case GrantProjectAccessInputBodyRoleReader:
		return []byte(s), nil
	case GrantProjectAccessInputBodyRoleWriter:
		return []byte(s), nil
	case GrantProjectAccessInputBodyRoleAdmin:
		return []byte(s), nil
	default:
		return nil, errors.Errorf("invalid value: %q", s)
	}
}

// UnmarshalText implements encoding.TextUnmarshaler.
func (s *GrantProjectAccessInputBodyRole) UnmarshalText(data []byte) error {
	switch GrantProjectAccessInputBodyRole(data) {
	case GrantProjectAccessInputBodyRoleReader:
		*s = GrantProjectAccessInputBodyRoleReader
		return nil
	case GrantProjectAccessInputBodyGranteeTypeTeam:
		*s = GrantProjectAccessInputBodyGranteeTypeTeam
	case GrantProjectAccessInputBodyRoleWriter:
		*s = GrantProjectAccessInputBodyRoleWriter
		return nil
	case GrantProjectAccessInputBodyRoleAdmin:
		*s = GrantProjectAccessInputBodyRoleAdmin
		return nil
	default:
		return errors.Errorf("invalid value: %q", data)
56 unmodified lines

GranteeType     OptGrantRepoAccessInputBodyGranteeType `json:"granteeType"`
	Provider        string                                 `json:"provider"`
	ProviderUserId  string                                 `json:"providerUserId"`
	Role            string                                 `json:"role"`
	Role            GrantRepoAccessInputBodyRole           `json:"role"`
	AdditionalProps GrantRepoAccessInputBodyAdditional
}

18 unmodified lines

}

// GetRole returns the value of Role.
func (s *GrantRepoAccessInputBody) GetRole() string {
func (s *GrantRepoAccessInputBody) GetRole() GrantRepoAccessInputBodyRole {
	return s.Role
}

23 unmodified lines

}

// SetRole sets the value of Role.
func (s *GrantRepoAccessInputBody) SetRole(val string) {
func (s *GrantRepoAccessInputBody) SetRole(val GrantRepoAccessInputBodyRole) {
	s.Role = val
}

17 unmodified lines

const (
	GrantRepoAccessInputBodyGranteeTypeAccount GrantRepoAccessInputBodyGranteeType = "account"
	GrantRepoAccessInputBodyGranteeTypeOrg     GrantRepoAccessInputBodyGranteeType = "org"
	GrantRepoAccessInputBodyGranteeTypeTeam    GrantRepoAccessInputBodyGranteeType = "team"
)

// AllValues returns all GrantRepoAccessInputBodyGranteeType values.
func (GrantRepoAccessInputBodyGranteeType) AllValues() []GrantRepoAccessInputBodyGranteeType {
	return []GrantRepoAccessInputBodyGranteeType{
		GrantRepoAccessInputBodyGranteeTypeAccount,
		GrantRepoAccessInputBodyGranteeTypeOrg,
		GrantRepoAccessInputBodyGranteeTypeTeam,
	}
}

2 unmodified lines

switch s {
	case GrantRepoAccessInputBodyGranteeTypeAccount:
		return []byte(s), nil
	case GrantRepoAccessInputBodyGranteeTypeOrg:
		return []byte(s), nil
	case GrantRepoAccessInputBodyGranteeTypeTeam:
		return []byte(s), nil
	default:
		return nil, errors.Errorf("invalid value: %q", s)
	}
5 unmodified lines

case GrantRepoAccessInputBodyGranteeTypeAccount:
		*s = GrantRepoAccessInputBodyGranteeTypeAccount
		return nil
	case GrantRepoAccessInputBodyGranteeTypeOrg:
		*s = GrantRepoAccessInputBodyGranteeTypeOrg
	default:
		return errors.Errorf("invalid value: %q", data)
	}
}

type GrantRepoAccessInputBodyRole string

const (
	GrantRepoAccessInputBodyRoleReader GrantRepoAccessInputBodyRole = "reader"
	GrantRepoAccessInputBodyRoleWriter GrantRepoAccessInputBodyRole = "writer"
	GrantRepoAccessInputBodyRoleAdmin  GrantRepoAccessInputBodyRole = "admin"
)

// AllValues returns all GrantRepoAccessInputBodyRole values.
func (GrantRepoAccessInputBodyRole) AllValues() []GrantRepoAccessInputBodyRole {
	return []GrantRepoAccessInputBodyRole{
		GrantRepoAccessInputBodyRoleReader,
		GrantRepoAccessInputBodyRoleWriter,
		GrantRepoAccessInputBodyRoleAdmin,
	}
}

// MarshalText implements encoding.TextMarshaler.
func (s GrantRepoAccessInputBodyRole) MarshalText() ([]byte, error) {
	switch s {
	case GrantRepoAccessInputBodyRoleReader:
		return []byte(s), nil
	case GrantRepoAccessInputBodyRoleWriter:
		return []byte(s), nil
	case GrantRepoAccessInputBodyRoleAdmin:
		return []byte(s), nil
	default:
		return nil, errors.Errorf("invalid value: %q", s)
	}
}

// UnmarshalText implements encoding.TextUnmarshaler.
func (s *GrantRepoAccessInputBodyRole) UnmarshalText(data []byte) error {
	switch GrantRepoAccessInputBodyRole(data) {
	case GrantRepoAccessInputBodyRoleReader:
		*s = GrantRepoAccessInputBodyRoleReader
		return nil
	case GrantRepoAccessInputBodyGranteeTypeTeam:
		*s = GrantRepoAccessInputBodyGranteeTypeTeam
	case GrantRepoAccessInputBodyRoleWriter:
		*s = GrantRepoAccessInputBodyRoleWriter
		return nil
	case GrantRepoAccessInputBodyRoleAdmin:
		*s = GrantRepoAccessInputBodyRoleAdmin
		return nil
	default:
		return errors.Errorf("invalid value: %q", data)
55 unmodified lines

Schema          OptURI                                         `json:"$schema"`
	ResourceId      string                                         `json:"resourceId"`
	ResourceType    GrantServiceAccountAccessInputBodyResourceType `json:"resourceType"`
	Role            string                                         `json:"role"`
	Role            GrantServiceAccountAccessInputBodyRole         `json:"role"`
	AdditionalProps GrantServiceAccountAccessInputBodyAdditional
}

13 unmodified lines

}

// GetRole returns the value of Role.
func (s *GrantServiceAccountAccessInputBody) GetRole() string {
func (s *GrantServiceAccountAccessInputBody) GetRole() GrantServiceAccountAccessInputBodyRole {
	return s.Role
}

18 unmodified lines

}

// SetRole sets the value of Role.
func (s *GrantServiceAccountAccessInputBody) SetRole(val string) {
func (s *GrantServiceAccountAccessInputBody) SetRole(val GrantServiceAccountAccessInputBodyRole) {
	s.Role = val
}

54 unmodified lines

}
}

type GrantServiceAccountAccessInputBodyRole string

const (
	GrantServiceAccountAccessInputBodyRoleReader GrantServiceAccountAccessInputBodyRole = "reader"
	GrantServiceAccountAccessInputBodyRoleWriter GrantServiceAccountAccessInputBodyRole = "writer"
	GrantServiceAccountAccessInputBodyRoleAdmin  GrantServiceAccountAccessInputBodyRole = "admin"
)

// AllValues returns all GrantServiceAccountAccessInputBodyRole values.
func (GrantServiceAccountAccessInputBodyRole) AllValues() []GrantServiceAccountAccessInputBodyRole {
	return []GrantServiceAccountAccessInputBodyRole{
		GrantServiceAccountAccessInputBodyRoleReader,
		GrantServiceAccountAccessInputBodyRoleWriter,
		GrantServiceAccountAccessInputBodyRoleAdmin,
	}
}

// MarshalText implements encoding.TextMarshaler.
func (s GrantServiceAccountAccessInputBodyRole) MarshalText() ([]byte, error) {
	switch s {
	case GrantServiceAccountAccessInputBodyRoleReader:
		return []byte(s), nil
	case GrantServiceAccountAccessInputBodyRoleWriter:
		return []byte(s), nil
	case GrantServiceAccountAccessInputBodyRoleAdmin:
		return []byte(s), nil
	default:
		return nil, errors.Errorf("invalid value: %q", s)
	}
}

// UnmarshalText implements encoding.TextUnmarshaler.
func (s *GrantServiceAccountAccessInputBodyRole) UnmarshalText(data []byte) error {
	switch GrantServiceAccountAccessInputBodyRole(data) {
	case GrantServiceAccountAccessInputBodyRoleReader:
		*s = GrantServiceAccountAccessInputBodyRoleReader
		return nil
	case GrantServiceAccountAccessInputBodyRoleWriter:
		*s = GrantServiceAccountAccessInputBodyRoleWriter
		return nil
	case GrantServiceAccountAccessInputBodyRoleAdmin:
		*s = GrantServiceAccountAccessInputBodyRoleAdmin
		return nil
	default:
		return errors.Errorf("invalid value: %q", data)
	}
}

// Ref: #/components/schemas/GrantServiceAccountAccessOutputBody
type GrantServiceAccountAccessOutputBody struct {
	// A URL to the JSON Schema for this object.
107 unmodified lines

// 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"`
	// Pass back to fetch the next page; empty when no more entries.
	NextPageToken   OptString `json:"nextPageToken"`
	AdditionalProps ListAuditEventsOutputBodyAdditional
}

7 unmodified lines

return s.Events
}

// GetNextPageToken returns the value of NextPageToken.
func (s *ListAuditEventsOutputBody) GetNextPageToken() OptString {
	return s.NextPageToken
}

// GetAdditionalProps returns the value of AdditionalProps.
func (s *ListAuditEventsOutputBody) GetAdditionalProps() ListAuditEventsOutputBodyAdditional {
	return s.AdditionalProps
9 unmodified lines

s.Events = val
}

// SetNextPageToken sets the value of NextPageToken.
func (s *ListAuditEventsOutputBody) SetNextPageToken(val OptString) {
	s.NextPageToken = val
}

// SetAdditionalProps sets the value of AdditionalProps.
func (s *ListAuditEventsOutputBody) SetAdditionalProps(val ListAuditEventsOutputBodyAdditional) {
	s.AdditionalProps = val
62 unmodified lines

// 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"`
	// Pass back to fetch the next page; empty when no more entries.
	NextPageToken   OptString `json:"nextPageToken"`
	AdditionalProps ListBindingsOutputBodyAdditional
}

7 unmodified lines

return s.Bindings
}

// GetNextPageToken returns the value of NextPageToken.
func (s *ListBindingsOutputBody) GetNextPageToken() OptString {
	return s.NextPageToken
}

// GetAdditionalProps returns the value of AdditionalProps.
func (s *ListBindingsOutputBody) GetAdditionalProps() ListBindingsOutputBodyAdditional {
	return s.AdditionalProps
9 unmodified lines

s.Bindings = val
}

// SetNextPageToken sets the value of NextPageToken.
func (s *ListBindingsOutputBody) SetNextPageToken(val OptString) {
	s.NextPageToken = val
}

// SetAdditionalProps sets the value of AdditionalProps.
func (s *ListBindingsOutputBody) SetAdditionalProps(val ListBindingsOutputBodyAdditional) {
	s.AdditionalProps = val
10 unmodified lines

return m
}

// Ref: #/components/schemas/ListClustersOutputBody
type ListClustersOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema          OptURI    `json:"$schema"`
	Clusters        []Cluster `json:"clusters"`
	AdditionalProps ListClustersOutputBodyAdditional
}

// GetSchema returns the value of Schema.
func (s *ListClustersOutputBody) GetSchema() OptURI {
	return s.Schema
}

// GetClusters returns the value of Clusters.
func (s *ListClustersOutputBody) GetClusters() []Cluster {
	return s.Clusters
}

// GetAdditionalProps returns the value of AdditionalProps.
func (s *ListClustersOutputBody) GetAdditionalProps() ListClustersOutputBodyAdditional {
	return s.AdditionalProps
}

// SetSchema sets the value of Schema.
func (s *ListClustersOutputBody) SetSchema(val OptURI) {
	s.Schema = val
}

// SetClusters sets the value of Clusters.
func (s *ListClustersOutputBody) SetClusters(val []Cluster) {
	s.Clusters = val
}

// SetAdditionalProps sets the value of AdditionalProps.
func (s *ListClustersOutputBody) SetAdditionalProps(val ListClustersOutputBodyAdditional) {
	s.AdditionalProps = val
}

type ListClustersOutputBodyAdditional map[string]jx.Raw

func (s *ListClustersOutputBodyAdditional) init() ListClustersOutputBodyAdditional {
	m := *s
	if m == nil {
		m = map[string]jx.Raw{}
		*s = m
	}
	return m
}

// Ref: #/components/schemas/ListMirrorCollaboratorsOutputBody
type ListMirrorCollaboratorsOutputBody struct {
	// A URL to the JSON Schema for this object.
80 unmodified lines

// 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"`
	// Pass back to fetch the next page; empty when no more entries.
	NextPageToken   OptString `json:"nextPageToken"`
	AdditionalProps ListMirrorsOutputBodyAdditional
}

7 unmodified lines

return s.Mirrors
}

// GetNextPageToken returns the value of NextPageToken.
func (s *ListMirrorsOutputBody) GetNextPageToken() OptString {
	return s.NextPageToken
}

// GetAdditionalProps returns the value of AdditionalProps.
func (s *ListMirrorsOutputBody) GetAdditionalProps() ListMirrorsOutputBodyAdditional {
	return s.AdditionalProps
9 unmodified lines

s.Mirrors = val
}

// SetNextPageToken sets the value of NextPageToken.
func (s *ListMirrorsOutputBody) SetNextPageToken(val OptString) {
	s.NextPageToken = val
}

// SetAdditionalProps sets the value of AdditionalProps.
func (s *ListMirrorsOutputBody) SetAdditionalProps(val ListMirrorsOutputBodyAdditional) {
	s.AdditionalProps = val
13 unmodified lines

// Ref: #/components/schemas/ListOIDCProvidersOutputBody
type ListOIDCProvidersOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema          OptURI         `json:"$schema"`
	Schema OptURI `json:"$schema"`
	// Pass back to fetch the next page; empty when no more entries.
	NextPageToken   OptString      `json:"nextPageToken"`
	Providers       []OIDCProvider `json:"providers"`
	AdditionalProps ListOIDCProvidersOutputBodyAdditional
}
3 unmodified lines

return s.Schema
}

// GetNextPageToken returns the value of NextPageToken.
func (s *ListOIDCProvidersOutputBody) GetNextPageToken() OptString {
	return s.NextPageToken
}

// GetProviders returns the value of Providers.
func (s *ListOIDCProvidersOutputBody) GetProviders() []OIDCProvider {
	return s.Providers
9 unmodified lines

s.Schema = val
}

// SetNextPageToken sets the value of NextPageToken.
func (s *ListOIDCProvidersOutputBody) SetNextPageToken(val OptString) {
	s.NextPageToken = val
}

// SetProviders sets the value of Providers.
func (s *ListOIDCProvidersOutputBody) SetProviders(val []OIDCProvider) {
	s.Providers = val
18 unmodified lines

// 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"`
	// Pass back to fetch the next page; empty when no more entries.
	NextPageToken   OptString `json:"nextPageToken"`
	AdditionalProps ListOrgMembersOutputBodyAdditional
}

7 unmodified lines

return s.Members
}

// GetNextPageToken returns the value of NextPageToken.
func (s *ListOrgMembersOutputBody) GetNextPageToken() OptString {
	return s.NextPageToken
}

// GetAdditionalProps returns the value of AdditionalProps.
func (s *ListOrgMembersOutputBody) GetAdditionalProps() ListOrgMembersOutputBodyAdditional {
	return s.AdditionalProps
9 unmodified lines

s.Members = val
}

// SetNextPageToken sets the value of NextPageToken.
func (s *ListOrgMembersOutputBody) SetNextPageToken(val OptString) {
	s.NextPageToken = val
}

// SetAdditionalProps sets the value of AdditionalProps.
func (s *ListOrgMembersOutputBody) SetAdditionalProps(val ListOrgMembersOutputBodyAdditional) {
	s.AdditionalProps = val
13 unmodified lines

// 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"`
	// Pass back to fetch the next page; empty when no more entries.
	NextPageToken   OptString  `json:"nextPageToken"`
	Project         OptProject `json:"project"`
	Projects        []Project  `json:"projects"`
	AdditionalProps ListOrgProjectsOutputBodyAdditional
}

2 unmodified lines

return s.Schema
}

// GetNextPageToken returns the value of NextPageToken.
func (s *ListOrgProjectsOutputBody) GetNextPageToken() OptString {
	return s.NextPageToken
}

// GetProject returns the value of Project.
func (s *ListOrgProjectsOutputBody) GetProject() OptProject {
	return s.Project
}

// GetProjects returns the value of Projects.
func (s *ListOrgProjectsOutputBody) GetProjects() []Project {
	return s.Projects
9 unmodified lines

s.Schema = val
}

// SetNextPageToken sets the value of NextPageToken.
func (s *ListOrgProjectsOutputBody) SetNextPageToken(val OptString) {
	s.NextPageToken = val
}

// SetProject sets the value of Project.
func (s *ListOrgProjectsOutputBody) SetProject(val OptProject) {
	s.Project = val
}

// SetProjects sets the value of Projects.
func (s *ListOrgProjectsOutputBody) SetProjects(val []Project) {
	s.Projects = val
18 unmodified lines

// 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"`
	// Pass back to fetch the next page; empty when no more entries.
	NextPageToken   OptString `json:"nextPageToken"`
	Org             OptOrg    `json:"org"`
	Orgs            []Org     `json:"orgs"`
	AdditionalProps ListOrgsOutputBodyAdditional
}

2 unmodified lines

return s.Schema
}

// GetNextPageToken returns the value of NextPageToken.
func (s *ListOrgsOutputBody) GetNextPageToken() OptString {
	return s.NextPageToken
}

// GetOrg returns the value of Org.
func (s *ListOrgsOutputBody) GetOrg() OptOrg {
	return s.Org
}

// GetOrgs returns the value of Orgs.
func (s *ListOrgsOutputBody) GetOrgs() []Org {
	return s.Orgs
9 unmodified lines

s.Schema = val
}

// SetNextPageToken sets the value of NextPageToken.
func (s *ListOrgsOutputBody) SetNextPageToken(val OptString) {
	s.NextPageToken = val
}

// SetOrg sets the value of Org.
func (s *ListOrgsOutputBody) SetOrg(val OptOrg) {
	s.Org = val
}

// SetOrgs sets the value of Orgs.
func (s *ListOrgsOutputBody) SetOrgs(val []Org) {
	s.Orgs = val
18 unmodified lines

// 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"`
	// Pass back to fetch the next page; empty when no more entries.
	NextPageToken   OptString `json:"nextPageToken"`
	AdditionalProps ListProjectMembersOutputBodyAdditional
}

7 unmodified lines

return s.Members
}

// GetNextPageToken returns the value of NextPageToken.
func (s *ListProjectMembersOutputBody) GetNextPageToken() OptString {
	return s.NextPageToken
}

// GetAdditionalProps returns the value of AdditionalProps.
func (s *ListProjectMembersOutputBody) GetAdditionalProps() ListProjectMembersOutputBodyAdditional {
	return s.AdditionalProps
9 unmodified lines

s.Members = val
}

// SetNextPageToken sets the value of NextPageToken.
func (s *ListProjectMembersOutputBody) SetNextPageToken(val OptString) {
	s.NextPageToken = val
}

// SetAdditionalProps sets the value of AdditionalProps.
func (s *ListProjectMembersOutputBody) SetAdditionalProps(val ListProjectMembersOutputBodyAdditional) {
	s.AdditionalProps = val
13 unmodified lines

// 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"`
	// Pass back to fetch the next page; empty when no more entries.
	NextPageToken   OptString `json:"nextPageToken"`
	Repo            OptRepo   `json:"repo"`
	Repos           []Repo    `json:"repos"`
	AdditionalProps ListProjectReposOutputBodyAdditional
}

2 unmodified lines

return s.Schema
}

// GetNextPageToken returns the value of NextPageToken.
func (s *ListProjectReposOutputBody) GetNextPageToken() OptString {
	return s.NextPageToken
}

// GetRepo returns the value of Repo.
func (s *ListProjectReposOutputBody) GetRepo() OptRepo {
	return s.Repo
}

// GetRepos returns the value of Repos.
func (s *ListProjectReposOutputBody) GetRepos() []Repo {
	return s.Repos
9 unmodified lines

s.Schema = val
}

// SetNextPageToken sets the value of NextPageToken.
func (s *ListProjectReposOutputBody) SetNextPageToken(val OptString) {
	s.NextPageToken = val
}

// SetRepo sets the value of Repo.
func (s *ListProjectReposOutputBody) SetRepo(val OptRepo) {
	s.Repo = val
}

// SetRepos sets the value of Repos.
func (s *ListProjectReposOutputBody) SetRepos(val []Repo) {
	s.Repos = val
18 unmodified lines

// Ref: #/components/schemas/ListProjectsOutputBody
type ListProjectsOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema          OptURI     `json:"$schema"`
	Schema OptURI `json:"$schema"`
	// Pass back to fetch the next page; empty when no more entries.
	NextPageToken   OptString  `json:"nextPageToken"`
	Project         OptProject `json:"project"`
	Projects        []Project  `json:"projects"`
	AdditionalProps ListProjectsOutputBodyAdditional
4 unmodified lines

return s.Schema
}

// GetNextPageToken returns the value of NextPageToken.
func (s *ListProjectsOutputBody) GetNextPageToken() OptString {
	return s.NextPageToken
}

// GetProject returns the value of Project.
func (s *ListProjectsOutputBody) GetProject() OptProject {
	return s.Project
14 unmodified lines

s.Schema = val
}

// SetNextPageToken sets the value of NextPageToken.
func (s *ListProjectsOutputBody) SetNextPageToken(val OptString) {
	s.NextPageToken = val
}

// SetProject sets the value of Project.
func (s *ListProjectsOutputBody) SetProject(val OptProject) {
	s.Project = val
20 unmodified lines

return m
}

// Ref: #/components/schemas/ListRepoGrantsOutputBody
type ListRepoGrantsOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema OptURI      `json:"$schema"`
	Grants []RepoGrant `json:"grants"`
	// Pass back to fetch the next page; empty when no more entries.
	NextPageToken   OptString `json:"nextPageToken"`
	AdditionalProps ListRepoGrantsOutputBodyAdditional
}

// GetSchema returns the value of Schema.
func (s *ListRepoGrantsOutputBody) GetSchema() OptURI {
	return s.Schema
}

// GetGrants returns the value of Grants.
func (s *ListRepoGrantsOutputBody) GetGrants() []RepoGrant {
	return s.Grants
}

// GetNextPageToken returns the value of NextPageToken.
func (s *ListRepoGrantsOutputBody) GetNextPageToken() OptString {
	return s.NextPageToken
}

// GetAdditionalProps returns the value of AdditionalProps.
func (s *ListRepoGrantsOutputBody) GetAdditionalProps() ListRepoGrantsOutputBodyAdditional {
	return s.AdditionalProps
}

// SetSchema sets the value of Schema.
func (s *ListRepoGrantsOutputBody) SetSchema(val OptURI) {
	s.Schema = val
}

// SetGrants sets the value of Grants.
func (s *ListRepoGrantsOutputBody) SetGrants(val []RepoGrant) {
	s.Grants = val
}

// SetNextPageToken sets the value of NextPageToken.
func (s *ListRepoGrantsOutputBody) SetNextPageToken(val OptString) {
	s.NextPageToken = val
}

// SetAdditionalProps sets the value of AdditionalProps.
func (s *ListRepoGrantsOutputBody) SetAdditionalProps(val ListRepoGrantsOutputBodyAdditional) {
	s.AdditionalProps = val
}

type ListRepoGrantsOutputBodyAdditional map[string]jx.Raw

func (s *ListRepoGrantsOutputBodyAdditional) init() ListRepoGrantsOutputBodyAdditional {
	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"`
	// Pass back to fetch the next page; empty when no more entries.
	NextPageToken   OptString `json:"nextPageToken"`
	AdditionalProps ListServiceAccountGrantsOutputBodyAdditional
}

7 unmodified lines

return s.Grants
}

// GetNextPageToken returns the value of NextPageToken.
func (s *ListServiceAccountGrantsOutputBody) GetNextPageToken() OptString {
	return s.NextPageToken
}

// GetAdditionalProps returns the value of AdditionalProps.
func (s *ListServiceAccountGrantsOutputBody) GetAdditionalProps() ListServiceAccountGrantsOutputBodyAdditional {
	return s.AdditionalProps
9 unmodified lines

s.Grants = val
}

// SetNextPageToken sets the value of NextPageToken.
func (s *ListServiceAccountGrantsOutputBody) SetNextPageToken(val OptString) {
	s.NextPageToken = val
}

// SetAdditionalProps sets the value of AdditionalProps.
func (s *ListServiceAccountGrantsOutputBody) SetAdditionalProps(val ListServiceAccountGrantsOutputBodyAdditional) {
	s.AdditionalProps = val
13 unmodified lines

// Ref: #/components/schemas/ListServiceAccountsOutputBody
type ListServiceAccountsOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema          OptURI                     `json:"$schema"`
	Schema OptURI `json:"$schema"`
	// Pass back to fetch the next page; empty when no more entries.
	NextPageToken   OptString                  `json:"nextPageToken"`
	ServiceAccounts []ServiceAccountWithGrants `json:"serviceAccounts"`
	AdditionalProps ListServiceAccountsOutputBodyAdditional
}
3 unmodified lines

return s.Schema
}

// GetNextPageToken returns the value of NextPageToken.
func (s *ListServiceAccountsOutputBody) GetNextPageToken() OptString {
	return s.NextPageToken
}

// GetServiceAccounts returns the value of ServiceAccounts.
func (s *ListServiceAccountsOutputBody) GetServiceAccounts() []ServiceAccountWithGrants {
	return s.ServiceAccounts
9 unmodified lines

s.Schema = val
}

// SetNextPageToken sets the value of NextPageToken.
func (s *ListServiceAccountsOutputBody) SetNextPageToken(val OptString) {
	s.NextPageToken = val
}

// SetServiceAccounts sets the value of ServiceAccounts.
func (s *ListServiceAccountsOutputBody) SetServiceAccounts(val []ServiceAccountWithGrants) {
	s.ServiceAccounts = val
211 unmodified lines

// Ref: #/components/schemas/LookupResourcesOutputBody
type LookupResourcesOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema          OptURI           `json:"$schema"`
	Schema OptURI `json:"$schema"`
	// Pass back to fetch the next page; empty when no more entries.
	NextPageToken   OptString        `json:"nextPageToken"`
	Permission      OptString        `json:"permission"`
	ResourceIds     []string         `json:"resourceIds"`
	ResourceType    string           `json:"resourceType"`
6 unmodified lines

return s.Schema
}

// GetNextPageToken returns the value of NextPageToken.
func (s *LookupResourcesOutputBody) GetNextPageToken() OptString {
	return s.NextPageToken
}

// GetPermission returns the value of Permission.
func (s *LookupResourcesOutputBody) GetPermission() OptString {
	return s.Permission
24 unmodified lines

s.Schema = val
}

// SetNextPageToken sets the value of NextPageToken.
func (s *LookupResourcesOutputBody) SetNextPageToken(val OptString) {
	s.NextPageToken = val
}

// SetPermission sets the value of Permission.
func (s *LookupResourcesOutputBody) SetPermission(val OptString) {
	s.Permission = val
161 unmodified lines

// Ref: #/components/schemas/MeIdentityHandle
type MeIdentityHandle struct {
	Handle          string `json:"handle"`
	Provider        string `json:"provider"`
	ProviderUserId  string `json:"providerUserId"`
	// The provider's publicly-visible profile email (from the provider at login; may be empty). NOT the
	// account's contact email.
	Email           OptString `json:"email"`
	Handle          string    `json:"handle"`
	Provider        string    `json:"provider"`
	ProviderUserId  string    `json:"providerUserId"`
	AdditionalProps MeIdentityHandleAdditional
}

// GetEmail returns the value of Email.
func (s *MeIdentityHandle) GetEmail() OptString {
	return s.Email
}

// GetHandle returns the value of Handle.
func (s *MeIdentityHandle) GetHandle() string {
	return s.Handle
14 unmodified lines

return s.AdditionalProps
}

// SetEmail sets the value of Email.
func (s *MeIdentityHandle) SetEmail(val OptString) {
	s.Email = val
}

// SetHandle sets the value of Handle.
func (s *MeIdentityHandle) SetHandle(val string) {
	s.Handle = val
334 unmodified lines

type Mirror struct {
	// A URL to the JSON Schema for this object.
	Schema OptURI `json:"$schema"`
	// Physical cell the mirror's cluster runs in, e.g. aws-us-east-2.
	Cell OptString `json:"cell"`
	// Public host of the cluster serving this mirror.
	ClusterHost     string      `json:"clusterHost"`
	CreatedAt       time.Time   `json:"createdAt"`
14 unmodified lines

return s.Schema
}

// GetCell returns the value of Cell.
func (s *Mirror) GetCell() OptString {
	return s.Cell
}

// GetClusterHost returns the value of ClusterHost.
func (s *Mirror) GetClusterHost() string {
	return s.ClusterHost
59 unmodified lines

s.Schema = val
}

// SetCell sets the value of Cell.
func (s *Mirror) SetCell(val OptString) {
	s.Cell = val
}

// SetClusterHost sets the value of ClusterHost.
func (s *Mirror) SetClusterHost(val string) {
	s.ClusterHost = val
656 unmodified lines

return d
}

// NewOptInt32 returns new OptInt32 with value set to v.
func NewOptInt32(v int32) OptInt32 {
	return OptInt32{
		Value: v,
		Set:   true,
	}
}

// OptInt32 is optional int32.
type OptInt32 struct {
	Value int32
	Set   bool
}

// IsSet returns true if OptInt32 was set.
func (o OptInt32) IsSet() bool { return o.Set }

// Reset unsets value.
func (o *OptInt32) Reset() {
	var v int32
	o.Value = v
	o.Set = false
}

// SetTo sets value to v.
func (o *OptInt32) SetTo(v int32) {
	o.Set = true
	o.Value = v
}

// Get returns value and boolean that denotes whether value was set.
func (o OptInt32) Get() (v int32, ok bool) {
	if !o.Set {
		return v, false
	}
	return o.Value, true
}

// Or returns value if set, or given parameter if does not.
func (o OptInt32) Or(d int32) int32 {
	if v, ok := o.Get(); ok {
		return v
	}
	return d
}

// NewOptInt64 returns new OptInt64 with value set to v.
func NewOptInt64(v int64) OptInt64 {
	return OptInt64{
178 unmodified lines

return d
}

// NewOptOrg returns new OptOrg with value set to v.
func NewOptOrg(v Org) OptOrg {
	return OptOrg{
		Value: v,
		Set:   true,
	}
}

// OptOrg is optional Org.
type OptOrg struct {
	Value Org
	Set   bool
}

// IsSet returns true if OptOrg was set.
func (o OptOrg) IsSet() bool { return o.Set }

// Reset unsets value.
func (o *OptOrg) Reset() {
	var v Org
	o.Value = v
	o.Set = false
}

// SetTo sets value to v.
func (o *OptOrg) SetTo(v Org) {
	o.Set = true
	o.Value = v
}

// Get returns value and boolean that denotes whether value was set.
func (o OptOrg) Get() (v Org, ok bool) {
	if !o.Set {
		return v, false
	}
	return o.Value, true
}

// Or returns value if set, or given parameter if does not.
func (o OptOrg) Or(d Org) Org {
	if v, ok := o.Get(); ok {
		return v
	}
	return d
}

// NewOptProject returns new OptProject with value set to v.
func NewOptProject(v Project) OptProject {
	return OptProject{
40 unmodified lines

return d
}

// NewOptRepo returns new OptRepo with value set to v.
func NewOptRepo(v Repo) OptRepo {
	return OptRepo{
		Value: v,
		Set:   true,
	}
}

// OptRepo is optional Repo.
type OptRepo struct {
	Value Repo
	Set   bool
}

// IsSet returns true if OptRepo was set.
func (o OptRepo) IsSet() bool { return o.Set }

// Reset unsets value.
func (o *OptRepo) Reset() {
	var v Repo
	o.Value = v
	o.Set = false
}

// SetTo sets value to v.
func (o *OptRepo) SetTo(v Repo) {
	o.Set = true
	o.Value = v
}

// Get returns value and boolean that denotes whether value was set.
func (o OptRepo) Get() (v Repo, ok bool) {
	if !o.Set {
		return v, false
	}
	return o.Value, true
}

// Or returns value if set, or given parameter if does not.
func (o OptRepo) Or(d Repo) Repo {
	if v, ok := o.Get(); ok {
		return v
	}
	return d
}

// NewOptRepoObjectFormat returns new OptRepoObjectFormat with value set to v.
func NewOptRepoObjectFormat(v RepoObjectFormat) OptRepoObjectFormat {
	return OptRepoObjectFormat{
648 unmodified lines

return m
}

// Ref: #/components/schemas/RepoGrant
type RepoGrant struct {
	GranteeId       string `json:"granteeId"`
	GranteeType     string `json:"granteeType"`
	Role            string `json:"role"`
	AdditionalProps RepoGrantAdditional
}

// GetGranteeId returns the value of GranteeId.
func (s *RepoGrant) GetGranteeId() string {
	return s.GranteeId
}

// GetGranteeType returns the value of GranteeType.
func (s *RepoGrant) GetGranteeType() string {
	return s.GranteeType
}

// GetRole returns the value of Role.
func (s *RepoGrant) GetRole() string {
	return s.Role
}

// GetAdditionalProps returns the value of AdditionalProps.
func (s *RepoGrant) GetAdditionalProps() RepoGrantAdditional {
	return s.AdditionalProps
}

// SetGranteeId sets the value of GranteeId.
func (s *RepoGrant) SetGranteeId(val string) {
	s.GranteeId = val
}

// SetGranteeType sets the value of GranteeType.
func (s *RepoGrant) SetGranteeType(val string) {
	s.GranteeType = val
}

// SetRole sets the value of Role.
func (s *RepoGrant) SetRole(val string) {
	s.Role = val
}

// SetAdditionalProps sets the value of AdditionalProps.
func (s *RepoGrant) SetAdditionalProps(val RepoGrantAdditional) {
	s.AdditionalProps = val
}

type RepoGrantAdditional map[string]jx.Raw

func (s *RepoGrantAdditional) init() RepoGrantAdditional {
	m := *s
	if m == nil {
		m = map[string]jx.Raw{}
		*s = m
	}
	return m
}

type RepoObjectFormat string

const (
256 unmodified lines

// RevokeProjectAccessNoContent is response for RevokeProjectAccess operation.
type RevokeProjectAccessNoContent struct{}

// RevokeRepoAccessByProviderNoContent is response for RevokeRepoAccessByProvider operation.
type RevokeRepoAccessByProviderNoContent struct{}

// RevokeRepoAccessNoContent is response for RevokeRepoAccess operation.
type RevokeRepoAccessNoContent struct{}

// RevokeServiceAccountAccessNoContent is response for RevokeServiceAccountAccess operation.
type RevokeServiceAccountAccessNoContent struct{}

339 unmodified lines

func (s *SessionAuth) SetRoles(val []string) {
	s.Roles = val
}

// Ref: #/components/schemas/UpdateMeInputBody
type UpdateMeInputBody struct {
	// A URL to the JSON Schema for this object.
	Schema OptURI `json:"$schema"`
	// Contact email.
	Email           string `json:"email"`
	AdditionalProps UpdateMeInputBodyAdditional
}

// GetSchema returns the value of Schema.
func (s *UpdateMeInputBody) GetSchema() OptURI {
	return s.Schema
}

// GetEmail returns the value of Email.
func (s *UpdateMeInputBody) GetEmail() string {
	return s.Email
}

// GetAdditionalProps returns the value of AdditionalProps.
func (s *UpdateMeInputBody) GetAdditionalProps() UpdateMeInputBodyAdditional {
	return s.AdditionalProps
}

// SetSchema sets the value of Schema.
func (s *UpdateMeInputBody) SetSchema(val OptURI) {
	s.Schema = val
}

// SetEmail sets the value of Email.
func (s *UpdateMeInputBody) SetEmail(val string) {
	s.Email = val
}

// SetAdditionalProps sets the value of AdditionalProps.
func (s *UpdateMeInputBody) SetAdditionalProps(val UpdateMeInputBodyAdditional) {
	s.AdditionalProps = val
}

type UpdateMeInputBodyAdditional map[string]jx.Raw

func (s *UpdateMeInputBodyAdditional) init() UpdateMeInputBodyAdditional {
	m := *s
	if m == nil {
		m = map[string]jx.Raw{}
		*s = m
	}
	return m
}

// Ref: #/components/schemas/UpdateMeOutputBody
type UpdateMeOutputBody struct {
	// A URL to the JSON Schema for this object.
	Schema          OptURI `json:"$schema"`
	Email           string `json:"email"`
	AdditionalProps UpdateMeOutputBodyAdditional
}

// GetSchema returns the value of Schema.
func (s *UpdateMeOutputBody) GetSchema() OptURI {
	return s.Schema
}

// GetEmail returns the value of Email.
func (s *UpdateMeOutputBody) GetEmail() string {
	return s.Email
}

// GetAdditionalProps returns the value of AdditionalProps.
func (s *UpdateMeOutputBody) GetAdditionalProps() UpdateMeOutputBodyAdditional {
	return s.AdditionalProps
}

// SetSchema sets the value of Schema.
func (s *UpdateMeOutputBody) SetSchema(val OptURI) {
	s.Schema = val
}

// SetEmail sets the value of Email.
func (s *UpdateMeOutputBody) SetEmail(val string) {
	s.Email = val
}

// SetAdditionalProps sets the value of AdditionalProps.
func (s *UpdateMeOutputBody) SetAdditionalProps(val UpdateMeOutputBodyAdditional) {
	s.AdditionalProps = val
}

type UpdateMeOutputBodyAdditional map[string]jx.Raw

func (s *UpdateMeOutputBodyAdditional) init() UpdateMeOutputBodyAdditional {
	m := *s
	if m == nil {
		m = map[string]jx.Raw{}
		*s = m
	}
	return m
}
```

Minternal/coreapi/oas\_schemas\_gen.go+876/-58

```
30 unmodified lines

31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
3 unmodified lines

49
50
51
52
53
54
55
3 unmodified lines

59
60
61
62
63
64
65
2 unmodified lines

68
69
70
71
72
73
74
75
76
77
29 unmodified lines

107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
3 unmodified lines

125
126
127
128
129
130
131
3 unmodified lines

135
136
137
138
139
140
141
2 unmodified lines

144
145
146
147
148
149
150
151
152
153

30 unmodified lines

CreateServiceAccountOperation:          {},
	DeleteBindingOperation:                 {},
	DeleteMirrorOperation:                  {},
	DeleteOrgOperation:                     {},
	DeleteProjectOperation:                 {},
	DeleteRepoOperation:                    {},
	DeleteServiceAccountOperation:          {},
	GetMeOperation:                         {},
	GetMirrorOperation:                     {},
	GetOrgOperation:                        {},
	GetPermissionsOperation:                {},
	GetProjectOperation:                    {},
	GetRepoOperation:                       {},
	GetServiceAccountOperation:             {},
	GrantMirrorCollaboratorOperation:       {},
3 unmodified lines

ListAuditEventsOperation:               {},
	ListAvailableMirrorsOperation:          {},
	ListBindingsOperation:                  {},
	ListClustersOperation:                  {},
	ListMirrorCollaboratorsOperation:       {},
	ListMirrorsOperation:                   {},
	ListOIDCProvidersOperation:             {},
3 unmodified lines

ListProjectMembersOperation:            {},
	ListProjectReposOperation:              {},
	ListProjectsOperation:                  {},
	ListRepoGrantsOperation:                {},
	ListServiceAccountGrantsOperation:      {},
	ListServiceAccountsOperation:           {},
	LookupResourcesOperation:               {},
2 unmodified lines

RevokeMirrorCollaboratorOperation:      {},
	RevokeProjectAccessOperation:           {},
	RevokeProjectAccessByProviderOperation: {},
	RevokeRepoAccessOperation:              {},
	RevokeRepoAccessByProviderOperation:    {},
	RevokeServiceAccountAccessOperation:    {},
	UpdateMeOperation:                      {},
}

// GetRolesForBearerAuth returns the required roles for the given operation.
29 unmodified lines

// GetRolesForSessionAuth returns the required roles for the given operation.
```

Minternal/coreapi/oas\_security\_gen.go+18

```
982 unmodified lines

983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
986
987
988
989
990
12 unmodified lines

1003
1004
1005
1018
1006
1007
1008
1009
1010
1011
1012
1013
1014
1020
1015
1016
1017
1018
1019
1020
71 unmodified lines

1092
1093
1094
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1095
1096
1097
1098
1099
12 unmodified lines

1112
1113
1114
1130
1115
1116
1117
1118
1119
1120
1121
1122
1123
1132
1124
1125
1126
1127
1128
1129
41 unmodified lines

1171
1172
1173
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1174
1175
1176
1177
1178
19 unmodified lines

1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
80 unmodified lines

1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
102 unmodified lines

1428
1429
1430
1413
1414
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
24 unmodified lines

1476
1477
1478
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1479
1480
1481
24 unmodified lines

1506
1507
1508
1499
1500
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
79 unmodified lines

1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
419 unmodified lines

2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094

982 unmodified lines

})
	}
	if err := func() error {
		if err := (validate.String{
			MinLength:     1,
			MinLengthSet:  true,
			MaxLength:     0,
			MaxLengthSet:  false,
			Email:         false,
			Hostname:      false,
			Regex:         nil,
			MinNumeric:    0,
			MinNumericSet: false,
			MaxNumeric:    0,
			MaxNumericSet: false,
		}).Validate(string(s.Role)); err != nil {
			return errors.Wrap(err, "string")
		if err := s.Role.Validate(); err != nil {
			return err
		}
		return nil
	}(); err != nil {
12 unmodified lines

switch s {
	case "account":
		return nil
	case "org":
	default:
		return errors.Errorf("invalid value: %v", s)
	}
}

func (s GrantProjectAccessInputBodyRole) Validate() error {
	switch s {
	case "reader":
		return nil
	case "team":
	case "writer":
		return nil
	case "admin":
		return nil
	default:
		return errors.Errorf("invalid value: %v", s)
71 unmodified lines

switch s {
	case "account":
		return nil
	case "org":
	default:
		return errors.Errorf("invalid value: %v", s)
	}
}

func (s GrantRepoAccessInputBodyRole) Validate() error {
	switch s {
	case "reader":
		return nil
	case "team":
	case "writer":
		return nil
	case "admin":
		return nil
	default:
		return errors.Errorf("invalid value: %v", s)
41 unmodified lines

})
	}
	if err := func() error {
		if err := (validate.String{
			MinLength:     1,
			MinLengthSet:  true,
			MaxLength:     0,
			MaxLengthSet:  false,
			Email:         false,
			Hostname:      false,
			Regex:         nil,
			MinNumeric:    0,
			MinNumericSet: false,
			MaxNumeric:    0,
			MaxNumericSet: false,
		}).Validate(string(s.Role)); err != nil {
			return errors.Wrap(err, "string")
		if err := s.Role.Validate(); err != nil {
			return err
		}
		return nil
	}(); err != nil {
19 unmodified lines

}
}

func (s GrantServiceAccountAccessInputBodyRole) Validate() error {
	switch s {
	case "reader":
		return nil
	case "writer":
		return nil
	case "admin":
		return nil
	default:
		return errors.Errorf("invalid value: %v", s)
	}
}

func (s *ListAuditEventsOutputBody) Validate() error {
	if s == nil {
		return validate.ErrNilPointer
80 unmodified lines

return nil
}

func (s *ListClustersOutputBody) Validate() error {
	if s == nil {
		return validate.ErrNilPointer
	}

var failures []validate.FieldError
	if err := func() error {
		if s.Clusters == nil {
			return errors.New("nil is invalid value")
		}
		return nil
	}(); err != nil {
		failures = append(failures, validate.FieldError{
			Name:  "clusters",
			Error: err,
		})
	}
	if len(failures) > 0 {
		return &validate.Error{Fields: failures}
	}
	return nil
}

func (s *ListMirrorCollaboratorsOutputBody) Validate() error {
	if s == nil {
		return validate.ErrNilPointer
102 unmodified lines

var failures []validate.FieldError
	if err := func() error {
		if s.Projects == nil {
			return errors.New("nil is invalid value")
		if value, ok := s.Project.Get(); ok {
			if err := func() error {
				if err := value.Validate(); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return err
			}
		}
		return nil
	}(); err != nil {
		failures = append(failures, validate.FieldError{
			Name:  "project",
			Error: err,
		})
	}
	if err := func() error {
		var failures []validate.FieldError
		for i, elem := range s.Projects {
			if err := func() error {
24 unmodified lines

return nil
}

func (s *ListOrgsOutputBody) Validate() error {
	if s == nil {
		return validate.ErrNilPointer
	}

var failures []validate.FieldError
	if err := func() error {
		if s.Orgs == nil {
			return errors.New("nil is invalid value")
		}
		return nil
	}(); err != nil {
		failures = append(failures, validate.FieldError{
			Name:  "orgs",
			Error: err,
		})
	}
	if len(failures) > 0 {
		return &validate.Error{Fields: failures}
	}
	return nil
}

func (s *ListProjectMembersOutputBody) Validate() error {
	if s == nil {
		return validate.ErrNilPointer
24 unmodified lines

var failures []validate.FieldError
	if err := func() error {
		if s.Repos == nil {
			return errors.New("nil is invalid value")
		if value, ok := s.Repo.Get(); ok {
			if err := func() error {
				if err := value.Validate(); err != nil {
					return err
				}
				return nil
			}(); err != nil {
				return err
			}
		}
		return nil
	}(); err != nil {
		failures = append(failures, validate.FieldError{
			Name:  "repo",
			Error: err,
		})
	}
	if err := func() error {
		var failures []validate.FieldError
		for i, elem := range s.Repos {
			if err := func() error {
79 unmodified lines

return nil
}

func (s *ListRepoGrantsOutputBody) Validate() error {
	if s == nil {
		return validate.ErrNilPointer
	}

var failures []validate.FieldError
	if err := func() error {
		if s.Grants == nil {
			return errors.New("nil is invalid value")
		}
		return nil
	}(); err != nil {
		failures = append(failures, validate.FieldError{
			Name:  "grants",
			Error: err,
		})
	}
	if len(failures) > 0 {
		return &validate.Error{Fields: failures}
	}
	return nil
}

func (s *ListServiceAccountGrantsOutputBody) Validate() error {
	if s == nil {
		return validate.ErrNilPointer
419 unmodified lines

}
	return nil
}

func (s *UpdateMeInputBody) Validate() error {
	if s == nil {
		return validate.ErrNilPointer
	}

var failures []validate.FieldError
	if err := func() error {
		if err := (validate.String{
			MinLength:     5,
			MinLengthSet:  true,
			MaxLength:     254,
			MaxLengthSet:  true,
			Email:         true,
			Hostname:      false,
			Regex:         nil,
			MinNumeric:    0,
			MinNumericSet: false,
			MaxNumeric:    0,
			MaxNumericSet: false,
		}).Validate(string(s.Email)); err != nil {
			return errors.Wrap(err, "string")
		}
		return nil
	}(); err != nil {
		failures = append(failures, validate.FieldError{
			Name:  "email",
			Error: err,
		})
	}
	if len(failures) > 0 {
		return &validate.Error{Fields: failures}
	}
	return nil
}
```

Minternal/coreapi/oas\_validators\_gen.go+156/-73

```
198 unmodified lines

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
487 unmodified lines

716
717
718
695
696
697
719
720
721
722
6 unmodified lines

729
730
731
710
732
733
734
735
736
737
738
739
40 unmodified lines

780
781
782
757
758
759
783
784
785
786
6 unmodified lines

793
794
795
772
796
797
798
799
800
801
802
803
49 unmodified lines

853
854
855
828
856
857
858
859
860
861
862
863
68 unmodified lines

932
933
934
935
936
937
938
939
940
941
42 unmodified lines

984
985
986
987
988
989
990
991
992
993
1 unmodified line

995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
35 unmodified lines

1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
13 unmodified lines

1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
23 unmodified lines

1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
13 unmodified lines

1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1 unmodified line

1153
1154
1155
1073
1074
1075
1156
1157
1158
8 unmodified lines

1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1 unmodified line

1181
1182
1183
1097
1098
1099
1184
1185
1186
13 unmodified lines

1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
13 unmodified lines

1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1 unmodified line

1237
1238
1239
1145
1146
1147
1240
1241
1242
8 unmodified lines

1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
6 unmodified lines

1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
11 unmodified lines

1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
13 unmodified lines

1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
72 unmodified lines

1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
65 unmodified lines

1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
120 unmodified lines

1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
254 unmodified lines

1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
150 unmodified lines

2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
22 unmodified lines

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
6 unmodified lines

2171
2172
2173
1941
2174
2175
2176
2177
2178
1946
2179
2180
2181
2182
106 unmodified lines

2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
30 unmodified lines

2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
143 unmodified lines

2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
76 unmodified lines

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
432 unmodified lines

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
3154
3155
3156
3157
3158
33 unmodified lines

3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
24 unmodified lines

3257
3258
3259
2833
3260
3261
3262
3263
46 unmodified lines

3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
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
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
163 unmodified lines

3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
2 unmodified lines

3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
36 unmodified lines

3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
88 unmodified lines

3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
180 unmodified lines

4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
44 unmodified lines

4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
2 unmodified lines

4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
26 unmodified lines

4220
4221
4222
3479
4223
4224
4225
4226
140 unmodified lines

4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
53 unmodified lines

4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
183 unmodified lines

4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
154 unmodified lines

5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046

198 unmodified lines

],
        "type": "object"
      },
      "Cluster": {
        "additionalProperties": true,
        "properties": {
          "isDefault": {
            "type": "boolean"
          },
          "jurisdiction": {
            "type": "string"
          },
          "publicUrl": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          }
        },
        "required": [\
          "slug",\
          "jurisdiction",\
          "publicUrl",\
          "isDefault"\
        ],
        "type": "object"
      },
      "CreateBindingInputBody": {
        "additionalProperties": true,
        "properties": {
487 unmodified lines

"granteeType": {
            "default": "account",
            "enum": [\
              "account",\
              "org",\
              "team"\
              "account"\
            ],
            "type": "string"
          },
6 unmodified lines

"type": "string"
          },
          "role": {
            "minLength": 1,
            "enum": [\
              "reader",\
              "writer",\
              "admin"\
            ],
            "type": "string"
          }
        },
40 unmodified lines

"granteeType": {
            "default": "account",
            "enum": [\
              "account",\
              "org",\
              "team"\
              "account"\
            ],
            "type": "string"
          },
6 unmodified lines

"type": "string"
          },
          "role": {
            "minLength": 1,
            "enum": [\
              "reader",\
              "writer",\
              "admin"\
            ],
            "type": "string"
          }
        },
49 unmodified lines

"type": "string"
          },
          "role": {
            "minLength": 1,
            "enum": [\
              "reader",\
              "writer",\
              "admin"\
            ],
            "type": "string"
          }
        },
68 unmodified lines

"$ref": "#/components/schemas/AuditEvent"
            },
            "type": "array"
          },
          "nextPageToken": {
            "description": "Pass back to fetch the next page; empty when no more entries.",
            "type": "string"
          }
        },
        "required": [\
42 unmodified lines\
\
              "$ref": "#/components/schemas/Binding"\
            },\
            "type": "array"\
          },\
          "nextPageToken": {\
            "description": "Pass back to fetch the next page; empty when no more entries.",\
            "type": "string"\
          }\
        },\
        "required": [\
1 unmodified line\
\
        ],\
        "type": "object"\
      },\
      "ListClustersOutputBody": {\
        "additionalProperties": true,\
        "properties": {\
          "$schema": {\
            "description": "A URL to the JSON Schema for this object.",\
            "examples": [\
              "/api/v1/schemas/ListClustersOutputBody.json"\
            ],\
            "format": "uri",\
            "readOnly": true,\
            "type": "string"\
          },\
          "clusters": {\
            "items": {\
              "$ref": "#/components/schemas/Cluster"\
            },\
            "type": "array"\
          }\
        },\
        "required": [\
          "clusters"\
        ],\
        "type": "object"\
      },\
      "ListMirrorCollaboratorsOutputBody": {\
        "additionalProperties": true,\
        "properties": {\
35 unmodified lines\
\
              "$ref": "#/components/schemas/Mirror"\
            },\
            "type": "array"\
          },\
          "nextPageToken": {\
            "description": "Pass back to fetch the next page; empty when no more entries.",\
            "type": "string"\
          }\
        },\
        "required": [\
13 unmodified lines\
\
            "readOnly": true,\
            "type": "string"\
          },\
          "nextPageToken": {\
            "description": "Pass back to fetch the next page; empty when no more entries.",\
            "type": "string"\
          },\
          "providers": {\
            "items": {\
              "$ref": "#/components/schemas/OIDCProvider"\
23 unmodified lines\
\
              "$ref": "#/components/schemas/Membership"\
            },\
            "type": "array"\
          },\
          "nextPageToken": {\
            "description": "Pass back to fetch the next page; empty when no more entries.",\
            "type": "string"\
          }\
        },\
        "required": [\
13 unmodified lines\
\
            "readOnly": true,\
            "type": "string"\
          },\
          "nextPageToken": {\
            "description": "Pass back to fetch the next page; empty when no more entries.",\
            "type": "string"\
          },\
          "project": {\
            "$ref": "#/components/schemas/Project"\
          },\
          "projects": {\
            "items": {\
              "$ref": "#/components/schemas/Project"\
1 unmodified line\
\
            "type": "array"\
          }\
        },\
        "required": [\
          "projects"\
        ],\
        "type": "object"\
      },\
      "ListOrgsOutputBody": {\
8 unmodified lines\
\
            "readOnly": true,\
            "type": "string"\
          },\
          "nextPageToken": {\
            "description": "Pass back to fetch the next page; empty when no more entries.",\
            "type": "string"\
          },\
          "org": {\
            "$ref": "#/components/schemas/Org"\
          },\
          "orgs": {\
            "items": {\
              "$ref": "#/components/schemas/Org"\
1 unmodified line\
\
            "type": "array"\
          }\
        },\
        "required": [\
          "orgs"\
        ],\
        "type": "object"\
      },\
      "ListProjectMembersOutputBody": {\
13 unmodified lines\
\
              "$ref": "#/components/schemas/ProjectGrant"\
            },\
            "type": "array"\
          },\
          "nextPageToken": {\
            "description": "Pass back to fetch the next page; empty when no more entries.",\
            "type": "string"\
          }\
        },\
        "required": [\
13 unmodified lines\
\
            "readOnly": true,\
            "type": "string"\
          },\
          "nextPageToken": {\
            "description": "Pass back to fetch the next page; empty when no more entries.",\
            "type": "string"\
          },\
          "repo": {\
            "$ref": "#/components/schemas/Repo"\
          },\
          "repos": {\
            "items": {\
              "$ref": "#/components/schemas/Repo"\
1 unmodified line\
\
            "type": "array"\
          }\
        },\
        "required": [\
          "repos"\
        ],\
        "type": "object"\
      },\
      "ListProjectsOutputBody": {\
8 unmodified lines\
\
            "readOnly": true,\
            "type": "string"\
          },\
          "nextPageToken": {\
            "description": "Pass back to fetch the next page; empty when no more entries.",\
            "type": "string"\
          },\
          "project": {\
            "$ref": "#/components/schemas/Project"\
          },\
6 unmodified lines\
\
        },\
        "type": "object"\
      },\
      "ListRepoGrantsOutputBody": {\
        "additionalProperties": true,\
        "properties": {\
          "$schema": {\
            "description": "A URL to the JSON Schema for this object.",\
            "examples": [\
              "/api/v1/schemas/ListRepoGrantsOutputBody.json"\
            ],\
            "format": "uri",\
            "readOnly": true,\
            "type": "string"\
          },\
          "grants": {\
            "items": {\
              "$ref": "#/components/schemas/RepoGrant"\
            },\
            "type": "array"\
          },\
          "nextPageToken": {\
            "description": "Pass back to fetch the next page; empty when no more entries.",\
            "type": "string"\
          }\
        },\
        "required": [\
          "grants"\
        ],\
        "type": "object"\
      },\
      "ListServiceAccountGrantsOutputBody": {\
        "additionalProperties": true,\
        "properties": {\
11 unmodified lines\
\
              "$ref": "#/components/schemas/ServiceAccountGrant"\
            },\
            "type": "array"\
          },\
          "nextPageToken": {\
            "description": "Pass back to fetch the next page; empty when no more entries.",\
            "type": "string"\
          }\
        },\
        "required": [\
13 unmodified lines\
\
            "readOnly": true,\
            "type": "string"\
          },\
          "nextPageToken": {\
            "description": "Pass back to fetch the next page; empty when no more entries.",\
            "type": "string"\
          },\
          "serviceAccounts": {\
            "items": {\
              "$ref": "#/components/schemas/ServiceAccountWithGrants"\
72 unmodified lines\
\
            "readOnly": true,\
            "type": "string"\
          },\
          "nextPageToken": {\
            "description": "Pass back to fetch the next page; empty when no more entries.",\
            "type": "string"\
          },\
          "permission": {\
            "type": "string"\
          },\
65 unmodified lines\
\
      "MeIdentityHandle": {\
        "additionalProperties": true,\
        "properties": {\
          "email": {\
            "description": "The provider's publicly-visible profile email (from the provider at login; may be empty). NOT the account's contact email.",\
            "type": "string"\
          },\
          "handle": {\
            "type": "string"\
          },\
120 unmodified lines\
\
            "readOnly": true,\
            "type": "string"\
          },\
          "cell": {\
            "description": "Physical cell the mirror's cluster runs in, e.g. aws-us-east-2.",\
            "type": "string"\
          },\
          "clusterHost": {\
            "description": "Public host of the cluster serving this mirror.",\
            "type": "string"\
254 unmodified lines\
\
        ],\
        "type": "object"\
      },\
      "RepoGrant": {\
        "additionalProperties": true,\
        "properties": {\
          "granteeId": {\
            "type": "string"\
          },\
          "granteeType": {\
            "type": "string"\
          },\
          "role": {\
            "type": "string"\
          }\
        },\
        "required": [\
          "granteeType",\
          "granteeId",\
          "role"\
        ],\
        "type": "object"\
      },\
      "ResolvedIdentity": {\
        "additionalProperties": true,\
        "properties": {\
150 unmodified lines\
\
          "createdAt"\
        ],\
        "type": "object"\
      },\
      "UpdateMeInputBody": {\
        "additionalProperties": true,\
        "properties": {\
          "$schema": {\
            "description": "A URL to the JSON Schema for this object.",\
            "examples": [\
              "/api/v1/schemas/UpdateMeInputBody.json"\
            ],\
            "format": "uri",\
            "readOnly": true,\
            "type": "string"\
          },\
          "email": {\
            "description": "Contact email.",\
            "format": "email",\
            "maxLength": 254,\
            "minLength": 5,\
            "type": "string"\
          }\
        },\
        "required": [\
          "email"\
        ],\
        "type": "object"\
      },\
      "UpdateMeOutputBody": {\
        "additionalProperties": true,\
        "properties": {\
          "$schema": {\
            "description": "A URL to the JSON Schema for this object.",\
            "examples": [\
              "/api/v1/schemas/UpdateMeOutputBody.json"\
            ],\
            "format": "uri",\
            "readOnly": true,\
            "type": "string"\
          },\
          "email": {\
            "type": "string"\
          }\
        },\
        "required": [\
          "email"\
        ],\
        "type": "object"\
      }\
    },\
    "securitySchemes": {\
22 unmodified lines\
\
      "get": {\
        "operationId": "lookupResources",\
        "parameters": [\
          {\
            "description": "Maximum entries to return; server may cap further.",\
            "explode": false,\
            "in": "query",\
            "name": "pageSize",\
            "schema": {\
              "description": "Maximum entries to return; server may cap further.",\
              "format": "int32",\
              "maximum": 500,\
              "minimum": 0,\
              "type": "integer"\
            }\
          },\
          {\
            "description": "Opaque cursor from a previous response's nextPageToken.",\
            "explode": false,\
            "in": "query",\
            "name": "pageToken",\
            "schema": {\
              "description": "Opaque cursor from a previous response's nextPageToken.",\
              "type": "string"\
            }\
          },\
          {\
            "description": "SpiceDB resource type (e.g. \"repo\", \"project\", \"org\").",\
            "in": "path",\
6 unmodified lines\
\
            }\
          },\
          {\
            "description": "Optional: only list resources where the caller has this permission.",\
            "description": "Optional: only list resources where the caller has this permission. pageSize/pageToken apply only when set.",\
            "explode": false,\
            "in": "query",\
            "name": "permission",\
            "schema": {\
              "description": "Optional: only list resources where the caller has this permission.",\
              "description": "Optional: only list resources where the caller has this permission. pageSize/pageToken apply only when set.",\
              "type": "string"\
            }\
          }\
106 unmodified lines\
\
    "/audit": {\
      "get": {\
        "operationId": "listAuditEvents",\
        "parameters": [\
          {\
            "description": "Maximum entries to return; server may cap further.",\
            "explode": false,\
            "in": "query",\
            "name": "pageSize",\
            "schema": {\
              "description": "Maximum entries to return; server may cap further.",\
              "format": "int32",\
              "maximum": 500,\
              "minimum": 0,\
              "type": "integer"\
            }\
          },\
          {\
            "description": "Opaque cursor from a previous response's nextPageToken.",\
            "explode": false,\
            "in": "query",\
            "name": "pageToken",\
            "schema": {\
              "description": "Opaque cursor from a previous response's nextPageToken.",\
              "type": "string"\
            }\
          }\
        ],\
        "responses": {\
          "200": {\
            "content": {\
30 unmodified lines\
\
        ]\
      }\
    },\
    "/clusters": {\
      "get": {\
        "operationId": "listClusters",\
        "responses": {\
          "200": {\
            "content": {\
              "application/json": {\
                "schema": {\
                  "$ref": "#/components/schemas/ListClustersOutputBody"\
                }\
              }\
            },\
            "description": "OK"\
          },\
          "default": {\
            "content": {\
              "application/problem+json": {\
                "schema": {\
                  "$ref": "#/components/schemas/ErrorModel"\
                }\
              }\
            },\
            "description": "Error"\
          }\
        },\
        "security": [\
          {\
            "bearerAuth": []\
          },\
          {\
            "sessionAuth": []\
          }\
        ],\
        "summary": "List data-plane clusters attached to this control plane",\
        "tags": [\
          "clusters"\
        ]\
      }\
    },\
    "/identity/handles/{provider}/{handle}": {\
      "get": {\
        "operationId": "resolveHandle",\
143 unmodified lines\
\
        "tags": [\
          "identity"\
        ]\
      },\
      "patch": {\
        "operationId": "updateMe",\
        "requestBody": {\
          "content": {\
            "application/json": {\
              "schema": {\
                "$ref": "#/components/schemas/UpdateMeInputBody"\
              }\
            }\
          },\
          "required": true\
        },\
        "responses": {\
          "200": {\
            "content": {\
              "application/json": {\
                "schema": {\
                  "$ref": "#/components/schemas/UpdateMeOutputBody"\
                }\
              }\
            },\
            "description": "OK"\
          },\
          "default": {\
            "content": {\
              "application/problem+json": {\
                "schema": {\
                  "$ref": "#/components/schemas/ErrorModel"\
                }\
              }\
            },\
            "description": "Error"\
          }\
        },\
        "security": [\
          {\
            "bearerAuth": []\
          },\
          {\
            "sessionAuth": []\
          }\
        ],\
        "summary": "Update the calling account's contact email",\
        "tags": [\
          "identity"\
        ]\
      }\
    },\
    "/mirrors": {\
76 unmodified lines\
\
      "get": {\
        "operationId": "listMirrors",\
        "parameters": [\
          {\
            "description": "Maximum entries to return; server may cap further.",\
            "explode": false,\
            "in": "query",\
            "name": "pageSize",\
            "schema": {\
              "description": "Maximum entries to return; server may cap further.",\
              "format": "int32",\
              "maximum": 500,\
              "minimum": 0,\
              "type": "integer"\
            }\
          },\
          {\
            "description": "Opaque cursor from a previous response's nextPageToken.",\
            "explode": false,\
            "in": "query",\
            "name": "pageToken",\
            "schema": {\
              "description": "Opaque cursor from a previous response's nextPageToken.",\
              "type": "string"\
            }\
          },\
          {\
            "description": "Optional: restrict to mirrors on this cluster (public host, e.g. royalcanin.partial.to).",\
            "explode": false,\
432 unmodified lines\
\
    "/oidc-providers": {\
      "get": {\
        "operationId": "listOIDCProviders",\
        "parameters": [\
          {\
            "description": "Maximum entries to return; server may cap further.",\
            "explode": false,\
            "in": "query",\
            "name": "pageSize",\
            "schema": {\
              "description": "Maximum entries to return; server may cap further.",\
              "format": "int32",\
              "maximum": 500,\
              "minimum": 0,\
              "type": "integer"\
            }\
          },\
          {\
            "description": "Opaque cursor from a previous response's nextPageToken.",\
            "explode": false,\
            "in": "query",\
            "name": "pageToken",\
            "schema": {\
              "description": "Opaque cursor from a previous response's nextPageToken.",\
              "type": "string"\
            }\
          }\
        ],\
        "responses": {\
          "200": {\
            "content": {\
33 unmodified lines\
\
    "/orgs": {\
      "get": {\
        "operationId": "listOrgs",\
        "parameters": [\
          {\
            "description": "Maximum entries to return; server may cap further.",\
            "explode": false,\
            "in": "query",\
            "name": "pageSize",\
            "schema": {\
              "description": "Maximum entries to return; server may cap further.",\
              "format": "int32",\
              "maximum": 500,\
              "minimum": 0,\
              "type": "integer"\
            }\
          },\
          {\
            "description": "Opaque cursor from a previous response's nextPageToken.",\
            "explode": false,\
            "in": "query",\
            "name": "pageToken",\
            "schema": {\
              "description": "Opaque cursor from a previous response's nextPageToken.",\
              "type": "string"\
            }\
          },\
          {\
            "description": "Optional: exact-match org name.",\
            "explode": false,\
            "in": "query",\
            "name": "name",\
            "schema": {\
              "description": "Optional: exact-match org name.",\
              "type": "string"\
            }\
          }\
        ],\
        "responses": {\
          "200": {\
            "content": {\
24 unmodified lines\
\
            "sessionAuth": []\
          }\
        ],\
        "summary": "List organizations the caller can see",\
        "summary": "List organizations the caller can see (or one by name)",\
        "tags": [\
          "orgs"\
        ]\
46 unmodified lines\
\
        ]\
      }\
    },\
    "/orgs/{orgId}": {\
      "delete": {\
        "operationId": "deleteOrg",\
        "parameters": [\
          {\
            "in": "path",\
            "name": "orgId",\
            "required": true,\
            "schema": {\
              "pattern": "^[0-9A-HJKMNP-TV-Z]{26}$",\
              "type": "string"\
            }\
          }\
        ],\
        "responses": {\
          "204": {\
            "description": "No Content"\
          },\
          "default": {\
            "content": {\
              "application/problem+json": {\
                "schema": {\
                  "$ref": "#/components/schemas/ErrorModel"\
                }\
              }\
            },\
            "description": "Error"\
          }\
        },\
        "security": [\
          {\
            "bearerAuth": []\
          },\
          {\
            "sessionAuth": []\
          }\
        ],\
        "summary": "Delete an organization",\
        "tags": [\
          "orgs"\
        ]\
      },\
      "get": {\
        "operationId": "getOrg",\
        "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/Org"\
                }\
              }\
            },\
            "description": "OK"\
          },\
          "default": {\
            "content": {\
              "application/problem+json": {\
                "schema": {\
                  "$ref": "#/components/schemas/ErrorModel"\
                }\
              }\
            },\
            "description": "Error"\
          }\
        },\
        "security": [\
          {\
            "bearerAuth": []\
          },\
          {\
            "sessionAuth": []\
          }\
        ],\
        "summary": "Get an organization",\
        "tags": [\
          "orgs"\
        ]\
      }\
    },\
    "/orgs/{orgId}/members": {\
      "get": {\
        "operationId": "listOrgMembers",\
        "parameters": [\
          {\
            "description": "Maximum entries to return; server may cap further.",\
            "explode": false,\
            "in": "query",\
            "name": "pageSize",\
            "schema": {\
              "description": "Maximum entries to return; server may cap further.",\
              "format": "int32",\
              "maximum": 500,\
              "minimum": 0,\
              "type": "integer"\
            }\
          },\
          {\
            "description": "Opaque cursor from a previous response's nextPageToken.",\
            "explode": false,\
            "in": "query",\
            "name": "pageToken",\
            "schema": {\
              "description": "Opaque cursor from a previous response's nextPageToken.",\
              "type": "string"\
            }\
          },\
          {\
            "in": "path",\
            "name": "orgId",\
163 unmodified lines\
\
      "get": {\
        "operationId": "listOrgProjects",\
        "parameters": [\
          {\
            "description": "Maximum entries to return; server may cap further.",\
            "explode": false,\
            "in": "query",\
            "name": "pageSize",\
            "schema": {\
              "description": "Maximum entries to return; server may cap further.",\
              "format": "int32",\
              "maximum": 500,\
              "minimum": 0,\
              "type": "integer"\
            }\
          },\
          {\
            "description": "Opaque cursor from a previous response's nextPageToken.",\
            "explode": false,\
            "in": "query",\
            "name": "pageToken",\
            "schema": {\
              "description": "Opaque cursor from a previous response's nextPageToken.",\
              "type": "string"\
            }\
          },\
          {\
            "in": "path",\
            "name": "orgId",\
2 unmodified lines\
\
              "pattern": "^[0-9A-HJKMNP-TV-Z]{26}$",\
              "type": "string"\
            }\
          },\
          {\
            "description": "Optional: exact-match project name (case-insensitive).",\
            "explode": false,\
            "in": "query",\
            "name": "name",\
            "schema": {\
              "description": "Optional: exact-match project name (case-insensitive).",\
              "type": "string"\
            }\
          }\
        ],\
        "responses": {\
36 unmodified lines\
\
      "get": {\
        "operationId": "listProjects",\
        "parameters": [\
          {\
            "description": "Maximum entries to return; server may cap further.",\
            "explode": false,\
            "in": "query",\
            "name": "pageSize",\
            "schema": {\
              "description": "Maximum entries to return; server may cap further.",\
              "format": "int32",\
              "maximum": 500,\
              "minimum": 0,\
              "type": "integer"\
            }\
          },\
          {\
            "description": "Opaque cursor from a previous response's nextPageToken.",\
            "explode": false,\
            "in": "query",\
            "name": "pageToken",\
            "schema": {\
              "description": "Opaque cursor from a previous response's nextPageToken.",\
              "type": "string"\
            }\
          },\
          {\
            "description": "Optional: exact-match project name.",\
            "explode": false,\
88 unmodified lines\
\
        ]\
      }\
    },\
    "/projects/{projectId}": {\
      "delete": {\
        "operationId": "deleteProject",\
        "parameters": [\
          {\
            "in": "path",\
            "name": "projectId",\
            "required": true,\
            "schema": {\
              "pattern": "^[0-9A-HJKMNP-TV-Z]{26}$",\
              "type": "string"\
            }\
          }\
        ],\
        "responses": {\
          "204": {\
            "description": "No Content"\
          },\
          "default": {\
            "content": {\
              "application/problem+json": {\
                "schema": {\
                  "$ref": "#/components/schemas/ErrorModel"\
                }\
              }\
            },\
            "description": "Error"\
          }\
        },\
        "security": [\
          {\
            "bearerAuth": []\
          },\
          {\
            "sessionAuth": []\
          }\
        ],\
        "summary": "Delete a project",\
        "tags": [\
          "projects"\
        ]\
      },\
      "get": {\
        "operationId": "getProject",\
        "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/Project"\
                }\
              }\
            },\
            "description": "OK"\
          },\
          "default": {\
            "content": {\
              "application/problem+json": {\
                "schema": {\
                  "$ref": "#/components/schemas/ErrorModel"\
                }\
              }\
            },\
            "description": "Error"\
          }\
        },\
        "security": [\
          {\
            "bearerAuth": []\
          },\
          {\
            "sessionAuth": []\
          }\
        ],\
        "summary": "Get a project by id",\
        "tags": [\
          "projects"\
        ]\
      }\
    },\
    "/projects/{projectId}/grants": {\
      "post": {\
        "operationId": "grantProjectAccess",\
180 unmodified lines\
\
      "get": {\
        "operationId": "listProjectMembers",\
        "parameters": [\
          {\
            "description": "Maximum entries to return; server may cap further.",\
            "explode": false,\
            "in": "query",\
            "name": "pageSize",\
            "schema": {\
              "description": "Maximum entries to return; server may cap further.",\
              "format": "int32",\
              "maximum": 500,\
              "minimum": 0,\
              "type": "integer"\
            }\
          },\
          {\
            "description": "Opaque cursor from a previous response's nextPageToken.",\
            "explode": false,\
            "in": "query",\
            "name": "pageToken",\
            "schema": {\
              "description": "Opaque cursor from a previous response's nextPageToken.",\
              "type": "string"\
            }\
          },\
          {\
            "in": "path",\
            "name": "projectId",\
44 unmodified lines\
\
      "get": {\
        "operationId": "listProjectRepos",\
        "parameters": [\
          {\
            "description": "Maximum entries to return; server may cap further.",\
            "explode": false,\
            "in": "query",\
            "name": "pageSize",\
            "schema": {\
              "description": "Maximum entries to return; server may cap further.",\
              "format": "int32",\
              "maximum": 500,\
              "minimum": 0,\
              "type": "integer"\
            }\
          },\
          {\
            "description": "Opaque cursor from a previous response's nextPageToken.",\
            "explode": false,\
            "in": "query",\
            "name": "pageToken",\
            "schema": {\
              "description": "Opaque cursor from a previous response's nextPageToken.",\
              "type": "string"\
            }\
          },\
          {\
            "in": "path",\
            "name": "projectId",\
2 unmodified lines\
\
              "pattern": "^[0-9A-HJKMNP-TV-Z]{26}$",\
              "type": "string"\
            }\
          },\
          {\
            "description": "Optional: exact-match repo name.",\
            "explode": false,\
            "in": "query",\
            "name": "name",\
            "schema": {\
              "description": "Optional: exact-match repo name.",\
              "type": "string"\
            }\
          }\
        ],\
        "responses": {\
26 unmodified lines\
\
            "sessionAuth": []\
          }\
        ],\
        "summary": "List repositories in a project",\
        "summary": "List repositories in a project (or one by name)",\
        "tags": [\
          "repos"\
        ]\
140 unmodified lines\
\
      }\
    },\
    "/repos/{repoId}/grants": {\
      "get": {\
        "operationId": "listRepoGrants",\
        "parameters": [\
          {\
            "description": "Maximum entries to return; server may cap further.",\
            "explode": false,\
            "in": "query",\
            "name": "pageSize",\
            "schema": {\
              "description": "Maximum entries to return; server may cap further.",\
              "format": "int32",\
              "maximum": 500,\
              "minimum": 0,\
              "type": "integer"\
            }\
          },\
          {\
            "description": "Opaque cursor from a previous response's nextPageToken.",\
            "explode": false,\
            "in": "query",\
            "name": "pageToken",\
            "schema": {\
              "description": "Opaque cursor from a previous response's nextPageToken.",\
              "type": "string"\
            }\
          },\
          {\
            "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/ListRepoGrantsOutputBody"\
                }\
              }\
            },\
            "description": "OK"\
          },\
          "default": {\
            "content": {\
              "application/problem+json": {\
                "schema": {\
                  "$ref": "#/components/schemas/ErrorModel"\
                }\
              }\
            },\
            "description": "Error"\
          }\
        },\
        "security": [\
          {\
            "bearerAuth": []\
          },\
          {\
            "sessionAuth": []\
          }\
        ],\
        "summary": "List repo grants",\
        "tags": [\
          "repos"\
        ]\
      },\
      "post": {\
        "operationId": "grantRepoAccess",\
        "parameters": [\
53 unmodified lines\
\
        ]\
      }\
    },\
    "/repos/{repoId}/grants/account/{provider}/{providerUserId}": {\
      "delete": {\
        "operationId": "revokeRepoAccessByProvider",\
        "parameters": [\
          {\
            "in": "path",\
            "name": "repoId",\
            "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"\
          },\
          "default": {\
            "content": {\
              "application/problem+json": {\
                "schema": {\
                  "$ref": "#/components/schemas/ErrorModel"\
                }\
              }\
            },\
            "description": "Error"\
          }\
        },\
        "security": [\
          {\
            "bearerAuth": []\
          },\
          {\
            "sessionAuth": []\
          }\
        ],\
        "summary": "Revoke repo access by provider identity",\
        "tags": [\
          "repos"\
        ]\
      }\
    },\
    "/repos/{repoId}/grants/{granteeType}/{granteeId}": {\
      "delete": {\
        "operationId": "revokeRepoAccess",\
        "parameters": [\
          {\
            "in": "path",\
            "name": "repoId",\
            "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"\
          },\
          "default": {\
            "content": {\
              "application/problem+json": {\
                "schema": {\
                  "$ref": "#/components/schemas/ErrorModel"\
                }\
              }\
            },\
            "description": "Error"\
          }\
        },\
        "security": [\
          {\
            "bearerAuth": []\
          },\
          {\
            "sessionAuth": []\
          }\
        ],\
        "summary": "Revoke repo access by grantee id",\
        "tags": [\
          "repos"\
        ]\
      }\
    },\
    "/service-accounts": {\
      "get": {\
        "operationId": "listServiceAccounts",\
        "parameters": [\
          {\
            "description": "Maximum entries to return; server may cap further.",\
            "explode": false,\
            "in": "query",\
            "name": "pageSize",\
            "schema": {\
              "description": "Maximum entries to return; server may cap further.",\
              "format": "int32",\
              "maximum": 500,\
              "minimum": 0,\
              "type": "integer"\
            }\
          },\
          {\
            "description": "Opaque cursor from a previous response's nextPageToken.",\
            "explode": false,\
            "in": "query",\
            "name": "pageToken",\
            "schema": {\
              "description": "Opaque cursor from a previous response's nextPageToken.",\
              "type": "string"\
            }\
          },\
          {\
            "explode": false,\
            "in": "query",\
183 unmodified lines\
\
      "get": {\
        "operationId": "listBindings",\
        "parameters": [\
          {\
            "description": "Maximum entries to return; server may cap further.",\
            "explode": false,\
            "in": "query",\
            "name": "pageSize",\
            "schema": {\
              "description": "Maximum entries to return; server may cap further.",\
              "format": "int32",\
              "maximum": 500,\
              "minimum": 0,\
              "type": "integer"\
            }\
          },\
          {\
            "description": "Opaque cursor from a previous response's nextPageToken.",\
            "explode": false,\
            "in": "query",\
            "name": "pageToken",\
            "schema": {\
              "description": "Opaque cursor from a previous response's nextPageToken.",\
              "type": "string"\
            }\
          },\
          {\
            "in": "path",\
            "name": "accountId",\
154 unmodified lines\
\
      "get": {\
        "operationId": "listServiceAccountGrants",\
        "parameters": [\
          {\
            "description": "Maximum entries to return; server may cap further.",\
            "explode": false,\
            "in": "query",\
            "name": "pageSize",\
            "schema": {\
              "description": "Maximum entries to return; server may cap further.",\
              "format": "int32",\
              "maximum": 500,\
              "minimum": 0,\
              "type": "integer"\
            }\
          },\
          {\
            "description": "Opaque cursor from a previous response's nextPageToken.",\
            "explode": false,\
            "in": "query",\
            "name": "pageToken",\
            "schema": {\
              "description": "Opaque cursor from a previous response's nextPageToken.",\
              "type": "string"\
            }\
          },\
          {\
            "in": "path",\
            "name": "accountId",\
```\
\
Minternal/coreapi/spec/core.gen.json+1028/-22\
\
```\
1\
\
1\
\
{"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"},"AvailableMirror":{"additionalProperties":true,"properties":{"access":{"description":"Caller's effective GitHub access: read, write, or admin.","enum":["read","write","admin"],"type":"string"},"isArchived":{"type":"boolean"},"isPrivate":{"type":"boolean"},"owner":{"type":"string"},"repo":{"type":"string"},"status":{"description":"available (can onboard), mirrored (already mirrored), or owner-only (personal repo of another user).","enum":["available","mirrored","owner-only"],"type":"string"}},"required":["owner","repo","access","status"],"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"},"GetVersionOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/GetVersionOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"mode":{"description":"Server mode.","enum":["standalone","global","regional"],"type":"string"},"version":{"description":"Git commit SHA of the running entire-core binary, or \"dev\" for an untagged local build.","type":"string"}},"required":["version"],"type":"object"},"GrantMirrorCollaboratorInputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/GrantMirrorCollaboratorInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"clusterHost":{"description":"Public host of the cluster serving the mirror.","minLength":1,"type":"string"},"handle":{"description":"Qualified grantee handle, e.g. github:alice.","minLength":1,"type":"string"},"owner":{"minLength":1,"type":"string"},"provider":{"enum":["github"],"type":"string"},"repo":{"minLength":1,"type":"string"},"role":{"description":"Grant level: reader (pull) or writer (pull+push).","enum":["reader","writer"],"type":"string"}},"required":["provider","owner","repo","clusterHost","handle","role"],"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"},"GrantedMirrorCollaborator":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/GrantedMirrorCollaborator.json"],"format":"uri","readOnly":true,"type":"string"},"accountId":{"description":"Entire account the grant was written for.","type":"string"},"role":{"type":"string"}},"required":["accountId","role"],"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"},"ListAvailableMirrorsOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListAvailableMirrorsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"available":{"items":{"$ref":"#/components/schemas/AvailableMirror"},"type":"array"}},"required":["available"],"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"},"ListMirrorCollaboratorsOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListMirrorCollaboratorsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"collaborators":{"items":{"$ref":"#/components/schemas/MirrorCollaborator"},"type":"array"}},"required":["collaborators"],"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"},"MirrorCollaborator":{"additionalProperties":true,"properties":{"accountId":{"type":"string"},"handle":{"description":"Primary handle (provider:label), empty if none resolves.","type":"string"},"role":{"description":"reader (pull) or writer (pull+push).","type":"string"}},"required":["accountId","role"],"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"},"mirrorSuspended":{"type":"boolean"},"mirrorSuspendedAt":{"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/available":{"get":{"operationId":"listAvailableMirrors","parameters":[{"description":"Optional: restrict to repos with this owner login.","explode":false,"in":"query","name":"owner","schema":{"description":"Optional: restrict to repos with this owner login.","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAvailableMirrorsOutputBody"}}},"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"},"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":"List GitHub repos the caller could onboard as mirrors","tags":["mirrors"]}},"/mirrors/collaborators":{"delete":{"operationId":"revokeMirrorCollaborator","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"}},{"description":"Qualified grantee handle, e.g. github:alice.","explode":false,"in":"query","name":"handle","required":true,"schema":{"description":"Qualified grantee handle, e.g. github:alice.","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":"Revoke a user's access to a mirror (live GitHub-admin gated)","tags":["mirrors"]},"get":{"operationId":"listMirrorCollaborators","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":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMirrorCollaboratorsOutputBody"}}},"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"},"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":"List the principals with access to a mirror (live GitHub-admin gated)","tags":["mirrors"]},"post":{"operationId":"grantMirrorCollaborator","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantMirrorCollaboratorInputBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantedMirrorCollaborator"}}},"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"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Conflict"},"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":"Grant a user reader/writer access to a mirror (live GitHub-admin gated)","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"},"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 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"]}},"/version":{"get":{"operationId":"getVersion","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetVersionOutputBody"}}},"description":"OK"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"summary":"Get the server version and mode","tags":["meta"]}}},"servers":[{"url":"/api/v1"}]}\
No newline at end of file\
{"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"},"AvailableMirror":{"additionalProperties":true,"properties":{"access":{"description":"Caller's effective GitHub access: read, write, or admin.","enum":["read","write","admin"],"type":"string"},"isArchived":{"type":"boolean"},"isPrivate":{"type":"boolean"},"owner":{"type":"string"},"repo":{"type":"string"},"status":{"description":"available (can onboard), mirrored (already mirrored), or owner-only (personal repo of another user).","enum":["available","mirrored","owner-only"],"type":"string"}},"required":["owner","repo","access","status"],"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"},"Cluster":{"additionalProperties":true,"properties":{"isDefault":{"type":"boolean"},"jurisdiction":{"type":"string"},"publicUrl":{"type":"string"},"slug":{"type":"string"}},"required":["slug","jurisdiction","publicUrl","isDefault"],"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"},"GetVersionOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/GetVersionOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"mode":{"description":"Server mode.","enum":["standalone","global","regional"],"type":"string"},"version":{"description":"Git commit SHA of the running entire-core binary, or \"dev\" for an untagged local build.","type":"string"}},"required":["version"],"type":"object"},"GrantMirrorCollaboratorInputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/GrantMirrorCollaboratorInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"clusterHost":{"description":"Public host of the cluster serving the mirror.","minLength":1,"type":"string"},"handle":{"description":"Qualified grantee handle, e.g. github:alice.","minLength":1,"type":"string"},"owner":{"minLength":1,"type":"string"},"provider":{"enum":["github"],"type":"string"},"repo":{"minLength":1,"type":"string"},"role":{"description":"Grant level: reader (pull) or writer (pull+push).","enum":["reader","writer"],"type":"string"}},"required":["provider","owner","repo","clusterHost","handle","role"],"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"],"type":"string"},"provider":{"minLength":1,"type":"string"},"providerUserId":{"minLength":1,"type":"string"},"role":{"enum":["reader","writer","admin"],"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"],"type":"string"},"provider":{"minLength":1,"type":"string"},"providerUserId":{"minLength":1,"type":"string"},"role":{"enum":["reader","writer","admin"],"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":{"enum":["reader","writer","admin"],"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"},"GrantedMirrorCollaborator":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/GrantedMirrorCollaborator.json"],"format":"uri","readOnly":true,"type":"string"},"accountId":{"description":"Entire account the grant was written for.","type":"string"},"role":{"type":"string"}},"required":["accountId","role"],"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"},"nextPageToken":{"description":"Pass back to fetch the next page; empty when no more entries.","type":"string"}},"required":["events"],"type":"object"},"ListAvailableMirrorsOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListAvailableMirrorsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"available":{"items":{"$ref":"#/components/schemas/AvailableMirror"},"type":"array"}},"required":["available"],"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"},"nextPageToken":{"description":"Pass back to fetch the next page; empty when no more entries.","type":"string"}},"required":["bindings"],"type":"object"},"ListClustersOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListClustersOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"clusters":{"items":{"$ref":"#/components/schemas/Cluster"},"type":"array"}},"required":["clusters"],"type":"object"},"ListMirrorCollaboratorsOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListMirrorCollaboratorsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"collaborators":{"items":{"$ref":"#/components/schemas/MirrorCollaborator"},"type":"array"}},"required":["collaborators"],"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"},"nextPageToken":{"description":"Pass back to fetch the next page; empty when no more entries.","type":"string"}},"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"},"nextPageToken":{"description":"Pass back to fetch the next page; empty when no more entries.","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"},"nextPageToken":{"description":"Pass back to fetch the next page; empty when no more entries.","type":"string"}},"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"},"nextPageToken":{"description":"Pass back to fetch the next page; empty when no more entries.","type":"string"},"project":{"$ref":"#/components/schemas/Project"},"projects":{"items":{"$ref":"#/components/schemas/Project"},"type":"array"}},"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"},"nextPageToken":{"description":"Pass back to fetch the next page; empty when no more entries.","type":"string"},"org":{"$ref":"#/components/schemas/Org"},"orgs":{"items":{"$ref":"#/components/schemas/Org"},"type":"array"}},"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"},"nextPageToken":{"description":"Pass back to fetch the next page; empty when no more entries.","type":"string"}},"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"},"nextPageToken":{"description":"Pass back to fetch the next page; empty when no more entries.","type":"string"},"repo":{"$ref":"#/components/schemas/Repo"},"repos":{"items":{"$ref":"#/components/schemas/Repo"},"type":"array"}},"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"},"nextPageToken":{"description":"Pass back to fetch the next page; empty when no more entries.","type":"string"},"project":{"$ref":"#/components/schemas/Project"},"projects":{"items":{"$ref":"#/components/schemas/Project"},"type":"array"}},"type":"object"},"ListRepoGrantsOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/ListRepoGrantsOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"grants":{"items":{"$ref":"#/components/schemas/RepoGrant"},"type":"array"},"nextPageToken":{"description":"Pass back to fetch the next page; empty when no more entries.","type":"string"}},"required":["grants"],"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"},"nextPageToken":{"description":"Pass back to fetch the next page; empty when no more entries.","type":"string"}},"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"},"nextPageToken":{"description":"Pass back to fetch the next page; empty when no more entries.","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"},"nextPageToken":{"description":"Pass back to fetch the next page; empty when no more entries.","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":{"email":{"description":"The provider's publicly-visible profile email (from the provider at login; may be empty). NOT the account's contact email.","type":"string"},"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"},"cell":{"description":"Physical cell the mirror's cluster runs in, e.g. aws-us-east-2.","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"},"MirrorCollaborator":{"additionalProperties":true,"properties":{"accountId":{"type":"string"},"handle":{"description":"Primary handle (provider:label), empty if none resolves.","type":"string"},"role":{"description":"reader (pull) or writer (pull+push).","type":"string"}},"required":["accountId","role"],"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"},"mirrorSuspended":{"type":"boolean"},"mirrorSuspendedAt":{"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"},"RepoGrant":{"additionalProperties":true,"properties":{"granteeId":{"type":"string"},"granteeType":{"type":"string"},"role":{"type":"string"}},"required":["granteeType","granteeId","role"],"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"},"UpdateMeInputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/UpdateMeInputBody.json"],"format":"uri","readOnly":true,"type":"string"},"email":{"description":"Contact email.","format":"email","maxLength":254,"minLength":5,"type":"string"}},"required":["email"],"type":"object"},"UpdateMeOutputBody":{"additionalProperties":true,"properties":{"$schema":{"description":"A URL to the JSON Schema for this object.","examples":["/api/v1/schemas/UpdateMeOutputBody.json"],"format":"uri","readOnly":true,"type":"string"},"email":{"type":"string"}},"required":["email"],"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":"Maximum entries to return; server may cap further.","explode":false,"in":"query","name":"pageSize","schema":{"description":"Maximum entries to return; server may cap further.","format":"int32","maximum":500,"minimum":0,"type":"integer"}},{"description":"Opaque cursor from a previous response's nextPageToken.","explode":false,"in":"query","name":"pageToken","schema":{"description":"Opaque cursor from a previous response's nextPageToken.","type":"string"}},{"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. pageSize/pageToken apply only when set.","explode":false,"in":"query","name":"permission","schema":{"description":"Optional: only list resources where the caller has this permission. pageSize/pageToken apply only when set.","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","parameters":[{"description":"Maximum entries to return; server may cap further.","explode":false,"in":"query","name":"pageSize","schema":{"description":"Maximum entries to return; server may cap further.","format":"int32","maximum":500,"minimum":0,"type":"integer"}},{"description":"Opaque cursor from a previous response's nextPageToken.","explode":false,"in":"query","name":"pageToken","schema":{"description":"Opaque cursor from a previous response's nextPageToken.","type":"string"}}],"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"},"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 calling account's recent audit events","tags":["identity"]}},"/clusters":{"get":{"operationId":"listClusters","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListClustersOutputBody"}}},"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 data-plane clusters attached to this control plane","tags":["clusters"]}},"/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"]},"patch":{"operationId":"updateMe","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMeInputBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMeOutputBody"}}},"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":"Update the calling account's contact email","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":"Maximum entries to return; server may cap further.","explode":false,"in":"query","name":"pageSize","schema":{"description":"Maximum entries to return; server may cap further.","format":"int32","maximum":500,"minimum":0,"type":"integer"}},{"description":"Opaque cursor from a previous response's nextPageToken.","explode":false,"in":"query","name":"pageToken","schema":{"description":"Opaque cursor from a previous response's nextPageToken.","type":"string"}},{"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/available":{"get":{"operationId":"listAvailableMirrors","parameters":[{"description":"Optional: restrict to repos with this owner login.","explode":false,"in":"query","name":"owner","schema":{"description":"Optional: restrict to repos with this owner login.","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAvailableMirrorsOutputBody"}}},"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"},"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":"List GitHub repos the caller could onboard as mirrors","tags":["mirrors"]}},"/mirrors/collaborators":{"delete":{"operationId":"revokeMirrorCollaborator","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"}},{"description":"Qualified grantee handle, e.g. github:alice.","explode":false,"in":"query","name":"handle","required":true,"schema":{"description":"Qualified grantee handle, e.g. github:alice.","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":"Revoke a user's access to a mirror (live GitHub-admin gated)","tags":["mirrors"]},"get":{"operationId":"listMirrorCollaborators","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":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMirrorCollaboratorsOutputBody"}}},"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"},"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":"List the principals with access to a mirror (live GitHub-admin gated)","tags":["mirrors"]},"post":{"operationId":"grantMirrorCollaborator","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantMirrorCollaboratorInputBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantedMirrorCollaborator"}}},"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"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Conflict"},"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":"Grant a user reader/writer access to a mirror (live GitHub-admin gated)","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","parameters":[{"description":"Maximum entries to return; server may cap further.","explode":false,"in":"query","name":"pageSize","schema":{"description":"Maximum entries to return; server may cap further.","format":"int32","maximum":500,"minimum":0,"type":"integer"}},{"description":"Opaque cursor from a previous response's nextPageToken.","explode":false,"in":"query","name":"pageToken","schema":{"description":"Opaque cursor from a previous response's nextPageToken.","type":"string"}}],"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"},"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 federated OIDC identity providers","tags":["identity"]}},"/orgs":{"get":{"operationId":"listOrgs","parameters":[{"description":"Maximum entries to return; server may cap further.","explode":false,"in":"query","name":"pageSize","schema":{"description":"Maximum entries to return; server may cap further.","format":"int32","maximum":500,"minimum":0,"type":"integer"}},{"description":"Opaque cursor from a previous response's nextPageToken.","explode":false,"in":"query","name":"pageToken","schema":{"description":"Opaque cursor from a previous response's nextPageToken.","type":"string"}},{"description":"Optional: exact-match org name.","explode":false,"in":"query","name":"name","schema":{"description":"Optional: exact-match org name.","type":"string"}}],"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"},"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 organizations the caller can see (or one by name)","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"},"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 organization","tags":["orgs"]}},"/orgs/{orgId}":{"delete":{"operationId":"deleteOrg","parameters":[{"in":"path","name":"orgId","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"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Conflict"},"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"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Delete an organization","tags":["orgs"]},"get":{"operationId":"getOrg","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/Org"}}},"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 an organization","tags":["orgs"]}},"/orgs/{orgId}/members":{"get":{"operationId":"listOrgMembers","parameters":[{"description":"Maximum entries to return; server may cap further.","explode":false,"in":"query","name":"pageSize","schema":{"description":"Maximum entries to return; server may cap further.","format":"int32","maximum":500,"minimum":0,"type":"integer"}},{"description":"Opaque cursor from a previous response's nextPageToken.","explode":false,"in":"query","name":"pageToken","schema":{"description":"Opaque cursor from a previous response's nextPageToken.","type":"string"}},{"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":[{"description":"Maximum entries to return; server may cap further.","explode":false,"in":"query","name":"pageSize","schema":{"description":"Maximum entries to return; server may cap further.","format":"int32","maximum":500,"minimum":0,"type":"integer"}},{"description":"Opaque cursor from a previous response's nextPageToken.","explode":false,"in":"query","name":"pageToken","schema":{"description":"Opaque cursor from a previous response's nextPageToken.","type":"string"}},{"in":"path","name":"orgId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"description":"Optional: exact-match project name (case-insensitive).","explode":false,"in":"query","name":"name","schema":{"description":"Optional: exact-match project name (case-insensitive).","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":"Maximum entries to return; server may cap further.","explode":false,"in":"query","name":"pageSize","schema":{"description":"Maximum entries to return; server may cap further.","format":"int32","maximum":500,"minimum":0,"type":"integer"}},{"description":"Opaque cursor from a previous response's nextPageToken.","explode":false,"in":"query","name":"pageToken","schema":{"description":"Opaque cursor from a previous response's nextPageToken.","type":"string"}},{"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}":{"delete":{"operationId":"deleteProject","parameters":[{"in":"path","name":"projectId","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"},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Conflict"},"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"}},"security":[{"bearerAuth":[]},{"sessionAuth":[]}],"summary":"Delete a project","tags":["projects"]},"get":{"operationId":"getProject","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/Project"}}},"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 a project by id","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":[{"description":"Maximum entries to return; server may cap further.","explode":false,"in":"query","name":"pageSize","schema":{"description":"Maximum entries to return; server may cap further.","format":"int32","maximum":500,"minimum":0,"type":"integer"}},{"description":"Opaque cursor from a previous response's nextPageToken.","explode":false,"in":"query","name":"pageToken","schema":{"description":"Opaque cursor from a previous response's nextPageToken.","type":"string"}},{"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":[{"description":"Maximum entries to return; server may cap further.","explode":false,"in":"query","name":"pageSize","schema":{"description":"Maximum entries to return; server may cap further.","format":"int32","maximum":500,"minimum":0,"type":"integer"}},{"description":"Opaque cursor from a previous response's nextPageToken.","explode":false,"in":"query","name":"pageToken","schema":{"description":"Opaque cursor from a previous response's nextPageToken.","type":"string"}},{"in":"path","name":"projectId","required":true,"schema":{"pattern":"^[0-9A-HJKMNP-TV-Z]{26}$","type":"string"}},{"description":"Optional: exact-match repo name.","explode":false,"in":"query","name":"name","schema":{"description":"Optional: exact-match repo name.","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 (or one by name)","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"},"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 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":{"get":{"operationId":"listRepoGrants","parameters":[{"description":"Maximum entries to return; server may cap further.","explode":false,"in":"query","name":"pageSize","schema":{"description":"Maximum entries to return; server may cap further.","format":"int32","maximum":500,"minimum":0,"type":"integer"}},{"description":"Opaque cursor from a previous response's nextPageToken.","explode":false,"in":"query","name":"pageToken","schema":{"description":"Opaque cursor from a previous response's nextPageToken.","type":"string"}},{"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/ListRepoGrantsOutputBody"}}},"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 repo grants","tags":["repos"]},"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"]}},"/repos/{repoId}/grants/account/{provider}/{providerUserId}":{"delete":{"operationId":"revokeRepoAccessByProvider","parameters":[{"in":"path","name":"repoId","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 repo access by provider identity","tags":["repos"]}},"/repos/{repoId}/grants/{granteeType}/{granteeId}":{"delete":{"operationId":"revokeRepoAccess","parameters":[{"in":"path","name":"repoId","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 repo access by grantee id","tags":["repos"]}},"/service-accounts":{"get":{"operationId":"listServiceAccounts","parameters":[{"description":"Maximum entries to return; server may cap further.","explode":false,"in":"query","name":"pageSize","schema":{"description":"Maximum entries to return; server may cap further.","format":"int32","maximum":500,"minimum":0,"type":"integer"}},{"description":"Opaque cursor from a previous response's nextPageToken.","explode":false,"in":"query","name":"pageToken","schema":{"description":"Opaque cursor from a previous response's nextPageToken.","type":"string"}},{"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":[{"description":"Maximum entries to return; server may cap further.","explode":false,"in":"query","name":"pageSize","schema":{"description":"Maximum entries to return; server may cap further.","format":"int32","maximum":500,"minimum":0,"type":"integer"}},{"description":"Opaque cursor from a previous response's nextPageToken.","explode":false,"in":"query","name":"pageToken","schema":{"description":"Opaque cursor from a previous response's nextPageToken.","type":"string"}},{"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":[{"description":"Maximum entries to return; server may cap further.","explode":false,"in":"query","name":"pageSize","schema":{"description":"Maximum entries to return; server may cap further.","format":"int32","maximum":500,"minimum":0,"type":"integer"}},{"description":"Opaque cursor from a previous response's nextPageToken.","explode":false,"in":"query","name":"pageToken","schema":{"description":"Opaque cursor from a previous response's nextPageToken.","type":"string"}},{"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"]}},"/version":{"get":{"operationId":"getVersion","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetVersionOutputBody"}}},"description":"OK"},"500":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ErrorModel"}}},"description":"Internal Server Error"}},"summary":"Get the server version and mode","tags":["meta"]}}},"servers":[{"url":"/api/v1"}]}\
No newline at end of file\
```\
\
Minternal/coreapi/spec/core.openapi.json+1/-1
