@thinkai/tai-api-contract 2.134.0 → 2.136.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 +215 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +194 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +215 -0
- package/src/index.ts +13 -0
|
@@ -1514,6 +1514,30 @@ export interface paths {
|
|
|
1514
1514
|
patch?: never;
|
|
1515
1515
|
trace?: never;
|
|
1516
1516
|
};
|
|
1517
|
+
"/workspaces/{workspaceId}/company-profile/logo": {
|
|
1518
|
+
parameters: {
|
|
1519
|
+
query?: never;
|
|
1520
|
+
header?: never;
|
|
1521
|
+
path?: never;
|
|
1522
|
+
cookie?: never;
|
|
1523
|
+
};
|
|
1524
|
+
get?: never;
|
|
1525
|
+
/**
|
|
1526
|
+
* Upload company logo
|
|
1527
|
+
* @description Scales the uploaded PNG, JPEG, or WebP to a 128×128 WebP (the mark is fitted inside the square with transparent padding) and stores that image. Requires a saved company profile. Editor or admin only. Source images larger than 2 MB decoded are rejected.
|
|
1528
|
+
*/
|
|
1529
|
+
put: operations["putCompanyProfileLogo"];
|
|
1530
|
+
post?: never;
|
|
1531
|
+
/**
|
|
1532
|
+
* Remove company logo
|
|
1533
|
+
* @description Clears the stored logo. Editor or admin only. Succeeds when no logo is stored.
|
|
1534
|
+
*/
|
|
1535
|
+
delete: operations["deleteCompanyProfileLogo"];
|
|
1536
|
+
options?: never;
|
|
1537
|
+
head?: never;
|
|
1538
|
+
patch?: never;
|
|
1539
|
+
trace?: never;
|
|
1540
|
+
};
|
|
1517
1541
|
"/workspaces/{workspaceId}/integrations/connectors-snapshot": {
|
|
1518
1542
|
parameters: {
|
|
1519
1543
|
query?: never;
|
|
@@ -4134,6 +4158,26 @@ export interface paths {
|
|
|
4134
4158
|
patch?: never;
|
|
4135
4159
|
trace?: never;
|
|
4136
4160
|
};
|
|
4161
|
+
"/workspaces/{workspaceId}/ingest/productivity/repos/{slug}/retry": {
|
|
4162
|
+
parameters: {
|
|
4163
|
+
query?: never;
|
|
4164
|
+
header?: never;
|
|
4165
|
+
path?: never;
|
|
4166
|
+
cookie?: never;
|
|
4167
|
+
};
|
|
4168
|
+
get?: never;
|
|
4169
|
+
put?: never;
|
|
4170
|
+
/**
|
|
4171
|
+
* Retry productivity ingest for one repository
|
|
4172
|
+
* @description Workspace admin (or platform admin) re-queues a failed or non-benign-skipped productivity GitHub repo. Does not call GitHub on the request. Creates one `in_progress` ingest-run row when newly queued. Members receive 403.
|
|
4173
|
+
*/
|
|
4174
|
+
post: operations["retryWorkspaceProductivityRepo"];
|
|
4175
|
+
delete?: never;
|
|
4176
|
+
options?: never;
|
|
4177
|
+
head?: never;
|
|
4178
|
+
patch?: never;
|
|
4179
|
+
trace?: never;
|
|
4180
|
+
};
|
|
4137
4181
|
"/workspaces/{workspaceId}/ingest-runs": {
|
|
4138
4182
|
parameters: {
|
|
4139
4183
|
query?: never;
|
|
@@ -6210,6 +6254,20 @@ export interface components {
|
|
|
6210
6254
|
* @enum {string}
|
|
6211
6255
|
*/
|
|
6212
6256
|
role: "admin" | "editor" | "viewer";
|
|
6257
|
+
/** @description Square 128px WebP for the workspace switcher. Omitted or null when no logo is stored. */
|
|
6258
|
+
logo?: components["schemas"]["WorkspaceLogoDto"] | null;
|
|
6259
|
+
};
|
|
6260
|
+
WorkspaceLogoDto: {
|
|
6261
|
+
/** @enum {string} */
|
|
6262
|
+
contentType: "image/webp";
|
|
6263
|
+
/** @description Base64-encoded 128×128 WebP. No data-URL prefix. */
|
|
6264
|
+
data: string;
|
|
6265
|
+
};
|
|
6266
|
+
CompanyProfileLogoPutDto: {
|
|
6267
|
+
/** @enum {string} */
|
|
6268
|
+
contentType: "image/png" | "image/jpeg" | "image/webp";
|
|
6269
|
+
/** @description Base64-encoded source image, at most 2 MB after decoding. */
|
|
6270
|
+
data: string;
|
|
6213
6271
|
};
|
|
6214
6272
|
WorkspacesForUserDto: {
|
|
6215
6273
|
workspaces: components["schemas"]["WorkspaceSummaryDto"][];
|
|
@@ -6226,6 +6284,8 @@ export interface components {
|
|
|
6226
6284
|
companySize: string;
|
|
6227
6285
|
engineeringHC: string;
|
|
6228
6286
|
headquarters: string;
|
|
6287
|
+
/** @description Present on GET when a logo is stored. Ignored by PUT /company-profile. Upload and delete use the /company-profile/logo routes. */
|
|
6288
|
+
logo?: components["schemas"]["WorkspaceLogoDto"] | null;
|
|
6229
6289
|
};
|
|
6230
6290
|
GithubAccountDto: {
|
|
6231
6291
|
login: string;
|
|
@@ -8114,6 +8174,19 @@ export interface components {
|
|
|
8114
8174
|
missingWeeks?: number | null;
|
|
8115
8175
|
gaps?: components["schemas"]["IngestCoverageGapDto"][];
|
|
8116
8176
|
lastErrorKind?: string | null;
|
|
8177
|
+
/** @description True when queueStatus is failed, or skipped with a non-benign reason. Benign skips are empty_repo, archived, and no_merged_prs_in_window. */
|
|
8178
|
+
retryable?: boolean;
|
|
8179
|
+
};
|
|
8180
|
+
ProductivityRepoRetryResponseDto: {
|
|
8181
|
+
/** @enum {boolean} */
|
|
8182
|
+
ok: true;
|
|
8183
|
+
/**
|
|
8184
|
+
* Format: uuid
|
|
8185
|
+
* @description Present when a new in_progress ingest run row was created.
|
|
8186
|
+
*/
|
|
8187
|
+
runId?: string;
|
|
8188
|
+
/** @description True when the slug was already pending; no second run row. */
|
|
8189
|
+
alreadyQueued?: boolean;
|
|
8117
8190
|
};
|
|
8118
8191
|
/** @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. */
|
|
8119
8192
|
IngestCoverageProductivityDepthScanDto: {
|
|
@@ -10241,6 +10314,8 @@ export type FulfillPersonErasureBodyDto = components['schemas']['FulfillPersonEr
|
|
|
10241
10314
|
export type PrivacyRequestPersonErasureResultDto = components['schemas']['PrivacyRequestPersonErasureResultDto'];
|
|
10242
10315
|
export type PrivacyRequestExportDto = components['schemas']['PrivacyRequestExportDto'];
|
|
10243
10316
|
export type WorkspaceSummaryDto = components['schemas']['WorkspaceSummaryDto'];
|
|
10317
|
+
export type WorkspaceLogoDto = components['schemas']['WorkspaceLogoDto'];
|
|
10318
|
+
export type CompanyProfileLogoPutDto = components['schemas']['CompanyProfileLogoPutDto'];
|
|
10244
10319
|
export type WorkspacesForUserDto = components['schemas']['WorkspacesForUserDto'];
|
|
10245
10320
|
export type CreateWorkspaceBodyDto = components['schemas']['CreateWorkspaceBodyDto'];
|
|
10246
10321
|
export type CompanyProfileDto = components['schemas']['CompanyProfileDto'];
|
|
@@ -10419,6 +10494,7 @@ export type WorkspaceAbsenceListDto = components['schemas']['WorkspaceAbsenceLis
|
|
|
10419
10494
|
export type IngestCoverageGapDto = components['schemas']['IngestCoverageGapDto'];
|
|
10420
10495
|
export type IngestCoverageLastRunDto = components['schemas']['IngestCoverageLastRunDto'];
|
|
10421
10496
|
export type IngestCoverageProductivityRepoDto = components['schemas']['IngestCoverageProductivityRepoDto'];
|
|
10497
|
+
export type ProductivityRepoRetryResponseDto = components['schemas']['ProductivityRepoRetryResponseDto'];
|
|
10422
10498
|
export type IngestCoverageProductivityDepthScanDto = components['schemas']['IngestCoverageProductivityDepthScanDto'];
|
|
10423
10499
|
export type IngestCoverageProductivityWeekReconcileDto = components['schemas']['IngestCoverageProductivityWeekReconcileDto'];
|
|
10424
10500
|
export type IngestCoverageProductivitySelfHealDto = components['schemas']['IngestCoverageProductivitySelfHealDto'];
|
|
@@ -14900,6 +14976,101 @@ export interface operations {
|
|
|
14900
14976
|
};
|
|
14901
14977
|
};
|
|
14902
14978
|
};
|
|
14979
|
+
putCompanyProfileLogo: {
|
|
14980
|
+
parameters: {
|
|
14981
|
+
query?: never;
|
|
14982
|
+
header?: never;
|
|
14983
|
+
path: {
|
|
14984
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
14985
|
+
};
|
|
14986
|
+
cookie?: never;
|
|
14987
|
+
};
|
|
14988
|
+
requestBody: {
|
|
14989
|
+
content: {
|
|
14990
|
+
"application/json": components["schemas"]["CompanyProfileLogoPutDto"];
|
|
14991
|
+
};
|
|
14992
|
+
};
|
|
14993
|
+
responses: {
|
|
14994
|
+
/** @description Stored 128×128 WebP */
|
|
14995
|
+
200: {
|
|
14996
|
+
headers: {
|
|
14997
|
+
[name: string]: unknown;
|
|
14998
|
+
};
|
|
14999
|
+
content: {
|
|
15000
|
+
"application/json": components["schemas"]["WorkspaceLogoDto"];
|
|
15001
|
+
};
|
|
15002
|
+
};
|
|
15003
|
+
/** @description Invalid image, unsupported type, or result still too large */
|
|
15004
|
+
400: {
|
|
15005
|
+
headers: {
|
|
15006
|
+
[name: string]: unknown;
|
|
15007
|
+
};
|
|
15008
|
+
content: {
|
|
15009
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
15010
|
+
};
|
|
15011
|
+
};
|
|
15012
|
+
401: components["responses"]["Unauthorized"];
|
|
15013
|
+
403: components["responses"]["Forbidden"];
|
|
15014
|
+
/** @description Workspace does not exist */
|
|
15015
|
+
404: {
|
|
15016
|
+
headers: {
|
|
15017
|
+
[name: string]: unknown;
|
|
15018
|
+
};
|
|
15019
|
+
content: {
|
|
15020
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
15021
|
+
};
|
|
15022
|
+
};
|
|
15023
|
+
/** @description No company profile saved yet (`company_profile_required`) */
|
|
15024
|
+
409: {
|
|
15025
|
+
headers: {
|
|
15026
|
+
[name: string]: unknown;
|
|
15027
|
+
};
|
|
15028
|
+
content: {
|
|
15029
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
15030
|
+
};
|
|
15031
|
+
};
|
|
15032
|
+
};
|
|
15033
|
+
};
|
|
15034
|
+
deleteCompanyProfileLogo: {
|
|
15035
|
+
parameters: {
|
|
15036
|
+
query?: never;
|
|
15037
|
+
header?: never;
|
|
15038
|
+
path: {
|
|
15039
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
15040
|
+
};
|
|
15041
|
+
cookie?: never;
|
|
15042
|
+
};
|
|
15043
|
+
requestBody?: never;
|
|
15044
|
+
responses: {
|
|
15045
|
+
/** @description Logo cleared */
|
|
15046
|
+
204: {
|
|
15047
|
+
headers: {
|
|
15048
|
+
[name: string]: unknown;
|
|
15049
|
+
};
|
|
15050
|
+
content?: never;
|
|
15051
|
+
};
|
|
15052
|
+
401: components["responses"]["Unauthorized"];
|
|
15053
|
+
403: components["responses"]["Forbidden"];
|
|
15054
|
+
/** @description Workspace does not exist */
|
|
15055
|
+
404: {
|
|
15056
|
+
headers: {
|
|
15057
|
+
[name: string]: unknown;
|
|
15058
|
+
};
|
|
15059
|
+
content: {
|
|
15060
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
15061
|
+
};
|
|
15062
|
+
};
|
|
15063
|
+
/** @description No company profile saved yet (`company_profile_required`) */
|
|
15064
|
+
409: {
|
|
15065
|
+
headers: {
|
|
15066
|
+
[name: string]: unknown;
|
|
15067
|
+
};
|
|
15068
|
+
content: {
|
|
15069
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
15070
|
+
};
|
|
15071
|
+
};
|
|
15072
|
+
};
|
|
15073
|
+
};
|
|
14903
15074
|
getWorkspaceConnectorsSnapshot: {
|
|
14904
15075
|
parameters: {
|
|
14905
15076
|
query?: never;
|
|
@@ -21050,6 +21221,50 @@ export interface operations {
|
|
|
21050
21221
|
403: components["responses"]["Forbidden"];
|
|
21051
21222
|
};
|
|
21052
21223
|
};
|
|
21224
|
+
retryWorkspaceProductivityRepo: {
|
|
21225
|
+
parameters: {
|
|
21226
|
+
query?: never;
|
|
21227
|
+
header?: never;
|
|
21228
|
+
path: {
|
|
21229
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
21230
|
+
/** @description GitHub repo slug (owner/name). Match is case-insensitive. */
|
|
21231
|
+
slug: string;
|
|
21232
|
+
};
|
|
21233
|
+
cookie?: never;
|
|
21234
|
+
};
|
|
21235
|
+
requestBody?: never;
|
|
21236
|
+
responses: {
|
|
21237
|
+
/** @description Retry accepted */
|
|
21238
|
+
200: {
|
|
21239
|
+
headers: {
|
|
21240
|
+
[name: string]: unknown;
|
|
21241
|
+
};
|
|
21242
|
+
content: {
|
|
21243
|
+
"application/json": components["schemas"]["ProductivityRepoRetryResponseDto"];
|
|
21244
|
+
};
|
|
21245
|
+
};
|
|
21246
|
+
401: components["responses"]["Unauthorized"];
|
|
21247
|
+
403: components["responses"]["Forbidden"];
|
|
21248
|
+
/** @description Unknown slug or productivity not connected */
|
|
21249
|
+
404: {
|
|
21250
|
+
headers: {
|
|
21251
|
+
[name: string]: unknown;
|
|
21252
|
+
};
|
|
21253
|
+
content: {
|
|
21254
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21255
|
+
};
|
|
21256
|
+
};
|
|
21257
|
+
/** @description Lock held, backfill in progress, or retry not applicable */
|
|
21258
|
+
409: {
|
|
21259
|
+
headers: {
|
|
21260
|
+
[name: string]: unknown;
|
|
21261
|
+
};
|
|
21262
|
+
content: {
|
|
21263
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
21264
|
+
};
|
|
21265
|
+
};
|
|
21266
|
+
};
|
|
21267
|
+
};
|
|
21053
21268
|
getWorkspaceIngestRuns: {
|
|
21054
21269
|
parameters: {
|
|
21055
21270
|
query?: {
|