@thinkai/tai-api-contract 2.43.0 → 2.45.0-pr.855.c0f2ad3f
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.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
|
|
@@ -8124,6 +8137,29 @@ components:
|
|
|
8124
8137
|
format: date-time
|
|
8125
8138
|
description: When the pending install request was recorded.
|
|
8126
8139
|
|
|
8140
|
+
GithubSetupInProgressDto:
|
|
8141
|
+
type: object
|
|
8142
|
+
additionalProperties: false
|
|
8143
|
+
required: [kind, startedAt, expiresAt]
|
|
8144
|
+
properties:
|
|
8145
|
+
kind:
|
|
8146
|
+
type: string
|
|
8147
|
+
enum: [install_started, account_picker_ready]
|
|
8148
|
+
description: >
|
|
8149
|
+
install_started — user opened GitHub App install but callback not completed;
|
|
8150
|
+
account_picker_ready — user OAuth completed and org picker session is active.
|
|
8151
|
+
startedAt:
|
|
8152
|
+
type: string
|
|
8153
|
+
format: date-time
|
|
8154
|
+
expiresAt:
|
|
8155
|
+
type: string
|
|
8156
|
+
format: date-time
|
|
8157
|
+
pickerSessionId:
|
|
8158
|
+
type: string
|
|
8159
|
+
minLength: 8
|
|
8160
|
+
maxLength: 128
|
|
8161
|
+
description: Present when kind is account_picker_ready; use with GET connectable-accounts.
|
|
8162
|
+
|
|
8127
8163
|
GithubActionsWorkflowPreviewDto:
|
|
8128
8164
|
type: object
|
|
8129
8165
|
additionalProperties: false
|
|
@@ -8211,6 +8247,13 @@ components:
|
|
|
8211
8247
|
allOf:
|
|
8212
8248
|
- $ref: "#/components/schemas/GithubPendingApprovalDto"
|
|
8213
8249
|
description: Present when an org admin must approve the GitHub App install request.
|
|
8250
|
+
setupInProgress:
|
|
8251
|
+
nullable: true
|
|
8252
|
+
allOf:
|
|
8253
|
+
- $ref: "#/components/schemas/GithubSetupInProgressDto"
|
|
8254
|
+
description: >
|
|
8255
|
+
Present when GitHub connect was started but not completed (install OAuth state or
|
|
8256
|
+
account-picker session still active). Omitted when pendingApproval is set.
|
|
8214
8257
|
installationId:
|
|
8215
8258
|
type: string
|
|
8216
8259
|
nullable: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thinkai/tai-api-contract",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.45.0-pr.855.c0f2ad3f",
|
|
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.
|
|
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;
|
|
@@ -3269,6 +3269,19 @@ export interface components {
|
|
|
3269
3269
|
*/
|
|
3270
3270
|
pendingSince: string;
|
|
3271
3271
|
};
|
|
3272
|
+
GithubSetupInProgressDto: {
|
|
3273
|
+
/**
|
|
3274
|
+
* @description install_started — user opened GitHub App install but callback not completed; account_picker_ready — user OAuth completed and org picker session is active.
|
|
3275
|
+
* @enum {string}
|
|
3276
|
+
*/
|
|
3277
|
+
kind: "install_started" | "account_picker_ready";
|
|
3278
|
+
/** Format: date-time */
|
|
3279
|
+
startedAt: string;
|
|
3280
|
+
/** Format: date-time */
|
|
3281
|
+
expiresAt: string;
|
|
3282
|
+
/** @description Present when kind is account_picker_ready; use with GET connectable-accounts. */
|
|
3283
|
+
pickerSessionId?: string;
|
|
3284
|
+
};
|
|
3272
3285
|
GithubActionsWorkflowPreviewDto: {
|
|
3273
3286
|
/** @description Approximate workflow count from recent API sample (best effort). */
|
|
3274
3287
|
workflows?: number;
|
|
@@ -3312,6 +3325,8 @@ export interface components {
|
|
|
3312
3325
|
permissionsUpgradeRequired: boolean;
|
|
3313
3326
|
/** @description Present when an org admin must approve the GitHub App install request. */
|
|
3314
3327
|
pendingApproval?: components["schemas"]["GithubPendingApprovalDto"] | null;
|
|
3328
|
+
/** @description Present when GitHub connect was started but not completed (install OAuth state or account-picker session still active). Omitted when pendingApproval is set. */
|
|
3329
|
+
setupInProgress?: components["schemas"]["GithubSetupInProgressDto"] | null;
|
|
3315
3330
|
installationId?: string | null;
|
|
3316
3331
|
account?: components["schemas"]["GithubAccountDto"] | null;
|
|
3317
3332
|
/** @description Paginated merged installation repositories when `installed` is true. */
|
|
@@ -4704,6 +4719,7 @@ export type RepoEligibilityLimitsDto = components['schemas']['RepoEligibilityLim
|
|
|
4704
4719
|
export type GithubMissingPermissionDto = components['schemas']['GithubMissingPermissionDto'];
|
|
4705
4720
|
export type GithubInstallationSummaryDto = components['schemas']['GithubInstallationSummaryDto'];
|
|
4706
4721
|
export type GithubPendingApprovalDto = components['schemas']['GithubPendingApprovalDto'];
|
|
4722
|
+
export type GithubSetupInProgressDto = components['schemas']['GithubSetupInProgressDto'];
|
|
4707
4723
|
export type GithubActionsWorkflowPreviewDto = components['schemas']['GithubActionsWorkflowPreviewDto'];
|
|
4708
4724
|
export type GithubActionsIntegrationStatusDto = components['schemas']['GithubActionsIntegrationStatusDto'];
|
|
4709
4725
|
export type GithubActionsEnableResponseDto = components['schemas']['GithubActionsEnableResponseDto'];
|
|
@@ -7084,7 +7100,10 @@ export interface operations {
|
|
|
7084
7100
|
};
|
|
7085
7101
|
refreshWorkspaceAiTool: {
|
|
7086
7102
|
parameters: {
|
|
7087
|
-
query?:
|
|
7103
|
+
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`. */
|
|
7105
|
+
full?: "true" | "1";
|
|
7106
|
+
};
|
|
7088
7107
|
header?: never;
|
|
7089
7108
|
path: {
|
|
7090
7109
|
workspaceId: components["parameters"]["WorkspaceId"];
|