@thinkai/tai-api-contract 2.220.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.
@@ -1,7 +1,7 @@
1
1
  openapi: 3.0.3
2
2
  info:
3
3
  title: ThinkAI API
4
- version: 2.220.0
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}/...`.
@@ -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:
@@ -11226,6 +11431,88 @@ paths:
11226
11431
  error: Code Intelligence is disabled for this workspace
11227
11432
  code: code_intelligence_disabled
11228
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
+
11229
11516
  /workspaces/{workspaceId}/code-chat/attachments:
11230
11517
  post:
11231
11518
  tags: [CodeChat]
@@ -17008,36 +17295,342 @@ components:
17008
17295
  items:
17009
17296
  $ref: "#/components/schemas/SonarQubeRepoMappingValidateRowDto"
17010
17297
 
17011
- PagerDutySourceDto:
17298
+ PmProvider:
17299
+ type: string
17300
+ enum: [jira, linear, github_issues, azure_boards]
17301
+ description: Project-management connector used for team mapping and ticket↔PR links.
17302
+
17303
+ PmTeamMappingDto:
17012
17304
  type: object
17013
- description: >
17014
- PagerDuty incident monitoring source for `PUT /workspaces/{workspaceId}/sources` and
17015
- `POST /workspaces/{workspaceId}/sources/test`. Requires a REST API v2 token
17016
- (an "API Access Key" from PagerDuty → **Integrations → API Access Keys**).
17017
- required: [type, token]
17305
+ required:
17306
+ [
17307
+ id,
17308
+ workspaceId,
17309
+ orgTeamId,
17310
+ provider,
17311
+ pmEntityType,
17312
+ pmEntityId,
17313
+ status,
17314
+ suggestedAt,
17315
+ updatedAt,
17316
+ ]
17018
17317
  additionalProperties: false
17019
17318
  properties:
17020
- type:
17319
+ id:
17021
17320
  type: string
17022
- enum: [pagerduty]
17023
- token:
17321
+ format: uuid
17322
+ workspaceId:
17323
+ type: string
17324
+ format: uuid
17325
+ orgTeamId:
17024
17326
  type: string
17025
17327
  minLength: 1
17026
- maxLength: 512
17027
- description: PagerDuty REST API v2 token (API Access Key, write-only on PUT).
17028
- baseUrl:
17328
+ maxLength: 200
17329
+ provider:
17330
+ $ref: "#/components/schemas/PmProvider"
17331
+ pmEntityType:
17029
17332
  type: string
17030
- description: Optional API base URL override. Default `https://api.pagerduty.com`.
17031
- userName:
17333
+ minLength: 1
17334
+ maxLength: 64
17335
+ description: e.g. `project` (Jira), `team` (Linear).
17336
+ pmEntityId:
17032
17337
  type: string
17033
- description: Optional display name from a successful connection test (echo-after-test).
17034
- userEmail:
17338
+ minLength: 1
17339
+ maxLength: 400
17340
+ pmEntityKey:
17035
17341
  type: string
17036
- description: Optional email from a successful connection test (echo-after-test).
17342
+ nullable: true
17343
+ maxLength: 400
17344
+ pmEntityName:
17345
+ type: string
17346
+ nullable: true
17347
+ maxLength: 400
17348
+ status:
17349
+ type: string
17350
+ enum: [suggested, confirmed, inactive]
17351
+ suggestedAt:
17352
+ type: string
17353
+ format: date-time
17354
+ confirmedAt:
17355
+ type: string
17356
+ format: date-time
17357
+ nullable: true
17358
+ updatedAt:
17359
+ type: string
17360
+ format: date-time
17037
17361
 
17038
- PagerDutySourceConfigDto:
17362
+ PmTeamMappingsListDto:
17039
17363
  type: object
