@thinkai/tai-api-contract 2.167.0 → 2.168.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 +119 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +116 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +119 -0
- package/src/index.ts +11 -0
|
@@ -4659,6 +4659,30 @@ export interface paths {
|
|
|
4659
4659
|
patch?: never;
|
|
4660
4660
|
trace?: never;
|
|
4661
4661
|
};
|
|
4662
|
+
"/workspaces/{workspaceId}/ingest/productivity/dual-vcs-cutover": {
|
|
4663
|
+
parameters: {
|
|
4664
|
+
query?: never;
|
|
4665
|
+
header?: never;
|
|
4666
|
+
path?: never;
|
|
4667
|
+
cookie?: never;
|
|
4668
|
+
};
|
|
4669
|
+
/**
|
|
4670
|
+
* Get prefer-GitHub dual-VCS cutover
|
|
4671
|
+
* @description Returns `productivity_vcs_github_since` on the primary GitHub App VCS row. When set, Bitbucket productivity drain is eligible alongside GitHub; Bitbucket events with `occurred_at` at or after this instant are dropped (prefer GitHub during a migration transition). Null means Bitbucket stays skipped while a GitHub App installation is connected. Requires workspace membership.
|
|
4672
|
+
*/
|
|
4673
|
+
get: operations["getWorkspaceProductivityDualVcsCutover"];
|
|
4674
|
+
put?: never;
|
|
4675
|
+
post?: never;
|
|
4676
|
+
delete?: never;
|
|
4677
|
+
options?: never;
|
|
4678
|
+
head?: never;
|
|
4679
|
+
/**
|
|
4680
|
+
* Set or clear prefer-GitHub dual-VCS cutover
|
|
4681
|
+
* @description Workspace admin (or platform admin) sets `githubSince` (ISO-8601 UTC) or clears it with `null`. Members receive 403.
|
|
4682
|
+
*/
|
|
4683
|
+
patch: operations["patchWorkspaceProductivityDualVcsCutover"];
|
|
4684
|
+
trace?: never;
|
|
4685
|
+
};
|
|
4662
4686
|
"/workspaces/{workspaceId}/ingest-runs": {
|
|
4663
4687
|
parameters: {
|
|
4664
4688
|
query?: never;
|
|
@@ -9035,6 +9059,20 @@ export interface components {
|
|
|
9035
9059
|
/** @description True when productivity_incremental_requested_at is already set; no second queue stamp. */
|
|
9036
9060
|
alreadyQueued?: boolean;
|
|
9037
9061
|
};
|
|
9062
|
+
ProductivityDualVcsCutoverDto: {
|
|
9063
|
+
/**
|
|
9064
|
+
* Format: date-time
|
|
9065
|
+
* @description Prefer-GitHub from this UTC instant. Null clears dual-VCS (Bitbucket skipped when a GitHub App installation is connected).
|
|
9066
|
+
*/
|
|
9067
|
+
githubSince: string | null;
|
|
9068
|
+
};
|
|
9069
|
+
ProductivityDualVcsCutoverPatchDto: {
|
|
9070
|
+
/**
|
|
9071
|
+
* Format: date-time
|
|
9072
|
+
* @description ISO-8601 UTC instant when GitHub became the preferred merge target, or null to clear.
|
|
9073
|
+
*/
|
|
9074
|
+
githubSince: string | null;
|
|
9075
|
+
};
|
|
9038
9076
|
/** @description Latest depth scan read from stored activity. `capturePercent` is the minimum existing capture ratio over that scan's repo checks with a GitHub merge count, or null when none qualify. */
|
|
9039
9077
|
IngestCoverageProductivityDepthScanDto: {
|
|
9040
9078
|
/** Format: date-time */
|
|
@@ -11441,6 +11479,8 @@ export type IngestCoverageLastRunDto = components['schemas']['IngestCoverageLast
|
|
|
11441
11479
|
export type IngestCoverageProductivityRepoDto = components['schemas']['IngestCoverageProductivityRepoDto'];
|
|
11442
11480
|
export type ProductivityRepoRetryResponseDto = components['schemas']['ProductivityRepoRetryResponseDto'];
|
|
11443
11481
|
export type ProductivityCatchUpResponseDto = components['schemas']['ProductivityCatchUpResponseDto'];
|
|
11482
|
+
export type ProductivityDualVcsCutoverDto = components['schemas']['ProductivityDualVcsCutoverDto'];
|
|
11483
|
+
export type ProductivityDualVcsCutoverPatchDto = components['schemas']['ProductivityDualVcsCutoverPatchDto'];
|
|
11444
11484
|
export type IngestCoverageProductivityDepthScanDto = components['schemas']['IngestCoverageProductivityDepthScanDto'];
|
|
11445
11485
|
export type IngestCoverageProductivityWeekReconcileDto = components['schemas']['IngestCoverageProductivityWeekReconcileDto'];
|
|
11446
11486
|
export type IngestCoverageProductivitySelfHealDto = components['schemas']['IngestCoverageProductivitySelfHealDto'];
|
|
@@ -23675,6 +23715,85 @@ export interface operations {
|
|
|
23675
23715
|
};
|
|
23676
23716
|
};
|
|
23677
23717
|
};
|
|
23718
|
+
getWorkspaceProductivityDualVcsCutover: {
|
|
23719
|
+
parameters: {
|
|
23720
|
+
query?: never;
|
|
23721
|
+
header?: never;
|
|
23722
|
+
path: {
|
|
23723
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
23724
|
+
};
|
|
23725
|
+
cookie?: never;
|
|
23726
|
+
};
|
|
23727
|
+
requestBody?: never;
|
|
23728
|
+
responses: {
|
|
23729
|
+
/** @description Current cutover */
|
|
23730
|
+
200: {
|
|
23731
|
+
headers: {
|
|
23732
|
+
[name: string]: unknown;
|
|
23733
|
+
};
|
|
23734
|
+
content: {
|
|
23735
|
+
"application/json": components["schemas"]["ProductivityDualVcsCutoverDto"];
|
|
23736
|
+
};
|
|
23737
|
+
};
|
|
23738
|
+
401: components["responses"]["Unauthorized"];
|
|
23739
|
+
403: components["responses"]["Forbidden"];
|
|
23740
|
+
/** @description Productivity not connected */
|
|
23741
|
+
404: {
|
|
23742
|
+
headers: {
|
|
23743
|
+
[name: string]: unknown;
|
|
23744
|
+
};
|
|
23745
|
+
content: {
|
|
23746
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
23747
|
+
};
|
|
23748
|
+
};
|
|
23749
|
+
};
|
|
23750
|
+
};
|
|
23751
|
+
patchWorkspaceProductivityDualVcsCutover: {
|
|
23752
|
+
parameters: {
|
|
23753
|
+
query?: never;
|
|
23754
|
+
header?: never;
|
|
23755
|
+
path: {
|
|
23756
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
23757
|
+
};
|
|
23758
|
+
cookie?: never;
|
|
23759
|
+
};
|
|
23760
|
+
requestBody: {
|
|
23761
|
+
content: {
|
|
23762
|
+
"application/json": components["schemas"]["ProductivityDualVcsCutoverPatchDto"];
|
|
23763
|
+
};
|
|
23764
|
+
};
|
|
23765
|
+
responses: {
|
|
23766
|
+
/** @description Updated cutover */
|
|
23767
|
+
200: {
|
|
23768
|
+
headers: {
|
|
23769
|
+
[name: string]: unknown;
|
|
23770
|
+
};
|
|
23771
|
+
content: {
|
|
23772
|
+
"application/json": components["schemas"]["ProductivityDualVcsCutoverDto"];
|
|
23773
|
+
};
|
|
23774
|
+
};
|
|
23775
|
+
/** @description Invalid body or timestamp */
|
|
23776
|
+
400: {
|
|
23777
|
+
headers: {
|
|
23778
|
+
[name: string]: unknown;
|
|
23779
|
+
};
|
|
23780
|
+
content: {
|
|
23781
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
23782
|
+
};
|
|
23783
|
+
};
|
|
23784
|
+
401: components["responses"]["Unauthorized"];
|
|
23785
|
+
403: components["responses"]["Forbidden"];
|
|
23786
|
+
/** @description Productivity not connected */
|
|
23787
|
+
404: {
|
|
23788
|
+
headers: {
|
|
23789
|
+
[name: string]: unknown;
|
|
23790
|
+
};
|
|
23791
|
+
content: {
|
|
23792
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
23793
|
+
};
|
|
23794
|
+
};
|
|
23795
|
+
};
|
|
23796
|
+
};
|
|
23678
23797
|
getWorkspaceIngestRuns: {
|
|
23679
23798
|
parameters: {
|
|
23680
23799
|
query?: {
|