@thinkai/tai-api-contract 2.219.0 → 2.221.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.219.0
4
+ version: 2.221.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}/...`.
@@ -2545,6 +2545,207 @@ paths:
2545
2545
  schema:
2546
2546
  $ref: "#/components/schemas/ErrorMessageDto"
2547
2547
 
2548
+ /workspaces/{workspaceId}/pm-mappings/suggestions:
2549
+ get:
2550
+ tags: [Workspace]
2551
+ summary: Suggest org-team ↔ PM entity mappings
2552
+ description: >
2553
+ Returns name/key-matched suggestions between org-chart teams and connected PM
2554
+ entities (Jira projects, Linear teams, GitHub Issues repositories, Azure Boards
2555
+ teams). Soft-fails per provider when a source is missing or unreachable.
2556
+ ADR 004 / workspace #629.
2557
+ operationId: listPmMappingSuggestions
2558
+ parameters:
2559
+ - $ref: "#/components/parameters/WorkspaceId"
2560
+ responses:
2561
+ "200":
2562
+ description: Mapping suggestions
2563
+ content:
2564
+ application/json:
2565
+ schema:
2566
+ type: object
2567
+ required: [suggestions]
2568
+ additionalProperties: false
2569
+ properties:
2570
+ suggestions:
2571
+ type: array
2572
+ items:
2573
+ $ref: "#/components/schemas/PmMappingSuggestionDto"
2574
+ "401":
2575
+ $ref: "#/components/responses/Unauthorized"
2576
+ "403":
2577
+ $ref: "#/components/responses/Forbidden"
2578
+
2579
+ /workspaces/{workspaceId}/org-chart/teams/{teamId}/pm-mappings:
2580
+ get:
2581
+ tags: [Workspace]
2582
+ summary: List PM mappings for an org-chart team
2583
+ operationId: listOrgTeamPmMappings
2584
+ parameters:
2585
+ - $ref: "#/components/parameters/WorkspaceId"
2586
+ - name: teamId
2587
+ in: path
2588
+ required: true
2589
+ schema:
2590
+ type: string
2591
+ minLength: 1
2592
+ maxLength: 200
2593
+ description: Org-chart team node id.
2594
+ responses:
2595
+ "200":
2596
+ description: Mappings for the team
2597
+ content:
2598
+ application/json:
2599
+ schema:
2600
+ $ref: "#/components/schemas/PmTeamMappingsListDto"
2601
+ "401":
2602
+ $ref: "#/components/responses/Unauthorized"
2603
+ "403":
2604
+ $ref: "#/components/responses/Forbidden"
2605
+ put:
2606
+ tags: [Workspace]
2607
+ summary: Confirm PM mappings for an org-chart team
2608
+ description: >
2609
+ Replaces confirmed PM entity mappings for this org team. Prior confirmed rows for
2610
+ the team are marked inactive. Requires editor or admin workspace role.
2611
+ operationId: putOrgTeamPmMappings
2612
+ parameters:
2613
+ - $ref: "#/components/parameters/WorkspaceId"
2614
+ - name: teamId
2615
+ in: path
2616
+ required: true
2617
+ schema:
2618
+ type: string
2619
+ minLength: 1
2620
+ maxLength: 200
2621
+ description: Org-chart team node id.
2622
+ requestBody:
2623
+ required: true
2624
+ content:
2625
+ application/json:
2626
+ schema:
2627
+ $ref: "#/components/schemas/PmTeamMappingsPutDto"
2628
+ responses:
2629
+ "200":
2630
+ description: Updated mappings for the team
2631
+ content:
2632
+ application/json:
2633
+ schema:
2634
+ $ref: "#/components/schemas/PmTeamMappingsListDto"
2635
+ "400":
2636
+ description: Invalid request body
2637
+ content:
2638
+ application/json:
2639
+ schema:
2640
+ $ref: "#/components/schemas/ErrorMessageDto"
2641
+ "401":
2642
+ $ref: "#/components/responses/Unauthorized"
2643
+ "403":
2644
+ $ref: "#/components/responses/Forbidden"
2645
+ "409":
2646
+ description: >
2647
+ PM entity is already confirmed for a different org team
2648
+ (`code: pm_entity_already_mapped`).
2649
+ content:
2650
+ application/json:
2651
+ schema:
2652
+ $ref: "#/components/schemas/ErrorMessageDto"
2653
+
2654
+ /workspaces/{workspaceId}/pm-link-gaps:
2655
+ get:
2656
+ tags: [Workspace]
2657
+ summary: List ticket↔PR links missing a PM tool link
2658
+ description: >
2659
+ Returns ticket↔PR associations known only via derived issue keys (`link_source=derived`),
2660
+ not an authoritative PM tool remote link. Used for admin gap surfacing (ADR 004).
2661
+ operationId: listPmLinkGaps
2662
+ parameters:
2663
+ - $ref: "#/components/parameters/WorkspaceId"
2664
+ responses:
2665
+ "200":
2666
+ description: Derived-only ticket↔PR gaps
2667
+ content:
2668
+ application/json:
2669
+ schema:
2670
+ $ref: "#/components/schemas/PmLinkGapsDto"
2671
+ "401":
2672
+ $ref: "#/components/responses/Unauthorized"
2673
+ "403":
2674
+ $ref: "#/components/responses/Forbidden"
2675
+
2676
+ /workspaces/{workspaceId}/business-projects:
2677
+ get:
2678
+ tags: [Workspace]
2679
+ summary: List business projects
2680
+ operationId: listBusinessProjects
2681
+ parameters:
2682
+ - $ref: "#/components/parameters/WorkspaceId"
2683
+ responses:
2684
+ "200":
2685
+ description: Business projects for the workspace
2686
+ content:
2687
+ application/json:
2688
+ schema:
2689
+ $ref: "#/components/schemas/BusinessProjectsListDto"
2690
+ "401":
2691
+ $ref: "#/components/responses/Unauthorized"
2692
+ "403":
2693
+ $ref: "#/components/responses/Forbidden"
2694
+ post:
2695
+ tags: [Workspace]
2696
+ summary: Create or upsert a business project
2697
+ description: >
2698
+ Upserts by workspace + slug. Requires editor or admin workspace role.
2699
+ operationId: postBusinessProject
2700
+ parameters:
2701
+ - $ref: "#/components/parameters/WorkspaceId"
2702
+ requestBody:
2703
+ required: true
2704
+ content:
2705
+ application/json:
2706
+ schema:
2707
+ $ref: "#/components/schemas/BusinessProjectDto"
2708
+ responses:
2709
+ "200":
2710
+ description: Upserted business project
2711
+ content:
2712
+ application/json:
2713
+ schema:
2714
+ $ref: "#/components/schemas/BusinessProjectDto"
2715
+ "400":
2716
+ description: Invalid request body
2717
+ content:
2718
+ application/json:
2719
+ schema:
2720
+ $ref: "#/components/schemas/ErrorMessageDto"
2721
+ "401":
2722
+ $ref: "#/components/responses/Unauthorized"
2723
+ "403":
2724
+ $ref: "#/components/responses/Forbidden"
2725
+
2726
+ /workspaces/{workspaceId}/insights/pm-roi:
2727
+ get:
2728
+ tags: [Insights]
2729
+ summary: PM-attributed ROI
2730
+ description: >
2731
+ Ticket/project-attributed AI ROI from confirmed PM mappings and ticket↔PR links
2732
+ (ADR 004). `available` is false when there are no confirmed mappings or no
2733
+ tool-linked PRs; breakdowns by org team and business project are included when mapped.
2734
+ operationId: getInsightsPmRoi
2735
+ parameters:
2736
+ - $ref: "#/components/parameters/WorkspaceId"
2737
+ responses:
2738
+ "200":
2739
+ description: PM ROI payload (empty metrics when unavailable)
2740
+ content:
2741
+ application/json:
2742
+ schema:
2743
+ $ref: "#/components/schemas/PmRoiDto"
2744
+ "401":
2745
+ $ref: "#/components/responses/Unauthorized"
2746
+ "403":
2747
+ $ref: "#/components/responses/Forbidden"
2748
+
2548
2749
  /workspaces/{workspaceId}/config:
2549
2750
  get:
2550
2751
  tags: [TechStack]
@@ -3427,6 +3628,8 @@ paths:
3427
3628
  - $ref: "#/components/schemas/SentrySourceDto"
3428
3629
  - $ref: "#/components/schemas/JiraSourceDto"
3429
3630
  - $ref: "#/components/schemas/LinearSourceDto"
3631
+ - $ref: "#/components/schemas/GitHubIssuesSourceDto"
3632
+ - $ref: "#/components/schemas/AzureBoardsSourceDto"
3430
3633
  - $ref: "#/components/schemas/TenantSourceEntryDto"
3431
3634
  examples:
3432
3635
  cursorAndJira:
@@ -3567,6 +3770,8 @@ paths:
3567
3770
  - $ref: "#/components/schemas/SentrySourceDto"
3568
3771
  - $ref: "#/components/schemas/JiraSourceDto"
3569
3772
  - $ref: "#/components/schemas/LinearSourceDto"
3773
+ - $ref: "#/components/schemas/GitHubIssuesSourceDto"
3774
+ - $ref: "#/components/schemas/AzureBoardsSourceDto"
3570
3775
  - $ref: "#/components/schemas/TenantSourceEntryDto"
3571
3776
  examples:
3572
3777
  cursorValid:
@@ -11500,11 +11705,17 @@ paths:
11500
11705
  $ref: "#/components/schemas/CodeChatPostMessageBodyDto"
11501
11706
  responses:
11502
11707
  "200":
11503
- description: Assistant message
11708
+ description: >
11709
+ Assistant message. With `stream: true` the body is `text/event-stream`:
11710
+ `event: stage` (`{ stage, detail? }`), `event: token` (`{ text }`),
11711
+ `event: done` (CodeChatMessageReplyDto), or `event: error` (`{ error, code }`).
11504
11712
  content:
11505
11713
  application/json:
11506
11714
  schema:
11507
11715
  $ref: "#/components/schemas/CodeChatMessageReplyDto"
11716
+ text/event-stream:
11717
+ schema:
11718
+ type: string
11508
11719
  "401":
11509
11720
  $ref: "#/components/responses/Unauthorized"
11510
11721
  "403":
@@ -12326,6 +12537,39 @@ paths:
12326
12537
  "409":
12327
12538
  description: Corpus not ready
12328
12539
 
12540
+ /workspaces/{workspaceId}/code-chat/tools/ask:
12541
+ post:
12542
+ tags: [CodeChat]
12543
+ summary: MCP/agent tool — grounded Ask answer with citations
12544
+ description: >
12545
+ Read-only. Runs the same Ask pipeline as Conversations for the repos in `repoIds`
12546
+ (every ready repo when `repoIds` is omitted). Does not edit files or open pull requests.
12547
+ The answer is `result.content` with `result.citations`. Other graph tools, when given
12548
+ more than one repo, return the same rows as a single repo plus `repoId` and `repoName`.
12549
+ operationId: codeChatAskTool
12550
+ x-test-coverage-skip: covered by code-context MCP unit tests
12551
+ parameters:
12552
+ - $ref: "#/components/parameters/WorkspaceId"
12553
+ requestBody:
12554
+ required: true
12555
+ content:
12556
+ application/json:
12557
+ schema:
12558
+ $ref: "#/components/schemas/CodeChatAskToolBodyDto"
12559
+ responses:
12560
+ "200":
12561
+ description: Grounded answer
12562
+ content:
12563
+ application/json:
12564
+ schema:
12565
+ $ref: "#/components/schemas/CodeChatAskToolResponseDto"
12566
+ "400":
12567
+ description: Missing or oversized question
12568
+ "401":
12569
+ $ref: "#/components/responses/Unauthorized"
12570
+ "409":
12571
+ description: Corpus not ready
12572
+
12329
12573
  /notifications/email/unsubscribe:
12330
12574
  get:
12331
12575
  tags: [Notifications]
@@ -16969,6 +17213,312 @@ components:
16969
17213
  items:
16970
17214
  $ref: "#/components/schemas/SonarQubeRepoMappingValidateRowDto"
16971
17215
 
17216
+ PmProvider:
17217
+ type: string
17218
+ enum: [jira, linear, github_issues, azure_boards]
17219
+ description: Project-management connector used for team mapping and ticket↔PR links.
17220
+
17221
+ PmTeamMappingDto:
17222
+ type: object
17223
+ required:
17224
+ [
17225
+ id,
17226
+ workspaceId,
17227
+ orgTeamId,
17228
+ provider,
17229
+ pmEntityType,
17230
+ pmEntityId,
17231
+ status,
17232
+ suggestedAt,
17233
+ updatedAt,
17234
+ ]
17235
+ additionalProperties: false
17236
+ properties:
17237
+ id:
17238
+ type: string
17239
+ format: uuid
17240
+ workspaceId:
17241
+ type: string
17242
+ format: uuid
17243
+ orgTeamId:
17244
+ type: string
17245
+ minLength: 1
17246
+ maxLength: 200
17247
+ provider:
17248
+ $ref: "#/components/schemas/PmProvider"
17249
+ pmEntityType:
17250
+ type: string
17251
+ minLength: 1
17252
+ maxLength: 64
17253
+ description: e.g. `project` (Jira), `team` (Linear).
17254
+ pmEntityId:
17255
+ type: string
17256
+ minLength: 1
17257
+ maxLength: 400
17258
+ pmEntityKey:
17259
+ type: string
17260
+ nullable: true
17261
+ maxLength: 400
17262
+ pmEntityName:
17263
+ type: string
17264
+ nullable: true
17265
+ maxLength: 400
17266
+ status:
17267
+ type: string
17268
+ enum: [suggested, confirmed, inactive]
17269
+ suggestedAt:
17270
+ type: string
17271
+ format: date-time
17272
+ confirmedAt:
17273
+ type: string
17274
+ format: date-time
17275
+ nullable: true
17276
+ updatedAt:
17277
+ type: string
17278
+ format: date-time
17279
+
17280
+ PmTeamMappingsListDto:
17281
+ type: object
17282
+ required: [mappings]
17283
+ additionalProperties: false
17284
+ properties:
17285
+ mappings:
17286
+ type: array
17287
+ items:
17288
+ $ref: "#/components/schemas/PmTeamMappingDto"
17289
+
17290
+ PmTeamMappingsPutDto:
17291
+ type: object
17292
+ required: [mappings]
17293
+ additionalProperties: false
17294
+ properties:
17295
+ mappings:
17296
+ type: array
17297
+ items:
17298
+ type: object
17299
+ required: [provider, pmEntityType, pmEntityId]
17300
+ additionalProperties: false
17301
+ properties:
17302
+ provider:
17303
+ $ref: "#/components/schemas/PmProvider"
17304
+ pmEntityType:
17305
+ type: string
17306
+ minLength: 1
17307
+ maxLength: 64
17308
+ pmEntityId:
17309
+ type: string
17310
+ minLength: 1
17311
+ maxLength: 400
17312
+ pmEntityKey:
17313
+ type: string
17314
+ nullable: true
17315
+ maxLength: 400
17316
+ pmEntityName:
17317
+ type: string
17318
+ nullable: true
17319
+ maxLength: 400
17320
+
17321
+ PmMappingSuggestionDto:
17322
+ type: object
17323
+ required: [orgTeamId, orgTeamName, provider, pmEntityType, pmEntityId, confidence]
17324
+ additionalProperties: false
17325
+ properties:
17326
+ orgTeamId:
17327
+ type: string
17328
+ orgTeamName:
17329
+ type: string
17330
+ provider:
17331
+ $ref: "#/components/schemas/PmProvider"
17332
+ pmEntityType:
17333
+ type: string
17334
+ pmEntityId:
17335
+ type: string
17336
+ pmEntityKey:
17337
+ type: string
17338
+ nullable: true
17339
+ pmEntityName:
17340
+ type: string
17341
+ nullable: true
17342
+ confidence:
17343
+ type: string
17344
+ enum: [exact, normalized]
17345
+ description: Match quality between org team name and PM entity name/key.
17346
+
17347
+ PmLinkGapDto:
17348
+ type: object
17349
+ required: [pmProvider, ticketKey, scmProvider, scmRepo, prNumber, linkSource, updatedAt]
17350
+ additionalProperties: false
17351
+ properties:
17352
+ pmProvider:
17353
+ $ref: "#/components/schemas/PmProvider"
17354
+ ticketKey:
17355
+ type: string
17356
+ ticketId:
17357
+ type: string
17358
+ nullable: true
17359
+ scmProvider:
17360
+ type: string
17361
+ enum: [github, gitlab, bitbucket]
17362
+ scmOwner:
17363
+ type: string
17364
+ nullable: true
17365
+ scmRepo:
17366
+ type: string
17367
+ prNumber:
17368
+ type: integer
17369
+ minimum: 1
17370
+ prUrl:
17371
+ type: string
17372
+ nullable: true
17373
+ linkSource:
17374
+ type: string
17375
+ enum: [derived]
17376
+ orgTeamId:
17377
+ type: string
17378
+ nullable: true
17379
+ updatedAt:
17380
+ type: string
17381
+ format: date-time
17382
+
17383
+ PmLinkGapsDto:
17384
+ type: object
17385
+ required: [gaps]
17386
+ additionalProperties: false
17387
+ properties:
17388
+ gaps:
17389
+ type: array
17390
+ items:
17391
+ $ref: "#/components/schemas/PmLinkGapDto"
17392
+
17393
+ BusinessProjectDto:
17394
+ type: object
17395
+ required: [name, slug]
17396
+ additionalProperties: false
17397
+ properties:
17398
+ id:
17399
+ type: string
17400
+ format: uuid
17401
+ description: Present on responses; optional on create (server assigns).
17402
+ workspaceId:
17403
+ type: string
17404
+ format: uuid
17405
+ name:
17406
+ type: string
17407
+ minLength: 1
17408
+ maxLength: 400
17409
+ slug:
17410
+ type: string
17411
+ minLength: 1
17412
+ maxLength: 200
17413
+ pmProvider:
17414
+ allOf:
17415
+ - $ref: "#/components/schemas/PmProvider"
17416
+ nullable: true
17417
+ pmEntityType:
17418
+ type: string
17419
+ nullable: true
17420
+ maxLength: 64
17421
+ pmEntityId:
17422
+ type: string
17423
+ nullable: true
17424
+ maxLength: 400
17425
+ pmEntityKey:
17426
+ type: string
17427
+ nullable: true
17428
+ maxLength: 400
17429
+ orgTeamId:
17430
+ type: string
17431
+ nullable: true
17432
+ maxLength: 200
17433
+ source:
17434
+ type: string
17435
+ enum: [mirrored, override, manual]
17436
+ status:
17437
+ type: string
17438
+ enum: [active, archived]
17439
+ createdAt:
17440
+ type: string
17441
+ format: date-time
17442
+ updatedAt:
17443
+ type: string
17444
+ format: date-time
17445
+
17446
+ BusinessProjectsListDto:
17447
+ type: object
17448
+ required: [projects]
17449
+ additionalProperties: false
17450
+ properties:
17451
+ projects:
17452
+ type: array
17453
+ items:
17454
+ $ref: "#/components/schemas/BusinessProjectDto"
17455
+
17456
+ PmRoiDto:
17457
+ type: object
17458
+ required: [workspaceId, available, metrics, byOrgTeam, byBusinessProject]
17459
+ additionalProperties: false
17460
+ description: >
17461
+ PM-attributed ROI from confirmed mappings and ticket↔PR links (ADR 004).
17462
+ Empty breakdowns and `available: false` when no tool-linked PRs / mappings.
17463
+ properties:
17464
+ workspaceId:
17465
+ type: string
17466
+ format: uuid
17467
+ available:
17468
+ type: boolean
17469
+ description: True when at least one confirmed mapping and one tool-linked PR exist.
17470
+ metrics:
17471
+ type: object
17472
+ additionalProperties: false
17473
+ required: [mappedTeamCount, toolLinkedPrCount, gapCount, attributedSpendUsd]
17474
+ properties:
17475
+ mappedTeamCount:
17476
+ type: integer
17477
+ minimum: 0
17478
+ toolLinkedPrCount:
17479
+ type: integer
17480
+ minimum: 0
17481
+ gapCount:
17482
+ type: integer
17483
+ minimum: 0
17484
+ attributedSpendUsd:
17485
+ type: number
17486
+ nullable: true
17487
+ byOrgTeam:
17488
+ type: array
17489
+ items:
17490
+ type: object
17491
+ additionalProperties: false
17492
+ required: [orgTeamId, toolLinkedPrCount, attributedSpendUsd]
17493
+ properties:
17494
+ orgTeamId:
17495
+ type: string
17496
+ toolLinkedPrCount:
17497
+ type: integer
17498
+ minimum: 0
17499
+ attributedSpendUsd:
17500
+ type: number
17501
+ nullable: true
17502
+ byBusinessProject:
17503
+ type: array
17504
+ items:
17505
+ type: object
17506
+ additionalProperties: false
17507
+ required: [businessProjectId, toolLinkedPrCount, attributedSpendUsd]
17508
+ properties:
17509
+ businessProjectId:
17510
+ type: string
17511
+ format: uuid
17512
+ name:
17513
+ type: string
17514
+ nullable: true
17515
+ toolLinkedPrCount:
17516
+ type: integer
17517
+ minimum: 0
17518
+ attributedSpendUsd:
17519
+ type: number
17520
+ nullable: true
17521
+
16972
17522
  PagerDutySourceDto:
16973
17523
  type: object
16974
17524
  description: >
@@ -17674,6 +18224,104 @@ components:
17674
18224
  type: string
17675
18225
  description: Linear workspace URL when known from the last successful verify.
17676
18226
 
18227
+ GitHubIssuesSourceDto:
18228
+ type: object
18229
+ description: >
18230
+ GitHub Issues PM source for `PUT /workspaces/{workspaceId}/sources` and
18231
+ `POST /workspaces/{workspaceId}/sources/test`. Uses a GitHub PAT (or fine-grained
18232
+ token) with issues read access. Optional `repos` limits ingestion to listed
18233
+ `owner/repo` slugs (comma-separated string or array).
18234
+ required: [type, token]
18235
+ additionalProperties: false
18236
+ properties:
18237
+ type:
18238
+ type: string
18239
+ enum: [github_issues]
18240
+ token:
18241
+ type: string
18242
+ minLength: 1
18243
+ maxLength: 512
18244
+ description: GitHub PAT / token (write-only on PUT).
18245
+ repos:
18246
+ description: Optional repo filter (`owner/repo` CSV string or array).
18247
+ oneOf:
18248
+ - type: string
18249
+ maxLength: 2000
18250
+ - type: array
18251
+ items:
18252
+ type: string
18253
+ minLength: 1
18254
+ maxLength: 200
18255
+
18256
+ GitHubIssuesSourceConfigDto:
18257
+ type: object
18258
+ description: >
18259
+ Redacted GitHub Issues source returned by `GET /workspaces/{workspaceId}/config`.
18260
+ Raw token is never returned.
18261
+ required: [type, hasToken]
18262
+ additionalProperties: false
18263
+ properties:
18264
+ type:
18265
+ type: string
18266
+ enum: [github_issues]
18267
+ hasToken:
18268
+ type: boolean
18269
+ description: Whether a GitHub token is stored for this workspace.
18270
+ repos:
18271
+ description: Configured repo filter when set.
18272
+ oneOf:
18273
+ - type: string
18274
+ - type: array
18275
+ items:
18276
+ type: string
18277
+
18278
+ AzureBoardsSourceDto:
18279
+ type: object
18280
+ description: >
18281
+ Azure Boards PM source for `PUT /workspaces/{workspaceId}/sources` and
18282
+ `POST /workspaces/{workspaceId}/sources/test`. Requires organization URL, project
18283
+ name, and a personal access token (PAT).
18284
+ required: [type, orgUrl, project, pat]
18285
+ additionalProperties: false
18286
+ properties:
18287
+ type:
18288
+ type: string
18289
+ enum: [azure_boards]
18290
+ orgUrl:
18291
+ type: string
18292
+ minLength: 1
18293
+ description: Azure DevOps organization URL (e.g. `https://dev.azure.com/acme`).
18294
+ project:
18295
+ type: string
18296
+ minLength: 1
18297
+ description: Azure DevOps project name.
18298
+ pat:
18299
+ type: string
18300
+ minLength: 1
18301
+ maxLength: 512
18302
+ description: Azure DevOps personal access token (write-only on PUT).
18303
+
18304
+ AzureBoardsSourceConfigDto:
18305
+ type: object
18306
+ description: >
18307
+ Redacted Azure Boards source returned by `GET /workspaces/{workspaceId}/config`.
18308
+ Raw PAT is never returned.
18309
+ required: [type, hasToken, orgUrl, project]
18310
+ additionalProperties: false
18311
+ properties:
18312
+ type:
18313
+ type: string
18314
+ enum: [azure_boards]
18315
+ hasToken:
18316
+ type: boolean
18317
+ description: Whether a PAT is stored for this workspace.
18318
+ orgUrl:
18319
+ type: string
18320
+ description: Configured Azure DevOps organization URL.
18321
+ project:
18322
+ type: string
18323
+ description: Configured Azure DevOps project name.
18324
+
17677
18325
  AgentExecutionProviderDto:
