@thinkai/tai-api-contract 2.187.0 → 2.188.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 +251 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +302 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +251 -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.188.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}/...`.
|
|
@@ -9326,6 +9326,143 @@ paths:
|
|
|
9326
9326
|
schema:
|
|
9327
9327
|
$ref: "#/components/schemas/GithubPermissionsCheckFailedErrorDto"
|
|
9328
9328
|
|
|
9329
|
+
/workspaces/{workspaceId}/rules-skills/validate:
|
|
9330
|
+
post:
|
|
9331
|
+
tags: [AgenticFoundation]
|
|
9332
|
+
summary: Validate agent rules and skills for a repository
|
|
9333
|
+
description: >
|
|
9334
|
+
Clones the connected GitHub repository via the workspace GitHub App installation
|
|
9335
|
+
and runs the shared Rules & Skills validate engine (structural + soft quality).
|
|
9336
|
+
Assessed tools come from the latest **succeeded** readiness scan
|
|
9337
|
+
(`agent_tool_assessed`: `cursor` | `claude-code` | `both`). Returns draft
|
|
9338
|
+
`proposedFiles` for review (not committed). Workspace member auth; write
|
|
9339
|
+
permissions are not required for validate-only.
|
|
9340
|
+
operationId: postRulesSkillsValidate
|
|
9341
|
+
parameters:
|
|
9342
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
9343
|
+
requestBody:
|
|
9344
|
+
required: true
|
|
9345
|
+
content:
|
|
9346
|
+
application/json:
|
|
9347
|
+
schema:
|
|
9348
|
+
$ref: "#/components/schemas/RulesSkillsValidateRequestDto"
|
|
9349
|
+
examples:
|
|
9350
|
+
validate:
|
|
9351
|
+
value:
|
|
9352
|
+
repoId: "11111111-1111-4111-8111-111111111111"
|
|
9353
|
+
pathPrefixes:
|
|
9354
|
+
- ".cursor"
|
|
9355
|
+
responses:
|
|
9356
|
+
"200":
|
|
9357
|
+
description: Validation result with findings and draft proposed files
|
|
9358
|
+
content:
|
|
9359
|
+
application/json:
|
|
9360
|
+
schema:
|
|
9361
|
+
$ref: "#/components/schemas/RulesSkillsValidateResponseDto"
|
|
9362
|
+
"400":
|
|
9363
|
+
description: Invalid body (e.g. malformed repoId)
|
|
9364
|
+
content:
|
|
9365
|
+
application/json:
|
|
9366
|
+
schema:
|
|
9367
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
9368
|
+
"401":
|
|
9369
|
+
$ref: "#/components/responses/Unauthorized"
|
|
9370
|
+
"403":
|
|
9371
|
+
$ref: "#/components/responses/Forbidden"
|
|
9372
|
+
"404":
|
|
9373
|
+
description: Workspace or repository not found / not connected
|
|
9374
|
+
content:
|
|
9375
|
+
application/json:
|
|
9376
|
+
schema:
|
|
9377
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
9378
|
+
"422":
|
|
9379
|
+
description: >
|
|
9380
|
+
No succeeded readiness scan for the repo (`code: readiness_scan_required`),
|
|
9381
|
+
or repository is not a GitHub-connected readiness repo.
|
|
9382
|
+
content:
|
|
9383
|
+
application/json:
|
|
9384
|
+
schema:
|
|
9385
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
9386
|
+
examples:
|
|
9387
|
+
readiness_scan_required:
|
|
9388
|
+
value:
|
|
9389
|
+
error: Run an Agentic Foundation readiness scan before validating rules and skills
|
|
9390
|
+
code: readiness_scan_required
|
|
9391
|
+
"503":
|
|
9392
|
+
description: Clone or GitHub App configuration failed
|
|
9393
|
+
content:
|
|
9394
|
+
application/json:
|
|
9395
|
+
schema:
|
|
9396
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
9397
|
+
|
|
9398
|
+
/workspaces/{workspaceId}/rules-skills/pull-requests:
|
|
9399
|
+
post:
|
|
9400
|
+
tags: [AgenticFoundation]
|
|
9401
|
+
summary: Open a Rules & Skills remediation pull request
|
|
9402
|
+
description: >
|
|
9403
|
+
Applies `proposedFiles` (or a future create-mode session) onto a non-default
|
|
9404
|
+
branch via the Automations GitHub App installation and opens a pull request.
|
|
9405
|
+
Never pushes to the default branch. PR title/body identify the change as
|
|
9406
|
+
platform-generated and link back to `/agentic-foundation/rules-skills`.
|
|
9407
|
+
Requires workspace editor or admin. Same write-permission gate as readiness fixes.
|
|
9408
|
+
operationId: postRulesSkillsPullRequest
|
|
9409
|
+
parameters:
|
|
9410
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
9411
|
+
requestBody:
|
|
9412
|
+
required: true
|
|
9413
|
+
content:
|
|
9414
|
+
application/json:
|
|
9415
|
+
schema:
|
|
9416
|
+
$ref: "#/components/schemas/RulesSkillsOpenPullRequestRequestDto"
|
|
9417
|
+
examples:
|
|
9418
|
+
validateMode:
|
|
9419
|
+
value:
|
|
9420
|
+
repoId: "11111111-1111-4111-8111-111111111111"
|
|
9421
|
+
mode: validate
|
|
9422
|
+
proposedFiles:
|
|
9423
|
+
- path: ".cursor/rules/foo.mdc"
|
|
9424
|
+
action: rename
|
|
9425
|
+
previousPath: ".cursor/rules/foo.md"
|
|
9426
|
+
content: "---\ndescription: example\nglobs: \"**/*\"\n---\n"
|
|
9427
|
+
responses:
|
|
9428
|
+
"200":
|
|
9429
|
+
description: Pull request created
|
|
9430
|
+
content:
|
|
9431
|
+
application/json:
|
|
9432
|
+
schema:
|
|
9433
|
+
$ref: "#/components/schemas/RulesSkillsOpenPullRequestResponseDto"
|
|
9434
|
+
"400":
|
|
9435
|
+
description: >
|
|
9436
|
+
Missing proposed files or invalid body (`code: proposed_files_required`).
|
|
9437
|
+
content:
|
|
9438
|
+
application/json:
|
|
9439
|
+
schema:
|
|
9440
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
9441
|
+
"401":
|
|
9442
|
+
$ref: "#/components/responses/Unauthorized"
|
|
9443
|
+
"403":
|
|
9444
|
+
$ref: "#/components/responses/Forbidden"
|
|
9445
|
+
"404":
|
|
9446
|
+
description: Workspace or repository not found
|
|
9447
|
+
content:
|
|
9448
|
+
application/json:
|
|
9449
|
+
schema:
|
|
9450
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
9451
|
+
"422":
|
|
9452
|
+
description: GitHub installation lacks write permissions required for automated PRs
|
|
9453
|
+
content:
|
|
9454
|
+
application/json:
|
|
9455
|
+
schema:
|
|
9456
|
+
$ref: "#/components/schemas/GithubWritePermissionsRequiredErrorDto"
|
|
9457
|
+
"503":
|
|
9458
|
+
description: GitHub installation permissions could not be verified, or PR create failed
|
|
9459
|
+
content:
|
|
9460
|
+
application/json:
|
|
9461
|
+
schema:
|
|
9462
|
+
oneOf:
|
|
9463
|
+
- $ref: "#/components/schemas/GithubPermissionsCheckFailedErrorDto"
|
|
9464
|
+
- $ref: "#/components/schemas/ErrorMessageDto"
|
|
9465
|
+
|
|
9329
9466
|
/workspaces/{workspaceId}/readiness/issues/{issueId}/fix-guide:
|
|
9330
9467
|
get:
|
|
9331
9468
|
tags: [RepositoryReadiness]
|
|
@@ -22542,6 +22679,170 @@ components:
|
|
|
22542
22679
|
Required when the issue has unresolvedChoices. Must be one of those labels.
|
|
22543
22680
|
Stored on the fix row and stated in the worker prompt.
|
|
22544
22681
|
|
|
22682
|
+
RulesSkillsAssessedTools:
|
|
22683
|
+
type: string
|
|
22684
|
+
enum: [cursor, claude-code, both]
|
|
22685
|
+
description: >
|
|
22686
|
+
From the latest succeeded readiness scan (`agent_tool_assessed`). Never invent
|
|
22687
|
+
`both` without scan evidence.
|
|
22688
|
+
|
|
22689
|
+
RulesSkillsValidateRequestDto:
|
|
22690
|
+
type: object
|
|
22691
|
+
additionalProperties: false
|
|
22692
|
+
required: [repoId]
|
|
22693
|
+
properties:
|
|
22694
|
+
repoId:
|
|
22695
|
+
type: string
|
|
22696
|
+
format: uuid
|
|
22697
|
+
pathPrefixes:
|
|
22698
|
+
type: array
|
|
22699
|
+
maxItems: 32
|
|
22700
|
+
items:
|
|
22701
|
+
type: string
|
|
22702
|
+
maxLength: 512
|
|
22703
|
+
description: Optional relative path prefixes limiting the validate walk.
|
|
22704
|
+
|
|
22705
|
+
RulesSkillsFindingDto:
|
|
22706
|
+
type: object
|
|
22707
|
+
additionalProperties: false
|
|
22708
|
+
required: [id, kind, severity, code, path, message, criterionIds]
|
|
22709
|
+
properties:
|
|
22710
|
+
id:
|
|
22711
|
+
type: string
|
|
22712
|
+
kind:
|
|
22713
|
+
type: string
|
|
22714
|
+
enum: [structural, soft]
|
|
22715
|
+
severity:
|
|
22716
|
+
type: string
|
|
22717
|
+
enum: [fail, warn]
|
|
22718
|
+
code:
|
|
22719
|
+
type: string
|
|
22720
|
+
path:
|
|
22721
|
+
type: string
|
|
22722
|
+
message:
|
|
22723
|
+
type: string
|
|
22724
|
+
criterionIds:
|
|
22725
|
+
type: array
|
|
22726
|
+
items:
|
|
22727
|
+
type: string
|
|
22728
|
+
enum: [A1, A2, A3, A3a, A3b, A3c, A11]
|
|
22729
|
+
description: Empty when unmapped structural noise.
|
|
22730
|
+
|
|
22731
|
+
RulesSkillsSoftQualityCheckDto:
|
|
22732
|
+
type: object
|
|
22733
|
+
additionalProperties: false
|
|
22734
|
+
required: [code, status]
|
|
22735
|
+
properties:
|
|
22736
|
+
code:
|
|
22737
|
+
type: string
|
|
22738
|
+
status:
|
|
22739
|
+
type: string
|
|
22740
|
+
enum: [pass, fail, warn, skip]
|
|
22741
|
+
message:
|
|
22742
|
+
type: string
|
|
22743
|
+
path:
|
|
22744
|
+
type: string
|
|
22745
|
+
|
|
22746
|
+
RulesSkillsSoftQualitySummaryDto:
|
|
22747
|
+
type: object
|
|
22748
|
+
additionalProperties: false
|
|
22749
|
+
required: [passed, failCount, warnCount, checks]
|
|
22750
|
+
properties:
|
|
22751
|
+
passed:
|
|
22752
|
+
type: boolean
|
|
22753
|
+
description: True when there are no soft-quality fail findings (warns allowed).
|
|
22754
|
+
failCount:
|
|
22755
|
+
type: integer
|
|
22756
|
+
minimum: 0
|
|
22757
|
+
warnCount:
|
|
22758
|
+
type: integer
|
|
22759
|
+
minimum: 0
|
|
22760
|
+
checks:
|
|
22761
|
+
type: array
|
|
22762
|
+
items:
|
|
22763
|
+
$ref: "#/components/schemas/RulesSkillsSoftQualityCheckDto"
|
|
22764
|
+
|
|
22765
|
+
RulesSkillsProposedFileDto:
|
|
22766
|
+
type: object
|
|
22767
|
+
additionalProperties: false
|
|
22768
|
+
required: [path, action]
|
|
22769
|
+
properties:
|
|
22770
|
+
path:
|
|
22771
|
+
type: string
|
|
22772
|
+
maxLength: 1024
|
|
22773
|
+
action:
|
|
22774
|
+
type: string
|
|
22775
|
+
enum: [create, update, delete, rename]
|
|
22776
|
+
content:
|
|
22777
|
+
type: string
|
|
22778
|
+
description: Full file contents for create/update/rename target.
|
|
22779
|
+
previousPath:
|
|
22780
|
+
type: string
|
|
22781
|
+
maxLength: 1024
|
|
22782
|
+
description: Source path when action is rename.
|
|
22783
|
+
|
|
22784
|
+
RulesSkillsValidateResponseDto:
|
|
22785
|
+
type: object
|
|
22786
|
+
additionalProperties: false
|
|
22787
|
+
required: [assessedTools, findings, softQualitySummary, proposedFiles]
|
|
22788
|
+
properties:
|
|
22789
|
+
assessedTools:
|
|
22790
|
+
$ref: "#/components/schemas/RulesSkillsAssessedTools"
|
|
22791
|
+
findings:
|
|
22792
|
+
type: array
|
|
22793
|
+
items:
|
|
22794
|
+
$ref: "#/components/schemas/RulesSkillsFindingDto"
|
|
22795
|
+
softQualitySummary:
|
|
22796
|
+
$ref: "#/components/schemas/RulesSkillsSoftQualitySummaryDto"
|
|
22797
|
+
proposedFiles:
|
|
22798
|
+
type: array
|
|
22799
|
+
items:
|
|
22800
|
+
$ref: "#/components/schemas/RulesSkillsProposedFileDto"
|
|
22801
|
+
note:
|
|
22802
|
+
type: string
|
|
22803
|
+
description: Quiet-case note (e.g. empty tree under pathPrefixes).
|
|
22804
|
+
|
|
22805
|
+
RulesSkillsOpenPullRequestRequestDto:
|
|
22806
|
+
type: object
|
|
22807
|
+
additionalProperties: false
|
|
22808
|
+
required: [repoId, mode]
|
|
22809
|
+
properties:
|
|
22810
|
+
repoId:
|
|
22811
|
+
type: string
|
|
22812
|
+
format: uuid
|
|
22813
|
+
mode:
|
|
22814
|
+
type: string
|
|
22815
|
+
enum: [validate, create]
|
|
22816
|
+
sessionId:
|
|
22817
|
+
type: string
|
|
22818
|
+
format: uuid
|
|
22819
|
+
description: Reserved for Create-mode sessions; validate mode uses proposedFiles.
|
|
22820
|
+
proposedFiles:
|
|
22821
|
+
type: array
|
|
22822
|
+
minItems: 1
|
|
22823
|
+
maxItems: 200
|
|
22824
|
+
items:
|
|
22825
|
+
$ref: "#/components/schemas/RulesSkillsProposedFileDto"
|
|
22826
|
+
title:
|
|
22827
|
+
type: string
|
|
22828
|
+
maxLength: 200
|
|
22829
|
+
body:
|
|
22830
|
+
type: string
|
|
22831
|
+
maxLength: 8000
|
|
22832
|
+
|
|
22833
|
+
RulesSkillsOpenPullRequestResponseDto:
|
|
22834
|
+
type: object
|
|
22835
|
+
additionalProperties: false
|
|
22836
|
+
required: [prUrl, prNumber, branchName]
|
|
22837
|
+
properties:
|
|
22838
|
+
prUrl:
|
|
22839
|
+
type: string
|
|
22840
|
+
format: uri
|
|
22841
|
+
prNumber:
|
|
22842
|
+
type: integer
|
|
22843
|
+
branchName:
|
|
22844
|
+
type: string
|
|
22845
|
+
|
|
22545
22846
|
PhaseRoleDto:
|
|
22546
22847
|
type: object
|
|
22547
22848
|
required: [phase, assignment]
|
package/package.json
CHANGED
package/src/generated/openapi.ts
CHANGED
|
@@ -3344,6 +3344,46 @@ export interface paths {
|
|
|
3344
3344
|
patch?: never;
|
|
3345
3345
|
trace?: never;
|
|
3346
3346
|
};
|
|
3347
|
+
"/workspaces/{workspaceId}/rules-skills/validate": {
|
|
3348
|
+
parameters: {
|
|
3349
|
+
query?: never;
|
|
3350
|
+
header?: never;
|
|
3351
|
+
path?: never;
|
|
3352
|
+
cookie?: never;
|
|
3353
|
+
};
|
|
3354
|
+
get?: never;
|
|
3355
|
+
put?: never;
|
|
3356
|
+
/**
|
|
3357
|
+
* Validate agent rules and skills for a repository
|
|
3358
|
+
* @description Clones the connected GitHub repository via the workspace GitHub App installation and runs the shared Rules & Skills validate engine (structural + soft quality). Assessed tools come from the latest **succeeded** readiness scan (`agent_tool_assessed`: `cursor` | `claude-code` | `both`). Returns draft `proposedFiles` for review (not committed). Workspace member auth; write permissions are not required for validate-only.
|
|
3359
|
+
*/
|
|
3360
|
+
post: operations["postRulesSkillsValidate"];
|
|
3361
|
+
delete?: never;
|
|
3362
|
+
options?: never;
|
|
3363
|
+
head?: never;
|
|
3364
|
+
patch?: never;
|
|
3365
|
+
trace?: never;
|
|
3366
|
+
};
|
|
3367
|
+
"/workspaces/{workspaceId}/rules-skills/pull-requests": {
|
|
3368
|
+
parameters: {
|
|
3369
|
+
query?: never;
|
|
3370
|
+
header?: never;
|
|
3371
|
+
path?: never;
|
|
3372
|
+
cookie?: never;
|
|
3373
|
+
};
|
|
3374
|
+
get?: never;
|
|
3375
|
+
put?: never;
|
|
3376
|
+
/**
|
|
3377
|
+
* Open a Rules & Skills remediation pull request
|
|
3378
|
+
* @description Applies `proposedFiles` (or a future create-mode session) onto a non-default branch via the Automations GitHub App installation and opens a pull request. Never pushes to the default branch. PR title/body identify the change as platform-generated and link back to `/agentic-foundation/rules-skills`. Requires workspace editor or admin. Same write-permission gate as readiness fixes.
|
|
3379
|
+
*/
|
|
3380
|
+
post: operations["postRulesSkillsPullRequest"];
|
|
3381
|
+
delete?: never;
|
|
3382
|
+
options?: never;
|
|
3383
|
+
head?: never;
|
|
3384
|
+
patch?: never;
|
|
3385
|
+
trace?: never;
|
|
3386
|
+
};
|
|
3347
3387
|
"/workspaces/{workspaceId}/readiness/issues/{issueId}/fix-guide": {
|
|
3348
3388
|
parameters: {
|
|
3349
3389
|
query?: never;
|
|
@@ -9243,6 +9283,80 @@ export interface components {
|
|
|
9243
9283
|
/** @description Required when the issue has unresolvedChoices. Must be one of those labels. Stored on the fix row and stated in the worker prompt. */
|
|
9244
9284
|
patternChoice?: string;
|
|
9245
9285
|
};
|
|
9286
|
+
/**
|
|
9287
|
+
* @description From the latest succeeded readiness scan (`agent_tool_assessed`). Never invent `both` without scan evidence.
|
|
9288
|
+
* @enum {string}
|
|
9289
|
+
*/
|
|
9290
|
+
RulesSkillsAssessedTools: "cursor" | "claude-code" | "both";
|
|
9291
|
+
RulesSkillsValidateRequestDto: {
|
|
9292
|
+
/** Format: uuid */
|
|
9293
|
+
repoId: string;
|
|
9294
|
+
/** @description Optional relative path prefixes limiting the validate walk. */
|
|
9295
|
+
pathPrefixes?: string[];
|
|
9296
|
+
};
|
|
9297
|
+
RulesSkillsFindingDto: {
|
|
9298
|
+
id: string;
|
|
9299
|
+
/** @enum {string} */
|
|
9300
|
+
kind: "structural" | "soft";
|
|
9301
|
+
/** @enum {string} */
|
|
9302
|
+
severity: "fail" | "warn";
|
|
9303
|
+
code: string;
|
|
9304
|
+
path: string;
|
|
9305
|
+
message: string;
|
|
9306
|
+
/** @description Empty when unmapped structural noise. */
|
|
9307
|
+
criterionIds: ("A1" | "A2" | "A3" | "A3a" | "A3b" | "A3c" | "A11")[];
|
|
9308
|
+
};
|
|
9309
|
+
RulesSkillsSoftQualityCheckDto: {
|
|
9310
|
+
code: string;
|
|
9311
|
+
/** @enum {string} */
|
|
9312
|
+
status: "pass" | "fail" | "warn" | "skip";
|
|
9313
|
+
message?: string;
|
|
9314
|
+
path?: string;
|
|
9315
|
+
};
|
|
9316
|
+
RulesSkillsSoftQualitySummaryDto: {
|
|
9317
|
+
/** @description True when there are no soft-quality fail findings (warns allowed). */
|
|
9318
|
+
passed: boolean;
|
|
9319
|
+
failCount: number;
|
|
9320
|
+
warnCount: number;
|
|
9321
|
+
checks: components["schemas"]["RulesSkillsSoftQualityCheckDto"][];
|
|
9322
|
+
};
|
|
9323
|
+
RulesSkillsProposedFileDto: {
|
|
9324
|
+
path: string;
|
|
9325
|
+
/** @enum {string} */
|
|
9326
|
+
action: "create" | "update" | "delete" | "rename";
|
|
9327
|
+
/** @description Full file contents for create/update/rename target. */
|
|
9328
|
+
content?: string;
|
|
9329
|
+
/** @description Source path when action is rename. */
|
|
9330
|
+
previousPath?: string;
|
|
9331
|
+
};
|
|
9332
|
+
RulesSkillsValidateResponseDto: {
|
|
9333
|
+
assessedTools: components["schemas"]["RulesSkillsAssessedTools"];
|
|
9334
|
+
findings: components["schemas"]["RulesSkillsFindingDto"][];
|
|
9335
|
+
softQualitySummary: components["schemas"]["RulesSkillsSoftQualitySummaryDto"];
|
|
9336
|
+
proposedFiles: components["schemas"]["RulesSkillsProposedFileDto"][];
|
|
9337
|
+
/** @description Quiet-case note (e.g. empty tree under pathPrefixes). */
|
|
9338
|
+
note?: string;
|
|
9339
|
+
};
|
|
9340
|
+
RulesSkillsOpenPullRequestRequestDto: {
|
|
9341
|
+
/** Format: uuid */
|
|
9342
|
+
repoId: string;
|
|
9343
|
+
/** @enum {string} */
|
|
9344
|
+
mode: "validate" | "create";
|
|
9345
|
+
/**
|
|
9346
|
+
* Format: uuid
|
|
9347
|
+
* @description Reserved for Create-mode sessions; validate mode uses proposedFiles.
|
|
9348
|
+
*/
|
|
9349
|
+
sessionId?: string;
|
|
9350
|
+
proposedFiles?: components["schemas"]["RulesSkillsProposedFileDto"][];
|
|
9351
|
+
title?: string;
|
|
9352
|
+
body?: string;
|
|
9353
|
+
};
|
|
9354
|
+
RulesSkillsOpenPullRequestResponseDto: {
|
|
9355
|
+
/** Format: uri */
|
|
9356
|
+
prUrl: string;
|
|
9357
|
+
prNumber: number;
|
|
9358
|
+
branchName: string;
|
|
9359
|
+
};
|
|
9246
9360
|
PhaseRoleDto: {
|
|
9247
9361
|
phase: string;
|
|
9248
9362
|
/** @enum {string} */
|
|
@@ -13132,6 +13246,15 @@ export type ReadinessFixGuideDto = components['schemas']['ReadinessFixGuideDto']
|
|
|
13132
13246
|
export type FixRetryableErrorCode = components['schemas']['FixRetryableErrorCode'];
|
|
13133
13247
|
export type FixNonRetryableErrorCode = components['schemas']['FixNonRetryableErrorCode'];
|
|
13134
13248
|
export type CreateFixRequestBodyDto = components['schemas']['CreateFixRequestBodyDto'];
|
|
13249
|
+
export type RulesSkillsAssessedTools = components['schemas']['RulesSkillsAssessedTools'];
|
|
13250
|
+
export type RulesSkillsValidateRequestDto = components['schemas']['RulesSkillsValidateRequestDto'];
|
|
13251
|
+
export type RulesSkillsFindingDto = components['schemas']['RulesSkillsFindingDto'];
|
|
13252
|
+
export type RulesSkillsSoftQualityCheckDto = components['schemas']['RulesSkillsSoftQualityCheckDto'];
|
|
13253
|
+
export type RulesSkillsSoftQualitySummaryDto = components['schemas']['RulesSkillsSoftQualitySummaryDto'];
|
|
13254
|
+
export type RulesSkillsProposedFileDto = components['schemas']['RulesSkillsProposedFileDto'];
|
|
13255
|
+
export type RulesSkillsValidateResponseDto = components['schemas']['RulesSkillsValidateResponseDto'];
|
|
13256
|
+
export type RulesSkillsOpenPullRequestRequestDto = components['schemas']['RulesSkillsOpenPullRequestRequestDto'];
|
|
13257
|
+
export type RulesSkillsOpenPullRequestResponseDto = components['schemas']['RulesSkillsOpenPullRequestResponseDto'];
|
|
13135
13258
|
export type PhaseRoleDto = components['schemas']['PhaseRoleDto'];
|
|
13136
13259
|
export type SquadMemberDto = components['schemas']['SquadMemberDto'];
|
|
13137
13260
|
export type CustomWorkStreamTaskDto = components['schemas']['CustomWorkStreamTaskDto'];
|
|
@@ -22868,6 +22991,134 @@ export interface operations {
|
|
|
22868
22991
|
};
|
|
22869
22992
|
};
|
|
22870
22993
|
};
|
|
22994
|
+
postRulesSkillsValidate: {
|
|
22995
|
+
parameters: {
|
|
22996
|
+
query?: never;
|
|
22997
|
+
header?: never;
|
|
22998
|
+
path: {
|
|
22999
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
23000
|
+
};
|
|
23001
|
+
cookie?: never;
|
|
23002
|
+
};
|
|
23003
|
+
requestBody: {
|
|
23004
|
+
content: {
|
|
23005
|
+
"application/json": components["schemas"]["RulesSkillsValidateRequestDto"];
|
|
23006
|
+
};
|
|
23007
|
+
};
|
|
23008
|
+
responses: {
|
|
23009
|
+
/** @description Validation result with findings and draft proposed files */
|
|
23010
|
+
200: {
|
|
23011
|
+
headers: {
|
|
23012
|
+
[name: string]: unknown;
|
|
23013
|
+
};
|
|
23014
|
+
content: {
|
|
23015
|
+
"application/json": components["schemas"]["RulesSkillsValidateResponseDto"];
|
|
23016
|
+
};
|
|
23017
|
+
};
|
|
23018
|
+
/** @description Invalid body (e.g. malformed repoId) */
|
|
23019
|
+
400: {
|
|
23020
|
+
headers: {
|
|
23021
|
+
[name: string]: unknown;
|
|
23022
|
+
};
|
|
23023
|
+
content: {
|
|
23024
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
23025
|
+
};
|
|
23026
|
+
};
|
|
23027
|
+
401: components["responses"]["Unauthorized"];
|
|
23028
|
+
403: components["responses"]["Forbidden"];
|
|
23029
|
+
/** @description Workspace or repository not found / not connected */
|
|
23030
|
+
404: {
|
|
23031
|
+
headers: {
|
|
23032
|
+
[name: string]: unknown;
|
|
23033
|
+
};
|
|
23034
|
+
content: {
|
|
23035
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
23036
|
+
};
|
|
23037
|
+
};
|
|
23038
|
+
/** @description No succeeded readiness scan for the repo (`code: readiness_scan_required`), or repository is not a GitHub-connected readiness repo. */
|
|
23039
|
+
422: {
|
|
23040
|
+
headers: {
|
|
23041
|
+
[name: string]: unknown;
|
|
23042
|
+
};
|
|
23043
|
+
content: {
|
|
23044
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
23045
|
+
};
|
|
23046
|
+
};
|
|
23047
|
+
/** @description Clone or GitHub App configuration failed */
|
|
23048
|
+
503: {
|
|
23049
|
+
headers: {
|
|
23050
|
+
[name: string]: unknown;
|
|
23051
|
+
};
|
|
23052
|
+
content: {
|
|
23053
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
23054
|
+
};
|
|
23055
|
+
};
|
|
23056
|
+
};
|
|
23057
|
+
};
|
|
23058
|
+
postRulesSkillsPullRequest: {
|
|
23059
|
+
parameters: {
|
|
23060
|
+
query?: never;
|
|
23061
|
+
header?: never;
|
|
23062
|
+
path: {
|
|
23063
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
23064
|
+
};
|
|
23065
|
+
cookie?: never;
|
|
23066
|
+
};
|
|
23067
|
+
requestBody: {
|
|
23068
|
+
content: {
|
|
23069
|
+
"application/json": components["schemas"]["RulesSkillsOpenPullRequestRequestDto"];
|
|
23070
|
+
};
|
|
23071
|
+
};
|
|
23072
|
+
responses: {
|
|
23073
|
+
/** @description Pull request created */
|
|
23074
|
+
200: {
|
|
23075
|
+
headers: {
|
|
23076
|
+
[name: string]: unknown;
|
|
23077
|
+
};
|
|
23078
|
+
content: {
|
|
23079
|
+
"application/json": components["schemas"]["RulesSkillsOpenPullRequestResponseDto"];
|
|
23080
|
+
};
|
|
23081
|
+
};
|
|
23082
|
+
/** @description Missing proposed files or invalid body (`code: proposed_files_required`). */
|
|
23083
|
+
400: {
|
|
23084
|
+
headers: {
|
|
23085
|
+
[name: string]: unknown;
|
|
23086
|
+
};
|
|
23087
|
+
content: {
|
|
23088
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
23089
|
+
};
|
|
23090
|
+
};
|
|
23091
|
+
401: components["responses"]["Unauthorized"];
|
|
23092
|
+
403: components["responses"]["Forbidden"];
|
|
23093
|
+
/** @description Workspace or repository not found */
|
|
23094
|
+
404: {
|
|
23095
|
+
headers: {
|
|
23096
|
+
[name: string]: unknown;
|
|
23097
|
+
};
|
|
23098
|
+
content: {
|
|
23099
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
23100
|
+
};
|
|
23101
|
+
};
|
|
23102
|
+
/** @description GitHub installation lacks write permissions required for automated PRs */
|
|
23103
|
+
422: {
|
|
23104
|
+
headers: {
|
|
23105
|
+
[name: string]: unknown;
|
|
23106
|
+
};
|
|
23107
|
+
content: {
|
|
23108
|
+
"application/json": components["schemas"]["GithubWritePermissionsRequiredErrorDto"];
|
|
23109
|
+
};
|
|
23110
|
+
};
|
|
23111
|
+
/** @description GitHub installation permissions could not be verified, or PR create failed */
|
|
23112
|
+
503: {
|
|
23113
|
+
headers: {
|
|
23114
|
+
[name: string]: unknown;
|
|
23115
|
+
};
|
|
23116
|
+
content: {
|
|
23117
|
+
"application/json": components["schemas"]["GithubPermissionsCheckFailedErrorDto"] | components["schemas"]["ErrorMessageDto"];
|
|
23118
|
+
};
|
|
23119
|
+
};
|
|
23120
|
+
};
|
|
23121
|
+
};
|
|
22871
23122
|
getReadinessIssueFixGuide: {
|
|
22872
23123
|
parameters: {
|
|
22873
23124
|
query?: never;
|