@terpjs/contract 0.11.0 → 0.12.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.
- package/openapi.json +46 -46
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/manifest.ts +8 -2
- package/src/schema.d.ts +69 -69
package/openapi.json
CHANGED
|
@@ -720,7 +720,7 @@
|
|
|
720
720
|
"paths": {
|
|
721
721
|
"/api/v1/access/grants": {
|
|
722
722
|
"get": {
|
|
723
|
-
"operationId": "
|
|
723
|
+
"operationId": "access.list_grants",
|
|
724
724
|
"parameters": [
|
|
725
725
|
{
|
|
726
726
|
"in": "query",
|
|
@@ -782,13 +782,13 @@
|
|
|
782
782
|
"description": "Validation Error"
|
|
783
783
|
}
|
|
784
784
|
},
|
|
785
|
-
"summary": "List
|
|
785
|
+
"summary": "List the permissions granted to someone",
|
|
786
786
|
"tags": [
|
|
787
787
|
"access"
|
|
788
788
|
]
|
|
789
789
|
},
|
|
790
790
|
"post": {
|
|
791
|
-
"operationId": "
|
|
791
|
+
"operationId": "access.create_grant",
|
|
792
792
|
"requestBody": {
|
|
793
793
|
"content": {
|
|
794
794
|
"application/json": {
|
|
@@ -821,7 +821,7 @@
|
|
|
821
821
|
"description": "Validation Error"
|
|
822
822
|
}
|
|
823
823
|
},
|
|
824
|
-
"summary": "
|
|
824
|
+
"summary": "Grant a permission to someone",
|
|
825
825
|
"tags": [
|
|
826
826
|
"access"
|
|
827
827
|
]
|
|
@@ -829,7 +829,7 @@
|
|
|
829
829
|
},
|
|
830
830
|
"/api/v1/access/grants/{grant_id}": {
|
|
831
831
|
"delete": {
|
|
832
|
-
"operationId": "
|
|
832
|
+
"operationId": "access.delete_grant",
|
|
833
833
|
"parameters": [
|
|
834
834
|
{
|
|
835
835
|
"in": "path",
|
|
@@ -857,7 +857,7 @@
|
|
|
857
857
|
"description": "Validation Error"
|
|
858
858
|
}
|
|
859
859
|
},
|
|
860
|
-
"summary": "
|
|
860
|
+
"summary": "Remove a granted permission",
|
|
861
861
|
"tags": [
|
|
862
862
|
"access"
|
|
863
863
|
]
|
|
@@ -865,7 +865,7 @@
|
|
|
865
865
|
},
|
|
866
866
|
"/api/v1/audit/": {
|
|
867
867
|
"get": {
|
|
868
|
-
"operationId": "
|
|
868
|
+
"operationId": "audit.list_events",
|
|
869
869
|
"parameters": [
|
|
870
870
|
{
|
|
871
871
|
"description": "Rows to skip.",
|
|
@@ -917,7 +917,7 @@
|
|
|
917
917
|
"description": "Validation Error"
|
|
918
918
|
}
|
|
919
919
|
},
|
|
920
|
-
"summary": "
|
|
920
|
+
"summary": "View the audit trail",
|
|
921
921
|
"tags": [
|
|
922
922
|
"audit"
|
|
923
923
|
]
|
|
@@ -925,7 +925,7 @@
|
|
|
925
925
|
},
|
|
926
926
|
"/api/v1/auth/login": {
|
|
927
927
|
"post": {
|
|
928
|
-
"operationId": "
|
|
928
|
+
"operationId": "auth.login",
|
|
929
929
|
"requestBody": {
|
|
930
930
|
"content": {
|
|
931
931
|
"application/json": {
|
|
@@ -958,7 +958,7 @@
|
|
|
958
958
|
"description": "Validation Error"
|
|
959
959
|
}
|
|
960
960
|
},
|
|
961
|
-
"summary": "
|
|
961
|
+
"summary": "Sign in with an email and password",
|
|
962
962
|
"tags": [
|
|
963
963
|
"auth"
|
|
964
964
|
]
|
|
@@ -966,13 +966,13 @@
|
|
|
966
966
|
},
|
|
967
967
|
"/api/v1/auth/logout": {
|
|
968
968
|
"post": {
|
|
969
|
-
"operationId": "
|
|
969
|
+
"operationId": "auth.logout",
|
|
970
970
|
"responses": {
|
|
971
971
|
"204": {
|
|
972
972
|
"description": "Successful Response"
|
|
973
973
|
}
|
|
974
974
|
},
|
|
975
|
-
"summary": "
|
|
975
|
+
"summary": "Sign out of the current session",
|
|
976
976
|
"tags": [
|
|
977
977
|
"auth"
|
|
978
978
|
]
|
|
@@ -980,7 +980,7 @@
|
|
|
980
980
|
},
|
|
981
981
|
"/api/v1/auth/refresh": {
|
|
982
982
|
"post": {
|
|
983
|
-
"operationId": "
|
|
983
|
+
"operationId": "auth.refresh",
|
|
984
984
|
"responses": {
|
|
985
985
|
"200": {
|
|
986
986
|
"content": {
|
|
@@ -993,7 +993,7 @@
|
|
|
993
993
|
"description": "Successful Response"
|
|
994
994
|
}
|
|
995
995
|
},
|
|
996
|
-
"summary": "
|
|
996
|
+
"summary": "Stay signed in without entering a password again",
|
|
997
997
|
"tags": [
|
|
998
998
|
"auth"
|
|
999
999
|
]
|
|
@@ -1001,7 +1001,7 @@
|
|
|
1001
1001
|
},
|
|
1002
1002
|
"/api/v1/groups/": {
|
|
1003
1003
|
"get": {
|
|
1004
|
-
"operationId": "
|
|
1004
|
+
"operationId": "groups.list_groups",
|
|
1005
1005
|
"parameters": [
|
|
1006
1006
|
{
|
|
1007
1007
|
"description": "Rows to skip.",
|
|
@@ -1053,13 +1053,13 @@
|
|
|
1053
1053
|
"description": "Validation Error"
|
|
1054
1054
|
}
|
|
1055
1055
|
},
|
|
1056
|
-
"summary": "List
|
|
1056
|
+
"summary": "List the groups",
|
|
1057
1057
|
"tags": [
|
|
1058
1058
|
"groups"
|
|
1059
1059
|
]
|
|
1060
1060
|
},
|
|
1061
1061
|
"post": {
|
|
1062
|
-
"operationId": "
|
|
1062
|
+
"operationId": "groups.create_group",
|
|
1063
1063
|
"requestBody": {
|
|
1064
1064
|
"content": {
|
|
1065
1065
|
"application/json": {
|
|
@@ -1092,7 +1092,7 @@
|
|
|
1092
1092
|
"description": "Validation Error"
|
|
1093
1093
|
}
|
|
1094
1094
|
},
|
|
1095
|
-
"summary": "Create
|
|
1095
|
+
"summary": "Create a new group",
|
|
1096
1096
|
"tags": [
|
|
1097
1097
|
"groups"
|
|
1098
1098
|
]
|
|
@@ -1100,7 +1100,7 @@
|
|
|
1100
1100
|
},
|
|
1101
1101
|
"/api/v1/groups/{group_id}": {
|
|
1102
1102
|
"delete": {
|
|
1103
|
-
"operationId": "
|
|
1103
|
+
"operationId": "groups.delete_group",
|
|
1104
1104
|
"parameters": [
|
|
1105
1105
|
{
|
|
1106
1106
|
"in": "path",
|
|
@@ -1128,13 +1128,13 @@
|
|
|
1128
1128
|
"description": "Validation Error"
|
|
1129
1129
|
}
|
|
1130
1130
|
},
|
|
1131
|
-
"summary": "Delete
|
|
1131
|
+
"summary": "Delete a group",
|
|
1132
1132
|
"tags": [
|
|
1133
1133
|
"groups"
|
|
1134
1134
|
]
|
|
1135
1135
|
},
|
|
1136
1136
|
"get": {
|
|
1137
|
-
"operationId": "
|
|
1137
|
+
"operationId": "groups.get_group",
|
|
1138
1138
|
"parameters": [
|
|
1139
1139
|
{
|
|
1140
1140
|
"in": "path",
|
|
@@ -1169,13 +1169,13 @@
|
|
|
1169
1169
|
"description": "Validation Error"
|
|
1170
1170
|
}
|
|
1171
1171
|
},
|
|
1172
|
-
"summary": "
|
|
1172
|
+
"summary": "View a group's details",
|
|
1173
1173
|
"tags": [
|
|
1174
1174
|
"groups"
|
|
1175
1175
|
]
|
|
1176
1176
|
},
|
|
1177
1177
|
"patch": {
|
|
1178
|
-
"operationId": "
|
|
1178
|
+
"operationId": "groups.update_group",
|
|
1179
1179
|
"parameters": [
|
|
1180
1180
|
{
|
|
1181
1181
|
"in": "path",
|
|
@@ -1220,7 +1220,7 @@
|
|
|
1220
1220
|
"description": "Validation Error"
|
|
1221
1221
|
}
|
|
1222
1222
|
},
|
|
1223
|
-
"summary": "
|
|
1223
|
+
"summary": "Change a group's details",
|
|
1224
1224
|
"tags": [
|
|
1225
1225
|
"groups"
|
|
1226
1226
|
]
|
|
@@ -1228,7 +1228,7 @@
|
|
|
1228
1228
|
},
|
|
1229
1229
|
"/api/v1/groups/{group_id}/members": {
|
|
1230
1230
|
"get": {
|
|
1231
|
-
"operationId": "
|
|
1231
|
+
"operationId": "groups.list_members",
|
|
1232
1232
|
"parameters": [
|
|
1233
1233
|
{
|
|
1234
1234
|
"in": "path",
|
|
@@ -1290,13 +1290,13 @@
|
|
|
1290
1290
|
"description": "Validation Error"
|
|
1291
1291
|
}
|
|
1292
1292
|
},
|
|
1293
|
-
"summary": "List
|
|
1293
|
+
"summary": "List who belongs to a group",
|
|
1294
1294
|
"tags": [
|
|
1295
1295
|
"groups"
|
|
1296
1296
|
]
|
|
1297
1297
|
},
|
|
1298
1298
|
"post": {
|
|
1299
|
-
"operationId": "
|
|
1299
|
+
"operationId": "groups.add_member",
|
|
1300
1300
|
"parameters": [
|
|
1301
1301
|
{
|
|
1302
1302
|
"in": "path",
|
|
@@ -1341,7 +1341,7 @@
|
|
|
1341
1341
|
"description": "Validation Error"
|
|
1342
1342
|
}
|
|
1343
1343
|
},
|
|
1344
|
-
"summary": "Add
|
|
1344
|
+
"summary": "Add someone to a group",
|
|
1345
1345
|
"tags": [
|
|
1346
1346
|
"groups"
|
|
1347
1347
|
]
|
|
@@ -1349,7 +1349,7 @@
|
|
|
1349
1349
|
},
|
|
1350
1350
|
"/api/v1/groups/{group_id}/members/{user_id}": {
|
|
1351
1351
|
"delete": {
|
|
1352
|
-
"operationId": "
|
|
1352
|
+
"operationId": "groups.remove_member",
|
|
1353
1353
|
"parameters": [
|
|
1354
1354
|
{
|
|
1355
1355
|
"in": "path",
|
|
@@ -1387,7 +1387,7 @@
|
|
|
1387
1387
|
"description": "Validation Error"
|
|
1388
1388
|
}
|
|
1389
1389
|
},
|
|
1390
|
-
"summary": "Remove
|
|
1390
|
+
"summary": "Remove someone from a group",
|
|
1391
1391
|
"tags": [
|
|
1392
1392
|
"groups"
|
|
1393
1393
|
]
|
|
@@ -1395,7 +1395,7 @@
|
|
|
1395
1395
|
},
|
|
1396
1396
|
"/api/v1/me/": {
|
|
1397
1397
|
"get": {
|
|
1398
|
-
"operationId": "
|
|
1398
|
+
"operationId": "auth.me",
|
|
1399
1399
|
"responses": {
|
|
1400
1400
|
"200": {
|
|
1401
1401
|
"content": {
|
|
@@ -1408,7 +1408,7 @@
|
|
|
1408
1408
|
"description": "Successful Response"
|
|
1409
1409
|
}
|
|
1410
1410
|
},
|
|
1411
|
-
"summary": "
|
|
1411
|
+
"summary": "View your own profile",
|
|
1412
1412
|
"tags": [
|
|
1413
1413
|
"auth"
|
|
1414
1414
|
]
|
|
@@ -1416,7 +1416,7 @@
|
|
|
1416
1416
|
},
|
|
1417
1417
|
"/api/v1/users/": {
|
|
1418
1418
|
"get": {
|
|
1419
|
-
"operationId": "
|
|
1419
|
+
"operationId": "users.list_users",
|
|
1420
1420
|
"parameters": [
|
|
1421
1421
|
{
|
|
1422
1422
|
"description": "Filter to users whose email contains this text (case-insensitive).",
|
|
@@ -1487,13 +1487,13 @@
|
|
|
1487
1487
|
"description": "Validation Error"
|
|
1488
1488
|
}
|
|
1489
1489
|
},
|
|
1490
|
-
"summary": "List
|
|
1490
|
+
"summary": "List every user account",
|
|
1491
1491
|
"tags": [
|
|
1492
1492
|
"users"
|
|
1493
1493
|
]
|
|
1494
1494
|
},
|
|
1495
1495
|
"post": {
|
|
1496
|
-
"operationId": "
|
|
1496
|
+
"operationId": "users.provision_user",
|
|
1497
1497
|
"requestBody": {
|
|
1498
1498
|
"content": {
|
|
1499
1499
|
"application/json": {
|
|
@@ -1526,7 +1526,7 @@
|
|
|
1526
1526
|
"description": "Validation Error"
|
|
1527
1527
|
}
|
|
1528
1528
|
},
|
|
1529
|
-
"summary": "
|
|
1529
|
+
"summary": "Create a new user account",
|
|
1530
1530
|
"tags": [
|
|
1531
1531
|
"users"
|
|
1532
1532
|
]
|
|
@@ -1534,7 +1534,7 @@
|
|
|
1534
1534
|
},
|
|
1535
1535
|
"/api/v1/users/{user_id}": {
|
|
1536
1536
|
"get": {
|
|
1537
|
-
"operationId": "
|
|
1537
|
+
"operationId": "users.get_user",
|
|
1538
1538
|
"parameters": [
|
|
1539
1539
|
{
|
|
1540
1540
|
"in": "path",
|
|
@@ -1569,13 +1569,13 @@
|
|
|
1569
1569
|
"description": "Validation Error"
|
|
1570
1570
|
}
|
|
1571
1571
|
},
|
|
1572
|
-
"summary": "
|
|
1572
|
+
"summary": "View a user account's details",
|
|
1573
1573
|
"tags": [
|
|
1574
1574
|
"users"
|
|
1575
1575
|
]
|
|
1576
1576
|
},
|
|
1577
1577
|
"patch": {
|
|
1578
|
-
"operationId": "
|
|
1578
|
+
"operationId": "users.update_user",
|
|
1579
1579
|
"parameters": [
|
|
1580
1580
|
{
|
|
1581
1581
|
"in": "path",
|
|
@@ -1620,7 +1620,7 @@
|
|
|
1620
1620
|
"description": "Validation Error"
|
|
1621
1621
|
}
|
|
1622
1622
|
},
|
|
1623
|
-
"summary": "
|
|
1623
|
+
"summary": "Change a user account's details",
|
|
1624
1624
|
"tags": [
|
|
1625
1625
|
"users"
|
|
1626
1626
|
]
|
|
@@ -1628,7 +1628,7 @@
|
|
|
1628
1628
|
},
|
|
1629
1629
|
"/api/v1/users/{user_id}/deactivate": {
|
|
1630
1630
|
"post": {
|
|
1631
|
-
"operationId": "
|
|
1631
|
+
"operationId": "users.deactivate_user",
|
|
1632
1632
|
"parameters": [
|
|
1633
1633
|
{
|
|
1634
1634
|
"in": "path",
|
|
@@ -1663,7 +1663,7 @@
|
|
|
1663
1663
|
"description": "Validation Error"
|
|
1664
1664
|
}
|
|
1665
1665
|
},
|
|
1666
|
-
"summary": "
|
|
1666
|
+
"summary": "Disable a user account without deleting it",
|
|
1667
1667
|
"tags": [
|
|
1668
1668
|
"users"
|
|
1669
1669
|
]
|
|
@@ -1671,7 +1671,7 @@
|
|
|
1671
1671
|
},
|
|
1672
1672
|
"/api/v1/users/{user_id}/reactivate": {
|
|
1673
1673
|
"post": {
|
|
1674
|
-
"operationId": "
|
|
1674
|
+
"operationId": "users.reactivate_user",
|
|
1675
1675
|
"parameters": [
|
|
1676
1676
|
{
|
|
1677
1677
|
"in": "path",
|
|
@@ -1706,7 +1706,7 @@
|
|
|
1706
1706
|
"description": "Validation Error"
|
|
1707
1707
|
}
|
|
1708
1708
|
},
|
|
1709
|
-
"summary": "
|
|
1709
|
+
"summary": "Re-enable a disabled user account",
|
|
1710
1710
|
"tags": [
|
|
1711
1711
|
"users"
|
|
1712
1712
|
]
|
|
@@ -1714,7 +1714,7 @@
|
|
|
1714
1714
|
},
|
|
1715
1715
|
"/api/v1/users/{user_id}/reset-password": {
|
|
1716
1716
|
"post": {
|
|
1717
|
-
"operationId": "
|
|
1717
|
+
"operationId": "users.reset_user_password",
|
|
1718
1718
|
"parameters": [
|
|
1719
1719
|
{
|
|
1720
1720
|
"in": "path",
|
|
@@ -1759,7 +1759,7 @@
|
|
|
1759
1759
|
"description": "Validation Error"
|
|
1760
1760
|
}
|
|
1761
1761
|
},
|
|
1762
|
-
"summary": "
|
|
1762
|
+
"summary": "Set a new password for a user",
|
|
1763
1763
|
"tags": [
|
|
1764
1764
|
"users"
|
|
1765
1765
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@terpjs/contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Terp frontend contract \u2014 the OpenAPI-generated TypeScript client, design tokens, and the stack-agnostic module/route/nav + auth types.",
|
|
6
6
|
"exports": {
|
package/src/index.ts
CHANGED
|
@@ -7,5 +7,5 @@ export type { components, operations, paths } from "./schema";
|
|
|
7
7
|
export { defineModuleManifest } from "./manifest";
|
|
8
8
|
export { ICON_NAMES } from "./icons";
|
|
9
9
|
export type { IconName } from "./icons";
|
|
10
|
-
export type { ModuleManifest, ModuleRoute, NavGroup, NavItem, RoleName } from "./manifest";
|
|
10
|
+
export type { ModuleManifest, ModuleRoute, NavGroup, NavItem, RoleName, UiText } from "./manifest";
|
|
11
11
|
export type { AccessToken, Action, AuthSession, Credentials, CurrentUser } from "./auth";
|
package/src/manifest.ts
CHANGED
|
@@ -14,6 +14,12 @@ import type { IconName } from "./icons";
|
|
|
14
14
|
|
|
15
15
|
export type RoleName = string;
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* Stable user-interface copy: the source message plus the catalog id every target locale
|
|
19
|
+
* translates. Plain strings remain valid for dynamic business data and product names.
|
|
20
|
+
*/
|
|
21
|
+
export type UiText = string | { readonly id: string; readonly message: string };
|
|
22
|
+
|
|
17
23
|
export interface ModuleRoute {
|
|
18
24
|
/**
|
|
19
25
|
* URL path the route mounts at, e.g. `/billing` or `/billing/:id`.
|
|
@@ -65,7 +71,7 @@ export interface ModuleRoute {
|
|
|
65
71
|
|
|
66
72
|
export interface NavItem {
|
|
67
73
|
/** Sidebar label. */
|
|
68
|
-
label:
|
|
74
|
+
label: UiText;
|
|
69
75
|
/** Destination path; should match a {@link ModuleRoute.path}. */
|
|
70
76
|
to: string;
|
|
71
77
|
/**
|
|
@@ -154,7 +160,7 @@ export interface NavGroup {
|
|
|
154
160
|
* heading for them. Required rather than optional so that "no label" is a decision the
|
|
155
161
|
* declaration states, not an omission.
|
|
156
162
|
*/
|
|
157
|
-
label:
|
|
163
|
+
label: UiText | null;
|
|
158
164
|
/**
|
|
159
165
|
* Sort key against sibling groups.
|
|
160
166
|
*
|
package/src/schema.d.ts
CHANGED
|
@@ -11,11 +11,11 @@ export interface paths {
|
|
|
11
11
|
path?: never;
|
|
12
12
|
cookie?: never;
|
|
13
13
|
};
|
|
14
|
-
/** List
|
|
15
|
-
get: operations["
|
|
14
|
+
/** List the permissions granted to someone */
|
|
15
|
+
get: operations["access.list_grants"];
|
|
16
16
|
put?: never;
|
|
17
|
-
/**
|
|
18
|
-
post: operations["
|
|
17
|
+
/** Grant a permission to someone */
|
|
18
|
+
post: operations["access.create_grant"];
|
|
19
19
|
delete?: never;
|
|
20
20
|
options?: never;
|
|
21
21
|
head?: never;
|
|
@@ -32,8 +32,8 @@ export interface paths {
|
|
|
32
32
|
get?: never;
|
|
33
33
|
put?: never;
|
|
34
34
|
post?: never;
|
|
35
|
-
/**
|
|
36
|
-
delete: operations["
|
|
35
|
+
/** Remove a granted permission */
|
|
36
|
+
delete: operations["access.delete_grant"];
|
|
37
37
|
options?: never;
|
|
38
38
|
head?: never;
|
|
39
39
|
patch?: never;
|
|
@@ -46,8 +46,8 @@ export interface paths {
|
|
|
46
46
|
path?: never;
|
|
47
47
|
cookie?: never;
|
|
48
48
|
};
|
|
49
|
-
/**
|
|
50
|
-
get: operations["
|
|
49
|
+
/** View the audit trail */
|
|
50
|
+
get: operations["audit.list_events"];
|
|
51
51
|
put?: never;
|
|
52
52
|
post?: never;
|
|
53
53
|
delete?: never;
|
|
@@ -65,8 +65,8 @@ export interface paths {
|
|
|
65
65
|
};
|
|
66
66
|
get?: never;
|
|
67
67
|
put?: never;
|
|
68
|
-
/**
|
|
69
|
-
post: operations["
|
|
68
|
+
/** Sign in with an email and password */
|
|
69
|
+
post: operations["auth.login"];
|
|
70
70
|
delete?: never;
|
|
71
71
|
options?: never;
|
|
72
72
|
head?: never;
|
|
@@ -82,8 +82,8 @@ export interface paths {
|
|
|
82
82
|
};
|
|
83
83
|
get?: never;
|
|
84
84
|
put?: never;
|
|
85
|
-
/**
|
|
86
|
-
post: operations["
|
|
85
|
+
/** Sign out of the current session */
|
|
86
|
+
post: operations["auth.logout"];
|
|
87
87
|
delete?: never;
|
|
88
88
|
options?: never;
|
|
89
89
|
head?: never;
|
|
@@ -99,8 +99,8 @@ export interface paths {
|
|
|
99
99
|
};
|
|
100
100
|
get?: never;
|
|
101
101
|
put?: never;
|
|
102
|
-
/**
|
|
103
|
-
post: operations["
|
|
102
|
+
/** Stay signed in without entering a password again */
|
|
103
|
+
post: operations["auth.refresh"];
|
|
104
104
|
delete?: never;
|
|
105
105
|
options?: never;
|
|
106
106
|
head?: never;
|
|
@@ -114,11 +114,11 @@ export interface paths {
|
|
|
114
114
|
path?: never;
|
|
115
115
|
cookie?: never;
|
|
116
116
|
};
|
|
117
|
-
/** List
|
|
118
|
-
get: operations["
|
|
117
|
+
/** List the groups */
|
|
118
|
+
get: operations["groups.list_groups"];
|
|
119
119
|
put?: never;
|
|
120
|
-
/** Create
|
|
121
|
-
post: operations["
|
|
120
|
+
/** Create a new group */
|
|
121
|
+
post: operations["groups.create_group"];
|
|
122
122
|
delete?: never;
|
|
123
123
|
options?: never;
|
|
124
124
|
head?: never;
|
|
@@ -132,16 +132,16 @@ export interface paths {
|
|
|
132
132
|
path?: never;
|
|
133
133
|
cookie?: never;
|
|
134
134
|
};
|
|
135
|
-
/**
|
|
136
|
-
get: operations["
|
|
135
|
+
/** View a group's details */
|
|
136
|
+
get: operations["groups.get_group"];
|
|
137
137
|
put?: never;
|
|
138
138
|
post?: never;
|
|
139
|
-
/** Delete
|
|
140
|
-
delete: operations["
|
|
139
|
+
/** Delete a group */
|
|
140
|
+
delete: operations["groups.delete_group"];
|
|
141
141
|
options?: never;
|
|
142
142
|
head?: never;
|
|
143
|
-
/**
|
|
144
|
-
patch: operations["
|
|
143
|
+
/** Change a group's details */
|
|
144
|
+
patch: operations["groups.update_group"];
|
|
145
145
|
trace?: never;
|
|
146
146
|
};
|
|
147
147
|
"/api/v1/groups/{group_id}/members": {
|
|
@@ -151,11 +151,11 @@ export interface paths {
|
|
|
151
151
|
path?: never;
|
|
152
152
|
cookie?: never;
|
|
153
153
|
};
|
|
154
|
-
/** List
|
|
155
|
-
get: operations["
|
|
154
|
+
/** List who belongs to a group */
|
|
155
|
+
get: operations["groups.list_members"];
|
|
156
156
|
put?: never;
|
|
157
|
-
/** Add
|
|
158
|
-
post: operations["
|
|
157
|
+
/** Add someone to a group */
|
|
158
|
+
post: operations["groups.add_member"];
|
|
159
159
|
delete?: never;
|
|
160
160
|
options?: never;
|
|
161
161
|
head?: never;
|
|
@@ -172,8 +172,8 @@ export interface paths {
|
|
|
172
172
|
get?: never;
|
|
173
173
|
put?: never;
|
|
174
174
|
post?: never;
|
|
175
|
-
/** Remove
|
|
176
|
-
delete: operations["
|
|
175
|
+
/** Remove someone from a group */
|
|
176
|
+
delete: operations["groups.remove_member"];
|
|
177
177
|
options?: never;
|
|
178
178
|
head?: never;
|
|
179
179
|
patch?: never;
|
|
@@ -186,8 +186,8 @@ export interface paths {
|
|
|
186
186
|
path?: never;
|
|
187
187
|
cookie?: never;
|
|
188
188
|
};
|
|
189
|
-
/**
|
|
190
|
-
get: operations["
|
|
189
|
+
/** View your own profile */
|
|
190
|
+
get: operations["auth.me"];
|
|
191
191
|
put?: never;
|
|
192
192
|
post?: never;
|
|
193
193
|
delete?: never;
|
|
@@ -203,11 +203,11 @@ export interface paths {
|
|
|
203
203
|
path?: never;
|
|
204
204
|
cookie?: never;
|
|
205
205
|
};
|
|
206
|
-
/** List
|
|
207
|
-
get: operations["
|
|
206
|
+
/** List every user account */
|
|
207
|
+
get: operations["users.list_users"];
|
|
208
208
|
put?: never;
|
|
209
|
-
/**
|
|
210
|
-
post: operations["
|
|
209
|
+
/** Create a new user account */
|
|
210
|
+
post: operations["users.provision_user"];
|
|
211
211
|
delete?: never;
|
|
212
212
|
options?: never;
|
|
213
213
|
head?: never;
|
|
@@ -221,15 +221,15 @@ export interface paths {
|
|
|
221
221
|
path?: never;
|
|
222
222
|
cookie?: never;
|
|
223
223
|
};
|
|
224
|
-
/**
|
|
225
|
-
get: operations["
|
|
224
|
+
/** View a user account's details */
|
|
225
|
+
get: operations["users.get_user"];
|
|
226
226
|
put?: never;
|
|
227
227
|
post?: never;
|
|
228
228
|
delete?: never;
|
|
229
229
|
options?: never;
|
|
230
230
|
head?: never;
|
|
231
|
-
/**
|
|
232
|
-
patch: operations["
|
|
231
|
+
/** Change a user account's details */
|
|
232
|
+
patch: operations["users.update_user"];
|
|
233
233
|
trace?: never;
|
|
234
234
|
};
|
|
235
235
|
"/api/v1/users/{user_id}/deactivate": {
|
|
@@ -241,8 +241,8 @@ export interface paths {
|
|
|
241
241
|
};
|
|
242
242
|
get?: never;
|
|
243
243
|
put?: never;
|
|
244
|
-
/**
|
|
245
|
-
post: operations["
|
|
244
|
+
/** Disable a user account without deleting it */
|
|
245
|
+
post: operations["users.deactivate_user"];
|
|
246
246
|
delete?: never;
|
|
247
247
|
options?: never;
|
|
248
248
|
head?: never;
|
|
@@ -258,8 +258,8 @@ export interface paths {
|
|
|
258
258
|
};
|
|
259
259
|
get?: never;
|
|
260
260
|
put?: never;
|
|
261
|
-
/**
|
|
262
|
-
post: operations["
|
|
261
|
+
/** Re-enable a disabled user account */
|
|
262
|
+
post: operations["users.reactivate_user"];
|
|
263
263
|
delete?: never;
|
|
264
264
|
options?: never;
|
|
265
265
|
head?: never;
|
|
@@ -275,8 +275,8 @@ export interface paths {
|
|
|
275
275
|
};
|
|
276
276
|
get?: never;
|
|
277
277
|
put?: never;
|
|
278
|
-
/**
|
|
279
|
-
post: operations["
|
|
278
|
+
/** Set a new password for a user */
|
|
279
|
+
post: operations["users.reset_user_password"];
|
|
280
280
|
delete?: never;
|
|
281
281
|
options?: never;
|
|
282
282
|
head?: never;
|
|
@@ -671,7 +671,7 @@ export interface components {
|
|
|
671
671
|
}
|
|
672
672
|
export type $defs = Record<string, never>;
|
|
673
673
|
export interface operations {
|
|
674
|
-
|
|
674
|
+
"access.list_grants": {
|
|
675
675
|
parameters: {
|
|
676
676
|
query: {
|
|
677
677
|
subject_id: string;
|
|
@@ -706,7 +706,7 @@ export interface operations {
|
|
|
706
706
|
};
|
|
707
707
|
};
|
|
708
708
|
};
|
|
709
|
-
|
|
709
|
+
"access.create_grant": {
|
|
710
710
|
parameters: {
|
|
711
711
|
query?: never;
|
|
712
712
|
header?: never;
|
|
@@ -739,7 +739,7 @@ export interface operations {
|
|
|
739
739
|
};
|
|
740
740
|
};
|
|
741
741
|
};
|
|
742
|
-
|
|
742
|
+
"access.delete_grant": {
|
|
743
743
|
parameters: {
|
|
744
744
|
query?: never;
|
|
745
745
|
header?: never;
|
|
@@ -768,7 +768,7 @@ export interface operations {
|
|
|
768
768
|
};
|
|
769
769
|
};
|
|
770
770
|
};
|
|
771
|
-
|
|
771
|
+
"audit.list_events": {
|
|
772
772
|
parameters: {
|
|
773
773
|
query?: {
|
|
774
774
|
/** @description Rows to skip. */
|
|
@@ -802,7 +802,7 @@ export interface operations {
|
|
|
802
802
|
};
|
|
803
803
|
};
|
|
804
804
|
};
|
|
805
|
-
|
|
805
|
+
"auth.login": {
|
|
806
806
|
parameters: {
|
|
807
807
|
query?: never;
|
|
808
808
|
header?: never;
|
|
@@ -835,7 +835,7 @@ export interface operations {
|
|
|
835
835
|
};
|
|
836
836
|
};
|
|
837
837
|
};
|
|
838
|
-
|
|
838
|
+
"auth.logout": {
|
|
839
839
|
parameters: {
|
|
840
840
|
query?: never;
|
|
841
841
|
header?: never;
|
|
@@ -853,7 +853,7 @@ export interface operations {
|
|
|
853
853
|
};
|
|
854
854
|
};
|
|
855
855
|
};
|
|
856
|
-
|
|
856
|
+
"auth.refresh": {
|
|
857
857
|
parameters: {
|
|
858
858
|
query?: never;
|
|
859
859
|
header?: never;
|
|
@@ -873,7 +873,7 @@ export interface operations {
|
|
|
873
873
|
};
|
|
874
874
|
};
|
|
875
875
|
};
|
|
876
|
-
|
|
876
|
+
"groups.list_groups": {
|
|
877
877
|
parameters: {
|
|
878
878
|
query?: {
|
|
879
879
|
/** @description Rows to skip. */
|
|
@@ -907,7 +907,7 @@ export interface operations {
|
|
|
907
907
|
};
|
|
908
908
|
};
|
|
909
909
|
};
|
|
910
|
-
|
|
910
|
+
"groups.create_group": {
|
|
911
911
|
parameters: {
|
|
912
912
|
query?: never;
|
|
913
913
|
header?: never;
|
|
@@ -940,7 +940,7 @@ export interface operations {
|
|
|
940
940
|
};
|
|
941
941
|
};
|
|
942
942
|
};
|
|
943
|
-
|
|
943
|
+
"groups.get_group": {
|
|
944
944
|
parameters: {
|
|
945
945
|
query?: never;
|
|
946
946
|
header?: never;
|
|
@@ -971,7 +971,7 @@ export interface operations {
|
|
|
971
971
|
};
|
|
972
972
|
};
|
|
973
973
|
};
|
|
974
|
-
|
|
974
|
+
"groups.delete_group": {
|
|
975
975
|
parameters: {
|
|
976
976
|
query?: never;
|
|
977
977
|
header?: never;
|
|
@@ -1000,7 +1000,7 @@ export interface operations {
|
|
|
1000
1000
|
};
|
|
1001
1001
|
};
|
|
1002
1002
|
};
|
|
1003
|
-
|
|
1003
|
+
"groups.update_group": {
|
|
1004
1004
|
parameters: {
|
|
1005
1005
|
query?: never;
|
|
1006
1006
|
header?: never;
|
|
@@ -1035,7 +1035,7 @@ export interface operations {
|
|
|
1035
1035
|
};
|
|
1036
1036
|
};
|
|
1037
1037
|
};
|
|
1038
|
-
|
|
1038
|
+
"groups.list_members": {
|
|
1039
1039
|
parameters: {
|
|
1040
1040
|
query?: {
|
|
1041
1041
|
/** @description Rows to skip. */
|
|
@@ -1071,7 +1071,7 @@ export interface operations {
|
|
|
1071
1071
|
};
|
|
1072
1072
|
};
|
|
1073
1073
|
};
|
|
1074
|
-
|
|
1074
|
+
"groups.add_member": {
|
|
1075
1075
|
parameters: {
|
|
1076
1076
|
query?: never;
|
|
1077
1077
|
header?: never;
|
|
@@ -1106,7 +1106,7 @@ export interface operations {
|
|
|
1106
1106
|
};
|
|
1107
1107
|
};
|
|
1108
1108
|
};
|
|
1109
|
-
|
|
1109
|
+
"groups.remove_member": {
|
|
1110
1110
|
parameters: {
|
|
1111
1111
|
query?: never;
|
|
1112
1112
|
header?: never;
|
|
@@ -1136,7 +1136,7 @@ export interface operations {
|
|
|
1136
1136
|
};
|
|
1137
1137
|
};
|
|
1138
1138
|
};
|
|
1139
|
-
|
|
1139
|
+
"auth.me": {
|
|
1140
1140
|
parameters: {
|
|
1141
1141
|
query?: never;
|
|
1142
1142
|
header?: never;
|
|
@@ -1156,7 +1156,7 @@ export interface operations {
|
|
|
1156
1156
|
};
|
|
1157
1157
|
};
|
|
1158
1158
|
};
|
|
1159
|
-
|
|
1159
|
+
"users.list_users": {
|
|
1160
1160
|
parameters: {
|
|
1161
1161
|
query?: {
|
|
1162
1162
|
/** @description Filter to users whose email contains this text (case-insensitive). */
|
|
@@ -1192,7 +1192,7 @@ export interface operations {
|
|
|
1192
1192
|
};
|
|
1193
1193
|
};
|
|
1194
1194
|
};
|
|
1195
|
-
|
|
1195
|
+
"users.provision_user": {
|
|
1196
1196
|
parameters: {
|
|
1197
1197
|
query?: never;
|
|
1198
1198
|
header?: never;
|
|
@@ -1225,7 +1225,7 @@ export interface operations {
|
|
|
1225
1225
|
};
|
|
1226
1226
|
};
|
|
1227
1227
|
};
|
|
1228
|
-
|
|
1228
|
+
"users.get_user": {
|
|
1229
1229
|
parameters: {
|
|
1230
1230
|
query?: never;
|
|
1231
1231
|
header?: never;
|
|
@@ -1256,7 +1256,7 @@ export interface operations {
|
|
|
1256
1256
|
};
|
|
1257
1257
|
};
|
|
1258
1258
|
};
|
|
1259
|
-
|
|
1259
|
+
"users.update_user": {
|
|
1260
1260
|
parameters: {
|
|
1261
1261
|
query?: never;
|
|
1262
1262
|
header?: never;
|
|
@@ -1291,7 +1291,7 @@ export interface operations {
|
|
|
1291
1291
|
};
|
|
1292
1292
|
};
|
|
1293
1293
|
};
|
|
1294
|
-
|
|
1294
|
+
"users.deactivate_user": {
|
|
1295
1295
|
parameters: {
|
|
1296
1296
|
query?: never;
|
|
1297
1297
|
header?: never;
|
|
@@ -1322,7 +1322,7 @@ export interface operations {
|
|
|
1322
1322
|
};
|
|
1323
1323
|
};
|
|
1324
1324
|
};
|
|
1325
|
-
|
|
1325
|
+
"users.reactivate_user": {
|
|
1326
1326
|
parameters: {
|
|
1327
1327
|
query?: never;
|
|
1328
1328
|
header?: never;
|
|
@@ -1353,7 +1353,7 @@ export interface operations {
|
|
|
1353
1353
|
};
|
|
1354
1354
|
};
|
|
1355
1355
|
};
|
|
1356
|
-
|
|
1356
|
+
"users.reset_user_password": {
|
|
1357
1357
|
parameters: {
|
|
1358
1358
|
query?: never;
|
|
1359
1359
|
header?: never;
|