@thinkai/tai-api-contract 2.221.0 → 2.222.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 +146 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +144 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +146 -0
package/openapi/openapi.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
openapi: 3.0.3
|
|
2
2
|
info:
|
|
3
3
|
title: ThinkAI API
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.222.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}/...`.
|
|
@@ -11431,6 +11431,88 @@ paths:
|
|
|
11431
11431
|
error: Code Intelligence is disabled for this workspace
|
|
11432
11432
|
code: code_intelligence_disabled
|
|
11433
11433
|
|
|
11434
|
+
/workspaces/{workspaceId}/code-chat/ecg/sources:
|
|
11435
|
+
get:
|
|
11436
|
+
tags: [CodeChat]
|
|
11437
|
+
summary: List ECG connectors
|
|
11438
|
+
description: >
|
|
11439
|
+
Any workspace member. Returns active workspace integrations with ECG fields
|
|
11440
|
+
(`kind`, `readable`, `note`, `enabled`) for Settings → Connectors. Readable today:
|
|
11441
|
+
GitHub, Bitbucket Cloud, Confluence. GitHub Actions and Notion are Coming soon;
|
|
11442
|
+
other connected connectors stay listed as not supported yet.
|
|
11443
|
+
operationId: listEcgSources
|
|
11444
|
+
parameters:
|
|
11445
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
11446
|
+
responses:
|
|
11447
|
+
"200":
|
|
11448
|
+
description: Connector list
|
|
11449
|
+
content:
|
|
11450
|
+
application/json:
|
|
11451
|
+
schema:
|
|
11452
|
+
$ref: "#/components/schemas/EcgSourceListDto"
|
|
11453
|
+
"401":
|
|
11454
|
+
$ref: "#/components/responses/Unauthorized"
|
|
11455
|
+
"403":
|
|
11456
|
+
$ref: "#/components/responses/Forbidden"
|
|
11457
|
+
|
|
11458
|
+
/workspaces/{workspaceId}/code-chat/ecg/sources/{integrationId}:
|
|
11459
|
+
patch:
|
|
11460
|
+
tags: [CodeChat]
|
|
11461
|
+
summary: Toggle ECG for a connector
|
|
11462
|
+
description: >
|
|
11463
|
+
Any workspace member. Sets `enabled` for one integration. Enabling a non-readable
|
|
11464
|
+
connector returns **400** `ecg_connector_not_readable`. Disabling is always allowed.
|
|
11465
|
+
operationId: patchEcgSource
|
|
11466
|
+
parameters:
|
|
11467
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
11468
|
+
- name: integrationId
|
|
11469
|
+
in: path
|
|
11470
|
+
required: true
|
|
11471
|
+
schema:
|
|
11472
|
+
type: string
|
|
11473
|
+
format: uuid
|
|
11474
|
+
requestBody:
|
|
11475
|
+
required: true
|
|
11476
|
+
content:
|
|
11477
|
+
application/json:
|
|
11478
|
+
schema:
|
|
11479
|
+
$ref: "#/components/schemas/PatchEcgSourceBodyDto"
|
|
11480
|
+
responses:
|
|
11481
|
+
"200":
|
|
11482
|
+
description: Updated connector
|
|
11483
|
+
content:
|
|
11484
|
+
application/json:
|
|
11485
|
+
schema:
|
|
11486
|
+
$ref: "#/components/schemas/EcgSourceDto"
|
|
11487
|
+
"400":
|
|
11488
|
+
description: Invalid body or connector not readable for ECG
|
|
11489
|
+
content:
|
|
11490
|
+
application/json:
|
|
11491
|
+
schema:
|
|
11492
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
11493
|
+
examples:
|
|
11494
|
+
invalid_input:
|
|
11495
|
+
value:
|
|
11496
|
+
error: enabled must be true or false
|
|
11497
|
+
code: invalid_input
|
|
11498
|
+
not_readable:
|
|
11499
|
+
value:
|
|
11500
|
+
error: Coming soon
|
|
11501
|
+
code: ecg_connector_not_readable
|
|
11502
|
+
"401":
|
|
11503
|
+
$ref: "#/components/responses/Unauthorized"
|
|
11504
|
+
"403":
|
|
11505
|
+
$ref: "#/components/responses/Forbidden"
|
|
11506
|
+
"404":
|
|
11507
|
+
description: Integration not found
|
|
11508
|
+
content:
|
|
11509
|
+
application/json:
|
|
11510
|
+
schema:
|
|
11511
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
11512
|
+
example:
|
|
11513
|
+
error: Integration not found
|
|
11514
|
+
code: integration_not_found
|
|
11515
|
+
|
|
11434
11516
|
/workspaces/{workspaceId}/code-chat/attachments:
|
|
11435
11517
|
post:
|
|
11436
11518
|
tags: [CodeChat]
|
|
@@ -18503,6 +18585,67 @@ components:
|
|
|
18503
18585
|
sizeBytes: { type: integer, minimum: 1 }
|
|
18504
18586
|
createdAt: { type: string, format: date-time }
|
|
18505
18587
|
|
|
18588
|
+
EcgSourceDto:
|
|
18589
|
+
type: object
|
|
18590
|
+
required:
|
|
18591
|
+
- id
|
|
18592
|
+
- category
|
|
18593
|
+
- provider
|
|
18594
|
+
- label
|
|
18595
|
+
- enabled
|
|
18596
|
+
- status
|
|
18597
|
+
- lastScanAt
|
|
18598
|
+
- kind
|
|
18599
|
+
- readable
|
|
18600
|
+
- note
|
|
18601
|
+
properties:
|
|
18602
|
+
id:
|
|
18603
|
+
type: string
|
|
18604
|
+
format: uuid
|
|
18605
|
+
category:
|
|
18606
|
+
type: string
|
|
18607
|
+
description: Workspace integration category (for example `vcs`, `ci`, `knowledge`).
|
|
18608
|
+
provider:
|
|
18609
|
+
type: string
|
|
18610
|
+
description: Integration provider key (for example `github`, `github_actions`).
|
|
18611
|
+
label:
|
|
18612
|
+
type: string
|
|
18613
|
+
enabled:
|
|
18614
|
+
type: boolean
|
|
18615
|
+
description: When false, ECG does not scan or cite this connector.
|
|
18616
|
+
status:
|
|
18617
|
+
type: string
|
|
18618
|
+
lastScanAt:
|
|
18619
|
+
type: string
|
|
18620
|
+
format: date-time
|
|
18621
|
+
nullable: true
|
|
18622
|
+
kind:
|
|
18623
|
+
type: string
|
|
18624
|
+
enum: [code, document, other]
|
|
18625
|
+
readable:
|
|
18626
|
+
type: boolean
|
|
18627
|
+
description: When false, Settings shows Coming soon / Not supported and PATCH enable is rejected.
|
|
18628
|
+
note:
|
|
18629
|
+
type: string
|
|
18630
|
+
nullable: true
|
|
18631
|
+
description: Human-readable Coming soon / not-supported note when `readable` is false.
|
|
18632
|
+
|
|
18633
|
+
EcgSourceListDto:
|
|
18634
|
+
type: object
|
|
18635
|
+
required: [items]
|
|
18636
|
+
properties:
|
|
18637
|
+
items:
|
|
18638
|
+
type: array
|
|
18639
|
+
items:
|
|
18640
|
+
$ref: "#/components/schemas/EcgSourceDto"
|
|
18641
|
+
|
|
18642
|
+
PatchEcgSourceBodyDto:
|
|
18643
|
+
type: object
|
|
18644
|
+
required: [enabled]
|
|
18645
|
+
properties:
|
|
18646
|
+
enabled:
|
|
18647
|
+
type: boolean
|
|
18648
|
+
|
|
18506
18649
|
CodeChatReadinessDto:
|
|
18507
18650
|
type: object
|
|
18508
18651
|
required:
|
package/package.json
CHANGED
package/src/generated/openapi.ts
CHANGED
|
@@ -4232,6 +4232,46 @@ export interface paths {
|
|
|
4232
4232
|
patch?: never;
|
|
4233
4233
|
trace?: never;
|
|
4234
4234
|
};
|
|
4235
|
+
"/workspaces/{workspaceId}/code-chat/ecg/sources": {
|
|
4236
|
+
parameters: {
|
|
4237
|
+
query?: never;
|
|
4238
|
+
header?: never;
|
|
4239
|
+
path?: never;
|
|
4240
|
+
cookie?: never;
|
|
4241
|
+
};
|
|
4242
|
+
/**
|
|
4243
|
+
* List ECG connectors
|
|
4244
|
+
* @description Any workspace member. Returns active workspace integrations with ECG fields (`kind`, `readable`, `note`, `enabled`) for Settings → Connectors. Readable today: GitHub, Bitbucket Cloud, Confluence. GitHub Actions and Notion are Coming soon; other connected connectors stay listed as not supported yet.
|
|
4245
|
+
*/
|
|
4246
|
+
get: operations["listEcgSources"];
|
|
4247
|
+
put?: never;
|
|
4248
|
+
post?: never;
|
|
4249
|
+
delete?: never;
|
|
4250
|
+
options?: never;
|
|
4251
|
+
head?: never;
|
|
4252
|
+
patch?: never;
|
|
4253
|
+
trace?: never;
|
|
4254
|
+
};
|
|
4255
|
+
"/workspaces/{workspaceId}/code-chat/ecg/sources/{integrationId}": {
|
|
4256
|
+
parameters: {
|
|
4257
|
+
query?: never;
|
|
4258
|
+
header?: never;
|
|
4259
|
+
path?: never;
|
|
4260
|
+
cookie?: never;
|
|
4261
|
+
};
|
|
4262
|
+
get?: never;
|
|
4263
|
+
put?: never;
|
|
4264
|
+
post?: never;
|
|
4265
|
+
delete?: never;
|
|
4266
|
+
options?: never;
|
|
4267
|
+
head?: never;
|
|
4268
|
+
/**
|
|
4269
|
+
* Toggle ECG for a connector
|
|
4270
|
+
* @description Any workspace member. Sets `enabled` for one integration. Enabling a non-readable connector returns **400** `ecg_connector_not_readable`. Disabling is always allowed.
|
|
4271
|
+
*/
|
|
4272
|
+
patch: operations["patchEcgSource"];
|
|
4273
|
+
trace?: never;
|
|
4274
|
+
};
|
|
4235
4275
|
"/workspaces/{workspaceId}/code-chat/attachments": {
|
|
4236
4276
|
parameters: {
|
|
4237
4277
|
query?: never;
|
|
@@ -7298,6 +7338,32 @@ export interface components {
|
|
|
7298
7338
|
/** Format: date-time */
|
|
7299
7339
|
createdAt: string;
|
|
7300
7340
|
};
|
|
7341
|
+
EcgSourceDto: {
|
|
7342
|
+
/** Format: uuid */
|
|
7343
|
+
id: string;
|
|
7344
|
+
/** @description Workspace integration category (for example `vcs`, `ci`, `knowledge`). */
|
|
7345
|
+
category: string;
|
|
7346
|
+
/** @description Integration provider key (for example `github`, `github_actions`). */
|
|
7347
|
+
provider: string;
|
|
7348
|
+
label: string;
|
|
7349
|
+
/** @description When false, ECG does not scan or cite this connector. */
|
|
7350
|
+
enabled: boolean;
|
|
7351
|
+
status: string;
|
|
7352
|
+
/** Format: date-time */
|
|
7353
|
+
lastScanAt: string | null;
|
|
7354
|
+
/** @enum {string} */
|
|
7355
|
+
kind: "code" | "document" | "other";
|
|
7356
|
+
/** @description When false, Settings shows Coming soon / Not supported and PATCH enable is rejected. */
|
|
7357
|
+
readable: boolean;
|
|
7358
|
+
/** @description Human-readable Coming soon / not-supported note when `readable` is false. */
|
|
7359
|
+
note: string | null;
|
|
7360
|
+
};
|
|
7361
|
+
EcgSourceListDto: {
|
|
7362
|
+
items: components["schemas"]["EcgSourceDto"][];
|
|
7363
|
+
};
|
|
7364
|
+
PatchEcgSourceBodyDto: {
|
|
7365
|
+
enabled: boolean;
|
|
7366
|
+
};
|
|
7301
7367
|
CodeChatReadinessDto: {
|
|
7302
7368
|
/** @enum {string} */
|
|
7303
7369
|
status: "indexing" | "generating_agent_md" | "failed" | "ready";
|
|
@@ -14625,6 +14691,9 @@ export type PutCodeIntelligenceAgentMdDto = components['schemas']['PutCodeIntell
|
|
|
14625
14691
|
export type CodeIntelligenceAgentMdDto = components['schemas']['CodeIntelligenceAgentMdDto'];
|
|
14626
14692
|
export type CodeChatAttachmentLimitsDto = components['schemas']['CodeChatAttachmentLimitsDto'];
|
|
14627
14693
|
export type CodeChatAttachmentMetaDto = components['schemas']['CodeChatAttachmentMetaDto'];
|
|
14694
|
+
export type EcgSourceDto = components['schemas']['EcgSourceDto'];
|
|
14695
|
+
export type EcgSourceListDto = components['schemas']['EcgSourceListDto'];
|
|
14696
|
+
export type PatchEcgSourceBodyDto = components['schemas']['PatchEcgSourceBodyDto'];
|
|
14628
14697
|
export type CodeChatReadinessDto = components['schemas']['CodeChatReadinessDto'];
|
|
14629
14698
|
export type CodeWikiGuidanceDto = components['schemas']['CodeWikiGuidanceDto'];
|
|
14630
14699
|
export type WorkspaceConfigDto = components['schemas']['WorkspaceConfigDto'];
|
|
@@ -26836,6 +26905,83 @@ export interface operations {
|
|
|
26836
26905
|
};
|
|
26837
26906
|
};
|
|
26838
26907
|
};
|
|
26908
|
+
listEcgSources: {
|
|
26909
|
+
parameters: {
|
|
26910
|
+
query?: never;
|
|
26911
|
+
header?: never;
|
|
26912
|
+
path: {
|
|
26913
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
26914
|
+
};
|
|
26915
|
+
cookie?: never;
|
|
26916
|
+
};
|
|
26917
|
+
requestBody?: never;
|
|
26918
|
+
responses: {
|
|
26919
|
+
/** @description Connector list */
|
|
26920
|
+
200: {
|
|
26921
|
+
headers: {
|
|
26922
|
+
[name: string]: unknown;
|
|
26923
|
+
};
|
|
26924
|
+
content: {
|
|
26925
|
+
"application/json": components["schemas"]["EcgSourceListDto"];
|
|
26926
|
+
};
|
|
26927
|
+
};
|
|
26928
|
+
401: components["responses"]["Unauthorized"];
|
|
26929
|
+
403: components["responses"]["Forbidden"];
|
|
26930
|
+
};
|
|
26931
|
+
};
|
|
26932
|
+
patchEcgSource: {
|
|
26933
|
+
parameters: {
|
|
26934
|
+
query?: never;
|
|
26935
|
+
header?: never;
|
|
26936
|
+
path: {
|
|
26937
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
26938
|
+
integrationId: string;
|
|
26939
|
+
};
|
|
26940
|
+
cookie?: never;
|
|
26941
|
+
};
|
|
26942
|
+
requestBody: {
|
|
26943
|
+
content: {
|
|
26944
|
+
"application/json": components["schemas"]["PatchEcgSourceBodyDto"];
|
|
26945
|
+
};
|
|
26946
|
+
};
|
|
26947
|
+
responses: {
|
|
26948
|
+
/** @description Updated connector */
|
|
26949
|
+
200: {
|
|
26950
|
+
headers: {
|
|
26951
|
+
[name: string]: unknown;
|
|
26952
|
+
};
|
|
26953
|
+
content: {
|
|
26954
|
+
"application/json": components["schemas"]["EcgSourceDto"];
|
|
26955
|
+
};
|
|
26956
|
+
};
|
|
26957
|
+
/** @description Invalid body or connector not readable for ECG */
|
|
26958
|
+
400: {
|
|
26959
|
+
headers: {
|
|
26960
|
+
[name: string]: unknown;
|
|
26961
|
+
};
|
|
26962
|
+
content: {
|
|
26963
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
26964
|
+
};
|
|
26965
|
+
};
|
|
26966
|
+
401: components["responses"]["Unauthorized"];
|
|
26967
|
+
403: components["responses"]["Forbidden"];
|
|
26968
|
+
/** @description Integration not found */
|
|
26969
|
+
404: {
|
|
26970
|
+
headers: {
|
|
26971
|
+
[name: string]: unknown;
|
|
26972
|
+
};
|
|
26973
|
+
content: {
|
|
26974
|
+
/**
|
|
26975
|
+
* @example {
|
|
26976
|
+
* "error": "Integration not found",
|
|
26977
|
+
* "code": "integration_not_found"
|
|
26978
|
+
* }
|
|
26979
|
+
*/
|
|
26980
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
26981
|
+
};
|
|
26982
|
+
};
|
|
26983
|
+
};
|
|
26984
|
+
};
|
|
26839
26985
|
postCodeChatAttachment: {
|
|
26840
26986
|
parameters: {
|
|
26841
26987
|
query?: never;
|