17040
- description: >
17364
+ required: [mappings]
17365
+ additionalProperties: false
17366
+ properties:
17367
+ mappings:
17368
+ type: array
17369
+ items:
17370
+ $ref: "#/components/schemas/PmTeamMappingDto"
17371
+
17372
+ PmTeamMappingsPutDto:
17373
+ type: object
17374
+ required: [mappings]
17375
+ additionalProperties: false
17376
+ properties:
17377
+ mappings:
17378
+ type: array
17379
+ items:
17380
+ type: object
17381
+ required: [provider, pmEntityType, pmEntityId]
17382
+ additionalProperties: false
17383
+ properties:
17384
+ provider:
17385
+ $ref: "#/components/schemas/PmProvider"
17386
+ pmEntityType:
17387
+ type: string
17388
+ minLength: 1
17389
+ maxLength: 64
17390
+ pmEntityId:
17391
+ type: string
17392
+ minLength: 1
17393
+ maxLength: 400
17394
+ pmEntityKey:
17395
+ type: string
17396
+ nullable: true
17397
+ maxLength: 400
17398
+ pmEntityName:
17399
+ type: string
17400
+ nullable: true
17401
+ maxLength: 400
17402
+
17403
+ PmMappingSuggestionDto:
17404
+ type: object
17405
+ required: [orgTeamId, orgTeamName, provider, pmEntityType, pmEntityId, confidence]
17406
+ additionalProperties: false
17407
+ properties:
17408
+ orgTeamId:
17409
+ type: string
17410
+ orgTeamName:
17411
+ type: string
17412
+ provider:
17413
+ $ref: "#/components/schemas/PmProvider"
17414
+ pmEntityType:
17415
+ type: string
17416
+ pmEntityId:
17417
+ type: string
17418
+ pmEntityKey:
17419
+ type: string
17420
+ nullable: true
17421
+ pmEntityName:
17422
+ type: string
17423
+ nullable: true
17424
+ confidence:
17425
+ type: string
17426
+ enum: [exact, normalized]
17427
+ description: Match quality between org team name and PM entity name/key.
17428
+
17429
+ PmLinkGapDto:
17430
+ type: object
17431
+ required: [pmProvider, ticketKey, scmProvider, scmRepo, prNumber, linkSource, updatedAt]
17432
+ additionalProperties: false
17433
+ properties:
17434
+ pmProvider:
17435
+ $ref: "#/components/schemas/PmProvider"
17436
+ ticketKey:
17437
+ type: string
17438
+ ticketId:
17439
+ type: string
17440
+ nullable: true
17441
+ scmProvider:
17442
+ type: string
17443
+ enum: [github, gitlab, bitbucket]
17444
+ scmOwner:
17445
+ type: string
17446
+ nullable: true
17447
+ scmRepo:
17448
+ type: string
17449
+ prNumber:
17450
+ type: integer
17451
+ minimum: 1
17452
+ prUrl:
17453
+ type: string
17454
+ nullable: true
17455
+ linkSource:
17456
+ type: string
17457
+ enum: [derived]
17458
+ orgTeamId:
17459
+ type: string
17460
+ nullable: true
17461
+ updatedAt:
17462
+ type: string
17463
+ format: date-time
17464
+
17465
+ PmLinkGapsDto:
17466
+ type: object
17467
+ required: [gaps]
17468
+ additionalProperties: false
17469
+ properties:
17470
+ gaps:
17471
+ type: array
17472
+ items:
17473
+ $ref: "#/components/schemas/PmLinkGapDto"
17474
+
17475
+ BusinessProjectDto:
17476
+ type: object
17477
+ required: [name, slug]
17478
+ additionalProperties: false
17479
+ properties:
17480
+ id:
17481
+ type: string
17482
+ format: uuid
17483
+ description: Present on responses; optional on create (server assigns).
17484
+ workspaceId:
17485
+ type: string
17486
+ format: uuid
17487
+ name:
17488
+ type: string
17489
+ minLength: 1
17490
+ maxLength: 400
17491
+ slug:
17492
+ type: string
17493
+ minLength: 1
17494
+ maxLength: 200
17495
+ pmProvider:
17496
+ allOf:
17497
+ - $ref: "#/components/schemas/PmProvider"
17498
+ nullable: true
17499
+ pmEntityType:
17500
+ type: string
17501
+ nullable: true
17502
+ maxLength: 64
17503
+ pmEntityId:
17504
+ type: string
17505
+ nullable: true
17506
+ maxLength: 400
17507
+ pmEntityKey:
17508
+ type: string
17509
+ nullable: true
17510
+ maxLength: 400
17511
+ orgTeamId:
17512
+ type: string
17513
+ nullable: true
17514
+ maxLength: 200
17515
+ source:
17516
+ type: string
17517
+ enum: [mirrored, override, manual]
17518
+ status:
17519
+ type: string
17520
+ enum: [active, archived]
17521
+ createdAt:
17522
+ type: string
17523
+ format: date-time
17524
+ updatedAt:
17525
+ type: string
17526
+ format: date-time
17527
+
17528
+ BusinessProjectsListDto:
17529
+ type: object
17530
+ required: [projects]
17531
+ additionalProperties: false
17532
+ properties:
17533
+ projects:
17534
+ type: array
17535
+ items:
17536
+ $ref: "#/components/schemas/BusinessProjectDto"
17537
+
17538
+ PmRoiDto:
17539
+ type: object
17540
+ required: [workspaceId, available, metrics, byOrgTeam, byBusinessProject]
17541
+ additionalProperties: false
17542
+ description: >
17543
+ PM-attributed ROI from confirmed mappings and ticket↔PR links (ADR 004).
17544
+ Empty breakdowns and `available: false` when no tool-linked PRs / mappings.
17545
+ properties:
17546
+ workspaceId:
17547
+ type: string
17548
+ format: uuid
17549
+ available:
17550
+ type: boolean
17551
+ description: True when at least one confirmed mapping and one tool-linked PR exist.
17552
+ metrics:
17553
+ type: object
17554
+ additionalProperties: false
17555
+ required: [mappedTeamCount, toolLinkedPrCount, gapCount, attributedSpendUsd]
17556
+ properties:
17557
+ mappedTeamCount:
17558
+ type: integer
17559
+ minimum: 0
17560
+ toolLinkedPrCount:
17561
+ type: integer
17562
+ minimum: 0
17563
+ gapCount:
17564
+ type: integer
17565
+ minimum: 0
17566
+ attributedSpendUsd:
17567
+ type: number
17568
+ nullable: true
17569
+ byOrgTeam:
17570
+ type: array
17571
+ items:
17572
+ type: object
17573
+ additionalProperties: false
17574
+ required: [orgTeamId, toolLinkedPrCount, attributedSpendUsd]
17575
+ properties:
17576
+ orgTeamId:
17577
+ type: string
17578
+ toolLinkedPrCount:
17579
+ type: integer
17580
+ minimum: 0
17581
+ attributedSpendUsd:
17582
+ type: number
17583
+ nullable: true
17584
+ byBusinessProject:
17585
+ type: array
17586
+ items:
17587
+ type: object
17588
+ additionalProperties: false
17589
+ required: [businessProjectId, toolLinkedPrCount, attributedSpendUsd]
17590
+ properties:
17591
+ businessProjectId:
17592
+ type: string
17593
+ format: uuid
17594
+ name:
17595
+ type: string
17596
+ nullable: true
17597
+ toolLinkedPrCount:
17598
+ type: integer
17599
+ minimum: 0
17600
+ attributedSpendUsd:
17601
+ type: number
17602
+ nullable: true
17603
+
17604
+ PagerDutySourceDto:
17605
+ type: object
17606
+ description: >
17607
+ PagerDuty incident monitoring source for `PUT /workspaces/{workspaceId}/sources` and
17608
+ `POST /workspaces/{workspaceId}/sources/test`. Requires a REST API v2 token
17609
+ (an "API Access Key" from PagerDuty → **Integrations → API Access Keys**).
17610
+ required: [type, token]
17611
+ additionalProperties: false
17612
+ properties:
17613
+ type:
17614
+ type: string
17615
+ enum: [pagerduty]
17616
+ token:
17617
+ type: string
17618
+ minLength: 1
17619
+ maxLength: 512
17620
+ description: PagerDuty REST API v2 token (API Access Key, write-only on PUT).
17621
+ baseUrl:
17622
+ type: string
17623
+ description: Optional API base URL override. Default `https://api.pagerduty.com`.
17624
+ userName:
17625
+ type: string
17626
+ description: Optional display name from a successful connection test (echo-after-test).
17627
+ userEmail:
17628
+ type: string
17629
+ description: Optional email from a successful connection test (echo-after-test).
17630
+
17631
+ PagerDutySourceConfigDto:
17632
+ type: object
17633
+ description: >
17041
17634
  Redacted PagerDuty source returned by `GET /workspaces/{workspaceId}/config`.
