@thinkai/tai-api-contract 2.192.0 → 2.193.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/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.193.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}/...`.
|
|
@@ -5669,6 +5669,57 @@ paths:
|
|
|
5669
5669
|
schema:
|
|
5670
5670
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
5671
5671
|
|
|
5672
|
+
/workspaces/{workspaceId}/integrations/github/installations/{installationId}/automated-fixes/pr-creation-mode:
|
|
5673
|
+
put:
|
|
5674
|
+
tags: [Integrations]
|
|
5675
|
+
summary: Set fix PR creation mode for a GitHub installation
|
|
5676
|
+
operationId: putGithubAutomatedFixesPrCreationMode
|
|
5677
|
+
description: >
|
|
5678
|
+
Workspace admin only. Sets whether readiness fix PRs are opened only after
|
|
5679
|
+
an explicit Fix it (`manual`) or may be auto-enqueued by the fix processor (`auto`).
|
|
5680
|
+
Requires a linked Automations (write) installation. The mode is ignored while
|
|
5681
|
+
automated fixes are disabled or the write app is suspended.
|
|
5682
|
+
security:
|
|
5683
|
+
- bearerAuth: []
|
|
5684
|
+
parameters:
|
|
5685
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
5686
|
+
- name: installationId
|
|
5687
|
+
in: path
|
|
5688
|
+
required: true
|
|
5689
|
+
schema:
|
|
5690
|
+
type: string
|
|
5691
|
+
minLength: 1
|
|
5692
|
+
maxLength: 64
|
|
5693
|
+
requestBody:
|
|
5694
|
+
required: true
|
|
5695
|
+
content:
|
|
5696
|
+
application/json:
|
|
5697
|
+
schema:
|
|
5698
|
+
$ref: "#/components/schemas/GithubFixPrCreationModeRequestDto"
|
|
5699
|
+
responses:
|
|
5700
|
+
"200":
|
|
5701
|
+
description: Updated mode
|
|
5702
|
+
content:
|
|
5703
|
+
application/json:
|
|
5704
|
+
schema:
|
|
5705
|
+
$ref: "#/components/schemas/GithubFixPrCreationModeResponseDto"
|
|
5706
|
+
"401":
|
|
5707
|
+
$ref: "#/components/responses/Unauthorized"
|
|
5708
|
+
"403":
|
|
5709
|
+
$ref: "#/components/responses/Forbidden"
|
|
5710
|
+
"404":
|
|
5711
|
+
description: Workspace, installation, or write app link not found
|
|
5712
|
+
content:
|
|
5713
|
+
application/json:
|
|
5714
|
+
schema:
|
|
5715
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
5716
|
+
"409":
|
|
5717
|
+
description: Write installation suspended
|
|
5718
|
+
content:
|
|
5719
|
+
application/json:
|
|
5720
|
+
schema:
|
|
5721
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
5722
|
+
|
|
5672
5723
|
/workspaces/{workspaceId}/integrations/github/user-authorize-url:
|
|
5673
5724
|
post:
|
|
5674
5725
|
tags: [Integrations]
|
|
@@ -19910,6 +19961,7 @@ components:
|
|
|
19910
19961
|
- writePermissionsUpgradeRequired
|
|
19911
19962
|
- automatedFixesEnabled
|
|
19912
19963
|
- writeAppInstalled
|
|
19964
|
+
- fixPrCreationMode
|
|
19913
19965
|
- canEnableAutomatedFixes
|
|
19914
19966
|
- suspended
|
|
19915
19967
|
- writeSuspended
|
|
@@ -20018,6 +20070,14 @@ components:
|
|
|
20018
20070
|
writeAppInstalled:
|
|
20019
20071
|
type: boolean
|
|
20020
20072
|
description: True when an Automations (write) GitHub App installation is linked.
|
|
20073
|
+
fixPrCreationMode:
|
|
20074
|
+
type: string
|
|
20075
|
+
enum: [manual, auto]
|
|
20076
|
+
description: >
|
|
20077
|
+
`manual` (default): open fix PRs only after Fix it / POST readiness/fixes.
|
|
20078
|
+
`auto`: allow the fix processor to auto-enqueue open readiness issues for this
|
|
20079
|
+
installation when automated fixes are enabled. Meaningful only when
|
|
20080
|
+
`writeAppInstalled` is true.
|
|
20021
20081
|
writeInstallationId:
|
|
20022
20082
|
type: string
|
|
20023
20083
|
nullable: true
|
|
@@ -20682,6 +20742,26 @@ components:
|
|
|
20682
20742
|
minLength: 16
|
|
20683
20743
|
maxLength: 128
|
|
20684
20744
|
|
|
20745
|
+
GithubFixPrCreationModeRequestDto:
|
|
20746
|
+
type: object
|
|
20747
|
+
additionalProperties: false
|
|
20748
|
+
required: [mode]
|
|
20749
|
+
properties:
|
|
20750
|
+
mode:
|
|
20751
|
+
type: string
|
|
20752
|
+
enum: [manual, auto]
|
|
20753
|
+
description: >
|
|
20754
|
+
`manual` requires Fix it; `auto` allows processor auto-enqueue of open fix issues.
|
|
20755
|
+
|
|
20756
|
+
GithubFixPrCreationModeResponseDto:
|
|
20757
|
+
type: object
|
|
20758
|
+
additionalProperties: false
|
|
20759
|
+
required: [mode]
|
|
20760
|
+
properties:
|
|
20761
|
+
mode:
|
|
20762
|
+
type: string
|
|
20763
|
+
enum: [manual, auto]
|
|
20764
|
+
|
|
20685
20765
|
GithubAutomatedFixesEnableResponseDto:
|
|
20686
20766
|
type: object
|
|
20687
20767
|
additionalProperties: false
|
package/package.json
CHANGED
package/src/generated/openapi.ts
CHANGED
|
@@ -1895,6 +1895,26 @@ export interface paths {
|
|
|
1895
1895
|
patch?: never;
|
|
1896
1896
|
trace?: never;
|
|
1897
1897
|
};
|
|
1898
|
+
"/workspaces/{workspaceId}/integrations/github/installations/{installationId}/automated-fixes/pr-creation-mode": {
|
|
1899
|
+
parameters: {
|
|
1900
|
+
query?: never;
|
|
1901
|
+
header?: never;
|
|
1902
|
+
path?: never;
|
|
1903
|
+
cookie?: never;
|
|
1904
|
+
};
|
|
1905
|
+
get?: never;
|
|
1906
|
+
/**
|
|
1907
|
+
* Set fix PR creation mode for a GitHub installation
|
|
1908
|
+
* @description Workspace admin only. Sets whether readiness fix PRs are opened only after an explicit Fix it (`manual`) or may be auto-enqueued by the fix processor (`auto`). Requires a linked Automations (write) installation. The mode is ignored while automated fixes are disabled or the write app is suspended.
|
|
1909
|
+
*/
|
|
1910
|
+
put: operations["putGithubAutomatedFixesPrCreationMode"];
|
|
1911
|
+
post?: never;
|
|
1912
|
+
delete?: never;
|
|
1913
|
+
options?: never;
|
|
1914
|
+
head?: never;
|
|
1915
|
+
patch?: never;
|
|
1916
|
+
trace?: never;
|
|
1917
|
+
};
|
|
1898
1918
|
"/workspaces/{workspaceId}/integrations/github/user-authorize-url": {
|
|
1899
1919
|
parameters: {
|
|
1900
1920
|
query?: never;
|
|
@@ -8087,6 +8107,11 @@ export interface components {
|
|
|
8087
8107
|
automatedFixesEnabled: boolean;
|
|
8088
8108
|
/** @description True when an Automations (write) GitHub App installation is linked. */
|
|
8089
8109
|
writeAppInstalled: boolean;
|
|
8110
|
+
/**
|
|
8111
|
+
* @description `manual` (default): open fix PRs only after Fix it / POST readiness/fixes. `auto`: allow the fix processor to auto-enqueue open readiness issues for this installation when automated fixes are enabled. Meaningful only when `writeAppInstalled` is true.
|
|
8112
|
+
* @enum {string}
|
|
8113
|
+
*/
|
|
8114
|
+
fixPrCreationMode: "manual" | "auto";
|
|
8090
8115
|
/** @description GitHub installation id for the Automations (write) app, when linked. */
|
|
8091
8116
|
writeInstallationId?: string | null;
|
|
8092
8117
|
/**
|
|
@@ -8438,6 +8463,17 @@ export interface components {
|
|
|
8438
8463
|
url: string;
|
|
8439
8464
|
state: string;
|
|
8440
8465
|
};
|
|
8466
|
+
GithubFixPrCreationModeRequestDto: {
|
|
8467
|
+
/**
|
|
8468
|
+
* @description `manual` requires Fix it; `auto` allows processor auto-enqueue of open fix issues.
|
|
8469
|
+
* @enum {string}
|
|
8470
|
+
*/
|
|
8471
|
+
mode: "manual" | "auto";
|
|
8472
|
+
};
|
|
8473
|
+
GithubFixPrCreationModeResponseDto: {
|
|
8474
|
+
/** @enum {string} */
|
|
8475
|
+
mode: "manual" | "auto";
|
|
8476
|
+
};
|
|
8441
8477
|
GithubAutomatedFixesEnableResponseDto: {
|
|
8442
8478
|
/**
|
|
8443
8479
|
* @description enabled — write app already linked and flag flipped; needs_install — client should call install-url with intent=enable_fixes.
|
|
@@ -13370,6 +13406,8 @@ export type GithubActionsEnableResponseDto = components['schemas']['GithubAction
|
|
|
13370
13406
|
export type GithubInstallationStatusDto = components['schemas']['GithubInstallationStatusDto'];
|
|
13371
13407
|
export type GithubInstallUrlRequestDto = components['schemas']['GithubInstallUrlRequestDto'];
|
|
13372
13408
|
export type GithubInstallUrlResponseDto = components['schemas']['GithubInstallUrlResponseDto'];
|
|
13409
|
+
export type GithubFixPrCreationModeRequestDto = components['schemas']['GithubFixPrCreationModeRequestDto'];
|
|
13410
|
+
export type GithubFixPrCreationModeResponseDto = components['schemas']['GithubFixPrCreationModeResponseDto'];
|
|
13373
13411
|
export type GithubAutomatedFixesEnableResponseDto = components['schemas']['GithubAutomatedFixesEnableResponseDto'];
|
|
13374
13412
|
export type GithubUserAuthorizeUrlRequestDto = components['schemas']['GithubUserAuthorizeUrlRequestDto'];
|
|
13375
13413
|
export type GithubUserAuthorizeUrlResponseDto = components['schemas']['GithubUserAuthorizeUrlResponseDto'];
|
|
@@ -19483,6 +19521,53 @@ export interface operations {
|
|
|
19483
19521
|
};
|
|
19484
19522
|
};
|
|
19485
19523
|
};
|
|
19524
|
+
putGithubAutomatedFixesPrCreationMode: {
|
|
19525
|
+
parameters: {
|
|
19526
|
+
query?: never;
|
|
19527
|
+
header?: never;
|
|
19528
|
+
path: {
|
|
19529
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
19530
|
+
installationId: string;
|
|
19531
|
+
};
|
|
19532
|
+
cookie?: never;
|
|
19533
|
+
};
|
|
19534
|
+
requestBody: {
|
|
19535
|
+
content: {
|
|
19536
|
+
"application/json": components["schemas"]["GithubFixPrCreationModeRequestDto"];
|
|
19537
|
+
};
|
|
19538
|
+
};
|
|
19539
|
+
responses: {
|
|
19540
|
+
/** @description Updated mode */
|
|
19541
|
+
200: {
|
|
19542
|
+
headers: {
|
|
19543
|
+
[name: string]: unknown;
|
|
19544
|
+
};
|
|
19545
|
+
content: {
|
|
19546
|
+
"application/json": components["schemas"]["GithubFixPrCreationModeResponseDto"];
|
|
19547
|
+
};
|
|
19548
|
+
};
|
|
19549
|
+
401: components["responses"]["Unauthorized"];
|
|
19550
|
+
403: components["responses"]["Forbidden"];
|
|
19551
|
+
/** @description Workspace, installation, or write app link not found */
|
|
19552
|
+
404: {
|
|
19553
|
+
headers: {
|
|
19554
|
+
[name: string]: unknown;
|
|
19555
|
+
};
|
|
19556
|
+
content: {
|
|
19557
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
19558
|
+
};
|
|
19559
|
+
};
|
|
19560
|
+
/** @description Write installation suspended */
|
|
19561
|
+
409: {
|
|
19562
|
+
headers: {
|
|
19563
|
+
[name: string]: unknown;
|
|
19564
|
+
};
|
|
19565
|
+
content: {
|
|
19566
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
19567
|
+
};
|
|
19568
|
+
};
|
|
19569
|
+
};
|
|
19570
|
+
};
|
|
19486
19571
|
postGithubUserAuthorizeUrl: {
|
|
19487
19572
|
parameters: {
|
|
19488
19573
|
query?: never;
|