@bongos/core 1.21.81 → 1.21.82
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/.bongos-core.json +25 -25
- package/clients/bongos-client/README.md +1 -1
- package/clients/bongos-client/bongos-client.global.js +2 -0
- package/clients/bongos-client/index.cjs +2 -0
- package/clients/bongos-client/index.d.ts +3 -0
- package/clients/bongos-client/index.mjs +2 -0
- package/docs/api/openapi.json +75 -3
- package/docs/api-reference.md +3 -2
- package/docs/copy-inventory.md +53 -50
- package/docs/copy-registry.json +79 -52
- package/docs/module-api-changelog.md +2 -0
- package/docs/page-readings.json +20 -20
- package/modules/government/db.js +45 -0
- package/modules/government/routes/government.js +71 -0
- package/modules/hall-ui/public/government.js +38 -0
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/release-notes.json +6 -0
- package/src/bongos/route-rank-check.js +1 -0
- package/src/module-api.js +1 -1
- package/tests/government_routes.mjs +72 -0
package/.bongos-core.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"artifact": "bongos-core",
|
|
3
3
|
"manifest_schema": 1,
|
|
4
4
|
"generator": "scripts/gds/package-core.js",
|
|
5
|
-
"core_version": "1.21.
|
|
6
|
-
"core_contract": "1.21.
|
|
7
|
-
"source_commit": "
|
|
5
|
+
"core_version": "1.21.82",
|
|
6
|
+
"core_contract": "1.21.82",
|
|
7
|
+
"source_commit": "5157c0502abba58054792a039d6be72b3a26509d",
|
|
8
8
|
"source_ref": "HEAD",
|
|
9
|
-
"built_at": "2026-10-09T00:
|
|
9
|
+
"built_at": "2026-10-09T00:55:45.104Z",
|
|
10
10
|
"redaction": {
|
|
11
11
|
"model": "docs-redacted+functional-verbatim",
|
|
12
12
|
"docs_redacted": 590,
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"gate": "passed"
|
|
18
18
|
},
|
|
19
19
|
"file_count": 3611,
|
|
20
|
-
"tree_sha256": "
|
|
20
|
+
"tree_sha256": "d817c1d18f0e8dac8f8058d1eccb31dc74a02ba8b5a9568eea2d1643fa69102a",
|
|
21
21
|
"files": [
|
|
22
22
|
{
|
|
23
23
|
"path": ".claude/skills/ask-for-help/SKILL.md",
|
|
@@ -312,12 +312,12 @@
|
|
|
312
312
|
{
|
|
313
313
|
"path": "clients/bongos-client/README.md",
|
|
314
314
|
"mode": "0000644",
|
|
315
|
-
"sha256": "
|
|
315
|
+
"sha256": "dca89d0b6d666660f3f20e46c6c6bf23359ed4ab66c6ab2f0a0cf4531b95dc4c"
|
|
316
316
|
},
|
|
317
317
|
{
|
|
318
318
|
"path": "clients/bongos-client/bongos-client.global.js",
|
|
319
319
|
"mode": "0000644",
|
|
320
|
-
"sha256": "
|
|
320
|
+
"sha256": "f13d2ab747d8335f0549f975572f9f2f52d9448ebf98e9b8f65099e41d9eb6da"
|
|
321
321
|
},
|
|
322
322
|
{
|
|
323
323
|
"path": "clients/bongos-client/examples/hello-world.mjs",
|
|
@@ -327,17 +327,17 @@
|
|
|
327
327
|
{
|
|
328
328
|
"path": "clients/bongos-client/index.cjs",
|
|
329
329
|
"mode": "0000644",
|
|
330
|
-
"sha256": "
|
|
330
|
+
"sha256": "637d70956978dbdfdae95d2b60a42a57fa6f873545479e385924ac496d8afcd6"
|
|
331
331
|
},
|
|
332
332
|
{
|
|
333
333
|
"path": "clients/bongos-client/index.d.ts",
|
|
334
334
|
"mode": "0000644",
|
|
335
|
-
"sha256": "
|
|
335
|
+
"sha256": "0460f90122f6c8af003d124a2a78fe10048b550450fa3c2cdd6ad3a6823a2734"
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
"path": "clients/bongos-client/index.mjs",
|
|
339
339
|
"mode": "0000644",
|
|
340
|
-
"sha256": "
|
|
340
|
+
"sha256": "8ec801758d45dfe71cae6dfbb021254dc2be805ad8cce05db488ab0ea57e61d2"
|
|
341
341
|
},
|
|
342
342
|
{
|
|
343
343
|
"path": "clients/bongos-client/package.json",
|
|
@@ -2317,12 +2317,12 @@
|
|
|
2317
2317
|
{
|
|
2318
2318
|
"path": "docs/api-reference.md",
|
|
2319
2319
|
"mode": "0000644",
|
|
2320
|
-
"sha256": "
|
|
2320
|
+
"sha256": "4baff611262776013e0750a094dc5f6b8c1b4307d6bd91e5a083ce58f8e6722e"
|
|
2321
2321
|
},
|
|
2322
2322
|
{
|
|
2323
2323
|
"path": "docs/api/openapi.json",
|
|
2324
2324
|
"mode": "0000644",
|
|
2325
|
-
"sha256": "
|
|
2325
|
+
"sha256": "c1fcc16388d0127f15a92071d9376e6d52d64f4af08554647bc9919af92bc5a1"
|
|
2326
2326
|
},
|
|
2327
2327
|
{
|
|
2328
2328
|
"path": "docs/architecture.md",
|
|
@@ -2347,12 +2347,12 @@
|
|
|
2347
2347
|
{
|
|
2348
2348
|
"path": "docs/copy-inventory.md",
|
|
2349
2349
|
"mode": "0000644",
|
|
2350
|
-
"sha256": "
|
|
2350
|
+
"sha256": "edcb2fbe84fd5dad82e6cb2f881caec590d83dbe3afa1374529778d847073378"
|
|
2351
2351
|
},
|
|
2352
2352
|
{
|
|
2353
2353
|
"path": "docs/copy-registry.json",
|
|
2354
2354
|
"mode": "0000644",
|
|
2355
|
-
"sha256": "
|
|
2355
|
+
"sha256": "fa89d7183576b29739b7f2c8dfbb3479d26e0e5823683200ea7fc85d07c0a939"
|
|
2356
2356
|
},
|
|
2357
2357
|
{
|
|
2358
2358
|
"path": "docs/design/apex-pass-2-direction.md",
|
|
@@ -2862,7 +2862,7 @@
|
|
|
2862
2862
|
{
|
|
2863
2863
|
"path": "docs/module-api-changelog.md",
|
|
2864
2864
|
"mode": "0000644",
|
|
2865
|
-
"sha256": "
|
|
2865
|
+
"sha256": "fab60a91e6cd3d7fde02965523e4ad03af1ea9c4391ea66fd82a407446d6f796"
|
|
2866
2866
|
},
|
|
2867
2867
|
{
|
|
2868
2868
|
"path": "docs/modules-contract.md",
|
|
@@ -2952,7 +2952,7 @@
|
|
|
2952
2952
|
{
|
|
2953
2953
|
"path": "docs/page-readings.json",
|
|
2954
2954
|
"mode": "0000644",
|
|
2955
|
-
"sha256": "
|
|
2955
|
+
"sha256": "522c8f039f00163d8b0733ea5d7383d486b602d5fd168f0b17af7a8b9555f7c6"
|
|
2956
2956
|
},
|
|
2957
2957
|
{
|
|
2958
2958
|
"path": "docs/project-context.template.md",
|
|
@@ -4922,7 +4922,7 @@
|
|
|
4922
4922
|
{
|
|
4923
4923
|
"path": "modules/government/db.js",
|
|
4924
4924
|
"mode": "0000644",
|
|
4925
|
-
"sha256": "
|
|
4925
|
+
"sha256": "007879cf473c54146f08e94cc46819645a96df46fd81c8a9016507c661a62a8d"
|
|
4926
4926
|
},
|
|
4927
4927
|
{
|
|
4928
4928
|
"path": "modules/government/decision-board.js",
|
|
@@ -5157,7 +5157,7 @@
|
|
|
5157
5157
|
{
|
|
5158
5158
|
"path": "modules/government/routes/government.js",
|
|
5159
5159
|
"mode": "0000644",
|
|
5160
|
-
"sha256": "
|
|
5160
|
+
"sha256": "52bd577d606e072982545d91e4a05a94160cfedcf9e07ffdc90f06b75f0aeee1"
|
|
5161
5161
|
},
|
|
5162
5162
|
{
|
|
5163
5163
|
"path": "modules/government/routes/rank-sync.js",
|
|
@@ -5802,7 +5802,7 @@
|
|
|
5802
5802
|
{
|
|
5803
5803
|
"path": "modules/hall-ui/public/government.js",
|
|
5804
5804
|
"mode": "0000644",
|
|
5805
|
-
"sha256": "
|
|
5805
|
+
"sha256": "42f8f87beb364c4bd69e0ff00bd98bbdc055fac8b24cd2aa499831d69c66c16c"
|
|
5806
5806
|
},
|
|
5807
5807
|
{
|
|
5808
5808
|
"path": "modules/hall-ui/public/government.states.json",
|
|
@@ -10087,12 +10087,12 @@
|
|
|
10087
10087
|
{
|
|
10088
10088
|
"path": "package-lock.json",
|
|
10089
10089
|
"mode": "0000644",
|
|
10090
|
-
"sha256": "
|
|
10090
|
+
"sha256": "8779f587531930440d4848e41db4cb441050b0f20555aa3e2d941183d0e728e6"
|
|
10091
10091
|
},
|
|
10092
10092
|
{
|
|
10093
10093
|
"path": "package.json",
|
|
10094
10094
|
"mode": "0000644",
|
|
10095
|
-
"sha256": "
|
|
10095
|
+
"sha256": "b5d732d5c5ec5ff93462030a889b988d56241a6fc1662a686ed07e5768c6611b"
|
|
10096
10096
|
},
|
|
10097
10097
|
{
|
|
10098
10098
|
"path": "public-docs/index.html",
|
|
@@ -10112,7 +10112,7 @@
|
|
|
10112
10112
|
{
|
|
10113
10113
|
"path": "release-notes.json",
|
|
10114
10114
|
"mode": "0000644",
|
|
10115
|
-
"sha256": "
|
|
10115
|
+
"sha256": "ac161212dd9e3a62494e433c42a6ce9852b34fda18e4bc22fe5ea5acc872a22c"
|
|
10116
10116
|
},
|
|
10117
10117
|
{
|
|
10118
10118
|
"path": "scripts/cron/style_guide_audit.sh",
|
|
@@ -12197,7 +12197,7 @@
|
|
|
12197
12197
|
{
|
|
12198
12198
|
"path": "src/bongos/route-rank-check.js",
|
|
12199
12199
|
"mode": "0000644",
|
|
12200
|
-
"sha256": "
|
|
12200
|
+
"sha256": "7e72321c1485cd071f4d82cae5263443a529af27becf413c60a61c090d2862b9"
|
|
12201
12201
|
},
|
|
12202
12202
|
{
|
|
12203
12203
|
"path": "src/bongos/routes.js",
|
|
@@ -12362,7 +12362,7 @@
|
|
|
12362
12362
|
{
|
|
12363
12363
|
"path": "src/module-api.js",
|
|
12364
12364
|
"mode": "0000644",
|
|
12365
|
-
"sha256": "
|
|
12365
|
+
"sha256": "b0db033bc19ccd98809d084e7aa15c262f1848eeaef26f654dd44c65fab5d361"
|
|
12366
12366
|
},
|
|
12367
12367
|
{
|
|
12368
12368
|
"path": "src/module-loader/catalog.js",
|
|
@@ -14432,7 +14432,7 @@
|
|
|
14432
14432
|
{
|
|
14433
14433
|
"path": "tests/government_routes.mjs",
|
|
14434
14434
|
"mode": "0000644",
|
|
14435
|
-
"sha256": "
|
|
14435
|
+
"sha256": "5ad02edb432d636f8d02a79e75447199278d169ffe5587db905fe557ecfdd3fd"
|
|
14436
14436
|
},
|
|
14437
14437
|
{
|
|
14438
14438
|
"path": "tests/government_seed.mjs",
|
|
@@ -5,7 +5,7 @@ A **generated**, zero-dependency typed client for the Bongos API — produced fr
|
|
|
5
5
|
by hand; it regenerates when the spec changes, so it can never drift from the routes.
|
|
6
6
|
|
|
7
7
|
- API version: **v1** (served at `/api/bongos/v1`)
|
|
8
|
-
-
|
|
8
|
+
- 532 operations across 75 resource groups
|
|
9
9
|
|
|
10
10
|
## Use it from your project
|
|
11
11
|
|
|
@@ -531,6 +531,8 @@ function createClient(opts = {}) {
|
|
|
531
531
|
getGovernmentRanks: (args) => request("GET", "/government/ranks", { hasBody: false }, args),
|
|
532
532
|
// POST /government/ranks — rank: archon — POST /government/ranks
|
|
533
533
|
postGovernmentRanks: (args) => request("POST", "/government/ranks", { hasBody: true }, args),
|
|
534
|
+
// DELETE /government/ranks/{rankKey} — rank: archon — DELETE /government/ranks/:rankKey
|
|
535
|
+
deleteGovernmentRanksRankKey: (args) => request("DELETE", "/government/ranks/{rankKey}", { hasBody: false }, args),
|
|
534
536
|
// DELETE /government/ranks/{rankKey}/permissions/{permissionKey} — rank: archon — DELETE /government/ranks/:rankKey/permissions/:permissionKey
|
|
535
537
|
deleteGovernmentRanksRankKeyPermissionsPermissionKey: (args) => request("DELETE", "/government/ranks/{rankKey}/permissions/{permissionKey}", { hasBody: false }, args),
|
|
536
538
|
// PUT /government/ranks/{rankKey}/permissions/{permissionKey} — rank: archon — PUT /government/ranks/:rankKey/permissions/:permissionKey
|
|
@@ -530,6 +530,8 @@ function createClient(opts = {}) {
|
|
|
530
530
|
getGovernmentRanks: (args) => request("GET", "/government/ranks", { hasBody: false }, args),
|
|
531
531
|
// POST /government/ranks — rank: archon — POST /government/ranks
|
|
532
532
|
postGovernmentRanks: (args) => request("POST", "/government/ranks", { hasBody: true }, args),
|
|
533
|
+
// DELETE /government/ranks/{rankKey} — rank: archon — DELETE /government/ranks/:rankKey
|
|
534
|
+
deleteGovernmentRanksRankKey: (args) => request("DELETE", "/government/ranks/{rankKey}", { hasBody: false }, args),
|
|
533
535
|
// DELETE /government/ranks/{rankKey}/permissions/{permissionKey} — rank: archon — DELETE /government/ranks/:rankKey/permissions/:permissionKey
|
|
534
536
|
deleteGovernmentRanksRankKeyPermissionsPermissionKey: (args) => request("DELETE", "/government/ranks/{rankKey}/permissions/{permissionKey}", { hasBody: false }, args),
|
|
535
537
|
// PUT /government/ranks/{rankKey}/permissions/{permissionKey} — rank: archon — PUT /government/ranks/:rankKey/permissions/:permissionKey
|
|
@@ -11,6 +11,7 @@ export interface DeleteConnectionsIdResponse { outcome: unknown }
|
|
|
11
11
|
export interface DeleteDependenciesResponse { ok: boolean }
|
|
12
12
|
export interface DeleteGovernmentAssignmentsBuilderIdRankKeyResponse { ok: boolean; builder_id: unknown; rank_key: unknown; removed: unknown }
|
|
13
13
|
export interface DeleteGovernmentRanksRankKeyPermissionsPermissionKeyResponse { ok: boolean; rank_key: unknown; permission_key: unknown; removed: unknown }
|
|
14
|
+
export interface DeleteGovernmentRanksRankKeyResponse { ok: boolean; rank_key: unknown; deleted: boolean }
|
|
14
15
|
export interface DeleteGuildRequestsIdResponse { outcome: unknown }
|
|
15
16
|
export interface DeleteGuildsSlugMembersHandleResponse { outcome: unknown }
|
|
16
17
|
export interface DeleteGuildsSlugMembershipResponse { outcome: unknown }
|
|
@@ -1037,6 +1038,8 @@ export interface BongosClient {
|
|
|
1037
1038
|
getGovernmentRanks(args?: RequestArgs): Promise<GetGovernmentRanksResponse>;
|
|
1038
1039
|
/** POST /government/ranks — rank: archon */
|
|
1039
1040
|
postGovernmentRanks(args: RequestArgs & { body: PostGovernmentRanksRequest }): Promise<PostGovernmentRanksResponse>;
|
|
1041
|
+
/** DELETE /government/ranks/{rankKey} — rank: archon */
|
|
1042
|
+
deleteGovernmentRanksRankKey(args?: RequestArgs): Promise<DeleteGovernmentRanksRankKeyResponse>;
|
|
1040
1043
|
/** DELETE /government/ranks/{rankKey}/permissions/{permissionKey} — rank: archon */
|
|
1041
1044
|
deleteGovernmentRanksRankKeyPermissionsPermissionKey(args?: RequestArgs): Promise<DeleteGovernmentRanksRankKeyPermissionsPermissionKeyResponse>;
|
|
1042
1045
|
/** PUT /government/ranks/{rankKey}/permissions/{permissionKey} — rank: archon */
|
|
@@ -527,6 +527,8 @@ export function createClient(opts = {}) {
|
|
|
527
527
|
getGovernmentRanks: (args) => request("GET", "/government/ranks", { hasBody: false }, args),
|
|
528
528
|
// POST /government/ranks — rank: archon — POST /government/ranks
|
|
529
529
|
postGovernmentRanks: (args) => request("POST", "/government/ranks", { hasBody: true }, args),
|
|
530
|
+
// DELETE /government/ranks/{rankKey} — rank: archon — DELETE /government/ranks/:rankKey
|
|
531
|
+
deleteGovernmentRanksRankKey: (args) => request("DELETE", "/government/ranks/{rankKey}", { hasBody: false }, args),
|
|
530
532
|
// DELETE /government/ranks/{rankKey}/permissions/{permissionKey} — rank: archon — DELETE /government/ranks/:rankKey/permissions/:permissionKey
|
|
531
533
|
deleteGovernmentRanksRankKeyPermissionsPermissionKey: (args) => request("DELETE", "/government/ranks/{rankKey}/permissions/{permissionKey}", { hasBody: false }, args),
|
|
532
534
|
// PUT /government/ranks/{rankKey}/permissions/{permissionKey} — rank: archon — PUT /government/ranks/:rankKey/permissions/:permissionKey
|
package/docs/api/openapi.json
CHANGED
|
@@ -9255,6 +9255,61 @@
|
|
|
9255
9255
|
]
|
|
9256
9256
|
}
|
|
9257
9257
|
},
|
|
9258
|
+
"/government/ranks/{rankKey}": {
|
|
9259
|
+
"delete": {
|
|
9260
|
+
"operationId": "delete_government_ranks_rankKey",
|
|
9261
|
+
"tags": [
|
|
9262
|
+
"government"
|
|
9263
|
+
],
|
|
9264
|
+
"summary": "DELETE /government/ranks/:rankKey",
|
|
9265
|
+
"description": "government.manage — delete a CUSTOM rank (task 1004481). Ranks added from a recommended set used to be permanent; the owner hesitated to try one for exactly that reason. Three refusals, each naming what to do: - a seeded rank, never (`seeded_rank_immutable`) — the ladder is the system; - a rank someone still holds (`rank_still_held`, with the holders) — owner decision 2026-10-08: no auto-unassign, so nobody loses a rank as a side effect of a cleanup; - a rank the constitution or the who-decides table seats (`rank_in_use_by_government`) — deleting it would leave that seat empty, and only an amendment may change who decides.\n\n**Rank:** `archon` — Archon only (rank and identity management + the escalation keys — the trust boundary).\n\n**Permissions:** `government.manage` (all required).",
|
|
9266
|
+
"x-rank": "archon",
|
|
9267
|
+
"x-source": "modules/government/routes/government.js",
|
|
9268
|
+
"x-permissions": [
|
|
9269
|
+
"government.manage"
|
|
9270
|
+
],
|
|
9271
|
+
"parameters": [
|
|
9272
|
+
{
|
|
9273
|
+
"name": "rankKey",
|
|
9274
|
+
"in": "path",
|
|
9275
|
+
"required": true,
|
|
9276
|
+
"schema": {
|
|
9277
|
+
"type": "string"
|
|
9278
|
+
},
|
|
9279
|
+
"description": "Path parameter `rankKey`."
|
|
9280
|
+
}
|
|
9281
|
+
],
|
|
9282
|
+
"responses": {
|
|
9283
|
+
"200": {
|
|
9284
|
+
"description": "Success.",
|
|
9285
|
+
"content": {
|
|
9286
|
+
"application/json": {
|
|
9287
|
+
"schema": {
|
|
9288
|
+
"$ref": "#/components/schemas/DeleteGovernmentRanksRankKeyResponse"
|
|
9289
|
+
}
|
|
9290
|
+
}
|
|
9291
|
+
}
|
|
9292
|
+
},
|
|
9293
|
+
"400": {
|
|
9294
|
+
"$ref": "#/components/responses/BadRequest"
|
|
9295
|
+
},
|
|
9296
|
+
"401": {
|
|
9297
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
9298
|
+
},
|
|
9299
|
+
"403": {
|
|
9300
|
+
"$ref": "#/components/responses/Forbidden"
|
|
9301
|
+
},
|
|
9302
|
+
"404": {
|
|
9303
|
+
"$ref": "#/components/responses/NotFound"
|
|
9304
|
+
}
|
|
9305
|
+
},
|
|
9306
|
+
"security": [
|
|
9307
|
+
{
|
|
9308
|
+
"builderSession": []
|
|
9309
|
+
}
|
|
9310
|
+
]
|
|
9311
|
+
}
|
|
9312
|
+
},
|
|
9258
9313
|
"/government/ranks/{rankKey}/permissions/{permissionKey}": {
|
|
9259
9314
|
"put": {
|
|
9260
9315
|
"operationId": "put_government_ranks_rankKey_permissions_permissionKey",
|
|
@@ -25060,6 +25115,23 @@
|
|
|
25060
25115
|
"removed"
|
|
25061
25116
|
]
|
|
25062
25117
|
},
|
|
25118
|
+
"DeleteGovernmentRanksRankKeyResponse": {
|
|
25119
|
+
"type": "object",
|
|
25120
|
+
"properties": {
|
|
25121
|
+
"ok": {
|
|
25122
|
+
"type": "boolean"
|
|
25123
|
+
},
|
|
25124
|
+
"rank_key": {},
|
|
25125
|
+
"deleted": {
|
|
25126
|
+
"type": "boolean"
|
|
25127
|
+
}
|
|
25128
|
+
},
|
|
25129
|
+
"required": [
|
|
25130
|
+
"ok",
|
|
25131
|
+
"rank_key",
|
|
25132
|
+
"deleted"
|
|
25133
|
+
]
|
|
25134
|
+
},
|
|
25063
25135
|
"DeleteGuildRequestsIdResponse": {
|
|
25064
25136
|
"type": "object",
|
|
25065
25137
|
"properties": {
|
|
@@ -34107,9 +34179,9 @@
|
|
|
34107
34179
|
"description": "A required dependency/feature is not configured or is temporarily down."
|
|
34108
34180
|
}
|
|
34109
34181
|
},
|
|
34110
|
-
"x-endpoint-count":
|
|
34111
|
-
"x-schema-count":
|
|
34182
|
+
"x-endpoint-count": 532,
|
|
34183
|
+
"x-schema-count": 574,
|
|
34112
34184
|
"x-undocumented-bodies": 12,
|
|
34113
|
-
"x-response-schemas":
|
|
34185
|
+
"x-response-schemas": 380,
|
|
34114
34186
|
"x-generated-by": "scripts/gds/gen-api-docs.js"
|
|
34115
34187
|
}
|
package/docs/api-reference.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Bongos API reference
|
|
4
4
|
|
|
5
|
-
> **Generated from the live route files** — the route file is authoritative.
|
|
5
|
+
> **Generated from the live route files** — the route file is authoritative. 532 endpoints across 93 route files.
|
|
6
6
|
> Machine-readable spec: [`docs/api/openapi.json`](api/openapi.json) (OpenAPI 3.1). Rendered docs site: **`/docs`** (e.g. `cloudbongos.com/docs`).
|
|
7
7
|
|
|
8
8
|
Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/0016-trust-boundary-server-enforced-permissions.md)): `public` < `any-builder` < `metic+archon` < `archon`.
|
|
@@ -341,7 +341,7 @@ Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/0016-trust
|
|
|
341
341
|
| GET | `/api/bongos/goals/rollups` | `any-builder` | — | GET /goals/rollups?version= — one small row per goal: readiness counters, the last-activity timestamp, the craft set, and the next claima… |
|
|
342
342
|
| GET | `/api/bongos/goals/suggestions` | `any-builder` | — | GET /goals/suggestions — "which goal should this draft live in?", answered before anything is created (task 1003062 / R07). |
|
|
343
343
|
|
|
344
|
-
## `government` (
|
|
344
|
+
## `government` (21)
|
|
345
345
|
|
|
346
346
|
| Method | Path | Rank | Body | Description |
|
|
347
347
|
|---|---|---|---|---|
|
|
@@ -362,6 +362,7 @@ Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/0016-trust
|
|
|
362
362
|
| POST | `/api/bongos/government/rank-sets/apply` | `archon` | `type`, `headcount` | government.manage — add a RECOMMENDED RANK SET (task 1004400): the custom ranks recommendations.js names for a project type and size, eac… |
|
|
363
363
|
| GET | `/api/bongos/government/ranks` | `archon` | — | government.manage — the full rank list with each rank's grants. |
|
|
364
364
|
| POST | `/api/bongos/government/ranks` | `archon` | `rank_key`, `label`, `description` | government.manage — create a CUSTOM rank (is_system false, no seeded_rank — the seeded four exist only via governance_002). |
|
|
365
|
+
| DELETE | `/api/bongos/government/ranks/:rankKey` | `archon` | — | government.manage — delete a CUSTOM rank (task 1004481). |
|
|
365
366
|
| PUT | `/api/bongos/government/ranks/:rankKey/permissions/:permissionKey` | `archon` | — | government.manage — grant one permission to a rank (the toggle's ON half). |
|
|
366
367
|
| DELETE | `/api/bongos/government/ranks/:rankKey/permissions/:permissionKey` | `archon` | — | government.manage — revoke a grant (the toggle's OFF half). |
|
|
367
368
|
| POST | `/api/bongos/government/ranks/:rankKey/reset` | `archon` | — | government.manage — restore a SEEDED rank to its catalog default (ADR 0172). |
|