@thinkai/tai-api-contract 2.209.1 → 2.210.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/dist/generated/openapi.d.ts +269 -14
- package/dist/generated/openapi.d.ts.map +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/openapi/openapi.yaml +393 -11
- package/package.json +1 -1
- package/src/generated/openapi.ts +269 -14
- package/src/index.ts +7 -3
package/src/generated/openapi.ts
CHANGED
|
@@ -1049,7 +1049,7 @@ export interface paths {
|
|
|
1049
1049
|
/**
|
|
1050
1050
|
* Test one source connection (does not persist)
|
|
1051
1051
|
* @description Verify a source's credentials without persisting them. Always returns 200 — upstream auth, rate-limit, and network failures surface as `{ success: false, error }` so the SPA can render an inline error.
|
|
1052
|
-
* Registered AI tools are verified end-to-end: `cursor` (Admin API key in `token` and/or execution key in `executionToken`; at least one must be present). Execution-only tests validate the key against the Cloud Agents API (`GET /v1/me`, with `GET /v1/models` fallback for service accounts) and return `executionKeyValid` / `executionKeyError` without calling the Admin API on `token`. Malformed cursor entries return `400` with `code: invalid_source_entry`. `claude` (Anthropic Admin API at `https://api.anthropic.com`, `X-Api-Key` with an organization Admin API key `sk-ant-admin...`). `sonarqube` (`baseUrl`, `token`, `projectKey` required; optional `branch`) calls `GET {baseUrl}/api/measures/component` with a Bearer token. Other types report `{ success: false, error: "unsupported_type" }`. Documented `error` codes for AI tool verifiers: `invalid_token`, `rate_limited`, `network_error`. `jira` (`baseUrl`, `email`, `apiToken` or legacy `api_key`) calls `GET {baseUrl}/rest/api/3/myself` with Basic auth.
|
|
1052
|
+
* Registered AI tools are verified end-to-end: `cursor` (Admin API key in `token` and/or execution key in `executionToken`; at least one must be present). Execution-only tests validate the key against the Cloud Agents API (`GET /v1/me`, with `GET /v1/models` fallback for service accounts) and return `executionKeyValid` / `executionKeyError` without calling the Admin API on `token`. Malformed cursor entries return `400` with `code: invalid_source_entry`. `claude` (Anthropic Admin API at `https://api.anthropic.com`, `X-Api-Key` with an organization Admin API key `sk-ant-admin...`). `sonarqube` (`baseUrl`, `token`, `projectKey` required; optional `branch`) calls `GET {baseUrl}/api/measures/component` with a Bearer token. Other types report `{ success: false, error: "unsupported_type" }`. Documented `error` codes for AI tool verifiers: `invalid_token`, `rate_limited`, `network_error`. `jira` (`baseUrl`, `email`, `apiToken` or legacy `api_key`) calls `GET {baseUrl}/rest/api/3/myself` with Basic auth. `linear` (`apiKey`, optional `teamKeys`) queries `viewer` and `organization` on `https://api.linear.app/graphql` with the personal API key in `Authorization`. Success returns `orgName`, `workspaceUrl`, and `userName`. When `teamKeys` is set and none of the keys is visible to the key, the test still succeeds and returns `warning: "No teams matched <keys>"`. `apiKey: "***"` re-tests the stored key (connected-view "Test again"). A bad key returns `{ success: false, error: "Invalid Linear API key." }`.
|
|
1053
1053
|
* **Typical outcomes:** Malformed body, missing `type`, invalid `type`, or missing required fields for the declared type → `400` with `{ error: "..." }`. Well-formed body with bad credentials or unreachable service → `200` with `{ success: false, error: "..." }`.
|
|
1054
1054
|
*/
|
|
1055
1055
|
post: operations["postTenantSourceTest"];
|
|
@@ -1943,6 +1943,26 @@ export interface paths {
|
|
|
1943
1943
|
patch?: never;
|
|
1944
1944
|
trace?: never;
|
|
1945
1945
|
};
|
|
1946
|
+
"/workspaces/{workspaceId}/integrations/github/recent-commit-authors": {
|
|
1947
|
+
parameters: {
|
|
1948
|
+
query?: never;
|
|
1949
|
+
header?: never;
|
|
1950
|
+
path?: never;
|
|
1951
|
+
cookie?: never;
|
|
1952
|
+
};
|
|
1953
|
+
get?: never;
|
|
1954
|
+
put?: never;
|
|
1955
|
+
/**
|
|
1956
|
+
* Default-branch commit authors for the GitHub contribution filter
|
|
1957
|
+
* @description Batched lookup of recent commits on each repository's default branch. Used when the GitHub repository filter excludes bots. A failed or incomplete repository stays `complete: false` so the client keeps the row. Known results are cached by installation, repository id, and window end.
|
|
1958
|
+
*/
|
|
1959
|
+
post: operations["lookupGithubRecentCommitAuthors"];
|
|
1960
|
+
delete?: never;
|
|
1961
|
+
options?: never;
|
|
1962
|
+
head?: never;
|
|
1963
|
+
patch?: never;
|
|
1964
|
+
trace?: never;
|
|
1965
|
+
};
|
|
1946
1966
|
"/workspaces/{workspaceId}/integrations/github": {
|
|
1947
1967
|
parameters: {
|
|
1948
1968
|
query?: never;
|
|
@@ -3266,7 +3286,7 @@ export interface paths {
|
|
|
3266
3286
|
get?: never;
|
|
3267
3287
|
/**
|
|
3268
3288
|
* Update Agentic Foundation repository scope
|
|
3269
|
-
* @description Bulk include/exclude materialized repos from Agentic Foundation by toggling the existing `user_removed` archive state. Excluded repos
|
|
3289
|
+
* @description Bulk include/exclude materialized repos from Agentic Foundation by toggling the existing `user_removed` archive state. Excluded (Inactive) repos stop being scanned and stay integrated for productivity and SDLC ingest, unless `excludeFromIngest` is true (the GitHub repository selection), which leaves them out of ingest too. Including a repo restores both. The GitHub App grant itself is unchanged. Only workspace admins may call this endpoint. Partial failures are reported per repo.
|
|
3270
3290
|
*/
|
|
3271
3291
|
put: operations["putAgenticFoundationRepoScope"];
|
|
3272
3292
|
post?: never;
|
|
@@ -3680,6 +3700,26 @@ export interface paths {
|
|
|
3680
3700
|
patch?: never;
|
|
3681
3701
|
trace?: never;
|
|
3682
3702
|
};
|
|
3703
|
+
"/workspaces/{workspaceId}/agent-execution-providers": {
|
|
3704
|
+
parameters: {
|
|
3705
|
+
query?: never;
|
|
3706
|
+
header?: never;
|
|
3707
|
+
path?: never;
|
|
3708
|
+
cookie?: never;
|
|
3709
|
+
};
|
|
3710
|
+
get?: never;
|
|
3711
|
+
/**
|
|
3712
|
+
* Save the ordered agent execution providers for this workspace
|
|
3713
|
+
* @description Saves the enabled agent execution providers in the order runs try them (#1006). Runs use the first provider; when it errors, is unavailable, or runs out of budget, they use the next one. At least one provider is required. `cursor_user_api_key` and `claude_api_key` need a saved execution key; `thinkai_platform_cursor` implies consent to platform-key billing. The first entry is mirrored into `agentExecutionProvider`. Requires workspace admin role.
|
|
3714
|
+
*/
|
|
3715
|
+
put: operations["putAgentExecutionProviders"];
|
|
3716
|
+
post?: never;
|
|
3717
|
+
delete?: never;
|
|
3718
|
+
options?: never;
|
|
3719
|
+
head?: never;
|
|
3720
|
+
patch?: never;
|
|
3721
|
+
trace?: never;
|
|
3722
|
+
};
|
|
3683
3723
|
"/workspaces/{workspaceId}/code-intelligence": {
|
|
3684
3724
|
parameters: {
|
|
3685
3725
|
query?: never;
|
|
@@ -6431,6 +6471,32 @@ export interface components {
|
|
|
6431
6471
|
/** @description Atlassian account id when known from the last successful verify. */
|
|
6432
6472
|
accountId?: string;
|
|
6433
6473
|
};
|
|
6474
|
+
/** @description Linear source for `PUT /workspaces/{workspaceId}/sources` and `POST /workspaces/{workspaceId}/sources/test`. Uses a Linear personal API key (Linear → Settings → Security & access → Personal API keys). The API host is fixed (`https://api.linear.app/graphql`); there is no base URL field. Linear feeds Delivery (`ticket.created` / `ticket.completed`); it never emits incident events. A ticket mirrored in both Jira and Linear counts twice. */
|
|
6475
|
+
LinearSourceDto: {
|
|
6476
|
+
/** @enum {string} */
|
|
6477
|
+
type: "linear";
|
|
6478
|
+
/** @description Linear personal API key (write-only on PUT). Sent as the raw `Authorization` header value; a value already prefixed with `Bearer ` is sent unchanged. */
|
|
6479
|
+
apiKey: string;
|
|
6480
|
+
/** @description Optional comma-separated team keys (e.g. `ENG,OPS`). When set, only issues in these teams are ingested. Keys are matched case-insensitively. Send an empty string on `PUT` to clear a stored filter (every team the key can read). */
|
|
6481
|
+
teamKeys?: string;
|
|
6482
|
+
/** @description Optional Linear workspace name from a successful connection test (echo-after-test). */
|
|
6483
|
+
orgName?: string;
|
|
6484
|
+
/** @description Optional Linear workspace URL from a successful connection test (echo-after-test). */
|
|
6485
|
+
workspaceUrl?: string;
|
|
6486
|
+
};
|
|
6487
|
+
/** @description Redacted Linear source returned by `GET /workspaces/{workspaceId}/config`. Raw API key is never returned. */
|
|
6488
|
+
LinearSourceConfigDto: {
|
|
6489
|
+
/** @enum {string} */
|
|
6490
|
+
type: "linear";
|
|
6491
|
+
/** @description Whether a personal API key is stored for this workspace. */
|
|
6492
|
+
hasToken: boolean;
|
|
6493
|
+
/** @description Configured comma-separated team-key filter, when set. */
|
|
6494
|
+
teamKeys?: string;
|
|
6495
|
+
/** @description Linear workspace name when known from the last successful verify. */
|
|
6496
|
+
orgName?: string;
|
|
6497
|
+
/** @description Linear workspace URL when known from the last successful verify. */
|
|
6498
|
+
workspaceUrl?: string;
|
|
6499
|
+
};
|
|
6434
6500
|
/**
|
|
6435
6501
|
* @description The agent execution account used for Agentic Foundation runs (readiness scanner + fix queue). Exactly one is active per workspace.
|
|
6436
6502
|
* - `thinkai_platform_cursor`: ThinkAI platform Cursor key (Cursor Agent CLI) — opt-in, never default.
|
|
@@ -6439,6 +6505,29 @@ export interface components {
|
|
|
6439
6505
|
* @enum {string}
|
|
6440
6506
|
*/
|
|
6441
6507
|
AgentExecutionProviderDto: "thinkai_platform_cursor" | "cursor_user_api_key" | "claude_api_key";
|
|
6508
|
+
PutAgentExecutionProvidersDto: {
|
|
6509
|
+
/** @description Enabled providers in the order runs try them. */
|
|
6510
|
+
providers: components["schemas"]["AgentExecutionProviderDto"][];
|
|
6511
|
+
};
|
|
6512
|
+
/**
|
|
6513
|
+
* @description Why a run skipped an enabled provider and used the next one.
|
|
6514
|
+
* - `missing_key`: no execution key is saved for the provider.
|
|
6515
|
+
* - `invalid_key`: the provider rejected the key.
|
|
6516
|
+
* - `budget_exhausted`: the account is out of credits or usage.
|
|
6517
|
+
* - `rate_limited`: the provider is rate limiting requests.
|
|
6518
|
+
* - `failed`: the provider errored.
|
|
6519
|
+
* @enum {string}
|
|
6520
|
+
*/
|
|
6521
|
+
AgentExecutionSkipReasonDto: "missing_key" | "invalid_key" | "budget_exhausted" | "rate_limited" | "failed";
|
|
6522
|
+
/** @description Present when a run skipped one or more enabled agent execution providers (#1006). `ranWith` is the provider that ran, or null when every enabled provider was skipped. */
|
|
6523
|
+
AgentExecutionFallbackDto: {
|
|
6524
|
+
/** @enum {string|null} */
|
|
6525
|
+
ranWith: "thinkai_platform_cursor" | "cursor_user_api_key" | "claude_api_key" | null;
|
|
6526
|
+
skipped: {
|
|
6527
|
+
provider: components["schemas"]["AgentExecutionProviderDto"];
|
|
6528
|
+
reason: components["schemas"]["AgentExecutionSkipReasonDto"];
|
|
6529
|
+
}[];
|
|
6530
|
+
};
|
|
6442
6531
|
/** @description Partial update for Code Intelligence workspace settings (admin-only). */
|
|
6443
6532
|
PutCodeIntelligenceSettingsDto: {
|
|
6444
6533
|
enabled?: boolean;
|
|
@@ -6523,7 +6612,7 @@ export interface components {
|
|
|
6523
6612
|
topics?: components["schemas"]["CodeWikiGuidanceTopicDto"][];
|
|
6524
6613
|
};
|
|
6525
6614
|
WorkspaceConfigDto: {
|
|
6526
|
-
sources: (components["schemas"]["CursorSourceConfigDto"] | components["schemas"]["ClaudeSourceConfigDto"] | components["schemas"]["CodeIntelligenceSourceConfigDto"] | components["schemas"]["NewRelicSourceConfigDto"] | components["schemas"]["DatadogSourceConfigDto"] | components["schemas"]["PrometheusSourceConfigDto"] | components["schemas"]["GrafanaSourceConfigDto"] | components["schemas"]["SonarQubeSourceConfigDto"] | components["schemas"]["PagerDutySourceConfigDto"] | components["schemas"]["IncidentIoSourceConfigDto"] | components["schemas"]["SentrySourceConfigDto"] | components["schemas"]["JiraSourceConfigDto"] | components["schemas"]["TenantSourceEntryDto"])[];
|
|
6615
|
+
sources: (components["schemas"]["CursorSourceConfigDto"] | components["schemas"]["ClaudeSourceConfigDto"] | components["schemas"]["CodeIntelligenceSourceConfigDto"] | components["schemas"]["NewRelicSourceConfigDto"] | components["schemas"]["DatadogSourceConfigDto"] | components["schemas"]["PrometheusSourceConfigDto"] | components["schemas"]["GrafanaSourceConfigDto"] | components["schemas"]["SonarQubeSourceConfigDto"] | components["schemas"]["PagerDutySourceConfigDto"] | components["schemas"]["IncidentIoSourceConfigDto"] | components["schemas"]["SentrySourceConfigDto"] | components["schemas"]["JiraSourceConfigDto"] | components["schemas"]["LinearSourceConfigDto"] | components["schemas"]["TenantSourceEntryDto"])[];
|
|
6527
6616
|
orgChart?: components["schemas"]["ScoringOrgChartDto"] | null;
|
|
6528
6617
|
/** @enum {string|null} */
|
|
6529
6618
|
region?: "us" | "eu" | "me" | null;
|
|
@@ -6534,6 +6623,8 @@ export interface components {
|
|
|
6534
6623
|
cursorPlatformKeyEnabled?: boolean;
|
|
6535
6624
|
/** @description The single active agent execution account for this workspace's readiness scanner and fix processor. Defaults to `cursor_user_api_key`. Change via `PUT /workspaces/{workspaceId}/agent-execution-provider`. */
|
|
6536
6625
|
agentExecutionProvider?: components["schemas"]["AgentExecutionProviderDto"];
|
|
6626
|
+
/** @description Enabled agent execution providers in the order runs try them (#1006). The first entry equals `agentExecutionProvider`. Workspaces saved before ordered fallback return `[agentExecutionProvider]`. Change via `PUT /workspaces/{workspaceId}/agent-execution-providers`. */
|
|
6627
|
+
agentExecutionProviders?: components["schemas"]["AgentExecutionProviderDto"][];
|
|
6537
6628
|
/** @description When false (default), Code Intelligence write APIs (`/code-chat/*` index/sync/wiki/messages) return 403. Preview UI still requires `?code_kn=true`. Change via `PUT /workspaces/{workspaceId}/code-intelligence`. */
|
|
6538
6629
|
codeIntelligenceEnabled?: boolean;
|
|
6539
6630
|
/**
|
|
@@ -6746,14 +6837,18 @@ export interface components {
|
|
|
6746
6837
|
executionKeyValid?: boolean | null;
|
|
6747
6838
|
/** @description Error detail when `executionKeyValid` is false. */
|
|
6748
6839
|
executionKeyError?: string | null;
|
|
6749
|
-
/** @description Present for New Relic, Grafana, PagerDuty, or
|
|
6840
|
+
/** @description Present for New Relic, Grafana, PagerDuty, Jira, or Linear verify success — authenticated user name. */
|
|
6750
6841
|
userName?: string;
|
|
6751
6842
|
/** @description Present for New Relic verify success — resolved account display name. */
|
|
6752
6843
|
accountName?: string;
|
|
6753
6844
|
/** @description Present for New Relic or Jira verify success — resolved account ID. */
|
|
6754
6845
|
accountId?: string;
|
|
6755
|
-
/** @description Present for Grafana, Datadog, or
|
|
6846
|
+
/** @description Present for Grafana, Datadog, Sentry, or Linear verify success — resolved organization name. */
|
|
6756
6847
|
orgName?: string;
|
|
6848
|
+
/** @description Present for Linear verify success — workspace URL (`https://linear.app/{urlKey}`). */
|
|
6849
|
+
workspaceUrl?: string;
|
|
6850
|
+
/** @description Non-blocking notice on success. Linear: `No teams matched <keys>` when the team-key filter matches no team visible to the key (empty polls are valid). */
|
|
6851
|
+
warning?: string;
|
|
6757
6852
|
/** @description Present for incident.io verify success — API key name from `GET /v1/identity`. */
|
|
6758
6853
|
keyName?: string;
|
|
6759
6854
|
/** @description Present for incident.io verify success — organization dashboard URL from `GET /v1/identity`. */
|
|
@@ -7767,6 +7862,8 @@ export interface components {
|
|
|
7767
7862
|
tokenCount: number;
|
|
7768
7863
|
activeUsers: number;
|
|
7769
7864
|
totalEngineers: number;
|
|
7865
|
+
/** @description Model requests in the window from daily usage rows. Set for org-level providers (ChatGPT, Gemini) whose usage APIs report requests rather than per-user seats. */
|
|
7866
|
+
requestCount?: number;
|
|
7770
7867
|
};
|
|
7771
7868
|
weekBuckets: components["schemas"]["AiToolProviderSummaryWeekBucketDto"][];
|
|
7772
7869
|
topMovers?: components["schemas"]["AiToolProviderSummaryTopMoverDto"][];
|
|
@@ -8154,6 +8251,41 @@ export interface components {
|
|
|
8154
8251
|
/** Format: uri */
|
|
8155
8252
|
avatarUrl?: string | null;
|
|
8156
8253
|
};
|
|
8254
|
+
GithubRecentCommitAuthorsRequestDto: {
|
|
8255
|
+
/**
|
|
8256
|
+
* Format: date
|
|
8257
|
+
* @description Inclusive window start (YYYY-MM-DD).
|
|
8258
|
+
*/
|
|
8259
|
+
from: string;
|
|
8260
|
+
/**
|
|
8261
|
+
* Format: date
|
|
8262
|
+
* @description Inclusive window end (YYYY-MM-DD). Cache key.
|
|
8263
|
+
*/
|
|
8264
|
+
to: string;
|
|
8265
|
+
repos: components["schemas"]["GithubRecentCommitAuthorRepoDto"][];
|
|
8266
|
+
};
|
|
8267
|
+
GithubRecentCommitAuthorRepoDto: {
|
|
8268
|
+
/** @description GitHub repository id from the granted-repository list. */
|
|
8269
|
+
id: string;
|
|
8270
|
+
/** @description owner/name */
|
|
8271
|
+
fullName: string;
|
|
8272
|
+
};
|
|
8273
|
+
GithubRecentCommitSampleDto: {
|
|
8274
|
+
authorLogin: string | null;
|
|
8275
|
+
/** Format: date-time */
|
|
8276
|
+
authoredAt: string | null;
|
|
8277
|
+
};
|
|
8278
|
+
GithubRecentCommitAuthorResultDto: {
|
|
8279
|
+
id: string;
|
|
8280
|
+
fullName: string;
|
|
8281
|
+
/** @description False when the lookup failed or the page did not contain a human author. */
|
|
8282
|
+
complete: boolean;
|
|
8283
|
+
error?: string;
|
|
8284
|
+
commits?: components["schemas"]["GithubRecentCommitSampleDto"][];
|
|
8285
|
+
};
|
|
8286
|
+
GithubRecentCommitAuthorsResponseDto: {
|
|
8287
|
+
results: components["schemas"]["GithubRecentCommitAuthorResultDto"][];
|
|
8288
|
+
};
|
|
8157
8289
|
GithubInstalledRepoDto: {
|
|
8158
8290
|
/** @description GitHub numeric repo id (preferred) or node id string */
|
|
8159
8291
|
id: number | string;
|
|
@@ -8783,6 +8915,10 @@ export interface components {
|
|
|
8783
8915
|
monitoring: components["schemas"]["TechCategoryDto"];
|
|
8784
8916
|
aiTools: components["schemas"]["TechCategoryDto"];
|
|
8785
8917
|
security: components["schemas"]["TechCategoryDto"];
|
|
8918
|
+
/** @description Code analysis & quality tools (SonarQube, Codacy, …). Optional on PUT; omitted keeps the saved value. GET always returns it. */
|
|
8919
|
+
codeAnalysis?: components["schemas"]["TechCategoryDto"];
|
|
8920
|
+
/** @description Code review tools (CodeRabbit, Graphite, …). Optional on PUT; omitted keeps the saved value. GET always returns it. */
|
|
8921
|
+
codeReview?: components["schemas"]["TechCategoryDto"];
|
|
8786
8922
|
knowledgeDocs: components["schemas"]["TechCategoryDto"];
|
|
8787
8923
|
hrPeople: components["schemas"]["TechCategoryDto"];
|
|
8788
8924
|
};
|
|
@@ -9371,16 +9507,20 @@ export interface components {
|
|
|
9371
9507
|
lastRunErrorCode?: string | null;
|
|
9372
9508
|
/** @description Human-readable error detail from the last failed run. Present when `lastRunStatus` is `failed` or `partial_failed`. */
|
|
9373
9509
|
lastRunErrorDetail?: string | null;
|
|
9510
|
+
/** @description Present when the most recent completed run skipped an enabled agent execution provider and fell back to the next one (or failed after trying all of them). */
|
|
9511
|
+
lastRunAgentExecution?: components["schemas"]["AgentExecutionFallbackDto"];
|
|
9374
9512
|
/**
|
|
9375
9513
|
* Format: date-time
|
|
9376
9514
|
* @description Set when the repo has been soft-archived (removed from installation, archived on GitHub, or integration disconnected). Null means active.
|
|
9377
9515
|
*/
|
|
9378
9516
|
archivedAt?: string | null;
|
|
9379
9517
|
/**
|
|
9380
|
-
* @description Why the repo was archived. `github_archived` means the repo is still granted by the GitHub installation but GitHub reports `archived === true` (default sync excludes it). `github_removed` means the slug is no longer in the installation listing. `user_removed` means
|
|
9518
|
+
* @description Why the repo was archived. `github_archived` means the repo is still granted by the GitHub installation but GitHub reports `archived === true` (default sync excludes it). `github_removed` means the slug is no longer in the installation listing. `user_removed` means the user marked the repo Inactive: it is not scanned, and stays in productivity and SDLC ingest unless `excludedFromIngest` is true. Only present when `archivedAt` is set.
|
|
9381
9519
|
* @enum {string|null}
|
|
9382
9520
|
*/
|
|
9383
9521
|
archivedReason?: "github_archived" | "github_removed" | "installation_disconnected" | "installation_replaced" | "superseded" | "user_removed" | null;
|
|
9522
|
+
/** @description True when the GitHub repository selection unchecked this Inactive repo, so it is also left out of productivity and SDLC ingest (v2.210.0+). Omitted otherwise. */
|
|
9523
|
+
excludedFromIngest?: boolean;
|
|
9384
9524
|
/**
|
|
9385
9525
|
* @description Whether the repo can be analyzed (#44/#729). Language support no longer makes a repo `ineligible` — a missing v1-supported stack is surfaced via `warnings` and the repo stays analyzable. It becomes `ineligible` when the most recent scan hit a hard size/file-count limit (e.g. code-size or file-count exceeded): the repo is then restricted here too so this surface matches the GitHub connect list's size gate after the scan. Null until the first sync/scan computes it.
|
|
9386
9526
|
* @enum {string|null}
|
|
@@ -9463,6 +9603,7 @@ export interface components {
|
|
|
9463
9603
|
lastRunStatus?: "succeeded" | "failed" | "partial_failed" | null;
|
|
9464
9604
|
lastRunErrorCode?: string | null;
|
|
9465
9605
|
lastRunErrorDetail?: string | null;
|
|
9606
|
+
lastRunAgentExecution?: components["schemas"]["AgentExecutionFallbackDto"];
|
|
9466
9607
|
/** Format: date-time */
|
|
9467
9608
|
archivedAt?: string | null;
|
|
9468
9609
|
/**
|
|
@@ -9470,6 +9611,8 @@ export interface components {
|
|
|
9470
9611
|
* @enum {string|null}
|
|
9471
9612
|
*/
|
|
9472
9613
|
archivedReason?: "github_archived" | "github_removed" | "installation_disconnected" | "installation_replaced" | "superseded" | "user_removed" | null;
|
|
9614
|
+
/** @description See RepoReadinessScoreDto.excludedFromIngest. */
|
|
9615
|
+
excludedFromIngest?: boolean;
|
|
9473
9616
|
/**
|
|
9474
9617
|
* @description See RepoReadinessScoreDto.eligibilityStatus. Language support is advisory (#729) and surfaced via `warnings`.
|
|
9475
9618
|
* @enum {string|null}
|
|
@@ -10303,6 +10446,8 @@ export interface components {
|
|
|
10303
10446
|
};
|
|
10304
10447
|
PutAgenticFoundationRepoScopeBodyDto: {
|
|
10305
10448
|
changes: components["schemas"]["PutAgenticFoundationRepoScopeChangeDto"][];
|
|
10449
|
+
/** @description GitHub repository selection (v2.210.0+). When true, excluded repos also leave productivity and SDLC ingest, including repos that were already Inactive. Omit for Agentic Foundation scope changes, which only affect scans. */
|
|
10450
|
+
excludeFromIngest?: boolean;
|
|
10306
10451
|
};
|
|
10307
10452
|
PutAgenticFoundationRepoScopeAppliedDto: {
|
|
10308
10453
|
/** Format: uuid */
|
|
@@ -10327,7 +10472,7 @@ export interface components {
|
|
|
10327
10472
|
* @description Type of workspace lifecycle event.
|
|
10328
10473
|
* @enum {string}
|
|
10329
10474
|
*/
|
|
10330
|
-
ActivityLogEventTypeDto: "repo.added" | "repo.removed" | "repo.readded" | "integration.github.added" | "integration.github.updated" | "integration.github.removed" | "integration.github.permissions_changed" | "integration.github.suspended" | "integration.github.unsuspended" | "integration.github.repo_added" | "integration.github.repo_removed" | "fix.requested" | "fix.generating" | "fix.pr_created" | "fix.merged" | "fix.failed" | "readiness.scan_started" | "readiness.scan_completed" | "readiness.scan_failed" | "readiness.scan_partial" | "code_insights.design_run_started" | "integrations.agent_execution.provider_changed" | "integrations.repo_eligibility.overrides_changed" | "integrations.repo_eligibility.languages_refresh_requested" | "rules_skills.soft_quality.override" | "integrations.cursor.platform_key_enabled" | "integrations.cursor.platform_key_disabled" | "member.invited" | "member.invite_accepted" | "member.invite_rejected" | "member.role_changed" | "member.removed" | "hris.personio.sync_started" | "hris.personio.sync_completed" | "hris.personio.sync_failed" | "hris.zenhr.sync_started" | "hris.zenhr.sync_completed" | "hris.zenhr.sync_failed" | "hris.zelt.sync_started" | "hris.zelt.sync_completed" | "hris.zelt.sync_failed" | "hris.hibob.sync_started" | "hris.hibob.sync_completed" | "hris.hibob.sync_failed" | "hris.sync_started" | "hris.sync_completed" | "hris.sync_failed" | "repo.sync_skipped" | "integrations.cursor.execution_key.added" | "integrations.cursor.execution_key.updated" | "integrations.cursor.execution_key.removed" | "integrations.cursor.execution_key.check_failed" | "integrations.cursor.admin_key.added" | "integrations.cursor.admin_key.updated" | "integrations.cursor.admin_key.removed" | "integrations.claude.execution_key.added" | "integrations.claude.execution_key.updated" | "integrations.claude.execution_key.removed" | "integrations.claude.execution_key.check_failed" | "integrations.claude.admin_key.added" | "integrations.claude.admin_key.updated" | "integrations.claude.admin_key.removed" | "integrations.claude.analytics_key.added" | "integrations.claude.analytics_key.updated" | "integrations.claude.analytics_key.removed" | "integrations.code_intelligence.settings_changed" | "integrations.code_intelligence.execution_key.added" | "integrations.code_intelligence.execution_key.updated" | "integrations.code_intelligence.execution_key.removed" | "integrations.code_intelligence.execution_key.check_failed" | "readiness.scan_precheck_failed" | "productivity.ingest.completed" | "productivity.ingest.failed" | "productivity.ingest.skipped" | "productivity.ingest.repo_skipped" | "productivity.ingest.coverage_gap_detected" | "integrations.newrelic.added" | "integrations.newrelic.removed" | "integrations.newrelic.sync_completed" | "integrations.newrelic.sync_failed" | "integrations.prometheus.added" | "integrations.prometheus.removed" | "integrations.prometheus.sync_completed" | "integrations.prometheus.sync_failed" | "integrations.grafana.added" | "integrations.grafana.removed" | "integrations.grafana.sync_completed" | "integrations.grafana.sync_failed" | "integrations.datadog.added" | "integrations.datadog.removed" | "integrations.datadog.sync_completed" | "integrations.datadog.sync_failed" | "integrations.sentry.added" | "integrations.sentry.removed" | "integrations.sentry.sync_completed" | "integrations.sentry.sync_failed" | "integrations.zelt.added" | "integrations.zelt.removed" | "report.exported" | "report.assessment_stored" | "report.assessment_link_sent" | "report.assessment_link_revoked" | "report.assessment_downloaded" | "report.assessment_hidden" | "report.assessment_restored" | "workspace.aggregate_use.changed" | "workspace.assessment_rollout.changed" | "config.strict_insights_on_trust.changed";
|
|
10475
|
+
ActivityLogEventTypeDto: "repo.added" | "repo.removed" | "repo.readded" | "integration.github.added" | "integration.github.updated" | "integration.github.removed" | "integration.github.permissions_changed" | "integration.github.suspended" | "integration.github.unsuspended" | "integration.github.repo_added" | "integration.github.repo_removed" | "fix.requested" | "fix.generating" | "fix.pr_created" | "fix.merged" | "fix.failed" | "readiness.scan_started" | "readiness.scan_completed" | "readiness.scan_failed" | "readiness.scan_partial" | "readiness.agent_execution_fallback" | "code_insights.design_run_started" | "integrations.agent_execution.provider_changed" | "integrations.repo_eligibility.overrides_changed" | "integrations.repo_eligibility.languages_refresh_requested" | "rules_skills.soft_quality.override" | "integrations.cursor.platform_key_enabled" | "integrations.cursor.platform_key_disabled" | "member.invited" | "member.invite_accepted" | "member.invite_rejected" | "member.role_changed" | "member.removed" | "hris.personio.sync_started" | "hris.personio.sync_completed" | "hris.personio.sync_failed" | "hris.zenhr.sync_started" | "hris.zenhr.sync_completed" | "hris.zenhr.sync_failed" | "hris.zelt.sync_started" | "hris.zelt.sync_completed" | "hris.zelt.sync_failed" | "hris.hibob.sync_started" | "hris.hibob.sync_completed" | "hris.hibob.sync_failed" | "hris.sync_started" | "hris.sync_completed" | "hris.sync_failed" | "repo.sync_skipped" | "integrations.cursor.execution_key.added" | "integrations.cursor.execution_key.updated" | "integrations.cursor.execution_key.removed" | "integrations.cursor.execution_key.check_failed" | "integrations.cursor.admin_key.added" | "integrations.cursor.admin_key.updated" | "integrations.cursor.admin_key.removed" | "integrations.claude.execution_key.added" | "integrations.claude.execution_key.updated" | "integrations.claude.execution_key.removed" | "integrations.claude.execution_key.check_failed" | "integrations.claude.admin_key.added" | "integrations.claude.admin_key.updated" | "integrations.claude.admin_key.removed" | "integrations.claude.analytics_key.added" | "integrations.claude.analytics_key.updated" | "integrations.claude.analytics_key.removed" | "integrations.code_intelligence.settings_changed" | "integrations.code_intelligence.execution_key.added" | "integrations.code_intelligence.execution_key.updated" | "integrations.code_intelligence.execution_key.removed" | "integrations.code_intelligence.execution_key.check_failed" | "readiness.scan_precheck_failed" | "productivity.ingest.completed" | "productivity.ingest.failed" | "productivity.ingest.skipped" | "productivity.ingest.repo_skipped" | "productivity.ingest.coverage_gap_detected" | "integrations.newrelic.added" | "integrations.newrelic.removed" | "integrations.newrelic.sync_completed" | "integrations.newrelic.sync_failed" | "integrations.prometheus.added" | "integrations.prometheus.removed" | "integrations.prometheus.sync_completed" | "integrations.prometheus.sync_failed" | "integrations.grafana.added" | "integrations.grafana.removed" | "integrations.grafana.sync_completed" | "integrations.grafana.sync_failed" | "integrations.datadog.added" | "integrations.datadog.removed" | "integrations.datadog.sync_completed" | "integrations.datadog.sync_failed" | "integrations.sentry.added" | "integrations.sentry.removed" | "integrations.sentry.sync_completed" | "integrations.sentry.sync_failed" | "integrations.zelt.added" | "integrations.zelt.removed" | "report.exported" | "report.assessment_stored" | "report.assessment_link_sent" | "report.assessment_link_revoked" | "report.assessment_downloaded" | "report.assessment_hidden" | "report.assessment_restored" | "workspace.aggregate_use.changed" | "workspace.assessment_rollout.changed" | "config.strict_insights_on_trust.changed";
|
|
10331
10476
|
/** @description Current legal-approved opt-in notice, or `unset` while opt-in is unavailable. */
|
|
10332
10477
|
AggregateUseNoticeStatusDto: {
|
|
10333
10478
|
/** @enum {string} */
|
|
@@ -11087,8 +11232,11 @@ export interface components {
|
|
|
11087
11232
|
};
|
|
11088
11233
|
IngestCoveragePipelineDto: {
|
|
11089
11234
|
id: string;
|
|
11090
|
-
/**
|
|
11091
|
-
|
|
11235
|
+
/**
|
|
11236
|
+
* @description `linear` (v2.210.0+) is the last Linear poll from the productivity worker: `failed` with `lastErrorKind` `invalid_token` when the key was revoked, `incremental` after a successful poll, `sync.eventCount` for tickets read. Listed only while Linear is connected.
|
|
11237
|
+
* @enum {string}
|
|
11238
|
+
*/
|
|
11239
|
+
kind: "productivity_github" | "productivity_bitbucket" | "ai_usage" | "sdlc_github" | "monitoring" | "hris" | "jira" | "pagerduty" | "linear";
|
|
11092
11240
|
provider?: string | null;
|
|
11093
11241
|
/** @enum {string} */
|
|
11094
11242
|
status: "not_started" | "backfilling" | "incremental" | "complete" | "failed" | "in_progress";
|
|
@@ -11105,7 +11253,7 @@ export interface components {
|
|
|
11105
11253
|
lastErrorMessage?: string | null;
|
|
11106
11254
|
/**
|
|
11107
11255
|
* Format: date-time
|
|
11108
|
-
* @description Scheduled poll instant. Set for ai_usage (next weekly workspace slot; a past instant means the poll is overdue and is not advanced to now), hris (next PHASE2 daily UTC cron `15 2` after now), and monitoring (next PHASE2 daily UTC cron `30 2` after now). HRIS/Monitoring values are always in the future when set — not lastAttempt plus interval. Null for productivity_github
|
|
11256
|
+
* @description Scheduled poll instant. Set for ai_usage (next weekly workspace slot; a past instant means the poll is overdue and is not advanced to now), hris (next PHASE2 daily UTC cron `15 2` after now), and monitoring (next PHASE2 daily UTC cron `30 2` after now). HRIS/Monitoring values are always in the future when set — not lastAttempt plus interval. Null for productivity_github, sdlc_github, linear, when the sync worker is disabled, or when there has been no attempt (hris/monitoring: last status never). Not an ETA.
|
|
11109
11257
|
*/
|
|
11110
11258
|
nextScheduledAt?: string | null;
|
|
11111
11259
|
/** Format: int64 */
|
|
@@ -12322,7 +12470,7 @@ export interface components {
|
|
|
12322
12470
|
workspaceContext?: components["schemas"]["WorkspaceContextInsightsDto"];
|
|
12323
12471
|
};
|
|
12324
12472
|
CodeIntelligenceUsageDto: {
|
|
12325
|
-
/** @description Ledger operation key (code_chat, prd_generate, workspace_kb,
|
|
12473
|
+
/** @description Ledger operation key (code_chat, prd_generate, workspace_kb, wiki, …). Older rows may still say wiki_enrich or wiki_json_outline; clients collapse those into Wiki. */
|
|
12326
12474
|
operation: string;
|
|
12327
12475
|
provider: string;
|
|
12328
12476
|
model?: string | null;
|
|
@@ -12347,6 +12495,21 @@ export interface components {
|
|
|
12347
12495
|
estimatedCostUsd: number;
|
|
12348
12496
|
invocationCount: number;
|
|
12349
12497
|
byOperation: components["schemas"]["CodeIntelligenceTokenUsageByOperationDto"][];
|
|
12498
|
+
/** @description Knowledge jobs (wiki scans and similar) whose tokens make up this repository total. Newest first. Absent on older servers. */
|
|
12499
|
+
runs?: components["schemas"]["CodeIntelligenceTokenUsageRunDto"][];
|
|
12500
|
+
};
|
|
12501
|
+
CodeIntelligenceTokenUsageRunDto: {
|
|
12502
|
+
/** Format: uuid */
|
|
12503
|
+
jobId?: string | null;
|
|
12504
|
+
/** Format: date-time */
|
|
12505
|
+
startedAt?: string | null;
|
|
12506
|
+
/** @description Knowledge job status (queued, running, completed, failed). */
|
|
12507
|
+
status?: string | null;
|
|
12508
|
+
operation: string;
|
|
12509
|
+
inputTokens: number;
|
|
12510
|
+
outputTokens: number;
|
|
12511
|
+
estimatedCostUsd: number;
|
|
12512
|
+
invocationCount: number;
|
|
12350
12513
|
};
|
|
12351
12514
|
CodeIntelligenceTokenUsageSummaryDto: {
|
|
12352
12515
|
days: number;
|
|
@@ -12359,7 +12522,7 @@ export interface components {
|
|
|
12359
12522
|
/** @description Rate basis used for the derived cost, for display in tooltips. */
|
|
12360
12523
|
costBasis?: string | null;
|
|
12361
12524
|
byOperation: components["schemas"]["CodeIntelligenceTokenUsageByOperationDto"][];
|
|
12362
|
-
/** @description Per-repository split (wiki generation, conversations, outline).
|
|
12525
|
+
/** @description Per-repository split (wiki generation, conversations, outline). Calls that were not about a single repository use an empty repoId and a null repoName. */
|
|
12363
12526
|
byRepo: components["schemas"]["CodeIntelligenceTokenUsageByRepoDto"][];
|
|
12364
12527
|
};
|
|
12365
12528
|
CodeChatWikiPageListDto: {
|
|
@@ -13521,7 +13684,12 @@ export type SentrySourceDto = components['schemas']['SentrySourceDto'];
|
|
|
13521
13684
|
export type SentrySourceConfigDto = components['schemas']['SentrySourceConfigDto'];
|
|
13522
13685
|
export type JiraSourceDto = components['schemas']['JiraSourceDto'];
|
|
13523
13686
|
export type JiraSourceConfigDto = components['schemas']['JiraSourceConfigDto'];
|
|
13687
|
+
export type LinearSourceDto = components['schemas']['LinearSourceDto'];
|
|
13688
|
+
export type LinearSourceConfigDto = components['schemas']['LinearSourceConfigDto'];
|
|
13524
13689
|
export type AgentExecutionProviderDto = components['schemas']['AgentExecutionProviderDto'];
|
|
13690
|
+
export type PutAgentExecutionProvidersDto = components['schemas']['PutAgentExecutionProvidersDto'];
|
|
13691
|
+
export type AgentExecutionSkipReasonDto = components['schemas']['AgentExecutionSkipReasonDto'];
|
|
13692
|
+
export type AgentExecutionFallbackDto = components['schemas']['AgentExecutionFallbackDto'];
|
|
13525
13693
|
export type PutCodeIntelligenceSettingsDto = components['schemas']['PutCodeIntelligenceSettingsDto'];
|
|
13526
13694
|
export type CodeWikiGuidanceTopicDto = components['schemas']['CodeWikiGuidanceTopicDto'];
|
|
13527
13695
|
export type PutCodeIntelligenceAgentMdDto = components['schemas']['PutCodeIntelligenceAgentMdDto'];
|
|
@@ -13656,6 +13824,11 @@ export type WorkspacesForUserDto = components['schemas']['WorkspacesForUserDto']
|
|
|
13656
13824
|
export type CreateWorkspaceBodyDto = components['schemas']['CreateWorkspaceBodyDto'];
|
|
13657
13825
|
export type CompanyProfileDto = components['schemas']['CompanyProfileDto'];
|
|
13658
13826
|
export type GithubAccountDto = components['schemas']['GithubAccountDto'];
|
|
13827
|
+
export type GithubRecentCommitAuthorsRequestDto = components['schemas']['GithubRecentCommitAuthorsRequestDto'];
|
|
13828
|
+
export type GithubRecentCommitAuthorRepoDto = components['schemas']['GithubRecentCommitAuthorRepoDto'];
|
|
13829
|
+
export type GithubRecentCommitSampleDto = components['schemas']['GithubRecentCommitSampleDto'];
|
|
13830
|
+
export type GithubRecentCommitAuthorResultDto = components['schemas']['GithubRecentCommitAuthorResultDto'];
|
|
13831
|
+
export type GithubRecentCommitAuthorsResponseDto = components['schemas']['GithubRecentCommitAuthorsResponseDto'];
|
|
13659
13832
|
export type GithubInstalledRepoDto = components['schemas']['GithubInstalledRepoDto'];
|
|
13660
13833
|
export type RepoEligibilityConfigDto = components['schemas']['RepoEligibilityConfigDto'];
|
|
13661
13834
|
export type RepoEligibilityOverridesDto = components['schemas']['RepoEligibilityOverridesDto'];
|
|
@@ -14037,6 +14210,7 @@ export type WorkspaceKnowledgePackDto = components['schemas']['WorkspaceKnowledg
|
|
|
14037
14210
|
export type CodeIntelligenceUsageDto = components['schemas']['CodeIntelligenceUsageDto'];
|
|
14038
14211
|
export type CodeIntelligenceTokenUsageByOperationDto = components['schemas']['CodeIntelligenceTokenUsageByOperationDto'];
|
|
14039
14212
|
export type CodeIntelligenceTokenUsageByRepoDto = components['schemas']['CodeIntelligenceTokenUsageByRepoDto'];
|
|
14213
|
+
export type CodeIntelligenceTokenUsageRunDto = components['schemas']['CodeIntelligenceTokenUsageRunDto'];
|
|
14040
14214
|
export type CodeIntelligenceTokenUsageSummaryDto = components['schemas']['CodeIntelligenceTokenUsageSummaryDto'];
|
|
14041
14215
|
export type CodeChatWikiPageListDto = components['schemas']['CodeChatWikiPageListDto'];
|
|
14042
14216
|
export type CodeChatWikiOkfExportDto = components['schemas']['CodeChatWikiOkfExportDto'];
|
|
@@ -17321,7 +17495,7 @@ export interface operations {
|
|
|
17321
17495
|
requestBody: {
|
|
17322
17496
|
content: {
|
|
17323
17497
|
"application/json": {
|
|
17324
|
-
sources: (components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["CodeIntelligenceSourcePatchDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["DatadogSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["PagerDutySourceDto"] | components["schemas"]["IncidentIoSourceDto"] | components["schemas"]["SentrySourceDto"] | components["schemas"]["JiraSourceDto"] | components["schemas"]["TenantSourceEntryDto"])[];
|
|
17498
|
+
sources: (components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["CodeIntelligenceSourcePatchDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["DatadogSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["PagerDutySourceDto"] | components["schemas"]["IncidentIoSourceDto"] | components["schemas"]["SentrySourceDto"] | components["schemas"]["JiraSourceDto"] | components["schemas"]["LinearSourceDto"] | components["schemas"]["TenantSourceEntryDto"])[];
|
|
17325
17499
|
};
|
|
17326
17500
|
};
|
|
17327
17501
|
};
|
|
@@ -17375,7 +17549,7 @@ export interface operations {
|
|
|
17375
17549
|
};
|
|
17376
17550
|
requestBody: {
|
|
17377
17551
|
content: {
|
|
17378
|
-
"application/json": components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["CodeIntelligenceSourcePatchDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["DatadogSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["PagerDutySourceDto"] | components["schemas"]["IncidentIoSourceDto"] | components["schemas"]["SentrySourceDto"] | components["schemas"]["JiraSourceDto"] | components["schemas"]["TenantSourceEntryDto"];
|
|
17552
|
+
"application/json": components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["CodeIntelligenceSourcePatchDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["DatadogSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["PagerDutySourceDto"] | components["schemas"]["IncidentIoSourceDto"] | components["schemas"]["SentrySourceDto"] | components["schemas"]["JiraSourceDto"] | components["schemas"]["LinearSourceDto"] | components["schemas"]["TenantSourceEntryDto"];
|
|
17379
17553
|
};
|
|
17380
17554
|
};
|
|
17381
17555
|
responses: {
|
|
@@ -19951,6 +20125,43 @@ export interface operations {
|
|
|
19951
20125
|
};
|
|
19952
20126
|
};
|
|
19953
20127
|
};
|
|
20128
|
+
lookupGithubRecentCommitAuthors: {
|
|
20129
|
+
parameters: {
|
|
20130
|
+
query?: never;
|
|
20131
|
+
header?: never;
|
|
20132
|
+
path: {
|
|
20133
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
20134
|
+
};
|
|
20135
|
+
cookie?: never;
|
|
20136
|
+
};
|
|
20137
|
+
requestBody: {
|
|
20138
|
+
content: {
|
|
20139
|
+
"application/json": components["schemas"]["GithubRecentCommitAuthorsRequestDto"];
|
|
20140
|
+
};
|
|
20141
|
+
};
|
|
20142
|
+
responses: {
|
|
20143
|
+
/** @description One result per requested repository */
|
|
20144
|
+
200: {
|
|
20145
|
+
headers: {
|
|
20146
|
+
[name: string]: unknown;
|
|
20147
|
+
};
|
|
20148
|
+
content: {
|
|
20149
|
+
"application/json": components["schemas"]["GithubRecentCommitAuthorsResponseDto"];
|
|
20150
|
+
};
|
|
20151
|
+
};
|
|
20152
|
+
/** @description Invalid window or repository list */
|
|
20153
|
+
400: {
|
|
20154
|
+
headers: {
|
|
20155
|
+
[name: string]: unknown;
|
|
20156
|
+
};
|
|
20157
|
+
content: {
|
|
20158
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
20159
|
+
};
|
|
20160
|
+
};
|
|
20161
|
+
401: components["responses"]["Unauthorized"];
|
|
20162
|
+
403: components["responses"]["Forbidden"];
|
|
20163
|
+
};
|
|
20164
|
+
};
|
|
19954
20165
|
getWorkspaceGithubInstallationStatus: {
|
|
19955
20166
|
parameters: {
|
|
19956
20167
|
query?: {
|
|
@@ -24444,6 +24655,50 @@ export interface operations {
|
|
|
24444
24655
|
403: components["responses"]["Forbidden"];
|
|
24445
24656
|
};
|
|
24446
24657
|
};
|
|
24658
|
+
putAgentExecutionProviders: {
|
|
24659
|
+
parameters: {
|
|
24660
|
+
query?: never;
|
|
24661
|
+
header?: never;
|
|
24662
|
+
path: {
|
|
24663
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
24664
|
+
};
|
|
24665
|
+
cookie?: never;
|
|
24666
|
+
};
|
|
24667
|
+
requestBody: {
|
|
24668
|
+
content: {
|
|
24669
|
+
"application/json": components["schemas"]["PutAgentExecutionProvidersDto"];
|
|
24670
|
+
};
|
|
24671
|
+
};
|
|
24672
|
+
responses: {
|
|
24673
|
+
/** @description Providers saved */
|
|
24674
|
+
200: {
|
|
24675
|
+
headers: {
|
|
24676
|
+
[name: string]: unknown;
|
|
24677
|
+
};
|
|
24678
|
+
content: {
|
|
24679
|
+
"application/json": {
|
|
24680
|
+
ok: boolean;
|
|
24681
|
+
providers: components["schemas"]["AgentExecutionProviderDto"][];
|
|
24682
|
+
};
|
|
24683
|
+
};
|
|
24684
|
+
};
|
|
24685
|
+
/** @description `invalid_body` (missing, empty, unknown, or duplicate providers) or `provider_not_configured` (a key-based provider has no saved execution key; `provider` names it). */
|
|
24686
|
+
400: {
|
|
24687
|
+
headers: {
|
|
24688
|
+
[name: string]: unknown;
|
|
24689
|
+
};
|
|
24690
|
+
content: {
|
|
24691
|
+
"application/json": {
|
|
24692
|
+
/** @example provider_not_configured */
|
|
24693
|
+
error: string;
|
|
24694
|
+
provider?: components["schemas"]["AgentExecutionProviderDto"];
|
|
24695
|
+
};
|
|
24696
|
+
};
|
|
24697
|
+
};
|
|
24698
|
+
401: components["responses"]["Unauthorized"];
|
|
24699
|
+
403: components["responses"]["Forbidden"];
|
|
24700
|
+
};
|
|
24701
|
+
};
|
|
24447
24702
|
putCodeIntelligenceSettings: {
|
|
24448
24703
|
parameters: {
|
|
24449
24704
|
query?: never;
|
package/src/index.ts
CHANGED
|
@@ -1602,7 +1602,7 @@ export interface IngestCoverageSyncDetailDto {
|
|
|
1602
1602
|
issueCount?: number | null;
|
|
1603
1603
|
/** Monitoring meta deployment count. Null for HRIS and when unset. */
|
|
1604
1604
|
deploymentCount?: number | null;
|
|
1605
|
-
/** Monitoring meta event count. Null for HRIS and when unset. */
|
|
1605
|
+
/** Monitoring meta or Linear ticket event count. Null for HRIS and when unset. */
|
|
1606
1606
|
eventCount?: number | null;
|
|
1607
1607
|
}
|
|
1608
1608
|
|
|
@@ -1614,7 +1614,9 @@ export type IngestCoveragePipelineKind =
|
|
|
1614
1614
|
| "monitoring"
|
|
1615
1615
|
| "hris"
|
|
1616
1616
|
| "jira"
|
|
1617
|
-
| "pagerduty"
|
|
1617
|
+
| "pagerduty"
|
|
1618
|
+
/** Last Linear poll from the productivity worker (v2.210.0+). */
|
|
1619
|
+
| "linear";
|
|
1618
1620
|
|
|
1619
1621
|
export type IngestCoveragePipelineStatus =
|
|
1620
1622
|
"not_started" | "backfilling" | "incremental" | "complete" | "failed" | "in_progress";
|
|
@@ -1697,7 +1699,7 @@ export interface IngestCoverageDto {
|
|
|
1697
1699
|
generatedAt?: string;
|
|
1698
1700
|
}
|
|
1699
1701
|
|
|
1700
|
-
export type IngestRunKind = IngestCoveragePipelineKind
|
|
1702
|
+
export type IngestRunKind = Exclude<IngestCoveragePipelineKind, "linear">;
|
|
1701
1703
|
|
|
1702
1704
|
/** Finish state for one durable ingest tick. `cancelled` is legal and unused this wave. */
|
|
1703
1705
|
export type IngestRunOutcome = "in_progress" | "ok" | "partial" | "failed" | "cancelled";
|
|
@@ -1800,6 +1802,8 @@ export interface AiToolProviderSummaryDto {
|
|
|
1800
1802
|
tokenCount: number;
|
|
1801
1803
|
activeUsers: number;
|
|
1802
1804
|
totalEngineers: number;
|
|
1805
|
+
/** Model requests for org-level providers (ChatGPT, Gemini). */
|
|
1806
|
+
requestCount?: number;
|
|
1803
1807
|
};
|
|
1804
1808
|
weekBuckets: AiToolProviderSummaryWeekBucketDto[];
|
|
1805
1809
|
topMovers?: AiToolProviderSummaryTopMoverDto[];
|