@bongos/core 1.25.12 → 1.25.13
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 +65 -30
- package/clients/bongos-client/README.md +1 -1
- package/clients/bongos-client/bongos-client.global.js +6 -0
- package/clients/bongos-client/index.cjs +6 -0
- package/clients/bongos-client/index.d.ts +11 -2
- package/clients/bongos-client/index.mjs +6 -0
- package/docs/api/openapi.json +192 -11
- package/docs/api-reference.md +5 -2
- package/docs/file-map.md +1 -1
- package/docs/module-api-changelog.md +2 -0
- package/modules/front-door-guide/claude.js +11 -7
- package/modules/front-door-guide/context.js +54 -0
- package/modules/front-door-guide/db.js +71 -6
- package/modules/front-door-guide/guide.js +10 -1
- package/modules/front-door-guide/migrations/front_door_guide_002_plan_and_account.sql +37 -0
- package/modules/front-door-guide/module.json +7 -3
- package/modules/front-door-guide/plan.js +93 -0
- package/modules/front-door-guide/pollers/retention-sweep.js +67 -0
- package/modules/front-door-guide/routes/front-door-guide-plan.js +144 -0
- package/modules/front-door-guide/routes/front-door-guide.js +19 -29
- package/modules/front-door-guide/settings.js +4 -0
- package/modules/provisioning/module.json +2 -1
- package/modules/provisioning/seams.js +10 -0
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/release-notes.json +6 -0
- package/scripts/bongos/run-unit-tests.js +4 -0
- package/src/bongos/module-scope-map.js +1 -0
- package/src/module-api.js +1 -1
- package/tests/front_door_guide_db.mjs +110 -0
- package/tests/front_door_guide_plan.mjs +344 -0
package/.bongos-core.json
CHANGED
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
"artifact": "bongos-core",
|
|
3
3
|
"manifest_schema": 1,
|
|
4
4
|
"generator": "scripts/bongos/package-core.js",
|
|
5
|
-
"core_version": "1.25.
|
|
6
|
-
"core_contract": "1.25.
|
|
7
|
-
"source_commit": "
|
|
5
|
+
"core_version": "1.25.13",
|
|
6
|
+
"core_contract": "1.25.13",
|
|
7
|
+
"source_commit": "6144401eb07488528be2d4c98786f479a900c9d0",
|
|
8
8
|
"source_ref": "HEAD",
|
|
9
|
-
"built_at": "2026-11-13T19:
|
|
9
|
+
"built_at": "2026-11-13T19:37:53.952Z",
|
|
10
10
|
"redaction": {
|
|
11
11
|
"model": "docs-redacted+functional-verbatim",
|
|
12
12
|
"docs_redacted": 656,
|
|
13
13
|
"agent_docs_stubbed": 33,
|
|
14
|
-
"functional_verbatim":
|
|
14
|
+
"functional_verbatim": 4016,
|
|
15
15
|
"rules": 3,
|
|
16
16
|
"gate_literals": 3,
|
|
17
17
|
"gate": "passed"
|
|
18
18
|
},
|
|
19
|
-
"file_count":
|
|
20
|
-
"tree_sha256": "
|
|
19
|
+
"file_count": 4706,
|
|
20
|
+
"tree_sha256": "fbec1349dacd426f02d295f9f37bf8e36691d86d3ba8c9d5df7f9c70123dc2e7",
|
|
21
21
|
"files": [
|
|
22
22
|
{
|
|
23
23
|
"path": ".claude/skills/ask-for-help/SKILL.md",
|
|
@@ -332,12 +332,12 @@
|
|
|
332
332
|
{
|
|
333
333
|
"path": "clients/bongos-client/README.md",
|
|
334
334
|
"mode": "0000644",
|
|
335
|
-
"sha256": "
|
|
335
|
+
"sha256": "443db1b62f84147c42bcbc1d2556e47f90925c2e1fe67107193101ae611d69f4"
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
"path": "clients/bongos-client/bongos-client.global.js",
|
|
339
339
|
"mode": "0000644",
|
|
340
|
-
"sha256": "
|
|
340
|
+
"sha256": "701b55ca742af38e1fd644a11fc550c992b4c243621a3a66b8b303d988f9bef5"
|
|
341
341
|
},
|
|
342
342
|
{
|
|
343
343
|
"path": "clients/bongos-client/examples/hello-world.mjs",
|
|
@@ -347,17 +347,17 @@
|
|
|
347
347
|
{
|
|
348
348
|
"path": "clients/bongos-client/index.cjs",
|
|
349
349
|
"mode": "0000644",
|
|
350
|
-
"sha256": "
|
|
350
|
+
"sha256": "01eec68e5292a12cb58ddc22e78893c0dd1ef374c4949d8f58486cd86ba3809c"
|
|
351
351
|
},
|
|
352
352
|
{
|
|
353
353
|
"path": "clients/bongos-client/index.d.ts",
|
|
354
354
|
"mode": "0000644",
|
|
355
|
-
"sha256": "
|
|
355
|
+
"sha256": "72b35b37e40d677c4f0b3df0fbc69c7bc062daeac97fd71b67e9a463af24fadb"
|
|
356
356
|
},
|
|
357
357
|
{
|
|
358
358
|
"path": "clients/bongos-client/index.mjs",
|
|
359
359
|
"mode": "0000644",
|
|
360
|
-
"sha256": "
|
|
360
|
+
"sha256": "603986b89a0e4030b3ce590f47d2d2f99e994ca3b596c58a117cb2c08d37f558"
|
|
361
361
|
},
|
|
362
362
|
{
|
|
363
363
|
"path": "clients/bongos-client/package.json",
|
|
@@ -2502,12 +2502,12 @@
|
|
|
2502
2502
|
{
|
|
2503
2503
|
"path": "docs/api-reference.md",
|
|
2504
2504
|
"mode": "0000644",
|
|
2505
|
-
"sha256": "
|
|
2505
|
+
"sha256": "956db8f10f4503ccaedbfe94b50449bdffbb70fd8fdb1aae7397b9973e62c84f"
|
|
2506
2506
|
},
|
|
2507
2507
|
{
|
|
2508
2508
|
"path": "docs/api/openapi.json",
|
|
2509
2509
|
"mode": "0000644",
|
|
2510
|
-
"sha256": "
|
|
2510
|
+
"sha256": "b60a213d5657260a2e12a85eb83e364722e954cb2c39730c6a596433a7d73126"
|
|
2511
2511
|
},
|
|
2512
2512
|
{
|
|
2513
2513
|
"path": "docs/architecture.md",
|
|
@@ -3082,7 +3082,7 @@
|
|
|
3082
3082
|
{
|
|
3083
3083
|
"path": "docs/file-map.md",
|
|
3084
3084
|
"mode": "0000644",
|
|
3085
|
-
"sha256": "
|
|
3085
|
+
"sha256": "0d82688dbf0f4b2fb85eaabe58972e9fedc7579c933e83ce431624567099ff36"
|
|
3086
3086
|
},
|
|
3087
3087
|
{
|
|
3088
3088
|
"path": "docs/handoff-template.md",
|
|
@@ -3092,7 +3092,7 @@
|
|
|
3092
3092
|
{
|
|
3093
3093
|
"path": "docs/module-api-changelog.md",
|
|
3094
3094
|
"mode": "0000644",
|
|
3095
|
-
"sha256": "
|
|
3095
|
+
"sha256": "0ddc252d589300b4d36f14e8c24f5133e17da786060a2c7ae7b50c7caa77e86e"
|
|
3096
3096
|
},
|
|
3097
3097
|
{
|
|
3098
3098
|
"path": "docs/modules-contract.md",
|
|
@@ -5527,17 +5527,22 @@
|
|
|
5527
5527
|
{
|
|
5528
5528
|
"path": "modules/front-door-guide/claude.js",
|
|
5529
5529
|
"mode": "0000644",
|
|
5530
|
-
"sha256": "
|
|
5530
|
+
"sha256": "789c754572ea1183ea276f66e202192d1ccf3032d4661d3d5e572de41ce5a3c9"
|
|
5531
|
+
},
|
|
5532
|
+
{
|
|
5533
|
+
"path": "modules/front-door-guide/context.js",
|
|
5534
|
+
"mode": "0000644",
|
|
5535
|
+
"sha256": "81c10bc4e96f603416cab0c8bb6af3c204b136d67ab7f01fede558de39c06c0c"
|
|
5531
5536
|
},
|
|
5532
5537
|
{
|
|
5533
5538
|
"path": "modules/front-door-guide/db.js",
|
|
5534
5539
|
"mode": "0000644",
|
|
5535
|
-
"sha256": "
|
|
5540
|
+
"sha256": "1bbe4f1605e1e8cc6daa6d32150e7cd32cb28df5f527f88b8d36a0d6b6dcc1fc"
|
|
5536
5541
|
},
|
|
5537
5542
|
{
|
|
5538
5543
|
"path": "modules/front-door-guide/guide.js",
|
|
5539
5544
|
"mode": "0000644",
|
|
5540
|
-
"sha256": "
|
|
5545
|
+
"sha256": "590a26cd79ce41f84fa29635da0e63fc682db3653fdebeb9ba0e834a6fa4062c"
|
|
5541
5546
|
},
|
|
5542
5547
|
{
|
|
5543
5548
|
"path": "modules/front-door-guide/limits.js",
|
|
@@ -5549,20 +5554,40 @@
|
|
|
5549
5554
|
"mode": "0000644",
|
|
5550
5555
|
"sha256": "aad5ccdcfcdc275e5f3448d9e90c4982d5f382fb1e4d015c4709ddb4354837a7"
|
|
5551
5556
|
},
|
|
5557
|
+
{
|
|
5558
|
+
"path": "modules/front-door-guide/migrations/front_door_guide_002_plan_and_account.sql",
|
|
5559
|
+
"mode": "0000644",
|
|
5560
|
+
"sha256": "632ea54bd430c2d143da7323ad848f28a1c53ac0735850d04cd6177b10c9c857"
|
|
5561
|
+
},
|
|
5552
5562
|
{
|
|
5553
5563
|
"path": "modules/front-door-guide/module.json",
|
|
5554
5564
|
"mode": "0000644",
|
|
5555
|
-
"sha256": "
|
|
5565
|
+
"sha256": "de486a674d919fed27a3356dade38e29c14dc2a0efa45eb4f9013fdeb17cd326"
|
|
5566
|
+
},
|
|
5567
|
+
{
|
|
5568
|
+
"path": "modules/front-door-guide/plan.js",
|
|
5569
|
+
"mode": "0000644",
|
|
5570
|
+
"sha256": "6da0d0b8c41c9a8b8fbffacbbc85cffe1e7c61853f847fb2ac72b0ec77ae0460"
|
|
5571
|
+
},
|
|
5572
|
+
{
|
|
5573
|
+
"path": "modules/front-door-guide/pollers/retention-sweep.js",
|
|
5574
|
+
"mode": "0000644",
|
|
5575
|
+
"sha256": "12c973f96f276c3552e6d4137fe29d39e1319286418f9f81231a2661da663209"
|
|
5576
|
+
},
|
|
5577
|
+
{
|
|
5578
|
+
"path": "modules/front-door-guide/routes/front-door-guide-plan.js",
|
|
5579
|
+
"mode": "0000644",
|
|
5580
|
+
"sha256": "58cee518fe51190f7d4105b82d199f5868b6a0fd8747c9212a0e83bed435ac06"
|
|
5556
5581
|
},
|
|
5557
5582
|
{
|
|
5558
5583
|
"path": "modules/front-door-guide/routes/front-door-guide.js",
|
|
5559
5584
|
"mode": "0000644",
|
|
5560
|
-
"sha256": "
|
|
5585
|
+
"sha256": "f53fd28640999a4ab2868010b7502712fb9b82d70a043d5f97aa916bd603b9e8"
|
|
5561
5586
|
},
|
|
5562
5587
|
{
|
|
5563
5588
|
"path": "modules/front-door-guide/settings.js",
|
|
5564
5589
|
"mode": "0000644",
|
|
5565
|
-
"sha256": "
|
|
5590
|
+
"sha256": "fc0726ff9e1e0f2be291d8af37ff2ac1f36735c7dcf376bf9c4c201e2db35e6e"
|
|
5566
5591
|
},
|
|
5567
5592
|
{
|
|
5568
5593
|
"path": "modules/government/CLAUDE.md",
|
|
@@ -10202,7 +10227,7 @@
|
|
|
10202
10227
|
{
|
|
10203
10228
|
"path": "modules/provisioning/module.json",
|
|
10204
10229
|
"mode": "0000644",
|
|
10205
|
-
"sha256": "
|
|
10230
|
+
"sha256": "535232bcf3691956bd0e34386da934b23f25889334dcad16c3f2983e2104b6ad"
|
|
10206
10231
|
},
|
|
10207
10232
|
{
|
|
10208
10233
|
"path": "modules/provisioning/onboard-plan.js",
|
|
@@ -10357,7 +10382,7 @@
|
|
|
10357
10382
|
{
|
|
10358
10383
|
"path": "modules/provisioning/seams.js",
|
|
10359
10384
|
"mode": "0000644",
|
|
10360
|
-
"sha256": "
|
|
10385
|
+
"sha256": "26168956a1c30dcb6192d2c0f4865ab3bc02fe89eb4551b82a66069027e8f473"
|
|
10361
10386
|
},
|
|
10362
10387
|
{
|
|
10363
10388
|
"path": "modules/provisioning/settings-push.js",
|
|
@@ -12297,12 +12322,12 @@
|
|
|
12297
12322
|
{
|
|
12298
12323
|
"path": "package-lock.json",
|
|
12299
12324
|
"mode": "0000644",
|
|
12300
|
-
"sha256": "
|
|
12325
|
+
"sha256": "3e98540a12076778a81f41e055028f600bcbf94c0c2a555adf002c69d2b72734"
|
|
12301
12326
|
},
|
|
12302
12327
|
{
|
|
12303
12328
|
"path": "package.json",
|
|
12304
12329
|
"mode": "0000644",
|
|
12305
|
-
"sha256": "
|
|
12330
|
+
"sha256": "158a3afd6782e3f28c2a49dd85e5fe3a83bb8debb3464a5d851c685fb36f53ba"
|
|
12306
12331
|
},
|
|
12307
12332
|
{
|
|
12308
12333
|
"path": "public-docs/index.html",
|
|
@@ -12322,7 +12347,7 @@
|
|
|
12322
12347
|
{
|
|
12323
12348
|
"path": "release-notes.json",
|
|
12324
12349
|
"mode": "0000644",
|
|
12325
|
-
"sha256": "
|
|
12350
|
+
"sha256": "6010acbd56137643326e0ecc314d93c9b097dd4cbff4cf9d801e4ce7a51acc67"
|
|
12326
12351
|
},
|
|
12327
12352
|
{
|
|
12328
12353
|
"path": "scripts/bongos/CLAUDE.md",
|
|
@@ -13592,7 +13617,7 @@
|
|
|
13592
13617
|
{
|
|
13593
13618
|
"path": "scripts/bongos/run-unit-tests.js",
|
|
13594
13619
|
"mode": "0000644",
|
|
13595
|
-
"sha256": "
|
|
13620
|
+
"sha256": "248d61074607a03eb23d6a23c009a8ed8f332128865c591d7481325943d2f61d"
|
|
13596
13621
|
},
|
|
13597
13622
|
{
|
|
13598
13623
|
"path": "scripts/bongos/runner-drift.js",
|
|
@@ -15977,7 +16002,7 @@
|
|
|
15977
16002
|
{
|
|
15978
16003
|
"path": "src/bongos/module-scope-map.js",
|
|
15979
16004
|
"mode": "0000644",
|
|
15980
|
-
"sha256": "
|
|
16005
|
+
"sha256": "92b6ac609252f96e73acab6a9171cda465d36d75975ede79c96f13176e0d54ef"
|
|
15981
16006
|
},
|
|
15982
16007
|
{
|
|
15983
16008
|
"path": "src/bongos/module-store.js",
|
|
@@ -16332,7 +16357,7 @@
|
|
|
16332
16357
|
{
|
|
16333
16358
|
"path": "src/module-api.js",
|
|
16334
16359
|
"mode": "0000644",
|
|
16335
|
-
"sha256": "
|
|
16360
|
+
"sha256": "012ede63ed757a41e42926e2d3b0516e703aede0515a5140614882f16607d470"
|
|
16336
16361
|
},
|
|
16337
16362
|
{
|
|
16338
16363
|
"path": "src/module-loader/catalog.js",
|
|
@@ -18334,6 +18359,16 @@
|
|
|
18334
18359
|
"mode": "0000644",
|
|
18335
18360
|
"sha256": "d4f0af7817c3e0f031fc00d8b77d2b94ddb994a39d6a03e3ba9badabae362f7a"
|
|
18336
18361
|
},
|
|
18362
|
+
{
|
|
18363
|
+
"path": "tests/front_door_guide_db.mjs",
|
|
18364
|
+
"mode": "0000644",
|
|
18365
|
+
"sha256": "e5f04555dd7bf89159afe0bef0ea1bc98f3218b9643dff122dd847f5730a923c"
|
|
18366
|
+
},
|
|
18367
|
+
{
|
|
18368
|
+
"path": "tests/front_door_guide_plan.mjs",
|
|
18369
|
+
"mode": "0000644",
|
|
18370
|
+
"sha256": "42bf945cfe325b0654f6ab621f0cc95b5a97e712641ae088ff577753ec042ad5"
|
|
18371
|
+
},
|
|
18337
18372
|
{
|
|
18338
18373
|
"path": "tests/funded_project_pays_proof_db.mjs",
|
|
18339
18374
|
"mode": "0000644",
|
|
@@ -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
|
+
- 709 operations across 86 resource groups
|
|
9
9
|
|
|
10
10
|
## Use it from your project
|
|
11
11
|
|
|
@@ -491,8 +491,14 @@ function createClient(opts = {}) {
|
|
|
491
491
|
postFrontDoorGuideConversations: (args) => request("POST", "/front-door-guide/conversations", { hasBody: true }, args),
|
|
492
492
|
// GET /front-door-guide/conversations/{id} — rank: public — GET /front-door-guide/conversations/:id
|
|
493
493
|
getFrontDoorGuideConversationsId: (args) => request("GET", "/front-door-guide/conversations/{id}", { hasBody: false }, args),
|
|
494
|
+
// POST /front-door-guide/conversations/{id}/attach — rank: any-builder — POST /front-door-guide/conversations/:id/attach
|
|
495
|
+
postFrontDoorGuideConversationsIdAttach: (args) => request("POST", "/front-door-guide/conversations/{id}/attach", { hasBody: true }, args),
|
|
494
496
|
// POST /front-door-guide/conversations/{id}/messages — rank: public — POST /front-door-guide/conversations/:id/messages
|
|
495
497
|
postFrontDoorGuideConversationsIdMessages: (args) => request("POST", "/front-door-guide/conversations/{id}/messages", { hasBody: true }, args),
|
|
498
|
+
// POST /front-door-guide/conversations/{id}/plan — rank: public — POST /front-door-guide/conversations/:id/plan
|
|
499
|
+
postFrontDoorGuideConversationsIdPlan: (args) => request("POST", "/front-door-guide/conversations/{id}/plan", { hasBody: true }, args),
|
|
500
|
+
// GET /front-door-guide/mine — rank: any-builder — GET /front-door-guide/mine
|
|
501
|
+
getFrontDoorGuideMine: (args) => request("GET", "/front-door-guide/mine", { hasBody: false }, args),
|
|
496
502
|
// GET /front-door-guide/status — rank: public — GET /front-door-guide/status
|
|
497
503
|
getFrontDoorGuideStatus: (args) => request("GET", "/front-door-guide/status", { hasBody: false }, args),
|
|
498
504
|
},
|
|
@@ -490,8 +490,14 @@ function createClient(opts = {}) {
|
|
|
490
490
|
postFrontDoorGuideConversations: (args) => request("POST", "/front-door-guide/conversations", { hasBody: true }, args),
|
|
491
491
|
// GET /front-door-guide/conversations/{id} — rank: public — GET /front-door-guide/conversations/:id
|
|
492
492
|
getFrontDoorGuideConversationsId: (args) => request("GET", "/front-door-guide/conversations/{id}", { hasBody: false }, args),
|
|
493
|
+
// POST /front-door-guide/conversations/{id}/attach — rank: any-builder — POST /front-door-guide/conversations/:id/attach
|
|
494
|
+
postFrontDoorGuideConversationsIdAttach: (args) => request("POST", "/front-door-guide/conversations/{id}/attach", { hasBody: true }, args),
|
|
493
495
|
// POST /front-door-guide/conversations/{id}/messages — rank: public — POST /front-door-guide/conversations/:id/messages
|
|
494
496
|
postFrontDoorGuideConversationsIdMessages: (args) => request("POST", "/front-door-guide/conversations/{id}/messages", { hasBody: true }, args),
|
|
497
|
+
// POST /front-door-guide/conversations/{id}/plan — rank: public — POST /front-door-guide/conversations/:id/plan
|
|
498
|
+
postFrontDoorGuideConversationsIdPlan: (args) => request("POST", "/front-door-guide/conversations/{id}/plan", { hasBody: true }, args),
|
|
499
|
+
// GET /front-door-guide/mine — rank: any-builder — GET /front-door-guide/mine
|
|
500
|
+
getFrontDoorGuideMine: (args) => request("GET", "/front-door-guide/mine", { hasBody: false }, args),
|
|
495
501
|
// GET /front-door-guide/status — rank: public — GET /front-door-guide/status
|
|
496
502
|
getFrontDoorGuideStatus: (args) => request("GET", "/front-door-guide/status", { hasBody: false }, args),
|
|
497
503
|
},
|
|
@@ -75,7 +75,7 @@ export interface GetCoreUpgradesResponse { ok: boolean; running: unknown; limit:
|
|
|
75
75
|
export interface GetDiscordChannelsPlanResponse { ok: boolean; guild_id: unknown; op_count: unknown; ops: unknown; warnings: unknown }
|
|
76
76
|
export interface GetDiscordChannelsSnapshotResponse { ok: boolean; guild_id: unknown; config: unknown; warnings: unknown }
|
|
77
77
|
export interface GetDoneWhenPendingReviewResponse { criteria: unknown; count: unknown }
|
|
78
|
-
export interface
|
|
78
|
+
export interface GetFrontDoorGuideMineResponse { ok: boolean; conversation: unknown }
|
|
79
79
|
export interface GetGithubOrgsOrgResponse { org: unknown }
|
|
80
80
|
export interface GetGithubRepoResponse { ok: boolean; repo: unknown; private_deployable: boolean }
|
|
81
81
|
export interface GetGithubReposResponse { repos: unknown }
|
|
@@ -390,7 +390,10 @@ export interface PostDoneWhenCriterionIdUnsatisfyResponse { criterion: unknown }
|
|
|
390
390
|
export interface PostFeedbackReceiptRequest { sha256: string; kind?: "bug" | "idea" }
|
|
391
391
|
export interface PostFeedbackReceiptResponse { ok: boolean; receipt: unknown; hub: unknown }
|
|
392
392
|
export interface PostFoundingPlanRequest { days?: Record<string, unknown>; passes?: number; advisors?: string; government?: string; expected_builders?: number; existing?: boolean }
|
|
393
|
+
export interface PostFrontDoorGuideConversationsIdAttachRequest { token: string }
|
|
394
|
+
export interface PostFrontDoorGuideConversationsIdAttachResponse { ok: boolean; conversation: unknown }
|
|
393
395
|
export interface PostFrontDoorGuideConversationsIdMessagesRequest { token: string; text: string; website?: string }
|
|
396
|
+
export interface PostFrontDoorGuideConversationsIdPlanRequest { token: string; website?: string }
|
|
394
397
|
export interface PostFrontDoorGuideConversationsRequest { website?: string }
|
|
395
398
|
export interface PostGithubRepoInviteRequest { github_login: string; permission?: string }
|
|
396
399
|
export interface PostGithubRepoVisibilityRequest { repo: string; visibility: "public" | "private" }
|
|
@@ -1165,9 +1168,15 @@ export interface BongosClient {
|
|
|
1165
1168
|
/** POST /front-door-guide/conversations — rank: public */
|
|
1166
1169
|
postFrontDoorGuideConversations(args?: RequestArgs & { body?: PostFrontDoorGuideConversationsRequest }): Promise<ApiResponse>;
|
|
1167
1170
|
/** GET /front-door-guide/conversations/{id} — rank: public */
|
|
1168
|
-
getFrontDoorGuideConversationsId(args?: RequestArgs): Promise<
|
|
1171
|
+
getFrontDoorGuideConversationsId(args?: RequestArgs): Promise<ApiResponse>;
|
|
1172
|
+
/** POST /front-door-guide/conversations/{id}/attach — rank: any-builder */
|
|
1173
|
+
postFrontDoorGuideConversationsIdAttach(args: RequestArgs & { body: PostFrontDoorGuideConversationsIdAttachRequest }): Promise<PostFrontDoorGuideConversationsIdAttachResponse>;
|
|
1169
1174
|
/** POST /front-door-guide/conversations/{id}/messages — rank: public */
|
|
1170
1175
|
postFrontDoorGuideConversationsIdMessages(args: RequestArgs & { body: PostFrontDoorGuideConversationsIdMessagesRequest }): Promise<ApiResponse>;
|
|
1176
|
+
/** POST /front-door-guide/conversations/{id}/plan — rank: public */
|
|
1177
|
+
postFrontDoorGuideConversationsIdPlan(args: RequestArgs & { body: PostFrontDoorGuideConversationsIdPlanRequest }): Promise<ApiResponse>;
|
|
1178
|
+
/** GET /front-door-guide/mine — rank: any-builder */
|
|
1179
|
+
getFrontDoorGuideMine(args?: RequestArgs): Promise<GetFrontDoorGuideMineResponse>;
|
|
1171
1180
|
/** GET /front-door-guide/status — rank: public */
|
|
1172
1181
|
getFrontDoorGuideStatus(args?: RequestArgs): Promise<ApiResponse>;
|
|
1173
1182
|
};
|
|
@@ -487,8 +487,14 @@ export function createClient(opts = {}) {
|
|
|
487
487
|
postFrontDoorGuideConversations: (args) => request("POST", "/front-door-guide/conversations", { hasBody: true }, args),
|
|
488
488
|
// GET /front-door-guide/conversations/{id} — rank: public — GET /front-door-guide/conversations/:id
|
|
489
489
|
getFrontDoorGuideConversationsId: (args) => request("GET", "/front-door-guide/conversations/{id}", { hasBody: false }, args),
|
|
490
|
+
// POST /front-door-guide/conversations/{id}/attach — rank: any-builder — POST /front-door-guide/conversations/:id/attach
|
|
491
|
+
postFrontDoorGuideConversationsIdAttach: (args) => request("POST", "/front-door-guide/conversations/{id}/attach", { hasBody: true }, args),
|
|
490
492
|
// POST /front-door-guide/conversations/{id}/messages — rank: public — POST /front-door-guide/conversations/:id/messages
|
|
491
493
|
postFrontDoorGuideConversationsIdMessages: (args) => request("POST", "/front-door-guide/conversations/{id}/messages", { hasBody: true }, args),
|
|
494
|
+
// POST /front-door-guide/conversations/{id}/plan — rank: public — POST /front-door-guide/conversations/:id/plan
|
|
495
|
+
postFrontDoorGuideConversationsIdPlan: (args) => request("POST", "/front-door-guide/conversations/{id}/plan", { hasBody: true }, args),
|
|
496
|
+
// GET /front-door-guide/mine — rank: any-builder — GET /front-door-guide/mine
|
|
497
|
+
getFrontDoorGuideMine: (args) => request("GET", "/front-door-guide/mine", { hasBody: false }, args),
|
|
492
498
|
// GET /front-door-guide/status — rank: public — GET /front-door-guide/status
|
|
493
499
|
getFrontDoorGuideStatus: (args) => request("GET", "/front-door-guide/status", { hasBody: false }, args),
|
|
494
500
|
},
|
package/docs/api/openapi.json
CHANGED
|
@@ -7946,25 +7946,81 @@
|
|
|
7946
7946
|
"description": "Path parameter `id`."
|
|
7947
7947
|
}
|
|
7948
7948
|
],
|
|
7949
|
+
"responses": {
|
|
7950
|
+
"200": {
|
|
7951
|
+
"description": "Success."
|
|
7952
|
+
},
|
|
7953
|
+
"400": {
|
|
7954
|
+
"$ref": "#/components/responses/BadRequest"
|
|
7955
|
+
},
|
|
7956
|
+
"404": {
|
|
7957
|
+
"$ref": "#/components/responses/NotFound"
|
|
7958
|
+
}
|
|
7959
|
+
},
|
|
7960
|
+
"security": []
|
|
7961
|
+
}
|
|
7962
|
+
},
|
|
7963
|
+
"/front-door-guide/conversations/{id}/attach": {
|
|
7964
|
+
"post": {
|
|
7965
|
+
"operationId": "post_front_door_guide_conversations_id_attach",
|
|
7966
|
+
"tags": [
|
|
7967
|
+
"front-door-guide"
|
|
7968
|
+
],
|
|
7969
|
+
"summary": "POST /front-door-guide/conversations/:id/attach",
|
|
7970
|
+
"description": "the visitor has just signed in; the chat moves onto their account.\n\n**Rank:** `any-builder` — Any authenticated builder (row-level ownership enforced in-handler).",
|
|
7971
|
+
"x-rank": "any-builder",
|
|
7972
|
+
"x-source": "modules/front-door-guide/routes/front-door-guide-plan.js",
|
|
7973
|
+
"parameters": [
|
|
7974
|
+
{
|
|
7975
|
+
"name": "id",
|
|
7976
|
+
"in": "path",
|
|
7977
|
+
"required": true,
|
|
7978
|
+
"schema": {
|
|
7979
|
+
"type": "string"
|
|
7980
|
+
},
|
|
7981
|
+
"description": "Path parameter `id`."
|
|
7982
|
+
}
|
|
7983
|
+
],
|
|
7984
|
+
"requestBody": {
|
|
7985
|
+
"required": true,
|
|
7986
|
+
"content": {
|
|
7987
|
+
"application/json": {
|
|
7988
|
+
"schema": {
|
|
7989
|
+
"$ref": "#/components/schemas/PostFrontDoorGuideConversationsIdAttachRequest"
|
|
7990
|
+
}
|
|
7991
|
+
}
|
|
7992
|
+
},
|
|
7993
|
+
"x-validated": true
|
|
7994
|
+
},
|
|
7949
7995
|
"responses": {
|
|
7950
7996
|
"200": {
|
|
7951
7997
|
"description": "Success.",
|
|
7952
7998
|
"content": {
|
|
7953
7999
|
"application/json": {
|
|
7954
8000
|
"schema": {
|
|
7955
|
-
"$ref": "#/components/schemas/
|
|
8001
|
+
"$ref": "#/components/schemas/PostFrontDoorGuideConversationsIdAttachResponse"
|
|
7956
8002
|
}
|
|
7957
8003
|
}
|
|
7958
8004
|
}
|
|
7959
8005
|
},
|
|
7960
8006
|
"400": {
|
|
7961
|
-
"$ref": "#/components/responses/
|
|
8007
|
+
"$ref": "#/components/responses/ValidationFailed"
|
|
8008
|
+
},
|
|
8009
|
+
"401": {
|
|
8010
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
8011
|
+
},
|
|
8012
|
+
"403": {
|
|
8013
|
+
"$ref": "#/components/responses/Forbidden"
|
|
7962
8014
|
},
|
|
7963
8015
|
"404": {
|
|
7964
8016
|
"$ref": "#/components/responses/NotFound"
|
|
7965
8017
|
}
|
|
7966
8018
|
},
|
|
7967
|
-
"security": [
|
|
8019
|
+
"security": [
|
|
8020
|
+
{
|
|
8021
|
+
"builderSession": []
|
|
8022
|
+
}
|
|
8023
|
+
]
|
|
7968
8024
|
}
|
|
7969
8025
|
},
|
|
7970
8026
|
"/front-door-guide/conversations/{id}/messages": {
|
|
@@ -8013,6 +8069,90 @@
|
|
|
8013
8069
|
"security": []
|
|
8014
8070
|
}
|
|
8015
8071
|
},
|
|
8072
|
+
"/front-door-guide/conversations/{id}/plan": {
|
|
8073
|
+
"post": {
|
|
8074
|
+
"operationId": "post_front_door_guide_conversations_id_plan",
|
|
8075
|
+
"tags": [
|
|
8076
|
+
"front-door-guide"
|
|
8077
|
+
],
|
|
8078
|
+
"summary": "POST /front-door-guide/conversations/:id/plan",
|
|
8079
|
+
"description": "the visitor has no account yet.\n\n**Rank:** `public` — No authentication — any caller.",
|
|
8080
|
+
"x-rank": "public",
|
|
8081
|
+
"x-source": "modules/front-door-guide/routes/front-door-guide-plan.js",
|
|
8082
|
+
"parameters": [
|
|
8083
|
+
{
|
|
8084
|
+
"name": "id",
|
|
8085
|
+
"in": "path",
|
|
8086
|
+
"required": true,
|
|
8087
|
+
"schema": {
|
|
8088
|
+
"type": "string"
|
|
8089
|
+
},
|
|
8090
|
+
"description": "Path parameter `id`."
|
|
8091
|
+
}
|
|
8092
|
+
],
|
|
8093
|
+
"requestBody": {
|
|
8094
|
+
"required": true,
|
|
8095
|
+
"content": {
|
|
8096
|
+
"application/json": {
|
|
8097
|
+
"schema": {
|
|
8098
|
+
"$ref": "#/components/schemas/PostFrontDoorGuideConversationsIdPlanRequest"
|
|
8099
|
+
}
|
|
8100
|
+
}
|
|
8101
|
+
},
|
|
8102
|
+
"x-validated": true
|
|
8103
|
+
},
|
|
8104
|
+
"responses": {
|
|
8105
|
+
"200": {
|
|
8106
|
+
"description": "Success."
|
|
8107
|
+
},
|
|
8108
|
+
"400": {
|
|
8109
|
+
"$ref": "#/components/responses/ValidationFailed"
|
|
8110
|
+
},
|
|
8111
|
+
"404": {
|
|
8112
|
+
"$ref": "#/components/responses/NotFound"
|
|
8113
|
+
}
|
|
8114
|
+
},
|
|
8115
|
+
"security": []
|
|
8116
|
+
}
|
|
8117
|
+
},
|
|
8118
|
+
"/front-door-guide/mine": {
|
|
8119
|
+
"get": {
|
|
8120
|
+
"operationId": "get_front_door_guide_mine",
|
|
8121
|
+
"tags": [
|
|
8122
|
+
"front-door-guide"
|
|
8123
|
+
],
|
|
8124
|
+
"summary": "GET /front-door-guide/mine",
|
|
8125
|
+
"description": "my newest chat and plan (the creation wizard's pre-fill reads it).\n\n**Rank:** `any-builder` — Any authenticated builder (row-level ownership enforced in-handler).",
|
|
8126
|
+
"x-rank": "any-builder",
|
|
8127
|
+
"x-source": "modules/front-door-guide/routes/front-door-guide-plan.js",
|
|
8128
|
+
"responses": {
|
|
8129
|
+
"200": {
|
|
8130
|
+
"description": "Success.",
|
|
8131
|
+
"content": {
|
|
8132
|
+
"application/json": {
|
|
8133
|
+
"schema": {
|
|
8134
|
+
"$ref": "#/components/schemas/GetFrontDoorGuideMineResponse"
|
|
8135
|
+
}
|
|
8136
|
+
}
|
|
8137
|
+
}
|
|
8138
|
+
},
|
|
8139
|
+
"400": {
|
|
8140
|
+
"$ref": "#/components/responses/BadRequest"
|
|
8141
|
+
},
|
|
8142
|
+
"401": {
|
|
8143
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
8144
|
+
},
|
|
8145
|
+
"403": {
|
|
8146
|
+
"$ref": "#/components/responses/Forbidden"
|
|
8147
|
+
}
|
|
8148
|
+
},
|
|
8149
|
+
"security": [
|
|
8150
|
+
{
|
|
8151
|
+
"builderSession": []
|
|
8152
|
+
}
|
|
8153
|
+
]
|
|
8154
|
+
}
|
|
8155
|
+
},
|
|
8016
8156
|
"/front-door-guide/status": {
|
|
8017
8157
|
"get": {
|
|
8018
8158
|
"operationId": "get_front_door_guide_status",
|
|
@@ -33721,19 +33861,17 @@
|
|
|
33721
33861
|
"count"
|
|
33722
33862
|
]
|
|
33723
33863
|
},
|
|
33724
|
-
"
|
|
33864
|
+
"GetFrontDoorGuideMineResponse": {
|
|
33725
33865
|
"type": "object",
|
|
33726
33866
|
"properties": {
|
|
33727
33867
|
"ok": {
|
|
33728
33868
|
"type": "boolean"
|
|
33729
33869
|
},
|
|
33730
|
-
"conversation": {}
|
|
33731
|
-
"transcript": {}
|
|
33870
|
+
"conversation": {}
|
|
33732
33871
|
},
|
|
33733
33872
|
"required": [
|
|
33734
33873
|
"ok",
|
|
33735
|
-
"conversation"
|
|
33736
|
-
"transcript"
|
|
33874
|
+
"conversation"
|
|
33737
33875
|
]
|
|
33738
33876
|
},
|
|
33739
33877
|
"GetGithubOrgsOrgResponse": {
|
|
@@ -38246,6 +38384,32 @@
|
|
|
38246
38384
|
},
|
|
38247
38385
|
"additionalProperties": false
|
|
38248
38386
|
},
|
|
38387
|
+
"PostFrontDoorGuideConversationsIdAttachRequest": {
|
|
38388
|
+
"type": "object",
|
|
38389
|
+
"properties": {
|
|
38390
|
+
"token": {
|
|
38391
|
+
"type": "string",
|
|
38392
|
+
"maxLength": 64
|
|
38393
|
+
}
|
|
38394
|
+
},
|
|
38395
|
+
"required": [
|
|
38396
|
+
"token"
|
|
38397
|
+
],
|
|
38398
|
+
"additionalProperties": false
|
|
38399
|
+
},
|
|
38400
|
+
"PostFrontDoorGuideConversationsIdAttachResponse": {
|
|
38401
|
+
"type": "object",
|
|
38402
|
+
"properties": {
|
|
38403
|
+
"ok": {
|
|
38404
|
+
"type": "boolean"
|
|
38405
|
+
},
|
|
38406
|
+
"conversation": {}
|
|
38407
|
+
},
|
|
38408
|
+
"required": [
|
|
38409
|
+
"ok",
|
|
38410
|
+
"conversation"
|
|
38411
|
+
]
|
|
38412
|
+
},
|
|
38249
38413
|
"PostFrontDoorGuideConversationsIdMessagesRequest": {
|
|
38250
38414
|
"type": "object",
|
|
38251
38415
|
"properties": {
|
|
@@ -38268,6 +38432,23 @@
|
|
|
38268
38432
|
],
|
|
38269
38433
|
"additionalProperties": false
|
|
38270
38434
|
},
|
|
38435
|
+
"PostFrontDoorGuideConversationsIdPlanRequest": {
|
|
38436
|
+
"type": "object",
|
|
38437
|
+
"properties": {
|
|
38438
|
+
"token": {
|
|
38439
|
+
"type": "string",
|
|
38440
|
+
"maxLength": 64
|
|
38441
|
+
},
|
|
38442
|
+
"website": {
|
|
38443
|
+
"type": "string",
|
|
38444
|
+
"maxLength": 500
|
|
38445
|
+
}
|
|
38446
|
+
},
|
|
38447
|
+
"required": [
|
|
38448
|
+
"token"
|
|
38449
|
+
],
|
|
38450
|
+
"additionalProperties": false
|
|
38451
|
+
},
|
|
38271
38452
|
"PostFrontDoorGuideConversationsRequest": {
|
|
38272
38453
|
"type": "object",
|
|
38273
38454
|
"properties": {
|
|
@@ -44165,9 +44346,9 @@
|
|
|
44165
44346
|
"description": "A required dependency/feature is not configured or is temporarily down."
|
|
44166
44347
|
}
|
|
44167
44348
|
},
|
|
44168
|
-
"x-endpoint-count":
|
|
44169
|
-
"x-schema-count":
|
|
44349
|
+
"x-endpoint-count": 709,
|
|
44350
|
+
"x-schema-count": 745,
|
|
44170
44351
|
"x-undocumented-bodies": 12,
|
|
44171
|
-
"x-response-schemas":
|
|
44352
|
+
"x-response-schemas": 468,
|
|
44172
44353
|
"x-generated-by": "scripts/bongos/gen-api-docs.js"
|
|
44173
44354
|
}
|
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. 709 endpoints across 120 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`.
|
|
@@ -328,13 +328,16 @@ Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/0016-trust
|
|
|
328
328
|
| POST | `/api/bongos/founding/stages/:stage/close` | `any-builder` | — | task 1005121: one call. |
|
|
329
329
|
| POST | `/api/bongos/founding/start` | `any-builder` | — | |
|
|
330
330
|
|
|
331
|
-
## `front-door-guide` (
|
|
331
|
+
## `front-door-guide` (7)
|
|
332
332
|
|
|
333
333
|
| Method | Path | Rank | Body | Description |
|
|
334
334
|
|---|---|---|---|---|
|
|
335
335
|
| POST | `/api/bongos/front-door-guide/conversations` | `public` | `website` | start a chat. |
|
|
336
336
|
| GET | `/api/bongos/front-door-guide/conversations/:id` | `public` | — | the transcript, for the plan and the sign-up hand-off. |
|
|
337
|
+
| POST | `/api/bongos/front-door-guide/conversations/:id/attach` | `any-builder` | `token` | the visitor has just signed in; the chat moves onto their account. |
|
|
337
338
|
| POST | `/api/bongos/front-door-guide/conversations/:id/messages` | `public` | `token`, `text`, `website` | one visitor message, one guide reply. |
|
|
339
|
+
| POST | `/api/bongos/front-door-guide/conversations/:id/plan` | `public` | `token`, `website` | the visitor has no account yet. |
|
|
340
|
+
| GET | `/api/bongos/front-door-guide/mine` | `any-builder` | — | my newest chat and plan (the creation wizard's pre-fill reads it). |
|
|
338
341
|
| GET | `/api/bongos/front-door-guide/status` | `public` | — | the landing asks before it offers the chat. |
|
|
339
342
|
|
|
340
343
|
## `github` (8)
|