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