@thinkai/tai-api-contract 2.189.0 → 2.191.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 +270 -3
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +35 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +316 -3
- package/package.json +1 -1
- package/src/generated/openapi.ts +270 -3
- package/src/index.ts +39 -0
|
@@ -833,6 +833,30 @@ export interface paths {
|
|
|
833
833
|
patch?: never;
|
|
834
834
|
trace?: never;
|
|
835
835
|
};
|
|
836
|
+
"/workspaces/{workspaceId}/ai-model-policy": {
|
|
837
|
+
parameters: {
|
|
838
|
+
query?: never;
|
|
839
|
+
header?: never;
|
|
840
|
+
path?: never;
|
|
841
|
+
cookie?: never;
|
|
842
|
+
};
|
|
843
|
+
/**
|
|
844
|
+
* Get workspace AI model right-sizing policy and per-person overrides
|
|
845
|
+
* @description Returns the workspace default model-mix right-sizing policy plus optional per-person overrides used by Key Insights `model_right_sizing` (Cost-to-Value #2). `policy: null` means the server applies Phase A constants (40% threshold, fixed premium allowlist, sample gates). Member-level read access. Overrides affect coaching eligibility/copy only — they never rewrite spend rollups.
|
|
846
|
+
*/
|
|
847
|
+
get: operations["getWorkspaceAiModelPolicy"];
|
|
848
|
+
/**
|
|
849
|
+
* Set workspace AI model right-sizing policy and per-person overrides
|
|
850
|
+
* @description Full-replace workspace model-mix policy and person overrides. `policy: null` clears the workspace default (Phase A constants). `overrides: {}` clears all person overrides. Max **200** override entries. Thresholds must be 1–100. Requires workspace **admin** (`403` `workspace_admin_required` for editors). On success the server writes activity `ai_model_policy.changed` with secret-free metadata (threshold, override count / modes). Does not mutate `model_daily` or spend KPIs.
|
|
851
|
+
*/
|
|
852
|
+
put: operations["putWorkspaceAiModelPolicy"];
|
|
853
|
+
post?: never;
|
|
854
|
+
delete?: never;
|
|
855
|
+
options?: never;
|
|
856
|
+
head?: never;
|
|
857
|
+
patch?: never;
|
|
858
|
+
trace?: never;
|
|
859
|
+
};
|
|
836
860
|
"/workspaces/{workspaceId}/productivity-targets": {
|
|
837
861
|
parameters: {
|
|
838
862
|
query?: never;
|
|
@@ -3363,6 +3387,26 @@ export interface paths {
|
|
|
3363
3387
|
patch?: never;
|
|
3364
3388
|
trace?: never;
|
|
3365
3389
|
};
|
|
3390
|
+
"/workspaces/{workspaceId}/rules-skills/create": {
|
|
3391
|
+
parameters: {
|
|
3392
|
+
query?: never;
|
|
3393
|
+
header?: never;
|
|
3394
|
+
path?: never;
|
|
3395
|
+
cookie?: never;
|
|
3396
|
+
};
|
|
3397
|
+
get?: never;
|
|
3398
|
+
put?: never;
|
|
3399
|
+
/**
|
|
3400
|
+
* Draft Rules & Skills via agent execution
|
|
3401
|
+
* @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.
|
|
3402
|
+
*/
|
|
3403
|
+
post: operations["postRulesSkillsCreate"];
|
|
3404
|
+
delete?: never;
|
|
3405
|
+
options?: never;
|
|
3406
|
+
head?: never;
|
|
3407
|
+
patch?: never;
|
|
3408
|
+
trace?: never;
|
|
3409
|
+
};
|
|
3366
3410
|
"/workspaces/{workspaceId}/rules-skills/pull-requests": {
|
|
3367
3411
|
parameters: {
|
|
3368
3412
|
query?: never;
|
|
@@ -3374,7 +3418,7 @@ export interface paths {
|
|
|
3374
3418
|
put?: never;
|
|
3375
3419
|
/**
|
|
3376
3420
|
* Open a Rules & Skills remediation pull request
|
|
3377
|
-
* @description Applies `proposedFiles` (
|
|
3421
|
+
* @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.
|
|
3378
3422
|
*/
|
|
3379
3423
|
post: operations["postRulesSkillsPullRequest"];
|
|
3380
3424
|
delete?: never;
|
|
@@ -6355,6 +6399,43 @@ export interface components {
|
|
|
6355
6399
|
[key: string]: components["schemas"]["RepoDeliveryOverrideDto"];
|
|
6356
6400
|
};
|
|
6357
6401
|
};
|
|
6402
|
+
/** @description Workspace default model-mix right-sizing policy (Cost-to-Value insight #2 Phase B). When the parent `policy` field is null, the server uses Phase A constants instead. */
|
|
6403
|
+
AiModelPolicyConfigDto: {
|
|
6404
|
+
/** @description Premium share of model spend threshold (%). Phase A default is 40. */
|
|
6405
|
+
premiumShareThresholdPct: number;
|
|
6406
|
+
/** @description Optional case-insensitive model-name globs that extend the Phase A premium allowlist (`*` wildcards). Unmatched names remain non-premium. */
|
|
6407
|
+
premiumModelPatterns?: string[];
|
|
6408
|
+
/** @description Min total model spend (cents) before the workspace card emits. Phase A default 5000. */
|
|
6409
|
+
minWorkspaceSpendCents?: number;
|
|
6410
|
+
/** @description Min distinct active model-spend days for a person card. Phase A default 5. */
|
|
6411
|
+
minPersonActiveDays?: number;
|
|
6412
|
+
/** @description Min personal model spend (cents) before a person card emits. Phase A default 1000. */
|
|
6413
|
+
minPersonSpendCents?: number;
|
|
6414
|
+
/** @description Optional coaching copy used for recommendedAction on model_right_sizing cards. */
|
|
6415
|
+
defaultGuidance?: string;
|
|
6416
|
+
};
|
|
6417
|
+
/** @description Per-person coaching override. `allow_premium` suppresses the person card; `coach_downgrade` flags at `thresholdPct` (default 25 when omitted). */
|
|
6418
|
+
AiModelPolicyPersonOverrideDto: {
|
|
6419
|
+
/** @enum {string} */
|
|
6420
|
+
mode: "allow_premium" | "coach_downgrade";
|
|
6421
|
+
/** @description Effective threshold for coach_downgrade (ignored for allow_premium). */
|
|
6422
|
+
thresholdPct?: number;
|
|
6423
|
+
/** @description Optional admin note (not shown as Key Insight evidence numbers). */
|
|
6424
|
+
note?: string;
|
|
6425
|
+
/** Format: date-time */
|
|
6426
|
+
updatedAt: string;
|
|
6427
|
+
/** Format: uuid */
|
|
6428
|
+
updatedByUserId: string;
|
|
6429
|
+
};
|
|
6430
|
+
/** @description Workspace AI model policy + per-person overrides for Key Insights model right-sizing. Overrides affect recommendation eligibility/copy only; spend KPIs and model_daily are unchanged. */
|
|
6431
|
+
AiModelPolicyDto: {
|
|
6432
|
+
/** @description Null clears / means Phase A constants on the key-insights engine. */
|
|
6433
|
+
policy: components["schemas"]["AiModelPolicyConfigDto"] | null;
|
|
6434
|
+
/** @description Map keyed by person_id (max 200 entries). Empty object clears all overrides. */
|
|
6435
|
+
overrides: {
|
|
6436
|
+
[key: string]: components["schemas"]["AiModelPolicyPersonOverrideDto"];
|
|
6437
|
+
};
|
|
6438
|
+
};
|
|
6358
6439
|
/** @description Optional weekly per-engineer targets for Productivity Insights. Omitted or null fields mean no target for that metric. Additional properties are rejected. */
|
|
6359
6440
|
ProductivityTargetsDto: {
|
|
6360
6441
|
/** @description Floor — meet or exceed this many merged PRs per engineer per week. */
|
|
@@ -9366,6 +9447,29 @@ export interface components {
|
|
|
9366
9447
|
/** @description Quiet-case note (e.g. empty tree under pathPrefixes). */
|
|
9367
9448
|
note?: string;
|
|
9368
9449
|
};
|
|
9450
|
+
RulesSkillsCreateRequestDto: {
|
|
9451
|
+
/** Format: uuid */
|
|
9452
|
+
repoId: string;
|
|
9453
|
+
/** @description Optional criterion targets. At least one of `intent` or non-empty `criterionIds` is required. */
|
|
9454
|
+
criterionIds?: ("A1" | "A2" | "A3" | "A3a" | "A3b" | "A3c" | "A11")[];
|
|
9455
|
+
/** @description Free-text create intent (required when criterionIds is empty). */
|
|
9456
|
+
intent?: string;
|
|
9457
|
+
notes?: string;
|
|
9458
|
+
/** @description When true, soft-quality fails are omitted from `blockingFailures` (structural fails always remain). Requires `overrideReason`; audited. */
|
|
9459
|
+
overrideSoftQuality?: boolean;
|
|
9460
|
+
/** @description Required when overrideSoftQuality is true. */
|
|
9461
|
+
overrideReason?: string;
|
|
9462
|
+
};
|
|
9463
|
+
RulesSkillsCreateResponseDto: {
|
|
9464
|
+
assessedTools: components["schemas"]["RulesSkillsAssessedTools"];
|
|
9465
|
+
/** @description Draft patches for review; pass to open-PR as proposedFiles. */
|
|
9466
|
+
drafts: components["schemas"]["RulesSkillsProposedFileDto"][];
|
|
9467
|
+
softQuality: components["schemas"]["RulesSkillsSoftQualitySummaryDto"];
|
|
9468
|
+
/** @description Structural fails always; soft fails unless softQualityOverridden. Open PR should wait until empty (or soft override was logged). */
|
|
9469
|
+
blockingFailures: components["schemas"]["RulesSkillsFindingDto"][];
|
|
9470
|
+
softQualityOverridden: boolean;
|
|
9471
|
+
note?: string;
|
|
9472
|
+
};
|
|
9369
9473
|
RulesSkillsOpenPullRequestRequestDto: {
|
|
9370
9474
|
/** Format: uuid */
|
|
9371
9475
|
repoId: string;
|
|
@@ -9373,7 +9477,7 @@ export interface components {
|
|
|
9373
9477
|
mode: "validate" | "create";
|
|
9374
9478
|
/**
|
|
9375
9479
|
* Format: uuid
|
|
9376
|
-
* @description Reserved for
|
|
9480
|
+
* @description Reserved for persisted create sessions; currently pass proposedFiles.
|
|
9377
9481
|
*/
|
|
9378
9482
|
sessionId?: string;
|
|
9379
9483
|
proposedFiles?: components["schemas"]["RulesSkillsProposedFileDto"][];
|
|
@@ -9941,7 +10045,7 @@ export interface components {
|
|
|
9941
10045
|
* @description Type of workspace lifecycle event.
|
|
9942
10046
|
* @enum {string}
|
|
9943
10047
|
*/
|
|
9944
|
-
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";
|
|
10048
|
+
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";
|
|
9945
10049
|
/** @description Current legal-approved opt-in notice, or `unset` while opt-in is unavailable. */
|
|
9946
10050
|
AggregateUseNoticeStatusDto: {
|
|
9947
10051
|
/** @enum {string} */
|
|
@@ -13038,6 +13142,9 @@ export type WorkspaceConfigDto = components['schemas']['WorkspaceConfigDto'];
|
|
|
13038
13142
|
export type DeliveryRoleConfigDto = components['schemas']['DeliveryRoleConfigDto'];
|
|
13039
13143
|
export type RepoDeliveryOverrideDto = components['schemas']['RepoDeliveryOverrideDto'];
|
|
13040
13144
|
export type DeliveryTopologyDto = components['schemas']['DeliveryTopologyDto'];
|
|
13145
|
+
export type AiModelPolicyConfigDto = components['schemas']['AiModelPolicyConfigDto'];
|
|
13146
|
+
export type AiModelPolicyPersonOverrideDto = components['schemas']['AiModelPolicyPersonOverrideDto'];
|
|
13147
|
+
export type AiModelPolicyDto = components['schemas']['AiModelPolicyDto'];
|
|
13041
13148
|
export type ProductivityTargetsDto = components['schemas']['ProductivityTargetsDto'];
|
|
13042
13149
|
export type AiEmailAliasEntryDto = components['schemas']['AiEmailAliasEntryDto'];
|
|
13043
13150
|
export type AiEmailAliasesDto = components['schemas']['AiEmailAliasesDto'];
|
|
@@ -13284,6 +13391,8 @@ export type RulesSkillsSoftQualityCheckDto = components['schemas']['RulesSkillsS
|
|
|
13284
13391
|
export type RulesSkillsSoftQualitySummaryDto = components['schemas']['RulesSkillsSoftQualitySummaryDto'];
|
|
13285
13392
|
export type RulesSkillsProposedFileDto = components['schemas']['RulesSkillsProposedFileDto'];
|
|
13286
13393
|
export type RulesSkillsValidateResponseDto = components['schemas']['RulesSkillsValidateResponseDto'];
|
|
13394
|
+
export type RulesSkillsCreateRequestDto = components['schemas']['RulesSkillsCreateRequestDto'];
|
|
13395
|
+
export type RulesSkillsCreateResponseDto = components['schemas']['RulesSkillsCreateResponseDto'];
|
|
13287
13396
|
export type RulesSkillsOpenPullRequestRequestDto = components['schemas']['RulesSkillsOpenPullRequestRequestDto'];
|
|
13288
13397
|
export type RulesSkillsOpenPullRequestResponseDto = components['schemas']['RulesSkillsOpenPullRequestResponseDto'];
|
|
13289
13398
|
export type PhaseRoleDto = components['schemas']['PhaseRoleDto'];
|
|
@@ -16264,6 +16373,91 @@ export interface operations {
|
|
|
16264
16373
|
};
|
|
16265
16374
|
};
|
|
16266
16375
|
};
|
|
16376
|
+
getWorkspaceAiModelPolicy: {
|
|
16377
|
+
parameters: {
|
|
16378
|
+
query?: never;
|
|
16379
|
+
header?: never;
|
|
16380
|
+
path: {
|
|
16381
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
16382
|
+
};
|
|
16383
|
+
cookie?: never;
|
|
16384
|
+
};
|
|
16385
|
+
requestBody?: never;
|
|
16386
|
+
responses: {
|
|
16387
|
+
/** @description Current policy (policy may be null; overrides may be empty) */
|
|
16388
|
+
200: {
|
|
16389
|
+
headers: {
|
|
16390
|
+
[name: string]: unknown;
|
|
16391
|
+
};
|
|
16392
|
+
content: {
|
|
16393
|
+
"application/json": components["schemas"]["AiModelPolicyDto"];
|
|
16394
|
+
};
|
|
16395
|
+
};
|
|
16396
|
+
401: components["responses"]["Unauthorized"];
|
|
16397
|
+
403: components["responses"]["Forbidden"];
|
|
16398
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
16399
|
+
404: {
|
|
16400
|
+
headers: {
|
|
16401
|
+
[name: string]: unknown;
|
|
16402
|
+
};
|
|
16403
|
+
content: {
|
|
16404
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
16405
|
+
};
|
|
16406
|
+
};
|
|
16407
|
+
};
|
|
16408
|
+
};
|
|
16409
|
+
putWorkspaceAiModelPolicy: {
|
|
16410
|
+
parameters: {
|
|
16411
|
+
query?: never;
|
|
16412
|
+
header?: never;
|
|
16413
|
+
path: {
|
|
16414
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
16415
|
+
};
|
|
16416
|
+
cookie?: never;
|
|
16417
|
+
};
|
|
16418
|
+
requestBody: {
|
|
16419
|
+
content: {
|
|
16420
|
+
"application/json": components["schemas"]["AiModelPolicyDto"];
|
|
16421
|
+
};
|
|
16422
|
+
};
|
|
16423
|
+
responses: {
|
|
16424
|
+
/** @description Policy persisted (or cleared). */
|
|
16425
|
+
204: {
|
|
16426
|
+
headers: {
|
|
16427
|
+
[name: string]: unknown;
|
|
16428
|
+
};
|
|
16429
|
+
content?: never;
|
|
16430
|
+
};
|
|
16431
|
+
/** @description Invalid payload (unknown keys, out-of-range, or >200 overrides) */
|
|
16432
|
+
400: {
|
|
16433
|
+
headers: {
|
|
16434
|
+
[name: string]: unknown;
|
|
16435
|
+
};
|
|
16436
|
+
content: {
|
|
16437
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
16438
|
+
};
|
|
16439
|
+
};
|
|
16440
|
+
401: components["responses"]["Unauthorized"];
|
|
16441
|
+
/** @description Forbidden — workspace admin required */
|
|
16442
|
+
403: {
|
|
16443
|
+
headers: {
|
|
16444
|
+
[name: string]: unknown;
|
|
16445
|
+
};
|
|
16446
|
+
content: {
|
|
16447
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
16448
|
+
};
|
|
16449
|
+
};
|
|
16450
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
16451
|
+
404: {
|
|
16452
|
+
headers: {
|
|
16453
|
+
[name: string]: unknown;
|
|
16454
|
+
};
|
|
16455
|
+
content: {
|
|
16456
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
16457
|
+
};
|
|
16458
|
+
};
|
|
16459
|
+
};
|
|
16460
|
+
};
|
|
16267
16461
|
getWorkspaceProductivityTargets: {
|
|
16268
16462
|
parameters: {
|
|
16269
16463
|
query?: never;
|
|
@@ -23086,6 +23280,79 @@ export interface operations {
|
|
|
23086
23280
|
};
|
|
23087
23281
|
};
|
|
23088
23282
|
};
|
|
23283
|
+
postRulesSkillsCreate: {
|
|
23284
|
+
parameters: {
|
|
23285
|
+
query?: never;
|
|
23286
|
+
header?: never;
|
|
23287
|
+
path: {
|
|
23288
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
23289
|
+
};
|
|
23290
|
+
cookie?: never;
|
|
23291
|
+
};
|
|
23292
|
+
requestBody: {
|
|
23293
|
+
content: {
|
|
23294
|
+
"application/json": components["schemas"]["RulesSkillsCreateRequestDto"];
|
|
23295
|
+
};
|
|
23296
|
+
};
|
|
23297
|
+
responses: {
|
|
23298
|
+
/** @description Drafts generated (may include soft-quality blockingFailures) */
|
|
23299
|
+
200: {
|
|
23300
|
+
headers: {
|
|
23301
|
+
[name: string]: unknown;
|
|
23302
|
+
};
|
|
23303
|
+
content: {
|
|
23304
|
+
"application/json": components["schemas"]["RulesSkillsCreateResponseDto"];
|
|
23305
|
+
};
|
|
23306
|
+
};
|
|
23307
|
+
/** @description Missing intent and criterionIds, or override without reason (`code: intent_or_criterion_required` | `override_reason_required`) */
|
|
23308
|
+
400: {
|
|
23309
|
+
headers: {
|
|
23310
|
+
[name: string]: unknown;
|
|
23311
|
+
};
|
|
23312
|
+
content: {
|
|
23313
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
23314
|
+
};
|
|
23315
|
+
};
|
|
23316
|
+
401: components["responses"]["Unauthorized"];
|
|
23317
|
+
403: components["responses"]["Forbidden"];
|
|
23318
|
+
/** @description Workspace, repository, or GitHub installation not found */
|
|
23319
|
+
404: {
|
|
23320
|
+
headers: {
|
|
23321
|
+
[name: string]: unknown;
|
|
23322
|
+
};
|
|
23323
|
+
content: {
|
|
23324
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
23325
|
+
};
|
|
23326
|
+
};
|
|
23327
|
+
/** @description No succeeded readiness scan (`readiness_scan_required`), non-GitHub repo, or agent drafts missing required hub/rule/skill coverage (`rules_skills_create_incomplete`) */
|
|
23328
|
+
422: {
|
|
23329
|
+
headers: {
|
|
23330
|
+
[name: string]: unknown;
|
|
23331
|
+
};
|
|
23332
|
+
content: {
|
|
23333
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
23334
|
+
};
|
|
23335
|
+
};
|
|
23336
|
+
/** @description Create rate limit exceeded */
|
|
23337
|
+
429: {
|
|
23338
|
+
headers: {
|
|
23339
|
+
[name: string]: unknown;
|
|
23340
|
+
};
|
|
23341
|
+
content: {
|
|
23342
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
23343
|
+
};
|
|
23344
|
+
};
|
|
23345
|
+
/** @description Agent execution credential missing (`agent_execution_unavailable`) or clone/agent run failed (`rules_skills_create_failed`) */
|
|
23346
|
+
503: {
|
|
23347
|
+
headers: {
|
|
23348
|
+
[name: string]: unknown;
|
|
23349
|
+
};
|
|
23350
|
+
content: {
|
|
23351
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
23352
|
+
};
|
|
23353
|
+
};
|
|
23354
|
+
};
|
|
23355
|
+
};
|
|
23089
23356
|
postRulesSkillsPullRequest: {
|
|
23090
23357
|
parameters: {
|
|
23091
23358
|
query?: never;
|