17678
18326
  type: string
17679
18327
  description: >
@@ -17939,6 +18587,8 @@ components:
17939
18587
  - $ref: "#/components/schemas/SentrySourceConfigDto"
17940
18588
  - $ref: "#/components/schemas/JiraSourceConfigDto"
17941
18589
  - $ref: "#/components/schemas/LinearSourceConfigDto"
18590
+ - $ref: "#/components/schemas/GitHubIssuesSourceConfigDto"
18591
+ - $ref: "#/components/schemas/AzureBoardsSourceConfigDto"
17942
18592
  - $ref: "#/components/schemas/TenantSourceEntryDto"
17943
18593
  orgChart:
17944
18594
  nullable: true
@@ -30122,6 +30772,21 @@ components:
30122
30772
  maxItems: 5
30123
30773
  items: { type: string, format: uuid }
30124
30774
  description: Previously uploaded attachment ids to bind to this user turn
30775
+ focusWikiSlug:
30776
+ type: string
30777
+ maxLength: 200
30778
+ description: >
30779
+ Slug of the wiki page the user has open. Prepended to Ask wiki context when the
30780
+ question is relevant to it or refers to it deictically ("explain this page").
30781
+ focusWikiRepoId:
30782
+ type: string
30783
+ format: uuid
30784
+ description: Repository of `focusWikiSlug` (slugs such as `overview` repeat across repos).
30785
+ stream:
30786
+ type: boolean
30787
+ description: >
30788
+ When true the server replies with `text/event-stream` (`stage`, `token`, `done`,
30789
+ `error` events). The `done` event carries the same JSON as the non-streaming 200 body.
30125
30790
 
