@thinkai/tai-api-contract 2.135.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.
@@ -4158,6 +4158,26 @@ export interface paths {
4158
4158
  patch?: never;
4159
4159
  trace?: never;
4160
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
+ };
4161
4181
  "/workspaces/{workspaceId}/ingest-runs": {
4162
4182
  parameters: {
4163
4183
  query?: never;
@@ -8154,6 +8174,19 @@ export interface components {
8154
8174
  missingWeeks?: number | null;
8155
8175
  gaps?: components["schemas"]["IngestCoverageGapDto"][];
8156
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;
8157
8190
  };
8158
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. */
8159
8192
  IngestCoverageProductivityDepthScanDto: {
@@ -10461,6 +10494,7 @@ export type WorkspaceAbsenceListDto = components['schemas']['WorkspaceAbsenceLis
10461
10494
  export type IngestCoverageGapDto = components['schemas']['IngestCoverageGapDto'];
10462
10495
  export type IngestCoverageLastRunDto = components['schemas']['IngestCoverageLastRunDto'];
10463
10496
  export type IngestCoverageProductivityRepoDto = components['schemas']['IngestCoverageProductivityRepoDto'];
10497
+ export type ProductivityRepoRetryResponseDto = components['schemas']['ProductivityRepoRetryResponseDto'];
10464
10498
  export type IngestCoverageProductivityDepthScanDto = components['schemas']['IngestCoverageProductivityDepthScanDto'];
10465
10499
  export type IngestCoverageProductivityWeekReconcileDto = components['schemas']['IngestCoverageProductivityWeekReconcileDto'];
10466
10500
  export type IngestCoverageProductivitySelfHealDto = components['schemas']['IngestCoverageProductivitySelfHealDto'];
@@ -21187,6 +21221,50 @@ export interface operations {
21187
21221
  403: components["responses"]["Forbidden"];
21188
21222
  };
21189
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
+ };
21190
21268
  getWorkspaceIngestRuns: {
21191
21269
  parameters: {
21192
21270
  query?: {