@thinkai/tai-api-contract 2.153.0 → 2.154.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/dist/generated/openapi.d.ts +145 -4
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +80 -8
- package/package.json +1 -1
- package/src/generated/openapi.ts +145 -4
|
@@ -3352,7 +3352,7 @@ export interface paths {
|
|
|
3352
3352
|
put?: never;
|
|
3353
3353
|
/**
|
|
3354
3354
|
* Generate a workspace-scoped PRD draft
|
|
3355
|
-
* @description Builds a PRD draft from ready
|
|
3355
|
+
* @description Builds a PRD draft from ready code maps (required) plus optional wiki pages and platform evidence (readiness, quality, delivery, AI adoption, monitoring). Wiki is optional — scan at least one repository first. Upserts one workspace knowledge page (`prd-<slug>` / `prd-draft`) without replacing the whole knowledge base.
|
|
3356
3356
|
*/
|
|
3357
3357
|
post: operations["generatePrdDraft"];
|
|
3358
3358
|
delete?: never;
|
|
@@ -3361,6 +3361,46 @@ export interface paths {
|
|
|
3361
3361
|
patch?: never;
|
|
3362
3362
|
trace?: never;
|
|
3363
3363
|
};
|
|
3364
|
+
"/workspaces/{workspaceId}/knowledge-pages/rfc/generate": {
|
|
3365
|
+
parameters: {
|
|
3366
|
+
query?: never;
|
|
3367
|
+
header?: never;
|
|
3368
|
+
path?: never;
|
|
3369
|
+
cookie?: never;
|
|
3370
|
+
};
|
|
3371
|
+
get?: never;
|
|
3372
|
+
put?: never;
|
|
3373
|
+
/**
|
|
3374
|
+
* Generate a workspace-scoped RFC draft
|
|
3375
|
+
* @description Same grounding as PRD generate (ready code maps required; wiki optional; platform evidence when available). Upserts `rfc-<slug>` / `rfc-draft` without replacing the KB.
|
|
3376
|
+
*/
|
|
3377
|
+
post: operations["generateRfcDraft"];
|
|
3378
|
+
delete?: never;
|
|
3379
|
+
options?: never;
|
|
3380
|
+
head?: never;
|
|
3381
|
+
patch?: never;
|
|
3382
|
+
trace?: never;
|
|
3383
|
+
};
|
|
3384
|
+
"/workspaces/{workspaceId}/knowledge-pages/adr/generate": {
|
|
3385
|
+
parameters: {
|
|
3386
|
+
query?: never;
|
|
3387
|
+
header?: never;
|
|
3388
|
+
path?: never;
|
|
3389
|
+
cookie?: never;
|
|
3390
|
+
};
|
|
3391
|
+
get?: never;
|
|
3392
|
+
put?: never;
|
|
3393
|
+
/**
|
|
3394
|
+
* Generate a workspace-scoped ADR draft
|
|
3395
|
+
* @description Same grounding as PRD generate (ready code maps required; wiki optional; platform evidence when available). Upserts `adr-<slug>` / `adr-draft` without replacing the KB.
|
|
3396
|
+
*/
|
|
3397
|
+
post: operations["generateAdrDraft"];
|
|
3398
|
+
delete?: never;
|
|
3399
|
+
options?: never;
|
|
3400
|
+
head?: never;
|
|
3401
|
+
patch?: never;
|
|
3402
|
+
trace?: never;
|
|
3403
|
+
};
|
|
3364
3404
|
"/workspaces/{workspaceId}/knowledge-graph": {
|
|
3365
3405
|
parameters: {
|
|
3366
3406
|
query?: never;
|
|
@@ -9756,7 +9796,7 @@ export interface components {
|
|
|
9756
9796
|
};
|
|
9757
9797
|
};
|
|
9758
9798
|
GeneratePrdDraftBodyDto: {
|
|
9759
|
-
/** @description Feature or change the PRD should describe */
|
|
9799
|
+
/** @description Feature or change the PRD, RFC, or ADR should describe */
|
|
9760
9800
|
featureIntent: string;
|
|
9761
9801
|
/** @description Ready repository indexes to analyze. Omit or send empty for all ready indexes. */
|
|
9762
9802
|
repoIds?: string[];
|
|
@@ -9770,8 +9810,13 @@ export interface components {
|
|
|
9770
9810
|
item: components["schemas"]["WorkspaceKnowledgePageDto"];
|
|
9771
9811
|
/** @enum {string} */
|
|
9772
9812
|
mode: "deterministic" | "llm";
|
|
9813
|
+
/**
|
|
9814
|
+
* @description Artifact kind that was generated
|
|
9815
|
+
* @enum {string}
|
|
9816
|
+
*/
|
|
9817
|
+
kind: "prd" | "rfc" | "adr";
|
|
9773
9818
|
repoIds: string[];
|
|
9774
|
-
/** @description Persisted workspace knowledge page slug (prd-draft
|
|
9819
|
+
/** @description Persisted workspace knowledge page slug (`prd-draft` / `prd-<safe-slug>`, or the `rfc-` / `adr-` equivalents) */
|
|
9775
9820
|
slug: string;
|
|
9776
9821
|
usage?: components["schemas"]["CodeIntelligenceUsageDto"];
|
|
9777
9822
|
};
|
|
@@ -9780,7 +9825,7 @@ export interface components {
|
|
|
9780
9825
|
id: string;
|
|
9781
9826
|
/** Format: uuid */
|
|
9782
9827
|
workspaceId: string;
|
|
9783
|
-
/** @description Page slug. `workspace-agent` is the canonical hub; supporting pages include `workspace-overview`, `cross-repo-map`, `shared-concepts`, and `prd-*` drafts. */
|
|
9828
|
+
/** @description Page slug. `workspace-agent` is the canonical hub; supporting pages include `workspace-overview`, `cross-repo-map`, `shared-concepts`, and `prd-*` / `rfc-*` / `adr-*` drafts. */
|
|
9784
9829
|
slug: string;
|
|
9785
9830
|
title: string;
|
|
9786
9831
|
bodyMd: string;
|
|
@@ -20269,6 +20314,102 @@ export interface operations {
|
|
|
20269
20314
|
};
|
|
20270
20315
|
};
|
|
20271
20316
|
};
|
|
20317
|
+
generateRfcDraft: {
|
|
20318
|
+
parameters: {
|
|
20319
|
+
query?: never;
|
|
20320
|
+
header?: never;
|
|
20321
|
+
path: {
|
|
20322
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
20323
|
+
};
|
|
20324
|
+
cookie?: never;
|
|
20325
|
+
};
|
|
20326
|
+
requestBody: {
|
|
20327
|
+
content: {
|
|
20328
|
+
"application/json": components["schemas"]["GeneratePrdDraftBodyDto"];
|
|
20329
|
+
};
|
|
20330
|
+
};
|
|
20331
|
+
responses: {
|
|
20332
|
+
/** @description Generated RFC draft page */
|
|
20333
|
+
200: {
|
|
20334
|
+
headers: {
|
|
20335
|
+
[name: string]: unknown;
|
|
20336
|
+
};
|
|
20337
|
+
content: {
|
|
20338
|
+
"application/json": components["schemas"]["GeneratePrdDraftResultDto"];
|
|
20339
|
+
};
|
|
20340
|
+
};
|
|
20341
|
+
/** @description Missing or invalid featureIntent */
|
|
20342
|
+
400: {
|
|
20343
|
+
headers: {
|
|
20344
|
+
[name: string]: unknown;
|
|
20345
|
+
};
|
|
20346
|
+
content?: never;
|
|
20347
|
+
};
|
|
20348
|
+
401: components["responses"]["Unauthorized"];
|
|
20349
|
+
/** @description Code Intelligence is disabled for this workspace */
|
|
20350
|
+
403: {
|
|
20351
|
+
headers: {
|
|
20352
|
+
[name: string]: unknown;
|
|
20353
|
+
};
|
|
20354
|
+
content?: never;
|
|
20355
|
+
};
|
|
20356
|
+
/** @description No ready code map in scope */
|
|
20357
|
+
409: {
|
|
20358
|
+
headers: {
|
|
20359
|
+
[name: string]: unknown;
|
|
20360
|
+
};
|
|
20361
|
+
content?: never;
|
|
20362
|
+
};
|
|
20363
|
+
};
|
|
20364
|
+
};
|
|
20365
|
+
generateAdrDraft: {
|
|
20366
|
+
parameters: {
|
|
20367
|
+
query?: never;
|
|
20368
|
+
header?: never;
|
|
20369
|
+
path: {
|
|
20370
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
20371
|
+
};
|
|
20372
|
+
cookie?: never;
|
|
20373
|
+
};
|
|
20374
|
+
requestBody: {
|
|
20375
|
+
content: {
|
|
20376
|
+
"application/json": components["schemas"]["GeneratePrdDraftBodyDto"];
|
|
20377
|
+
};
|
|
20378
|
+
};
|
|
20379
|
+
responses: {
|
|
20380
|
+
/** @description Generated ADR draft page */
|
|
20381
|
+
200: {
|
|
20382
|
+
headers: {
|
|
20383
|
+
[name: string]: unknown;
|
|
20384
|
+
};
|
|
20385
|
+
content: {
|
|
20386
|
+
"application/json": components["schemas"]["GeneratePrdDraftResultDto"];
|
|
20387
|
+
};
|
|
20388
|
+
};
|
|
20389
|
+
/** @description Missing or invalid featureIntent */
|
|
20390
|
+
400: {
|
|
20391
|
+
headers: {
|
|
20392
|
+
[name: string]: unknown;
|
|
20393
|
+
};
|
|
20394
|
+
content?: never;
|
|
20395
|
+
};
|
|
20396
|
+
401: components["responses"]["Unauthorized"];
|
|
20397
|
+
/** @description Code Intelligence is disabled for this workspace */
|
|
20398
|
+
403: {
|
|
20399
|
+
headers: {
|
|
20400
|
+
[name: string]: unknown;
|
|
20401
|
+
};
|
|
20402
|
+
content?: never;
|
|
20403
|
+
};
|
|
20404
|
+
/** @description No ready code map in scope */
|
|
20405
|
+
409: {
|
|
20406
|
+
headers: {
|
|
20407
|
+
[name: string]: unknown;
|
|
20408
|
+
};
|
|
20409
|
+
content?: never;
|
|
20410
|
+
};
|
|
20411
|
+
};
|
|
20412
|
+
};
|
|
20272
20413
|
getWorkspaceKnowledgeGraph: {
|
|
20273
20414
|
parameters: {
|
|
20274
20415
|
query?: never;
|