@thinkai/tai-api-contract 2.43.0 → 2.44.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.
@@ -1,7 +1,7 @@
1
1
  openapi: 3.0.3
2
2
  info:
3
3
  title: ThinkAI API
4
- version: 2.42.0
4
+ version: 2.44.0
5
5
  description: >
6
6
  Contract surface for the AI Driven SDLC backend used by ThinkAI.
7
7
  Workspace-scoped routes use `/workspaces/{workspaceId}/...`.
@@ -2459,6 +2459,10 @@ paths:
2459
2459
  description: >
2460
2460
  Provider-agnostic refresh. Returns 409 when an advisory-lock refresh is already in progress.
2461
2461
  On upstream auth/rate/network failures, returns `200` with `{ ok:false, error }` so the SPA can render inline error.
2462
+ Pass `full=true` to force a full re-sync that ignores the incremental daily-usage watermark and
2463
+ re-pulls the full initial window (six calendar months for Claude Enterprise) — used to backfill
2464
+ historical months after an ingestion-granularity change. Omitted/false performs a normal
2465
+ incremental refresh.
2462
2466
  parameters:
2463
2467
  - $ref: "#/components/parameters/WorkspaceId"
2464
2468
  - name: provider
@@ -2467,6 +2471,15 @@ paths:
2467
2471
  schema:
2468
2472
  type: string
2469
2473
  enum: [cursor, claude]
2474
+ - name: full
2475
+ in: query
2476
+ required: false
2477
+ description: >
2478
+ Force a full re-sync (ignore the daily-usage watermark, re-pull the full initial window).
2479
+ Truthy only for `true` or `1`.
2480
+ schema:
2481
+ type: string
2482
+ enum: ["true", "1"]
2470
2483
  responses:
2471
2484
  "200":
2472
2485
  description: Refresh result
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkai/tai-api-contract",
3
- "version": "2.43.0",
3
+ "version": "2.44.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -842,7 +842,7 @@ export interface paths {
842
842
  put?: never;
843
843
  /**
844
844
  * Refresh AI tool integration snapshots
845
- * @description Provider-agnostic refresh. Returns 409 when an advisory-lock refresh is already in progress. On upstream auth/rate/network failures, returns `200` with `{ ok:false, error }` so the SPA can render inline error.
845
+ * @description Provider-agnostic refresh. Returns 409 when an advisory-lock refresh is already in progress. On upstream auth/rate/network failures, returns `200` with `{ ok:false, error }` so the SPA can render inline error. Pass `full=true` to force a full re-sync that ignores the incremental daily-usage watermark and re-pulls the full initial window (six calendar months for Claude Enterprise) — used to backfill historical months after an ingestion-granularity change. Omitted/false performs a normal incremental refresh.
846
846
  */
847
847
  post: operations["refreshWorkspaceAiTool"];
848
848
  delete?: never;
@@ -7084,7 +7084,10 @@ export interface operations {
7084
7084
  };
7085
7085
  refreshWorkspaceAiTool: {
7086
7086
  parameters: {
7087
- query?: never;
7087
+ query?: {
7088
+ /** @description Force a full re-sync (ignore the daily-usage watermark, re-pull the full initial window). Truthy only for `true` or `1`. */
7089
+ full?: "true" | "1";
7090
+ };
7088
7091
  header?: never;
7089
7092
  path: {
7090
7093
  workspaceId: components["parameters"]["WorkspaceId"];