17042
17635
  Raw token is never returned.
17043
17636
  required: [type, hasToken]
@@ -17713,6 +18306,104 @@ components:
17713
18306
  type: string
17714
18307
  description: Linear workspace URL when known from the last successful verify.
17715
18308
 
18309
+ GitHubIssuesSourceDto:
18310
+ type: object
18311
+ description: >
18312
+ GitHub Issues PM source for `PUT /workspaces/{workspaceId}/sources` and
18313
+ `POST /workspaces/{workspaceId}/sources/test`. Uses a GitHub PAT (or fine-grained
18314
+ token) with issues read access. Optional `repos` limits ingestion to listed
18315
+ `owner/repo` slugs (comma-separated string or array).
18316
+ required: [type, token]
18317
+ additionalProperties: false
18318
+ properties:
18319
+ type:
18320
+ type: string
18321
+ enum: [github_issues]
18322
+ token:
18323
+ type: string
18324
+ minLength: 1
18325
+ maxLength: 512
18326
+ description: GitHub PAT / token (write-only on PUT).
18327
+ repos:
18328
+ description: Optional repo filter (`owner/repo` CSV string or array).
18329
+ oneOf:
18330
+ - type: string
18331
+ maxLength: 2000
18332
+ - type: array
18333
+ items:
18334
+ type: string
18335
+ minLength: 1
18336
+ maxLength: 200
18337
+
18338
+ GitHubIssuesSourceConfigDto:
18339
+ type: object
18340
+ description: >
18341
+ Redacted GitHub Issues source returned by `GET /workspaces/{workspaceId}/config`.
18342
+ Raw token is never returned.
18343
+ required: [type, hasToken]
18344
+ additionalProperties: false
18345
+ properties:
18346
+ type:
18347
+ type: string
18348
+ enum: [github_issues]
18349
+ hasToken:
18350
+ type: boolean
18351
+ description: Whether a GitHub token is stored for this workspace.
18352
+ repos:
18353
+ description: Configured repo filter when set.
18354
+ oneOf:
18355
+ - type: string
18356
+ - type: array
18357
+ items:
18358
+ type: string
18359
+
18360
+ AzureBoardsSourceDto:
18361
+ type: object
18362
+ description: >
18363
+ Azure Boards PM source for `PUT /workspaces/{workspaceId}/sources` and
18364
+ `POST /workspaces/{workspaceId}/sources/test`. Requires organization URL, project
18365
+ name, and a personal access token (PAT).
18366
+ required: [type, orgUrl, project, pat]
18367
+ additionalProperties: false
18368
+ properties:
18369
+ type:
18370
+ type: string
18371
+ enum: [azure_boards]
18372
+ orgUrl:
18373
+ type: string
18374
+ minLength: 1
18375
+ description: Azure DevOps organization URL (e.g. `https://dev.azure.com/acme`).
18376
+ project:
18377
+ type: string
18378
+ minLength: 1
18379
+ description: Azure DevOps project name.
18380
+ pat:
18381
+ type: string
18382
+ minLength: 1
18383
+ maxLength: 512
18384
+ description: Azure DevOps personal access token (write-only on PUT).
18385
+
18386
+ AzureBoardsSourceConfigDto:
18387
+ type: object
18388
+ description: >
18389
+ Redacted Azure Boards source returned by `GET /workspaces/{workspaceId}/config`.
18390
+ Raw PAT is never returned.
18391
+ required: [type, hasToken, orgUrl, project]
18392
+ additionalProperties: false
18393
+ properties:
18394
+ type:
18395
+ type: string
18396
+ enum: [azure_boards]
18397
+ hasToken:
18398
+ type: boolean
18399
+ description: Whether a PAT is stored for this workspace.
18400
+ orgUrl:
18401
+ type: string
18402
+ description: Configured Azure DevOps organization URL.
18403
+ project:
18404
+ type: string
18405
+ description: Configured Azure DevOps project name.
18406
+
17716
18407
  AgentExecutionProviderDto:
17717
18408
  type: string
17718
18409
  description: >
@@ -17894,6 +18585,67 @@ components:
17894
18585
  sizeBytes: { type: integer, minimum: 1 }
17895
18586
  createdAt: { type: string, format: date-time }
17896
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
+
17897
18649
  CodeChatReadinessDto:
17898
18650
  type: object
17899
18651
  required:
@@ -17978,6 +18730,8 @@ components:
17978
18730
  - $ref: "#/components/schemas/SentrySourceConfigDto"
17979
18731
  - $ref: "#/components/schemas/JiraSourceConfigDto"
17980
18732
  - $ref: "#/components/schemas/LinearSourceConfigDto"
18733
+ - $ref: "#/components/schemas/GitHubIssuesSourceConfigDto"
18734
+ - $ref: "#/components/schemas/AzureBoardsSourceConfigDto"
17981
18735
  - $ref: "#/components/schemas/TenantSourceEntryDto"
17982
18736
  orgChart:
17983
18737
  nullable: true