@thinkai/tai-api-contract 2.193.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.
@@ -1,7 +1,7 @@
1
1
  openapi: 3.0.3
2
2
  info:
3
3
  title: ThinkAI API
4
- version: 2.193.0
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
@@ -10195,104 +10193,6 @@ paths:
10195
10193
  "403":
10196
10194
  $ref: "#/components/responses/Forbidden"
10197
10195
 
10198
- /workspaces/{workspaceId}/squad:
10199
- get:
10200
- tags: [SquadProjects]
10201
- summary: Get squad configuration
10202
- operationId: getSquad
10203
- parameters:
10204
- - $ref: "#/components/parameters/WorkspaceId"
10205
- responses:
10206
- "200":
10207
- description: Squad
10208
- content:
10209
- application/json:
10210
- schema:
10211
- $ref: "#/components/schemas/SquadDto"
10212
- "401":
10213
- $ref: "#/components/responses/Unauthorized"
10214
- put:
10215
- tags: [SquadProjects]
10216
- summary: Upsert squad
10217
- operationId: putSquad
10218
- parameters:
10219
- - $ref: "#/components/parameters/WorkspaceId"
10220
- requestBody:
10221
- required: true
10222
- content:
10223
- application/json:
10224
- schema:
10225
- $ref: "#/components/schemas/SquadDto"
10226
- responses:
10227
- "204":
10228
- description: Saved
10229
- "401":
10230
- $ref: "#/components/responses/Unauthorized"
10231
-
10232
- /workspaces/{workspaceId}/projects:
10233
- get:
10234
- tags: [SquadProjects]
10235
- summary: List projects
10236
- operationId: listProjects
10237
- parameters:
10238
- - $ref: "#/components/parameters/WorkspaceId"
10239
- responses:
10240
- "200":
10241
- description: Projects
10242
- content:
10243
- application/json:
10244
- schema:
10245
- type: array
10246
- items:
10247
- $ref: "#/components/schemas/ProjectDto"
10248
- "401":
10249
- $ref: "#/components/responses/Unauthorized"
10250
- post:
10251
- tags: [SquadProjects]
10252
- summary: Create project
10253
- operationId: createProject
10254
- parameters:
10255
- - $ref: "#/components/parameters/WorkspaceId"
10256
- requestBody:
10257
- required: true
10258
- content:
10259
- application/json:
10260
- schema:
10261
- $ref: "#/components/schemas/ProjectDto"
10262
- responses:
10263
- "200":
10264
- description: Created project
10265
- content:
10266
- application/json:
10267
- schema:
10268
- $ref: "#/components/schemas/ProjectDto"
10269
- "401":
10270
- $ref: "#/components/responses/Unauthorized"
10271
-
10272
- /workspaces/{workspaceId}/projects/{projectId}:
10273
- patch:
10274
- tags: [SquadProjects]
10275
- summary: Update project
10276
- operationId: patchProject
10277
- parameters:
10278
- - $ref: "#/components/parameters/WorkspaceId"
10279
- - $ref: "#/components/parameters/ProjectId"
10280
- requestBody:
10281
- required: true
10282
- content:
10283
- application/json:
10284
- schema:
10285
- $ref: "#/components/schemas/ProjectPatchDto"
10286
- responses:
10287
- "200":
10288
- description: Updated project
10289
- content:
10290
- application/json:
10291
- schema:
10292
- $ref: "#/components/schemas/ProjectDto"
10293
- "401":
10294
- $ref: "#/components/responses/Unauthorized"
10295
-
10296
10196
  /workspaces/{workspaceId}/code-chat/indexes:
10297
10197
  get:
10298
10198
  tags: [CodeChat]
@@ -14347,12 +14247,6 @@ components:
14347
14247
  maxLength: 512
14348
14248
  pattern: "^[^/]+/[^/]+$"
14349
14249
  example: thinkai-llc/thinkai-platform-backend
14350
- ProjectId:
14351
- name: projectId
14352
- in: path
14353
- required: true
14354
- schema:
14355
- type: string
14356
14250
  NotificationId:
14357
14251
  name: id
14358
14252
  in: path
@@ -23436,141 +23330,6 @@ components:
23436
23330
  branchName:
23437
23331
  type: string
23438
23332
 
