@grafana/openapi 13.2.3 → 13.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/api/openapi3.json +358 -247
  2. package/dist/apis/collections.grafana.app-v1alpha1.json +3 -14
  3. package/dist/apis/correlations.grafana.app-v0alpha1.json +411 -0
  4. package/dist/apis/dashboard.grafana.app-v0alpha1.json +865 -105
  5. package/dist/apis/dashboard.grafana.app-v1beta1.json +733 -6
  6. package/dist/apis/dashboard.grafana.app-v2.json +821 -194
  7. package/dist/apis/dashboard.grafana.app-v2alpha1.json +803 -208
  8. package/dist/apis/dashboard.grafana.app-v2beta1.json +985 -374
  9. package/dist/apis/folder.grafana.app-v1.json +644 -20
  10. package/dist/apis/folder.grafana.app-v1beta1.json +644 -20
  11. package/dist/apis/grafana-testdata-datasource.datasource.grafana.app-v0alpha1.json +3 -21
  12. package/dist/apis/historian.alerting.grafana.app-v0alpha1.json +411 -0
  13. package/dist/apis/iam.grafana.app-v0alpha1.json +2397 -748
  14. package/dist/apis/logsdrilldown.grafana.app-v1beta1.json +448 -0
  15. package/dist/apis/notifications.alerting.grafana.app-v0alpha1.json +596 -0
  16. package/dist/apis/notifications.alerting.grafana.app-v1beta1.json +596 -0
  17. package/dist/apis/playlist.grafana.app-v0alpha1.json +415 -0
  18. package/dist/apis/playlist.grafana.app-v1.json +415 -0
  19. package/dist/apis/preferences.grafana.app-v1.json +3 -9
  20. package/dist/apis/preferences.grafana.app-v1alpha1.json +3 -9
  21. package/dist/apis/provisioning.grafana.app-v0alpha1.json +649 -151
  22. package/dist/apis/provisioning.grafana.app-v1beta1.json +634 -100
  23. package/dist/apis/query.grafana.app-v0alpha1.json +14 -11
  24. package/dist/apis/quotas.grafana.app-v0alpha1.json +1 -2
  25. package/dist/apis/rules.alerting.grafana.app-v0alpha1.json +3027 -767
  26. package/dist/apis/rules.alerting.grafana.app-v1beta1.json +4541 -0
  27. package/dist/apis/search.grafana.app-v0alpha1.json +693 -0
  28. package/dist/apis/shorturl.grafana.app-v1beta1.json +411 -0
  29. package/package.json +3 -3
@@ -29,6 +29,43 @@
29
29
  }
30
30
  }
31
31
  },
