@thinkai/tai-api-contract 2.82.0 → 2.83.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.
@@ -1,7 +1,7 @@
1
1
  openapi: 3.0.3
2
2
  info:
3
3
  title: ThinkAI API
4
- version: 2.82.0
4
+ version: 2.83.0
5
5
  description: >
6
6
  Contract surface for the AI Driven SDLC backend used by ThinkAI.
7
7
  Workspace-scoped routes use `/workspaces/{workspaceId}/...`.
@@ -5475,6 +5475,78 @@ paths:
5475
5475
  schema:
5476
5476
  $ref: "#/components/schemas/ErrorMessageDto"
5477
5477
 
5478
+ /workspaces/{workspaceId}/readiness/repos/{repoId}/issues/export:
5479
+ get:
5480
+ tags: [RepositoryReadiness]
5481
+ summary: Export repository readiness issues as Markdown
5482
+ description: >
5483
+ Download outstanding readiness issues for one repository as a Markdown (`.md`) attachment
5484
+ for local IDE workflows. Reuses the same scorecard as `GET .../readiness/repos/{repoId}`
5485
+ (issues plus optional remediation from `criteriaDetails`).
5486
+
5487
+ The Markdown is grouped **by readiness dimension** (catalog order). Each dimension section
5488
+ lists matching issues sorted by severity. Default filter is outstanding issues
5489
+ (`open` + `pr-pending`). Optional query params narrow the set. When `includeCriteria` is
5490
+ true (default), each issue includes a Remediation section from the matching criterion when
5491
+ available.
5492
+
5493
+ The response sets `Content-Disposition: attachment` with filename
5494
+ `readiness-issues-{providerSlug}-{date}.md`.
5495
+ operationId: exportReadinessRepoIssuesMarkdown
5496
+ parameters:
5497
+ - $ref: "#/components/parameters/WorkspaceId"
5498
+ - $ref: "#/components/parameters/RepoId"
5499
+ - name: fixStatus
5500
+ in: query
5501
+ required: false
5502
+ description: >
5503
+ When omitted, export outstanding issues (`open` and `pr-pending`). When set, export only
5504
+ issues with this fix status.
5505
+ schema:
5506
+ type: string
5507
+ enum: [open, pr-pending, fixed]
5508
+ - name: dimensionId
5509
+ in: query
5510
+ required: false
5511
+ schema:
5512
+ $ref: "#/components/schemas/ReadinessDimensionId"
5513
+ - name: severity
5514
+ in: query
5515
+ required: false
5516
+ schema:
5517
+ type: string
5518
+ enum: [critical, high, medium, low]
5519
+ - name: includeCriteria
5520
+ in: query
5521
+ required: false
5522
+ description: Include remediation from criteriaDetails (default true).
5523
+ schema:
5524
+ type: boolean
5525
+ default: true
5526
+ responses:
5527
+ "200":
5528
+ description: Markdown file of readiness issues
5529
+ content:
5530
+ text/markdown:
5531
+ schema:
5532
+ type: string
5533
+ "400":
5534
+ description: Malformed `repoId` or invalid query parameters
5535
+ content:
5536
+ application/json:
5537
+ schema:
5538
+ $ref: "#/components/schemas/ErrorMessageDto"
5539
+ "401":
5540
+ $ref: "#/components/responses/Unauthorized"
5541
+ "403":
5542
+ $ref: "#/components/responses/Forbidden"
5543
+ "404":
5544
+ description: Workspace or repository not found
5545
+ content:
5546
+ application/json:
5547
+ schema:
5548
+ $ref: "#/components/schemas/ErrorMessageDto"
5549
+
5478
5550
  /workspaces/{workspaceId}/readiness/repos/{repoId}/runs:
5479
5551
  get:
5480
5552
  tags: [RepositoryReadiness]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkai/tai-api-contract",
