@thinkai/tai-api-contract 2.133.0 → 2.134.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.133.0
4
+ version: 2.134.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}/...`.
@@ -16055,6 +16055,90 @@ components:
16055
16055
  `platform_env_key`: ThinkAI platform key was used (opt-in required; additional cost applies).
16056
16056
  `null`: run did not reach the Cursor agent stage.
16057
16057
 
16058
+ CriterionEvidenceKind:
16059
+ type: string
16060
+ enum: [in_repo, linked_platform]
16061
+ description: >
16062
+ Where a CI setup criterion's evidence came from.
16063
+ `in_repo` — this repository's CI config contributed.
16064
+ `linked_platform` — a linked CI templates platform repo (role `ci_templates`
16065
+ or the `jenkins_shared` alias) contributed.
16066
+
16067
+ CriterionEvidenceSourceDto:
16068
+ type: object
16069
+ additionalProperties: false
16070
+ required: [kind, label]
16071
+ description: >
16072
+ One evidence chip for a CI setup criterion (CI on change, CI runs build,
16073
+ CI runs tests, CI static analysis). `role` and `providerSlug` are present
16074
+ when `kind` is `linked_platform` and omitted for `in_repo`.
16075
+ properties:
16076
+ kind:
16077
+ $ref: "#/components/schemas/CriterionEvidenceKind"
16078
+ label:
16079
+ type: string
16080
+ minLength: 1
16081
+ maxLength: 256
16082
+ description: Chip text shown in the UI (for example "In this repo" or "CI templates · org/platform-ci").
16083
+ role:
16084
+ type: string
16085
+ minLength: 1
16086
+ maxLength: 64
16087
+ description: >
16088
+ Topology role when `kind` is `linked_platform` (for example `ci_templates`
16089
+ or `jenkins_shared`). Omit for `in_repo`.
16090
+ providerSlug:
16091
+ type: string
16092
+ minLength: 1
16093
+ maxLength: 256
16094
+ description: >
16095
+ Platform repository `owner/name` when `kind` is `linked_platform`. Omit for `in_repo`.
16096
+
16097
+ ScanImprovementCode:
16098
+ type: string
16099
+ enum:
16100
+ - configure_linked_ci_templates
16101
+ - scan_linked_ci_templates
16102
+ - view_ci_health_in_insights
16103
+ description: >
16104
+ Stable "Improve this scan" code for Agentic Foundation CI setup honesty.
16105
+ `configure_linked_ci_templates` — map a linked CI templates repo.
16106
+ `scan_linked_ci_templates` — the mapped platform repo still needs a fresh scan.
16107
+ `view_ci_health_in_insights` — CI config is present; live pass/fail health is in SDLC Insights.
16108
+
16109
+ ScanImprovementDto:
16110
+ type: object
16111
+ additionalProperties: false
16112
+ required: [code, title, description]
16113
+ description: >
16114
+ One repo-level recommendation on a readiness scorecard. Display copy is
16115
+ `title` and `description`; clients may also route from `code`.
16116
+ properties:
16117
+ code:
16118
+ $ref: "#/components/schemas/ScanImprovementCode"
16119
+ title:
16120
+ type: string
16121
+ minLength: 1
16122
+ maxLength: 256
16123
+ description:
16124
+ type: string
16125
+ minLength: 1
16126
+ maxLength: 1024
16127
+ href:
16128
+ type: string
16129
+ minLength: 1
16130
+ maxLength: 512
16131
+ description: >
16132
+ Optional SPA path for the recommendation (linked-platform settings or
16133
+ SDLC Insights). Not a scored URL.
16134
+ providerSlug:
16135
+ type: string
16136
+ minLength: 1
16137
+ maxLength: 256
16138
+ description: >
16139
+ Platform repository `owner/name` when the recommendation names a specific
16140
+ linked repo (typically `scan_linked_ci_templates`).
16141
+
16058
16142
  CriterionDetailDto:
16059
16143
  type: object
16060
16144
  required: [rubricId, title, status, severity]
@@ -16098,6 +16182,16 @@ components:
16098
16182
  UUID of the linked open issue in tai_workspace_repo_issues.
16099
16183
  Present only for gap/partial criteria that have a corresponding issue row.
16100
16184
  Use this to navigate to the Fix flow.
16185
+ evidenceUsed:
16186
+ type: array
16187
+ minItems: 1
16188
+ description: >
16189
+ Sources that contributed to CI setup criteria (CI on change, CI runs build,
16190
+ CI runs tests, CI static analysis). Met or Partial on those rows includes
16191
+ at least one entry (`in_repo` and/or `linked_platform`). Omitted on other
16192
+ criteria and when the scan did not record evidence.
16193
+ items:
16194
+ $ref: "#/components/schemas/CriterionEvidenceSourceDto"
16101
16195
 
16102
16196
  ReadinessCriteriaSummaryDto:
16103
16197
  type: object
@@ -16963,6 +17057,16 @@ components:
16963
17057
  (terraform/gitops/ci_templates/api_contracts, from the workspace delivery topology)
16964
17058
  are still missing scan evidence. Absent/null when no topology is configured or every
16965
17059
  declared role has fresh metadata (`complete: true`).
17060
+ scanImprovements:
17061
+ type: array
17062
+ minItems: 1
17063
+ maxItems: 3
17064
+ description: >
17065
+ Repo-level "Improve this scan" recommendations for Agentic Foundation CI setup
17066
+ (at most three). Omitted when the scan emitted none. Does not change criterion
17067
+ scores; live CI health stays in SDLC Insights.
17068
+ items:
17069
+ $ref: "#/components/schemas/ScanImprovementDto"
16966
17070
 
16967
17071
  LinkedRolePendingDto:
16968
17072
  type: object
@@ -17134,6 +17238,13 @@ components:
17134
17238
  allOf:
17135
17239
  - $ref: "#/components/schemas/LinkedRoleAssessmentDto"
17136
17240
  description: See RepoReadinessScoreDto.linkedRoleAssessment.
17241
+ scanImprovements:
17242
+ type: array
17243
+ minItems: 1
17244
+ maxItems: 3
17245
+ description: See RepoReadinessScoreDto.scanImprovements.
17246
+ items:
17247
+ $ref: "#/components/schemas/ScanImprovementDto"
17137
17248
 
17138
17249
  AgenticFoundationDashboardSummaryDto:
17139
17250
  type: object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkai/tai-api-contract",
3
- "version": "2.133.0",
3
+ "version": "2.134.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -6875,6 +6875,36 @@ export interface components {
6875
6875
  */
6876
6876
  cursorKeySource?: "workspace_execution_token" | "platform_env_key" | null;
6877
6877
  };
6878
+ /**
6879
+ * @description Where a CI setup criterion's evidence came from. `in_repo` — this repository's CI config contributed. `linked_platform` — a linked CI templates platform repo (role `ci_templates` or the `jenkins_shared` alias) contributed.
6880
+ * @enum {string}
6881
+ */
6882
+ CriterionEvidenceKind: "in_repo" | "linked_platform";
6883
+ /** @description One evidence chip for a CI setup criterion (CI on change, CI runs build, CI runs tests, CI static analysis). `role` and `providerSlug` are present when `kind` is `linked_platform` and omitted for `in_repo`. */
6884
+ CriterionEvidenceSourceDto: {
6885
+ kind: components["schemas"]["CriterionEvidenceKind"];
6886
+ /** @description Chip text shown in the UI (for example "In this repo" or "CI templates · org/platform-ci"). */
6887
+ label: string;
6888
+ /** @description Topology role when `kind` is `linked_platform` (for example `ci_templates` or `jenkins_shared`). Omit for `in_repo`. */
6889
+ role?: string;
6890
+ /** @description Platform repository `owner/name` when `kind` is `linked_platform`. Omit for `in_repo`. */
6891
+ providerSlug?: string;
6892
+ };
6893
+ /**
6894
+ * @description Stable "Improve this scan" code for Agentic Foundation CI setup honesty. `configure_linked_ci_templates` — map a linked CI templates repo. `scan_linked_ci_templates` — the mapped platform repo still needs a fresh scan. `view_ci_health_in_insights` — CI config is present; live pass/fail health is in SDLC Insights.
6895
+ * @enum {string}
6896
+ */
6897
+ ScanImprovementCode: "configure_linked_ci_templates" | "scan_linked_ci_templates" | "view_ci_health_in_insights";
6898
+ /** @description One repo-level recommendation on a readiness scorecard. Display copy is `title` and `description`; clients may also route from `code`. */
6899
+ ScanImprovementDto: {
6900
+ code: components["schemas"]["ScanImprovementCode"];
6901
+ title: string;
6902
+ description: string;
6903
+ /** @description Optional SPA path for the recommendation (linked-platform settings or SDLC Insights). Not a scored URL. */
6904
+ href?: string;
6905
+ /** @description Platform repository `owner/name` when the recommendation names a specific linked repo (typically `scan_linked_ci_templates`). */
6906
+ providerSlug?: string;
6907
+ };
6878
6908
  CriterionDetailDto: {
6879
6909
  /** @description Rubric criterion id (e.g. A1, B3) */
6880
6910
  rubricId: string;
@@ -6901,6 +6931,8 @@ export interface components {
6901
6931
  * @description UUID of the linked open issue in tai_workspace_repo_issues. Present only for gap/partial criteria that have a corresponding issue row. Use this to navigate to the Fix flow.
6902
6932
  */
6903
6933
  issueId?: string | null;
6934
+ /** @description Sources that contributed to CI setup criteria (CI on change, CI runs build, CI runs tests, CI static analysis). Met or Partial on those rows includes at least one entry (`in_repo` and/or `linked_platform`). Omitted on other criteria and when the scan did not record evidence. */
6935
+ evidenceUsed?: components["schemas"]["CriterionEvidenceSourceDto"][];
6904
6936
  };
6905
6937
  ReadinessCriteriaSummaryDto: {
6906
6938
  total: number;
@@ -7268,6 +7300,8 @@ export interface components {
7268
7300
  platformArchetype?: "terraform_platform" | "gitops_platform" | "ci_templates" | "api_contracts_platform" | null;
7269
7301
  /** @description Federated readiness completeness for service repos: which linked platform roles (terraform/gitops/ci_templates/api_contracts, from the workspace delivery topology) are still missing scan evidence. Absent/null when no topology is configured or every declared role has fresh metadata (`complete: true`). */
7270
7302
  linkedRoleAssessment?: components["schemas"]["LinkedRoleAssessmentDto"] | null;
7303
+ /** @description Repo-level "Improve this scan" recommendations for Agentic Foundation CI setup (at most three). Omitted when the scan emitted none. Does not change criterion scores; live CI health stays in SDLC Insights. */
7304
+ scanImprovements?: components["schemas"]["ScanImprovementDto"][];
7271
7305
  };
7272
7306
  LinkedRolePendingDto: {
7273
7307
  /** @description Topology role key, e.g. terraform | gitops | ci_templates | api_contracts. */
@@ -7346,6 +7380,8 @@ export interface components {
7346
7380
  platformArchetype?: "terraform_platform" | "gitops_platform" | "ci_templates" | "api_contracts_platform" | null;
7347
7381
  /** @description See RepoReadinessScoreDto.linkedRoleAssessment. */
7348
7382
  linkedRoleAssessment?: components["schemas"]["LinkedRoleAssessmentDto"] | null;
7383
+ /** @description See RepoReadinessScoreDto.scanImprovements. */
7384
+ scanImprovements?: components["schemas"]["ScanImprovementDto"][];
7349
7385
  };
7350
7386
  AgenticFoundationDashboardSummaryDto: {
7351
7387
  repoCount: number;
@@ -10264,6 +10300,10 @@ export type ReadinessAnalyzeResponseDto = components['schemas']['ReadinessAnalyz
10264
10300
  export type ReadinessRunStatusDto = components['schemas']['ReadinessRunStatusDto'];
10265
10301
  export type ReadinessRepoAnalysisStatusDto = components['schemas']['ReadinessRepoAnalysisStatusDto'];
10266
10302
  export type ReadinessRunSummaryDto = components['schemas']['ReadinessRunSummaryDto'];
10303
+ export type CriterionEvidenceKind = components['schemas']['CriterionEvidenceKind'];
10304
+ export type CriterionEvidenceSourceDto = components['schemas']['CriterionEvidenceSourceDto'];
10305
+ export type ScanImprovementCode = components['schemas']['ScanImprovementCode'];
10306
+ export type ScanImprovementDto = components['schemas']['ScanImprovementDto'];
10267
10307
  export type CriterionDetailDto = components['schemas']['CriterionDetailDto'];
10268
10308
  export type ReadinessCriteriaSummaryDto = components['schemas']['ReadinessCriteriaSummaryDto'];
10269
10309
  export type ReadinessIssueDto = components['schemas']['ReadinessIssueDto'];