32
+ "/authinfos/search": {
33
+ "post": {
34
+ "tags": ["Search"],
35
+ "description": "Search AuthInfo resources in a namespace.",
36
+ "operationId": "listAuthInfoSearchV0alpha1",
37
+ "parameters": [],
38
+ "requestBody": {
39
+ "description": "A SearchQuery describing what to match, sort and return.",
40
+ "content": {
41
+ "application/json": {
42
+ "schema": {
43
+ "$ref": "#/components/schemas/SearchQuery"
44
+ },
45
+ "example": {
46
+ "kind": "SearchQuery",
47
+ "apiVersion": "search.grafana.app/v0alpha1",
48
+ "facetLimit": 0,
49
+ "limit": 10
50
+ }
51
+ }
52
+ },
53
+ "required": true
54
+ },
55
+ "responses": {
56
+ "200": {
57
+ "description": "A SearchResults envelope.",
58
+ "content": {
59
+ "application/json": {
60
+ "schema": {
61
+ "$ref": "#/components/schemas/SearchResults"
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ },
32
69
  "/display": {
33
70
  "get": {
34
71
  "tags": ["Display"],
@@ -63,6 +100,154 @@
63
100
  }
64
101
  }
65
102
  },
103
+ "/externalgroupmappings/search": {
104
+ "post": {
105
+ "tags": ["Search"],
106
+ "description": "Search ExternalGroupMapping resources in a namespace.",
107
+ "operationId": "listExternalGroupMappingSearchV0alpha1",
108
+ "parameters": [],
109
+ "requestBody": {
110
+ "description": "A SearchQuery describing what to match, sort and return.",
111
+ "content": {
112
+ "application/json": {
113
+ "schema": {
114
+ "$ref": "#/components/schemas/SearchQuery"
115
+ },
116
+ "example": {
117
+ "kind": "SearchQuery",
118
+ "apiVersion": "search.grafana.app/v0alpha1",
119
+ "facetLimit": 0,
120
+ "limit": 10
121
+ }
122
+ }
123
+ },
124
+ "required": true
125
+ },
126
+ "responses": {
127
+ "200": {
128
+ "description": "A SearchResults envelope.",
129
+ "content": {
130
+ "application/json": {
131
+ "schema": {
132
+ "$ref": "#/components/schemas/SearchResults"
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }
138
+ }
139
+ },
140
+ "/globalrolebindings/search": {
141
+ "post": {
142
+ "tags": ["Search"],
143
+ "description": "Search GlobalRoleBinding resources in a namespace.",
144
+ "operationId": "listGlobalRoleBindingSearchV0alpha1",
145
+ "parameters": [],
146
+ "requestBody": {
147
+ "description": "A SearchQuery describing what to match, sort and return.",
148
+ "content": {
149
+ "application/json": {
150
+ "schema": {
151
+ "$ref": "#/components/schemas/SearchQuery"
152
+ },
153
+ "example": {
154
+ "kind": "SearchQuery",
155
+ "apiVersion": "search.grafana.app/v0alpha1",
156
+ "facetLimit": 0,
157
+ "limit": 10
158
+ }
159
+ }
160
+ },
161
+ "required": true
162
+ },
163
+ "responses": {
164
+ "200": {
165
+ "description": "A SearchResults envelope.",
166
+ "content": {
167
+ "application/json": {
168
+ "schema": {
169
+ "$ref": "#/components/schemas/SearchResults"
170
+ }
171
+ }
172
+ }
173
+ }
174
+ }
175
+ }
176
+ },
177
+ "/rolebindings/search": {
178
+ "post": {
179
+ "tags": ["Search"],
180
+ "description": "Search RoleBinding resources in a namespace.",
181
+ "operationId": "listRoleBindingSearchV0alpha1",
182
+ "parameters": [],
183
+ "requestBody": {
184
+ "description": "A SearchQuery describing what to match, sort and return.",
185
+ "content": {
186
+ "application/json": {
187
+ "schema": {
188
+ "$ref": "#/components/schemas/SearchQuery"
189
+ },
190
+ "example": {
191
+ "kind": "SearchQuery",
192
+ "apiVersion": "search.grafana.app/v0alpha1",
193
+ "facetLimit": 0,
194
+ "limit": 10
195
+ }
196
+ }
197
+ },
198
+ "required": true
199
+ },
200
+ "responses": {
201
+ "200": {
202
+ "description": "A SearchResults envelope.",
203
+ "content": {
204
+ "application/json": {
205
+ "schema": {
206
+ "$ref": "#/components/schemas/SearchResults"
207
+ }
208
+ }
209
+ }
210
+ }
211
+ }
212
+ }
213
+ },
214
+ "/roles/search": {
215
+ "post": {
216
+ "tags": ["Search"],
217
+ "description": "Search Role resources in a namespace.",
218
+ "operationId": "listRoleSearchV0alpha1",
219
+ "parameters": [],
220
+ "requestBody": {
221
+ "description": "A SearchQuery describing what to match, sort and return.",
222
+ "content": {
223
+ "application/json": {
224
+ "schema": {
225
+ "$ref": "#/components/schemas/SearchQuery"
226
+ },
227
+ "example": {
228
+ "kind": "SearchQuery",
229
+ "apiVersion": "search.grafana.app/v0alpha1",
230
+ "facetLimit": 0,
231
+ "limit": 10
232
+ }
233
+ }
234
+ },
235
+ "required": true
236
+ },
237
+ "responses": {
238
+ "200": {
239
+ "description": "A SearchResults envelope.",
240
+ "content": {
241
+ "application/json": {
242
+ "schema": {
243
+ "$ref": "#/components/schemas/SearchResults"
244
+ }
245
+ }
246
+ }
247
+ }
248
+ }
249
+ }
250
+ },
66
251
  "/searchExternalGroupMappings": {
67
252
  "post": {
68
253
  "tags": ["Search"],
@@ -583,6 +768,43 @@
583
768
  }
584
769
  ]
585
770
  },
771
+ "/serviceaccounts/search": {
772
+ "post": {
773
+ "tags": ["Search"],
774
+ "description": "Search ServiceAccount resources in a namespace.",
775
+ "operationId": "listServiceAccountSearchV0alpha1",
776
+ "parameters": [],
777
+ "requestBody": {
778
+ "description": "A SearchQuery describing what to match, sort and return.",
779
+ "content": {
780
+ "application/json": {
781
+ "schema": {
782
+ "$ref": "#/components/schemas/SearchQuery"
783
+ },
784
+ "example": {
785
+ "kind": "SearchQuery",
786
+ "apiVersion": "search.grafana.app/v0alpha1",
787
+ "facetLimit": 0,
788
+ "limit": 10
789
+ }
790
+ }
791
+ },
792
+ "required": true
793
+ },
794
+ "responses": {
795
+ "200": {
796
+ "description": "A SearchResults envelope.",
797
+ "content": {
798
+ "application/json": {
799
+ "schema": {
800
+ "$ref": "#/components/schemas/SearchResults"
801
+ }
802
+ }
803
+ }
804
+ }
805
+ }
806
+ }
807
+ },
586
808
  "/serviceaccounts/{name}": {
587
809
  "get": {
588
810
  "tags": ["ServiceAccount"],
@@ -1075,11 +1297,48 @@
1075
1297
  }
1076
1298
  ]
1077
1299
  },
1078
- "/teams": {
1300
+ "/teambindings/search": {
1301
+ "post": {
1302
+ "tags": ["Search"],
1303
+ "description": "Search TeamBinding resources in a namespace.",
1304
+ "operationId": "listTeamBindingSearchV0alpha1",
1305
+ "parameters": [],
1306
+ "requestBody": {
1307
+ "description": "A SearchQuery describing what to match, sort and return.",
1308
+ "content": {
1309
+ "application/json": {
1310
+ "schema": {
1311
+ "$ref": "#/components/schemas/SearchQuery"
1312
+ },
1313
+ "example": {
1314
+ "kind": "SearchQuery",
1315
+ "apiVersion": "search.grafana.app/v0alpha1",
1316
+ "facetLimit": 0,
1317
+ "limit": 10
1318
+ }
1319
+ }
1320
+ },
1321
+ "required": true
1322
+ },
1323
+ "responses": {
1324
+ "200": {
1325
+ "description": "A SearchResults envelope.",
1326
+ "content": {
1327
+ "application/json": {
1328
+ "schema": {
1329
+ "$ref": "#/components/schemas/SearchResults"
1330
+ }
1331
+ }
1332
+ }
1333
+ }
1334
+ }
1335
+ }
1336
+ },
1337
+ "/teamlbacrules": {
1079
1338
  "get": {
1080
- "tags": ["Team"],
1081
- "description": "list objects of kind Team",
1082
- "operationId": "listTeam",
1339
+ "tags": ["TeamLBACRule"],
1340
+ "description": "list or watch objects of kind TeamLBACRule",
1341
+ "operationId": "listTeamLBACRule",
1083
1342
  "parameters": [
1084
1343
  {
1085
1344
  "name": "continue",
@@ -1151,17 +1410,17 @@
1151
1410
  "content": {
1152
1411
  "application/json": {
1153
1412
  "schema": {
1154
- "$ref": "#/components/schemas/TeamList"
1413
+ "$ref": "#/components/schemas/TeamLBACRuleList"
1155
1414
  }
1156
1415
  },
1157
1416
  "application/json;stream=watch": {
1158
1417
  "schema": {
1159
- "$ref": "#/components/schemas/TeamList"
1418
+ "$ref": "#/components/schemas/TeamLBACRuleList"
1160
1419
  }
1161
1420
  },
1162
1421
  "application/yaml": {
1163
1422
  "schema": {
1164
- "$ref": "#/components/schemas/TeamList"
1423
+ "$ref": "#/components/schemas/TeamLBACRuleList"
1165
1424
  }
1166
1425
  }
1167
1426
  }
@@ -1171,13 +1430,13 @@
1171
1430
  "x-kubernetes-group-version-kind": {
1172
1431
  "group": "iam.grafana.app",
1173
1432
  "version": "v0alpha1",
1174
- "kind": "Team"
1433
+ "kind": "TeamLBACRule"
1175
1434
  }
1176
1435
  },
1177
1436
  "post": {
1178
- "tags": ["Team"],
1179
- "description": "create a Team",
1180
- "operationId": "createTeam",
1437
+ "tags": ["TeamLBACRule"],
1438
+ "description": "create a TeamLBACRule",
1439
+ "operationId": "createTeamLBACRule",
1181
1440
  "parameters": [
1182
1441
  {
1183
1442
  "name": "dryRun",
@@ -1211,12 +1470,12 @@
1211
1470
  "content": {
1212
1471
  "application/json": {
1213
1472
  "schema": {
1214
- "$ref": "#/components/schemas/Team"
1473
+ "$ref": "#/components/schemas/TeamLBACRule"
1215
1474
  }
1216
1475
  },
1217
1476
  "application/yaml": {
1218
1477
  "schema": {
1219
- "$ref": "#/components/schemas/Team"
1478
+ "$ref": "#/components/schemas/TeamLBACRule"
1220
1479
  }
1221
1480
  }
1222
1481
  },
@@ -1228,12 +1487,12 @@
1228
1487
  "content": {
1229
1488
  "application/json": {
1230
1489
  "schema": {
1231
- "$ref": "#/components/schemas/Team"
1490
+ "$ref": "#/components/schemas/TeamLBACRule"
1232
1491
  }
1233
1492
  },
1234
1493
  "application/yaml": {
1235
1494
  "schema": {
1236
- "$ref": "#/components/schemas/Team"
1495
+ "$ref": "#/components/schemas/TeamLBACRule"
1237
1496
  }
1238
1497
  }
1239
1498
  }
@@ -1243,12 +1502,12 @@
1243
1502
  "content": {
1244
1503
  "application/json": {
1245
1504
  "schema": {
1246
- "$ref": "#/components/schemas/Team"
1505
+ "$ref": "#/components/schemas/TeamLBACRule"
1247
1506
  }
1248
1507
  },
1249
1508
  "application/yaml": {
1250
1509
  "schema": {
1251
- "$ref": "#/components/schemas/Team"
1510
+ "$ref": "#/components/schemas/TeamLBACRule"
1252
1511
  }
1253
1512
  }
1254
1513
  }
@@ -1258,12 +1517,12 @@
1258
1517
  "content": {
1259
1518
  "application/json": {
1260
1519
  "schema": {
1261
- "$ref": "#/components/schemas/Team"
1520
+ "$ref": "#/components/schemas/TeamLBACRule"
1262
1521
  }
1263
1522
  },
1264
1523
  "application/yaml": {
1265
1524
  "schema": {
1266
- "$ref": "#/components/schemas/Team"
1525
+ "$ref": "#/components/schemas/TeamLBACRule"
1267
1526
  }
1268
1527
  }
1269
1528
  }
@@ -1273,7 +1532,7 @@
1273
1532
  "x-kubernetes-group-version-kind": {
1274
1533
  "group": "iam.grafana.app",
1275
1534
  "version": "v0alpha1",
1276
- "kind": "Team"
1535
+ "kind": "TeamLBACRule"
1277
1536
  }
1278
1537
  },
1279
1538
  "parameters": [
@@ -1288,23 +1547,60 @@
1288
1547
  }
1289
1548
  ]
1290
1549
  },
1291
- "/teams/{name}": {
1550
+ "/teamlbacrules/search": {
1551
+ "post": {
1552
+ "tags": ["Search"],
1553
+ "description": "Search TeamLBACRule resources in a namespace.",
1554
+ "operationId": "listTeamLBACRuleSearchV0alpha1",
1555
+ "parameters": [],
1556
+ "requestBody": {
1557
+ "description": "A SearchQuery describing what to match, sort and return.",
1558
+ "content": {
1559
+ "application/json": {
1560
+ "schema": {
1561
+ "$ref": "#/components/schemas/SearchQuery"
1562
+ },
1563
+ "example": {
1564
+ "kind": "SearchQuery",
1565
+ "apiVersion": "search.grafana.app/v0alpha1",
1566
+ "facetLimit": 0,
1567
+ "limit": 10
1568
+ }
1569
+ }
1570
+ },
1571
+ "required": true
1572
+ },
1573
+ "responses": {
1574
+ "200": {
1575
+ "description": "A SearchResults envelope.",
1576
+ "content": {
1577
+ "application/json": {
1578
+ "schema": {
1579
+ "$ref": "#/components/schemas/SearchResults"
1580
+ }
1581
+ }
1582
+ }
1583
+ }
1584
+ }
1585
+ }
1586
+ },
1587
+ "/teamlbacrules/{name}": {
1292
1588
  "get": {
1293
- "tags": ["Team"],
1294
- "description": "read the specified Team",
1295
- "operationId": "getTeam",
1589
+ "tags": ["TeamLBACRule"],
1590
+ "description": "read the specified TeamLBACRule",
1591
+ "operationId": "getTeamLBACRule",
1296
1592
  "responses": {
1297
1593
  "200": {
1298
1594
  "description": "OK",
1299
1595
  "content": {
1300
1596
  "application/json": {
1301
1597
  "schema": {
1302
- "$ref": "#/components/schemas/Team"
1598
+ "$ref": "#/components/schemas/TeamLBACRule"
1303
1599
  }
1304
1600
  },
1305
1601
  "application/yaml": {
1306
1602
  "schema": {
1307
- "$ref": "#/components/schemas/Team"
1603
+ "$ref": "#/components/schemas/TeamLBACRule"
1308
1604
  }
1309
1605
  }
1310
1606
  }
@@ -1314,13 +1610,13 @@
1314
1610
  "x-kubernetes-group-version-kind": {
1315
1611
  "group": "iam.grafana.app",
1316
1612
  "version": "v0alpha1",
1317
- "kind": "Team"
1613
+ "kind": "TeamLBACRule"
1318
1614
  }
1319
1615
  },
1320
1616
  "put": {
1321
- "tags": ["Team"],
1322
- "description": "replace the specified Team",
1323
- "operationId": "replaceTeam",
1617
+ "tags": ["TeamLBACRule"],
1618
+ "description": "replace the specified TeamLBACRule",
1619
+ "operationId": "replaceTeamLBACRule",
1324
1620
  "parameters": [
1325
1621
  {
1326
1622
  "name": "dryRun",
@@ -1354,12 +1650,12 @@
1354
1650
  "content": {
1355
1651
  "application/json": {
1356
1652
  "schema": {
1357
- "$ref": "#/components/schemas/Team"
1653
+ "$ref": "#/components/schemas/TeamLBACRule"
1358
1654
  }
1359
1655
  },
1360
1656
  "application/yaml": {
1361
1657
  "schema": {
1362
- "$ref": "#/components/schemas/Team"
1658
+ "$ref": "#/components/schemas/TeamLBACRule"
1363
1659
  }
1364
1660
  }
1365
1661
  },
@@ -1371,12 +1667,12 @@
1371
1667
  "content": {
1372
1668
  "application/json": {
1373
1669
  "schema": {
1374
- "$ref": "#/components/schemas/Team"
1670
+ "$ref": "#/components/schemas/TeamLBACRule"
1375
1671
  }
1376
1672
  },
1377
1673
  "application/yaml": {
1378
1674
  "schema": {
1379
- "$ref": "#/components/schemas/Team"
1675
+ "$ref": "#/components/schemas/TeamLBACRule"
1380
1676
  }
1381
1677
  }
1382
1678
  }
@@ -1386,12 +1682,12 @@
1386
1682
  "content": {
1387
1683
  "application/json": {
1388
1684
  "schema": {
1389
- "$ref": "#/components/schemas/Team"
1685
+ "$ref": "#/components/schemas/TeamLBACRule"
1390
1686
  }
1391
1687
  },
1392
1688
  "application/yaml": {
1393
1689
  "schema": {
1394
- "$ref": "#/components/schemas/Team"
1690
+ "$ref": "#/components/schemas/TeamLBACRule"
1395
1691
  }
1396
1692
  }
1397
1693
  }
@@ -1401,13 +1697,13 @@
1401
1697
  "x-kubernetes-group-version-kind": {
1402
1698
  "group": "iam.grafana.app",
1403
1699
  "version": "v0alpha1",
1404
- "kind": "Team"
1700
+ "kind": "TeamLBACRule"
1405
1701
  }
1406
1702
  },
1407
1703
  "delete": {
1408
- "tags": ["Team"],
1409
- "description": "delete a Team",
1410
- "operationId": "deleteTeam",
1704
+ "tags": ["TeamLBACRule"],
1705
+ "description": "delete a TeamLBACRule",
1706
+ "operationId": "deleteTeamLBACRule",
1411
1707
  "parameters": [
1412
1708
  {
1413
1709
  "name": "dryRun",
@@ -1491,13 +1787,13 @@
1491
1787
  "x-kubernetes-group-version-kind": {
1492
1788
  "group": "iam.grafana.app",
1493
1789
  "version": "v0alpha1",
1494
- "kind": "Team"
1790
+ "kind": "TeamLBACRule"
1495
1791
  }
1496
1792
  },
1497
1793
  "patch": {
1498
- "tags": ["Team"],
1499
- "description": "partially update the specified Team",
1500
- "operationId": "updateTeam",
1794
+ "tags": ["TeamLBACRule"],
1795
+ "description": "partially update the specified TeamLBACRule",
1796
+ "operationId": "updateTeamLBACRule",
1501
1797
  "parameters": [
1502
1798
  {
1503
1799
  "name": "dryRun",
@@ -1567,12 +1863,12 @@
1567
1863
  "content": {
1568
1864
  "application/json": {
1569
1865
  "schema": {
1570
- "$ref": "#/components/schemas/Team"
1866
+ "$ref": "#/components/schemas/TeamLBACRule"
1571
1867
  }
1572
1868
  },
1573
1869
  "application/yaml": {
1574
1870
  "schema": {
1575
- "$ref": "#/components/schemas/Team"
1871
+ "$ref": "#/components/schemas/TeamLBACRule"
1576
1872
  }
1577
1873
  }
1578
1874
  }
@@ -1582,12 +1878,12 @@
1582
1878
  "content": {
1583
1879
  "application/json": {
1584
1880
  "schema": {
1585
- "$ref": "#/components/schemas/Team"
1881
+ "$ref": "#/components/schemas/TeamLBACRule"
1586
1882
  }
1587
1883
  },
1588
1884
  "application/yaml": {
1589
1885
  "schema": {
1590
- "$ref": "#/components/schemas/Team"
1886
+ "$ref": "#/components/schemas/TeamLBACRule"
1591
1887
  }
1592
1888
  }
1593
1889
  }
@@ -1597,14 +1893,14 @@
1597
1893
  "x-kubernetes-group-version-kind": {
1598
1894
  "group": "iam.grafana.app",
1599
1895
  "version": "v0alpha1",
1600
- "kind": "Team"
1896
+ "kind": "TeamLBACRule"
1601
1897
  }
1602
1898
  },
1603
1899
  "parameters": [
1604
1900
  {
1605
1901
  "name": "name",
1606
1902
  "in": "path",
1607
- "description": "name of the Team",
1903
+ "description": "name of the TeamLBACRule",
1608
1904
  "required": true,
1609
1905
  "schema": {
1610
1906
  "type": "string",
@@ -1622,18 +1918,18 @@
1622
1918
  }
1623
1919
  ]
1624
1920
  },
1625
- "/teams/{name}/addmember": {
1626
- "post": {
1627
- "tags": ["Team"],
1628
- "description": "connect POST requests to addmember of Team",
1629
- "operationId": "createTeamAddmember",
1921
+ "/teamlbacrules/{name}/for-subject": {
1922
+ "get": {
1923
+ "tags": ["TeamLBACRule"],
1924
+ "description": "connect GET requests to for-subject of TeamLBACRule",
1925
+ "operationId": "getTeamLBACRuleFor-Subject",
1630
1926
  "responses": {
1631
1927
  "200": {
1632
1928
  "description": "OK",
1633
1929
  "content": {
1634
1930
  "*/*": {
1635
1931
  "schema": {
1636
- "$ref": "#/components/schemas/github.com~1grafana~1grafana~1pkg~1apis~1iam~1v0alpha1.TeamMemberList"
1932
+ "type": "string"
1637
1933
  }
1638
1934
  }
1639
1935
  }
@@ -1643,14 +1939,14 @@
1643
1939
  "x-kubernetes-group-version-kind": {
1644
1940
  "group": "iam.grafana.app",
1645
1941
  "version": "v0alpha1",
1646
- "kind": "TeamMemberList"
1942
+ "kind": "GetTeamLBACRulesForSubjectRouteResponse"
1647
1943
  }
1648
1944
  },
1649
1945
  "parameters": [
1650
1946
  {
1651
1947
  "name": "name",
1652
1948
  "in": "path",
1653
- "description": "name of the TeamMemberList",
1949
+ "description": "name of the GetTeamLBACRulesForSubjectRouteResponse",
1654
1950
  "required": true,
1655
1951
  "schema": {
1656
1952
  "type": "string",
@@ -1659,50 +1955,18 @@
1659
1955
  }
1660
1956
  ]
1661
1957
  },
1662
- "/teams/{name}/groups": {
1958
+ "/teamlbacrules/{name}/for-subject/{path}": {
1663
1959
  "get": {
1664
- "tags": ["Team"],
1665
- "description": "connect GET requests to groups of Team",
1666
- "operationId": "getTeamGroups",
1667
- "parameters": [
1668
- {
1669
- "name": "limit",
1670
- "in": "query",
1671
- "description": "number of results to return",
1672
- "schema": {
1673
- "type": "integer",
1674
- "format": "int64"
1675
- },
1676
- "example": 30
1677
- },
1678
- {
1679
- "name": "page",
1680
- "in": "query",
1681
- "description": "page number (starting from 1)",
1682
- "schema": {
1683
- "type": "integer",
1684
- "format": "int64"
1685
- },
1686
- "example": 1
1687
- },
1688
- {
1689
- "name": "offset",
1690
- "in": "query",
1691
- "description": "number of results to skip",
1692
- "schema": {
1693
- "type": "integer",
1694
- "format": "int64"
1695
- },
1696
- "example": 0
1697
- }
1698
- ],
1960
+ "tags": ["TeamLBACRule"],
1961
+ "description": "connect GET requests to for-subject of TeamLBACRule",
1962
+ "operationId": "getTeamLBACRuleFor-SubjectWithPath",
1699
1963
  "responses": {
1700
1964
  "200": {
1701
1965
  "description": "OK",
1702
1966
  "content": {
1703
1967
  "*/*": {
1704
1968
  "schema": {
1705
- "$ref": "#/components/schemas/GetTeamGroupsResponse"
1969
+ "type": "string"
1706
1970
  }
1707
1971
  }
1708
1972
  }
@@ -1712,83 +1976,24 @@
1712
1976
  "x-kubernetes-group-version-kind": {
1713
1977
  "group": "iam.grafana.app",
1714
1978
  "version": "v0alpha1",
1715
- "kind": "GetTeamGroupsResponse"
1979
+ "kind": "GetTeamLBACRulesForSubjectRouteResponse"
1716
1980
  }
1717
1981
  },
1718
1982
  "parameters": [
1719
1983
  {
1720
1984
  "name": "name",
1721
1985
  "in": "path",
1722
- "description": "name of the GetTeamGroupsResponse",
1986
+ "description": "name of the GetTeamLBACRulesForSubjectRouteResponse",
1723
1987
  "required": true,
1724
1988
  "schema": {
1725
1989
  "type": "string",
1726
1990
  "uniqueItems": true
1727
1991
  }
1728
- }
1729
- ]
1730
- },
1731
- "/teams/{name}/members": {
1732
- "get": {
1733
- "tags": ["Team"],
1734
- "description": "connect GET requests to members of Team",
1735
- "operationId": "getTeamMembers",
1736
- "parameters": [
1737
- {
1738
- "name": "limit",
1739
- "in": "query",
1740
- "description": "number of results to return",
1741
- "schema": {
1742
- "type": "integer",
1743
- "format": "int64"
1744
- },
1745
- "example": 30
1746
- },
1747
- {
1748
- "name": "page",
1749
- "in": "query",
1750
- "description": "page number (starting from 1)",
1751
- "schema": {
1752
- "type": "integer",
1753
- "format": "int64"
1754
- },
1755
- "example": 1
1756
- },
1757
- {
1758
- "name": "offset",
1759
- "in": "query",
1760
- "description": "number of results to skip",
1761
- "schema": {
1762
- "type": "integer",
1763
- "format": "int64"
1764
- },
1765
- "example": 0
1766
- }
1767
- ],
1768
- "responses": {
1769
- "200": {
1770
- "description": "OK",
1771
- "content": {
1772
- "*/*": {
1773
- "schema": {
1774
- "$ref": "#/components/schemas/github.com~1grafana~1grafana~1pkg~1apis~1iam~1v0alpha1.TeamMemberList"
1775
- }
1776
- }
1777
- }
1778
- }
1779
1992
  },
1780
- "x-kubernetes-action": "connect",
1781
- "x-kubernetes-group-version-kind": {
1782
- "group": "iam.grafana.app",
1783
- "version": "v0alpha1",
1784
- "kind": "TeamMemberList"
1785
- }
1786
- },
1787
- "parameters": [
1788
1993
  {
1789
- "name": "name",
1994
+ "name": "path",
1790
1995
  "in": "path",
1791
- "description": "name of the TeamMemberList",
1996
+ "description": "path to the resource",
1792
1997
  "required": true,
1793
1998
  "schema": {
1794
1999
  "type": "string",
@@ -1797,48 +2002,36 @@
1797
2002
  }
1798
2003
  ]
1799
2004
  },
1800
- "/teams/{name}/removemember": {
1801
- "post": {
1802
- "tags": ["Team"],
1803
- "description": "connect POST requests to removemember of Team",
1804
- "operationId": "createTeamRemovemember",
2005
+ "/teamlbacusage": {
2006
+ "get": {
2007
+ "tags": ["TeamLBACRule"],
2008
+ "description": "Service-only aggregate counts of stored TeamLBAC rules",
2009
+ "parameters": [],
1805
2010
  "responses": {
1806
2011
  "200": {
1807
- "description": "OK",
1808
2012
  "content": {
1809
- "*/*": {
2013
+ "application/json": {
1810
2014
  "schema": {
1811
- "$ref": "#/components/schemas/github.com~1grafana~1grafana~1pkg~1apis~1iam~1v0alpha1.TeamMemberList"
2015
+ "type": "object",
2016
+ "required": ["counts"],
2017
+ "properties": {
2018
+ "counts": {
2019
+ "type": "object",
2020
+ "additionalProperties": {}
2021
+ }
2022
+ }
1812
2023
  }
1813
2024
  }
1814
2025
  }
1815
2026
  }
1816
- },
1817
- "x-kubernetes-action": "connect",
1818
- "x-kubernetes-group-version-kind": {
1819
- "group": "iam.grafana.app",
1820
- "version": "v0alpha1",
1821
- "kind": "TeamMemberList"
1822
- }
1823
- },
1824
- "parameters": [
1825
- {
1826
- "name": "name",
1827
- "in": "path",
1828
- "description": "name of the TeamMemberList",
1829
- "required": true,
1830
- "schema": {
1831
- "type": "string",
1832
- "uniqueItems": true
1833
- }
1834
2027
  }
1835
- ]
2028
+ }
1836
2029
  },
1837
- "/users": {
2030
+ "/teams": {
1838
2031
  "get": {
1839
- "tags": ["User"],
1840
- "description": "list or watch objects of kind User",
1841
- "operationId": "listUser",
2032
+ "tags": ["Team"],
2033
+ "description": "list objects of kind Team",
2034
+ "operationId": "listTeam",
1842
2035
  "parameters": [
1843
2036
  {
1844
2037
  "name": "continue",
@@ -1910,17 +2103,17 @@
1910
2103
  "content": {
1911
2104
  "application/json": {
1912
2105
  "schema": {
1913
- "$ref": "#/components/schemas/UserList"
2106
+ "$ref": "#/components/schemas/TeamList"
1914
2107
  }
1915
2108
  },
1916
2109
  "application/json;stream=watch": {
1917
2110
  "schema": {
1918
- "$ref": "#/components/schemas/UserList"
2111
+ "$ref": "#/components/schemas/TeamList"
1919
2112
  }
1920
2113
  },
1921
2114
  "application/yaml": {
1922
2115
  "schema": {
1923
- "$ref": "#/components/schemas/UserList"
2116
+ "$ref": "#/components/schemas/TeamList"
1924
2117
  }
1925
2118
  }
1926
2119
  }
@@ -1930,13 +2123,13 @@
1930
2123
  "x-kubernetes-group-version-kind": {
1931
2124
  "group": "iam.grafana.app",
1932
2125
  "version": "v0alpha1",
1933
- "kind": "User"
2126
+ "kind": "Team"
1934
2127
  }
1935
2128
  },
1936
2129
  "post": {
1937
- "tags": ["User"],
1938
- "description": "create an User",
1939
- "operationId": "createUser",
2130
+ "tags": ["Team"],
2131
+ "description": "create a Team",
2132
+ "operationId": "createTeam",
1940
2133
  "parameters": [
1941
2134
  {
1942
2135
  "name": "dryRun",
@@ -1970,12 +2163,12 @@
1970
2163
  "content": {
1971
2164
  "application/json": {
1972
2165
  "schema": {
1973
- "$ref": "#/components/schemas/User"
2166
+ "$ref": "#/components/schemas/Team"
1974
2167
  }
1975
2168
  },
1976
2169
  "application/yaml": {
1977
2170
  "schema": {
1978
- "$ref": "#/components/schemas/User"
2171
+ "$ref": "#/components/schemas/Team"
1979
2172
  }
1980
2173
  }
1981
2174
  },
@@ -1987,12 +2180,12 @@
1987
2180
  "content": {
1988
2181
  "application/json": {
1989
2182
  "schema": {
1990
- "$ref": "#/components/schemas/User"
2183
+ "$ref": "#/components/schemas/Team"
1991
2184
  }
1992
2185
  },
1993
2186
  "application/yaml": {
1994
2187
  "schema": {
1995
- "$ref": "#/components/schemas/User"
2188
+ "$ref": "#/components/schemas/Team"
1996
2189
  }
1997
2190
  }
1998
2191
  }
@@ -2002,12 +2195,12 @@
2002
2195
  "content": {
2003
2196
  "application/json": {
2004
2197
  "schema": {
2005
- "$ref": "#/components/schemas/User"
2198
+ "$ref": "#/components/schemas/Team"
2006
2199
  }
2007
2200
  },
2008
2201
  "application/yaml": {
2009
2202
  "schema": {
2010
- "$ref": "#/components/schemas/User"
2203
+ "$ref": "#/components/schemas/Team"
2011
2204
  }
2012
2205
  }
2013
2206
  }
@@ -2017,12 +2210,12 @@
2017
2210
  "content": {
2018
2211
  "application/json": {
2019
2212
  "schema": {
2020
- "$ref": "#/components/schemas/User"
2213
+ "$ref": "#/components/schemas/Team"
2021
2214
  }
2022
2215
  },
2023
2216
  "application/yaml": {
2024
2217
  "schema": {
2025
- "$ref": "#/components/schemas/User"
2218
+ "$ref": "#/components/schemas/Team"
2026
2219
  }
2027
2220
  }
2028
2221
  }
@@ -2032,7 +2225,7 @@
2032
2225
  "x-kubernetes-group-version-kind": {
2033
2226
  "group": "iam.grafana.app",
2034
2227
  "version": "v0alpha1",
2035
- "kind": "User"
2228
+ "kind": "Team"
2036
2229
  }
2037
2230
  },
2038
2231
  "parameters": [
@@ -2047,23 +2240,60 @@
2047
2240
  }
2048
2241
  ]
2049
2242
  },
2050
- "/users/{name}": {
2243
+ "/teams/search": {
2244
+ "post": {
2245
+ "tags": ["Search"],
2246
+ "description": "Search Team resources in a namespace.",
2247
+ "operationId": "listTeamSearchV0alpha1",
2248
+ "parameters": [],
2249
+ "requestBody": {
2250
+ "description": "A SearchQuery describing what to match, sort and return.",
2251
+ "content": {
2252
+ "application/json": {
2253
+ "schema": {
2254
+ "$ref": "#/components/schemas/SearchQuery"
2255
+ },
2256
+ "example": {
2257
+ "kind": "SearchQuery",
2258
+ "apiVersion": "search.grafana.app/v0alpha1",
2259
+ "facetLimit": 0,
2260
+ "limit": 10
2261
+ }
2262
+ }
2263
+ },
2264
+ "required": true
2265
+ },
2266
+ "responses": {
2267
+ "200": {
2268
+ "description": "A SearchResults envelope.",
2269
+ "content": {
2270
+ "application/json": {
2271
+ "schema": {
2272
+ "$ref": "#/components/schemas/SearchResults"
2273
+ }
2274
+ }
2275
+ }
2276
+ }
2277
+ }
2278
+ }
2279
+ },
2280
+ "/teams/{name}": {
2051
2281
  "get": {
2052
- "tags": ["User"],
2053
- "description": "read the specified User",
2054
- "operationId": "getUser",
2282
+ "tags": ["Team"],
2283
+ "description": "read the specified Team",
2284
+ "operationId": "getTeam",
2055
2285
  "responses": {
2056
2286
  "200": {
2057
2287
  "description": "OK",
2058
2288
  "content": {
2059
2289
  "application/json": {
2060
2290
  "schema": {
2061
- "$ref": "#/components/schemas/User"
2291
+ "$ref": "#/components/schemas/Team"
2062
2292
  }
2063
2293
  },
2064
2294
  "application/yaml": {
2065
2295
  "schema": {
2066
- "$ref": "#/components/schemas/User"
2296
+ "$ref": "#/components/schemas/Team"
2067
2297
  }
2068
2298
  }
2069
2299
  }
@@ -2073,13 +2303,13 @@
2073
2303
  "x-kubernetes-group-version-kind": {
2074
2304
  "group": "iam.grafana.app",
2075
2305
  "version": "v0alpha1",
2076
- "kind": "User"
2306
+ "kind": "Team"
2077
2307
  }
2078
2308
  },
2079
2309
  "put": {
2080
- "tags": ["User"],
2081
- "description": "replace the specified User",
2082
- "operationId": "replaceUser",
2310
+ "tags": ["Team"],
2311
+ "description": "replace the specified Team",
2312
+ "operationId": "replaceTeam",
2083
2313
  "parameters": [
2084
2314
  {
2085
2315
  "name": "dryRun",
@@ -2113,12 +2343,12 @@
2113
2343
  "content": {
2114
2344
  "application/json": {
2115
2345
  "schema": {
2116
- "$ref": "#/components/schemas/User"
2346
+ "$ref": "#/components/schemas/Team"
2117
2347
  }
2118
2348
  },
2119
2349
  "application/yaml": {
2120
2350
  "schema": {
2121
- "$ref": "#/components/schemas/User"
2351
+ "$ref": "#/components/schemas/Team"
2122
2352
  }
2123
2353
  }
2124
2354
  },
@@ -2130,12 +2360,12 @@
2130
2360
  "content": {
2131
2361
  "application/json": {
2132
2362
  "schema": {
2133
- "$ref": "#/components/schemas/User"
2363
+ "$ref": "#/components/schemas/Team"
2134
2364
  }
2135
2365
  },
2136
2366
  "application/yaml": {
2137
2367
  "schema": {
2138
- "$ref": "#/components/schemas/User"
2368
+ "$ref": "#/components/schemas/Team"
2139
2369
  }
2140
2370
  }
2141
2371
  }
@@ -2145,12 +2375,12 @@
2145
2375
  "content": {
2146
2376
  "application/json": {
2147
2377
  "schema": {
2148
- "$ref": "#/components/schemas/User"
2378
+ "$ref": "#/components/schemas/Team"
2149
2379
  }
2150
2380
  },
2151
2381
  "application/yaml": {
2152
2382
  "schema": {
2153
- "$ref": "#/components/schemas/User"
2383
+ "$ref": "#/components/schemas/Team"
2154
2384
  }
2155
2385
  }
2156
2386
  }
@@ -2160,13 +2390,13 @@
2160
2390
  "x-kubernetes-group-version-kind": {
2161
2391
  "group": "iam.grafana.app",
2162
2392
  "version": "v0alpha1",
2163
- "kind": "User"
2393
+ "kind": "Team"
2164
2394
  }
2165
2395
  },
2166
2396
  "delete": {
2167
- "tags": ["User"],
2168
- "description": "delete an User",
2169
- "operationId": "deleteUser",
2397
+ "tags": ["Team"],
2398
+ "description": "delete a Team",
2399
+ "operationId": "deleteTeam",
2170
2400
  "parameters": [
2171
2401
  {
2172
2402
  "name": "dryRun",
@@ -2250,13 +2480,13 @@
2250
2480
  "x-kubernetes-group-version-kind": {
2251
2481
  "group": "iam.grafana.app",
2252
2482
  "version": "v0alpha1",
2253
- "kind": "User"
2483
+ "kind": "Team"
2254
2484
  }
2255
2485
  },
2256
2486
  "patch": {
2257
- "tags": ["User"],
2258
- "description": "partially update the specified User",
2259
- "operationId": "updateUser",
2487
+ "tags": ["Team"],
2488
+ "description": "partially update the specified Team",
2489
+ "operationId": "updateTeam",
2260
2490
  "parameters": [
2261
2491
  {
2262
2492
  "name": "dryRun",
@@ -2326,12 +2556,12 @@
2326
2556
  "content": {
2327
2557
  "application/json": {
2328
2558
  "schema": {
2329
- "$ref": "#/components/schemas/User"
2559
+ "$ref": "#/components/schemas/Team"
2330
2560
  }
2331
2561
  },
2332
2562
  "application/yaml": {
2333
2563
  "schema": {
2334
- "$ref": "#/components/schemas/User"
2564
+ "$ref": "#/components/schemas/Team"
2335
2565
  }
2336
2566
  }
2337
2567
  }
@@ -2341,12 +2571,12 @@
2341
2571
  "content": {
2342
2572
  "application/json": {
2343
2573
  "schema": {
2344
- "$ref": "#/components/schemas/User"
2574
+ "$ref": "#/components/schemas/Team"
2345
2575
  }
2346
2576
  },
2347
2577
  "application/yaml": {
2348
2578
  "schema": {
2349
- "$ref": "#/components/schemas/User"
2579
+ "$ref": "#/components/schemas/Team"
2350
2580
  }
2351
2581
  }
2352
2582
  }
@@ -2356,14 +2586,14 @@
2356
2586
  "x-kubernetes-group-version-kind": {
2357
2587
  "group": "iam.grafana.app",
2358
2588
  "version": "v0alpha1",
2359
- "kind": "User"
2589
+ "kind": "Team"
2360
2590
  }
2361
2591
  },
2362
2592
  "parameters": [
2363
2593
  {
2364
2594
  "name": "name",
2365
2595
  "in": "path",
2366
- "description": "name of the User",
2596
+ "description": "name of the Team",
2367
2597
  "required": true,
2368
2598
  "schema": {
2369
2599
  "type": "string",
@@ -2381,252 +2611,1048 @@
2381
2611
  }
2382
2612
  ]
2383
2613
  },
2384
- "/users/{name}/status": {
2385
- "get": {
2386
- "tags": ["User"],
2387
- "description": "read status of the specified User",
2388
- "operationId": "getUserStatus",
2614
+ "/teams/{name}/addmember": {
2615
+ "post": {
2616
+ "tags": ["Team"],
2617
+ "description": "connect POST requests to addmember of Team",
2618
+ "operationId": "createTeamAddmember",
2389
2619
  "responses": {
2390
2620
  "200": {
2391
2621
  "description": "OK",
2392
2622
  "content": {
2393
- "application/json": {
2394
- "schema": {
2395
- "$ref": "#/components/schemas/User"
2396
- }
2397
- },
2398
- "application/yaml": {
2623
+ "*/*": {
2399
2624
  "schema": {
2400
- "$ref": "#/components/schemas/User"
2625
+ "$ref": "#/components/schemas/github.com~1grafana~1grafana~1pkg~1apis~1iam~1v0alpha1.TeamMemberList"
2401
2626
  }
2402
2627
  }
2403
2628
  }
2404
2629
  }
2405
2630
  },
2406
- "x-kubernetes-action": "get",
2631
+ "x-kubernetes-action": "connect",
2407
2632
  "x-kubernetes-group-version-kind": {
2408
2633
  "group": "iam.grafana.app",
2409
2634
  "version": "v0alpha1",
2410
- "kind": "User"
2635
+ "kind": "TeamMemberList"
2411
2636
  }
2412
2637
  },
2413
- "put": {
2414
- "tags": ["User"],
2415
- "description": "replace status of the specified User",
2416
- "operationId": "replaceUserStatus",
2638
+ "parameters": [
2639
+ {
2640
+ "name": "name",
2641
+ "in": "path",
2642
+ "description": "name of the TeamMemberList",
2643
+ "required": true,
2644
+ "schema": {
2645
+ "type": "string",
2646
+ "uniqueItems": true
2647
+ }
2648
+ }
2649
+ ]
2650
+ },
2651
+ "/teams/{name}/groups": {
2652
+ "get": {
2653
+ "tags": ["Team"],
2654
+ "description": "connect GET requests to groups of Team",
2655
+ "operationId": "getTeamGroups",
2417
2656
  "parameters": [
2418
2657
  {
2419
- "name": "dryRun",
2658
+ "name": "limit",
2420
2659
  "in": "query",
2421
- "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
2660
+ "description": "number of results to return",
2422
2661
  "schema": {
2423
- "type": "string",
2424
- "uniqueItems": true
2425
- }
2662
+ "type": "integer",
2663
+ "format": "int64"
2664
+ },
2665
+ "example": 30
2426
2666
  },
2427
2667
  {
2428
- "name": "fieldManager",
2668
+ "name": "page",
2429
2669
  "in": "query",
2430
- "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.",
2670
+ "description": "page number (starting from 1)",
2431
2671
  "schema": {
2432
- "type": "string",
2433
- "uniqueItems": true
2434
- }
2672
+ "type": "integer",
2673
+ "format": "int64"
2674
+ },
2675
+ "example": 1
2435
2676
  },
2436
2677
  {
2437
- "name": "fieldValidation",
2678
+ "name": "offset",
2438
2679
  "in": "query",
2439
- "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.",
2680
+ "description": "number of results to skip",
2440
2681
  "schema": {
2441
- "type": "string",
2442
- "uniqueItems": true
2443
- }
2682
+ "type": "integer",
2683
+ "format": "int64"
2684
+ },
2685
+ "example": 0
2444
2686
  }
2445
2687
  ],
2446
- "requestBody": {
2447
- "content": {
2448
- "application/json": {
2449
- "schema": {
2450
- "$ref": "#/components/schemas/User"
2451
- }
2452
- },
2453
- "application/yaml": {
2454
- "schema": {
2455
- "$ref": "#/components/schemas/User"
2456
- }
2457
- }
2458
- },
2459
- "required": true
2460
- },
2461
2688
  "responses": {
2462
2689
  "200": {
2463
2690
  "description": "OK",
2464
2691
  "content": {
2465
- "application/json": {
2466
- "schema": {
2467
- "$ref": "#/components/schemas/User"
2468
- }
2469
- },
2470
- "application/yaml": {
2471
- "schema": {
2472
- "$ref": "#/components/schemas/User"
2473
- }
2474
- }
2475
- }
2476
- },
2477
- "201": {
2478
- "description": "Created",
2479
- "content": {
2480
- "application/json": {
2481
- "schema": {
2482
- "$ref": "#/components/schemas/User"
2483
- }
2484
- },
2485
- "application/yaml": {
2692
+ "*/*": {
2486
2693
  "schema": {
2487
- "$ref": "#/components/schemas/User"
2694
+ "$ref": "#/components/schemas/GetTeamGroupsResponse"
2488
2695
  }
2489
2696
  }
2490
2697
  }
2491
2698
  }
2492
2699
  },
2493
- "x-kubernetes-action": "put",
2700
+ "x-kubernetes-action": "connect",
2494
2701
  "x-kubernetes-group-version-kind": {
2495
2702
  "group": "iam.grafana.app",
2496
2703
  "version": "v0alpha1",
2497
- "kind": "User"
2704
+ "kind": "GetTeamGroupsResponse"
2498
2705
  }
2499
2706
  },
2500
- "patch": {
2501
- "tags": ["User"],
2502
- "description": "partially update status of the specified User",
2503
- "operationId": "updateUserStatus",
2707
+ "parameters": [
2708
+ {
2709
+ "name": "name",
2710
+ "in": "path",
2711
+ "description": "name of the GetTeamGroupsResponse",
2712
+ "required": true,
2713
+ "schema": {
2714
+ "type": "string",
2715
+ "uniqueItems": true
2716
+ }
2717
+ }
2718
+ ]
2719
+ },
2720
+ "/teams/{name}/members": {
2721
+ "get": {
2722
+ "tags": ["Team"],
2723
+ "description": "connect GET requests to members of Team",
2724
+ "operationId": "getTeamMembers",
2504
2725
  "parameters": [
2505
2726
  {
2506
- "name": "dryRun",
2507
- "in": "query",
2508
- "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
2509
- "schema": {
2510
- "type": "string",
2511
- "uniqueItems": true
2512
- }
2513
- },
2514
- {
2515
- "name": "fieldManager",
2727
+ "name": "limit",
2516
2728
  "in": "query",
2517
- "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).",
2729
+ "description": "number of results to return",
2518
2730
  "schema": {
2519
- "type": "string",
2520
- "uniqueItems": true
2521
- }
2731
+ "type": "integer",
2732
+ "format": "int64"
2733
+ },
2734
+ "example": 30
2522
2735
  },
2523
2736
  {
2524
- "name": "fieldValidation",
2737
+ "name": "page",
2525
2738
  "in": "query",
2526
- "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.",
2739
+ "description": "page number (starting from 1)",
2527
2740
  "schema": {
2528
- "type": "string",
2529
- "uniqueItems": true
2530
- }
2741
+ "type": "integer",
2742
+ "format": "int64"
2743
+ },
2744
+ "example": 1
2531
2745
  },
2532
2746
  {
2533
- "name": "force",
2747
+ "name": "offset",
2534
2748
  "in": "query",
2535
- "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.",
2749
+ "description": "number of results to skip",
2536
2750
  "schema": {
2537
- "type": "boolean",
2538
- "uniqueItems": true
2539
- }
2751
+ "type": "integer",
2752
+ "format": "int64"
2753
+ },
2754
+ "example": 0
2540
2755
  }
2541
2756
  ],
2542
- "requestBody": {
2543
- "content": {
2544
- "application/apply-patch+yaml": {
2545
- "schema": {
2546
- "$ref": "#/components/schemas/Patch"
2547
- }
2548
- },
2549
- "application/json-patch+json": {
2550
- "schema": {
2551
- "$ref": "#/components/schemas/Patch"
2552
- }
2553
- },
2554
- "application/merge-patch+json": {
2555
- "schema": {
2556
- "$ref": "#/components/schemas/Patch"
2557
- }
2558
- },
2559
- "application/strategic-merge-patch+json": {
2560
- "schema": {
2561
- "$ref": "#/components/schemas/Patch"
2562
- }
2563
- }
2564
- },
2565
- "required": true
2566
- },
2567
2757
  "responses": {
2568
2758
  "200": {
2569
2759
  "description": "OK",
2570
2760
  "content": {
2571
- "application/json": {
2572
- "schema": {
2573
- "$ref": "#/components/schemas/User"
2574
- }
2575
- },
2576
- "application/yaml": {
2577
- "schema": {
2578
- "$ref": "#/components/schemas/User"
2579
- }
2580
- }
2581
- }
2582
- },
2583
- "201": {
2584
- "description": "Created",
2585
- "content": {
2586
- "application/json": {
2587
- "schema": {
2588
- "$ref": "#/components/schemas/User"
2589
- }
2590
- },
2591
- "application/yaml": {
2761
+ "*/*": {
2592
2762
  "schema": {
2593
- "$ref": "#/components/schemas/User"
2763
+ "$ref": "#/components/schemas/github.com~1grafana~1grafana~1pkg~1apis~1iam~1v0alpha1.TeamMemberList"
2594
2764
  }
2595
2765
  }
2596
2766
  }
2597
2767
  }
2598
2768
  },
2599
- "x-kubernetes-action": "patch",
2769
+ "x-kubernetes-action": "connect",
2600
2770
  "x-kubernetes-group-version-kind": {
2601
2771
  "group": "iam.grafana.app",
2602
2772
  "version": "v0alpha1",
2603
- "kind": "User"
2773
+ "kind": "TeamMemberList"
2604
2774
  }
2605
2775
  },
2606
2776
  "parameters": [
2607
2777
  {
2608
2778
  "name": "name",
2609
2779
  "in": "path",
2610
- "description": "name of the User",
2780
+ "description": "name of the TeamMemberList",
2611
2781
  "required": true,
2612
2782
  "schema": {
2613
2783
  "type": "string",
2614
2784
  "uniqueItems": true
2615
2785
  }
2616
- },
2617
- {
2618
- "name": "pretty",
2619
- "in": "query",
2620
- "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
2621
- "schema": {
2622
- "type": "string",
2623
- "uniqueItems": true
2624
- }
2625
2786
  }
2626
2787
  ]
2627
2788
  },
2628
- "/users/{name}/teams": {
2629
- "get": {
2789
+ "/teams/{name}/removemember": {
2790
+ "post": {
2791
+ "tags": ["Team"],
2792
+ "description": "connect POST requests to removemember of Team",
2793
+ "operationId": "createTeamRemovemember",
2794
+ "responses": {
2795
+ "200": {
2796
+ "description": "OK",
2797
+ "content": {
2798
+ "*/*": {
2799
+ "schema": {
2800
+ "$ref": "#/components/schemas/github.com~1grafana~1grafana~1pkg~1apis~1iam~1v0alpha1.TeamMemberList"
2801
+ }
2802
+ }
2803
+ }
2804
+ }
2805
+ },
2806
+ "x-kubernetes-action": "connect",
2807
+ "x-kubernetes-group-version-kind": {
2808
+ "group": "iam.grafana.app",
2809
+ "version": "v0alpha1",
2810
+ "kind": "TeamMemberList"
2811
+ }
2812
+ },
2813
+ "parameters": [
2814
+ {
2815
+ "name": "name",
2816
+ "in": "path",
2817
+ "description": "name of the TeamMemberList",
2818
+ "required": true,
2819
+ "schema": {
2820
+ "type": "string",
2821
+ "uniqueItems": true
2822
+ }
2823
+ }
2824
+ ]
2825
+ },
2826
+ "/users": {
2827
+ "get": {
2828
+ "tags": ["User"],
2829
+ "description": "list or watch objects of kind User",
2830
+ "operationId": "listUser",
2831
+ "parameters": [
2832
+ {
2833
+ "name": "continue",
2834
+ "in": "query",
2835
+ "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.",
2836
+ "schema": {
2837
+ "type": "string",
2838
+ "uniqueItems": true
2839
+ }
2840
+ },
2841
+ {
2842
+ "name": "fieldSelector",
2843
+ "in": "query",
2844
+ "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.",
2845
+ "schema": {
2846
+ "type": "string",
2847
+ "uniqueItems": true
2848
+ }
2849
+ },
2850
+ {
2851
+ "name": "labelSelector",
2852
+ "in": "query",
2853
+ "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.",
2854
+ "schema": {
2855
+ "type": "string",
2856
+ "uniqueItems": true
2857
+ }
2858
+ },
2859
+ {
2860
+ "name": "limit",
2861
+ "in": "query",
2862
+ "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.",
2863
+ "schema": {
2864
+ "type": "integer",
2865
+ "uniqueItems": true
2866
+ }
2867
+ },
2868
+ {
2869
+ "name": "resourceVersion",
2870
+ "in": "query",
2871
+ "description": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
2872
+ "schema": {
2873
+ "type": "string",
2874
+ "uniqueItems": true
2875
+ }
2876
+ },
2877
+ {
2878
+ "name": "timeoutSeconds",
2879
+ "in": "query",
2880
+ "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.",
2881
+ "schema": {
2882
+ "type": "integer",
2883
+ "uniqueItems": true
2884
+ }
2885
+ },
2886
+ {
2887
+ "name": "watch",
2888
+ "in": "query",
2889
+ "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.",
2890
+ "schema": {
2891
+ "type": "boolean",
2892
+ "uniqueItems": true
2893
+ }
2894
+ }
2895
+ ],
2896
+ "responses": {
2897
+ "200": {
2898
+ "description": "OK",
2899
+ "content": {
2900
+ "application/json": {
2901
+ "schema": {
2902
+ "$ref": "#/components/schemas/UserList"
2903
+ }
2904
+ },
2905
+ "application/json;stream=watch": {
2906
+ "schema": {
2907
+ "$ref": "#/components/schemas/UserList"
2908
+ }
2909
+ },
2910
+ "application/yaml": {
2911
+ "schema": {
2912
+ "$ref": "#/components/schemas/UserList"
2913
+ }
2914
+ }
2915
+ }
2916
+ }
2917
+ },
2918
+ "x-kubernetes-action": "list",
2919
+ "x-kubernetes-group-version-kind": {
2920
+ "group": "iam.grafana.app",
2921
+ "version": "v0alpha1",
2922
+ "kind": "User"
2923
+ }
2924
+ },
2925
+ "post": {
2926
+ "tags": ["User"],
2927
+ "description": "create an User",
2928
+ "operationId": "createUser",
2929
+ "parameters": [
2930
+ {
2931
+ "name": "dryRun",
2932
+ "in": "query",
2933
+ "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
2934
+ "schema": {
2935
+ "type": "string",
2936
+ "uniqueItems": true
2937
+ }
2938
+ },
2939
+ {
2940
+ "name": "fieldManager",
2941
+ "in": "query",
2942
+ "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.",
2943
+ "schema": {
2944
+ "type": "string",
2945
+ "uniqueItems": true
2946
+ }
2947
+ },
2948
+ {
2949
+ "name": "fieldValidation",
2950
+ "in": "query",
2951
+ "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.",
2952
+ "schema": {
2953
+ "type": "string",
2954
+ "uniqueItems": true
2955
+ }
2956
+ }
2957
+ ],
2958
+ "requestBody": {
2959
+ "content": {
2960
+ "application/json": {
2961
+ "schema": {
2962
+ "$ref": "#/components/schemas/User"
2963
+ }
2964
+ },
2965
+ "application/yaml": {
2966
+ "schema": {
2967
+ "$ref": "#/components/schemas/User"
2968
+ }
2969
+ }
2970
+ },
2971
+ "required": true
2972
+ },
2973
+ "responses": {
2974
+ "200": {
2975
+ "description": "OK",
2976
+ "content": {
2977
+ "application/json": {
2978
+ "schema": {
2979
+ "$ref": "#/components/schemas/User"
2980
+ }
2981
+ },
2982
+ "application/yaml": {
2983
+ "schema": {
2984
+ "$ref": "#/components/schemas/User"
2985
+ }
2986
+ }
2987
+ }
2988
+ },
2989
+ "201": {
2990
+ "description": "Created",
2991
+ "content": {
2992
+ "application/json": {
2993
+ "schema": {
2994
+ "$ref": "#/components/schemas/User"
2995
+ }
2996
+ },
2997
+ "application/yaml": {
2998
+ "schema": {
2999
+ "$ref": "#/components/schemas/User"
3000
+ }
3001
+ }
3002
+ }
3003
+ },
3004
+ "202": {
3005
+ "description": "Accepted",
3006
+ "content": {
3007
+ "application/json": {
3008
+ "schema": {
3009
+ "$ref": "#/components/schemas/User"
3010
+ }
3011
+ },
3012
+ "application/yaml": {
3013
+ "schema": {
3014
+ "$ref": "#/components/schemas/User"
3015
+ }
3016
+ }
3017
+ }
3018
+ }
3019
+ },
3020
+ "x-kubernetes-action": "post",
3021
+ "x-kubernetes-group-version-kind": {
3022
+ "group": "iam.grafana.app",
3023
+ "version": "v0alpha1",
3024
+ "kind": "User"
3025
+ }
3026
+ },
3027
+ "parameters": [
3028
+ {
3029
+ "name": "pretty",
3030
+ "in": "query",
3031
+ "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
3032
+ "schema": {
3033
+ "type": "string",
3034
+ "uniqueItems": true
3035
+ }
3036
+ }
3037
+ ]
3038
+ },
3039
+ "/users/search": {
3040
+ "post": {
3041
+ "tags": ["Search"],
3042
+ "description": "Search User resources in a namespace.",
3043
+ "operationId": "listUserSearchV0alpha1",
3044
+ "parameters": [],
3045
+ "requestBody": {
3046
+ "description": "A SearchQuery describing what to match, sort and return.",
3047
+ "content": {
3048
+ "application/json": {
3049
+ "schema": {
3050
+ "$ref": "#/components/schemas/SearchQuery"
3051
+ },
3052
+ "example": {
3053
+ "kind": "SearchQuery",
3054
+ "apiVersion": "search.grafana.app/v0alpha1",
3055
+ "facetLimit": 0,
3056
+ "limit": 10
3057
+ }
3058
+ }
3059
+ },
3060
+ "required": true
3061
+ },
3062
+ "responses": {
3063
+ "200": {
3064
+ "description": "A SearchResults envelope.",
3065
+ "content": {
3066
+ "application/json": {
3067
+ "schema": {
3068
+ "$ref": "#/components/schemas/SearchResults"
3069
+ }
3070
+ }
3071
+ }
3072
+ }
3073
+ }
3074
+ }
3075
+ },
3076
+ "/users/{name}": {
3077
+ "get": {
3078
+ "tags": ["User"],
3079
+ "description": "read the specified User",
3080
+ "operationId": "getUser",
3081
+ "responses": {
3082
+ "200": {
3083
+ "description": "OK",
3084
+ "content": {
3085
+ "application/json": {
3086
+ "schema": {
3087
+ "$ref": "#/components/schemas/User"
3088
+ }
3089
+ },
3090
+ "application/yaml": {
3091
+ "schema": {
3092
+ "$ref": "#/components/schemas/User"
3093
+ }
3094
+ }
3095
+ }
3096
+ }
3097
+ },
3098
+ "x-kubernetes-action": "get",
3099
+ "x-kubernetes-group-version-kind": {
3100
+ "group": "iam.grafana.app",
3101
+ "version": "v0alpha1",
3102
+ "kind": "User"
3103
+ }
3104
+ },
3105
+ "put": {
3106
+ "tags": ["User"],
3107
+ "description": "replace the specified User",
3108
+ "operationId": "replaceUser",
3109
+ "parameters": [
3110
+ {
3111
+ "name": "dryRun",
3112
+ "in": "query",
3113
+ "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
3114
+ "schema": {
3115
+ "type": "string",
3116
+ "uniqueItems": true
3117
+ }
3118
+ },
3119
+ {
3120
+ "name": "fieldManager",
3121
+ "in": "query",
3122
+ "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.",
3123
+ "schema": {
3124
+ "type": "string",
3125
+ "uniqueItems": true
3126
+ }
3127
+ },
3128
+ {
3129
+ "name": "fieldValidation",
3130
+ "in": "query",
3131
+ "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.",
3132
+ "schema": {
3133
+ "type": "string",
3134
+ "uniqueItems": true
3135
+ }
3136
+ }
3137
+ ],
3138
+ "requestBody": {
3139
+ "content": {
3140
+ "application/json": {
3141
+ "schema": {
3142
+ "$ref": "#/components/schemas/User"
3143
+ }
3144
+ },
3145
+ "application/yaml": {
3146
+ "schema": {
3147
+ "$ref": "#/components/schemas/User"
3148
+ }
3149
+ }
3150
+ },
3151
+ "required": true
3152
+ },
3153
+ "responses": {
3154
+ "200": {
3155
+ "description": "OK",
3156
+ "content": {
3157
+ "application/json": {
3158
+ "schema": {
3159
+ "$ref": "#/components/schemas/User"
3160
+ }
3161
+ },
3162
+ "application/yaml": {
3163
+ "schema": {
3164
+ "$ref": "#/components/schemas/User"
3165
+ }
3166
+ }
3167
+ }
3168
+ },
3169
+ "201": {
3170
+ "description": "Created",
3171
+ "content": {
3172
+ "application/json": {
3173
+ "schema": {
3174
+ "$ref": "#/components/schemas/User"
3175
+ }
3176
+ },
3177
+ "application/yaml": {
3178
+ "schema": {
3179
+ "$ref": "#/components/schemas/User"
3180
+ }
3181
+ }
3182
+ }
3183
+ }
3184
+ },
3185
+ "x-kubernetes-action": "put",
3186
+ "x-kubernetes-group-version-kind": {
3187
+ "group": "iam.grafana.app",
3188
+ "version": "v0alpha1",
3189
+ "kind": "User"
3190
+ }
3191
+ },
3192
+ "delete": {
3193
+ "tags": ["User"],
3194
+ "description": "delete an User",
3195
+ "operationId": "deleteUser",
3196
+ "parameters": [
3197
+ {
3198
+ "name": "dryRun",
3199
+ "in": "query",
3200
+ "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
3201
+ "schema": {
3202
+ "type": "string",
3203
+ "uniqueItems": true
3204
+ }
3205
+ },
3206
+ {
3207
+ "name": "gracePeriodSeconds",
3208
+ "in": "query",
3209
+ "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.",
3210
+ "schema": {
3211
+ "type": "integer",
3212
+ "uniqueItems": true
3213
+ }
3214
+ },
3215
+ {
3216
+ "name": "ignoreStoreReadErrorWithClusterBreakingPotential",
3217
+ "in": "query",
3218
+ "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it",
3219
+ "schema": {
3220
+ "type": "boolean",
3221
+ "uniqueItems": true
3222
+ }
3223
+ },
3224
+ {
3225
+ "name": "orphanDependents",
3226
+ "in": "query",
3227
+ "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.",
3228
+ "schema": {
3229
+ "type": "boolean",
3230
+ "uniqueItems": true
3231
+ }
3232
+ },
3233
+ {
3234
+ "name": "propagationPolicy",
3235
+ "in": "query",
3236
+ "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.",
3237
+ "schema": {
3238
+ "type": "string",
3239
+ "uniqueItems": true
3240
+ }
3241
+ }
3242
+ ],
3243
+ "responses": {
3244
+ "200": {
3245
+ "description": "OK",
3246
+ "content": {
3247
+ "application/json": {
3248
+ "schema": {
3249
+ "$ref": "#/components/schemas/Status"
3250
+ }
3251
+ },
3252
+ "application/yaml": {
3253
+ "schema": {
3254
+ "$ref": "#/components/schemas/Status"
3255
+ }
3256
+ }
3257
+ }
3258
+ },
3259
+ "202": {
3260
+ "description": "Accepted",
3261
+ "content": {
3262
+ "application/json": {
3263
+ "schema": {
3264
+ "$ref": "#/components/schemas/Status"
3265
+ }
3266
+ },
3267
+ "application/yaml": {
3268
+ "schema": {
3269
+ "$ref": "#/components/schemas/Status"
3270
+ }
3271
+ }
3272
+ }
3273
+ }
3274
+ },
3275
+ "x-kubernetes-action": "delete",
3276
+ "x-kubernetes-group-version-kind": {
3277
+ "group": "iam.grafana.app",
3278
+ "version": "v0alpha1",
3279
+ "kind": "User"
3280
+ }
3281
+ },
3282
+ "patch": {
3283
+ "tags": ["User"],
3284
+ "description": "partially update the specified User",
3285
+ "operationId": "updateUser",
3286
+ "parameters": [
3287
+ {
3288
+ "name": "dryRun",
3289
+ "in": "query",
3290
+ "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
3291
+ "schema": {
3292
+ "type": "string",
3293
+ "uniqueItems": true
3294
+ }
3295
+ },
3296
+ {
3297
+ "name": "fieldManager",
3298
+ "in": "query",
3299
+ "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).",
3300
+ "schema": {
3301
+ "type": "string",
3302
+ "uniqueItems": true
3303
+ }
3304
+ },
3305
+ {
3306
+ "name": "fieldValidation",
3307
+ "in": "query",
3308
+ "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.",
3309
+ "schema": {
3310
+ "type": "string",
3311
+ "uniqueItems": true
3312
+ }
3313
+ },
3314
+ {
3315
+ "name": "force",
3316
+ "in": "query",
3317
+ "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.",
3318
+ "schema": {
3319
+ "type": "boolean",
3320
+ "uniqueItems": true
3321
+ }
3322
+ }
3323
+ ],
3324
+ "requestBody": {
3325
+ "content": {
3326
+ "application/apply-patch+yaml": {
3327
+ "schema": {
3328
+ "$ref": "#/components/schemas/Patch"
3329
+ }
3330
+ },
3331
+ "application/json-patch+json": {
3332
+ "schema": {
3333
+ "$ref": "#/components/schemas/Patch"
3334
+ }
3335
+ },
3336
+ "application/merge-patch+json": {
3337
+ "schema": {
3338
+ "$ref": "#/components/schemas/Patch"
3339
+ }
3340
+ },
3341
+ "application/strategic-merge-patch+json": {
3342
+ "schema": {
3343
+ "$ref": "#/components/schemas/Patch"
3344
+ }
3345
+ }
3346
+ },
3347
+ "required": true
3348
+ },
3349
+ "responses": {
3350
+ "200": {
3351
+ "description": "OK",
3352
+ "content": {
3353
+ "application/json": {
3354
+ "schema": {
3355
+ "$ref": "#/components/schemas/User"
3356
+ }
3357
+ },
3358
+ "application/yaml": {
3359
+ "schema": {
3360
+ "$ref": "#/components/schemas/User"
3361
+ }
3362
+ }
3363
+ }
3364
+ },
3365
+ "201": {
3366
+ "description": "Created",
3367
+ "content": {
3368
+ "application/json": {
3369
+ "schema": {
3370
+ "$ref": "#/components/schemas/User"
3371
+ }
3372
+ },
3373
+ "application/yaml": {
3374
+ "schema": {
3375
+ "$ref": "#/components/schemas/User"
3376
+ }
3377
+ }
3378
+ }
3379
+ }
3380
+ },
3381
+ "x-kubernetes-action": "patch",
3382
+ "x-kubernetes-group-version-kind": {
3383
+ "group": "iam.grafana.app",
3384
+ "version": "v0alpha1",
3385
+ "kind": "User"
3386
+ }
3387
+ },
3388
+ "parameters": [
3389
+ {
3390
+ "name": "name",
3391
+ "in": "path",
3392
+ "description": "name of the User",
3393
+ "required": true,
3394
+ "schema": {
3395
+ "type": "string",
3396
+ "uniqueItems": true
3397
+ }
3398
+ },
3399
+ {
3400
+ "name": "pretty",
3401
+ "in": "query",
3402
+ "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
3403
+ "schema": {
3404
+ "type": "string",
3405
+ "uniqueItems": true
3406
+ }
3407
+ }
3408
+ ]
3409
+ },
3410
+ "/users/{name}/status": {
3411
+ "get": {
3412
+ "tags": ["User"],
3413
+ "description": "read status of the specified User",
3414
+ "operationId": "getUserStatus",
3415
+ "responses": {
3416
+ "200": {
3417
+ "description": "OK",
3418
+ "content": {
3419
+ "application/json": {
3420
+ "schema": {
3421
+ "$ref": "#/components/schemas/User"
3422
+ }
3423
+ },
3424
+ "application/yaml": {
3425
+ "schema": {
3426
+ "$ref": "#/components/schemas/User"
3427
+ }
3428
+ }
3429
+ }
3430
+ }
3431
+ },
3432
+ "x-kubernetes-action": "get",
3433
+ "x-kubernetes-group-version-kind": {
3434
+ "group": "iam.grafana.app",
3435
+ "version": "v0alpha1",
3436
+ "kind": "User"
3437
+ }
3438
+ },
3439
+ "put": {
3440
+ "tags": ["User"],
3441
+ "description": "replace status of the specified User",
3442
+ "operationId": "replaceUserStatus",
3443
+ "parameters": [
3444
+ {
3445
+ "name": "dryRun",
3446
+ "in": "query",
3447
+ "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
3448
+ "schema": {
3449
+ "type": "string",
3450
+ "uniqueItems": true
3451
+ }
3452
+ },
3453
+ {
3454
+ "name": "fieldManager",
3455
+ "in": "query",
3456
+ "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.",
3457
+ "schema": {
3458
+ "type": "string",
3459
+ "uniqueItems": true
3460
+ }
3461
+ },
3462
+ {
3463
+ "name": "fieldValidation",
3464
+ "in": "query",
3465
+ "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.",
3466
+ "schema": {
3467
+ "type": "string",
3468
+ "uniqueItems": true
3469
+ }
3470
+ }
3471
+ ],
3472
+ "requestBody": {
3473
+ "content": {
3474
+ "application/json": {
3475
+ "schema": {
3476
+ "$ref": "#/components/schemas/User"
3477
+ }
3478
+ },
3479
+ "application/yaml": {
3480
+ "schema": {
3481
+ "$ref": "#/components/schemas/User"
3482
+ }
3483
+ }
3484
+ },
3485
+ "required": true
3486
+ },
3487
+ "responses": {
3488
+ "200": {
3489
+ "description": "OK",
3490
+ "content": {
3491
+ "application/json": {
3492
+ "schema": {
3493
+ "$ref": "#/components/schemas/User"
3494
+ }
3495
+ },
3496
+ "application/yaml": {
3497
+ "schema": {
3498
+ "$ref": "#/components/schemas/User"
3499
+ }
3500
+ }
3501
+ }
3502
+ },
3503
+ "201": {
3504
+ "description": "Created",
3505
+ "content": {
3506
+ "application/json": {
3507
+ "schema": {
3508
+ "$ref": "#/components/schemas/User"
3509
+ }
3510
+ },
3511
+ "application/yaml": {
3512
+ "schema": {
3513
+ "$ref": "#/components/schemas/User"
3514
+ }
3515
+ }
3516
+ }
3517
+ }
3518
+ },
3519
+ "x-kubernetes-action": "put",
3520
+ "x-kubernetes-group-version-kind": {
3521
+ "group": "iam.grafana.app",
3522
+ "version": "v0alpha1",
3523
+ "kind": "User"
3524
+ }
3525
+ },
3526
+ "patch": {
3527
+ "tags": ["User"],
3528
+ "description": "partially update status of the specified User",
3529
+ "operationId": "updateUserStatus",
3530
+ "parameters": [
3531
+ {
3532
+ "name": "dryRun",
3533
+ "in": "query",
3534
+ "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed",
3535
+ "schema": {
3536
+ "type": "string",
3537
+ "uniqueItems": true
3538
+ }
3539
+ },
3540
+ {
3541
+ "name": "fieldManager",
3542
+ "in": "query",
3543
+ "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).",
3544
+ "schema": {
3545
+ "type": "string",
3546
+ "uniqueItems": true
3547
+ }
3548
+ },
3549
+ {
3550
+ "name": "fieldValidation",
3551
+ "in": "query",
3552
+ "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.",
3553
+ "schema": {
3554
+ "type": "string",
3555
+ "uniqueItems": true
3556
+ }
3557
+ },
3558
+ {
3559
+ "name": "force",
3560
+ "in": "query",
3561
+ "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.",
3562
+ "schema": {
3563
+ "type": "boolean",
3564
+ "uniqueItems": true
3565
+ }
3566
+ }
3567
+ ],
3568
+ "requestBody": {
3569
+ "content": {
3570
+ "application/apply-patch+yaml": {
3571
+ "schema": {
3572
+ "$ref": "#/components/schemas/Patch"
3573
+ }
3574
+ },
3575
+ "application/json-patch+json": {
3576
+ "schema": {
3577
+ "$ref": "#/components/schemas/Patch"
3578
+ }
3579
+ },
3580
+ "application/merge-patch+json": {
3581
+ "schema": {
3582
+ "$ref": "#/components/schemas/Patch"
3583
+ }
3584
+ },
3585
+ "application/strategic-merge-patch+json": {
3586
+ "schema": {
3587
+ "$ref": "#/components/schemas/Patch"
3588
+ }
3589
+ }
3590
+ },
3591
+ "required": true
3592
+ },
3593
+ "responses": {
3594
+ "200": {
3595
+ "description": "OK",
3596
+ "content": {
3597
+ "application/json": {
3598
+ "schema": {
3599
+ "$ref": "#/components/schemas/User"
3600
+ }
3601
+ },
3602
+ "application/yaml": {
3603
+ "schema": {
3604
+ "$ref": "#/components/schemas/User"
3605
+ }
3606
+ }
3607
+ }
3608
+ },
3609
+ "201": {
3610
+ "description": "Created",
3611
+ "content": {
3612
+ "application/json": {
3613
+ "schema": {
3614
+ "$ref": "#/components/schemas/User"
3615
+ }
3616
+ },
3617
+ "application/yaml": {
3618
+ "schema": {
3619
+ "$ref": "#/components/schemas/User"
3620
+ }
3621
+ }
3622
+ }
3623
+ }
3624
+ },
3625
+ "x-kubernetes-action": "patch",
3626
+ "x-kubernetes-group-version-kind": {
3627
+ "group": "iam.grafana.app",
3628
+ "version": "v0alpha1",
3629
+ "kind": "User"
3630
+ }
3631
+ },
3632
+ "parameters": [
3633
+ {
3634
+ "name": "name",
3635
+ "in": "path",
3636
+ "description": "name of the User",
3637
+ "required": true,
3638
+ "schema": {
3639
+ "type": "string",
3640
+ "uniqueItems": true
3641
+ }
3642
+ },
3643
+ {
3644
+ "name": "pretty",
3645
+ "in": "query",
3646
+ "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).",
3647
+ "schema": {
3648
+ "type": "string",
3649
+ "uniqueItems": true
3650
+ }
3651
+ }
3652
+ ]
3653
+ },
3654
+ "/users/{name}/teams": {
3655
+ "get": {
2630
3656
  "tags": ["User"],
2631
3657
  "description": "connect GET requests to teams of User",
2632
3658
  "operationId": "getUserTeams",
@@ -2679,31 +3705,170 @@
2679
3705
  "type": "string",
2680
3706
  "uniqueItems": true
2681
3707
  }
2682
- }
2683
- ]
3708
+ }
3709
+ ]
3710
+ },
3711
+ "/users/~": {
3712
+ "get": {
3713
+ "tags": ["User"],
3714
+ "description": "Show display information for the currently authenticated identity. Deprecated: use /apis/iam.grafana.app/v0alpha1/whoami instead.",
3715
+ "operationId": "getCurrentUserDisplay",
3716
+ "parameters": [],
3717
+ "responses": {
3718
+ "200": {
3719
+ "content": {
3720
+ "application/json": {
3721
+ "schema": {
3722
+ "$ref": "#/components/schemas/CurrentUserInfo"
3723
+ }
3724
+ }
3725
+ }
3726
+ }
3727
+ },
3728
+ "deprecated": true
3729
+ }
3730
+ },
3731
+ "/users/~/permissions": {
3732
+ "get": {
3733
+ "tags": ["User"],
3734
+ "description": "Get effective permissions for the currently authenticated identity. Deprecated: do not use for new integrations.",
3735
+ "operationId": "getCurrentUserPermissions",
3736
+ "parameters": [],
3737
+ "responses": {
3738
+ "200": {
3739
+ "content": {
3740
+ "application/json": {
3741
+ "schema": {
3742
+ "$ref": "#/components/schemas/UserPermissions"
3743
+ }
3744
+ }
3745
+ }
3746
+ }
3747
+ },
3748
+ "deprecated": true
3749
+ }
2684
3750
  },
2685
- "/users/~": {
3751
+ "/whoami": {
2686
3752
  "get": {
2687
- "tags": ["Display"],
3753
+ "tags": ["User"],
2688
3754
  "description": "Show display information for the currently authenticated identity",
2689
- "operationId": "getCurrentUserDisplay",
2690
- "parameters": [],
3755
+ "operationId": "getWhoAmI",
2691
3756
  "responses": {
2692
3757
  "200": {
2693
3758
  "content": {
2694
3759
  "application/json": {
2695
3760
  "schema": {
2696
- "$ref": "#/components/schemas/Display"
3761
+ "$ref": "#/components/schemas/CurrentUserInfo"
2697
3762
  }
2698
3763
  }
2699
3764
  }
2700
3765
  }
2701
3766
  }
2702
3767
  }
3768
+ },
3769
+ "/whoami/permissions": {
3770
+ "get": {
3771
+ "tags": ["User"],
3772
+ "description": "Get effective permissions for the currently authenticated identity. Deprecated: do not use for new integrations.",
3773
+ "operationId": "getWhoAmIPermissions",
3774
+ "responses": {
3775
+ "200": {
3776
+ "content": {
3777
+ "application/json": {
3778
+ "schema": {
3779
+ "$ref": "#/components/schemas/UserPermissions"
3780
+ }
3781
+ }
3782
+ }
3783
+ }
3784
+ },
3785
+ "deprecated": true
3786
+ }
2703
3787
  }
2704
3788
  },
2705
3789
  "components": {
2706
3790
  "schemas": {
3791
+ "AuthInfo": {
3792
+ "type": "object",
3793
+ "required": ["metadata", "spec"],
3794
+ "properties": {
3795
+ "apiVersion": {
3796
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
3797
+ "type": "string"
3798
+ },
3799
+ "kind": {
3800
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
3801
+ "type": "string"
3802
+ },
3803
+ "metadata": {
3804
+ "default": {}
3805
+ },
3806
+ "spec": {
3807
+ "description": "Spec is the spec of the AuthInfo",
3808
+ "default": {}
3809
+ }
3810
+ }
3811
+ },
3812
+ "AuthInfoList": {
3813
+ "type": "object",
3814
+ "required": ["metadata", "items"],
3815
+ "properties": {
3816
+ "apiVersion": {
3817
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
3818
+ "type": "string"
3819
+ },
3820
+ "items": {
3821
+ "type": "array",
3822
+ "items": {}
3823
+ },
3824
+ "kind": {
3825
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
3826
+ "type": "string"
3827
+ },
3828
+ "metadata": {
3829
+ "default": {}
3830
+ }
3831
+ }
3832
+ },
3833
+ "AuthInfoSpec": {
3834
+ "type": "object",
3835
+ "required": ["userRef", "authModule", "authID"],
3836
+ "properties": {
3837
+ "authID": {
3838
+ "description": "authID is the identifier the auth provider returns at login (OAuth subject, LDAP DN, SAML NameID).",
3839
+ "type": "string",
3840
+ "default": ""
3841
+ },
3842
+ "authModule": {
3843
+ "description": "authModule is the external auth provider the user is linked through (e.g. \"github\", \"ldap\", \"saml\").",
3844
+ "type": "string",
3845
+ "default": ""
3846
+ },
3847
+ "created": {
3848
+ "description": "created is the creation timestamp of the auth link, in epoch milliseconds.",
3849
+ "type": "integer",
3850
+ "format": "int64"
3851
+ },
3852
+ "externalUID": {
3853
+ "description": "externalUID is the external unique identifier of the user, used for provisioning systems such as SCIM to correlate the user without relying on authID.",
3854
+ "type": "string"
3855
+ },
3856
+ "userRef": {
3857
+ "default": {}
3858
+ }
3859
+ }
3860
+ },
3861
+ "AuthInfoUserRef": {
3862
+ "type": "object",
3863
+ "required": ["name"],
3864
+ "properties": {
3865
+ "name": {
3866
+ "description": "Name is the unique identifier (UID) for a user.",
3867
+ "type": "string",
3868
+ "default": ""
3869
+ }
3870
+ }
3871
+ },
2707
3872
  "CreateSearchExternalGroupMappingsBody": {
2708
3873
  "type": "object",
2709
3874
  "required": ["teams", "totalHits"],
@@ -2712,8 +3877,7 @@
2712
3877
  "description": "Deduplicated team UIDs whose spec.externalGroups intersect the request set.",
2713
3878
  "type": "array",
2714
3879
  "items": {
2715
- "type": "string",
2716
- "default": ""
3880
+ "type": "string"
2717
3881
  }
2718
3882
  },
2719
3883
  "totalHits": {
@@ -2740,8 +3904,7 @@
2740
3904
  "description": "Deduplicated team UIDs whose spec.externalGroups intersect the request set.",
2741
3905
  "type": "array",
2742
3906
  "items": {
2743
- "type": "string",
2744
- "default": ""
3907
+ "type": "string"
2745
3908
  }
2746
3909
  },
2747
3910
  "totalHits": {
@@ -2974,9 +4137,7 @@
2974
4137
  },
2975
4138
  "items": {
2976
4139
  "type": "array",
2977
- "items": {
2978
- "default": {}
2979
- }
4140
+ "items": {}
2980
4141
  },
2981
4142
  "kind": {
2982
4143
  "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
@@ -3017,9 +4178,7 @@
3017
4178
  "properties": {
3018
4179
  "hits": {
3019
4180
  "type": "array",
3020
- "items": {
3021
- "default": {}
3022
- }
4181
+ "items": {}
3023
4182
  },
3024
4183
  "maxScore": {
3025
4184
  "type": "number",
@@ -3053,9 +4212,7 @@
3053
4212
  },
3054
4213
  "hits": {
3055
4214
  "type": "array",
3056
- "items": {
3057
- "default": {}
3058
- }
4215
+ "items": {}
3059
4216
  },
3060
4217
  "kind": {
3061
4218
  "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
@@ -3090,8 +4247,7 @@
3090
4247
  "accessControl": {
3091
4248
  "type": "object",
3092
4249
  "additionalProperties": {
3093
- "type": "boolean",
3094
- "default": false
4250
+ "type": "boolean"
3095
4251
  }
3096
4252
  },
3097
4253
  "email": {
@@ -3130,9 +4286,7 @@
3130
4286
  "properties": {
3131
4287
  "hits": {
3132
4288
  "type": "array",
3133
- "items": {
3134
- "default": {}
3135
- }
4289
+ "items": {}
3136
4290
  },
3137
4291
  "maxScore": {
3138
4292
  "type": "number",
@@ -3176,8 +4330,7 @@
3176
4330
  "accessControl": {
3177
4331
  "type": "object",
3178
4332
  "additionalProperties": {
3179
- "type": "boolean",
3180
- "default": false
4333
+ "type": "boolean"
3181
4334
  }
3182
4335
  },
3183
4336
  "created": {
@@ -3198,8 +4351,7 @@
3198
4351
  "description": "Auth module identifiers the user is externally synced with.",
3199
4352
  "type": "array",
3200
4353
  "items": {
3201
- "type": "string",
3202
- "default": ""
4354
+ "type": "string"
3203
4355
  }
3204
4356
  },
3205
4357
  "internalId": {
@@ -3311,8 +4463,7 @@
3311
4463
  "externalGroups": {
3312
4464
  "type": "array",
3313
4465
  "items": {
3314
- "type": "string",
3315
- "default": ""
4466
+ "type": "string"
3316
4467
  }
3317
4468
  }
3318
4469
  }
@@ -3328,8 +4479,7 @@
3328
4479
  "externalGroups": {
3329
4480
  "type": "array",
3330
4481
  "items": {
3331
- "type": "string",
3332
- "default": ""
4482
+ "type": "string"
3333
4483
  }
3334
4484
  },
3335
4485
  "kind": {
@@ -3345,15 +4495,82 @@
3345
4495
  }
3346
4496
  ]
3347
4497
  },
4498
+ "GetTeamLBACRulesForSubjectRouteBody": {
4499
+ "type": "object",
4500
+ "required": ["team_filters"],
4501
+ "properties": {
4502
+ "team_filters": {
4503
+ "type": "object",
4504
+ "additionalProperties": {
4505
+ "type": "array",
4506
+ "items": {
4507
+ "type": "string"
4508
+ }
4509
+ }
4510
+ }
4511
+ }
4512
+ },
4513
+ "GetTeamLBACRulesForSubjectRouteResponse": {
4514
+ "type": "object",
4515
+ "required": ["team_filters"],
4516
+ "properties": {
4517
+ "apiVersion": {
4518
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
4519
+ "type": "string"
4520
+ },
4521
+ "kind": {
4522
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
4523
+ "type": "string"
4524
+ },
4525
+ "team_filters": {
4526
+ "type": "object",
4527
+ "additionalProperties": {
4528
+ "type": "array",
4529
+ "items": {
4530
+ "type": "string"
4531
+ }
4532
+ }
4533
+ }
4534
+ }
4535
+ },
4536
+ "GetTeamLBACUsageResponse": {
4537
+ "type": "object",
4538
+ "required": ["counts"],
4539
+ "properties": {
4540
+ "counts": {
4541
+ "type": "object",
4542
+ "additionalProperties": {}
4543
+ }
4544
+ }
4545
+ },
4546
+ "GetTeamLBACUsageV0alpha1ResponseCounts": {
4547
+ "type": "object",
4548
+ "required": ["datasources", "teams", "filters"],
4549
+ "properties": {
4550
+ "datasources": {
4551
+ "type": "integer",
4552
+ "format": "int64",
4553
+ "default": 0
4554
+ },
4555
+ "filters": {
4556
+ "type": "integer",
4557
+ "format": "int64",
4558
+ "default": 0
4559
+ },
4560
+ "teams": {
4561
+ "type": "integer",
4562
+ "format": "int64",
4563
+ "default": 0
4564
+ }
4565
+ }
4566
+ },
3348
4567
  "GetTeamMembersBody": {
3349
4568
  "type": "object",
3350
4569
  "required": ["items"],
3351
4570
  "properties": {
3352
4571
  "items": {
3353
4572
  "type": "array",
3354
- "items": {
3355
- "default": {}
3356
- }
4573
+ "items": {}
3357
4574
  }
3358
4575
  }
3359
4576
  },
@@ -3367,9 +4584,7 @@
3367
4584
  },
3368
4585
  "items": {
3369
4586
  "type": "array",
3370
- "items": {
3371
- "default": {}
3372
- }
4587
+ "items": {}
3373
4588
  },
3374
4589
  "kind": {
3375
4590
  "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
@@ -3405,9 +4620,7 @@
3405
4620
  "properties": {
3406
4621
  "items": {
3407
4622
  "type": "array",
3408
- "items": {
3409
- "default": {}
3410
- }
4623
+ "items": {}
3411
4624
  }
3412
4625
  }
3413
4626
  },
@@ -3421,9 +4634,7 @@
3421
4634
  },
3422
4635
  "items": {
3423
4636
  "type": "array",
3424
- "items": {
3425
- "default": {}
3426
- }
4637
+ "items": {}
3427
4638
  },
3428
4639
  "kind": {
3429
4640
  "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
@@ -3450,6 +4661,11 @@
3450
4661
  "type": "string",
3451
4662
  "default": ""
3452
4663
  },
4664
+ "teamInternalId": {
4665
+ "description": "Deprecated numeric team ID, when available, for legacy references.",
4666
+ "type": "integer",
4667
+ "format": "int64"
4668
+ },
3453
4669
  "user": {
3454
4670
  "type": "string",
3455
4671
  "default": ""
@@ -3508,9 +4724,7 @@
3508
4724
  },
3509
4725
  "items": {
3510
4726
  "type": "array",
3511
- "items": {
3512
- "default": {}
3513
- }
4727
+ "items": {}
3514
4728
  },
3515
4729
  "kind": {
3516
4730
  "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
@@ -3527,9 +4741,7 @@
3527
4741
  "properties": {
3528
4742
  "roleRefs": {
3529
4743
  "type": "array",
3530
- "items": {
3531
- "default": {}
3532
- }
4744
+ "items": {}
3533
4745
  },
3534
4746
  "subject": {
3535
4747
  "default": {}
@@ -3578,9 +4790,7 @@
3578
4790
  },
3579
4791
  "items": {
3580
4792
  "type": "array",
3581
- "items": {
3582
- "default": {}
3583
- }
4793
+ "items": {}
3584
4794
  },
3585
4795
  "kind": {
3586
4796
  "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
@@ -3606,9 +4816,7 @@
3606
4816
  "permissions": {
3607
4817
  "description": "Permissions for this role",
3608
4818
  "type": "array",
3609
- "items": {
3610
- "default": {}
3611
- }
4819
+ "items": {}
3612
4820
  },
3613
4821
  "title": {
3614
4822
  "description": "Display name of the role",
@@ -3643,9 +4851,7 @@
3643
4851
  },
3644
4852
  "items": {
3645
4853
  "type": "array",
3646
- "items": {
3647
- "default": {}
3648
- }
4854
+ "items": {}
3649
4855
  }
3650
4856
  }
3651
4857
  },
@@ -3664,12 +4870,7 @@
3664
4870
  "items": {
3665
4871
  "type": "array",
3666
4872
  "items": {
3667
- "default": {},
3668
- "allOf": [
3669
- {
3670
- "$ref": "#/components/schemas/ListServiceAccountTokensToken"
3671
- }
3672
- ]
4873
+ "$ref": "#/components/schemas/ListServiceAccountTokensToken"
3673
4874
  }
3674
4875
  },
3675
4876
  "kind": {
@@ -3750,9 +4951,7 @@
3750
4951
  },
3751
4952
  "items": {
3752
4953
  "type": "array",
3753
- "items": {
3754
- "default": {}
3755
- }
4954
+ "items": {}
3756
4955
  },
3757
4956
  "kind": {
3758
4957
  "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
@@ -3769,9 +4968,7 @@
3769
4968
  "properties": {
3770
4969
  "permissions": {
3771
4970
  "type": "array",
3772
- "items": {
3773
- "default": {}
3774
- }
4971
+ "items": {}
3775
4972
  },
3776
4973
  "resource": {
3777
4974
  "default": {}
@@ -3872,9 +5069,7 @@
3872
5069
  },
3873
5070
  "items": {
3874
5071
  "type": "array",
3875
- "items": {
3876
- "default": {}
3877
- }
5072
+ "items": {}
3878
5073
  },
3879
5074
  "kind": {
3880
5075
  "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
@@ -3891,9 +5086,7 @@
3891
5086
  "properties": {
3892
5087
  "roleRefs": {
3893
5088
  "type": "array",
3894
- "items": {
3895
- "default": {}
3896
- }
5089
+ "items": {}
3897
5090
  },
3898
5091
  "subject": {
3899
5092
  "default": {}
@@ -3942,9 +5135,7 @@
3942
5135
  },
3943
5136
  "items": {
3944
5137
  "type": "array",
3945
- "items": {
3946
- "default": {}
3947
- }
5138
+ "items": {}
3948
5139
  },
3949
5140
  "kind": {
3950
5141
  "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
@@ -3970,23 +5161,17 @@
3970
5161
  "permissions": {
3971
5162
  "description": "Added permissions (permissions in actual role but NOT in seed) - for basic roles only. For custom roles, this contains all permissions.",
3972
5163
  "type": "array",
3973
- "items": {
3974
- "default": {}
3975
- }
5164
+ "items": {}
3976
5165
  },
3977
5166
  "permissionsOmitted": {
3978
5167
  "description": "Permissions that exist in seed but NOT in actual role (missing/omitted permissions) - used for basic roles only",
3979
5168
  "type": "array",
3980
- "items": {
3981
- "default": {}
3982
- }
5169
+ "items": {}
3983
5170
  },
3984
5171
  "roleRefs": {
3985
5172
  "description": "Roles to take permissions from (for now the list should be of size 1) delegatable?: bool created? updated?",
3986
5173
  "type": "array",
3987
- "items": {
3988
- "default": {}
3989
- }
5174
+ "items": {}
3990
5175
  },
3991
5176
  "title": {
3992
5177
  "description": "Display name of the role",
@@ -4076,12 +5261,7 @@
4076
5261
  "items": {
4077
5262
  "type": "array",
4078
5263
  "items": {
4079
- "default": {},
4080
- "allOf": [
4081
- {
4082
- "$ref": "#/components/schemas/ServiceAccount"
4083
- }
4084
- ]
5264
+ "$ref": "#/components/schemas/ServiceAccount"
4085
5265
  }
4086
5266
  },
4087
5267
  "kind": {
@@ -4196,9 +5376,7 @@
4196
5376
  },
4197
5377
  "items": {
4198
5378
  "type": "array",
4199
- "items": {
4200
- "default": {}
4201
- }
5379
+ "items": {}
4202
5380
  },
4203
5381
  "kind": {
4204
5382
  "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
@@ -4259,7 +5437,7 @@
4259
5437
  },
4260
5438
  "TeamLBACRule": {
4261
5439
  "type": "object",
4262
- "required": ["metadata", "spec"],
5440
+ "required": ["metadata", "spec", "status"],
4263
5441
  "properties": {
4264
5442
  "apiVersion": {
4265
5443
  "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
@@ -4269,12 +5447,59 @@
4269
5447
  "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
4270
5448
  "type": "string"
4271
5449
  },
4272
- "metadata": {
4273
- "default": {}
5450
+ "metadata": {
5451
+ "default": {},
5452
+ "allOf": [
5453
+ {
5454
+ "$ref": "#/components/schemas/ObjectMeta"
5455
+ }
5456
+ ]
5457
+ },
5458
+ "spec": {
5459
+ "description": "Spec is the spec of the TeamLBACRule",
5460
+ "default": {},
5461
+ "allOf": [
5462
+ {
5463
+ "$ref": "#/components/schemas/TeamLBACRuleSpec"
5464
+ }
5465
+ ]
5466
+ },
5467
+ "status": {
5468
+ "default": {},
5469
+ "allOf": [
5470
+ {
5471
+ "$ref": "#/components/schemas/TeamLBACRuleStatus"
5472
+ }
5473
+ ]
5474
+ }
5475
+ },
5476
+ "x-kubernetes-group-version-kind": [
5477
+ {
5478
+ "group": "iam.grafana.app",
5479
+ "kind": "TeamLBACRule",
5480
+ "version": "v0alpha1"
5481
+ }
5482
+ ]
5483
+ },
5484
+ "TeamLBACRuleCondition": {
5485
+ "description": "Condition is a minimal Kubernetes-style condition for dynamically computed Team LBAC status.",
5486
+ "type": "object",
5487
+ "required": ["type", "status", "reason"],
5488
+ "properties": {
5489
+ "reason": {
5490
+ "description": "reason is a stable, machine-readable explanation for the current status. It is intentionally open-ended so clients tolerate reasons added later.",
5491
+ "type": "string",
5492
+ "default": ""
5493
+ },
5494
+ "status": {
5495
+ "description": "status is True when the rule is enforceable, False when it is dormant, and Unknown when enforceability could not be determined.",
5496
+ "type": "string",
5497
+ "default": ""
4274
5498
  },
4275
- "spec": {
4276
- "description": "Spec is the spec of the TeamLBACRule",
4277
- "default": {}
5499
+ "type": {
5500
+ "description": "type identifies the condition. Enforceable is the only type currently defined for TeamLBACRule.",
5501
+ "type": "string",
5502
+ "default": ""
4278
5503
  }
4279
5504
  }
4280
5505
  },
@@ -4289,7 +5514,7 @@
4289
5514
  "items": {
4290
5515
  "type": "array",
4291
5516
  "items": {
4292
- "default": {}
5517
+ "$ref": "#/components/schemas/TeamLBACRule"
4293
5518
  }
4294
5519
  },
4295
5520
  "kind": {
@@ -4297,9 +5522,21 @@
4297
5522
  "type": "string"
4298
5523
  },
4299
5524
  "metadata": {
4300
- "default": {}
5525
+ "default": {},
5526
+ "allOf": [
5527
+ {
5528
+ "$ref": "#/components/schemas/ListMeta"
5529
+ }
5530
+ ]
4301
5531
  }
4302
- }
5532
+ },
5533
+ "x-kubernetes-group-version-kind": [
5534
+ {
5535
+ "group": "iam.grafana.app",
5536
+ "kind": "TeamLBACRuleList",
5537
+ "version": "v0alpha1"
5538
+ }
5539
+ ]
4303
5540
  },
4304
5541
  "TeamLBACRuleSpec": {
4305
5542
  "type": "object",
@@ -4321,13 +5558,26 @@
4321
5558
  "additionalProperties": {
4322
5559
  "type": "array",
4323
5560
  "items": {
4324
- "type": "string",
4325
- "default": ""
5561
+ "type": "string"
4326
5562
  }
4327
5563
  }
4328
5564
  }
4329
5565
  }
4330
5566
  },
5567
+ "TeamLBACRuleStatus": {
5568
+ "type": "object",
5569
+ "properties": {
5570
+ "conditions": {
5571
+ "description": "conditions contains system-owned observations about the rule. The Enforceable condition is the only condition currently defined.",
5572
+ "type": "array",
5573
+ "items": {
5574
+ "$ref": "#/components/schemas/TeamLBACRuleCondition"
5575
+ },
5576
+ "x-kubernetes-list-map-keys": ["type"],
5577
+ "x-kubernetes-list-type": "map"
5578
+ }
5579
+ }
5580
+ },
4331
5581
  "TeamList": {
4332
5582
  "type": "object",
4333
5583
  "required": ["metadata", "items"],
@@ -4339,12 +5589,7 @@
4339
5589
  "items": {
4340
5590
  "type": "array",
4341
5591
  "items": {
4342
- "default": {},
4343
- "allOf": [
4344
- {
4345
- "$ref": "#/components/schemas/Team"
4346
- }
4347
- ]
5592
+ "$ref": "#/components/schemas/Team"
4348
5593
  }
4349
5594
  },
4350
5595
  "kind": {
@@ -4379,8 +5624,7 @@
4379
5624
  "externalGroups": {
4380
5625
  "type": "array",
4381
5626
  "items": {
4382
- "type": "string",
4383
- "default": ""
5627
+ "type": "string"
4384
5628
  }
4385
5629
  },
4386
5630
  "externalUID": {
@@ -4390,12 +5634,7 @@
4390
5634
  "members": {
4391
5635
  "type": "array",
4392
5636
  "items": {
4393
- "default": {},
4394
- "allOf": [
4395
- {
4396
- "$ref": "#/components/schemas/TeamTeamMember"
4397
- }
4398
- ]
5637
+ "$ref": "#/components/schemas/TeamTeamMember"
4399
5638
  }
4400
5639
  },
4401
5640
  "provisioned": {
@@ -4508,114 +5747,306 @@
4508
5747
  "items": {
4509
5748
  "type": "array",
4510
5749
  "items": {
4511
- "default": {},
5750
+ "$ref": "#/components/schemas/User"
5751
+ }
5752
+ },
5753
+ "kind": {
5754
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
5755
+ "type": "string"
5756
+ },
5757
+ "metadata": {
5758
+ "default": {},
5759
+ "allOf": [
5760
+ {
5761
+ "$ref": "#/components/schemas/ListMeta"
5762
+ }
5763
+ ]
5764
+ }
5765
+ },
5766
+ "x-kubernetes-group-version-kind": [
5767
+ {
5768
+ "group": "iam.grafana.app",
5769
+ "kind": "UserList",
5770
+ "version": "v0alpha1"
5771
+ }
5772
+ ]
5773
+ },
5774
+ "UserSpec": {
5775
+ "type": "object",
5776
+ "required": ["disabled", "email", "emailVerified", "grafanaAdmin", "login", "title", "provisioned", "role"],
5777
+ "properties": {
5778
+ "disabled": {
5779
+ "type": "boolean",
5780
+ "default": false
5781
+ },
5782
+ "email": {
5783
+ "type": "string",
5784
+ "default": ""
5785
+ },
5786
+ "emailVerified": {
5787
+ "type": "boolean",
5788
+ "default": false
5789
+ },
5790
+ "externalAuthInfo": {
5791
+ "type": "array",
5792
+ "items": {
5793
+ "$ref": "#/components/schemas/UserExternalAuthInfo"
5794
+ }
5795
+ },
5796
+ "grafanaAdmin": {
5797
+ "type": "boolean",
5798
+ "default": false
5799
+ },
5800
+ "login": {
5801
+ "type": "string",
5802
+ "default": ""
5803
+ },
5804
+ "provisioned": {
5805
+ "type": "boolean",
5806
+ "default": false
5807
+ },
5808
+ "role": {
5809
+ "type": "string",
5810
+ "default": ""
5811
+ },
5812
+ "title": {
5813
+ "type": "string",
5814
+ "default": ""
5815
+ }
5816
+ }
5817
+ },
5818
+ "UserStatus": {
5819
+ "type": "object",
5820
+ "required": ["lastSeenAt"],
5821
+ "properties": {
5822
+ "lastSeenAt": {
5823
+ "type": "integer",
5824
+ "format": "int64",
5825
+ "default": 0
5826
+ },
5827
+ "teamSync": {
5828
+ "$ref": "#/components/schemas/UserTeamSyncStatus"
5829
+ }
5830
+ }
5831
+ },
5832
+ "UserTeamSyncStatus": {
5833
+ "type": "object",
5834
+ "required": ["state", "lastSyncAt"],
5835
+ "properties": {
5836
+ "lastSyncAt": {
5837
+ "type": "integer",
5838
+ "format": "int64",
5839
+ "default": 0
5840
+ },
5841
+ "state": {
5842
+ "type": "string",
5843
+ "default": ""
5844
+ }
5845
+ }
5846
+ },
5847
+ "Unstructured": {
5848
+ "type": "object",
5849
+ "additionalProperties": true,
5850
+ "x-kubernetes-preserve-unknown-fields": true
5851
+ },
5852
+ "CurrentUserInfo": {
5853
+ "type": "object",
5854
+ "required": ["identity", "displayName"],
5855
+ "properties": {
5856
+ "authenticatedBy": {
5857
+ "description": "AuthenticatedBy is the authentication provider used for the current identity.",
5858
+ "type": "string"
5859
+ },
5860
+ "avatarURL": {
5861
+ "description": "AvatarURL is the url where we can get the avatar for identity",
5862
+ "type": "string"
5863
+ },
5864
+ "displayName": {
5865
+ "description": "Display name for identity.",
5866
+ "type": "string",
5867
+ "default": ""
5868
+ },
5869
+ "email": {
5870
+ "description": "Email is the email address for the current identity.",
5871
+ "type": "string"
5872
+ },
5873
+ "identity": {
5874
+ "allOf": [
5875
+ {
5876
+ "$ref": "#/components/schemas/IdentityRef"
5877
+ }
5878
+ ]
5879
+ },
5880
+ "internalId": {
5881
+ "description": "InternalID is the legacy numeric id for identity, Deprecated: use the identityRef where possible",
5882
+ "type": "integer",
5883
+ "format": "int64"
5884
+ },
5885
+ "namespace": {
5886
+ "description": "Namespace is the namespace of the current identity.",
5887
+ "type": "string"
5888
+ },
5889
+ "role": {
5890
+ "description": "Role is the org role of the identity in the active organization (Admin/Editor/Viewer/None).",
5891
+ "type": "string"
5892
+ },
5893
+ "teams": {
5894
+ "description": "The user teams",
5895
+ "type": "array",
5896
+ "items": {
5897
+ "type": "string"
5898
+ }
5899
+ }
5900
+ }
5901
+ },
5902
+ "Display": {
5903
+ "type": "object",
5904
+ "required": ["identity", "displayName"],
5905
+ "properties": {
5906
+ "avatarURL": {
5907
+ "description": "AvatarURL is the url where we can get the avatar for identity",
5908
+ "type": "string"
5909
+ },
5910
+ "displayName": {
5911
+ "description": "Display name for identity.",
5912
+ "type": "string",
5913
+ "default": ""
5914
+ },
5915
+ "identity": {
5916
+ "allOf": [
5917
+ {
5918
+ "$ref": "#/components/schemas/IdentityRef"
5919
+ }
5920
+ ]
5921
+ },
5922
+ "internalId": {
5923
+ "description": "InternalID is the legacy numeric id for identity, Deprecated: use the identityRef where possible",
5924
+ "type": "integer",
5925
+ "format": "int64"
5926
+ }
5927
+ }
5928
+ },
5929
+ "DisplayList": {
5930
+ "type": "object",
5931
+ "required": ["keys", "display"],
5932
+ "properties": {
5933
+ "apiVersion": {
5934
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
5935
+ "type": "string"
5936
+ },
5937
+ "display": {
5938
+ "description": "Matching items (the caller may need to remap from keys to results)",
5939
+ "type": "array",
5940
+ "items": {
4512
5941
  "allOf": [
4513
5942
  {
4514
- "$ref": "#/components/schemas/User"
5943
+ "$ref": "#/components/schemas/Display"
4515
5944
  }
4516
5945
  ]
4517
- }
5946
+ },
5947
+ "x-kubernetes-list-type": "atomic"
5948
+ },
5949
+ "invalidKeys": {
5950
+ "description": "Input keys that were not useable",
5951
+ "type": "array",
5952
+ "items": {
5953
+ "type": "string"
5954
+ },
5955
+ "x-kubernetes-list-type": "set"
5956
+ },
5957
+ "keys": {
5958
+ "description": "Request keys used to lookup the display value",
5959
+ "type": "array",
5960
+ "items": {
5961
+ "type": "string"
5962
+ },
5963
+ "x-kubernetes-list-type": "set"
4518
5964
  },
4519
5965
  "kind": {
4520
5966
  "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
4521
5967
  "type": "string"
4522
5968
  },
4523
5969
  "metadata": {
4524
- "default": {},
4525
5970
  "allOf": [
4526
5971
  {
4527
5972
  "$ref": "#/components/schemas/ListMeta"
4528
5973
  }
4529
5974
  ]
4530
5975
  }
4531
- },
4532
- "x-kubernetes-group-version-kind": [
4533
- {
4534
- "group": "iam.grafana.app",
4535
- "kind": "UserList",
4536
- "version": "v0alpha1"
4537
- }
4538
- ]
5976
+ }
4539
5977
  },
4540
- "UserSpec": {
5978
+ "IdentityRef": {
4541
5979
  "type": "object",
4542
- "required": ["disabled", "email", "emailVerified", "grafanaAdmin", "login", "title", "provisioned", "role"],
5980
+ "required": ["type", "name"],
4543
5981
  "properties": {
4544
- "disabled": {
4545
- "type": "boolean",
4546
- "default": false
4547
- },
4548
- "email": {
5982
+ "name": {
5983
+ "description": "Name is the unique identifier for identity, guaranteed to be a unique value for the type within a namespace.",
4549
5984
  "type": "string",
4550
5985
  "default": ""
4551
5986
  },
4552
- "emailVerified": {
4553
- "type": "boolean",
4554
- "default": false
4555
- },
4556
- "externalAuthInfo": {
4557
- "type": "array",
4558
- "items": {
4559
- "default": {},
4560
- "allOf": [
4561
- {
4562
- "$ref": "#/components/schemas/UserExternalAuthInfo"
4563
- }
4564
- ]
4565
- }
4566
- },
4567
- "grafanaAdmin": {
4568
- "type": "boolean",
4569
- "default": false
4570
- },
4571
- "login": {
5987
+ "type": {
5988
+ "description": "Type of identity e.g. \"user\". For a full list see https://github.com/grafana/authlib/blob/d6737a7dc8f55e9d42834adb83b5da607ceed293/types/type.go#L15",
4572
5989
  "type": "string",
4573
5990
  "default": ""
5991
+ }
5992
+ }
5993
+ },
5994
+ "SSOSetting": {
5995
+ "type": "object",
5996
+ "properties": {
5997
+ "apiVersion": {
5998
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
5999
+ "type": "string"
4574
6000
  },
4575
- "provisioned": {
4576
- "type": "boolean",
4577
- "default": false
6001
+ "kind": {
6002
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
6003
+ "type": "string"
4578
6004
  },
4579
- "role": {
4580
- "type": "string",
4581
- "default": ""
6005
+ "metadata": {
6006
+ "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
6007
+ "default": {}
4582
6008
  },
4583
- "title": {
4584
- "type": "string",
4585
- "default": ""
6009
+ "spec": {
6010
+ "default": {}
4586
6011
  }
4587
6012
  }
4588
6013
  },
4589
- "UserStatus": {
6014
+ "SSOSettingList": {
4590
6015
  "type": "object",
4591
- "required": ["lastSeenAt"],
6016
+ "required": ["items"],
4592
6017
  "properties": {
4593
- "lastSeenAt": {
4594
- "type": "integer",
4595
- "format": "int64",
4596
- "default": 0
6018
+ "apiVersion": {
6019
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
6020
+ "type": "string"
4597
6021
  },
4598
- "teamSync": {
4599
- "$ref": "#/components/schemas/UserTeamSyncStatus"
6022
+ "items": {
6023
+ "type": "array",
6024
+ "items": {}
6025
+ },
6026
+ "kind": {
6027
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
6028
+ "type": "string"
6029
+ },
6030
+ "metadata": {
6031
+ "default": {}
4600
6032
  }
4601
6033
  }
4602
6034
  },
4603
- "UserTeamSyncStatus": {
6035
+ "SSOSettingSpec": {
6036
+ "description": "SSOSettingSpec defines model for SSOSettingSpec.",
4604
6037
  "type": "object",
4605
- "required": ["state", "lastSyncAt"],
6038
+ "required": ["source", "settings"],
4606
6039
  "properties": {
4607
- "lastSyncAt": {
4608
- "type": "integer",
4609
- "format": "int64",
4610
- "default": 0
4611
- },
4612
- "state": {
6040
+ "settings": {},
6041
+ "source": {
6042
+ "description": "Possible enum values:\n - `\"db\"`\n - `\"system\"` system is from config file, env or argument",
4613
6043
  "type": "string",
4614
- "default": ""
6044
+ "default": "",
6045
+ "enum": ["db", "system"]
4615
6046
  }
4616
6047
  }
4617
6048
  },
4618
- "Display": {
6049
+ "TeamMember": {
4619
6050
  "type": "object",
4620
6051
  "required": ["identity", "displayName"],
4621
6052
  "properties": {
@@ -4628,196 +6059,371 @@
4628
6059
  "type": "string",
4629
6060
  "default": ""
4630
6061
  },
6062
+ "external": {
6063
+ "description": "External is set if member ship was synced from external IDP.",
6064
+ "type": "boolean"
6065
+ },
4631
6066
  "identity": {
4632
- "allOf": [
4633
- {
4634
- "$ref": "#/components/schemas/IdentityRef"
4635
- }
4636
- ]
6067
+ "default": {}
4637
6068
  },
4638
6069
  "internalId": {
4639
6070
  "description": "InternalID is the legacy numeric id for identity, Deprecated: use the identityRef where possible",
4640
6071
  "type": "integer",
4641
6072
  "format": "int64"
4642
6073
  },
4643
- "role": {
4644
- "description": "Role is the org role of the identity in the active organization (Admin/Editor/Viewer/None). Only populated for the current-user (\"users/~\") endpoint.",
4645
- "type": "string"
6074
+ "permission": {
6075
+ "description": "Permission member has in team.\n\nPossible enum values:\n - `\"admin\"`\n - `\"member\"`",
6076
+ "type": "string",
6077
+ "enum": ["admin", "member"]
4646
6078
  }
4647
6079
  }
4648
6080
  },
4649
- "DisplayList": {
6081
+ "TeamMemberList": {
4650
6082
  "type": "object",
4651
- "required": ["keys", "display"],
6083
+ "required": ["items"],
4652
6084
  "properties": {
4653
6085
  "apiVersion": {
4654
6086
  "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
4655
6087
  "type": "string"
4656
6088
  },
4657
- "display": {
4658
- "description": "Matching items (the caller may need to remap from keys to results)",
6089
+ "items": {
6090
+ "type": "array",
6091
+ "items": {}
6092
+ },
6093
+ "kind": {
6094
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
6095
+ "type": "string"
6096
+ },
6097
+ "metadata": {
6098
+ "default": {}
6099
+ }
6100
+ }
6101
+ },
6102
+ "TeamRef": {
6103
+ "type": "object",
6104
+ "properties": {
6105
+ "name": {
6106
+ "description": "Name is the unique identifier for a team.",
6107
+ "type": "string"
6108
+ }
6109
+ }
6110
+ },
6111
+ "TeamSubject": {
6112
+ "type": "object",
6113
+ "required": ["identity"],
6114
+ "properties": {
6115
+ "identity": {
6116
+ "description": "Identity is a reference to the identity of this subject.",
6117
+ "default": {}
6118
+ },
6119
+ "permission": {
6120
+ "description": "Permission subject has in team.\n\nPossible enum values:\n - `\"admin\"`\n - `\"member\"`",
6121
+ "type": "string",
6122
+ "enum": ["admin", "member"]
6123
+ }
6124
+ }
6125
+ },
6126
+ "UserPermission": {
6127
+ "description": "UserPermission is one effective action and scope granted to an identity.",
6128
+ "type": "object",
6129
+ "required": ["action"],
6130
+ "properties": {
6131
+ "action": {
6132
+ "type": "string",
6133
+ "default": ""
6134
+ },
6135
+ "scope": {
6136
+ "type": "string"
6137
+ }
6138
+ }
6139
+ },
6140
+ "UserPermissions": {
6141
+ "description": "UserPermissions contains the effective permissions for the current identity.",
6142
+ "type": "object",
6143
+ "required": ["permissions"],
6144
+ "properties": {
6145
+ "permissions": {
4659
6146
  "type": "array",
4660
6147
  "items": {
4661
- "allOf": [
4662
- {
4663
- "$ref": "#/components/schemas/Display"
4664
- }
4665
- ]
6148
+ "$ref": "#/components/schemas/UserPermission"
4666
6149
  },
4667
6150
  "x-kubernetes-list-type": "atomic"
6151
+ }
6152
+ }
6153
+ },
6154
+ "UserTeam": {
6155
+ "type": "object",
6156
+ "properties": {
6157
+ "permission": {
6158
+ "description": "Possible enum values:\n - `\"admin\"`\n - `\"member\"`",
6159
+ "type": "string",
6160
+ "enum": ["admin", "member"]
4668
6161
  },
4669
- "invalidKeys": {
4670
- "description": "Input keys that were not useable",
6162
+ "teamRef": {
6163
+ "default": {}
6164
+ },
6165
+ "title": {
6166
+ "type": "string"
6167
+ }
6168
+ }
6169
+ },
6170
+ "UserTeamList": {
6171
+ "type": "object",
6172
+ "required": ["items"],
6173
+ "properties": {
6174
+ "apiVersion": {
6175
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
6176
+ "type": "string"
6177
+ },
6178
+ "items": {
4671
6179
  "type": "array",
4672
- "items": {
4673
- "type": "string",
4674
- "default": ""
4675
- },
4676
- "x-kubernetes-list-type": "set"
6180
+ "items": {}
6181
+ },
6182
+ "kind": {
6183
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
6184
+ "type": "string"
6185
+ },
6186
+ "metadata": {
6187
+ "default": {}
6188
+ }
6189
+ }
6190
+ },
6191
+ "ExistsPredicate": {
6192
+ "description": "ExistsPredicate is a future field-existence predicate. Modelled for schema stability; always rejected in v1.",
6193
+ "type": "object",
6194
+ "required": ["field"],
6195
+ "properties": {
6196
+ "field": {
6197
+ "type": "string",
6198
+ "default": ""
6199
+ }
6200
+ }
6201
+ },
6202
+ "FacetTerm": {
6203
+ "description": "FacetTerm is a single facet term and its count.",
6204
+ "type": "object",
6205
+ "required": ["value", "count"],
6206
+ "properties": {
6207
+ "count": {
6208
+ "type": "integer",
6209
+ "format": "int64",
6210
+ "default": 0
6211
+ },
6212
+ "value": {
6213
+ "type": "string",
6214
+ "default": ""
6215
+ }
6216
+ }
6217
+ },
6218
+ "FilterPredicate": {
6219
+ "description": "FilterPredicate is an exact / set-based predicate against a single field. Values are strings whatever the field's declared type, so a boolean field takes \"true\" or \"false\" and a numeric field takes the number written out.\n\nNumbers are held as float64, so only integers up to 2^53 are compared exactly. Past that, values a whole number apart share one representation, and a filter can both match a neighbour and miss the value asked for.",
6220
+ "type": "object",
6221
+ "required": ["field", "operator", "values"],
6222
+ "properties": {
6223
+ "field": {
6224
+ "type": "string",
6225
+ "default": ""
4677
6226
  },
4678
- "keys": {
4679
- "description": "Request keys used to lookup the display value",
6227
+ "operator": {
6228
+ "description": "Operator is \"In\", \"NotIn\" or \"All\" in v1. \"In\" matches any of the values, \"NotIn\" excludes all of them, and \"All\" requires the field to hold every value, which only a field holding a list of values can do.",
6229
+ "type": "string",
6230
+ "default": ""
6231
+ },
6232
+ "values": {
4680
6233
  "type": "array",
4681
6234
  "items": {
4682
- "type": "string",
4683
- "default": ""
4684
- },
4685
- "x-kubernetes-list-type": "set"
6235
+ "type": "string"
6236
+ }
6237
+ }
6238
+ }
6239
+ },
6240
+ "RangePredicate": {
6241
+ "description": "RangePredicate compares a numeric field against one or two bounds. At least one bound is required, gt cannot be combined with gte, and lt cannot be combined with lte. Boolean and string fields are rejected: only numbers have the order a range asks about. On an integer field a bound must be whole.\n\nBounds are held as float64, so only integers up to 2^53 are compared exactly. Past that, values a whole number apart share one representation, and a bound can both admit a neighbour and exclude the value asked for.",
6242
+ "type": "object",
6243
+ "required": ["field"],
6244
+ "properties": {
6245
+ "field": {
6246
+ "type": "string",
6247
+ "default": ""
4686
6248
  },
4687
- "kind": {
4688
- "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
4689
- "type": "string"
6249
+ "gt": {
6250
+ "type": "number",
6251
+ "format": "double"
4690
6252
  },
4691
- "metadata": {
4692
- "allOf": [
4693
- {
4694
- "$ref": "#/components/schemas/ListMeta"
4695
- }
4696
- ]
6253
+ "gte": {
6254
+ "type": "number",
6255
+ "format": "double"
6256
+ },
6257
+ "lt": {
6258
+ "type": "number",
6259
+ "format": "double"
6260
+ },
6261
+ "lte": {
6262
+ "type": "number",
6263
+ "format": "double"
4697
6264
  }
4698
6265
  }
4699
6266
  },
4700
- "IdentityRef": {
6267
+ "RegexPredicate": {
6268
+ "description": "RegexPredicate matches a single field against a regular expression, one pattern per leaf the way a single Prometheus matcher works. Negate turns the leaf from =~ into !~.\n\nMatching is against the whole indexed term and is case-sensitive, so it is restricted to filterable keyword string fields that keep their original case. The pattern is a portable RE2 subset: literals, character classes, grouping, alternation, and greedy repetition. The backend is the source of truth for what the subset admits; it rejects unsupported syntax, fields that do not preserve case, and patterns that expand to too many terms with a 400.",
4701
6269
  "type": "object",
4702
- "required": ["type", "name"],
6270
+ "required": ["field", "pattern"],
4703
6271
  "properties": {
4704
- "name": {
4705
- "description": "Name is the unique identifier for identity, guaranteed to be a unique value for the type within a namespace.",
6272
+ "field": {
4706
6273
  "type": "string",
4707
6274
  "default": ""
4708
6275
  },
4709
- "type": {
4710
- "description": "Type of identity e.g. \"user\". For a full list see https://github.com/grafana/authlib/blob/d6737a7dc8f55e9d42834adb83b5da607ceed293/types/type.go#L15",
6276
+ "negate": {
6277
+ "description": "Negate inverts the match: the field must not match the pattern.",
6278
+ "type": "boolean"
6279
+ },
6280
+ "pattern": {
4711
6281
  "type": "string",
4712
6282
  "default": ""
4713
6283
  }
4714
6284
  }
4715
6285
  },
4716
- "SSOSetting": {
6286
+ "ResourceRef": {
6287
+ "description": "ResourceRef is the full identity of a returned item. Namespace is implicit from the URL and omitted.",
4717
6288
  "type": "object",
6289
+ "required": ["group", "resource", "kind", "name"],
4718
6290
  "properties": {
4719
- "apiVersion": {
4720
- "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
4721
- "type": "string"
6291
+ "group": {
6292
+ "type": "string",
6293
+ "default": ""
4722
6294
  },
4723
6295
  "kind": {
4724
- "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
4725
- "type": "string"
6296
+ "type": "string",
6297
+ "default": ""
4726
6298
  },
4727
- "metadata": {
4728
- "description": "Standard object's metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
4729
- "default": {}
6299
+ "name": {
6300
+ "type": "string",
6301
+ "default": ""
4730
6302
  },
4731
- "spec": {
4732
- "default": {}
6303
+ "resource": {
6304
+ "type": "string",
6305
+ "default": ""
4733
6306
  }
4734
6307
  }
4735
6308
  },
4736
- "SSOSettingList": {
6309
+ "ResultItem": {
6310
+ "description": "ResultItem is one search or trash hit. The item shape is identical on both endpoints; only which fields the Fields map can carry differs.",
4737
6311
  "type": "object",
4738
- "required": ["items"],
6312
+ "required": ["resource"],
4739
6313
  "properties": {
4740
- "apiVersion": {
4741
- "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
4742
- "type": "string"
4743
- },
4744
- "items": {
4745
- "type": "array",
4746
- "items": {
4747
- "default": {}
4748
- }
6314
+ "fields": {
6315
+ "description": "Fields holds the JSON values for the requested (or default) fields. Array-typed fields are returned as JSON arrays. Absent fields are omitted.",
6316
+ "$ref": "#/components/schemas/Unstructured"
4749
6317
  },
4750
- "kind": {
4751
- "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
4752
- "type": "string"
6318
+ "resource": {
6319
+ "default": {},
6320
+ "$ref": "#/components/schemas/ResourceRef"
4753
6321
  },
4754
- "metadata": {
4755
- "default": {}
6322
+ "score": {
6323
+ "description": "Score is present only when a text query was evaluated. A pointer so a real score of 0 is still distinguishable from \"no text query\" (absent).",
6324
+ "type": "number",
6325
+ "format": "double"
4756
6326
  }
4757
6327
  }
4758
6328
  },
4759
- "SSOSettingSpec": {
4760
- "description": "SSOSettingSpec defines model for SSOSettingSpec.",
6329
+ "ResultsMetadata": {
6330
+ "description": "ResultsMetadata carries the pagination token and the total hit count.",
4761
6331
  "type": "object",
4762
- "required": ["source", "settings"],
6332
+ "required": ["totalHits", "totalHitsRelation"],
4763
6333
  "properties": {
4764
- "settings": {},
4765
- "source": {
4766
- "description": "Possible enum values:\n - `\"db\"`\n - `\"system\"` system is from config file, env or argument",
6334
+ "continue": {
6335
+ "type": "string"
6336
+ },
6337
+ "totalHits": {
6338
+ "description": "TotalHits counts the resources matching the query. Always read it together with TotalHitsRelation. When the relation is \"unknown\", this is a zero placeholder that must not be interpreted as a count.",
6339
+ "type": "integer",
6340
+ "format": "int64",
6341
+ "default": 0
6342
+ },
6343
+ "totalHitsRelation": {
6344
+ "description": "TotalHitsRelation is \"eq\" when TotalHits is exact and \"lte\" when it is an upper bound. \"unknown\" means no count is available and TotalHits must be ignored.",
4767
6345
  "type": "string",
4768
- "default": "",
4769
- "enum": ["db", "system"]
6346
+ "default": ""
4770
6347
  }
4771
6348
  }
4772
6349
  },
4773
- "TeamMember": {
6350
+ "SearchQuery": {
6351
+ "description": "SearchQuery is the request body for POST .../{resource}/search, which searches one kind, and for POST .../namespaces/{namespace}/global/search, which searches several resource types at once.",
4774
6352
  "type": "object",
4775
- "required": ["identity", "displayName"],
4776
6353
  "properties": {
4777
- "avatarURL": {
4778
- "description": "AvatarURL is the url where we can get the avatar for identity",
6354
+ "apiVersion": {
6355
+ "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
4779
6356
  "type": "string"
4780
6357
  },
4781
- "displayName": {
4782
- "description": "Display name for identity.",
4783
- "type": "string",
4784
- "default": ""
6358
+ "continue": {
6359
+ "description": "Continue is an opaque pagination token from a previous page.",
6360
+ "type": "string"
4785
6361
  },
4786
- "external": {
4787
- "description": "External is set if member ship was synced from external IDP.",
4788
- "type": "boolean"
6362
+ "facetLimit": {
6363
+ "description": "FacetLimit caps the number of terms returned per facet. It applies to every entry in Facets. Zero uses the server default; values above the server cap are clamped.",
6364
+ "type": "integer",
6365
+ "format": "int64"
4789
6366
  },
4790
- "identity": {
4791
- "default": {}
6367
+ "facets": {
6368
+ "type": "array",
6369
+ "items": {
6370
+ "type": "string"
6371
+ }
4792
6372
  },
4793
- "internalId": {
4794
- "description": "InternalID is the legacy numeric id for identity, Deprecated: use the identityRef where possible",
6373
+ "fields": {
6374
+ "type": "array",
6375
+ "items": {
6376
+ "type": "string"
6377
+ }
6378
+ },
6379
+ "kind": {
6380
+ "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
6381
+ "type": "string"
6382
+ },
6383
+ "labelSelector": {
6384
+ "description": "LabelSelector filters on metadata.labels, ANDed with Where.",
6385
+ "$ref": "#/components/schemas/LabelSelector"
6386
+ },
6387
+ "limit": {
6388
+ "description": "Limit is the page size. Zero uses the default; values above the maximum are clamped.",
4795
6389
  "type": "integer",
4796
6390
  "format": "int64"
4797
6391
  },
4798
- "permission": {
4799
- "description": "Permission member has in team.\n\nPossible enum values:\n - `\"admin\"`\n - `\"member\"`",
4800
- "type": "string",
4801
- "enum": ["admin", "member"]
6392
+ "sort": {
6393
+ "type": "array",
6394
+ "items": {
6395
+ "$ref": "#/components/schemas/SortField"
6396
+ }
4802
6397
  },
4803
- "role": {
4804
- "description": "Role is the org role of the identity in the active organization (Admin/Editor/Viewer/None). Only populated for the current-user (\"users/~\") endpoint.",
4805
- "type": "string"
6398
+ "where": {
6399
+ "description": "Where is the search predicate tree. Omitting it matches everything the endpoint searches: all resources of the kind, or of every type the global search covers (subject to labelSelector and per-item authz).",
6400
+ "$ref": "#/components/schemas/WhereNode"
4806
6401
  }
4807
6402
  }
4808
6403
  },
4809
- "TeamMemberList": {
6404
+ "SearchResults": {
6405
+ "description": "SearchResults is the response body for POST .../{resource}/search.",
4810
6406
  "type": "object",
4811
- "required": ["items"],
6407
+ "required": ["metadata", "items"],
4812
6408
  "properties": {
4813
6409
  "apiVersion": {
4814
6410
  "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
4815
6411
  "type": "string"
4816
6412
  },
6413
+ "facets": {
6414
+ "description": "Facets holds term counts per requested facet field. Counts are computed over a bounded sample window, so they are best-effort/approximate.",
6415
+ "type": "object",
6416
+ "additionalProperties": {
6417
+ "type": "array",
6418
+ "items": {
6419
+ "$ref": "#/components/schemas/FacetTerm"
6420
+ }
6421
+ }
6422
+ },
4817
6423
  "items": {
4818
6424
  "type": "array",
4819
6425
  "items": {
4820
- "default": {}
6426
+ "$ref": "#/components/schemas/ResultItem"
4821
6427
  }
4822
6428
  },
4823
6429
  "kind": {
@@ -4825,70 +6431,82 @@
4825
6431
  "type": "string"
4826
6432
  },
4827
6433
  "metadata": {
4828
- "default": {}
6434
+ "default": {},
6435
+ "$ref": "#/components/schemas/ResultsMetadata"
4829
6436
  }
4830
6437
  }
4831
6438
  },
4832
- "TeamRef": {
6439
+ "SortField": {
6440
+ "description": "SortField names a field to sort by and a direction (\"asc\" or \"desc\"). V1 allows sorting only on scalar string and numeric fields that declare the sort capability.",
4833
6441
  "type": "object",
6442
+ "required": ["field"],
4834
6443
  "properties": {
4835
- "name": {
4836
- "description": "Name is the unique identifier for a team.",
6444
+ "direction": {
4837
6445
  "type": "string"
4838
- }
4839
- }
4840
- },
4841
- "TeamSubject": {
4842
- "type": "object",
4843
- "required": ["identity"],
4844
- "properties": {
4845
- "identity": {
4846
- "description": "Identity is a reference to the identity of this subject.",
4847
- "default": {}
4848
6446
  },
4849
- "permission": {
4850
- "description": "Permission subject has in team.\n\nPossible enum values:\n - `\"admin\"`\n - `\"member\"`",
6447
+ "field": {
4851
6448
  "type": "string",
4852
- "enum": ["admin", "member"]
6449
+ "default": ""
4853
6450
  }
4854
6451
  }
4855
6452
  },
4856
- "UserTeam": {
6453
+ "TextPredicate": {
6454
+ "description": "TextPredicate is a free-text predicate against one or more text-capable fields. When Fields is empty it defaults to the kind's searchTextFields (currently [\"title\"]).",
4857
6455
  "type": "object",
6456
+ "required": ["value"],
4858
6457
  "properties": {
4859
- "permission": {
4860
- "description": "Possible enum values:\n - `\"admin\"`\n - `\"member\"`",
4861
- "type": "string",
4862
- "enum": ["admin", "member"]
6458
+ "boost": {
6459
+ "description": "Boost is a future per-leaf score multiplier. Setting it is rejected in v1.",
6460
+ "type": "number",
6461
+ "format": "double"
4863
6462
  },
4864
- "teamRef": {
4865
- "default": {}
6463
+ "fields": {
6464
+ "type": "array",
6465
+ "items": {
6466
+ "type": "string"
6467
+ }
4866
6468
  },
4867
- "title": {
4868
- "type": "string"
6469
+ "value": {
6470
+ "type": "string",
6471
+ "default": ""
4869
6472
  }
4870
6473
  }
4871
6474
  },
4872
- "UserTeamList": {
6475
+ "WhereNode": {
6476
+ "description": "WhereNode is a single node of the where tree. Exactly one field must be set; the set field names the node's type. Combinators (and/or/not) compose other nodes, leaves (text/filter/range/regex/exists) are terminal predicates.\n\nAll node types are modelled so the schema is future-proof, but v1 only accepts a narrow subset (top-level single leaf or a single and of leaves; text, filter, range and regex leaves; In/NotIn/All filter operators). Everything else is rejected with 422 Unprocessable Entity by the validation layer. exists is sketched for a future version and always rejected today.",
4873
6477
  "type": "object",
4874
- "required": ["items"],
4875
6478
  "properties": {
4876
- "apiVersion": {
4877
- "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
4878
- "type": "string"
6479
+ "and": {
6480
+ "description": "Combinators.",
6481
+ "type": "array",
6482
+ "items": {
6483
+ "$ref": "#/components/schemas/WhereNode"
6484
+ }
4879
6485
  },
4880
- "items": {
6486
+ "exists": {
6487
+ "$ref": "#/components/schemas/ExistsPredicate"
6488
+ },
6489
+ "filter": {
6490
+ "$ref": "#/components/schemas/FilterPredicate"
6491
+ },
6492
+ "not": {
6493
+ "$ref": "#/components/schemas/WhereNode"
6494
+ },
6495
+ "or": {
4881
6496
  "type": "array",
4882
6497
  "items": {
4883
- "default": {}
6498
+ "$ref": "#/components/schemas/WhereNode"
4884
6499
  }
4885
6500
  },
4886
- "kind": {
4887
- "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
4888
- "type": "string"
6501
+ "range": {
6502
+ "$ref": "#/components/schemas/RangePredicate"
4889
6503
  },
4890
- "metadata": {
4891
- "default": {}
6504
+ "regex": {
6505
+ "$ref": "#/components/schemas/RegexPredicate"
6506
+ },
6507
+ "text": {
6508
+ "description": "Leaves.",
6509
+ "$ref": "#/components/schemas/TextPredicate"
4892
6510
  }
4893
6511
  }
4894
6512
  },
@@ -4922,9 +6540,7 @@
4922
6540
  },
4923
6541
  "permissions": {
4924
6542
  "type": "array",
4925
- "items": {
4926
- "default": {}
4927
- }
6543
+ "items": {}
4928
6544
  }
4929
6545
  }
4930
6546
  },
@@ -4962,10 +6578,6 @@
4962
6578
  "description": "Permission member has in team.\n\nPossible enum values:\n - `\"admin\"`\n - `\"member\"`",
4963
6579
  "type": "string",
4964
6580
  "enum": ["admin", "member"]
4965
- },
4966
- "role": {
4967
- "description": "Role is the org role of the identity in the active organization (Admin/Editor/Viewer/None). Only populated for the current-user (\"users/~\") endpoint.",
4968
- "type": "string"
4969
6581
  }
4970
6582
  }
4971
6583
  },
@@ -4980,12 +6592,7 @@
4980
6592
  "items": {
4981
6593
  "type": "array",
4982
6594
  "items": {
4983
- "default": {},
4984
- "allOf": [
4985
- {
4986
- "$ref": "#/components/schemas/github.com~1grafana~1grafana~1pkg~1apis~1iam~1v0alpha1.TeamMember"
4987
- }
4988
- ]
6595
+ "$ref": "#/components/schemas/github.com~1grafana~1grafana~1pkg~1apis~1iam~1v0alpha1.TeamMember"
4989
6596
  }
4990
6597
  },
4991
6598
  "kind": {
@@ -5043,12 +6650,7 @@
5043
6650
  "items": {
5044
6651
  "type": "array",
5045
6652
  "items": {
5046
- "default": {},
5047
- "allOf": [
5048
- {
5049
- "$ref": "#/components/schemas/github.com~1grafana~1grafana~1pkg~1apis~1iam~1v0alpha1.UserTeam"
5050
- }
5051
- ]
6653
+ "$ref": "#/components/schemas/github.com~1grafana~1grafana~1pkg~1apis~1iam~1v0alpha1.UserTeam"
5052
6654
  }
5053
6655
  },
5054
6656
  "kind": {
@@ -5215,6 +6817,53 @@
5215
6817
  "description": "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:<name>', where <name> is the name of a field in a struct, or key in a map 'v:<value>', where <value> is the exact json formatted value of a list item 'i:<index>', where <index> is position of a item in a list 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff",
5216
6818
  "type": "object"
5217
6819
  },
6820
+ "LabelSelector": {
6821
+ "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.",
6822
+ "type": "object",
6823
+ "properties": {
6824
+ "matchExpressions": {
6825
+ "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
6826
+ "type": "array",
6827
+ "items": {
6828
+ "$ref": "#/components/schemas/LabelSelectorRequirement"
6829
+ },
6830
+ "x-kubernetes-list-type": "atomic"
6831
+ },
6832
+ "matchLabels": {
6833
+ "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
6834
+ "type": "object",
6835
+ "additionalProperties": {
6836
+ "type": "string"
6837
+ }
6838
+ }
6839
+ },
6840
+ "x-kubernetes-map-type": "atomic"
6841
+ },
6842
+ "LabelSelectorRequirement": {
6843
+ "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
6844
+ "type": "object",
6845
+ "required": ["key", "operator"],
6846
+ "properties": {
6847
+ "key": {
6848
+ "description": "key is the label key that the selector applies to.",
6849
+ "type": "string",
6850
+ "default": ""
6851
+ },
6852
+ "operator": {
6853
+ "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
6854
+ "type": "string",
6855
+ "default": ""
6856
+ },
6857
+ "values": {
6858
+ "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
6859
+ "type": "array",
6860
+ "items": {
6861
+ "type": "string"
6862
+ },
6863
+ "x-kubernetes-list-type": "atomic"
6864
+ }
6865
+ }
6866
+ },
5218
6867
  "ListMeta": {
5219
6868
  "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.",
5220
6869
  "type": "object",