3
- "version": "2.82.0",
3
+ "version": "2.83.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -2123,6 +2123,28 @@ export interface paths {
2123
2123
  patch: operations["patchReadinessRepo"];
2124
2124
  trace?: never;
2125
2125
  };
2126
+ "/workspaces/{workspaceId}/readiness/repos/{repoId}/issues/export": {
2127
+ parameters: {
2128
+ query?: never;
2129
+ header?: never;
2130
+ path?: never;
2131
+ cookie?: never;
2132
+ };
2133
+ /**
2134
+ * Export repository readiness issues as Markdown
2135
+ * @description Download outstanding readiness issues for one repository as a Markdown (`.md`) attachment for local IDE workflows. Reuses the same scorecard as `GET .../readiness/repos/{repoId}` (issues plus optional remediation from `criteriaDetails`).
2136
+ * The Markdown is grouped **by readiness dimension** (catalog order). Each dimension section lists matching issues sorted by severity. Default filter is outstanding issues (`open` + `pr-pending`). Optional query params narrow the set. When `includeCriteria` is true (default), each issue includes a Remediation section from the matching criterion when available.
2137
+ * The response sets `Content-Disposition: attachment` with filename `readiness-issues-{providerSlug}-{date}.md`.
2138
+ */
2139
+ get: operations["exportReadinessRepoIssuesMarkdown"];
2140
+ put?: never;
2141
+ post?: never;
2142
+ delete?: never;
2143
+ options?: never;
2144
+ head?: never;
2145
+ patch?: never;
2146
+ trace?: never;
2147
+ };
2126
2148
  "/workspaces/{workspaceId}/readiness/repos/{repoId}/runs": {
2127
2149
  parameters: {
2128
2150
  query?: never;
@@ -13883,6 +13905,56 @@ export interface operations {
13883
13905
  };
13884
13906
  };
13885
13907
  };
13908
+ exportReadinessRepoIssuesMarkdown: {
13909
+ parameters: {
13910
+ query?: {
13911
+ /** @description When omitted, export outstanding issues (`open` and `pr-pending`). When set, export only issues with this fix status. */
13912
+ fixStatus?: "open" | "pr-pending" | "fixed";
13913
+ dimensionId?: components["schemas"]["ReadinessDimensionId"];
13914
+ severity?: "critical" | "high" | "medium" | "low";
13915
+ /** @description Include remediation from criteriaDetails (default true). */
13916
+ includeCriteria?: boolean;
13917
+ };
13918
+ header?: never;
13919
+ path: {
13920
+ workspaceId: components["parameters"]["WorkspaceId"];
13921
+ repoId: components["parameters"]["RepoId"];
13922
+ };
13923
+ cookie?: never;
13924
+ };
13925
+ requestBody?: never;
13926
+ responses: {
13927
+ /** @description Markdown file of readiness issues */
13928
+ 200: {
13929
+ headers: {
13930
+ [name: string]: unknown;
13931
+ };
13932
+ content: {
13933
+ "text/markdown": string;
13934
+ };
13935
+ };
13936
+ /** @description Malformed `repoId` or invalid query parameters */
13937
+ 400: {
13938
+ headers: {
13939
+ [name: string]: unknown;
13940
+ };
13941
+ content: {
13942
+ "application/json": components["schemas"]["ErrorMessageDto"];
13943
+ };
13944
+ };
13945
+ 401: components["responses"]["Unauthorized"];
13946
+ 403: components["responses"]["Forbidden"];
13947
+ /** @description Workspace or repository not found */
13948
+ 404: {
13949
+ headers: {
13950
+ [name: string]: unknown;
13951
+ };
13952
+ content: {
13953
+ "application/json": components["schemas"]["ErrorMessageDto"];
13954
+ };
13955
+ };
13956
+ };
13957
+ };
13886
13958
  listReadinessRepoRuns: {
13887
13959
  parameters: {
13888
13960
  query?: {