@bongos/core 1.19.954 → 1.19.955

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.
@@ -13178,6 +13178,243 @@
13178
13178
  ]
13179
13179
  }
13180
13180
  },
13181
+ "/provisioning/instances/{id}/env-manifest": {
13182
+ "get": {
13183
+ "operationId": "get_provisioning_instances_id_env_manifest",
13184
+ "tags": [
13185
+ "provisioning"
13186
+ ],
13187
+ "summary": "GET /provisioning/instances/:id/env-manifest",
13188
+ "description": "GET — the declared surface. This is the route a BUILDER SESSION reads to learn which variables a project has, which is the whole reason the manifest exists.\n\n**Rank:** `any-builder` — Any authenticated builder (row-level ownership enforced in-handler).",
13189
+ "x-rank": "any-builder",
13190
+ "x-source": "modules/provisioning/routes/env-manifest.js",
13191
+ "parameters": [
13192
+ {
13193
+ "name": "id",
13194
+ "in": "path",
13195
+ "required": true,
13196
+ "schema": {
13197
+ "type": "string"
13198
+ },
13199
+ "description": "Path parameter `id`."
13200
+ }
13201
+ ],
13202
+ "responses": {
13203
+ "200": {
13204
+ "description": "Success.",
13205
+ "content": {
13206
+ "application/json": {
13207
+ "schema": {
13208
+ "$ref": "#/components/schemas/GetProvisioningInstancesIdEnvManifestResponse"
13209
+ }
13210
+ }
13211
+ }
13212
+ },
13213
+ "400": {
13214
+ "$ref": "#/components/responses/BadRequest"
13215
+ },
13216
+ "401": {
13217
+ "$ref": "#/components/responses/Unauthorized"
13218
+ },
13219
+ "403": {
13220
+ "$ref": "#/components/responses/Forbidden"
13221
+ },
13222
+ "404": {
13223
+ "$ref": "#/components/responses/NotFound"
13224
+ }
13225
+ },
13226
+ "security": [
13227
+ {
13228
+ "builderSession": []
13229
+ }
13230
+ ]
13231
+ },
13232
+ "post": {
13233
+ "operationId": "post_provisioning_instances_id_env_manifest",
13234
+ "tags": [
13235
+ "provisioning"
13236
+ ],
13237
+ "summary": "POST /provisioning/instances/:id/env-manifest",
13238
+ "description": "POST — declare a variable, or re-declare one that exists (an edit, not a duplicate: see ../env-manifest.js's declareEnvVar).\n\n**Rank:** `any-builder` — Any authenticated builder (row-level ownership enforced in-handler).",
13239
+ "x-rank": "any-builder",
13240
+ "x-source": "modules/provisioning/routes/env-manifest.js",
13241
+ "parameters": [
13242
+ {
13243
+ "name": "id",
13244
+ "in": "path",
13245
+ "required": true,
13246
+ "schema": {
13247
+ "type": "string"
13248
+ },
13249
+ "description": "Path parameter `id`."
13250
+ }
13251
+ ],
13252
+ "requestBody": {
13253
+ "required": true,
13254
+ "content": {
13255
+ "application/json": {
13256
+ "schema": {
13257
+ "$ref": "#/components/schemas/PostProvisioningInstancesIdEnvManifestRequest"
13258
+ }
13259
+ }
13260
+ },
13261
+ "x-validated": true
13262
+ },
13263
+ "responses": {
13264
+ "200": {
13265
+ "description": "Success."
13266
+ },
13267
+ "400": {
13268
+ "$ref": "#/components/responses/ValidationFailed"
13269
+ },
13270
+ "401": {
13271
+ "$ref": "#/components/responses/Unauthorized"
13272
+ },
13273
+ "403": {
13274
+ "$ref": "#/components/responses/Forbidden"
13275
+ },
13276
+ "404": {
13277
+ "$ref": "#/components/responses/NotFound"
13278
+ }
13279
+ },
13280
+ "security": [
13281
+ {
13282
+ "builderSession": []
13283
+ }
13284
+ ]
13285
+ }
13286
+ },
13287
+ "/provisioning/instances/{id}/env-manifest/{varId}": {
13288
+ "patch": {
13289
+ "operationId": "patch_provisioning_instances_id_env_manifest_varId",
13290
+ "tags": [
13291
+ "provisioning"
13292
+ ],
13293
+ "summary": "PATCH /provisioning/instances/:id/env-manifest/:varId",
13294
+ "description": "PATCH — edit one declaration. Merge-patch: an omitted field is left alone, so the hall can fix a description without restating the environments.\n\n**Rank:** `any-builder` — Any authenticated builder (row-level ownership enforced in-handler).",
13295
+ "x-rank": "any-builder",
13296
+ "x-source": "modules/provisioning/routes/env-manifest.js",
13297
+ "parameters": [
13298
+ {
13299
+ "name": "id",
13300
+ "in": "path",
13301
+ "required": true,
13302
+ "schema": {
13303
+ "type": "string"
13304
+ },
13305
+ "description": "Path parameter `id`."
13306
+ },
13307
+ {
13308
+ "name": "varId",
13309
+ "in": "path",
13310
+ "required": true,
13311
+ "schema": {
13312
+ "type": "string"
13313
+ },
13314
+ "description": "Path parameter `varId`."
13315
+ }
13316
+ ],
13317
+ "requestBody": {
13318
+ "required": false,
13319
+ "content": {
13320
+ "application/json": {
13321
+ "schema": {
13322
+ "$ref": "#/components/schemas/PatchProvisioningInstancesIdEnvManifestVarIdRequest"
13323
+ }
13324
+ }
13325
+ },
13326
+ "x-validated": true
13327
+ },
13328
+ "responses": {
13329
+ "200": {
13330
+ "description": "Success.",
13331
+ "content": {
13332
+ "application/json": {
13333
+ "schema": {
13334
+ "$ref": "#/components/schemas/PatchProvisioningInstancesIdEnvManifestVarIdResponse"
13335
+ }
13336
+ }
13337
+ }
13338
+ },
13339
+ "400": {
13340
+ "$ref": "#/components/responses/ValidationFailed"
13341
+ },
13342
+ "401": {
13343
+ "$ref": "#/components/responses/Unauthorized"
13344
+ },
13345
+ "403": {
13346
+ "$ref": "#/components/responses/Forbidden"
13347
+ },
13348
+ "404": {
13349
+ "$ref": "#/components/responses/NotFound"
13350
+ }
13351
+ },
13352
+ "security": [
13353
+ {
13354
+ "builderSession": []
13355
+ }
13356
+ ]
13357
+ },
13358
+ "delete": {
13359
+ "operationId": "delete_provisioning_instances_id_env_manifest_varId",
13360
+ "tags": [
13361
+ "provisioning"
13362
+ ],
13363
+ "summary": "DELETE /provisioning/instances/:id/env-manifest/:varId",
13364
+ "description": "DELETE — remove one declaration. Nothing outside this table is affected: the value, wherever it lives, is untouched, and the response says so rather than letting an owner believe removing the name removed the secret.\n\n**Rank:** `any-builder` — Any authenticated builder (row-level ownership enforced in-handler).",
13365
+ "x-rank": "any-builder",
13366
+ "x-source": "modules/provisioning/routes/env-manifest.js",
13367
+ "parameters": [
13368
+ {
13369
+ "name": "id",
13370
+ "in": "path",
13371
+ "required": true,
13372
+ "schema": {
13373
+ "type": "string"
13374
+ },
13375
+ "description": "Path parameter `id`."
13376
+ },
13377
+ {
13378
+ "name": "varId",
13379
+ "in": "path",
13380
+ "required": true,
13381
+ "schema": {
13382
+ "type": "string"
13383
+ },
13384
+ "description": "Path parameter `varId`."
13385
+ }
13386
+ ],
13387
+ "responses": {
13388
+ "200": {
13389
+ "description": "Success.",
13390
+ "content": {
13391
+ "application/json": {
13392
+ "schema": {
13393
+ "$ref": "#/components/schemas/DeleteProvisioningInstancesIdEnvManifestVarIdResponse"
13394
+ }
13395
+ }
13396
+ }
13397
+ },
13398
+ "400": {
13399
+ "$ref": "#/components/responses/BadRequest"
13400
+ },
13401
+ "401": {
13402
+ "$ref": "#/components/responses/Unauthorized"
13403
+ },
13404
+ "403": {
13405
+ "$ref": "#/components/responses/Forbidden"
13406
+ },
13407
+ "404": {
13408
+ "$ref": "#/components/responses/NotFound"
13409
+ }
13410
+ },
13411
+ "security": [
13412
+ {
13413
+ "builderSession": []
13414
+ }
13415
+ ]
13416
+ }
13417
+ },
13181
13418
  "/provisioning/instances/{id}/force-teardown": {
13182
13419
  "post": {
13183
13420
  "operationId": "post_provisioning_instances_id_force_teardown",
@@ -18759,6 +18996,23 @@
18759
18996
  "path"
18760
18997
  ]
18761
18998
  },
