@thinkai/tai-api-contract 2.96.0 → 2.97.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 +150 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +182 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +150 -0
|
@@ -560,6 +560,27 @@ export interface paths {
|
|
|
560
560
|
patch?: never;
|
|
561
561
|
trace?: never;
|
|
562
562
|
};
|
|
563
|
+
"/workspaces/{workspaceId}/delivery-topology": {
|
|
564
|
+
parameters: {
|
|
565
|
+
query?: never;
|
|
566
|
+
header?: never;
|
|
567
|
+
path?: never;
|
|
568
|
+
cookie?: never;
|
|
569
|
+
};
|
|
570
|
+
get?: never;
|
|
571
|
+
/**
|
|
572
|
+
* Set workspace delivery topology
|
|
573
|
+
* @description Persist the workspace delivery topology used by federated readiness assessment: which connected repos hold terraform / gitops / ci_templates / api_contracts artifacts, plus optional per-service overrides. Role and override `providerSlug` values must reference repos connected to this workspace, otherwise the request is rejected with `400 invalid_delivery_topology`. Send `null` (or `{ "deliveryTopology": null }`) to clear the topology.
|
|
574
|
+
* Requires editor or admin workspace role.
|
|
575
|
+
*/
|
|
576
|
+
put: operations["putWorkspaceDeliveryTopology"];
|
|
577
|
+
post?: never;
|
|
578
|
+
delete?: never;
|
|
579
|
+
options?: never;
|
|
580
|
+
head?: never;
|
|
581
|
+
patch?: never;
|
|
582
|
+
trace?: never;
|
|
583
|
+
};
|
|
563
584
|
"/workspaces/{workspaceId}/sources": {
|
|
564
585
|
parameters: {
|
|
565
586
|
query?: never;
|
|
@@ -4181,6 +4202,52 @@ export interface components {
|
|
|
4181
4202
|
codeIntelligenceClaudeModel?: string | null;
|
|
4182
4203
|
/** @description True when a dedicated `code_intelligence` source has a stored executionToken. */
|
|
4183
4204
|
hasCodeIntelligenceExecutionToken?: boolean;
|
|
4205
|
+
/** @description Federated-readiness delivery topology: which connected repos hold terraform / gitops / ci_templates / api_contracts truth for this workspace. Null when not configured. Change via `PUT /workspaces/{workspaceId}/delivery-topology`. */
|
|
4206
|
+
deliveryTopology?: components["schemas"]["DeliveryTopologyDto"] | null;
|
|
4207
|
+
};
|
|
4208
|
+
DeliveryRoleConfigDto: {
|
|
4209
|
+
/** @description Connected workspace repo (`owner/repo`) that holds this role's artifacts. */
|
|
4210
|
+
providerSlug: string;
|
|
4211
|
+
/**
|
|
4212
|
+
* @description IaC engine hint (terraform role only).
|
|
4213
|
+
* @enum {string}
|
|
4214
|
+
*/
|
|
4215
|
+
engine?: "terraform" | "pulumi" | "cdk";
|
|
4216
|
+
/**
|
|
4217
|
+
* @description CI templates flavor (ci_templates role only).
|
|
4218
|
+
* @enum {string}
|
|
4219
|
+
*/
|
|
4220
|
+
type?: "reusable_workflows";
|
|
4221
|
+
/** @description Set true for extension roles outside the known role keys. */
|
|
4222
|
+
custom?: boolean;
|
|
4223
|
+
};
|
|
4224
|
+
RepoDeliveryOverrideDto: {
|
|
4225
|
+
/** @enum {string} */
|
|
4226
|
+
deliveryModel?: "auto" | "k8s_microservices" | "mobile_store" | "web_hosting" | "data_pipelines" | "monorepo" | "library" | "hybrid";
|
|
4227
|
+
/** @description Per-service role → providerSlug overrides (merged over workspace roles). */
|
|
4228
|
+
roles?: {
|
|
4229
|
+
[key: string]: string;
|
|
4230
|
+
};
|
|
4231
|
+
/** @description Path prefix inside platform repos where this service's artifacts live. */
|
|
4232
|
+
targetPathHint?: string;
|
|
4233
|
+
};
|
|
4234
|
+
DeliveryTopologyDto: {
|
|
4235
|
+
/** @enum {string} */
|
|
4236
|
+
deliveryModel: "auto" | "k8s_microservices" | "mobile_store" | "web_hosting" | "data_pipelines" | "monorepo" | "library" | "hybrid";
|
|
4237
|
+
/** @enum {string} */
|
|
4238
|
+
ciProvider: "github_actions" | "jenkins" | "gitlab" | "bitbucket" | "hybrid" | "external_documented";
|
|
4239
|
+
/** @description True when infra/delivery artifacts live outside service repos. */
|
|
4240
|
+
splitInfra: boolean;
|
|
4241
|
+
/** @description Role → platform repo mapping. Known keys: terraform, gitops, ci_templates, jenkins_shared, mobile_release, hosting, data_platform, api_contracts, sonar_config. */
|
|
4242
|
+
roles: {
|
|
4243
|
+
[key: string]: components["schemas"]["DeliveryRoleConfigDto"];
|
|
4244
|
+
};
|
|
4245
|
+
/** @description Optional path template inside platform repos, e.g. `services/{repo_name}/` (`{repo_name}` and `{provider_slug}` placeholders supported). */
|
|
4246
|
+
servicePathConvention?: string | null;
|
|
4247
|
+
/** @description Per-service-repo overrides keyed by provider slug. */
|
|
4248
|
+
repoOverrides: {
|
|
4249
|
+
[key: string]: components["schemas"]["RepoDeliveryOverrideDto"];
|
|
4250
|
+
};
|
|
4184
4251
|
};
|
|
4185
4252
|
TestConnectionResponseDto: {
|
|
4186
4253
|
success: boolean;
|
|
@@ -6368,6 +6435,33 @@ export interface components {
|
|
|
6368
6435
|
}[] | null;
|
|
6369
6436
|
/** @description GitHub-reported repository size in KB (includes git history), refreshed on each readiness scan (#729). Compare against `eligibilityLimits.maxRepoSizeKb` on the list response to show per-repo "size / limit". When the size exceeds the limit the latest scan is recorded as `partial_failed` with `lastRunErrorCode = exceeded_repo_size_limit` and the repo is marked `ineligible`. Null until a scan has populated it. */
|
|
6370
6437
|
sizeKb?: number | null;
|
|
6438
|
+
/**
|
|
6439
|
+
* @description Federated readiness: set when the repo was classified as a platform repository and scored with the reduced platform rubric profile. Null for service repos. The UI shows a "Platform repository" badge instead of comparing its score against service repos.
|
|
6440
|
+
* @enum {string|null}
|
|
6441
|
+
*/
|
|
6442
|
+
platformArchetype?: "terraform_platform" | "gitops_platform" | "ci_templates" | "api_contracts_platform" | null;
|
|
6443
|
+
/** @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`). */
|
|
6444
|
+
linkedRoleAssessment?: components["schemas"]["LinkedRoleAssessmentDto"] | null;
|
|
6445
|
+
};
|
|
6446
|
+
LinkedRolePendingDto: {
|
|
6447
|
+
/** @description Topology role key, e.g. terraform | gitops | ci_templates | api_contracts. */
|
|
6448
|
+
role: string;
|
|
6449
|
+
/** @description Platform repo (`owner/repo`) that must be scanned to satisfy this role. */
|
|
6450
|
+
providerSlug: string;
|
|
6451
|
+
/**
|
|
6452
|
+
* @description `no_scan` — the platform repo has no successful readiness run yet; `no_metadata_emitted` — it was scanned but emitted no linkage for this service (wrong archetype or scan predates federated readiness); `stale` — metadata is older than the hard TTL (30 days) and must be refreshed by re-scanning the platform repo.
|
|
6453
|
+
* @enum {string}
|
|
6454
|
+
*/
|
|
6455
|
+
reason: "no_scan" | "no_metadata_emitted" | "stale";
|
|
6456
|
+
/**
|
|
6457
|
+
* Format: date-time
|
|
6458
|
+
* @description Latest succeeded scan of the platform repo, when one exists.
|
|
6459
|
+
*/
|
|
6460
|
+
lastRunAt?: string | null;
|
|
6461
|
+
};
|
|
6462
|
+
LinkedRoleAssessmentDto: {
|
|
6463
|
+
complete: boolean;
|
|
6464
|
+
pending: components["schemas"]["LinkedRolePendingDto"][];
|
|
6371
6465
|
};
|
|
6372
6466
|
/** @description Single-repo detail response. Identical to RepoReadinessScoreDto except dimensions use DimensionScoreDetailDto (criteriaDetails required per dimension). */
|
|
6373
6467
|
RepoReadinessScoreDetailDto: {
|
|
@@ -6419,6 +6513,13 @@ export interface components {
|
|
|
6419
6513
|
}[] | null;
|
|
6420
6514
|
/** @description GitHub-reported repository size in KB, refreshed on each scan. See RepoReadinessScoreDto.sizeKb. */
|
|
6421
6515
|
sizeKb?: number | null;
|
|
6516
|
+
/**
|
|
6517
|
+
* @description See RepoReadinessScoreDto.platformArchetype.
|
|
6518
|
+
* @enum {string|null}
|
|
6519
|
+
*/
|
|
6520
|
+
platformArchetype?: "terraform_platform" | "gitops_platform" | "ci_templates" | "api_contracts_platform" | null;
|
|
6521
|
+
/** @description See RepoReadinessScoreDto.linkedRoleAssessment. */
|
|
6522
|
+
linkedRoleAssessment?: components["schemas"]["LinkedRoleAssessmentDto"] | null;
|
|
6422
6523
|
};
|
|
6423
6524
|
AgenticFoundationDashboardSummaryDto: {
|
|
6424
6525
|
repoCount: number;
|
|
@@ -8290,6 +8391,9 @@ export type JiraSourceConfigDto = components['schemas']['JiraSourceConfigDto'];
|
|
|
8290
8391
|
export type AgentExecutionProviderDto = components['schemas']['AgentExecutionProviderDto'];
|
|
8291
8392
|
export type PutCodeIntelligenceSettingsDto = components['schemas']['PutCodeIntelligenceSettingsDto'];
|
|
8292
8393
|
export type WorkspaceConfigDto = components['schemas']['WorkspaceConfigDto'];
|
|
8394
|
+
export type DeliveryRoleConfigDto = components['schemas']['DeliveryRoleConfigDto'];
|
|
8395
|
+
export type RepoDeliveryOverrideDto = components['schemas']['RepoDeliveryOverrideDto'];
|
|
8396
|
+
export type DeliveryTopologyDto = components['schemas']['DeliveryTopologyDto'];
|
|
8293
8397
|
export type TestConnectionResponseDto = components['schemas']['TestConnectionResponseDto'];
|
|
8294
8398
|
export type CursorKeyUsageDto = components['schemas']['CursorKeyUsageDto'];
|
|
8295
8399
|
export type AiToolSeatDto = components['schemas']['AiToolSeatDto'];
|
|
@@ -8463,6 +8567,8 @@ export type ReadinessScoreHistoryPointDto = components['schemas']['ReadinessScor
|
|
|
8463
8567
|
export type ReadinessRepoScoreHistoryDto = components['schemas']['ReadinessRepoScoreHistoryDto'];
|
|
8464
8568
|
export type WorkspaceReadinessScoreHistoryDto = components['schemas']['WorkspaceReadinessScoreHistoryDto'];
|
|
8465
8569
|
export type RepoReadinessScoreDto = components['schemas']['RepoReadinessScoreDto'];
|
|
8570
|
+
export type LinkedRolePendingDto = components['schemas']['LinkedRolePendingDto'];
|
|
8571
|
+
export type LinkedRoleAssessmentDto = components['schemas']['LinkedRoleAssessmentDto'];
|
|
8466
8572
|
export type RepoReadinessScoreDetailDto = components['schemas']['RepoReadinessScoreDetailDto'];
|
|
8467
8573
|
export type AgenticFoundationDashboardSummaryDto = components['schemas']['AgenticFoundationDashboardSummaryDto'];
|
|
8468
8574
|
export type PageMetaDto = components['schemas']['PageMetaDto'];
|
|
@@ -10241,6 +10347,50 @@ export interface operations {
|
|
|
10241
10347
|
};
|
|
10242
10348
|
};
|
|
10243
10349
|
};
|
|
10350
|
+
putWorkspaceDeliveryTopology: {
|
|
10351
|
+
parameters: {
|
|
10352
|
+
query?: never;
|
|
10353
|
+
header?: never;
|
|
10354
|
+
path: {
|
|
10355
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
10356
|
+
};
|
|
10357
|
+
cookie?: never;
|
|
10358
|
+
};
|
|
10359
|
+
requestBody: {
|
|
10360
|
+
content: {
|
|
10361
|
+
"application/json": components["schemas"]["DeliveryTopologyDto"] | null;
|
|
10362
|
+
};
|
|
10363
|
+
};
|
|
10364
|
+
responses: {
|
|
10365
|
+
/** @description Topology persisted (or cleared). */
|
|
10366
|
+
204: {
|
|
10367
|
+
headers: {
|
|
10368
|
+
[name: string]: unknown;
|
|
10369
|
+
};
|
|
10370
|
+
content?: never;
|
|
10371
|
+
};
|
|
10372
|
+
/** @description Invalid topology payload or unconnected repo referenced. */
|
|
10373
|
+
400: {
|
|
10374
|
+
headers: {
|
|
10375
|
+
[name: string]: unknown;
|
|
10376
|
+
};
|
|
10377
|
+
content: {
|
|
10378
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
10379
|
+
};
|
|
10380
|
+
};
|
|
10381
|
+
401: components["responses"]["Unauthorized"];
|
|
10382
|
+
403: components["responses"]["Forbidden"];
|
|
10383
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
10384
|
+
404: {
|
|
10385
|
+
headers: {
|
|
10386
|
+
[name: string]: unknown;
|
|
10387
|
+
};
|
|
10388
|
+
content: {
|
|
10389
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
10390
|
+
};
|
|
10391
|
+
};
|
|
10392
|
+
};
|
|
10393
|
+
};
|
|
10244
10394
|
putTenantSources: {
|
|
10245
10395
|
parameters: {
|
|
10246
10396
|
query?: never;
|