@thinkai/tai-api-contract 2.192.0 → 2.194.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 +85 -247
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +81 -242
- package/package.json +1 -1
- package/src/generated/openapi.ts +85 -247
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.194.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}/...`.
|
|
@@ -34,8 +34,6 @@ tags:
|
|
|
34
34
|
description: NDA flows (§4, §14 storagePath)
|
|
35
35
|
- name: RepositoryReadiness
|
|
36
36
|
description: Repository readiness (§5)
|
|
37
|
-
- name: SquadProjects
|
|
38
|
-
description: Squad and projects (§6)
|
|
39
37
|
- name: Notifications
|
|
40
38
|
description: Notifications (§7)
|
|
41
39
|
- name: AIStrategy
|
|
@@ -5669,6 +5667,57 @@ paths:
|
|
|
5669
5667
|
schema:
|
|
5670
5668
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
5671
5669
|
|
|
5670
|
+
/workspaces/{workspaceId}/integrations/github/installations/{installationId}/automated-fixes/pr-creation-mode:
|
|
5671
|
+
put:
|
|
5672
|
+
tags: [Integrations]
|
|
5673
|
+
summary: Set fix PR creation mode for a GitHub installation
|
|
5674
|
+
operationId: putGithubAutomatedFixesPrCreationMode
|
|
5675
|
+
description: >
|
|
5676
|
+
Workspace admin only. Sets whether readiness fix PRs are opened only after
|
|
5677
|
+
an explicit Fix it (`manual`) or may be auto-enqueued by the fix processor (`auto`).
|
|
5678
|
+
Requires a linked Automations (write) installation. The mode is ignored while
|
|
5679
|
+
automated fixes are disabled or the write app is suspended.
|
|
5680
|
+
security:
|
|
5681
|
+
- bearerAuth: []
|
|
5682
|
+
parameters:
|
|
5683
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
5684
|
+
- name: installationId
|
|
5685
|
+
in: path
|
|
5686
|
+
required: true
|
|
5687
|
+
schema:
|
|
5688
|
+
type: string
|
|
5689
|
+
minLength: 1
|
|
5690
|
+
maxLength: 64
|
|
5691
|
+
requestBody:
|
|
5692
|
+
required: true
|
|
5693
|
+
content:
|
|
5694
|
+
application/json:
|
|
5695
|
+
schema:
|
|
5696
|
+
$ref: "#/components/schemas/GithubFixPrCreationModeRequestDto"
|
|
5697
|
+
responses:
|
|
5698
|
+
"200":
|
|
5699
|
+
description: Updated mode
|
|
5700
|
+
content:
|
|
5701
|
+
application/json:
|
|
5702
|
+
schema:
|
|
5703
|
+
$ref: "#/components/schemas/GithubFixPrCreationModeResponseDto"
|
|
5704
|
+
"401":
|
|
5705
|
+
$ref: "#/components/responses/Unauthorized"
|
|
5706
|
+
"403":
|
|
5707
|
+
$ref: "#/components/responses/Forbidden"
|
|
5708
|
+
"404":
|
|
5709
|
+
description: Workspace, installation, or write app link not found
|
|
5710
|
+
content:
|
|
5711
|
+
application/json:
|
|
5712
|
+
schema:
|
|
5713
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
5714
|
+
"409":
|
|
5715
|
+
description: Write installation suspended
|
|
5716
|
+
content:
|
|
5717
|
+
application/json:
|
|
5718
|
+
schema:
|
|
5719
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
5720
|
+
|
|
5672
5721
|
/workspaces/{workspaceId}/integrations/github/user-authorize-url:
|
|
5673
5722
|
post:
|
|
5674
5723
|
tags: [Integrations]
|
|
@@ -10144,104 +10193,6 @@ paths:
|
|
|
10144
10193
|
"403":
|
|
10145
10194
|
$ref: "#/components/responses/Forbidden"
|
|
10146
10195
|
|
|
10147
|
-
/workspaces/{workspaceId}/squad:
|
|
10148
|
-
get:
|
|
10149
|
-
tags: [SquadProjects]
|
|
10150
|
-
summary: Get squad configuration
|
|
10151
|
-
operationId: getSquad
|
|
10152
|
-
parameters:
|
|
10153
|
-
- $ref: "#/components/parameters/WorkspaceId"
|
|
10154
|
-
responses:
|
|
10155
|
-
"200":
|
|
10156
|
-
description: Squad
|
|
10157
|
-
content:
|
|
10158
|
-
application/json:
|
|
10159
|
-
schema:
|
|
10160
|
-
$ref: "#/components/schemas/SquadDto"
|
|
10161
|
-
"401":
|
|
10162
|
-
$ref: "#/components/responses/Unauthorized"
|
|
10163
|
-
put:
|
|
10164
|
-
tags: [SquadProjects]
|
|
10165
|
-
summary: Upsert squad
|
|
10166
|
-
operationId: putSquad
|
|
10167
|
-
parameters:
|
|
10168
|
-
- $ref: "#/components/parameters/WorkspaceId"
|
|
10169
|
-
requestBody:
|
|
10170
|
-
required: true
|
|
10171
|
-
content:
|
|
10172
|
-
application/json:
|
|
10173
|
-
schema:
|
|
10174
|
-
$ref: "#/components/schemas/SquadDto"
|
|
10175
|
-
responses:
|
|
10176
|
-
"204":
|
|
10177
|
-
description: Saved
|
|
10178
|
-
"401":
|
|
10179
|
-
$ref: "#/components/responses/Unauthorized"
|
|
10180
|
-
|
|
10181
|
-
/workspaces/{workspaceId}/projects:
|
|
10182
|
-
get:
|
|
10183
|
-
tags: [SquadProjects]
|
|
10184
|
-
summary: List projects
|
|
10185
|
-
operationId: listProjects
|
|
10186
|
-
parameters:
|
|
10187
|
-
- $ref: "#/components/parameters/WorkspaceId"
|
|
10188
|
-
responses:
|
|
10189
|
-
"200":
|
|
10190
|
-
description: Projects
|
|
10191
|
-
content:
|
|
10192
|
-
application/json:
|
|
10193
|
-
schema:
|
|
10194
|
-
type: array
|
|
10195
|
-
items:
|
|
10196
|
-
$ref: "#/components/schemas/ProjectDto"
|
|
10197
|
-
"401":
|
|
10198
|
-
$ref: "#/components/responses/Unauthorized"
|
|
10199
|
-
post:
|
|
10200
|
-
tags: [SquadProjects]
|
|
10201
|
-
summary: Create project
|
|
10202
|
-
operationId: createProject
|
|
10203
|
-
parameters:
|
|
10204
|
-
- $ref: "#/components/parameters/WorkspaceId"
|
|
10205
|
-
requestBody:
|
|
10206
|
-
required: true
|
|
10207
|
-
content:
|
|
10208
|
-
application/json:
|
|
10209
|
-
schema:
|
|
10210
|
-
$ref: "#/components/schemas/ProjectDto"
|
|
10211
|
-
responses:
|
|
10212
|
-
"200":
|
|
10213
|
-
description: Created project
|
|
10214
|
-
content:
|
|
10215
|
-
application/json:
|
|
10216
|
-
schema:
|
|
10217
|
-
$ref: "#/components/schemas/ProjectDto"
|
|
10218
|
-
"401":
|
|
10219
|
-
$ref: "#/components/responses/Unauthorized"
|
|
10220
|
-
|
|
10221
|
-
/workspaces/{workspaceId}/projects/{projectId}:
|
|
10222
|
-
patch:
|
|
10223
|
-
tags: [SquadProjects]
|
|
10224
|
-
summary: Update project
|
|
10225
|
-
operationId: patchProject
|
|
10226
|
-
parameters:
|
|
10227
|
-
- $ref: "#/components/parameters/WorkspaceId"
|
|
10228
|
-
- $ref: "#/components/parameters/ProjectId"
|
|
10229
|
-
requestBody:
|
|
10230
|
-
required: true
|
|
10231
|
-
content:
|
|
10232
|
-
application/json:
|
|
10233
|
-
schema:
|
|
10234
|
-
$ref: "#/components/schemas/ProjectPatchDto"
|
|
10235
|
-
responses:
|
|
10236
|
-
"200":
|
|
10237
|
-
description: Updated project
|
|
10238
|
-
content:
|
|
10239
|
-
application/json:
|
|
10240
|
-
schema:
|
|
10241
|
-
$ref: "#/components/schemas/ProjectDto"
|
|
10242
|
-
"401":
|
|
10243
|
-
$ref: "#/components/responses/Unauthorized"
|
|
10244
|
-
|
|
10245
10196
|
/workspaces/{workspaceId}/code-chat/indexes:
|
|
10246
10197
|
get:
|
|
10247
10198
|
tags: [CodeChat]
|
|
@@ -14296,12 +14247,6 @@ components:
|
|
|
14296
14247
|
maxLength: 512
|
|
14297
14248
|
pattern: "^[^/]+/[^/]+$"
|
|
14298
14249
|
example: thinkai-llc/thinkai-platform-backend
|
|
14299
|
-
ProjectId:
|
|
14300
|
-
name: projectId
|
|
14301
|
-
in: path
|
|
14302
|
-
required: true
|
|
14303
|
-
schema:
|
|
14304
|
-
type: string
|
|
14305
14250
|
NotificationId:
|
|
14306
14251
|
name: id
|
|
14307
14252
|
in: path
|
|
@@ -19910,6 +19855,7 @@ components:
|
|
|
19910
19855
|
- writePermissionsUpgradeRequired
|
|
19911
19856
|
- automatedFixesEnabled
|
|
19912
19857
|
- writeAppInstalled
|
|
19858
|
+
- fixPrCreationMode
|
|
19913
19859
|
- canEnableAutomatedFixes
|
|
19914
19860
|
- suspended
|
|
19915
19861
|
- writeSuspended
|
|
@@ -20018,6 +19964,14 @@ components:
|
|
|
20018
19964
|
writeAppInstalled:
|
|
20019
19965
|
type: boolean
|
|
20020
19966
|
description: True when an Automations (write) GitHub App installation is linked.
|
|
19967
|
+
fixPrCreationMode:
|
|
19968
|
+
type: string
|
|
19969
|
+
enum: [manual, auto]
|
|
19970
|
+
description: >
|
|
19971
|
+
`manual` (default): open fix PRs only after Fix it / POST readiness/fixes.
|
|
19972
|
+
`auto`: allow the fix processor to auto-enqueue open readiness issues for this
|
|
19973
|
+
installation when automated fixes are enabled. Meaningful only when
|
|
19974
|
+
`writeAppInstalled` is true.
|
|
20021
19975
|
writeInstallationId:
|
|
20022
19976
|
type: string
|
|
20023
19977
|
nullable: true
|
|
@@ -20682,6 +20636,26 @@ components:
|
|
|
20682
20636
|
minLength: 16
|
|
20683
20637
|
maxLength: 128
|
|
20684
20638
|
|
|
20639
|
+
GithubFixPrCreationModeRequestDto:
|
|
20640
|
+
type: object
|
|
20641
|
+
additionalProperties: false
|
|
20642
|
+
required: [mode]
|
|
20643
|
+
properties:
|
|
20644
|
+
mode:
|
|
20645
|
+
type: string
|
|
20646
|
+
enum: [manual, auto]
|
|
20647
|
+
description: >
|
|
20648
|
+
`manual` requires Fix it; `auto` allows processor auto-enqueue of open fix issues.
|
|
20649
|
+
|
|
20650
|
+
GithubFixPrCreationModeResponseDto:
|
|
20651
|
+
type: object
|
|
20652
|
+
additionalProperties: false
|
|
20653
|
+
required: [mode]
|
|
20654
|
+
properties:
|
|
20655
|
+
mode:
|
|
20656
|
+
type: string
|
|
20657
|
+
enum: [manual, auto]
|
|
20658
|
+
|
|
20685
20659
|
GithubAutomatedFixesEnableResponseDto:
|
|
20686
20660
|
type: object
|
|
20687
20661
|
additionalProperties: false
|
|
@@ -23356,141 +23330,6 @@ components:
|
|
|
23356
23330
|
branchName:
|
|
23357
23331
|
type: string
|
|
23358
23332
|
|
|
23359
|
-
PhaseRoleDto:
|
|
23360
|
-
type: object
|
|
23361
|
-
required: [phase, assignment]
|
|
23362
|
-
properties:
|
|
23363
|
-
phase:
|
|
23364
|
-
type: string
|
|
23365
|
-
assignment:
|
|
23366
|
-
type: string
|
|
23367
|
-
enum: [orchestrate, review, both, none]
|
|
23368
|
-
|
|
23369
|
-
SquadMemberDto:
|
|
23370
|
-
type: object
|
|
23371
|
-
required: [id, role, roleLabel, description, count, phases]
|
|
23372
|
-
properties:
|
|
23373
|
-
id:
|
|
23374
|
-
type: string
|
|
23375
|
-
role:
|
|
23376
|
-
type: string
|
|
23377
|
-
roleLabel:
|
|
23378
|
-
type: string
|
|
23379
|
-
name:
|
|
23380
|
-
type: string
|
|
23381
|
-
description:
|
|
23382
|
-
type: string
|
|
23383
|
-
count:
|
|
23384
|
-
type: integer
|
|
23385
|
-
phases:
|
|
23386
|
-
type: array
|
|
23387
|
-
items:
|
|
23388
|
-
$ref: "#/components/schemas/PhaseRoleDto"
|
|
23389
|
-
custom:
|
|
23390
|
-
type: boolean
|
|
23391
|
-
|
|
23392
|
-
CustomWorkStreamTaskDto:
|
|
23393
|
-
type: object
|
|
23394
|
-
required: [id, name, summary]
|
|
23395
|
-
properties:
|
|
23396
|
-
id:
|
|
23397
|
-
type: string
|
|
23398
|
-
name:
|
|
23399
|
-
type: string
|
|
23400
|
-
summary:
|
|
23401
|
-
type: string
|
|
23402
|
-
|
|
23403
|
-
PhaseWorkStreamConfigDto:
|
|
23404
|
-
type: object
|
|
23405
|
-
properties:
|
|
23406
|
-
deselectedCatalogIds:
|
|
23407
|
-
type: array
|
|
23408
|
-
items:
|
|
23409
|
-
type: string
|
|
23410
|
-
customTasks:
|
|
23411
|
-
type: array
|
|
23412
|
-
items:
|
|
23413
|
-
$ref: "#/components/schemas/CustomWorkStreamTaskDto"
|
|
23414
|
-
|
|
23415
|
-
SquadDto:
|
|
23416
|
-
type: object
|
|
23417
|
-
required: [members, hrConnected]
|
|
23418
|
-
properties:
|
|
23419
|
-
members:
|
|
23420
|
-
type: array
|
|
23421
|
-
items:
|
|
23422
|
-
$ref: "#/components/schemas/SquadMemberDto"
|
|
23423
|
-
hrConnected:
|
|
23424
|
-
type: boolean
|
|
23425
|
-
selectedPhases:
|
|
23426
|
-
type: array
|
|
23427
|
-
items:
|
|
23428
|
-
type: string
|
|
23429
|
-
phaseWorkStreams:
|
|
23430
|
-
type: object
|
|
23431
|
-
additionalProperties:
|
|
23432
|
-
$ref: "#/components/schemas/PhaseWorkStreamConfigDto"
|
|
23433
|
-
|
|
23434
|
-
WorkflowDto:
|
|
23435
|
-
type: object
|
|
23436
|
-
required: [id, name, kinds, typeDescription, roles]
|
|
23437
|
-
properties:
|
|
23438
|
-
id:
|
|
23439
|
-
type: string
|
|
23440
|
-
name:
|
|
23441
|
-
type: string
|
|
23442
|
-
kinds:
|
|
23443
|
-
type: array
|
|
23444
|
-
items:
|
|
23445
|
-
type: string
|
|
23446
|
-
enum: [greenfield, brownfield]
|
|
23447
|
-
typeDescription:
|
|
23448
|
-
type: string
|
|
23449
|
-
roles:
|
|
23450
|
-
type: array
|
|
23451
|
-
items:
|
|
23452
|
-
type: string
|
|
23453
|
-
|
|
23454
|
-
ProjectDto:
|
|
23455
|
-
type: object
|
|
23456
|
-
required: [id, name, description, startDate, workflows, createdAt]
|
|
23457
|
-
properties:
|
|
23458
|
-
id:
|
|
23459
|
-
type: string
|
|
23460
|
-
name:
|
|
23461
|
-
type: string
|
|
23462
|
-
description:
|
|
23463
|
-
type: string
|
|
23464
|
-
startDate:
|
|
23465
|
-
type: string
|
|
23466
|
-
workflows:
|
|
23467
|
-
type: array
|
|
23468
|
-
items:
|
|
23469
|
-
$ref: "#/components/schemas/WorkflowDto"
|
|
23470
|
-
createdAt:
|
|
23471
|
-
type: string
|
|
23472
|
-
format: date-time
|
|
23473
|
-
|
|
23474
|
-
ProjectPatchDto:
|
|
23475
|
-
type: object
|
|
23476
|
-
description: Partial update; all properties optional
|
|
23477
|
-
properties:
|
|
23478
|
-
id:
|
|
23479
|
-
type: string
|
|
23480
|
-
name:
|
|
23481
|
-
type: string
|
|
23482
|
-
description:
|
|
23483
|
-
type: string
|
|
23484
|
-
startDate:
|
|
23485
|
-
type: string
|
|
23486
|
-
workflows:
|
|
23487
|
-
type: array
|
|
23488
|
-
items:
|
|
23489
|
-
$ref: "#/components/schemas/WorkflowDto"
|
|
23490
|
-
createdAt:
|
|
23491
|
-
type: string
|
|
23492
|
-
format: date-time
|
|
23493
|
-
|
|
23494
23333
|
PlatformBannerDto:
|
|
23495
23334
|
type: object
|
|
23496
23335
|
required: [id, kind, title, message, dismissible]
|