@thinkai/tai-api-contract 2.192.0 → 2.194.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 +85 -247
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +81 -242
- package/package.json +1 -1
- package/src/generated/openapi.ts +85 -247
|
@@ -1894,6 +1894,26 @@ export interface paths {
|
|
|
1894
1894
|
patch?: never;
|
|
1895
1895
|
trace?: never;
|
|
1896
1896
|
};
|
|
1897
|
+
"/workspaces/{workspaceId}/integrations/github/installations/{installationId}/automated-fixes/pr-creation-mode": {
|
|
1898
|
+
parameters: {
|
|
1899
|
+
query?: never;
|
|
1900
|
+
header?: never;
|
|
1901
|
+
path?: never;
|
|
1902
|
+
cookie?: never;
|
|
1903
|
+
};
|
|
1904
|
+
get?: never;
|
|
1905
|
+
/**
|
|
1906
|
+
* Set fix PR creation mode for a GitHub installation
|
|
1907
|
+
* @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.
|
|
1908
|
+
*/
|
|
1909
|
+
put: operations["putGithubAutomatedFixesPrCreationMode"];
|
|
1910
|
+
post?: never;
|
|
1911
|
+
delete?: never;
|
|
1912
|
+
options?: never;
|
|
1913
|
+
head?: never;
|
|
1914
|
+
patch?: never;
|
|
1915
|
+
trace?: never;
|
|
1916
|
+
};
|
|
1897
1917
|
"/workspaces/{workspaceId}/integrations/github/user-authorize-url": {
|
|
1898
1918
|
parameters: {
|
|
1899
1919
|
query?: never;
|
|
@@ -3675,59 +3695,6 @@ export interface paths {
|
|
|
3675
3695
|
patch?: never;
|
|
3676
3696
|
trace?: never;
|
|
3677
3697
|
};
|
|
3678
|
-
"/workspaces/{workspaceId}/squad": {
|
|
3679
|
-
parameters: {
|
|
3680
|
-
query?: never;
|
|
3681
|
-
header?: never;
|
|
3682
|
-
path?: never;
|
|
3683
|
-
cookie?: never;
|
|
3684
|
-
};
|
|
3685
|
-
/** Get squad configuration */
|
|
3686
|
-
get: operations["getSquad"];
|
|
3687
|
-
/** Upsert squad */
|
|
3688
|
-
put: operations["putSquad"];
|
|
3689
|
-
post?: never;
|
|
3690
|
-
delete?: never;
|
|
3691
|
-
options?: never;
|
|
3692
|
-
head?: never;
|
|
3693
|
-
patch?: never;
|
|
3694
|
-
trace?: never;
|
|
3695
|
-
};
|
|
3696
|
-
"/workspaces/{workspaceId}/projects": {
|
|
3697
|
-
parameters: {
|
|
3698
|
-
query?: never;
|
|
3699
|
-
header?: never;
|
|
3700
|
-
path?: never;
|
|
3701
|
-
cookie?: never;
|
|
3702
|
-
};
|
|
3703
|
-
/** List projects */
|
|
3704
|
-
get: operations["listProjects"];
|
|
3705
|
-
put?: never;
|
|
3706
|
-
/** Create project */
|
|
3707
|
-
post: operations["createProject"];
|
|
3708
|
-
delete?: never;
|
|
3709
|
-
options?: never;
|
|
3710
|
-
head?: never;
|
|
3711
|
-
patch?: never;
|
|
3712
|
-
trace?: never;
|
|
3713
|
-
};
|
|
3714
|
-
"/workspaces/{workspaceId}/projects/{projectId}": {
|
|
3715
|
-
parameters: {
|
|
3716
|
-
query?: never;
|
|
3717
|
-
header?: never;
|
|
3718
|
-
path?: never;
|
|
3719
|
-
cookie?: never;
|
|
3720
|
-
};
|
|
3721
|
-
get?: never;
|
|
3722
|
-
put?: never;
|
|
3723
|
-
post?: never;
|
|
3724
|
-
delete?: never;
|
|
3725
|
-
options?: never;
|
|
3726
|
-
head?: never;
|
|
3727
|
-
/** Update project */
|
|
3728
|
-
patch: operations["patchProject"];
|
|
3729
|
-
trace?: never;
|
|
3730
|
-
};
|
|
3731
3698
|
"/workspaces/{workspaceId}/code-chat/indexes": {
|
|
3732
3699
|
parameters: {
|
|
3733
3700
|
query?: never;
|
|
@@ -8086,6 +8053,11 @@ export interface components {
|
|
|
8086
8053
|
automatedFixesEnabled: boolean;
|
|
8087
8054
|
/** @description True when an Automations (write) GitHub App installation is linked. */
|
|
8088
8055
|
writeAppInstalled: boolean;
|
|
8056
|
+
/**
|
|
8057
|
+
* @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.
|
|
8058
|
+
* @enum {string}
|
|
8059
|
+
*/
|
|
8060
|
+
fixPrCreationMode: "manual" | "auto";
|
|
8089
8061
|
/** @description GitHub installation id for the Automations (write) app, when linked. */
|
|
8090
8062
|
writeInstallationId?: string | null;
|
|
8091
8063
|
/**
|
|
@@ -8437,6 +8409,17 @@ export interface components {
|
|
|
8437
8409
|
url: string;
|
|
8438
8410
|
state: string;
|
|
8439
8411
|
};
|
|
8412
|
+
GithubFixPrCreationModeRequestDto: {
|
|
8413
|
+
/**
|
|
8414
|
+
* @description `manual` requires Fix it; `auto` allows processor auto-enqueue of open fix issues.
|
|
8415
|
+
* @enum {string}
|
|
8416
|
+
*/
|
|
8417
|
+
mode: "manual" | "auto";
|
|
8418
|
+
};
|
|
8419
|
+
GithubFixPrCreationModeResponseDto: {
|
|
8420
|
+
/** @enum {string} */
|
|
8421
|
+
mode: "manual" | "auto";
|
|
8422
|
+
};
|
|
8440
8423
|
GithubAutomatedFixesEnableResponseDto: {
|
|
8441
8424
|
/**
|
|
8442
8425
|
* @description enabled — write app already linked and flag flipped; needs_install — client should call install-url with intent=enable_fixes.
|
|
@@ -9571,64 +9554,6 @@ export interface components {
|
|
|
9571
9554
|
prNumber: number;
|
|
9572
9555
|
branchName: string;
|
|
9573
9556
|
};
|
|
9574
|
-
PhaseRoleDto: {
|
|
9575
|
-
phase: string;
|
|
9576
|
-
/** @enum {string} */
|
|
9577
|
-
assignment: "orchestrate" | "review" | "both" | "none";
|
|
9578
|
-
};
|
|
9579
|
-
SquadMemberDto: {
|
|
9580
|
-
id: string;
|
|
9581
|
-
role: string;
|
|
9582
|
-
roleLabel: string;
|
|
9583
|
-
name?: string;
|
|
9584
|
-
description: string;
|
|
9585
|
-
count: number;
|
|
9586
|
-
phases: components["schemas"]["PhaseRoleDto"][];
|
|
9587
|
-
custom?: boolean;
|
|
9588
|
-
};
|
|
9589
|
-
CustomWorkStreamTaskDto: {
|
|
9590
|
-
id: string;
|
|
9591
|
-
name: string;
|
|
9592
|
-
summary: string;
|
|
9593
|
-
};
|
|
9594
|
-
PhaseWorkStreamConfigDto: {
|
|
9595
|
-
deselectedCatalogIds?: string[];
|
|
9596
|
-
customTasks?: components["schemas"]["CustomWorkStreamTaskDto"][];
|
|
9597
|
-
};
|
|
9598
|
-
SquadDto: {
|
|
9599
|
-
members: components["schemas"]["SquadMemberDto"][];
|
|
9600
|
-
hrConnected: boolean;
|
|
9601
|
-
selectedPhases?: string[];
|
|
9602
|
-
phaseWorkStreams?: {
|
|
9603
|
-
[key: string]: components["schemas"]["PhaseWorkStreamConfigDto"];
|
|
9604
|
-
};
|
|
9605
|
-
};
|
|
9606
|
-
WorkflowDto: {
|
|
9607
|
-
id: string;
|
|
9608
|
-
name: string;
|
|
9609
|
-
kinds: ("greenfield" | "brownfield")[];
|
|
9610
|
-
typeDescription: string;
|
|
9611
|
-
roles: string[];
|
|
9612
|
-
};
|
|
9613
|
-
ProjectDto: {
|
|
9614
|
-
id: string;
|
|
9615
|
-
name: string;
|
|
9616
|
-
description: string;
|
|
9617
|
-
startDate: string;
|
|
9618
|
-
workflows: components["schemas"]["WorkflowDto"][];
|
|
9619
|
-
/** Format: date-time */
|
|
9620
|
-
createdAt: string;
|
|
9621
|
-
};
|
|
9622
|
-
/** @description Partial update; all properties optional */
|
|
9623
|
-
ProjectPatchDto: {
|
|
9624
|
-
id?: string;
|
|
9625
|
-
name?: string;
|
|
9626
|
-
description?: string;
|
|
9627
|
-
startDate?: string;
|
|
9628
|
-
workflows?: components["schemas"]["WorkflowDto"][];
|
|
9629
|
-
/** Format: date-time */
|
|
9630
|
-
createdAt?: string;
|
|
9631
|
-
};
|
|
9632
9557
|
PlatformBannerDto: {
|
|
9633
9558
|
/** @description Stable identifier used for dismiss persistence in the SPA. */
|
|
9634
9559
|
id: string;
|
|
@@ -13067,7 +12992,6 @@ export interface components {
|
|
|
13067
12992
|
RepoId: string;
|
|
13068
12993
|
/** @description Provider repository slug in `owner/repo` form (GitHub). Used for shareable public URLs; resolves to the same row as `repoId` UUID internally. */
|
|
13069
12994
|
ProviderSlug: string;
|
|
13070
|
-
ProjectId: string;
|
|
13071
12995
|
NotificationId: string;
|
|
13072
12996
|
/** @description Workspace member user id (`tai_users.id`). */
|
|
13073
12997
|
WorkspaceMemberId: string;
|
|
@@ -13369,6 +13293,8 @@ export type GithubActionsEnableResponseDto = components['schemas']['GithubAction
|
|
|
13369
13293
|
export type GithubInstallationStatusDto = components['schemas']['GithubInstallationStatusDto'];
|
|
13370
13294
|
export type GithubInstallUrlRequestDto = components['schemas']['GithubInstallUrlRequestDto'];
|
|
13371
13295
|
export type GithubInstallUrlResponseDto = components['schemas']['GithubInstallUrlResponseDto'];
|
|
13296
|
+
export type GithubFixPrCreationModeRequestDto = components['schemas']['GithubFixPrCreationModeRequestDto'];
|
|
13297
|
+
export type GithubFixPrCreationModeResponseDto = components['schemas']['GithubFixPrCreationModeResponseDto'];
|
|
13372
13298
|
export type GithubAutomatedFixesEnableResponseDto = components['schemas']['GithubAutomatedFixesEnableResponseDto'];
|
|
13373
13299
|
export type GithubUserAuthorizeUrlRequestDto = components['schemas']['GithubUserAuthorizeUrlRequestDto'];
|
|
13374
13300
|
export type GithubUserAuthorizeUrlResponseDto = components['schemas']['GithubUserAuthorizeUrlResponseDto'];
|
|
@@ -13478,14 +13404,6 @@ export type RulesSkillsCreateRequestDto = components['schemas']['RulesSkillsCrea
|
|
|
13478
13404
|
export type RulesSkillsCreateResponseDto = components['schemas']['RulesSkillsCreateResponseDto'];
|
|
13479
13405
|
export type RulesSkillsOpenPullRequestRequestDto = components['schemas']['RulesSkillsOpenPullRequestRequestDto'];
|
|
13480
13406
|
export type RulesSkillsOpenPullRequestResponseDto = components['schemas']['RulesSkillsOpenPullRequestResponseDto'];
|
|
13481
|
-
export type PhaseRoleDto = components['schemas']['PhaseRoleDto'];
|
|
13482
|
-
export type SquadMemberDto = components['schemas']['SquadMemberDto'];
|
|
13483
|
-
export type CustomWorkStreamTaskDto = components['schemas']['CustomWorkStreamTaskDto'];
|
|
13484
|
-
export type PhaseWorkStreamConfigDto = components['schemas']['PhaseWorkStreamConfigDto'];
|
|
13485
|
-
export type SquadDto = components['schemas']['SquadDto'];
|
|
13486
|
-
export type WorkflowDto = components['schemas']['WorkflowDto'];
|
|
13487
|
-
export type ProjectDto = components['schemas']['ProjectDto'];
|
|
13488
|
-
export type ProjectPatchDto = components['schemas']['ProjectPatchDto'];
|
|
13489
13407
|
export type PlatformBannerDto = components['schemas']['PlatformBannerDto'];
|
|
13490
13408
|
export type PlatformBannerViewDto = components['schemas']['PlatformBannerViewDto'];
|
|
13491
13409
|
export type PlatformBannerUpsertDto = components['schemas']['PlatformBannerUpsertDto'];
|
|
@@ -13817,7 +13735,6 @@ export type ParameterEvalPackId = components['parameters']['EvalPackId'];
|
|
|
13817
13735
|
export type ParameterEvalRunId = components['parameters']['EvalRunId'];
|
|
13818
13736
|
export type ParameterRepoId = components['parameters']['RepoId'];
|
|
13819
13737
|
export type ParameterProviderSlug = components['parameters']['ProviderSlug'];
|
|
13820
|
-
export type ParameterProjectId = components['parameters']['ProjectId'];
|
|
13821
13738
|
export type ParameterNotificationId = components['parameters']['NotificationId'];
|
|
13822
13739
|
export type ParameterWorkspaceMemberId = components['parameters']['WorkspaceMemberId'];
|
|
13823
13740
|
export type ParameterWorkspaceInvitationToken = components['parameters']['WorkspaceInvitationToken'];
|
|
@@ -19482,6 +19399,53 @@ export interface operations {
|
|
|
19482
19399
|
};
|
|
19483
19400
|
};
|
|
19484
19401
|
};
|
|
19402
|
+
putGithubAutomatedFixesPrCreationMode: {
|
|
19403
|
+
parameters: {
|
|
19404
|
+
query?: never;
|
|
19405
|
+
header?: never;
|
|
19406
|
+
path: {
|
|
19407
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
19408
|
+
installationId: string;
|
|
19409
|
+
};
|
|
19410
|
+
cookie?: never;
|
|
19411
|
+
};
|
|
19412
|
+
requestBody: {
|
|
19413
|
+
content: {
|
|
19414
|
+
"application/json": components["schemas"]["GithubFixPrCreationModeRequestDto"];
|
|
19415
|
+
};
|
|
19416
|
+
};
|
|
19417
|
+
responses: {
|
|
19418
|
+
/** @description Updated mode */
|
|
19419
|
+
200: {
|
|
19420
|
+
headers: {
|
|
19421
|
+
[name: string]: unknown;
|
|
19422
|
+
};
|
|
19423
|
+
content: {
|
|
19424
|
+
"application/json": components["schemas"]["GithubFixPrCreationModeResponseDto"];
|
|
19425
|
+
};
|
|
19426
|
+
};
|
|
19427
|
+
401: components["responses"]["Unauthorized"];
|
|
19428
|
+
403: components["responses"]["Forbidden"];
|
|
19429
|
+
/** @description Workspace, installation, or write app link not found */
|
|
19430
|
+
404: {
|
|
19431
|
+
headers: {
|
|
19432
|
+
[name: string]: unknown;
|
|
19433
|
+
};
|
|
19434
|
+
content: {
|
|
19435
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
19436
|
+
};
|
|
19437
|
+
};
|
|
19438
|
+
/** @description Write installation suspended */
|
|
19439
|
+
409: {
|
|
19440
|
+
headers: {
|
|
19441
|
+
[name: string]: unknown;
|
|
19442
|
+
};
|
|
19443
|
+
content: {
|
|
19444
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
19445
|
+
};
|
|
19446
|
+
};
|
|
19447
|
+
};
|
|
19448
|
+
};
|
|
19485
19449
|
postGithubUserAuthorizeUrl: {
|
|
19486
19450
|
parameters: {
|
|
19487
19451
|
query?: never;
|
|
@@ -24045,132 +24009,6 @@ export interface operations {
|
|
|
24045
24009
|
403: components["responses"]["Forbidden"];
|
|
24046
24010
|
};
|
|
24047
24011
|
};
|
|
24048
|
-
getSquad: {
|
|
24049
|
-
parameters: {
|
|
24050
|
-
query?: never;
|
|
24051
|
-
header?: never;
|
|
24052
|
-
path: {
|
|
24053
|
-
workspaceId: components["parameters"]["WorkspaceId"];
|
|
24054
|
-
};
|
|
24055
|
-
cookie?: never;
|
|
24056
|
-
};
|
|
24057
|
-
requestBody?: never;
|
|
24058
|
-
responses: {
|
|
24059
|
-
/** @description Squad */
|
|
24060
|
-
200: {
|
|
24061
|
-
headers: {
|
|
24062
|
-
[name: string]: unknown;
|
|
24063
|
-
};
|
|
24064
|
-
content: {
|
|
24065
|
-
"application/json": components["schemas"]["SquadDto"];
|
|
24066
|
-
};
|
|
24067
|
-
};
|
|
24068
|
-
401: components["responses"]["Unauthorized"];
|
|
24069
|
-
};
|
|
24070
|
-
};
|
|
24071
|
-
putSquad: {
|
|
24072
|
-
parameters: {
|
|
24073
|
-
query?: never;
|
|
24074
|
-
header?: never;
|
|
24075
|
-
path: {
|
|
24076
|
-
workspaceId: components["parameters"]["WorkspaceId"];
|
|
24077
|
-
};
|
|
24078
|
-
cookie?: never;
|
|
24079
|
-
};
|
|
24080
|
-
requestBody: {
|
|
24081
|
-
content: {
|
|
24082
|
-
"application/json": components["schemas"]["SquadDto"];
|
|
24083
|
-
};
|
|
24084
|
-
};
|
|
24085
|
-
responses: {
|
|
24086
|
-
/** @description Saved */
|
|
24087
|
-
204: {
|
|
24088
|
-
headers: {
|
|
24089
|
-
[name: string]: unknown;
|
|
24090
|
-
};
|
|
24091
|
-
content?: never;
|
|
24092
|
-
};
|
|
24093
|
-
401: components["responses"]["Unauthorized"];
|
|
24094
|
-
};
|
|
24095
|
-
};
|
|
24096
|
-
listProjects: {
|
|
24097
|
-
parameters: {
|
|
24098
|
-
query?: never;
|
|
24099
|
-
header?: never;
|
|
24100
|
-
path: {
|
|
24101
|
-
workspaceId: components["parameters"]["WorkspaceId"];
|
|
24102
|
-
};
|
|
24103
|
-
cookie?: never;
|
|
24104
|
-
};
|
|
24105
|
-
requestBody?: never;
|
|
24106
|
-
responses: {
|
|
24107
|
-
/** @description Projects */
|
|
24108
|
-
200: {
|
|
24109
|
-
headers: {
|
|
24110
|
-
[name: string]: unknown;
|
|
24111
|
-
};
|
|
24112
|
-
content: {
|
|
24113
|
-
"application/json": components["schemas"]["ProjectDto"][];
|
|
24114
|
-
};
|
|
24115
|
-
};
|
|
24116
|
-
401: components["responses"]["Unauthorized"];
|
|
24117
|
-
};
|
|
24118
|
-
};
|
|
24119
|
-
createProject: {
|
|
24120
|
-
parameters: {
|
|
24121
|
-
query?: never;
|
|
24122
|
-
header?: never;
|
|
24123
|
-
path: {
|
|
24124
|
-
workspaceId: components["parameters"]["WorkspaceId"];
|
|
24125
|
-
};
|
|
24126
|
-
cookie?: never;
|
|
24127
|
-
};
|
|
24128
|
-
requestBody: {
|
|
24129
|
-
content: {
|
|
24130
|
-
"application/json": components["schemas"]["ProjectDto"];
|
|
24131
|
-
};
|
|
24132
|
-
};
|
|
24133
|
-
responses: {
|
|
24134
|
-
/** @description Created project */
|
|
24135
|
-
200: {
|
|
24136
|
-
headers: {
|
|
24137
|
-
[name: string]: unknown;
|
|
24138
|
-
};
|
|
24139
|
-
content: {
|
|
24140
|
-
"application/json": components["schemas"]["ProjectDto"];
|
|
24141
|
-
};
|
|
24142
|
-
};
|
|
24143
|
-
401: components["responses"]["Unauthorized"];
|
|
24144
|
-
};
|
|
24145
|
-
};
|
|
24146
|
-
patchProject: {
|
|
24147
|
-
parameters: {
|
|
24148
|
-
query?: never;
|
|
24149
|
-
header?: never;
|
|
24150
|
-
path: {
|
|
24151
|
-
workspaceId: components["parameters"]["WorkspaceId"];
|
|
24152
|
-
projectId: components["parameters"]["ProjectId"];
|
|
24153
|
-
};
|
|
24154
|
-
cookie?: never;
|
|
24155
|
-
};
|
|
24156
|
-
requestBody: {
|
|
24157
|
-
content: {
|
|
24158
|
-
"application/json": components["schemas"]["ProjectPatchDto"];
|
|
24159
|
-
};
|
|
24160
|
-
};
|
|
24161
|
-
responses: {
|
|
24162
|
-
/** @description Updated project */
|
|
24163
|
-
200: {
|
|
24164
|
-
headers: {
|
|
24165
|
-
[name: string]: unknown;
|
|
24166
|
-
};
|
|
24167
|
-
content: {
|
|
24168
|
-
"application/json": components["schemas"]["ProjectDto"];
|
|
24169
|
-
};
|
|
24170
|
-
};
|
|
24171
|
-
401: components["responses"]["Unauthorized"];
|
|
24172
|
-
};
|
|
24173
|
-
};
|
|
24174
24012
|
listCodeChatIndexes: {
|
|
24175
24013
|
parameters: {
|
|
24176
24014
|
query?: never;
|