23439
- PhaseRoleDto:
23440
- type: object
23441
- required: [phase, assignment]
23442
- properties:
23443
- phase:
23444
- type: string
23445
- assignment:
23446
- type: string
23447
- enum: [orchestrate, review, both, none]
23448
-
23449
- SquadMemberDto:
23450
- type: object
23451
- required: [id, role, roleLabel, description, count, phases]
23452
- properties:
23453
- id:
23454
- type: string
23455
- role:
23456
- type: string
23457
- roleLabel:
23458
- type: string
23459
- name:
23460
- type: string
23461
- description:
23462
- type: string
23463
- count:
23464
- type: integer
23465
- phases:
23466
- type: array
23467
- items:
23468
- $ref: "#/components/schemas/PhaseRoleDto"
23469
- custom:
23470
- type: boolean
23471
-
23472
- CustomWorkStreamTaskDto:
23473
- type: object
23474
- required: [id, name, summary]
23475
- properties:
23476
- id:
23477
- type: string
23478
- name:
23479
- type: string
23480
- summary:
23481
- type: string
23482
-
23483
- PhaseWorkStreamConfigDto:
23484
- type: object
23485
- properties:
23486
- deselectedCatalogIds:
23487
- type: array
23488
- items:
23489
- type: string
23490
- customTasks:
23491
- type: array
23492
- items:
23493
- $ref: "#/components/schemas/CustomWorkStreamTaskDto"
23494
-
23495
- SquadDto:
23496
- type: object
23497
- required: [members, hrConnected]
23498
- properties:
23499
- members:
23500
- type: array
23501
- items:
23502
- $ref: "#/components/schemas/SquadMemberDto"
23503
- hrConnected:
23504
- type: boolean
23505
- selectedPhases:
23506
- type: array
23507
- items:
23508
- type: string
23509
- phaseWorkStreams:
23510
- type: object
23511
- additionalProperties:
23512
- $ref: "#/components/schemas/PhaseWorkStreamConfigDto"
23513
-
23514
- WorkflowDto:
23515
- type: object
23516
- required: [id, name, kinds, typeDescription, roles]
23517
- properties:
23518
- id:
23519
- type: string
23520
- name:
23521
- type: string
23522
- kinds:
23523
- type: array
23524
- items:
23525
- type: string
23526
- enum: [greenfield, brownfield]
23527
- typeDescription:
23528
- type: string
23529
- roles:
23530
- type: array
23531
- items:
23532
- type: string
23533
-
23534
- ProjectDto:
23535
- type: object
23536
- required: [id, name, description, startDate, workflows, createdAt]
23537
- properties:
23538
- id:
23539
- type: string
23540
- name:
23541
- type: string
23542
- description:
23543
- type: string
23544
- startDate:
23545
- type: string
23546
- workflows:
23547
- type: array
23548
- items:
23549
- $ref: "#/components/schemas/WorkflowDto"
23550
- createdAt:
23551
- type: string
23552
- format: date-time
23553
-
23554
- ProjectPatchDto:
23555
- type: object
23556
- description: Partial update; all properties optional
23557
- properties:
23558
- id:
23559
- type: string
23560
- name:
23561
- type: string
23562
- description:
23563
- type: string
23564
- startDate:
23565
- type: string
23566
- workflows:
23567
- type: array
23568
- items:
23569
- $ref: "#/components/schemas/WorkflowDto"
23570
- createdAt:
23571
- type: string
23572
- format: date-time
23573
-
23574
23333
  PlatformBannerDto:
23575
23334
  type: object
23576
23335
  required: [id, kind, title, message, dismissible]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkai/tai-api-contract",
3
- "version": "2.193.0",
3
+ "version": "2.194.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -3696,59 +3696,6 @@ export interface paths {
3696
3696
  patch?: never;
3697
3697
  trace?: never;
3698
3698
  };