30126
30791
  CodeChatUploadAttachmentBodyDto:
30127
30792
  type: object
@@ -31323,6 +31988,39 @@ components:
31323
31988
  type: array
31324
31989
  items: { type: string, format: uuid }
31325
31990
 
31991
+ CodeChatAskToolBodyDto:
31992
+ type: object
31993
+ required: [question]
31994
+ properties:
31995
+ question: { type: string, maxLength: 4000 }
31996
+ repoIds:
31997
+ type: array
31998
+ items: { type: string, format: uuid }
31999
+
32000
+ CodeChatAskToolResponseDto:
32001
+ type: object
32002
+ required: [tool, result]
32003
+ properties:
32004
+ tool: { type: string, enum: [ask] }
32005
+ note: { type: string }
32006
+ scanned:
32007
+ type: array
32008
+ items:
32009
+ type: object
32010
+ additionalProperties: true
32011
+ result:
32012
+ type: object
32013
+ required: [content, citations, mode]
32014
+ properties:
32015
+ content: { type: string }
32016
+ mode: { type: string }
32017
+ intent: { type: string }
32018
+ citations:
32019
+ type: array
32020
+ items:
32021
+ type: object
32022
+ additionalProperties: true
32023
+
31326
32024
  CodeChatContextPackDto:
31327
32025
  type: object
31328
32026
  required: [summary, symbols, references, citations, snippets]