18999
+ "DeleteProvisioningInstancesIdEnvManifestVarIdResponse": {
19000
+ "type": "object",
19001
+ "properties": {
19002
+ "ok": {
19003
+ "type": "boolean"
19004
+ },
19005
+ "removed": {
19006
+ "type": "boolean"
19007
+ },
19008
+ "message": {}
19009
+ },
19010
+ "required": [
19011
+ "ok",
19012
+ "removed",
19013
+ "message"
19014
+ ]
19015
+ },
18762
19016
  "DeleteSpecialitiesIdDocumentsDocIdResponse": {
18763
19017
  "type": "object",
18764
19018
  "properties": {
@@ -20032,6 +20286,25 @@
20032
20286
  "coreVersion"
20033
20287
  ]
20034
20288
  },
20289
+ "GetProvisioningInstancesIdEnvManifestResponse": {
20290
+ "type": "object",
20291
+ "properties": {
20292
+ "instance": {},
20293
+ "env_vars": {},
20294
+ "environments": {},
20295
+ "values_held": {
20296
+ "type": "boolean"
20297
+ },
20298
+ "note": {}
20299
+ },
20300
+ "required": [
20301
+ "instance",
20302
+ "env_vars",
20303
+ "environments",
20304
+ "values_held",
20305
+ "note"
20306
+ ]
20307
+ },
20035
20308
  "GetProvisioningInstancesIdInviteSuggestionsResponse": {
20036
20309
  "type": "object",
20037
20310
  "properties": {
@@ -21193,6 +21466,42 @@
21193
21466
  "type"
21194
21467
  ]
21195
21468
  },
