@thinkai/tai-api-contract 2.45.0-pr.855.f75b4bb3 → 2.45.1
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/openapi/openapi.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
openapi: 3.0.3
|
|
2
2
|
info:
|
|
3
3
|
title: ThinkAI API
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.45.1
|
|
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,10 +2459,13 @@ 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
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2462
|
+
Pass `full=true` to force a full re-sync that re-pulls the full history instead of the
|
|
2463
|
+
incremental window, used to backfill historical months. Provider-specific behavior:
|
|
2464
|
+
Claude Enterprise re-pulls six calendar months of daily usage; Claude Team widens its
|
|
2465
|
+
daily-usage window to the configured history depth (`spendHistoryDays`, default 180 days);
|
|
2466
|
+
Cursor resets its spend/model/daily backfill cursors so the full `spendHistoryDays` window
|
|
2467
|
+
re-ingests from the retention floor even when the backfill was already complete.
|
|
2468
|
+
Omitted/false performs a normal incremental refresh.
|
|
2466
2469
|
parameters:
|
|
2467
2470
|
- $ref: "#/components/parameters/WorkspaceId"
|
|
2468
2471
|
- name: provider
|
|
@@ -2475,8 +2478,9 @@ paths:
|
|
|
2475
2478
|
in: query
|
|
2476
2479
|
required: false
|
|
2477
2480
|
description: >
|
|
2478
|
-
Force a full re-sync
|
|
2479
|
-
|
|
2481
|
+
Force a full history re-sync instead of the incremental window (Enterprise: 6 months;
|
|
2482
|
+
Team: `spendHistoryDays`-day daily-usage window; Cursor: spend/model/daily backfill reset
|
|
2483
|
+
over `spendHistoryDays`). Truthy only for `true` or `1`.
|
|
2480
2484
|
schema:
|
|
2481
2485
|
type: string
|
|
2482
2486
|
enum: ["true", "1"]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thinkai/tai-api-contract",
|
|
3
|
-
"version": "2.45.
|
|
3
|
+
"version": "2.45.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@stoplight/spectral-cli": "^6.16.
|
|
24
|
-
"@types/node": "^
|
|
23
|
+
"@stoplight/spectral-cli": "^6.16.1",
|
|
24
|
+
"@types/node": "^26.0.1",
|
|
25
25
|
"jsonpath-plus": "^10.3.0",
|
|
26
26
|
"openapi-typescript": "^7.13.0",
|
|
27
27
|
"typescript": "~6.0.3"
|
package/src/generated/openapi.ts
CHANGED
|
@@ -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. Pass `full=true` to force a full re-sync that
|
|
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 re-pulls the full history instead of the incremental window, used to backfill historical months. Provider-specific behavior: Claude Enterprise re-pulls six calendar months of daily usage; Claude Team widens its daily-usage window to the configured history depth (`spendHistoryDays`, default 180 days); Cursor resets its spend/model/daily backfill cursors so the full `spendHistoryDays` window re-ingests from the retention floor even when the backfill was already complete. Omitted/false performs a normal incremental refresh.
|
|
846
846
|
*/
|
|
847
847
|
post: operations["refreshWorkspaceAiTool"];
|
|
848
848
|
delete?: never;
|
|
@@ -7101,7 +7101,7 @@ export interface operations {
|
|
|
7101
7101
|
refreshWorkspaceAiTool: {
|
|
7102
7102
|
parameters: {
|
|
7103
7103
|
query?: {
|
|
7104
|
-
/** @description Force a full re-sync
|
|
7104
|
+
/** @description Force a full history re-sync instead of the incremental window (Enterprise: 6 months; Team: `spendHistoryDays`-day daily-usage window; Cursor: spend/model/daily backfill reset over `spendHistoryDays`). Truthy only for `true` or `1`. */
|
|
7105
7105
|
full?: "true" | "1";
|
|
7106
7106
|
};
|
|
7107
7107
|
header?: never;
|