@thinkai/tai-api-contract 2.134.0 → 2.135.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 +137 -0
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +115 -1
- package/package.json +1 -1
- package/src/generated/openapi.ts +137 -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;
|
|
@@ -6210,6 +6234,20 @@ export interface components {
|
|
|
6210
6234
|
* @enum {string}
|
|
6211
6235
|
*/
|
|
6212
6236
|
role: "admin" | "editor" | "viewer";
|
|
6237
|
+
/** @description Square 128px WebP for the workspace switcher. Omitted or null when no logo is stored. */
|
|
6238
|
+
logo?: components["schemas"]["WorkspaceLogoDto"] | null;
|
|
6239
|
+
};
|
|
6240
|
+
WorkspaceLogoDto: {
|
|
6241
|
+
/** @enum {string} */
|
|
6242
|
+
contentType: "image/webp";
|
|
6243
|
+
/** @description Base64-encoded 128×128 WebP. No data-URL prefix. */
|
|
6244
|
+
data: string;
|
|
6245
|
+
};
|
|
6246
|
+
CompanyProfileLogoPutDto: {
|
|
6247
|
+
/** @enum {string} */
|
|
6248
|
+
contentType: "image/png" | "image/jpeg" | "image/webp";
|
|
6249
|
+
/** @description Base64-encoded source image, at most 2 MB after decoding. */
|
|
6250
|
+
data: string;
|
|
6213
6251
|
};
|
|
6214
6252
|
WorkspacesForUserDto: {
|
|
6215
6253
|
workspaces: components["schemas"]["WorkspaceSummaryDto"][];
|
|
@@ -6226,6 +6264,8 @@ export interface components {
|
|
|
6226
6264
|
companySize: string;
|
|
6227
6265
|
engineeringHC: string;
|
|
6228
6266
|
headquarters: string;
|
|
6267
|
+
/** @description Present on GET when a logo is stored. Ignored by PUT /company-profile. Upload and delete use the /company-profile/logo routes. */
|
|
6268
|
+
logo?: components["schemas"]["WorkspaceLogoDto"] | null;
|
|
6229
6269
|
};
|
|
6230
6270
|
GithubAccountDto: {
|
|
6231
6271
|
login: string;
|
|
@@ -10241,6 +10281,8 @@ export type FulfillPersonErasureBodyDto = components['schemas']['FulfillPersonEr
|
|
|
10241
10281
|
export type PrivacyRequestPersonErasureResultDto = components['schemas']['PrivacyRequestPersonErasureResultDto'];
|
|
10242
10282
|
export type PrivacyRequestExportDto = components['schemas']['PrivacyRequestExportDto'];
|
|
10243
10283
|
export type WorkspaceSummaryDto = components['schemas']['WorkspaceSummaryDto'];
|
|
10284
|
+
export type WorkspaceLogoDto = components['schemas']['WorkspaceLogoDto'];
|
|
10285
|
+
export type CompanyProfileLogoPutDto = components['schemas']['CompanyProfileLogoPutDto'];
|
|
10244
10286
|
export type WorkspacesForUserDto = components['schemas']['WorkspacesForUserDto'];
|
|
10245
10287
|
export type CreateWorkspaceBodyDto = components['schemas']['CreateWorkspaceBodyDto'];
|
|
10246
10288
|
export type CompanyProfileDto = components['schemas']['CompanyProfileDto'];
|
|
@@ -14900,6 +14942,101 @@ export interface operations {
|
|
|
14900
14942
|
};
|
|
14901
14943
|
};
|
|
14902
14944
|
};
|
|
14945
|
+
putCompanyProfileLogo: {
|
|
14946
|
+
parameters: {
|
|
14947
|
+
query?: never;
|
|
14948
|
+
header?: never;
|
|
14949
|
+
path: {
|
|
14950
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
14951
|
+
};
|
|
14952
|
+
cookie?: never;
|
|
14953
|
+
};
|
|
14954
|
+
requestBody: {
|
|
14955
|
+
content: {
|
|
14956
|
+
"application/json": components["schemas"]["CompanyProfileLogoPutDto"];
|
|
14957
|
+
};
|
|
14958
|
+
};
|
|
14959
|
+
responses: {
|
|
14960
|
+
/** @description Stored 128×128 WebP */
|
|
14961
|
+
200: {
|
|
14962
|
+
headers: {
|
|
14963
|
+
[name: string]: unknown;
|
|
14964
|
+
};
|
|
14965
|
+
content: {
|
|
14966
|
+
"application/json": components["schemas"]["WorkspaceLogoDto"];
|
|
14967
|
+
};
|
|
14968
|
+
};
|
|
14969
|
+
/** @description Invalid image, unsupported type, or result still too large */
|
|
14970
|
+
400: {
|
|
14971
|
+
headers: {
|
|
14972
|
+
[name: string]: unknown;
|
|
14973
|
+
};
|
|
14974
|
+
content: {
|
|
14975
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
14976
|
+
};
|
|
14977
|
+
};
|
|
14978
|
+
401: components["responses"]["Unauthorized"];
|
|
14979
|
+
403: components["responses"]["Forbidden"];
|
|
14980
|
+
/** @description Workspace does not exist */
|
|
14981
|
+
404: {
|
|
14982
|
+
headers: {
|
|
14983
|
+
[name: string]: unknown;
|
|
14984
|
+
};
|
|
14985
|
+
content: {
|
|
14986
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
14987
|
+
};
|
|
14988
|
+
};
|
|
14989
|
+
/** @description No company profile saved yet (`company_profile_required`) */
|
|
14990
|
+
409: {
|
|
14991
|
+
headers: {
|
|
14992
|
+
[name: string]: unknown;
|
|
14993
|
+
};
|
|
14994
|
+
content: {
|
|
14995
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
14996
|
+
};
|
|
14997
|
+
};
|
|
14998
|
+
};
|
|
14999
|
+
};
|
|
15000
|
+
deleteCompanyProfileLogo: {
|
|
15001
|
+
parameters: {
|
|
15002
|
+
query?: never;
|
|
15003
|
+
header?: never;
|
|
15004
|
+
path: {
|
|
15005
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
15006
|
+
};
|
|
15007
|
+
cookie?: never;
|
|
15008
|
+
};
|
|
15009
|
+
requestBody?: never;
|
|
15010
|
+
responses: {
|
|
15011
|
+
/** @description Logo cleared */
|
|
15012
|
+
204: {
|
|
15013
|
+
headers: {
|
|
15014
|
+
[name: string]: unknown;
|
|
15015
|
+
};
|
|
15016
|
+
content?: never;
|
|
15017
|
+
};
|
|
15018
|
+
401: components["responses"]["Unauthorized"];
|
|
15019
|
+
403: components["responses"]["Forbidden"];
|
|
15020
|
+
/** @description Workspace does not exist */
|
|
15021
|
+
404: {
|
|
15022
|
+
headers: {
|
|
15023
|
+
[name: string]: unknown;
|
|
15024
|
+
};
|
|
15025
|
+
content: {
|
|
15026
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
15027
|
+
};
|
|
15028
|
+
};
|
|
15029
|
+
/** @description No company profile saved yet (`company_profile_required`) */
|
|
15030
|
+
409: {
|
|
15031
|
+
headers: {
|
|
15032
|
+
[name: string]: unknown;
|
|
15033
|
+
};
|
|
15034
|
+
content: {
|
|
15035
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
15036
|
+
};
|
|
15037
|
+
};
|
|
15038
|
+
};
|
|
15039
|
+
};
|
|
14903
15040
|
getWorkspaceConnectorsSnapshot: {
|
|
14904
15041
|
parameters: {
|
|
14905
15042
|
query?: never;
|