21469
+ "PatchProvisioningInstancesIdEnvManifestVarIdRequest": {
21470
+ "type": "object",
21471
+ "properties": {
21472
+ "name": {
21473
+ "type": "string"
21474
+ },
21475
+ "description": {
21476
+ "type": "string",
21477
+ "maxLength": 2000
21478
+ },
21479
+ "environments": {
21480
+ "type": "array"
21481
+ },
21482
+ "required": {
21483
+ "type": "boolean"
21484
+ }
21485
+ },
21486
+ "additionalProperties": false
21487
+ },
21488
+ "PatchProvisioningInstancesIdEnvManifestVarIdResponse": {
21489
+ "type": "object",
21490
+ "properties": {
21491
+ "ok": {
21492
+ "type": "boolean"
21493
+ },
21494
+ "env_var": {},
21495
+ "values_held": {
21496
+ "type": "boolean"
21497
+ }
21498
+ },
21499
+ "required": [
21500
+ "ok",
21501
+ "env_var",
21502
+ "values_held"
21503
+ ]
21504
+ },
21196
21505
  "PatchProvisioningInstancesIdSettingsResponse": {
21197
21506
  "type": "object",
21198
21507
  "properties": {
@@ -24087,6 +24396,28 @@
24087
24396
  "message"
24088
24397
  ]
24089
24398
  },
