@thinkai/tai-api-contract 2.176.0 → 2.180.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.
@@ -3431,6 +3431,26 @@ export interface paths {
3431
3431
  patch?: never;
3432
3432
  trace?: never;
3433
3433
  };
3434
+ "/workspaces/{workspaceId}/knowledge-pages/{slug}": {
3435
+ parameters: {
3436
+ query?: never;
3437
+ header?: never;
3438
+ path?: never;
3439
+ cookie?: never;
3440
+ };
3441
+ get?: never;
3442
+ put?: never;
3443
+ post?: never;
3444
+ /**
3445
+ * Delete a workspace knowledge page by slug
3446
+ * @description Removes one page (typically a `prd-*` / `rfc-*` / `adr-*` draft). Does not regenerate the rest of the knowledge base.
3447
+ */
3448
+ delete: operations["deleteWorkspaceKnowledgePage"];
3449
+ options?: never;
3450
+ head?: never;
3451
+ patch?: never;
3452
+ trace?: never;
3453
+ };
3434
3454
  "/workspaces/{workspaceId}/knowledge-pages/generate": {
3435
3455
  parameters: {
3436
3456
  query?: never;
@@ -9144,7 +9164,7 @@ export interface components {
9144
9164
  };
9145
9165
  AssessmentDictionaryDto: {
9146
9166
  /** @enum {string} */
9147
- version: "2026-10-18.1";
9167
+ version: "2026-10-20.1";
9148
9168
  /** @enum {integer} */
9149
9169
  periodDays: 90;
9150
9170
  /** @enum {integer} */
@@ -9156,6 +9176,8 @@ export interface components {
9156
9176
  /** @enum {integer} */
9157
9177
  accessDaysAfterDelivery: 30;
9158
9178
  /** @enum {integer} */
9179
+ deliveryBusinessDays: 5;
9180
+ /** @enum {integer} */
9159
9181
  maxRepositories: 50;
9160
9182
  /** @enum {integer} */
9161
9183
  maxActiveEngineers: 500;
@@ -9185,15 +9207,90 @@ export interface components {
9185
9207
  status: "supported";
9186
9208
  providers: ("gitlab_self_managed" | "bitbucket_data_center")[];
9187
9209
  };
9210
+ rules: {
9211
+ /** @enum {number} */
9212
+ windowCoverageRatio: 1;
9213
+ /** @enum {integer} */
9214
+ repositoryMergedPullRequestsInBothWindows: 1;
9215
+ freshness: {
9216
+ /** @enum {integer} */
9217
+ gitHours: 24;
9218
+ /** @enum {integer} */
9219
+ jiraHours: 24;
9220
+ /** @enum {integer} */
9221
+ incidentHours: 24;
9222
+ /** @enum {integer} */
9223
+ aiUsageDays: 7;
9224
+ /** @enum {integer} */
9225
+ readinessScanDays: 30;
9226
+ };
9227
+ tolerances: {
9228
+ /** @enum {number} */
9229
+ moneyUsd: 0.01;
9230
+ /** @enum {number} */
9231
+ ratioPercentagePoints: 0.01;
9232
+ /** @enum {integer} */
9233
+ durationSeconds: 1;
9234
+ };
9235
+ /** @enum {string} */
9236
+ outputUnit: "normalized_ship_weight";
9237
+ /** @enum {string} */
9238
+ rolloutTimezone: "America/New_York";
9239
+ /** @enum {string} */
9240
+ rolloutBoundary: "midnight";
9241
+ /** @enum {string} */
9242
+ costAssessableCurrency: "USD";
9243
+ };
9188
9244
  unresolved: {
9189
9245
  baselinePrice: components["schemas"]["UnsetAssessmentDecisionDto"];
9190
9246
  premiumPrice: components["schemas"]["UnsetAssessmentDecisionDto"];
9191
- currency: components["schemas"]["UnsetAssessmentDecisionDto"];
9192
- creditWindowDays: components["schemas"]["UnsetAssessmentDecisionDto"];
9193
- jiraLinkageMinimum: components["schemas"]["UnsetAssessmentDecisionDto"];
9194
- confounderRules: components["schemas"]["UnsetAssessmentDecisionDto"];
9195
- activeEngineerRule: components["schemas"]["UnsetAssessmentDecisionDto"];
9196
- workingDayCalendar: components["schemas"]["UnsetAssessmentDecisionDto"];
9247
+ currency: {
9248
+ /** @enum {string} */
9249
+ status: "set";
9250
+ /** @enum {string} */
9251
+ code: "USD";
9252
+ };
9253
+ creditWindowDays: {
9254
+ /** @enum {string} */
9255
+ status: "set";
9256
+ /** @enum {integer} */
9257
+ days: 90;
9258
+ /** @enum {string} */
9259
+ eligibleSubscription: "annual";
9260
+ };
9261
+ jiraLinkageMinimum: {
9262
+ /** @enum {string} */
9263
+ status: "set";
9264
+ /** @enum {number} */
9265
+ ratio: 0.8;
9266
+ };
9267
+ confounderRules: {
9268
+ /** @enum {string} */
9269
+ status: "set";
9270
+ /** @enum {number} */
9271
+ headcountChangeRatio: 0.1;
9272
+ /** @enum {number} */
9273
+ repositoryScopeChangeRatio: 0.1;
9274
+ namedEvents: ("major_release" | "migration" | "acquisition" | "policy_change")[];
9275
+ };
9276
+ activeEngineerRule: {
9277
+ /** @enum {string} */
9278
+ status: "set";
9279
+ /** @enum {string} */
9280
+ activity: "authored_commit_or_merged_pr";
9281
+ /** @enum {string} */
9282
+ window: "measured_period";
9283
+ exclude: ("bot" | "service_account" | "unmapped" | "read_only")[];
9284
+ };
9285
+ workingDayCalendar: {
9286
+ /** @enum {string} */
9287
+ status: "set";
9288
+ /** @enum {string} */
9289
+ timezone: "America/New_York";
9290
+ weekdays: ("monday" | "tuesday" | "wednesday" | "thursday" | "friday")[];
9291
+ /** @enum {string} */
9292
+ holidays: "none";
9293
+ };
9197
9294
  countryAllowList: components["schemas"]["UnsetAssessmentDecisionDto"];
9198
9295
  };
9199
9296
  };
@@ -10227,12 +10324,21 @@ export interface components {
10227
10324
  * @description Classified Ask intent for the turn
10228
10325
  * @enum {string}
10229
10326
  */
10230
- intent?: "inventory_apis" | "inventory_modules" | "explain" | "platform_ops" | "feature_impact" | "prd_request";
10327
+ intent?: "inventory_apis" | "inventory_modules" | "explain" | "platform_ops" | "feature_impact" | "pr_review" | "prd_request";
10231
10328
  /**
10232
10329
  * @description Conversation skill pack that grounded the LLM answer (Wave 10)
10233
10330
  * @enum {string}
10234
10331
  */
10235
- skillId?: "chat-api-detail" | "chat-architecture" | "chat-tests" | "chat-contracts" | "chat-cicd" | "chat-stack" | "chat-platform" | "chat-wiki";
10332
+ skillId?: "chat-api-detail" | "chat-architecture" | "chat-tests" | "chat-contracts" | "chat-cicd" | "chat-stack" | "chat-platform" | "chat-workspace" | "chat-product" | "chat-pr-review" | "chat-wiki";
10333
+ /** @description Short customer-safe summary when mode is failed. Shown in the reply body; raw provider detail is only in providerFailures / debug marker. */
10334
+ userMessage?: string;
10335
+ /** @description Structured provider failures for Conversations ⓘ hover (primary first). Also embedded in content as `<!-- code-intel-debug:{...} -->` for reload. */
10336
+ providerFailures?: {
10337
+ /** @enum {string} */
10338
+ provider: "anthropic_messages" | "cursor_agent";
10339
+ sanitized: string;
10340
+ raw: string;
10341
+ }[];
10236
10342
  usage?: components["schemas"]["CodeIntelligenceUsageDto"];
10237
10343
  };
10238
10344
  CodeChatApiRouteRowDto: {
@@ -12648,11 +12754,44 @@ export interface operations {
12648
12754
  shareMode: "internal" | "external";
12649
12755
  /** @enum {string|null} */
12650
12756
  watermark: "NOT VALIDATED" | "SAMPLE · SYNTHETIC DATA" | null;
12651
- scope: Record<string, never>;
12652
- windows: Record<string, never>;
12653
- sources: Record<string, never>[];
12654
- consent: Record<string, never>;
12655
- sections: Record<string, never>[];
12757
+ scope: {
12758
+ repositories: {
12759
+ id: string;
12760
+ name: string;
12761
+ }[];
12762
+ excluded: {
12763
+ id: string;
12764
+ name: string;
12765
+ reason: string;
12766
+ }[];
12767
+ };
12768
+ windows: {
12769
+ pre: {
12770
+ start: string;
12771
+ end: string;
12772
+ } | null;
12773
+ post: {
12774
+ start: string;
12775
+ end: string;
12776
+ } | null;
12777
+ transitionDays: number;
12778
+ };
12779
+ sources: {
12780
+ provider: string;
12781
+ status: string;
12782
+ freshAt: string | null;
12783
+ }[];
12784
+ consent: {
12785
+ /** @enum {string} */
12786
+ aggregateUse: "opt_in" | "opt_out" | "unset";
12787
+ recordedAt: string | null;
12788
+ };
12789
+ sections: {
12790
+ id: string;
12791
+ /** @enum {string} */
12792
+ status: "ok" | "failed" | "omitted";
12793
+ reason?: string;
12794
+ }[];
12656
12795
  };
12657
12796
  workspaceId: string;
12658
12797
  expectedWorkspaceId: string;
@@ -21637,6 +21776,37 @@ export interface operations {
21637
21776
  401: components["responses"]["Unauthorized"];
21638
21777
  };
21639
21778
  };
21779
+ deleteWorkspaceKnowledgePage: {
21780
+ parameters: {
21781
+ query?: never;
21782
+ header?: never;
21783
+ path: {
21784
+ workspaceId: components["parameters"]["WorkspaceId"];
21785
+ slug: string;
21786
+ };
21787
+ cookie?: never;
21788
+ };
21789
+ requestBody?: never;
21790
+ responses: {
21791
+ /** @description Page deleted */
21792
+ 204: {
21793
+ headers: {
21794
+ [name: string]: unknown;
21795
+ };
21796
+ content?: never;
21797
+ };
21798
+ 401: components["responses"]["Unauthorized"];
21799
+ /** @description Page not found (`knowledge_page_not_found`) */
21800
+ 404: {
21801
+ headers: {
21802
+ [name: string]: unknown;
21803
+ };
21804
+ content: {
21805
+ "application/json": components["schemas"]["ErrorMessageDto"];
21806
+ };
21807
+ };
21808
+ };
21809
+ };
21640
21810
  generateWorkspaceKnowledgePages: {
21641
21811
  parameters: {
21642
21812
  query?: never;