@thinkai/tai-api-contract 2.189.0 → 2.190.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 +121 -3
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +142 -3
- package/package.json +1 -1
- package/src/generated/openapi.ts +121 -3
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.190.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}/...`.
|
|
@@ -9397,16 +9397,94 @@ paths:
|
|
|
9397
9397
|
schema:
|
|
9398
9398
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
9399
9399
|
|
|
9400
|
+
/workspaces/{workspaceId}/rules-skills/create:
|
|
9401
|
+
post:
|
|
9402
|
+
tags: [AgenticFoundation]
|
|
9403
|
+
summary: Draft Rules & Skills via agent execution
|
|
9404
|
+
description: >
|
|
9405
|
+
Generates hub (≥1 of `AGENTS.md` / `CLAUDE.md` per assessed tools) plus ≥1 rule
|
|
9406
|
+
and ≥1 skill with correct stack paths using workspace **agent execution**
|
|
9407
|
+
(`ThinkAiAgent` / same credential path as the fix processor — not Fix Processor
|
|
9408
|
+
enqueue). Runs the shared soft-quality gate from the validate engine.
|
|
9409
|
+
Soft failures block Open PR unless `overrideSoftQuality` + `overrideReason`
|
|
9410
|
+
(audited). Structural failures are never overridable. Requires workspace
|
|
9411
|
+
editor or admin. Assessed tools come from the latest succeeded readiness scan.
|
|
9412
|
+
operationId: postRulesSkillsCreate
|
|
9413
|
+
parameters:
|
|
9414
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
9415
|
+
requestBody:
|
|
9416
|
+
required: true
|
|
9417
|
+
content:
|
|
9418
|
+
application/json:
|
|
9419
|
+
schema:
|
|
9420
|
+
$ref: "#/components/schemas/RulesSkillsCreateRequestDto"
|
|
9421
|
+
examples:
|
|
9422
|
+
create:
|
|
9423
|
+
value:
|
|
9424
|
+
repoId: "11111111-1111-4111-8111-111111111111"
|
|
9425
|
+
criterionIds: [A1, A3]
|
|
9426
|
+
intent: "Add a skill for running the monorepo test suite"
|
|
9427
|
+
responses:
|
|
9428
|
+
"200":
|
|
9429
|
+
description: Drafts generated (may include soft-quality blockingFailures)
|
|
9430
|
+
content:
|
|
9431
|
+
application/json:
|
|
9432
|
+
schema:
|
|
9433
|
+
$ref: "#/components/schemas/RulesSkillsCreateResponseDto"
|
|
9434
|
+
"400":
|
|
9435
|
+
description: >
|
|
9436
|
+
Missing intent and criterionIds, or override without reason
|
|
9437
|
+
(`code: intent_or_criterion_required` | `override_reason_required`)
|
|
9438
|
+
content:
|
|
9439
|
+
application/json:
|
|
9440
|
+
schema:
|
|
9441
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
9442
|
+
"401":
|
|
9443
|
+
$ref: "#/components/responses/Unauthorized"
|
|
9444
|
+
"403":
|
|
9445
|
+
$ref: "#/components/responses/Forbidden"
|
|
9446
|
+
"404":
|
|
9447
|
+
description: Workspace, repository, or GitHub installation not found
|
|
9448
|
+
content:
|
|
9449
|
+
application/json:
|
|
9450
|
+
schema:
|
|
9451
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
9452
|
+
"422":
|
|
9453
|
+
description: >
|
|
9454
|
+
No succeeded readiness scan (`readiness_scan_required`), non-GitHub repo,
|
|
9455
|
+
or agent drafts missing required hub/rule/skill coverage
|
|
9456
|
+
(`rules_skills_create_incomplete`)
|
|
9457
|
+
content:
|
|
9458
|
+
application/json:
|
|
9459
|
+
schema:
|
|
9460
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
9461
|
+
"429":
|
|
9462
|
+
description: Create rate limit exceeded
|
|
9463
|
+
content:
|
|
9464
|
+
application/json:
|
|
9465
|
+
schema:
|
|
9466
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
9467
|
+
"503":
|
|
9468
|
+
description: >
|
|
9469
|
+
Agent execution credential missing (`agent_execution_unavailable`) or
|
|
9470
|
+
clone/agent run failed (`rules_skills_create_failed`)
|
|
9471
|
+
content:
|
|
9472
|
+
application/json:
|
|
9473
|
+
schema:
|
|
9474
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
9475
|
+
|
|
9400
9476
|
/workspaces/{workspaceId}/rules-skills/pull-requests:
|
|
9401
9477
|
post:
|
|
9402
9478
|
tags: [AgenticFoundation]
|
|
9403
9479
|
summary: Open a Rules & Skills remediation pull request
|
|
9404
9480
|
description: >
|
|
9405
|
-
Applies `proposedFiles` (
|
|
9481
|
+
Applies `proposedFiles` (from validate or create drafts) onto a non-default
|
|
9406
9482
|
branch via the Automations GitHub App installation and opens a pull request.
|
|
9407
9483
|
Never pushes to the default branch. PR title/body identify the change as
|
|
9408
9484
|
platform-generated and link back to `/agentic-foundation/rules-skills`.
|
|
9409
9485
|
Requires workspace editor or admin. Same write-permission gate as readiness fixes.
|
|
9486
|
+
For create mode, pass the `drafts` returned by `POST .../rules-skills/create`
|
|
9487
|
+
as `proposedFiles` after soft-quality passes or a logged override.
|
|
9410
9488
|
operationId: postRulesSkillsPullRequest
|
|
9411
9489
|
parameters:
|
|
9412
9490
|
- $ref: "#/components/parameters/WorkspaceId"
|
|
@@ -22865,6 +22943,66 @@ components:
|
|
|
22865
22943
|
type: string
|
|
22866
22944
|
description: Quiet-case note (e.g. empty tree under pathPrefixes).
|
|
22867
22945
|
|
|
22946
|
+
RulesSkillsCreateRequestDto:
|
|
22947
|
+
type: object
|
|
22948
|
+
additionalProperties: false
|
|
22949
|
+
required: [repoId]
|
|
22950
|
+
properties:
|
|
22951
|
+
repoId:
|
|
22952
|
+
type: string
|
|
22953
|
+
format: uuid
|
|
22954
|
+
criterionIds:
|
|
22955
|
+
type: array
|
|
22956
|
+
maxItems: 16
|
|
22957
|
+
items:
|
|
22958
|
+
type: string
|
|
22959
|
+
enum: [A1, A2, A3, A3a, A3b, A3c, A11]
|
|
22960
|
+
description: >
|
|
22961
|
+
Optional criterion targets. At least one of `intent` or non-empty
|
|
22962
|
+
`criterionIds` is required.
|
|
22963
|
+
intent:
|
|
22964
|
+
type: string
|
|
22965
|
+
maxLength: 4000
|
|
22966
|
+
description: Free-text create intent (required when criterionIds is empty).
|
|
22967
|
+
notes:
|
|
22968
|
+
type: string
|
|
22969
|
+
maxLength: 8000
|
|
22970
|
+
overrideSoftQuality:
|
|
22971
|
+
type: boolean
|
|
22972
|
+
description: >
|
|
22973
|
+
When true, soft-quality fails are omitted from `blockingFailures`
|
|
22974
|
+
(structural fails always remain). Requires `overrideReason`; audited.
|
|
22975
|
+
overrideReason:
|
|
22976
|
+
type: string
|
|
22977
|
+
maxLength: 2000
|
|
22978
|
+
description: Required when overrideSoftQuality is true.
|
|
22979
|
+
|
|
22980
|
+
RulesSkillsCreateResponseDto:
|
|
22981
|
+
type: object
|
|
22982
|
+
additionalProperties: false
|
|
22983
|
+
required: [assessedTools, drafts, softQuality, blockingFailures, softQualityOverridden]
|
|
22984
|
+
properties:
|
|
22985
|
+
assessedTools:
|
|
22986
|
+
$ref: "#/components/schemas/RulesSkillsAssessedTools"
|
|
22987
|
+
drafts:
|
|
22988
|
+
type: array
|
|
22989
|
+
items:
|
|
22990
|
+
$ref: "#/components/schemas/RulesSkillsProposedFileDto"
|
|
22991
|
+
description: Draft patches for review; pass to open-PR as proposedFiles.
|
|
22992
|
+
softQuality:
|
|
22993
|
+
$ref: "#/components/schemas/RulesSkillsSoftQualitySummaryDto"
|
|
22994
|
+
blockingFailures:
|
|
22995
|
+
type: array
|
|
22996
|
+
items:
|
|
22997
|
+
$ref: "#/components/schemas/RulesSkillsFindingDto"
|
|
22998
|
+
description: >
|
|
22999
|
+
Structural fails always; soft fails unless softQualityOverridden.
|
|
23000
|
+
Open PR should wait until empty (or soft override was logged).
|
|
23001
|
+
softQualityOverridden:
|
|
23002
|
+
type: boolean
|
|
23003
|
+
note:
|
|
23004
|
+
type: string
|
|
23005
|
+
|
|
22868
23006
|
RulesSkillsOpenPullRequestRequestDto:
|
|
22869
23007
|
type: object
|
|
22870
23008
|
additionalProperties: false
|
|
@@ -22879,7 +23017,7 @@ components:
|
|
|
22879
23017
|
sessionId:
|
|
22880
23018
|
type: string
|
|
22881
23019
|
format: uuid
|
|
22882
|
-
description: Reserved for
|
|
23020
|
+
description: Reserved for persisted create sessions; currently pass proposedFiles.
|
|
22883
23021
|
proposedFiles:
|
|
22884
23022
|
type: array
|
|
22885
23023
|
minItems: 1
|
|
@@ -24124,6 +24262,7 @@ components:
|
|
|
24124
24262
|
- integrations.agent_execution.provider_changed
|
|
24125
24263
|
- integrations.repo_eligibility.overrides_changed
|
|
24126
24264
|
- integrations.repo_eligibility.languages_refresh_requested
|
|
24265
|
+
- rules_skills.soft_quality.override
|
|
24127
24266
|
- integrations.cursor.platform_key_enabled
|
|
24128
24267
|
- integrations.cursor.platform_key_disabled
|
|
24129
24268
|
- member.invited
|
package/package.json
CHANGED
package/src/generated/openapi.ts
CHANGED
|
@@ -3364,6 +3364,26 @@ export interface paths {
|
|
|
3364
3364
|
patch?: never;
|
|
3365
3365
|
trace?: never;
|
|
3366
3366
|
};
|
|
3367
|
+
"/workspaces/{workspaceId}/rules-skills/create": {
|
|
3368
|
+
parameters: {
|
|
3369
|
+
query?: never;
|
|
3370
|
+
header?: never;
|
|
3371
|
+
path?: never;
|
|
3372
|
+
cookie?: never;
|
|
3373
|
+
};
|
|
3374
|
+
get?: never;
|
|
3375
|
+
put?: never;
|
|
3376
|
+
/**
|
|
3377
|
+
* Draft Rules & Skills via agent execution
|
|
3378
|
+
* @description Generates hub (≥1 of `AGENTS.md` / `CLAUDE.md` per assessed tools) plus ≥1 rule and ≥1 skill with correct stack paths using workspace **agent execution** (`ThinkAiAgent` / same credential path as the fix processor — not Fix Processor enqueue). Runs the shared soft-quality gate from the validate engine. Soft failures block Open PR unless `overrideSoftQuality` + `overrideReason` (audited). Structural failures are never overridable. Requires workspace editor or admin. Assessed tools come from the latest succeeded readiness scan.
|
|
3379
|
+
*/
|
|
3380
|
+
post: operations["postRulesSkillsCreate"];
|
|
3381
|
+
delete?: never;
|
|
3382
|
+
options?: never;
|
|
3383
|
+
head?: never;
|
|
3384
|
+
patch?: never;
|
|
3385
|
+
trace?: never;
|
|
3386
|
+
};
|
|
3367
3387
|
"/workspaces/{workspaceId}/rules-skills/pull-requests": {
|
|
3368
3388
|
parameters: {
|
|
3369
3389
|
query?: never;
|
|
@@ -3375,7 +3395,7 @@ export interface paths {
|
|
|
3375
3395
|
put?: never;
|
|
3376
3396
|
/**
|
|
3377
3397
|
* Open a Rules & Skills remediation pull request
|
|
3378
|
-
* @description Applies `proposedFiles` (
|
|
3398
|
+
* @description Applies `proposedFiles` (from validate or create drafts) 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. For create mode, pass the `drafts` returned by `POST .../rules-skills/create` as `proposedFiles` after soft-quality passes or a logged override.
|
|
3379
3399
|
*/
|
|
3380
3400
|
post: operations["postRulesSkillsPullRequest"];
|
|
3381
3401
|
delete?: never;
|
|
@@ -9367,6 +9387,29 @@ export interface components {
|
|
|
9367
9387
|
/** @description Quiet-case note (e.g. empty tree under pathPrefixes). */
|
|
9368
9388
|
note?: string;
|
|
9369
9389
|
};
|
|
9390
|
+
RulesSkillsCreateRequestDto: {
|
|
9391
|
+
/** Format: uuid */
|
|
9392
|
+
repoId: string;
|
|
9393
|
+
/** @description Optional criterion targets. At least one of `intent` or non-empty `criterionIds` is required. */
|
|
9394
|
+
criterionIds?: ("A1" | "A2" | "A3" | "A3a" | "A3b" | "A3c" | "A11")[];
|
|
9395
|
+
/** @description Free-text create intent (required when criterionIds is empty). */
|
|
9396
|
+
intent?: string;
|
|
9397
|
+
notes?: string;
|
|
9398
|
+
/** @description When true, soft-quality fails are omitted from `blockingFailures` (structural fails always remain). Requires `overrideReason`; audited. */
|
|
9399
|
+
overrideSoftQuality?: boolean;
|
|
9400
|
+
/** @description Required when overrideSoftQuality is true. */
|
|
9401
|
+
overrideReason?: string;
|
|
9402
|
+
};
|
|
9403
|
+
RulesSkillsCreateResponseDto: {
|
|
9404
|
+
assessedTools: components["schemas"]["RulesSkillsAssessedTools"];
|
|
9405
|
+
/** @description Draft patches for review; pass to open-PR as proposedFiles. */
|
|
9406
|
+
drafts: components["schemas"]["RulesSkillsProposedFileDto"][];
|
|
9407
|
+
softQuality: components["schemas"]["RulesSkillsSoftQualitySummaryDto"];
|
|
9408
|
+
/** @description Structural fails always; soft fails unless softQualityOverridden. Open PR should wait until empty (or soft override was logged). */
|
|
9409
|
+
blockingFailures: components["schemas"]["RulesSkillsFindingDto"][];
|
|
9410
|
+
softQualityOverridden: boolean;
|
|
9411
|
+
note?: string;
|
|
9412
|
+
};
|
|
9370
9413
|
RulesSkillsOpenPullRequestRequestDto: {
|
|
9371
9414
|
/** Format: uuid */
|
|
9372
9415
|
repoId: string;
|
|
@@ -9374,7 +9417,7 @@ export interface components {
|
|
|
9374
9417
|
mode: "validate" | "create";
|
|
9375
9418
|
/**
|
|
9376
9419
|
* Format: uuid
|
|
9377
|
-
* @description Reserved for
|
|
9420
|
+
* @description Reserved for persisted create sessions; currently pass proposedFiles.
|
|
9378
9421
|
*/
|
|
9379
9422
|
sessionId?: string;
|
|
9380
9423
|
proposedFiles?: components["schemas"]["RulesSkillsProposedFileDto"][];
|
|
@@ -9942,7 +9985,7 @@ export interface components {
|
|
|
9942
9985
|
* @description Type of workspace lifecycle event.
|
|
9943
9986
|
* @enum {string}
|
|
9944
9987
|
*/
|
|
9945
|
-
ActivityLogEventTypeDto: "repo.added" | "repo.removed" | "repo.readded" | "integration.github.added" | "integration.github.updated" | "integration.github.removed" | "integration.github.permissions_changed" | "integration.github.suspended" | "integration.github.unsuspended" | "integration.github.repo_added" | "integration.github.repo_removed" | "fix.requested" | "fix.generating" | "fix.pr_created" | "fix.merged" | "fix.failed" | "readiness.scan_started" | "readiness.scan_completed" | "readiness.scan_failed" | "readiness.scan_partial" | "code_insights.design_run_started" | "integrations.agent_execution.provider_changed" | "integrations.repo_eligibility.overrides_changed" | "integrations.repo_eligibility.languages_refresh_requested" | "integrations.cursor.platform_key_enabled" | "integrations.cursor.platform_key_disabled" | "member.invited" | "member.invite_accepted" | "member.invite_rejected" | "member.role_changed" | "member.removed" | "hris.personio.sync_started" | "hris.personio.sync_completed" | "hris.personio.sync_failed" | "hris.zenhr.sync_started" | "hris.zenhr.sync_completed" | "hris.zenhr.sync_failed" | "hris.zelt.sync_started" | "hris.zelt.sync_completed" | "hris.zelt.sync_failed" | "hris.hibob.sync_started" | "hris.hibob.sync_completed" | "hris.hibob.sync_failed" | "hris.sync_started" | "hris.sync_completed" | "hris.sync_failed" | "repo.sync_skipped" | "integrations.cursor.execution_key.added" | "integrations.cursor.execution_key.updated" | "integrations.cursor.execution_key.removed" | "integrations.cursor.execution_key.check_failed" | "integrations.cursor.admin_key.added" | "integrations.cursor.admin_key.updated" | "integrations.cursor.admin_key.removed" | "integrations.claude.execution_key.added" | "integrations.claude.execution_key.updated" | "integrations.claude.execution_key.removed" | "integrations.claude.execution_key.check_failed" | "integrations.claude.admin_key.added" | "integrations.claude.admin_key.updated" | "integrations.claude.admin_key.removed" | "integrations.claude.analytics_key.added" | "integrations.claude.analytics_key.updated" | "integrations.claude.analytics_key.removed" | "integrations.code_intelligence.settings_changed" | "integrations.code_intelligence.execution_key.added" | "integrations.code_intelligence.execution_key.updated" | "integrations.code_intelligence.execution_key.removed" | "integrations.code_intelligence.execution_key.check_failed" | "readiness.scan_precheck_failed" | "productivity.ingest.completed" | "productivity.ingest.failed" | "productivity.ingest.skipped" | "productivity.ingest.repo_skipped" | "productivity.ingest.coverage_gap_detected" | "integrations.newrelic.added" | "integrations.newrelic.removed" | "integrations.newrelic.sync_completed" | "integrations.newrelic.sync_failed" | "integrations.prometheus.added" | "integrations.prometheus.removed" | "integrations.prometheus.sync_completed" | "integrations.prometheus.sync_failed" | "integrations.grafana.added" | "integrations.grafana.removed" | "integrations.grafana.sync_completed" | "integrations.grafana.sync_failed" | "integrations.datadog.added" | "integrations.datadog.removed" | "integrations.datadog.sync_completed" | "integrations.datadog.sync_failed" | "integrations.zelt.added" | "integrations.zelt.removed" | "report.exported" | "report.assessment_stored" | "report.assessment_link_sent" | "report.assessment_link_revoked" | "report.assessment_downloaded" | "report.assessment_hidden" | "report.assessment_restored" | "workspace.aggregate_use.changed" | "workspace.assessment_rollout.changed";
|
|
9988
|
+
ActivityLogEventTypeDto: "repo.added" | "repo.removed" | "repo.readded" | "integration.github.added" | "integration.github.updated" | "integration.github.removed" | "integration.github.permissions_changed" | "integration.github.suspended" | "integration.github.unsuspended" | "integration.github.repo_added" | "integration.github.repo_removed" | "fix.requested" | "fix.generating" | "fix.pr_created" | "fix.merged" | "fix.failed" | "readiness.scan_started" | "readiness.scan_completed" | "readiness.scan_failed" | "readiness.scan_partial" | "code_insights.design_run_started" | "integrations.agent_execution.provider_changed" | "integrations.repo_eligibility.overrides_changed" | "integrations.repo_eligibility.languages_refresh_requested" | "rules_skills.soft_quality.override" | "integrations.cursor.platform_key_enabled" | "integrations.cursor.platform_key_disabled" | "member.invited" | "member.invite_accepted" | "member.invite_rejected" | "member.role_changed" | "member.removed" | "hris.personio.sync_started" | "hris.personio.sync_completed" | "hris.personio.sync_failed" | "hris.zenhr.sync_started" | "hris.zenhr.sync_completed" | "hris.zenhr.sync_failed" | "hris.zelt.sync_started" | "hris.zelt.sync_completed" | "hris.zelt.sync_failed" | "hris.hibob.sync_started" | "hris.hibob.sync_completed" | "hris.hibob.sync_failed" | "hris.sync_started" | "hris.sync_completed" | "hris.sync_failed" | "repo.sync_skipped" | "integrations.cursor.execution_key.added" | "integrations.cursor.execution_key.updated" | "integrations.cursor.execution_key.removed" | "integrations.cursor.execution_key.check_failed" | "integrations.cursor.admin_key.added" | "integrations.cursor.admin_key.updated" | "integrations.cursor.admin_key.removed" | "integrations.claude.execution_key.added" | "integrations.claude.execution_key.updated" | "integrations.claude.execution_key.removed" | "integrations.claude.execution_key.check_failed" | "integrations.claude.admin_key.added" | "integrations.claude.admin_key.updated" | "integrations.claude.admin_key.removed" | "integrations.claude.analytics_key.added" | "integrations.claude.analytics_key.updated" | "integrations.claude.analytics_key.removed" | "integrations.code_intelligence.settings_changed" | "integrations.code_intelligence.execution_key.added" | "integrations.code_intelligence.execution_key.updated" | "integrations.code_intelligence.execution_key.removed" | "integrations.code_intelligence.execution_key.check_failed" | "readiness.scan_precheck_failed" | "productivity.ingest.completed" | "productivity.ingest.failed" | "productivity.ingest.skipped" | "productivity.ingest.repo_skipped" | "productivity.ingest.coverage_gap_detected" | "integrations.newrelic.added" | "integrations.newrelic.removed" | "integrations.newrelic.sync_completed" | "integrations.newrelic.sync_failed" | "integrations.prometheus.added" | "integrations.prometheus.removed" | "integrations.prometheus.sync_completed" | "integrations.prometheus.sync_failed" | "integrations.grafana.added" | "integrations.grafana.removed" | "integrations.grafana.sync_completed" | "integrations.grafana.sync_failed" | "integrations.datadog.added" | "integrations.datadog.removed" | "integrations.datadog.sync_completed" | "integrations.datadog.sync_failed" | "integrations.zelt.added" | "integrations.zelt.removed" | "report.exported" | "report.assessment_stored" | "report.assessment_link_sent" | "report.assessment_link_revoked" | "report.assessment_downloaded" | "report.assessment_hidden" | "report.assessment_restored" | "workspace.aggregate_use.changed" | "workspace.assessment_rollout.changed";
|
|
9946
9989
|
/** @description Current legal-approved opt-in notice, or `unset` while opt-in is unavailable. */
|
|
9947
9990
|
AggregateUseNoticeStatusDto: {
|
|
9948
9991
|
/** @enum {string} */
|
|
@@ -13285,6 +13328,8 @@ export type RulesSkillsSoftQualityCheckDto = components['schemas']['RulesSkillsS
|
|
|
13285
13328
|
export type RulesSkillsSoftQualitySummaryDto = components['schemas']['RulesSkillsSoftQualitySummaryDto'];
|
|
13286
13329
|
export type RulesSkillsProposedFileDto = components['schemas']['RulesSkillsProposedFileDto'];
|
|
13287
13330
|
export type RulesSkillsValidateResponseDto = components['schemas']['RulesSkillsValidateResponseDto'];
|
|
13331
|
+
export type RulesSkillsCreateRequestDto = components['schemas']['RulesSkillsCreateRequestDto'];
|
|
13332
|
+
export type RulesSkillsCreateResponseDto = components['schemas']['RulesSkillsCreateResponseDto'];
|
|
13288
13333
|
export type RulesSkillsOpenPullRequestRequestDto = components['schemas']['RulesSkillsOpenPullRequestRequestDto'];
|
|
13289
13334
|
export type RulesSkillsOpenPullRequestResponseDto = components['schemas']['RulesSkillsOpenPullRequestResponseDto'];
|
|
13290
13335
|
export type PhaseRoleDto = components['schemas']['PhaseRoleDto'];
|
|
@@ -23087,6 +23132,79 @@ export interface operations {
|
|
|
23087
23132
|
};
|
|
23088
23133
|
};
|
|
23089
23134
|
};
|
|
23135
|
+
postRulesSkillsCreate: {
|
|
23136
|
+
parameters: {
|
|
23137
|
+
query?: never;
|
|
23138
|
+
header?: never;
|
|
23139
|
+
path: {
|
|
23140
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
23141
|
+
};
|
|
23142
|
+
cookie?: never;
|
|
23143
|
+
};
|
|
23144
|
+
requestBody: {
|
|
23145
|
+
content: {
|
|
23146
|
+
"application/json": components["schemas"]["RulesSkillsCreateRequestDto"];
|
|
23147
|
+
};
|
|
23148
|
+
};
|
|
23149
|
+
responses: {
|
|
23150
|
+
/** @description Drafts generated (may include soft-quality blockingFailures) */
|
|
23151
|
+
200: {
|
|
23152
|
+
headers: {
|
|
23153
|
+
[name: string]: unknown;
|
|
23154
|
+
};
|
|
23155
|
+
content: {
|
|
23156
|
+
"application/json": components["schemas"]["RulesSkillsCreateResponseDto"];
|
|
23157
|
+
};
|
|
23158
|
+
};
|
|
23159
|
+
/** @description Missing intent and criterionIds, or override without reason (`code: intent_or_criterion_required` | `override_reason_required`) */
|
|
23160
|
+
400: {
|
|
23161
|
+
headers: {
|
|
23162
|
+
[name: string]: unknown;
|
|
23163
|
+
};
|
|
23164
|
+
content: {
|
|
23165
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
23166
|
+
};
|
|
23167
|
+
};
|
|
23168
|
+
401: components["responses"]["Unauthorized"];
|
|
23169
|
+
403: components["responses"]["Forbidden"];
|
|
23170
|
+
/** @description Workspace, repository, or GitHub installation not found */
|
|
23171
|
+
404: {
|
|
23172
|
+
headers: {
|
|
23173
|
+
[name: string]: unknown;
|
|
23174
|
+
};
|
|
23175
|
+
content: {
|
|
23176
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
23177
|
+
};
|
|
23178
|
+
};
|
|
23179
|
+
/** @description No succeeded readiness scan (`readiness_scan_required`), non-GitHub repo, or agent drafts missing required hub/rule/skill coverage (`rules_skills_create_incomplete`) */
|
|
23180
|
+
422: {
|
|
23181
|
+
headers: {
|
|
23182
|
+
[name: string]: unknown;
|
|
23183
|
+
};
|
|
23184
|
+
content: {
|
|
23185
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
23186
|
+
};
|
|
23187
|
+
};
|
|
23188
|
+
/** @description Create rate limit exceeded */
|
|
23189
|
+
429: {
|
|
23190
|
+
headers: {
|
|
23191
|
+
[name: string]: unknown;
|
|
23192
|
+
};
|
|
23193
|
+
content: {
|
|
23194
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
23195
|
+
};
|
|
23196
|
+
};
|
|
23197
|
+
/** @description Agent execution credential missing (`agent_execution_unavailable`) or clone/agent run failed (`rules_skills_create_failed`) */
|
|
23198
|
+
503: {
|
|
23199
|
+
headers: {
|
|
23200
|
+
[name: string]: unknown;
|
|
23201
|
+
};
|
|
23202
|
+
content: {
|
|
23203
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
23204
|
+
};
|
|
23205
|
+
};
|
|
23206
|
+
};
|
|
23207
|
+
};
|
|
23090
23208
|
postRulesSkillsPullRequest: {
|
|
23091
23209
|
parameters: {
|
|
23092
23210
|
query?: never;
|