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