@thinkai/tai-api-contract 2.45.0 → 2.46.0-pr.858.7e24f603

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.44.0
4
+ version: 2.46.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,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 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
+ 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 (ignore the daily-usage watermark, re-pull the full initial window).
2479
- Truthy only for `true` or `1`.
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"]
@@ -8312,6 +8316,11 @@ components:
8312
8316
  minLength: 8
8313
8317
  maxLength: 128
8314
8318
  description: OAuth org-picker session id; when set, server prefers the session's stored returnPath over the body returnPath.
8319
+ spaOrigin:
8320
+ type: string
8321
+ format: uri
8322
+ maxLength: 256
8323
+ description: SPA origin to redirect back to after OAuth; must match server spaOrigins allowlist.
8315
8324
 
8316
8325
  GithubInstallUrlResponseDto:
8317
8326
  type: object
@@ -8335,6 +8344,11 @@ components:
8335
8344
  type: string
8336
8345
  pattern: '^/[A-Za-z0-9/_\-\?\=&]*$'
8337
8346
  maxLength: 256
8347
+ spaOrigin:
8348
+ type: string
8349
+ format: uri
8350
+ maxLength: 256
8351
+ description: SPA origin to redirect back to after OAuth; must match server spaOrigins allowlist.
8338
8352
 
8339
8353
  GithubUserAuthorizeUrlResponseDto:
8340
8354
  type: object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkai/tai-api-contract",
3
- "version": "2.45.0",
3
+ "version": "2.46.0-pr.858.7e24f603",
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. 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.
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;
@@ -3357,6 +3357,11 @@ export interface components {
3357
3357
  returnPath?: string;
3358
3358
  /** @description OAuth org-picker session id; when set, server prefers the session's stored returnPath over the body returnPath. */
3359
3359
  pickerSession?: string;
3360
+ /**
3361
+ * Format: uri
3362
+ * @description SPA origin to redirect back to after OAuth; must match server spaOrigins allowlist.
3363
+ */
3364
+ spaOrigin?: string;
3360
3365
  };
3361
3366
  GithubInstallUrlResponseDto: {
3362
3367
  /** Format: uri */
@@ -3365,6 +3370,11 @@ export interface components {
3365
3370
  };
3366
3371
  GithubUserAuthorizeUrlRequestDto: {
3367
3372
  returnPath?: string;
3373
+ /**
3374
+ * Format: uri
3375
+ * @description SPA origin to redirect back to after OAuth; must match server spaOrigins allowlist.
3376
+ */
3377
+ spaOrigin?: string;
3368
3378
  };
3369
3379
  GithubUserAuthorizeUrlResponseDto: {
3370
3380
  /** Format: uri */
@@ -7101,7 +7111,7 @@ export interface operations {
7101
7111
  refreshWorkspaceAiTool: {
7102
7112
  parameters: {
7103
7113
  query?: {
7104
- /** @description Force a full re-sync (ignore the daily-usage watermark, re-pull the full initial window). Truthy only for `true` or `1`. */
7114
+ /** @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
7115
  full?: "true" | "1";
7106
7116
  };
7107
7117
  header?: never;