@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.
@@ -841,7 +841,7 @@ export interface paths {
841
841
  put?: never;
842
842
  /**
843
843
  * Refresh AI tool integration snapshots
844
- * @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.
844
+ * @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.
845
845
  */
846
846
  post: operations["refreshWorkspaceAiTool"];
847
847
  delete?: never;
@@ -3356,6 +3356,11 @@ export interface components {
3356
3356
  returnPath?: string;
3357
3357
  /** @description OAuth org-picker session id; when set, server prefers the session's stored returnPath over the body returnPath. */
3358
3358
  pickerSession?: string;
3359
+ /**
3360
+ * Format: uri
3361
+ * @description SPA origin to redirect back to after OAuth; must match server spaOrigins allowlist.
3362
+ */
3363
+ spaOrigin?: string;
3359
3364
  };
3360
3365
  GithubInstallUrlResponseDto: {
3361
3366
  /** Format: uri */
@@ -3364,6 +3369,11 @@ export interface components {
3364
3369
  };
3365
3370
  GithubUserAuthorizeUrlRequestDto: {
3366
3371
  returnPath?: string;
3372
+ /**
3373
+ * Format: uri
3374
+ * @description SPA origin to redirect back to after OAuth; must match server spaOrigins allowlist.
3375
+ */
3376
+ spaOrigin?: string;
3367
3377
  };
3368
3378
  GithubUserAuthorizeUrlResponseDto: {
3369
3379
  /** Format: uri */
@@ -7100,7 +7110,7 @@ export interface operations {
7100
7110
  refreshWorkspaceAiTool: {
7101
7111
  parameters: {
7102
7112
  query?: {
7103
- /** @description Force a full re-sync (ignore the daily-usage watermark, re-pull the full initial window). Truthy only for `true` or `1`. */
7113
+ /** @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`. */
7104
7114
  full?: "true" | "1";
7105
7115
  };
7106
7116
  header?: never;