24399
+ "PostProvisioningInstancesIdEnvManifestRequest": {
24400
+ "type": "object",
24401
+ "properties": {
24402
+ "name": {
24403
+ "type": "string"
24404
+ },
24405
+ "description": {
24406
+ "type": "string",
24407
+ "maxLength": 2000
24408
+ },
24409
+ "environments": {
24410
+ "type": "array"
24411
+ },
24412
+ "required": {
24413
+ "type": "boolean"
24414
+ }
24415
+ },
24416
+ "required": [
24417
+ "name"
24418
+ ],
24419
+ "additionalProperties": false
24420
+ },
24090
24421
  "PostProvisioningInstancesIdForceTeardownResponse": {
24091
24422
  "type": "object",
24092
24423
  "properties": {
@@ -25684,9 +26015,9 @@
25684
26015
  "description": "A required dependency/feature is not configured or is temporarily down."
25685
26016
  }
25686
26017
  },
25687
- "x-endpoint-count": 405,
25688
- "x-schema-count": 443,
26018
+ "x-endpoint-count": 409,
26019
+ "x-schema-count": 448,
25689
26020
  "x-undocumented-bodies": 9,
25690
- "x-response-schemas": 301,
26021
+ "x-response-schemas": 304,
25691
26022
  "x-generated-by": "scripts/gds/gen-api-docs.js"
25692
26023
  }
@@ -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. 405 endpoints across 66 route files.
5
+ > **Generated from the live route files** — the route file is authoritative. 409 endpoints across 67 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`.
@@ -506,7 +506,7 @@ Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/0016-trust
506
506
  | GET | `/api/bongos/projects/featured` | `public` | — | the public map of projects; no auth by design. |
507
507
  | POST | `/api/bongos/projects/invite` | `metic+archon` | `client_id`, `github_login` | own-or-metic in effect: invite a builder into a project (ADR 0141 §5, task #1002115), called by a `project.curate` holder OR the project'… |
508
508
 
509
- ## `provisioning` (26)
509
+ ## `provisioning` (30)
510
510
 
511
511
  | Method | Path | Rank | Body | Description |
512
512
  |---|---|---|---|---|
@@ -524,6 +524,10 @@ Base path: `/api/bongos`. Ranks (enforced server-side, [ADR 0016](adr/0016-trust
524
524
  | PATCH | `/api/bongos/provisioning/instances/:id/detail` | `any-builder` | `description`, `detail`, `modules`, `type` | ── The optional project detail (task 1002334, goal 1000046) ────────────── PATCH /provisioning/instances/:id/detail — answer (or re-answe… |
525
525
  | POST | `/api/bongos/provisioning/instances/:id/disconnect` | `any-builder` | `confirm_slug` | POST /provisioning/instances/:id/disconnect — rank: any authenticated builder (own resource); an archon may disconnect any project. |
526
526
  | POST | `/api/bongos/provisioning/instances/:id/domain` | `any-builder` | `domain` | POST /provisioning/instances/:id/domain — give the caller's OWN instance its address (task 1002692, gap 5: no path existed to add a domai… |
527
+ | GET | `/api/bongos/provisioning/instances/:id/env-manifest` | `any-builder` | — | GET — the declared surface. |
528
+ | POST | `/api/bongos/provisioning/instances/:id/env-manifest` | `any-builder` | `name`, `description`, `environments`, `required` | POST — declare a variable, or re-declare one that exists (an edit, not a duplicate: see ../env-manifest.js's declareEnvVar). |
529
+ | PATCH | `/api/bongos/provisioning/instances/:id/env-manifest/:varId` | `any-builder` | `name`, `description`, `environments`, `required` | PATCH — edit one declaration. |
530
+ | DELETE | `/api/bongos/provisioning/instances/:id/env-manifest/:varId` | `any-builder` | — | DELETE — remove one declaration. |
527
531
  | POST | `/api/bongos/provisioning/instances/:id/force-teardown` | `metic+archon` | — | POST /provisioning/instances/:id/force-teardown — Archon tears down ANY instance. |
528
532
  | POST | `/api/bongos/provisioning/instances/:id/github-app` | `any-builder` | `account` | POST /provisioning/instances/:id/github-app — mint a GitHub-App-Manifest onboarding link for the caller's OWN instance (task 2080, ADR 01… |
529
533
  | GET | `/api/bongos/provisioning/instances/:id/invite-suggestions` | `any-builder` | — | ── Who is worth inviting (BV1.R28, task 1002347, goal 1000046 C6) ──────── GET /provisioning/instances/:id/invite-suggestions — turn the … |