@thinkai/tai-api-contract 2.231.2 → 2.234.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 +398 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +55 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +471 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +398 -0
- package/src/index.ts +61 -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.234.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}/...`.
|
|
@@ -12302,6 +12302,34 @@ paths:
|
|
|
12302
12302
|
"404":
|
|
12303
12303
|
description: Not found
|
|
12304
12304
|
|
|
12305
|
+
/workspaces/{workspaceId}/code-chat/indexes/{indexId}/arch-doc:
|
|
12306
|
+
get:
|
|
12307
|
+
tags: [CodeChat]
|
|
12308
|
+
summary: Architecture document (.arch.md) for one repository index
|
|
12309
|
+
description: >
|
|
12310
|
+
The standard-shaped architecture document the last scan stored, beside how the document
|
|
12311
|
+
step ended. It is written during indexing from the code, and is the only architecture
|
|
12312
|
+
artifact: the short fields Ask searches are read out of it. Read-only; never calls a model. A repository scanned without documents
|
|
12313
|
+
returns status `missing` and a plain-words next step.
|
|
12314
|
+
operationId: getCodeChatArchDoc
|
|
12315
|
+
parameters:
|
|
12316
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
12317
|
+
- name: indexId
|
|
12318
|
+
in: path
|
|
12319
|
+
required: true
|
|
12320
|
+
schema: { type: string, format: uuid }
|
|
12321
|
+
responses:
|
|
12322
|
+
"200":
|
|
12323
|
+
description: Document and step outcome
|
|
12324
|
+
content:
|
|
12325
|
+
application/json:
|
|
12326
|
+
schema:
|
|
12327
|
+
$ref: "#/components/schemas/CodeChatArchDocViewDto"
|
|
12328
|
+
"401":
|
|
12329
|
+
$ref: "#/components/responses/Unauthorized"
|
|
12330
|
+
"404":
|
|
12331
|
+
description: Index not found
|
|
12332
|
+
|
|
12305
12333
|
/workspaces/{workspaceId}/code-chat/indexes/{indexId}/wiki-config:
|
|
12306
12334
|
get:
|
|
12307
12335
|
tags: [CodeChat]
|
|
@@ -15375,6 +15403,147 @@ paths:
|
|
|
15375
15403
|
"403":
|
|
15376
15404
|
$ref: "#/components/responses/Forbidden"
|
|
15377
15405
|
|
|
15406
|
+
/workspaces/{workspaceId}/hris/roster:
|
|
15407
|
+
get:
|
|
15408
|
+
tags: [HRIS]
|
|
15409
|
+
summary: List HRIS roster people
|
|
15410
|
+
operationId: getHrisRoster
|
|
15411
|
+
description: >
|
|
15412
|
+
Returns the merge-safe HRIS roster (provider fields + user overlay + sync presence)
|
|
15413
|
+
for a provider. Lazy-bootstraps from `hris_spa_org_chart` when the roster blob is empty.
|
|
15414
|
+
Requires workspace membership.
|
|
15415
|
+
parameters:
|
|
15416
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
15417
|
+
- name: provider
|
|
15418
|
+
in: query
|
|
15419
|
+
required: true
|
|
15420
|
+
schema:
|
|
15421
|
+
type: string
|
|
15422
|
+
enum: [hibob, personio, zenhr, zelt]
|
|
15423
|
+
description: HRIS provider whose roster to return.
|
|
15424
|
+
responses:
|
|
15425
|
+
"200":
|
|
15426
|
+
description: Roster document
|
|
15427
|
+
content:
|
|
15428
|
+
application/json:
|
|
15429
|
+
schema:
|
|
15430
|
+
$ref: "#/components/schemas/HrisRosterDto"
|
|
15431
|
+
"400":
|
|
15432
|
+
description: Missing or invalid provider
|
|
15433
|
+
content:
|
|
15434
|
+
application/json:
|
|
15435
|
+
schema:
|
|
15436
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
15437
|
+
"401":
|
|
15438
|
+
$ref: "#/components/responses/Unauthorized"
|
|
15439
|
+
"403":
|
|
15440
|
+
$ref: "#/components/responses/Forbidden"
|
|
15441
|
+
patch:
|
|
15442
|
+
tags: [HRIS]
|
|
15443
|
+
summary: Patch HRIS roster overlay fields
|
|
15444
|
+
operationId: patchHrisRoster
|
|
15445
|
+
description: >
|
|
15446
|
+
Updates user overlay fields and/or presence actions (dismiss new, archive missing)
|
|
15447
|
+
by employeeId. Rematerializes the effective org chart when structure source is HRIS.
|
|
15448
|
+
Does not request a productivity remount. Requires workspace editor.
|
|
15449
|
+
parameters:
|
|
15450
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
15451
|
+
- name: provider
|
|
15452
|
+
in: query
|
|
15453
|
+
required: true
|
|
15454
|
+
schema:
|
|
15455
|
+
type: string
|
|
15456
|
+
enum: [hibob, personio, zenhr, zelt]
|
|
15457
|
+
requestBody:
|
|
15458
|
+
required: true
|
|
15459
|
+
content:
|
|
15460
|
+
application/json:
|
|
15461
|
+
schema:
|
|
15462
|
+
$ref: "#/components/schemas/HrisRosterPatchDto"
|
|
15463
|
+
responses:
|
|
15464
|
+
"200":
|
|
15465
|
+
description: Updated roster
|
|
15466
|
+
content:
|
|
15467
|
+
application/json:
|
|
15468
|
+
schema:
|
|
15469
|
+
$ref: "#/components/schemas/HrisRosterDto"
|
|
15470
|
+
"400":
|
|
15471
|
+
description: Invalid body
|
|
15472
|
+
content:
|
|
15473
|
+
application/json:
|
|
15474
|
+
schema:
|
|
15475
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
15476
|
+
"401":
|
|
15477
|
+
$ref: "#/components/responses/Unauthorized"
|
|
15478
|
+
"403":
|
|
15479
|
+
$ref: "#/components/responses/Forbidden"
|
|
15480
|
+
|
|
15481
|
+
/workspaces/{workspaceId}/hris/roster.csv:
|
|
15482
|
+
get:
|
|
15483
|
+
tags: [HRIS]
|
|
15484
|
+
summary: Download HRIS roster as CSV
|
|
15485
|
+
operationId: downloadHrisRosterCsv
|
|
15486
|
+
description: >
|
|
15487
|
+
Exports effective roster rows (provider + overlay) as CSV using org-chart column headers.
|
|
15488
|
+
Requires workspace membership.
|
|
15489
|
+
parameters:
|
|
15490
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
15491
|
+
- name: provider
|
|
15492
|
+
in: query
|
|
15493
|
+
required: true
|
|
15494
|
+
schema:
|
|
15495
|
+
type: string
|
|
15496
|
+
enum: [hibob, personio, zenhr, zelt]
|
|
15497
|
+
responses:
|
|
15498
|
+
"200":
|
|
15499
|
+
description: CSV file
|
|
15500
|
+
content:
|
|
15501
|
+
text/csv:
|
|
15502
|
+
schema:
|
|
15503
|
+
type: string
|
|
15504
|
+
"401":
|
|
15505
|
+
$ref: "#/components/responses/Unauthorized"
|
|
15506
|
+
"403":
|
|
15507
|
+
$ref: "#/components/responses/Forbidden"
|
|
15508
|
+
post:
|
|
15509
|
+
tags: [HRIS]
|
|
15510
|
+
summary: Import HRIS roster overlay CSV
|
|
15511
|
+
operationId: importHrisRosterCsv
|
|
15512
|
+
description: >
|
|
15513
|
+
Parses CSV (org-chart headers) and merges overlay columns onto existing roster rows
|
|
15514
|
+
by employee_id (then email). Requires workspace editor.
|
|
15515
|
+
parameters:
|
|
15516
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
15517
|
+
- name: provider
|
|
15518
|
+
in: query
|
|
15519
|
+
required: true
|
|
15520
|
+
schema:
|
|
15521
|
+
type: string
|
|
15522
|
+
enum: [hibob, personio, zenhr, zelt]
|
|
15523
|
+
requestBody:
|
|
15524
|
+
required: true
|
|
15525
|
+
content:
|
|
15526
|
+
application/json:
|
|
15527
|
+
schema:
|
|
15528
|
+
$ref: "#/components/schemas/HrisRosterCsvImportDto"
|
|
15529
|
+
responses:
|
|
15530
|
+
"200":
|
|
15531
|
+
description: Updated roster after import
|
|
15532
|
+
content:
|
|
15533
|
+
application/json:
|
|
15534
|
+
schema:
|
|
15535
|
+
$ref: "#/components/schemas/HrisRosterDto"
|
|
15536
|
+
"400":
|
|
15537
|
+
description: Invalid CSV
|
|
15538
|
+
content:
|
|
15539
|
+
application/json:
|
|
15540
|
+
schema:
|
|
15541
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
15542
|
+
"401":
|
|
15543
|
+
$ref: "#/components/responses/Unauthorized"
|
|
15544
|
+
"403":
|
|
15545
|
+
$ref: "#/components/responses/Forbidden"
|
|
15546
|
+
|
|
15378
15547
|
/workspaces/{workspaceId}/evals/packs:
|
|
15379
15548
|
get:
|
|
15380
15549
|
tags: [Evals]
|
|
@@ -19129,6 +19298,66 @@ components:
|
|
|
19129
19298
|
reason:
|
|
19130
19299
|
$ref: "#/components/schemas/AgentExecutionSkipReasonDto"
|
|
19131
19300
|
|
|
19301
|
+
CodeIntelligenceTaskModelDto:
|
|
19302
|
+
type: object
|
|
19303
|
+
description: >
|
|
19304
|
+
Model ids for one Code Intelligence task. A model id left out uses the platform default for
|
|
19305
|
+
the task (or, for `ask_explore`, the `ask_synthesize` pick). `useWorkspaceModel: true` runs the
|
|
19306
|
+
workspace-wide `cursorModel` / `claudeModel` instead and cannot be combined with a model id.
|
|
19307
|
+
additionalProperties: false
|
|
19308
|
+
properties:
|
|
19309
|
+
useWorkspaceModel:
|
|
19310
|
+
type: boolean
|
|
19311
|
+
nullable: true
|
|
19312
|
+
description: When true, the task runs the workspace-wide model instead of the platform default.
|
|
19313
|
+
cursorModel:
|
|
19314
|
+
type: string
|
|
19315
|
+
nullable: true
|
|
19316
|
+
minLength: 1
|
|
19317
|
+
maxLength: 120
|
|
19318
|
+
claudeModel:
|
|
19319
|
+
type: string
|
|
19320
|
+
nullable: true
|
|
19321
|
+
minLength: 1
|
|
19322
|
+
maxLength: 120
|
|
19323
|
+
CodeIntelligenceTaskModelDefaultsDto:
|
|
19324
|
+
type: object
|
|
19325
|
+
description: Platform default model ids per Code Intelligence task.
|
|
19326
|
+
required: [index_bulk, ask_synthesize, ask_explore]
|
|
19327
|
+
properties:
|
|
19328
|
+
index_bulk:
|
|
19329
|
+
$ref: "#/components/schemas/CodeIntelligenceTaskModelDefaultDto"
|
|
19330
|
+
ask_synthesize:
|
|
19331
|
+
$ref: "#/components/schemas/CodeIntelligenceTaskModelDefaultDto"
|
|
19332
|
+
ask_explore:
|
|
19333
|
+
$ref: "#/components/schemas/CodeIntelligenceTaskModelDefaultDto"
|
|
19334
|
+
CodeIntelligenceTaskModelDefaultDto:
|
|
19335
|
+
type: object
|
|
19336
|
+
required: [cursorModel, claudeModel]
|
|
19337
|
+
properties:
|
|
19338
|
+
cursorModel:
|
|
19339
|
+
type: string
|
|
19340
|
+
claudeModel:
|
|
19341
|
+
type: string
|
|
19342
|
+
CodeIntelligenceModelsByTaskDto:
|
|
19343
|
+
type: object
|
|
19344
|
+
nullable: true
|
|
19345
|
+
description: >
|
|
19346
|
+
Per-task model routing for Code Intelligence (ECG use cases). `index_bulk` is high-volume
|
|
19347
|
+
index-time work (rule-card describe, wiki outline and enrich). `ask_synthesize` writes the
|
|
19348
|
+
Ask answer. `ask_explore` is the Explore planner and inherits `ask_synthesize` when its cell
|
|
19349
|
+
is empty. A task with no cell runs the platform default for that task
|
|
19350
|
+
(see `codeIntelligenceTaskModelDefaults` on the workspace configuration). Set
|
|
19351
|
+
`useWorkspaceModel` on a task to run the workspace-wide `cursorModel` / `claudeModel`
|
|
19352
|
+
instead. Null clears every per-task model. Unknown task keys are rejected.
|
|
19353
|
+
additionalProperties: false
|
|
19354
|
+
properties:
|
|
19355
|
+
index_bulk:
|
|
19356
|
+
$ref: "#/components/schemas/CodeIntelligenceTaskModelDto"
|
|
19357
|
+
ask_synthesize:
|
|
19358
|
+
$ref: "#/components/schemas/CodeIntelligenceTaskModelDto"
|
|
19359
|
+
ask_explore:
|
|
19360
|
+
$ref: "#/components/schemas/CodeIntelligenceTaskModelDto"
|
|
19132
19361
|
PutCodeIntelligenceSettingsDto:
|
|
19133
19362
|
type: object
|
|
19134
19363
|
description: Partial update for Code Intelligence workspace settings (admin-only).
|
|
@@ -19150,6 +19379,10 @@ components:
|
|
|
19150
19379
|
type: string
|
|
19151
19380
|
nullable: true
|
|
19152
19381
|
minLength: 1
|
|
19382
|
+
modelsByTask:
|
|
19383
|
+
nullable: true
|
|
19384
|
+
allOf:
|
|
19385
|
+
- $ref: "#/components/schemas/CodeIntelligenceModelsByTaskDto"
|
|
19153
19386
|
indexingEnabled:
|
|
19154
19387
|
type: boolean
|
|
19155
19388
|
description: >
|
|
@@ -19456,6 +19689,18 @@ components:
|
|
|
19456
19689
|
type: string
|
|
19457
19690
|
nullable: true
|
|
19458
19691
|
description: Optional Claude model override for Code Intelligence (null/empty → env default).
|
|
19692
|
+
codeIntelligenceModelsByTask:
|
|
19693
|
+
nullable: true
|
|
19694
|
+
description: Per-task model routing (`index_bulk`, `ask_synthesize`, `ask_explore`). Null when every task runs its platform default.
|
|
19695
|
+
allOf:
|
|
19696
|
+
- $ref: "#/components/schemas/CodeIntelligenceModelsByTaskDto"
|
|
19697
|
+
codeIntelligenceTaskModelDefaults:
|
|
19698
|
+
readOnly: true
|
|
19699
|
+
description: >
|
|
19700
|
+
The model each task runs when it has no cell of its own (the platform default), per
|
|
19701
|
+
provider. The screen reads this so it never states a model the server does not use.
|
|
19702
|
+
allOf:
|
|
19703
|
+
- $ref: "#/components/schemas/CodeIntelligenceTaskModelDefaultsDto"
|
|
19459
19704
|
codeIntelligenceIndexingEnabled:
|
|
19460
19705
|
type: boolean
|
|
19461
19706
|
description: >
|
|
@@ -30430,6 +30675,13 @@ components:
|
|
|
30430
30675
|
description: Per-provider sync outcomes when one or more HRIS sources are configured.
|
|
30431
30676
|
items:
|
|
30432
30677
|
$ref: "#/components/schemas/HrisProviderSyncResultDto"
|
|
30678
|
+
rosterAdded:
|
|
30679
|
+
type: integer
|
|
30680
|
+
description: Sum of per-provider rosterAdded when status = ok or partial.
|
|
30681
|
+
rosterUpdated:
|
|
30682
|
+
type: integer
|
|
30683
|
+
rosterMissingFromSync:
|
|
30684
|
+
type: integer
|
|
30433
30685
|
|
|
30434
30686
|
HrisProviderSyncResultDto:
|
|
30435
30687
|
type: object
|
|
@@ -30449,6 +30701,142 @@ components:
|
|
|
30449
30701
|
type: integer
|
|
30450
30702
|
error:
|
|
30451
30703
|
type: string
|
|
30704
|
+
rosterAdded:
|
|
30705
|
+
type: integer
|
|
30706
|
+
description: People newly inserted into the HRIS roster on this sync.
|
|
30707
|
+
rosterUpdated:
|
|
30708
|
+
type: integer
|
|
30709
|
+
description: Existing roster people whose provider fields were refreshed.
|
|
30710
|
+
rosterMissingFromSync:
|
|
30711
|
+
type: integer
|
|
30712
|
+
description: Roster people not present in this sync response (leavers / inactive).
|
|
30713
|
+
|
|
30714
|
+
HrisRosterSyncPresenceDto:
|
|
30715
|
+
type: string
|
|
30716
|
+
enum: [active, new, missing_from_sync, archived]
|
|
30717
|
+
|
|
30718
|
+
HrisRosterPersonDto:
|
|
30719
|
+
type: object
|
|
30720
|
+
additionalProperties: false
|
|
30721
|
+
required: [employeeId, email, name, syncPresence, incompleteFields]
|
|
30722
|
+
properties:
|
|
30723
|
+
employeeId:
|
|
30724
|
+
type: string
|
|
30725
|
+
email:
|
|
30726
|
+
type: string
|
|
30727
|
+
name:
|
|
30728
|
+
type: string
|
|
30729
|
+
title:
|
|
30730
|
+
type: string
|
|
30731
|
+
department:
|
|
30732
|
+
type: string
|
|
30733
|
+
team:
|
|
30734
|
+
type: string
|
|
30735
|
+
description: Engineering team. When empty, department may be used as provisional team.
|
|
30736
|
+
managerId:
|
|
30737
|
+
type: string
|
|
30738
|
+
location:
|
|
30739
|
+
type: string
|
|
30740
|
+
githubUsername:
|
|
30741
|
+
type: string
|
|
30742
|
+
bitbucketNickname:
|
|
30743
|
+
type: string
|
|
30744
|
+
bitbucketUuid:
|
|
30745
|
+
type: string
|
|
30746
|
+
gitlabUsername:
|
|
30747
|
+
type: string
|
|
30748
|
+
alternateEmails:
|
|
30749
|
+
type: string
|
|
30750
|
+
syncPresence:
|
|
30751
|
+
$ref: "#/components/schemas/HrisRosterSyncPresenceDto"
|
|
30752
|
+
fieldSources:
|
|
30753
|
+
type: object
|
|
30754
|
+
additionalProperties:
|
|
30755
|
+
type: string
|
|
30756
|
+
enum: [provider, overlay]
|
|
30757
|
+
description: Which layer supplied each non-empty field on the effective row.
|
|
30758
|
+
incompleteFields:
|
|
30759
|
+
type: array
|
|
30760
|
+
items:
|
|
30761
|
+
type: string
|
|
30762
|
+
description: Canonical required field keys that are still blank on the effective row.
|
|
30763
|
+
|
|
30764
|
+
HrisRosterDto:
|
|
30765
|
+
type: object
|
|
30766
|
+
additionalProperties: false
|
|
30767
|
+
required: [provider, people, updatedAt]
|
|
30768
|
+
properties:
|
|
30769
|
+
provider:
|
|
30770
|
+
type: string
|
|
30771
|
+
updatedAt:
|
|
30772
|
+
type: string
|
|
30773
|
+
format: date-time
|
|
30774
|
+
nullable: true
|
|
30775
|
+
people:
|
|
30776
|
+
type: array
|
|
30777
|
+
items:
|
|
30778
|
+
$ref: "#/components/schemas/HrisRosterPersonDto"
|
|
30779
|
+
|
|
30780
|
+
HrisRosterPersonPatchDto:
|
|
30781
|
+
type: object
|
|
30782
|
+
additionalProperties: false
|
|
30783
|
+
required: [employeeId]
|
|
30784
|
+
properties:
|
|
30785
|
+
employeeId:
|
|
30786
|
+
type: string
|
|
30787
|
+
overlay:
|
|
30788
|
+
type: object
|
|
30789
|
+
additionalProperties: false
|
|
30790
|
+
properties:
|
|
30791
|
+
name:
|
|
30792
|
+
type: string
|
|
30793
|
+
email:
|
|
30794
|
+
type: string
|
|
30795
|
+
title:
|
|
30796
|
+
type: string
|
|
30797
|
+
department:
|
|
30798
|
+
type: string
|
|
30799
|
+
team:
|
|
30800
|
+
type: string
|
|
30801
|
+
managerId:
|
|
30802
|
+
type: string
|
|
30803
|
+
location:
|
|
30804
|
+
type: string
|
|
30805
|
+
githubUsername:
|
|
30806
|
+
type: string
|
|
30807
|
+
bitbucketNickname:
|
|
30808
|
+
type: string
|
|
30809
|
+
bitbucketUuid:
|
|
30810
|
+
type: string
|
|
30811
|
+
gitlabUsername:
|
|
30812
|
+
type: string
|
|
30813
|
+
alternateEmails:
|
|
30814
|
+
type: string
|
|
30815
|
+
dismissNew:
|
|
30816
|
+
type: boolean
|
|
30817
|
+
description: Clear syncPresence=new without archiving.
|
|
30818
|
+
archive:
|
|
30819
|
+
type: boolean
|
|
30820
|
+
description: Archive a missing_from_sync (or any) row.
|
|
30821
|
+
|
|
30822
|
+
HrisRosterPatchDto:
|
|
30823
|
+
type: object
|
|
30824
|
+
additionalProperties: false
|
|
30825
|
+
required: [people]
|
|
30826
|
+
properties:
|
|
30827
|
+
people:
|
|
30828
|
+
type: array
|
|
30829
|
+
items:
|
|
30830
|
+
$ref: "#/components/schemas/HrisRosterPersonPatchDto"
|
|
30831
|
+
|
|
30832
|
+
HrisRosterCsvImportDto:
|
|
30833
|
+
type: object
|
|
30834
|
+
additionalProperties: false
|
|
30835
|
+
required: [csv]
|
|
30836
|
+
properties:
|
|
30837
|
+
csv:
|
|
30838
|
+
type: string
|
|
30839
|
+
description: Full CSV text with org-chart headers.
|
|
30452
30840
|
|
|
30453
30841
|
ActivityLogPageDto:
|
|
30454
30842
|
allOf:
|
|
@@ -31877,6 +32265,71 @@ components:
|
|
|
31877
32265
|
hasCodeExcerpts:
|
|
31878
32266
|
type: boolean
|
|
31879
32267
|
description: True when the indexed graph stores durable code excerpts (required for useful chat answers).
|
|
32268
|
+
ruleCards:
|
|
32269
|
+
allOf:
|
|
32270
|
+
- $ref: "#/components/schemas/CodeChatIndexRuleCardsDto"
|
|
32271
|
+
nullable: true
|
|
32272
|
+
description: >
|
|
32273
|
+
How the decision-line card step ended on the last scan. Null when no card step has
|
|
32274
|
+
reported for this index (scanned before cards existed, or by an older worker).
|
|
32275
|
+
archDoc:
|
|
32276
|
+
allOf:
|
|
32277
|
+
- $ref: "#/components/schemas/CodeChatIndexArchDocDto"
|
|
32278
|
+
nullable: true
|
|
32279
|
+
description: >
|
|
32280
|
+
How the architecture document step ended on the last scan. Null when no document
|
|
32281
|
+
step has reported for this index (documents off, or scanned by an older worker).
|
|
32282
|
+
|
|
32283
|
+
CodeChatIndexRuleCardsDto:
|
|
32284
|
+
type: object
|
|
32285
|
+
required: [status, reason, cards, updatedAt]
|
|
32286
|
+
properties:
|
|
32287
|
+
status:
|
|
32288
|
+
type: string
|
|
32289
|
+
enum: [ready, partial, failed, skipped]
|
|
32290
|
+
description: >
|
|
32291
|
+
ready: every card was embedded. partial: some cards have no description or were not
|
|
32292
|
+
embedded; the rest are searchable. failed: the step errored and cards from the last
|
|
32293
|
+
good scan are kept. skipped: the step did not run (turned off, or no model or
|
|
32294
|
+
embeddings key).
|
|
32295
|
+
reason:
|
|
32296
|
+
type: string
|
|
32297
|
+
nullable: true
|
|
32298
|
+
description: Plain-words explanation and next step. Null when status is ready with cards written.
|
|
32299
|
+
cards: { type: integer, minimum: 0, description: Decision lines found in this repository. }
|
|
32300
|
+
updatedAt: { type: string, format: date-time, nullable: true }
|
|
32301
|
+
|
|
32302
|
+
CodeChatIndexArchDocDto:
|
|
32303
|
+
type: object
|
|
32304
|
+
required: [status, reason, updatedAt]
|
|
32305
|
+
properties:
|
|
32306
|
+
status:
|
|
32307
|
+
type: string
|
|
32308
|
+
enum: [ready, failed, skipped]
|
|
32309
|
+
description: >
|
|
32310
|
+
ready: document stored for this commit. failed: the step errored and the earlier
|
|
32311
|
+
document is kept. skipped: the step did not run (no model key, or too little code).
|
|
32312
|
+
reason:
|
|
32313
|
+
{ type: string, nullable: true, description: "Plain-words explanation and next step." }
|
|
32314
|
+
updatedAt: { type: string, format: date-time, nullable: true }
|
|
32315
|
+
|
|
32316
|
+
CodeChatArchDocViewDto:
|
|
32317
|
+
type: object
|
|
32318
|
+
required: [status, reason, updatedAt, stale, markdown]
|
|
32319
|
+
properties:
|
|
32320
|
+
status:
|
|
32321
|
+
type: string
|
|
32322
|
+
enum: [ready, failed, skipped, missing]
|
|
32323
|
+
description: missing means no step has reported and nothing is stored.
|
|
32324
|
+
reason: { type: string, nullable: true }
|
|
32325
|
+
updatedAt: { type: string, format: date-time, nullable: true }
|
|
32326
|
+
stale:
|
|
32327
|
+
type: boolean
|
|
32328
|
+
description: The document was written for an earlier commit than the index now holds.
|
|
32329
|
+
markdown:
|
|
32330
|
+
type: string
|
|
32331
|
+
nullable: true
|
|
32332
|
+
description: The `.arch.md` file content. Standard headings, in the same order for every repository.
|
|
31880
32333
|
|
|
31881
32334
|
CodeChatIndexLastChangeDto:
|
|
31882
32335
|
type: object
|
|
@@ -31930,6 +32383,23 @@ components:
|
|
|
31930
32383
|
type: string
|
|
31931
32384
|
nullable: true
|
|
31932
32385
|
description: Human-readable detail (e.g. enriching · page 3/8 · how-it-works).
|
|
32386
|
+
steps:
|
|
32387
|
+
type: array
|
|
32388
|
+
nullable: true
|
|
32389
|
+
description: >
|
|
32390
|
+
The steps this scan runs, in order, with each step's status. Only planned steps
|
|
32391
|
+
appear (for example decision lines and the architecture document only when
|
|
32392
|
+
enabled, wiki only when the scan writes pages). Null for jobs queued before this field existed.
|
|
32393
|
+
items:
|
|
32394
|
+
type: object
|
|
32395
|
+
required: [key, status]
|
|
32396
|
+
properties:
|
|
32397
|
+
key:
|
|
32398
|
+
type: string
|
|
32399
|
+
enum: [acquire, extract, model, decision_lines, arch_doc, wiki]
|
|
32400
|
+
status:
|
|
32401
|
+
type: string
|
|
32402
|
+
enum: [planned, running, done, skipped, failed]
|
|
31933
32403
|
phaseUpdatedAt: { type: string, format: date-time, nullable: true }
|
|
31934
32404
|
trackAStatus:
|
|
31935
32405
|
$ref: "#/components/schemas/CodeKnowledgeTrackStatus"
|