3699
- "/workspaces/{workspaceId}/squad": {
3700
- parameters: {
3701
- query?: never;
3702
- header?: never;
3703
- path?: never;
3704
- cookie?: never;
3705
- };
3706
- /** Get squad configuration */
3707
- get: operations["getSquad"];
3708
- /** Upsert squad */
3709
- put: operations["putSquad"];
3710
- post?: never;
3711
- delete?: never;
3712
- options?: never;
3713
- head?: never;
3714
- patch?: never;
3715
- trace?: never;
3716
- };
3717
- "/workspaces/{workspaceId}/projects": {
3718
- parameters: {
3719
- query?: never;
3720
- header?: never;
3721
- path?: never;
3722
- cookie?: never;
3723
- };
3724
- /** List projects */
3725
- get: operations["listProjects"];
3726
- put?: never;
3727
- /** Create project */
3728
- post: operations["createProject"];
3729
- delete?: never;
3730
- options?: never;
3731
- head?: never;
3732
- patch?: never;
3733
- trace?: never;
3734
- };
3735
- "/workspaces/{workspaceId}/projects/{projectId}": {
3736
- parameters: {
3737
- query?: never;
3738
- header?: never;
3739
- path?: never;
3740
- cookie?: never;
3741
- };
3742
- get?: never;
3743
- put?: never;
3744
- post?: never;
3745
- delete?: never;
3746
- options?: never;
3747
- head?: never;
3748
- /** Update project */
3749
- patch: operations["patchProject"];
3750
- trace?: never;
3751
- };
3752
3699
  "/workspaces/{workspaceId}/code-chat/indexes": {
3753
3700
  parameters: {
3754
3701
  query?: never;
@@ -9608,64 +9555,6 @@ export interface components {
9608
9555
  prNumber: number;
9609
9556
  branchName: string;
9610
9557
  };
9611
- PhaseRoleDto: {
9612
- phase: string;
9613
- /** @enum {string} */
9614
- assignment: "orchestrate" | "review" | "both" | "none";
9615
- };
9616
- SquadMemberDto: {
9617
- id: string;
9618
- role: string;
9619
- roleLabel: string;
9620
- name?: string;
9621
- description: string;
9622
- count: number;
9623
- phases: components["schemas"]["PhaseRoleDto"][];
9624
- custom?: boolean;
9625
- };
9626
- CustomWorkStreamTaskDto: {
9627
- id: string;
9628
- name: string;
9629
- summary: string;
9630
- };
9631
- PhaseWorkStreamConfigDto: {
9632
- deselectedCatalogIds?: string[];
9633
- customTasks?: components["schemas"]["CustomWorkStreamTaskDto"][];
9634
- };
9635
- SquadDto: {
9636
- members: components["schemas"]["SquadMemberDto"][];
9637
- hrConnected: boolean;
9638
- selectedPhases?: string[];
9639
- phaseWorkStreams?: {
9640
- [key: string]: components["schemas"]["PhaseWorkStreamConfigDto"];
9641
- };
9642
- };
9643
- WorkflowDto: {
9644
- id: string;
9645
- name: string;
9646
- kinds: ("greenfield" | "brownfield")[];
9647
- typeDescription: string;
9648
- roles: string[];
9649
- };
9650
- ProjectDto: {
9651
- id: string;
9652
- name: string;
9653
- description: string;
9654
- startDate: string;
9655
- workflows: components["schemas"]["WorkflowDto"][];
9656
- /** Format: date-time */
9657
- createdAt: string;
9658
- };
9659
- /** @description Partial update; all properties optional */
9660
- ProjectPatchDto: {
9661
- id?: string;
9662
- name?: string;
9663
- description?: string;
9664
- startDate?: string;
9665
- workflows?: components["schemas"]["WorkflowDto"][];
9666
- /** Format: date-time */
9667
- createdAt?: string;
9668
- };
9669
9558
  PlatformBannerDto: {
9670
9559
  /** @description Stable identifier used for dismiss persistence in the SPA. */
9671
9560
  id: string;
@@ -13104,7 +12993,6 @@ export interface components {
13104
12993
  RepoId: string;
13105
12994
  /** @description Provider repository slug in `owner/repo` form (GitHub). Used for shareable public URLs; resolves to the same row as `repoId` UUID internally. */
13106
12995
  ProviderSlug: string;
13107
- ProjectId: string;
13108
12996
  NotificationId: string;
13109
12997
  /** @description Workspace member user id (`tai_users.id`). */
13110
12998
  WorkspaceMemberId: string;
@@ -13517,14 +13405,6 @@ export type RulesSkillsCreateRequestDto = components['schemas']['RulesSkillsCrea
13517
13405
  export type RulesSkillsCreateResponseDto = components['schemas']['RulesSkillsCreateResponseDto'];
13518
13406
  export type RulesSkillsOpenPullRequestRequestDto = components['schemas']['RulesSkillsOpenPullRequestRequestDto'];
13519
13407
  export type RulesSkillsOpenPullRequestResponseDto = components['schemas']['RulesSkillsOpenPullRequestResponseDto'];
13520
- export type PhaseRoleDto = components['schemas']['PhaseRoleDto'];
13521
- export type SquadMemberDto = components['schemas']['SquadMemberDto'];
13522
- export type CustomWorkStreamTaskDto = components['schemas']['CustomWorkStreamTaskDto'];
13523
- export type PhaseWorkStreamConfigDto = components['schemas']['PhaseWorkStreamConfigDto'];
13524
- export type SquadDto = components['schemas']['SquadDto'];
13525
- export type WorkflowDto = components['schemas']['WorkflowDto'];
13526
- export type ProjectDto = components['schemas']['ProjectDto'];
13527
- export type ProjectPatchDto = components['schemas']['ProjectPatchDto'];
13528
13408
  export type PlatformBannerDto = components['schemas']['PlatformBannerDto'];
13529
13409
  export type PlatformBannerViewDto = components['schemas']['PlatformBannerViewDto'];
13530
13410
  export type PlatformBannerUpsertDto = components['schemas']['PlatformBannerUpsertDto'];
@@ -13856,7 +13736,6 @@ export type ParameterEvalPackId = components['parameters']['EvalPackId'];
13856
13736
  export type ParameterEvalRunId = components['parameters']['EvalRunId'];
13857
13737
  export type ParameterRepoId = components['parameters']['RepoId'];
13858
13738
  export type ParameterProviderSlug = components['parameters']['ProviderSlug'];
13859
- export type ParameterProjectId = components['parameters']['ProjectId'];
13860
13739
  export type ParameterNotificationId = components['parameters']['NotificationId'];
13861
13740
  export type ParameterWorkspaceMemberId = components['parameters']['WorkspaceMemberId'];
13862
13741
  export type ParameterWorkspaceInvitationToken = components['parameters']['WorkspaceInvitationToken'];
@@ -24131,132 +24010,6 @@ export interface operations {
24131
24010
  403: components["responses"]["Forbidden"];
24132
24011
  };
24133
24012
  };
24134
- getSquad: {
24135
- parameters: {
24136
- query?: never;
24137
- header?: never;
24138
- path: {
24139
- workspaceId: components["parameters"]["WorkspaceId"];
24140
- };
24141
- cookie?: never;
24142
- };
24143
- requestBody?: never;
24144
- responses: {
24145
- /** @description Squad */
24146
- 200: {
24147
- headers: {
24148
- [name: string]: unknown;
24149
- };
24150
- content: {
24151
- "application/json": components["schemas"]["SquadDto"];
24152
- };
24153
- };
24154
- 401: components["responses"]["Unauthorized"];
24155
- };
24156
- };
24157
- putSquad: {
24158
- parameters: {
24159
- query?: never;
24160
- header?: never;
24161
- path: {
24162
- workspaceId: components["parameters"]["WorkspaceId"];
24163
- };
24164
- cookie?: never;
24165
- };
24166
- requestBody: {
24167
- content: {
24168
- "application/json": components["schemas"]["SquadDto"];
24169
- };
24170
- };
24171
- responses: {
24172
- /** @description Saved */
24173
- 204: {
24174
- headers: {
24175
- [name: string]: unknown;
24176
- };
24177
- content?: never;
24178
- };
24179
- 401: components["responses"]["Unauthorized"];
24180
- };
24181
- };
24182
- listProjects: {
24183
- parameters: {
24184
- query?: never;
24185
- header?: never;
24186
- path: {
24187
- workspaceId: components["parameters"]["WorkspaceId"];
24188
- };
24189
- cookie?: never;
24190
- };
24191
- requestBody?: never;
24192
- responses: {
24193
- /** @description Projects */
24194
- 200: {
24195
- headers: {
24196
- [name: string]: unknown;
24197
- };
24198
- content: {
24199
- "application/json": components["schemas"]["ProjectDto"][];
24200
- };
24201
- };
24202
- 401: components["responses"]["Unauthorized"];
24203
- };
24204
- };
24205
- createProject: {
24206
- parameters: {
24207
- query?: never;
24208
- header?: never;
24209
- path: {
24210
- workspaceId: components["parameters"]["WorkspaceId"];
24211
- };
24212
- cookie?: never;
24213
- };
24214
- requestBody: {
24215
- content: {
24216
- "application/json": components["schemas"]["ProjectDto"];
24217
- };
24218
- };
24219
- responses: {
24220
- /** @description Created project */
24221
- 200: {
24222
- headers: {
24223
- [name: string]: unknown;
24224
- };
24225
- content: {
24226
- "application/json": components["schemas"]["ProjectDto"];
24227
- };
24228
- };
24229
- 401: components["responses"]["Unauthorized"];
24230
- };
24231
- };
24232
- patchProject: {
24233
- parameters: {
24234
- query?: never;
24235
- header?: never;
24236
- path: {
24237
- workspaceId: components["parameters"]["WorkspaceId"];
24238
- projectId: components["parameters"]["ProjectId"];
24239
- };
24240
- cookie?: never;
24241
- };
24242
- requestBody: {
24243
- content: {
24244
- "application/json": components["schemas"]["ProjectPatchDto"];
24245
- };
24246
- };
24247
- responses: {
24248
- /** @description Updated project */
24249
- 200: {
24250
- headers: {
24251
- [name: string]: unknown;
24252
- };
24253
- content: {
24254
- "application/json": components["schemas"]["ProjectDto"];
24255
- };
24256
- };
24257
- 401: components["responses"]["Unauthorized"];
24258
- };
24259
- };
24260
24013
  listCodeChatIndexes: {
24261
24014
  parameters: {
24262
24015
  query?: never;